text: /*!
   * jQuery JavaScript Library v3.6.0
   * https://jquery.com/
   *
   * Includes Sizzle.js
   * https://sizzlejs.com/
   *
   * Copyright OpenJS Foundation and other contributors
   * Released under the MIT license
   * https://jquery.org/license
   *
   * Date: 2021-03-02T17:08Z
   */
  !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 n=[],i=Object.getPrototypeOf,o=n.slice,r=n.flat?function(t){return n.flat.call(t)}:function(t){return n.concat.apply([],t)},a=n.push,s=n.indexOf,l={},c=l.toString,u=l.hasOwnProperty,d=u.toString,h=d.call(Object),p={},f=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},m=function(t){return null!=t&&t===t.window},g=t.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(t,e,n){var i,o,r=(n=n||g).createElement("script");if(r.text=t,e)for(i in v)(o=e[i]||e.getAttribute&&e.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[c.call(t)]||"object":typeof t}var b="3.6.0",w=function(t,e){return new w.fn.init(t,e)};function x(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!f(t)&&!m(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}w.fn=w.prototype={jquery:b,constructor:w,length:0,toArray:function(){return o.call(this)},get:function(t){return null==t?o.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,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(o.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,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var t,e,n,i,o,r,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||f(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=t[e],"__proto__"!==e&&a!==i&&(c&&i&&(w.isPlainObject(i)||(o=Array.isArray(i)))?(n=a[e],r=o&&!Array.isArray(n)?[]:o||w.isPlainObject(n)?n:{},o=!1,a[e]=w.extend(c,r,i)):void 0!==i&&(a[e]=i));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,n;return!(!t||"[object Object]"!==c.call(t))&&(!(e=i(t))||"function"==typeof(n=u.call(e,"constructor")&&e.constructor)&&d.call(n)===h)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){y(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(x(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(x(Object(t))?w.merge(n,"string"==typeof t?[t]:t):a.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:s.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,a=!n;o<r;o++)!e(t[o],o)!==a&&i.push(t[o]);return i},map:function(t,e,n){var i,o,a=0,s=[];if(x(t))for(i=t.length;a<i;a++)null!=(o=e(t[a],a,n))&&s.push(o);else for(a in t)null!=(o=e(t[a],a,n))&&s.push(o);return r(s)},guid:1,support:p}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){l["[object "+e+"]"]=e.toLowerCase()}));var T=
  /*!
   * Sizzle CSS Selector Engine v2.3.6
   * https://sizzlejs.com/
   *
   * Copyright JS Foundation and other contributors
   * Released under the MIT license
   * https://js.foundation/
   *
   * Date: 2021-02-16
   */
  function(t){var e,n,i,o,r,a,s,l,c,u,d,h,p,f,m,g,v,y,_,b="sizzle"+1*new Date,w=t.document,x=0,T=0,C=lt(),S=lt(),E=lt(),D=lt(),k=function(t,e){return t===e&&(d=!0),0},A={}.hasOwnProperty,M=[],L=M.pop,P=M.push,O=M.push,I=M.slice,N=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\[[\\x20\\t\\r\\n\\f]*("+B+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+j+"*\\]",H=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",$=new RegExp(j+"+","g"),F=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),W=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),q=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),V=new RegExp(j+"|>"),Y=new RegExp(H),Z=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)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ot=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){h()},at=bt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{O.apply(M=I.call(w.childNodes),w.childNodes),M[w.childNodes.length].nodeType}catch(t){O={apply:M.length?function(t,e){P.apply(t,I.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function st(t,e,i,o){var r,s,c,u,d,f,v,y=e&&e.ownerDocument,w=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return i;if(!o&&(h(e),e=e||p,m)){if(11!==w&&(d=Q.exec(t)))if(r=d[1]){if(9===w){if(!(c=e.getElementById(r)))return i;if(c.id===r)return i.push(c),i}else if(y&&(c=y.getElementById(r))&&_(e,c)&&c.id===r)return i.push(c),i}else{if(d[2])return O.apply(i,e.getElementsByTagName(t)),i;if((r=d[3])&&n.getElementsByClassName&&e.getElementsByClassName)return O.apply(i,e.getElementsByClassName(r)),i}if(n.qsa&&!D[t+" "]&&(!g||!g.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(v=t,y=e,1===w&&(V.test(t)||q.test(t))){for((y=tt.test(t)&&vt(e.parentNode)||e)===e&&n.scope||((u=e.getAttribute("id"))?u=u.replace(it,ot):e.setAttribute("id",u=b)),s=(f=a(t)).length;s--;)f[s]=(u?"#"+u:":scope")+" "+_t(f[s]);v=f.join(",")}try{return O.apply(i,y.querySelectorAll(v)),i}catch(e){D(t,!0)}finally{u===b&&e.removeAttribute("id")}}}return l(t.replace(F,"$1"),e,i,o)}function lt(){var t=[];return function e(n,o){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=o}}function ct(t){return t[b]=!0,t}function ut(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 n=t.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=e}function ht(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===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 n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&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(n,i){for(var o,r=t([],n.length,e),a=r.length;a--;)n[o=r[a]]&&(n[o]=!(i[o]=n[o]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=st.support={},r=st.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!G.test(e||n&&n.nodeName||"HTML")},h=st.setDocument=function(t){var e,o,a=t?t.ownerDocument||t:w;return a!=p&&9===a.nodeType&&a.documentElement?(f=(p=a).documentElement,m=!r(p),w!=p&&(o=p.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",rt,!1):o.attachEvent&&o.attachEvent("onunload",rt)),n.scope=ut((function(t){return f.appendChild(t).appendChild(p.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ut((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ut((function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=ut((function(t){return f.appendChild(t).id=b,!p.getElementsByName||!p.getElementsByName(b).length})),n.getById?(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n=e.getElementById(t);return n?[n]:[]}}):(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n,i,o,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(o=e.getElementsByName(t),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},v=[],g=[],(n.qsa=J.test(p.querySelectorAll))&&(ut((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("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+z+")"),t.querySelectorAll("[id~="+b+"-]").length||g.push("~="),(e=p.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||g.push(".#.+[+~]"),t.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ut((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[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),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(",.*:")}))),(n.matchesSelector=J.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ut((function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),v.push("!=",H)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),e=J.test(f.compareDocumentPosition),_=e||J.test(f.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},k=e?function(t,e){if(t===e)return d=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t==p||t.ownerDocument==w&&_(w,t)?-1:e==p||e.ownerDocument==w&&_(w,e)?1:u?N(u,t)-N(u,e):0:4&i?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,a=[t],s=[e];if(!o||!r)return t==p?-1:e==p?1:o?-1:r?1:u?N(u,t)-N(u,e):0;if(o===r)return ht(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ht(a[i],s[i]):a[i]==w?-1:s[i]==w?1:0},p):p},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(h(t),n.matchesSelector&&m&&!D[e+" "]&&(!v||!v.test(e))&&(!g||!g.test(e)))try{var i=y.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){D(e,!0)}return st(e,p,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=p&&h(t),_(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=p&&h(t);var o=i.attrHandle[e.toLowerCase()],r=o&&A.call(i.attrHandle,e.toLowerCase())?o(t,e,!m):void 0;return void 0!==r?r:n.attributes||!m?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},st.escape=function(t){return(t+"").replace(it,ot)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,i=[],o=0,r=0;if(d=!n.detectDuplicates,u=!n.sortStable&&t.slice(0),t.sort(k),d){for(;e=t[r++];)e===t[r]&&(o=i.push(r));for(;o--;)t.splice(i[o],1)}return u=null,t},o=st.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=o(e);return n},(i=st.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,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===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]||st.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]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return U.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Y.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=C[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+j+"|$)"))&&C(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var o=st.attr(i,t);return null==o?"!="===e:!e||(o+="","="===e?o===n:"!="===e?o!==n:"^="===e?n&&0===o.indexOf(n):"*="===e?n&&o.indexOf(n)>-1:"$="===e?n&&o.slice(-n.length)===n:"~="===e?(" "+o.replace($," ")+" ").indexOf(n)>-1:"|="===e&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,o){var r="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,h,p,f,m=r!==a?"nextSibling":"previousSibling",g=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!l&&!s,_=!1;if(g){if(r){for(;m;){for(h=e;h=h[m];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&y){for(_=(p=(c=(u=(d=(h=g)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===x&&c[1])&&c[2],h=p&&g.childNodes[p];h=++p&&h&&h[m]||(_=p=0)||f.pop();)if(1===h.nodeType&&++_&&h===e){u[t]=[x,p,_];break}}else if(y&&(_=p=(c=(u=(d=(h=e)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===x&&c[1]),!1===_)for(;(h=++p&&h&&h[m]||(_=p=0)||f.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++_||(y&&((u=(d=h[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]=[x,_]),h!==e)););return(_-=o)===i||_%i==0&&_/i>=0}}},PSEUDO:function(t,e){var n,o=i.pseudos[t]||i.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return o[b]?o(e):o.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,n){for(var i,r=o(t,e),a=r.length;a--;)t[i=N(t,r[a])]=!(n[i]=r[a])})):function(t){return o(t,0,n)}):o}},pseudos:{not:ct((function(t){var e=[],n=[],i=s(t.replace(F,"$1"));return i[b]?ct((function(t,e,n,o){for(var r,a=i(t,null,o,[]),s=t.length;s--;)(r=a[s])&&(t[s]=!(e[s]=r))})):function(t,o,r){return e[0]=t,i(e,null,r,n),e[0]=null,!n.pop()}})),has:ct((function(t){return function(e){return st(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||o(e)).indexOf(t)>-1}})),lang:ct((function(t){return Z.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.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!i.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,n){return[n<0?n+e:n]})),even:gt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:gt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:gt((function(t,e,n){for(var i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:gt((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=pt(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=ft(e);function yt(){}function _t(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function bt(t,e,n){var i=e.dir,o=e.next,r=o||i,a=n&&"parentNode"===r,s=T++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,o);return!1}:function(e,n,l){var c,u,d,h=[x,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(u=(d=e[b]||(e[b]={}))[e.uniqueID]||(d[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[i]||e;else{if((c=u[r])&&c[0]===x&&c[1]===s)return h[2]=c[2];if(u[r]=h,h[2]=t(e,n,l))return!0}return!1}}function wt(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function xt(t,e,n,i,o){for(var r,a=[],s=0,l=t.length,c=null!=e;s<l;s++)(r=t[s])&&(n&&!n(r,i,o)||(a.push(r),c&&e.push(s)));return a}function Tt(t,e,n,i,o,r){return i&&!i[b]&&(i=Tt(i)),o&&!o[b]&&(o=Tt(o,r)),ct((function(r,a,s,l){var c,u,d,h=[],p=[],f=a.length,m=r||function(t,e,n){for(var i=0,o=e.length;i<o;i++)st(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),g=!t||!r&&e?m:xt(m,h,t,s,l),v=n?o||(r?t:f||i)?[]:a:g;if(n&&n(g,v,s,l),i)for(c=xt(v,p),i(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[p[u]]=!(g[p[u]]=d));if(r){if(o||t){if(o){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);o(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=o?N(r,d):h[u])>-1&&(r[c]=!(a[c]=d))}}else v=xt(v===a?v.splice(f,v.length):v),o?o(null,a,v,l):O.apply(a,v)}))}function Ct(t){for(var e,n,o,r=t.length,a=i.relative[t[0].type],s=a||i.relative[" "],l=a?1:0,u=bt((function(t){return t===e}),s,!0),d=bt((function(t){return N(e,t)>-1}),s,!0),h=[function(t,n,i){var o=!a&&(i||n!==c)||((e=n).nodeType?u(t,n,i):d(t,n,i));return e=null,o}];l<r;l++)if(n=i.relative[t[l].type])h=[bt(wt(h),n)];else{if((n=i.filter[t[l].type].apply(null,t[l].matches))[b]){for(o=++l;o<r&&!i.relative[t[o].type];o++);return Tt(l>1&&wt(h),l>1&&_t(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(F,"$1"),n,l<o&&Ct(t.slice(l,o)),o<r&&Ct(t=t.slice(o)),o<r&&_t(t))}h.push(n)}return wt(h)}return yt.prototype=i.filters=i.pseudos,i.setFilters=new yt,a=st.tokenize=function(t,e){var n,o,r,a,s,l,c,u=S[t+" "];if(u)return e?0:u.slice(0);for(s=t,l=[],c=i.preFilter;s;){for(a in n&&!(o=W.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(r=[])),n=!1,(o=q.exec(s))&&(n=o.shift(),r.push({value:n,type:o[0].replace(F," ")}),s=s.slice(n.length)),i.filter)!(o=U[a].exec(s))||c[a]&&!(o=c[a](o))||(n=o.shift(),r.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return e?s.length:s?st.error(t):S(t,l).slice(0)},s=st.compile=function(t,e){var n,o=[],r=[],s=E[t+" "];if(!s){for(e||(e=a(t)),n=e.length;n--;)(s=Ct(e[n]))[b]?o.push(s):r.push(s);(s=E(t,function(t,e){var n=e.length>0,o=t.length>0,r=function(r,a,s,l,u){var d,f,g,v=0,y="0",_=r&&[],b=[],w=c,T=r||o&&i.find.TAG("*",u),C=x+=null==w?1:Math.random()||.1,S=T.length;for(u&&(c=a==p||a||u);y!==S&&null!=(d=T[y]);y++){if(o&&d){for(f=0,a||d.ownerDocument==p||(h(d),s=!m);g=t[f++];)if(g(d,a||p,s)){l.push(d);break}u&&(x=C)}n&&((d=!g&&d)&&v--,r&&_.push(d))}if(v+=y,n&&y!==v){for(f=0;g=e[f++];)g(_,b,a,s);if(r){if(v>0)for(;y--;)_[y]||b[y]||(b[y]=L.call(l));b=xt(b)}O.apply(l,b),u&&!r&&b.length>0&&v+e.length>1&&st.uniqueSort(l)}return u&&(x=C,c=w),_};return n?ct(r):r}(r,o))).selector=t}return s},l=st.select=function(t,e,n,o){var r,l,c,u,d,h="function"==typeof t&&t,p=!o&&a(t=h.selector||t);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&m&&i.relative[l[1].type]){if(!(e=(i.find.ID(c.matches[0].replace(et,nt),e)||[])[0]))return n;h&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(r=U.needsContext.test(t)?0:l.length;r--&&(c=l[r],!i.relative[u=c.type]);)if((d=i.find[u])&&(o=d(c.matches[0].replace(et,nt),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(r,1),!(t=o.length&&_t(l)))return O.apply(n,o),n;break}}return(h||s(t,p))(o,e,!m,n,!e||tt.test(t)&&vt(e.parentNode)||e),n},n.sortStable=b.split("").sort(k).join("")===b,n.detectDuplicates=!!d,h(),n.sortDetached=ut((function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))})),ut((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||dt("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ut((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||dt("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ut((function(t){return null==t.getAttribute("disabled")}))||dt(z,(function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null})),st}(t);w.find=T,w.expr=T.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=T.uniqueSort,w.text=T.getText,w.isXMLDoc=T.isXML,w.contains=T.contains,w.escapeSelector=T.escape;var C=function(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&w(t).is(n))break;i.push(t)}return i},S=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},E=w.expr.match.needsContext;function D(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var k=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(t,e,n){return f(e)?w.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?w.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?w.grep(t,(function(t){return s.call(e,t)>-1!==n})):w.filter(e,t,n)}w.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?w.find.matchesSelector(i,t)?[i]:[]:w.find.matches(t,w.grep(e,(function(t){return 1===t.nodeType})))},w.fn.extend({find:function(t){var e,n,i=this.length,o=this;if("string"!=typeof t)return this.pushStack(w(t).filter((function(){for(e=0;e<i;e++)if(w.contains(o[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)w.find(t,o[e],n);return i>1?w.uniqueSort(n):n},filter:function(t){return this.pushStack(A(this,t||[],!1))},not:function(t){return this.pushStack(A(this,t||[],!0))},is:function(t){return!!A(this,"string"==typeof t&&E.test(t)?w(t):t||[],!1).length}});var M,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||M,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:L.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:g,!0)),k.test(i[1])&&w.isPlainObject(e))for(i in e)f(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(o=g.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):f(t)?void 0!==n.ready?n.ready(t):t(w):w.makeArray(t,this)}).prototype=w.fn,M=w(g);var P=/^(?: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),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(w.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,o=this.length,r=[],a="string"!=typeof t&&w(t);if(!E.test(t))for(;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?w.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?s.call(w(t),this[0]):s.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 C(t,"parentNode")},parentsUntil:function(t,e,n){return C(t,"parentNode",n)},next:function(t){return I(t,"nextSibling")},prev:function(t){return I(t,"previousSibling")},nextAll:function(t){return C(t,"nextSibling")},prevAll:function(t){return C(t,"previousSibling")},nextUntil:function(t,e,n){return C(t,"nextSibling",n)},prevUntil:function(t,e,n){return C(t,"previousSibling",n)},siblings:function(t){return S((t.parentNode||{}).firstChild,t)},children:function(t){return S(t.firstChild)},contents:function(t){return null!=t.contentDocument&&i(t.contentDocument)?t.contentDocument:(D(t,"template")&&(t=t.content||t),w.merge([],t.childNodes))}},(function(t,e){w.fn[t]=function(n,i){var o=w.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=w.filter(i,o)),this.length>1&&(O[t]||w.uniqueSort(o),P.test(t)&&o.reverse()),this.pushStack(o)}}));var N=/[^\x20\t\r\n\f]+/g;function z(t){return t}function j(t){throw t}function B(t,e,n,i){var o;try{t&&f(o=t.promise)?o.call(t).done(e).fail(n):t&&f(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}w.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return w.each(t.match(N)||[],(function(t,n){e[n]=!0})),e}(t):w.extend({},t);var e,n,i,o,r=[],a=[],s=-1,l=function(){for(o=o||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<r.length;)!1===r[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=r.length,n=!1);t.memory||(n=!1),e=!1,o&&(r=n?[]:"")},c={add:function(){return r&&(n&&!e&&(s=r.length-1,a.push(n)),function e(n){w.each(n,(function(n,i){f(i)?t.unique&&c.has(i)||r.push(i):i&&i.length&&"string"!==_(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return w.each(arguments,(function(t,e){for(var n;(n=w.inArray(e,r,n))>-1;)r.splice(n,1),n<=s&&s--})),this},has:function(t){return t?w.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=a=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=a=[],n||e||(r=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},w.extend({Deferred:function(e){var n=[["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"]],i="pending",o={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return w.Deferred((function(e){w.each(n,(function(n,i){var o=f(t[i[4]])&&t[i[4]];r[i[1]]((function(){var t=o&&o.apply(this,arguments);t&&f(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[i[0]+"With"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(e,i,o){var r=0;function a(e,n,i,o){return function(){var s=this,l=arguments,c=function(){var t,c;if(!(e<r)){if((t=i.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");c=t&&("object"==typeof t||"function"==typeof t)&&t.then,f(c)?o?c.call(t,a(r,n,z,o),a(r,n,j,o)):(r++,c.call(t,a(r,n,z,o),a(r,n,j,o),a(r,n,z,n.notifyWith))):(i!==z&&(s=void 0,l=[t]),(o||n.resolveWith)(s,l))}},u=o?c:function(){try{c()}catch(t){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(t,u.stackTrace),e+1>=r&&(i!==j&&(s=void 0,l=[t]),n.rejectWith(s,l))}};e?u():(w.Deferred.getStackHook&&(u.stackTrace=w.Deferred.getStackHook()),t.setTimeout(u))}}return w.Deferred((function(t){n[0][3].add(a(0,t,f(o)?o:z,t.notifyWith)),n[1][3].add(a(0,t,f(e)?e:z)),n[2][3].add(a(0,t,f(i)?i:j))})).promise()},promise:function(t){return null!=t?w.extend(t,o):o}},r={};return w.each(n,(function(t,e){var a=e[2],s=e[5];o[e[1]]=a.add,s&&a.add((function(){i=s}),n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),a.add(e[3].fire),r[e[0]]=function(){return r[e[0]+"With"](this===r?void 0:this,arguments),this},r[e[0]+"With"]=a.fireWith})),o.promise(r),e&&e.call(r,r),r},when:function(t){var e=arguments.length,n=e,i=Array(n),r=o.call(arguments),a=w.Deferred(),s=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?o.call(arguments):n,--e||a.resolveWith(i,r)}};if(e<=1&&(B(t,a.done(s(n)).resolve,a.reject,!e),"pending"===a.state()||f(r[n]&&r[n].then)))return a.then();for(;n--;)B(r[n],s(n),a.reject);return a.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&R.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},w.readyException=function(e){t.setTimeout((function(){throw e}))};var H=w.Deferred();function $(){g.removeEventListener("DOMContentLoaded",$),t.removeEventListener("load",$),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,!0!==t&&--w.readyWait>0||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",$),t.addEventListener("load",$));var F=function(t,e,n,i,o,r,a){var s=0,l=t.length,c=null==n;if("object"===_(n))for(s in o=!0,n)F(t,e,s,n[s],!0,r,a);else if(void 0!==i&&(o=!0,f(i)||(a=!0),c&&(a?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(w(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return o?t:c?e.call(t):l?e(t[0],n):r},W=/^-ms-/,q=/-([a-z])/g;function V(t,e){return e.toUpperCase()}function Y(t){return t.replace(W,"ms-").replace(q,V)}var Z=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={},Z(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[Y(e)]=n;else for(i in e)o[Y(i)]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][Y(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(Y):(e=Y(e))in i?[e]:e.match(N)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||w.isEmptyObject(i))&&(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]*\])$/,J=/[A-Z]/g;function Q(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(J,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:K.test(t)?JSON.parse(t):t)}(n)}catch(t){}X.set(t,e,n)}else n=void 0;return n}w.extend({hasData:function(t){return X.hasData(t)||G.hasData(t)},data:function(t,e,n){return X.access(t,e,n)},removeData:function(t,e){X.remove(t,e)},_data:function(t,e,n){return G.access(t,e,n)},_removeData:function(t,e){G.remove(t,e)}}),w.fn.extend({data:function(t,e){var n,i,o,r=this[0],a=r&&r.attributes;if(void 0===t){if(this.length&&(o=X.get(r),1===r.nodeType&&!G.get(r,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=Y(i.slice(5)),Q(r,i,o[i]));G.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each((function(){X.set(this,t)})):F(this,(function(e){var n;if(r&&void 0===e)return void 0!==(n=X.get(r,t))||void 0!==(n=Q(r,t))?n:void 0;this.each((function(){X.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){X.remove(this,t)}))}}),w.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=G.get(t,e),n&&(!i||Array.isArray(n)?i=G.access(t,e,w.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=w.queue(t,e),i=n.length,o=n.shift(),r=w._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,(function(){w.dequeue(t,e)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return G.get(t,n)||G.access(t,n,{empty:w.Callbacks("once memory").add((function(){G.remove(t,[e+"queue",n])}))})}}),w.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?w.queue(this[0],t):void 0===e?this:this.each((function(){var n=w.queue(this,t,e);w._queueHooks(this,t),"fx"===t&&"inprogress"!==n[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 n,i=1,o=w.Deferred(),r=this,a=this.length,s=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=G.get(r[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),o.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),nt=["Top","Right","Bottom","Left"],it=g.documentElement,ot=function(t){return w.contains(t.ownerDocument,t)},rt={composed:!0};it.getRootNode&&(ot=function(t){return w.contains(t.ownerDocument,t)||t.getRootNode(rt)===t.ownerDocument});var at=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&ot(t)&&"none"===w.css(t,"display")};function st(t,e,n,i){var o,r,a=20,s=i?function(){return i.cur()}:function(){return w.css(t,e,"")},l=s(),c=n&&n[3]||(w.cssNumber[e]?"":"px"),u=t.nodeType&&(w.cssNumber[e]||"px"!==c&&+l)&&et.exec(w.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)w.style(t,e,u+c),(1-r)*(1-(r=s()/l||.5))<=0&&(a=0),u/=r;u*=2,w.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=o)),o}var lt={};function ct(t){var e,n=t.ownerDocument,i=t.nodeName,o=lt[i];return o||(e=n.body.appendChild(n.createElement(i)),o=w.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),lt[i]=o,o)}function ut(t,e){for(var n,i,o=[],r=0,a=t.length;r<a;r++)(i=t[r]).style&&(n=i.style.display,e?("none"===n&&(o[r]=G.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&at(i)&&(o[r]=ct(i))):"none"!==n&&(o[r]="none",G.set(i,"display",n)));for(r=0;r<a;r++)null!=o[r]&&(t[r].style.display=o[r]);return t}w.fn.extend({show:function(){return ut(this,!0)},hide:function(){return ut(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 dt,ht,pt=/^(?:checkbox|radio)$/i,ft=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,mt=/^$|^module$|\/(?:java|ecma)script/i;dt=g.createDocumentFragment().appendChild(g.createElement("div")),(ht=g.createElement("input")).setAttribute("type","radio"),ht.setAttribute("checked","checked"),ht.setAttribute("name","t"),dt.appendChild(ht),p.checkClone=dt.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!dt.cloneNode(!0).lastChild.defaultValue,dt.innerHTML="<option></option>",p.option=!!dt.lastChild;var gt={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 vt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&D(t,e)?w.merge([t],n):n}function yt(t,e){for(var n=0,i=t.length;n<i;n++)G.set(t[n],"globalEval",!e||G.get(e[n],"globalEval"))}gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,p.option||(gt.optgroup=gt.option=[1,"<select multiple='multiple'>","</select>"]);var _t=/<|&#?\w+;/;function bt(t,e,n,i,o){for(var r,a,s,l,c,u,d=e.createDocumentFragment(),h=[],p=0,f=t.length;p<f;p++)if((r=t[p])||0===r)if("object"===_(r))w.merge(h,r.nodeType?[r]:r);else if(_t.test(r)){for(a=a||d.appendChild(e.createElement("div")),s=(ft.exec(r)||["",""])[1].toLowerCase(),l=gt[s]||gt._default,a.innerHTML=l[1]+w.htmlPrefilter(r)+l[2],u=l[0];u--;)a=a.lastChild;w.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(e.createTextNode(r));for(d.textContent="",p=0;r=h[p++];)if(i&&w.inArray(r,i)>-1)o&&o.push(r);else if(c=ot(r),a=vt(d.appendChild(r),"script"),c&&yt(a),n)for(u=0;r=a[u++];)mt.test(r.type||"")&&n.push(r);return d}var wt=/^([^.]*)(?:\.(.+)|)/;function xt(){return!0}function Tt(){return!1}function Ct(t,e){return t===function(){try{return g.activeElement}catch(t){}}()==("focus"===e)}function St(t,e,n,i,o,r){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)St(t,s,n,i,e[s],r);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=Tt;else if(!o)return t;return 1===r&&(a=o,(o=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,o,i,n)}))}function Et(t,e,n){n?(G.set(t,e,!1),w.event.add(t,e,{namespace:!1,handler:function(t){var i,r,a=G.get(this,e);if(1&t.isTrigger&&this[e]){if(a.length)(w.event.special[e]||{}).delegateType&&t.stopPropagation();else if(a=o.call(arguments),G.set(this,e,a),i=n(this,e),this[e](),a!==(r=G.get(this,e))||i?G.set(this,e,!1):r={},a!==r)return t.stopImmediatePropagation(),t.preventDefault(),r&&r.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,xt)}w.event={global:{},add:function(t,e,n,i,o){var r,a,s,l,c,u,d,h,p,f,m,g=G.get(t);if(Z(t))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&w.find.matchesSelector(it,o),n.guid||(n.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(N)||[""]).length;c--;)p=m=(s=wt.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p&&(d=w.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=w.event.special[p]||{},u=w.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&w.expr.match.needsContext.test(o),namespace:f.join(".")},r),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,f,a)||t.addEventListener&&t.addEventListener(p,a)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,u):h.push(u),w.event.global[p]=!0)},remove:function(t,e,n,i,o){var r,a,s,l,c,u,d,h,p,f,m,g=G.hasData(t)&&G.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(N)||[""]).length;c--;)if(p=m=(s=wt.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=w.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=h.length;r--;)u=h[r],!o&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));a&&!h.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],n,i,!0);w.isEmptyObject(l)&&G.remove(t,"handle events")}},dispatch:function(t){var e,n,i,o,r,a,s=new Array(arguments.length),l=w.event.fix(t),c=(G.get(this,"events")||Object.create(null))[l.type]||[],u=w.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=w.event.handlers.call(this,l,c),e=0;(o=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((w.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,o,r,a,s=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(r=[],a={},n=0;n<l;n++)void 0===a[o=(i=e[n]).selector+" "]&&(a[o]=i.needsContext?w(o,this).index(c)>-1:w.find(o,this,null,[c]).length),a[o]&&r.push(i);r.length&&s.push({elem:c,handlers:r})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},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 pt.test(e.type)&&e.click&&D(e,"input")&&Et(e,"click",xt),!1},trigger:function(t){var e=this||t;return pt.test(e.type)&&e.click&&D(e,"input")&&Et(e,"click"),!0},_default:function(t){var e=t.target;return pt.test(e.type)&&e.click&&D(e,"input")&&G.get(e,"click")||D(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},w.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},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?xt:Tt,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:Tt,isPropagationStopped:Tt,isImmediatePropagationStopped:Tt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=xt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=xt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=xt,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:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},(function(t,e){w.event.special[t]={setup:function(){return Et(this,t,Ct),!1},trigger:function(){return Et(this,t),!0},_default:function(){return!0},delegateType:e}})),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 n,i=this,o=t.relatedTarget,r=t.handleObj;return o&&(o===i||w.contains(i,o))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),w.fn.extend({on:function(t,e,n,i){return St(this,t,e,n,i)},one:function(t,e,n,i){return St(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,w(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Tt),this.each((function(){w.event.remove(this,t,n,e)}))}});var Dt=/<script|<style|<link/i,kt=/checked\s*(?:[^=]|=\s*.checked.)/i,At=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Mt(t,e){return D(t,"table")&&D(11!==e.nodeType?e:e.firstChild,"tr")&&w(t).children("tbody")[0]||t}function Lt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Pt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ot(t,e){var n,i,o,r,a,s;if(1===e.nodeType){if(G.hasData(t)&&(s=G.get(t).events))for(o in G.remove(e,"handle events"),s)for(n=0,i=s[o].length;n<i;n++)w.event.add(e,o,s[o][n]);X.hasData(t)&&(r=X.access(t),a=w.extend({},r),X.set(e,a))}}function It(t,e){var n=e.nodeName.toLowerCase();"input"===n&&pt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Nt(t,e,n,i){e=r(e);var o,a,s,l,c,u,d=0,h=t.length,m=h-1,g=e[0],v=f(g);if(v||h>1&&"string"==typeof g&&!p.checkClone&&kt.test(g))return t.each((function(o){var r=t.eq(o);v&&(e[0]=g.call(this,o,r.html())),Nt(r,e,n,i)}));if(h&&(a=(o=bt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===o.childNodes.length&&(o=a),a||i)){for(l=(s=w.map(vt(o,"script"),Lt)).length;d<h;d++)c=o,d!==m&&(c=w.clone(c,!0,!0),l&&w.merge(s,vt(c,"script"))),n.call(t[d],c,d);if(l)for(u=s[s.length-1].ownerDocument,w.map(s,Pt),d=0;d<l;d++)c=s[d],mt.test(c.type||"")&&!G.access(c,"globalEval")&&w.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?w._evalUrl&&!c.noModule&&w._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(At,""),c,u))}return t}function zt(t,e,n){for(var i,o=e?w.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||w.cleanData(vt(i)),i.parentNode&&(n&&ot(i)&&yt(vt(i,"script")),i.parentNode.removeChild(i));return t}w.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,o,r,a,s=t.cloneNode(!0),l=ot(t);if(!(p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(a=vt(s),i=0,o=(r=vt(t)).length;i<o;i++)It(r[i],a[i]);if(e)if(n)for(r=r||vt(t),a=a||vt(s),i=0,o=r.length;i<o;i++)Ot(r[i],a[i]);else Ot(t,s);return(a=vt(s,"script")).length>0&&yt(a,!l&&vt(t,"script")),s},cleanData:function(t){for(var e,n,i,o=w.event.special,r=0;void 0!==(n=t[r]);r++)if(Z(n)){if(e=n[G.expando]){if(e.events)for(i in e.events)o[i]?w.event.remove(n,i):w.removeEvent(n,i,e.handle);n[G.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),w.fn.extend({detach:function(t){return zt(this,t,!0)},remove:function(t){return zt(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 Nt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Mt(this,t).appendChild(t)}))},prepend:function(){return Nt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Mt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Nt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Nt(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(vt(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]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Dt.test(t)&&!gt[(ft.exec(t)||["",""])[1].toLowerCase()]){t=w.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(w.cleanData(vt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Nt(this,arguments,(function(e){var n=this.parentNode;w.inArray(this,t)<0&&(w.cleanData(vt(this)),n&&n.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 n,i=[],o=w(t),r=o.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),w(o[s])[e](n),a.apply(i,n.get());return this.pushStack(i)}}));var jt=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Bt=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},Rt=function(t,e,n){var i,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in i=n.call(t),e)t.style[o]=r[o];return i},Ht=new RegExp(nt.join("|"),"i");function $t(t,e,n){var i,o,r,a,s=t.style;return(n=n||Bt(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||ot(t)||(a=w.style(t,e)),!p.pixelBoxStyles()&&jt.test(a)&&Ht.test(e)&&(i=s.width,o=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=o,s.maxWidth=r)),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(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",it.appendChild(c).appendChild(u);var e=t.getComputedStyle(u);i="1%"!==e.top,l=12===n(e.marginLeft),u.style.right="60%",a=36===n(e.right),o=36===n(e.width),u.style.position="absolute",r=12===n(u.offsetWidth/3),it.removeChild(c),u=null}}function n(t){return Math.round(parseFloat(t))}var i,o,r,a,s,l,c=g.createElement("div"),u=g.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===u.style.backgroundClip,w.extend(p,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),r},reliableTrDimensions:function(){var e,n,i,o;return null==s&&(e=g.createElement("table"),n=g.createElement("tr"),i=g.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",it.appendChild(e).appendChild(n).appendChild(i),o=t.getComputedStyle(n),s=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===n.offsetHeight,it.removeChild(e)),s}}))}();var Wt=["Webkit","Moz","ms"],qt=g.createElement("div").style,Vt={};function Yt(t){var e=w.cssProps[t]||Vt[t];return e||(t in qt?t:Vt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Wt.length;n--;)if((t=Wt[n]+e)in qt)return t}(t)||t)}var Zt=/^(none|table(?!-c[ea]).+)/,Ut=/^--/,Gt={position:"absolute",visibility:"hidden",display:"block"},Xt={letterSpacing:"0",fontWeight:"400"};function Kt(t,e,n){var i=et.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function Jt(t,e,n,i,o,r){var a="width"===e?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=w.css(t,n+nt[a],!0,o)),i?("content"===n&&(l-=w.css(t,"padding"+nt[a],!0,o)),"margin"!==n&&(l-=w.css(t,"border"+nt[a]+"Width",!0,o))):(l+=w.css(t,"padding"+nt[a],!0,o),"padding"!==n?l+=w.css(t,"border"+nt[a]+"Width",!0,o):s+=w.css(t,"border"+nt[a]+"Width",!0,o));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-s-.5))||0),l}function Qt(t,e,n){var i=Bt(t),o=(!p.boxSizingReliable()||n)&&"border-box"===w.css(t,"boxSizing",!1,i),r=o,a=$t(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(jt.test(a)){if(!n)return a;a="auto"}return(!p.boxSizingReliable()&&o||!p.reliableTrDimensions()&&D(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(t,"display",!1,i))&&t.getClientRects().length&&(o="border-box"===w.css(t,"boxSizing",!1,i),(r=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+Jt(t,e,n||(o?"border":"content"),r,i,a)+"px"}function te(t,e,n,i,o){return new te.prototype.init(t,e,n,i,o)}w.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=$t(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,a,s=Y(e),l=Ut.test(e),c=t.style;if(l||(e=Yt(s)),a=w.cssHooks[e]||w.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(t,!1,i))?o:c[e];"string"===(r=typeof n)&&(o=et.exec(n))&&o[1]&&(n=st(t,e,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(w.cssNumber[s]?"":"px")),p.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var o,r,a,s=Y(e);return Ut.test(e)||(e=Yt(s)),(a=w.cssHooks[e]||w.cssHooks[s])&&"get"in a&&(o=a.get(t,!0,n)),void 0===o&&(o=$t(t,e,i)),"normal"===o&&e in Xt&&(o=Xt[e]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),w.each(["height","width"],(function(t,e){w.cssHooks[e]={get:function(t,n,i){if(n)return!Zt.test(w.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Qt(t,e,i):Rt(t,Gt,(function(){return Qt(t,e,i)}))},set:function(t,n,i){var o,r=Bt(t),a=!p.scrollboxSize()&&"absolute"===r.position,s=(a||i)&&"border-box"===w.css(t,"boxSizing",!1,r),l=i?Jt(t,e,i,s,r):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(r[e])-Jt(t,e,"border",!1,r)-.5)),l&&(o=et.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=w.css(t,e)),Kt(0,n,l)}}})),w.cssHooks.marginLeft=Ft(p.reliableMarginLeft,(function(t,e){if(e)return(parseFloat($t(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(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[t+nt[i]+e]=r[i]||r[i-2]||r[0];return o}},"margin"!==t&&(w.cssHooks[t+e].set=Kt)})),w.fn.extend({css:function(t,e){return F(this,(function(t,e,n){var i,o,r={},a=0;if(Array.isArray(e)){for(i=Bt(t),o=e.length;a<o;a++)r[e[a]]=w.css(t,e[a],!1,i);return r}return void 0!==n?w.style(t,e,n):w.css(t,e)}),t,e,arguments.length>1)}}),w.Tween=te,te.prototype={constructor:te,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||w.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(w.cssNumber[n]?"":"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,n=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),n&&n.set?n.set(this):te.propHooks._default.set(this),this}},te.prototype.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[Yt(t.prop)]?t.elem[t.prop]=t.now:w.style(t.elem,t.prop,t.now+t.unit)}}},te.propHooks.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,ne,ie=/^(?:toggle|show|hide)$/,oe=/queueHooks$/;function re(){ne&&(!1===g.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(re):t.setTimeout(re,w.fx.interval),w.fx.tick())}function ae(){return t.setTimeout((function(){ee=void 0})),ee=Date.now()}function se(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=nt[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function le(t,e,n){for(var i,o=(ce.tweeners[e]||[]).concat(ce.tweeners["*"]),r=0,a=o.length;r<a;r++)if(i=o[r].call(n,e,t))return i}function ce(t,e,n){var i,o,r=0,a=ce.prefilters.length,s=w.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var e=ee||ae(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),r=0,a=c.tweens.length;r<a;r++)c.tweens[r].run(i);return s.notifyWith(t,[c,i,n]),i<1&&a?n:(a||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:e,originalOptions:n,startTime:ee||ae(),duration:n.duration,tweens:[],createTween:function(e,n){var i=w.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)c.tweens[n].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),u=c.props;for(!function(t,e){var n,i,o,r,a;for(n in t)if(o=e[i=Y(n)],r=t[n],Array.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(a=w.cssHooks[i])&&"expand"in a)for(n in r=a.expand(r),delete t[i],r)n in t||(t[n]=r[n],e[n]=o);else e[i]=o}(u,c.opts.specialEasing);r<a;r++)if(i=ce.prefilters[r].call(c,t,u,c.opts))return f(i.stop)&&(w._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return w.map(u,le,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(ce,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return st(n.elem,t,et.exec(e),n),n}]},tweener:function(t,e){f(t)?(e=t,t=["*"]):t=t.match(N);for(var n,i=0,o=t.length;i<o;i++)n=t[i],ce.tweeners[n]=ce.tweeners[n]||[],ce.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,o,r,a,s,l,c,u,d="width"in e||"height"in e,h=this,p={},f=t.style,m=t.nodeType&&at(t),g=G.get(t,"fxshow");for(i in n.queue||(null==(a=w._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,w.queue(t,"fx").length||a.empty.fire()}))}))),e)if(o=e[i],ie.test(o)){if(delete e[i],r=r||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;m=!0}p[i]=g&&g[i]||w.style(t,i)}if((l=!w.isEmptyObject(e))||!w.isEmptyObject(p))for(i in d&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=G.get(t,"display")),"none"===(u=w.css(t,"display"))&&(c?u=c:(ut([t],!0),c=t.style.display||c,u=w.css(t,"display"),ut([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===w.css(t,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=G.access(t,"fxshow",{display:c}),r&&(g.hidden=!m),m&&ut([t],!0),h.done((function(){for(i in m||ut([t]),G.remove(t,"fxshow"),p)w.style(t,i,p[i])}))),l=le(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ce.prefilters.unshift(t):ce.prefilters.push(t)}}),w.speed=function(t,e,n){var i=t&&"object"==typeof t?w.extend({},t):{complete:n||!n&&e||f(t)&&t,duration:t,easing:n&&e||e&&!f(e)&&e};return w.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in w.fx.speeds?i.duration=w.fx.speeds[i.duration]:i.duration=w.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){f(i.old)&&i.old.call(this),i.queue&&w.dequeue(this,i.queue)},i},w.fn.extend({fadeTo:function(t,e,n,i){return this.filter(at).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=w.isEmptyObject(t),r=w.speed(e,n,i),a=function(){var e=ce(this,w.extend({},t),r);(o||G.get(this,"finish"))&&e.stop(!0)};return a.finish=a,o||!1===r.queue?this.each(a):this.queue(r.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,o=null!=t&&t+"queueHooks",r=w.timers,a=G.get(this);if(o)a[o]&&a[o].stop&&i(a[o]);else for(o in a)a[o]&&a[o].stop&&oe.test(o)&&i(a[o]);for(o=r.length;o--;)r[o].elem!==this||null!=t&&r[o].queue!==t||(r[o].anim.stop(n),e=!1,r.splice(o,1));!e&&n||w.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=G.get(this),i=n[t+"queue"],o=n[t+"queueHooks"],r=w.timers,a=i?i.length:0;for(n.finish=!0,w.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),w.each(["toggle","show","hide"],(function(t,e){var n=w.fn[e];w.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(se(e,!0),t,i,o)}})),w.each({slideDown:se("show"),slideUp:se("hide"),slideToggle:se("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){w.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),w.timers=[],w.fx.tick=function(){var t,e=0,n=w.timers;for(ee=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.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(){ne||(ne=!0,re())},w.fx.stop=function(){ne=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(e,n){return e=w.fx&&w.fx.speeds[e]||e,n=n||"fx",this.queue(n,(function(n,i){var o=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(o)}}))},function(){var t=g.createElement("input"),e=g.createElement("select").appendChild(g.createElement("option"));t.type="checkbox",p.checkOn=""!==t.value,p.optSelected=e.selected,(t=g.createElement("input")).value="t",t.type="radio",p.radioValue="t"===t.value}();var ue,de=w.expr.attrHandle;w.fn.extend({attr:function(t,e){return F(this,w.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){w.removeAttr(this,t)}))}}),w.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?w.prop(t,e,n):(1===r&&w.isXMLDoc(t)||(o=w.attrHooks[e.toLowerCase()]||(w.expr.match.bool.test(e)?ue:void 0)),void 0!==n?null===n?void w.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:null==(i=w.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!p.radioValue&&"radio"===e&&D(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,o=e&&e.match(N);if(o&&1===t.nodeType)for(;n=o[i++];)t.removeAttribute(n)}}),ue={set:function(t,e,n){return!1===e?w.removeAttr(t,n):t.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=de[e]||w.find.attr;de[e]=function(t,e,i){var o,r,a=e.toLowerCase();return i||(r=de[a],de[a]=o,o=null!=n(t,e,i)?a:null,de[a]=r),o}}));var he=/^(?:input|select|textarea|button)$/i,pe=/^(?:a|area)$/i;function fe(t){return(t.match(N)||[]).join(" ")}function me(t){return t.getAttribute&&t.getAttribute("class")||""}function ge(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(N)||[]}w.fn.extend({prop:function(t,e){return F(this,w.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[w.propFix[t]||t]}))}}),w.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&w.isXMLDoc(t)||(e=w.propFix[e]||e,o=w.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=w.find.attr(t,"tabindex");return e?parseInt(e,10):he.test(t.nodeName)||pe.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,n,i,o,r,a,s,l=0;if(f(t))return this.each((function(e){w(this).addClass(t.call(this,e,me(this)))}));if((e=ge(t)).length)for(;n=this[l++];)if(o=me(n),i=1===n.nodeType&&" "+fe(o)+" "){for(a=0;r=e[a++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(s=fe(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,o,r,a,s,l=0;if(f(t))return this.each((function(e){w(this).removeClass(t.call(this,e,me(this)))}));if(!arguments.length)return this.attr("class","");if((e=ge(t)).length)for(;n=this[l++];)if(o=me(n),i=1===n.nodeType&&" "+fe(o)+" "){for(a=0;r=e[a++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(s=fe(i))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):f(t)?this.each((function(n){w(this).toggleClass(t.call(this,n,me(this),e),e)})):this.each((function(){var e,o,r,a;if(i)for(o=0,r=w(this),a=ge(t);e=a[o++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==n||((e=me(this))&&G.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":G.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+fe(me(n))+" ").indexOf(e)>-1)return!0;return!1}});var ve=/\r/g;w.fn.extend({val:function(t){var e,n,i,o=this[0];return arguments.length?(i=f(t),this.each((function(n){var o;1===this.nodeType&&(null==(o=i?t.call(this,n,w(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=w.map(o,(function(t){return null==t?"":t+""}))),(e=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=w.valHooks[o.type]||w.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(ve,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:fe(w.text(t))}},select:{get:function(t){var e,n,i,o=t.options,r=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?r+1:o.length;for(i=r<0?l:a?r:0;i<l;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(e=w(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,o=t.options,r=w.makeArray(e),a=o.length;a--;)((i=o[a]).selected=w.inArray(w.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=w.inArray(w(t).val(),e)>-1}},p.checkOn||(w.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),p.focusin="onfocusin"in t;var ye=/^(?:focusinfocus|focusoutblur)$/,_e=function(t){t.stopPropagation()};w.extend(w.event,{trigger:function(e,n,i,o){var r,a,s,l,c,d,h,p,v=[i||g],y=u.call(e,"type")?e.type:e,_=u.call(e,"namespace")?e.namespace.split("."):[];if(a=p=s=i=i||g,3!==i.nodeType&&8!==i.nodeType&&!ye.test(y+w.event.triggered)&&(y.indexOf(".")>-1&&(_=y.split("."),y=_.shift(),_.sort()),c=y.indexOf(":")<0&&"on"+y,(e=e[w.expando]?e:new w.Event(y,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=_.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:w.makeArray(n,[e]),h=w.event.special[y]||{},o||!h.trigger||!1!==h.trigger.apply(i,n))){if(!o&&!h.noBubble&&!m(i)){for(l=h.delegateType||y,ye.test(l+y)||(a=a.parentNode);a;a=a.parentNode)v.push(a),s=a;s===(i.ownerDocument||g)&&v.push(s.defaultView||s.parentWindow||t)}for(r=0;(a=v[r++])&&!e.isPropagationStopped();)p=a,e.type=r>1?l:h.bindType||y,(d=(G.get(a,"events")||Object.create(null))[e.type]&&G.get(a,"handle"))&&d.apply(a,n),(d=c&&a[c])&&d.apply&&Z(a)&&(e.result=d.apply(a,n),!1===e.result&&e.preventDefault());return e.type=y,o||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(v.pop(),n)||!Z(i)||c&&f(i[y])&&!m(i)&&((s=i[c])&&(i[c]=null),w.event.triggered=y,e.isPropagationStopped()&&p.addEventListener(y,_e),i[y](),e.isPropagationStopped()&&p.removeEventListener(y,_e),w.event.triggered=void 0,s&&(i[c]=s)),e.result}},simulate:function(t,e,n){var i=w.extend(new w.Event,n,{type:t,isSimulated:!0});w.event.trigger(i,null,e)}}),w.fn.extend({trigger:function(t,e){return this.each((function(){w.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return w.event.trigger(t,e,n,!0)}}),p.focusin||w.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){w.event.simulate(e,t.target,w.event.fix(t))};w.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,o=G.access(i,e);o||i.addEventListener(t,n,!0),G.access(i,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=G.access(i,e)-1;o?G.access(i,e,o):(i.removeEventListener(t,n,!0),G.remove(i,e))}}}));var be=t.location,we={guid:Date.now()},xe=/\?/;w.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||w.error("Invalid XML: "+(i?w.map(i.childNodes,(function(t){return t.textContent})).join("\n"):e)),n};var Te=/\[\]$/,Ce=/\r?\n/g,Se=/^(?:submit|button|image|reset|file)$/i,Ee=/^(?:input|select|textarea|keygen)/i;function De(t,e,n,i){var o;if(Array.isArray(e))w.each(e,(function(e,o){n||Te.test(t)?i(t,o):De(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,i)}));else if(n||"object"!==_(e))i(t,e);else for(o in e)De(t+"["+o+"]",e[o],n,i)}w.param=function(t,e){var n,i=[],o=function(t,e){var n=f(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!w.isPlainObject(t))w.each(t,(function(){o(this.name,this.value)}));else for(n in t)De(n,t[n],e,o);return i.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")&&Ee.test(this.nodeName)&&!Se.test(t)&&(this.checked||!pt.test(t))})).map((function(t,e){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,(function(t){return{name:e.name,value:t.replace(Ce,"\r\n")}})):{name:e.name,value:n.replace(Ce,"\r\n")}})).get()}});var ke=/%20/g,Ae=/#.*$/,Me=/([?&])_=[^&]*/,Le=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pe=/^(?:GET|HEAD)$/,Oe=/^\/\//,Ie={},Ne={},ze="*/".concat("*"),je=g.createElement("a");function Be(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,r=e.toLowerCase().match(N)||[];if(f(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Re(t,e,n,i){var o={},r=t===Ne;function a(s){var l;return o[s]=!0,w.each(t[s]||[],(function(t,s){var c=s(e,n,i);return"string"!=typeof c||r||o[c]?r?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),l}return a(e.dataTypes[0])||!o["*"]&&a("*")}function He(t,e){var n,i,o=w.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&w.extend(!0,t,i),t}je.href=be.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:be.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(be.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ze,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?He(He(t,w.ajaxSettings),e):He(w.ajaxSettings,t)},ajaxPrefilter:Be(Ie),ajaxTransport:Be(Ne),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0),n=n||{};var i,o,r,a,s,l,c,u,d,h,p=w.ajaxSetup({},n),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?w(f):w.event,v=w.Deferred(),y=w.Callbacks("once memory"),_=p.statusCode||{},b={},x={},T="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Le.exec(r);)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?r: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)C.always(t[C.status]);else for(e in t)_[e]=[_[e],t[e]];return this},abort:function(t){var e=t||T;return i&&i.abort(e),S(0,e),this}};if(v.promise(C),p.url=((e||p.url||be.href)+"").replace(Oe,be.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(N)||[""],null==p.crossDomain){l=g.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=je.protocol+"//"+je.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=w.param(p.data,p.traditional)),Re(Ie,p,n,C),c)return C;for(d in(u=w.event&&p.global)&&0==w.active++&&w.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Pe.test(p.type),o=p.url.replace(Ae,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(ke,"+")):(h=p.url.slice(o.length),p.data&&(p.processData||"string"==typeof p.data)&&(o+=(xe.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(Me,"$1"),h=(xe.test(o)?"&":"?")+"_="+we.guid+++h),p.url=o+h),p.ifModified&&(w.lastModified[o]&&C.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&C.setRequestHeader("If-None-Match",w.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+ze+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,C,p)||c))return C.abort();if(T="abort",y.add(p.complete),C.done(p.success),C.fail(p.error),i=Re(Ne,p,n,C)){if(C.readyState=1,u&&m.trigger("ajaxSend",[C,p]),c)return C;p.async&&p.timeout>0&&(s=t.setTimeout((function(){C.abort("timeout")}),p.timeout));try{c=!1,i.send(b,S)}catch(t){if(c)throw t;S(-1,t)}}else S(-1,"No Transport");function S(e,n,a,l){var d,h,g,b,x,T=n;c||(c=!0,s&&t.clearTimeout(s),i=void 0,r=l||"",C.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(b=function(t,e,n){for(var i,o,r,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in s)if(s[o]&&s[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}a||(a=o)}r=r||a}if(r)return r!==l[0]&&l.unshift(r),n[r]}(p,C,a)),!d&&w.inArray("script",p.dataTypes)>-1&&w.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),b=function(t,e,n,i){var o,r,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(r=u.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=c[l+" "+r]||c["* "+r]))for(o in c)if((s=o.split(" "))[1]===r&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(r=s[0],u.unshift(s[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 "+r}}}return{state:"success",data:e}}(p,b,C,d),d?(p.ifModified&&((x=C.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=x),(x=C.getResponseHeader("etag"))&&(w.etag[o]=x)),204===e||"HEAD"===p.type?T="nocontent":304===e?T="notmodified":(T=b.state,h=b.data,d=!(g=b.error))):(g=T,!e&&T||(T="error",e<0&&(e=0))),C.status=e,C.statusText=(n||T)+"",d?v.resolveWith(f,[h,T,C]):v.rejectWith(f,[C,T,g]),C.statusCode(_),_=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[C,p,d?h:g]),y.fireWith(f,[C,T]),u&&(m.trigger("ajaxComplete",[C,p]),--w.active||w.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return w.get(t,e,n,"json")},getScript:function(t,e){return w.get(t,void 0,e,"script")}}),w.each(["get","post"],(function(t,e){w[e]=function(t,n,i,o){return f(n)&&(o=o||i,i=n,n=void 0),w.ajax(w.extend({url:t,type:e,dataType:o,data:n,success:i},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,n){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,n)}})},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),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=f(t);return this.each((function(n){w(this).wrapAll(e?t.call(this,n):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 $e={0:200,1223:204},Fe=w.ajaxSettings.xhr();p.cors=!!Fe&&"withCredentials"in Fe,p.ajax=Fe=!!Fe,w.ajaxTransport((function(e){var n,i;if(p.cors||Fe&&!e.crossDomain)return{send:function(o,r){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);n=function(t){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r($e[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout((function(){n&&i()}))},n=n("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}})),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,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,o){e=w("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),g.head.appendChild(e[0])},abort:function(){n&&n()}}}));var We,qe=[],Ve=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=qe.pop()||w.expando+"_"+we.guid++;return this[t]=!0,t}}),w.ajaxPrefilter("json jsonp",(function(e,n,i){var o,r,a,s=!1!==e.jsonp&&(Ve.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ve.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=f(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Ve,"$1"+o):!1!==e.jsonp&&(e.url+=(xe.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||w.error(o+" was not called"),a[0]},e.dataTypes[0]="json",r=t[o],t[o]=function(){a=arguments},i.always((function(){void 0===r?w(t).removeProp(o):t[o]=r,e[o]&&(e.jsonpCallback=n.jsonpCallback,qe.push(o)),a&&f(r)&&r(a[0]),a=r=void 0})),"script"})),p.createHTMLDocument=((We=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===We.childNodes.length),w.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(p.createHTMLDocument?((i=(e=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,e.head.appendChild(i)):e=g),r=!n&&[],(o=k.exec(t))?[e.createElement(o[1])]:(o=bt([t],e,r),r&&r.length&&w(r).remove(),w.merge([],o.childNodes)));var i,o,r},w.fn.load=function(t,e,n){var i,o,r,a=this,s=t.indexOf(" ");return s>-1&&(i=fe(t.slice(s)),t=t.slice(0,s)),f(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),a.length>0&&w.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done((function(t){r=arguments,a.html(i?w("<div>").append(w.parseHTML(t)).find(i):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,r||[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,n){var i,o,r,a,s,l,c=w.css(t,"position"),u=w(t),d={};"static"===c&&(t.style.position="relative"),s=u.offset(),r=w.css(t,"top"),l=w.css(t,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(a=(i=u.position()).top,o=i.left):(a=parseFloat(r)||0,o=parseFloat(l)||0),f(e)&&(e=e.call(t,n,w.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+o),"using"in e?e.using.call(t,d):u.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,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],o={top:0,left:0};if("fixed"===w.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===w.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((o=w(t).offset()).top+=w.css(t,"borderTopWidth",!0),o.left+=w.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-w.css(i,"marginTop",!0),left:e.left-o.left-w.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===w.css(t,"position");)t=t.offsetParent;return t||it}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;w.fn[t]=function(i){return F(this,(function(t,i,o){var r;if(m(t)?r=t:9===t.nodeType&&(r=t.defaultView),void 0===o)return r?r[e]:t[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):t[i]=o}),t,i,arguments.length)}})),w.each(["top","left"],(function(t,e){w.cssHooks[e]=Ft(p.pixelPosition,(function(t,n){if(n)return n=$t(t,e),jt.test(n)?w(t).position()[e]+"px":n}))})),w.each({Height:"height",Width:"width"},(function(t,e){w.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){w.fn[i]=function(o,r){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===r?"margin":"border");return F(this,(function(e,n,o){var r;return m(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===o?w.css(e,n,s):w.style(e,n,o,s)}),e,a?o:void 0,a)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){w.fn[e]=function(t){return this.on(e,t)}})),w.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},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,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var Ye=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),f(t))return i=o.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(o.call(arguments)))}).guid=t.guid=t.guid||w.guid++,r},w.holdReady=function(t){t?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=D,w.isFunction=f,w.isWindow=m,w.camelCase=Y,w.type=_,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(Ye,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return w}));var Ze=t.jQuery,Ue=t.$;return w.noConflict=function(e){return t.$===w&&(t.$=Ue),e&&t.jQuery===w&&(t.jQuery=Ze),w},void 0===e&&(t.jQuery=t.$=w),w})),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).Popper={})}(this,(function(t){function e(t){return{width:(t=t.getBoundingClientRect()).width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function n(t){return null==t?window:"[object Window]"!==t.toString()?(t=t.ownerDocument)&&t.defaultView||window:t}function i(t){return{scrollLeft:(t=n(t)).pageXOffset,scrollTop:t.pageYOffset}}function o(t){return t instanceof n(t).Element||t instanceof Element}function r(t){return t instanceof n(t).HTMLElement||t instanceof HTMLElement}function a(t){return"undefined"!=typeof ShadowRoot&&(t instanceof n(t).ShadowRoot||t instanceof ShadowRoot)}function s(t){return t?(t.nodeName||"").toLowerCase():null}function l(t){return((o(t)?t.ownerDocument:t.document)||window.document).documentElement}function c(t){return e(l(t)).left+i(t).scrollLeft}function u(t){return n(t).getComputedStyle(t)}function d(t){return t=u(t),/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function h(t,o,a){void 0===a&&(a=!1);var u=l(o);t=e(t);var h=r(o),p={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(h||!h&&!a)&&(("body"!==s(o)||d(u))&&(p=o!==n(o)&&r(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:i(o)),r(o)?((f=e(o)).x+=o.clientLeft,f.y+=o.clientTop):u&&(f.x=c(u))),{x:t.left+p.scrollLeft-f.x,y:t.top+p.scrollTop-f.y,width:t.width,height:t.height}}function p(t){var n=e(t),i=t.offsetWidth,o=t.offsetHeight;return 1>=Math.abs(n.width-i)&&(i=n.width),1>=Math.abs(n.height-o)&&(o=n.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:o}}function f(t){return"html"===s(t)?t:t.assignedSlot||t.parentNode||(a(t)?t.host:null)||l(t)}function m(t){return 0<=["html","body","#document"].indexOf(s(t))?t.ownerDocument.body:r(t)&&d(t)?t:m(f(t))}function g(t,e){var i;void 0===e&&(e=[]);var o=m(t);return t=o===(null==(i=t.ownerDocument)?void 0:i.body),i=n(o),o=t?[i].concat(i.visualViewport||[],d(o)?o:[]):o,e=e.concat(o),t?e:e.concat(g(f(o)))}function v(t){return r(t)&&"fixed"!==u(t).position?t.offsetParent:null}function y(t){for(var e=n(t),i=v(t);i&&0<=["table","td","th"].indexOf(s(i))&&"static"===u(i).position;)i=v(i);if(i&&("html"===s(i)||"body"===s(i)&&"static"===u(i).position))return e;if(!i)t:{if(i=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),-1===navigator.userAgent.indexOf("Trident")||!r(t)||"fixed"!==u(t).position)for(t=f(t);r(t)&&0>["html","body"].indexOf(s(t));){var o=u(t);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||i&&"filter"===o.willChange||i&&o.filter&&"none"!==o.filter){i=t;break t}t=t.parentNode}i=null}return i||e}function _(t){function e(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){i.has(t)||(t=n.get(t))&&e(t)})),o.push(t)}var n=new Map,i=new Set,o=[];return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||e(t)})),o}function b(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}function w(t){return t.split("-")[0]}function x(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&a(n))do{if(e&&t.isSameNode(e))return!0;e=e.parentNode||e.host}while(e);return!1}function T(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function C(t,o){if("viewport"===o){o=n(t);var a=l(t);o=o.visualViewport;var s=a.clientWidth;a=a.clientHeight;var d=0,h=0;o&&(s=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(d=o.offsetLeft,h=o.offsetTop)),t=T(t={width:s,height:a,x:d+c(t),y:h})}else r(o)?((t=e(o)).top+=o.clientTop,t.left+=o.clientLeft,t.bottom=t.top+o.clientHeight,t.right=t.left+o.clientWidth,t.width=o.clientWidth,t.height=o.clientHeight,t.x=t.left,t.y=t.top):(h=l(t),t=l(h),s=i(h),o=null==(a=h.ownerDocument)?void 0:a.body,a=F(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),d=F(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),h=-s.scrollLeft+c(h),s=-s.scrollTop,"rtl"===u(o||t).direction&&(h+=F(t.clientWidth,o?o.clientWidth:0)-a),t=T({width:a,height:d,x:h,y:s}));return t}function S(t,e,n){return e="clippingParents"===e?function(t){var e=g(f(t)),n=0<=["absolute","fixed"].indexOf(u(t).position)&&r(t)?y(t):t;return o(n)?e.filter((function(t){return o(t)&&x(t,n)&&"body"!==s(t)})):[]}(t):[].concat(e),(n=(n=[].concat(e,[n])).reduce((function(e,n){return n=C(t,n),e.top=F(n.top,e.top),e.right=W(n.right,e.right),e.bottom=W(n.bottom,e.bottom),e.left=F(n.left,e.left),e}),C(t,n[0]))).width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}function E(t){return 0<=["top","bottom"].indexOf(t)?"x":"y"}function D(t){var e=t.reference,n=t.element,i=(t=t.placement)?w(t):null;t=t?t.split("-")[1]:null;var o=e.x+e.width/2-n.width/2,r=e.y+e.height/2-n.height/2;switch(i){case"top":o={x:o,y:e.y-n.height};break;case"bottom":o={x:o,y:e.y+e.height};break;case"right":o={x:e.x+e.width,y:r};break;case"left":o={x:e.x-n.width,y:r};break;default:o={x:e.x,y:e.y}}if(null!=(i=i?E(i):null))switch(r="y"===i?"height":"width",t){case"start":o[i]-=e[r]/2-n[r]/2;break;case"end":o[i]+=e[r]/2-n[r]/2}return o}function k(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function A(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function M(t,n){void 0===n&&(n={});var i=n;n=void 0===(n=i.placement)?t.placement:n;var r=i.boundary,a=void 0===r?"clippingParents":r,s=void 0===(r=i.rootBoundary)?"viewport":r;r=void 0===(r=i.elementContext)?"popper":r;var c=i.altBoundary,u=void 0!==c&&c;i=k("number"!=typeof(i=void 0===(i=i.padding)?0:i)?i:A(i,B));var d=t.elements.reference;c=t.rects.popper,a=S(o(u=t.elements[u?"popper"===r?"reference":"popper":r])?u:u.contextElement||l(t.elements.popper),a,s),u=D({reference:s=e(d),element:c,strategy:"absolute",placement:n}),c=T(Object.assign({},c,u)),s="popper"===r?c:s;var h={top:a.top-s.top+i.top,bottom:s.bottom-a.bottom+i.bottom,left:a.left-s.left+i.left,right:s.right-a.right+i.right};if(t=t.modifiersData.offset,"popper"===r&&t){var p=t[n];Object.keys(h).forEach((function(t){var e=0<=["right","bottom"].indexOf(t)?1:-1,n=0<=["top","bottom"].indexOf(t)?"y":"x";h[t]+=p[n]*e}))}return h}function L(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function P(t){void 0===t&&(t={});var e=t.defaultModifiers,n=void 0===e?[]:e,i=void 0===(t=t.defaultOptions)?V:t;return function(t,e,r){function a(){l.forEach((function(t){return t()})),l=[]}void 0===r&&(r=i);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},V,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){return a(),s.options=Object.assign({},i,s.options,r),s.scrollParents={reference:o(t)?g(t):t.contextElement?g(t.contextElement):[],popper:g(e)},r=function(t){var e=_(t);return $.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}(function(t){var e=t.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(n,s.options.modifiers))),s.orderedModifiers=r.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.name,n=t.options;n=void 0===n?{}:n,"function"==typeof(t=t.effect)&&(e=t({state:s,name:e,instance:u,options:n}),l.push(e||function(){}))})),u.update()},forceUpdate:function(){if(!c){var t=s.elements,e=t.reference;if(L(e,t=t.popper))for(s.rects={reference:h(e,y(t),"fixed"===s.options.strategy),popper:p(t)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)})),e=0;e<s.orderedModifiers.length;e++)if(!0===s.reset)s.reset=!1,e=-1;else{var n=s.orderedModifiers[e];t=n.fn;var i=n.options;i=void 0===i?{}:i,n=n.name,"function"==typeof t&&(s=t({state:s,options:i,name:n,instance:u})||s)}}},update:b((function(){return new Promise((function(t){u.forceUpdate(),t(s)}))})),destroy:function(){a(),c=!0}};return L(t,e)?(u.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),u):u}}function O(t){var e,i=t.popper,o=t.popperRect,r=t.placement,a=t.offsets,s=t.position,c=t.gpuAcceleration,d=t.adaptive;if(!0===(t=t.roundOffsets)){t=a.y;var h=window.devicePixelRatio||1;t={x:q(q(a.x*h)/h)||0,y:q(q(t*h)/h)||0}}else t="function"==typeof t?t(a):a;t=void 0===(t=(h=t).x)?0:t,h=void 0===(h=h.y)?0:h;var p=a.hasOwnProperty("x");a=a.hasOwnProperty("y");var f,m="left",g="top",v=window;if(d){var _=y(i),b="clientHeight",w="clientWidth";_===n(i)&&"static"!==u(_=l(i)).position&&(b="scrollHeight",w="scrollWidth"),"top"===r&&(g="bottom",h-=_[b]-o.height,h*=c?1:-1),"left"===r&&(m="right",t-=_[w]-o.width,t*=c?1:-1)}return i=Object.assign({position:s},d&&G),c?Object.assign({},i,((f={})[g]=a?"0":"",f[m]=p?"0":"",f.transform=2>(v.devicePixelRatio||1)?"translate("+t+"px, "+h+"px)":"translate3d("+t+"px, "+h+"px, 0)",f)):Object.assign({},i,((e={})[g]=a?h+"px":"",e[m]=p?t+"px":"",e.transform="",e))}function I(t){return t.replace(/left|right|bottom|top/g,(function(t){return Q[t]}))}function N(t){return t.replace(/start|end/g,(function(t){return tt[t]}))}function z(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function j(t){return["top","right","bottom","left"].some((function(e){return 0<=t[e]}))}var B=["top","bottom","right","left"],R=B.reduce((function(t,e){return t.concat([e+"-start",e+"-end"])}),[]),H=[].concat(B,["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),$="beforeRead read afterRead beforeMain main afterMain beforeWrite write afterWrite".split(" "),F=Math.max,W=Math.min,q=Math.round,V={placement:"bottom",modifiers:[],strategy:"absolute"},Y={passive:!0},Z={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,o=(t=t.options).scroll,r=void 0===o||o,a=void 0===(t=t.resize)||t,s=n(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&l.forEach((function(t){t.addEventListener("scroll",i.update,Y)})),a&&s.addEventListener("resize",i.update,Y),function(){r&&l.forEach((function(t){t.removeEventListener("scroll",i.update,Y)})),a&&s.removeEventListener("resize",i.update,Y)}},data:{}},U={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=D({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},G={top:"auto",right:"auto",bottom:"auto",left:"auto"},X={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options;t=void 0===(t=n.gpuAcceleration)||t;var i=n.adaptive;i=void 0===i||i,n=void 0===(n=n.roundOffsets)||n,t={placement:w(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:t},null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,O(Object.assign({},t,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:n})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,O(Object.assign({},t,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:n})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},K={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];r(o)&&s(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],o=e.attributes[t]||{};t=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{}),r(i)&&s(i)&&(Object.assign(i.style,t),Object.keys(o).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]},J={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.name,i=void 0===(t=t.options.offset)?[0,0]:t,o=(t=H.reduce((function(t,n){var o=e.rects,r=w(n),a=0<=["left","top"].indexOf(r)?-1:1,s="function"==typeof i?i(Object.assign({},o,{placement:n})):i;return o=(o=s[0])||0,s=((s=s[1])||0)*a,r=0<=["left","right"].indexOf(r)?{x:s,y:o}:{x:o,y:s},t[n]=r,t}),{}))[e.placement],r=o.x;o=o.y,null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=r,e.modifiersData.popperOffsets.y+=o),e.modifiersData[n]=t}},Q={left:"right",right:"left",bottom:"top",top:"bottom"},tt={start:"end",end:"start"},et={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options;if(t=t.name,!e.modifiersData[t]._skip){var i=n.mainAxis;i=void 0===i||i;var o=n.altAxis;o=void 0===o||o;var r=n.fallbackPlacements,a=n.padding,s=n.boundary,l=n.rootBoundary,c=n.altBoundary,u=n.flipVariations,d=void 0===u||u,h=n.allowedAutoPlacements;u=w(n=e.options.placement),r=r||(u!==n&&d?function(t){if("auto"===w(t))return[];var e=I(t);return[N(t),e,N(e)]}(n):[I(n)]);var p=[n].concat(r).reduce((function(t,n){return t.concat("auto"===w(n)?function(t,e){void 0===e&&(e={});var n=e.boundary,i=e.rootBoundary,o=e.padding,r=e.flipVariations,a=e.allowedAutoPlacements,s=void 0===a?H:a,l=e.placement.split("-")[1];0===(r=(e=l?r?R:R.filter((function(t){return t.split("-")[1]===l})):B).filter((function(t){return 0<=s.indexOf(t)}))).length&&(r=e);var c=r.reduce((function(e,r){return e[r]=M(t,{placement:r,boundary:n,rootBoundary:i,padding:o})[w(r)],e}),{});return Object.keys(c).sort((function(t,e){return c[t]-c[e]}))}(e,{placement:n,boundary:s,rootBoundary:l,padding:a,flipVariations:d,allowedAutoPlacements:h}):n)}),[]);n=e.rects.reference,r=e.rects.popper;var f=new Map;u=!0;for(var m=p[0],g=0;g<p.length;g++){var v=p[g],y=w(v),_="start"===v.split("-")[1],b=0<=["top","bottom"].indexOf(y),x=b?"width":"height",T=M(e,{placement:v,boundary:s,rootBoundary:l,altBoundary:c,padding:a});if(_=b?_?"right":"left":_?"bottom":"top",n[x]>r[x]&&(_=I(_)),x=I(_),b=[],i&&b.push(0>=T[y]),o&&b.push(0>=T[_],0>=T[x]),b.every((function(t){return t}))){m=v,u=!1;break}f.set(v,b)}if(u)for(i=function(t){var e=p.find((function(e){if(e=f.get(e))return e.slice(0,t).every((function(t){return t}))}));if(e)return m=e,"break"},o=d?3:1;0<o&&"break"!==i(o);o--);e.placement!==m&&(e.modifiersData[t]._skip=!0,e.placement=m,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},nt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options;t=t.name;var i=n.mainAxis,o=void 0===i||i,r=void 0!==(i=n.altAxis)&&i;i=void 0===(i=n.tether)||i;var a=n.tetherOffset,s=void 0===a?0:a,l=M(e,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary});n=w(e.placement);var c=e.placement.split("-")[1],u=!c,d=E(n);n="x"===d?"y":"x",a=e.modifiersData.popperOffsets;var h=e.rects.reference,f=e.rects.popper,m="function"==typeof s?s(Object.assign({},e.rects,{placement:e.placement})):s;if(s={x:0,y:0},a){if(o||r){var g="y"===d?"top":"left",v="y"===d?"bottom":"right",_="y"===d?"height":"width",b=a[d],x=a[d]+l[g],T=a[d]-l[v],C=i?-f[_]/2:0,S="start"===c?h[_]:f[_];c="start"===c?-f[_]:-h[_],f=e.elements.arrow,f=i&&f?p(f):{width:0,height:0};var D=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0};g=D[g],v=D[v],f=F(0,W(h[_],f[_])),S=u?h[_]/2-C-f-g-m:S-f-g-m,h=u?-h[_]/2+C+f+v+m:c+f+v+m,u=e.elements.arrow&&y(e.elements.arrow),m=e.modifiersData.offset?e.modifiersData.offset[e.placement][d]:0,u=a[d]+S-m-(u?"y"===d?u.clientTop||0:u.clientLeft||0:0),h=a[d]+h-m,o&&(o=i?W(x,u):x,T=i?F(T,h):T,o=F(o,W(b,T)),a[d]=o,s[d]=o-b),r&&(o=(r=a[n])+l["x"===d?"top":"left"],l=r-l["x"===d?"bottom":"right"],o=i?W(o,u):o,i=i?F(l,h):l,i=F(o,W(r,i)),a[n]=i,s[n]=i-r)}e.modifiersData[t]=s}},requiresIfExists:["offset"]},it={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=t.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,s=w(n.placement);if(t=E(s),s=0<=["left","right"].indexOf(s)?"height":"width",r&&a){o=k("number"!=typeof(o="function"==typeof(o=o.padding)?o(Object.assign({},n.rects,{placement:n.placement})):o)?o:A(o,B));var l=p(r),c="y"===t?"top":"left",u="y"===t?"bottom":"right",d=n.rects.reference[s]+n.rects.reference[t]-a[t]-n.rects.popper[s];a=a[t]-n.rects.reference[t],a=(r=(r=y(r))?"y"===t?r.clientHeight||0:r.clientWidth||0:0)/2-l[s]/2+(d/2-a/2),s=F(o[c],W(a,r-l[s]-o[u])),n.modifiersData[i]=((e={})[t]=s,e.centerOffset=s-a,e)}},effect:function(t){var e=t.state;if(null!=(t=void 0===(t=t.options.element)?"[data-popper-arrow]":t)){if("string"==typeof t&&!(t=e.elements.popper.querySelector(t)))return;x(e.elements.popper,t)&&(e.elements.arrow=t)}},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},ot={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state;t=t.name;var n=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,r=M(e,{elementContext:"reference"}),a=M(e,{altBoundary:!0});n=z(r,n),i=z(a,i,o),o=j(n),a=j(i),e.modifiersData[t]={referenceClippingOffsets:n,popperEscapeOffsets:i,isReferenceHidden:o,hasPopperEscaped:a},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":o,"data-popper-escaped":a})}},rt=P({defaultModifiers:[Z,U,X,K]}),at=[Z,U,X,K,J,et,nt,it,ot],st=P({defaultModifiers:at});t.applyStyles=K,t.arrow=it,t.computeStyles=X,t.createPopper=st,t.createPopperLite=rt,t.defaultModifiers=at,t.detectOverflow=M,t.eventListeners=Z,t.flip=et,t.hide=ot,t.offset=J,t.popperGenerator=P,t.popperOffsets=U,t.preventOverflow=nt,Object.defineProperty(t,"__esModule",{value:!0})})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper)}(this,(function(t){"use strict";var e=function(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}(t);const n={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const n=[];let i=t.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)i.matches(e)&&n.push(i),i=i.parentNode;return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]}},i=t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},o=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#"+n.split("#")[1]),e=n&&"#"!==n?n.trim():null}return e},r=t=>{const e=o(t);return e&&document.querySelector(e)?e:null},a=t=>{const e=o(t);return e?document.querySelector(e):null},s=t=>{t.dispatchEvent(new Event("transitionend"))},l=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),c=t=>l(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?n.findOne(t):null,u=(t,e,n)=>{Object.keys(n).forEach((i=>{const o=n[i],r=e[i],a=r&&l(r)?"element":null==(s=r)?""+s:{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();var s;if(!new RegExp(o).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${i}" provided type "${a}" but expected type "${o}".`)}))},d=t=>!(!l(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),h=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),p=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?p(t.parentNode):null},f=()=>{},m=t=>t.offsetHeight,g=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},v=[],y=()=>"rtl"===document.documentElement.dir,_=t=>{var e;e=()=>{const e=g();if(e){const n=t.NAME,i=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=i,t.jQueryInterface)}},"loading"===document.readyState?(v.length||document.addEventListener("DOMContentLoaded",(()=>{v.forEach((t=>t()))})),v.push(e)):e()},b=t=>{"function"==typeof t&&t()},w=(t,e,n=!0)=>{if(!n)return void b(t);const i=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const i=Number.parseFloat(e),o=Number.parseFloat(n);return i||o?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(e)+5;let o=!1;const r=({target:n})=>{n===e&&(o=!0,e.removeEventListener("transitionend",r),b(t))};e.addEventListener("transitionend",r),setTimeout((()=>{o||s(e)}),i)},x=(t,e,n,i)=>{let o=t.indexOf(e);if(-1===o)return t[!n&&i?t.length-1:0];const r=t.length;return o+=n?1:-1,i&&(o=(o+r)%r),t[Math.max(0,Math.min(o,r-1))]},T=/[^.]*(?=\..*)\.|.*/,C=/\..*/,S=/::\d+$/,E={};let D=1;const k={mouseenter:"mouseover",mouseleave:"mouseout"},A=/^(mouseenter|mouseleave)/i,M=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function L(t,e){return e&&`${e}::${D++}`||t.uidEvent||D++}function P(t){const e=L(t);return t.uidEvent=e,E[e]=E[e]||{},E[e]}function O(t,e,n=null){const i=Object.keys(t);for(let o=0,r=i.length;o<r;o++){const r=t[i[o]];if(r.originalHandler===e&&r.delegationSelector===n)return r}return null}function I(t,e,n){const i="string"==typeof e,o=i?n:e;let r=j(t);return M.has(r)||(r=t),[i,o,r]}function N(t,e,n,i,o){if("string"!=typeof e||!t)return;if(n||(n=i,i=null),A.test(e)){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};i?i=t(i):n=t(n)}const[r,a,s]=I(e,n,i),l=P(t),c=l[s]||(l[s]={}),u=O(c,a,r?n:null);if(u)return void(u.oneOff=u.oneOff&&o);const d=L(a,e.replace(T,"")),h=r?function(t,e,n){return function i(o){const r=t.querySelectorAll(e);for(let{target:a}=o;a&&a!==this;a=a.parentNode)for(let s=r.length;s--;)if(r[s]===a)return o.delegateTarget=a,i.oneOff&&B.off(t,o.type,e,n),n.apply(a,[o]);return null}}(t,n,i):function(t,e){return function n(i){return i.delegateTarget=t,n.oneOff&&B.off(t,i.type,e),e.apply(t,[i])}}(t,n);h.delegationSelector=r?n:null,h.originalHandler=a,h.oneOff=o,h.uidEvent=d,c[d]=h,t.addEventListener(s,h,r)}function z(t,e,n,i,o){const r=O(e[n],i,o);r&&(t.removeEventListener(n,r,Boolean(o)),delete e[n][r.uidEvent])}function j(t){return t=t.replace(C,""),k[t]||t}const B={on(t,e,n,i){N(t,e,n,i,!1)},one(t,e,n,i){N(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const[o,r,a]=I(e,n,i),s=a!==e,l=P(t),c=e.startsWith(".");if(void 0!==r){if(!l||!l[a])return;return void z(t,l,a,r,o?n:null)}c&&Object.keys(l).forEach((n=>{!function(t,e,n,i){const o=e[n]||{};Object.keys(o).forEach((r=>{if(r.includes(i)){const i=o[r];z(t,e,n,i.originalHandler,i.delegationSelector)}}))}(t,l,n,e.slice(1))}));const u=l[a]||{};Object.keys(u).forEach((n=>{const i=n.replace(S,"");if(!s||e.includes(i)){const e=u[n];z(t,l,a,e.originalHandler,e.delegationSelector)}}))},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=g(),o=j(e),r=e!==o,a=M.has(o);let s,l=!0,c=!0,u=!1,d=null;return r&&i&&(s=i.Event(e,n),i(t).trigger(s),l=!s.isPropagationStopped(),c=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented()),a?(d=document.createEvent("HTMLEvents"),d.initEvent(o,l,!0)):d=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((t=>{Object.defineProperty(d,t,{get:()=>n[t]})})),u&&d.preventDefault(),c&&t.dispatchEvent(d),d.defaultPrevented&&void 0!==s&&s.preventDefault(),d}},R=new Map;var H={set(t,e,n){R.has(t)||R.set(t,new Map);const i=R.get(t);i.has(e)||0===i.size?i.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(t,e)=>R.has(t)&&R.get(t).get(e)||null,remove(t,e){if(!R.has(t))return;const n=R.get(t);n.delete(e),0===n.size&&R.delete(t)}};class ${constructor(t){(t=c(t))&&(this._element=t,H.set(this._element,this.constructor.DATA_KEY,this))}dispose(){H.remove(this._element,this.constructor.DATA_KEY),B.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((t=>{this[t]=null}))}_queueCallback(t,e,n=!0){w(t,e,n)}static getInstance(t){return H.get(t,this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.0.2"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}}class F extends ${static get NAME(){return"alert"}close(t){const e=t?this._getRootElement(t):this._element,n=this._triggerCloseEvent(e);null===n||n.defaultPrevented||this._removeElement(e)}_getRootElement(t){return a(t)||t.closest(".alert")}_triggerCloseEvent(t){return B.trigger(t,"close.bs.alert")}_removeElement(t){t.classList.remove("show");const e=t.classList.contains("fade");this._queueCallback((()=>this._destroyElement(t)),t,e)}_destroyElement(t){t.remove(),B.trigger(t,"closed.bs.alert")}static jQueryInterface(t){return this.each((function(){const e=F.getOrCreateInstance(this);"close"===t&&e[t](this)}))}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}B.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',F.handleDismiss(new F)),_(F);class W extends ${static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=W.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}function q(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function V(t){return t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()))}B.on(document,"click.bs.button.data-api",'[data-bs-toggle="button"]',(t=>{t.preventDefault();const e=t.target.closest('[data-bs-toggle="button"]');W.getOrCreateInstance(e).toggle()})),_(W);const Y={setDataAttribute(t,e,n){t.setAttribute("data-bs-"+V(e),n)},removeDataAttribute(t,e){t.removeAttribute("data-bs-"+V(e))},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter((t=>t.startsWith("bs"))).forEach((n=>{let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=q(t.dataset[n])})),e},getDataAttribute:(t,e)=>q(t.getAttribute("data-bs-"+V(e))),offset(t){const e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},Z={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},U={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},G="next",X="prev",K="left",J="right",Q={ArrowLeft:J,ArrowRight:K};class tt extends ${constructor(t,e){super(t),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._indicatorsElement=n.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return Z}static get NAME(){return"carousel"}next(){this._slide(G)}nextWhenVisible(){!document.hidden&&d(this._element)&&this.next()}prev(){this._slide(X)}pause(t){t||(this._isPaused=!0),n.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(s(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=n.findOne(".active.carousel-item",this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void B.one(this._element,"slid.bs.carousel",(()=>this.to(t)));if(e===t)return this.pause(),void this.cycle();const i=t>e?G:X;this._slide(i,this._items[t])}_getConfig(t){return t={...Z,...Y.getDataAttributes(this._element),..."object"==typeof t?t:{}},u("carousel",t,U),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?J:K)}_addEventListeners(){this._config.keyboard&&B.on(this._element,"keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&(B.on(this._element,"mouseenter.bs.carousel",(t=>this.pause(t))),B.on(this._element,"mouseleave.bs.carousel",(t=>this.cycle(t)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>{!this._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType?this._pointerEvent||(this.touchStartX=t.touches[0].clientX):this.touchStartX=t.clientX},e=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},i=t=>{!this._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType||(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((t=>this.cycle(t)),500+this._config.interval))};n.find(".carousel-item img",this._element).forEach((t=>{B.on(t,"dragstart.bs.carousel",(t=>t.preventDefault()))})),this._pointerEvent?(B.on(this._element,"pointerdown.bs.carousel",(e=>t(e))),B.on(this._element,"pointerup.bs.carousel",(t=>i(t))),this._element.classList.add("pointer-event")):(B.on(this._element,"touchstart.bs.carousel",(e=>t(e))),B.on(this._element,"touchmove.bs.carousel",(t=>e(t))),B.on(this._element,"touchend.bs.carousel",(t=>i(t))))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=Q[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?n.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const n=t===G;return x(this._items,e,n,this._config.wrap)}_triggerSlideEvent(t,e){const i=this._getItemIndex(t),o=this._getItemIndex(n.findOne(".active.carousel-item",this._element));return B.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:o,to:i})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=n.findOne(".active",this._indicatorsElement);e.classList.remove("active"),e.removeAttribute("aria-current");const i=n.find("[data-bs-target]",this._indicatorsElement);for(let e=0;e<i.length;e++)if(Number.parseInt(i[e].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){i[e].classList.add("active"),i[e].setAttribute("aria-current","true");break}}}_updateInterval(){const t=this._activeElement||n.findOne(".active.carousel-item",this._element);if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){const i=this._directionToOrder(t),o=n.findOne(".active.carousel-item",this._element),r=this._getItemIndex(o),a=e||this._getItemByOrder(i,o),s=this._getItemIndex(a),l=Boolean(this._interval),c=i===G,u=c?"carousel-item-start":"carousel-item-end",d=c?"carousel-item-next":"carousel-item-prev",h=this._orderToDirection(i);if(a&&a.classList.contains("active"))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(a,h).defaultPrevented)return;if(!o||!a)return;this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(a),this._activeElement=a;const p=()=>{B.trigger(this._element,"slid.bs.carousel",{relatedTarget:a,direction:h,from:r,to:s})};if(this._element.classList.contains("slide")){a.classList.add(d),m(a),o.classList.add(u),a.classList.add(u);const t=()=>{a.classList.remove(u,d),a.classList.add("active"),o.classList.remove("active",d,u),this._isSliding=!1,setTimeout(p,0)};this._queueCallback(t,o,!0)}else o.classList.remove("active"),a.classList.add("active"),this._isSliding=!1,p();l&&this.cycle()}_directionToOrder(t){return[J,K].includes(t)?y()?t===K?X:G:t===K?G:X:t}_orderToDirection(t){return[G,X].includes(t)?y()?t===X?K:J:t===X?J:K:t}static carouselInterface(t,e){const n=tt.getOrCreateInstance(t,e);let{_config:i}=n;"object"==typeof e&&(i={...i,...e});const o="string"==typeof e?e:i.slide;if("number"==typeof e)n.to(e);else if("string"==typeof o){if(void 0===n[o])throw new TypeError(`No method named "${o}"`);n[o]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}static jQueryInterface(t){return this.each((function(){tt.carouselInterface(this,t)}))}static dataApiClickHandler(t){const e=a(this);if(!e||!e.classList.contains("carousel"))return;const n={...Y.getDataAttributes(e),...Y.getDataAttributes(this)},i=this.getAttribute("data-bs-slide-to");i&&(n.interval=!1),tt.carouselInterface(e,n),i&&tt.getInstance(e).to(i),t.preventDefault()}}B.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",tt.dataApiClickHandler),B.on(window,"load.bs.carousel.data-api",(()=>{const t=n.find('[data-bs-ride="carousel"]');for(let e=0,n=t.length;e<n;e++)tt.carouselInterface(t[e],tt.getInstance(t[e]))})),_(tt);const et={toggle:!0,parent:""},nt={toggle:"boolean",parent:"(string|element)"};class it extends ${constructor(t,e){super(t),this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=n.find(`[data-bs-toggle="collapse"][href="#${this._element.id}"],[data-bs-toggle="collapse"][data-bs-target="#${this._element.id}"]`);const i=n.find('[data-bs-toggle="collapse"]');for(let t=0,e=i.length;t<e;t++){const e=i[t],o=r(e),a=n.find(o).filter((t=>t===this._element));null!==o&&a.length&&(this._selector=o,this._triggerArray.push(e))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get Default(){return et}static get NAME(){return"collapse"}toggle(){this._element.classList.contains("show")?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains("show"))return;let t,e;this._parent&&(t=n.find(".show, .collapsing",this._parent).filter((t=>"string"==typeof this._config.parent?t.getAttribute("data-bs-parent")===this._config.parent:t.classList.contains("collapse"))),0===t.length&&(t=null));const i=n.findOne(this._selector);if(t){const n=t.find((t=>i!==t));if(e=n?it.getInstance(n):null,e&&e._isTransitioning)return}if(B.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t&&t.forEach((t=>{i!==t&&it.collapseInterface(t,"hide"),e||H.set(t,"bs.collapse",null)}));const o=this._getDimension();this._element.classList.remove("collapse"),this._element.classList.add("collapsing"),this._element.style[o]=0,this._triggerArray.length&&this._triggerArray.forEach((t=>{t.classList.remove("collapsed"),t.setAttribute("aria-expanded",!0)})),this.setTransitioning(!0);const r="scroll"+(o[0].toUpperCase()+o.slice(1));this._queueCallback((()=>{this._element.classList.remove("collapsing"),this._element.classList.add("collapse","show"),this._element.style[o]="",this.setTransitioning(!1),B.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[o]=this._element[r]+"px"}hide(){if(this._isTransitioning||!this._element.classList.contains("show"))return;if(B.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",m(this._element),this._element.classList.add("collapsing"),this._element.classList.remove("collapse","show");const e=this._triggerArray.length;if(e>0)for(let t=0;t<e;t++){const e=this._triggerArray[t],n=a(e);n&&!n.classList.contains("show")&&(e.classList.add("collapsed"),e.setAttribute("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[t]="",this._queueCallback((()=>{this.setTransitioning(!1),this._element.classList.remove("collapsing"),this._element.classList.add("collapse"),B.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}setTransitioning(t){this._isTransitioning=t}_getConfig(t){return(t={...et,...t}).toggle=Boolean(t.toggle),u("collapse",t,nt),t}_getDimension(){return this._element.classList.contains("width")?"width":"height"}_getParent(){let{parent:t}=this._config;t=c(t);const e=`[data-bs-toggle="collapse"][data-bs-parent="${t}"]`;return n.find(e,t).forEach((t=>{const e=a(t);this._addAriaAndCollapsedClass(e,[t])})),t}_addAriaAndCollapsedClass(t,e){if(!t||!e.length)return;const n=t.classList.contains("show");e.forEach((t=>{n?t.classList.remove("collapsed"):t.classList.add("collapsed"),t.setAttribute("aria-expanded",n)}))}static collapseInterface(t,e){let n=it.getInstance(t);const i={...et,...Y.getDataAttributes(t),..."object"==typeof e&&e?e:{}};if(!n&&i.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(i.toggle=!1),n||(n=new it(t,i)),"string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}static jQueryInterface(t){return this.each((function(){it.collapseInterface(this,t)}))}}B.on(document,"click.bs.collapse.data-api",'[data-bs-toggle="collapse"]',(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=Y.getDataAttributes(this),i=r(this);n.find(i).forEach((t=>{const n=it.getInstance(t);let i;n?(null===n._parent&&"string"==typeof e.parent&&(n._config.parent=e.parent,n._parent=n._getParent()),i="toggle"):i=e,it.collapseInterface(t,i)}))})),_(it);const ot=new RegExp("ArrowUp|ArrowDown|Escape"),rt=y()?"top-end":"top-start",at=y()?"top-start":"top-end",st=y()?"bottom-end":"bottom-start",lt=y()?"bottom-start":"bottom-end",ct=y()?"left-start":"right-start",ut=y()?"right-start":"left-start",dt={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},ht={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class pt extends ${constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get Default(){return dt}static get DefaultType(){return ht}static get NAME(){return"dropdown"}toggle(){h(this._element)||(this._element.classList.contains("show")?this.hide():this.show())}show(){if(h(this._element)||this._menu.classList.contains("show"))return;const t=pt.getParentFromElement(this._element),n={relatedTarget:this._element};if(!B.trigger(this._element,"show.bs.dropdown",n).defaultPrevented){if(this._inNavbar)Y.setDataAttribute(this._menu,"popper","none");else{if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let n=this._element;"parent"===this._config.reference?n=t:l(this._config.reference)?n=c(this._config.reference):"object"==typeof this._config.reference&&(n=this._config.reference);const i=this._getPopperConfig(),o=i.modifiers.find((t=>"applyStyles"===t.name&&!1===t.enabled));this._popper=e.createPopper(n,this._menu,i),o&&Y.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((t=>B.on(t,"mouseover",f))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle("show"),this._element.classList.toggle("show"),B.trigger(this._element,"shown.bs.dropdown",n)}}hide(){if(h(this._element)||!this._menu.classList.contains("show"))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_addEventListeners(){B.on(this._element,"click.bs.dropdown",(t=>{t.preventDefault(),this.toggle()}))}_completeHide(t){B.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>B.off(t,"mouseover",f))),this._popper&&this._popper.destroy(),this._menu.classList.remove("show"),this._element.classList.remove("show"),this._element.setAttribute("aria-expanded","false"),Y.removeDataAttribute(this._menu,"popper"),B.trigger(this._element,"hidden.bs.dropdown",t))}_getConfig(t){if(t={...this.constructor.Default,...Y.getDataAttributes(this._element),...t},u("dropdown",t,this.constructor.DefaultType),"object"==typeof t.reference&&!l(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError("dropdown".toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');return t}_getMenuElement(){return n.next(this._element,".dropdown-menu")[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return ct;if(t.classList.contains("dropstart"))return ut;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?at:rt:e?lt:st}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const i=n.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(d);i.length&&x(i,e,"ArrowDown"===t,!i.includes(e)).focus()}static dropdownInterface(t,e){const n=pt.getOrCreateInstance(t,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}static jQueryInterface(t){return this.each((function(){pt.dropdownInterface(this,t)}))}static clearMenus(t){if(t&&(2===t.button||"keyup"===t.type&&"Tab"!==t.key))return;const e=n.find('[data-bs-toggle="dropdown"]');for(let n=0,i=e.length;n<i;n++){const i=pt.getInstance(e[n]);if(!i||!1===i._config.autoClose)continue;if(!i._element.classList.contains("show"))continue;const o={relatedTarget:i._element};if(t){const e=t.composedPath(),n=e.includes(i._menu);if(e.includes(i._element)||"inside"===i._config.autoClose&&!n||"outside"===i._config.autoClose&&n)continue;if(i._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;"click"===t.type&&(o.clickEvent=t)}i._completeHide(o)}}static getParentFromElement(t){return a(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?"Space"===t.key||"Escape"!==t.key&&("ArrowDown"!==t.key&&"ArrowUp"!==t.key||t.target.closest(".dropdown-menu")):!ot.test(t.key))return;const e=this.classList.contains("show");if(!e&&"Escape"===t.key)return;if(t.preventDefault(),t.stopPropagation(),h(this))return;const i=()=>this.matches('[data-bs-toggle="dropdown"]')?this:n.prev(this,'[data-bs-toggle="dropdown"]')[0];return"Escape"===t.key?(i().focus(),void pt.clearMenus()):"ArrowUp"===t.key||"ArrowDown"===t.key?(e||i().click(),void pt.getInstance(i())._selectMenuItem(t)):void(e&&"Space"!==t.key||pt.clearMenus())}}B.on(document,"keydown.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',pt.dataApiKeydownHandler),B.on(document,"keydown.bs.dropdown.data-api",".dropdown-menu",pt.dataApiKeydownHandler),B.on(document,"click.bs.dropdown.data-api",pt.clearMenus),B.on(document,"keyup.bs.dropdown.data-api",pt.clearMenus),B.on(document,"click.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',(function(t){t.preventDefault(),pt.dropdownInterface(this)})),_(pt);class ft{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(e=>e+t)),this._setElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight",(e=>e+t)),this._setElementAttributes(".sticky-top","marginRight",(e=>e-t))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const i=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+i)return;this._saveInitialAttribute(t,e);const o=window.getComputedStyle(t)[e];t.style[e]=n(Number.parseFloat(o))+"px"}))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight"),this._resetElementAttributes(".sticky-top","marginRight")}_saveInitialAttribute(t,e){const n=t.style[e];n&&Y.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const n=Y.getDataAttribute(t,e);void 0===n?t.style.removeProperty(e):(Y.removeDataAttribute(t,e),t.style[e]=n)}))}_applyManipulationCallback(t,e){l(t)?e(t):n.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const mt={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},gt={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"};class vt{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&m(this._getElement()),this._getElement().classList.add("show"),this._emulateAnimation((()=>{b(t)}))):b(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation((()=>{this.dispose(),b(t)}))):b(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className="modal-backdrop",this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_getConfig(t){return(t={...mt,..."object"==typeof t?t:{}}).rootElement=c(t.rootElement),u("backdrop",t,gt),t}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),B.on(this._getElement(),"mousedown.bs.backdrop",(()=>{b(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(B.off(this._element,"mousedown.bs.backdrop"),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){w(t,this._getElement(),this._config.isAnimated)}}const yt={backdrop:!0,keyboard:!0,focus:!0},_t={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"};class bt extends ${constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=n.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new ft}static get Default(){return yt}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||B.trigger(this._element,"show.bs.modal",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add("modal-open"),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),B.on(this._element,"click.dismiss.bs.modal",'[data-bs-dismiss="modal"]',(t=>this.hide(t))),B.on(this._dialog,"mousedown.dismiss.bs.modal",(()=>{B.one(this._element,"mouseup.dismiss.bs.modal",(t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(t))))}hide(t){if(t&&["A","AREA"].includes(t.target.tagName)&&t.preventDefault(),!this._isShown||this._isTransitioning)return;if(B.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),B.off(document,"focusin.bs.modal"),this._element.classList.remove("show"),B.off(this._element,"click.dismiss.bs.modal"),B.off(this._dialog,"mousedown.dismiss.bs.modal"),this._queueCallback((()=>this._hideModal()),this._element,e)}dispose(){[window,this._dialog].forEach((t=>B.off(t,".bs.modal"))),this._backdrop.dispose(),super.dispose(),B.off(document,"focusin.bs.modal")}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new vt({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_getConfig(t){return t={...yt,...Y.getDataAttributes(this._element),..."object"==typeof t?t:{}},u("modal",t,_t),t}_showElement(t){const e=this._isAnimated(),i=n.findOne(".modal-body",this._dialog);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"),this._element.scrollTop=0,i&&(i.scrollTop=0),e&&m(this._element),this._element.classList.add("show"),this._config.focus&&this._enforceFocus(),this._queueCallback((()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,B.trigger(this._element,"shown.bs.modal",{relatedTarget:t})}),this._dialog,e)}_enforceFocus(){B.off(document,"focusin.bs.modal"),B.on(document,"focusin.bs.modal",(t=>{document===t.target||this._element===t.target||this._element.contains(t.target)||this._element.focus()}))}_setEscapeEvent(){this._isShown?B.on(this._element,"keydown.dismiss.bs.modal",(t=>{this._config.keyboard&&"Escape"===t.key?(t.preventDefault(),this.hide()):this._config.keyboard||"Escape"!==t.key||this._triggerBackdropTransition()})):B.off(this._element,"keydown.dismiss.bs.modal")}_setResizeEvent(){this._isShown?B.on(window,"resize.bs.modal",(()=>this._adjustDialog())):B.off(window,"resize.bs.modal")}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove("modal-open"),this._resetAdjustments(),this._scrollBar.reset(),B.trigger(this._element,"hidden.bs.modal")}))}_showBackdrop(t){B.on(this._element,"click.dismiss.bs.modal",(t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(B.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:t,scrollHeight:e,style:n}=this._element,i=e>document.documentElement.clientHeight;!i&&"hidden"===n.overflowY||t.contains("modal-static")||(i||(n.overflowY="hidden"),t.add("modal-static"),this._queueCallback((()=>{t.remove("modal-static"),i||this._queueCallback((()=>{n.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;(!n&&t&&!y()||n&&!t&&y())&&(this._element.style.paddingLeft=e+"px"),(n&&!t&&!y()||!n&&t&&y())&&(this._element.style.paddingRight=e+"px")}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const n=bt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](e)}}))}}B.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=a(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),B.one(e,"show.bs.modal",(t=>{t.defaultPrevented||B.one(e,"hidden.bs.modal",(()=>{d(this)&&this.focus()}))})),bt.getOrCreateInstance(e).toggle(this)})),_(bt);const wt={backdrop:!0,keyboard:!0,scroll:!1},xt={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"};class Tt extends ${constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get NAME(){return"offcanvas"}static get Default(){return wt}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||B.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||((new ft).hide(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("show"),this._queueCallback((()=>{B.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(B.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(B.off(document,"focusin.bs.offcanvas"),this._element.blur(),this._isShown=!1,this._element.classList.remove("show"),this._backdrop.hide(),this._queueCallback((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new ft).reset(),B.trigger(this._element,"hidden.bs.offcanvas")}),this._element,!0)))}dispose(){this._backdrop.dispose(),super.dispose(),B.off(document,"focusin.bs.offcanvas")}_getConfig(t){return t={...wt,...Y.getDataAttributes(this._element),..."object"==typeof t?t:{}},u("offcanvas",t,xt),t}_initializeBackDrop(){return new vt({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_enforceFocusOnElement(t){B.off(document,"focusin.bs.offcanvas"),B.on(document,"focusin.bs.offcanvas",(e=>{document===e.target||t===e.target||t.contains(e.target)||t.focus()})),t.focus()}_addEventListeners(){B.on(this._element,"click.dismiss.bs.offcanvas",'[data-bs-dismiss="offcanvas"]',(()=>this.hide())),B.on(this._element,"keydown.dismiss.bs.offcanvas",(t=>{this._config.keyboard&&"Escape"===t.key&&this.hide()}))}static jQueryInterface(t){return this.each((function(){const e=Tt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}B.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=a(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),h(this))return;B.one(e,"hidden.bs.offcanvas",(()=>{d(this)&&this.focus()}));const i=n.findOne(".offcanvas.show");i&&i!==e&&Tt.getInstance(i).hide(),Tt.getOrCreateInstance(e).toggle(this)})),B.on(window,"load.bs.offcanvas.data-api",(()=>n.find(".offcanvas.show").forEach((t=>Tt.getOrCreateInstance(t).show())))),_(Tt);const Ct=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),St=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Et=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Dt=(t,e)=>{const n=t.nodeName.toLowerCase();if(e.includes(n))return!Ct.has(n)||Boolean(St.test(t.nodeValue)||Et.test(t.nodeValue));const i=e.filter((t=>t instanceof RegExp));for(let t=0,e=i.length;t<e;t++)if(i[t].test(n))return!0;return!1};function kt(t,e,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),r=[].concat(...i.body.querySelectorAll("*"));for(let t=0,n=r.length;t<n;t++){const n=r[t],i=n.nodeName.toLowerCase();if(!o.includes(i)){n.remove();continue}const a=[].concat(...n.attributes),s=[].concat(e["*"]||[],e[i]||[]);a.forEach((t=>{Dt(t,s)||n.removeAttribute(t.nodeName)}))}return i.body.innerHTML}const At=new RegExp("(^|\\s)bs-tooltip\\S+","g"),Mt=new Set(["sanitize","allowList","sanitizeFn"]),Lt={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Pt={AUTO:"auto",TOP:"top",RIGHT:y()?"left":"right",BOTTOM:"bottom",LEFT:y()?"right":"left"},Ot={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["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},It={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"};class Nt extends ${constructor(t,n){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(n),this.tip=null,this._setListeners()}static get Default(){return Ot}static get NAME(){return"tooltip"}static get Event(){return It}static get DefaultType(){return Lt}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains("show"))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),B.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const t=B.trigger(this._element,this.constructor.Event.SHOW),n=p(this._element),o=null===n?this._element.ownerDocument.documentElement.contains(this._element):n.contains(this._element);if(t.defaultPrevented||!o)return;const r=this.getTipElement(),a=i(this.constructor.NAME);r.setAttribute("id",a),this._element.setAttribute("aria-describedby",a),this.setContent(),this._config.animation&&r.classList.add("fade");const s="function"==typeof this._config.placement?this._config.placement.call(this,r,this._element):this._config.placement,l=this._getAttachment(s);this._addAttachmentClass(l);const{container:c}=this._config;H.set(r,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(c.appendChild(r),B.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=e.createPopper(this._element,r,this._getPopperConfig(l)),r.classList.add("show");const u="function"==typeof this._config.customClass?this._config.customClass():this._config.customClass;u&&r.classList.add(...u.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>{B.on(t,"mouseover",f)}));const d=this.tip.classList.contains("fade");this._queueCallback((()=>{const t=this._hoverState;this._hoverState=null,B.trigger(this._element,this.constructor.Event.SHOWN),"out"===t&&this._leave(null,this)}),this.tip,d)}hide(){if(!this._popper)return;const t=this.getTipElement();if(B.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove("show"),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>B.off(t,"mouseover",f))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const e=this.tip.classList.contains("fade");this._queueCallback((()=>{this._isWithActiveTrigger()||("show"!==this._hoverState&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),B.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))}),this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");return t.innerHTML=this._config.template,this.tip=t.children[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(n.findOne(".tooltip-inner",t),this.getTitle()),t.classList.remove("fade","show")}setElementContent(t,e){if(null!==t)return l(e)?(e=c(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=kt(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){let t=this._element.getAttribute("data-bs-original-title");return t||(t="function"==typeof this._config.title?this._config.title.call(this._element):this._config.title),t}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){const n=this.constructor.DATA_KEY;return(e=e||H.get(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),H.set(t.delegateTarget,n,e)),e}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add("bs-tooltip-"+this.updateAttachment(t))}_getAttachment(t){return Pt[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((t=>{if("click"===t)B.on(this._element,this.constructor.Event.CLICK,this._config.selector,(t=>this.toggle(t)));else if("manual"!==t){const e="hover"===t?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n="hover"===t?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;B.on(this._element,e,this._config.selector,(t=>this._enter(t))),B.on(this._element,n,this._config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},B.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),e.getTipElement().classList.contains("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e._config.delay&&e._config.delay.show?e._timeout=setTimeout((()=>{"show"===e._hoverState&&e.show()}),e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e._config.delay&&e._config.delay.hide?e._timeout=setTimeout((()=>{"out"===e._hoverState&&e.hide()}),e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=Y.getDataAttributes(this._element);return Object.keys(e).forEach((t=>{Mt.has(t)&&delete e[t]})),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:c(t.container),"number"==typeof 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()),u("tooltip",t,this.constructor.DefaultType),t.sanitize&&(t.template=kt(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this._config)for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(At);null!==e&&e.length>0&&e.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}static jQueryInterface(t){return this.each((function(){const e=Nt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}_(Nt);const zt=new RegExp("(^|\\s)bs-popover\\S+","g"),jt={...Nt.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},Bt={...Nt.DefaultType,content:"(string|element|function)"},Rt={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"};class Ht extends Nt{static get Default(){return jt}static get NAME(){return"popover"}static get Event(){return Rt}static get DefaultType(){return Bt}isWithContent(){return this.getTitle()||this._getContent()}getTipElement(){return this.tip||(this.tip=super.getTipElement(),this.getTitle()||n.findOne(".popover-header",this.tip).remove(),this._getContent()||n.findOne(".popover-body",this.tip).remove()),this.tip}setContent(){const t=this.getTipElement();this.setElementContent(n.findOne(".popover-header",t),this.getTitle());let e=this._getContent();"function"==typeof e&&(e=e.call(this._element)),this.setElementContent(n.findOne(".popover-body",t),e),t.classList.remove("fade","show")}_addAttachmentClass(t){this.getTipElement().classList.add("bs-popover-"+this.updateAttachment(t))}_getContent(){return this._element.getAttribute("data-bs-content")||this._config.content}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(zt);null!==e&&e.length>0&&e.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}static jQueryInterface(t){return this.each((function(){const e=Ht.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}_(Ht);const $t={offset:10,method:"auto",target:""},Ft={offset:"number",method:"string",target:"(string|element)"};class Wt extends ${constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,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,B.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return $t}static get NAME(){return"scrollspy"}refresh(){const t=this._scrollElement===this._scrollElement.window?"offset":"position",e="auto"===this._config.method?t:this._config.method,i="position"===e?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),n.find(this._selector).map((t=>{const o=r(t),a=o?n.findOne(o):null;if(a){const t=a.getBoundingClientRect();if(t.width||t.height)return[Y[e](a).top+i,o]}return null})).filter((t=>t)).sort(((t,e)=>t[0]-e[0])).forEach((t=>{this._offsets.push(t[0]),this._targets.push(t[1])}))}dispose(){B.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(t){if("string"!=typeof(t={...$t,...Y.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target&&l(t.target)){let{id:e}=t.target;e||(e=i("scrollspy"),t.target.id=e),t.target="#"+e}return u("scrollspy",t,Ft),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}_activate(t){this._activeTarget=t,this._clear();const e=this._selector.split(",").map((e=>`${e}[data-bs-target="${t}"],${e}[href="${t}"]`)),i=n.findOne(e.join(","));i.classList.contains("dropdown-item")?(n.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add("active"),i.classList.add("active")):(i.classList.add("active"),n.parents(i,".nav, .list-group").forEach((t=>{n.prev(t,".nav-link, .list-group-item").forEach((t=>t.classList.add("active"))),n.prev(t,".nav-item").forEach((t=>{n.children(t,".nav-link").forEach((t=>t.classList.add("active")))}))}))),B.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:t})}_clear(){n.find(this._selector).filter((t=>t.classList.contains("active"))).forEach((t=>t.classList.remove("active")))}static jQueryInterface(t){return this.each((function(){const e=Wt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}B.on(window,"load.bs.scrollspy.data-api",(()=>{n.find('[data-bs-spy="scroll"]').forEach((t=>new Wt(t)))})),_(Wt);class qt extends ${static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains("active"))return;let t;const e=a(this._element),i=this._element.closest(".nav, .list-group");if(i){const e="UL"===i.nodeName||"OL"===i.nodeName?":scope > li > .active":".active";t=n.find(e,i),t=t[t.length-1]}const o=t?B.trigger(t,"hide.bs.tab",{relatedTarget:this._element}):null;if(B.trigger(this._element,"show.bs.tab",{relatedTarget:t}).defaultPrevented||null!==o&&o.defaultPrevented)return;this._activate(this._element,i);const r=()=>{B.trigger(t,"hidden.bs.tab",{relatedTarget:this._element}),B.trigger(this._element,"shown.bs.tab",{relatedTarget:t})};e?this._activate(e,e.parentNode,r):r()}_activate(t,e,i){const o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?n.children(e,".active"):n.find(":scope > li > .active",e))[0],r=i&&o&&o.classList.contains("fade"),a=()=>this._transitionComplete(t,o,i);o&&r?(o.classList.remove("show"),this._queueCallback(a,t,!0)):a()}_transitionComplete(t,e,i){if(e){e.classList.remove("active");const t=n.findOne(":scope > .dropdown-menu .active",e.parentNode);t&&t.classList.remove("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),m(t),t.classList.contains("fade")&&t.classList.add("show");let o=t.parentNode;if(o&&"LI"===o.nodeName&&(o=o.parentNode),o&&o.classList.contains("dropdown-menu")){const e=t.closest(".dropdown");e&&n.find(".dropdown-toggle",e).forEach((t=>t.classList.add("active"))),t.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(t){return this.each((function(){const e=qt.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}B.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),h(this)||qt.getOrCreateInstance(this).show()})),_(qt);const Vt={animation:"boolean",autohide:"boolean",delay:"number"},Yt={animation:!0,autohide:!0,delay:5e3};class Zt extends ${constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Vt}static get Default(){return Yt}static get NAME(){return"toast"}show(){B.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),m(this._element),this._element.classList.add("showing"),this._queueCallback((()=>{this._element.classList.remove("showing"),this._element.classList.add("show"),B.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this._element.classList.contains("show")&&(B.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.remove("show"),this._queueCallback((()=>{this._element.classList.add("hide"),B.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),super.dispose()}_getConfig(t){return t={...Yt,...Y.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},u("toast",t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){B.on(this._element,"click.dismiss.bs.toast",'[data-bs-dismiss="toast"]',(()=>this.hide())),B.on(this._element,"mouseover.bs.toast",(t=>this._onInteraction(t,!0))),B.on(this._element,"mouseout.bs.toast",(t=>this._onInteraction(t,!1))),B.on(this._element,"focusin.bs.toast",(t=>this._onInteraction(t,!0))),B.on(this._element,"focusout.bs.toast",(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Zt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}return _(Zt),{Alert:F,Button:W,Carousel:tt,Collapse:it,Dropdown:pt,Modal:bt,Offcanvas:Tt,Popover:Ht,ScrollSpy:Wt,Tab:qt,Toast:Zt,Tooltip:Nt}})),
  /*!
  Waypoints - 4.0.1
  Copyright © 2011-2016 Caleb Troughton
  Licensed under the MIT license.
  https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
  */
  function(){"use strict";var t=0,e={};function n(i){if(!i)throw new Error("No options passed to Waypoint constructor");if(!i.element)throw new Error("No element option passed to Waypoint constructor");if(!i.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=n.Adapter.extend({},n.defaults,i),this.element=this.options.element,this.adapter=new n.Adapter(this.element),this.callback=i.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=n.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=n.Context.findOrCreateByElement(this.options.context),n.offsetAliases[this.options.offset]&&(this.options.offset=n.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,t+=1}n.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},n.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},n.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},n.prototype.disable=function(){return this.enabled=!1,this},n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},n.prototype.next=function(){return this.group.next(this)},n.prototype.previous=function(){return this.group.previous(this)},n.invokeAll=function(t){var n=[];for(var i in e)n.push(e[i]);for(var o=0,r=n.length;o<r;o++)n[o][t]()},n.destroyAll=function(){n.invokeAll("destroy")},n.disableAll=function(){n.invokeAll("disable")},n.enableAll=function(){for(var t in n.Context.refreshAll(),e)e[t].enabled=!0;return this},n.refreshAll=function(){n.Context.refreshAll()},n.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},n.viewportWidth=function(){return document.documentElement.clientWidth},n.adapters=[],n.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},n.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=n}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}var e=0,n={},i=window.Waypoint,o=window.onload;function r(t){this.element=t,this.Adapter=i.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+e,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,n[t.waypointContextKey]=this,e+=1,i.windowContext||(i.windowContext=!0,i.windowContext=new r(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}r.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},r.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete n[this.key])},r.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.waypoints",(function(){t.didResize||(t.didResize=!0,i.requestAnimationFrame(e))}))},r.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.waypoints",(function(){t.didScroll&&!i.isTouch||(t.didScroll=!0,i.requestAnimationFrame(e))}))},r.prototype.handleResize=function(){i.Context.refreshAll()},r.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var n in e){var i=e[n],o=i.newScroll>i.oldScroll?i.forward:i.backward;for(var r in this.waypoints[n]){var a=this.waypoints[n][r];if(null!==a.triggerPoint){var s=i.oldScroll<a.triggerPoint,l=i.newScroll>=a.triggerPoint;(s&&l||!s&&!l)&&(a.queueTrigger(o),t[a.group.id]=a.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},r.prototype.innerHeight=function(){return this.element==this.element.window?i.viewportHeight():this.adapter.innerHeight()},r.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},r.prototype.innerWidth=function(){return this.element==this.element.window?i.viewportWidth():this.adapter.innerWidth()},r.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var n in this.waypoints[e])t.push(this.waypoints[e][n]);for(var i=0,o=t.length;i<o;i++)t[i].destroy()},r.prototype.refresh=function(){var t,e=this.element==this.element.window,n=e?void 0:this.adapter.offset(),o={};for(var r in this.handleScroll(),t={horizontal:{contextOffset:e?0:n.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:n.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var a=t[r];for(var s in this.waypoints[r]){var l,c,u,d,h=this.waypoints[r][s],p=h.options.offset,f=h.triggerPoint,m=0,g=null==f;h.element!==h.element.window&&(m=h.adapter.offset()[a.offsetProp]),"function"==typeof p?p=p.apply(h):"string"==typeof p&&(p=parseFloat(p),h.options.offset.indexOf("%")>-1&&(p=Math.ceil(a.contextDimension*p/100))),l=a.contextScroll-a.contextOffset,h.triggerPoint=Math.floor(m+l-p),c=f<a.oldScroll,u=h.triggerPoint>=a.oldScroll,d=!c&&!u,!g&&(c&&u)?(h.queueTrigger(a.backward),o[h.group.id]=h.group):(!g&&d||g&&a.oldScroll>=h.triggerPoint)&&(h.queueTrigger(a.forward),o[h.group.id]=h.group)}}return i.requestAnimationFrame((function(){for(var t in o)o[t].flushTriggers()})),this},r.findOrCreateByElement=function(t){return r.findByElement(t)||new r(t)},r.refreshAll=function(){for(var t in n)n[t].refresh()},r.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){o&&o(),r.refreshAll()},i.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},i.Context=r}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var n={vertical:{},horizontal:{}},i=window.Waypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var i=this.triggerQueues[n],o="up"===n||"left"===n;i.sort(o?e:t);for(var r=0,a=i.length;r<a;r+=1){var s=i[r];(s.options.continuous||r===i.length-1)&&s.trigger([n])}}this.clearTriggerQueues()},o.prototype.next=function(e){this.waypoints.sort(t);var n=i.Adapter.inArray(e,this.waypoints);return n===this.waypoints.length-1?null:this.waypoints[n+1]},o.prototype.previous=function(e){this.waypoints.sort(t);var n=i.Adapter.inArray(e,this.waypoints);return n?this.waypoints[n-1]:null},o.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},o.prototype.remove=function(t){var e=i.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(t){return n[t.axis][t.name]||new o(t)},i.Group=o}(),function(){"use strict";var t=window.jQuery,e=window.Waypoint;function n(e){this.$element=t(e)}t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(t,e){n.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}})),t.each(["extend","inArray","isEmptyObject"],(function(e,i){n[i]=t[i]})),e.adapters.push({name:"jquery",Adapter:n}),e.Adapter=n}(),function(){"use strict";var t=window.Waypoint;function e(e){return function(){var n=[],i=arguments[0];return e.isFunction(arguments[0])&&((i=e.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var o=e.extend({},i,{element:this});"string"==typeof o.context&&(o.context=e(this).closest(o.context)[0]),n.push(new t(o))})),n}}window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}(),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).flatpickr=e()}(this,(function(){"use strict";var t=function(){return(t=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function e(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),o=0;for(e=0;e<n;e++)for(var r=arguments[e],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}var n=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],i={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(t){return"undefined"!=typeof console&&console.warn(t)},getWeek:function(t){var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var n=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},o={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},r=function(t,e){return void 0===e&&(e=2),("000"+t).slice(-1*e)},a=function(t){return!0===t?1:0};function s(t,e){var n;return function(){var i=this;clearTimeout(n),n=setTimeout((function(){return t.apply(i,arguments)}),e)}}var l=function(t){return t instanceof Array?t:[t]};function c(t,e,n){if(!0===n)return t.classList.add(e);t.classList.remove(e)}function u(t,e,n){var i=window.document.createElement(t);return e=e||"",n=n||"",i.className=e,void 0!==n&&(i.textContent=n),i}function d(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function h(t,e){return e(t)?t:t.parentNode?h(t.parentNode,e):void 0}function p(t,e){var n=u("div","numInputWrapper"),i=u("input","numInput "+t),o=u("span","arrowUp"),r=u("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==e)for(var a in e)i.setAttribute(a,e[a]);return n.appendChild(i),n.appendChild(o),n.appendChild(r),n}function f(t){try{return"function"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}var m=function(){},g=function(t,e,n){return n.months[e?"shorthand":"longhand"][t]},v={D:m,F:function(t,e,n){t.setMonth(n.months.longhand.indexOf(e))},G:function(t,e){t.setHours(parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,n){t.setHours(t.getHours()%12+12*a(new RegExp(n.amPM[1],"i").test(e)))},M:function(t,e,n){t.setMonth(n.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(1e3*parseFloat(e))},W:function(t,e,n){var i=parseInt(e),o=new Date(t.getFullYear(),0,2+7*(i-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+n.firstDayOfWeek),o},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours(parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:m,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:m,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}},y={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},_={Z:function(t){return t.toISOString()},D:function(t,e,n){return e.weekdays.shorthand[_.w(t,e,n)]},F:function(t,e,n){return g(_.n(t,e,n)-1,!1,e)},G:function(t,e,n){return r(_.h(t,e,n))},H:function(t){return r(t.getHours())},J:function(t,e){return void 0!==e.ordinal?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[a(t.getHours()>11)]},M:function(t,e){return g(t.getMonth(),!0,e)},S:function(t){return r(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,n){return n.getWeek(t)},Y:function(t){return r(t.getFullYear(),4)},d:function(t){return r(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return r(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return r(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}},b=function(t){var e=t.config,n=void 0===e?i:e,r=t.l10n,a=void 0===r?o:r,s=t.isMobile,l=void 0!==s&&s;return function(t,e,i){var o=i||a;return void 0===n.formatDate||l?e.split("").map((function(e,i,r){return _[e]&&"\\"!==r[i-1]?_[e](t,o,n):"\\"!==e?e:""})).join(""):n.formatDate(t,e,o)}},w=function(t){var e=t.config,n=void 0===e?i:e,r=t.l10n,a=void 0===r?o:r;return function(t,e,o,r){if(0===t||t){var s,l=r||a,c=t;if(t instanceof Date)s=new Date(t.getTime());else if("string"!=typeof t&&void 0!==t.toFixed)s=new Date(t);else if("string"==typeof t){var u=e||(n||i).dateFormat,d=String(t).trim();if("today"===d)s=new Date,o=!0;else if(/Z$/.test(d)||/GMT$/.test(d))s=new Date(t);else if(n&&n.parseDate)s=n.parseDate(t,u);else{s=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var h=void 0,p=[],f=0,m=0,g="";f<u.length;f++){var _=u[f],b="\\"===_,w="\\"===u[f-1]||b;if(y[_]&&!w){g+=y[_];var x=new RegExp(g).exec(t);x&&(h=!0)&&p["Y"!==_?"push":"unshift"]({fn:v[_],val:x[++m]})}else b||(g+=".");p.forEach((function(t){var e=t.fn,n=t.val;return s=e(s,n,l)||s}))}s=h?s:void 0}}if(s instanceof Date&&!isNaN(s.getTime()))return!0===o&&s.setHours(0,0,0,0),s;n.errorHandler(new Error("Invalid date provided: "+c))}}};function x(t,e,n){return void 0===n&&(n=!0),!1!==n?new Date(t.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):t.getTime()-e.getTime()}function T(t){var e=t.defaultHour,n=t.defaultMinute,i=t.defaultSeconds;if(void 0!==t.minDate){var o=t.minDate.getHours(),r=t.minDate.getMinutes(),a=t.minDate.getSeconds();e<o&&(e=o),e===o&&n<r&&(n=r),e===o&&n===r&&i<a&&(i=t.minDate.getSeconds())}if(void 0!==t.maxDate){var s=t.maxDate.getHours(),l=t.maxDate.getMinutes();(e=Math.min(e,s))===s&&(n=Math.min(l,n)),e===s&&n===l&&(i=t.maxDate.getSeconds())}return{hours:e,minutes:n,seconds:i}}function C(m,v){var _={config:t(t({},i),E.defaultConfig),l10n:o};function C(t){return t.bind(_)}function S(){var t=_.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==_.calendarContainer&&(_.calendarContainer.style.visibility="hidden",_.calendarContainer.style.display="block"),void 0!==_.daysContainer){var e=(_.days.offsetWidth+1)*t.showMonths;_.daysContainer.style.width=e+"px",_.calendarContainer.style.width=e+(void 0!==_.weekWrapper?_.weekWrapper.offsetWidth:0)+"px",_.calendarContainer.style.removeProperty("visibility"),_.calendarContainer.style.removeProperty("display")}}))}function D(t){if(0===_.selectedDates.length){var e=void 0===_.config.minDate||x(new Date,_.config.minDate)>=0?new Date:new Date(_.config.minDate.getTime()),n=T(_.config);e.setHours(n.hours,n.minutes,n.seconds,e.getMilliseconds()),_.selectedDates=[e],_.latestSelectedDateObj=e}void 0!==t&&"blur"!==t.type&&function(t){t.preventDefault();var e="keydown"===t.type,n=f(t),i=n;void 0!==_.amPM&&n===_.amPM&&(_.amPM.textContent=_.l10n.amPM[a(_.amPM.textContent===_.l10n.amPM[0])]);var o=parseFloat(i.getAttribute("min")),s=parseFloat(i.getAttribute("max")),l=parseFloat(i.getAttribute("step")),c=parseInt(i.value,10),u=c+l*(t.delta||(e?38===t.which?1:-1:0));if(void 0!==i.value&&2===i.value.length){var d=i===_.hourElement,h=i===_.minuteElement;u<o?(u=s+u+a(!d)+(a(d)&&a(!_.amPM)),h&&z(void 0,-1,_.hourElement)):u>s&&(u=i===_.hourElement?u-s-a(!_.amPM):o,h&&z(void 0,1,_.hourElement)),_.amPM&&d&&(1===l?u+c===23:Math.abs(u-c)>l)&&(_.amPM.textContent=_.l10n.amPM[a(_.amPM.textContent===_.l10n.amPM[0])]),i.value=r(u)}}(t);var i=_._input.value;k(),_t(),_._input.value!==i&&_._debouncedChange()}function k(){if(void 0!==_.hourElement&&void 0!==_.minuteElement){var t,e,n=(parseInt(_.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(_.minuteElement.value,10)||0)%60,o=void 0!==_.secondElement?(parseInt(_.secondElement.value,10)||0)%60:0;void 0!==_.amPM&&(t=n,e=_.amPM.textContent,n=t%12+12*a(e===_.l10n.amPM[1]));var r=void 0!==_.config.minTime||_.config.minDate&&_.minDateHasTime&&_.latestSelectedDateObj&&0===x(_.latestSelectedDateObj,_.config.minDate,!0);if(void 0!==_.config.maxTime||_.config.maxDate&&_.maxDateHasTime&&_.latestSelectedDateObj&&0===x(_.latestSelectedDateObj,_.config.maxDate,!0)){var s=void 0!==_.config.maxTime?_.config.maxTime:_.config.maxDate;(n=Math.min(n,s.getHours()))===s.getHours()&&(i=Math.min(i,s.getMinutes())),i===s.getMinutes()&&(o=Math.min(o,s.getSeconds()))}if(r){var l=void 0!==_.config.minTime?_.config.minTime:_.config.minDate;(n=Math.max(n,l.getHours()))===l.getHours()&&i<l.getMinutes()&&(i=l.getMinutes()),i===l.getMinutes()&&(o=Math.max(o,l.getSeconds()))}M(n,i,o)}}function A(t){var e=t||_.latestSelectedDateObj;e&&M(e.getHours(),e.getMinutes(),e.getSeconds())}function M(t,e,n){void 0!==_.latestSelectedDateObj&&_.latestSelectedDateObj.setHours(t%24,e,n||0,0),_.hourElement&&_.minuteElement&&!_.isMobile&&(_.hourElement.value=r(_.config.time_24hr?t:(12+t)%12+12*a(t%12==0)),_.minuteElement.value=r(e),void 0!==_.amPM&&(_.amPM.textContent=_.l10n.amPM[a(t>=12)]),void 0!==_.secondElement&&(_.secondElement.value=r(n)))}function L(t){var e=f(t),n=parseInt(e.value)+(t.delta||0);(n/1e3>1||"Enter"===t.key&&!/[^\d]/.test(n.toString()))&&K(n)}function P(t,e,n,i){return e instanceof Array?e.forEach((function(e){return P(t,e,n,i)})):t instanceof Array?t.forEach((function(t){return P(t,e,n,i)})):(t.addEventListener(e,n,i),void _._handlers.push({remove:function(){return t.removeEventListener(e,n)}}))}function O(){ft("onChange")}function I(t,e){var n=void 0!==t?_.parseDate(t):_.latestSelectedDateObj||(_.config.minDate&&_.config.minDate>_.now?_.config.minDate:_.config.maxDate&&_.config.maxDate<_.now?_.config.maxDate:_.now),i=_.currentYear,o=_.currentMonth;try{void 0!==n&&(_.currentYear=n.getFullYear(),_.currentMonth=n.getMonth())}catch(t){t.message="Invalid date supplied: "+n,_.config.errorHandler(t)}e&&_.currentYear!==i&&(ft("onYearChange"),W()),!e||_.currentYear===i&&_.currentMonth===o||ft("onMonthChange"),_.redraw()}function N(t){var e=f(t);~e.className.indexOf("arrow")&&z(t,e.classList.contains("arrowUp")?1:-1)}function z(t,e,n){var i=t&&f(t),o=n||i&&i.parentNode&&i.parentNode.firstChild,r=mt("increment");r.delta=e,o&&o.dispatchEvent(r)}function j(t,e,n,i){var o=J(e,!0),r=u("span","flatpickr-day "+t,e.getDate().toString());return r.dateObj=e,r.$i=i,r.setAttribute("aria-label",_.formatDate(e,_.config.ariaDateFormat)),-1===t.indexOf("hidden")&&0===x(e,_.now)&&(_.todayDateElem=r,r.classList.add("today"),r.setAttribute("aria-current","date")),o?(r.tabIndex=-1,gt(e)&&(r.classList.add("selected"),_.selectedDateElem=r,"range"===_.config.mode&&(c(r,"startRange",_.selectedDates[0]&&0===x(e,_.selectedDates[0],!0)),c(r,"endRange",_.selectedDates[1]&&0===x(e,_.selectedDates[1],!0)),"nextMonthDay"===t&&r.classList.add("inRange")))):r.classList.add("flatpickr-disabled"),"range"===_.config.mode&&function(t){return!("range"!==_.config.mode||_.selectedDates.length<2)&&x(t,_.selectedDates[0])>=0&&x(t,_.selectedDates[1])<=0}(e)&&!gt(e)&&r.classList.add("inRange"),_.weekNumbers&&1===_.config.showMonths&&"prevMonthDay"!==t&&n%7==1&&_.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+_.config.getWeek(e)+"</span>"),ft("onDayCreate",r),r}function B(t){t.focus(),"range"===_.config.mode&&nt(t)}function R(t){for(var e=t>0?0:_.config.showMonths-1,n=t>0?_.config.showMonths:-1,i=e;i!=n;i+=t)for(var o=_.daysContainer.children[i],r=t>0?0:o.children.length-1,a=t>0?o.children.length:-1,s=r;s!=a;s+=t){var l=o.children[s];if(-1===l.className.indexOf("hidden")&&J(l.dateObj))return l}}function H(t,e){var n=Q(document.activeElement||document.body),i=void 0!==t?t:n?document.activeElement:void 0!==_.selectedDateElem&&Q(_.selectedDateElem)?_.selectedDateElem:void 0!==_.todayDateElem&&Q(_.todayDateElem)?_.todayDateElem:R(e>0?1:-1);void 0===i?_._input.focus():n?function(t,e){for(var n=-1===t.className.indexOf("Month")?t.dateObj.getMonth():_.currentMonth,i=e>0?_.config.showMonths:-1,o=e>0?1:-1,r=n-_.currentMonth;r!=i;r+=o)for(var a=_.daysContainer.children[r],s=n-_.currentMonth===r?t.$i+e:e<0?a.children.length-1:0,l=a.children.length,c=s;c>=0&&c<l&&c!=(e>0?l:-1);c+=o){var u=a.children[c];if(-1===u.className.indexOf("hidden")&&J(u.dateObj)&&Math.abs(t.$i-c)>=Math.abs(e))return B(u)}_.changeMonth(o),H(R(o),0)}(i,e):B(i)}function $(t,e){for(var n=(new Date(t,e,1).getDay()-_.l10n.firstDayOfWeek+7)%7,i=_.utils.getDaysInMonth((e-1+12)%12,t),o=_.utils.getDaysInMonth(e,t),r=window.document.createDocumentFragment(),a=_.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay",c=i+1-n,d=0;c<=i;c++,d++)r.appendChild(j(s,new Date(t,e-1,c),c,d));for(c=1;c<=o;c++,d++)r.appendChild(j("",new Date(t,e,c),c,d));for(var h=o+1;h<=42-n&&(1===_.config.showMonths||d%7!=0);h++,d++)r.appendChild(j(l,new Date(t,e+1,h%o),h,d));var p=u("div","dayContainer");return p.appendChild(r),p}function F(){if(void 0!==_.daysContainer){d(_.daysContainer),_.weekNumbers&&d(_.weekNumbers);for(var t=document.createDocumentFragment(),e=0;e<_.config.showMonths;e++){var n=new Date(_.currentYear,_.currentMonth,1);n.setMonth(_.currentMonth+e),t.appendChild($(n.getFullYear(),n.getMonth()))}_.daysContainer.appendChild(t),_.days=_.daysContainer.firstChild,"range"===_.config.mode&&1===_.selectedDates.length&&nt()}}function W(){if(!(_.config.showMonths>1||"dropdown"!==_.config.monthSelectorType)){var t=function(t){return!(void 0!==_.config.minDate&&_.currentYear===_.config.minDate.getFullYear()&&t<_.config.minDate.getMonth()||void 0!==_.config.maxDate&&_.currentYear===_.config.maxDate.getFullYear()&&t>_.config.maxDate.getMonth())};_.monthsDropdownContainer.tabIndex=-1,_.monthsDropdownContainer.innerHTML="";for(var e=0;e<12;e++)if(t(e)){var n=u("option","flatpickr-monthDropdown-month");n.value=new Date(_.currentYear,e).getMonth().toString(),n.textContent=g(e,_.config.shorthandCurrentMonth,_.l10n),n.tabIndex=-1,_.currentMonth===e&&(n.selected=!0),_.monthsDropdownContainer.appendChild(n)}}}function q(){var t,e=u("div","flatpickr-month"),n=window.document.createDocumentFragment();_.config.showMonths>1||"static"===_.config.monthSelectorType?t=u("span","cur-month"):(_.monthsDropdownContainer=u("select","flatpickr-monthDropdown-months"),_.monthsDropdownContainer.setAttribute("aria-label",_.l10n.monthAriaLabel),P(_.monthsDropdownContainer,"change",(function(t){var e=f(t),n=parseInt(e.value,10);_.changeMonth(n-_.currentMonth),ft("onMonthChange")})),W(),t=_.monthsDropdownContainer);var i=p("cur-year",{tabindex:"-1"}),o=i.getElementsByTagName("input")[0];o.setAttribute("aria-label",_.l10n.yearAriaLabel),_.config.minDate&&o.setAttribute("min",_.config.minDate.getFullYear().toString()),_.config.maxDate&&(o.setAttribute("max",_.config.maxDate.getFullYear().toString()),o.disabled=!!_.config.minDate&&_.config.minDate.getFullYear()===_.config.maxDate.getFullYear());var r=u("div","flatpickr-current-month");return r.appendChild(t),r.appendChild(i),n.appendChild(r),e.appendChild(n),{container:e,yearElement:o,monthElement:t}}function V(){d(_.monthNav),_.monthNav.appendChild(_.prevMonthNav),_.config.showMonths&&(_.yearElements=[],_.monthElements=[]);for(var t=_.config.showMonths;t--;){var e=q();_.yearElements.push(e.yearElement),_.monthElements.push(e.monthElement),_.monthNav.appendChild(e.container)}_.monthNav.appendChild(_.nextMonthNav)}function Y(){_.weekdayContainer?d(_.weekdayContainer):_.weekdayContainer=u("div","flatpickr-weekdays");for(var t=_.config.showMonths;t--;){var e=u("div","flatpickr-weekdaycontainer");_.weekdayContainer.appendChild(e)}return Z(),_.weekdayContainer}function Z(){if(_.weekdayContainer){var t=_.l10n.firstDayOfWeek,n=e(_.l10n.weekdays.shorthand);t>0&&t<n.length&&(n=e(n.splice(t,n.length),n.splice(0,t)));for(var i=_.config.showMonths;i--;)_.weekdayContainer.children[i].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+n.join("</span><span class='flatpickr-weekday'>")+"\n      </span>\n      "}}function U(t,e){void 0===e&&(e=!0);var n=e?t:t-_.currentMonth;n<0&&!0===_._hidePrevMonthArrow||n>0&&!0===_._hideNextMonthArrow||(_.currentMonth+=n,(_.currentMonth<0||_.currentMonth>11)&&(_.currentYear+=_.currentMonth>11?1:-1,_.currentMonth=(_.currentMonth+12)%12,ft("onYearChange"),W()),F(),ft("onMonthChange"),vt())}function G(t){return!(!_.config.appendTo||!_.config.appendTo.contains(t))||_.calendarContainer.contains(t)}function X(t){if(_.isOpen&&!_.config.inline){var e=f(t),n=G(e),i=e===_.input||e===_.altInput||_.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(_.input)||~t.path.indexOf(_.altInput)),o="blur"===t.type?i&&t.relatedTarget&&!G(t.relatedTarget):!i&&!n&&!G(t.relatedTarget),r=!_.config.ignoredFocusElements.some((function(t){return t.contains(e)}));o&&r&&(void 0!==_.timeContainer&&void 0!==_.minuteElement&&void 0!==_.hourElement&&""!==_.input.value&&void 0!==_.input.value&&D(),_.close(),_.config&&"range"===_.config.mode&&1===_.selectedDates.length&&(_.clear(!1),_.redraw()))}}function K(t){if(!(!t||_.config.minDate&&t<_.config.minDate.getFullYear()||_.config.maxDate&&t>_.config.maxDate.getFullYear())){var e=t,n=_.currentYear!==e;_.currentYear=e||_.currentYear,_.config.maxDate&&_.currentYear===_.config.maxDate.getFullYear()?_.currentMonth=Math.min(_.config.maxDate.getMonth(),_.currentMonth):_.config.minDate&&_.currentYear===_.config.minDate.getFullYear()&&(_.currentMonth=Math.max(_.config.minDate.getMonth(),_.currentMonth)),n&&(_.redraw(),ft("onYearChange"),W())}}function J(t,e){var n;void 0===e&&(e=!0);var i=_.parseDate(t,void 0,e);if(_.config.minDate&&i&&x(i,_.config.minDate,void 0!==e?e:!_.minDateHasTime)<0||_.config.maxDate&&i&&x(i,_.config.maxDate,void 0!==e?e:!_.maxDateHasTime)>0)return!1;if(!_.config.enable&&0===_.config.disable.length)return!0;if(void 0===i)return!1;for(var o=!!_.config.enable,r=null!==(n=_.config.enable)&&void 0!==n?n:_.config.disable,a=0,s=void 0;a<r.length;a++){if("function"==typeof(s=r[a])&&s(i))return o;if(s instanceof Date&&void 0!==i&&s.getTime()===i.getTime())return o;if("string"==typeof s){var l=_.parseDate(s,void 0,!0);return l&&l.getTime()===i.getTime()?o:!o}if("object"==typeof s&&void 0!==i&&s.from&&s.to&&i.getTime()>=s.from.getTime()&&i.getTime()<=s.to.getTime())return o}return!o}function Q(t){return void 0!==_.daysContainer&&-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&_.daysContainer.contains(t)}function tt(t){t.target!==_._input||!(_.selectedDates.length>0||_._input.value.length>0)||t.relatedTarget&&G(t.relatedTarget)||_.setDate(_._input.value,!0,t.target===_.altInput?_.config.altFormat:_.config.dateFormat)}function et(t){var e=f(t),n=_.config.wrap?m.contains(e):e===_._input,i=_.config.allowInput,o=_.isOpen&&(!i||!n),r=_.config.inline&&n&&!i;if(13===t.keyCode&&n){if(i)return _.setDate(_._input.value,!0,e===_.altInput?_.config.altFormat:_.config.dateFormat),e.blur();_.open()}else if(G(e)||o||r){var a=!!_.timeContainer&&_.timeContainer.contains(e);switch(t.keyCode){case 13:a?(t.preventDefault(),D(),ct()):ut(t);break;case 27:t.preventDefault(),ct();break;case 8:case 46:n&&!_.config.allowInput&&(t.preventDefault(),_.clear());break;case 37:case 39:if(a||n)_.hourElement&&_.hourElement.focus();else if(t.preventDefault(),void 0!==_.daysContainer&&(!1===i||document.activeElement&&Q(document.activeElement))){var s=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),U(s),H(R(1),0)):H(void 0,s)}break;case 38:case 40:t.preventDefault();var l=40===t.keyCode?1:-1;_.daysContainer&&void 0!==e.$i||e===_.input||e===_.altInput?t.ctrlKey?(t.stopPropagation(),K(_.currentYear-l),H(R(1),0)):a||H(void 0,7*l):e===_.currentYearElement?K(_.currentYear-l):_.config.enableTime&&(!a&&_.hourElement&&_.hourElement.focus(),D(t),_._debouncedChange());break;case 9:if(a){var c=[_.hourElement,_.minuteElement,_.secondElement,_.amPM].concat(_.pluginElements).filter((function(t){return t})),u=c.indexOf(e);if(-1!==u){var d=c[u+(t.shiftKey?-1:1)];t.preventDefault(),(d||_._input).focus()}}else!_.config.noCalendar&&_.daysContainer&&_.daysContainer.contains(e)&&t.shiftKey&&(t.preventDefault(),_._input.focus())}}if(void 0!==_.amPM&&e===_.amPM)switch(t.key){case _.l10n.amPM[0].charAt(0):case _.l10n.amPM[0].charAt(0).toLowerCase():_.amPM.textContent=_.l10n.amPM[0],k(),_t();break;case _.l10n.amPM[1].charAt(0):case _.l10n.amPM[1].charAt(0).toLowerCase():_.amPM.textContent=_.l10n.amPM[1],k(),_t()}(n||G(e))&&ft("onKeyDown",t)}function nt(t){if(1===_.selectedDates.length&&(!t||t.classList.contains("flatpickr-day")&&!t.classList.contains("flatpickr-disabled"))){for(var e=t?t.dateObj.getTime():_.days.firstElementChild.dateObj.getTime(),n=_.parseDate(_.selectedDates[0],void 0,!0).getTime(),i=Math.min(e,_.selectedDates[0].getTime()),o=Math.max(e,_.selectedDates[0].getTime()),r=!1,a=0,s=0,l=i;l<o;l+=864e5)J(new Date(l),!0)||(r=r||l>i&&l<o,l<n&&(!a||l>a)?a=l:l>n&&(!s||l<s)&&(s=l));for(var c=0;c<_.config.showMonths;c++)for(var u=_.daysContainer.children[c],d=function(i,o){var l,c,d,h=u.children[i],p=h.dateObj.getTime(),f=a>0&&p<a||s>0&&p>s;return f?(h.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((function(t){h.classList.remove(t)})),"continue"):r&&!f?"continue":(["startRange","inRange","endRange","notAllowed"].forEach((function(t){h.classList.remove(t)})),void(void 0!==t&&(t.classList.add(e<=_.selectedDates[0].getTime()?"startRange":"endRange"),n<e&&p===n?h.classList.add("startRange"):n>e&&p===n&&h.classList.add("endRange"),p>=a&&(0===s||p<=s)&&(c=n,d=e,(l=p)>Math.min(c,d)&&l<Math.max(c,d))&&h.classList.add("inRange"))))},h=0,p=u.children.length;h<p;h++)d(h)}}function it(){!_.isOpen||_.config.static||_.config.inline||st()}function ot(t){return function(e){var n=_.config["_"+t+"Date"]=_.parseDate(e,_.config.dateFormat),i=_.config["_"+("min"===t?"max":"min")+"Date"];void 0!==n&&(_["min"===t?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),_.selectedDates&&(_.selectedDates=_.selectedDates.filter((function(t){return J(t)})),_.selectedDates.length||"min"!==t||A(n),_t()),_.daysContainer&&(lt(),void 0!==n?_.currentYearElement[t]=n.getFullYear().toString():_.currentYearElement.removeAttribute(t),_.currentYearElement.disabled=!!i&&void 0!==n&&i.getFullYear()===n.getFullYear())}}function rt(){return _.config.wrap?m.querySelector("[data-input]"):m}function at(){"object"!=typeof _.config.locale&&void 0===E.l10ns[_.config.locale]&&_.config.errorHandler(new Error("flatpickr: invalid locale "+_.config.locale)),_.l10n=t(t({},E.l10ns.default),"object"==typeof _.config.locale?_.config.locale:"default"!==_.config.locale?E.l10ns[_.config.locale]:void 0),y.K="("+_.l10n.amPM[0]+"|"+_.l10n.amPM[1]+"|"+_.l10n.amPM[0].toLowerCase()+"|"+_.l10n.amPM[1].toLowerCase()+")",void 0===t(t({},v),JSON.parse(JSON.stringify(m.dataset||{}))).time_24hr&&void 0===E.defaultConfig.time_24hr&&(_.config.time_24hr=_.l10n.time_24hr),_.formatDate=b(_),_.parseDate=w({config:_.config,l10n:_.l10n})}function st(t){if("function"!=typeof _.config.position){if(void 0!==_.calendarContainer){ft("onPreCalendarPosition");var e=t||_._positionElement,n=Array.prototype.reduce.call(_.calendarContainer.children,(function(t,e){return t+e.offsetHeight}),0),i=_.calendarContainer.offsetWidth,o=_.config.position.split(" "),r=o[0],a=o.length>1?o[1]:null,s=e.getBoundingClientRect(),l=window.innerHeight-s.bottom,u="above"===r||"below"!==r&&l<n&&s.top>n,d=window.pageYOffset+s.top+(u?-n-2:e.offsetHeight+2);if(c(_.calendarContainer,"arrowTop",!u),c(_.calendarContainer,"arrowBottom",u),!_.config.inline){var h=window.pageXOffset+s.left,p=!1,f=!1;"center"===a?(h-=(i-s.width)/2,p=!0):"right"===a&&(h-=i-s.width,f=!0),c(_.calendarContainer,"arrowLeft",!p&&!f),c(_.calendarContainer,"arrowCenter",p),c(_.calendarContainer,"arrowRight",f);var m=window.document.body.offsetWidth-(window.pageXOffset+s.right),g=h+i>window.document.body.offsetWidth,v=m+i>window.document.body.offsetWidth;if(c(_.calendarContainer,"rightMost",g),!_.config.static)if(_.calendarContainer.style.top=d+"px",g)if(v){var y=function(){for(var t=null,e=0;e<document.styleSheets.length;e++){var n=document.styleSheets[e];try{n.cssRules}catch(t){continue}t=n;break}return null!=t?t:(i=document.createElement("style"),document.head.appendChild(i),i.sheet);var i}();if(void 0===y)return;var b=window.document.body.offsetWidth,w=Math.max(0,b/2-i/2),x=y.cssRules.length,T="{left:"+s.left+"px;right:auto;}";c(_.calendarContainer,"rightMost",!1),c(_.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+T,x),_.calendarContainer.style.left=w+"px",_.calendarContainer.style.right="auto"}else _.calendarContainer.style.left="auto",_.calendarContainer.style.right=m+"px";else _.calendarContainer.style.left=h+"px",_.calendarContainer.style.right="auto"}}}else _.config.position(_,t)}function lt(){_.config.noCalendar||_.isMobile||(W(),vt(),F())}function ct(){_._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(_.close,0):_.close()}function ut(t){t.preventDefault(),t.stopPropagation();var e=h(f(t),(function(t){return t.classList&&t.classList.contains("flatpickr-day")&&!t.classList.contains("flatpickr-disabled")&&!t.classList.contains("notAllowed")}));if(void 0!==e){var n=e,i=_.latestSelectedDateObj=new Date(n.dateObj.getTime()),o=(i.getMonth()<_.currentMonth||i.getMonth()>_.currentMonth+_.config.showMonths-1)&&"range"!==_.config.mode;if(_.selectedDateElem=n,"single"===_.config.mode)_.selectedDates=[i];else if("multiple"===_.config.mode){var r=gt(i);r?_.selectedDates.splice(parseInt(r),1):_.selectedDates.push(i)}else"range"===_.config.mode&&(2===_.selectedDates.length&&_.clear(!1,!1),_.latestSelectedDateObj=i,_.selectedDates.push(i),0!==x(i,_.selectedDates[0],!0)&&_.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()})));if(k(),o){var a=_.currentYear!==i.getFullYear();_.currentYear=i.getFullYear(),_.currentMonth=i.getMonth(),a&&(ft("onYearChange"),W()),ft("onMonthChange")}if(vt(),F(),_t(),o||"range"===_.config.mode||1!==_.config.showMonths?void 0!==_.selectedDateElem&&void 0===_.hourElement&&_.selectedDateElem&&_.selectedDateElem.focus():B(n),void 0!==_.hourElement&&void 0!==_.hourElement&&_.hourElement.focus(),_.config.closeOnSelect){var s="single"===_.config.mode&&!_.config.enableTime,l="range"===_.config.mode&&2===_.selectedDates.length&&!_.config.enableTime;(s||l)&&ct()}O()}}_.parseDate=w({config:_.config,l10n:_.l10n}),_._handlers=[],_.pluginElements=[],_.loadedPlugins=[],_._bind=P,_._setHoursFromDate=A,_._positionCalendar=st,_.changeMonth=U,_.changeYear=K,_.clear=function(t,e){if(void 0===t&&(t=!0),void 0===e&&(e=!0),_.input.value="",void 0!==_.altInput&&(_.altInput.value=""),void 0!==_.mobileInput&&(_.mobileInput.value=""),_.selectedDates=[],_.latestSelectedDateObj=void 0,!0===e&&(_.currentYear=_._initialDate.getFullYear(),_.currentMonth=_._initialDate.getMonth()),!0===_.config.enableTime){var n=T(_.config);M(n.hours,n.minutes,n.seconds)}_.redraw(),t&&ft("onChange")},_.close=function(){_.isOpen=!1,_.isMobile||(void 0!==_.calendarContainer&&_.calendarContainer.classList.remove("open"),void 0!==_._input&&_._input.classList.remove("active")),ft("onClose")},_._createElement=u,_.destroy=function(){void 0!==_.config&&ft("onDestroy");for(var t=_._handlers.length;t--;)_._handlers[t].remove();if(_._handlers=[],_.mobileInput)_.mobileInput.parentNode&&_.mobileInput.parentNode.removeChild(_.mobileInput),_.mobileInput=void 0;else if(_.calendarContainer&&_.calendarContainer.parentNode)if(_.config.static&&_.calendarContainer.parentNode){var e=_.calendarContainer.parentNode;if(e.lastChild&&e.removeChild(e.lastChild),e.parentNode){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else _.calendarContainer.parentNode.removeChild(_.calendarContainer);_.altInput&&(_.input.type="text",_.altInput.parentNode&&_.altInput.parentNode.removeChild(_.altInput),delete _.altInput),_.input&&(_.input.type=_.input._type,_.input.classList.remove("flatpickr-input"),_.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(t){try{delete _[t]}catch(t){}}))},_.isEnabled=J,_.jumpToDate=I,_.open=function(t,e){if(void 0===e&&(e=_._positionElement),!0===_.isMobile){if(t){t.preventDefault();var n=f(t);n&&n.blur()}return void 0!==_.mobileInput&&(_.mobileInput.focus(),_.mobileInput.click()),void ft("onOpen")}if(!_._input.disabled&&!_.config.inline){var i=_.isOpen;_.isOpen=!0,i||(_.calendarContainer.classList.add("open"),_._input.classList.add("active"),ft("onOpen"),st(e)),!0===_.config.enableTime&&!0===_.config.noCalendar&&(!1!==_.config.allowInput||void 0!==t&&_.timeContainer.contains(t.relatedTarget)||setTimeout((function(){return _.hourElement.select()}),50))}},_.redraw=lt,_.set=function(t,e){if(null!==t&&"object"==typeof t)for(var i in Object.assign(_.config,t),t)void 0!==dt[i]&&dt[i].forEach((function(t){return t()}));else _.config[t]=e,void 0!==dt[t]?dt[t].forEach((function(t){return t()})):n.indexOf(t)>-1&&(_.config[t]=l(e));_.redraw(),_t(!0)},_.setDate=function(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=_.config.dateFormat),0!==t&&!t||t instanceof Array&&0===t.length)return _.clear(e);ht(t,n),_.latestSelectedDateObj=_.selectedDates[_.selectedDates.length-1],_.redraw(),I(void 0,e),A(),0===_.selectedDates.length&&_.clear(!1),_t(e),e&&ft("onChange")},_.toggle=function(t){if(!0===_.isOpen)return _.close();_.open(t)};var dt={locale:[at,Z],showMonths:[V,S,Y],minDate:[I],maxDate:[I],clickOpens:[function(){!0===_.config.clickOpens?(P(_._input,"focus",_.open),P(_._input,"click",_.open)):(_._input.removeEventListener("focus",_.open),_._input.removeEventListener("click",_.open))}]};function ht(t,e){var n=[];if(t instanceof Array)n=t.map((function(t){return _.parseDate(t,e)}));else if(t instanceof Date||"number"==typeof t)n=[_.parseDate(t,e)];else if("string"==typeof t)switch(_.config.mode){case"single":case"time":n=[_.parseDate(t,e)];break;case"multiple":n=t.split(_.config.conjunction).map((function(t){return _.parseDate(t,e)}));break;case"range":n=t.split(_.l10n.rangeSeparator).map((function(t){return _.parseDate(t,e)}))}else _.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(t)));_.selectedDates=_.config.allowInvalidPreload?n:n.filter((function(t){return t instanceof Date&&J(t,!1)})),"range"===_.config.mode&&_.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()}))}function pt(t){return t.slice().map((function(t){return"string"==typeof t||"number"==typeof t||t instanceof Date?_.parseDate(t,void 0,!0):t&&"object"==typeof t&&t.from&&t.to?{from:_.parseDate(t.from,void 0),to:_.parseDate(t.to,void 0)}:t})).filter((function(t){return t}))}function ft(t,e){if(void 0!==_.config){var n=_.config[t];if(void 0!==n&&n.length>0)for(var i=0;n[i]&&i<n.length;i++)n[i](_.selectedDates,_.input.value,_,e);"onChange"===t&&(_.input.dispatchEvent(mt("change")),_.input.dispatchEvent(mt("input")))}}function mt(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}function gt(t){for(var e=0;e<_.selectedDates.length;e++)if(0===x(_.selectedDates[e],t))return""+e;return!1}function vt(){_.config.noCalendar||_.isMobile||!_.monthNav||(_.yearElements.forEach((function(t,e){var n=new Date(_.currentYear,_.currentMonth,1);n.setMonth(_.currentMonth+e),_.config.showMonths>1||"static"===_.config.monthSelectorType?_.monthElements[e].textContent=g(n.getMonth(),_.config.shorthandCurrentMonth,_.l10n)+" ":_.monthsDropdownContainer.value=n.getMonth().toString(),t.value=n.getFullYear().toString()})),_._hidePrevMonthArrow=void 0!==_.config.minDate&&(_.currentYear===_.config.minDate.getFullYear()?_.currentMonth<=_.config.minDate.getMonth():_.currentYear<_.config.minDate.getFullYear()),_._hideNextMonthArrow=void 0!==_.config.maxDate&&(_.currentYear===_.config.maxDate.getFullYear()?_.currentMonth+1>_.config.maxDate.getMonth():_.currentYear>_.config.maxDate.getFullYear()))}function yt(t){return _.selectedDates.map((function(e){return _.formatDate(e,t)})).filter((function(t,e,n){return"range"!==_.config.mode||_.config.enableTime||n.indexOf(t)===e})).join("range"!==_.config.mode?_.config.conjunction:_.l10n.rangeSeparator)}function _t(t){void 0===t&&(t=!0),void 0!==_.mobileInput&&_.mobileFormatStr&&(_.mobileInput.value=void 0!==_.latestSelectedDateObj?_.formatDate(_.latestSelectedDateObj,_.mobileFormatStr):""),_.input.value=yt(_.config.dateFormat),void 0!==_.altInput&&(_.altInput.value=yt(_.config.altFormat)),!1!==t&&ft("onValueUpdate")}function bt(t){var e=f(t),n=_.prevMonthNav.contains(e),i=_.nextMonthNav.contains(e);n||i?U(n?-1:1):_.yearElements.indexOf(e)>=0?e.select():e.classList.contains("arrowUp")?_.changeYear(_.currentYear+1):e.classList.contains("arrowDown")&&_.changeYear(_.currentYear-1)}return function(){_.element=_.input=m,_.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],o=t(t({},JSON.parse(JSON.stringify(m.dataset||{}))),v),r={};_.config.parseDate=o.parseDate,_.config.formatDate=o.formatDate,Object.defineProperty(_.config,"enable",{get:function(){return _.config._enable},set:function(t){_.config._enable=pt(t)}}),Object.defineProperty(_.config,"disable",{get:function(){return _.config._disable},set:function(t){_.config._disable=pt(t)}});var a="time"===o.mode;if(!o.dateFormat&&(o.enableTime||a)){var s=E.defaultConfig.dateFormat||i.dateFormat;r.dateFormat=o.noCalendar||a?"H:i"+(o.enableSeconds?":S":""):s+" H:i"+(o.enableSeconds?":S":"")}if(o.altInput&&(o.enableTime||a)&&!o.altFormat){var c=E.defaultConfig.altFormat||i.altFormat;r.altFormat=o.noCalendar||a?"h:i"+(o.enableSeconds?":S K":" K"):c+" h:i"+(o.enableSeconds?":S":"")+" K"}Object.defineProperty(_.config,"minDate",{get:function(){return _.config._minDate},set:ot("min")}),Object.defineProperty(_.config,"maxDate",{get:function(){return _.config._maxDate},set:ot("max")});var u=function(t){return function(e){_.config["min"===t?"_minTime":"_maxTime"]=_.parseDate(e,"H:i:S")}};Object.defineProperty(_.config,"minTime",{get:function(){return _.config._minTime},set:u("min")}),Object.defineProperty(_.config,"maxTime",{get:function(){return _.config._maxTime},set:u("max")}),"time"===o.mode&&(_.config.noCalendar=!0,_.config.enableTime=!0),Object.assign(_.config,r,o);for(var d=0;d<e.length;d++)_.config[e[d]]=!0===_.config[e[d]]||"true"===_.config[e[d]];for(n.filter((function(t){return void 0!==_.config[t]})).forEach((function(t){_.config[t]=l(_.config[t]||[]).map(C)})),_.isMobile=!_.config.disableMobile&&!_.config.inline&&"single"===_.config.mode&&!_.config.disable.length&&!_.config.enable&&!_.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),d=0;d<_.config.plugins.length;d++){var h=_.config.plugins[d](_)||{};for(var p in h)n.indexOf(p)>-1?_.config[p]=l(h[p]).map(C).concat(_.config[p]):void 0===o[p]&&(_.config[p]=h[p])}o.altInputClass||(_.config.altInputClass=rt().className+" "+_.config.altInputClass),ft("onParseConfig")}(),at(),_.input=rt(),_.input?(_.input._type=_.input.type,_.input.type="text",_.input.classList.add("flatpickr-input"),_._input=_.input,_.config.altInput&&(_.altInput=u(_.input.nodeName,_.config.altInputClass),_._input=_.altInput,_.altInput.placeholder=_.input.placeholder,_.altInput.disabled=_.input.disabled,_.altInput.required=_.input.required,_.altInput.tabIndex=_.input.tabIndex,_.altInput.type="text",_.input.setAttribute("type","hidden"),!_.config.static&&_.input.parentNode&&_.input.parentNode.insertBefore(_.altInput,_.input.nextSibling)),_.config.allowInput||_._input.setAttribute("readonly","readonly"),_._positionElement=_.config.positionElement||_._input):_.config.errorHandler(new Error("Invalid input element specified")),function(){_.selectedDates=[],_.now=_.parseDate(_.config.now)||new Date;var t=_.config.defaultDate||("INPUT"!==_.input.nodeName&&"TEXTAREA"!==_.input.nodeName||!_.input.placeholder||_.input.value!==_.input.placeholder?_.input.value:null);t&&ht(t,_.config.dateFormat),_._initialDate=_.selectedDates.length>0?_.selectedDates[0]:_.config.minDate&&_.config.minDate.getTime()>_.now.getTime()?_.config.minDate:_.config.maxDate&&_.config.maxDate.getTime()<_.now.getTime()?_.config.maxDate:_.now,_.currentYear=_._initialDate.getFullYear(),_.currentMonth=_._initialDate.getMonth(),_.selectedDates.length>0&&(_.latestSelectedDateObj=_.selectedDates[0]),void 0!==_.config.minTime&&(_.config.minTime=_.parseDate(_.config.minTime,"H:i")),void 0!==_.config.maxTime&&(_.config.maxTime=_.parseDate(_.config.maxTime,"H:i")),_.minDateHasTime=!!_.config.minDate&&(_.config.minDate.getHours()>0||_.config.minDate.getMinutes()>0||_.config.minDate.getSeconds()>0),_.maxDateHasTime=!!_.config.maxDate&&(_.config.maxDate.getHours()>0||_.config.maxDate.getMinutes()>0||_.config.maxDate.getSeconds()>0)}(),_.utils={getDaysInMonth:function(t,e){return void 0===t&&(t=_.currentMonth),void 0===e&&(e=_.currentYear),1===t&&(e%4==0&&e%100!=0||e%400==0)?29:_.l10n.daysInMonth[t]}},_.isMobile||function(){var t=window.document.createDocumentFragment();if(_.calendarContainer=u("div","flatpickr-calendar"),_.calendarContainer.tabIndex=-1,!_.config.noCalendar){if(t.appendChild((_.monthNav=u("div","flatpickr-months"),_.yearElements=[],_.monthElements=[],_.prevMonthNav=u("span","flatpickr-prev-month"),_.prevMonthNav.innerHTML=_.config.prevArrow,_.nextMonthNav=u("span","flatpickr-next-month"),_.nextMonthNav.innerHTML=_.config.nextArrow,V(),Object.defineProperty(_,"_hidePrevMonthArrow",{get:function(){return _.__hidePrevMonthArrow},set:function(t){_.__hidePrevMonthArrow!==t&&(c(_.prevMonthNav,"flatpickr-disabled",t),_.__hidePrevMonthArrow=t)}}),Object.defineProperty(_,"_hideNextMonthArrow",{get:function(){return _.__hideNextMonthArrow},set:function(t){_.__hideNextMonthArrow!==t&&(c(_.nextMonthNav,"flatpickr-disabled",t),_.__hideNextMonthArrow=t)}}),_.currentYearElement=_.yearElements[0],vt(),_.monthNav)),_.innerContainer=u("div","flatpickr-innerContainer"),_.config.weekNumbers){var e=function(){_.calendarContainer.classList.add("hasWeeks");var t=u("div","flatpickr-weekwrapper");t.appendChild(u("span","flatpickr-weekday",_.l10n.weekAbbreviation));var e=u("div","flatpickr-weeks");return t.appendChild(e),{weekWrapper:t,weekNumbers:e}}(),n=e.weekWrapper,i=e.weekNumbers;_.innerContainer.appendChild(n),_.weekNumbers=i,_.weekWrapper=n}_.rContainer=u("div","flatpickr-rContainer"),_.rContainer.appendChild(Y()),_.daysContainer||(_.daysContainer=u("div","flatpickr-days"),_.daysContainer.tabIndex=-1),F(),_.rContainer.appendChild(_.daysContainer),_.innerContainer.appendChild(_.rContainer),t.appendChild(_.innerContainer)}_.config.enableTime&&t.appendChild(function(){_.calendarContainer.classList.add("hasTime"),_.config.noCalendar&&_.calendarContainer.classList.add("noCalendar");var t=T(_.config);_.timeContainer=u("div","flatpickr-time"),_.timeContainer.tabIndex=-1;var e=u("span","flatpickr-time-separator",":"),n=p("flatpickr-hour",{"aria-label":_.l10n.hourAriaLabel});_.hourElement=n.getElementsByTagName("input")[0];var i=p("flatpickr-minute",{"aria-label":_.l10n.minuteAriaLabel});if(_.minuteElement=i.getElementsByTagName("input")[0],_.hourElement.tabIndex=_.minuteElement.tabIndex=-1,_.hourElement.value=r(_.latestSelectedDateObj?_.latestSelectedDateObj.getHours():_.config.time_24hr?t.hours:function(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}(t.hours)),_.minuteElement.value=r(_.latestSelectedDateObj?_.latestSelectedDateObj.getMinutes():t.minutes),_.hourElement.setAttribute("step",_.config.hourIncrement.toString()),_.minuteElement.setAttribute("step",_.config.minuteIncrement.toString()),_.hourElement.setAttribute("min",_.config.time_24hr?"0":"1"),_.hourElement.setAttribute("max",_.config.time_24hr?"23":"12"),_.hourElement.setAttribute("maxlength","2"),_.minuteElement.setAttribute("min","0"),_.minuteElement.setAttribute("max","59"),_.minuteElement.setAttribute("maxlength","2"),_.timeContainer.appendChild(n),_.timeContainer.appendChild(e),_.timeContainer.appendChild(i),_.config.time_24hr&&_.timeContainer.classList.add("time24hr"),_.config.enableSeconds){_.timeContainer.classList.add("hasSeconds");var o=p("flatpickr-second");_.secondElement=o.getElementsByTagName("input")[0],_.secondElement.value=r(_.latestSelectedDateObj?_.latestSelectedDateObj.getSeconds():t.seconds),_.secondElement.setAttribute("step",_.minuteElement.getAttribute("step")),_.secondElement.setAttribute("min","0"),_.secondElement.setAttribute("max","59"),_.secondElement.setAttribute("maxlength","2"),_.timeContainer.appendChild(u("span","flatpickr-time-separator",":")),_.timeContainer.appendChild(o)}return _.config.time_24hr||(_.amPM=u("span","flatpickr-am-pm",_.l10n.amPM[a((_.latestSelectedDateObj?_.hourElement.value:_.config.defaultHour)>11)]),_.amPM.title=_.l10n.toggleTitle,_.amPM.tabIndex=-1,_.timeContainer.appendChild(_.amPM)),_.timeContainer}()),c(_.calendarContainer,"rangeMode","range"===_.config.mode),c(_.calendarContainer,"animate",!0===_.config.animate),c(_.calendarContainer,"multiMonth",_.config.showMonths>1),_.calendarContainer.appendChild(t);var o=void 0!==_.config.appendTo&&void 0!==_.config.appendTo.nodeType;if((_.config.inline||_.config.static)&&(_.calendarContainer.classList.add(_.config.inline?"inline":"static"),_.config.inline&&(!o&&_.element.parentNode?_.element.parentNode.insertBefore(_.calendarContainer,_._input.nextSibling):void 0!==_.config.appendTo&&_.config.appendTo.appendChild(_.calendarContainer)),_.config.static)){var s=u("div","flatpickr-wrapper");_.element.parentNode&&_.element.parentNode.insertBefore(s,_.element),s.appendChild(_.element),_.altInput&&s.appendChild(_.altInput),s.appendChild(_.calendarContainer)}_.config.static||_.config.inline||(void 0!==_.config.appendTo?_.config.appendTo:window.document.body).appendChild(_.calendarContainer)}(),function(){if(_.config.wrap&&["open","close","toggle","clear"].forEach((function(t){Array.prototype.forEach.call(_.element.querySelectorAll("[data-"+t+"]"),(function(e){return P(e,"click",_[t])}))})),_.isMobile)!function(){var t=_.config.enableTime?_.config.noCalendar?"time":"datetime-local":"date";_.mobileInput=u("input",_.input.className+" flatpickr-mobile"),_.mobileInput.tabIndex=1,_.mobileInput.type=t,_.mobileInput.disabled=_.input.disabled,_.mobileInput.required=_.input.required,_.mobileInput.placeholder=_.input.placeholder,_.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",_.selectedDates.length>0&&(_.mobileInput.defaultValue=_.mobileInput.value=_.formatDate(_.selectedDates[0],_.mobileFormatStr)),_.config.minDate&&(_.mobileInput.min=_.formatDate(_.config.minDate,"Y-m-d")),_.config.maxDate&&(_.mobileInput.max=_.formatDate(_.config.maxDate,"Y-m-d")),_.input.getAttribute("step")&&(_.mobileInput.step=String(_.input.getAttribute("step"))),_.input.type="hidden",void 0!==_.altInput&&(_.altInput.type="hidden");try{_.input.parentNode&&_.input.parentNode.insertBefore(_.mobileInput,_.input.nextSibling)}catch(t){}P(_.mobileInput,"change",(function(t){_.setDate(f(t).value,!1,_.mobileFormatStr),ft("onChange"),ft("onClose")}))}();else{var t=s(it,50);if(_._debouncedChange=s(O,300),_.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&P(_.daysContainer,"mouseover",(function(t){"range"===_.config.mode&&nt(f(t))})),P(window.document.body,"keydown",et),_.config.inline||_.config.static||P(window,"resize",t),void 0!==window.ontouchstart?P(window.document,"touchstart",X):P(window.document,"mousedown",X),P(window.document,"focus",X,{capture:!0}),!0===_.config.clickOpens&&(P(_._input,"focus",_.open),P(_._input,"click",_.open)),void 0!==_.daysContainer&&(P(_.monthNav,"click",bt),P(_.monthNav,["keyup","increment"],L),P(_.daysContainer,"click",ut)),void 0!==_.timeContainer&&void 0!==_.minuteElement&&void 0!==_.hourElement){P(_.timeContainer,["increment"],D),P(_.timeContainer,"blur",D,{capture:!0}),P(_.timeContainer,"click",N),P([_.hourElement,_.minuteElement],["focus","click"],(function(t){return f(t).select()})),void 0!==_.secondElement&&P(_.secondElement,"focus",(function(){return _.secondElement&&_.secondElement.select()})),void 0!==_.amPM&&P(_.amPM,"click",(function(t){D(t),O()}))}_.config.allowInput&&P(_._input,"blur",tt)}}(),(_.selectedDates.length||_.config.noCalendar)&&(_.config.enableTime&&A(_.config.noCalendar?_.latestSelectedDateObj:void 0),_t(!1)),S();var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!_.isMobile&&e&&st(),ft("onReady")}(),_}function S(t,e){for(var n=Array.prototype.slice.call(t).filter((function(t){return t instanceof HTMLElement})),i=[],o=0;o<n.length;o++){var r=n[o];try{if(null!==r.getAttribute("data-fp-omit"))continue;void 0!==r._flatpickr&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=C(r,e||{}),i.push(r._flatpickr)}catch(t){console.error(t)}}return 1===i.length?i[0]:i}"function"!=typeof Object.assign&&(Object.assign=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!t)throw TypeError("Cannot convert undefined or null to object");for(var i=function(e){e&&Object.keys(e).forEach((function(n){return t[n]=e[n]}))},o=0,r=e;o<r.length;o++){var a=r[o];i(a)}return t}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return S(this,t)},HTMLElement.prototype.flatpickr=function(t){return S([this],t)});var E=function(t,e){return"string"==typeof t?S(window.document.querySelectorAll(t),e):t instanceof Node?S([t],e):S(t,e)};return E.defaultConfig={},E.l10ns={en:t({},o),default:t({},o)},E.localize=function(e){E.l10ns.default=t(t({},E.l10ns.default),e)},E.setDefaults=function(e){E.defaultConfig=t(t({},E.defaultConfig),e)},E.parseDate=w({}),E.formatDate=b({}),E.compareDates=x,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(t){return S(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof t?parseInt(t,10):t))},"undefined"!=typeof window&&(window.flatpickr=E),E})),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n),n}:t(jQuery)}((function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;var n,i,o,r,a,s,l,c,u,d,h,p,f,m,g;function v(t,e){return f.call(t,e)}function y(t,e){var n,i,o,r,a,s,l,c,u,d,p,f=e&&e.split("/"),m=h.map,v=m&&m["*"]||{};if(t){for(a=(t=t.split("/")).length-1,h.nodeIdCompat&&g.test(t[a])&&(t[a]=t[a].replace(g,"")),"."===t[0].charAt(0)&&f&&(t=f.slice(0,f.length-1).concat(t)),u=0;u<t.length;u++)if("."===(p=t[u]))t.splice(u,1),--u;else if(".."===p){if(0===u||1===u&&".."===t[2]||".."===t[u-1])continue;0<u&&(t.splice(u-1,2),u-=2)}t=t.join("/")}if((f||v)&&m){for(u=(n=t.split("/")).length;0<u;--u){if(i=n.slice(0,u).join("/"),f)for(d=f.length;0<d;--d)if(o=(o=m[f.slice(0,d).join("/")])&&o[i]){r=o,s=u;break}if(r)break;!l&&v&&v[i]&&(l=v[i],c=u)}!r&&l&&(r=l,s=c),r&&(n.splice(0,s,r),t=n.join("/"))}return t}function _(t,e){return function(){var n=m.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),s.apply(r,n.concat([t,e]))}}function b(t){return function(e){u[t]=e}}function w(t){if(v(d,t)){var e=d[t];delete d[t],p[t]=!0,a.apply(r,e)}if(!v(u,t)&&!v(p,t))throw new Error("No "+t);return u[t]}function x(t){var e,n=t?t.indexOf("!"):-1;return-1<n&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function T(t){return t?x(t):[]}return e&&e.requirejs||(e?i=e:e={},u={},d={},h={},p={},f=Object.prototype.hasOwnProperty,m=[].slice,g=/\.js$/,l=function(t,e){var n,i,o=x(t),r=o[0],a=e[1];return t=o[1],r&&(n=w(r=y(r,a))),r?t=n&&n.normalize?n.normalize(t,(i=a,function(t){return y(t,i)})):y(t,a):(r=(o=x(t=y(t,a)))[0],t=o[1],r&&(n=w(r))),{f:r?r+"!"+t:t,n:t,pr:r,p:n}},c={require:function(t){return _(t)},exports:function(t){var e=u[t];return void 0!==e?e:u[t]={}},module:function(t){return{id:t,uri:"",exports:u[t],config:(e=t,function(){return h&&h.config&&h.config[e]||{}})};var e}},a=function(t,e,n,i){var o,a,s,h,f,m,g,y=[],x=typeof n;if(m=T(i=i||t),"undefined"==x||"function"==x){for(e=!e.length&&n.length?["require","exports","module"]:e,f=0;f<e.length;f+=1)if("require"===(a=(h=l(e[f],m)).f))y[f]=c.require(t);else if("exports"===a)y[f]=c.exports(t),g=!0;else if("module"===a)o=y[f]=c.module(t);else if(v(u,a)||v(d,a)||v(p,a))y[f]=w(a);else{if(!h.p)throw new Error(t+" missing "+a);h.p.load(h.n,_(i,!0),b(a),{}),y[f]=u[a]}s=n?n.apply(u[t],y):void 0,t&&(o&&o.exports!==r&&o.exports!==u[t]?u[t]=o.exports:s===r&&g||(u[t]=s))}else t&&(u[t]=n)},n=i=s=function(t,e,n,i,o){if("string"==typeof t)return c[t]?c[t](e):w(l(t,T(e)).f);if(!t.splice){if((h=t).deps&&s(h.deps,h.callback),!e)return;e.splice?(t=e,e=n,n=null):t=r}return e=e||function(){},"function"==typeof n&&(n=i,i=o),i?a(r,t,e,n):setTimeout((function(){a(r,t,e,n)}),4),s},s.config=function(t){return s(t)},n._defined=u,(o=function(t,e,n){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(n=e,e=[]),v(u,t)||v(d,t)||(d[t]=[t,e,n])}).amd={jQuery:!0},e.requirejs=n,e.require=i,e.define=o),e.define("almond",(function(){})),e.define("jquery",[],(function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),e.define("select2/utils",["jquery"],(function(t){var e={};function n(t){var e=t.prototype,n=[];for(var i in e)"function"==typeof e[i]&&"constructor"!==i&&n.push(i);return n}function i(){this.listeners={}}e.Extend=function(t,e){var n={}.hasOwnProperty;function i(){this.constructor=t}for(var o in e)n.call(e,o)&&(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},e.Decorate=function(t,e){var i=n(e),o=n(t);function r(){var n=Array.prototype.unshift,i=e.prototype.constructor.length,o=t.prototype.constructor;0<i&&(n.call(arguments,t.prototype.constructor),o=e.prototype.constructor),o.apply(this,arguments)}e.displayName=t.displayName,r.prototype=new function(){this.constructor=r};for(var a=0;a<o.length;a++){var s=o[a];r.prototype[s]=t.prototype[s]}function l(t){var n=function(){};t in r.prototype&&(n=r.prototype[t]);var i=e.prototype[t];return function(){return Array.prototype.unshift.call(arguments,n),i.apply(this,arguments)}}for(var c=0;c<i.length;c++){var u=i[c];r.prototype[u]=l(u)}return r},i.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},i.prototype.trigger=function(t){var e=Array.prototype.slice,n=e.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=t)in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].apply(this,e)},e.Observable=i,e.generateChars=function(t){for(var e="",n=0;n<t;n++)e+=Math.floor(36*Math.random()).toString(36);return e},e.bind=function(t,e){return function(){t.apply(e,arguments)}},e._convertData=function(t){for(var e in t){var n=e.split("-"),i=t;if(1!==n.length){for(var o=0;o<n.length;o++){var r=n[o];(r=r.substring(0,1).toLowerCase()+r.substring(1))in i||(i[r]={}),o==n.length-1&&(i[r]=t[e]),i=i[r]}delete t[e]}}return t},e.hasScroll=function(e,n){var i=t(n),o=n.style.overflowX,r=n.style.overflowY;return(o!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===o||"scroll"===r||i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth)},e.escapeMarkup=function(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))},e.appendMany=function(e,n){if("1.7"===t.fn.jquery.substr(0,3)){var i=t();t.map(n,(function(t){i=i.add(t)})),n=i}e.append(n)},e.__cache={};var o=0;return e.GetUniqueElementId=function(t){var e=t.getAttribute("data-select2-id");return null==e&&(t.id?(e=t.id,t.setAttribute("data-select2-id",e)):(t.setAttribute("data-select2-id",++o),e=o.toString())),e},e.StoreData=function(t,n,i){var o=e.GetUniqueElementId(t);e.__cache[o]||(e.__cache[o]={}),e.__cache[o][n]=i},e.GetData=function(n,i){var o=e.GetUniqueElementId(n);return i?e.__cache[o]&&null!=e.__cache[o][i]?e.__cache[o][i]:t(n).data(i):e.__cache[o]},e.RemoveData=function(t){var n=e.GetUniqueElementId(t);null!=e.__cache[n]&&delete e.__cache[n],t.removeAttribute("data-select2-id")},e})),e.define("select2/results",["jquery","./utils"],(function(t,e){function n(t,e,i){this.$element=t,this.data=i,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(e){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=t('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),o=this.options.get("translations").get(e.message);i.append(n(o(e.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var n=0;n<t.results.length;n++){var i=t.results[n],o=this.option(i);e.push(o)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(t,e){e.find(".select2-results").append(t)},n.prototype.sort=function(t){return this.options.get("sorter")(t)},n.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");0<e.length?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current((function(i){var o=t.map(i,(function(t){return t.id.toString()}));n.$results.find(".select2-results__option[aria-selected]").each((function(){var n=t(this),i=e.GetData(this,"data"),r=""+i.id;null!=i.element&&i.element.selected||null==i.element&&-1<t.inArray(r,o)?n.attr("aria-selected","true"):n.attr("aria-selected","false")}))}))},n.prototype.showLoading=function(t){this.hideLoading();var e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},n=this.option(e);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.className="select2-results__option";var o={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var a in(null!=n.element&&r.call(n.element,":disabled")||null==n.element&&n.disabled)&&(delete o["aria-selected"],o["aria-disabled"]="true"),null==n.id&&delete o["aria-selected"],null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(o.role="group",o["aria-label"]=n.text,delete o["aria-selected"]),o){var s=o[a];i.setAttribute(a,s)}if(n.children){var l=t(i),c=document.createElement("strong");c.className="select2-results__group",t(c),this.template(n,c);for(var u=[],d=0;d<n.children.length;d++){var h=n.children[d],p=this.option(h);u.push(p)}var f=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});f.append(u),l.append(c),l.append(f)}else this.template(n,i);return e.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var o=this,r=n.id+"-results";this.$results.attr("id",r),n.on("results:all",(function(t){o.clear(),o.append(t.data),n.isOpen()&&(o.setClasses(),o.highlightFirstItem())})),n.on("results:append",(function(t){o.append(t.data),n.isOpen()&&o.setClasses()})),n.on("query",(function(t){o.hideMessages(),o.showLoading(t)})),n.on("select",(function(){n.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())})),n.on("open",(function(){o.$results.attr("aria-expanded","true"),o.$results.attr("aria-hidden","false"),o.setClasses(),o.ensureHighlightVisible()})),n.on("close",(function(){o.$results.attr("aria-expanded","false"),o.$results.attr("aria-hidden","true"),o.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var t=o.getHighlightedResults();0!==t.length&&t.trigger("mouseup")})),n.on("results:select",(function(){var t=o.getHighlightedResults();if(0!==t.length){var n=e.GetData(t[0],"data");"true"==t.attr("aria-selected")?o.trigger("close",{}):o.trigger("select",{data:n})}})),n.on("results:previous",(function(){var t=o.getHighlightedResults(),e=o.$results.find("[aria-selected]"),n=e.index(t);if(!(n<=0)){var i=n-1;0===t.length&&(i=0);var r=e.eq(i);r.trigger("mouseenter");var a=o.$results.offset().top,s=r.offset().top,l=o.$results.scrollTop()+(s-a);0===i?o.$results.scrollTop(0):s-a<0&&o.$results.scrollTop(l)}})),n.on("results:next",(function(){var t=o.getHighlightedResults(),e=o.$results.find("[aria-selected]"),n=e.index(t)+1;if(!(n>=e.length)){var i=e.eq(n);i.trigger("mouseenter");var r=o.$results.offset().top+o.$results.outerHeight(!1),a=i.offset().top+i.outerHeight(!1),s=o.$results.scrollTop()+a-r;0===n?o.$results.scrollTop(0):r<a&&o.$results.scrollTop(s)}})),n.on("results:focus",(function(t){t.element.addClass("select2-results__option--highlighted")})),n.on("results:message",(function(t){o.displayMessage(t)})),t.fn.mousewheel&&this.$results.on("mousewheel",(function(t){var e=o.$results.scrollTop(),n=o.$results.get(0).scrollHeight-e+t.deltaY,i=0<t.deltaY&&e-t.deltaY<=0,r=t.deltaY<0&&n<=o.$results.height();i?(o.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):r&&(o.$results.scrollTop(o.$results.get(0).scrollHeight-o.$results.height()),t.preventDefault(),t.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(n){var i=t(this),r=e.GetData(this,"data");"true"!==i.attr("aria-selected")?o.trigger("select",{originalEvent:n,data:r}):o.options.get("multiple")?o.trigger("unselect",{originalEvent:n,data:r}):o.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(n){var i=e.GetData(this,"data");o.getHighlightedResults().removeClass("select2-results__option--highlighted"),o.trigger("results:focus",{data:i,element:t(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]").index(t),n=this.$results.offset().top,i=t.offset().top,o=this.$results.scrollTop()+(i-n),r=i-n;o-=2*t.outerHeight(!1),e<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(e,n){var i=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),r=i(e,n);null==r?n.style.display="none":"string"==typeof r?n.innerHTML=o(r):t(n).append(r)},n})),e.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),e.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,n){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var n=t('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=e.GetData(this.$element[0],"old-tabindex")?this._tabindex=e.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n},i.prototype.bind=function(t,e){var i=this,o=t.id+"-results";this.container=t,this.$selection.on("focus",(function(t){i.trigger("focus",t)})),this.$selection.on("blur",(function(t){i._handleBlur(t)})),this.$selection.on("keydown",(function(t){i.trigger("keypress",t),t.which===n.SPACE&&t.preventDefault()})),t.on("results:focus",(function(t){i.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){i.update(t.data)})),t.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",o),i._attachCloseHandler(t)})),t.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(t)})),t.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")})),t.on("disable",(function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")}))},i.prototype._handleBlur=function(e){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||t.contains(n.$selection[0],document.activeElement)||n.trigger("blur",e)}),1)},i.prototype._attachCloseHandler=function(n){t(document.body).on("mousedown.select2."+n.id,(function(n){var i=t(n.target).closest(".select2");t(".select2.select2-container--open").each((function(){this!=i[0]&&e.GetData(this,"element").select2("close")}))}))},i.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},i.prototype.position=function(t,e){e.find(".selection").append(t)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i})),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,e),o.prototype.render=function(){var t=o.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},o.prototype.bind=function(t,e){var n=this;o.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",(function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(t){})),this.$selection.on("blur",(function(t){})),t.on("focus",(function(e){t.isOpen()||n.$selection.trigger("focus")}))},o.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},o.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},o.prototype.selectionContainer=function(){return t("<span></span>")},o.prototype.update=function(t){if(0!==t.length){var e=t[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(e,n);n.empty().append(i);var o=e.title||e.text;o?n.attr("title",o):n.removeAttr("title")}else this.clear()},o})),e.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,n){function i(t,e){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,e),i.prototype.render=function(){var t=i.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},i.prototype.bind=function(e,o){var r=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(t){r.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){if(!r.isDisabled()){var i=t(this).parent(),o=n.GetData(i[0],"data");r.trigger("unselect",{originalEvent:e,data:o})}}))},i.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},i.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},i.prototype.selectionContainer=function(){return t('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},i.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],i=0;i<t.length;i++){var o=t[i],r=this.selectionContainer(),a=this.display(o,r);r.append(a);var s=o.title||o.text;s&&r.attr("title",s),n.StoreData(r[0],"data",o),e.push(r)}var l=this.$selection.find(".select2-selection__rendered");n.appendMany(l,e)}},i})),e.define("select2/selection/placeholder",["../utils"],(function(t){function e(t,e,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var n=this.selectionContainer();return n.html(this.display(e)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},e.prototype.update=function(t,e){var n=1==e.length&&e[0].id!=this.placeholder.id;if(1<e.length||n)return t.call(this,e);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e})),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(t,e,n){function i(){}return i.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(t){i._handleClear(t)})),e.on("keypress",(function(t){i._handleKeyboardClear(t,e)}))},i.prototype._handleClear=function(t,e){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){e.stopPropagation();var o=n.GetData(i[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var a={data:o};if(this.trigger("clear",a),a.prevented)this.$element.val(r);else{for(var s=0;s<o.length;s++)if(a={data:o[s]},this.trigger("unselect",a),a.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(t,n,i){i.isOpen()||n.which!=e.DELETE&&n.which!=e.BACKSPACE||this._handleClear(n)},i.prototype.update=function(e,i){if(e.call(this,i),!(0<this.$selection.find(".select2-selection__placeholder").length||0===i.length)){var o=this.options.get("translations").get("removeAllItems"),r=t('<span class="select2-selection__clear" title="'+o()+'">&times;</span>');n.StoreData(r[0],"data",i),this.$selection.find(".select2-selection__rendered").prepend(r)}},i})),e.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,n){function i(t,e,n){t.call(this,e,n)}return i.prototype.render=function(e){var n=t('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=e.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(t,i,o){var r=this,a=i.id+"-results";t.call(this,i,o),i.on("open",(function(){r.$search.attr("aria-controls",a),r.$search.trigger("focus")})),i.on("close",(function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")})),i.on("enable",(function(){r.$search.prop("disabled",!1),r._transferTabIndex()})),i.on("disable",(function(){r.$search.prop("disabled",!0)})),i.on("focus",(function(t){r.$search.trigger("focus")})),i.on("results:focus",(function(t){t.data._resultId?r.$search.attr("aria-activedescendant",t.data._resultId):r.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(t){r.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){r._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){if(t.stopPropagation(),r.trigger("keypress",t),r._keyUpPrevented=t.isDefaultPrevented(),t.which===n.BACKSPACE&&""===r.$search.val()){var i=r.$searchContainer.prev(".select2-selection__choice");if(0<i.length){var o=e.GetData(i[0],"data");r.searchRemoveChoice(o),t.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(t){r.$search.val()&&t.stopPropagation()}));var s=document.documentMode,l=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){l?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){if(l&&"input"===t.type)r.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=n.SHIFT&&e!=n.CTRL&&e!=n.ALT&&e!=n.TAB&&r.handleSearch(t)}}))},i.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},i.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";t=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em",this.$search.css("width",t)},i})),e.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,n,i){var o=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];e.call(this,n,i),n.on("*",(function(e,n){if(-1!==t.inArray(e,r)){n=n||{};var i=t.Event("select2:"+e,{params:n});o.$element.trigger(i),-1!==t.inArray(e,a)&&(n.prevented=i.isDefaultPrevented())}}))},e})),e.define("select2/translation",["jquery","require"],(function(t,e){function n(t){this.dict=t||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(t){return this.dict[t]},n.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},n._cache={},n.loadPath=function(t){if(!(t in n._cache)){var i=e(t);n._cache[t]=i}return new n(n._cache[t])},n})),e.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),e.define("select2/data/base",["../utils"],(function(t){function e(t,n){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,n){var i=e.id+"-result-";return i+=t.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+t.generateChars(4),i},e})),e.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,n){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,t),i.prototype.current=function(t){var e=[],i=this;this.$element.find(":selected").each((function(){var t=n(this),o=i.item(t);e.push(o)})),t(e)},i.prototype.select=function(t){var e=this;if(t.selected=!0,n(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(i){var o=[];(t=[t]).push.apply(t,i);for(var r=0;r<t.length;r++){var a=t[r].id;-1===n.inArray(a,o)&&o.push(a)}e.$element.val(o),e.$element.trigger("input").trigger("change")}));else{var i=t.id;this.$element.val(i),this.$element.trigger("input").trigger("change")}},i.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,n(t.element).is("option"))return t.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(i){for(var o=[],r=0;r<i.length;r++){var a=i[r].id;a!==t.id&&-1===n.inArray(a,o)&&o.push(a)}e.$element.val(o),e.$element.trigger("input").trigger("change")}))}},i.prototype.bind=function(t,e){var n=this;(this.container=t).on("select",(function(t){n.select(t.data)})),t.on("unselect",(function(t){n.unselect(t.data)}))},i.prototype.destroy=function(){this.$element.find("*").each((function(){e.RemoveData(this)}))},i.prototype.query=function(t,e){var i=[],o=this;this.$element.children().each((function(){var e=n(this);if(e.is("option")||e.is("optgroup")){var r=o.item(e),a=o.matches(t,r);null!==a&&i.push(a)}})),e({results:i})},i.prototype.addOptions=function(t){e.appendMany(this.$element,t)},i.prototype.option=function(t){var i;t.children?(i=document.createElement("optgroup")).label=t.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=t.text:i.innerText=t.text,void 0!==t.id&&(i.value=t.id),t.disabled&&(i.disabled=!0),t.selected&&(i.selected=!0),t.title&&(i.title=t.title);var o=n(i),r=this._normalizeItem(t);return r.element=i,e.StoreData(i,"data",r),o},i.prototype.item=function(t){var i={};if(null!=(i=e.GetData(t[0],"data")))return i;if(t.is("option"))i={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){i={text:t.prop("label"),children:[],title:t.prop("title")};for(var o=t.children("option"),r=[],a=0;a<o.length;a++){var s=n(o[a]),l=this.item(s);r.push(l)}i.children=r}return(i=this._normalizeItem(i)).element=t[0],e.StoreData(t[0],"data",i),i},i.prototype._normalizeItem=function(t){return t!==Object(t)&&(t={id:t,text:t}),null!=(t=n.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),n.extend({},{selected:!1,disabled:!1},t)},i.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},i})),e.define("select2/data/array",["./select","../utils","jquery"],(function(t,e,n){function i(t,e){this._dataToConvert=e.get("data")||[],i.__super__.constructor.call(this,t,e)}return e.Extend(i,t),i.prototype.bind=function(t,e){i.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(t){var e=this.$element.find("option").filter((function(e,n){return n.value==t.id.toString()}));0===e.length&&(e=this.option(t),this.addOptions(e)),i.__super__.select.call(this,t)},i.prototype.convertToOptions=function(t){var i=this,o=this.$element.find("option"),r=o.map((function(){return i.item(n(this)).id})).get(),a=[];function s(t){return function(){return n(this).val()==t.id}}for(var l=0;l<t.length;l++){var c=this._normalizeItem(t[l]);if(0<=n.inArray(c.id,r)){var u=o.filter(s(c)),d=this.item(u),h=n.extend(!0,{},c,d),p=this.option(h);u.replaceWith(p)}else{var f=this.option(c);if(c.children){var m=this.convertToOptions(c.children);e.appendMany(f,m)}a.push(f)}}return a},i})),e.define("select2/data/ajax",["./array","../utils","jquery"],(function(t,e,n){function i(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,t,e)}return e.Extend(i,t),i.prototype._applyDefaults=function(t){var e={data:function(t){return n.extend({},t,{q:t.term})},transport:function(t,e,i){var o=n.ajax(t);return o.then(e),o.fail(i),o}};return n.extend({},e,t,!0)},i.prototype.processResults=function(t){return t},i.prototype.query=function(t,e){var i=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=n.extend({type:"GET"},this.ajaxOptions);function r(){var r=o.transport(o,(function(o){var r=i.processResults(o,t);i.options.get("debug")&&window.console&&console.error&&(r&&r.results&&n.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(r)}),(function(){"status"in r&&(0===r.status||"0"===r.status)||i.trigger("results:message",{message:"errorLoading"})}));i._request=r}"function"==typeof o.url&&(o.url=o.url.call(this.$element,t)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},i})),e.define("select2/data/tags",["jquery"],(function(t){function e(e,n,i){var o=i.get("tags"),r=i.get("createTag");void 0!==r&&(this.createTag=r);var a=i.get("insertTag");if(void 0!==a&&(this.insertTag=a),e.call(this,n,i),t.isArray(o))for(var s=0;s<o.length;s++){var l=o[s],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return e.prototype.query=function(t,e,n){var i=this;this._removeOldTags(),null!=e.term&&null==e.page?t.call(this,e,(function t(o,r){for(var a=o.results,s=0;s<a.length;s++){var l=a[s],c=null!=l.children&&!t({results:l.children},!0);if((l.text||"").toUpperCase()===(e.term||"").toUpperCase()||c)return!r&&(o.data=a,void n(o))}if(r)return!0;var u=i.createTag(e);if(null!=u){var d=i.option(u);d.attr("data-select2-tag",!0),i.addOptions([d]),i.insertTag(a,u)}o.results=a,n(o)})):t.call(this,e,n)},e.prototype.createTag=function(e,n){var i=t.trim(n.term);return""===i?null:{id:i,text:i}},e.prototype.insertTag=function(t,e,n){e.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each((function(){this.selected||t(this).remove()}))},e})),e.define("select2/data/tokenizer",["jquery"],(function(t){function e(t,e,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),t.call(this,e,n)}return e.prototype.bind=function(t,e,n){t.call(this,e,n),this.$search=e.dropdown.$search||e.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,n,i){var o=this;n.term=n.term||"";var r=this.tokenizer(n,this.options,(function(e){var n,i=o._normalizeItem(e);if(!o.$element.find("option").filter((function(){return t(this).val()===i.id})).length){var r=o.option(i);r.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([r])}n=i,o.trigger("select",{data:n})}));r.term!==n.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),n.term=r.term),e.call(this,n,i)},e.prototype.tokenizer=function(e,n,i,o){for(var r=i.get("tokenSeparators")||[],a=n.term,s=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};s<a.length;){var c=a[s];if(-1!==t.inArray(c,r)){var u=a.substr(0,s),d=l(t.extend({},n,{term:u}));null!=d?(o(d),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},e})),e.define("select2/data/minimumInputLength",[],(function(){function t(t,e,n){this.minimumInputLength=n.get("minimumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.term=e.term||"",e.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t})),e.define("select2/data/maximumInputLength",[],(function(){function t(t,e,n){this.maximumInputLength=n.get("maximumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.term=e.term||"",0<this.maximumInputLength&&e.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t})),e.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("select",(function(){i._checkIfMaximumSelected()}))},t.prototype.query=function(t,e,n){var i=this;this._checkIfMaximumSelected((function(){t.call(i,e,n)}))},t.prototype._checkIfMaximumSelected=function(t,e){var n=this;this.current((function(t){var i=null!=t?t.length:0;0<n.maximumSelectionLength&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):e&&e()}))},t})),e.define("select2/dropdown",["jquery","./utils"],(function(t,e){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),e.define("select2/dropdown/search",["jquery","../utils"],(function(t,e){function n(){}return n.prototype.render=function(e){var n=e.call(this),i=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(e,n,i){var o=this,r=n.id+"-results";e.call(this,n,i),this.$search.on("keydown",(function(t){o.trigger("keypress",t),o._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){o.handleSearch(t)})),n.on("open",(function(){o.$search.attr("tabindex",0),o.$search.attr("aria-controls",r),o.$search.trigger("focus"),window.setTimeout((function(){o.$search.trigger("focus")}),0)})),n.on("close",(function(){o.$search.attr("tabindex",-1),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.val(""),o.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||o.$search.trigger("focus")})),n.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(o.showSearch(t)?o.$searchContainer.removeClass("select2-search--hide"):o.$searchContainer.addClass("select2-search--hide"))})),n.on("results:focus",(function(t){t.data._resultId?o.$search.attr("aria-activedescendant",t.data._resultId):o.$search.removeAttr("aria-activedescendant")}))},n.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.showSearch=function(t,e){return!0},n})),e.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,i)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),i=e.length-1;0<=i;i--){var o=e[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},t})),e.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,n,i){this.lastParams={},t.call(this,e,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("query",(function(t){i.lastParams=t,i.loading=!0})),e.on("query:append",(function(t){i.lastParams=t,i.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=t.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var n=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=n+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return e.html(n(this.lastParams)),e},e})),e.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function n(e,n,i){this.$dropdownParent=t(i.get("dropdownParent")||document.body),e.call(this,n,i)}return n.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(e),i._bindContainerResultHandlers(e)})),e.on("close",(function(){i._hideDropdown(),i._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},n.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(e){var n=t("<span></span>"),i=e.call(this);return n.append(i),this.$dropdownContainer=n},n.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(t,e){if(!this._containerResultsHandlersBound){var n=this;e.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var o=this,r="scroll.select2."+i.id,a="resize.select2."+i.id,s="orientationchange.select2."+i.id,l=this.$container.parents().filter(e.hasScroll);l.each((function(){e.StoreData(this,"select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),l.on(r,(function(n){var i=e.GetData(this,"select2-scroll-position");t(this).scrollTop(i.y)})),t(window).on(r+" "+a+" "+s,(function(t){o._positionDropdown(),o._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,i){var o="scroll.select2."+i.id,r="resize.select2."+i.id,a="orientationchange.select2."+i.id;this.$container.parents().filter(e.hasScroll).off(o),t(window).off(o+" "+r+" "+a)},n.prototype._positionDropdown=function(){var e=t(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),o=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=r.top,a.bottom=r.top+a.height;var s=this.$dropdown.outerHeight(!1),l=e.scrollTop(),c=e.scrollTop()+e.height(),u=l<r.top-s,d=c>r.bottom+s,h={left:r.left,top:a.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var f={top:0,left:0};(t.contains(document.body,p[0])||p[0].isConnected)&&(f=p.offset()),h.top-=f.top,h.left-=f.left,n||i||(o="below"),d||!u||n?!u&&d&&n&&(o="below"):o="above",("above"==o||n&&"below"!==o)&&(h.top=a.top-f.top-s),null!=o&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+o),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+o)),this.$dropdownContainer.css(h)},n.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},n.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),e.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(t,e,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,n,i)}return t.prototype.showSearch=function(t,e){return!(function t(e){for(var n=0,i=0;i<e.length;i++){var o=e[i];o.children?n+=t(o.children):n++}return n}(e.data.results)<this.minimumResultsForSearch)&&t.call(this,e)},t})),e.define("select2/dropdown/selectOnClose",["../utils"],(function(t){function e(){}return e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("close",(function(t){i._handleSelectOnClose(t)}))},e.prototype._handleSelectOnClose=function(e,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var o=this.getHighlightedResults();if(!(o.length<1)){var r=t.GetData(o[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e})),e.define("select2/dropdown/closeOnSelect",[],(function(){function t(){}return t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("select",(function(t){i._selectTriggered(t)})),e.on("unselect",(function(t){i._selectTriggered(t)}))},t.prototype._selectTriggered=function(t,e){var n=e.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:e})},t})),e.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,n="Please delete "+e+" character";return 1!=e&&(n+="s"),n},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}})),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(t,e,n,i,o,r,a,s,l,c,u,d,h,p,f,m,g,v,y,_,b,w,x,T,C,S,E,D,k){function A(){this.reset()}return A.prototype.apply=function(u){if(null==(u=t.extend(!0,{},this.defaults,u)).dataAdapter){if(null!=u.ajax?u.dataAdapter=f:null!=u.data?u.dataAdapter=p:u.dataAdapter=h,0<u.minimumInputLength&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),0<u.maximumInputLength&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),0<u.maximumSelectionLength&&(u.dataAdapter=c.Decorate(u.dataAdapter,_)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,m)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,g)),null!=u.query){var d=e(u.amdBase+"compat/query");u.dataAdapter=c.Decorate(u.dataAdapter,d)}if(null!=u.initSelection){var k=e(u.amdBase+"compat/initSelection");u.dataAdapter=c.Decorate(u.dataAdapter,k)}}if(null==u.resultsAdapter&&(u.resultsAdapter=n,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,T)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,x)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,E))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=b;else{var A=c.Decorate(b,w);u.dropdownAdapter=A}if(0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,S)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,D)),null!=u.dropdownCssClass||null!=u.dropdownCss||null!=u.adaptDropdownCssClass){var M=e(u.amdBase+"compat/dropdownCss");u.dropdownAdapter=c.Decorate(u.dropdownAdapter,M)}u.dropdownAdapter=c.Decorate(u.dropdownAdapter,C)}if(null==u.selectionAdapter){if(u.multiple?u.selectionAdapter=o:u.selectionAdapter=i,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,r)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),null!=u.containerCssClass||null!=u.containerCss||null!=u.adaptContainerCssClass){var L=e(u.amdBase+"compat/containerCss");u.selectionAdapter=c.Decorate(u.selectionAdapter,L)}u.selectionAdapter=c.Decorate(u.selectionAdapter,l)}u.language=this._resolveLanguage(u.language),u.language.push("en");for(var P=[],O=0;O<u.language.length;O++){var I=u.language[O];-1===P.indexOf(I)&&P.push(I)}return u.language=P,u.translations=this._processTranslations(u.language,u.debug),u},A.prototype.reset=function(){function e(t){return t.replace(/[^\u0000-\u007E]/g,(function(t){return d[t]||t}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:function n(i,o){if(""===t.trim(i.term))return o;if(o.children&&0<o.children.length){for(var r=t.extend(!0,{},o),a=o.children.length-1;0<=a;a--)null==n(i,o.children[a])&&r.children.splice(a,1);return 0<r.children.length?r:n(i,r)}var s=e(o.text).toUpperCase(),l=e(i.term).toUpperCase();return-1<s.indexOf(l)?o:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},A.prototype.applyFromElement=function(t,e){var n=t.language,i=this.defaults.language,o=e.prop("lang"),r=e.closest("[lang]").prop("lang"),a=Array.prototype.concat.call(this._resolveLanguage(o),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(r));return t.language=a,t},A.prototype._resolveLanguage=function(e){if(!e)return[];if(t.isEmptyObject(e))return[];if(t.isPlainObject(e))return[e];var n;n=t.isArray(e)?e:[e];for(var i=[],o=0;o<n.length;o++)if(i.push(n[o]),"string"==typeof n[o]&&0<n[o].indexOf("-")){var r=n[o].split("-")[0];i.push(r)}return i},A.prototype._processTranslations=function(e,n){for(var i=new u,o=0;o<e.length;o++){var r=new u,a=e[o];if("string"==typeof a)try{r=u.loadPath(a)}catch(e){try{a=this.defaults.amdLanguageBase+a,r=u.loadPath(a)}catch(e){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+a+'" could not be automatically loaded. A fallback will be used instead.')}}else r=t.isPlainObject(a)?new u(a):a;i.extend(r)}return i},A.prototype.set=function(e,n){var i={};i[t.camelCase(e)]=n;var o=c._convertData(i);t.extend(!0,this.defaults,o)},new A})),e.define("select2/options",["require","jquery","./defaults","./utils"],(function(t,e,n,i){function o(e,o){if(this.options=e,null!=o&&this.fromElement(o),null!=o&&(this.options=n.applyFromElement(this.options,o)),this.options=n.apply(this.options),o&&o.is("input")){var r=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,r)}}return o.prototype.fromElement=function(t){var n=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),i.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(t[0],"data",i.GetData(t[0],"select2Tags")),i.StoreData(t[0],"tags",!0)),i.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",i.GetData(t[0],"ajaxUrl")),i.StoreData(t[0],"ajax-Url",i.GetData(t[0],"ajaxUrl")));var o={};function r(t,e){return e.toUpperCase()}for(var a=0;a<t[0].attributes.length;a++){var s=t[0].attributes[a].name,l="data-";if(s.substr(0,l.length)==l){var c=s.substring(l.length),u=i.GetData(t[0],c);o[c.replace(/-([a-z])/g,r)]=u}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(o=e.extend(!0,{},t[0].dataset,o));var d=e.extend(!0,{},i.GetData(t[0]),o);for(var h in d=i._convertData(d))-1<e.inArray(h,n)||(e.isPlainObject(this.options[h])?e.extend(this.options[h],d[h]):this.options[h]=d[h]);return this},o.prototype.get=function(t){return this.options[t]},o.prototype.set=function(t,e){this.options[t]=e},o})),e.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,n,i){var o=function(t,i){null!=n.GetData(t[0],"select2")&&n.GetData(t[0],"select2").destroy(),this.$element=t,this.id=this._generateId(t),i=i||{},this.options=new e(i,t),o.__super__.constructor.call(this);var r=t.attr("tabindex")||0;n.StoreData(t[0],"old-tabindex",r),t.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(t,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var c=this.options.get("dropdownAdapter");this.dropdown=new c(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var u=this.options.get("resultsAdapter");this.results=new u(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(t){d.trigger("selection:update",{data:t})})),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(t[0],"select2",this),t.data("select2",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},o.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},o.prototype._resolveWidth=function(t,e){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var i=this._resolveWidth(t,"style");return null!=i?i:this._resolveWidth(t,"element")}if("element"==e){var o=t.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"!=e)return"computedstyle"!=e?e:window.getComputedStyle(t[0]).width;var r=t.attr("style");if("string"!=typeof r)return null;for(var a=r.split(";"),s=0,l=a.length;s<l;s+=1){var c=a[s].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},o.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",(function(){t.dataAdapter.current((function(e){t.trigger("selection:update",{data:e})}))})),this.$element.on("focus.select2",(function(e){t.trigger("focus",e)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e((function(e){t._syncA(),t._syncS(null,e)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},o.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",(function(e,n){t.trigger(e,n)}))},o.prototype._registerSelectionEvents=function(){var e=this,n=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(i,o){-1===t.inArray(i,n)&&e.trigger(i,o)}))},o.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,n){t.trigger(e,n)}))},o.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,n){t.trigger(e,n)}))},o.prototype._registerEvents=function(){var t=this;this.on("open",(function(){t.$container.addClass("select2-container--open")})),this.on("close",(function(){t.$container.removeClass("select2-container--open")})),this.on("enable",(function(){t.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){t.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){t.$container.removeClass("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,(function(n){t.trigger("results:all",{data:n,query:e})}))})),this.on("query:append",(function(e){this.dataAdapter.query(e,(function(n){t.trigger("results:append",{data:n,query:e})}))})),this.on("keypress",(function(e){var n=e.which;t.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&e.altKey?(t.close(e),e.preventDefault()):n===i.ENTER?(t.trigger("results:select",{}),e.preventDefault()):n===i.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):n===i.UP?(t.trigger("results:previous",{}),e.preventDefault()):n===i.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&e.altKey)&&(t.open(),e.preventDefault())}))},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},o.prototype._isChangeMutation=function(e,n){var i=!1,o=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(n)if(n.addedNodes&&0<n.addedNodes.length)for(var r=0;r<n.addedNodes.length;r++)n.addedNodes[r].selected&&(i=!0);else n.removedNodes&&0<n.removedNodes.length?i=!0:t.isArray(n)&&t.each(n,(function(t,e){if(o._isChangeMutation(t,e))return!(i=!0)}));else i=!0;return i}},o.prototype._syncSubtree=function(t,e){var n=this._isChangeMutation(t,e),i=this;n&&this.dataAdapter.current((function(t){i.trigger("selection:update",{data:t})}))},o.prototype.trigger=function(t,e){var n=o.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===e&&(e={}),t in i){var r=i[t],a={prevented:!1,name:t,args:e};if(n.call(this,r,a),a.prevented)return void(e.prevented=!0)}n.call(this,t,e)},o.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},o.prototype.close=function(t){this.isOpen()&&this.trigger("close",{originalEvent:t})},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},o.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},o.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},o.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},o.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current((function(e){t=e})),t},o.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var n=e[0];t.isArray(n)&&(n=t.map(n,(function(t){return t.toString()}))),this.$element.val(n).trigger("input").trigger("change")},o.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),n.StoreData(e[0],"element",this.$element),e},o})),e.define("jquery-mousewheel",["jquery"],(function(t){return t})),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(t,e,n,i,o){if(null==t.fn.select2){var r=["open","close","destroy"];t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var i=t.extend(!0,{},e);new n(t(this),i)})),this;if("string"!=typeof e)throw new Error("Invalid arguments for Select2: "+e);var i,a=Array.prototype.slice.call(arguments,1);return this.each((function(){var t=o.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),i=t[e].apply(t,a)})),-1<t.inArray(e,r)?this:i}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=i),n})),{define:e.define,require:e.require}}(),n=e.require("jquery.select2");return t.fn.select2.amd=e,n})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Scrollbar=e():t.Scrollbar=e()}(this,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=67)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n(43))},function(t,e,n){var i=n(0),o=n(51),r=n(3),a=n(29),s=n(56),l=n(76),c=o("wks"),u=i.Symbol,d=l?u:u&&u.withoutSetter||a;t.exports=function(t){return r(c,t)||(s&&r(u,t)?c[t]=u[t]:c[t]=d("Symbol."+t)),c[t]}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(6),o=n(46),r=n(7),a=n(25),s=Object.defineProperty;e.f=i?s:function(t,e,n){if(r(t),e=a(e,!0),r(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(4);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var i=n(2);t.exports=function(t){if(!i(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var i=n(6),o=n(5),r=n(14);t.exports=i?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i,o,r,a=n(50),s=n(0),l=n(2),c=n(8),u=n(3),d=n(27),h=n(16),p=s.WeakMap;if(a){var f=new p,m=f.get,g=f.has,v=f.set;i=function(t,e){return v.call(f,t,e),e},o=function(t){return m.call(f,t)||{}},r=function(t){return g.call(f,t)}}else{var y=d("state");h[y]=!0,i=function(t,e){return c(t,y,e),e},o=function(t){return u(t,y)?t[y]:{}},r=function(t){return u(t,y)}}t.exports={set:i,get:o,has:r,enforce:function(t){return r(t)?o(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var i=n(0);t.exports=i},function(t,e,n){var i=n(0),o=n(8),r=n(3),a=n(26),s=n(48),l=n(9),c=l.get,u=l.enforce,d=String(String).split("String");(t.exports=function(t,e,n,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||r(n,"name")||o(n,"name",e),u(n).source=d.join("string"==typeof e?e:"")),t!==i?(l?!h&&t[e]&&(c=!0):delete t[e],c?t[e]=n:o(t,e,n)):c?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(t,e){t.exports={}},function(t,e,n){var i=n(0),o=n(44).f,r=n(8),a=n(11),s=n(26),l=n(70),c=n(54);t.exports=function(t,e){var n,u,d,h,p,f=t.target,m=t.global,g=t.stat;if(n=m?i:g?i[f]||s(f,{}):(i[f]||{}).prototype)for(u in e){if(h=e[u],d=t.noTargetGet?(p=o(n,u))&&p.value:n[u],!c(m?u:f+(g?".":"#")+u,t.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(t.sham||d&&d.sham)&&r(h,"sham",!0),a(n,u,h,t)}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(22),o=n(24);t.exports=function(t){return i(o(t))}},function(t,e){t.exports={}},function(t,e,n){var i=n(31),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},function(t,e,n){var i=n(16),o=n(2),r=n(3),a=n(5).f,s=n(29),l=n(75),c=s("meta"),u=0,d=Object.isExtensible||function(){return!0},h=function(t){a(t,c,{value:{objectID:"O"+ ++u,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,c)){if(!d(t))return"F";if(!e)return"E";h(t)}return t[c].objectID},getWeakData:function(t,e){if(!r(t,c)){if(!d(t))return!0;if(!e)return!1;h(t)}return t[c].weakData},onFreeze:function(t){return l&&p.REQUIRED&&d(t)&&!r(t,c)&&h(t),t}};i[c]=!0},function(t,e,n){var i=n(77);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(24);t.exports=function(t){return Object(i(t))}},function(t,e,n){"use strict";var i=n(13),o=n(0),r=n(54),a=n(11),s=n(18),l=n(33),c=n(35),u=n(2),d=n(4),h=n(60),p=n(36),f=n(78);t.exports=function(t,e,n){var m=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),v=m?"set":"add",y=o[t],_=y&&y.prototype,b=y,w={},x=function(t){var e=_[t];a(_,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!u(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!u(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(r(t,"function"!=typeof y||!(g||_.forEach&&!d((function(){(new y).entries().next()})))))b=n.getConstructor(e,t,m,v),s.REQUIRED=!0;else if(r(t,!0)){var T=new b,C=T[v](g?{}:-0,1)!=T,S=d((function(){T.has(1)})),E=h((function(t){new y(t)})),D=!g&&d((function(){for(var t=new y,e=5;e--;)t[v](e,e);return!t.has(-0)}));E||((b=e((function(e,n){c(e,b,t);var i=f(new y,e,b);return null!=n&&l(n,i[v],i,m),i}))).prototype=_,_.constructor=b),(S||D)&&(x("delete"),x("has"),m&&x("get")),(D||C)&&x(v),g&&_.clear&&delete _.clear}return w[t]=b,i({global:!0,forced:b!=y},w),p(b,t),g||n.setStrong(b,t,m),b}},function(t,e,n){var i=n(4),o=n(23),r="".split;t.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?r.call(t,""):Object(t)}:Object},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var i=n(2);t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(0),o=n(8);t.exports=function(t,e){try{o(i,t,e)}catch(n){i[t]=e}return e}},function(t,e,n){var i=n(51),o=n(29),r=i("keys");t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports=!1},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+i).toString(36)}},function(t,e,n){var i=n(10),o=n(0),r=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?r(i[t])||r(o[t]):i[t]&&i[t][e]||o[t]&&o[t][e]}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var i=n(7),o=n(55),r=n(17),a=n(19),s=n(57),l=n(59),c=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,u,d){var h,p,f,m,g,v,y,_=a(e,n,u?2:1);if(d)h=t;else{if("function"!=typeof(p=s(t)))throw TypeError("Target is not iterable");if(o(p)){for(f=0,m=r(t.length);m>f;f++)if((g=u?_(i(y=t[f])[0],y[1]):_(t[f]))&&g instanceof c)return g;return new c(!1)}h=p.call(t)}for(v=h.next;!(y=v.call(h)).done;)if("object"==typeof(g=l(h,_,y.value,u))&&g&&g instanceof c)return g;return new c(!1)}).stop=function(t){return new c(!0,t)}},function(t,e,n){var i={};i[n(1)("toStringTag")]="z",t.exports="[object z]"===String(i)},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var i=n(5).f,o=n(3),r=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,r)&&i(t,r,{configurable:!0,value:e})}},function(t,e,n){var i,o=n(7),r=n(80),a=n(32),s=n(16),l=n(81),c=n(47),u=n(27)("IE_PROTO"),d=function(){},h=function(t){return"<script>"+t+"<\/script>"},p=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}p=i?function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e}(i):function(){var t,e=c("iframe");return e.style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F}();for(var t=a.length;t--;)delete p.prototype[a[t]];return p()};s[u]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d.prototype=o(t),n=new d,d.prototype=null,n[u]=t):n=p(),void 0===e?n:r(n,e)}},function(t,e,n){var i=n(11);t.exports=function(t,e,n){for(var o in e)i(t,o,e[o],n);return t}},function(t,e,n){"use strict";var i=n(13),o=n(82),r=n(65),a=n(61),s=n(36),l=n(8),c=n(11),u=n(1),d=n(28),h=n(12),p=n(64),f=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,g=u("iterator"),v=function(){return this};t.exports=function(t,e,n,u,p,y,_){o(n,e,u);var b,w,x,T=function(t){if(t===p&&k)return k;if(!m&&t in E)return E[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",S=!1,E=t.prototype,D=E[g]||E["@@iterator"]||p&&E[p],k=!m&&D||T(p),A="Array"==e&&E.entries||D;if(A&&(b=r(A.call(new t)),f!==Object.prototype&&b.next&&(d||r(b)===f||(a?a(b,f):"function"!=typeof b[g]&&l(b,g,v)),s(b,C,!0,!0),d&&(h[C]=v))),"values"==p&&D&&"values"!==D.name&&(S=!0,k=function(){return D.call(this)}),d&&!_||E[g]===k||l(E,g,k),h[e]=k,p)if(w={values:T("values"),keys:y?k:T("keys"),entries:T("entries")},_)for(x in w)!m&&!S&&x in E||c(E,x,w[x]);else i({target:e,proto:!0,forced:m||S},w);return w}},function(t,e,n){var i=n(34),o=n(11),r=n(85);i||o(Object.prototype,"toString",r,{unsafe:!0})},function(t,e,n){"use strict";var i=n(86).charAt,o=n(9),r=n(39),a=o.set,s=o.getterFor("String Iterator");r(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=s(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=i(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var i=n(0),o=n(87),r=n(88),a=n(8),s=n(1),l=s("iterator"),c=s("toStringTag"),u=r.values;for(var d in o){var h=i[d],p=h&&h.prototype;if(p){if(p[l]!==u)try{a(p,l,u)}catch(t){p[l]=u}if(p[c]||a(p,c,d),o[d])for(var f in r)if(p[f]!==r[f])try{a(p,f,r[f])}catch(t){p[f]=r[f]}}}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var i=n(6),o=n(45),r=n(14),a=n(15),s=n(25),l=n(3),c=n(46),u=Object.getOwnPropertyDescriptor;e.f=i?u:function(t,e){if(t=a(t),e=s(e,!0),c)try{return u(t,e)}catch(t){}if(l(t,e))return r(!o.f.call(t,e),t[e])}},function(t,e,n){"use strict";var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!i.call({1:2},1);e.f=r?function(t){var e=o(this,t);return!!e&&e.enumerable}:i},function(t,e,n){var i=n(6),o=n(4),r=n(47);t.exports=!i&&!o((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(0),o=n(2),r=i.document,a=o(r)&&o(r.createElement);t.exports=function(t){return a?r.createElement(t):{}}},function(t,e,n){var i=n(49),o=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(t){return o.call(t)}),t.exports=i.inspectSource},function(t,e,n){var i=n(0),o=n(26),r=i["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=r},function(t,e,n){var i=n(0),o=n(48),r=i.WeakMap;t.exports="function"==typeof r&&/native code/.test(o(r))},function(t,e,n){var i=n(28),o=n(49);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var i=n(3),o=n(15),r=n(73).indexOf,a=n(16);t.exports=function(t,e){var n,s=o(t),l=0,c=[];for(n in s)!i(a,n)&&i(s,n)&&c.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~r(c,n)||c.push(n));return c}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(4),o=/#|\.prototype\./,r=function(t,e){var n=s[a(t)];return n==c||n!=l&&("function"==typeof e?i(e):!!e)},a=r.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=r.data={},l=r.NATIVE="N",c=r.POLYFILL="P";t.exports=r},function(t,e,n){var i=n(1),o=n(12),r=i("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[r]===t)}},function(t,e,n){var i=n(4);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},function(t,e,n){var i=n(58),o=n(12),r=n(1)("iterator");t.exports=function(t){if(null!=t)return t[r]||t["@@iterator"]||o[i(t)]}},function(t,e,n){var i=n(34),o=n(23),r=n(1)("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:a?o(e):"Object"==(i=o(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,n){var i=n(7);t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&i(r.call(t)),e}}},function(t,e,n){var i=n(1)("iterator"),o=!1;try{var r=0,a={next:function(){return{done:!!r++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}},function(t,e,n){var i=n(7),o=n(79);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t.call(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){"use strict";var i=n(5).f,o=n(37),r=n(38),a=n(19),s=n(35),l=n(33),c=n(39),u=n(84),d=n(6),h=n(18).fastKey,p=n(9),f=p.set,m=p.getterFor;t.exports={getConstructor:function(t,e,n,c){var u=t((function(t,i){s(t,u,e),f(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),d||(t.size=0),null!=i&&l(i,t[c],t,n)})),p=m(e),g=function(t,e,n){var i,o,r=p(t),a=v(t,e);return a?a.value=n:(r.last=a={index:o=h(e,!0),key:e,value:n,previous:i=r.last,next:void 0,removed:!1},r.first||(r.first=a),i&&(i.next=a),d?r.size++:t.size++,"F"!==o&&(r.index[o]=a)),t},v=function(t,e){var n,i=p(t),o=h(e);if("F"!==o)return i.index[o];for(n=i.first;n;n=n.next)if(n.key==e)return n};return r(u.prototype,{clear:function(){for(var t=p(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,d?t.size=0:this.size=0},delete:function(t){var e=p(this),n=v(this,t);if(n){var i=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),e.first==n&&(e.first=i),e.last==n&&(e.last=o),d?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=p(this),i=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!v(this,t)}}),r(u.prototype,n?{get:function(t){var e=v(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),d&&i(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(t,e,n){var i=e+" Iterator",o=m(e),r=m(i);c(t,e,(function(t,e){f(this,{type:i,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=r(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(e)}}},function(t,e,n){var i=n(52),o=n(32);t.exports=Object.keys||function(t){return i(t,o)}},function(t,e,n){"use strict";var i,o,r,a=n(65),s=n(8),l=n(3),c=n(1),u=n(28),d=c("iterator"),h=!1;[].keys&&("next"in(r=[].keys())?(o=a(a(r)))!==Object.prototype&&(i=o):h=!0),null==i&&(i={}),u||l(i,d)||s(i,d,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:h}},function(t,e,n){var i=n(3),o=n(20),r=n(27),a=n(83),s=r("IE_PROTO"),l=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),i(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(43))},function(t,e,n){t.exports=n(105)},function(t,e,n){n(69),n(40),n(41),n(42);var i=n(10);t.exports=i.Map},function(t,e,n){"use strict";var i=n(21),o=n(62);t.exports=i("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},function(t,e,n){var i=n(3),o=n(71),r=n(44),a=n(5);t.exports=function(t,e){for(var n=o(e),s=a.f,l=r.f,c=0;c<n.length;c++){var u=n[c];i(t,u)||s(t,u,l(e,u))}}},function(t,e,n){var i=n(30),o=n(72),r=n(53),a=n(7);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=r.f;return n?e.concat(n(t)):e}},function(t,e,n){var i=n(52),o=n(32).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},function(t,e,n){var i=n(15),o=n(17),r=n(74),a=function(t){return function(e,n,a){var s,l=i(e),c=o(l.length),u=r(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,n){var i=n(31),o=Math.max,r=Math.min;t.exports=function(t,e){var n=i(t);return n<0?o(n+e,0):r(n,e)}},function(t,e,n){var i=n(4);t.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){var i=n(56);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var i=n(2),o=n(61);t.exports=function(t,e,n){var r,a;return o&&"function"==typeof(r=e.constructor)&&r!==n&&i(a=r.prototype)&&a!==n.prototype&&o(t,a),t}},function(t,e,n){var i=n(2);t.exports=function(t){if(!i(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var i=n(6),o=n(5),r=n(7),a=n(63);t.exports=i?Object.defineProperties:function(t,e){r(t);for(var n,i=a(e),s=i.length,l=0;s>l;)o.f(t,n=i[l++],e[n]);return t}},function(t,e,n){var i=n(30);t.exports=i("document","documentElement")},function(t,e,n){"use strict";var i=n(64).IteratorPrototype,o=n(37),r=n(14),a=n(36),s=n(12),l=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=o(i,{next:r(1,n)}),a(t,c,!1,!0),s[c]=l,t}},function(t,e,n){var i=n(4);t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){"use strict";var i=n(30),o=n(5),r=n(1),a=n(6),s=r("species");t.exports=function(t){var e=i(t),n=o.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var i=n(34),o=n(58);t.exports=i?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var i=n(31),o=n(24),r=function(t){return function(e,n){var r,a,s=String(o(e)),l=i(n),c=s.length;return l<0||l>=c?t?"":void 0:(r=s.charCodeAt(l))<55296||r>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):r:t?s.slice(l,l+2):a-56320+(r-55296<<10)+65536}};t.exports={codeAt:r(!1),charAt:r(!0)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){"use strict";var i=n(15),o=n(89),r=n(12),a=n(9),s=n(39),l=a.set,c=a.getterFor("Array Iterator");t.exports=s(Array,"Array",(function(t,e){l(this,{type:"Array Iterator",target:i(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,n=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}}),"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var i=n(1),o=n(37),r=n(5),a=i("unscopables"),s=Array.prototype;null==s[a]&&r.f(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,n){n(91),n(40),n(41),n(42);var i=n(10);t.exports=i.Set},function(t,e,n){"use strict";var i=n(21),o=n(62);t.exports=i("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},function(t,e,n){n(40),n(93),n(42);var i=n(10);t.exports=i.WeakMap},function(t,e,n){"use strict";var i,o=n(0),r=n(38),a=n(18),s=n(21),l=n(94),c=n(2),u=n(9).enforce,d=n(50),h=!o.ActiveXObject&&"ActiveXObject"in o,p=Object.isExtensible,f=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},m=t.exports=s("WeakMap",f,l);if(d&&h){i=l.getConstructor(f,"WeakMap",!0),a.REQUIRED=!0;var g=m.prototype,v=g.delete,y=g.has,_=g.get,b=g.set;r(g,{delete:function(t){if(c(t)&&!p(t)){var e=u(this);return e.frozen||(e.frozen=new i),v.call(this,t)||e.frozen.delete(t)}return v.call(this,t)},has:function(t){if(c(t)&&!p(t)){var e=u(this);return e.frozen||(e.frozen=new i),y.call(this,t)||e.frozen.has(t)}return y.call(this,t)},get:function(t){if(c(t)&&!p(t)){var e=u(this);return e.frozen||(e.frozen=new i),y.call(this,t)?_.call(this,t):e.frozen.get(t)}return _.call(this,t)},set:function(t,e){if(c(t)&&!p(t)){var n=u(this);n.frozen||(n.frozen=new i),y.call(this,t)?b.call(this,t,e):n.frozen.set(t,e)}else b.call(this,t,e);return this}})}},function(t,e,n){"use strict";var i=n(38),o=n(18).getWeakData,r=n(7),a=n(2),s=n(35),l=n(33),c=n(95),u=n(3),d=n(9),h=d.set,p=d.getterFor,f=c.find,m=c.findIndex,g=0,v=function(t){return t.frozen||(t.frozen=new y)},y=function(){this.entries=[]},_=function(t,e){return f(t.entries,(function(t){return t[0]===e}))};y.prototype={get:function(t){var e=_(this,t);if(e)return e[1]},has:function(t){return!!_(this,t)},set:function(t,e){var n=_(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=m(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,c){var d=t((function(t,i){s(t,d,e),h(t,{type:e,id:g++,frozen:void 0}),null!=i&&l(i,t[c],t,n)})),f=p(e),m=function(t,e,n){var i=f(t),a=o(r(e),!0);return!0===a?v(i).set(e,n):a[i.id]=n,t};return i(d.prototype,{delete:function(t){var e=f(this);if(!a(t))return!1;var n=o(t);return!0===n?v(e).delete(t):n&&u(n,e.id)&&delete n[e.id]},has:function(t){var e=f(this);if(!a(t))return!1;var n=o(t);return!0===n?v(e).has(t):n&&u(n,e.id)}}),i(d.prototype,n?{get:function(t){var e=f(this);if(a(t)){var n=o(t);return!0===n?v(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return m(this,t,e)}}:{add:function(t){return m(this,t,!0)}}),d}}},function(t,e,n){var i=n(19),o=n(22),r=n(20),a=n(17),s=n(96),l=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,u=4==t,d=6==t,h=5==t||d;return function(p,f,m,g){for(var v,y,_=r(p),b=o(_),w=i(f,m,3),x=a(b.length),T=0,C=g||s,S=e?C(p,x):n?C(p,0):void 0;x>T;T++)if((h||T in b)&&(y=w(v=b[T],T,_),t))if(e)S[T]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return T;case 2:l.call(S,v)}else if(u)return!1;return d?-1:c||u?u:S}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(t,e,n){var i=n(2),o=n(97),r=n(1)("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[r])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},function(t,e,n){var i=n(23);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){n(41),n(99);var i=n(10);t.exports=i.Array.from},function(t,e,n){var i=n(13),o=n(100);i({target:"Array",stat:!0,forced:!n(60)((function(t){Array.from(t)}))},{from:o})},function(t,e,n){"use strict";var i=n(19),o=n(20),r=n(59),a=n(55),s=n(17),l=n(101),c=n(57);t.exports=function(t){var e,n,u,d,h,p,f=o(t),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,y=void 0!==v,_=c(f),b=0;if(y&&(v=i(v,g>2?arguments[2]:void 0,2)),null==_||m==Array&&a(_))for(n=new m(e=s(f.length));e>b;b++)p=y?v(f[b],b):f[b],l(n,b,p);else for(h=(d=_.call(f)).next,n=new m;!(u=h.call(d)).done;b++)p=y?r(d,v,[u.value,b],!0):u.value,l(n,b,p);return n.length=b,n}},function(t,e,n){"use strict";var i=n(25),o=n(5),r=n(14);t.exports=function(t,e,n){var a=i(e);a in t?o.f(t,a,r(0,n)):t[a]=n}},function(t,e,n){n(103);var i=n(10);t.exports=i.Object.assign},function(t,e,n){var i=n(13),o=n(104);i({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,n){"use strict";var i=n(6),o=n(4),r=n(63),a=n(53),s=n(45),l=n(20),c=n(22),u=Object.assign,d=Object.defineProperty;t.exports=!u||o((function(){if(i&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||"abcdefghijklmnopqrst"!=r(u({},e)).join("")}))?function(t,e){for(var n=l(t),o=arguments.length,u=1,d=a.f,h=s.f;o>u;)for(var p,f=c(arguments[u++]),m=d?r(f).concat(d(f)):r(f),g=m.length,v=0;g>v;)p=m[v++],i&&!h.call(f,p)||(n[p]=f[p]);return n}:u},function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"keyboardHandler",(function(){return nt})),n.d(i,"mouseHandler",(function(){return it})),n.d(i,"resizeHandler",(function(){return ot})),n.d(i,"selectHandler",(function(){return rt})),n.d(i,"touchHandler",(function(){return at})),n.d(i,"wheelHandler",(function(){return st}));
  /*! *****************************************************************************
  Copyright (c) Microsoft Corporation. All rights reserved.
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  this file except in compliance with the License. You may obtain a copy of the
  License at http://www.apache.org/licenses/LICENSE-2.0
  
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  MERCHANTABLITY OR NON-INFRINGEMENT.
  
  See the Apache Version 2.0 License for specific language governing permissions
  and limitations under the License.
  ***************************************************************************** */
  var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},r=function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}n(68),n(90),n(92),n(98),n(102);var s=/\s/,l=/^\s+/,c=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},u=n(66),d="object"==typeof self&&self&&self.Object===Object&&self,h=u.a||d||Function("return this")(),p=h.Symbol,f=Object.prototype,m=f.hasOwnProperty,g=f.toString,v=p?p.toStringTag:void 0,y=Object.prototype.toString,_=p?p.toStringTag:void 0,b=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,x=/^0o[0-7]+$/i,T=parseInt,C=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":_&&_ in Object(t)?function(t){var e=m.call(t,v),n=t[v];try{t[v]=void 0;var i=!0}catch(t){}var o=g.call(t);return i&&(e?t[v]=n:delete t[v]),o}(t):function(t){return y.call(t)}(t)}(t)}(t))return NaN;if(c(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=c(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&s.test(t.charAt(e)););return e}(t)+1).replace(l,""):t}(t);var n=w.test(t);return n||x.test(t)?T(t.slice(2),n?2:8):b.test(t)?NaN:+t},S=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=C(n))==n?n:0),void 0!==e&&(e=(e=C(e))==e?e:0),function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}(C(t),e,n)};function E(t,e){return void 0===t&&(t=-1/0),void 0===e&&(e=1/0),function(n,i){var o="_"+i;Object.defineProperty(n,i,{get:function(){return this[o]},set:function(n){Object.defineProperty(this,o,{value:S(n,t,e),enumerable:!1,writable:!0,configurable:!0})},enumerable:!0,configurable:!0})}}function D(t,e){var n="_"+e;Object.defineProperty(t,e,{get:function(){return this[n]},set:function(t){Object.defineProperty(this,n,{value:!!t,enumerable:!1,writable:!0,configurable:!0})},enumerable:!0,configurable:!0})}var k=function(){return h.Date.now()},A=Math.max,M=Math.min,L=function(t,e,n){var i,o,r,a,s,l,u=0,d=!1,h=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var n=i,r=o;return i=o=void 0,u=e,a=t.apply(r,n)}function m(t){var n=t-l;return void 0===l||n>=e||n<0||h&&t-u>=r}function g(){var t=k();if(m(t))return v(t);s=setTimeout(g,function(t){var n=e-(t-l);return h?M(n,r-(t-u)):n}(t))}function v(t){return s=void 0,p&&i?f(t):(i=o=void 0,a)}function y(){var t=k(),n=m(t);if(i=arguments,o=this,l=t,n){if(void 0===s)return function(t){return u=t,s=setTimeout(g,e),d?f(t):a}(l);if(h)return clearTimeout(s),s=setTimeout(g,e),f(l)}return void 0===s&&(s=setTimeout(g,e)),a}return e=C(e)||0,c(n)&&(d=!!n.leading,r=(h="maxWait"in n)?A(C(n.maxWait)||0,e):r,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,i=l=o=s=void 0},y.flush=function(){return void 0===s?a:v(k())},y};function P(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e,n,i){var o=i.value;return{get:function(){return this.hasOwnProperty(n)||Object.defineProperty(this,n,{value:L.apply(void 0,function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),o=0;for(e=0;e<n;e++)for(var r=arguments[e],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}([o],t))}),this[n]}}}}var O,I=function(){function t(t){var e=this;void 0===t&&(t={}),this.damping=.1,this.thumbMinSize=20,this.renderByPixels=!0,this.alwaysShowTracks=!1,this.continuousScrolling=!0,this.delegateTo=null,this.plugins={},Object.keys(t).forEach((function(n){e[n]=t[n]}))}return Object.defineProperty(t.prototype,"wheelEventTarget",{get:function(){return this.delegateTo},set:function(t){console.warn("[smooth-scrollbar]: `options.wheelEventTarget` is deprecated and will be removed in the future, use `options.delegateTo` instead."),this.delegateTo=t},enumerable:!0,configurable:!0}),a([E(0,1)],t.prototype,"damping",void 0),a([E(0,1/0)],t.prototype,"thumbMinSize",void 0),a([D],t.prototype,"renderByPixels",void 0),a([D],t.prototype,"alwaysShowTracks",void 0),a([D],t.prototype,"continuousScrolling",void 0),t}(),N=new WeakMap;function z(){if(void 0!==O)return O;var t=!1;try{var e=function(){},n=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassive",e,n),window.removeEventListener("testPassive",e,n)}catch(t){}return O=!!t&&{passive:!1}}function j(t){var e=N.get(t)||[];return N.set(t,e),function(t,n,i){function o(t){t.defaultPrevented||i(t)}n.split(/\s+/g).forEach((function(n){e.push({elem:t,eventName:n,handler:o}),t.addEventListener(n,o,z())}))}}function B(t){var e=function(t){return t.touches?t.touches[t.touches.length-1]:t}(t);return{x:e.clientX,y:e.clientY}}function R(t,e){return void 0===e&&(e=[]),e.some((function(e){return t===e}))}var H=["webkit","moz","ms","o"],$=new RegExp("^-(?!(?:"+H.join("|")+")-)");function F(t,e){e=function(t){var e={};return Object.keys(t).forEach((function(n){if($.test(n)){var i=t[n];n=n.replace(/^-/,""),e[n]=i,H.forEach((function(t){e["-"+t+"-"+n]=i}))}else e[n]=t[n]})),e}(e),Object.keys(e).forEach((function(n){var i=n.replace(/^-/,"").replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()}));t.style[i]=e[n]}))}var W,q=function(){function t(t){this.updateTime=Date.now(),this.delta={x:0,y:0},this.velocity={x:0,y:0},this.lastPosition={x:0,y:0},this.lastPosition=B(t)}return t.prototype.update=function(t){var e=this.velocity,n=this.updateTime,i=this.lastPosition,o=Date.now(),r=B(t),a={x:-(r.x-i.x),y:-(r.y-i.y)},s=o-n||16,l=a.x/s*16,c=a.y/s*16;e.x=.9*l+.1*e.x,e.y=.9*c+.1*e.y,this.delta=a,this.updateTime=o,this.lastPosition=r},t}(),V=function(){function t(){this._touchList={}}return Object.defineProperty(t.prototype,"_primitiveValue",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),t.prototype.isActive=function(){return void 0!==this._activeTouchID},t.prototype.getDelta=function(){var t=this._getActiveTracker();return t?r({},t.delta):this._primitiveValue},t.prototype.getVelocity=function(){var t=this._getActiveTracker();return t?r({},t.velocity):this._primitiveValue},t.prototype.track=function(t){var e=this,n=t.targetTouches;return Array.from(n).forEach((function(t){e._add(t)})),this._touchList},t.prototype.update=function(t){var e=this,n=t.touches,i=t.changedTouches;return Array.from(n).forEach((function(t){e._renew(t)})),this._setActiveID(i),this._touchList},t.prototype.release=function(t){var e=this;delete this._activeTouchID,Array.from(t.changedTouches).forEach((function(t){e._delete(t)}))},t.prototype._add=function(t){if(!this._has(t)){var e=new q(t);this._touchList[t.identifier]=e}},t.prototype._renew=function(t){this._has(t)&&this._touchList[t.identifier].update(t)},t.prototype._delete=function(t){delete this._touchList[t.identifier]},t.prototype._has=function(t){return this._touchList.hasOwnProperty(t.identifier)},t.prototype._setActiveID=function(t){this._activeTouchID=t[t.length-1].identifier},t.prototype._getActiveTracker=function(){return this._touchList[this._activeTouchID]},t}();!function(t){t.X="x",t.Y="y"}(W||(W={}));var Y=function(){function t(t,e){void 0===e&&(e=0),this._direction=t,this._minSize=e,this.element=document.createElement("div"),this.displaySize=0,this.realSize=0,this.offset=0,this.element.className="scrollbar-thumb scrollbar-thumb-"+t}return t.prototype.attachTo=function(t){t.appendChild(this.element)},t.prototype.update=function(t,e,n){this.realSize=Math.min(e/n,1)*e,this.displaySize=Math.max(this.realSize,this._minSize),this.offset=t/n*(e+(this.realSize-this.displaySize)),F(this.element,this._getStyle())},t.prototype._getStyle=function(){switch(this._direction){case W.X:return{width:this.displaySize+"px","-transform":"translate3d("+this.offset+"px, 0, 0)"};case W.Y:return{height:this.displaySize+"px","-transform":"translate3d(0, "+this.offset+"px, 0)"};default:return null}},t}(),Z=function(){function t(t,e){void 0===e&&(e=0),this.element=document.createElement("div"),this._isShown=!1,this.element.className="scrollbar-track scrollbar-track-"+t,this.thumb=new Y(t,e),this.thumb.attachTo(this.element)}return t.prototype.attachTo=function(t){t.appendChild(this.element)},t.prototype.show=function(){this._isShown||(this._isShown=!0,this.element.classList.add("show"))},t.prototype.hide=function(){this._isShown&&(this._isShown=!1,this.element.classList.remove("show"))},t.prototype.update=function(t,e,n){F(this.element,{display:n<=e?"none":"block"}),this.thumb.update(t,e,n)},t}(),U=function(){function t(t){this._scrollbar=t;var e=t.options.thumbMinSize;this.xAxis=new Z(W.X,e),this.yAxis=new Z(W.Y,e),this.xAxis.attachTo(t.containerEl),this.yAxis.attachTo(t.containerEl),t.options.alwaysShowTracks&&(this.xAxis.show(),this.yAxis.show())}return t.prototype.update=function(){var t=this._scrollbar,e=t.size,n=t.offset;this.xAxis.update(n.x,e.container.width,e.content.width),this.yAxis.update(n.y,e.container.height,e.content.height)},t.prototype.autoHideOnIdle=function(){this._scrollbar.options.alwaysShowTracks||(this.xAxis.hide(),this.yAxis.hide())},a([P(300)],t.prototype,"autoHideOnIdle",null),t}(),G=new WeakMap;function X(t){return Math.pow(t-1,3)+1}var K,J,Q,tt=function(){function t(t,e){var n=this.constructor;this.scrollbar=t,this.name=n.pluginName,this.options=r(r({},n.defaultOptions),e)}return t.prototype.onInit=function(){},t.prototype.onDestroy=function(){},t.prototype.onUpdate=function(){},t.prototype.onRender=function(t){},t.prototype.transformDelta=function(t,e){return r({},t)},t.pluginName="",t.defaultOptions={},t}(),et={order:new Set,constructors:{}};function nt(t){var e=j(t),n=t.containerEl;e(n,"keydown",(function(e){var i=document.activeElement;if((i===n||n.contains(i))&&!function(t){return!("INPUT"!==t.tagName&&"SELECT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable||t.disabled)}(i)){var o=function(t,e){var n=t.size,i=t.limit,o=t.offset;switch(e){case K.TAB:return function(t){requestAnimationFrame((function(){t.scrollIntoView(document.activeElement,{offsetTop:t.size.container.height/2,onlyScrollIfNeeded:!0})}))}(t);case K.SPACE:return[0,200];case K.PAGE_UP:return[0,40-n.container.height];case K.PAGE_DOWN:return[0,n.container.height-40];case K.END:return[0,i.y-o.y];case K.HOME:return[0,-o.y];case K.LEFT:return[-40,0];case K.UP:return[0,-40];case K.RIGHT:return[40,0];case K.DOWN:return[0,40];default:return null}}(t,e.keyCode||e.which);if(o){var r=o[0],a=o[1];t.addTransformableMomentum(r,a,e,(function(n){n?e.preventDefault():(t.containerEl.blur(),t.parent&&t.parent.containerEl.focus())}))}}}))}function it(t){var e,n,i,o,r,a=j(t),s=t.containerEl,l=t.track,c=l.xAxis,u=l.yAxis;function d(e,n){var i=t.size;return e===J.X?n/(i.container.width+(c.thumb.realSize-c.thumb.displaySize))*i.content.width:e===J.Y?n/(i.container.height+(u.thumb.realSize-u.thumb.displaySize))*i.content.height:0}function h(t){return R(t,[c.element,c.thumb.element])?J.X:R(t,[u.element,u.thumb.element])?J.Y:void 0}a(s,"click",(function(e){if(!n&&R(e.target,[c.element,u.element])){var i=e.target,o=h(i),r=i.getBoundingClientRect(),a=B(e),s=t.offset,l=t.limit;if(o===J.X){var p=a.x-r.left-c.thumb.displaySize/2;t.setMomentum(S(d(o,p)-s.x,-s.x,l.x-s.x),0)}o===J.Y&&(p=a.y-r.top-u.thumb.displaySize/2,t.setMomentum(0,S(d(o,p)-s.y,-s.y,l.y-s.y)))}})),a(s,"mousedown",(function(n){if(R(n.target,[c.thumb.element,u.thumb.element])){e=!0;var a=n.target,l=B(n),d=a.getBoundingClientRect();o=h(a),i={x:l.x-d.left,y:l.y-d.top},r=s.getBoundingClientRect(),F(t.containerEl,{"-user-select":"none"})}})),a(window,"mousemove",(function(a){if(e){n=!0;var s=t.offset,l=B(a);if(o===J.X){var c=l.x-i.x-r.left;t.setPosition(d(o,c),s.y)}o===J.Y&&(c=l.y-i.y-r.top,t.setPosition(s.x,d(o,c)))}})),a(window,"mouseup blur",(function(){e=n=!1,F(t.containerEl,{"-user-select":""})}))}function ot(t){j(t)(window,"resize",L(t.update.bind(t),300))}function rt(t){var e,n=j(t),i=t.containerEl,o=t.contentEl,r=!1;n(window,"mousemove",(function(n){r&&(cancelAnimationFrame(e),function n(i){var o=i.x,r=i.y;if(o||r){var a=t.offset,s=t.limit;t.setMomentum(S(a.x+o,0,s.x)-a.x,S(a.y+r,0,s.y)-a.y),e=requestAnimationFrame((function(){n({x:o,y:r})}))}}(function(t,e){var n=t.bounding,i=n.top,o=n.right,r=n.bottom,a=n.left,s=B(e),l=s.x,c=s.y,u={x:0,y:0};return 0===l&&0===c||(l>o-20?u.x=l-o+20:l<a+20&&(u.x=l-a-20),c>r-20?u.y=c-r+20:c<i+20&&(u.y=c-i-20),u.x*=2,u.y*=2),u}(t,n)))})),n(o,"selectstart",(function(t){t.stopPropagation(),cancelAnimationFrame(e),r=!0})),n(window,"mouseup blur",(function(){cancelAnimationFrame(e),r=!1})),n(i,"scroll",(function(t){t.preventDefault(),i.scrollTop=i.scrollLeft=0}))}function at(t){var e,n=/Android/.test(navigator.userAgent)?3:2,i=t.options.delegateTo||t.containerEl,o=new V,r=j(t),a=0;r(i,"touchstart",(function(n){o.track(n),t.setMomentum(0,0),0===a&&(e=t.options.damping,t.options.damping=Math.max(e,.5)),a++})),r(i,"touchmove",(function(e){if(!Q||Q===t){o.update(e);var n=o.getDelta(),i=n.x,r=n.y;t.addTransformableMomentum(i,r,e,(function(n){n&&e.cancelable&&(e.preventDefault(),Q=t)}))}})),r(i,"touchcancel touchend",(function(i){var r=o.getVelocity(),s={x:0,y:0};Object.keys(r).forEach((function(t){var i=r[t]/e;s[t]=Math.abs(i)<50?0:i*n})),t.addTransformableMomentum(s.x,s.y,i),0==--a&&(t.options.damping=e),o.release(i),Q=null}))}function st(t){j(t)(t.options.delegateTo||t.containerEl,"onwheel"in window||document.implementation.hasFeature("Events.wheel","3.0")?"wheel":"mousewheel",(function(e){var n=function(t){if("deltaX"in t){var e=ut(t.deltaMode);return{x:t.deltaX/lt.STANDARD*e,y:t.deltaY/lt.STANDARD*e}}return"wheelDeltaX"in t?{x:t.wheelDeltaX/lt.OTHERS,y:t.wheelDeltaY/lt.OTHERS}:{x:0,y:t.wheelDelta/lt.OTHERS}}(e),i=n.x,o=n.y;t.addTransformableMomentum(i,o,e,(function(t){t&&e.preventDefault()}))}))}!function(t){t[t.TAB=9]="TAB",t[t.SPACE=32]="SPACE",t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"}(K||(K={})),function(t){t[t.X=0]="X",t[t.Y=1]="Y"}(J||(J={}));var lt={STANDARD:1,OTHERS:-3},ct=[1,28,500],ut=function(t){return ct[t]||ct[0]},dt=new Map,ht=function(){function t(t,e){var n=this;this.offset={x:0,y:0},this.limit={x:1/0,y:1/0},this.bounding={top:0,right:0,bottom:0,left:0},this._plugins=[],this._momentum={x:0,y:0},this._listeners=new Set,this.containerEl=t;var i=this.contentEl=document.createElement("div");this.options=new I(e),t.setAttribute("data-scrollbar","true"),t.setAttribute("tabindex","-1"),F(t,{overflow:"hidden",outline:"none"}),window.navigator.msPointerEnabled&&(t.style.msTouchAction="none"),i.className="scroll-content",Array.from(t.childNodes).forEach((function(t){i.appendChild(t)})),t.appendChild(i),this.track=new U(this),this.size=this.getSize(),this._plugins=function(t,e){return Array.from(et.order).filter((function(t){return!1!==e[t]})).map((function(n){var i=new(0,et.constructors[n])(t,e[n]);return e[n]=i.options,i}))}(this,this.options.plugins);var o=t.scrollLeft,r=t.scrollTop;t.scrollLeft=t.scrollTop=0,this.setPosition(o,r,{withoutCallbacks:!0});var a=window,s=a.MutationObserver||a.WebKitMutationObserver||a.MozMutationObserver;"function"==typeof s&&(this._observer=new s((function(){n.update()})),this._observer.observe(i,{subtree:!0,childList:!0})),dt.set(t,this),requestAnimationFrame((function(){n._init()}))}return Object.defineProperty(t.prototype,"parent",{get:function(){for(var t=this.containerEl.parentElement;t;){var e=dt.get(t);if(e)return e;t=t.parentElement}return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollTop",{get:function(){return this.offset.y},set:function(t){this.setPosition(this.scrollLeft,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollLeft",{get:function(){return this.offset.x},set:function(t){this.setPosition(t,this.scrollTop)},enumerable:!0,configurable:!0}),t.prototype.getSize=function(){return function(t){var e=t.containerEl,n=t.contentEl;return{container:{width:e.clientWidth,height:e.clientHeight},content:{width:n.offsetWidth-n.clientWidth+n.scrollWidth,height:n.offsetHeight-n.clientHeight+n.scrollHeight}}}(this)},t.prototype.update=function(){!function(t){var e=t.getSize(),n={x:Math.max(e.content.width-e.container.width,0),y:Math.max(e.content.height-e.container.height,0)},i=t.containerEl.getBoundingClientRect(),o={top:Math.max(i.top,0),right:Math.min(i.right,window.innerWidth),bottom:Math.min(i.bottom,window.innerHeight),left:Math.max(i.left,0)};t.size=e,t.limit=n,t.bounding=o,t.track.update(),t.setPosition()}(this),this._plugins.forEach((function(t){t.onUpdate()}))},t.prototype.isVisible=function(t){return function(t,e){var n=t.bounding,i=e.getBoundingClientRect(),o=Math.max(n.top,i.top),r=Math.max(n.left,i.left),a=Math.min(n.right,i.right);return o<Math.min(n.bottom,i.bottom)&&r<a}(this,t)},t.prototype.setPosition=function(t,e,n){var i=this;void 0===t&&(t=this.offset.x),void 0===e&&(e=this.offset.y),void 0===n&&(n={});var o=function(t,e,n){var i=t.options,o=t.offset,a=t.limit,s=t.track,l=t.contentEl;return i.renderByPixels&&(e=Math.round(e),n=Math.round(n)),e=S(e,0,a.x),n=S(n,0,a.y),e!==o.x&&s.xAxis.show(),n!==o.y&&s.yAxis.show(),i.alwaysShowTracks||s.autoHideOnIdle(),e===o.x&&n===o.y?null:(o.x=e,o.y=n,F(l,{"-transform":"translate3d("+-e+"px, "+-n+"px, 0)"}),s.update(),{offset:r({},o),limit:r({},a)})}(this,t,e);o&&!n.withoutCallbacks&&this._listeners.forEach((function(t){t.call(i,o)}))},t.prototype.scrollTo=function(t,e,n,i){void 0===t&&(t=this.offset.x),void 0===e&&(e=this.offset.y),void 0===n&&(n=0),void 0===i&&(i={}),function(t,e,n,i,o){void 0===i&&(i=0);var r=void 0===o?{}:o,a=r.easing,s=void 0===a?X:a,l=r.callback,c=t.options,u=t.offset,d=t.limit;c.renderByPixels&&(e=Math.round(e),n=Math.round(n));var h=u.x,p=u.y,f=S(e,0,d.x)-h,m=S(n,0,d.y)-p,g=Date.now();cancelAnimationFrame(G.get(t)),function e(){var n=Date.now()-g,o=i?s(Math.min(n/i,1)):1;if(t.setPosition(h+f*o,p+m*o),n>=i)"function"==typeof l&&l.call(t);else{var r=requestAnimationFrame(e);G.set(t,r)}}()}(this,t,e,n,i)},t.prototype.scrollIntoView=function(t,e){void 0===e&&(e={}),function(t,e,n){var i=void 0===n?{}:n,o=i.alignToTop,r=void 0===o||o,a=i.onlyScrollIfNeeded,s=void 0!==a&&a,l=i.offsetTop,c=void 0===l?0:l,u=i.offsetLeft,d=void 0===u?0:u,h=i.offsetBottom,p=void 0===h?0:h,f=t.containerEl,m=t.bounding,g=t.offset,v=t.limit;if(e&&f.contains(e)){var y=e.getBoundingClientRect();if(!s||!t.isVisible(e)){var _=r?y.top-m.top-c:y.bottom-m.bottom+p;t.setMomentum(y.left-m.left-d,S(_,-g.y,v.y-g.y))}}}(this,t,e)},t.prototype.addListener=function(t){if("function"!=typeof t)throw new TypeError("[smooth-scrollbar] scrolling listener should be a function");this._listeners.add(t)},t.prototype.removeListener=function(t){this._listeners.delete(t)},t.prototype.addTransformableMomentum=function(t,e,n,i){this._updateDebounced();var o=this._plugins.reduce((function(t,e){return e.transformDelta(t,n)||t}),{x:t,y:e}),r=!this._shouldPropagateMomentum(o.x,o.y);r&&this.addMomentum(o.x,o.y),i&&i.call(this,r)},t.prototype.addMomentum=function(t,e){this.setMomentum(this._momentum.x+t,this._momentum.y+e)},t.prototype.setMomentum=function(t,e){0===this.limit.x&&(t=0),0===this.limit.y&&(e=0),this.options.renderByPixels&&(t=Math.round(t),e=Math.round(e)),this._momentum.x=t,this._momentum.y=e},t.prototype.updatePluginOptions=function(t,e){this._plugins.forEach((function(n){n.name===t&&Object.assign(n.options,e)}))},t.prototype.destroy=function(){var t=this.containerEl,e=this.contentEl;!function(t){var e=N.get(t);e&&(e.forEach((function(t){var e=t.elem,n=t.eventName,i=t.handler;e.removeEventListener(n,i,z())})),N.delete(t))}(this),this._listeners.clear(),this.setMomentum(0,0),cancelAnimationFrame(this._renderID),this._observer&&this._observer.disconnect(),dt.delete(this.containerEl);for(var n=Array.from(e.childNodes);t.firstChild;)t.removeChild(t.firstChild);n.forEach((function(e){t.appendChild(e)})),F(t,{overflow:""}),t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,this._plugins.forEach((function(t){t.onDestroy()})),this._plugins.length=0},t.prototype._init=function(){var t=this;this.update(),Object.keys(i).forEach((function(e){i[e](t)})),this._plugins.forEach((function(t){t.onInit()})),this._render()},t.prototype._updateDebounced=function(){this.update()},t.prototype._shouldPropagateMomentum=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.options,i=this.offset,o=this.limit;if(!n.continuousScrolling)return!1;0===o.x&&0===o.y&&this._updateDebounced();var r=S(t+i.x,0,o.x),a=S(e+i.y,0,o.y),s=!0;return(s=(s=s&&r===i.x)&&a===i.y)&&(i.x===o.x||0===i.x||i.y===o.y||0===i.y)},t.prototype._render=function(){var t=this._momentum;if(t.x||t.y){var e=this._nextTick("x"),n=this._nextTick("y");t.x=e.momentum,t.y=n.momentum,this.setPosition(e.position,n.position)}var i=r({},this._momentum);this._plugins.forEach((function(t){t.onRender(i)})),this._renderID=requestAnimationFrame(this._render.bind(this))},t.prototype._nextTick=function(t){var e=this.options,n=this.offset,i=this._momentum,o=n[t],r=i[t];if(Math.abs(r)<=.1)return{momentum:0,position:o+r};var a=r*(1-e.damping);return e.renderByPixels&&(a|=0),{momentum:a,position:o+r-a}},a([P(100,{leading:!0})],t.prototype,"_updateDebounced",null),t}(),pt="smooth-scrollbar-style",ft=!1;function mt(){if(!ft&&"undefined"!=typeof window){var t=document.createElement("style");t.id=pt,t.textContent="\n[data-scrollbar] {\n  display: block;\n  position: relative;\n}\n\n.scroll-content {\n  -webkit-transform: translate3d(0, 0, 0);\n          transform: translate3d(0, 0, 0);\n}\n\n.scrollbar-track {\n  position: absolute;\n  opacity: 0;\n  z-index: 1;\n  background: rgba(222, 222, 222, .75);\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  -webkit-transition: opacity 0.5s 0.5s ease-out;\n          transition: opacity 0.5s 0.5s ease-out;\n}\n.scrollbar-track.show,\n.scrollbar-track:hover {\n  opacity: 1;\n  -webkit-transition-delay: 0s;\n          transition-delay: 0s;\n}\n\n.scrollbar-track-x {\n  bottom: 0;\n  left: 0;\n  width: 100%;\n  height: 8px;\n}\n.scrollbar-track-y {\n  top: 0;\n  right: 0;\n  width: 8px;\n  height: 100%;\n}\n.scrollbar-thumb {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 8px;\n  height: 8px;\n  background: rgba(0, 0, 0, .5);\n  border-radius: 4px;\n}\n",document.head&&document.head.appendChild(t),ft=!0}}n.d(e,"ScrollbarPlugin",(function(){return tt}));
  /*!
   * cast `I.Scrollbar` to `Scrollbar` to avoid error
   *
   * `I.Scrollbar` is not assignable to `Scrollbar`:
   *     "privateProp" is missing in `I.Scrollbar`
   *
   * @see https://github.com/Microsoft/TypeScript/issues/2672
   */
  var gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.init=function(t,e){if(!t||1!==t.nodeType)throw new TypeError("expect element to be DOM Element, but got "+t);return mt(),dt.has(t)?dt.get(t):new ht(t,e)},e.initAll=function(t){return Array.from(document.querySelectorAll("[data-scrollbar]"),(function(n){return e.init(n,t)}))},e.has=function(t){return dt.has(t)},e.get=function(t){return dt.get(t)},e.getAll=function(){return Array.from(dt.values())},e.destroy=function(t){var e=dt.get(t);e&&e.destroy()},e.destroyAll=function(){dt.forEach((function(t){t.destroy()}))},e.use=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){var e=t.pluginName;if(!e)throw new TypeError("plugin name is required");et.order.add(e),et.constructors[e]=t}))}.apply(void 0,t)},e.attachStyle=function(){return mt()},e.detachStyle=function(){return function(){if(ft&&"undefined"!=typeof window){var t=document.getElementById(pt);t&&t.parentNode&&(t.parentNode.removeChild(t),ft=!1)}}()},e.version="8.6.2",e.ScrollbarPlugin=tt,e}(ht);e.default=gt}]).default})),
  /*!
   DataTables 1.10.18
   ©2008-2018 SpryMedia Ltd - datatables.net/license
  */
  function(t){"function"==typeof define&&define.amd?define(["jquery"],(function(e){return t(e,window,document)})):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n,e,e.document)}:t(jQuery,window,document)}((function(t,e,n,i){function o(e){var n,i,r={};t.each(e,(function(t){(n=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(i=t.replace(n[0],n[2].toLowerCase()),r[i]=t,"o"===n[1]&&o(e[t]))})),e._hungarianMap=r}function r(e,n,a){var s;e._hungarianMap||o(e),t.each(n,(function(o){(s=e._hungarianMap[o])===i||!a&&n[s]!==i||("o"===s.charAt(0)?(n[s]||(n[s]={}),t.extend(!0,n[s],n[o]),r(e[s],n[s],a)):n[s]=n[o])}))}function a(t){var e=Yt.defaults.oLanguage,n=e.sDecimal;if(n&&Ht(n),t){var i=t.sZeroRecords;!t.sEmptyTable&&i&&"No data available in table"===e.sEmptyTable&&Lt(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&i&&"Loading..."===e.sLoadingRecords&&Lt(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands),(t=t.sDecimal)&&n!==t&&Ht(t)}}function s(t){if(ce(t,"ordering","bSort"),ce(t,"orderMulti","bSortMulti"),ce(t,"orderClasses","bSortClasses"),ce(t,"orderCellsTop","bSortCellsTop"),ce(t,"order","aaSorting"),ce(t,"orderFixed","aaSortingFixed"),ce(t,"paging","bPaginate"),ce(t,"pagingType","sPaginationType"),ce(t,"pageLength","iDisplayLength"),ce(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":""),t=t.aoSearchCols)for(var e=0,n=t.length;e<n;e++)t[e]&&r(Yt.models.oSearch,t[e])}function l(e){ce(e,"orderable","bSortable"),ce(e,"orderData","aDataSort"),ce(e,"orderSequence","asSorting"),ce(e,"orderDataType","sortDataType");var n=e.aDataSort;"number"==typeof n&&!t.isArray(n)&&(e.aDataSort=[n])}function c(n){if(!Yt.__browser){var i={};Yt.__browser=i;var o=t("<div/>").css({position:"fixed",top:0,left:-1*t(e).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(t("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("<div/>").css({width:"100%",height:10}))).appendTo("body"),r=o.children(),a=r.children();i.barWidth=r[0].offsetWidth-r[0].clientWidth,i.bScrollOversize=100===a[0].offsetWidth&&100!==r[0].clientWidth,i.bScrollbarLeft=1!==Math.round(a.offset().left),i.bBounding=!!o[0].getBoundingClientRect().width,o.remove()}t.extend(n.oBrowser,Yt.__browser),n.oScroll.iBarWidth=Yt.__browser.barWidth}function u(t,e,n,o,r,a){var s,l=!1;for(n!==i&&(s=n,l=!0);o!==r;)t.hasOwnProperty(o)&&(s=l?e(s,t[o],o,t):t[o],l=!0,o+=a);return s}function d(e,i){var o=Yt.defaults.column,r=e.aoColumns.length;o=t.extend({},Yt.models.oColumn,o,{nTh:i||n.createElement("th"),sTitle:o.sTitle?o.sTitle:i?i.innerHTML:"",aDataSort:o.aDataSort?o.aDataSort:[r],mData:o.mData?o.mData:r,idx:r});e.aoColumns.push(o),(o=e.aoPreSearchCols)[r]=t.extend({},Yt.models.oSearch,o[r]),h(e,r,t(i).data())}function h(e,n,o){n=e.aoColumns[n];var a=e.oClasses,s=t(n.nTh);if(!n.sWidthOrig){n.sWidthOrig=s.attr("width")||null;var c=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);c&&(n.sWidthOrig=c[1])}o!==i&&null!==o&&(l(o),r(Yt.defaults.column,o),o.mDataProp!==i&&!o.mData&&(o.mData=o.mDataProp),o.sType&&(n._sManualType=o.sType),o.className&&!o.sClass&&(o.sClass=o.className),o.sClass&&s.addClass(o.sClass),t.extend(n,o),Lt(n,o,"sWidth","sWidthOrig"),o.iDataSort!==i&&(n.aDataSort=[o.iDataSort]),Lt(n,o,"aDataSort"));var u=n.mData,d=S(u),h=n.mRender?S(n.mRender):null;o=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};n._bAttrSrc=t.isPlainObject(u)&&(o(u.sort)||o(u.type)||o(u.filter)),n._setter=null,n.fnGetData=function(t,e,n){var o=d(t,e,i,n);return h&&e?h(o,e,t,n):o},n.fnSetData=function(t,e,n){return E(u)(t,e,n)},"number"!=typeof u&&(e._rowReadObject=!0),e.oFeatures.bSort||(n.bSortable=!1,s.addClass(a.sSortableNone)),e=-1!==t.inArray("asc",n.asSorting),o=-1!==t.inArray("desc",n.asSorting),n.bSortable&&(e||o)?e&&!o?(n.sSortingClass=a.sSortableAsc,n.sSortingClassJUI=a.sSortJUIAscAllowed):!e&&o?(n.sSortingClass=a.sSortableDesc,n.sSortingClassJUI=a.sSortJUIDescAllowed):(n.sSortingClass=a.sSortable,n.sSortingClassJUI=a.sSortJUI):(n.sSortingClass=a.sSortableNone,n.sSortingClassJUI="")}function p(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;mt(t);for(var n=0,i=e.length;n<i;n++)e[n].nTh.style.width=e[n].sWidth}(""!==(e=t.oScroll).sY||""!==e.sX)&&pt(t),Nt(t,null,"column-sizing",[t])}function f(t,e){var n=v(t,"bVisible");return"number"==typeof n[e]?n[e]:null}function m(e,n){var i=v(e,"bVisible");return-1!==(i=t.inArray(n,i))?i:null}function g(e){var n=0;return t.each(e.aoColumns,(function(e,i){i.bVisible&&"none"!==t(i.nTh).css("display")&&n++})),n}function v(e,n){var i=[];return t.map(e.aoColumns,(function(t,e){t[n]&&i.push(e)})),i}function y(t){var e,n,o,r,a,s,l,c,u,d=t.aoColumns,h=t.aoData,p=Yt.ext.type.detect;for(e=0,n=d.length;e<n;e++)if(u=[],!(l=d[e]).sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){for(o=0,r=p.length;o<r;o++){for(a=0,s=h.length;a<s&&(u[a]===i&&(u[a]=x(t,a,e,"type")),(c=p[o](u[a],t))||o===p.length-1)&&"html"!==c;a++);if(c){l.sType=c;break}}l.sType||(l.sType="string")}}function _(e,n,o,r){var a,s,l,c,u,h,p=e.aoColumns;if(n)for(a=n.length-1;0<=a;a--){var f=(h=n[a]).targets!==i?h.targets:h.aTargets;for(t.isArray(f)||(f=[f]),s=0,l=f.length;s<l;s++)if("number"==typeof f[s]&&0<=f[s]){for(;p.length<=f[s];)d(e);r(f[s],h)}else if("number"==typeof f[s]&&0>f[s])r(p.length+f[s],h);else if("string"==typeof f[s])for(c=0,u=p.length;c<u;c++)("_all"==f[s]||t(p[c].nTh).hasClass(f[s]))&&r(c,h)}if(o)for(a=0,e=o.length;a<e;a++)r(a,o[a])}function b(e,n,o,r){var a=e.aoData.length,s=t.extend(!0,{},Yt.models.oRow,{src:o?"dom":"data",idx:a});s._aData=n,e.aoData.push(s);for(var l=e.aoColumns,c=0,u=l.length;c<u;c++)l[c].sType=null;return e.aiDisplayMaster.push(a),(n=e.rowIdFn(n))!==i&&(e.aIds[n]=s),(o||!e.oFeatures.bDeferRender)&&P(e,a,o,r),a}function w(e,n){var i;return n instanceof t||(n=t(n)),n.map((function(t,n){return i=L(e,n),b(e,i.data,n,i.cells)}))}function x(t,e,n,o){var r=t.iDraw,a=t.aoColumns[n],s=t.aoData[e]._aData,l=a.sDefaultContent,c=a.fnGetData(s,o,{settings:t,row:e,col:n});if(c===i)return t.iDrawError!=r&&null===l&&(Mt(t,0,"Requested unknown parameter "+("function"==typeof a.mData?"{function}":"'"+a.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=r),l;if(c!==s&&null!==c||null===l||o===i){if("function"==typeof c)return c.call(s)}else c=l;return null===c&&"display"==o?"":c}function T(t,e,n,i){t.aoColumns[n].fnSetData(t.aoData[e]._aData,i,{settings:t,row:e,col:n})}function C(e){return t.map(e.match(/(\\.|[^\.])+/g)||[""],(function(t){return t.replace(/\\\./g,".")}))}function S(e){if(t.isPlainObject(e)){var n={};return t.each(e,(function(t,e){e&&(n[t]=S(e))})),function(t,e,o,r){var a=n[e]||n._;return a!==i?a(t,e,o,r):t}}if(null===e)return function(t){return t};if("function"==typeof e)return function(t,n,i,o){return e(t,n,i,o)};if("string"==typeof e&&(-1!==e.indexOf(".")||-1!==e.indexOf("[")||-1!==e.indexOf("("))){var o=function(e,n,r){var a,s;if(""!==r)for(var l=0,c=(s=C(r)).length;l<c;l++){if(r=s[l].match(ue),a=s[l].match(de),r){if(s[l]=s[l].replace(ue,""),""!==s[l]&&(e=e[s[l]]),a=[],s.splice(0,l+1),s=s.join("."),t.isArray(e))for(l=0,c=e.length;l<c;l++)a.push(o(e[l],n,s));e=""===(e=r[0].substring(1,r[0].length-1))?a:a.join(e);break}if(a)s[l]=s[l].replace(de,""),e=e[s[l]]();else{if(null===e||e[s[l]]===i)return i;e=e[s[l]]}}return e};return function(t,n){return o(t,n,e)}}return function(t){return t[e]}}function E(e){if(t.isPlainObject(e))return E(e._);if(null===e)return function(){};if("function"==typeof e)return function(t,n,i){e(t,"set",n,i)};if("string"==typeof e&&(-1!==e.indexOf(".")||-1!==e.indexOf("[")||-1!==e.indexOf("("))){var n=function(e,o,r){var a;a=(r=C(r))[r.length-1];for(var s,l,c=0,u=r.length-1;c<u;c++){if(s=r[c].match(ue),l=r[c].match(de),s){if(r[c]=r[c].replace(ue,""),e[r[c]]=[],(a=r.slice()).splice(0,c+1),s=a.join("."),t.isArray(o))for(l=0,u=o.length;l<u;l++)n(a={},o[l],s),e[r[c]].push(a);else e[r[c]]=o;return}l&&(r[c]=r[c].replace(de,""),e=e[r[c]](o)),null!==e[r[c]]&&e[r[c]]!==i||(e[r[c]]={}),e=e[r[c]]}a.match(de)?e[a.replace(de,"")](o):e[a.replace(ue,"")]=o};return function(t,i){return n(t,i,e)}}return function(t,n){t[e]=n}}function D(t){return oe(t.aoData,"_aData")}function k(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function A(t,e,n){for(var o=-1,r=0,a=t.length;r<a;r++)t[r]==e?o=r:t[r]>e&&t[r]--;-1!=o&&n===i&&t.splice(o,1)}function M(t,e,n,o){var r,a=t.aoData[e],s=function(n,i){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=x(t,e,i,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==a.src)){var l=a.anCells;if(l)if(o!==i)s(l[o],o);else for(n=0,r=l.length;n<r;n++)s(l[n],n)}else a._aData=L(t,a,o,o===i?i:a._aData).data;if(a._aSortData=null,a._aFilterData=null,s=t.aoColumns,o!==i)s[o].sType=null;else{for(n=0,r=s.length;n<r;n++)s[n].sType=null;O(t,a)}}function L(e,n,o,r){var a,s,l,c=[],u=n.firstChild,d=0,h=e.aoColumns,p=e._rowReadObject,f=(r=r!==i?r:p?{}:[],function(t,e){if("string"==typeof t){var n=t.indexOf("@");-1!==n&&(n=t.substring(n+1),E(t)(r,e.getAttribute(n)))}}),m=function(e){o!==i&&o!==d||(s=h[d],l=t.trim(e.innerHTML),s&&s._bAttrSrc?(E(s.mData._)(r,l),f(s.mData.sort,e),f(s.mData.type,e),f(s.mData.filter,e)):p?(s._setter||(s._setter=E(s.mData)),s._setter(r,l)):r[d]=l),d++};if(u)for(;u;)"TD"!=(a=u.nodeName.toUpperCase())&&"TH"!=a||(m(u),c.push(u)),u=u.nextSibling;else for(u=0,a=(c=n.anCells).length;u<a;u++)m(c[u]);return(n=n.firstChild?n:n.nTr)&&(n=n.getAttribute("id"))&&E(e.rowId)(r,n),{data:r,cells:c}}function P(e,i,o,r){var a,s,l,c,u,d=e.aoData[i],h=d._aData,p=[];if(null===d.nTr){for(a=o||n.createElement("tr"),d.nTr=a,d.anCells=p,a._DT_RowIndex=i,O(e,d),c=0,u=e.aoColumns.length;c<u;c++)l=e.aoColumns[c],(s=o?r[c]:n.createElement(l.sCellType))._DT_CellIndex={row:i,column:c},p.push(s),o&&!l.mRender&&l.mData===c||t.isPlainObject(l.mData)&&l.mData._===c+".display"||(s.innerHTML=x(e,i,c,"display")),l.sClass&&(s.className+=" "+l.sClass),l.bVisible&&!o?a.appendChild(s):!l.bVisible&&o&&s.parentNode.removeChild(s),l.fnCreatedCell&&l.fnCreatedCell.call(e.oInstance,s,x(e,i,c),h,i,c);Nt(e,"aoRowCreatedCallback",null,[a,h,i,p])}d.nTr.setAttribute("role","row")}function O(e,n){var i=n.nTr,o=n._aData;if(i){var r=e.rowIdFn(o);r&&(i.id=r),o.DT_RowClass&&(r=o.DT_RowClass.split(" "),n.__rowc=n.__rowc?le(n.__rowc.concat(r)):r,t(i).removeClass(n.__rowc.join(" ")).addClass(o.DT_RowClass)),o.DT_RowAttr&&t(i).attr(o.DT_RowAttr),o.DT_RowData&&t(i).data(o.DT_RowData)}}function I(e){var n,i,o,r,a,s=e.nTHead,l=e.nTFoot,c=0===t("th, td",s).length,u=e.oClasses,d=e.aoColumns;for(c&&(r=t("<tr/>").appendTo(s)),n=0,i=d.length;n<i;n++)a=d[n],o=t(a.nTh).addClass(a.sClass),c&&o.appendTo(r),e.oFeatures.bSort&&(o.addClass(a.sSortingClass),!1!==a.bSortable&&(o.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),Ct(e,a.nTh,n))),a.sTitle!=o[0].innerHTML&&o.html(a.sTitle),jt(e,"header")(e,o,a,u);if(c&&R(e.aoHeader,s),t(s).find(">tr").attr("role","row"),t(s).find(">tr>th, >tr>td").addClass(u.sHeaderTH),t(l).find(">tr>th, >tr>td").addClass(u.sFooterTH),null!==l)for(n=0,i=(e=e.aoFooter[0]).length;n<i;n++)(a=d[n]).nTf=e[n].cell,a.sClass&&t(a.nTf).addClass(a.sClass)}function N(e,n,o){var r,a,s,l,c=[],u=[],d=e.aoColumns.length;if(n){for(o===i&&(o=!1),r=0,a=n.length;r<a;r++){for(c[r]=n[r].slice(),c[r].nTr=n[r].nTr,s=d-1;0<=s;s--)!e.aoColumns[s].bVisible&&!o&&c[r].splice(s,1);u.push([])}for(r=0,a=c.length;r<a;r++){if(e=c[r].nTr)for(;s=e.firstChild;)e.removeChild(s);for(s=0,n=c[r].length;s<n;s++)if(l=d=1,u[r][s]===i){for(e.appendChild(c[r][s].cell),u[r][s]=1;c[r+d]!==i&&c[r][s].cell==c[r+d][s].cell;)u[r+d][s]=1,d++;for(;c[r][s+l]!==i&&c[r][s].cell==c[r][s+l].cell;){for(o=0;o<d;o++)u[r+o][s+l]=1;l++}t(c[r][s].cell).attr("rowspan",d).attr("colspan",l)}}}}function z(e){var n=Nt(e,"aoPreDrawCallback","preDraw",[e]);if(-1!==t.inArray(!1,n))dt(e,!1);else{n=[];var o=0,r=e.asStripeClasses,a=r.length,s=e.oLanguage,l=e.iInitDisplayStart,c="ssp"==Bt(e),u=e.aiDisplay;e.bDrawing=!0,l!==i&&-1!==l&&(e._iDisplayStart=c?l:l>=e.fnRecordsDisplay()?0:l,e.iInitDisplayStart=-1);l=e._iDisplayStart;var d=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,dt(e,!1);else if(c){if(!e.bDestroying&&!F(e))return}else e.iDraw++;if(0!==u.length)for(s=c?e.aoData.length:d,c=c?0:l;c<s;c++){var h=u[c],p=e.aoData[h];null===p.nTr&&P(e,h);var f=p.nTr;if(0!==a){var m=r[o%a];p._sRowStripe!=m&&(t(f).removeClass(p._sRowStripe).addClass(m),p._sRowStripe=m)}Nt(e,"aoRowCallback",null,[f,p._aData,o,c,h]),n.push(f),o++}else o=s.sZeroRecords,1==e.iDraw&&"ajax"==Bt(e)?o=s.sLoadingRecords:s.sEmptyTable&&0===e.fnRecordsTotal()&&(o=s.sEmptyTable),n[0]=t("<tr/>",{class:a?r[0]:""}).append(t("<td />",{valign:"top",colSpan:g(e),class:e.oClasses.sRowEmpty}).html(o))[0];Nt(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],D(e),l,d,u]),Nt(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],D(e),l,d,u]),(r=t(e.nTBody)).children().detach(),r.append(t(n)),Nt(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function j(t,e){var n=t.oFeatures,i=n.bFilter;n.bSort&&wt(t),i?Z(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,z(t),t._drawHold=!1}function B(e){var n=e.oClasses,i=t(e.nTable),o=(i=t("<div/>").insertBefore(i),e.oFeatures),r=t("<div/>",{id:e.sTableId+"_wrapper",class:n.sWrapper+(e.nTFoot?"":" "+n.sNoFooter)});e.nHolding=i[0],e.nTableWrapper=r[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var a,s,l,c,u,d,h=e.sDom.split(""),p=0;p<h.length;p++){if(a=null,"<"==(s=h[p])){if(l=t("<div/>")[0],"'"==(c=h[p+1])||'"'==c){for(u="",d=2;h[p+d]!=c;)u+=h[p+d],d++;"H"==u?u=n.sJUIHeader:"F"==u&&(u=n.sJUIFooter),-1!=u.indexOf(".")?(c=u.split("."),l.id=c[0].substr(1,c[0].length-1),l.className=c[1]):"#"==u.charAt(0)?l.id=u.substr(1,u.length-1):l.className=u,p+=d}r.append(l),r=t(l)}else if(">"==s)r=r.parent();else if("l"==s&&o.bPaginate&&o.bLengthChange)a=st(e);else if("f"==s&&o.bFilter)a=Y(e);else if("r"==s&&o.bProcessing)a=ut(e);else if("t"==s)a=ht(e);else if("i"==s&&o.bInfo)a=et(e);else if("p"==s&&o.bPaginate)a=lt(e);else if(0!==Yt.ext.feature.length)for(d=0,c=(l=Yt.ext.feature).length;d<c;d++)if(s==l[d].cFeature){a=l[d].fnInit(e);break}a&&((l=e.aanFeatures)[s]||(l[s]=[]),l[s].push(a),r.append(a))}i.replaceWith(r),e.nHolding=null}function R(e,n){var i,o,r,a,s,l,c,u,d,h,p=t(n).children("tr");for(e.splice(0,e.length),r=0,l=p.length;r<l;r++)e.push([]);for(r=0,l=p.length;r<l;r++)for(o=(i=p[r]).firstChild;o;){if("TD"==o.nodeName.toUpperCase()||"TH"==o.nodeName.toUpperCase()){for(u=(u=1*o.getAttribute("colspan"))&&0!==u&&1!==u?u:1,d=(d=1*o.getAttribute("rowspan"))&&0!==d&&1!==d?d:1,a=0,s=e[r];s[a];)a++;for(c=a,h=1===u,s=0;s<u;s++)for(a=0;a<d;a++)e[r+a][c+s]={cell:o,unique:h},e[r+a].nTr=i}o=o.nextSibling}}function H(t,e,n){var i=[];n||(n=t.aoHeader,e&&R(n=[],e));e=0;for(var o=n.length;e<o;e++)for(var r=0,a=n[e].length;r<a;r++)!n[e][r].unique||i[r]&&t.bSortCellsTop||(i[r]=n[e][r].cell);return i}function $(e,n,i){if(Nt(e,"aoServerParams","serverParams",[n]),n&&t.isArray(n)){var o={},r=/(.*?)\[\]$/;t.each(n,(function(t,e){var n=e.name.match(r);n?(n=n[0],o[n]||(o[n]=[]),o[n].push(e.value)):o[e.name]=e.value})),n=o}var a,s=e.ajax,l=e.oInstance,c=function(t){Nt(e,null,"xhr",[e,t,e.jqXHR]),i(t)};if(t.isPlainObject(s)&&s.data){var u="function"==typeof(a=s.data)?a(n,e):a;n="function"==typeof a&&u?u:t.extend(!0,n,u);delete s.data}u={data:n,success:function(t){var n=t.error||t.sError;n&&Mt(e,0,n),e.json=t,c(t)},dataType:"json",cache:!1,type:e.sServerMethod,error:function(n,i){var o=Nt(e,null,"xhr",[e,null,e.jqXHR]);-1===t.inArray(!0,o)&&("parsererror"==i?Mt(e,0,"Invalid JSON response",1):4===n.readyState&&Mt(e,0,"Ajax error",7)),dt(e,!1)}},e.oAjaxData=n,Nt(e,null,"preXhr",[e,n]),e.fnServerData?e.fnServerData.call(l,e.sAjaxSource,t.map(n,(function(t,e){return{name:e,value:t}})),c,e):e.sAjaxSource||"string"==typeof s?e.jqXHR=t.ajax(t.extend(u,{url:s||e.sAjaxSource})):"function"==typeof s?e.jqXHR=s.call(l,n,c,e):(e.jqXHR=t.ajax(t.extend(u,s)),s.data=a)}function F(t){return!t.bAjaxDataGet||(t.iDraw++,dt(t,!0),$(t,W(t),(function(e){q(t,e)})),!1)}function W(e){var n,i,o,r,a=e.aoColumns,s=a.length,l=e.oFeatures,c=e.oPreviousSearch,u=e.aoPreSearchCols,d=[],h=bt(e);n=e._iDisplayStart,i=!1!==l.bPaginate?e._iDisplayLength:-1;var p=function(t,e){d.push({name:t,value:e})};p("sEcho",e.iDraw),p("iColumns",s),p("sColumns",oe(a,"sName").join(",")),p("iDisplayStart",n),p("iDisplayLength",i);var f={draw:e.iDraw,columns:[],order:[],start:n,length:i,search:{value:c.sSearch,regex:c.bRegex}};for(n=0;n<s;n++)o=a[n],r=u[n],i="function"==typeof o.mData?"function":o.mData,f.columns.push({data:i,name:o.sName,searchable:o.bSearchable,orderable:o.bSortable,search:{value:r.sSearch,regex:r.bRegex}}),p("mDataProp_"+n,i),l.bFilter&&(p("sSearch_"+n,r.sSearch),p("bRegex_"+n,r.bRegex),p("bSearchable_"+n,o.bSearchable)),l.bSort&&p("bSortable_"+n,o.bSortable);return l.bFilter&&(p("sSearch",c.sSearch),p("bRegex",c.bRegex)),l.bSort&&(t.each(h,(function(t,e){f.order.push({column:e.col,dir:e.dir}),p("iSortCol_"+t,e.col),p("sSortDir_"+t,e.dir)})),p("iSortingCols",h.length)),null===(a=Yt.ext.legacy.ajax)?e.sAjaxSource?d:f:a?d:f}function q(t,e){var n=V(t,e),o=e.sEcho!==i?e.sEcho:e.draw,r=e.iTotalRecords!==i?e.iTotalRecords:e.recordsTotal,a=e.iTotalDisplayRecords!==i?e.iTotalDisplayRecords:e.recordsFiltered;if(o){if(1*o<t.iDraw)return;t.iDraw=1*o}for(k(t),t._iRecordsTotal=parseInt(r,10),t._iRecordsDisplay=parseInt(a,10),o=0,r=n.length;o<r;o++)b(t,n[o]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,z(t),t._bInitComplete||rt(t,e),t.bAjaxDataGet=!0,dt(t,!1)}function V(e,n){var o=t.isPlainObject(e.ajax)&&e.ajax.dataSrc!==i?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===o?n.aaData||n[o]:""!==o?S(o)(n):n}function Y(e){var i=e.oClasses,o=e.sTableId,r=e.oLanguage,a=e.oPreviousSearch,s=e.aanFeatures,l='<input type="search" class="'+i.sFilterInput+'"/>',c=(c=r.sSearch).match(/_INPUT_/)?c.replace("_INPUT_",l):c+l,u=(i=t("<div/>",{id:s.f?null:o+"_filter",class:i.sFilter}).append(t("<label/>").append(c)),s=function(){var t=this.value?this.value:"";t!=a.sSearch&&(Z(e,{sSearch:t,bRegex:a.bRegex,bSmart:a.bSmart,bCaseInsensitive:a.bCaseInsensitive}),e._iDisplayStart=0,z(e))},l=null!==e.searchDelay?e.searchDelay:"ssp"===Bt(e)?400:0,t("input",i).val(a.sSearch).attr("placeholder",r.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",l?ge(s,l):s).on("keypress.DT",(function(t){if(13==t.keyCode)return!1})).attr("aria-controls",o));return t(e.nTable).on("search.dt.DT",(function(t,i){if(e===i)try{u[0]!==n.activeElement&&u.val(a.sSearch)}catch(t){}})),i[0]}function Z(t,e,n){var o=t.oPreviousSearch,r=t.aoPreSearchCols,a=function(t){o.sSearch=t.sSearch,o.bRegex=t.bRegex,o.bSmart=t.bSmart,o.bCaseInsensitive=t.bCaseInsensitive};if(y(t),"ssp"!=Bt(t)){for(X(t,e.sSearch,n,e.bEscapeRegex!==i?!e.bEscapeRegex:e.bRegex,e.bSmart,e.bCaseInsensitive),a(e),e=0;e<r.length;e++)G(t,r[e].sSearch,e,r[e].bEscapeRegex!==i?!r[e].bEscapeRegex:r[e].bRegex,r[e].bSmart,r[e].bCaseInsensitive);U(t)}else a(e);t.bFiltered=!0,Nt(t,null,"search",[t])}function U(e){for(var n,i,o=Yt.ext.search,r=e.aiDisplay,a=0,s=o.length;a<s;a++){for(var l=[],c=0,u=r.length;c<u;c++)i=r[c],n=e.aoData[i],o[a](e,n._aFilterData,i,n._aData,c)&&l.push(i);r.length=0,t.merge(r,l)}}function G(t,e,n,i,o,r){if(""!==e){var a=[],s=t.aiDisplay;for(i=K(e,i,o,r),o=0;o<s.length;o++)e=t.aoData[s[o]]._aFilterData[n],i.test(e)&&a.push(s[o]);t.aiDisplay=a}}function X(t,e,n,i,o,r){i=K(e,i,o,r),r=t.oPreviousSearch.sSearch;var a,s=t.aiDisplayMaster;o=[];if(0!==Yt.ext.search.length&&(n=!0),a=J(t),0>=e.length)t.aiDisplay=s.slice();else{for((a||n||r.length>e.length||0!==e.indexOf(r)||t.bSorted)&&(t.aiDisplay=s.slice()),e=t.aiDisplay,n=0;n<e.length;n++)i.test(t.aoData[e[n]]._sFilterRow)&&o.push(e[n]);t.aiDisplay=o}}function K(e,n,i,o){return e=n?e:he(e),i&&(e="^(?=.*?"+t.map(e.match(/"[^"]+"|[^ ]+/g)||[""],(function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}return t.replace('"',"")})).join(")(?=.*?")+").*$"),RegExp(e,o?"i":"")}function J(t){var e,n,i,o,r,a,s,l,c=t.aoColumns,u=Yt.ext.type.search;for(e=!1,n=0,o=t.aoData.length;n<o;n++)if(!(l=t.aoData[n])._aFilterData){for(a=[],i=0,r=c.length;i<r;i++)(e=c[i]).bSearchable?(s=x(t,n,i,"filter"),u[e.sType]&&(s=u[e.sType](s)),null===s&&(s=""),"string"!=typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&-1!==s.indexOf("&")&&(pe.innerHTML=s,s=fe?pe.textContent:pe.innerText),s.replace&&(s=s.replace(/[\r\n]/g,"")),a.push(s);l._aFilterData=a,l._sFilterRow=a.join("  "),e=!0}return e}function Q(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function tt(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function et(e){var n=e.sTableId,i=e.aanFeatures.i,o=t("<div/>",{class:e.oClasses.sInfo,id:i?null:n+"_info"});return i||(e.aoDrawCallback.push({fn:nt,sName:"information"}),o.attr("role","status").attr("aria-live","polite"),t(e.nTable).attr("aria-describedby",n+"_info")),o[0]}function nt(e){var n=e.aanFeatures.i;if(0!==n.length){var i=e.oLanguage,o=e._iDisplayStart+1,r=e.fnDisplayEnd(),a=e.fnRecordsTotal(),s=e.fnRecordsDisplay(),l=s?i.sInfo:i.sInfoEmpty;s!==a&&(l+=" "+i.sInfoFiltered),l=it(e,l+=i.sInfoPostFix),null!==(i=i.fnInfoCallback)&&(l=i.call(e.oInstance,e,o,r,a,s,l)),t(n).html(l)}}function it(t,e){var n=t.fnFormatNumber,i=t._iDisplayStart+1,o=t._iDisplayLength,r=t.fnRecordsDisplay(),a=-1===o;return e.replace(/_START_/g,n.call(t,i)).replace(/_END_/g,n.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,n.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(t,r)).replace(/_PAGE_/g,n.call(t,a?1:Math.ceil(i/o))).replace(/_PAGES_/g,n.call(t,a?1:Math.ceil(r/o)))}function ot(t){var e,n,i,o=t.iInitDisplayStart,r=t.aoColumns;n=t.oFeatures;var a=t.bDeferLoading;if(t.bInitialised){for(B(t),I(t),N(t,t.aoHeader),N(t,t.aoFooter),dt(t,!0),n.bAutoWidth&&mt(t),e=0,n=r.length;e<n;e++)(i=r[e]).sWidth&&(i.nTh.style.width=_t(i.sWidth));Nt(t,null,"preInit",[t]),j(t),("ssp"!=(r=Bt(t))||a)&&("ajax"==r?$(t,[],(function(n){var i=V(t,n);for(e=0;e<i.length;e++)b(t,i[e]);t.iInitDisplayStart=o,j(t),dt(t,!1),rt(t,n)})):(dt(t,!1),rt(t)))}else setTimeout((function(){ot(t)}),200)}function rt(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&p(t),Nt(t,null,"plugin-init",[t,e]),Nt(t,"aoInitComplete","init",[t,e])}function at(t,e){var n=parseInt(e,10);t._iDisplayLength=n,zt(t),Nt(t,null,"length",[t,n])}function st(e){for(var n=e.oClasses,i=e.sTableId,o=e.aLengthMenu,r=(a=t.isArray(o[0]))?o[0]:o,a=(o=a?o[1]:o,t("<select/>",{name:i+"_length","aria-controls":i,class:n.sLengthSelect})),s=0,l=r.length;s<l;s++)a[0][s]=new Option("number"==typeof o[s]?e.fnFormatNumber(o[s]):o[s],r[s]);var c=t("<div><label/></div>").addClass(n.sLength);return e.aanFeatures.l||(c[0].id=i+"_length"),c.children().append(e.oLanguage.sLengthMenu.replace("_MENU_",a[0].outerHTML)),t("select",c).val(e._iDisplayLength).on("change.DT",(function(){at(e,t(this).val()),z(e)})),t(e.nTable).on("length.dt.DT",(function(n,i,o){e===i&&t("select",c).val(o)})),c[0]}function lt(e){var n=e.sPaginationType,i=Yt.ext.pager[n],o="function"==typeof i,r=function(t){z(t)},a=(n=t("<div/>").addClass(e.oClasses.sPaging+n)[0],e.aanFeatures);return o||i.fnInit(e,n,r),a.p||(n.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(o){var e,n=t._iDisplayStart,s=t._iDisplayLength,l=t.fnRecordsDisplay(),c=(n=(c=-1===s)?0:Math.ceil(n/s),s=c?1:Math.ceil(l/s),l=i(n,s),0);for(e=a.p.length;c<e;c++)jt(t,"pageButton")(t,a.p[c],c,l,n,s)}else i.fnUpdate(t,r)},sName:"pagination"})),n}function ct(t,e,n){var i=t._iDisplayStart,o=t._iDisplayLength,r=t.fnRecordsDisplay();return 0===r||-1===o?i=0:"number"==typeof e?(i=e*o)>r&&(i=0):"first"==e?i=0:"previous"==e?0>(i=0<=o?i-o:0)&&(i=0):"next"==e?i+o<r&&(i+=o):"last"==e?i=Math.floor((r-1)/o)*o:Mt(t,0,"Unknown paging action: "+e,5),e=t._iDisplayStart!==i,t._iDisplayStart=i,e&&(Nt(t,null,"page",[t]),n&&z(t)),e}function ut(e){return t("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function dt(e,n){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",n?"block":"none"),Nt(e,null,"processing",[e,n])}function ht(e){(d=t(e.nTable)).attr("role","grid");var n=e.oScroll;if(""===n.sX&&""===n.sY)return e.nTable;var i=n.sX,o=n.sY,r=e.oClasses,a=d.children("caption"),s=a.length?a[0]._captionSide:null,l=t(d[0].cloneNode(!1)),c=t(d[0].cloneNode(!1)),u=d.children("tfoot");u.length||(u=null),l=t("<div/>",{class:r.sScrollWrapper}).append(t("<div/>",{class:r.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:i?i?_t(i):null:"100%"}).append(t("<div/>",{class:r.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===s?a:null).append(d.children("thead"))))).append(t("<div/>",{class:r.sScrollBody}).css({position:"relative",overflow:"auto",width:i?_t(i):null}).append(d)),u&&l.append(t("<div/>",{class:r.sScrollFoot}).css({overflow:"hidden",border:0,width:i?i?_t(i):null:"100%"}).append(t("<div/>",{class:r.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===s?a:null).append(d.children("tfoot")))));var d,h=(d=l.children())[0],p=(r=d[1],u?d[2]:null);return i&&t(r).on("scroll.DT",(function(){var t=this.scrollLeft;h.scrollLeft=t,u&&(p.scrollLeft=t)})),t(r).css(o&&n.bCollapse?"max-height":"height",o),e.nScrollHead=h,e.nScrollBody=r,e.nScrollFoot=p,e.aoDrawCallback.push({fn:pt,sName:"scrolling"}),l[0]}function pt(e){var n,o,r,a,s,l=(d=e.oScroll).sX,c=d.sXInner,u=d.sY,d=d.iBarWidth,h=t(e.nScrollHead),m=h[0].style,g=(y=h.children("div"))[0].style,v=y.children("table"),y=e.nScrollBody,_=t(y),b=y.style,w=t(e.nScrollFoot).children("div"),x=w.children("table"),T=t(e.nTHead),C=t(e.nTable),S=C[0],E=S.style,D=e.nTFoot?t(e.nTFoot):null,k=e.oBrowser,A=k.bScrollOversize,M=oe(e.aoColumns,"nTh"),L=[],P=[],O=[],I=[],N=function(t){(t=t.style).paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0};o=y.scrollHeight>y.clientHeight,e.scrollBarVis!==o&&e.scrollBarVis!==i?(e.scrollBarVis=o,p(e)):(e.scrollBarVis=o,C.children("thead, tfoot").remove(),D&&(r=D.clone().prependTo(C),n=D.find("tr"),r=r.find("tr")),a=T.clone().prependTo(C),T=T.find("tr"),o=a.find("tr"),a.find("th, td").removeAttr("tabindex"),l||(b.width="100%",h[0].style.width="100%"),t.each(H(e,a),(function(t,n){s=f(e,t),n.style.width=e.aoColumns[s].sWidth})),D&&ft((function(t){t.style.width=""}),r),h=C.outerWidth(),""===l?(E.width="100%",A&&(C.find("tbody").height()>y.offsetHeight||"scroll"==_.css("overflow-y"))&&(E.width=_t(C.outerWidth()-d)),h=C.outerWidth()):""!==c&&(E.width=_t(c),h=C.outerWidth()),ft(N,o),ft((function(e){O.push(e.innerHTML),L.push(_t(t(e).css("width")))}),o),ft((function(e,n){-1!==t.inArray(e,M)&&(e.style.width=L[n])}),T),t(o).height(0),D&&(ft(N,r),ft((function(e){I.push(e.innerHTML),P.push(_t(t(e).css("width")))}),r),ft((function(t,e){t.style.width=P[e]}),n),t(r).height(0)),ft((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+O[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=L[e]}),o),D&&ft((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+I[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=P[e]}),r),C.outerWidth()<h?(n=y.scrollHeight>y.offsetHeight||"scroll"==_.css("overflow-y")?h+d:h,A&&(y.scrollHeight>y.offsetHeight||"scroll"==_.css("overflow-y"))&&(E.width=_t(n-d)),(""===l||""!==c)&&Mt(e,1,"Possible column misalignment",6)):n="100%",b.width=_t(n),m.width=_t(n),D&&(e.nScrollFoot.style.width=_t(n)),!u&&A&&(b.height=_t(S.offsetHeight+d)),l=C.outerWidth(),v[0].style.width=_t(l),g.width=_t(l),c=C.height()>y.clientHeight||"scroll"==_.css("overflow-y"),g[u="padding"+(k.bScrollbarLeft?"Left":"Right")]=c?d+"px":"0px",D&&(x[0].style.width=_t(l),w[0].style.width=_t(l),w[0].style[u]=c?d+"px":"0px"),C.children("colgroup").insertBefore(C.children("thead")),_.scroll(),!e.bSorted&&!e.bFiltered||e._drawHold||(y.scrollTop=0))}function ft(t,e,n){for(var i,o,r=0,a=0,s=e.length;a<s;){for(i=e[a].firstChild,o=n?n[a].firstChild:null;i;)1===i.nodeType&&(n?t(i,o,r):t(i,r),r++),i=i.nextSibling,o=n?o.nextSibling:null;a++}}function mt(n){var i,o,r=n.nTable,a=n.aoColumns,s=(w=n.oScroll).sY,l=w.sX,c=w.sXInner,u=a.length,d=v(n,"bVisible"),h=t("th",n.nTHead),m=r.getAttribute("width"),y=r.parentNode,_=!1,b=n.oBrowser,w=b.bScrollOversize;for((i=r.style.width)&&-1!==i.indexOf("%")&&(m=i),i=0;i<d.length;i++)null!==(o=a[d[i]]).sWidth&&(o.sWidth=gt(o.sWidthOrig,y),_=!0);if(w||!_&&!l&&!s&&u==g(n)&&u==h.length)for(i=0;i<u;i++)null!==(d=f(n,i))&&(a[d].sWidth=_t(h.eq(i).width()));else{(u=t(r).clone().css("visibility","hidden").removeAttr("id")).find("tbody tr").remove();var x=t("<tr/>").appendTo(u.find("tbody"));for(u.find("thead, tfoot").remove(),u.append(t(n.nTHead).clone()).append(t(n.nTFoot).clone()),u.find("tfoot th, tfoot td").css("width",""),h=H(n,u.find("thead")[0]),i=0;i<d.length;i++)o=a[d[i]],h[i].style.width=null!==o.sWidthOrig&&""!==o.sWidthOrig?_t(o.sWidthOrig):"",o.sWidthOrig&&l&&t(h[i]).append(t("<div/>").css({width:o.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(i=0;i<d.length;i++)o=a[_=d[i]],t(vt(n,_)).clone(!1).append(o.sContentPadding).appendTo(x);for(t("[name]",u).removeAttr("name"),o=t("<div/>").css(l||s?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(u).appendTo(y),l&&c?u.width(c):l?(u.css("width","auto"),u.removeAttr("width"),u.width()<y.clientWidth&&m&&u.width(y.clientWidth)):s?u.width(y.clientWidth):m&&u.width(m),i=s=0;i<d.length;i++)c=(y=t(h[i])).outerWidth()-y.width(),s+=y=b.bBounding?Math.ceil(h[i].getBoundingClientRect().width):y.outerWidth(),a[d[i]].sWidth=_t(y-c);r.style.width=_t(s),o.remove()}m&&(r.style.width=_t(m)),!m&&!l||n._reszEvt||(r=function(){t(e).on("resize.DT-"+n.sInstance,ge((function(){p(n)})))},w?setTimeout(r,1e3):r(),n._reszEvt=!0)}function gt(e,i){if(!e)return 0;var o=t("<div/>").css("width",_t(e)).appendTo(i||n.body),r=o[0].offsetWidth;return o.remove(),r}function vt(e,n){var i=yt(e,n);if(0>i)return null;var o=e.aoData[i];return o.nTr?o.anCells[n]:t("<td/>").html(x(e,i,n,"display"))[0]}function yt(t,e){for(var n,i=-1,o=-1,r=0,a=t.aoData.length;r<a;r++)(n=(n=(n=x(t,r,e,"display")+"").replace(me,"")).replace(/&nbsp;/g," ")).length>i&&(i=n.length,o=r);return o}function _t(t){return null===t?"0px":"number"==typeof t?0>t?"0px":t+"px":t.match(/\d$/)?t+"px":t}function bt(e){var n,o,r,a,s,l,c=[],u=e.aoColumns;n=e.aaSortingFixed,o=t.isPlainObject(n);var d=[];for(r=function(e){e.length&&!t.isArray(e[0])?d.push(e):t.merge(d,e)},t.isArray(n)&&r(n),o&&n.pre&&r(n.pre),r(e.aaSorting),o&&n.post&&r(n.post),e=0;e<d.length;e++)for(n=0,o=(r=u[l=d[e][0]].aDataSort).length;n<o;n++)s=u[a=r[n]].sType||"string",d[e]._idx===i&&(d[e]._idx=t.inArray(d[e][1],u[a].asSorting)),c.push({src:l,col:a,dir:d[e][1],index:d[e]._idx,type:s,formatter:Yt.ext.type.order[s+"-pre"]});return c}function wt(t){var e,n,i,o,r=[],a=Yt.ext.type.order,s=t.aoData,l=0,c=t.aiDisplayMaster;for(y(t),e=0,n=(o=bt(t)).length;e<n;e++)(i=o[e]).formatter&&l++,Et(t,i.col);if("ssp"!=Bt(t)&&0!==o.length){for(e=0,n=c.length;e<n;e++)r[c[e]]=e;l===o.length?c.sort((function(t,e){var n,i,a,l,c=o.length,u=s[t]._aSortData,d=s[e]._aSortData;for(a=0;a<c;a++)if(0!==(n=(n=u[(l=o[a]).col])<(i=d[l.col])?-1:n>i?1:0))return"asc"===l.dir?n:-n;return(n=r[t])<(i=r[e])?-1:n>i?1:0})):c.sort((function(t,e){var n,i,l,c,u=o.length,d=s[t]._aSortData,h=s[e]._aSortData;for(l=0;l<u;l++)if(n=d[(c=o[l]).col],i=h[c.col],0!==(n=(c=a[c.type+"-"+c.dir]||a["string-"+c.dir])(n,i)))return n;return(n=r[t])<(i=r[e])?-1:n>i?1:0}))}t.bSorted=!0}function xt(t){for(var e,n,i=t.aoColumns,o=bt(t),r=(t=t.oLanguage.oAria,0),a=i.length;r<a;r++){var s=(n=i[r]).asSorting;e=n.sTitle.replace(/<.*?>/g,"");var l=n.nTh;l.removeAttribute("aria-sort"),n.bSortable&&(0<o.length&&o[0].col==r?(l.setAttribute("aria-sort","asc"==o[0].dir?"ascending":"descending"),n=s[o[0].index+1]||s[0]):n=s[0],e+="asc"===n?t.sSortAscending:t.sSortDescending),l.setAttribute("aria-label",e)}}function Tt(e,n,o,r){var a=e.aaSorting,s=e.aoColumns[n].asSorting,l=function(e,n){var o=e._idx;return o===i&&(o=t.inArray(e[1],s)),o+1<s.length?o+1:n?null:0};"number"==typeof a[0]&&(a=e.aaSorting=[a]),o&&e.oFeatures.bSortMulti?-1!==(o=t.inArray(n,oe(a,"0")))?(null===(n=l(a[o],!0))&&1===a.length&&(n=0),null===n?a.splice(o,1):(a[o][1]=s[n],a[o]._idx=n)):(a.push([n,s[0],0]),a[a.length-1]._idx=0):a.length&&a[0][0]==n?(n=l(a[0]),a.length=1,a[0][1]=s[n],a[0]._idx=n):(a.length=0,a.push([n,s[0]]),a[0]._idx=0),j(e),"function"==typeof r&&r(e)}function Ct(t,e,n,i){var o=t.aoColumns[n];Ot(e,{},(function(e){!1!==o.bSortable&&(t.oFeatures.bProcessing?(dt(t,!0),setTimeout((function(){Tt(t,n,e.shiftKey,i),"ssp"!==Bt(t)&&dt(t,!1)}),0)):Tt(t,n,e.shiftKey,i))}))}function St(e){var n,i,o=e.aLastSort,r=e.oClasses.sSortColumn,a=bt(e),s=e.oFeatures;if(s.bSort&&s.bSortClasses){for(s=0,n=o.length;s<n;s++)i=o[s].src,t(oe(e.aoData,"anCells",i)).removeClass(r+(2>s?s+1:3));for(s=0,n=a.length;s<n;s++)i=a[s].src,t(oe(e.aoData,"anCells",i)).addClass(r+(2>s?s+1:3))}e.aLastSort=a}function Et(t,e){var n,i=t.aoColumns[e],o=Yt.ext.order[i.sSortDataType];o&&(n=o.call(t.oInstance,t,e,m(t,e)));for(var r,a=Yt.ext.type.order[i.sType+"-pre"],s=0,l=t.aoData.length;s<l;s++)(i=t.aoData[s])._aSortData||(i._aSortData=[]),(!i._aSortData[e]||o)&&(r=o?n[s]:x(t,s,e,"sort"),i._aSortData[e]=a?a(r):r)}function Dt(e){if(e.oFeatures.bStateSave&&!e.bDestroying){var n={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.extend(!0,[],e.aaSorting),search:Q(e.oPreviousSearch),columns:t.map(e.aoColumns,(function(t,n){return{visible:t.bVisible,search:Q(e.aoPreSearchCols[n])}}))};Nt(e,"aoStateSaveParams","stateSaveParams",[e,n]),e.oSavedState=n,e.fnStateSaveCallback.call(e.oInstance,e,n)}}function kt(e,n,o){var r,a,s=e.aoColumns;n=function(n){if(n&&n.time){var l=Nt(e,"aoStateLoadParams","stateLoadParams",[e,n]);if(-1===t.inArray(!1,l)&&!(0<(l=e.iStateDuration)&&n.time<+new Date-1e3*l||n.columns&&s.length!==n.columns.length)){if(e.oLoadedState=t.extend(!0,{},n),n.start!==i&&(e._iDisplayStart=n.start,e.iInitDisplayStart=n.start),n.length!==i&&(e._iDisplayLength=n.length),n.order!==i&&(e.aaSorting=[],t.each(n.order,(function(t,n){e.aaSorting.push(n[0]>=s.length?[0,n[1]]:n)}))),n.search!==i&&t.extend(e.oPreviousSearch,tt(n.search)),n.columns)for(r=0,a=n.columns.length;r<a;r++)(l=n.columns[r]).visible!==i&&(s[r].bVisible=l.visible),l.search!==i&&t.extend(e.aoPreSearchCols[r],tt(l.search));Nt(e,"aoStateLoaded","stateLoaded",[e,n])}}o()};if(e.oFeatures.bStateSave){var l=e.fnStateLoadCallback.call(e.oInstance,e,n);l!==i&&n(l)}else o()}function At(e){var n=Yt.settings;return-1!==(e=t.inArray(e,oe(n,"nTable")))?n[e]:null}function Mt(t,n,i,o){if(i="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+i,o&&(i+=". For more information about this error, please see http://datatables.net/tn/"+o),n)e.console&&console.log&&console.log(i);else if(n=(n=Yt.ext).sErrMode||n.errMode,t&&Nt(t,null,"error",[t,o,i]),"alert"==n)alert(i);else{if("throw"==n)throw Error(i);"function"==typeof n&&n(t,o,i)}}function Lt(e,n,o,r){t.isArray(o)?t.each(o,(function(i,o){t.isArray(o)?Lt(e,n,o[0],o[1]):Lt(e,n,o)})):(r===i&&(r=o),n[o]!==i&&(e[r]=n[o]))}function Pt(e,n,i){var o,r;for(r in n)n.hasOwnProperty(r)&&(o=n[r],t.isPlainObject(o)?(t.isPlainObject(e[r])||(e[r]={}),t.extend(!0,e[r],o)):e[r]=i&&"data"!==r&&"aaData"!==r&&t.isArray(o)?o.slice():o);return e}function Ot(e,n,i){t(e).on("click.DT",n,(function(n){t(e).blur(),i(n)})).on("keypress.DT",n,(function(t){13===t.which&&(t.preventDefault(),i(t))})).on("selectstart.DT",(function(){return!1}))}function It(t,e,n,i){n&&t[e].push({fn:n,sName:i})}function Nt(e,n,i,o){var r=[];return n&&(r=t.map(e[n].slice().reverse(),(function(t){return t.fn.apply(e.oInstance,o)}))),null!==i&&(n=t.Event(i+".dt"),t(e.nTable).trigger(n,o),r.push(n.result)),r}function zt(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),i=t._iDisplayLength;e>=n&&(e=n-i),e-=e%i,(-1===i||0>e)&&(e=0),t._iDisplayStart=e}function jt(e,n){var i=e.renderer,o=Yt.ext.renderer[n];return t.isPlainObject(i)&&i[n]?o[i[n]]||o._:"string"==typeof i&&o[i]||o._}function Bt(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function Rt(t,e){var n=[],i=(n=ke.numbers_length,Math.floor(n/2));return e<=n?n=ae(0,e):t<=i?((n=ae(0,n-2)).push("ellipsis"),n.push(e-1)):(t>=e-1-i?n=ae(e-(n-2),e):((n=ae(t-i+2,t+i-1)).push("ellipsis"),n.push(e-1)),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Ht(e){t.each({num:function(t){return Ae(t,e)},"num-fmt":function(t){return Ae(t,e,Jt)},"html-num":function(t){return Ae(t,e,Gt)},"html-num-fmt":function(t){return Ae(t,e,Gt,Jt)}},(function(t,n){Ft.type.order[t+e+"-pre"]=n,t.match(/^html\-/)&&(Ft.type.search[t+e]=Ft.type.search.html)}))}function $t(t){return function(){var e=[At(this[Yt.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return Yt.ext.internal[t].apply(this,e)}}var Ft,Wt,qt,Vt,Yt=function(e){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new Wt(t?At(this[Ft.iApiIndex]):this)},this.fnAddData=function(e,n){var o=this.api(!0),r=t.isArray(e)&&(t.isArray(e[0])||t.isPlainObject(e[0]))?o.rows.add(e):o.row.add(e);return(n===i||n)&&o.draw(),r.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),n=e.settings()[0],o=n.oScroll;t===i||t?e.draw(!1):(""!==o.sX||""!==o.sY)&&pt(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===i||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,n){var o=this.api(!0),r=(t=o.rows(t)).settings()[0],a=r.aoData[t[0][0]];return t.remove(),e&&e.call(this,r,a),(n===i||n)&&o.draw(),a},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,n,o,r,a){r=this.api(!0),null===e||e===i?r.search(t,n,o,a):r.column(e).search(t,n,o,a),r.draw()},this.fnGetData=function(t,e){var n=this.api(!0);if(t!==i){var o=t.nodeName?t.nodeName.toLowerCase():"";return e!==i||"td"==o||"th"==o?n.cell(t,e).data():n.row(t).data()||null}return n.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return t!==i?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();return"TR"==n?e.row(t).index():"TD"==n||"TH"==n?[(t=e.cell(t).index()).row,t.columnVisible,t.column]:null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,n){return this.api(!0).row(t).child(e,n).show().child()[0]},this.fnPageChange=function(t,e){var n=this.api(!0).page(t);(e===i||e)&&n.draw(!1)},this.fnSetColumnVis=function(t,e,n){t=this.api(!0).column(t).visible(e),(n===i||n)&&t.columns.adjust().draw()},this.fnSettings=function(){return At(this[Ft.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,n){this.api(!0).order.listener(t,e,n)},this.fnUpdate=function(t,e,n,o,r){var a=this.api(!0);return n===i||null===n?a.row(e).data(t):a.cell(e,n).data(t),(r===i||r)&&a.columns.adjust(),(o===i||o)&&a.draw(),0},this.fnVersionCheck=Ft.fnVersionCheck;var n=this,o=e===i,u=this.length;for(var p in o&&(e={}),this.oApi=this.internal=Ft.internal,Yt.ext.internal)p&&(this[p]=$t(p));return this.each((function(){var p,f={},m=1<u?Pt(f,e,!0):e,g=0,v=(f=this.getAttribute("id"),!1),y=Yt.defaults,x=t(this);if("table"!=this.nodeName.toLowerCase())Mt(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{s(y),l(y.column),r(y,y,!0),r(y.column,y.column,!0),r(y,t.extend(m,x.data()));var T=Yt.settings;g=0;for(p=T.length;g<p;g++){var C=T[g];if(C.nTable==this||C.nTHead&&C.nTHead.parentNode==this||C.nTFoot&&C.nTFoot.parentNode==this){var E=m.bRetrieve!==i?m.bRetrieve:y.bRetrieve;if(o||E)return C.oInstance;if(m.bDestroy!==i?m.bDestroy:y.bDestroy){C.oInstance.fnDestroy();break}return void Mt(C,0,"Cannot reinitialise DataTable",3)}if(C.sTableId==this.id){T.splice(g,1);break}}null!==f&&""!==f||(this.id=f="DataTables_Table_"+Yt.ext._unique++);var D=t.extend(!0,{},Yt.models.oSettings,{sDestroyWidth:x[0].style.width,sInstance:f,sTableId:f});D.nTable=this,D.oApi=n.internal,D.oInit=m,T.push(D),D.oInstance=1===n.length?n:x.dataTable(),s(m),a(m.oLanguage),m.aLengthMenu&&!m.iDisplayLength&&(m.iDisplayLength=t.isArray(m.aLengthMenu[0])?m.aLengthMenu[0][0]:m.aLengthMenu[0]),m=Pt(t.extend(!0,{},y),m),Lt(D.oFeatures,m,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),Lt(D,m,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),Lt(D.oScroll,m,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Lt(D.oLanguage,m,"fnInfoCallback"),It(D,"aoDrawCallback",m.fnDrawCallback,"user"),It(D,"aoServerParams",m.fnServerParams,"user"),It(D,"aoStateSaveParams",m.fnStateSaveParams,"user"),It(D,"aoStateLoadParams",m.fnStateLoadParams,"user"),It(D,"aoStateLoaded",m.fnStateLoaded,"user"),It(D,"aoRowCallback",m.fnRowCallback,"user"),It(D,"aoRowCreatedCallback",m.fnCreatedRow,"user"),It(D,"aoHeaderCallback",m.fnHeaderCallback,"user"),It(D,"aoFooterCallback",m.fnFooterCallback,"user"),It(D,"aoInitComplete",m.fnInitComplete,"user"),It(D,"aoPreDrawCallback",m.fnPreDrawCallback,"user"),D.rowIdFn=S(m.rowId),c(D);var k=D.oClasses;t.extend(k,Yt.ext.classes,m.oClasses),x.addClass(k.sTable),D.iInitDisplayStart===i&&(D.iInitDisplayStart=m.iDisplayStart,D._iDisplayStart=m.iDisplayStart),null!==m.iDeferLoading&&(D.bDeferLoading=!0,f=t.isArray(m.iDeferLoading),D._iRecordsDisplay=f?m.iDeferLoading[0]:m.iDeferLoading,D._iRecordsTotal=f?m.iDeferLoading[1]:m.iDeferLoading);var A=D.oLanguage;t.extend(!0,A,m.oLanguage),A.sUrl&&(t.ajax({dataType:"json",url:A.sUrl,success:function(e){a(e),r(y.oLanguage,e),t.extend(!0,A,e),ot(D)},error:function(){ot(D)}}),v=!0),null===m.asStripeClasses&&(D.asStripeClasses=[k.sStripeOdd,k.sStripeEven]);f=D.asStripeClasses;var M=x.children("tbody").find("tr").eq(0);if(-1!==t.inArray(!0,t.map(f,(function(t){return M.hasClass(t)})))&&(t("tbody tr",this).removeClass(f.join(" ")),D.asDestroyStripes=f.slice()),f=[],0!==(T=this.getElementsByTagName("thead")).length&&(R(D.aoHeader,T[0]),f=H(D)),null===m.aoColumns)for(T=[],g=0,p=f.length;g<p;g++)T.push(null);else T=m.aoColumns;for(g=0,p=T.length;g<p;g++)d(D,f?f[g]:null);if(_(D,m.aoColumnDefs,T,(function(t,e){h(D,t,e)})),M.length){var L=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};t(M[0]).children("th, td").each((function(t,e){var n=D.aoColumns[t];if(n.mData===t){var o=L(e,"sort")||L(e,"order"),r=L(e,"filter")||L(e,"search");null===o&&null===r||(n.mData={_:t+".display",sort:null!==o?t+".@data-"+o:i,type:null!==o?t+".@data-"+o:i,filter:null!==r?t+".@data-"+r:i},h(D,t))}}))}var P=D.oFeatures;f=function(){if(m.aaSorting===i){var e=D.aaSorting;for(g=0,p=e.length;g<p;g++)e[g][1]=D.aoColumns[g].asSorting[0]}St(D),P.bSort&&It(D,"aoDrawCallback",(function(){if(D.bSorted){var e=bt(D),n={};t.each(e,(function(t,e){n[e.src]=e.dir})),Nt(D,null,"order",[D,e,n]),xt(D)}})),It(D,"aoDrawCallback",(function(){(D.bSorted||"ssp"===Bt(D)||P.bDeferRender)&&St(D)}),"sc");e=x.children("caption").each((function(){this._captionSide=t(this).css("caption-side")}));var n=x.children("thead");if(0===n.length&&(n=t("<thead/>").appendTo(x)),D.nTHead=n[0],0===(n=x.children("tbody")).length&&(n=t("<tbody/>").appendTo(x)),D.nTBody=n[0],0===(n=x.children("tfoot")).length&&e.length>0&&(""!==D.oScroll.sX||""!==D.oScroll.sY)&&(n=t("<tfoot/>").appendTo(x)),0===n.length||0===n.children().length?x.addClass(k.sNoFooter):n.length>0&&(D.nTFoot=n[0],R(D.aoFooter,D.nTFoot)),m.aaData)for(g=0;g<m.aaData.length;g++)b(D,m.aaData[g]);else(D.bDeferLoading||"dom"==Bt(D))&&w(D,t(D.nTBody).children("tr"));D.aiDisplay=D.aiDisplayMaster.slice(),D.bInitialised=!0,!1===v&&ot(D)};m.bStateSave?(P.bStateSave=!0,It(D,"aoDrawCallback",Dt,"state_save"),kt(D,m,f)):f()}})),n=null,this},Zt={},Ut=/[\r\n]/g,Gt=/<.*?>/g,Xt=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Kt=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Jt=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Qt=function(t){return!t||!0===t||"-"===t},te=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},ee=function(t,e){return Zt[e]||(Zt[e]=RegExp(he(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(Zt[e],"."):t},ne=function(t,e,n){var i="string"==typeof t;return!!Qt(t)||(e&&i&&(t=ee(t,e)),n&&i&&(t=t.replace(Jt,"")),!isNaN(parseFloat(t))&&isFinite(t))},ie=function(t,e,n){return!!Qt(t)||((Qt(t)||"string"==typeof t)&&!!ne(t.replace(Gt,""),e,n)||null)},oe=function(t,e,n){var o=[],r=0,a=t.length;if(n!==i)for(;r<a;r++)t[r]&&t[r][e]&&o.push(t[r][e][n]);else for(;r<a;r++)t[r]&&o.push(t[r][e]);return o},re=function(t,e,n,o){var r=[],a=0,s=e.length;if(o!==i)for(;a<s;a++)t[e[a]][n]&&r.push(t[e[a]][n][o]);else for(;a<s;a++)r.push(t[e[a]][n]);return r},ae=function(t,e){var n,o=[];e===i?(e=0,n=t):(n=e,e=t);for(var r=e;r<n;r++)o.push(r);return o},se=function(t){for(var e=[],n=0,i=t.length;n<i;n++)t[n]&&e.push(t[n]);return e},le=function(t){var e;t:{if(!(2>t.length))for(var n=(e=t.slice().sort())[0],i=1,o=e.length;i<o;i++){if(e[i]===n){e=!1;break t}n=e[i]}e=!0}if(e)return t.slice();e=[];o=t.length;var r,a=0;i=0;t:for(;i<o;i++){for(n=t[i],r=0;r<a;r++)if(e[r]===n)continue t;e.push(n),a++}return e};Yt.util={throttle:function(t,e){var n,o,r=e!==i?e:200;return function(){var e=this,a=+new Date,s=arguments;n&&a<n+r?(clearTimeout(o),o=setTimeout((function(){n=i,t.apply(e,s)}),r)):(n=a,t.apply(e,s))}},escapeRegex:function(t){return t.replace(Kt,"\\$1")}};var ce=function(t,e,n){t[e]!==i&&(t[n]=t[e])},ue=/\[.*?\]$/,de=/\(\)$/,he=Yt.util.escapeRegex,pe=t("<div>")[0],fe=pe.textContent!==i,me=/<.*?>/g,ge=Yt.util.throttle,ve=[],ye=Array.prototype;Wt=function(e,n){if(!(this instanceof Wt))return new Wt(e,n);var i=[],o=function(e){(e=function(e){var n,i,o=Yt.settings,r=t.map(o,(function(t){return t.nTable}));return e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(n=t.inArray(e,r))?[o[n]]:null:e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?i=t(e):e instanceof t&&(i=e),i?i.map((function(){return-1!==(n=t.inArray(this,r))?o[n]:null})).toArray():void 0):[]}(e))&&(i=i.concat(e))};if(t.isArray(e))for(var r=0,a=e.length;r<a;r++)o(e[r]);else o(e);this.context=le(i),n&&t.merge(this,n),this.selector={rows:null,cols:null,opts:null},Wt.extend(this,this,ve)},Yt.Api=Wt,t.extend(Wt.prototype,{any:function(){return 0!==this.count()},concat:ye.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,n=this.length;e<n;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new Wt(e[t],this[t]):null},filter:function(t){var e=[];if(ye.filter)e=ye.filter.call(this,t,this);else for(var n=0,i=this.length;n<i;n++)t.call(this,this[n],n,this)&&e.push(this[n]);return new Wt(this.context,e)},flatten:function(){var t=[];return new Wt(this.context,t.concat.apply(t,this.toArray()))},join:ye.join,indexOf:ye.indexOf||function(t,e){for(var n=e||0,i=this.length;n<i;n++)if(this[n]===t)return n;return-1},iterator:function(t,e,n,o){var r,a,s,l,c,u,d,h=[],p=this.context,f=this.selector;for("string"==typeof t&&(o=n,n=e,e=t,t=!1),a=0,s=p.length;a<s;a++){var m=new Wt(p[a]);if("table"===e)(r=n.call(m,p[a],a))!==i&&h.push(r);else if("columns"===e||"rows"===e)(r=n.call(m,p[a],this[a],a))!==i&&h.push(r);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(d=this[a],"column-rows"===e&&(u=Te(p[a],f.opts)),l=0,c=d.length;l<c;l++)r=d[l],(r="cell"===e?n.call(m,p[a],r.row,r.column,a,l):n.call(m,p[a],r,a,l,u))!==i&&h.push(r)}return h.length||o?((e=(t=new Wt(p,t?h.concat.apply([],h):h)).selector).rows=f.rows,e.cols=f.cols,e.opts=f.opts,t):this},lastIndexOf:ye.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(ye.map)e=ye.map.call(this,t,this);else for(var n=0,i=this.length;n<i;n++)e.push(t.call(this,this[n],n));return new Wt(this.context,e)},pluck:function(t){return this.map((function(e){return e[t]}))},pop:ye.pop,push:ye.push,reduce:ye.reduce||function(t,e){return u(this,t,e,0,this.length,1)},reduceRight:ye.reduceRight||function(t,e){return u(this,t,e,this.length-1,-1,-1)},reverse:ye.reverse,selector:null,shift:ye.shift,slice:function(){return new Wt(this.context,this)},sort:ye.sort,splice:ye.splice,toArray:function(){return ye.slice.call(this)},to$:function(){return t(this)},toJQuery:function(){return t(this)},unique:function(){return new Wt(this.context,le(this))},unshift:ye.unshift}),Wt.extend=function(e,n,i){if(i.length&&n&&(n instanceof Wt||n.__dt_wrapper)){var o,r,a,s=function(t,e,n){return function(){var i=e.apply(t,arguments);return Wt.extend(i,i,n.methodExt),i}};for(o=0,r=i.length;o<r;o++)n[(a=i[o]).name]="function"==typeof a.val?s(e,a.val,a):t.isPlainObject(a.val)?{}:a.val,n[a.name].__dt_wrapper=!0,Wt.extend(e,n[a.name],a.propExt)}},Wt.register=qt=function(e,n){if(t.isArray(e))for(var i=0,o=e.length;i<o;i++)Wt.register(e[i],n);else{var r,a,s=e.split("."),l=ve;for(i=0,o=s.length;i<o;i++){var c;r=(a=-1!==s[i].indexOf("()"))?s[i].replace("()",""):s[i];t:{c=0;for(var u=l.length;c<u;c++)if(l[c].name===r){c=l[c];break t}c=null}c||(c={name:r,val:{},methodExt:[],propExt:[]},l.push(c)),i===o-1?c.val=n:l=a?c.methodExt:c.propExt}}},Wt.registerPlural=Vt=function(e,n,o){Wt.register(e,o),Wt.register(n,(function(){var e=o.apply(this,arguments);return e===this?this:e instanceof Wt?e.length?t.isArray(e[0])?new Wt(e.context,e[0]):e[0]:i:e}))},qt("tables()",(function(e){var n;if(e){n=Wt;var i=this.context;if("number"==typeof e)e=[i[e]];else{var o=t.map(i,(function(t){return t.nTable}));e=t(o).filter(e).map((function(){var e=t.inArray(this,o);return i[e]})).toArray()}n=new n(e)}else n=this;return n})),qt("table()",(function(t){var e=(t=this.tables(t)).context;return e.length?new Wt(e[0]):t})),Vt("tables().nodes()","table().node()",(function(){return this.iterator("table",(function(t){return t.nTable}),1)})),Vt("tables().body()","table().body()",(function(){return this.iterator("table",(function(t){return t.nTBody}),1)})),Vt("tables().header()","table().header()",(function(){return this.iterator("table",(function(t){return t.nTHead}),1)})),Vt("tables().footer()","table().footer()",(function(){return this.iterator("table",(function(t){return t.nTFoot}),1)})),Vt("tables().containers()","table().container()",(function(){return this.iterator("table",(function(t){return t.nTableWrapper}),1)})),qt("draw()",(function(t){return this.iterator("table",(function(e){"page"===t?z(e):("string"==typeof t&&(t="full-hold"!==t),j(e,!1===t))}))})),qt("page()",(function(t){return t===i?this.page.info().page:this.iterator("table",(function(e){ct(e,t)}))})),qt("page.info()",(function(){if(0===this.context.length)return i;var t=this.context[0],e=t._iDisplayStart,n=t.oFeatures.bPaginate?t._iDisplayLength:-1,o=t.fnRecordsDisplay(),r=-1===n;return{page:r?0:Math.floor(e/n),pages:r?1:Math.ceil(o/n),start:e,end:t.fnDisplayEnd(),length:n,recordsTotal:t.fnRecordsTotal(),recordsDisplay:o,serverSide:"ssp"===Bt(t)}})),qt("page.len()",(function(t){return t===i?0!==this.context.length?this.context[0]._iDisplayLength:i:this.iterator("table",(function(e){at(e,t)}))}));var _e=function(t,e,n){if(n){var i=new Wt(t);i.one("draw",(function(){n(i.ajax.json())}))}if("ssp"==Bt(t))j(t,e);else{dt(t,!0);var o=t.jqXHR;o&&4!==o.readyState&&o.abort(),$(t,[],(function(n){k(t);for(var i=0,o=(n=V(t,n)).length;i<o;i++)b(t,n[i]);j(t,e),dt(t,!1)}))}};qt("ajax.json()",(function(){var t=this.context;if(0<t.length)return t[0].json})),qt("ajax.params()",(function(){var t=this.context;if(0<t.length)return t[0].oAjaxData})),qt("ajax.reload()",(function(t,e){return this.iterator("table",(function(n){_e(n,!1===e,t)}))})),qt("ajax.url()",(function(e){var n=this.context;return e===i?0===n.length?i:(n=n[0]).ajax?t.isPlainObject(n.ajax)?n.ajax.url:n.ajax:n.sAjaxSource:this.iterator("table",(function(n){t.isPlainObject(n.ajax)?n.ajax.url=e:n.ajax=e}))})),qt("ajax.url().load()",(function(t,e){return this.iterator("table",(function(n){_e(n,!1===e,t)}))}));var be=function(e,n,o,r,a){var s,l,c,u,d,h,p=[];for(c=typeof n,n&&"string"!==c&&"function"!==c&&n.length!==i||(n=[n]),c=0,u=n.length;c<u;c++)for(d=0,h=(l=n[c]&&n[c].split&&!n[c].match(/[\[\(:]/)?n[c].split(","):[n[c]]).length;d<h;d++)(s=o("string"==typeof l[d]?t.trim(l[d]):l[d]))&&s.length&&(p=p.concat(s));if((e=Ft.selector[e]).length)for(c=0,u=e.length;c<u;c++)p=e[c](r,a,p);return le(p)},we=function(e){return e||(e={}),e.filter&&e.search===i&&(e.search=e.filter),t.extend({search:"none",order:"current",page:"all"},e)},xe=function(t){for(var e=0,n=t.length;e<n;e++)if(0<t[e].length)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},Te=function(e,n){var i,o,r,a=[],s=e.aiDisplay;r=e.aiDisplayMaster;var l=n.search;if(i=n.order,o=n.page,"ssp"==Bt(e))return"removed"===l?[]:ae(0,r.length);if("current"==o)for(i=e._iDisplayStart,o=e.fnDisplayEnd();i<o;i++)a.push(s[i]);else if("current"==i||"applied"==i){if("none"==l)a=r.slice();else if("applied"==l)a=s.slice();else if("removed"==l){var c={};for(i=0,o=s.length;i<o;i++)c[s[i]]=null;a=t.map(r,(function(t){return c.hasOwnProperty(t)?null:t}))}}else if("index"==i||"original"==i)for(i=0,o=e.aoData.length;i<o;i++)"none"==l?a.push(i):(-1===(r=t.inArray(i,s))&&"removed"==l||0<=r&&"applied"==l)&&a.push(i);return a};qt("rows()",(function(e,n){e===i?e="":t.isPlainObject(e)&&(n=e,e="");n=we(n);var o=this.iterator("table",(function(o){var r,a=n;return be("row",e,(function(e){var n=te(e),s=o.aoData;if(null!==n&&!a)return[n];if(r||(r=Te(o,a)),null!==n&&-1!==t.inArray(n,r))return[n];if(null===e||e===i||""===e)return r;if("function"==typeof e)return t.map(r,(function(t){var n=s[t];return e(t,n._aData,n.nTr)?t:null}));if(e.nodeName){n=e._DT_RowIndex;var l=e._DT_CellIndex;return n!==i?s[n]&&s[n].nTr===e?[n]:[]:l?s[l.row]&&s[l.row].nTr===e?[l.row]:[]:(n=t(e).closest("*[data-dt-row]")).length?[n.data("dt-row")]:[]}return"string"==typeof e&&"#"===e.charAt(0)&&(n=o.aIds[e.replace(/^#/,"")])!==i?[n.idx]:(n=se(re(o.aoData,r,"nTr")),t(n).filter(e).map((function(){return this._DT_RowIndex})).toArray())}),o,a)}),1);return o.selector.rows=e,o.selector.opts=n,o})),qt("rows().nodes()",(function(){return this.iterator("row",(function(t,e){return t.aoData[e].nTr||i}),1)})),qt("rows().data()",(function(){return this.iterator(!0,"rows",(function(t,e){return re(t.aoData,e,"_aData")}),1)})),Vt("rows().cache()","row().cache()",(function(t){return this.iterator("row",(function(e,n){var i=e.aoData[n];return"search"===t?i._aFilterData:i._aSortData}),1)})),Vt("rows().invalidate()","row().invalidate()",(function(t){return this.iterator("row",(function(e,n){M(e,n,t)}))})),Vt("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(t,e){return e}),1)})),Vt("rows().ids()","row().id()",(function(t){for(var e=[],n=this.context,i=0,o=n.length;i<o;i++)for(var r=0,a=this[i].length;r<a;r++){var s=n[i].rowIdFn(n[i].aoData[this[i][r]]._aData);e.push((!0===t?"#":"")+s)}return new Wt(n,e)})),Vt("rows().remove()","row().remove()",(function(){var t=this;return this.iterator("row",(function(e,n,o){var r,a,s,l,c,u=e.aoData,d=u[n];for(u.splice(n,1),r=0,a=u.length;r<a;r++)if(c=(s=u[r]).anCells,null!==s.nTr&&(s.nTr._DT_RowIndex=r),null!==c)for(s=0,l=c.length;s<l;s++)c[s]._DT_CellIndex.row=r;A(e.aiDisplayMaster,n),A(e.aiDisplay,n),A(t[o],n,!1),0<e._iRecordsDisplay&&e._iRecordsDisplay--,zt(e),(n=e.rowIdFn(d._aData))!==i&&delete e.aIds[n]})),this.iterator("table",(function(t){for(var e=0,n=t.aoData.length;e<n;e++)t.aoData[e].idx=e})),this})),qt("rows.add()",(function(e){var n=this.iterator("table",(function(t){var n,i,o,r=[];for(i=0,o=e.length;i<o;i++)(n=e[i]).nodeName&&"TR"===n.nodeName.toUpperCase()?r.push(w(t,n)[0]):r.push(b(t,n));return r}),1),i=this.rows(-1);return i.pop(),t.merge(i,n),i})),qt("row()",(function(t,e){return xe(this.rows(t,e))})),qt("row().data()",(function(e){var n=this.context;if(e===i)return n.length&&this.length?n[0].aoData[this[0]]._aData:i;var o=n[0].aoData[this[0]];return o._aData=e,t.isArray(e)&&o.nTr.id&&E(n[0].rowId)(e,o.nTr.id),M(n[0],this[0],"data"),this})),qt("row().node()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null})),qt("row.add()",(function(e){e instanceof t&&e.length&&(e=e[0]);var n=this.iterator("table",(function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?w(t,e)[0]:b(t,e)}));return this.row(n[0])}));var Ce=function(t,e){var n=t.context;n.length&&(n=n[0].aoData[e!==i?e:t[0]])&&n._details&&(n._details.remove(),n._detailsShow=i,n._details=i)},Se=function(t,e){var n=t.context;if(n.length&&t.length){var i=n[0].aoData[t[0]];if(i._details){(i._detailsShow=e)?i._details.insertAfter(i.nTr):i._details.detach();var o=n[0],r=new Wt(o),a=o.aoData;r.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),0<oe(a,"_details").length&&(r.on("draw.dt.DT_details",(function(t,e){o===e&&r.rows({page:"current"}).eq(0).each((function(t){(t=a[t])._detailsShow&&t._details.insertAfter(t.nTr)}))})),r.on("column-visibility.dt.DT_details",(function(t,e){if(o===e)for(var n,i=g(e),r=0,s=a.length;r<s;r++)(n=a[r])._details&&n._details.children("td[colspan]").attr("colspan",i)})),r.on("destroy.dt.DT_details",(function(t,e){if(o===e)for(var n=0,i=a.length;n<i;n++)a[n]._details&&Ce(r,n)})))}}};qt("row().child()",(function(e,n){var o=this.context;if(e===i)return o.length&&this.length?o[0].aoData[this[0]]._details:i;if(!0===e)this.child.show();else if(!1===e)Ce(this);else if(o.length&&this.length){var r=o[0],a=(o=o[0].aoData[this[0]],[]),s=function(e,n){if(t.isArray(e)||e instanceof t)for(var i=0,o=e.length;i<o;i++)s(e[i],n);else e.nodeName&&"tr"===e.nodeName.toLowerCase()?a.push(e):(i=t("<tr><td/></tr>").addClass(n),t("td",i).addClass(n).html(e)[0].colSpan=g(r),a.push(i[0]))};s(e,n),o._details&&o._details.detach(),o._details=t(a),o._detailsShow&&o._details.insertAfter(o.nTr)}return this})),qt(["row().child.show()","row().child().show()"],(function(){return Se(this,!0),this})),qt(["row().child.hide()","row().child().hide()"],(function(){return Se(this,!1),this})),qt(["row().child.remove()","row().child().remove()"],(function(){return Ce(this),this})),qt("row().child.isShown()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}));var Ee=/^([^:]+):(name|visIdx|visible)$/,De=function(t,e,n,i,o){n=[],i=0;for(var r=o.length;i<r;i++)n.push(x(t,o[i],e));return n};qt("columns()",(function(e,n){e===i?e="":t.isPlainObject(e)&&(n=e,e="");n=we(n);var o=this.iterator("table",(function(i){var o=e,r=n,a=i.aoColumns,s=oe(a,"sName"),l=oe(a,"nTh");return be("column",o,(function(e){var n=te(e);if(""===e)return ae(a.length);if(null!==n)return[n>=0?n:a.length+n];if("function"==typeof e){var o=Te(i,r);return t.map(a,(function(t,n){return e(n,De(i,n,0,0,o),l[n])?n:null}))}var c="string"==typeof e?e.match(Ee):"";if(c)switch(c[2]){case"visIdx":case"visible":if((n=parseInt(c[1],10))<0){var u=t.map(a,(function(t,e){return t.bVisible?e:null}));return[u[u.length+n]]}return[f(i,n)];case"name":return t.map(s,(function(t,e){return t===c[1]?e:null}));default:return[]}return e.nodeName&&e._DT_CellIndex?[e._DT_CellIndex.column]:(n=t(l).filter(e).map((function(){return t.inArray(this,l)})).toArray()).length||!e.nodeName?n:(n=t(e).closest("*[data-dt-column]")).length?[n.data("dt-column")]:[]}),i,r)}),1);return o.selector.cols=e,o.selector.opts=n,o})),Vt("columns().header()","column().header()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTh}),1)})),Vt("columns().footer()","column().footer()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTf}),1)})),Vt("columns().data()","column().data()",(function(){return this.iterator("column-rows",De,1)})),Vt("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].mData}),1)})),Vt("columns().cache()","column().cache()",(function(t){return this.iterator("column-rows",(function(e,n,i,o,r){return re(e.aoData,r,"search"===t?"_aFilterData":"_aSortData",n)}),1)})),Vt("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(t,e,n,i,o){return re(t.aoData,o,"anCells",e)}),1)})),Vt("columns().visible()","column().visible()",(function(e,n){var o=this.iterator("column",(function(n,o){if(e===i)return n.aoColumns[o].bVisible;var r,a,s,l=n.aoColumns,c=l[o],u=n.aoData;if(e!==i&&c.bVisible!==e){if(e){var d=t.inArray(!0,oe(l,"bVisible"),o+1);for(r=0,a=u.length;r<a;r++)s=u[r].nTr,l=u[r].anCells,s&&s.insertBefore(l[o],l[d]||null)}else t(oe(n.aoData,"anCells",o)).detach();c.bVisible=e,N(n,n.aoHeader),N(n,n.aoFooter),n.aiDisplay.length||t(n.nTBody).find("td[colspan]").attr("colspan",g(n)),Dt(n)}}));return e!==i&&(this.iterator("column",(function(t,i){Nt(t,null,"column-visibility",[t,i,e,n])})),(n===i||n)&&this.columns.adjust()),o})),Vt("columns().indexes()","column().index()",(function(t){return this.iterator("column",(function(e,n){return"visible"===t?m(e,n):n}),1)})),qt("columns.adjust()",(function(){return this.iterator("table",(function(t){p(t)}),1)})),qt("column.index()",(function(t,e){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return f(n,e);if("fromData"===t||"toVisible"===t)return m(n,e)}})),qt("column()",(function(t,e){return xe(this.columns(t,e))})),qt("cells()",(function(e,n,o){if(t.isPlainObject(e)&&(e.row===i?(o=e,e=null):(o=n,n=null)),t.isPlainObject(n)&&(o=n,n=null),null===n||n===i)return this.iterator("table",(function(n){var r,a,s,l,c,u,d,h=e,p=we(o),f=n.aoData,m=Te(n,p),g=se(re(f,m,"anCells")),v=t([].concat.apply([],g)),y=n.aoColumns.length;return be("cell",h,(function(e){var o="function"==typeof e;if(null===e||e===i||o){for(a=[],s=0,l=m.length;s<l;s++)for(r=m[s],c=0;c<y;c++)u={row:r,column:c},o?(d=f[r],e(u,x(n,r,c),d.anCells?d.anCells[c]:null)&&a.push(u)):a.push(u);return a}return t.isPlainObject(e)?e.column!==i&&e.row!==i&&-1!==t.inArray(e.row,m)?[e]:[]:(o=v.filter(e).map((function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}})).toArray()).length||!e.nodeName?o:(d=t(e).closest("*[data-dt-row]")).length?[{row:d.data("dt-row"),column:d.data("dt-column")}]:[]}),n,p)}));var r,a,s,l,c,u=this.columns(n),d=this.rows(e);this.iterator("table",(function(t,e){for(r=[],a=0,s=d[e].length;a<s;a++)for(l=0,c=u[e].length;l<c;l++)r.push({row:d[e][a],column:u[e][l]})}),1);var h=this.cells(r,o);return t.extend(h.selector,{cols:n,rows:e,opts:o}),h})),Vt("cells().nodes()","cell().node()",(function(){return this.iterator("cell",(function(t,e,n){return(t=t.aoData[e])&&t.anCells?t.anCells[n]:i}),1)})),qt("cells().data()",(function(){return this.iterator("cell",(function(t,e,n){return x(t,e,n)}),1)})),Vt("cells().cache()","cell().cache()",(function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",(function(e,n,i){return e.aoData[n][t][i]}),1)})),Vt("cells().render()","cell().render()",(function(t){return this.iterator("cell",(function(e,n,i){return x(e,n,i,t)}),1)})),Vt("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(t,e,n){return{row:e,column:n,columnVisible:m(t,n)}}),1)})),Vt("cells().invalidate()","cell().invalidate()",(function(t){return this.iterator("cell",(function(e,n,i){M(e,n,t,i)}))})),qt("cell()",(function(t,e,n){return xe(this.cells(t,e,n))})),qt("cell().data()",(function(t){var e=this.context,n=this[0];return t===i?e.length&&n.length?x(e[0],n[0].row,n[0].column):i:(T(e[0],n[0].row,n[0].column,t),M(e[0],n[0].row,"data",n[0].column),this)})),qt("order()",(function(e,n){var o=this.context;return e===i?0!==o.length?o[0].aaSorting:i:("number"==typeof e?e=[[e,n]]:e.length&&!t.isArray(e[0])&&(e=Array.prototype.slice.call(arguments)),this.iterator("table",(function(t){t.aaSorting=e.slice()})))})),qt("order.listener()",(function(t,e,n){return this.iterator("table",(function(i){Ct(i,t,e,n)}))})),qt("order.fixed()",(function(e){if(!e){var n=(n=this.context).length?n[0].aaSortingFixed:i;return t.isArray(n)?{pre:n}:n}return this.iterator("table",(function(n){n.aaSortingFixed=t.extend(!0,{},e)}))})),qt(["columns().order()","column().order()"],(function(e){var n=this;return this.iterator("table",(function(i,o){var r=[];t.each(n[o],(function(t,n){r.push([n,e])})),i.aaSorting=r}))})),qt("search()",(function(e,n,o,r){var a=this.context;return e===i?0!==a.length?a[0].oPreviousSearch.sSearch:i:this.iterator("table",(function(i){i.oFeatures.bFilter&&Z(i,t.extend({},i.oPreviousSearch,{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===o||o,bCaseInsensitive:null===r||r}),1)}))})),Vt("columns().search()","column().search()",(function(e,n,o,r){return this.iterator("column",(function(a,s){var l=a.aoPreSearchCols;if(e===i)return l[s].sSearch;a.oFeatures.bFilter&&(t.extend(l[s],{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===o||o,bCaseInsensitive:null===r||r}),Z(a,a.oPreviousSearch,1))}))})),qt("state()",(function(){return this.context.length?this.context[0].oSavedState:null})),qt("state.clear()",(function(){return this.iterator("table",(function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})}))})),qt("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),qt("state.save()",(function(){return this.iterator("table",(function(t){Dt(t)}))})),Yt.versionCheck=Yt.fnVersionCheck=function(t){for(var e,n,i=Yt.version.split("."),o=0,r=(t=t.split(".")).length;o<r;o++)if((e=parseInt(i[o],10)||0)!==(n=parseInt(t[o],10)||0))return e>n;return!0},Yt.isDataTable=Yt.fnIsDataTable=function(e){var n=t(e).get(0),i=!1;return e instanceof Yt.Api||(t.each(Yt.settings,(function(e,o){var r=o.nScrollHead?t("table",o.nScrollHead)[0]:null,a=o.nScrollFoot?t("table",o.nScrollFoot)[0]:null;o.nTable!==n&&r!==n&&a!==n||(i=!0)})),i)},Yt.tables=Yt.fnTables=function(e){var n=!1;t.isPlainObject(e)&&(n=e.api,e=e.visible);var i=t.map(Yt.settings,(function(n){if(!e||e&&t(n.nTable).is(":visible"))return n.nTable}));return n?new Wt(i):i},Yt.camelToHungarian=r,qt("$()",(function(e,n){var i=this.rows(n).nodes();i=t(i);return t([].concat(i.filter(e).toArray(),i.find(e).toArray()))})),t.each(["on","one","off"],(function(e,n){qt(n+"()",(function(){var e=Array.prototype.slice.call(arguments);e[0]=t.map(e[0].split(/\s/),(function(t){return t.match(/\.dt\b/)?t:t+".dt"})).join(" ");var i=t(this.tables().nodes());return i[n].apply(i,e),this}))})),qt("clear()",(function(){return this.iterator("table",(function(t){k(t)}))})),qt("settings()",(function(){return new Wt(this.context,this.context)})),qt("init()",(function(){var t=this.context;return t.length?t[0].oInit:null})),qt("data()",(function(){return this.iterator("table",(function(t){return oe(t.aoData,"_aData")})).flatten()})),qt("destroy()",(function(n){return n=n||!1,this.iterator("table",(function(i){var o,r=i.nTableWrapper.parentNode,a=i.oClasses,s=i.nTable,l=i.nTBody,c=i.nTHead,u=i.nTFoot,d=t(s),h=(l=t(l),t(i.nTableWrapper)),p=t.map(i.aoData,(function(t){return t.nTr}));i.bDestroying=!0,Nt(i,"aoDestroyCallback","destroy",[i]),n||new Wt(i).columns().visible(!0),h.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+i.sInstance),s!=c.parentNode&&(d.children("thead").detach(),d.append(c)),u&&s!=u.parentNode&&(d.children("tfoot").detach(),d.append(u)),i.aaSorting=[],i.aaSortingFixed=[],St(i),t(p).removeClass(i.asStripeClasses.join(" ")),t("th, td",c).removeClass(a.sSortable+" "+a.sSortableAsc+" "+a.sSortableDesc+" "+a.sSortableNone),l.children().detach(),l.append(p),d[c=n?"remove":"detach"](),h[c](),!n&&r&&(r.insertBefore(s,i.nTableReinsertBefore),d.css("width",i.sDestroyWidth).removeClass(a.sTable),(o=i.asDestroyStripes.length)&&l.children().each((function(e){t(this).addClass(i.asDestroyStripes[e%o])}))),-1!==(r=t.inArray(i,Yt.settings))&&Yt.settings.splice(r,1)}))})),t.each(["column","row","cell"],(function(t,e){qt(e+"s().every()",(function(t){var n=this.selector.opts,o=this;return this.iterator(e,(function(r,a,s,l,c){t.call(o[e](a,"cell"===e?s:n,"cell"===e?n:i),a,s,l,c)}))}))})),qt("i18n()",(function(e,n,o){var r=this.context[0];return(e=S(e)(r.oLanguage))===i&&(e=n),o!==i&&t.isPlainObject(e)&&(e=e[o]!==i?e[o]:e._),e.replace("%d",o)})),Yt.version="1.10.18",Yt.settings=[],Yt.models={},Yt.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},Yt.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},Yt.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},Yt.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:t.extend({},Yt.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},o(Yt.defaults),Yt.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},o(Yt.defaults.column),Yt.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:i,oAjaxData:i,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Bt(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Bt(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,i=this.aiDisplay.length,o=this.oFeatures,r=o.bPaginate;return o.bServerSide?!1===r||-1===t?e+i:Math.min(e+t,this._iRecordsDisplay):!r||n>i||-1===t?i:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},Yt.ext=Ft={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:Yt.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:Yt.version},t.extend(Ft,{afnFiltering:Ft.search,aTypes:Ft.type.detect,ofnSearch:Ft.type.search,oSort:Ft.type.order,afnSortData:Ft.order,aoFeatures:Ft.feature,oApi:Ft.internal,oStdClasses:Ft.classes,oPagination:Ft.pager}),t.extend(Yt.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var ke=Yt.ext.pager;t.extend(ke,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(t,e){return[Rt(t,e)]},simple_numbers:function(t,e){return["previous",Rt(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Rt(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Rt(t,e),"last"]},_numbers:Rt,numbers_length:7}),t.extend(!0,Yt.ext.renderer,{pageButton:{_:function(e,o,r,a,s,l){var c,u,d,h=e.oClasses,p=e.oLanguage.oPaginate,f=e.oLanguage.oAria.paginate||{},m=0,g=function(n,i){var o,a,d,v,y=function(t){ct(e,t.data.action,!0)};for(o=0,a=i.length;o<a;o++)if(v=i[o],t.isArray(v))d=t("<"+(v.DT_el||"div")+"/>").appendTo(n),g(d,v);else{switch(c=null,u="",v){case"ellipsis":n.append('<span class="ellipsis">&#x2026;</span>');break;case"first":c=p.sFirst,u=v+(s>0?"":" "+h.sPageButtonDisabled);break;case"previous":c=p.sPrevious,u=v+(s>0?"":" "+h.sPageButtonDisabled);break;case"next":c=p.sNext,u=v+(s<l-1?"":" "+h.sPageButtonDisabled);break;case"last":c=p.sLast,u=v+(s<l-1?"":" "+h.sPageButtonDisabled);break;default:c=v+1,u=s===v?h.sPageButtonActive:""}null!==c&&(Ot(d=t("<a>",{class:h.sPageButton+" "+u,"aria-controls":e.sTableId,"aria-label":f[v],"data-dt-idx":m,tabindex:e.iTabIndex,id:0===r&&"string"==typeof v?e.sTableId+"_"+v:null}).html(c).appendTo(n),{action:v},y),m++)}};try{d=t(o).find(n.activeElement).data("dt-idx")}catch(t){}g(t(o).empty(),a),d!==i&&t(o).find("[data-dt-idx="+d+"]").focus()}}}),t.extend(Yt.ext.type.detect,[function(t,e){var n=e.oLanguage.sDecimal;return ne(t,n)?"num"+n:null},function(t){if(t&&!(t instanceof Date)&&!Xt.test(t))return null;var e=Date.parse(t);return null!==e&&!isNaN(e)||Qt(t)?"date":null},function(t,e){var n=e.oLanguage.sDecimal;return ne(t,n,!0)?"num-fmt"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return ie(t,n)?"html-num"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return ie(t,n,!0)?"html-num-fmt"+n:null},function(t){return Qt(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(Yt.ext.type.search,{html:function(t){return Qt(t)?t:"string"==typeof t?t.replace(Ut," ").replace(Gt,""):""},string:function(t){return Qt(t)?t:"string"==typeof t?t.replace(Ut," "):t}});var Ae=function(t,e,n,i){return 0===t||t&&"-"!==t?(e&&(t=ee(t,e)),t.replace&&(n&&(t=t.replace(n,"")),i&&(t=t.replace(i,""))),1*t):-1/0};t.extend(Ft.type.order,{"date-pre":function(t){return t=Date.parse(t),isNaN(t)?-1/0:t},"html-pre":function(t){return Qt(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return Qt(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:t>e?1:0},"string-desc":function(t,e){return t<e?1:t>e?-1:0}}),Ht(""),t.extend(!0,Yt.ext.renderer,{header:{_:function(e,n,i,o){t(e.nTable).on("order.dt.DT",(function(t,r,a,s){e===r&&(t=i.idx,n.removeClass(i.sSortingClass+" "+o.sSortAsc+" "+o.sSortDesc).addClass("asc"==s[t]?o.sSortAsc:"desc"==s[t]?o.sSortDesc:i.sSortingClass))}))},jqueryui:function(e,n,i,o){t("<div/>").addClass(o.sSortJUIWrapper).append(n.contents()).append(t("<span/>").addClass(o.sSortIcon+" "+i.sSortingClassJUI)).appendTo(n),t(e.nTable).on("order.dt.DT",(function(t,r,a,s){e===r&&(t=i.idx,n.removeClass(o.sSortAsc+" "+o.sSortDesc).addClass("asc"==s[t]?o.sSortAsc:"desc"==s[t]?o.sSortDesc:i.sSortingClass),n.find("span."+o.sSortIcon).removeClass(o.sSortJUIAsc+" "+o.sSortJUIDesc+" "+o.sSortJUI+" "+o.sSortJUIAscAllowed+" "+o.sSortJUIDescAllowed).addClass("asc"==s[t]?o.sSortJUIAsc:"desc"==s[t]?o.sSortJUIDesc:i.sSortingClassJUI))}))}}});var Me=function(t){return"string"==typeof t?t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):t};return Yt.render={number:function(t,e,n,i,o){return{display:function(r){if("number"!=typeof r&&"string"!=typeof r)return r;var a=0>r?"-":"",s=parseFloat(r);return isNaN(s)?Me(r):(s=s.toFixed(n),r=Math.abs(s),s=parseInt(r,10),r=n?e+(r-s).toFixed(n).substring(2):"",a+(i||"")+s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+r+(o||""))}}},text:function(){return{display:Me}}},t.extend(Yt.ext.internal,{_fnExternApiFunc:$t,_fnBuildAjax:$,_fnAjaxUpdate:F,_fnAjaxParameters:W,_fnAjaxUpdateDraw:q,_fnAjaxDataSrc:V,_fnAddColumn:d,_fnColumnOptions:h,_fnAdjustColumnSizing:p,_fnVisibleToColumnIndex:f,_fnColumnIndexToVisible:m,_fnVisbleColumns:g,_fnGetColumns:v,_fnColumnTypes:y,_fnApplyColumnDefs:_,_fnHungarianMap:o,_fnCamelToHungarian:r,_fnLanguageCompat:a,_fnBrowserDetect:c,_fnAddData:b,_fnAddTr:w,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==i?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,n,i){return t.inArray(i,e.aoData[n].anCells)},_fnGetCellData:x,_fnSetCellData:T,_fnSplitObjNotation:C,_fnGetObjectDataFn:S,_fnSetObjectDataFn:E,_fnGetDataMaster:D,_fnClearTable:k,_fnDeleteIndex:A,_fnInvalidate:M,_fnGetRowElements:L,_fnCreateTr:P,_fnBuildHead:I,_fnDrawHead:N,_fnDraw:z,_fnReDraw:j,_fnAddOptionsHtml:B,_fnDetectHeader:R,_fnGetUniqueThs:H,_fnFeatureHtmlFilter:Y,_fnFilterComplete:Z,_fnFilterCustom:U,_fnFilterColumn:G,_fnFilter:X,_fnFilterCreateSearch:K,_fnEscapeRegex:he,_fnFilterData:J,_fnFeatureHtmlInfo:et,_fnUpdateInfo:nt,_fnInfoMacros:it,_fnInitialise:ot,_fnInitComplete:rt,_fnLengthChange:at,_fnFeatureHtmlLength:st,_fnFeatureHtmlPaginate:lt,_fnPageChange:ct,_fnFeatureHtmlProcessing:ut,_fnProcessingDisplay:dt,_fnFeatureHtmlTable:ht,_fnScrollDraw:pt,_fnApplyToChildren:ft,_fnCalculateColumnWidths:mt,_fnThrottle:ge,_fnConvertToWidth:gt,_fnGetWidestNode:vt,_fnGetMaxLenString:yt,_fnStringToCss:_t,_fnSortFlatten:bt,_fnSort:wt,_fnSortAria:xt,_fnSortListener:Tt,_fnSortAttachListener:Ct,_fnSortingClasses:St,_fnSortData:Et,_fnSaveState:Dt,_fnLoadState:kt,_fnSettingsFromNode:At,_fnLog:Mt,_fnMap:Lt,_fnBindAction:Ot,_fnCallbackReg:It,_fnCallbackFire:Nt,_fnLengthOverflow:zt,_fnRenderer:jt,_fnDataSource:Bt,_fnRowAttributes:O,_fnExtend:Pt,_fnCalculateEnd:function(){}}),t.fn.dataTable=Yt,Yt.$=t,t.fn.dataTableSettings=Yt.settings,t.fn.dataTableExt=Yt.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(Yt,(function(e,n){t.fn.DataTable[e]=n})),t.fn.dataTable})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Swiper=e()}(this,(function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function n(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function i(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach((function(o){void 0===t[o]?t[o]=e[o]:n(e[o])&&n(t[o])&&Object.keys(e[o]).length>0&&i(t[o],e[o])}))}var o={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function r(){var t="undefined"!=typeof document?document:{};return i(t,o),t}var a={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function s(){var t="undefined"!=typeof window?window:{};return i(t,a),t}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function d(t,e,n){return(d=u()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&c(o,n.prototype),o}).apply(null,arguments)}function h(t){var e="function"==typeof Map?new Map:void 0;return(h=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return d(t,arguments,l(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),c(i,t)})(t)}var p=function(t){var e,n;function i(e){var n,i,o;return i=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n=t.call.apply(t,[this].concat(e))||this),o=i.__proto__,Object.defineProperty(i,"__proto__",{get:function(){return o},set:function(t){o.__proto__=t}}),n}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(h(Array));function f(t){void 0===t&&(t=[]);var e=[];return t.forEach((function(t){Array.isArray(t)?e.push.apply(e,f(t)):e.push(t)})),e}function m(t,e){return Array.prototype.filter.call(t,e)}function g(t,e){var n=s(),i=r(),o=[];if(!e&&t instanceof p)return t;if(!t)return new p(o);if("string"==typeof t){var a=t.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var l="div";0===a.indexOf("<li")&&(l="ul"),0===a.indexOf("<tr")&&(l="tbody"),0!==a.indexOf("<td")&&0!==a.indexOf("<th")||(l="tr"),0===a.indexOf("<tbody")&&(l="table"),0===a.indexOf("<option")&&(l="select");var c=i.createElement(l);c.innerHTML=a;for(var u=0;u<c.childNodes.length;u+=1)o.push(c.childNodes[u])}else o=function(t,e){if("string"!=typeof t)return[t];for(var n=[],i=e.querySelectorAll(t),o=0;o<i.length;o+=1)n.push(i[o]);return n}(t.trim(),e||i)}else if(t.nodeType||t===n||t===i)o.push(t);else if(Array.isArray(t)){if(t instanceof p)return t;o=t}return new p(function(t){for(var e=[],n=0;n<t.length;n+=1)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(o))}g.fn=p.prototype;var v,y,_,b={addClass:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=f(e.map((function(t){return t.split(" ")})));return this.forEach((function(t){var e;(e=t.classList).add.apply(e,i)})),this},removeClass:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=f(e.map((function(t){return t.split(" ")})));return this.forEach((function(t){var e;(e=t.classList).remove.apply(e,i)})),this},hasClass:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=f(e.map((function(t){return t.split(" ")})));return m(this,(function(t){return i.filter((function(e){return t.classList.contains(e)})).length>0})).length>0},toggleClass:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=f(e.map((function(t){return t.split(" ")})));this.forEach((function(t){i.forEach((function(e){t.classList.toggle(e)}))}))},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(t,e);else for(var i in t)this[n][i]=t[i],this[n].setAttribute(i,t[i]);return this},removeAttr:function(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},transform:function(t){for(var e=0;e<this.length;e+=1)this[e].style.transform=t;return this},transition:function(t){for(var e=0;e<this.length;e+=1)this[e].style.transitionDuration="string"!=typeof t?t+"ms":t;return this},on:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e[0],o=e[1],r=e[2],a=e[3];function s(t){var e=t.target;if(e){var n=t.target.dom7EventData||[];if(n.indexOf(t)<0&&n.unshift(t),g(e).is(o))r.apply(e,n);else for(var i=g(e).parents(),a=0;a<i.length;a+=1)g(i[a]).is(o)&&r.apply(i[a],n)}}function l(t){var e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),r.apply(this,e)}"function"==typeof e[1]&&(i=e[0],r=e[1],a=e[2],o=void 0),a||(a=!1);for(var c,u=i.split(" "),d=0;d<this.length;d+=1){var h=this[d];if(o)for(c=0;c<u.length;c+=1){var p=u[c];h.dom7LiveListeners||(h.dom7LiveListeners={}),h.dom7LiveListeners[p]||(h.dom7LiveListeners[p]=[]),h.dom7LiveListeners[p].push({listener:r,proxyListener:s}),h.addEventListener(p,s,a)}else for(c=0;c<u.length;c+=1){var f=u[c];h.dom7Listeners||(h.dom7Listeners={}),h.dom7Listeners[f]||(h.dom7Listeners[f]=[]),h.dom7Listeners[f].push({listener:r,proxyListener:l}),h.addEventListener(f,l,a)}}return this},off:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e[0],o=e[1],r=e[2],a=e[3];"function"==typeof e[1]&&(i=e[0],r=e[1],a=e[2],o=void 0),a||(a=!1);for(var s=i.split(" "),l=0;l<s.length;l+=1)for(var c=s[l],u=0;u<this.length;u+=1){var d=this[u],h=void 0;if(!o&&d.dom7Listeners?h=d.dom7Listeners[c]:o&&d.dom7LiveListeners&&(h=d.dom7LiveListeners[c]),h&&h.length)for(var p=h.length-1;p>=0;p-=1){var f=h[p];r&&f.listener===r||r&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===r?(d.removeEventListener(c,f.proxyListener,a),h.splice(p,1)):r||(d.removeEventListener(c,f.proxyListener,a),h.splice(p,1))}}return this},trigger:function(){for(var t=s(),e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var o=n[0].split(" "),r=n[1],a=0;a<o.length;a+=1)for(var l=o[a],c=0;c<this.length;c+=1){var u=this[c];if(t.CustomEvent){var d=new t.CustomEvent(l,{detail:r,bubbles:!0,cancelable:!0});u.dom7EventData=n.filter((function(t,e){return e>0})),u.dispatchEvent(d),u.dom7EventData=[],delete u.dom7EventData}}return this},transitionEnd:function(t){var e=this;return t&&e.on("transitionend",(function n(i){i.target===this&&(t.call(this,i),e.off("transitionend",n))})),this},outerWidth:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var t=s();return this[0]?t.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var t=s(),e=r(),n=this[0],i=n.getBoundingClientRect(),o=e.body,a=n.clientTop||o.clientTop||0,l=n.clientLeft||o.clientLeft||0,c=n===t?t.scrollY:n.scrollTop,u=n===t?t.scrollX:n.scrollLeft;return{top:i.top+c-a,left:i.left+u-l}}return null},css:function(t,e){var n,i=s();if(1===arguments.length){if("string"!=typeof t){for(n=0;n<this.length;n+=1)for(var o in t)this[n].style[o]=t[o];return this}if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this},each:function(t){return t?(this.forEach((function(e,n){t.apply(e,[e,n])})),this):this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(t){var e,n,i=s(),o=r(),a=this[0];if(!a||void 0===t)return!1;if("string"==typeof t){if(a.matches)return a.matches(t);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(t);if(a.msMatchesSelector)return a.msMatchesSelector(t);for(e=g(t),n=0;n<e.length;n+=1)if(e[n]===a)return!0;return!1}if(t===o)return a===o;if(t===i)return a===i;if(t.nodeType||t instanceof p){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===a)return!0;return!1}return!1},index:function(){var t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;var e=this.length;if(t>e-1)return g([]);if(t<0){var n=e+t;return g(n<0?[]:[this[n]])}return g([this[t]])},append:function(){for(var t,e=r(),n=0;n<arguments.length;n+=1){t=n<0||arguments.length<=n?void 0:arguments[n];for(var i=0;i<this.length;i+=1)if("string"==typeof t){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[i].appendChild(o.firstChild)}else if(t instanceof p)for(var a=0;a<t.length;a+=1)this[i].appendChild(t[a]);else this[i].appendChild(t)}return this},prepend:function(t){var e,n,i=r();for(e=0;e<this.length;e+=1)if("string"==typeof t){var o=i.createElement("div");for(o.innerHTML=t,n=o.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(o.childNodes[n],this[e].childNodes[0])}else if(t instanceof p)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&g(this[0].nextElementSibling).is(t)?g([this[0].nextElementSibling]):g([]):this[0].nextElementSibling?g([this[0].nextElementSibling]):g([]):g([])},nextAll:function(t){var e=[],n=this[0];if(!n)return g([]);for(;n.nextElementSibling;){var i=n.nextElementSibling;t?g(i).is(t)&&e.push(i):e.push(i),n=i}return g(e)},prev:function(t){if(this.length>0){var e=this[0];return t?e.previousElementSibling&&g(e.previousElementSibling).is(t)?g([e.previousElementSibling]):g([]):e.previousElementSibling?g([e.previousElementSibling]):g([])}return g([])},prevAll:function(t){var e=[],n=this[0];if(!n)return g([]);for(;n.previousElementSibling;){var i=n.previousElementSibling;t?g(i).is(t)&&e.push(i):e.push(i),n=i}return g(e)},parent:function(t){for(var e=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(t?g(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return g(e)},parents:function(t){for(var e=[],n=0;n<this.length;n+=1)for(var i=this[n].parentNode;i;)t?g(i).is(t)&&e.push(i):e.push(i),i=i.parentNode;return g(e)},closest:function(t){var e=this;return void 0===t?g([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){for(var e=[],n=0;n<this.length;n+=1){try{var i=this[n].querySelectorAll(t)}catch(e){console.log(t)}for(var o=0;o<i.length;o+=1)e.push(i[o])}return g(e)},children:function(t){for(var e=[],n=0;n<this.length;n+=1)for(var i=this[n].children,o=0;o<i.length;o+=1)t&&!g(i[o]).is(t)||e.push(i[o]);return g(e)},filter:function(t){return g(m(this,t))},remove:function(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}};function w(t,e){return void 0===e&&(e=0),setTimeout(t,e)}function x(){return Date.now()}function T(t,e){void 0===e&&(e="x");var n,i,o,r=s(),a=function(t){var e,n=s();return n.getComputedStyle&&(e=n.getComputedStyle(t,null)),!e&&t.currentStyle&&(e=t.currentStyle),e||(e=t.style),e}(t);return r.WebKitCSSMatrix?((i=a.transform||a.webkitTransform).split(",").length>6&&(i=i.split(", ").map((function(t){return t.replace(",",".")})).join(", ")),o=new r.WebKitCSSMatrix("none"===i?"":i)):n=(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===e&&(i=r.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===e&&(i=r.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),i||0}function C(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function S(){for(var t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"],n=1;n<arguments.length;n+=1){var i=n<0||arguments.length<=n?void 0:arguments[n];if(null!=i)for(var o=Object.keys(Object(i)).filter((function(t){return e.indexOf(t)<0})),r=0,a=o.length;r<a;r+=1){var s=o[r],l=Object.getOwnPropertyDescriptor(i,s);void 0!==l&&l.enumerable&&(C(t[s])&&C(i[s])?i[s].__swiper__?t[s]=i[s]:S(t[s],i[s]):!C(t[s])&&C(i[s])?(t[s]={},i[s].__swiper__?t[s]=i[s]:S(t[s],i[s])):t[s]=i[s])}}return t}function E(t,e){Object.keys(e).forEach((function(n){C(e[n])&&Object.keys(e[n]).forEach((function(i){"function"==typeof e[n][i]&&(e[n][i]=e[n][i].bind(t))})),t[n]=e[n]}))}function D(t){return void 0===t&&(t=""),"."+t.trim().replace(/([\.:\/])/g,"\\$1").replace(/ /g,".")}function k(){return v||(v=function(){var t=s(),e=r();return{touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!t.PointerEvent&&"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>=0,observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,n)}catch(t){}return e}(),gestures:"ongesturestart"in t}}()),v}function A(t){return void 0===t&&(t={}),y||(y=function(t){var e=(void 0===t?{}:t).userAgent,n=k(),i=s(),o=i.navigator.platform,r=e||i.navigator.userAgent,a={ios:!1,android:!1},l=i.screen.width,c=i.screen.height,u=r.match(/(Android);?[\s\/]+([\d.]+)?/),d=r.match(/(iPad).*OS\s([\d_]+)/),h=r.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===o,m="MacIntel"===o;return!d&&m&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(l+"x"+c)>=0&&((d=r.match(/(Version)\/([\d.]+)/))||(d=[0,1,"13_0_0"]),m=!1),u&&!f&&(a.os="android",a.android=!0),(d||p||h)&&(a.os="ios",a.ios=!0),a}(t)),y}function M(){return _||(_=function(){var t,e=s();return{isEdge:!!e.navigator.userAgent.match(/Edge/g),isSafari:(t=e.navigator.userAgent.toLowerCase(),t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),_}Object.keys(b).forEach((function(t){Object.defineProperty(g.fn,t,{value:b[t],writable:!0})}));var L={name:"resize",create:function(){var t=this;S(t,{resize:{observer:null,createObserver:function(){t&&!t.destroyed&&t.initialized&&(t.resize.observer=new ResizeObserver((function(e){var n=t.width,i=t.height,o=n,r=i;e.forEach((function(e){var n=e.contentBoxSize,i=e.contentRect,a=e.target;a&&a!==t.el||(o=i?i.width:(n[0]||n).inlineSize,r=i?i.height:(n[0]||n).blockSize)})),o===n&&r===i||t.resize.resizeHandler()})),t.resize.observer.observe(t.el))},removeObserver:function(){t.resize.observer&&t.resize.observer.unobserve&&t.el&&(t.resize.observer.unobserve(t.el),t.resize.observer=null)},resizeHandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(t){var e=s();t.params.resizeObserver&&void 0!==s().ResizeObserver?t.resize.createObserver():(e.addEventListener("resize",t.resize.resizeHandler),e.addEventListener("orientationchange",t.resize.orientationChangeHandler))},destroy:function(t){var e=s();t.resize.removeObserver(),e.removeEventListener("resize",t.resize.resizeHandler),e.removeEventListener("orientationchange",t.resize.orientationChangeHandler)}}},P={attach:function(t,e){void 0===e&&(e={});var n=s(),i=this,o=new(n.MutationObserver||n.WebkitMutationObserver)((function(t){if(1!==t.length){var e=function(){i.emit("observerUpdate",t[0])};n.requestAnimationFrame?n.requestAnimationFrame(e):n.setTimeout(e,0)}else i.emit("observerUpdate",t[0])}));o.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),i.observer.observers.push(o)},init:function(){var t=this;if(t.support.observer&&t.params.observer){if(t.params.observeParents)for(var e=t.$el.parents(),n=0;n<e.length;n+=1)t.observer.attach(e[n]);t.observer.attach(t.$el[0],{childList:t.params.observeSlideChildren}),t.observer.attach(t.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(t){t.disconnect()})),this.observer.observers=[]}},O={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){E(this,{observer:e({},P,{observers:[]})})},on:{init:function(t){t.observer.init()},destroy:function(t){t.observer.destroy()}}};function I(t){var e=this,n=r(),i=s(),o=e.touchEventsData,a=e.params,l=e.touches;if(!e.animating||!a.preventInteractionOnTransition){var c=t;c.originalEvent&&(c=c.originalEvent);var u=g(c.target);if(("wrapper"!==a.touchEventsTarget||u.closest(e.wrapperEl).length)&&(o.isTouchEvent="touchstart"===c.type,(o.isTouchEvent||!("which"in c)||3!==c.which)&&!(!o.isTouchEvent&&"button"in c&&c.button>0||o.isTouched&&o.isMoved)))if(!!a.noSwipingClass&&""!==a.noSwipingClass&&c.target&&c.target.shadowRoot&&t.path&&t.path[0]&&(u=g(t.path[0])),a.noSwiping&&u.closest(a.noSwipingSelector?a.noSwipingSelector:"."+a.noSwipingClass)[0])e.allowClick=!0;else if(!a.swipeHandler||u.closest(a.swipeHandler)[0]){l.currentX="touchstart"===c.type?c.targetTouches[0].pageX:c.pageX,l.currentY="touchstart"===c.type?c.targetTouches[0].pageY:c.pageY;var d=l.currentX,h=l.currentY,p=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,f=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(p&&(d<=f||d>=i.innerWidth-f)){if("prevent"!==p)return;t.preventDefault()}if(S(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=d,l.startY=h,o.touchStartTime=x(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,a.threshold>0&&(o.allowThresholdMove=!1),"touchstart"!==c.type){var m=!0;u.is(o.formElements)&&(m=!1),n.activeElement&&g(n.activeElement).is(o.formElements)&&n.activeElement!==u[0]&&n.activeElement.blur();var v=m&&e.allowTouchMove&&a.touchStartPreventDefault;!a.touchStartForcePreventDefault&&!v||u[0].isContentEditable||c.preventDefault()}e.emit("touchStart",c)}}}function N(t){var e=r(),n=this,i=n.touchEventsData,o=n.params,a=n.touches,s=n.rtlTranslate,l=t;if(l.originalEvent&&(l=l.originalEvent),i.isTouched){if(!i.isTouchEvent||"touchmove"===l.type){var c="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),u="touchmove"===l.type?c.pageX:l.pageX,d="touchmove"===l.type?c.pageY:l.pageY;if(l.preventedByNestedSwiper)return a.startX=u,void(a.startY=d);if(!n.allowTouchMove)return n.allowClick=!1,void(i.isTouched&&(S(a,{startX:u,startY:d,currentX:u,currentY:d}),i.touchStartTime=x()));if(i.isTouchEvent&&o.touchReleaseOnEdges&&!o.loop)if(n.isVertical()){if(d<a.startY&&n.translate<=n.maxTranslate()||d>a.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(u<a.startX&&n.translate<=n.maxTranslate()||u>a.startX&&n.translate>=n.minTranslate())return;if(i.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&g(l.target).is(i.formElements))return i.isMoved=!0,void(n.allowClick=!1);if(i.allowTouchCallbacks&&n.emit("touchMove",l),!(l.targetTouches&&l.targetTouches.length>1)){a.currentX=u,a.currentY=d;var h,p=a.currentX-a.startX,f=a.currentY-a.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(p,2)+Math.pow(f,2))<n.params.threshold))if(void 0===i.isScrolling&&(n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?i.isScrolling=!1:p*p+f*f>=25&&(h=180*Math.atan2(Math.abs(f),Math.abs(p))/Math.PI,i.isScrolling=n.isHorizontal()?h>o.touchAngle:90-h>o.touchAngle)),i.isScrolling&&n.emit("touchMoveOpposite",l),void 0===i.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){n.allowClick=!1,!o.cssMode&&l.cancelable&&l.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&l.stopPropagation(),i.isMoved||(o.loop&&n.loopFix(),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!o.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",l)),n.emit("sliderMove",l),i.isMoved=!0;var m=n.isHorizontal()?p:f;a.diff=m,m*=o.touchRatio,s&&(m=-m),n.swipeDirection=m>0?"prev":"next",i.currentTranslate=m+i.startTranslate;var v=!0,y=o.resistanceRatio;if(o.touchReleaseOnEdges&&(y=0),m>0&&i.currentTranslate>n.minTranslate()?(v=!1,o.resistance&&(i.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+i.startTranslate+m,y))):m<0&&i.currentTranslate<n.maxTranslate()&&(v=!1,o.resistance&&(i.currentTranslate=n.maxTranslate()+1-Math.pow(n.maxTranslate()-i.startTranslate-m,y))),v&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),o.threshold>0){if(!(Math.abs(m)>o.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,i.currentTranslate=i.startTranslate,void(a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}o.followFinger&&!o.cssMode&&((o.freeMode||o.watchSlidesProgress||o.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),o.freeMode&&(0===i.velocities.length&&i.velocities.push({position:a[n.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:a[n.isHorizontal()?"currentX":"currentY"],time:x()})),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}}}}else i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",l)}function z(t){var e=this,n=e.touchEventsData,i=e.params,o=e.touches,r=e.rtlTranslate,a=e.$wrapperEl,s=e.slidesGrid,l=e.snapGrid,c=t;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&i.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);i.grabCursor&&n.isMoved&&n.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);var u,d=x(),h=d-n.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(c),e.emit("tap click",c),h<300&&d-n.lastClickTime<300&&e.emit("doubleTap doubleClick",c)),n.lastClickTime=x(),w((function(){e.destroyed||(e.allowClick=!0)})),!n.isTouched||!n.isMoved||!e.swipeDirection||0===o.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=i.followFinger?r?e.translate:-e.translate:-n.currentTranslate,!i.cssMode)if(i.freeMode){if(u<-e.minTranslate())return void e.slideTo(e.activeIndex);if(u>-e.maxTranslate())return void(e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1));if(i.freeModeMomentum){if(n.velocities.length>1){var p=n.velocities.pop(),f=n.velocities.pop(),m=p.position-f.position,g=p.time-f.time;e.velocity=m/g,e.velocity/=2,Math.abs(e.velocity)<i.freeModeMinimumVelocity&&(e.velocity=0),(g>150||x()-p.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=i.freeModeMomentumVelocityRatio,n.velocities.length=0;var v=1e3*i.freeModeMomentumRatio,y=e.velocity*v,_=e.translate+y;r&&(_=-_);var b,T,C=!1,S=20*Math.abs(e.velocity)*i.freeModeMomentumBounceRatio;if(_<e.maxTranslate())i.freeModeMomentumBounce?(_+e.maxTranslate()<-S&&(_=e.maxTranslate()-S),b=e.maxTranslate(),C=!0,n.allowMomentumBounce=!0):_=e.maxTranslate(),i.loop&&i.centeredSlides&&(T=!0);else if(_>e.minTranslate())i.freeModeMomentumBounce?(_-e.minTranslate()>S&&(_=e.minTranslate()+S),b=e.minTranslate(),C=!0,n.allowMomentumBounce=!0):_=e.minTranslate(),i.loop&&i.centeredSlides&&(T=!0);else if(i.freeModeSticky){for(var E,D=0;D<l.length;D+=1)if(l[D]>-_){E=D;break}_=-(_=Math.abs(l[E]-_)<Math.abs(l[E-1]-_)||"next"===e.swipeDirection?l[E]:l[E-1])}if(T&&e.once("transitionEnd",(function(){e.loopFix()})),0!==e.velocity){if(v=r?Math.abs((-_-e.translate)/e.velocity):Math.abs((_-e.translate)/e.velocity),i.freeModeSticky){var k=Math.abs((r?-_:_)-e.translate),A=e.slidesSizesGrid[e.activeIndex];v=k<A?i.speed:k<2*A?1.5*i.speed:2.5*i.speed}}else if(i.freeModeSticky)return void e.slideToClosest();i.freeModeMomentumBounce&&C?(e.updateProgress(b),e.setTransition(v),e.setTranslate(_),e.transitionStart(!0,e.swipeDirection),e.animating=!0,a.transitionEnd((function(){e&&!e.destroyed&&n.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(i.speed),setTimeout((function(){e.setTranslate(b),a.transitionEnd((function(){e&&!e.destroyed&&e.transitionEnd()}))}),0))}))):e.velocity?(e.updateProgress(_),e.setTransition(v),e.setTranslate(_),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,a.transitionEnd((function(){e&&!e.destroyed&&e.transitionEnd()})))):(e.emit("_freeModeNoMomentumRelease"),e.updateProgress(_)),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(i.freeModeSticky)return void e.slideToClosest();i.freeMode&&e.emit("_freeModeNoMomentumRelease")}(!i.freeModeMomentum||h>=i.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}else{for(var M=0,L=e.slidesSizesGrid[0],P=0;P<s.length;P+=P<i.slidesPerGroupSkip?1:i.slidesPerGroup){var O=P<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;void 0!==s[P+O]?u>=s[P]&&u<s[P+O]&&(M=P,L=s[P+O]-s[P]):u>=s[P]&&(M=P,L=s[s.length-1]-s[s.length-2])}var I=(u-s[M])/L,N=M<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(h>i.longSwipesMs){if(!i.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(I>=i.longSwipesRatio?e.slideTo(M+N):e.slideTo(M)),"prev"===e.swipeDirection&&(I>1-i.longSwipesRatio?e.slideTo(M+N):e.slideTo(M))}else{if(!i.shortSwipes)return void e.slideTo(e.activeIndex);!e.navigation||c.target!==e.navigation.nextEl&&c.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(M+N),"prev"===e.swipeDirection&&e.slideTo(M)):c.target===e.navigation.nextEl?e.slideTo(M+N):e.slideTo(M)}}}function j(){var t=this,e=t.params,n=t.el;if(!n||0!==n.offsetWidth){e.breakpoints&&t.setBreakpoint();var i=t.allowSlideNext,o=t.allowSlidePrev,r=t.snapGrid;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=o,t.allowSlideNext=i,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}}function B(t){var e=this;e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function R(){var t=this,e=t.wrapperEl,n=t.rtlTranslate;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=n?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:t.translate=-e.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();var i=t.maxTranslate()-t.minTranslate();(0===i?0:(t.translate-t.minTranslate())/i)!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}var H=!1;function $(){}var F={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!1,nested:!1,width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1},W={modular:{useParams:function(t){var e=this;e.modules&&Object.keys(e.modules).forEach((function(n){var i=e.modules[n];i.params&&S(t,i.params)}))},useModules:function(t){void 0===t&&(t={});var e=this;e.modules&&Object.keys(e.modules).forEach((function(n){var i=e.modules[n],o=t[n]||{};i.on&&e.on&&Object.keys(i.on).forEach((function(t){e.on(t,i.on[t])})),i.create&&i.create.bind(e)(o)}))}},eventsEmitter:{on:function(t,e,n){var i=this;if("function"!=typeof e)return i;var o=n?"unshift":"push";return t.split(" ").forEach((function(t){i.eventsListeners[t]||(i.eventsListeners[t]=[]),i.eventsListeners[t][o](e)})),i},once:function(t,e,n){var i=this;if("function"!=typeof e)return i;function o(){i.off(t,o),o.__emitterProxy&&delete o.__emitterProxy;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];e.apply(i,r)}return o.__emitterProxy=e,i.on(t,o,n)},onAny:function(t,e){var n=this;if("function"!=typeof t)return n;var i=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[i](t),n},offAny:function(t){var e=this;if(!e.eventsAnyListeners)return e;var n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off:function(t,e){var n=this;return n.eventsListeners?(t.split(" ").forEach((function(t){void 0===e?n.eventsListeners[t]=[]:n.eventsListeners[t]&&n.eventsListeners[t].forEach((function(i,o){(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&n.eventsListeners[t].splice(o,1)}))})),n):n},emit:function(){var t,e,n,i=this;if(!i.eventsListeners)return i;for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];"string"==typeof r[0]||Array.isArray(r[0])?(t=r[0],e=r.slice(1,r.length),n=i):(t=r[0].events,e=r[0].data,n=r[0].context||i),e.unshift(n);var s=Array.isArray(t)?t:t.split(" ");return s.forEach((function(t){i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach((function(i){i.apply(n,[t].concat(e))})),i.eventsListeners&&i.eventsListeners[t]&&i.eventsListeners[t].forEach((function(t){t.apply(n,e)}))})),i}},update:{updateSize:function(){var t,e,n=this,i=n.$el;t=void 0!==n.params.width&&null!==n.params.width?n.params.width:i[0].clientWidth,e=void 0!==n.params.height&&null!==n.params.height?n.params.height:i[0].clientHeight,0===t&&n.isHorizontal()||0===e&&n.isVertical()||(t=t-parseInt(i.css("padding-left")||0,10)-parseInt(i.css("padding-right")||0,10),e=e-parseInt(i.css("padding-top")||0,10)-parseInt(i.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(e)&&(e=0),S(n,{width:t,height:e,size:n.isHorizontal()?t:e}))},updateSlides:function(){var t=this,e=function(e){return t.isHorizontal()?e:{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"}[e]},n=function(t,n){return parseFloat(t.getPropertyValue(e(n))||0)},i=t.params,o=t.$wrapperEl,r=t.size,a=t.rtlTranslate,s=t.wrongRTL,l=t.virtual&&i.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,u=o.children("."+t.params.slideClass),d=l?t.virtual.slides.length:u.length,h=[],p=[],f=[],m=i.slidesOffsetBefore;"function"==typeof m&&(m=i.slidesOffsetBefore.call(t));var g=i.slidesOffsetAfter;"function"==typeof g&&(g=i.slidesOffsetAfter.call(t));var v=t.snapGrid.length,y=t.slidesGrid.length,_=i.spaceBetween,b=-m,w=0,x=0;if(void 0!==r){var T,C;"string"==typeof _&&_.indexOf("%")>=0&&(_=parseFloat(_.replace("%",""))/100*r),t.virtualSize=-_,a?u.css({marginLeft:"",marginTop:""}):u.css({marginRight:"",marginBottom:""}),i.slidesPerColumn>1&&(T=Math.floor(d/i.slidesPerColumn)===d/t.params.slidesPerColumn?d:Math.ceil(d/i.slidesPerColumn)*i.slidesPerColumn,"auto"!==i.slidesPerView&&"row"===i.slidesPerColumnFill&&(T=Math.max(T,i.slidesPerView*i.slidesPerColumn)));for(var E,D,k,A=i.slidesPerColumn,M=T/A,L=Math.floor(d/i.slidesPerColumn),P=0;P<d;P+=1){C=0;var O=u.eq(P);if(i.slidesPerColumn>1){var I=void 0,N=void 0,z=void 0;if("row"===i.slidesPerColumnFill&&i.slidesPerGroup>1){var j=Math.floor(P/(i.slidesPerGroup*i.slidesPerColumn)),B=P-i.slidesPerColumn*i.slidesPerGroup*j,R=0===j?i.slidesPerGroup:Math.min(Math.ceil((d-j*A*i.slidesPerGroup)/A),i.slidesPerGroup);I=(N=B-(z=Math.floor(B/R))*R+j*i.slidesPerGroup)+z*T/A,O.css({"-webkit-box-ordinal-group":I,"-moz-box-ordinal-group":I,"-ms-flex-order":I,"-webkit-order":I,order:I})}else"column"===i.slidesPerColumnFill?(z=P-(N=Math.floor(P/A))*A,(N>L||N===L&&z===A-1)&&(z+=1)>=A&&(z=0,N+=1)):N=P-(z=Math.floor(P/M))*M;O.css(e("margin-top"),0!==z&&i.spaceBetween&&i.spaceBetween+"px")}if("none"!==O.css("display")){if("auto"===i.slidesPerView){var H=getComputedStyle(O[0]),$=O[0].style.transform,F=O[0].style.webkitTransform;if($&&(O[0].style.transform="none"),F&&(O[0].style.webkitTransform="none"),i.roundLengths)C=t.isHorizontal()?O.outerWidth(!0):O.outerHeight(!0);else{var W=n(H,"width"),q=n(H,"padding-left"),V=n(H,"padding-right"),Y=n(H,"margin-left"),Z=n(H,"margin-right"),U=H.getPropertyValue("box-sizing");if(U&&"border-box"===U)C=W+Y+Z;else{var G=O[0],X=G.clientWidth;C=W+q+V+Y+Z+(G.offsetWidth-X)}}$&&(O[0].style.transform=$),F&&(O[0].style.webkitTransform=F),i.roundLengths&&(C=Math.floor(C))}else C=(r-(i.slidesPerView-1)*_)/i.slidesPerView,i.roundLengths&&(C=Math.floor(C)),u[P]&&(u[P].style[e("width")]=C+"px");u[P]&&(u[P].swiperSlideSize=C),f.push(C),i.centeredSlides?(b=b+C/2+w/2+_,0===w&&0!==P&&(b=b-r/2-_),0===P&&(b=b-r/2-_),Math.abs(b)<.001&&(b=0),i.roundLengths&&(b=Math.floor(b)),x%i.slidesPerGroup==0&&h.push(b),p.push(b)):(i.roundLengths&&(b=Math.floor(b)),(x-Math.min(t.params.slidesPerGroupSkip,x))%t.params.slidesPerGroup==0&&h.push(b),p.push(b),b=b+C+_),t.virtualSize+=C+_,w=C,x+=1}}if(t.virtualSize=Math.max(t.virtualSize,r)+g,a&&s&&("slide"===i.effect||"coverflow"===i.effect)&&o.css({width:t.virtualSize+i.spaceBetween+"px"}),i.setWrapperSize&&o.css(((D={})[e("width")]=t.virtualSize+i.spaceBetween+"px",D)),i.slidesPerColumn>1&&(t.virtualSize=(C+i.spaceBetween)*T,t.virtualSize=Math.ceil(t.virtualSize/i.slidesPerColumn)-i.spaceBetween,o.css(((k={})[e("width")]=t.virtualSize+i.spaceBetween+"px",k)),i.centeredSlides)){E=[];for(var K=0;K<h.length;K+=1){var J=h[K];i.roundLengths&&(J=Math.floor(J)),h[K]<t.virtualSize+h[0]&&E.push(J)}h=E}if(!i.centeredSlides){E=[];for(var Q=0;Q<h.length;Q+=1){var tt=h[Q];i.roundLengths&&(tt=Math.floor(tt)),h[Q]<=t.virtualSize-r&&E.push(tt)}h=E,Math.floor(t.virtualSize-r)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-r)}if(0===h.length&&(h=[0]),0!==i.spaceBetween){var et,nt=t.isHorizontal()&&a?"marginLeft":e("marginRight");u.filter((function(t,e){return!i.cssMode||e!==u.length-1})).css(((et={})[nt]=_+"px",et))}if(i.centeredSlides&&i.centeredSlidesBounds){var it=0;f.forEach((function(t){it+=t+(i.spaceBetween?i.spaceBetween:0)}));var ot=(it-=i.spaceBetween)-r;h=h.map((function(t){return t<0?-m:t>ot?ot+g:t}))}if(i.centerInsufficientSlides){var rt=0;if(f.forEach((function(t){rt+=t+(i.spaceBetween?i.spaceBetween:0)})),(rt-=i.spaceBetween)<r){var at=(r-rt)/2;h.forEach((function(t,e){h[e]=t-at})),p.forEach((function(t,e){p[e]=t+at}))}}S(t,{slides:u,snapGrid:h,slidesGrid:p,slidesSizesGrid:f}),d!==c&&t.emit("slidesLengthChange"),h.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==y&&t.emit("slidesGridLengthChange"),(i.watchSlidesProgress||i.watchSlidesVisibility)&&t.updateSlidesOffset()}},updateAutoHeight:function(t){var e,n=this,i=[],o=0;if("number"==typeof t?n.setTransition(t):!0===t&&n.setTransition(n.params.speed),"auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)if(n.params.centeredSlides)n.visibleSlides.each((function(t){i.push(t)}));else for(e=0;e<Math.ceil(n.params.slidesPerView);e+=1){var r=n.activeIndex+e;if(r>n.slides.length)break;i.push(n.slides.eq(r)[0])}else i.push(n.slides.eq(n.activeIndex)[0]);for(e=0;e<i.length;e+=1)if(void 0!==i[e]){var a=i[e].offsetHeight;o=a>o?a:o}o&&n.$wrapperEl.css("height",o+"px")},updateSlidesOffset:function(){for(var t=this.slides,e=0;e<t.length;e+=1)t[e].swiperSlideOffset=this.isHorizontal()?t[e].offsetLeft:t[e].offsetTop},updateSlidesProgress:function(t){void 0===t&&(t=this&&this.translate||0);var e=this,n=e.params,i=e.slides,o=e.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&e.updateSlidesOffset();var r=-t;o&&(r=t),i.removeClass(n.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(var a=0;a<i.length;a+=1){var s=i[a],l=(r+(n.centeredSlides?e.minTranslate():0)-s.swiperSlideOffset)/(s.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight){var c=-(r-s.swiperSlideOffset),u=c+e.slidesSizesGrid[a];(c>=0&&c<e.size-1||u>1&&u<=e.size||c<=0&&u>=e.size)&&(e.visibleSlides.push(s),e.visibleSlidesIndexes.push(a),i.eq(a).addClass(n.slideVisibleClass))}s.progress=o?-l:l}e.visibleSlides=g(e.visibleSlides)}},updateProgress:function(t){var e=this;if(void 0===t){var n=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*n||0}var i=e.params,o=e.maxTranslate()-e.minTranslate(),r=e.progress,a=e.isBeginning,s=e.isEnd,l=a,c=s;0===o?(r=0,a=!0,s=!0):(a=(r=(t-e.minTranslate())/o)<=0,s=r>=1),S(e,{progress:r,isBeginning:a,isEnd:s}),(i.watchSlidesProgress||i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),a&&!l&&e.emit("reachBeginning toEdge"),s&&!c&&e.emit("reachEnd toEdge"),(l&&!a||c&&!s)&&e.emit("fromEdge"),e.emit("progress",r)},updateSlidesClasses:function(){var t,e=this,n=e.slides,i=e.params,o=e.$wrapperEl,r=e.activeIndex,a=e.realIndex,s=e.virtual&&i.virtual.enabled;n.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),(t=s?e.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+r+'"]'):n.eq(r)).addClass(i.slideActiveClass),i.loop&&(t.hasClass(i.slideDuplicateClass)?o.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass):o.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass));var l=t.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=n.eq(0)).addClass(i.slideNextClass);var c=t.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===c.length&&(c=n.eq(-1)).addClass(i.slidePrevClass),i.loop&&(l.hasClass(i.slideDuplicateClass)?o.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):o.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),c.hasClass(i.slideDuplicateClass)?o.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):o.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(t){var e,n=this,i=n.rtlTranslate?n.translate:-n.translate,o=n.slidesGrid,r=n.snapGrid,a=n.params,s=n.activeIndex,l=n.realIndex,c=n.snapIndex,u=t;if(void 0===u){for(var d=0;d<o.length;d+=1)void 0!==o[d+1]?i>=o[d]&&i<o[d+1]-(o[d+1]-o[d])/2?u=d:i>=o[d]&&i<o[d+1]&&(u=d+1):i>=o[d]&&(u=d);a.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(r.indexOf(i)>=0)e=r.indexOf(i);else{var h=Math.min(a.slidesPerGroupSkip,u);e=h+Math.floor((u-h)/a.slidesPerGroup)}if(e>=r.length&&(e=r.length-1),u!==s){var p=parseInt(n.slides.eq(u).attr("data-swiper-slide-index")||u,10);S(n,{snapIndex:e,realIndex:p,previousIndex:s,activeIndex:u}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==p&&n.emit("realIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&n.emit("slideChange")}else e!==c&&(n.snapIndex=e,n.emit("snapIndexChange"))},updateClickedSlide:function(t){var e,n=this,i=n.params,o=g(t.target).closest("."+i.slideClass)[0],r=!1;if(o)for(var a=0;a<n.slides.length;a+=1)if(n.slides[a]===o){r=!0,e=a;break}if(!o||!r)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=o,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(g(o).attr("data-swiper-slide-index"),10):n.clickedIndex=e,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}},translate:{getTranslate:function(t){void 0===t&&(t=this.isHorizontal()?"x":"y");var e=this,n=e.params,i=e.rtlTranslate,o=e.translate,r=e.$wrapperEl;if(n.virtualTranslate)return i?-o:o;if(n.cssMode)return o;var a=T(r[0],t);return i&&(a=-a),a||0},setTranslate:function(t,e){var n=this,i=n.rtlTranslate,o=n.params,r=n.$wrapperEl,a=n.wrapperEl,s=n.progress,l=0,c=0;n.isHorizontal()?l=i?-t:t:c=t,o.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),o.cssMode?a[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:o.virtualTranslate||r.transform("translate3d("+l+"px, "+c+"px, 0px)"),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c;var u=n.maxTranslate()-n.minTranslate();(0===u?0:(t-n.minTranslate())/u)!==s&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t,e,n,i,o){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0),void 0===i&&(i=!0);var r=this,a=r.params,s=r.wrapperEl;if(r.animating&&a.preventInteractionOnTransition)return!1;var l,c=r.minTranslate(),u=r.maxTranslate();if(l=i&&t>c?c:i&&t<u?u:t,r.updateProgress(l),a.cssMode){var d,h=r.isHorizontal();return 0===e?s[h?"scrollLeft":"scrollTop"]=-l:s.scrollTo?s.scrollTo(((d={})[h?"left":"top"]=-l,d.behavior="smooth",d)):s[h?"scrollLeft":"scrollTop"]=-l,!0}return 0===e?(r.setTransition(0),r.setTranslate(l),n&&(r.emit("beforeTransitionStart",e,o),r.emit("transitionEnd"))):(r.setTransition(e),r.setTranslate(l),n&&(r.emit("beforeTransitionStart",e,o),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(t){r&&!r.destroyed&&t.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,n&&r.emit("transitionEnd"))}),r.$wrapperEl[0].addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(t,e){var n=this;n.params.cssMode||n.$wrapperEl.transition(t),n.emit("setTransition",t,e)},transitionStart:function(t,e){void 0===t&&(t=!0);var n=this,i=n.activeIndex,o=n.params,r=n.previousIndex;if(!o.cssMode){o.autoHeight&&n.updateAutoHeight();var a=e;if(a||(a=i>r?"next":i<r?"prev":"reset"),n.emit("transitionStart"),t&&i!==r){if("reset"===a)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===a?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}},transitionEnd:function(t,e){void 0===t&&(t=!0);var n=this,i=n.activeIndex,o=n.previousIndex,r=n.params;if(n.animating=!1,!r.cssMode){n.setTransition(0);var a=e;if(a||(a=i>o?"next":i<o?"prev":"reset"),n.emit("transitionEnd"),t&&i!==o){if("reset"===a)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===a?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}}},slide:{slideTo:function(t,e,n,i){if(void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0),"number"!=typeof t&&"string"!=typeof t)throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. ["+typeof t+"] given.");if("string"==typeof t){var o=parseInt(t,10);if(!isFinite(o))throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. ["+t+"] given.");t=o}var r=this,a=t;a<0&&(a=0);var s=r.params,l=r.snapGrid,c=r.slidesGrid,u=r.previousIndex,d=r.activeIndex,h=r.rtlTranslate,p=r.wrapperEl;if(r.animating&&s.preventInteractionOnTransition)return!1;var f=Math.min(r.params.slidesPerGroupSkip,a),m=f+Math.floor((a-f)/r.params.slidesPerGroup);m>=l.length&&(m=l.length-1),(d||s.initialSlide||0)===(u||0)&&n&&r.emit("beforeSlideChangeStart");var g,v=-l[m];if(r.updateProgress(v),s.normalizeSlideIndex)for(var y=0;y<c.length;y+=1){var _=-Math.floor(100*v),b=Math.floor(100*c[y]),w=Math.floor(100*c[y+1]);void 0!==c[y+1]?_>=b&&_<w-(w-b)/2?a=y:_>=b&&_<w&&(a=y+1):_>=b&&(a=y)}if(r.initialized&&a!==d){if(!r.allowSlideNext&&v<r.translate&&v<r.minTranslate())return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(d||0)!==a)return!1}if(g=a>d?"next":a<d?"prev":"reset",h&&-v===r.translate||!h&&v===r.translate)return r.updateActiveIndex(a),s.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==s.effect&&r.setTranslate(v),"reset"!==g&&(r.transitionStart(n,g),r.transitionEnd(n,g)),!1;if(s.cssMode){var x,T=r.isHorizontal(),C=-v;return h&&(C=p.scrollWidth-p.offsetWidth-C),0===e?p[T?"scrollLeft":"scrollTop"]=C:p.scrollTo?p.scrollTo(((x={})[T?"left":"top"]=C,x.behavior="smooth",x)):p[T?"scrollLeft":"scrollTop"]=C,!0}return 0===e?(r.setTransition(0),r.setTranslate(v),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,i),r.transitionStart(n,g),r.transitionEnd(n,g)):(r.setTransition(e),r.setTranslate(v),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,i),r.transitionStart(n,g),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(t){r&&!r.destroyed&&t.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,g))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0);var o=this,r=t;return o.params.loop&&(r+=o.loopedSlides),o.slideTo(r,e,n,i)},slideNext:function(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var i=this,o=i.params,r=i.animating,a=i.activeIndex<o.slidesPerGroupSkip?1:o.slidesPerGroup;if(o.loop){if(r&&o.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}return i.slideTo(i.activeIndex+a,t,e,n)},slidePrev:function(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var i=this,o=i.params,r=i.animating,a=i.snapGrid,s=i.slidesGrid,l=i.rtlTranslate;if(o.loop){if(r&&o.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}function c(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}var u=c(l?i.translate:-i.translate),d=a.map((function(t){return c(t)}));a[d.indexOf(u)];var h,p=a[d.indexOf(u)-1];return void 0===p&&o.cssMode&&a.forEach((function(t){!p&&u>=t&&(p=t)})),void 0!==p&&(h=s.indexOf(p))<0&&(h=i.activeIndex-1),i.slideTo(h,t,e,n)},slideReset:function(t,e,n){return void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),this.slideTo(this.activeIndex,t,e,n)},slideToClosest:function(t,e,n,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),void 0===i&&(i=.5);var o=this,r=o.activeIndex,a=Math.min(o.params.slidesPerGroupSkip,r),s=a+Math.floor((r-a)/o.params.slidesPerGroup),l=o.rtlTranslate?o.translate:-o.translate;if(l>=o.snapGrid[s]){var c=o.snapGrid[s];l-c>(o.snapGrid[s+1]-c)*i&&(r+=o.params.slidesPerGroup)}else{var u=o.snapGrid[s-1];l-u<=(o.snapGrid[s]-u)*i&&(r-=o.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,o.slidesGrid.length-1),o.slideTo(r,t,e,n)},slideToClickedSlide:function(){var t,e=this,n=e.params,i=e.$wrapperEl,o="auto"===n.slidesPerView?e.slidesPerViewDynamic():n.slidesPerView,r=e.clickedIndex;if(n.loop){if(e.animating)return;t=parseInt(g(e.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?r<e.loopedSlides-o/2||r>e.slides.length-e.loopedSlides+o/2?(e.loopFix(),r=i.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),w((function(){e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-o?(e.loopFix(),r=i.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),w((function(){e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}},loop:{loopCreate:function(){var t=this,e=r(),n=t.params,i=t.$wrapperEl;i.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var o=i.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var a=n.slidesPerGroup-o.length%n.slidesPerGroup;if(a!==n.slidesPerGroup){for(var s=0;s<a;s+=1){var l=g(e.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass);i.append(l)}o=i.children("."+n.slideClass)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=o.length),t.loopedSlides=Math.ceil(parseFloat(n.loopedSlides||n.slidesPerView,10)),t.loopedSlides+=n.loopAdditionalSlides,t.loopedSlides>o.length&&(t.loopedSlides=o.length);var c=[],u=[];o.each((function(e,n){var i=g(e);n<t.loopedSlides&&u.push(e),n<o.length&&n>=o.length-t.loopedSlides&&c.push(e),i.attr("data-swiper-slide-index",n)}));for(var d=0;d<u.length;d+=1)i.append(g(u[d].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var h=c.length-1;h>=0;h-=1)i.prepend(g(c[h].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var t=this;t.emit("beforeLoopFix");var e,n=t.activeIndex,i=t.slides,o=t.loopedSlides,r=t.allowSlidePrev,a=t.allowSlideNext,s=t.snapGrid,l=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var c=-s[n]-t.getTranslate();n<o?(e=i.length-3*o+n,e+=o,t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((l?-t.translate:t.translate)-c)):n>=i.length-o&&(e=-i.length+n+o,e+=o,t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((l?-t.translate:t.translate)-c)),t.allowSlidePrev=r,t.allowSlideNext=a,t.emit("loopFix")},loopDestroy:function(){var t=this,e=t.$wrapperEl,n=t.params,i=t.slides;e.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(t){var e=this;if(!(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)){var n=e.el;n.style.cursor="move",n.style.cursor=t?"-webkit-grabbing":"-webkit-grab",n.style.cursor=t?"-moz-grabbin":"-moz-grab",n.style.cursor=t?"grabbing":"grab"}},unsetGrabCursor:function(){var t=this;t.support.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.el.style.cursor="")}},manipulation:{appendSlide:function(t){var e=this,n=e.$wrapperEl,i=e.params;if(i.loop&&e.loopDestroy(),"object"==typeof t&&"length"in t)for(var o=0;o<t.length;o+=1)t[o]&&n.append(t[o]);else n.append(t);i.loop&&e.loopCreate(),i.observer&&e.support.observer||e.update()},prependSlide:function(t){var e=this,n=e.params,i=e.$wrapperEl,o=e.activeIndex;n.loop&&e.loopDestroy();var r=o+1;if("object"==typeof t&&"length"in t){for(var a=0;a<t.length;a+=1)t[a]&&i.prepend(t[a]);r=o+t.length}else i.prepend(t);n.loop&&e.loopCreate(),n.observer&&e.support.observer||e.update(),e.slideTo(r,0,!1)},addSlide:function(t,e){var n=this,i=n.$wrapperEl,o=n.params,r=n.activeIndex;o.loop&&(r-=n.loopedSlides,n.loopDestroy(),n.slides=i.children("."+o.slideClass));var a=n.slides.length;if(t<=0)n.prependSlide(e);else if(t>=a)n.appendSlide(e);else{for(var s=r>t?r+1:r,l=[],c=a-1;c>=t;c-=1){var u=n.slides.eq(c);u.remove(),l.unshift(u)}if("object"==typeof e&&"length"in e){for(var d=0;d<e.length;d+=1)e[d]&&i.append(e[d]);s=r>t?r+e.length:r}else i.append(e);for(var h=0;h<l.length;h+=1)i.append(l[h]);o.loop&&n.loopCreate(),o.observer&&n.support.observer||n.update(),o.loop?n.slideTo(s+n.loopedSlides,0,!1):n.slideTo(s,0,!1)}},removeSlide:function(t){var e=this,n=e.params,i=e.$wrapperEl,o=e.activeIndex;n.loop&&(o-=e.loopedSlides,e.loopDestroy(),e.slides=i.children("."+n.slideClass));var r,a=o;if("object"==typeof t&&"length"in t){for(var s=0;s<t.length;s+=1)r=t[s],e.slides[r]&&e.slides.eq(r).remove(),r<a&&(a-=1);a=Math.max(a,0)}else r=t,e.slides[r]&&e.slides.eq(r).remove(),r<a&&(a-=1),a=Math.max(a,0);n.loop&&e.loopCreate(),n.observer&&e.support.observer||e.update(),n.loop?e.slideTo(a+e.loopedSlides,0,!1):e.slideTo(a,0,!1)},removeAllSlides:function(){for(var t=[],e=0;e<this.slides.length;e+=1)t.push(e);this.removeSlide(t)}},events:{attachEvents:function(){var t=this,e=r(),n=t.params,i=t.touchEvents,o=t.el,a=t.wrapperEl,s=t.device,l=t.support;t.onTouchStart=I.bind(t),t.onTouchMove=N.bind(t),t.onTouchEnd=z.bind(t),n.cssMode&&(t.onScroll=R.bind(t)),t.onClick=B.bind(t);var c=!!n.nested;if(!l.touch&&l.pointerEvents)o.addEventListener(i.start,t.onTouchStart,!1),e.addEventListener(i.move,t.onTouchMove,c),e.addEventListener(i.end,t.onTouchEnd,!1);else{if(l.touch){var u=!("touchstart"!==i.start||!l.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o.addEventListener(i.start,t.onTouchStart,u),o.addEventListener(i.move,t.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),o.addEventListener(i.end,t.onTouchEnd,u),i.cancel&&o.addEventListener(i.cancel,t.onTouchEnd,u),H||(e.addEventListener("touchstart",$),H=!0)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!l.touch&&s.ios)&&(o.addEventListener("mousedown",t.onTouchStart,!1),e.addEventListener("mousemove",t.onTouchMove,c),e.addEventListener("mouseup",t.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&o.addEventListener("click",t.onClick,!0),n.cssMode&&a.addEventListener("scroll",t.onScroll),n.updateOnWindowResize?t.on(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",j,!0):t.on("observerUpdate",j,!0)},detachEvents:function(){var t=this,e=r(),n=t.params,i=t.touchEvents,o=t.el,a=t.wrapperEl,s=t.device,l=t.support,c=!!n.nested;if(!l.touch&&l.pointerEvents)o.removeEventListener(i.start,t.onTouchStart,!1),e.removeEventListener(i.move,t.onTouchMove,c),e.removeEventListener(i.end,t.onTouchEnd,!1);else{if(l.touch){var u=!("onTouchStart"!==i.start||!l.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o.removeEventListener(i.start,t.onTouchStart,u),o.removeEventListener(i.move,t.onTouchMove,c),o.removeEventListener(i.end,t.onTouchEnd,u),i.cancel&&o.removeEventListener(i.cancel,t.onTouchEnd,u)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!l.touch&&s.ios)&&(o.removeEventListener("mousedown",t.onTouchStart,!1),e.removeEventListener("mousemove",t.onTouchMove,c),e.removeEventListener("mouseup",t.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&o.removeEventListener("click",t.onClick,!0),n.cssMode&&a.removeEventListener("scroll",t.onScroll),t.off(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",j)}},breakpoints:{setBreakpoint:function(){var t=this,e=t.activeIndex,n=t.initialized,i=t.loopedSlides,o=void 0===i?0:i,r=t.params,a=t.$el,s=r.breakpoints;if(s&&(!s||0!==Object.keys(s).length)){var l=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(l&&t.currentBreakpoint!==l){var c=l in s?s[l]:void 0;c&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(t){var e=c[t];void 0!==e&&(c[t]="slidesPerView"!==t||"AUTO"!==e&&"auto"!==e?"slidesPerView"===t?parseFloat(e):parseInt(e,10):"auto")}));var u=c||t.originalParams,d=r.slidesPerColumn>1,h=u.slidesPerColumn>1;d&&!h?(a.removeClass(r.containerModifierClass+"multirow "+r.containerModifierClass+"multirow-column"),t.emitContainerClasses()):!d&&h&&(a.addClass(r.containerModifierClass+"multirow"),"column"===u.slidesPerColumnFill&&a.addClass(r.containerModifierClass+"multirow-column"),t.emitContainerClasses());var p=u.direction&&u.direction!==r.direction,f=r.loop&&(u.slidesPerView!==r.slidesPerView||p);p&&n&&t.changeDirection(),S(t.params,u),S(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),t.currentBreakpoint=l,t.emit("_beforeBreakpoint",u),f&&n&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-o+t.loopedSlides,0,!1)),t.emit("breakpoint",u)}}},getBreakpoint:function(t,e,n){if(void 0===e&&(e="window"),t&&("container"!==e||n)){var i=!1,o=s(),r="window"===e?o.innerWidth:n.clientWidth,a="window"===e?o.innerHeight:n.clientHeight,l=Object.keys(t).map((function(t){if("string"==typeof t&&0===t.indexOf("@")){var e=parseFloat(t.substr(1));return{value:a*e,point:t}}return{value:t,point:t}}));l.sort((function(t,e){return parseInt(t.value,10)-parseInt(e.value,10)}));for(var c=0;c<l.length;c+=1){var u=l[c],d=u.point;u.value<=r&&(i=d)}return i||"max"}}},checkOverflow:{checkOverflow:function(){var t=this,e=t.params,n=t.isLocked,i=t.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(t.slides.length-1)+t.slides[0].offsetWidth*t.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&i?t.isLocked=i<=t.size:t.isLocked=1===t.snapGrid.length,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,n!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),n&&n!==t.isLocked&&(t.isEnd=!1,t.navigation&&t.navigation.update())}},classes:{addClasses:function(){var t,e,n,i=this,o=i.classNames,r=i.params,a=i.rtl,s=i.$el,l=i.device,c=i.support,u=(t=["initialized",r.direction,{"pointer-events":c.pointerEvents&&!c.touch},{"free-mode":r.freeMode},{autoheight:r.autoHeight},{rtl:a},{multirow:r.slidesPerColumn>1},{"multirow-column":r.slidesPerColumn>1&&"column"===r.slidesPerColumnFill},{android:l.android},{ios:l.ios},{"css-mode":r.cssMode}],e=r.containerModifierClass,n=[],t.forEach((function(t){"object"==typeof t?Object.keys(t).forEach((function(i){t[i]&&n.push(e+i)})):"string"==typeof t&&n.push(e+t)})),n);o.push.apply(o,u),s.addClass([].concat(o).join(" ")),i.emitContainerClasses()},removeClasses:function(){var t=this,e=t.$el,n=t.classNames;e.removeClass(n.join(" ")),t.emitContainerClasses()}},images:{loadImage:function(t,e,n,i,o,r){var a,l=s();function c(){r&&r()}g(t).parent("picture")[0]||t.complete&&o?c():e?((a=new l.Image).onload=c,a.onerror=c,i&&(a.sizes=i),n&&(a.srcset=n),e&&(a.src=e)):c()},preloadImages:function(){var t=this;function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(var n=0;n<t.imagesToLoad.length;n+=1){var i=t.imagesToLoad[n];t.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,e)}}}},q={},V=function(){function e(){for(var t,n,i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];if(1===o.length&&o[0].constructor&&"Object"===Object.prototype.toString.call(o[0]).slice(8,-1)?n=o[0]:(t=o[0],n=o[1]),n||(n={}),n=S({},n),t&&!n.el&&(n.el=t),n.el&&g(n.el).length>1){var a=[];return g(n.el).each((function(t){var i=S({},n,{el:t});a.push(new e(i))})),a}var s=this;s.__swiper__=!0,s.support=k(),s.device=A({userAgent:n.userAgent}),s.browser=M(),s.eventsListeners={},s.eventsAnyListeners=[],void 0===s.modules&&(s.modules={}),Object.keys(s.modules).forEach((function(t){var e=s.modules[t];if(e.params){var i=Object.keys(e.params)[0],o=e.params[i];if("object"!=typeof o||null===o)return;if(!(i in n)||!("enabled"in o))return;!0===n[i]&&(n[i]={enabled:!0}),"object"!=typeof n[i]||"enabled"in n[i]||(n[i].enabled=!0),n[i]||(n[i]={enabled:!1})}}));var l,c,u=S({},F);return s.useParams(u),s.params=S({},u,q,n),s.originalParams=S({},s.params),s.passedParams=S({},n),s.params&&s.params.on&&Object.keys(s.params.on).forEach((function(t){s.on(t,s.params.on[t])})),s.params&&s.params.onAny&&s.onAny(s.params.onAny),s.$=g,S(s,{el:t,classNames:[],slides:g(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===s.params.direction},isVertical:function(){return"vertical"===s.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEvents:(l=["touchstart","touchmove","touchend","touchcancel"],c=["mousedown","mousemove","mouseup"],s.support.pointerEvents&&(c=["pointerdown","pointermove","pointerup"]),s.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},s.touchEventsDesktop={start:c[0],move:c[1],end:c[2]},s.support.touch||!s.params.simulateTouch?s.touchEventsTouch:s.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:x(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.useModules(),s.emit("_swiper"),s.params.init&&s.init(),s}var n,i,o=e.prototype;return o.setProgress=function(t,e){var n=this;t=Math.min(Math.max(t,0),1);var i=n.minTranslate(),o=(n.maxTranslate()-i)*t+i;n.translateTo(o,void 0===e?0:e),n.updateActiveIndex(),n.updateSlidesClasses()},o.emitContainerClasses=function(){var t=this;if(t.params._emitClasses&&t.el){var e=t.el.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-container")||0===e.indexOf(t.params.containerModifierClass)}));t.emit("_containerClasses",e.join(" "))}},o.getSlideClasses=function(t){var e=this;return t.className.split(" ").filter((function(t){return 0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass)})).join(" ")},o.emitSlidesClasses=function(){var t=this;if(t.params._emitClasses&&t.el){var e=[];t.slides.each((function(n){var i=t.getSlideClasses(n);e.push({slideEl:n,classNames:i}),t.emit("_slideClass",n,i)})),t.emit("_slideClasses",e)}},o.slidesPerViewDynamic=function(){var t=this,e=t.params,n=t.slides,i=t.slidesGrid,o=t.size,r=t.activeIndex,a=1;if(e.centeredSlides){for(var s,l=n[r].swiperSlideSize,c=r+1;c<n.length;c+=1)n[c]&&!s&&(a+=1,(l+=n[c].swiperSlideSize)>o&&(s=!0));for(var u=r-1;u>=0;u-=1)n[u]&&!s&&(a+=1,(l+=n[u].swiperSlideSize)>o&&(s=!0))}else for(var d=r+1;d<n.length;d+=1)i[d]-i[r]<o&&(a+=1);return a},o.update=function(){var t=this;if(t&&!t.destroyed){var e=t.snapGrid,n=t.params;n.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode?(i(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||i(),n.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}function i(){var e=t.rtlTranslate?-1*t.translate:t.translate,n=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}},o.changeDirection=function(t,e){void 0===e&&(e=!0);var n=this,i=n.params.direction;return t||(t="horizontal"===i?"vertical":"horizontal"),t===i||"horizontal"!==t&&"vertical"!==t||(n.$el.removeClass(""+n.params.containerModifierClass+i).addClass(""+n.params.containerModifierClass+t),n.emitContainerClasses(),n.params.direction=t,n.slides.each((function(e){"vertical"===t?e.style.width="":e.style.height=""})),n.emit("changeDirection"),e&&n.update()),n},o.mount=function(t){var e=this;if(e.mounted)return!0;var n,i=g(t||e.params.el);return!!(t=i[0])&&(t.swiper=e,t&&t.shadowRoot&&t.shadowRoot.querySelector?(n=g(t.shadowRoot.querySelector("."+e.params.wrapperClass))).children=function(t){return i.children(t)}:n=i.children("."+e.params.wrapperClass),S(e,{$el:i,el:t,$wrapperEl:n,wrapperEl:n[0],mounted:!0,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===n.css("display")}),!0)},o.init=function(t){var e=this;return e.initialized||!1===e.mount(t)||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"),e.emit("afterInit")),e},o.destroy=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);var n,i=this,o=i.params,r=i.$el,a=i.$wrapperEl,s=i.slides;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),o.loop&&i.loopDestroy(),e&&(i.removeClasses(),r.removeAttr("style"),a.removeAttr("style"),s&&s.length&&s.removeClass([o.slideVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((function(t){i.off(t)})),!1!==t&&(i.$el[0].swiper=null,n=i,Object.keys(n).forEach((function(t){try{n[t]=null}catch(t){}try{delete n[t]}catch(t){}}))),i.destroyed=!0),null},e.extendDefaults=function(t){S(q,t)},e.installModule=function(t){e.prototype.modules||(e.prototype.modules={});var n=t.name||Object.keys(e.prototype.modules).length+"_"+x();e.prototype.modules[n]=t},e.use=function(t){return Array.isArray(t)?(t.forEach((function(t){return e.installModule(t)})),e):(e.installModule(t),e)},n=e,i=[{key:"extendedDefaults",get:function(){return q}},{key:"defaults",get:function(){return F}}],null&&t(n.prototype,null),i&&t(n,i),e}();Object.keys(W).forEach((function(t){Object.keys(W[t]).forEach((function(e){V.prototype[e]=W[t][e]}))})),V.use([L,O]);var Y={update:function(t){var e=this,n=e.params,i=n.slidesPerView,o=n.slidesPerGroup,r=n.centeredSlides,a=e.params.virtual,s=a.addSlidesBefore,l=a.addSlidesAfter,c=e.virtual,u=c.from,d=c.to,h=c.slides,p=c.slidesGrid,f=c.renderSlide,m=c.offset;e.updateActiveIndex();var g,v,y,_=e.activeIndex||0;g=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",r?(v=Math.floor(i/2)+o+l,y=Math.floor(i/2)+o+s):(v=i+(o-1)+l,y=o+s);var b=Math.max((_||0)-y,0),w=Math.min((_||0)+v,h.length-1),x=(e.slidesGrid[b]||0)-(e.slidesGrid[0]||0);function T(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(S(e.virtual,{from:b,to:w,offset:x,slidesGrid:e.slidesGrid}),u===b&&d===w&&!t)return e.slidesGrid!==p&&x!==m&&e.slides.css(g,x+"px"),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:x,from:b,to:w,slides:function(){for(var t=[],e=b;e<=w;e+=1)t.push(h[e]);return t}()}),void(e.params.virtual.renderExternalUpdate&&T());var C=[],E=[];if(t)e.$wrapperEl.find("."+e.params.slideClass).remove();else for(var D=u;D<=d;D+=1)(D<b||D>w)&&e.$wrapperEl.find("."+e.params.slideClass+'[data-swiper-slide-index="'+D+'"]').remove();for(var k=0;k<h.length;k+=1)k>=b&&k<=w&&(void 0===d||t?E.push(k):(k>d&&E.push(k),k<u&&C.push(k)));E.forEach((function(t){e.$wrapperEl.append(f(h[t],t))})),C.sort((function(t,e){return e-t})).forEach((function(t){e.$wrapperEl.prepend(f(h[t],t))})),e.$wrapperEl.children(".swiper-slide").css(g,x+"px"),T()},renderSlide:function(t,e){var n=this,i=n.params.virtual;if(i.cache&&n.virtual.cache[e])return n.virtual.cache[e];var o=i.renderSlide?g(i.renderSlide.call(n,t,e)):g('<div class="'+n.params.slideClass+'" data-swiper-slide-index="'+e+'">'+t+"</div>");return o.attr("data-swiper-slide-index")||o.attr("data-swiper-slide-index",e),i.cache&&(n.virtual.cache[e]=o),o},appendSlide:function(t){var e=this;if("object"==typeof t&&"length"in t)for(var n=0;n<t.length;n+=1)t[n]&&e.virtual.slides.push(t[n]);else e.virtual.slides.push(t);e.virtual.update(!0)},prependSlide:function(t){var e=this,n=e.activeIndex,i=n+1,o=1;if(Array.isArray(t)){for(var r=0;r<t.length;r+=1)t[r]&&e.virtual.slides.unshift(t[r]);i=n+t.length,o=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){var a=e.virtual.cache,s={};Object.keys(a).forEach((function(t){var e=a[t],n=e.attr("data-swiper-slide-index");n&&e.attr("data-swiper-slide-index",parseInt(n,10)+1),s[parseInt(t,10)+o]=e})),e.virtual.cache=s}e.virtual.update(!0),e.slideTo(i,0)},removeSlide:function(t){var e=this;if(null!=t){var n=e.activeIndex;if(Array.isArray(t))for(var i=t.length-1;i>=0;i-=1)e.virtual.slides.splice(t[i],1),e.params.virtual.cache&&delete e.virtual.cache[t[i]],t[i]<n&&(n-=1),n=Math.max(n,0);else e.virtual.slides.splice(t,1),e.params.virtual.cache&&delete e.virtual.cache[t],t<n&&(n-=1),n=Math.max(n,0);e.virtual.update(!0),e.slideTo(n,0)}},removeAllSlides:function(){var t=this;t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),t.virtual.update(!0),t.slideTo(0,0)}},Z={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}},create:function(){E(this,{virtual:e({},Y,{slides:this.params.virtual.slides,cache:{}})})},on:{beforeInit:function(t){if(t.params.virtual.enabled){t.classNames.push(t.params.containerModifierClass+"virtual");var e={watchSlidesProgress:!0};S(t.params,e),S(t.originalParams,e),t.params.initialSlide||t.virtual.update()}},setTranslate:function(t){t.params.virtual.enabled&&t.virtual.update()}}},U={handle:function(t){var e=this,n=s(),i=r(),o=e.rtlTranslate,a=t;a.originalEvent&&(a=a.originalEvent);var l=a.keyCode||a.charCode,c=e.params.keyboard.pageUpDown,u=c&&33===l,d=c&&34===l,h=37===l,p=39===l,f=38===l,m=40===l;if(!e.allowSlideNext&&(e.isHorizontal()&&p||e.isVertical()&&m||d))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&h||e.isVertical()&&f||u))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||i.activeElement&&i.activeElement.nodeName&&("input"===i.activeElement.nodeName.toLowerCase()||"textarea"===i.activeElement.nodeName.toLowerCase()))){if(e.params.keyboard.onlyInViewport&&(u||d||h||p||f||m)){var g=!1;if(e.$el.parents("."+e.params.slideClass).length>0&&0===e.$el.parents("."+e.params.slideActiveClass).length)return;var v=e.$el,y=v[0].clientWidth,_=v[0].clientHeight,b=n.innerWidth,w=n.innerHeight,x=e.$el.offset();o&&(x.left-=e.$el[0].scrollLeft);for(var T=[[x.left,x.top],[x.left+y,x.top],[x.left,x.top+_],[x.left+y,x.top+_]],C=0;C<T.length;C+=1){var S=T[C];if(S[0]>=0&&S[0]<=b&&S[1]>=0&&S[1]<=w){if(0===S[0]&&0===S[1])continue;g=!0}}if(!g)return}e.isHorizontal()?((u||d||h||p)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((d||p)&&!o||(u||h)&&o)&&e.slideNext(),((u||h)&&!o||(d||p)&&o)&&e.slidePrev()):((u||d||f||m)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(d||m)&&e.slideNext(),(u||f)&&e.slidePrev()),e.emit("keyPress",l)}},enable:function(){var t=this,e=r();t.keyboard.enabled||(g(e).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable:function(){var t=this,e=r();t.keyboard.enabled&&(g(e).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}},G={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create:function(){E(this,{keyboard:e({enabled:!1},U)})},on:{init:function(t){t.params.keyboard.enabled&&t.keyboard.enable()},destroy:function(t){t.keyboard.enabled&&t.keyboard.disable()}}},X={lastScrollTime:x(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return s().navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var t=r(),e="onwheel",n=e in t;if(!n){var i=t.createElement("div");i.setAttribute(e,"return;"),n="function"==typeof i.onwheel}return!n&&t.implementation&&t.implementation.hasFeature&&!0!==t.implementation.hasFeature("","")&&(n=t.implementation.hasFeature("Events.wheel","3.0")),n}()?"wheel":"mousewheel"},normalize:function(t){var e=0,n=0,i=0,o=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),i=10*e,o=10*n,"deltaY"in t&&(o=t.deltaY),"deltaX"in t&&(i=t.deltaX),t.shiftKey&&!i&&(i=o,o=0),(i||o)&&t.deltaMode&&(1===t.deltaMode?(i*=40,o*=40):(i*=800,o*=800)),i&&!e&&(e=i<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:e,spinY:n,pixelX:i,pixelY:o}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(t){var e=t,n=this,i=n.params.mousewheel;n.params.cssMode&&e.preventDefault();var o=n.$el;if("container"!==n.params.mousewheel.eventsTarget&&(o=g(n.params.mousewheel.eventsTarget)),!n.mouseEntered&&!o[0].contains(e.target)&&!i.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);var r=0,a=n.rtlTranslate?-1:1,s=X.normalize(e);if(i.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;r=-s.pixelX*a}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;r=-s.pixelY}else r=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*a:-s.pixelY;if(0===r)return!0;i.invert&&(r=-r);var l=n.getTranslate()+r*i.sensitivity;if(l>=n.minTranslate()&&(l=n.minTranslate()),l<=n.maxTranslate()&&(l=n.maxTranslate()),(!!n.params.loop||!(l===n.minTranslate()||l===n.maxTranslate()))&&n.params.nested&&e.stopPropagation(),n.params.freeMode){var c={time:x(),delta:Math.abs(r),direction:Math.sign(r)},u=n.mousewheel.lastEventBeforeSnap,d=u&&c.time<u.time+500&&c.delta<=u.delta&&c.direction===u.direction;if(!d){n.mousewheel.lastEventBeforeSnap=void 0,n.params.loop&&n.loopFix();var h=n.getTranslate()+r*i.sensitivity,p=n.isBeginning,f=n.isEnd;if(h>=n.minTranslate()&&(h=n.minTranslate()),h<=n.maxTranslate()&&(h=n.maxTranslate()),n.setTransition(0),n.setTranslate(h),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!p&&n.isBeginning||!f&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky){clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=void 0;var m=n.mousewheel.recentWheelEvents;m.length>=15&&m.shift();var v=m.length?m[m.length-1]:void 0,y=m[0];if(m.push(c),v&&(c.delta>v.delta||c.direction!==v.direction))m.splice(0);else if(m.length>=15&&c.time-y.time<500&&y.delta-c.delta>=1&&c.delta<=6){var _=r>0?.8:.2;n.mousewheel.lastEventBeforeSnap=c,m.splice(0),n.mousewheel.timeout=w((function(){n.slideToClosest(n.params.speed,!0,void 0,_)}),0)}n.mousewheel.timeout||(n.mousewheel.timeout=w((function(){n.mousewheel.lastEventBeforeSnap=c,m.splice(0),n.slideToClosest(n.params.speed,!0,void 0,.5)}),500))}if(d||n.emit("scroll",e),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),h===n.minTranslate()||h===n.maxTranslate())return!0}}else{var b={time:x(),delta:Math.abs(r),direction:Math.sign(r),raw:t},T=n.mousewheel.recentWheelEvents;T.length>=2&&T.shift();var C=T.length?T[T.length-1]:void 0;if(T.push(b),C?(b.direction!==C.direction||b.delta>C.delta||b.time>C.time+150)&&n.mousewheel.animateSlider(b):n.mousewheel.animateSlider(b),n.mousewheel.releaseScroll(b))return!0}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},animateSlider:function(t){var e=this,n=s();return!(this.params.mousewheel.thresholdDelta&&t.delta<this.params.mousewheel.thresholdDelta||this.params.mousewheel.thresholdTime&&x()-e.mousewheel.lastScrollTime<this.params.mousewheel.thresholdTime||!(t.delta>=6&&x()-e.mousewheel.lastScrollTime<60)&&(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),e.emit("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),e.emit("scroll",t.raw)),e.mousewheel.lastScrollTime=(new n.Date).getTime(),1))},releaseScroll:function(t){var e=this,n=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&n.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&n.releaseOnEdges)return!0;return!1},enable:function(){var t=this,e=X.event();if(t.params.cssMode)return t.wrapperEl.removeEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(t.mousewheel.enabled)return!1;var n=t.$el;return"container"!==t.params.mousewheel.eventsTarget&&(n=g(t.params.mousewheel.eventsTarget)),n.on("mouseenter",t.mousewheel.handleMouseEnter),n.on("mouseleave",t.mousewheel.handleMouseLeave),n.on(e,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable:function(){var t=this,e=X.event();if(t.params.cssMode)return t.wrapperEl.addEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(!t.mousewheel.enabled)return!1;var n=t.$el;return"container"!==t.params.mousewheel.eventsTarget&&(n=g(t.params.mousewheel.eventsTarget)),n.off(e,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}},K={toggleEl:function(t,e){t[e?"addClass":"removeClass"](this.params.navigation.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=e)},update:function(){var t=this,e=t.params.navigation,n=t.navigation.toggleEl;if(!t.params.loop){var i=t.navigation,o=i.$nextEl,r=i.$prevEl;r&&r.length>0&&(t.isBeginning?n(r,!0):n(r,!1),r[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass)),o&&o.length>0&&(t.isEnd?n(o,!0):n(o,!1),o[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick:function(t){var e=this;t.preventDefault(),e.isBeginning&&!e.params.loop||e.slidePrev()},onNextClick:function(t){var e=this;t.preventDefault(),e.isEnd&&!e.params.loop||e.slideNext()},init:function(){var t,e,n=this,i=n.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(t=g(i.nextEl),n.params.uniqueNavElements&&"string"==typeof i.nextEl&&t.length>1&&1===n.$el.find(i.nextEl).length&&(t=n.$el.find(i.nextEl))),i.prevEl&&(e=g(i.prevEl),n.params.uniqueNavElements&&"string"==typeof i.prevEl&&e.length>1&&1===n.$el.find(i.prevEl).length&&(e=n.$el.find(i.prevEl))),t&&t.length>0&&t.on("click",n.navigation.onNextClick),e&&e.length>0&&e.on("click",n.navigation.onPrevClick),S(n.navigation,{$nextEl:t,nextEl:t&&t[0],$prevEl:e,prevEl:e&&e[0]}))},destroy:function(){var t=this,e=t.navigation,n=e.$nextEl,i=e.$prevEl;n&&n.length&&(n.off("click",t.navigation.onNextClick),n.removeClass(t.params.navigation.disabledClass)),i&&i.length&&(i.off("click",t.navigation.onPrevClick),i.removeClass(t.params.navigation.disabledClass))}},J={update:function(){var t=this,e=t.rtl,n=t.params.pagination;if(n.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var i,o=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,r=t.pagination.$el,a=t.params.loop?Math.ceil((o-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?((i=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup))>o-1-2*t.loopedSlides&&(i-=o-2*t.loopedSlides),i>a-1&&(i-=a),i<0&&"bullets"!==t.params.paginationType&&(i=a+i)):i=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){var s,l,c,u=t.pagination.bullets;if(n.dynamicBullets&&(t.pagination.bulletSize=u.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=i-t.previousIndex,t.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),s=i-t.pagination.dynamicBulletIndex,c=((l=s+(Math.min(u.length,n.dynamicMainBullets)-1))+s)/2),u.removeClass(n.bulletActiveClass+" "+n.bulletActiveClass+"-next "+n.bulletActiveClass+"-next-next "+n.bulletActiveClass+"-prev "+n.bulletActiveClass+"-prev-prev "+n.bulletActiveClass+"-main"),r.length>1)u.each((function(t){var e=g(t),o=e.index();o===i&&e.addClass(n.bulletActiveClass),n.dynamicBullets&&(o>=s&&o<=l&&e.addClass(n.bulletActiveClass+"-main"),o===s&&e.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),o===l&&e.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next"))}));else{var d=u.eq(i),h=d.index();if(d.addClass(n.bulletActiveClass),n.dynamicBullets){for(var p=u.eq(s),f=u.eq(l),m=s;m<=l;m+=1)u.eq(m).addClass(n.bulletActiveClass+"-main");if(t.params.loop)if(h>=u.length-n.dynamicMainBullets){for(var v=n.dynamicMainBullets;v>=0;v-=1)u.eq(u.length-v).addClass(n.bulletActiveClass+"-main");u.eq(u.length-n.dynamicMainBullets-1).addClass(n.bulletActiveClass+"-prev")}else p.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),f.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next");else p.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),f.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next")}}if(n.dynamicBullets){var y=Math.min(u.length,n.dynamicMainBullets+4),_=(t.pagination.bulletSize*y-t.pagination.bulletSize)/2-c*t.pagination.bulletSize,b=e?"right":"left";u.css(t.isHorizontal()?b:"top",_+"px")}}if("fraction"===n.type&&(r.find(D(n.currentClass)).text(n.formatFractionCurrent(i+1)),r.find(D(n.totalClass)).text(n.formatFractionTotal(a))),"progressbar"===n.type){var w;w=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";var x=(i+1)/a,T=1,C=1;"horizontal"===w?T=x:C=x,r.find(D(n.progressbarFillClass)).transform("translate3d(0,0,0) scaleX("+T+") scaleY("+C+")").transition(t.params.speed)}"custom"===n.type&&n.renderCustom?(r.html(n.renderCustom(t,i+1,a)),t.emit("paginationRender",r[0])):t.emit("paginationUpdate",r[0]),r[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](n.lockClass)}},render:function(){var t=this,e=t.params.pagination;if(e.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,i=t.pagination.$el,o="";if("bullets"===e.type){var r=t.params.loop?Math.ceil((n-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&!t.params.loop&&r>n&&(r=n);for(var a=0;a<r;a+=1)e.renderBullet?o+=e.renderBullet.call(t,a,e.bulletClass):o+="<"+e.bulletElement+' class="'+e.bulletClass+'"></'+e.bulletElement+">";i.html(o),t.pagination.bullets=i.find(D(e.bulletClass))}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):'<span class="'+e.currentClass+'"></span> / <span class="'+e.totalClass+'"></span>',i.html(o)),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):'<span class="'+e.progressbarFillClass+'"></span>',i.html(o)),"custom"!==e.type&&t.emit("paginationRender",t.pagination.$el[0])}},init:function(){var t=this,e=t.params.pagination;if(e.el){var n=g(e.el);0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&n.length>1&&(n=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&n.addClass(e.clickableClass),n.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(n.addClass(""+e.modifierClass+e.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.addClass(e.progressbarOppositeClass),e.clickable&&n.on("click",D(e.bulletClass),(function(e){e.preventDefault();var n=g(this).index()*t.params.slidesPerGroup;t.params.loop&&(n+=t.loopedSlides),t.slideTo(n)})),S(t.pagination,{$el:n,el:n[0]}))}},destroy:function(){var t=this,e=t.params.pagination;if(e.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var n=t.pagination.$el;n.removeClass(e.hiddenClass),n.removeClass(e.modifierClass+e.type),t.pagination.bullets&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&n.off("click",D(e.bulletClass))}}},Q={setTranslate:function(){var t=this;if(t.params.scrollbar.el&&t.scrollbar.el){var e=t.scrollbar,n=t.rtlTranslate,i=t.progress,o=e.dragSize,r=e.trackSize,a=e.$dragEl,s=e.$el,l=t.params.scrollbar,c=o,u=(r-o)*i;n?(u=-u)>0?(c=o-u,u=0):-u+o>r&&(c=r+u):u<0?(c=o+u,u=0):u+o>r&&(c=r-u),t.isHorizontal()?(a.transform("translate3d("+u+"px, 0, 0)"),a[0].style.width=c+"px"):(a.transform("translate3d(0px, "+u+"px, 0)"),a[0].style.height=c+"px"),l.hide&&(clearTimeout(t.scrollbar.timeout),s[0].style.opacity=1,t.scrollbar.timeout=setTimeout((function(){s[0].style.opacity=0,s.transition(400)}),1e3))}},setTransition:function(t){var e=this;e.params.scrollbar.el&&e.scrollbar.el&&e.scrollbar.$dragEl.transition(t)},updateSize:function(){var t=this;if(t.params.scrollbar.el&&t.scrollbar.el){var e=t.scrollbar,n=e.$dragEl,i=e.$el;n[0].style.width="",n[0].style.height="";var o,r=t.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,a=t.size/t.virtualSize,s=a*(r/t.size);o="auto"===t.params.scrollbar.dragSize?r*a:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n[0].style.width=o+"px":n[0].style.height=o+"px",i[0].style.display=a>=1?"none":"",t.params.scrollbar.hide&&(i[0].style.opacity=0),S(e,{trackSize:r,divider:a,moveDivider:s,dragSize:o}),e.$el[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}},getPointerPosition:function(t){return this.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientX:t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientY:t.clientY},setDragPosition:function(t){var e,n=this,i=n.scrollbar,o=n.rtlTranslate,r=i.$el,a=i.dragSize,s=i.trackSize,l=i.dragStartPos;e=(i.getPointerPosition(t)-r.offset()[n.isHorizontal()?"left":"top"]-(null!==l?l:a/2))/(s-a),e=Math.max(Math.min(e,1),0),o&&(e=1-e);var c=n.minTranslate()+(n.maxTranslate()-n.minTranslate())*e;n.updateProgress(c),n.setTranslate(c),n.updateActiveIndex(),n.updateSlidesClasses()},onDragStart:function(t){var e=this,n=e.params.scrollbar,i=e.scrollbar,o=e.$wrapperEl,r=i.$el,a=i.$dragEl;e.scrollbar.isTouched=!0,e.scrollbar.dragStartPos=t.target===a[0]||t.target===a?i.getPointerPosition(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),o.transition(100),a.transition(100),i.setDragPosition(t),clearTimeout(e.scrollbar.dragTimeout),r.transition(0),n.hide&&r.css("opacity",1),e.params.cssMode&&e.$wrapperEl.css("scroll-snap-type","none"),e.emit("scrollbarDragStart",t)},onDragMove:function(t){var e=this,n=e.scrollbar,i=e.$wrapperEl,o=n.$el,r=n.$dragEl;e.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,n.setDragPosition(t),i.transition(0),o.transition(0),r.transition(0),e.emit("scrollbarDragMove",t))},onDragEnd:function(t){var e=this,n=e.params.scrollbar,i=e.scrollbar,o=e.$wrapperEl,r=i.$el;e.scrollbar.isTouched&&(e.scrollbar.isTouched=!1,e.params.cssMode&&(e.$wrapperEl.css("scroll-snap-type",""),o.transition("")),n.hide&&(clearTimeout(e.scrollbar.dragTimeout),e.scrollbar.dragTimeout=w((function(){r.css("opacity",0),r.transition(400)}),1e3)),e.emit("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())},enableDraggable:function(){var t=this;if(t.params.scrollbar.el){var e=r(),n=t.scrollbar,i=t.touchEventsTouch,o=t.touchEventsDesktop,a=t.params,s=t.support,l=n.$el[0],c=!(!s.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},u=!(!s.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};l&&(s.touch?(l.addEventListener(i.start,t.scrollbar.onDragStart,c),l.addEventListener(i.move,t.scrollbar.onDragMove,c),l.addEventListener(i.end,t.scrollbar.onDragEnd,u)):(l.addEventListener(o.start,t.scrollbar.onDragStart,c),e.addEventListener(o.move,t.scrollbar.onDragMove,c),e.addEventListener(o.end,t.scrollbar.onDragEnd,u)))}},disableDraggable:function(){var t=this;if(t.params.scrollbar.el){var e=r(),n=t.scrollbar,i=t.touchEventsTouch,o=t.touchEventsDesktop,a=t.params,s=t.support,l=n.$el[0],c=!(!s.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},u=!(!s.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};l&&(s.touch?(l.removeEventListener(i.start,t.scrollbar.onDragStart,c),l.removeEventListener(i.move,t.scrollbar.onDragMove,c),l.removeEventListener(i.end,t.scrollbar.onDragEnd,u)):(l.removeEventListener(o.start,t.scrollbar.onDragStart,c),e.removeEventListener(o.move,t.scrollbar.onDragMove,c),e.removeEventListener(o.end,t.scrollbar.onDragEnd,u)))}},init:function(){var t=this;if(t.params.scrollbar.el){var e=t.scrollbar,n=t.$el,i=t.params.scrollbar,o=g(i.el);t.params.uniqueNavElements&&"string"==typeof i.el&&o.length>1&&1===n.find(i.el).length&&(o=n.find(i.el));var r=o.find("."+t.params.scrollbar.dragClass);0===r.length&&(r=g('<div class="'+t.params.scrollbar.dragClass+'"></div>'),o.append(r)),S(e,{$el:o,el:o[0],$dragEl:r,dragEl:r[0]}),i.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},tt={setTransform:function(t,e){var n=this.rtl,i=g(t),o=n?-1:1,r=i.attr("data-swiper-parallax")||"0",a=i.attr("data-swiper-parallax-x"),s=i.attr("data-swiper-parallax-y"),l=i.attr("data-swiper-parallax-scale"),c=i.attr("data-swiper-parallax-opacity");if(a||s?(a=a||"0",s=s||"0"):this.isHorizontal()?(a=r,s="0"):(s=r,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*e*o+"%":a*e*o+"px",s=s.indexOf("%")>=0?parseInt(s,10)*e+"%":s*e+"px",null!=c){var u=c-(c-1)*(1-Math.abs(e));i[0].style.opacity=u}if(null==l)i.transform("translate3d("+a+", "+s+", 0px)");else{var d=l-(l-1)*(1-Math.abs(e));i.transform("translate3d("+a+", "+s+", 0px) scale("+d+")")}},setTranslate:function(){var t=this,e=t.$el,n=t.slides,i=t.progress,o=t.snapGrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e){t.parallax.setTransform(e,i)})),n.each((function(e,n){var r=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(r+=Math.ceil(n/2)-i*(o.length-1)),r=Math.min(Math.max(r,-1),1),g(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e){t.parallax.setTransform(e,r)}))}))},setTransition:function(t){void 0===t&&(t=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e){var n=g(e),i=parseInt(n.attr("data-swiper-parallax-duration"),10)||t;0===t&&(i=0),n.transition(i)}))}},et={getDistanceBetweenTouches:function(t){if(t.targetTouches.length<2)return 1;var e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY,i=t.targetTouches[1].pageX,o=t.targetTouches[1].pageY;return Math.sqrt(Math.pow(i-e,2)+Math.pow(o-n,2))},onGestureStart:function(t){var e=this,n=e.support,i=e.params.zoom,o=e.zoom,r=o.gesture;if(o.fakeGestureTouched=!1,o.fakeGestureMoved=!1,!n.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;o.fakeGestureTouched=!0,r.scaleStart=et.getDistanceBetweenTouches(t)}r.$slideEl&&r.$slideEl.length||(r.$slideEl=g(t.target).closest("."+e.params.slideClass),0===r.$slideEl.length&&(r.$slideEl=e.slides.eq(e.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),r.$imageWrapEl=r.$imageEl.parent("."+i.containerClass),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,0!==r.$imageWrapEl.length)?(r.$imageEl&&r.$imageEl.transition(0),e.zoom.isScaling=!0):r.$imageEl=void 0},onGestureChange:function(t){var e=this,n=e.support,i=e.params.zoom,o=e.zoom,r=o.gesture;if(!n.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;o.fakeGestureMoved=!0,r.scaleMove=et.getDistanceBetweenTouches(t)}r.$imageEl&&0!==r.$imageEl.length?(n.gestures?o.scale=t.scale*o.currentScale:o.scale=r.scaleMove/r.scaleStart*o.currentScale,o.scale>r.maxRatio&&(o.scale=r.maxRatio-1+Math.pow(o.scale-r.maxRatio+1,.5)),o.scale<i.minRatio&&(o.scale=i.minRatio+1-Math.pow(i.minRatio-o.scale+1,.5)),r.$imageEl.transform("translate3d(0,0,0) scale("+o.scale+")")):"gesturechange"===t.type&&o.onGestureStart(t)},onGestureEnd:function(t){var e=this,n=e.device,i=e.support,o=e.params.zoom,r=e.zoom,a=r.gesture;if(!i.gestures){if(!r.fakeGestureTouched||!r.fakeGestureMoved)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!n.android)return;r.fakeGestureTouched=!1,r.fakeGestureMoved=!1}a.$imageEl&&0!==a.$imageEl.length&&(r.scale=Math.max(Math.min(r.scale,a.maxRatio),o.minRatio),a.$imageEl.transition(e.params.speed).transform("translate3d(0,0,0) scale("+r.scale+")"),r.currentScale=r.scale,r.isScaling=!1,1===r.scale&&(a.$slideEl=void 0))},onTouchStart:function(t){var e=this.device,n=this.zoom,i=n.gesture,o=n.image;i.$imageEl&&0!==i.$imageEl.length&&(o.isTouched||(e.android&&t.cancelable&&t.preventDefault(),o.isTouched=!0,o.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,o.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove:function(t){var e=this,n=e.zoom,i=n.gesture,o=n.image,r=n.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(e.allowClick=!1,o.isTouched&&i.$slideEl)){o.isMoved||(o.width=i.$imageEl[0].offsetWidth,o.height=i.$imageEl[0].offsetHeight,o.startX=T(i.$imageWrapEl[0],"x")||0,o.startY=T(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),e.rtl&&(o.startX=-o.startX,o.startY=-o.startY));var a=o.width*n.scale,s=o.height*n.scale;if(!(a<i.slideWidth&&s<i.slideHeight)){if(o.minX=Math.min(i.slideWidth/2-a/2,0),o.maxX=-o.minX,o.minY=Math.min(i.slideHeight/2-s/2,0),o.maxY=-o.minY,o.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,o.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!o.isMoved&&!n.isScaling){if(e.isHorizontal()&&(Math.floor(o.minX)===Math.floor(o.startX)&&o.touchesCurrent.x<o.touchesStart.x||Math.floor(o.maxX)===Math.floor(o.startX)&&o.touchesCurrent.x>o.touchesStart.x))return void(o.isTouched=!1);if(!e.isHorizontal()&&(Math.floor(o.minY)===Math.floor(o.startY)&&o.touchesCurrent.y<o.touchesStart.y||Math.floor(o.maxY)===Math.floor(o.startY)&&o.touchesCurrent.y>o.touchesStart.y))return void(o.isTouched=!1)}t.cancelable&&t.preventDefault(),t.stopPropagation(),o.isMoved=!0,o.currentX=o.touchesCurrent.x-o.touchesStart.x+o.startX,o.currentY=o.touchesCurrent.y-o.touchesStart.y+o.startY,o.currentX<o.minX&&(o.currentX=o.minX+1-Math.pow(o.minX-o.currentX+1,.8)),o.currentX>o.maxX&&(o.currentX=o.maxX-1+Math.pow(o.currentX-o.maxX+1,.8)),o.currentY<o.minY&&(o.currentY=o.minY+1-Math.pow(o.minY-o.currentY+1,.8)),o.currentY>o.maxY&&(o.currentY=o.maxY-1+Math.pow(o.currentY-o.maxY+1,.8)),r.prevPositionX||(r.prevPositionX=o.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=o.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(o.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(o.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(o.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(o.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=o.touchesCurrent.x,r.prevPositionY=o.touchesCurrent.y,r.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+o.currentX+"px, "+o.currentY+"px,0)")}}},onTouchEnd:function(){var t=this.zoom,e=t.gesture,n=t.image,i=t.velocity;if(e.$imageEl&&0!==e.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var o=300,r=300,a=i.x*o,s=n.currentX+a,l=i.y*r,c=n.currentY+l;0!==i.x&&(o=Math.abs((s-n.currentX)/i.x)),0!==i.y&&(r=Math.abs((c-n.currentY)/i.y));var u=Math.max(o,r);n.currentX=s,n.currentY=c;var d=n.width*t.scale,h=n.height*t.scale;n.minX=Math.min(e.slideWidth/2-d/2,0),n.maxX=-n.minX,n.minY=Math.min(e.slideHeight/2-h/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),e.$imageWrapEl.transition(u).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var t=this,e=t.zoom,n=e.gesture;n.$slideEl&&t.previousIndex!==t.activeIndex&&(n.$imageEl&&n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl&&n.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle:function(t){var e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in:function(t){var e,n,i,o,r,a,l,c,u,d,h,p,f,m,g,v,y=this,_=s(),b=y.zoom,w=y.params.zoom,x=b.gesture,T=b.image;x.$slideEl||(y.params.virtual&&y.params.virtual.enabled&&y.virtual?x.$slideEl=y.$wrapperEl.children("."+y.params.slideActiveClass):x.$slideEl=y.slides.eq(y.activeIndex),x.$imageEl=x.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),x.$imageWrapEl=x.$imageEl.parent("."+w.containerClass)),x.$imageEl&&0!==x.$imageEl.length&&(x.$slideEl.addClass(""+w.zoomedSlideClass),void 0===T.touchesStart.x&&t?(e="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,n="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(e=T.touchesStart.x,n=T.touchesStart.y),b.scale=x.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,b.currentScale=x.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,t?(g=x.$slideEl[0].offsetWidth,v=x.$slideEl[0].offsetHeight,i=x.$slideEl.offset().left+_.scrollX+g/2-e,o=x.$slideEl.offset().top+_.scrollY+v/2-n,l=x.$imageEl[0].offsetWidth,c=x.$imageEl[0].offsetHeight,u=l*b.scale,d=c*b.scale,f=-(h=Math.min(g/2-u/2,0)),m=-(p=Math.min(v/2-d/2,0)),(r=i*b.scale)<h&&(r=h),r>f&&(r=f),(a=o*b.scale)<p&&(a=p),a>m&&(a=m)):(r=0,a=0),x.$imageWrapEl.transition(300).transform("translate3d("+r+"px, "+a+"px,0)"),x.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+b.scale+")"))},out:function(){var t=this,e=t.zoom,n=t.params.zoom,i=e.gesture;i.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?i.$slideEl=t.$wrapperEl.children("."+t.params.slideActiveClass):i.$slideEl=t.slides.eq(t.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imageWrapEl=i.$imageEl.parent("."+n.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(e.scale=1,e.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+n.zoomedSlideClass),i.$slideEl=void 0)},toggleGestures:function(t){var e=this,n=e.zoom,i=n.slideSelector,o=n.passiveListener;e.$wrapperEl[t]("gesturestart",i,n.onGestureStart,o),e.$wrapperEl[t]("gesturechange",i,n.onGestureChange,o),e.$wrapperEl[t]("gestureend",i,n.onGestureEnd,o)},enableGestures:function(){this.zoom.gesturesEnabled||(this.zoom.gesturesEnabled=!0,this.zoom.toggleGestures("on"))},disableGestures:function(){this.zoom.gesturesEnabled&&(this.zoom.gesturesEnabled=!1,this.zoom.toggleGestures("off"))},enable:function(){var t=this,e=t.support,n=t.zoom;if(!n.enabled){n.enabled=!0;var i=!("touchstart"!==t.touchEvents.start||!e.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},o=!e.passiveListener||{passive:!1,capture:!0},r="."+t.params.slideClass;t.zoom.passiveListener=i,t.zoom.slideSelector=r,e.gestures?(t.$wrapperEl.on(t.touchEvents.start,t.zoom.enableGestures,i),t.$wrapperEl.on(t.touchEvents.end,t.zoom.disableGestures,i)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,r,n.onGestureStart,i),t.$wrapperEl.on(t.touchEvents.move,r,n.onGestureChange,o),t.$wrapperEl.on(t.touchEvents.end,r,n.onGestureEnd,i),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,r,n.onGestureEnd,i)),t.$wrapperEl.on(t.touchEvents.move,"."+t.params.zoom.containerClass,n.onTouchMove,o)}},disable:function(){var t=this,e=t.zoom;if(e.enabled){var n=t.support;t.zoom.enabled=!1;var i=!("touchstart"!==t.touchEvents.start||!n.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},o=!n.passiveListener||{passive:!1,capture:!0},r="."+t.params.slideClass;n.gestures?(t.$wrapperEl.off(t.touchEvents.start,t.zoom.enableGestures,i),t.$wrapperEl.off(t.touchEvents.end,t.zoom.disableGestures,i)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,r,e.onGestureStart,i),t.$wrapperEl.off(t.touchEvents.move,r,e.onGestureChange,o),t.$wrapperEl.off(t.touchEvents.end,r,e.onGestureEnd,i),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,r,e.onGestureEnd,i)),t.$wrapperEl.off(t.touchEvents.move,"."+t.params.zoom.containerClass,e.onTouchMove,o)}}},nt={loadInSlide:function(t,e){void 0===e&&(e=!0);var n=this,i=n.params.lazy;if(void 0!==t&&0!==n.slides.length){var o=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):n.slides.eq(t),r=o.find("."+i.elementClass+":not(."+i.loadedClass+"):not(."+i.loadingClass+")");!o.hasClass(i.elementClass)||o.hasClass(i.loadedClass)||o.hasClass(i.loadingClass)||r.push(o[0]),0!==r.length&&r.each((function(t){var r=g(t);r.addClass(i.loadingClass);var a=r.attr("data-background"),s=r.attr("data-src"),l=r.attr("data-srcset"),c=r.attr("data-sizes"),u=r.parent("picture");n.loadImage(r[0],s||a,l,c,!1,(function(){if(null!=n&&n&&(!n||n.params)&&!n.destroyed){if(a?(r.css("background-image",'url("'+a+'")'),r.removeAttr("data-background")):(l&&(r.attr("srcset",l),r.removeAttr("data-srcset")),c&&(r.attr("sizes",c),r.removeAttr("data-sizes")),u.length&&u.children("source").each((function(t){var e=g(t);e.attr("data-srcset")&&(e.attr("srcset",e.attr("data-srcset")),e.removeAttr("data-srcset"))})),s&&(r.attr("src",s),r.removeAttr("data-src"))),r.addClass(i.loadedClass).removeClass(i.loadingClass),o.find("."+i.preloaderClass).remove(),n.params.loop&&e){var t=o.attr("data-swiper-slide-index");if(o.hasClass(n.params.slideDuplicateClass)){var d=n.$wrapperEl.children('[data-swiper-slide-index="'+t+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(d.index(),!1)}else{var h=n.$wrapperEl.children("."+n.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');n.lazy.loadInSlide(h.index(),!1)}}n.emit("lazyImageReady",o[0],r[0]),n.params.autoHeight&&n.updateAutoHeight()}})),n.emit("lazyImageLoad",o[0],r[0])}))}},load:function(){var t=this,e=t.$wrapperEl,n=t.params,i=t.slides,o=t.activeIndex,r=t.virtual&&n.virtual.enabled,a=n.lazy,s=n.slidesPerView;function l(t){if(r){if(e.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]').length)return!0}else if(i[t])return!0;return!1}function c(t){return r?g(t).attr("data-swiper-slide-index"):g(t).index()}if("auto"===s&&(s=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children("."+n.slideVisibleClass).each((function(e){var n=r?g(e).attr("data-swiper-slide-index"):g(e).index();t.lazy.loadInSlide(n)}));else if(s>1)for(var u=o;u<o+s;u+=1)l(u)&&t.lazy.loadInSlide(u);else t.lazy.loadInSlide(o);if(a.loadPrevNext)if(s>1||a.loadPrevNextAmount&&a.loadPrevNextAmount>1){for(var d=a.loadPrevNextAmount,h=s,p=Math.min(o+h+Math.max(d,h),i.length),f=Math.max(o-Math.max(h,d),0),m=o+s;m<p;m+=1)l(m)&&t.lazy.loadInSlide(m);for(var v=f;v<o;v+=1)l(v)&&t.lazy.loadInSlide(v)}else{var y=e.children("."+n.slideNextClass);y.length>0&&t.lazy.loadInSlide(c(y));var _=e.children("."+n.slidePrevClass);_.length>0&&t.lazy.loadInSlide(c(_))}},checkInViewOnLoad:function(){var t=s(),e=this;if(e&&!e.destroyed){var n=e.params.lazy.scrollingElement?g(e.params.lazy.scrollingElement):g(t),i=n[0]===t,o=i?t.innerWidth:n[0].offsetWidth,r=i?t.innerHeight:n[0].offsetHeight,a=e.$el.offset(),l=!1;e.rtlTranslate&&(a.left-=e.$el[0].scrollLeft);for(var c=[[a.left,a.top],[a.left+e.width,a.top],[a.left,a.top+e.height],[a.left+e.width,a.top+e.height]],u=0;u<c.length;u+=1){var d=c[u];if(d[0]>=0&&d[0]<=o&&d[1]>=0&&d[1]<=r){if(0===d[0]&&0===d[1])continue;l=!0}}l?(e.lazy.load(),n.off("scroll",e.lazy.checkInViewOnLoad)):e.lazy.scrollHandlerAttached||(e.lazy.scrollHandlerAttached=!0,n.on("scroll",e.lazy.checkInViewOnLoad))}}},it={LinearSpline:function(t,e){var n,i,o,r,a;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(a=function(t,e){for(i=-1,n=t.length;n-i>1;)t[o=n+i>>1]<=e?i=o:n=o;return n}(this.x,t),r=a-1,(t-this.x[r])*(this.y[a]-this.y[r])/(this.x[a]-this.x[r])+this.y[r]):0},this},getInterpolateFunction:function(t){var e=this;e.controller.spline||(e.controller.spline=e.params.loop?new it.LinearSpline(e.slidesGrid,t.slidesGrid):new it.LinearSpline(e.snapGrid,t.snapGrid))},setTranslate:function(t,e){var n,i,o=this,r=o.controller.control,a=o.constructor;function s(t){var e=o.rtlTranslate?-o.translate:o.translate;"slide"===o.params.controller.by&&(o.controller.getInterpolateFunction(t),i=-o.controller.spline.interpolate(-e)),i&&"container"!==o.params.controller.by||(n=(t.maxTranslate()-t.minTranslate())/(o.maxTranslate()-o.minTranslate()),i=(e-o.minTranslate())*n+t.minTranslate()),o.params.controller.inverse&&(i=t.maxTranslate()-i),t.updateProgress(i),t.setTranslate(i,o),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(r))for(var l=0;l<r.length;l+=1)r[l]!==e&&r[l]instanceof a&&s(r[l]);else r instanceof a&&e!==r&&s(r)},setTransition:function(t,e){var n,i=this,o=i.constructor,r=i.controller.control;function a(e){e.setTransition(t,i),0!==t&&(e.transitionStart(),e.params.autoHeight&&w((function(){e.updateAutoHeight()})),e.$wrapperEl.transitionEnd((function(){r&&(e.params.loop&&"slide"===i.params.controller.by&&e.loopFix(),e.transitionEnd())})))}if(Array.isArray(r))for(n=0;n<r.length;n+=1)r[n]!==e&&r[n]instanceof o&&a(r[n]);else r instanceof o&&e!==r&&a(r)}},ot={getRandomNumber:function(t){return void 0===t&&(t=16),"x".repeat(t).replace(/x/g,(function(){return Math.round(16*Math.random()).toString(16)}))},makeElFocusable:function(t){return t.attr("tabIndex","0"),t},makeElNotFocusable:function(t){return t.attr("tabIndex","-1"),t},addElRole:function(t,e){return t.attr("role",e),t},addElRoleDescription:function(t,e){return t.attr("aria-roledescription",e),t},addElControls:function(t,e){return t.attr("aria-controls",e),t},addElLabel:function(t,e){return t.attr("aria-label",e),t},addElId:function(t,e){return t.attr("id",e),t},addElLive:function(t,e){return t.attr("aria-live",e),t},disableEl:function(t){return t.attr("aria-disabled",!0),t},enableEl:function(t){return t.attr("aria-disabled",!1),t},onEnterOrSpaceKey:function(t){if(13===t.keyCode||32===t.keyCode){var e=this,n=e.params.a11y,i=g(t.target);e.navigation&&e.navigation.$nextEl&&i.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?e.a11y.notify(n.lastSlideMessage):e.a11y.notify(n.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&i.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?e.a11y.notify(n.firstSlideMessage):e.a11y.notify(n.prevSlideMessage)),e.pagination&&i.is(D(e.params.pagination.bulletClass))&&i[0].click()}},notify:function(t){var e=this.a11y.liveRegion;0!==e.length&&(e.html(""),e.html(t))},updateNavigation:function(){var t=this;if(!t.params.loop&&t.navigation){var e=t.navigation,n=e.$nextEl,i=e.$prevEl;i&&i.length>0&&(t.isBeginning?(t.a11y.disableEl(i),t.a11y.makeElNotFocusable(i)):(t.a11y.enableEl(i),t.a11y.makeElFocusable(i))),n&&n.length>0&&(t.isEnd?(t.a11y.disableEl(n),t.a11y.makeElNotFocusable(n)):(t.a11y.enableEl(n),t.a11y.makeElFocusable(n)))}},updatePagination:function(){var t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((function(n){var i=g(n);t.a11y.makeElFocusable(i),t.params.pagination.renderBullet||(t.a11y.addElRole(i,"button"),t.a11y.addElLabel(i,e.paginationBulletMessage.replace(/\{\{index\}\}/,i.index()+1)))}))},init:function(){var t=this,e=t.params.a11y;t.$el.append(t.a11y.liveRegion);var n=t.$el;e.containerRoleDescriptionMessage&&t.a11y.addElRoleDescription(n,e.containerRoleDescriptionMessage),e.containerMessage&&t.a11y.addElLabel(n,e.containerMessage);var i,o,r=t.$wrapperEl,a=r.attr("id")||"swiper-wrapper-"+t.a11y.getRandomNumber(16),s=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";t.a11y.addElId(r,a),t.a11y.addElLive(r,s),e.itemRoleDescriptionMessage&&t.a11y.addElRoleDescription(g(t.slides),e.itemRoleDescriptionMessage),t.a11y.addElRole(g(t.slides),e.slideRole),t.slides.each((function(n){var i=g(n),o=e.slideLabelMessage.replace(/\{\{index\}\}/,i.index()+1).replace(/\{\{slidesLength\}\}/,t.slides.length);t.a11y.addElLabel(i,o)})),t.navigation&&t.navigation.$nextEl&&(i=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(o=t.navigation.$prevEl),i&&i.length&&(t.a11y.makeElFocusable(i),"BUTTON"!==i[0].tagName&&(t.a11y.addElRole(i,"button"),i.on("keydown",t.a11y.onEnterOrSpaceKey)),t.a11y.addElLabel(i,e.nextSlideMessage),t.a11y.addElControls(i,a)),o&&o.length&&(t.a11y.makeElFocusable(o),"BUTTON"!==o[0].tagName&&(t.a11y.addElRole(o,"button"),o.on("keydown",t.a11y.onEnterOrSpaceKey)),t.a11y.addElLabel(o,e.prevSlideMessage),t.a11y.addElControls(o,a)),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.on("keydown",D(t.params.pagination.bulletClass),t.a11y.onEnterOrSpaceKey)},destroy:function(){var t,e,n=this;n.a11y.liveRegion&&n.a11y.liveRegion.length>0&&n.a11y.liveRegion.remove(),n.navigation&&n.navigation.$nextEl&&(t=n.navigation.$nextEl),n.navigation&&n.navigation.$prevEl&&(e=n.navigation.$prevEl),t&&t.off("keydown",n.a11y.onEnterOrSpaceKey),e&&e.off("keydown",n.a11y.onEnterOrSpaceKey),n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.$el.off("keydown",D(n.params.pagination.bulletClass),n.a11y.onEnterOrSpaceKey)}},rt={init:function(){var t=this,e=s();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);var n=t.history;n.initialized=!0,n.paths=rt.getPathValues(t.params.url),(n.paths.key||n.paths.value)&&(n.scrollToSlide(0,n.paths.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",t.history.setHistoryPopState))}},destroy:function(){var t=s();this.params.history.replaceState||t.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){var t=this;t.history.paths=rt.getPathValues(t.params.url),t.history.scrollToSlide(t.params.speed,t.history.paths.value,!1)},getPathValues:function(t){var e=s(),n=(t?new URL(t):e.location).pathname.slice(1).split("/").filter((function(t){return""!==t})),i=n.length;return{key:n[i-2],value:n[i-1]}},setHistory:function(t,e){var n=this,i=s();if(n.history.initialized&&n.params.history.enabled){var o;o=n.params.url?new URL(n.params.url):i.location;var r=n.slides.eq(e),a=rt.slugify(r.attr("data-history"));if(n.params.history.root.length>0){var l=n.params.history.root;"/"===l[l.length-1]&&(l=l.slice(0,l.length-1)),a=l+"/"+t+"/"+a}else o.pathname.includes(t)||(a=t+"/"+a);var c=i.history.state;c&&c.value===a||(n.params.history.replaceState?i.history.replaceState({value:a},null,a):i.history.pushState({value:a},null,a))}},slugify:function(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(t,e,n){var i=this;if(e)for(var o=0,r=i.slides.length;o<r;o+=1){var a=i.slides.eq(o);if(rt.slugify(a.attr("data-history"))===e&&!a.hasClass(i.params.slideDuplicateClass)){var s=a.index();i.slideTo(s,t,n)}}else i.slideTo(0,t,n)}},at={onHashCange:function(){var t=this,e=r();t.emit("hashChange");var n=e.location.hash.replace("#","");if(n!==t.slides.eq(t.activeIndex).attr("data-hash")){var i=t.$wrapperEl.children("."+t.params.slideClass+'[data-hash="'+n+'"]').index();if(void 0===i)return;t.slideTo(i)}},setHash:function(){var t=this,e=s(),n=r();if(t.hashNavigation.initialized&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&e.history&&e.history.replaceState)e.history.replaceState(null,null,"#"+t.slides.eq(t.activeIndex).attr("data-hash")||""),t.emit("hashSet");else{var i=t.slides.eq(t.activeIndex),o=i.attr("data-hash")||i.attr("data-history");n.location.hash=o||"",t.emit("hashSet")}},init:function(){var t=this,e=r(),n=s();if(!(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)){t.hashNavigation.initialized=!0;var i=e.location.hash.replace("#","");if(i)for(var o=0,a=t.slides.length;o<a;o+=1){var l=t.slides.eq(o);if((l.attr("data-hash")||l.attr("data-history"))===i&&!l.hasClass(t.params.slideDuplicateClass)){var c=l.index();t.slideTo(c,0,t.params.runCallbacksOnInit,!0)}}t.params.hashNavigation.watchState&&g(n).on("hashchange",t.hashNavigation.onHashCange)}},destroy:function(){var t=s();this.params.hashNavigation.watchState&&g(t).off("hashchange",this.hashNavigation.onHashCange)}},st={run:function(){var t=this,e=t.slides.eq(t.activeIndex),n=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(n=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=w((function(){var e;t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),e=t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(e=t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(e=t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),e=t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(e=t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(e=t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")),(t.params.cssMode&&t.autoplay.running||!1===e)&&t.autoplay.run()}),n)},start:function(){var t=this;return void 0===t.autoplay.timeout&&!t.autoplay.running&&(t.autoplay.running=!0,t.emit("autoplayStart"),t.autoplay.run(),!0)},stop:function(){var t=this;return!!t.autoplay.running&&void 0!==t.autoplay.timeout&&(t.autoplay.timeout&&(clearTimeout(t.autoplay.timeout),t.autoplay.timeout=void 0),t.autoplay.running=!1,t.emit("autoplayStop"),!0)},pause:function(t){var e=this;e.autoplay.running&&(e.autoplay.paused||(e.autoplay.timeout&&clearTimeout(e.autoplay.timeout),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?(e.$wrapperEl[0].addEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].addEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd)):(e.autoplay.paused=!1,e.autoplay.run())))},onVisibilityChange:function(){var t=this,e=r();"hidden"===e.visibilityState&&t.autoplay.running&&t.autoplay.pause(),"visible"===e.visibilityState&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},onTransitionEnd:function(t){var e=this;e&&!e.destroyed&&e.$wrapperEl&&t.target===e.$wrapperEl[0]&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}},lt={setTranslate:function(){for(var t=this,e=t.slides,n=0;n<e.length;n+=1){var i=t.slides.eq(n),o=-i[0].swiperSlideOffset;t.params.virtualTranslate||(o-=t.translate);var r=0;t.isHorizontal()||(r=o,o=0);var a=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:a}).transform("translate3d("+o+"px, "+r+"px, 0px)")}},setTransition:function(t){var e=this,n=e.slides,i=e.$wrapperEl;if(n.transition(t),e.params.virtualTranslate&&0!==t){var o=!1;n.transitionEnd((function(){if(!o&&e&&!e.destroyed){o=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],n=0;n<t.length;n+=1)i.trigger(t[n])}}))}}},ct={setTranslate:function(){var t,e=this,n=e.$el,i=e.$wrapperEl,o=e.slides,r=e.width,a=e.height,s=e.rtlTranslate,l=e.size,c=e.browser,u=e.params.cubeEffect,d=e.isHorizontal(),h=e.virtual&&e.params.virtual.enabled,p=0;u.shadow&&(d?(0===(t=i.find(".swiper-cube-shadow")).length&&(t=g('<div class="swiper-cube-shadow"></div>'),i.append(t)),t.css({height:r+"px"})):0===(t=n.find(".swiper-cube-shadow")).length&&(t=g('<div class="swiper-cube-shadow"></div>'),n.append(t)));for(var f=0;f<o.length;f+=1){var m=o.eq(f),v=f;h&&(v=parseInt(m.attr("data-swiper-slide-index"),10));var y=90*v,_=Math.floor(y/360);s&&(y=-y,_=Math.floor(-y/360));var b=Math.max(Math.min(m[0].progress,1),-1),w=0,x=0,T=0;v%4==0?(w=4*-_*l,T=0):(v-1)%4==0?(w=0,T=4*-_*l):(v-2)%4==0?(w=l+4*_*l,T=l):(v-3)%4==0&&(w=-l,T=3*l+4*l*_),s&&(w=-w),d||(x=w,w=0);var C="rotateX("+(d?0:-y)+"deg) rotateY("+(d?y:0)+"deg) translate3d("+w+"px, "+x+"px, "+T+"px)";if(b<=1&&b>-1&&(p=90*v+90*b,s&&(p=90*-v-90*b)),m.transform(C),u.slideShadows){var S=d?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),E=d?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===S.length&&(S=g('<div class="swiper-slide-shadow-'+(d?"left":"top")+'"></div>'),m.append(S)),0===E.length&&(E=g('<div class="swiper-slide-shadow-'+(d?"right":"bottom")+'"></div>'),m.append(E)),S.length&&(S[0].style.opacity=Math.max(-b,0)),E.length&&(E[0].style.opacity=Math.max(b,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),u.shadow)if(d)t.transform("translate3d(0px, "+(r/2+u.shadowOffset)+"px, "+-r/2+"px) rotateX(90deg) rotateZ(0deg) scale("+u.shadowScale+")");else{var D=Math.abs(p)-90*Math.floor(Math.abs(p)/90),k=1.5-(Math.sin(2*D*Math.PI/360)/2+Math.cos(2*D*Math.PI/360)/2),A=u.shadowScale,M=u.shadowScale/k,L=u.shadowOffset;t.transform("scale3d("+A+", 1, "+M+") translate3d(0px, "+(a/2+L)+"px, "+-a/2/M+"px) rotateX(-90deg)")}var P=c.isSafari||c.isWebView?-l/2:0;i.transform("translate3d(0px,0,"+P+"px) rotateX("+(e.isHorizontal()?0:p)+"deg) rotateY("+(e.isHorizontal()?-p:0)+"deg)")},setTransition:function(t){var e=this,n=e.$el;e.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.cubeEffect.shadow&&!e.isHorizontal()&&n.find(".swiper-cube-shadow").transition(t)}},ut={setTranslate:function(){for(var t=this,e=t.slides,n=t.rtlTranslate,i=0;i<e.length;i+=1){var o=e.eq(i),r=o[0].progress;t.params.flipEffect.limitRotation&&(r=Math.max(Math.min(o[0].progress,1),-1));var a=-180*r,s=0,l=-o[0].swiperSlideOffset,c=0;if(t.isHorizontal()?n&&(a=-a):(c=l,l=0,s=-a,a=0),o[0].style.zIndex=-Math.abs(Math.round(r))+e.length,t.params.flipEffect.slideShadows){var u=t.isHorizontal()?o.find(".swiper-slide-shadow-left"):o.find(".swiper-slide-shadow-top"),d=t.isHorizontal()?o.find(".swiper-slide-shadow-right"):o.find(".swiper-slide-shadow-bottom");0===u.length&&(u=g('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),o.append(u)),0===d.length&&(d=g('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),o.append(d)),u.length&&(u[0].style.opacity=Math.max(-r,0)),d.length&&(d[0].style.opacity=Math.max(r,0))}o.transform("translate3d("+l+"px, "+c+"px, 0px) rotateX("+s+"deg) rotateY("+a+"deg)")}},setTransition:function(t){var e=this,n=e.slides,i=e.activeIndex,o=e.$wrapperEl;if(n.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){var r=!1;n.eq(i).transitionEnd((function(){if(!r&&e&&!e.destroyed){r=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],n=0;n<t.length;n+=1)o.trigger(t[n])}}))}}},dt={setTranslate:function(){for(var t=this,e=t.width,n=t.height,i=t.slides,o=t.slidesSizesGrid,r=t.params.coverflowEffect,a=t.isHorizontal(),s=t.translate,l=a?e/2-s:n/2-s,c=a?r.rotate:-r.rotate,u=r.depth,d=0,h=i.length;d<h;d+=1){var p=i.eq(d),f=o[d],m=(l-p[0].swiperSlideOffset-f/2)/f*r.modifier,v=a?c*m:0,y=a?0:c*m,_=-u*Math.abs(m),b=r.stretch;"string"==typeof b&&-1!==b.indexOf("%")&&(b=parseFloat(r.stretch)/100*f);var w=a?0:b*m,x=a?b*m:0,T=1-(1-r.scale)*Math.abs(m);Math.abs(x)<.001&&(x=0),Math.abs(w)<.001&&(w=0),Math.abs(_)<.001&&(_=0),Math.abs(v)<.001&&(v=0),Math.abs(y)<.001&&(y=0),Math.abs(T)<.001&&(T=0);var C="translate3d("+x+"px,"+w+"px,"+_+"px)  rotateX("+y+"deg) rotateY("+v+"deg) scale("+T+")";if(p.transform(C),p[0].style.zIndex=1-Math.abs(Math.round(m)),r.slideShadows){var S=a?p.find(".swiper-slide-shadow-left"):p.find(".swiper-slide-shadow-top"),E=a?p.find(".swiper-slide-shadow-right"):p.find(".swiper-slide-shadow-bottom");0===S.length&&(S=g('<div class="swiper-slide-shadow-'+(a?"left":"top")+'"></div>'),p.append(S)),0===E.length&&(E=g('<div class="swiper-slide-shadow-'+(a?"right":"bottom")+'"></div>'),p.append(E)),S.length&&(S[0].style.opacity=m>0?m:0),E.length&&(E[0].style.opacity=-m>0?-m:0)}}},setTransition:function(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}},ht={init:function(){var t=this,e=t.params.thumbs;if(t.thumbs.initialized)return!1;t.thumbs.initialized=!0;var n=t.constructor;return e.swiper instanceof n?(t.thumbs.swiper=e.swiper,S(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),S(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):C(e.swiper)&&(t.thumbs.swiper=new n(S({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),t.thumbs.swiperCreated=!0),t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",t.thumbs.onThumbClick),!0},onThumbClick:function(){var t=this,e=t.thumbs.swiper;if(e){var n=e.clickedIndex,i=e.clickedSlide;if(!(i&&g(i).hasClass(t.params.thumbs.slideThumbActiveClass)||null==n)){var o;if(o=e.params.loop?parseInt(g(e.clickedSlide).attr("data-swiper-slide-index"),10):n,t.params.loop){var r=t.activeIndex;t.slides.eq(r).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,r=t.activeIndex);var a=t.slides.eq(r).prevAll('[data-swiper-slide-index="'+o+'"]').eq(0).index(),s=t.slides.eq(r).nextAll('[data-swiper-slide-index="'+o+'"]').eq(0).index();o=void 0===a?s:void 0===s?a:s-r<r-a?s:a}t.slideTo(o)}}},update:function(t){var e=this,n=e.thumbs.swiper;if(n){var i="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView,o=e.params.thumbs.autoScrollOffset,r=o&&!n.params.loop;if(e.realIndex!==n.realIndex||r){var a,s,l=n.activeIndex;if(n.params.loop){n.slides.eq(l).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,l=n.activeIndex);var c=n.slides.eq(l).prevAll('[data-swiper-slide-index="'+e.realIndex+'"]').eq(0).index(),u=n.slides.eq(l).nextAll('[data-swiper-slide-index="'+e.realIndex+'"]').eq(0).index();a=void 0===c?u:void 0===u?c:u-l==l-c?l:u-l<l-c?u:c,s=e.activeIndex>e.previousIndex?"next":"prev"}else s=(a=e.realIndex)>e.previousIndex?"next":"prev";r&&(a+="next"===s?o:-1*o),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(a)<0&&(n.params.centeredSlides?a=a>l?a-Math.floor(i/2)+1:a+Math.floor(i/2)-1:a>l&&(a=a-i+1),n.slideTo(a,t?0:void 0))}var d=1,h=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(d=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(d=1),d=Math.floor(d),n.slides.removeClass(h),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(var p=0;p<d;p+=1)n.$wrapperEl.children('[data-swiper-slide-index="'+(e.realIndex+p)+'"]').addClass(h);else for(var f=0;f<d;f+=1)n.slides.eq(e.realIndex+f).addClass(h)}}},pt=[Z,G,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}},create:function(){E(this,{mousewheel:{enabled:!1,lastScrollTime:x(),lastEventBeforeSnap:void 0,recentWheelEvents:[],enable:X.enable,disable:X.disable,handle:X.handle,handleMouseEnter:X.handleMouseEnter,handleMouseLeave:X.handleMouseLeave,animateSlider:X.animateSlider,releaseScroll:X.releaseScroll}})},on:{init:function(t){!t.params.mousewheel.enabled&&t.params.cssMode&&t.mousewheel.disable(),t.params.mousewheel.enabled&&t.mousewheel.enable()},destroy:function(t){t.params.cssMode&&t.mousewheel.enable(),t.mousewheel.enabled&&t.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){E(this,{navigation:e({},K)})},on:{init:function(t){t.navigation.init(),t.navigation.update()},toEdge:function(t){t.navigation.update()},fromEdge:function(t){t.navigation.update()},destroy:function(t){t.navigation.destroy()},click:function(t,e){var n=t.navigation,i=n.$nextEl,o=n.$prevEl,r=e.target;if(t.params.navigation.hideOnClick&&!g(r).is(o)&&!g(r).is(i)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===r||t.pagination.el.contains(r)))return;var a;i?a=i.hasClass(t.params.navigation.hiddenClass):o&&(a=o.hasClass(t.params.navigation.hiddenClass)),!0===a?t.emit("navigationShow"):t.emit("navigationHide"),i&&i.toggleClass(t.params.navigation.hiddenClass),o&&o.toggleClass(t.params.navigation.hiddenClass)}}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(t){return t},formatFractionTotal:function(t){return t},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){E(this,{pagination:e({dynamicBulletIndex:0},J)})},on:{init:function(t){t.pagination.init(),t.pagination.render(),t.pagination.update()},activeIndexChange:function(t){(t.params.loop||void 0===t.snapIndex)&&t.pagination.update()},snapIndexChange:function(t){t.params.loop||t.pagination.update()},slidesLengthChange:function(t){t.params.loop&&(t.pagination.render(),t.pagination.update())},snapGridLengthChange:function(t){t.params.loop||(t.pagination.render(),t.pagination.update())},destroy:function(t){t.pagination.destroy()},click:function(t,e){var n=e.target;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!g(n).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&n===t.navigation.nextEl||t.navigation.prevEl&&n===t.navigation.prevEl))return;!0===t.pagination.$el.hasClass(t.params.pagination.hiddenClass)?t.emit("paginationShow"):t.emit("paginationHide"),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass)}}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){E(this,{scrollbar:e({isTouched:!1,timeout:null,dragTimeout:null},Q)})},on:{init:function(t){t.scrollbar.init(),t.scrollbar.updateSize(),t.scrollbar.setTranslate()},update:function(t){t.scrollbar.updateSize()},resize:function(t){t.scrollbar.updateSize()},observerUpdate:function(t){t.scrollbar.updateSize()},setTranslate:function(t){t.scrollbar.setTranslate()},setTransition:function(t,e){t.scrollbar.setTransition(e)},destroy:function(t){t.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){E(this,{parallax:e({},tt)})},on:{beforeInit:function(t){t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},init:function(t){t.params.parallax.enabled&&t.parallax.setTranslate()},setTranslate:function(t){t.params.parallax.enabled&&t.parallax.setTranslate()},setTransition:function(t,e){t.params.parallax.enabled&&t.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var t=this;E(t,{zoom:e({enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}},et)});var n=1;Object.defineProperty(t.zoom,"scale",{get:function(){return n},set:function(e){if(n!==e){var i=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,o=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,i,o)}n=e}})},on:{init:function(t){t.params.zoom.enabled&&t.zoom.enable()},destroy:function(t){t.zoom.disable()},touchStart:function(t,e){t.zoom.enabled&&t.zoom.onTouchStart(e)},touchEnd:function(t,e){t.zoom.enabled&&t.zoom.onTouchEnd(e)},doubleTap:function(t,e){!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd:function(t){t.zoom.enabled&&t.params.zoom.enabled&&t.zoom.onTransitionEnd()},slideChange:function(t){t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&t.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){E(this,{lazy:e({initialImageLoaded:!1},nt)})},on:{beforeInit:function(t){t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)},init:function(t){t.params.lazy.enabled&&!t.params.loop&&0===t.params.initialSlide&&(t.params.lazy.checkInView?t.lazy.checkInViewOnLoad():t.lazy.load())},scroll:function(t){t.params.freeMode&&!t.params.freeModeSticky&&t.lazy.load()},"scrollbarDragMove resize _freeModeNoMomentumRelease":function(t){t.params.lazy.enabled&&t.lazy.load()},transitionStart:function(t){t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!t.lazy.initialImageLoaded)&&t.lazy.load()},transitionEnd:function(t){t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&t.lazy.load()},slideChange:function(t){t.params.lazy.enabled&&t.params.cssMode&&t.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){E(this,{controller:e({control:this.params.controller.control},it)})},on:{update:function(t){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},resize:function(t){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},observerUpdate:function(t){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},setTranslate:function(t,e,n){t.controller.control&&t.controller.setTranslate(e,n)},setTransition:function(t,e,n){t.controller.control&&t.controller.setTransition(e,n)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group"}},create:function(){E(this,{a11y:e({},ot,{liveRegion:g('<span class="'+this.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')})})},on:{afterInit:function(t){t.params.a11y.enabled&&(t.a11y.init(),t.a11y.updateNavigation())},toEdge:function(t){t.params.a11y.enabled&&t.a11y.updateNavigation()},fromEdge:function(t){t.params.a11y.enabled&&t.a11y.updateNavigation()},paginationUpdate:function(t){t.params.a11y.enabled&&t.a11y.updatePagination()},destroy:function(t){t.params.a11y.enabled&&t.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,root:"",replaceState:!1,key:"slides"}},create:function(){E(this,{history:e({},rt)})},on:{init:function(t){t.params.history.enabled&&t.history.init()},destroy:function(t){t.params.history.enabled&&t.history.destroy()},"transitionEnd _freeModeNoMomentumRelease":function(t){t.history.initialized&&t.history.setHistory(t.params.history.key,t.activeIndex)},slideChange:function(t){t.history.initialized&&t.params.cssMode&&t.history.setHistory(t.params.history.key,t.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){E(this,{hashNavigation:e({initialized:!1},at)})},on:{init:function(t){t.params.hashNavigation.enabled&&t.hashNavigation.init()},destroy:function(t){t.params.hashNavigation.enabled&&t.hashNavigation.destroy()},"transitionEnd _freeModeNoMomentumRelease":function(t){t.hashNavigation.initialized&&t.hashNavigation.setHash()},slideChange:function(t){t.hashNavigation.initialized&&t.params.cssMode&&t.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){E(this,{autoplay:e({},st,{running:!1,paused:!1})})},on:{init:function(t){t.params.autoplay.enabled&&(t.autoplay.start(),r().addEventListener("visibilitychange",t.autoplay.onVisibilityChange))},beforeTransitionStart:function(t,e,n){t.autoplay.running&&(n||!t.params.autoplay.disableOnInteraction?t.autoplay.pause(e):t.autoplay.stop())},sliderFirstMove:function(t){t.autoplay.running&&(t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause())},touchEnd:function(t){t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&t.autoplay.run()},destroy:function(t){t.autoplay.running&&t.autoplay.stop(),r().removeEventListener("visibilitychange",t.autoplay.onVisibilityChange)}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){E(this,{fadeEffect:e({},lt)})},on:{beforeInit:function(t){if("fade"===t.params.effect){t.classNames.push(t.params.containerModifierClass+"fade");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};S(t.params,e),S(t.originalParams,e)}},setTranslate:function(t){"fade"===t.params.effect&&t.fadeEffect.setTranslate()},setTransition:function(t,e){"fade"===t.params.effect&&t.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){E(this,{cubeEffect:e({},ct)})},on:{beforeInit:function(t){if("cube"===t.params.effect){t.classNames.push(t.params.containerModifierClass+"cube"),t.classNames.push(t.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};S(t.params,e),S(t.originalParams,e)}},setTranslate:function(t){"cube"===t.params.effect&&t.cubeEffect.setTranslate()},setTransition:function(t,e){"cube"===t.params.effect&&t.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){E(this,{flipEffect:e({},ut)})},on:{beforeInit:function(t){if("flip"===t.params.effect){t.classNames.push(t.params.containerModifierClass+"flip"),t.classNames.push(t.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};S(t.params,e),S(t.originalParams,e)}},setTranslate:function(t){"flip"===t.params.effect&&t.flipEffect.setTranslate()},setTransition:function(t,e){"flip"===t.params.effect&&t.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create:function(){E(this,{coverflowEffect:e({},dt)})},on:{beforeInit:function(t){"coverflow"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"coverflow"),t.classNames.push(t.params.containerModifierClass+"3d"),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},setTranslate:function(t){"coverflow"===t.params.effect&&t.coverflowEffect.setTranslate()},setTransition:function(t,e){"coverflow"===t.params.effect&&t.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){E(this,{thumbs:e({swiper:null,initialized:!1},ht)})},on:{beforeInit:function(t){var e=t.params.thumbs;e&&e.swiper&&(t.thumbs.init(),t.thumbs.update(!0))},slideChange:function(t){t.thumbs.swiper&&t.thumbs.update()},update:function(t){t.thumbs.swiper&&t.thumbs.update()},resize:function(t){t.thumbs.swiper&&t.thumbs.update()},observerUpdate:function(t){t.thumbs.swiper&&t.thumbs.update()},setTransition:function(t,e){var n=t.thumbs.swiper;n&&n.setTransition(e)},beforeDestroy:function(t){var e=t.thumbs.swiper;e&&t.thumbs.swiperCreated&&e&&e.destroy()}}}];return V.use(pt),V})),function(){"use strict";function t(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function e(t){return t[t.length-1]}function n(t,...e){return e.forEach((e=>{t.includes(e)||t.push(e)})),t}function i(t,e){return t?t.split(e):[]}function o(t,e,n){return(void 0===e||t>=e)&&(void 0===n||t<=n)}function r(t,e,n){return t<e?e:t>n?n:t}function a(t,e,n={},i=0,o=""){o+=`<${Object.keys(n).reduce(((t,e)=>{let o=n[e];return"function"==typeof o&&(o=o(i)),`${t} ${e}="${o}"`}),t)}></${t}>`;const r=i+1;return r<e?a(t,e,n,r,o):o}function s(t){return t.replace(/>\s+/g,">").replace(/\s+</,"<")}function l(t){return new Date(t).setHours(0,0,0,0)}function c(){return(new Date).setHours(0,0,0,0)}function u(...t){switch(t.length){case 0:return c();case 1:return l(t[0])}const e=new Date(0);return e.setFullYear(...t),e.setHours(0,0,0,0)}function d(t,e){const n=new Date(t);return n.setDate(n.getDate()+e)}function h(t,e){const n=new Date(t),i=n.getMonth()+e;let o=i%12;o<0&&(o+=12);const r=n.setMonth(i);return n.getMonth()!==o?n.setDate(0):r}function p(t,e){const n=new Date(t),i=n.getMonth(),o=n.setFullYear(n.getFullYear()+e);return 1===i&&2===n.getMonth()?n.setDate(0):o}function f(t,e){return(t-e+7)%7}function m(t,e,n=0){const i=new Date(t).getDay();return d(t,f(e,n)-f(i,n))}function g(t,e){const n=new Date(t).getFullYear();return Math.floor(n/e)*e}const v=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,y=/[\s!-/:-@[-`{-~年月日]+/;let _={};const b={y:(t,e)=>new Date(t).setFullYear(parseInt(e,10)),m(t,e,n){const i=new Date(t);let o=parseInt(e,10)-1;if(isNaN(o)){if(!e)return NaN;const t=e.toLowerCase(),i=e=>e.toLowerCase().startsWith(t);if(o=n.monthsShort.findIndex(i),o<0&&(o=n.months.findIndex(i)),o<0)return NaN}return i.setMonth(o),i.getMonth()!==x(o)?i.setDate(0):i.getTime()},d:(t,e)=>new Date(t).setDate(parseInt(e,10))},w={d:t=>t.getDate(),dd:t=>T(t.getDate(),2),D:(t,e)=>e.daysShort[t.getDay()],DD:(t,e)=>e.days[t.getDay()],m:t=>t.getMonth()+1,mm:t=>T(t.getMonth()+1,2),M:(t,e)=>e.monthsShort[t.getMonth()],MM:(t,e)=>e.months[t.getMonth()],y:t=>t.getFullYear(),yy:t=>T(t.getFullYear(),2).slice(-2),yyyy:t=>T(t.getFullYear(),4)};function x(t){return t>-1?t%12:x(t+12)}function T(t,e){return t.toString().padStart(e,"0")}function C(t){if("string"!=typeof t)throw new Error("Invalid date format.");if(t in _)return _[t];const n=t.split(v),i=t.match(new RegExp(v,"g"));if(0===n.length||!i)throw new Error("Invalid date format.");const o=i.map((t=>w[t])),r=Object.keys(b).reduce(((t,e)=>(i.find((t=>"D"!==t[0]&&t[0].toLowerCase()===e))&&t.push(e),t)),[]);return _[t]={parser(t,e){const n=t.split(y).reduce(((t,e,n)=>{if(e.length>0&&i[n]){const o=i[n][0];"M"===o?t.m=e:"D"!==o&&(t[o]=e)}return t}),{});return r.reduce(((t,i)=>{const o=b[i](t,n[i],e);return isNaN(o)?t:o}),c())},formatter:(t,i)=>o.reduce(((e,o,r)=>e+`${n[r]}${o(t,i)}`),"")+e(n)}}function S(t,e,n){if(t instanceof Date||"number"==typeof t){const e=l(t);return isNaN(e)?void 0:e}if(t){if("today"===t)return c();if(e&&e.toValue){const i=e.toValue(t,e,n);return isNaN(i)?void 0:l(i)}return C(e).parser(t,n)}}function E(t,e,n){if(isNaN(t)||!t&&0!==t)return"";const i="number"==typeof t?new Date(t):t;return e.toDisplay?e.toDisplay(i,e,n):C(e).formatter(i,n)}const D=new WeakMap,{addEventListener:k,removeEventListener:A}=EventTarget.prototype;function M(t,e){let n=D.get(t);n||(n=[],D.set(t,n)),e.forEach((t=>{k.call(...t),n.push(t)}))}function L(t){let e=D.get(t);e&&(e.forEach((t=>{A.call(...t)})),D.delete(t))}if(!Event.prototype.composedPath){const t=(e,n=[])=>{let i;return n.push(e),e.parentNode?i=e.parentNode:e.host?i=e.host:e.defaultView&&(i=e.defaultView),i?t(i,n):n};Event.prototype.composedPath=function(){return t(this.target)}}function P(t,e,n,i=0){const o=t[i];return e(o)?o:o!==n&&o.parentElement?P(t,e,n,i+1):void 0}function O(t,e){const n="function"==typeof e?e:t=>t.matches(e);return P(t.composedPath(),n,t.currentTarget)}const I={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM y"}},N={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,calendarWeeks:!1,clearBtn:!1,dateDelimiter:",",datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,format:"mm/dd/yyyy",language:"en",maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:"»",orientation:"auto",pickLevel:0,prevArrow:"«",showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:"",todayBtn:!1,todayBtnMode:0,todayHighlight:!1,updateOnBlur:!0,weekStart:0},z=document.createRange();function j(t){return z.createContextualFragment(t)}function B(t){"none"!==t.style.display&&(t.style.display&&(t.dataset.styleDisplay=t.style.display),t.style.display="none")}function R(t){"none"===t.style.display&&(t.dataset.styleDisplay?(t.style.display=t.dataset.styleDisplay,delete t.dataset.styleDisplay):t.style.display="")}function H(t){t.firstChild&&(t.removeChild(t.firstChild),H(t))}const{language:$,format:F,weekStart:W}=N;function q(t,e){return t.length<6&&e>=0&&e<7?n(t,e):t}function V(t){return(t+6)%7}function Y(t,e,n,i){const o=S(t,e,n);return void 0!==o?o:i}function Z(t,e,n=3){const i=parseInt(t,10);return i>=0&&i<=n?i:e}function U(e,i){const o=Object.assign({},e),r={},a=i.constructor.locales;let{format:s,language:l,locale:c,maxDate:d,maxView:h,minDate:p,pickLevel:f,startView:m,weekStart:g}=i.config||{};if(o.language){let t;if(o.language!==l&&(a[o.language]?t=o.language:(t=o.language.split("-")[0],void 0===a[t]&&(t=!1))),delete o.language,t){l=r.language=t;const e=c||a[$];c=Object.assign({format:F,weekStart:W},a[$]),l!==$&&Object.assign(c,a[l]),r.locale=c,s===e.format&&(s=r.format=c.format),g===e.weekStart&&(g=r.weekStart=c.weekStart,r.weekEnd=V(c.weekStart))}}if(o.format){const t="function"==typeof o.format.toDisplay,e="function"==typeof o.format.toValue,n=v.test(o.format);(t&&e||n)&&(s=r.format=o.format),delete o.format}let y=p,_=d;if(void 0!==o.minDate&&(y=null===o.minDate?u(0,0,1):Y(o.minDate,s,c,y),delete o.minDate),void 0!==o.maxDate&&(_=null===o.maxDate?void 0:Y(o.maxDate,s,c,_),delete o.maxDate),_<y?(p=r.minDate=_,d=r.maxDate=y):(p!==y&&(p=r.minDate=y),d!==_&&(d=r.maxDate=_)),o.datesDisabled&&(r.datesDisabled=o.datesDisabled.reduce(((t,e)=>{const i=S(e,s,c);return void 0!==i?n(t,i):t}),[]),delete o.datesDisabled),void 0!==o.defaultViewDate){const t=S(o.defaultViewDate,s,c);void 0!==t&&(r.defaultViewDate=t),delete o.defaultViewDate}if(void 0!==o.weekStart){const t=Number(o.weekStart)%7;isNaN(t)||(g=r.weekStart=t,r.weekEnd=V(t)),delete o.weekStart}if(o.daysOfWeekDisabled&&(r.daysOfWeekDisabled=o.daysOfWeekDisabled.reduce(q,[]),delete o.daysOfWeekDisabled),o.daysOfWeekHighlighted&&(r.daysOfWeekHighlighted=o.daysOfWeekHighlighted.reduce(q,[]),delete o.daysOfWeekHighlighted),void 0!==o.maxNumberOfDates){const t=parseInt(o.maxNumberOfDates,10);t>=0&&(r.maxNumberOfDates=t,r.multidate=1!==t),delete o.maxNumberOfDates}o.dateDelimiter&&(r.dateDelimiter=String(o.dateDelimiter),delete o.dateDelimiter);let b=f;void 0!==o.pickLevel&&(b=Z(o.pickLevel,2),delete o.pickLevel),b!==f&&(f=r.pickLevel=b);let w=h;void 0!==o.maxView&&(w=Z(o.maxView,h),delete o.maxView),w=f>w?f:w,w!==h&&(h=r.maxView=w);let x=m;if(void 0!==o.startView&&(x=Z(o.startView,x),delete o.startView),x<f?x=f:x>h&&(x=h),x!==m&&(r.startView=x),o.prevArrow){const t=j(o.prevArrow);t.childNodes.length>0&&(r.prevArrow=t.childNodes),delete o.prevArrow}if(o.nextArrow){const t=j(o.nextArrow);t.childNodes.length>0&&(r.nextArrow=t.childNodes),delete o.nextArrow}if(void 0!==o.disableTouchKeyboard&&(r.disableTouchKeyboard="ontouchstart"in document&&!!o.disableTouchKeyboard,delete o.disableTouchKeyboard),o.orientation){const t=o.orientation.toLowerCase().split(/\s+/g);r.orientation={x:t.find((t=>"left"===t||"right"===t))||"auto",y:t.find((t=>"top"===t||"bottom"===t))||"auto"},delete o.orientation}if(void 0!==o.todayBtnMode){switch(o.todayBtnMode){case 0:case 1:r.todayBtnMode=o.todayBtnMode}delete o.todayBtnMode}return Object.keys(o).forEach((e=>{void 0!==o[e]&&t(N,e)&&(r[e]=o[e])})),r}const G=s('<div class="datepicker">\n  <div class="datepicker-picker">\n    <div class="datepicker-header">\n      <div class="datepicker-title"></div>\n      <div class="datepicker-controls">\n        <button type="button" class="%buttonClass% prev-btn"></button>\n        <button type="button" class="%buttonClass% view-switch"></button>\n        <button type="button" class="%buttonClass% next-btn"></button>\n      </div>\n    </div>\n    <div class="datepicker-main"></div>\n    <div class="datepicker-footer">\n      <div class="datepicker-controls">\n        <button type="button" class="%buttonClass% today-btn"></button>\n        <button type="button" class="%buttonClass% clear-btn"></button>\n      </div>\n    </div>\n  </div>\n</div>'),X=s(`<div class="days">\n  <div class="days-of-week">${a("span",7,{class:"dow"})}</div>\n  <div class="datepicker-grid">${a("span",42)}</div>\n</div>`),K=s(`<div class="calendar-weeks">\n  <div class="days-of-week"><span class="dow"></span></div>\n  <div class="weeks">${a("span",6,{class:"week"})}</div>\n</div>`);class J{constructor(t,e){Object.assign(this,e,{picker:t,element:j('<div class="datepicker-view"></div>').firstChild,selected:[]}),this.init(this.picker.datepicker.config)}init(t){void 0!==t.pickLevel&&(this.isMinView=this.id===t.pickLevel),this.setOptions(t),this.updateFocus(),this.updateSelection()}performBeforeHook(t,e,i){let o=this.beforeShow(new Date(i));switch(typeof o){case"boolean":o={enabled:o};break;case"string":o={classes:o}}if(o){if(!1===o.enabled&&(t.classList.add("disabled"),n(this.disabled,e)),o.classes){const i=o.classes.split(/\s+/);t.classList.add(...i),i.includes("disabled")&&n(this.disabled,e)}o.content&&function(t,e){H(t),e instanceof DocumentFragment?t.appendChild(e):"string"==typeof e?t.appendChild(j(e)):"function"==typeof e.forEach&&e.forEach((e=>{t.appendChild(e)}))}(t,o.content)}}}class Q extends J{constructor(t){super(t,{id:0,name:"days",cellClass:"day"})}init(t,e=!0){if(e){const t=j(X).firstChild;this.dow=t.firstChild,this.grid=t.lastChild,this.element.appendChild(t)}super.init(t)}setOptions(e){let n;if(t(e,"minDate")&&(this.minDate=e.minDate),t(e,"maxDate")&&(this.maxDate=e.maxDate),e.datesDisabled&&(this.datesDisabled=e.datesDisabled),e.daysOfWeekDisabled&&(this.daysOfWeekDisabled=e.daysOfWeekDisabled,n=!0),e.daysOfWeekHighlighted&&(this.daysOfWeekHighlighted=e.daysOfWeekHighlighted),void 0!==e.todayHighlight&&(this.todayHighlight=e.todayHighlight),void 0!==e.weekStart&&(this.weekStart=e.weekStart,this.weekEnd=e.weekEnd,n=!0),e.locale){const t=this.locale=e.locale;this.dayNames=t.daysMin,this.switchLabelFormat=t.titleFormat,n=!0}if(void 0!==e.beforeShowDay&&(this.beforeShow="function"==typeof e.beforeShowDay?e.beforeShowDay:void 0),void 0!==e.calendarWeeks)if(e.calendarWeeks&&!this.calendarWeeks){const t=j(K).firstChild;this.calendarWeeks={element:t,dow:t.firstChild,weeks:t.lastChild},this.element.insertBefore(t,this.element.firstChild)}else this.calendarWeeks&&!e.calendarWeeks&&(this.element.removeChild(this.calendarWeeks.element),this.calendarWeeks=null);void 0!==e.showDaysOfWeek&&(e.showDaysOfWeek?(R(this.dow),this.calendarWeeks&&R(this.calendarWeeks.dow)):(B(this.dow),this.calendarWeeks&&B(this.calendarWeeks.dow))),n&&Array.from(this.dow.children).forEach(((t,e)=>{const n=(this.weekStart+e)%7;t.textContent=this.dayNames[n],t.className=this.daysOfWeekDisabled.includes(n)?"dow disabled":"dow"}))}updateFocus(){const t=new Date(this.picker.viewDate),e=t.getFullYear(),n=t.getMonth(),i=u(e,n,1),o=m(i,this.weekStart,this.weekStart);this.first=i,this.last=u(e,n+1,0),this.start=o,this.focused=this.picker.viewDate}updateSelection(){const{dates:t,rangepicker:e}=this.picker.datepicker;this.selected=t,e&&(this.range=e.dates)}render(){this.today=this.todayHighlight?c():void 0,this.disabled=[...this.datesDisabled];const t=E(this.focused,this.switchLabelFormat,this.locale);if(this.picker.setViewSwitchLabel(t),this.picker.setPrevBtnDisabled(this.first<=this.minDate),this.picker.setNextBtnDisabled(this.last>=this.maxDate),this.calendarWeeks){const t=m(this.first,1,1);Array.from(this.calendarWeeks.weeks.children).forEach(((e,n)=>{e.textContent=function(t){const e=m(t,4,1),n=m(new Date(e).setMonth(0,4),4,1);return Math.round((e-n)/6048e5)+1}(d(t,7*n))}))}Array.from(this.grid.children).forEach(((t,e)=>{const i=t.classList,o=d(this.start,e),r=new Date(o),a=r.getDay();if(t.className=`datepicker-cell ${this.cellClass}`,t.dataset.date=o,t.textContent=r.getDate(),o<this.first?i.add("prev"):o>this.last&&i.add("next"),this.today===o&&i.add("today"),(o<this.minDate||o>this.maxDate||this.disabled.includes(o))&&i.add("disabled"),this.daysOfWeekDisabled.includes(a)&&(i.add("disabled"),n(this.disabled,o)),this.daysOfWeekHighlighted.includes(a)&&i.add("highlighted"),this.range){const[t,e]=this.range;o>t&&o<e&&i.add("range"),o===t&&i.add("range-start"),o===e&&i.add("range-end")}this.selected.includes(o)&&i.add("selected"),o===this.focused&&i.add("focused"),this.beforeShow&&this.performBeforeHook(t,o,o)}))}refresh(){const[t,e]=this.range||[];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach((t=>{t.classList.remove("range","range-start","range-end","selected","focused")})),Array.from(this.grid.children).forEach((n=>{const i=Number(n.dataset.date),o=n.classList;i>t&&i<e&&o.add("range"),i===t&&o.add("range-start"),i===e&&o.add("range-end"),this.selected.includes(i)&&o.add("selected"),i===this.focused&&o.add("focused")}))}refreshFocus(){const t=Math.round((this.focused-this.start)/864e5);this.grid.querySelectorAll(".focused").forEach((t=>{t.classList.remove("focused")})),this.grid.children[t].classList.add("focused")}}function tt(t,e){if(!t||!t[0]||!t[1])return;const[[n,i],[o,r]]=t;return n>e||o<e?void 0:[n===e?i:-1,o===e?r:12]}class et extends J{constructor(t){super(t,{id:1,name:"months",cellClass:"month"})}init(t,e=!0){e&&(this.grid=this.element,this.element.classList.add("months","datepicker-grid"),this.grid.appendChild(j(a("span",12,{"data-month":t=>t})))),super.init(t)}setOptions(e){if(e.locale&&(this.monthNames=e.locale.monthsShort),t(e,"minDate"))if(void 0===e.minDate)this.minYear=this.minMonth=this.minDate=void 0;else{const t=new Date(e.minDate);this.minYear=t.getFullYear(),this.minMonth=t.getMonth(),this.minDate=t.setDate(1)}if(t(e,"maxDate"))if(void 0===e.maxDate)this.maxYear=this.maxMonth=this.maxDate=void 0;else{const t=new Date(e.maxDate);this.maxYear=t.getFullYear(),this.maxMonth=t.getMonth(),this.maxDate=u(this.maxYear,this.maxMonth+1,0)}void 0!==e.beforeShowMonth&&(this.beforeShow="function"==typeof e.beforeShowMonth?e.beforeShowMonth:void 0)}updateFocus(){const t=new Date(this.picker.viewDate);this.year=t.getFullYear(),this.focused=t.getMonth()}updateSelection(){const{dates:t,rangepicker:e}=this.picker.datepicker;this.selected=t.reduce(((t,e)=>{const i=new Date(e),o=i.getFullYear(),r=i.getMonth();return void 0===t[o]?t[o]=[r]:n(t[o],r),t}),{}),e&&e.dates&&(this.range=e.dates.map((t=>{const e=new Date(t);return isNaN(e)?void 0:[e.getFullYear(),e.getMonth()]})))}render(){this.disabled=[],this.picker.setViewSwitchLabel(this.year),this.picker.setPrevBtnDisabled(this.year<=this.minYear),this.picker.setNextBtnDisabled(this.year>=this.maxYear);const t=this.selected[this.year]||[],e=this.year<this.minYear||this.year>this.maxYear,n=this.year===this.minYear,i=this.year===this.maxYear,o=tt(this.range,this.year);Array.from(this.grid.children).forEach(((r,a)=>{const s=r.classList,l=u(this.year,a,1);if(r.className=`datepicker-cell ${this.cellClass}`,this.isMinView&&(r.dataset.date=l),r.textContent=this.monthNames[a],(e||n&&a<this.minMonth||i&&a>this.maxMonth)&&s.add("disabled"),o){const[t,e]=o;a>t&&a<e&&s.add("range"),a===t&&s.add("range-start"),a===e&&s.add("range-end")}t.includes(a)&&s.add("selected"),a===this.focused&&s.add("focused"),this.beforeShow&&this.performBeforeHook(r,a,l)}))}refresh(){const t=this.selected[this.year]||[],[e,n]=tt(this.range,this.year)||[];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach((t=>{t.classList.remove("range","range-start","range-end","selected","focused")})),Array.from(this.grid.children).forEach(((i,o)=>{const r=i.classList;o>e&&o<n&&r.add("range"),o===e&&r.add("range-start"),o===n&&r.add("range-end"),t.includes(o)&&r.add("selected"),o===this.focused&&r.add("focused")}))}refreshFocus(){this.grid.querySelectorAll(".focused").forEach((t=>{t.classList.remove("focused")})),this.grid.children[this.focused].classList.add("focused")}}class nt extends J{constructor(t,e){super(t,e)}init(t,e=!0){var n;e&&(this.navStep=10*this.step,this.beforeShowOption=`beforeShow${n=this.cellClass,[...n].reduce(((t,e,n)=>t+(n?e:e.toUpperCase())),"")}`,this.grid=this.element,this.element.classList.add(this.name,"datepicker-grid"),this.grid.appendChild(j(a("span",12)))),super.init(t)}setOptions(e){if(t(e,"minDate")&&(void 0===e.minDate?this.minYear=this.minDate=void 0:(this.minYear=g(e.minDate,this.step),this.minDate=u(this.minYear,0,1))),t(e,"maxDate")&&(void 0===e.maxDate?this.maxYear=this.maxDate=void 0:(this.maxYear=g(e.maxDate,this.step),this.maxDate=u(this.maxYear,11,31))),void 0!==e[this.beforeShowOption]){const t=e[this.beforeShowOption];this.beforeShow="function"==typeof t?t:void 0}}updateFocus(){const t=new Date(this.picker.viewDate),e=g(t,this.navStep),n=e+9*this.step;this.first=e,this.last=n,this.start=e-this.step,this.focused=g(t,this.step)}updateSelection(){const{dates:t,rangepicker:e}=this.picker.datepicker;this.selected=t.reduce(((t,e)=>n(t,g(e,this.step))),[]),e&&e.dates&&(this.range=e.dates.map((t=>{if(void 0!==t)return g(t,this.step)})))}render(){this.disabled=[],this.picker.setViewSwitchLabel(`${this.first}-${this.last}`),this.picker.setPrevBtnDisabled(this.first<=this.minYear),this.picker.setNextBtnDisabled(this.last>=this.maxYear),Array.from(this.grid.children).forEach(((t,e)=>{const n=t.classList,i=this.start+e*this.step,o=u(i,0,1);if(t.className=`datepicker-cell ${this.cellClass}`,this.isMinView&&(t.dataset.date=o),t.textContent=t.dataset.year=i,0===e?n.add("prev"):11===e&&n.add("next"),(i<this.minYear||i>this.maxYear)&&n.add("disabled"),this.range){const[t,e]=this.range;i>t&&i<e&&n.add("range"),i===t&&n.add("range-start"),i===e&&n.add("range-end")}this.selected.includes(i)&&n.add("selected"),i===this.focused&&n.add("focused"),this.beforeShow&&this.performBeforeHook(t,i,o)}))}refresh(){const[t,e]=this.range||[];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach((t=>{t.classList.remove("range","range-start","range-end","selected","focused")})),Array.from(this.grid.children).forEach((n=>{const i=Number(n.textContent),o=n.classList;i>t&&i<e&&o.add("range"),i===t&&o.add("range-start"),i===e&&o.add("range-end"),this.selected.includes(i)&&o.add("selected"),i===this.focused&&o.add("focused")}))}refreshFocus(){const t=Math.round((this.focused-this.start)/this.step);this.grid.querySelectorAll(".focused").forEach((t=>{t.classList.remove("focused")})),this.grid.children[t].classList.add("focused")}}function it(t,e){const n={date:t.getDate(),viewDate:new Date(t.picker.viewDate),viewId:t.picker.currentView.id,datepicker:t};t.element.dispatchEvent(new CustomEvent(e,{detail:n}))}function ot(t,e){const{minDate:n,maxDate:i}=t.config,{currentView:o,viewDate:a}=t.picker;let s;switch(o.id){case 0:s=h(a,e);break;case 1:s=p(a,e);break;default:s=p(a,e*o.navStep)}s=r(s,n,i),t.picker.changeFocus(s).render()}function rt(t){const e=t.picker.currentView.id;e!==t.config.maxView&&t.picker.changeView(e+1).render()}function at(t){t.config.updateOnBlur?t.update({autohide:!0}):(t.refresh("input"),t.hide())}function st(t,e){const n=t.picker,i=new Date(n.viewDate),o=n.currentView.id,r=1===o?h(i,e-i.getMonth()):p(i,e-i.getFullYear());n.changeFocus(r).changeView(o-1).render()}function lt(t){const e=t.picker,n=c();if(1===t.config.todayBtnMode){if(t.config.autohide)return void t.setDate(n);t.setDate(n,{render:!1}),e.update()}e.viewDate!==n&&e.changeFocus(n),e.changeView(0).render()}function ct(t){t.setDate({clear:!0})}function ut(t){rt(t)}function dt(t){ot(t,-1)}function ht(t){ot(t,1)}function pt(t,e){const n=O(e,".datepicker-cell");if(!n||n.classList.contains("disabled"))return;const{id:i,isMinView:o}=t.picker.currentView;o?t.setDate(Number(n.dataset.date)):st(t,Number(1===i?n.dataset.month:n.dataset.year))}function ft(t){t.inline||t.config.disableTouchKeyboard||t.inputField.focus()}function mt(e,n){if(void 0!==n.title&&(n.title?(e.controls.title.textContent=n.title,R(e.controls.title)):(e.controls.title.textContent="",B(e.controls.title))),n.prevArrow){const t=e.controls.prevBtn;H(t),n.prevArrow.forEach((e=>{t.appendChild(e.cloneNode(!0))}))}if(n.nextArrow){const t=e.controls.nextBtn;H(t),n.nextArrow.forEach((e=>{t.appendChild(e.cloneNode(!0))}))}if(n.locale&&(e.controls.todayBtn.textContent=n.locale.today,e.controls.clearBtn.textContent=n.locale.clear),void 0!==n.todayBtn&&(n.todayBtn?R(e.controls.todayBtn):B(e.controls.todayBtn)),t(n,"minDate")||t(n,"maxDate")){const{minDate:t,maxDate:n}=e.datepicker.config;e.controls.todayBtn.disabled=!o(c(),t,n)}void 0!==n.clearBtn&&(n.clearBtn?R(e.controls.clearBtn):B(e.controls.clearBtn))}function gt(t){const{dates:n,config:i}=t;return r(n.length>0?e(n):i.defaultViewDate,i.minDate,i.maxDate)}function vt(t,e){const n=new Date(t.viewDate),i=new Date(e),{id:o,year:r,first:a,last:s}=t.currentView,l=i.getFullYear();switch(t.viewDate=e,l!==n.getFullYear()&&it(t.datepicker,"changeYear"),i.getMonth()!==n.getMonth()&&it(t.datepicker,"changeMonth"),o){case 0:return e<a||e>s;case 1:return l!==r;default:return l<a||l>s}}function yt(t){return window.getComputedStyle(t).direction}class _t{constructor(t){this.datepicker=t;const e=G.replace(/%buttonClass%/g,t.config.buttonClass),n=this.element=j(e).firstChild,[i,o,r]=n.firstChild.children,a=i.firstElementChild,[s,l,c]=i.lastElementChild.children,[u,d]=r.firstChild.children,h={title:a,prevBtn:s,viewSwitch:l,nextBtn:c,todayBtn:u,clearBtn:d};this.main=o,this.controls=h;const p=t.inline?"inline":"dropdown";n.classList.add(`datepicker-${p}`),mt(this,t.config),this.viewDate=gt(t),M(t,[[n,"click",ft.bind(null,t),{capture:!0}],[o,"click",pt.bind(null,t)],[h.viewSwitch,"click",ut.bind(null,t)],[h.prevBtn,"click",dt.bind(null,t)],[h.nextBtn,"click",ht.bind(null,t)],[h.todayBtn,"click",lt.bind(null,t)],[h.clearBtn,"click",ct.bind(null,t)]]),this.views=[new Q(this),new et(this),new nt(this,{id:2,name:"years",cellClass:"year",step:1}),new nt(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[t.config.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),t.config.container.appendChild(this.element)}setOptions(t){mt(this,t),this.views.forEach((e=>{e.init(t,!1)})),this.currentView.render()}detach(){this.datepicker.config.container.removeChild(this.element)}show(){if(this.active)return;this.element.classList.add("active"),this.active=!0;const t=this.datepicker;if(!t.inline){const e=yt(t.inputField);e!==yt(t.config.container)?this.element.dir=e:this.element.dir&&this.element.removeAttribute("dir"),this.place(),t.config.disableTouchKeyboard&&t.inputField.blur()}it(t,"show")}hide(){this.active&&(this.datepicker.exitEditMode(),this.element.classList.remove("active"),this.active=!1,it(this.datepicker,"hide"))}place(){const{classList:t,style:e}=this.element,{config:n,inputField:i}=this.datepicker,o=n.container,{width:r,height:a}=this.element.getBoundingClientRect(),{left:s,top:l,width:c}=o.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=i.getBoundingClientRect();let f,m,g,{x:v,y:y}=n.orientation;o===document.body?(f=window.scrollY,m=u+window.scrollX,g=d+f):(f=o.scrollTop,m=u-s,g=d-l+f),"auto"===v&&(m<0?(v="left",m=10):v=m+r>c||"rtl"===yt(i)?"right":"left"),"right"===v&&(m-=r-h),"auto"===y&&(y=g-a<f?"bottom":"top"),"top"===y?g-=a:g+=p,t.remove("datepicker-orient-top","datepicker-orient-bottom","datepicker-orient-right","datepicker-orient-left"),t.add(`datepicker-orient-${y}`,`datepicker-orient-${v}`),e.top=g?`${g}px`:g,e.left=m?`${m}px`:m}setViewSwitchLabel(t){this.controls.viewSwitch.textContent=t}setPrevBtnDisabled(t){this.controls.prevBtn.disabled=t}setNextBtnDisabled(t){this.controls.nextBtn.disabled=t}changeView(t){const e=this.currentView,n=this.views[t];return n.id!==e.id&&(this.currentView=n,this._renderMethod="render",it(this.datepicker,"changeView"),this.main.replaceChild(n.element,e.element)),this}changeFocus(t){return this._renderMethod=vt(this,t)?"render":"refreshFocus",this.views.forEach((t=>{t.updateFocus()})),this}update(){const t=gt(this.datepicker);return this._renderMethod=vt(this,t)?"render":"refresh",this.views.forEach((t=>{t.updateFocus(),t.updateSelection()})),this}render(t=!0){const e=t&&this._renderMethod||"render";delete this._renderMethod,this.currentView[e]()}}function bt(t,e,n,i,r,a){if(o(t,r,a)){if(i(t)){return bt(e(t,n),e,n,i,r,a)}return t}}function wt(t,e,n,i){const o=t.picker,r=o.currentView,a=r.step||1;let s,l,c=o.viewDate;switch(r.id){case 0:c=i?d(c,7*n):e.ctrlKey||e.metaKey?p(c,n):d(c,n),s=d,l=t=>r.disabled.includes(t);break;case 1:c=h(c,i?4*n:n),s=h,l=t=>{const e=new Date(t),{year:n,disabled:i}=r;return e.getFullYear()===n&&i.includes(e.getMonth())};break;default:c=p(c,n*(i?4:1)*a),s=p,l=t=>r.disabled.includes(g(t,a))}c=bt(c,s,n<0?-a:a,l,r.minDate,r.maxDate),void 0!==c&&o.changeFocus(c).render()}function xt(t,e){if("Tab"===e.key)return void at(t);const n=t.picker,{id:i,isMinView:o}=n.currentView;if(n.active)if(t.editMode)switch(e.key){case"Escape":n.hide();break;case"Enter":t.exitEditMode({update:!0,autohide:t.config.autohide});break;default:return}else switch(e.key){case"Escape":n.hide();break;case"ArrowLeft":if(e.ctrlKey||e.metaKey)ot(t,-1);else{if(e.shiftKey)return void t.enterEditMode();wt(t,e,-1,!1)}break;case"ArrowRight":if(e.ctrlKey||e.metaKey)ot(t,1);else{if(e.shiftKey)return void t.enterEditMode();wt(t,e,1,!1)}break;case"ArrowUp":if(e.ctrlKey||e.metaKey)rt(t);else{if(e.shiftKey)return void t.enterEditMode();wt(t,e,-1,!0)}break;case"ArrowDown":if(e.shiftKey&&!e.ctrlKey&&!e.metaKey)return void t.enterEditMode();wt(t,e,1,!0);break;case"Enter":o?t.setDate(n.viewDate):n.changeView(i-1).render();break;case"Backspace":case"Delete":return void t.enterEditMode();default:return void(1!==e.key.length||e.ctrlKey||e.metaKey||t.enterEditMode())}else switch(e.key){case"ArrowDown":case"Escape":n.show();break;case"Enter":t.update();break;default:return}e.preventDefault(),e.stopPropagation()}function Tt(t){t.config.showOnFocus&&!t._showing&&t.show()}function Ct(t,e){const n=e.target;(t.picker.active||t.config.showOnClick)&&(n._active=n===document.activeElement,n._clicking=setTimeout((()=>{delete n._active,delete n._clicking}),2e3))}function St(t,e){const n=e.target;n._clicking&&(clearTimeout(n._clicking),delete n._clicking,n._active&&t.enterEditMode(),delete n._active,t.config.showOnClick&&t.show())}function Et(t,e){e.clipboardData.types.includes("text/plain")&&t.enterEditMode()}function Dt(t,e){const n=t.element;if(n!==document.activeElement)return;const i=t.picker.element;O(e,(t=>t===n||t===i))||at(t)}function kt(t,e){return t.map((t=>E(t,e.format,e.locale))).join(e.dateDelimiter)}function At(t,e,n=!1){const{config:i,dates:r,rangepicker:a}=t;if(0===e.length)return n?[]:void 0;const s=a&&t===a.datepickers[1];let l=e.reduce(((t,e)=>{let n=S(e,i.format,i.locale);if(void 0===n)return t;if(i.pickLevel>0){const t=new Date(n);n=1===i.pickLevel?s?t.setMonth(t.getMonth()+1,0):t.setDate(1):s?t.setFullYear(t.getFullYear()+1,0,0):t.setMonth(0,1)}return!o(n,i.minDate,i.maxDate)||t.includes(n)||i.datesDisabled.includes(n)||i.daysOfWeekDisabled.includes(new Date(n).getDay())||t.push(n),t}),[]);return 0!==l.length?(i.multidate&&!n&&(l=l.reduce(((t,e)=>(r.includes(e)||t.push(e),t)),r.filter((t=>!l.includes(t))))),i.maxNumberOfDates&&l.length>i.maxNumberOfDates?l.slice(-1*i.maxNumberOfDates):l):void 0}function Mt(t,e=3,n=!0){const{config:i,picker:o,inputField:r}=t;if(2&e){const t=o.active?i.pickLevel:i.startView;o.update().changeView(t).render(n)}1&e&&r&&(r.value=kt(t.dates,i))}function Lt(t,e,n){let{clear:i,render:o,autohide:r}=n;void 0===o&&(o=!0),o?void 0===r&&(r=t.config.autohide):r=!1;const a=At(t,e,i);a&&(a.toString()!==t.dates.toString()?(t.dates=a,Mt(t,o?3:1),it(t,"changeDate")):Mt(t,1),r&&t.hide())}class Pt{constructor(t,e={},n){t.datepicker=this,this.element=t;const o=this.config=Object.assign({buttonClass:e.buttonClass&&String(e.buttonClass)||"button",container:document.body,defaultViewDate:c(),maxDate:void 0,minDate:void 0},U(N,this));this._options=e,Object.assign(o,U(e,this));const r=this.inline="INPUT"!==t.tagName;let a,s;if(r)o.container=t,s=i(t.dataset.date,o.dateDelimiter),delete t.dataset.date;else{const n=e.container?document.querySelector(e.container):null;n&&(o.container=n),a=this.inputField=t,a.classList.add("datepicker-input"),s=i(a.value,o.dateDelimiter)}if(n){const t=n.inputs.indexOf(a),e=n.datepickers;if(t<0||t>1||!Array.isArray(e))throw Error("Invalid rangepicker object.");e[t]=this,Object.defineProperty(this,"rangepicker",{get:()=>n})}this.dates=[];const l=At(this,s);l&&l.length>0&&(this.dates=l),a&&(a.value=kt(this.dates,o));const u=this.picker=new _t(this);if(r)this.show();else{const t=Dt.bind(null,this);M(this,[[a,"keydown",xt.bind(null,this)],[a,"focus",Tt.bind(null,this)],[a,"mousedown",Ct.bind(null,this)],[a,"click",St.bind(null,this)],[a,"paste",Et.bind(null,this)],[document,"mousedown",t],[document,"touchstart",t],[window,"resize",u.place.bind(u)]])}}static formatDate(t,e,n){return E(t,e,n&&I[n]||I.en)}static parseDate(t,e,n){return S(t,e,n&&I[n]||I.en)}static get locales(){return I}get active(){return!(!this.picker||!this.picker.active)}get pickerElement(){return this.picker?this.picker.element:void 0}setOptions(t){const e=this.picker,n=U(t,this);Object.assign(this._options,t),Object.assign(this.config,n),e.setOptions(n),Mt(this,3)}show(){if(this.inputField){if(this.inputField.disabled)return;this.inputField!==document.activeElement&&(this._showing=!0,this.inputField.focus(),delete this._showing)}this.picker.show()}hide(){this.inline||(this.picker.hide(),this.picker.update().changeView(this.config.startView).render())}destroy(){return this.hide(),L(this),this.picker.detach(),this.inline||this.inputField.classList.remove("datepicker-input"),delete this.element.datepicker,this}getDate(t){const e=t?e=>E(e,t,this.config.locale):t=>new Date(t);return this.config.multidate?this.dates.map(e):this.dates.length>0?e(this.dates[0]):void 0}setDate(...t){const n=[...t],i={},o=e(t);"object"!=typeof o||Array.isArray(o)||o instanceof Date||!o||Object.assign(i,n.pop());Lt(this,Array.isArray(n[0])?n[0]:n,i)}update(t){if(this.inline)return;const e={clear:!0,autohide:!(!t||!t.autohide)};Lt(this,i(this.inputField.value,this.config.dateDelimiter),e)}refresh(t,e=!1){let n;t&&"string"!=typeof t&&(e=t,t=void 0),n="picker"===t?2:"input"===t?1:3,Mt(this,n,!e)}enterEditMode(){this.inline||!this.picker.active||this.editMode||(this.editMode=!0,this.inputField.classList.add("in-edit"))}exitEditMode(t){if(this.inline||!this.editMode)return;const e=Object.assign({update:!1},t);delete this.editMode,this.inputField.classList.remove("in-edit"),e.update&&this.update(e)}}function Ot(t){const e=Object.assign({},t);return delete e.inputs,delete e.allowOneSidedRange,delete e.maxNumberOfDates,e}function It(t,e,n,i){M(t,[[n,"changeDate",e]]),new Pt(n,i,t)}function Nt(t,e){if(t._updating)return;t._updating=!0;const n=e.target;if(void 0===n.datepicker)return;const i=t.datepickers,o={render:!1},r=t.inputs.indexOf(n),a=0===r?1:0,s=i[r].dates[0],l=i[a].dates[0];void 0!==s&&void 0!==l?0===r&&s>l?(i[0].setDate(l,o),i[1].setDate(s,o)):1===r&&s<l&&(i[0].setDate(s,o),i[1].setDate(l,o)):t.allowOneSidedRange||void 0===s&&void 0===l||(o.clear=!0,i[a].setDate(i[r].dates,o)),i[0].picker.update().render(),i[1].picker.update().render(),delete t._updating}window.Datepicker=Pt,window.DateRangePicker=class{constructor(t,e={}){const n=Array.isArray(e.inputs)?e.inputs:Array.from(t.querySelectorAll("input"));if(n.length<2)return;t.rangepicker=this,this.element=t,this.inputs=n.slice(0,2),this.allowOneSidedRange=!!e.allowOneSidedRange;const i=Nt.bind(null,this),o=Ot(e),r=[];Object.defineProperty(this,"datepickers",{get:()=>r}),It(this,i,this.inputs[0],o),It(this,i,this.inputs[1],o),Object.freeze(r),r[0].dates.length>0?Nt(this,{target:this.inputs[0]}):r[1].dates.length>0&&Nt(this,{target:this.inputs[1]})}get dates(){return 2===this.datepickers.length?[this.datepickers[0].dates[0],this.datepickers[1].dates[0]]:void 0}setOptions(t){this.allowOneSidedRange=!!t.allowOneSidedRange;const e=Ot(t);this.datepickers[0].setOptions(e),this.datepickers[1].setOptions(e)}destroy(){this.datepickers[0].destroy(),this.datepickers[1].destroy(),L(this),delete this.element.rangepicker}getDates(t){const e=t?e=>E(e,t,this.datepickers[0].config.locale):t=>new Date(t);return this.dates.map((t=>void 0===t?t:e(t)))}setDates(t,e){const[n,i]=this.datepickers,o=this.dates;this._updating=!0,n.setDate(t),i.setDate(e),delete this._updating,i.dates[0]!==o[1]?Nt(this,{target:this.inputs[1]}):n.dates[0]!==o[0]&&Nt(this,{target:this.inputs[0]})}}}(),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sweetalert2=e()}(this,(function(){"use strict";function t(e){return(t="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})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function l(t,e,n){return(l=s()?Reflect.construct:function(t,e,n){var i=[null];return i.push.apply(i,e),i=new(Function.bind.apply(t,i)),n&&a(i,n.prototype),i}).apply(null,arguments)}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){if(t=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t}(t,e))return(e=Object.getOwnPropertyDescriptor(t,e)).get?e.get.call(n):e.value})(t,e,n||t)}function d(t){return t.charAt(0).toUpperCase()+t.slice(1)}function h(t){return Object.keys(t).map((function(e){return t[e]}))}function p(t){return Array.prototype.slice.call(t)}function f(t,e){e='"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'),-1===Z.indexOf(e)&&(Z.push(e),V(e))}function m(t){return t&&"function"==typeof t.toPromise}function g(t){return m(t)?t.toPromise():Promise.resolve(t)}function v(t){return t&&Promise.resolve(t)===t}function y(e){return e instanceof Element||"object"===t(e=e)&&e.jquery}function _(){return document.body.querySelector(".".concat(X.container))}function b(t){var e=_();return e?e.querySelector(t):null}function w(t){return b(".".concat(t))}function x(){return w(X.popup)}function T(){return w(X.icon)}function C(){return w(X.title)}function S(){return w(X.content)}function E(){return w(X["html-container"])}function D(){return w(X.image)}function k(){return w(X["progress-steps"])}function A(){return w(X["validation-message"])}function M(){return b(".".concat(X.actions," .").concat(X.confirm))}function L(){return b(".".concat(X.actions," .").concat(X.deny))}function P(){return b(".".concat(X.loader))}function O(){return b(".".concat(X.actions," .").concat(X.cancel))}function I(){return w(X.actions)}function N(){return w(X.header)}function z(){return w(X.footer)}function j(){return w(X["timer-progress-bar"])}function B(){return w(X.close)}function R(){var t=p(x().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((function(t,e){return t=parseInt(t.getAttribute("tabindex")),(e=parseInt(e.getAttribute("tabindex")))<t?1:t<e?-1:0})),e=p(x().querySelectorAll('\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n')).filter((function(t){return"-1"!==t.getAttribute("tabindex")}));return function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(t.concat(e)).filter((function(t){return yt(t)}))}function H(){return!J()&&!document.body.classList.contains(X["no-backdrop"])}function $(t,e){t.textContent="",e&&(p((e=(new DOMParser).parseFromString(e,"text/html")).querySelector("head").childNodes).forEach((function(e){t.appendChild(e)})),p(e.querySelector("body").childNodes).forEach((function(e){t.appendChild(e)})))}function F(t,e){if(e){for(var n=e.split(/\s+/),i=0;i<n.length;i++)if(!t.classList.contains(n[i]))return;return 1}}function W(e,n,i){var o,r;if(r=n,p((o=e).classList).forEach((function(t){-1===h(X).indexOf(t)&&-1===h(K).indexOf(t)&&-1===h(r.showClass).indexOf(t)&&o.classList.remove(t)})),n.customClass&&n.customClass[i]){if("string"!=typeof n.customClass[i]&&!n.customClass[i].forEach)return V("Invalid type of customClass.".concat(i,'! Expected string or iterable object, got "').concat(t(n.customClass[i]),'"'));mt(e,n.customClass[i])}}var q="SweetAlert2:",V=function(e){console.warn("".concat(q," ").concat("object"===t(e)?e.join(" "):e))},Y=function(t){console.error("".concat(q," ").concat(t))},Z=[],U=function(t){return"function"==typeof t?t():t},G=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),X=(tn=function(t){var e,n={};for(e in t)n[t[e]]="swal2-"+t[e];return n})(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","header","content","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),K=tn(["success","warning","info","question","error"]),J=function(){return document.body.classList.contains(X["toast-shown"])},Q={previousBodyPadding:null};function tt(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return vt(t,X[e]);case"checkbox":return t.querySelector(".".concat(X.checkbox," input"));case"radio":return t.querySelector(".".concat(X.radio," input:checked"))||t.querySelector(".".concat(X.radio," input:first-child"));case"range":return t.querySelector(".".concat(X.range," input"));default:return vt(t,X.input)}}function et(t){var e;t.focus(),"file"!==t.type&&(e=t.value,t.value="",t.value=e)}function nt(t,e,n){t&&e&&(e="string"==typeof e?e.split(/\s+/).filter(Boolean):e).forEach((function(e){t.forEach?t.forEach((function(t){n?t.classList.add(e):t.classList.remove(e)})):n?t.classList.add(e):t.classList.remove(e)}))}function it(t,e,n){(n=n==="".concat(parseInt(n))?parseInt(n):n)||0===parseInt(n)?t.style[e]="number"==typeof n?"".concat(n,"px"):n:t.style.removeProperty(e)}function ot(t){t.style.display=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"flex"}function rt(t){t.style.display="none"}function at(t,e,n,i){(e=t.querySelector(e))&&(e.style[n]=i)}function st(t,e,n){e?ot(t,n):rt(t)}function lt(t){return!!(t.scrollHeight>t.clientHeight)}function ct(t){var e=window.getComputedStyle(t);t=parseFloat(e.getPropertyValue("animation-duration")||"0"),e=parseFloat(e.getPropertyValue("transition-duration")||"0");return 0<t||0<e}function ut(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=j();yt(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout((function(){n.style.transition="width ".concat(t/1e3,"s linear"),n.style.width="0%"}),10))}function dt(){return"undefined"==typeof window||"undefined"==typeof document}function ht(t){nn.isVisible()&&ft!==t.target.value&&nn.resetValidationMessage(),ft=t.target.value}function pt(e,n){e instanceof HTMLElement?n.appendChild(e):"object"===t(e)?bt(e,n):e&&$(n,e)}var ft,mt=function(t,e){nt(t,e,!0)},gt=function(t,e){nt(t,e,!1)},vt=function(t,e){for(var n=0;n<t.childNodes.length;n++)if(F(t.childNodes[n],e))return t.childNodes[n]},yt=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},_t='\n <div aria-labelledby="'.concat(X.title,'" aria-describedby="').concat(X.content,'" class="').concat(X.popup,'" tabindex="-1">\n   <div class="').concat(X.header,'">\n     <ul class="').concat(X["progress-steps"],'"></ul>\n     <div class="').concat(X.icon,'"></div>\n     <img class="').concat(X.image,'" />\n     <h2 class="').concat(X.title,'" id="').concat(X.title,'"></h2>\n     <button type="button" class="').concat(X.close,'"></button>\n   </div>\n   <div class="').concat(X.content,'">\n     <div id="').concat(X.content,'" class="').concat(X["html-container"],'"></div>\n     <input class="').concat(X.input,'" />\n     <input type="file" class="').concat(X.file,'" />\n     <div class="').concat(X.range,'">\n       <input type="range" />\n       <output></output>\n     </div>\n     <select class="').concat(X.select,'"></select>\n     <div class="').concat(X.radio,'"></div>\n     <label for="').concat(X.checkbox,'" class="').concat(X.checkbox,'">\n       <input type="checkbox" />\n       <span class="').concat(X.label,'"></span>\n     </label>\n     <textarea class="').concat(X.textarea,'"></textarea>\n     <div class="').concat(X["validation-message"],'" id="').concat(X["validation-message"],'"></div>\n   </div>\n   <div class="').concat(X.actions,'">\n     <div class="').concat(X.loader,'"></div>\n     <button type="button" class="').concat(X.confirm,'"></button>\n     <button type="button" class="').concat(X.deny,'"></button>\n     <button type="button" class="').concat(X.cancel,'"></button>\n   </div>\n   <div class="').concat(X.footer,'"></div>\n   <div class="').concat(X["timer-progress-bar-container"],'">\n     <div class="').concat(X["timer-progress-bar"],'"></div>\n   </div>\n </div>\n').replace(/(^|\n)\s*/g,""),bt=function(t,e){t.jquery?wt(e,t):$(e,t.toString())},wt=function(t,e){if(t.textContent="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},xt=function(){if(dt())return!1;var t,e=document.createElement("div"),n={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&void 0!==e.style[t])return n[t];return!1}();function Tt(t,e,n){st(t,n["show".concat(d(e),"Button")],"inline-block"),$(t,n["".concat(e,"ButtonText")]),t.setAttribute("aria-label",n["".concat(e,"ButtonAriaLabel")]),t.className=X[e],W(t,n,"".concat(e,"Button")),mt(t,n["".concat(e,"ButtonClass")])}function Ct(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)}function St(t,e,n){var i,o;n.inputLabel&&(t.id=X.input,i=document.createElement("label"),o=X["input-label"],i.setAttribute("for",t.id),i.className=o,mt(i,n.customClass.inputLabel),i.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",i))}var Et={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Dt=["input","file","range","select","radio","checkbox","textarea"],kt=function(t){return t=X[t]||X.input,vt(S(),t)},At={};function Mt(t,e){var n,i,o,r=E();W(r,e,"htmlContainer"),e.html?(pt(e.html,r),ot(r,"block")):e.text?(r.textContent=e.text,ot(r,"block")):rt(r),t=t,n=e,i=S(),t=Et.innerParams.get(t),o=!t||n.input!==t.input,Dt.forEach((function(t){var e=X[t],r=vt(i,e);(function(t,e){var n=tt(S(),t);if(n)for(var i in function(t){for(var e=0;e<t.attributes.length;e++){var n=t.attributes[e].name;-1===["type","value","style"].indexOf(n)&&t.removeAttribute(n)}}(n),e)"range"===t&&"placeholder"===i||n.setAttribute(i,e[i])})(t,n.inputAttributes),r.className=e,o&&rt(r)})),n.input&&(o&&function(t){if(!At[t.input])return Y('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=kt(t.input),n=At[t.input](e,t);ot(n),setTimeout((function(){et(n)}))}(n),function(t){var e=kt(t.input);t.customClass&&mt(e,t.customClass.input)}(n)),W(S(),e,"content")}function Lt(){return _()&&_().getAttribute("data-queue-step")}function Pt(t,e){var n=k();if(!e.progressSteps||0===e.progressSteps.length)return rt(n),0;ot(n),n.textContent="";var i=parseInt(void 0===e.currentProgressStep?Lt():e.currentProgressStep);i>=e.progressSteps.length&&V("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((function(t,o){var r;r=t,t=document.createElement("li"),mt(t,X["progress-step"]),$(t,r),t=t;n.appendChild(t),o===i&&mt(t,X["active-progress-step"]),o!==e.progressSteps.length-1&&(t=e,o=document.createElement("li"),mt(o,X["progress-step-line"]),t.progressStepsDistance&&(o.style.width=t.progressStepsDistance),n.appendChild(o))}))}function Ot(t,e){var n,i,o;o=e,n=_(),i=x(),o.toast?(it(n,"width",o.width),i.style.width="100%"):it(i,"width",o.width),it(i,"padding",o.padding),o.background&&(i.style.background=o.background),rt(A()),$t(i,o),function(t,e){var n,i,o=_();o&&(i=o,"string"==typeof(n=e.backdrop)?i.style.background=n:n||mt([document.documentElement,document.body],X["no-backdrop"]),!e.backdrop&&e.allowOutsideClick&&V('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),i=o,(n=e.position)in X?mt(i,X[n]):(V('The "position" parameter is not valid, defaulting to "center"'),mt(i,X.center)),n=o,!(i=e.grow)||"string"!=typeof i||(i="grow-".concat(i))in X&&mt(n,X[i]),W(o,e,"container"),(e=document.body.getAttribute("data-swal2-queue-step"))&&(o.setAttribute("data-queue-step",e),document.body.removeAttribute("data-swal2-queue-step")))}(0,e),function(t,e){var n,i=N();W(i,e,"header"),Pt(0,e),n=t,i=e,t=Et.innerParams.get(n),n=T(),t&&i.icon===t.icon?(jt(n,i),Nt(n,i)):i.icon||i.iconHtml?i.icon&&-1===Object.keys(K).indexOf(i.icon)?(Y('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(i.icon,'"')),rt(n)):(ot(n),jt(n,i),Nt(n,i),mt(n,i.showClass.icon)):rt(n),function(t){var e=D();if(!t.imageUrl)return rt(e);ot(e,""),e.setAttribute("src",t.imageUrl),e.setAttribute("alt",t.imageAlt),it(e,"width",t.imageWidth),it(e,"height",t.imageHeight),e.className=X.image,W(e,t,"image")}(e),i=e,st(n=C(),i.title||i.titleText,"block"),i.title&&pt(i.title,n),i.titleText&&(n.innerText=i.titleText),W(n,i,"title"),i=e,$(e=B(),i.closeButtonHtml),W(e,i,"closeButton"),st(e,i.showCloseButton),e.setAttribute("aria-label",i.closeButtonAriaLabel)}(t,e),Mt(t,e),function(t,e){var n=I(),i=P(),o=M(),r=L(),a=O();e.showConfirmButton||e.showDenyButton||e.showCancelButton||rt(n),W(n,e,"actions"),Tt(o,"confirm",e),Tt(r,"deny",e),Tt(a,"cancel",e),function(t,e,n,i){if(!i.buttonsStyling)return gt([t,e,n],X.styled);mt([t,e,n],X.styled),i.confirmButtonColor&&(t.style.backgroundColor=i.confirmButtonColor),i.denyButtonColor&&(e.style.backgroundColor=i.denyButtonColor),i.cancelButtonColor&&(n.style.backgroundColor=i.cancelButtonColor)}(o,r,a,e),e.reverseButtons&&(n.insertBefore(a,i),n.insertBefore(r,i),n.insertBefore(o,i)),$(i,e.loaderHtml),W(i,e,"loader")}(0,e),o=e,st(t=z(),o.footer),o.footer&&pt(o.footer,t),W(t,o,"footer"),"function"==typeof e.didRender?e.didRender(x()):"function"==typeof e.onRender&&e.onRender(x())}function It(){return M()&&M().click()}At.text=At.email=At.password=At.number=At.tel=At.url=function(e,n){return"string"==typeof n.inputValue||"number"==typeof n.inputValue?e.value=n.inputValue:v(n.inputValue)||V('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(t(n.inputValue),'"')),St(e,e,n),Ct(e,n),e.type=n.input,e},At.file=function(t,e){return St(t,t,e),Ct(t,e),t},At.range=function(t,e){var n=t.querySelector("input"),i=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,i.value=e.inputValue,St(n,t,e),t},At.select=function(t,e){var n;return t.textContent="",e.inputPlaceholder&&($(n=document.createElement("option"),e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)),St(t,t,e),t},At.radio=function(t){return t.textContent="",t},At.checkbox=function(t,e){var n=tt(S(),"checkbox");return n.value=1,n.id=X.checkbox,n.checked=Boolean(e.inputValue),$(n=t.querySelector("span"),e.inputPlaceholder),t},At.textarea=function(t,e){function n(t){return parseInt(window.getComputedStyle(t).paddingLeft)+parseInt(window.getComputedStyle(t).paddingRight)}var i;return t.value=e.inputValue,Ct(t,e),St(t,t,e),"MutationObserver"in window&&(i=parseInt(window.getComputedStyle(x()).width),new MutationObserver((function(){var e=t.offsetWidth+n(x())+n(S());x().style.width=i<e?"".concat(e,"px"):null})).observe(t,{attributes:!0,attributeFilter:["style"]})),t};var Nt=function(t,e){for(var n in K)e.icon!==n&&gt(t,K[n]);mt(t,K[e.icon]),Bt(t,e),zt(),W(t,e,"icon")},zt=function(){for(var t=x(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),i=0;i<n.length;i++)n[i].style.backgroundColor=e},jt=function(t,e){t.textContent="",e.iconHtml?$(t,Rt(e.iconHtml)):"success"===e.icon?$(t,'\n      <div class="swal2-success-circular-line-left"></div>\n      <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n      <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n      <div class="swal2-success-circular-line-right"></div>\n    '):"error"===e.icon?$(t,'\n      <span class="swal2-x-mark">\n        <span class="swal2-x-mark-line-left"></span>\n        <span class="swal2-x-mark-line-right"></span>\n      </span>\n    '):$(t,Rt({question:"?",warning:"!",info:"i"}[e.icon]))},Bt=function(t,e){if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(var n=0,i=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n<i.length;n++)at(t,i[n],"backgroundColor",e.iconColor);at(t,".swal2-success-ring","borderColor",e.iconColor)}},Rt=function(t){return'<div class="'.concat(X["icon-content"],'">').concat(t,"</div>")},Ht=[],$t=function(t,e){t.className="".concat(X.popup," ").concat(yt(t)?e.showClass.popup:""),e.toast?(mt([document.documentElement,document.body],X["toast-shown"]),mt(t,X.toast)):mt(t,X.modal),W(t,e,"popup"),"string"==typeof e.customClass&&mt(t,e.customClass),e.icon&&mt(t,X["icon-".concat(e.icon)])};function Ft(t){(e=x())||nn.fire();var e=x(),n=I(),i=P();!t&&yt(M())&&(t=M()),ot(n),t&&(rt(t),i.setAttribute("data-button-to-replace",t.className)),i.parentNode.insertBefore(i,t),mt([e,n],X.loading),ot(i),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()}function Wt(){if(Vt.timeout)return function(){var t=j(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var n=parseInt(window.getComputedStyle(t).width);n=parseInt(e/n*100);t.style.removeProperty("transition"),t.style.width="".concat(n,"%")}(),Vt.timeout.stop()}function qt(){if(Vt.timeout){var t=Vt.timeout.start();return ut(t),t}}var Vt={},Yt=!1,Zt={};function Ut(t){for(var e=t.target;e&&e!==document;e=e.parentNode)for(var n in Zt){var i=e.getAttribute(n);if(i)return void Zt[n].fire({template:i})}}function Gt(t){return Object.prototype.hasOwnProperty.call(Jt,t)}function Xt(t){return te[t]}function Kt(t){for(var e in t)Gt(n=e)||V('Unknown parameter "'.concat(n,'"')),t.toast&&(n=e,-1!==ee.indexOf(n)&&V('The parameter "'.concat(n,'" is incompatible with toasts'))),Xt(e=e)&&f(e,Xt(e));var n}var Jt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},Qt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],te={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},ee=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],ne=Object.freeze({isValidParameter:Gt,isUpdatableParameter:function(t){return-1!==Qt.indexOf(t)},isDeprecatedParameter:Xt,argsToParams:function(e){var n={};return"object"!==t(e[0])||y(e[0])?["title","html","icon"].forEach((function(i,o){"string"==typeof(o=e[o])||y(o)?n[i]=o:void 0!==o&&Y("Unexpected type of ".concat(i,'! Expected "string" or "Element", got ').concat(t(o)))})):o(n,e[0]),n},isVisible:function(){return yt(x())},clickConfirm:It,clickDeny:function(){return L()&&L().click()},clickCancel:function(){return O()&&O().click()},getContainer:_,getPopup:x,getTitle:C,getContent:S,getHtmlContainer:E,getImage:D,getIcon:T,getInputLabel:function(){return w(X["input-label"])},getCloseButton:B,getActions:I,getConfirmButton:M,getDenyButton:L,getCancelButton:O,getLoader:P,getHeader:N,getFooter:z,getTimerProgressBar:j,getFocusableElements:R,getValidationMessage:A,isLoading:function(){return x().hasAttribute("data-loading")},fire:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return l(this,e)},mixin:function(t){return function(n){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(p,n);var l,d,h=(l=p,d=s(),function(){var t,e=r(l);return c(this,d?(t=r(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function p(){return e(this,p),h.apply(this,arguments)}return i(p,[{key:"_main",value:function(e,n){return u(r(p.prototype),"_main",this).call(this,e,o({},t,n))}}]),p}(this)},queue:function(t){f("Swal.queue()","async/await");var e=this;function n(t,e){Ht=[],t(e)}Ht=t;var i=[];return new Promise((function(t){!function o(r,a){r<Ht.length?(document.body.setAttribute("data-swal2-queue-step",r),e.fire(Ht[r]).then((function(e){void 0!==e.value?(i.push(e.value),o(r+1,a)):n(t,{dismiss:e.dismiss})}))):n(t,{value:i})}(0)}))},getQueueStep:Lt,insertQueueStep:function(t,e){return e&&e<Ht.length?Ht.splice(e,0,t):Ht.push(t)},deleteQueueStep:function(t){void 0!==Ht[t]&&Ht.splice(t,1)},showLoading:Ft,enableLoading:Ft,getTimerLeft:function(){return Vt.timeout&&Vt.timeout.getTimerLeft()},stopTimer:Wt,resumeTimer:qt,toggleTimer:function(){var t=Vt.timeout;return t&&(t.running?Wt:qt)()},increaseTimer:function(t){if(Vt.timeout)return ut(t=Vt.timeout.increase(t),!0),t},isTimerRunning:function(){return Vt.timeout&&Vt.timeout.isRunning()},bindClickHandler:function(){Zt[0<arguments.length&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Yt||(document.body.addEventListener("click",Ut),Yt=!0)}});function ie(){var t,e;Et.innerParams.get(this)&&(rt((t=Et.domCache.get(this)).loader),(e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"))).length?ot(e[0],"inline-block"):yt(M())||yt(L())||yt(O())||rt(t.actions),gt([t.popup,t.actions],X.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1)}function oe(){return!!window.MSInputMethodContext&&!!document.documentMode}function re(){var t=_(),e=x();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")}var ae=function(t){var e=t.target,n=_();return!(se(t)||le(t)||e!==n&&(lt(n)||"INPUT"===e.tagName||lt(S())&&S().contains(e)))},se=function(t){return t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType},le=function(t){return t.touches&&1<t.touches.length},ce={swalPromiseResolve:new WeakMap};function ue(t,e,n,i){J()?fe(t,i):(function(t){return new Promise((function(e){if(!t)return e();var n=window.scrollX,i=window.scrollY;Vt.restoreFocusTimeout=setTimeout((function(){Vt.previousActiveElement&&Vt.previousActiveElement.focus?(Vt.previousActiveElement.focus(),Vt.previousActiveElement=null):document.body&&document.body.focus(),e()}),100),void 0!==n&&void 0!==i&&window.scrollTo(n,i)}))}(n).then((function(){return fe(t,i)})),Vt.keydownTarget.removeEventListener("keydown",Vt.keydownHandler,{capture:Vt.keydownListenerCapture}),Vt.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),H()&&(null!==Q.previousBodyPadding&&(document.body.style.paddingRight="".concat(Q.previousBodyPadding,"px"),Q.previousBodyPadding=null),F(document.body,X.iosfix)&&(e=parseInt(document.body.style.top,10),gt(document.body,X.iosfix),document.body.style.top="",document.body.scrollTop=-1*e),"undefined"!=typeof window&&oe()&&window.removeEventListener("resize",re),p(document.body.children).forEach((function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))),gt([document.documentElement,document.body],[X.shown,X["height-auto"],X["no-backdrop"],X["toast-shown"]])}function de(t){var e,n,i,r=x();r&&(t=function(t){return void 0===t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:o({isConfirmed:!1,isDenied:!1,isDismissed:!1},t)}(t),(e=Et.innerParams.get(this))&&!F(r,e.hideClass.popup)&&(n=ce.swalPromiseResolve.get(this),gt(r,e.showClass.popup),mt(r,e.hideClass.popup),i=_(),gt(i,e.showClass.backdrop),mt(i,e.hideClass.backdrop),function(t,e,n){var i=_(),o=xt&&ct(e),r=n.onClose,a=n.onAfterClose,s=n.willClose,l=n.didClose;he(e,s,r),o?pe(t,e,i,n.returnFocus,l||a):ue(t,i,n.returnFocus,l||a)}(this,r,e),n(t)))}var he=function(t,e,n){null!==e&&"function"==typeof e?e(t):null!==n&&"function"==typeof n&&n(t)},pe=function(t,e,n,i,o){Vt.swalCloseEventFinishedCallback=ue.bind(null,t,n,i,o),e.addEventListener(xt,(function(t){t.target===e&&(Vt.swalCloseEventFinishedCallback(),delete Vt.swalCloseEventFinishedCallback)}))},fe=function(t,e){setTimeout((function(){"function"==typeof e&&e(),t._destroy()}))};function me(t,e,n){var i=Et.domCache.get(t);e.forEach((function(t){i[t].disabled=n}))}function ge(t,e){if(!t)return!1;if("radio"===t.type)for(var n=t.parentNode.parentNode.querySelectorAll("input"),i=0;i<n.length;i++)n[i].disabled=e;else t.disabled=e}var ve=function(){function t(n,i){e(this,t),this.callback=n,this.remaining=i,this.running=!1,this.start()}return i(t,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(t){var e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),t}(),ye={email:function(t,e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address")},url:function(t,e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")}};function _e(t){var e,n;(e=t).inputValidator||Object.keys(ye).forEach((function(t){e.input===t&&(e.inputValidator=ye[t])})),t.showLoaderOnConfirm&&!t.preConfirm&&V("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=U(t.animation),(n=t).target&&("string"!=typeof n.target||document.querySelector(n.target))&&("string"==typeof n.target||n.target.appendChild)||(V('Target parameter is not valid, defaulting to "body"'),n.target="body"),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),function(t){var e,n,i,o,r,a=!!(o=_())&&(o.parentNode.removeChild(o),gt([document.documentElement,document.body],[X["no-backdrop"],X["toast-shown"],X["has-column"]]),!0);dt()?Y("SweetAlert2 requires document to initialize"):((r=document.createElement("div")).className=X.container,a&&mt(r,X["no-transition"]),$(r,_t),(o="string"==typeof(e=t.target)?document.querySelector(e):e).appendChild(r),a=t,(e=x()).setAttribute("role",a.toast?"alert":"dialog"),e.setAttribute("aria-live",a.toast?"polite":"assertive"),a.toast||e.setAttribute("aria-modal","true"),r=o,"rtl"===window.getComputedStyle(r).direction&&mt(_(),X.rtl),t=S(),a=vt(t,X.input),e=vt(t,X.file),n=t.querySelector(".".concat(X.range," input")),i=t.querySelector(".".concat(X.range," output")),o=vt(t,X.select),r=t.querySelector(".".concat(X.checkbox," input")),t=vt(t,X.textarea),a.oninput=ht,e.onchange=ht,o.onchange=ht,r.onchange=ht,t.oninput=ht,n.oninput=function(t){ht(t),i.value=n.value},n.onchange=function(t){ht(t),n.nextSibling.value=n.value})}(t)}function be(t){var e=x();t.target===e&&(t=_(),e.removeEventListener(xt,be),t.style.overflowY="auto")}function we(t,e){t.closePopup({isConfirmed:!0,value:e})}function xe(t,e,n){var i=R();if(i.length)return(e+=n)===i.length?e=0:-1===e&&(e=i.length-1),i[e].focus();x().focus()}var Te=["swal-title","swal-html","swal-footer"],Ce=function(t,e){p(t.attributes).forEach((function(n){-1===e.indexOf(n.name)&&V(['Unrecognized attribute "'.concat(n.name,'" on <').concat(t.tagName.toLowerCase(),">."),"".concat(e.length?"Allowed attributes are: ".concat(e.join(", ")):"To set the value, use HTML within the element.")])}))},Se=function(t,e){"function"==typeof e.didOpen?setTimeout((function(){return e.didOpen(t)})):"function"==typeof e.onOpen&&setTimeout((function(){return e.onOpen(t)}))},Ee=function(t,e){xt&&ct(e)?(t.style.overflowY="hidden",e.addEventListener(xt,be)):t.style.overflowY="auto"},De=function(t,e,n){var i;(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!F(document.body,X.iosfix)&&(i=document.body.scrollTop,document.body.style.top="".concat(-1*i,"px"),mt(document.body,X.iosfix),function(){var t,e=_();e.ontouchstart=function(e){t=ae(e)},e.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}}(),navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)||x().scrollHeight>window.innerHeight-44&&(_().style.paddingBottom="".concat(44,"px"))),"undefined"!=typeof window&&oe()&&(re(),window.addEventListener("resize",re)),e&&"hidden"!==n&&null===Q.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(Q.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Q.previousBodyPadding+function(){var t=document.createElement("div");t.className=X["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}(),"px")),setTimeout((function(){t.scrollTop=0}))},ke=function(t,e,n){mt(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ot(e),setTimeout((function(){mt(e,n.showClass.popup),e.style.removeProperty("opacity")}),10),mt([document.documentElement,document.body],X.shown),n.heightAuto&&n.backdrop&&!n.toast&&mt([document.documentElement,document.body],X["height-auto"])},Ae=function(e,n){function i(t){return Me[n.input](o,Le(t),n)}var o=S();m(n.inputOptions)||v(n.inputOptions)?(Ft(M()),g(n.inputOptions).then((function(t){e.hideLoading(),i(t)}))):"object"===t(n.inputOptions)?i(n.inputOptions):Y("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(n.inputOptions)))},Me={select:function(t,e,n){function i(t,e,i){var o=document.createElement("option");o.value=i,$(o,e),o.selected=Pe(i,n.inputValue),t.appendChild(o)}var o=vt(t,X.select);e.forEach((function(t){var e,n=t[0];t=t[1];Array.isArray(t)?((e=document.createElement("optgroup")).label=n,e.disabled=!1,o.appendChild(e),t.forEach((function(t){return i(e,t[1],t[0])}))):i(o,t,n)})),o.focus()},radio:function(t,e,n){var i=vt(t,X.radio);e.forEach((function(t){var e=t[0],o=t[1],r=document.createElement("input");t=document.createElement("label");r.type="radio",r.name=X.radio,r.value=e,Pe(e,n.inputValue)&&(r.checked=!0),$(e=document.createElement("span"),o),e.className=X.label,t.appendChild(r),t.appendChild(e),i.appendChild(t)})),(e=i.querySelectorAll("input")).length&&e[0].focus()}},Le=function e(n){var i=[];return"undefined"!=typeof Map&&n instanceof Map?n.forEach((function(n,o){"object"===t(n)&&(n=e(n)),i.push([o,n])})):Object.keys(n).forEach((function(o){var r=n[o];"object"===t(r)&&(r=e(r)),i.push([o,r])})),i},Pe=function(t,e){return e&&e.toString()===t.toString()},Oe=function(t,e,n){var i=function(t,e){var n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return function(t){return t.checked?1:0}(n);case"radio":return function(t){return t.checked?t.value:null}(n);case"file":return function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null}(n);default:return e.inputAutoTrim?n.value.trim():n.value}}(t,e);e.inputValidator?Ie(t,e,i):t.getInput().checkValidity()?("deny"===n?Ne:ze)(t,e,i):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},Ie=function(t,e,n){t.disableInput(),Promise.resolve().then((function(){return g(e.inputValidator(n,e.validationMessage))})).then((function(i){t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):ze(t,e,n)}))},Ne=function(t,e,n){e.showLoaderOnDeny&&Ft(L()),e.preDeny?Promise.resolve().then((function(){return g(e.preDeny(n,e.validationMessage))})).then((function(e){!1===e?t.hideLoading():t.closePopup({isDenied:!0,value:void 0===e?n:e})})):t.closePopup({isDenied:!0,value:n})},ze=function(t,e,n){e.showLoaderOnConfirm&&Ft(),e.preConfirm?(t.resetValidationMessage(),Promise.resolve().then((function(){return g(e.preConfirm(n,e.validationMessage))})).then((function(e){yt(A())||!1===e?t.hideLoading():we(t,void 0===e?n:e)}))):we(t,n)},je=["ArrowRight","ArrowDown","Right","Down"],Be=["ArrowLeft","ArrowUp","Left","Up"],Re=["Escape","Esc"],He=function(t,e,n){e.isComposing||e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML&&-1===["textarea","file"].indexOf(n.input)&&(It(),e.preventDefault())},$e=function(t,e){for(var n=t.target,i=R(),o=-1,r=0;r<i.length;r++)if(n===i[r]){o=r;break}t.shiftKey?xe(0,o,-1):xe(0,o,1),t.stopPropagation(),t.preventDefault()},Fe=function(t){-1!==[M(),L(),O()].indexOf(document.activeElement)&&(t=-1!==je.indexOf(t)?"nextElementSibling":"previousElementSibling",(t=document.activeElement[t])&&t.focus())},We=function(t,e,n){U(e.allowEscapeKey)&&(t.preventDefault(),n(G.esc))},qe=!1;function Ve(e,n){var i=function(e){return(e="string"==typeof e.template?document.querySelector(e.template):e.template)?(function(t){var e=Te.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);p(t.querySelectorAll("*")).forEach((function(n){n.parentNode===t&&(n=n.tagName.toLowerCase(),-1===e.indexOf(n)&&V("Unrecognized element <".concat(n,">")))}))}(e=e.content||e),o(function(e){var n={};return p(e.querySelectorAll("swal-param")).forEach((function(e){Ce(e,["name","value"]);var i=e.getAttribute("name");e=e.getAttribute("value"),"boolean"==typeof Jt[i]&&"false"===e&&(e=!1),"object"===t(Jt[i])&&(e=JSON.parse(e)),n[i]=e})),n}(e),function(t){var e={};return p(t.querySelectorAll("swal-button")).forEach((function(t){Ce(t,["type","color","aria-label"]);var n=t.getAttribute("type");e["".concat(n,"ButtonText")]=t.innerHTML,e["show".concat(d(n),"Button")]=!0,t.hasAttribute("color")&&(e["".concat(n,"ButtonColor")]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(e["".concat(n,"ButtonAriaLabel")]=t.getAttribute("aria-label"))})),e}(e),function(t){var e={};return(t=t.querySelector("swal-image"))&&(Ce(t,["src","width","height","alt"]),t.hasAttribute("src")&&(e.imageUrl=t.getAttribute("src")),t.hasAttribute("width")&&(e.imageWidth=t.getAttribute("width")),t.hasAttribute("height")&&(e.imageHeight=t.getAttribute("height")),t.hasAttribute("alt")&&(e.imageAlt=t.getAttribute("alt"))),e}(e),function(t){var e={};return(t=t.querySelector("swal-icon"))&&(Ce(t,["type","color"]),t.hasAttribute("type")&&(e.icon=t.getAttribute("type")),t.hasAttribute("color")&&(e.iconColor=t.getAttribute("color")),e.iconHtml=t.innerHTML),e}(e),function(t){var e={},n=t.querySelector("swal-input");return n&&(Ce(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value"))),(t=t.querySelectorAll("swal-input-option")).length&&(e.inputOptions={},p(t).forEach((function(t){Ce(t,["value"]);var n=t.getAttribute("value");t=t.innerHTML,e.inputOptions[n]=t}))),e}(e),function(t,e){var n,i={};for(n in e){var o=e[n],r=t.querySelector(o);r&&(Ce(r,[]),i[o.replace(/^swal-/,"")]=r.innerHTML.trim())}return i}(e,Te))):{}}(e);return(i=o({},Jt,n,i,e)).showClass=o({},Jt.showClass,i.showClass),i.hideClass=o({},Jt.hideClass,i.hideClass),!1===e.animation&&(i.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},i.hideClass={}),i}function Ye(t,e,n){return new Promise((function(i){function o(e){t.closePopup({isDismissed:!0,dismiss:e})}var r,a,s,l;ce.swalPromiseResolve.set(t,i),e.confirmButton.onclick=function(){return i=n,(e=t).disableButtons(),void(i.input?Oe(e,i,"confirm"):ze(e,i,!0));var e,i},e.denyButton.onclick=function(){return i=n,(e=t).disableButtons(),void(i.returnInputValueOnDeny?Oe(e,i,"deny"):Ne(e,i,!1));var e,i},e.cancelButton.onclick=function(){return e=o,t.disableButtons(),void e(G.cancel);var e},e.closeButton.onclick=function(){return o(G.close)},r=t,l=e,i=o,Et.innerParams.get(r).toast?function(t,e,n){e.popup.onclick=function(){var e=Et.innerParams.get(t);e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton||e.timer||e.input||n(G.close)}}(r,l,i):(function(t){t.popup.onmousedown=function(){t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(qe=!0)}}}(l),function(t){t.container.onmousedown=function(){t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,e.target!==t.popup&&!t.popup.contains(e.target)||(qe=!0)}}}(l),function(t,e,n){e.container.onclick=function(i){var o=Et.innerParams.get(t);qe?qe=!1:i.target===e.container&&U(o.allowOutsideClick)&&n(G.backdrop)}}(r,l,i)),a=t,l=n,s=o,(i=Vt).keydownTarget&&i.keydownHandlerAdded&&(i.keydownTarget.removeEventListener("keydown",i.keydownHandler,{capture:i.keydownListenerCapture}),i.keydownHandlerAdded=!1),l.toast||(i.keydownHandler=function(t){return function(t,e,n){var i=Et.innerParams.get(t);i&&(i.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?He(t,e,i):"Tab"===e.key?$e(e,i):-1!==[].concat(je,Be).indexOf(e.key)?Fe(e.key):-1!==Re.indexOf(e.key)&&We(e,i,n))}(a,t,s)},i.keydownTarget=l.keydownListenerCapture?window:x(),i.keydownListenerCapture=l.keydownListenerCapture,i.keydownTarget.addEventListener("keydown",i.keydownHandler,{capture:i.keydownListenerCapture}),i.keydownHandlerAdded=!0),l=t,"select"===(i=n).input||"radio"===i.input?Ae(l,i):-1!==["text","email","number","tel","textarea"].indexOf(i.input)&&(m(i.inputValue)||v(i.inputValue))&&function(t,e){var n=t.getInput();rt(n),g(e.inputValue).then((function(i){n.value="number"===e.input?parseFloat(i)||0:"".concat(i),ot(n),n.focus(),t.hideLoading()})).catch((function(e){Y("Error in inputValue promise: ".concat(e)),n.value="",ot(n),n.focus(),t.hideLoading()}))}(l,i),function(t){var e=_(),n=x();"function"==typeof t.willOpen?t.willOpen(n):"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(n);var i=window.getComputedStyle(document.body).overflowY;ke(e,n,t),setTimeout((function(){Ee(e,n)}),10),H()&&(De(e,t.scrollbarPadding,i),p(document.body.children).forEach((function(t){t===_()||function(t,e){if("function"==typeof t.contains)return t.contains(e)}(t,_())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))),J()||Vt.previousActiveElement||(Vt.previousActiveElement=document.activeElement),Se(n,t),gt(e,X["no-transition"])}(n),Ue(Vt,n,o),Ge(e,n),setTimeout((function(){e.container.scrollTop=0}))}))}function Ze(t){var e={popup:x(),container:_(),content:S(),actions:I(),confirmButton:M(),denyButton:L(),cancelButton:O(),loader:P(),closeButton:B(),validationMessage:A(),progressSteps:k()};return Et.domCache.set(t,e),e}var Ue=function(t,e,n){var i=j();rt(i),e.timer&&(t.timeout=new ve((function(){n("timer"),delete t.timeout}),e.timer),e.timerProgressBar&&(ot(i),setTimeout((function(){t.timeout&&t.timeout.running&&ut(e.timer)}))))},Ge=function(t,e){if(!e.toast)return U(e.allowEnterKey)?void(Xe(t,e)||xe(0,-1,1)):Ke()},Xe=function(t,e){return e.focusDeny&&yt(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&yt(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!yt(t.confirmButton)||(t.confirmButton.focus(),0))},Ke=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};var Je,Qe=function(t){for(var e in t)t[e]=new WeakMap},tn=Object.freeze({hideLoading:ie,disableLoading:ie,getInput:function(t){var e=Et.innerParams.get(t||this);return(t=Et.domCache.get(t||this))?tt(t.content,e.input):null},close:de,closePopup:de,closeModal:de,closeToast:de,enableButtons:function(){me(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){me(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return ge(this.getInput(),!1)},disableInput:function(){return ge(this.getInput(),!0)},showValidationMessage:function(t){var e=Et.domCache.get(this),n=Et.innerParams.get(this);$(e.validationMessage,t),e.validationMessage.className=X["validation-message"],n.customClass&&n.customClass.validationMessage&&mt(e.validationMessage,n.customClass.validationMessage),ot(e.validationMessage),(e=this.getInput())&&(e.setAttribute("aria-invalid",!0),e.setAttribute("aria-describedBy",X["validation-message"]),et(e),mt(e,X.inputerror))},resetValidationMessage:function(){var t=Et.domCache.get(this);t.validationMessage&&rt(t.validationMessage),(t=this.getInput())&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),gt(t,X.inputerror))},getProgressSteps:function(){return Et.domCache.get(this).progressSteps},_main:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Kt(o({},e,t)),Vt.currentInstance&&Vt.currentInstance._destroy(),Vt.currentInstance=this,_e(t=Ve(t,e)),Object.freeze(t),Vt.timeout&&(Vt.timeout.stop(),delete Vt.timeout),clearTimeout(Vt.restoreFocusTimeout),e=Ze(this),Ot(this,t),Et.innerParams.set(this,t),Ye(this,e,t)},update:function(t){var e=x(),n=Et.innerParams.get(this);if(!e||F(e,n.hideClass.popup))return V("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var i={};Object.keys(t).forEach((function(e){nn.isUpdatableParameter(e)?i[e]=t[e]:V('Invalid parameter to update: "'.concat(e,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))})),Ot(this,n=o({},n,i)),Et.innerParams.set(this,n),Object.defineProperties(this,{params:{value:o({},this.params,t),writable:!1,enumerable:!0}})},_destroy:function(){var t=Et.domCache.get(this),e=Et.innerParams.get(this);e&&(t.popup&&Vt.swalCloseEventFinishedCallback&&(Vt.swalCloseEventFinishedCallback(),delete Vt.swalCloseEventFinishedCallback),Vt.deferDisposalTimer&&(clearTimeout(Vt.deferDisposalTimer),delete Vt.deferDisposalTimer),function(t){"function"==typeof t.didDestroy?t.didDestroy():"function"==typeof t.onDestroy&&t.onDestroy()}(e),function(t){delete t.params,delete Vt.keydownHandler,delete Vt.keydownTarget,Qe(Et),Qe(ce)}(this))}}),en=function(){function t(){if(e(this,t),"undefined"!=typeof window){"undefined"==typeof Promise&&Y("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),Je=this;for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var r=Object.freeze(this.constructor.argsToParams(i));Object.defineProperties(this,{params:{value:r,writable:!1,enumerable:!0,configurable:!0}}),r=this._main(this.params),Et.promise.set(this,r)}}return i(t,[{key:"then",value:function(t){return Et.promise.get(this).then(t)}},{key:"finally",value:function(t){return Et.promise.get(this).finally(t)}}]),t}();o(en.prototype,tn),o(en,ne),Object.keys(tn).forEach((function(t){en[t]=function(){if(Je)return Je[t].apply(Je,arguments)}})),en.DismissReason=G,en.version="10.16.7";var nn=en;return nn.default=nn})),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.L={})}(this,(function(t){"use strict";function e(t){for(var e,n,i=1,o=arguments.length;i<o;i++)for(e in n=arguments[i])t[e]=n[e];return t}var n=Object.create||function(t){return i.prototype=t,new i};function i(){}function o(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var i=n.call(arguments,2);return function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)}}var r=0;function a(t){return t._leaflet_id=t._leaflet_id||++r,t._leaflet_id}function s(t,e,n){var i,o,r=function(){i=!1,o&&(a.apply(n,o),o=!1)},a=function(){i?o=arguments:(t.apply(n,arguments),setTimeout(r,e),i=!0)};return a}function l(t,e,n){var i=e[1],o=e[0],r=i-o;return t===i&&n?t:((t-o)%r+r)%r+o}function c(){return!1}function u(t,e){var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function d(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function h(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,n){var i=[];for(var o in t)i.push(encodeURIComponent(n?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+i.join("&")}var m=/\{ *([\w_-]+) *\}/g;function g(t,e){return t.replace(m,(function(t,n){var i=e[n];if(void 0===i)throw new Error("No value provided for variable "+t);return"function"==typeof i&&(i=i(e)),i}))}var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function y(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var _="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,n=Math.max(0,16-(e-w));return w=e+n,window.setTimeout(t,n)}var T=window.requestAnimationFrame||b("RequestAnimationFrame")||x,C=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function S(t,e,n){if(!n||T!==x)return T.call(window,o(t,e));t.call(e)}function E(t){t&&C.call(window,t)}var D={extend:e,create:n,bind:o,lastId:r,stamp:a,throttle:s,wrapNum:l,falseFn:c,formatNum:u,trim:d,splitWords:h,setOptions:p,getParamString:f,template:g,isArray:v,indexOf:y,emptyImageUrl:_,requestFn:T,cancelFn:C,requestAnimFrame:S,cancelAnimFrame:E};function k(){}k.extend=function(t){function i(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var o=i.__super__=this.prototype,r=n(o);for(var a in(r.constructor=i).prototype=r,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(i[a]=this[a]);return t.statics&&(e(i,t.statics),delete t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&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)}}(t.includes),e.apply(null,[r].concat(t.includes)),delete t.includes),r.options&&(t.options=e(n(r.options),t.options)),e(r,t),r._initHooks=[],r.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=r._initHooks.length;t<e;t++)r._initHooks[t].call(this)}},i},k.include=function(t){return e(this.prototype,t),this},k.mergeOptions=function(t){return e(this.prototype.options,t),this},k.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var A={on:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e);else for(var o=0,r=(t=h(t)).length;o<r;o++)this._on(t[o],e,n);return this},off:function(t,e,n){if(t)if("object"==typeof t)for(var i in t)this._off(i,t[i],e);else for(var o=0,r=(t=h(t)).length;o<r;o++)this._off(t[o],e,n);else delete this._events;return this},_on:function(t,e,n){this._events=this._events||{};var i=this._events[t];i||(i=[],this._events[t]=i),n===this&&(n=void 0);for(var o={fn:e,ctx:n},r=i,a=0,s=r.length;a<s;a++)if(r[a].fn===e&&r[a].ctx===n)return;r.push(o)},_off:function(t,e,n){var i,o,r;if(this._events&&(i=this._events[t]))if(e){if(n===this&&(n=void 0),i)for(o=0,r=i.length;o<r;o++){var a=i[o];if(a.ctx===n&&a.fn===e)return a.fn=c,this._firingCount&&(this._events[t]=i=i.slice()),void i.splice(o,1)}}else{for(o=0,r=i.length;o<r;o++)i[o].fn=c;delete this._events[t]}},fire:function(t,n,i){if(!this.listens(t,i))return this;var o=e({},n,{type:t,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var a=0,s=r.length;a<s;a++){var l=r[a];l.fn.call(l.ctx||this,o)}this._firingCount--}}return i&&this._propagateEvent(o),this},listens:function(t,e){var n=this._events&&this._events[t];if(n&&n.length)return!0;if(e)for(var i in this._eventParents)if(this._eventParents[i].listens(t,e))return!0;return!1},once:function(t,e,n){if("object"==typeof t){for(var i in t)this.once(i,t[i],e);return this}var r=o((function(){this.off(t,e,n).off(t,r,n)}),this);return this.on(t,e,n).on(t,r,n)},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 n in this._eventParents)this._eventParents[n].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};A.addEventListener=A.on,A.removeEventListener=A.clearAllEventListeners=A.off,A.addOneTimeEventListener=A.once,A.fireEvent=A.fire,A.hasEventListeners=A.listens;var M=k.extend(A);function P(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var O=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};function I(t,e,n){return t instanceof P?t:v(t)?new P(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new P(t.x,t.y):new P(t,e,n)}function N(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function z(t,e){return!t||t instanceof N?t:new N(t,e)}function j(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function B(t,e){return t instanceof j?t:new j(t,e)}function R(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function H(t,e,n){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,n)}P.prototype={clone:function(){return new P(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 P(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new P(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,n=t.y-this.y;return Math.sqrt(e*e+n*n)},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("+u(this.x)+", "+u(this.y)+")"}},N.prototype={extend:function(t){return t=I(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new P((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new P(this.min.x,this.max.y)},getTopRight:function(){return new P(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,n;return(t=("number"==typeof t[0]||t instanceof P?I:z)(t))instanceof N?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=z(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>=e.x&&i.x<=n.x,a=o.y>=e.y&&i.y<=n.y;return r&&a},overlaps:function(t){t=z(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>e.x&&i.x<n.x,a=o.y>e.y&&i.y<n.y;return r&&a},isValid:function(){return!(!this.min||!this.max)}},j.prototype={extend:function(t){var e,n,i=this._southWest,o=this._northEast;if(t instanceof R)n=e=t;else{if(!(t instanceof j))return t?this.extend(H(t)||B(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return i||o?(i.lat=Math.min(e.lat,i.lat),i.lng=Math.min(e.lng,i.lng),o.lat=Math.max(n.lat,o.lat),o.lng=Math.max(n.lng,o.lng)):(this._southWest=new R(e.lat,e.lng),this._northEast=new R(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,o=Math.abs(e.lng-n.lng)*t;return new j(new R(e.lat-i,e.lng-o),new R(n.lat+i,n.lng+o))},getCenter:function(){return new R((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new R(this.getNorth(),this.getWest())},getSouthEast:function(){return new R(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t=("number"==typeof t[0]||t instanceof R||"lat"in t?H:B)(t);var e,n,i=this._southWest,o=this._northEast;return t instanceof j?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=o.lat&&e.lng>=i.lng&&n.lng<=o.lng},intersects:function(t){t=B(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&i.lat<=n.lat,a=o.lng>=e.lng&&i.lng<=n.lng;return r&&a},overlaps:function(t){t=B(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&i.lat<n.lat,a=o.lng>e.lng&&i.lng<n.lng;return r&&a},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 $,F={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},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,n=this.scale(t);return new N(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},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("+u(this.lat,t)+", "+u(this.lng,t)+")"},distanceTo:function(t){return W.distance(this,H(t))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return B([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},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(),n=this.wrapLatLng(e),i=e.lat-n.lat,o=e.lng-n.lng;if(0==i&&0==o)return t;var r=t.getSouthWest(),a=t.getNorthEast();return new j(new R(r.lat-i,r.lng-o),new R(a.lat-i,a.lng-o))}},W=e({},F,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,o=e.lat*n,r=Math.sin((e.lat-t.lat)*n/2),a=Math.sin((e.lng-t.lng)*n/2),s=r*r+Math.cos(i)*Math.cos(o)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),q=6378137,V={R:q,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),o=Math.sin(i*e);return new P(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/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 N([-($=q*Math.PI),-$],[$,$])};function Y(t,e,n,i){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=n,this._d=i}function Z(t,e,n,i){return new Y(t,e,n,i)}Y.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 P((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var U,G=e({},W,{code:"EPSG:3857",projection:V,transformation:Z(U=.5/(Math.PI*V.R),.5,-U,.5)}),X=e({},G,{code:"EPSG:900913"});function K(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function J(t,e){for(var n,i,o,r,a="",s=0,l=t.length;s<l;s++){for(n=0,i=(o=t[s]).length;n<i;n++)a+=(n?"L":"M")+(r=o[n]).x+" "+r.y;a+=e?Mt?"z":"x":""}return a||"M0 0"}var Q=document.documentElement.style,tt="ActiveXObject"in window,et=tt&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),it=Pt("webkit"),ot=Pt("android"),rt=Pt("android 2")||Pt("android 3"),at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=ot&&Pt("Google")&&at<537&&!("AudioNode"in window),lt=!!window.opera,ct=!nt&&Pt("chrome"),ut=Pt("gecko")&&!it&&!lt&&!tt,dt=!ct&&Pt("safari"),ht=Pt("phantom"),pt="OTransition"in Q,ft=0===navigator.platform.indexOf("Win"),mt=tt&&"transition"in Q,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!rt,vt="MozPerspective"in Q,yt=!window.L_DISABLE_3D&&(mt||gt||vt)&&!pt&&!ht,_t="undefined"!=typeof orientation||Pt("mobile"),bt=_t&&it,wt=_t&&gt,xt=!window.PointerEvent&&window.MSPointerEvent,Tt=!(!window.PointerEvent&&!xt),Ct=!window.L_NO_TOUCH&&(Tt||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),St=_t&&lt,Et=_t&&ut,Dt=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}(),At=!!document.createElement("canvas").getContext,Mt=!(!document.createElementNS||!K("svg").createSVGRect),Lt=!Mt&&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(t){return!1}}();function Pt(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var Ot={ie:tt,ielt9:et,edge:nt,webkit:it,android:ot,android23:rt,androidStock:st,opera:lt,chrome:ct,gecko:ut,safari:dt,phantom:ht,opera12:pt,win:ft,ie3d:mt,webkit3d:gt,gecko3d:vt,any3d:yt,mobile:_t,mobileWebkit:bt,mobileWebkit3d:wt,msPointer:xt,pointer:Tt,touch:Ct,mobileOpera:St,mobileGecko:Et,retina:Dt,passiveEvents:kt,canvas:At,svg:Mt,vml:Lt},It=xt?"MSPointerDown":"pointerdown",Nt=xt?"MSPointerMove":"pointermove",zt=xt?"MSPointerUp":"pointerup",jt=xt?"MSPointerCancel":"pointercancel",Bt={},Rt=!1;function Ht(t,e,n,i){function r(t){qt(t,s)}var a,s,l,c,u,d,h,p;function f(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||qt(t,c)}return"touchstart"===e?(u=t,d=n,h=i,p=o((function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&je(t),qt(t,d)})),u["_leaflet_touchstart"+h]=p,u.addEventListener(It,p,!1),Rt||(document.addEventListener(It,$t,!0),document.addEventListener(Nt,Ft,!0),document.addEventListener(zt,Wt,!0),document.addEventListener(jt,Wt,!0),Rt=!0)):"touchmove"===e?(c=n,(l=t)["_leaflet_touchmove"+i]=f,l.addEventListener(Nt,f,!1)):"touchend"===e&&(s=n,(a=t)["_leaflet_touchend"+i]=r,a.addEventListener(zt,r,!1),a.addEventListener(jt,r,!1)),this}function $t(t){Bt[t.pointerId]=t}function Ft(t){Bt[t.pointerId]&&(Bt[t.pointerId]=t)}function Wt(t){delete Bt[t.pointerId]}function qt(t,e){for(var n in t.touches=[],Bt)t.touches.push(Bt[n]);t.changedTouches=[t],e(t)}var Vt,Yt,Zt,Ut,Gt,Xt,Kt=xt?"MSPointerDown":Tt?"pointerdown":"touchstart",Jt=xt?"MSPointerUp":Tt?"pointerup":"touchend",Qt="_leaflet_",te=ge(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ee=ge(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ne="webkitTransition"===ee||"OTransition"===ee?ee+"End":"transitionend";function ie(t){return"string"==typeof t?document.getElementById(t):t}function oe(t,e){var n,i=t.style[e]||t.currentStyle&&t.currentStyle[e];return i&&"auto"!==i||!document.defaultView||(i=(n=document.defaultView.getComputedStyle(t,null))?n[e]:null),"auto"===i?null:i}function re(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function ae(t){var e=t.parentNode;e&&e.removeChild(t)}function se(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function le(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ce(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ue(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=fe(t);return 0<n.length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function de(t,e){var n;if(void 0!==t.classList)for(var i=h(e),o=0,r=i.length;o<r;o++)t.classList.add(i[o]);else ue(t,e)||pe(t,((n=fe(t))?n+" ":"")+e)}function he(t,e){void 0!==t.classList?t.classList.remove(e):pe(t,d((" "+fe(t)+" ").replace(" "+e+" "," ")))}function pe(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function fe(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function me(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}(t,e)}function ge(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function ve(t,e,n){var i=e||new P(0,0);t.style[te]=(mt?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function ye(t,e){t._leaflet_pos=e,yt?ve(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function _e(t){return t._leaflet_pos||new P(0,0)}function be(){De(window,"dragstart",je)}function we(){Ae(window,"dragstart",je)}function xe(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Te(),Xt=(Gt=t).style.outline,t.style.outline="none",De(window,"keydown",Te))}function Te(){Gt&&(Gt.style.outline=Xt,Xt=Gt=void 0,Ae(window,"keydown",Te))}function Ce(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function Se(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}Ut="onselectstart"in document?(Zt=function(){De(window,"selectstart",je)},function(){Ae(window,"selectstart",je)}):(Yt=ge(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),Zt=function(){var t;Yt&&(t=document.documentElement.style,Vt=t[Yt],t[Yt]="none")},function(){Yt&&(document.documentElement.style[Yt]=Vt,Vt=void 0)});var Ee={TRANSFORM:te,TRANSITION:ee,TRANSITION_END:ne,get:ie,getStyle:oe,create:re,remove:ae,empty:se,toFront:le,toBack:ce,hasClass:ue,addClass:de,removeClass:he,setClass:pe,getClass:fe,setOpacity:me,testProp:ge,setTransform:ve,setPosition:ye,getPosition:_e,disableTextSelection:Zt,enableTextSelection:Ut,disableImageDrag:be,enableImageDrag:we,preventOutline:xe,restoreOutline:Te,getSizedParentNode:Ce,getScale:Se};function De(t,e,n,i){if("object"==typeof e)for(var o in e)Pe(t,o,e[o],n);else for(var r=0,a=(e=h(e)).length;r<a;r++)Pe(t,e[r],n,i);return this}var ke="_leaflet_events";function Ae(t,e,n,i){if("object"==typeof e)for(var o in e)Oe(t,o,e[o],n);else if(e)for(var r=0,a=(e=h(e)).length;r<a;r++)Oe(t,e[r],n,i);else{for(var s in t[ke])Oe(t,s,t[ke][s]);delete t[ke]}return this}function Me(){return Tt&&!nt&&!dt}var Le={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Pe(t,e,n,i){var o=e+a(n)+(i?"_"+a(i):"");if(t[ke]&&t[ke][o])return this;var r,s,l,c,u,d,h=function(e){return n.call(i||t,e||window.event)},p=h;function f(t){if(Tt){if(!t.isPrimary)return;if("mouse"===t.pointerType)return}else if(1<t.touches.length)return;var e=Date.now(),n=e-(c||e);u=t.touches?t.touches[0]:t,d=0<n&&n<=250,c=e}function m(t){if(d&&!u.cancelBubble){if(Tt){if("mouse"===t.pointerType)return;var e,n,i={};for(n in u)e=u[n],i[n]=e&&e.bind?e.bind(u):e;u=i}u.type="dblclick",u.button=0,s(u),c=null}}Tt&&0===e.indexOf("touch")?Ht(t,e,h,o):Ct&&"dblclick"===e&&!Me()?(s=h,d=!1,(r=t)[Qt+Kt+(l=o)]=f,r[Qt+Jt+l]=m,r[Qt+"dblclick"+l]=s,r.addEventListener(Kt,f,!!kt&&{passive:!1}),r.addEventListener(Jt,m,!!kt&&{passive:!1}),r.addEventListener("dblclick",s,!1)):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Le[e]||e,h,!!kt&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(h=function(e){e=e||window.event,Ve(t,e)&&p(e)},t.addEventListener(Le[e],h,!1)):t.addEventListener(e,p,!1):"attachEvent"in t&&t.attachEvent("on"+e,h),t[ke]=t[ke]||{},t[ke][o]=h}function Oe(t,e,n,i){var o,r,s,l,c,u,d,h,p=e+a(n)+(i?"_"+a(i):""),f=t[ke]&&t[ke][p];if(!f)return this;Tt&&0===e.indexOf("touch")?(h=(u=t)["_leaflet_"+(d=e)+p],"touchstart"===d?u.removeEventListener(It,h,!1):"touchmove"===d?u.removeEventListener(Nt,h,!1):"touchend"===d&&(u.removeEventListener(zt,h,!1),u.removeEventListener(jt,h,!1))):Ct&&"dblclick"===e&&!Me()?(s=(o=t)[Qt+Kt+(r=p)],l=o[Qt+Jt+r],c=o[Qt+"dblclick"+r],o.removeEventListener(Kt,s,!!kt&&{passive:!1}),o.removeEventListener(Jt,l,!!kt&&{passive:!1}),o.removeEventListener("dblclick",c,!1)):"removeEventListener"in t?t.removeEventListener(Le[e]||e,f,!1):"detachEvent"in t&&t.detachEvent("on"+e,f),t[ke][p]=null}function Ie(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,qe(t),this}function Ne(t){return Pe(t,"wheel",Ie),this}function ze(t){return De(t,"mousedown touchstart dblclick",Ie),Pe(t,"click",We),this}function je(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Be(t){return je(t),Ie(t),this}function Re(t,e){if(!e)return new P(t.clientX,t.clientY);var n=Se(e),i=n.boundingClientRect;return new P((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var He=ft&&ct?2*window.devicePixelRatio:ut?window.devicePixelRatio:1;function $e(t){return nt?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/He: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}var Fe={};function We(t){Fe[t.type]=!0}function qe(t){var e=Fe[t.type];return Fe[t.type]=!1,e}function Ve(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var Ye={on:De,off:Ae,stopPropagation:Ie,disableScrollPropagation:Ne,disableClickPropagation:ze,preventDefault:je,stop:Be,getMousePosition:Re,getWheelDelta:$e,fakeStop:We,skipped:qe,isExternalTarget:Ve,addListener:De,removeListener:Ae},Ze=M.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=_e(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=S(this._animate,this),this._step()},_step:function(t){var e=new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),ye(this._el,n),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)}}),Ue=M.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=o(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=ee&&yt&&!St&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),De(this._proxy,ne,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,n,i){return n=void 0===n?this._zoom:this._limitZoom(n),t=this._limitCenter(H(t),n,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom=e({animate:i.animate},i.zoom),i.pan=e({animate:i.animate,duration:i.duration},i.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,n,i.zoom):this._tryAnimatedPan(t,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,n),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||(yt?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(yt?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),o=this.getSize().divideBy(2),r=(t instanceof P?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/i),a=this.containerPointToLatLng(o.add(r));return this.setView(a,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():B(t);var n=I(e.paddingTopLeft||e.padding||[0,0]),i=I(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,n.add(i));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var r=i.subtract(n).divideBy(2),a=this.project(t.getSouthWest(),o),s=this.project(t.getNorthEast(),o);return{center:this.unproject(a.add(s).divideBy(2).add(r),o),zoom:o}},fitBounds:function(t,e){if(!(t=B(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.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){return e=e||{},(t=I(t).round()).x||t.y?(!0===e.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new Ze,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate?(de(this._mapPane,"leaflet-pan-anim"),n=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,n,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");var n},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!yt)return this.setView(t,e,n);this._stop();var i=this.project(this.getCenter()),o=this.project(t),r=this.getSize(),a=this._zoom;t=H(t),e=void 0===e?a:e;var s=Math.max(r.x,r.y),l=s*this.getZoomScale(a,e),c=o.distanceTo(i)||1,u=1.42,d=u*u;function h(t){var e=(l*l-s*s+(t?-1:1)*d*d*c*c)/(2*(t?l:s)*d*c),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}var m=h(0);function g(t){return s*(f(m)*(p(e=m+u*t)/f(e))-p(m))/d;var e}var v=Date.now(),y=(h(1)-m)/u,_=n.duration?1e3*n.duration:1e3*y*.8;return this._moveStart(!0,n.noMoveStart),function n(){var r,l,d=(Date.now()-v)/_,h=(r=d,(1-Math.pow(1-r,1.5))*y);d<=1?(this._flyToFrame=S(n,this),this._move(this.unproject(i.add(o.subtract(i).multiplyBy(g(h)/c)),a),this.getScaleZoom(s/(l=h,s*(f(m)/f(m+u*l))),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return(t=B(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},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 n=this.getCenter(),i=this._limitCenter(n,this._zoom,B(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n,i,o=I((e=e||{}).paddingTopLeft||e.padding||[0,0]),r=I(e.paddingBottomRight||e.padding||[0,0]),a=this.getCenter(),s=this.project(a),l=this.project(t),c=this.getPixelBounds(),u=c.getSize().divideBy(2),d=z([c.min.add(o),c.max.subtract(r)]);return d.contains(l)||(this._enforcingBounds=!0,n=s.subtract(l),i=I(l.x+n.x,l.y+n.y),(l.x<d.min.x||l.x>d.max.x)&&(i.x=s.x-n.x,0<n.x?i.x+=u.x-o.x:i.x-=u.x-r.x),(l.y<d.min.y||l.y>d.max.y)&&(i.y=s.y-n.y,0<n.y?i.y+=u.y-o.y:i.y-=u.y-r.y),this.panTo(this.unproject(i),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 n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),r=n.divideBy(2).round(),a=i.divideBy(2).round(),s=r.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:i})):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=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=o(this._handleGeolocationResponse,this),i=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,i,t):navigator.geolocation.getCurrentPosition(n,i,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){var e=t.code,n=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: "+n+"."})},_handleGeolocationResponse:function(t){var e,n=new R(t.coords.latitude,t.coords.longitude),i=n.toBounds(2*t.coords.accuracy),o=this._locateOptions;o.setView&&(e=this.getBoundsZoom(i),this.setView(n,o.maxZoom?Math.min(e,o.maxZoom):e));var r={latlng:n,bounds:i,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(r[a]=t.coords[a]);this.fire("locationfound",r)},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),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}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ae(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)ae(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=re("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new j(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,n){t=B(t),n=I(n||[0,0]);var i=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(n),c=z(this.project(s,i),this.project(a,i)).getSize(),u=yt?this.options.zoomSnap:1,d=l.x/c.x,h=l.y/c.y,p=e?Math.max(d,h):Math.min(d,h);i=this.getScaleZoom(p,i);return u&&(i=Math.round(i/(u/100))*(u/100),i=e?Math.ceil(i/u)*u:Math.floor(i/u)*u),Math.max(o,Math.min(r,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new P(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new N(n,n.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 n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},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){var e=I(t).add(this.getPixelOrigin());return this.unproject(e)},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){var e=this.containerPointToLayerPoint(I(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(H(t)))},mouseEventToContainerPoint:function(t){return Re(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=ie(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");De(e,"scroll",this._onScroll,this),this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&yt,de(t,"leaflet-container"+(Ct?" leaflet-touch":"")+(Dt?" leaflet-retina":"")+(et?" leaflet-oldie":"")+(dt?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=oe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==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),ye(this._mapPane,new P(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(de(t.markerPane,"leaflet-zoom-hide"),de(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){ye(this._mapPane,new P(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var i=this._zoom!==e;this._moveStart(i,!1)._move(t,e)._moveEnd(i),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,n){void 0===e&&(e=this._zoom);var i=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_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){ye(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?Ae:De;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),yt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=S((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 n,i=[],o="mouseout"===e||"mouseover"===e,r=t.target||t.srcElement,s=!1;r;){if((n=this._targets[a(r)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(o&&!Ve(r,t))break;if(i.push(n),o)break}if(r===this._container)break;r=r.parentNode}return i.length||s||o||!Ve(r,t)||(i=[this]),i},_handleDOMEvent:function(t){var e;this._loaded&&!qe(t)&&("mousedown"!==(e=t.type)&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||xe(t.target||t.srcElement),this._fireDOMEvent(t,e))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,i){var o;if("click"===t.type&&((o=e({},t)).type="preclick",this._fireDOMEvent(o,o.type,i)),!t._stopped&&(i=(i||[]).concat(this._findEventTargets(t,n))).length){var r=i[0];"contextmenu"===n&&r.listens(n,!0)&&je(t);var a,s={originalEvent:t};"keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(a=r.getLatLng&&(!r._radius||r._radius<=10),s.containerPoint=a?this.latLngToContainerPoint(r.getLatLng()):this.mouseEventToContainerPoint(t),s.layerPoint=this.containerPointToLayerPoint(s.containerPoint),s.latlng=a?r.getLatLng():this.layerPointToLatLng(s.layerPoint));for(var l=0;l<i.length;l++)if(i[l].fire(n,s,!0),s.originalEvent._stopped||!1===i[l].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,n))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 _e(this._mapPane)||new P(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 n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return z([this.project(t.getSouthWest(),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,n){if(!n)return t;var i=this.project(t,e),o=this.getSize().divideBy(2),r=new N(i.subtract(o),i.add(o)),a=this._getBoundsOffset(r,n,e);return a.round().equals([0,0])?t:this.unproject(i.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new N(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=z(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),o=i.min.subtract(t.min),r=i.max.subtract(t.max);return new P(this._rebound(o.x,-r.x),this._rebound(o.y,-r.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(),n=this.getMaxZoom(),i=yt?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){he(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=re("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=te,n=this._proxy.style[e];ve(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ae(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ve(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,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(o)||(S((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,i){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,de(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:i}),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&he(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),S((function(){this._moveEnd(!0)}),this))}});function Ge(t){return new Xe(t)}var Xe=k.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),n=this.getPosition(),i=t._controlCorners[n];return de(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(ae(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()}});Ue.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=re("div",e+"control-container",this._container);function i(i,o){var r=e+i+" "+e+o;t[i+o]=re("div",r,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ae(this._controlCorners[t]);ae(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ke=Xe.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n<i?-1:i<n?1:0}},initialize:function(t,e,n){for(var i in p(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!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 Xe.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(){de(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?(de(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):he(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return he(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=re("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),ze(e),Ne(e);var i=this._section=re("section",t+"-list");n&&(this._map.on("click",this.collapse,this),ot||De(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var o=this._layersLink=re("a",t+"-toggle",e);o.href="#",o.title="Layers",Ct?(De(o,"click",Be),De(o,"click",this.expand,this)):De(o,"focus",this.expand,this),n||this.expand(),this._baseLayersList=re("div",t+"-base",i),this._separator=re("div",t+"-separator",i),this._overlaysList=re("div",t+"-overlays",i),e.appendChild(i)},_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,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(o((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;se(this._baseLayersList),se(this._overlaysList),this._layerControlInputs=[];for(var t,e,n,i=0,o=0;o<this._layers.length;o++)n=this._layers[o],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,i+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&1<i,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)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+a(this),i),this._layerControlInputs.push(e),e.layerId=a(t.layer),De(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var r=document.createElement("div");return n.appendChild(r),r.appendChild(e),r.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,i=[],o=[];this._handlingClick=!0;for(var r=n.length-1;0<=r;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||o.push(e);for(r=0;r<o.length;r++)this._map.hasLayer(o[r])&&this._map.removeLayer(o[r]);for(r=0;r<i.length;r++)this._map.hasLayer(i[r])||this._map.addLayer(i[r]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,i=this._map.getZoom(),o=n.length-1;0<=o;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&i<e.options.minZoom||void 0!==e.options.maxZoom&&i>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Je=Xe.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=re("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},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,n,i,o){var r=re("a",n,i);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),ze(r),De(r,"click",Be),De(r,"click",o,this),De(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";he(this._zoomInButton,e),he(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMinZoom()||de(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMaxZoom()||de(this._zoomInButton,e)}});Ue.mergeOptions({zoomControl:!0}),Ue.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Je,this.addControl(this.zoomControl))}));var Qe=Xe.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=re("div",e),i=this.options;return this._addScales(i,e+"-line",n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=re("div",e,n)),t.imperial&&(this._iScale=re("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_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),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,o=3.2808399*t;5280<o?(e=o/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(o),this._updateScale(this._iScale,i+" ft",i/o))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(10<=n?10:5<=n?5:3<=n?3:2<=n?2:1)}}),tn=Xe.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=re("div","leaflet-control-attribution"),ze(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},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=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});Ue.mergeOptions({attributionControl:!0}),Ue.addInitHook((function(){this.options.attributionControl&&(new tn).addTo(this)})),Xe.Layers=Ke,Xe.Zoom=Je,Xe.Scale=Qe,Xe.Attribution=tn,Ge.layers=function(t,e,n){return new Ke(t,e,n)},Ge.zoom=function(t){return new Je(t)},Ge.scale=function(t){return new Qe(t)},Ge.attribution=function(t){return new tn(t)};var en=k.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}});en.addTo=function(t,e){return t.addHandler(e,this),this};var nn,on={Events:A},rn=Ct?"touchstart mousedown":"mousedown",an={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},sn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},ln=M.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){p(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(De(this._dragStartTarget,rn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ln._dragging===this&&this.finishDrag(),Ae(this._dragStartTarget,rn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var e,n;!t._simulated&&this._enabled&&(this._moved=!1,ue(this._element,"leaflet-zoom-anim")||ln._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((ln._dragging=this)._preventOutline&&xe(this._element),be(),Zt(),this._moving||(this.fire("down"),e=t.touches?t.touches[0]:t,n=Ce(this._element),this._startPoint=new P(e.clientX,e.clientY),this._parentScale=Se(n),De(document,sn[t.type],this._onMove,this),De(document,an[t.type],this._onUp,this))))},_onMove:function(t){var e,n;!t._simulated&&this._enabled&&(t.touches&&1<t.touches.length?this._moved=!0:((n=new P((e=t.touches&&1===t.touches.length?t.touches[0]:t).clientX,e.clientY)._subtract(this._startPoint)).x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,je(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=_e(this._element).subtract(n),de(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),de(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,E(this._animRequest),this._lastEvent=t,this._animRequest=S(this._updatePosition,this,!0))))},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ye(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in he(document.body,"leaflet-dragging"),this._lastTarget&&(he(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),sn)Ae(document,sn[t],this._onMove,this),Ae(document,an[t],this._onUp,this);we(),Ut(),this._moved&&this._moving&&(E(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,ln._dragging=!1}});function cn(t,e){if(!e||!t.length)return t.slice();var n=e*e;return function(t,e){var n=t.length,i=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,function t(e,n,i,o,r){var a,s,l,c=0;for(s=o+1;s<=r-1;s++)c<(l=fn(e[s],e[o],e[r],!0))&&(a=s,c=l);i<c&&(n[a]=1,t(e,n,i,o,a),t(e,n,i,a,r))}(t,i,e,0,n-1);var o,r=[];for(o=0;o<n;o++)i[o]&&r.push(t[o]);return r}(t=function(t,e){for(var n=[t[0]],i=1,o=0,r=t.length;i<r;i++)(function(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i})(t[i],t[o])>e&&(n.push(t[i]),o=i);return o<r-1&&n.push(t[r-1]),n}(t,n),n)}function un(t,e,n){return Math.sqrt(fn(t,e,n,!0))}function dn(t,e,n,i,o){var r,a,s,l=i?nn:pn(t,n),c=pn(e,n);for(nn=c;;){if(!(l|c))return[t,e];if(l&c)return!1;s=pn(a=hn(t,e,r=l||c,n,o),n),r===l?(t=a,l=s):(e=a,c=s)}}function hn(t,e,n,i,o){var r,a,s=e.x-t.x,l=e.y-t.y,c=i.min,u=i.max;return 8&n?(r=t.x+s*(u.y-t.y)/l,a=u.y):4&n?(r=t.x+s*(c.y-t.y)/l,a=c.y):2&n?(r=u.x,a=t.y+l*(u.x-t.x)/s):1&n&&(r=c.x,a=t.y+l*(c.x-t.x)/s),new P(r,a,o)}function pn(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function fn(t,e,n,i){var o,r=e.x,a=e.y,s=n.x-r,l=n.y-a,c=s*s+l*l;return 0<c&&(1<(o=((t.x-r)*s+(t.y-a)*l)/c)?(r=n.x,a=n.y):0<o&&(r+=s*o,a+=l*o)),s=t.x-r,l=t.y-a,i?s*s+l*l:new P(r,a)}function mn(t){return!v(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function gn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),mn(t)}var vn={simplify:cn,pointToSegmentDistance:un,closestPointOnSegment:function(t,e,n){return fn(t,e,n)},clipSegment:dn,_getEdgeIntersection:hn,_getBitCode:pn,_sqClosestPointOnSegment:fn,isFlat:mn,_flat:gn};function yn(t,e,n){for(var i,o,r,a,s,l,c,u=[1,4,2,8],d=0,h=t.length;d<h;d++)t[d]._code=pn(t[d],e);for(r=0;r<4;r++){for(l=u[r],i=[],d=0,o=(h=t.length)-1;d<h;o=d++)a=t[d],s=t[o],a._code&l?s._code&l||((c=hn(s,a,l,e,n))._code=pn(c,e),i.push(c)):(s._code&l&&((c=hn(s,a,l,e,n))._code=pn(c,e),i.push(c)),i.push(a));t=i}return t}var _n,bn={clipPolygon:yn},wn={project:function(t){return new P(t.lng,t.lat)},unproject:function(t){return new R(t.y,t.x)},bounds:new N([-180,-90],[180,90])},xn={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,n=this.R,i=t.lat*e,o=this.R_MINOR/n,r=Math.sqrt(1-o*o),a=r*Math.sin(i),s=Math.tan(Math.PI/4-i/2)/Math.pow((1-a)/(1+a),r/2);i=-n*Math.log(Math.max(s,1e-10));return new P(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),a=Math.exp(-t.y/i),s=Math.PI/2-2*Math.atan(a),l=0,c=.1;l<15&&1e-7<Math.abs(c);l++)e=r*Math.sin(s),e=Math.pow((1-e)/(1+e),r/2),s+=c=Math.PI/2-2*Math.atan(a*e)-s;return new R(s*n,t.x*n/i)}},Tn={LonLat:wn,Mercator:xn,SphericalMercator:V},Cn=e({},W,{code:"EPSG:3395",projection:xn,transformation:Z(_n=.5/(Math.PI*xn.R),.5,-_n,.5)}),Sn=e({},W,{code:"EPSG:4326",projection:wn,transformation:Z(1/180,1,-1/180,.5)}),En=e({},F,{projection:wn,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 n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});F.Earth=W,F.EPSG3395=Cn,F.EPSG3857=G,F.EPSG900913=X,F.EPSG4326=Sn,F.Simple=En;var Dn=M.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,n=t.target;n.hasLayer(this)&&(this._map=n,this._zoomAnimated=n._zoomAnimated,this.getEvents&&(e=this.getEvents(),n.on(e,this),this.once("remove",(function(){n.off(e,this)}),this)),this.onAdd(n),this.getAttribution&&n.attributionControl&&n.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),n.fire("layeradd",{layer:this}))}});Ue.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)._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),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer:function(t){return!!t&&a(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?v(t)?t:[t]:[]).length;e<n;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,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var o=this._zoomBoundLayers[i].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var kn=Dn.extend({initialize:function(t,e){var n,i;if(p(this,e),this._layers={},t)for(n=0,i=t.length;n<i;n++)this.addLayer(t[n])},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!!t&&("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);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}),An=kn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),kn.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),kn.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 j;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Mn=k.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},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 n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var i=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(i,t),i},_setIconStyles:function(t,e){var n=this.options,i=n[e+"Size"];"number"==typeof i&&(i=[i,i]);var o=I(i),r=I("shadow"===e&&n.shadowAnchor||n.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),r&&(t.style.marginLeft=-r.x+"px",t.style.marginTop=-r.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Dt&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),Ln=Mn.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 Ln.imagePath||(Ln.imagePath=this._detectIconPath()),(this.options.imagePath||Ln.imagePath)+Mn.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=re("div","leaflet-default-icon-path",document.body),e=oe(t,"background-image")||oe(t,"backgroundImage");return document.body.removeChild(t),null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Pn=en.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new ln(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),de(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&&he(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e,n=this._marker,i=n._map,o=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,a=_e(n._icon),s=i.getPixelBounds(),l=i.getPixelOrigin(),c=z(s.min._subtract(l).add(r),s.max._subtract(l).subtract(r));c.contains(a)||(e=I((Math.max(c.max.x,a.x)-c.max.x)/(s.max.x-c.max.x)-(Math.min(c.min.x,a.x)-c.min.x)/(s.min.x-c.min.x),(Math.max(c.max.y,a.y)-c.max.y)/(s.max.y-c.max.y)-(Math.min(c.min.y,a.y)-c.min.y)/(s.min.y-c.min.y)).multiplyBy(o),i.panBy(e,{animate:!1}),this._draggable._newPos._add(e),this._draggable._startPos._add(e),ye(n._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=S(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=S(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=_e(e._icon),o=e._map.layerPointToLatLng(i);n&&ye(n,i),e._latlng=o,t.latlng=o,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)}}),On=Dn.extend({options:{icon:new Ln,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(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=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),i=!1;n!==this._icon&&(this._icon&&this._removeIcon(),i=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),de(n,e),t.keyboard&&(n.tabIndex="0"),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var o=t.icon.createShadow(this._shadow),r=!1;o!==this._shadow&&(this._removeShadow(),r=!0),o&&(de(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&r&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ae(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ae(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&ye(this._icon,t),this._shadow&&ye(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(){var t;this.options.interactive&&(de(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Pn&&(t=this.options.draggable,this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Pn(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&&me(this._icon,t),this._shadow&&me(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),In=Dn.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}}),Nn=In.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 In.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,n=this._clickTolerance(),i=[t+n,e+n];this._pxBounds=new N(this._point.subtract(i),this._point.add(i))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),zn=Nn.extend({initialize:function(t,n,i){if("number"==typeof n&&(n=e({},i,{radius:n})),p(this,n),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 j(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:In.prototype.setStyle,_project:function(){var t,e,n,i,o,r,a,s,l=this._latlng.lng,c=this._latlng.lat,u=this._map,d=u.options.crs;d.distance===W.distance?(t=Math.PI/180,e=this._mRadius/W.R/t,n=u.project([c+e,l]),i=u.project([c-e,l]),o=n.add(i).divideBy(2),r=u.unproject(o).lat,a=Math.acos((Math.cos(e*t)-Math.sin(c*t)*Math.sin(r*t))/(Math.cos(c*t)*Math.cos(r*t)))/t,!isNaN(a)&&0!==a||(a=e/Math.cos(Math.PI/180*c)),this._point=o.subtract(u.getPixelOrigin()),this._radius=isNaN(a)?0:o.x-u.project([r,l-a]).x,this._radiusY=o.y-n.y):(s=d.unproject(d.project(this._latlng).subtract([this._mRadius,0])),this._point=u.latLngToLayerPoint(this._latlng),this._radius=this._point.x-u.latLngToLayerPoint(s).x),this._updateBounds()}}),jn=In.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,n,i=1/0,o=null,r=fn,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],c=1,u=l.length;c<u;c++){var d=r(t,e=l[c-1],n=l[c],!0);d<i&&(i=d,o=r(t,e,n))}return o&&(o.distance=Math.sqrt(i)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,i,o,r,a,s=this._rings[0],l=s.length;if(!l)return null;for(e=t=0;t<l-1;t++)e+=s[t].distanceTo(s[t+1])/2;if(0===e)return this._map.layerPointToLatLng(s[0]);for(i=t=0;t<l-1;t++)if(o=s[t],r=s[t+1],e<(i+=n=o.distanceTo(r)))return a=(i-e)/n,this._map.layerPointToLatLng([r.x-a*(r.x-o.x),r.y-a*(r.y-o.y)])},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 j,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return mn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=mn(t),i=0,o=t.length;i<o;i++)n?(e[i]=H(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);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 P(t,t);this._pxBounds=new N([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,n){var i,o,r=t[0]instanceof R,a=t.length;if(r){for(o=[],i=0;i<a;i++)o[i]=this._map.latLngToLayerPoint(t[i]),n.extend(o[i]);e.push(o)}else for(i=0;i<a;i++)this._projectLatlngs(t[i],e,n)},_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,n,i,o,r=this._parts,a=0,s=0,l=this._rings.length;a<l;a++)for(e=0,n=(o=this._rings[a]).length;e<n-1;e++)(i=dn(o[e],o[e+1],t,e,!0))&&(r[s]=r[s]||[],r[s].push(i[0]),i[1]===o[e+1]&&e!==n-2||(r[s].push(i[1]),s++))},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=cn(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,i,o,r,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,r=this._parts.length;n<r;n++)for(i=0,o=(a=(s=this._parts[n]).length)-1;i<a;o=i++)if((e||0!==i)&&un(t,s[o],s[i])<=l)return!0;return!1}});jn._flat=gn;var Bn=jn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,i,o,r,a,s,l,c=this._rings[0],u=c.length;if(!u)return null;for(t=r=a=s=0,e=u-1;t<u;e=t++)n=c[t],i=c[e],o=n.y*i.x-i.y*n.x,a+=(n.x+i.x)*o,s+=(n.y+i.y)*o,r+=3*o;return l=0===r?c[0]:[a/r,s/r],this._map.layerPointToLatLng(l)},_convertLatLngs:function(t){var e=jn.prototype._convertLatLngs.call(this,t),n=e.length;return 2<=n&&e[0]instanceof R&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){jn.prototype._setLatLngs.call(this,t),mn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return mn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new P(e,e);t=new N(t.min.subtract(n),t.max.add(n));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,o=0,r=this._rings.length;o<r;o++)(i=yn(this._rings[o],t,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,i,o,r,a,s,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,s=this._parts.length;o<s;o++)for(r=0,a=(l=(e=this._parts[o]).length)-1;r<l;a=r++)n=e[r],i=e[a],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(c=!c);return c||jn.prototype._containsPoint.call(this,t,!0)}}),Rn=An.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=v(t)?t:t.features;if(o){for(e=0,n=o.length;e<n;e++)((i=o[e]).geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var r=this.options;if(r.filter&&!r.filter(t))return this;var a=Hn(t,r);return a?(a.feature=Zn(t),a.defaultOptions=a.options,this.resetStyle(a),r.onEachFeature&&r.onEachFeature(t,a),this.addLayer(a)):this},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 Hn(t,e){var n,i,o,r,a="Feature"===t.type?t.geometry:t,s=a?a.coordinates:null,l=[],c=e&&e.pointToLayer,u=e&&e.coordsToLatLng||Fn;if(!s&&!a)return null;switch(a.type){case"Point":return $n(c,t,n=u(s),e);case"MultiPoint":for(o=0,r=s.length;o<r;o++)n=u(s[o]),l.push($n(c,t,n,e));return new An(l);case"LineString":case"MultiLineString":return i=Wn(s,"LineString"===a.type?0:1,u),new jn(i,e);case"Polygon":case"MultiPolygon":return i=Wn(s,"Polygon"===a.type?1:2,u),new Bn(i,e);case"GeometryCollection":for(o=0,r=a.geometries.length;o<r;o++){var d=Hn({geometry:a.geometries[o],type:"Feature",properties:t.properties},e);d&&l.push(d)}return new An(l);default:throw new Error("Invalid GeoJSON object.")}}function $n(t,e,n,i){return t?t(e,n):new On(n,i&&i.markersInheritOptions&&i)}function Fn(t){return new R(t[1],t[0],t[2])}function Wn(t,e,n){for(var i,o=[],r=0,a=t.length;r<a;r++)i=e?Wn(t[r],e-1,n):(n||Fn)(t[r]),o.push(i);return o}function qn(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[u(t.lng,e),u(t.lat,e),u(t.alt,e)]:[u(t.lng,e),u(t.lat,e)]}function Vn(t,e,n,i){for(var o=[],r=0,a=t.length;r<a;r++)o.push(e?Vn(t[r],e-1,n,i):qn(t[r],i));return!e&&n&&o.push(o[0]),o}function Yn(t,n){return t.feature?e({},t.feature,{geometry:n}):Zn(n)}function Zn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Un={toGeoJSON:function(t){return Yn(this,{type:"Point",coordinates:qn(this.getLatLng(),t)})}};function Gn(t,e){return new Rn(t,e)}On.include(Un),zn.include(Un),Nn.include(Un),jn.include({toGeoJSON:function(t){var e=!mn(this._latlngs);return Yn(this,{type:(e?"Multi":"")+"LineString",coordinates:Vn(this._latlngs,e?1:0,!1,t)})}}),Bn.include({toGeoJSON:function(t){var e=!mn(this._latlngs),n=e&&!mn(this._latlngs[0]),i=Vn(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),Yn(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),kn.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(n){e.push(n.toGeoJSON(t).geometry.coordinates)})),Yn(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 n="GeometryCollection"===e,i=[];return this.eachLayer((function(e){var o,r;e.toGeoJSON&&(o=e.toGeoJSON(t),n?i.push(o.geometry):"FeatureCollection"===(r=Zn(o)).type?i.push.apply(i,r.features):i.push(r))})),n?Yn(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var Xn=Gn,Kn=Dn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=B(e),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(de(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ae(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&&le(this._image),this},bringToBack:function(){return this._map&&ce(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:re("img");de(e,"leaflet-image-layer"),this._zoomAnimated&&de(e,"leaflet-zoom-animated"),this.options.className&&de(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=o(this.fire,this,"load"),e.onerror=o(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),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ve(this._image,n,e)},_reset:function(){var t=this._image,e=new N(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();ye(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){me(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)}}),Jn=Kn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:re("video");if(de(e,"leaflet-image-layer"),this._zoomAnimated&&de(e,"leaflet-zoom-animated"),this.options.className&&de(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=o(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),i=[],r=0;r<n.length;r++)i.push(n[r].src);this._url=0<n.length?i:[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;for(var a=0;a<this._url.length;a++){var s=re("source");s.src=this._url[a],e.appendChild(s)}}}}),Qn=Kn.extend({_initImage:function(){var t=this._image=this._url;de(t,"leaflet-image-layer"),this._zoomAnimated&&de(t,"leaflet-zoom-animated"),this.options.className&&de(t,this.options.className),t.onselectstart=c,t.onmousemove=c}}),ti=Dn.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){p(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&me(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&me(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(me(this._container,0),this._removeTimeout=setTimeout(o(ae,void 0,this._container),200)):ae(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&&le(this._container),this},bringToBack:function(){return this._map&&ce(this._container),this},_prepareOpen:function(t,e,n){if(e instanceof Dn||(n=e,e=t),e instanceof An)for(var i in t._layers){e=t._layers[i];break}if(!n)if(e.getCenter)n=e.getCenter();else{if(!e.getLatLng)throw new Error("Unable to get source layer LatLng.");n=e.getLatLng()}return this._source=e,this.update(),n},_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,n,i,o;this._map&&(t=this._map.latLngToLayerPoint(this._latlng),e=I(this.options.offset),n=this._getAnchor(),this._zoomAnimated?ye(this._container,t.add(n)):e=e.add(t).add(n),i=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x,this._container.style.bottom=i+"px",this._container.style.left=o+"px")},_getAnchor:function(){return[0,0]}}),ei=ti.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){ti.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof In||this._source.on("preclick",Ie))},onRemove:function(t){ti.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof In||this._source.off("preclick",Ie))},getEvents:function(){var t=ti.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},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t,e="leaflet-popup",n=this._container=re("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=re("div",e+"-content-wrapper",n);this._contentNode=re("div",e+"-content",i),ze(n),Ne(this._contentNode),De(n,"contextmenu",Ie),this._tipContainer=re("div",e+"-tip-container",n),this._tip=re("div",e+"-tip",this._tipContainer),this.options.closeButton&&((t=this._closeButton=re("a",e+"-close-button",n)).href="#close",t.innerHTML="&#215;",De(t,"click",this._onCloseButtonClick,this))},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth);n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var i=t.offsetHeight,o=this.options.maxHeight,r="leaflet-popup-scrolled";o&&o<i?(e.height=o+"px",de(t,r)):he(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();ye(this._container,e.add(n))},_adjustPan:function(){var t,e,n,i,o,r,a,s,l,c,u,d;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),t=this._map,e=parseInt(oe(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,(o=new P(this._containerLeft,-n-this._containerBottom))._add(_e(this._container)),r=t.layerPointToContainerPoint(o),a=I(this.options.autoPanPadding),s=I(this.options.autoPanPaddingTopLeft||a),l=I(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),d=u=0,r.x+i+l.x>c.x&&(u=r.x+i-c.x+l.x),r.x-u-s.x<0&&(u=r.x-s.x),r.y+n+l.y>c.y&&(d=r.y+n-c.y+l.y),r.y-d-s.y<0&&(d=r.y-s.y),(u||d)&&t.fire("autopanstart").panBy([u,d]))},_onCloseButtonClick:function(t){this._close(),Be(t)},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ue.mergeOptions({closePopupOnClick:!0}),Ue.include({openPopup:function(t,e,n){return t instanceof ei||(t=new ei(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Dn.include({bindPopup:function(t,e){return t instanceof ei?(p(t,e),(this._popup=t)._source=this):(this._popup&&!e||(this._popup=new ei(e,this)),this._popup.setContent(t)),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,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),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=t.layer||t.target;this._popup&&this._map&&(Be(t),e instanceof In?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var ni=ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){ti.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){ti.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=ti.prototype.getEvents.call(this);return Ct&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=re("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n=this._map,i=this._container,o=n.latLngToContainerPoint(n.getCenter()),r=n.layerPointToContainerPoint(t),a=this.options.direction,s=i.offsetWidth,l=i.offsetHeight,c=I(this.options.offset),u=this._getAnchor(),d="top"===a?(e=s/2,l):"bottom"===a?(e=s/2,0):(e="center"===a?s/2:"right"===a?0:"left"===a?s:r.x<o.x?(a="right",0):(a="left",s+2*(c.x+u.x)),l/2);t=t.subtract(I(e,d,!0)).add(c).add(u),he(i,"leaflet-tooltip-right"),he(i,"leaflet-tooltip-left"),he(i,"leaflet-tooltip-top"),he(i,"leaflet-tooltip-bottom"),de(i,"leaflet-tooltip-"+a),ye(i,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&me(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Ue.include({openTooltip:function(t,e,n){return t instanceof ni||(t=new ni(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),Dn.include({bindTooltip:function(t,e){return t instanceof ni?(p(t,e),(this._tooltip=t)._source=this):(this._tooltip&&!e||(this._tooltip=new ni(e,this)),this._tooltip.setContent(t)),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,n;!t&&this._tooltipHandlersAdded||(e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),Ct&&(n.click=this._openTooltip)),this[e](n),this._tooltipHandlersAdded=!t)},openTooltip:function(t,e){return this._tooltip&&this._map&&(e=this._tooltip._prepareOpen(this,t,e),this._map.openTooltip(this._tooltip,e),this._tooltip.options.interactive&&this._tooltip._container&&(de(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(he(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(e,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,i=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),i=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(i)}});var ii=Mn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e,n=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;return i.html instanceof Element?(se(n),n.appendChild(i.html)):n.innerHTML=!1!==i.html?i.html:"",i.bgPos&&(e=I(i.bgPos),n.style.backgroundPosition=-e.x+"px "+-e.y+"px"),this._setIconStyles(n,"icon"),n},createShadow:function(){return null}});Mn.Default=Ln;var oi=Dn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:_t,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(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ae(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(le(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ce(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(){return this._map&&(this._removeAllTiles(),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=s(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 P?t:new P(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,n=this.getPane().children,i=-t(-1/0,1/0),o=0,r=n.length;o<r;o++)e=n[o].style.zIndex,n[o]!==this._container&&e&&(i=t(i,+e));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!et){me(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var i in this._tiles){var o,r=this._tiles[i];r.current&&r.loaded&&(o=Math.min(1,(t-r.loaded)/200),me(r.el,o),o<1?e=!0:(r.active?n=!0:this._onOpaqueTile(r),r.active=!0))}n&&!this._noPrune&&this._pruneTiles(),e&&(E(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=re("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 n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(ae(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var i=this._levels[t],o=this._map;return i||((i=this._levels[t]={}).el=re("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,o.getCenter(),o.getZoom()),i.el.offsetWidth,this._onCreateLevel(i)),this._level=i}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,n,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(n=this._tiles[t]).retain=n.current;for(t in this._tiles)(n=this._tiles[t]).current&&!n.active&&(e=n.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)ae(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,i){var o=Math.floor(t/2),r=Math.floor(e/2),a=n-1,s=new P(+o,+r);s.z=+a;var l=this._tileCoordsToKey(s),c=this._tiles[l];return c&&c.active?c.retain=!0:(c&&c.loaded&&(c.retain=!0),i<a&&this._retainParent(o,r,a,i))},_retainChildren:function(t,e,n,i){for(var o=2*t;o<2*t+2;o++)for(var r=2*e;r<2*e+2;r++){var a=new P(o,r);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<i&&this._retainChildren(o,r,n+1,i))}},_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,n,i){var o=Math.round(e),r=(o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o),this.options.updateWhenZooming&&o!==this._tileZoom);i&&!r||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var i=this._map.getZoomScale(n,t.zoom),o=t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e,n)).round();yt?ve(t.el,o,i):ye(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],i).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],i).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],i).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(n,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(2*i);return new N(o.subtract(r),o.add(r))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var i=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(i),r=o.getCenter(),a=[],s=this.options.keepBuffer,l=new N(o.getBottomLeft().subtract([s,-s]),o.getTopRight().add([s,-s]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var u=this._tiles[c].coords;u.z===this._tileZoom&&l.contains(new P(u.x,u.y))||(this._tiles[c].current=!1)}if(1<Math.abs(n-this._tileZoom))this._setView(t,n);else{for(var d=o.min.y;d<=o.max.y;d++)for(var h=o.min.x;h<=o.max.x;h++){var p,f=new P(h,d);f.z=this._tileZoom,this._isValidTile(f)&&((p=this._tiles[this._tileCoordsToKey(f)])?p.current=!0:a.push(f))}if(a.sort((function(t,e){return t.distanceTo(r)-e.distanceTo(r)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;h<a.length;h++)this._addTile(a[h],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return B(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),o=i.add(n);return[e.unproject(i,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new j(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new P(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(ae(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){de(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,et&&this.options.opacity<1&&me(t,this.options.opacity),ot&&!rt&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),i=this._tileCoordsToKey(t),r=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(r),this.createTile.length<2&&S(o(this._tileReady,this,t,null,r)),ye(r,n),this._tiles[i]={el:r,coords:t,current:!0},e.appendChild(r),this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var i=this._tileCoordsToKey(t);(n=this._tiles[i])&&(n.loaded=+new Date,this._map._fadeAnimated?(me(n.el,0),E(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(de(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),et||!this._map._fadeAnimated?S(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new P(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}}),ri=oi.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=p(this,e)).detectRetina&&Dt&&0<e.maxZoom&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),ot||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 n=document.createElement("img");return De(n,"load",o(this._tileOnLoad,this,e,n)),De(n,"error",o(this._tileOnError,this,e,n)),!this.options.crossOrigin&&""!==this.options.crossOrigin||(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n,i={r:Dt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(n=this._globalTileRange.max.y-t.y,this.options.tms&&(i.y=n),i["-y"]=n),g(this._url,e(i,this.options))},_tileOnLoad:function(t,e){et?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,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)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=c,e.onerror=c,e.complete||(e.src=_,ae(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return st||e.el.setAttribute("src",_),oi.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==_))return oi.prototype._tileReady.call(this,t,e,n)}});function ai(t,e){return new ri(t,e)}var si=ri.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,n){this._url=t;var i=e({},this.defaultWmsParams);for(var o in n)o in this.options||(i[o]=n[o]);var r=(n=p(this,n)).detectRetina&&Dt?2:1,a=this.getTileSize();i.width=a.x*r,i.height=a.y*r,this.wmsParams=i},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,ri.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=z(n.project(e[0]),n.project(e[1])),o=i.min,r=i.max,a=(1.3<=this._wmsVersion&&this._crs===Sn?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),s=ri.prototype.getTileUrl.call(this,t);return s+f(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,n){return e(this.wmsParams,t),n||this.redraw(),this}});ri.WMS=si,ai.wms=function(t,e){return new si(t,e)};var li=Dn.extend({options:{padding:.1,tolerance:0},initialize:function(t){p(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&de(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 n=this._map.getZoomScale(e,this._zoom),i=_e(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,e),a=this._map.project(t,e).subtract(r),s=o.multiplyBy(-n).add(i).add(o).subtract(a);yt?ve(this._container,s,n):ye(this._container,s)},_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(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new N(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ci=li.extend({getEvents:function(){var t=li.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){li.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");De(t,"mousemove",this._onMouseMove,this),De(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),De(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,ae(this._container),Ae(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,n,i;this._map._animatingZoom&&this._bounds||(li.prototype._update.call(this),t=this._bounds,e=this._container,n=t.getSize(),i=Dt?2:1,ye(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Dt&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update"))},_reset:function(){li.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t);var e=(this._layers[a(t)]=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,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,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,n=t.options.dashArray.split(/[, ]+/),i=[],o=0;o<n.length;o++){if(e=Number(n[o]),isNaN(e))return;i.push(e)}t.options._dashArray=i}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||S(this._redraw,this))},_extendRedrawBounds:function(t){var e;t._pxBounds&&(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,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,n=this._redrawBounds;this._ctx.save(),n&&(e=n.getSize(),this._ctx.beginPath(),this._ctx.rect(n.min.x,n.min.y,e.x,e.y),this._ctx.clip()),this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!n||t._pxBounds&&t._pxBounds.intersects(n))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,o,r,a=t._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(i=0,o=a[n].length;i<o;i++)r=a[n][i],l[i?"lineTo":"moveTo"](r.x,r.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){var e,n,i,o;this._drawing&&!t._empty()&&(e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),1!=(o=(Math.max(Math.round(t._radiusY),1)||i)/i)&&(n.save(),n.scale(1,o)),n.beginPath(),n.arc(e.x,e.y/o,i,0,2*Math.PI,!1),1!=o&&n.restore(),this._fillStroke(n,t))},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,i=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(i)&&(("click"===t.type||"preclick"!==t.type)&&this._map._draggableMoved(e)||(n=e));n&&(We(t),this._fireEvent([n],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&&(he(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,i,r=this._drawFirst;r;r=r.next)(n=r.layer).options.interactive&&n._containsPoint(e)&&(i=n);i!==this._hoveredLayer&&(this._handleMouseOut(t),i&&(de(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseover"),this._hoveredLayer=i)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(o((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e,n,i=t._order;i&&(e=i.next,n=i.prev,e&&((e.prev=n)?n.next=e:e&&(this._drawFirst=e),i.prev=this._drawLast,(this._drawLast.next=i).next=null,this._drawLast=i,this._requestRedraw(t)))},_bringToBack:function(t){var e,n,i=t._order;i&&(e=i.next,(n=i.prev)&&((n.next=e)?e.prev=n:n&&(this._drawLast=n),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t)))}});function ui(t){return At?new ci(t):null}var di=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">')}}}(),hi={_initContainer:function(){this._container=re("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(li.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=di("shape");de(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=di("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;ae(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,o=t._container;o.stroked=!!i.stroke,o.filled=!!i.fill,i.stroke?(e=e||(t._stroke=di("stroke")),o.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=v(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(o.removeChild(e),t._stroke=null),i.fill?(n=n||(t._fill=di("fill")),o.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(o.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){le(t._container)},_bringToBack:function(t){ce(t._container)}},pi=Lt?di:K,fi=li.extend({getEvents:function(){var t=li.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=pi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=pi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ae(this._container),Ae(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){var t,e,n;this._map._animatingZoom&&this._bounds||(li.prototype._update.call(this),e=(t=this._bounds).getSize(),n=this._container,this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),ye(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update"))},_initPath:function(t){var e=t._path=pi("path");t.options.className&&de(e,t.options.className),t.options.interactive&&de(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){ae(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,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,J(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){le(t._path)},_bringToBack:function(t){ce(t._path)}});function mi(t){return Mt||Lt?new fi(t):null}Lt&&fi.include(hi),Ue.include({getRenderer:function(t){var e=(e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer());return 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&&ui(t)||mi(t)}});var gi=Bn.extend({initialize:function(t,e){Bn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=B(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});fi.create=pi,fi.pointsToPath=J,Rn.geometryToLayer=Hn,Rn.coordsToLatLng=Fn,Rn.coordsToLatLngs=Wn,Rn.latLngToCoords=qn,Rn.latLngsToCoords=Vn,Rn.getFeature=Yn,Rn.asFeature=Zn,Ue.mergeOptions({boxZoom:!0});var vi=en.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(){De(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ae(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ae(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(),Zt(),be(),this._startPoint=this._map.mouseEventToContainerPoint(t),De(document,{contextmenu:Be,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=re("div","leaflet-zoom-box",this._container),de(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new N(this._point,this._startPoint),n=e.getSize();ye(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ae(this._box),he(this._container,"leaflet-crosshair")),Ut(),we(),Ae(document,{contextmenu:Be,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){var e;1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0),e=new j(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()}});Ue.addInitHook("addHandler","boxZoom",vi),Ue.mergeOptions({doubleClickZoom:!0});var yi=en.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,n=e.getZoom(),i=e.options.zoomDelta,o=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});Ue.addInitHook("addHandler","doubleClickZoom",yi),Ue.mergeOptions({dragging:!0,inertia:!rt,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var _i=en.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new ln(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))),de(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){he(this._map._container,"leaflet-grab"),he(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=z(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,n;this._map.options.inertia&&(e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(n),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),n=this._initialWorldOffset,i=this._draggable._newPos.x,o=(i-e+n)%t+e-n,r=(i+e+n)%t-e-n,a=Math.abs(o+n)<Math.abs(r+n)?o:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e,n,i,o,r,a,s,l,c,u=this._map,d=u.options,h=!d.inertia||this._times.length<2;u.fire("dragend",t),h?u.fire("moveend"):(this._prunePositions(+new Date),e=this._lastPos.subtract(this._positions[0]),n=(this._lastTime-this._times[0])/1e3,i=d.easeLinearity,r=(o=e.multiplyBy(i/n)).distanceTo([0,0]),a=Math.min(d.inertiaMaxSpeed,r),s=o.multiplyBy(a/r),l=a/(d.inertiaDeceleration*i),(c=s.multiplyBy(-l/2).round()).x||c.y?(c=u._limitOffset(c,u.options.maxBounds),S((function(){u.panBy(c,{duration:l,easeLinearity:i,noMoveStart:!0,animate:!0})}))):u.fire("moveend"))}});Ue.addInitHook("addHandler","dragging",_i),Ue.mergeOptions({keyboard:!0,keyboardPanDelta:80});var bi=en.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"),De(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(),Ae(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,n,i;this._focused||(t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft,this._map._container.focus(),window.scrollTo(i,n))},_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={},n=this.keyCodes,i=0,o=n.left.length;i<o;i++)e[n.left[i]]=[-1*t,0];for(i=0,o=n.right.length;i<o;i++)e[n.right[i]]=[t,0];for(i=0,o=n.down.length;i<o;i++)e[n.down[i]]=[0,t];for(i=0,o=n.up.length;i<o;i++)e[n.up[i]]=[0,-1*t]},_setZoomDelta:function(t){for(var e=this._zoomKeys={},n=this.keyCodes,i=0,o=n.zoomIn.length;i<o;i++)e[n.zoomIn[i]]=t;for(i=0,o=n.zoomOut.length;i<o;i++)e[n.zoomOut[i]]=-t},_addHooks:function(){De(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ae(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,i=this._map;if(n in this._panKeys)i._panAnim&&i._panAnim._inProgress||(e=this._panKeys[n],t.shiftKey&&(e=I(e).multiplyBy(3)),i.panBy(e),i.options.maxBounds&&i.panInsideBounds(i.options.maxBounds));else if(n in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}Be(t)}}});Ue.addInitHook("addHandler","keyboard",bi),Ue.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var wi=en.extend({addHooks:function(){De(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ae(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=$e(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var i=Math.max(n-(new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),i),Be(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var i=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,r=n?Math.ceil(o/n)*n:o,a=t._limitZoom(e+(0<this._delta?r:-r))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});Ue.addInitHook("addHandler","scrollWheelZoom",wi),Ue.mergeOptions({tap:!0,tapTolerance:15});var xi=en.extend({addHooks:function(){De(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ae(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(je(t),this._fireClick=!0,1<t.touches.length)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new P(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&de(n,"leaflet-active"),this._holdTimeout=setTimeout(o((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))}),this),1e3),this._simulateEvent("mousedown",e),De(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){var e,n;clearTimeout(this._holdTimeout),Ae(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches&&((n=(e=t.changedTouches[0]).target)&&n.tagName&&"a"===n.tagName.toLowerCase()&&he(n,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e))},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new P(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}});!Ct||Tt&&!dt||Ue.addInitHook("addHandler","tap",xi),Ue.mergeOptions({touchZoom:Ct&&!rt,bounceAtZoomLimits:!0});var Ti=en.extend({addHooks:function(){de(this._map._container,"leaflet-touch-zoom"),De(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){he(this._map._container,"leaflet-touch-zoom"),Ae(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e,n,i=this._map;!t.touches||2!==t.touches.length||i._animatingZoom||this._zooming||(e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]),this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),"center"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(e.add(n)._divideBy(2))),this._startDist=e.distanceTo(n),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),De(document,"touchmove",this._onTouchMove,this),De(document,"touchend",this._onTouchEnd,this),je(t))},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]),r=n.distanceTo(i)/this._startDist;if(this._zoom=e.getScaleZoom(r,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&1<r)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1==r)return}else{var a=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(1==r&&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 s=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=S(s,this,!0),je(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),Ae(document,"touchmove",this._onTouchMove,this),Ae(document,"touchend",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}});Ue.addInitHook("addHandler","touchZoom",Ti),Ue.BoxZoom=vi,Ue.DoubleClickZoom=yi,Ue.Drag=_i,Ue.Keyboard=bi,Ue.ScrollWheelZoom=wi,Ue.Tap=xi,Ue.TouchZoom=Ti,t.version="1.7.1",t.Control=Xe,t.control=Ge,t.Browser=Ot,t.Evented=M,t.Mixin=on,t.Util=D,t.Class=k,t.Handler=en,t.extend=e,t.bind=o,t.stamp=a,t.setOptions=p,t.DomEvent=Ye,t.DomUtil=Ee,t.PosAnimation=Ze,t.Draggable=ln,t.LineUtil=vn,t.PolyUtil=bn,t.Point=P,t.point=I,t.Bounds=N,t.bounds=z,t.Transformation=Y,t.transformation=Z,t.Projection=Tn,t.LatLng=R,t.latLng=H,t.LatLngBounds=j,t.latLngBounds=B,t.CRS=F,t.GeoJSON=Rn,t.geoJSON=Gn,t.geoJson=Xn,t.Layer=Dn,t.LayerGroup=kn,t.layerGroup=function(t,e){return new kn(t,e)},t.FeatureGroup=An,t.featureGroup=function(t,e){return new An(t,e)},t.ImageOverlay=Kn,t.imageOverlay=function(t,e,n){return new Kn(t,e,n)},t.VideoOverlay=Jn,t.videoOverlay=function(t,e,n){return new Jn(t,e,n)},t.SVGOverlay=Qn,t.svgOverlay=function(t,e,n){return new Qn(t,e,n)},t.DivOverlay=ti,t.Popup=ei,t.popup=function(t,e){return new ei(t,e)},t.Tooltip=ni,t.tooltip=function(t,e){return new ni(t,e)},t.Icon=Mn,t.icon=function(t){return new Mn(t)},t.DivIcon=ii,t.divIcon=function(t){return new ii(t)},t.Marker=On,t.marker=function(t,e){return new On(t,e)},t.TileLayer=ri,t.tileLayer=ai,t.GridLayer=oi,t.gridLayer=function(t){return new oi(t)},t.SVG=fi,t.svg=mi,t.Renderer=li,t.Canvas=ci,t.canvas=ui,t.Path=In,t.CircleMarker=Nn,t.circleMarker=function(t,e){return new Nn(t,e)},t.Circle=zn,t.circle=function(t,e,n){return new zn(t,e,n)},t.Polyline=jn,t.polyline=function(t,e){return new jn(t,e)},t.Polygon=Bn,t.polygon=function(t,e){return new Bn(t,e)},t.Rectangle=gi,t.rectangle=function(t,e){return new gi(t,e)},t.Map=Ue,t.map=function(t,e){return new Ue(t,e)};var Ci=window.L;t.noConflict=function(){return window.L=Ci,this},window.L=t}));