]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - dist/build/bundle.js
Rebundle latest version
[nominatim-ui.git] / dist / build / bundle.js
index ba5c938095d8f9e6e71b84085a87feb59c762016..5d5957cba45b6fb5ba1874d3092bb6ef516b767b 100644 (file)
@@ -1,67 +1,13 @@
-!function(){"use strict";function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function i(){return Object.create(null)}function o(t){t.forEach(n)}function r(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function a(e,...n){if(null==e)return t;const i=e.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}function l(t){let e;return a(t,(t=>e=t))(),e}function u(t,e,n){t.$$.on_destroy.push(a(e,n))}function c(t,e,n,i){if(t){const o=h(t,e,n,i);return t[0](o)}}function h(t,n,i,o){return t[1]&&o?e(i.ctx.slice(),t[1](o(n))):i.ctx}function d(t,e,n,i,o,r,s){const a=function(t,e,n,i){if(t[2]&&i){const o=t[2](i(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let i=0;i<n;i+=1)t[i]=e.dirty[i]|o[i];return t}return e.dirty|o}return e.dirty}(e,i,o,r);if(a){const o=h(e,n,i,s);t.p(o,a)}}function f(t,e){t.appendChild(e)}function p(t,e,n){t.insertBefore(e,n||null)}function m(t){t.parentNode.removeChild(t)}function g(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function _(t){return document.createElement(t)}function v(t){return document.createTextNode(t)}function y(){return v(" ")}function b(){return v("")}function x(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function w(t){return function(e){return e.preventDefault(),t.call(this,e)}}function T(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function C(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function E(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function $(t,e){t.value=null==e?"":e}function k(t,e){for(let n=0;n<t.options.length;n+=1){const i=t.options[n];if(i.__value===e)return void(i.selected=!0)}}function P(t,e,n){t.classList[n?"add":"remove"](e)}class S{constructor(t=null){this.a=t,this.e=this.n=null}m(t,e,n=null){this.e||(this.e=_(e.nodeName),this.t=e,this.h(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)p(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(m)}}let M;function A(t){M=t}function N(t){(function(){if(!M)throw new Error("Function called outside component initialization");return M})().$$.on_mount.push(t)}const D=[],I=[],O=[],z=[],j=Promise.resolve();let B=!1;function R(t){O.push(t)}function Z(t){z.push(t)}let H=!1;const q=new Set;function F(){if(!H){H=!0;do{for(let t=0;t<D.length;t+=1){const e=D[t];A(e),W(e.$$)}for(A(null),D.length=0;I.length;)I.pop()();for(let t=0;t<O.length;t+=1){const e=O[t];q.has(e)||(q.add(e),e())}O.length=0}while(D.length);for(;z.length;)z.pop()();B=!1,H=!1,q.clear()}}function W(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(R)}}const U=new Set;let V;function G(){V={r:0,c:[],p:V}}function K(){V.r||o(V.c),V=V.p}function Y(t,e){t&&t.i&&(U.delete(t),t.i(e))}function X(t,e,n,i){if(t&&t.o){if(U.has(t))return;U.add(t),V.c.push((()=>{U.delete(t),i&&(n&&t.d(1),i())})),t.o(e)}}function Q(t,e,n){const i=t.$$.props[e];void 0!==i&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function J(t){t&&t.c()}function tt(t,e,i,s){const{fragment:a,on_mount:l,on_destroy:u,after_update:c}=t.$$;a&&a.m(e,i),s||R((()=>{const e=l.map(n).filter(r);u?u.push(...e):o(e),t.$$.on_mount=[]})),c.forEach(R)}function et(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function nt(t,e){-1===t.$$.dirty[0]&&(D.push(t),B||(B=!0,j.then(F)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function it(e,n,r,s,a,l,u=[-1]){const c=M;A(e);const h=e.$$={fragment:null,ctx:null,props:l,update:t,not_equal:a,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:i(),dirty:u,skip_bound:!1};let d=!1;if(h.ctx=r?r(e,n.props||{},((t,n,...i)=>{const o=i.length?i[0]:n;return h.ctx&&a(h.ctx[t],h.ctx[t]=o)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](o),d&&nt(e,t)),n})):[],h.update(),d=!0,o(h.before_update),h.fragment=!!s&&s(h.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);h.fragment&&h.fragment.l(t),t.forEach(m)}else h.fragment&&h.fragment.c();n.intro&&Y(e.$$.fragment),tt(e,n.target,n.anchor,n.customElement),F()}A(c)}class ot{$destroy(){et(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var rt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function st(t){var e={exports:{}};return t(e,e.exports),e.exports
-/*!
-     * 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
-     */}var at=st((function(t){!function(e,n){t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}}("undefined"!=typeof window?window:rt,(function(t,e){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)},s=n.push,a=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,h=c.toString,d=h.call(Object),f={},p=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,_={type:!0,src:!0,nonce:!0,noModule:!0};function v(t,e,n){var i,o,r=(n=n||g).createElement("script");if(r.text=t,e)for(i in _)(o=e[i]||e.getAttribute&&e.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function y(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[u.call(t)]||"object":typeof t}var b="3.6.0",x=function(t,e){return new x.fn.init(t,e)};function w(t){var e=!!t&&"length"in t&&t.length,n=y(t);return!p(t)&&!m(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}x.fn=x.prototype={jquery:b,constructor:x,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=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.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(x.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(x.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:s,sort:n.sort,splice:n.splice},x.extend=x.fn.extend=function(){var t,e,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||p(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(u&&i&&(x.isPlainObject(i)||(o=Array.isArray(i)))?(n=s[e],r=o&&!Array.isArray(n)?[]:o||x.isPlainObject(n)?n:{},o=!1,s[e]=x.extend(u,r,i)):void 0!==i&&(s[e]=i));return s},x.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]"!==u.call(t))&&(!(e=i(t))||"function"==typeof(n=c.call(e,"constructor")&&e.constructor)&&h.call(n)===d)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){v(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(w(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&&(w(Object(t))?x.merge(n,"string"==typeof t?[t]:t):s.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:a.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,s=!n;o<r;o++)!e(t[o],o)!==s&&i.push(t[o]);return i},map:function(t,e,n){var i,o,s=0,a=[];if(w(t))for(i=t.length;s<i;s++)null!=(o=e(t[s],s,n))&&a.push(o);else for(s in t)null!=(o=e(t[s],s,n))&&a.push(o);return r(a)},guid:1,support:f}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=n[Symbol.iterator]),x.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,s,a,l,u,c,h,d,f,p,m,g,_,v,y,b="sizzle"+1*new Date,x=t.document,w=0,T=0,C=lt(),E=lt(),L=lt(),$=lt(),k=function(t,e){return t===e&&(h=!0),0},P={}.hasOwnProperty,S=[],M=S.pop,A=S.push,N=S.push,D=S.slice,I=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",z="[\\x20\\t\\r\\n\\f]",j="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",B="\\[[\\x20\\t\\r\\n\\f]*("+j+")(?:"+z+"*([*^$|!~]?=)"+z+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+z+"*\\]",R=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",Z=new RegExp(z+"+","g"),H=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),q=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),F=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),W=new RegExp(z+"|>"),U=new RegExp(R),V=new RegExp("^"+j+"$"),G={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+R),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("^(?:"+O+")$","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")},K=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\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(){d()},st=bt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{N.apply(S=D.call(x.childNodes),x.childNodes),S[x.childNodes.length].nodeType}catch(t){N={apply:S.length?function(t,e){A.apply(t,D.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function at(t,e,i,o){var r,a,u,c,h,p,_,v=e&&e.ownerDocument,x=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return i;if(!o&&(d(e),e=e||f,m)){if(11!==x&&(h=J.exec(t)))if(r=h[1]){if(9===x){if(!(u=e.getElementById(r)))return i;if(u.id===r)return i.push(u),i}else if(v&&(u=v.getElementById(r))&&y(e,u)&&u.id===r)return i.push(u),i}else{if(h[2])return N.apply(i,e.getElementsByTagName(t)),i;if((r=h[3])&&n.getElementsByClassName&&e.getElementsByClassName)return N.apply(i,e.getElementsByClassName(r)),i}if(n.qsa&&!$[t+" "]&&(!g||!g.test(t))&&(1!==x||"object"!==e.nodeName.toLowerCase())){if(_=t,v=e,1===x&&(W.test(t)||F.test(t))){for((v=tt.test(t)&&_t(e.parentNode)||e)===e&&n.scope||((c=e.getAttribute("id"))?c=c.replace(it,ot):e.setAttribute("id",c=b)),a=(p=s(t)).length;a--;)p[a]=(c?"#"+c:":scope")+" "+yt(p[a]);_=p.join(",")}try{return N.apply(i,v.querySelectorAll(_)),i}catch(e){$(t,!0)}finally{c===b&&e.removeAttribute("id")}}}return l(t.replace(H,"$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 ut(t){return t[b]=!0,t}function ct(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ht(t,e){for(var n=t.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=e}function dt(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 ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(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&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function gt(t){return ut((function(e){return e=+e,ut((function(n,i){for(var o,r=t([],n.length,e),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))}))}))}function _t(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=at.support={},r=at.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!K.test(e||n&&n.nodeName||"HTML")},d=at.setDocument=function(t){var e,o,s=t?t.ownerDocument||t:x;return s!=f&&9===s.nodeType&&s.documentElement?(p=(f=s).documentElement,m=!r(f),x!=f&&(o=f.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",rt,!1):o.attachEvent&&o.attachEvent("onunload",rt)),n.scope=ct((function(t){return p.appendChild(t).appendChild(f.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ct((function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=Q.test(f.getElementsByClassName),n.getById=ct((function(t){return p.appendChild(t).id=b,!f.getElementsByName||!f.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)},_=[],g=[],(n.qsa=Q.test(f.querySelectorAll))&&(ct((function(t){var e;p.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|"+O+")"),t.querySelectorAll("[id~="+b+"-]").length||g.push("~="),(e=f.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]")})),ct((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=f.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"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=Q.test(v=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ct((function(t){n.disconnectedMatch=v.call(t,"*"),v.call(t,"[s!='']:x"),_.push("!=",R)})),g=g.length&&new RegExp(g.join("|")),_=_.length&&new RegExp(_.join("|")),e=Q.test(p.compareDocumentPosition),y=e||Q.test(p.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 h=!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==f||t.ownerDocument==x&&y(x,t)?-1:e==f||e.ownerDocument==x&&y(x,e)?1:c?I(c,t)-I(c,e):0:4&i?-1:1)}:function(t,e){if(t===e)return h=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,s=[t],a=[e];if(!o||!r)return t==f?-1:e==f?1:o?-1:r?1:c?I(c,t)-I(c,e):0;if(o===r)return dt(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?dt(s[i],a[i]):s[i]==x?-1:a[i]==x?1:0},f):f},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if(d(t),n.matchesSelector&&m&&!$[e+" "]&&(!_||!_.test(e))&&(!g||!g.test(e)))try{var i=v.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){$(e,!0)}return at(e,f,null,[t]).length>0},at.contains=function(t,e){return(t.ownerDocument||t)!=f&&d(t),y(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!=f&&d(t);var o=i.attrHandle[e.toLowerCase()],r=o&&P.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},at.escape=function(t){return(t+"").replace(it,ot)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,i=[],o=0,r=0;if(h=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(k),h){for(;e=t[r++];)e===t[r]&&(o=i.push(r));for(;o--;)t.splice(i[o],1)}return c=null,t},o=at.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=at.selectors={cacheLength:50,createPseudo:ut,match:G,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]||at.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]&&at.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&U.test(n)&&(e=s(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+"("+z+"|$)"))&&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=at.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(Z," ")+" ").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),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var u,c,h,d,f,p,m=r!==s?"nextSibling":"previousSibling",g=e.parentNode,_=a&&e.nodeName.toLowerCase(),v=!l&&!a,y=!1;if(g){if(r){for(;m;){for(d=e;d=d[m];)if(a?d.nodeName.toLowerCase()===_:1===d.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&v){for(y=(f=(u=(c=(h=(d=g)[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===w&&u[1])&&u[2],d=f&&g.childNodes[f];d=++f&&d&&d[m]||(y=f=0)||p.pop();)if(1===d.nodeType&&++y&&d===e){c[t]=[w,f,y];break}}else if(v&&(y=f=(u=(c=(h=(d=e)[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===w&&u[1]),!1===y)for(;(d=++f&&d&&d[m]||(y=f=0)||p.pop())&&((a?d.nodeName.toLowerCase()!==_:1!==d.nodeType)||!++y||(v&&((c=(h=d[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]=[w,y]),d!==e)););return(y-=o)===i||y%i==0&&y/i>=0}}},PSEUDO:function(t,e){var n,o=i.pseudos[t]||i.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return o[b]?o(e):o.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?ut((function(t,n){for(var i,r=o(t,e),s=r.length;s--;)t[i=I(t,r[s])]=!(n[i]=r[s])})):function(t){return o(t,0,n)}):o}},pseudos:{not:ut((function(t){var e=[],n=[],i=a(t.replace(H,"$1"));return i[b]?ut((function(t,e,n,o){for(var r,s=i(t,null,o,[]),a=t.length;a--;)(r=s[a])&&(t[a]=!(e[a]=r))})):function(t,o,r){return e[0]=t,i(e,null,r,n),e[0]=null,!n.pop()}})),has:ut((function(t){return function(e){return at(t,e).length>0}})),contains:ut((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||o(e)).indexOf(t)>-1}})),lang:ut((function(t){return V.test(t||"")||at.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===p},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.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 X.test(t.nodeName)},input:function(t){return Y.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]=ft(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=pt(e);function vt(){}function yt(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,s=n&&"parentNode"===r,a=T++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,o);return!1}:function(e,n,l){var u,c,h,d=[w,a];if(l){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||s)if(c=(h=e[b]||(e[b]={}))[e.uniqueID]||(h[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[i]||e;else{if((u=c[r])&&u[0]===w&&u[1]===a)return d[2]=u[2];if(c[r]=d,d[2]=t(e,n,l))return!0}return!1}}function xt(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 wt(t,e,n,i,o){for(var r,s=[],a=0,l=t.length,u=null!=e;a<l;a++)(r=t[a])&&(n&&!n(r,i,o)||(s.push(r),u&&e.push(a)));return s}function Tt(t,e,n,i,o,r){return i&&!i[b]&&(i=Tt(i)),o&&!o[b]&&(o=Tt(o,r)),ut((function(r,s,a,l){var u,c,h,d=[],f=[],p=s.length,m=r||function(t,e,n){for(var i=0,o=e.length;i<o;i++)at(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),g=!t||!r&&e?m:wt(m,d,t,a,l),_=n?o||(r?t:p||i)?[]:s:g;if(n&&n(g,_,a,l),i)for(u=wt(_,f),i(u,[],a,l),c=u.length;c--;)(h=u[c])&&(_[f[c]]=!(g[f[c]]=h));if(r){if(o||t){if(o){for(u=[],c=_.length;c--;)(h=_[c])&&u.push(g[c]=h);o(null,_=[],u,l)}for(c=_.length;c--;)(h=_[c])&&(u=o?I(r,h):d[c])>-1&&(r[u]=!(s[u]=h))}}else _=wt(_===s?_.splice(p,_.length):_),o?o(null,s,_,l):N.apply(s,_)}))}function Ct(t){for(var e,n,o,r=t.length,s=i.relative[t[0].type],a=s||i.relative[" "],l=s?1:0,c=bt((function(t){return t===e}),a,!0),h=bt((function(t){return I(e,t)>-1}),a,!0),d=[function(t,n,i){var o=!s&&(i||n!==u)||((e=n).nodeType?c(t,n,i):h(t,n,i));return e=null,o}];l<r;l++)if(n=i.relative[t[l].type])d=[bt(xt(d),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&&xt(d),l>1&&yt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(H,"$1"),n,l<o&&Ct(t.slice(l,o)),o<r&&Ct(t=t.slice(o)),o<r&&yt(t))}d.push(n)}return xt(d)}return vt.prototype=i.filters=i.pseudos,i.setFilters=new vt,s=at.tokenize=function(t,e){var n,o,r,s,a,l,u,c=E[t+" "];if(c)return e?0:c.slice(0);for(a=t,l=[],u=i.preFilter;a;){for(s in n&&!(o=q.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),n=!1,(o=F.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(H," ")}),a=a.slice(n.length)),i.filter)!(o=G[s].exec(a))||u[s]&&!(o=u[s](o))||(n=o.shift(),r.push({value:n,type:s,matches:o}),a=a.slice(n.length));if(!n)break}return e?a.length:a?at.error(t):E(t,l).slice(0)},a=at.compile=function(t,e){var n,o=[],r=[],a=L[t+" "];if(!a){for(e||(e=s(t)),n=e.length;n--;)(a=Ct(e[n]))[b]?o.push(a):r.push(a);(a=L(t,function(t,e){var n=e.length>0,o=t.length>0,r=function(r,s,a,l,c){var h,p,g,_=0,v="0",y=r&&[],b=[],x=u,T=r||o&&i.find.TAG("*",c),C=w+=null==x?1:Math.random()||.1,E=T.length;for(c&&(u=s==f||s||c);v!==E&&null!=(h=T[v]);v++){if(o&&h){for(p=0,s||h.ownerDocument==f||(d(h),a=!m);g=t[p++];)if(g(h,s||f,a)){l.push(h);break}c&&(w=C)}n&&((h=!g&&h)&&_--,r&&y.push(h))}if(_+=v,n&&v!==_){for(p=0;g=e[p++];)g(y,b,s,a);if(r){if(_>0)for(;v--;)y[v]||b[v]||(b[v]=M.call(l));b=wt(b)}N.apply(l,b),c&&!r&&b.length>0&&_+e.length>1&&at.uniqueSort(l)}return c&&(w=C,u=x),y};return n?ut(r):r}(r,o))).selector=t}return a},l=at.select=function(t,e,n,o){var r,l,u,c,h,d="function"==typeof t&&t,f=!o&&s(t=d.selector||t);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===e.nodeType&&m&&i.relative[l[1].type]){if(!(e=(i.find.ID(u.matches[0].replace(et,nt),e)||[])[0]))return n;d&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(r=G.needsContext.test(t)?0:l.length;r--&&(u=l[r],!i.relative[c=u.type]);)if((h=i.find[c])&&(o=h(u.matches[0].replace(et,nt),tt.test(l[0].type)&&_t(e.parentNode)||e))){if(l.splice(r,1),!(t=o.length&&yt(l)))return N.apply(n,o),n;break}}return(d||a(t,f))(o,e,!m,n,!e||tt.test(t)&&_t(e.parentNode)||e),n},n.sortStable=b.split("").sort(k).join("")===b,n.detectDuplicates=!!h,d(),n.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))})),ct((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ht("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ct((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ht("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||ht(O,(function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null})),at}(t);x.find=T,x.expr=T.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=T.uniqueSort,x.text=T.getText,x.isXMLDoc=T.isXML,x.contains=T.contains,x.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&&x(t).is(n))break;i.push(t)}return i},E=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},L=x.expr.match.needsContext;function $(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 P(t,e,n){return p(e)?x.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?x.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?x.grep(t,(function(t){return a.call(e,t)>-1!==n})):x.filter(e,t,n)}x.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?x.find.matchesSelector(i,t)?[i]:[]:x.find.matches(t,x.grep(e,(function(t){return 1===t.nodeType})))},x.fn.extend({find:function(t){var e,n,i=this.length,o=this;if("string"!=typeof t)return this.pushStack(x(t).filter((function(){for(e=0;e<i;e++)if(x.contains(o[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)x.find(t,o[e],n);return i>1?x.uniqueSort(n):n},filter:function(t){return this.pushStack(P(this,t||[],!1))},not:function(t){return this.pushStack(P(this,t||[],!0))},is:function(t){return!!P(this,"string"==typeof t&&L.test(t)?x(t):t||[],!1).length}});var S,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||S,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:M.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 x?e[0]:e,x.merge(this,x.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:g,!0)),k.test(i[1])&&x.isPlainObject(e))for(i in e)p(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):p(t)?void 0!==n.ready?n.ready(t):t(x):x.makeArray(t,this)}).prototype=x.fn,S=x(g);var A=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function D(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(x.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,o=this.length,r=[],s="string"!=typeof t&&x(t);if(!L.test(t))for(;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?x.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?a.call(x(t),this[0]):a.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.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 D(t,"nextSibling")},prev:function(t){return D(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 E((t.parentNode||{}).firstChild,t)},children:function(t){return E(t.firstChild)},contents:function(t){return null!=t.contentDocument&&i(t.contentDocument)?t.contentDocument:($(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},(function(t,e){x.fn[t]=function(n,i){var o=x.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=x.filter(i,o)),this.length>1&&(N[t]||x.uniqueSort(o),A.test(t)&&o.reverse()),this.pushStack(o)}}));var I=/[^\x20\t\r\n\f]+/g;function O(t){return t}function z(t){throw t}function j(t,e,n,i){var o;try{t&&p(o=t.promise)?o.call(t).done(e).fail(n):t&&p(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}x.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return x.each(t.match(I)||[],(function(t,n){e[n]=!0})),e}(t):x.extend({},t);var e,n,i,o,r=[],s=[],a=-1,l=function(){for(o=o||t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a<r.length;)!1===r[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=r.length,n=!1);t.memory||(n=!1),e=!1,o&&(r=n?[]:"")},u={add:function(){return r&&(n&&!e&&(a=r.length-1,s.push(n)),function e(n){x.each(n,(function(n,i){p(i)?t.unique&&u.has(i)||r.push(i):i&&i.length&&"string"!==y(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return x.each(arguments,(function(t,e){for(var n;(n=x.inArray(e,r,n))>-1;)r.splice(n,1),n<=a&&a--})),this},has:function(t){return t?x.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=s=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=s=[],n||e||(r=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},x.extend({Deferred:function(e){var n=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.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 x.Deferred((function(e){x.each(n,(function(n,i){var o=p(t[i[4]])&&t[i[4]];r[i[1]]((function(){var t=o&&o.apply(this,arguments);t&&p(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 s(e,n,i,o){return function(){var a=this,l=arguments,u=function(){var t,u;if(!(e<r)){if((t=i.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");u=t&&("object"==typeof t||"function"==typeof t)&&t.then,p(u)?o?u.call(t,s(r,n,O,o),s(r,n,z,o)):(r++,u.call(t,s(r,n,O,o),s(r,n,z,o),s(r,n,O,n.notifyWith))):(i!==O&&(a=void 0,l=[t]),(o||n.resolveWith)(a,l))}},c=o?u:function(){try{u()}catch(t){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(t,c.stackTrace),e+1>=r&&(i!==z&&(a=void 0,l=[t]),n.rejectWith(a,l))}};e?c():(x.Deferred.getStackHook&&(c.stackTrace=x.Deferred.getStackHook()),t.setTimeout(c))}}return x.Deferred((function(t){n[0][3].add(s(0,t,p(o)?o:O,t.notifyWith)),n[1][3].add(s(0,t,p(e)?e:O)),n[2][3].add(s(0,t,p(i)?i:z))})).promise()},promise:function(t){return null!=t?x.extend(t,o):o}},r={};return x.each(n,(function(t,e){var s=e[2],a=e[5];o[e[1]]=s.add,a&&s.add((function(){i=a}),n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),s.add(e[3].fire),r[e[0]]=function(){return r[e[0]+"With"](this===r?void 0:this,arguments),this},r[e[0]+"With"]=s.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),s=x.Deferred(),a=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?o.call(arguments):n,--e||s.resolveWith(i,r)}};if(e<=1&&(j(t,s.done(a(n)).resolve,s.reject,!e),"pending"===s.state()||p(r[n]&&r[n].then)))return s.then();for(;n--;)j(r[n],a(n),s.reject);return s.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&B.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},x.readyException=function(e){t.setTimeout((function(){throw e}))};var R=x.Deferred();function Z(){g.removeEventListener("DOMContentLoaded",Z),t.removeEventListener("load",Z),x.ready()}x.fn.ready=function(t){return R.then(t).catch((function(t){x.readyException(t)})),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==t&&--x.readyWait>0||R.resolveWith(g,[x]))}}),x.ready.then=R.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?t.setTimeout(x.ready):(g.addEventListener("DOMContentLoaded",Z),t.addEventListener("load",Z));var H=function(t,e,n,i,o,r,s){var a=0,l=t.length,u=null==n;if("object"===y(n))for(a in o=!0,n)H(t,e,a,n[a],!0,r,s);else if(void 0!==i&&(o=!0,p(i)||(s=!0),u&&(s?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(x(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return o?t:u?e.call(t):l?e(t[0],n):r},q=/^-ms-/,F=/-([a-z])/g;function W(t,e){return e.toUpperCase()}function U(t){return t.replace(q,"ms-").replace(F,W)}var V=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function G(){this.expando=x.expando+G.uid++}G.uid=1,G.prototype={cache:function(t){var e=t[this.expando];return e||(e={},V(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[U(e)]=n;else for(i in e)o[U(i)]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][U(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(U):(e=U(e))in i?[e]:e.match(I)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||x.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&&!x.isEmptyObject(e)}};var K=new G,Y=new G,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function J(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(Q,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:X.test(t)?JSON.parse(t):t)}(n)}catch(t){}Y.set(t,e,n)}else n=void 0;return n}x.extend({hasData:function(t){return Y.hasData(t)||K.hasData(t)},data:function(t,e,n){return Y.access(t,e,n)},removeData:function(t,e){Y.remove(t,e)},_data:function(t,e,n){return K.access(t,e,n)},_removeData:function(t,e){K.remove(t,e)}}),x.fn.extend({data:function(t,e){var n,i,o,r=this[0],s=r&&r.attributes;if(void 0===t){if(this.length&&(o=Y.get(r),1===r.nodeType&&!K.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=U(i.slice(5)),J(r,i,o[i]));K.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each((function(){Y.set(this,t)})):H(this,(function(e){var n;if(r&&void 0===e)return void 0!==(n=Y.get(r,t))||void 0!==(n=J(r,t))?n:void 0;this.each((function(){Y.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){Y.remove(this,t)}))}}),x.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=K.get(t,e),n&&(!i||Array.isArray(n)?i=K.access(t,e,x.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=x.queue(t,e),i=n.length,o=n.shift(),r=x._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,(function(){x.dequeue(t,e)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return K.get(t,n)||K.access(t,n,{empty:x.Callbacks("once memory").add((function(){K.remove(t,[e+"queue",n])}))})}}),x.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?x.queue(this[0],t):void 0===e?this:this.each((function(){var n=x.queue(this,t,e);x._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&x.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){x.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=x.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=K.get(r[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),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 x.contains(t.ownerDocument,t)},rt={composed:!0};it.getRootNode&&(ot=function(t){return x.contains(t.ownerDocument,t)||t.getRootNode(rt)===t.ownerDocument});var st=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&ot(t)&&"none"===x.css(t,"display")};function at(t,e,n,i){var o,r,s=20,a=i?function(){return i.cur()}:function(){return x.css(t,e,"")},l=a(),u=n&&n[3]||(x.cssNumber[e]?"":"px"),c=t.nodeType&&(x.cssNumber[e]||"px"!==u&&+l)&&et.exec(x.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)x.style(t,e,c+u),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),c/=r;c*=2,x.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}var lt={};function ut(t){var e,n=t.ownerDocument,i=t.nodeName,o=lt[i];return o||(e=n.body.appendChild(n.createElement(i)),o=x.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),lt[i]=o,o)}function ct(t,e){for(var n,i,o=[],r=0,s=t.length;r<s;r++)(i=t[r]).style&&(n=i.style.display,e?("none"===n&&(o[r]=K.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&st(i)&&(o[r]=ut(i))):"none"!==n&&(o[r]="none",K.set(i,"display",n)));for(r=0;r<s;r++)null!=o[r]&&(t[r].style.display=o[r]);return t}x.fn.extend({show:function(){return ct(this,!0)},hide:function(){return ct(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){st(this)?x(this).show():x(this).hide()}))}});var ht,dt,ft=/^(?:checkbox|radio)$/i,pt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,mt=/^$|^module$|\/(?:java|ecma)script/i;ht=g.createDocumentFragment().appendChild(g.createElement("div")),(dt=g.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),ht.appendChild(dt),f.checkClone=ht.cloneNode(!0).cloneNode(!0).lastChild.checked,ht.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!ht.cloneNode(!0).lastChild.defaultValue,ht.innerHTML="<option></option>",f.option=!!ht.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 _t(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&$(t,e)?x.merge([t],n):n}function vt(t,e){for(var n=0,i=t.length;n<i;n++)K.set(t[n],"globalEval",!e||K.get(e[n],"globalEval"))}gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,f.option||(gt.optgroup=gt.option=[1,"<select multiple='multiple'>","</select>"]);var yt=/<|&#?\w+;/;function bt(t,e,n,i,o){for(var r,s,a,l,u,c,h=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((r=t[f])||0===r)if("object"===y(r))x.merge(d,r.nodeType?[r]:r);else if(yt.test(r)){for(s=s||h.appendChild(e.createElement("div")),a=(pt.exec(r)||["",""])[1].toLowerCase(),l=gt[a]||gt._default,s.innerHTML=l[1]+x.htmlPrefilter(r)+l[2],c=l[0];c--;)s=s.lastChild;x.merge(d,s.childNodes),(s=h.firstChild).textContent=""}else d.push(e.createTextNode(r));for(h.textContent="",f=0;r=d[f++];)if(i&&x.inArray(r,i)>-1)o&&o.push(r);else if(u=ot(r),s=_t(h.appendChild(r),"script"),u&&vt(s),n)for(c=0;r=s[c++];)mt.test(r.type||"")&&n.push(r);return h}var xt=/^([^.]*)(?:\.(.+)|)/;function wt(){return!0}function Tt(){return!1}function Ct(t,e){return t===function(){try{return g.activeElement}catch(t){}}()==("focus"===e)}function Et(t,e,n,i,o,r){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Et(t,a,n,i,e[a],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&&(s=o,(o=function(t){return x().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=x.guid++)),t.each((function(){x.event.add(this,e,o,i,n)}))}function Lt(t,e,n){n?(K.set(t,e,!1),x.event.add(t,e,{namespace:!1,handler:function(t){var i,r,s=K.get(this,e);if(1&t.isTrigger&&this[e]){if(s.length)(x.event.special[e]||{}).delegateType&&t.stopPropagation();else if(s=o.call(arguments),K.set(this,e,s),i=n(this,e),this[e](),s!==(r=K.get(this,e))||i?K.set(this,e,!1):r={},s!==r)return t.stopImmediatePropagation(),t.preventDefault(),r&&r.value}else s.length&&(K.set(this,e,{value:x.event.trigger(x.extend(s[0],x.Event.prototype),s.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===K.get(t,e)&&x.event.add(t,e,wt)}x.event={global:{},add:function(t,e,n,i,o){var r,s,a,l,u,c,h,d,f,p,m,g=K.get(t);if(V(t))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&x.find.matchesSelector(it,o),n.guid||(n.guid=x.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(I)||[""]).length;u--;)f=m=(a=xt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f&&(h=x.event.special[f]||{},f=(o?h.delegateType:h.bindType)||f,h=x.event.special[f]||{},c=x.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:p.join(".")},r),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,i,p,s)||t.addEventListener&&t.addEventListener(f,s)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,c):d.push(c),x.event.global[f]=!0)},remove:function(t,e,n,i,o){var r,s,a,l,u,c,h,d,f,p,m,g=K.hasData(t)&&K.get(t);if(g&&(l=g.events)){for(u=(e=(e||"").match(I)||[""]).length;u--;)if(f=m=(a=xt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(h=x.event.special[f]||{},d=l[f=(i?h.delegateType:h.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=d.length;r--;)c=d[r],!o&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(r,1),c.selector&&d.delegateCount--,h.remove&&h.remove.call(t,c));s&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,p,g.handle)||x.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)x.event.remove(t,f+e[u],n,i,!0);x.isEmptyObject(l)&&K.remove(t,"handle events")}},dispatch:function(t){var e,n,i,o,r,s,a=new Array(arguments.length),l=x.event.fix(t),u=(K.get(this,"events")||Object.create(null))[l.type]||[],c=x.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(s=x.event.handlers.call(this,l,u),e=0;(o=s[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=((x.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,o,r,s,a=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(r=[],s={},n=0;n<l;n++)void 0===s[o=(i=e[n]).selector+" "]&&(s[o]=i.needsContext?x(o,this).index(u)>-1:x.find(o,this,null,[u]).length),s[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return u=this,l<e.length&&a.push({elem:u,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:p(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[x.expando]?t:new x.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return ft.test(e.type)&&e.click&&$(e,"input")&&Lt(e,"click",wt),!1},trigger:function(t){var e=this||t;return ft.test(e.type)&&e.click&&$(e,"input")&&Lt(e,"click"),!0},_default:function(t){var e=t.target;return ft.test(e.type)&&e.click&&$(e,"input")&&K.get(e,"click")||$(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},x.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},x.Event=function(t,e){if(!(this instanceof x.Event))return new x.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?wt: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&&x.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Tt,isPropagationStopped:Tt,isImmediatePropagationStopped:Tt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=wt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=wt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=wt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},x.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},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(t,e){x.event.special[t]={setup:function(){return Lt(this,t,Ct),!1},trigger:function(){return Lt(this,t),!0},_default:function(){return!0},delegateType:e}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){x.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,o=t.relatedTarget,r=t.handleObj;return o&&(o===i||x.contains(i,o))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),x.fn.extend({on:function(t,e,n,i){return Et(this,t,e,n,i)},one:function(t,e,n,i){return Et(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,x(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(){x.event.remove(this,t,n,e)}))}});var $t=/<script|<style|<link/i,kt=/checked\s*(?:[^=]|=\s*.checked.)/i,Pt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function St(t,e){return $(t,"table")&&$(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function Mt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function At(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Nt(t,e){var n,i,o,r,s,a;if(1===e.nodeType){if(K.hasData(t)&&(a=K.get(t).events))for(o in K.remove(e,"handle events"),a)for(n=0,i=a[o].length;n<i;n++)x.event.add(e,o,a[o][n]);Y.hasData(t)&&(r=Y.access(t),s=x.extend({},r),Y.set(e,s))}}function Dt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&ft.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function It(t,e,n,i){e=r(e);var o,s,a,l,u,c,h=0,d=t.length,m=d-1,g=e[0],_=p(g);if(_||d>1&&"string"==typeof g&&!f.checkClone&&kt.test(g))return t.each((function(o){var r=t.eq(o);_&&(e[0]=g.call(this,o,r.html())),It(r,e,n,i)}));if(d&&(s=(o=bt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===o.childNodes.length&&(o=s),s||i)){for(l=(a=x.map(_t(o,"script"),Mt)).length;h<d;h++)u=o,h!==m&&(u=x.clone(u,!0,!0),l&&x.merge(a,_t(u,"script"))),n.call(t[h],u,h);if(l)for(c=a[a.length-1].ownerDocument,x.map(a,At),h=0;h<l;h++)u=a[h],mt.test(u.type||"")&&!K.access(u,"globalEval")&&x.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?x._evalUrl&&!u.noModule&&x._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):v(u.textContent.replace(Pt,""),u,c))}return t}function Ot(t,e,n){for(var i,o=e?x.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||x.cleanData(_t(i)),i.parentNode&&(n&&ot(i)&&vt(_t(i,"script")),i.parentNode.removeChild(i));return t}x.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,o,r,s,a=t.cloneNode(!0),l=ot(t);if(!(f.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(s=_t(a),i=0,o=(r=_t(t)).length;i<o;i++)Dt(r[i],s[i]);if(e)if(n)for(r=r||_t(t),s=s||_t(a),i=0,o=r.length;i<o;i++)Nt(r[i],s[i]);else Nt(t,a);return(s=_t(a,"script")).length>0&&vt(s,!l&&_t(t,"script")),a},cleanData:function(t){for(var e,n,i,o=x.event.special,r=0;void 0!==(n=t[r]);r++)if(V(n)){if(e=n[K.expando]){if(e.events)for(i in e.events)o[i]?x.event.remove(n,i):x.removeEvent(n,i,e.handle);n[K.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),x.fn.extend({detach:function(t){return Ot(this,t,!0)},remove:function(t){return Ot(this,t)},text:function(t){return H(this,(function(t){return void 0===t?x.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 It(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||St(this,t).appendChild(t)}))},prepend:function(){return It(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=St(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return It(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return It(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&&(x.cleanData(_t(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return x.clone(this,t,e)}))},html:function(t){return H(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&&!$t.test(t)&&!gt[(pt.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(x.cleanData(_t(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return It(this,arguments,(function(e){var n=this.parentNode;x.inArray(this,t)<0&&(x.cleanData(_t(this)),n&&n.replaceChild(e,this))}),t)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){x.fn[t]=function(t){for(var n,i=[],o=x(t),r=o.length-1,a=0;a<=r;a++)n=a===r?this:this.clone(!0),x(o[a])[e](n),s.apply(i,n.get());return this.pushStack(i)}}));var zt=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),jt=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},Bt=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},Rt=new RegExp(nt.join("|"),"i");function Zt(t,e,n){var i,o,r,s,a=t.style;return(n=n||jt(t))&&(""!==(s=n.getPropertyValue(e)||n[e])||ot(t)||(s=x.style(t,e)),!f.pixelBoxStyles()&&zt.test(s)&&Rt.test(e)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r)),void 0!==s?s+"":s}function Ht(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",it.appendChild(u).appendChild(c);var e=t.getComputedStyle(c);i="1%"!==e.top,l=12===n(e.marginLeft),c.style.right="60%",s=36===n(e.right),o=36===n(e.width),c.style.position="absolute",r=12===n(c.offsetWidth/3),it.removeChild(u),c=null}}function n(t){return Math.round(parseFloat(t))}var i,o,r,s,a,l,u=g.createElement("div"),c=g.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===c.style.backgroundClip,x.extend(f,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),r},reliableTrDimensions:function(){var e,n,i,o;return null==a&&(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),a=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===n.offsetHeight,it.removeChild(e)),a}}))}();var qt=["Webkit","Moz","ms"],Ft=g.createElement("div").style,Wt={};function Ut(t){var e=x.cssProps[t]||Wt[t];return e||(t in Ft?t:Wt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=qt.length;n--;)if((t=qt[n]+e)in Ft)return t}(t)||t)}var Vt=/^(none|table(?!-c[ea]).+)/,Gt=/^--/,Kt={position:"absolute",visibility:"hidden",display:"block"},Yt={letterSpacing:"0",fontWeight:"400"};function Xt(t,e,n){var i=et.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function Qt(t,e,n,i,o,r){var s="width"===e?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=x.css(t,n+nt[s],!0,o)),i?("content"===n&&(l-=x.css(t,"padding"+nt[s],!0,o)),"margin"!==n&&(l-=x.css(t,"border"+nt[s]+"Width",!0,o))):(l+=x.css(t,"padding"+nt[s],!0,o),"padding"!==n?l+=x.css(t,"border"+nt[s]+"Width",!0,o):a+=x.css(t,"border"+nt[s]+"Width",!0,o));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-a-.5))||0),l}function Jt(t,e,n){var i=jt(t),o=(!f.boxSizingReliable()||n)&&"border-box"===x.css(t,"boxSizing",!1,i),r=o,s=Zt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(zt.test(s)){if(!n)return s;s="auto"}return(!f.boxSizingReliable()&&o||!f.reliableTrDimensions()&&$(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===x.css(t,"display",!1,i))&&t.getClientRects().length&&(o="border-box"===x.css(t,"boxSizing",!1,i),(r=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+Qt(t,e,n||(o?"border":"content"),r,i,s)+"px"}function te(t,e,n,i,o){return new te.prototype.init(t,e,n,i,o)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Zt(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,s,a=U(e),l=Gt.test(e),u=t.style;if(l||(e=Ut(a)),s=x.cssHooks[e]||x.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(t,!1,i))?o:u[e];"string"===(r=typeof n)&&(o=et.exec(n))&&o[1]&&(n=at(t,e,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(x.cssNumber[a]?"":"px")),f.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var o,r,s,a=U(e);return Gt.test(e)||(e=Ut(a)),(s=x.cssHooks[e]||x.cssHooks[a])&&"get"in s&&(o=s.get(t,!0,n)),void 0===o&&(o=Zt(t,e,i)),"normal"===o&&e in Yt&&(o=Yt[e]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),x.each(["height","width"],(function(t,e){x.cssHooks[e]={get:function(t,n,i){if(n)return!Vt.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Jt(t,e,i):Bt(t,Kt,(function(){return Jt(t,e,i)}))},set:function(t,n,i){var o,r=jt(t),s=!f.scrollboxSize()&&"absolute"===r.position,a=(s||i)&&"border-box"===x.css(t,"boxSizing",!1,r),l=i?Qt(t,e,i,a,r):0;return a&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(r[e])-Qt(t,e,"border",!1,r)-.5)),l&&(o=et.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=x.css(t,e)),Xt(0,n,l)}}})),x.cssHooks.marginLeft=Ht(f.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Zt(t,"marginLeft"))||t.getBoundingClientRect().left-Bt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(t,e){x.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&&(x.cssHooks[t+e].set=Xt)})),x.fn.extend({css:function(t,e){return H(this,(function(t,e,n){var i,o,r={},s=0;if(Array.isArray(e)){for(i=jt(t),o=e.length;s<o;s++)r[e[s]]=x.css(t,e[s],!1,i);return r}return void 0!==n?x.style(t,e,n):x.css(t,e)}),t,e,arguments.length>1)}}),x.Tween=te,te.prototype={constructor:te,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(x.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=x.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=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||!x.cssHooks[t.prop]&&null==t.elem.style[Ut(t.prop)]?t.elem[t.prop]=t.now:x.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)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=te.prototype.init,x.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,x.fx.interval),x.fx.tick())}function se(){return t.setTimeout((function(){ee=void 0})),ee=Date.now()}function ae(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=(ue.tweeners[e]||[]).concat(ue.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,e,t))return i}function ue(t,e,n){var i,o,r=0,s=ue.prefilters.length,a=x.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var e=ee||se(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),r=0,s=u.tweens.length;r<s;r++)u.tweens[r].run(i);return a.notifyWith(t,[u,i,n]),i<1&&s?n:(s||a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:e,originalOptions:n,startTime:ee||se(),duration:n.duration,tweens:[],createTween:function(e,n){var i=x.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)u.tweens[n].run(1);return e?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,e])):a.rejectWith(t,[u,e]),this}}),c=u.props;for(!function(t,e){var n,i,o,r,s;for(n in t)if(o=e[i=U(n)],r=t[n],Array.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(s=x.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete t[i],r)n in t||(t[n]=r[n],e[n]=o);else e[i]=o}(c,u.opts.specialEasing);r<s;r++)if(i=ue.prefilters[r].call(u,t,c,u.opts))return p(i.stop)&&(x._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return x.map(c,le,u),p(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),x.fx.timer(x.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}x.Animation=x.extend(ue,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return at(n.elem,t,et.exec(e),n),n}]},tweener:function(t,e){p(t)?(e=t,t=["*"]):t=t.match(I);for(var n,i=0,o=t.length;i<o;i++)n=t[i],ue.tweeners[n]=ue.tweeners[n]||[],ue.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,o,r,s,a,l,u,c,h="width"in e||"height"in e,d=this,f={},p=t.style,m=t.nodeType&&st(t),g=K.get(t,"fxshow");for(i in n.queue||(null==(s=x._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always((function(){d.always((function(){s.unqueued--,x.queue(t,"fx").length||s.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}f[i]=g&&g[i]||x.style(t,i)}if((l=!x.isEmptyObject(e))||!x.isEmptyObject(f))for(i in h&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=g&&g.display)&&(u=K.get(t,"display")),"none"===(c=x.css(t,"display"))&&(u?c=u:(ct([t],!0),u=t.style.display||u,c=x.css(t,"display"),ct([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===x.css(t,"float")&&(l||(d.done((function(){p.display=u})),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=K.access(t,"fxshow",{display:u}),r&&(g.hidden=!m),m&&ct([t],!0),d.done((function(){for(i in m||ct([t]),K.remove(t,"fxshow"),f)x.style(t,i,f[i])}))),l=le(m?g[i]:0,i,d),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ue.prefilters.unshift(t):ue.prefilters.push(t)}}),x.speed=function(t,e,n){var i=t&&"object"==typeof t?x.extend({},t):{complete:n||!n&&e||p(t)&&t,duration:t,easing:n&&e||e&&!p(e)&&e};return x.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in x.fx.speeds?i.duration=x.fx.speeds[i.duration]:i.duration=x.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){p(i.old)&&i.old.call(this),i.queue&&x.dequeue(this,i.queue)},i},x.fn.extend({fadeTo:function(t,e,n,i){return this.filter(st).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=x.isEmptyObject(t),r=x.speed(e,n,i),s=function(){var e=ue(this,x.extend({},t),r);(o||K.get(this,"finish"))&&e.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},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=x.timers,s=K.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&oe.test(o)&&i(s[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||x.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=K.get(this),i=n[t+"queue"],o=n[t+"queueHooks"],r=x.timers,s=i?i.length:0;for(n.finish=!0,x.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<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),x.each(["toggle","show","hide"],(function(t,e){var n=x.fn[e];x.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ae(e,!0),t,i,o)}})),x.each({slideDown:ae("show"),slideUp:ae("hide"),slideToggle:ae("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){x.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),x.timers=[],x.fx.tick=function(){var t,e=0,n=x.timers;for(ee=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||x.fx.stop(),ee=void 0},x.fx.timer=function(t){x.timers.push(t),x.fx.start()},x.fx.interval=13,x.fx.start=function(){ne||(ne=!0,re())},x.fx.stop=function(){ne=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,n){return e=x.fx&&x.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",f.checkOn=""!==t.value,f.optSelected=e.selected,(t=g.createElement("input")).value="t",t.type="radio",f.radioValue="t"===t.value}();var ce,he=x.expr.attrHandle;x.fn.extend({attr:function(t,e){return H(this,x.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){x.removeAttr(this,t)}))}}),x.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?x.prop(t,e,n):(1===r&&x.isXMLDoc(t)||(o=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?ce:void 0)),void 0!==n?null===n?void x.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=x.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!f.radioValue&&"radio"===e&&$(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(I);if(o&&1===t.nodeType)for(;n=o[i++];)t.removeAttribute(n)}}),ce={set:function(t,e,n){return!1===e?x.removeAttr(t,n):t.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=he[e]||x.find.attr;he[e]=function(t,e,i){var o,r,s=e.toLowerCase();return i||(r=he[s],he[s]=o,o=null!=n(t,e,i)?s:null,he[s]=r),o}}));var de=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;function pe(t){return(t.match(I)||[]).join(" ")}function me(t){return t.getAttribute&&t.getAttribute("class")||""}function ge(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(I)||[]}x.fn.extend({prop:function(t,e){return H(this,x.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[x.propFix[t]||t]}))}}),x.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&x.isXMLDoc(t)||(e=x.propFix[e]||e,o=x.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=x.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(x.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)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(t){var e,n,i,o,r,s,a,l=0;if(p(t))return this.each((function(e){x(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&&" "+pe(o)+" "){for(s=0;r=e[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(a=pe(i))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,o,r,s,a,l=0;if(p(t))return this.each((function(e){x(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&&" "+pe(o)+" "){for(s=0;r=e[s++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(a=pe(i))&&n.setAttribute("class",a)}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):p(t)?this.each((function(n){x(this).toggleClass(t.call(this,n,me(this),e),e)})):this.each((function(){var e,o,r,s;if(i)for(o=0,r=x(this),s=ge(t);e=s[o++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==n||((e=me(this))&&K.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":K.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+pe(me(n))+" ").indexOf(e)>-1)return!0;return!1}});var _e=/\r/g;x.fn.extend({val:function(t){var e,n,i,o=this[0];return arguments.length?(i=p(t),this.each((function(n){var o;1===this.nodeType&&(null==(o=i?t.call(this,n,x(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=x.map(o,(function(t){return null==t?"":t+""}))),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(_e,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:pe(x.text(t))}},select:{get:function(t){var e,n,i,o=t.options,r=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?r+1:o.length;for(i=r<0?l:s?r:0;i<l;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!$(n.parentNode,"optgroup"))){if(e=x(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,o=t.options,r=x.makeArray(e),s=o.length;s--;)((i=o[s]).selected=x.inArray(x.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=x.inArray(x(t).val(),e)>-1}},f.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),f.focusin="onfocusin"in t;var ve=/^(?:focusinfocus|focusoutblur)$/,ye=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(e,n,i,o){var r,s,a,l,u,h,d,f,_=[i||g],v=c.call(e,"type")?e.type:e,y=c.call(e,"namespace")?e.namespace.split("."):[];if(s=f=a=i=i||g,3!==i.nodeType&&8!==i.nodeType&&!ve.test(v+x.event.triggered)&&(v.indexOf(".")>-1&&(y=v.split("."),v=y.shift(),y.sort()),u=v.indexOf(":")<0&&"on"+v,(e=e[x.expando]?e:new x.Event(v,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:x.makeArray(n,[e]),d=x.event.special[v]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!m(i)){for(l=d.delegateType||v,ve.test(l+v)||(s=s.parentNode);s;s=s.parentNode)_.push(s),a=s;a===(i.ownerDocument||g)&&_.push(a.defaultView||a.parentWindow||t)}for(r=0;(s=_[r++])&&!e.isPropagationStopped();)f=s,e.type=r>1?l:d.bindType||v,(h=(K.get(s,"events")||Object.create(null))[e.type]&&K.get(s,"handle"))&&h.apply(s,n),(h=u&&s[u])&&h.apply&&V(s)&&(e.result=h.apply(s,n),!1===e.result&&e.preventDefault());return e.type=v,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(_.pop(),n)||!V(i)||u&&p(i[v])&&!m(i)&&((a=i[u])&&(i[u]=null),x.event.triggered=v,e.isPropagationStopped()&&f.addEventListener(v,ye),i[v](),e.isPropagationStopped()&&f.removeEventListener(v,ye),x.event.triggered=void 0,a&&(i[u]=a)),e.result}},simulate:function(t,e,n){var i=x.extend(new x.Event,n,{type:t,isSimulated:!0});x.event.trigger(i,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each((function(){x.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return x.event.trigger(t,e,n,!0)}}),f.focusin||x.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){x.event.simulate(e,t.target,x.event.fix(t))};x.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,o=K.access(i,e);o||i.addEventListener(t,n,!0),K.access(i,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=K.access(i,e)-1;o?K.access(i,e,o):(i.removeEventListener(t,n,!0),K.remove(i,e))}}}));var be=t.location,xe={guid:Date.now()},we=/\?/;x.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||x.error("Invalid XML: "+(i?x.map(i.childNodes,(function(t){return t.textContent})).join("\n"):e)),n};var Te=/\[\]$/,Ce=/\r?\n/g,Ee=/^(?:submit|button|image|reset|file)$/i,Le=/^(?:input|select|textarea|keygen)/i;function $e(t,e,n,i){var o;if(Array.isArray(e))x.each(e,(function(e,o){n||Te.test(t)?i(t,o):$e(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,i)}));else if(n||"object"!==y(e))i(t,e);else for(o in e)$e(t+"["+o+"]",e[o],n,i)}x.param=function(t,e){var n,i=[],o=function(t,e){var n=p(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,(function(){o(this.name,this.value)}));else for(n in t)$e(n,t[n],e,o);return i.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&Le.test(this.nodeName)&&!Ee.test(t)&&(this.checked||!ft.test(t))})).map((function(t,e){var n=x(this).val();return null==n?null:Array.isArray(n)?x.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,Pe=/#.*$/,Se=/([?&])_=[^&]*/,Me=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ae=/^(?:GET|HEAD)$/,Ne=/^\/\//,De={},Ie={},Oe="*/".concat("*"),ze=g.createElement("a");function je(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,r=e.toLowerCase().match(I)||[];if(p(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Be(t,e,n,i){var o={},r=t===Ie;function s(a){var l;return o[a]=!0,x.each(t[a]||[],(function(t,a){var u=a(e,n,i);return"string"!=typeof u||r||o[u]?r?!(l=u):void 0:(e.dataTypes.unshift(u),s(u),!1)})),l}return s(e.dataTypes[0])||!o["*"]&&s("*")}function Re(t,e){var n,i,o=x.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&x.extend(!0,t,i),t}ze.href=be.href,x.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:{"*":Oe,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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Re(Re(t,x.ajaxSettings),e):Re(x.ajaxSettings,t)},ajaxPrefilter:je(De),ajaxTransport:je(Ie),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0),n=n||{};var i,o,r,s,a,l,u,c,h,d,f=x.ajaxSetup({},n),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?x(p):x.event,_=x.Deferred(),v=x.Callbacks("once memory"),y=f.statusCode||{},b={},w={},T="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(u){if(!s)for(s={};e=Me.exec(r);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(t,e){return null==u&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)C.always(t[C.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||T;return i&&i.abort(e),E(0,e),this}};if(_.promise(C),f.url=((e||f.url||be.href)+"").replace(Ne,be.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(I)||[""],null==f.crossDomain){l=g.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=ze.protocol+"//"+ze.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=x.param(f.data,f.traditional)),Be(De,f,n,C),u)return C;for(h in(c=x.event&&f.global)&&0==x.active++&&x.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ae.test(f.type),o=f.url.replace(Pe,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(ke,"+")):(d=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(we.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(Se,"$1"),d=(we.test(o)?"&":"?")+"_="+xe.guid+++d),f.url=o+d),f.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Oe+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(p,C,f)||u))return C.abort();if(T="abort",v.add(f.complete),C.done(f.success),C.fail(f.error),i=Be(Ie,f,n,C)){if(C.readyState=1,c&&m.trigger("ajaxSend",[C,f]),u)return C;f.async&&f.timeout>0&&(a=t.setTimeout((function(){C.abort("timeout")}),f.timeout));try{u=!1,i.send(b,E)}catch(t){if(u)throw t;E(-1,t)}}else E(-1,"No Transport");function E(e,n,s,l){var h,d,g,b,w,T=n;u||(u=!0,a&&t.clearTimeout(a),i=void 0,r=l||"",C.readyState=e>0?4:0,h=e>=200&&e<300||304===e,s&&(b=function(t,e,n){for(var i,o,r,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[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}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(f,C,s)),!h&&x.inArray("script",f.dataTypes)>-1&&x.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),b=function(t,e,n,i){var o,r,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(r=c.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=u[l+" "+r]||u["* "+r]))for(o in u)if((a=o.split(" "))[1]===r&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[o]:!0!==u[o]&&(r=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(f,b,C,h),h?(f.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(x.lastModified[o]=w),(w=C.getResponseHeader("etag"))&&(x.etag[o]=w)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=b.state,d=b.data,h=!(g=b.error))):(g=T,!e&&T||(T="error",e<0&&(e=0))),C.status=e,C.statusText=(n||T)+"",h?_.resolveWith(p,[d,T,C]):_.rejectWith(p,[C,T,g]),C.statusCode(y),y=void 0,c&&m.trigger(h?"ajaxSuccess":"ajaxError",[C,f,h?d:g]),v.fireWith(p,[C,T]),c&&(m.trigger("ajaxComplete",[C,f]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return x.get(t,e,n,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],(function(t,e){x[e]=function(t,n,i,o){return p(n)&&(o=o||i,i=n,n=void 0),x.ajax(x.extend({url:t,type:e,dataType:o,data:n,success:i},x.isPlainObject(t)&&t))}})),x.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),x._evalUrl=function(t,e,n){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){x.globalEval(t,e,n)}})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&(p(t)&&(t=t.call(this[0])),e=x(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 p(t)?this.each((function(e){x(this).wrapInner(t.call(this,e))})):this.each((function(){var e=x(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=p(t);return this.each((function(n){x(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Ze={0:200,1223:204},He=x.ajaxSettings.xhr();f.cors=!!He&&"withCredentials"in He,f.ajax=He=!!He,x.ajaxTransport((function(e){var n,i;if(f.cors||He&&!e.crossDomain)return{send:function(o,r){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(s,o[s]);n=function(t){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Ze[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout((function(){n&&i()}))},n=n("abort");try{a.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}})),x.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),x.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 x.globalEval(t),t}}}),x.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),x.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,o){e=x("<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 qe,Fe=[],We=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Fe.pop()||x.expando+"_"+xe.guid++;return this[t]=!0,t}}),x.ajaxPrefilter("json jsonp",(function(e,n,i){var o,r,s,a=!1!==e.jsonp&&(We.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&We.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=p(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(We,"$1"+o):!1!==e.jsonp&&(e.url+=(we.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},e.dataTypes[0]="json",r=t[o],t[o]=function(){s=arguments},i.always((function(){void 0===r?x(t).removeProp(o):t[o]=r,e[o]&&(e.jsonpCallback=n.jsonpCallback,Fe.push(o)),s&&p(r)&&r(s[0]),s=r=void 0})),"script"})),f.createHTMLDocument=((qe=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===qe.childNodes.length),x.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(f.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&&x(r).remove(),x.merge([],o.childNodes)));var i,o,r},x.fn.load=function(t,e,n){var i,o,r,s=this,a=t.indexOf(" ");return a>-1&&(i=pe(t.slice(a)),t=t.slice(0,a)),p(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),s.length>0&&x.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done((function(t){r=arguments,s.html(i?x("<div>").append(x.parseHTML(t)).find(i):t)})).always(n&&function(t,e){s.each((function(){n.apply(this,r||[t.responseText,e,t])}))}),this},x.expr.pseudos.animated=function(t){return x.grep(x.timers,(function(e){return t===e.elem})).length},x.offset={setOffset:function(t,e,n){var i,o,r,s,a,l,u=x.css(t,"position"),c=x(t),h={};"static"===u&&(t.style.position="relative"),a=c.offset(),r=x.css(t,"top"),l=x.css(t,"left"),("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1?(s=(i=c.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),p(e)&&(e=e.call(t,n,x.extend({},a))),null!=e.top&&(h.top=e.top-a.top+s),null!=e.left&&(h.left=e.left-a.left+o),"using"in e?e.using.call(t,h):c.css(h)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){x.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"===x.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"===x.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((o=x(t).offset()).top+=x.css(t,"borderTopWidth",!0),o.left+=x.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-x.css(i,"marginTop",!0),left:e.left-o.left-x.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||it}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;x.fn[t]=function(i){return H(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)}})),x.each(["top","left"],(function(t,e){x.cssHooks[e]=Ht(f.pixelPosition,(function(t,n){if(n)return n=Zt(t,e),zt.test(n)?x(t).position()[e]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(t,e){x.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){x.fn[i]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return H(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?x.css(e,n,a):x.style(e,n,o,a)}),e,s?o:void 0,s)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){x.fn[e]=function(t){return this.on(e,t)}})),x.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)}}),x.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){x.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var Ue=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),p(t))return i=o.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(o.call(arguments)))}).guid=t.guid=t.guid||x.guid++,r},x.holdReady=function(t){t?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=$,x.isFunction=p,x.isWindow=m,x.camelCase=U,x.type=y,x.now=Date.now,x.isNumeric=function(t){var e=x.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},x.trim=function(t){return null==t?"":(t+"").replace(Ue,"")};var Ve=t.jQuery,Ge=t.$;return x.noConflict=function(e){return t.$===x&&(t.$=Ge),e&&t.jQuery===x&&(t.jQuery=Ve),x},void 0===e&&(t.jQuery=t.$=x),x}))}));
-/*!
-      * Bootstrap v4.6.0 (https://getbootstrap.com/)
-      * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
-      * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
-      */st((function(t,e){!function(t,e){function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=n(e);function o(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 r(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(){return(s=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 a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l="transitionend",u=1e6,c=1e3;function h(t){return null==t?""+t:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()}function d(){return{bindType:l,delegateType:l,handle:function(t){if(i.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function f(t){var e=this,n=!1;return i.default(this).one(m.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||m.triggerTransitionEnd(e)}),t),this}function p(){i.default.fn.emulateTransitionEnd=f,i.default.event.special[m.TRANSITION_END]=d()}var m={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(Math.random()*u)}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=i.default(t).css("transition-duration"),n=i.default(t).css("transition-delay"),o=parseFloat(e),r=parseFloat(n);return o||r?(e=e.split(",")[0],n=n.split(",")[0],(parseFloat(e)+parseFloat(n))*c):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){i.default(t).trigger(l)},supportsTransitionEnd:function(){return Boolean(l)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=e[i],s=r&&m.isElement(r)?"element":h(r);if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?m.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===i.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=i.default.fn.jquery.split(" ")[0].split("."),e=1,n=2,o=9,r=1,s=4;if(t[0]<n&&t[1]<o||t[0]===e&&t[1]===o&&t[2]<r||t[0]>=s)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};m.jQueryDetection(),p();var g="alert",_="4.6.0",v="bs.alert",y="."+v,b=".data-api",x=i.default.fn[g],w='[data-dismiss="alert"]',T="close"+y,C="closed"+y,E="click"+y+b,L="alert",$="fade",k="show",P=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){i.default.removeData(this._element,v),this._element=null},e._getRootElement=function(t){var e=m.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=i.default(t).closest("."+L)[0]),n},e._triggerCloseEvent=function(t){var e=i.default.Event(T);return i.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(i.default(t).removeClass(k),i.default(t).hasClass($)){var n=m.getTransitionDurationFromElement(t);i.default(t).one(m.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){i.default(t).detach().trigger(C).remove()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(v);o||(o=new t(this),n.data(v,o)),"close"===e&&o[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},r(t,null,[{key:"VERSION",get:function(){return _}}]),t}();i.default(document).on(E,w,P._handleDismiss(new P)),i.default.fn[g]=P._jQueryInterface,i.default.fn[g].Constructor=P,i.default.fn[g].noConflict=function(){return i.default.fn[g]=x,P._jQueryInterface};var S="button",M="4.6.0",A="bs.button",N="."+A,D=".data-api",I=i.default.fn[S],O="active",z="btn",j="focus",B='[data-toggle^="button"]',R='[data-toggle="buttons"]',Z='[data-toggle="button"]',H='[data-toggle="buttons"] .btn',q='input:not([type="hidden"])',F=".active",W=".btn",U="click"+N+D,V="focus"+N+D+" blur"+N+D,G="load"+N+D,K=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=i.default(this._element).closest(R)[0];if(n){var o=this._element.querySelector(q);if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains(O))t=!1;else{var r=n.querySelector(F);r&&i.default(r).removeClass(O)}t&&("checkbox"!==o.type&&"radio"!==o.type||(o.checked=!this._element.classList.contains(O)),this.shouldAvoidTriggerChange||i.default(o).trigger("change")),o.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(O)),t&&i.default(this._element).toggleClass(O))},e.dispose=function(){i.default.removeData(this._element,A),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var o=i.default(this),r=o.data(A);r||(r=new t(this),o.data(A,r)),r.shouldAvoidTriggerChange=n,"toggle"===e&&r[e]()}))},r(t,null,[{key:"VERSION",get:function(){return M}}]),t}();i.default(document).on(U,B,(function(t){var e=t.target,n=e;if(i.default(e).hasClass(z)||(e=i.default(e).closest(W)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var o=e.querySelector(q);if(o&&(o.hasAttribute("disabled")||o.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||K._jQueryInterface.call(i.default(e),"toggle","INPUT"===n.tagName)}})).on(V,B,(function(t){var e=i.default(t.target).closest(W)[0];i.default(e).toggleClass(j,/^focus(in)?$/.test(t.type))})),i.default(window).on(G,(function(){for(var t=[].slice.call(document.querySelectorAll(H)),e=0,n=t.length;e<n;e++){var i=t[e],o=i.querySelector(q);o.checked||o.hasAttribute("checked")?i.classList.add(O):i.classList.remove(O)}for(var r=0,s=(t=[].slice.call(document.querySelectorAll(Z))).length;r<s;r++){var a=t[r];"true"===a.getAttribute("aria-pressed")?a.classList.add(O):a.classList.remove(O)}})),i.default.fn[S]=K._jQueryInterface,i.default.fn[S].Constructor=K,i.default.fn[S].noConflict=function(){return i.default.fn[S]=I,K._jQueryInterface};var Y="carousel",X="4.6.0",Q="bs.carousel",J="."+Q,tt=".data-api",et=i.default.fn[Y],nt=37,it=39,ot=500,st=40,at={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},lt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ut="next",ct="prev",ht="left",dt="right",ft="slide"+J,pt="slid"+J,mt="keydown"+J,gt="mouseenter"+J,_t="mouseleave"+J,vt="touchstart"+J,yt="touchmove"+J,bt="touchend"+J,xt="pointerdown"+J,wt="pointerup"+J,Tt="dragstart"+J,Ct="load"+J+tt,Et="click"+J+tt,Lt="carousel",$t="active",kt="slide",Pt="carousel-item-right",St="carousel-item-left",Mt="carousel-item-next",At="carousel-item-prev",Nt="pointer-event",Dt=".active",It=".active.carousel-item",Ot=".carousel-item",zt=".carousel-item img",jt=".carousel-item-next, .carousel-item-prev",Bt=".carousel-indicators",Rt="[data-slide], [data-slide-to]",Zt='[data-ride="carousel"]',Ht={TOUCH:"touch",PEN:"pen"},qt=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(Bt),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(ut)},e.nextWhenVisible=function(){var t=i.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(ct)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(jt)&&(m.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(It);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)i.default(this._element).one(pt,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var o=t>n?ut:ct;this._slide(o,this._items[t])}},e.dispose=function(){i.default(this._element).off(J),i.default.removeData(this._element,Q),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=s({},at,t),m.typeCheckConfig(Y,t,lt),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=st)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&i.default(this._element).on(mt,(function(e){return t._keydown(e)})),"hover"===this._config.pause&&i.default(this._element).on(gt,(function(e){return t.pause(e)})).on(_t,(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&Ht[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX},o=function(e){t._pointerEvent&&Ht[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),ot+t._config.interval))};i.default(this._element.querySelectorAll(zt)).on(Tt,(function(t){return t.preventDefault()})),this._pointerEvent?(i.default(this._element).on(xt,(function(t){return e(t)})),i.default(this._element).on(wt,(function(t){return o(t)})),this._element.classList.add(Nt)):(i.default(this._element).on(vt,(function(t){return e(t)})),i.default(this._element).on(yt,(function(t){return n(t)})),i.default(this._element).on(bt,(function(t){return o(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case nt:t.preventDefault(),this.prev();break;case it:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(Ot)):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=t===ut,i=t===ct,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+(t===ct?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(It)),r=i.default.Event(ft,{relatedTarget:t,direction:e,from:o,to:n});return i.default(this._element).trigger(r),r},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(Dt));i.default(e).removeClass($t);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&i.default(n).addClass($t)}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(It);if(t){var e=parseInt(t.getAttribute("data-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}},e._slide=function(t,e){var n,o,r,s=this,a=this._element.querySelector(It),l=this._getItemIndex(a),u=e||a&&this._getItemByDirection(t,a),c=this._getItemIndex(u),h=Boolean(this._interval);if(t===ut?(n=St,o=Mt,r=ht):(n=Pt,o=At,r=dt),u&&i.default(u).hasClass($t))this._isSliding=!1;else if(!this._triggerSlideEvent(u,r).isDefaultPrevented()&&a&&u){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var d=i.default.Event(pt,{relatedTarget:u,direction:r,from:l,to:c});if(i.default(this._element).hasClass(kt)){i.default(u).addClass(o),m.reflow(u),i.default(a).addClass(n),i.default(u).addClass(n);var f=m.getTransitionDurationFromElement(a);i.default(a).one(m.TRANSITION_END,(function(){i.default(u).removeClass(n+" "+o).addClass($t),i.default(a).removeClass($t+" "+o+" "+n),s._isSliding=!1,setTimeout((function(){return i.default(s._element).trigger(d)}),0)})).emulateTransitionEnd(f)}else i.default(a).removeClass($t),i.default(u).addClass($t),this._isSliding=!1,i.default(this._element).trigger(d);h&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(Q),o=s({},at,i.default(this).data());"object"==typeof e&&(o=s({},o,e));var r="string"==typeof e?e:o.slide;if(n||(n=new t(this,o),i.default(this).data(Q,n)),"number"==typeof e)n.to(e);else if("string"==typeof r){if(void 0===n[r])throw new TypeError('No method named "'+r+'"');n[r]()}else o.interval&&o.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=m.getSelectorFromElement(this);if(n){var o=i.default(n)[0];if(o&&i.default(o).hasClass(Lt)){var r=s({},i.default(o).data(),i.default(this).data()),a=this.getAttribute("data-slide-to");a&&(r.interval=!1),t._jQueryInterface.call(i.default(o),r),a&&i.default(o).data(Q).to(a),e.preventDefault()}}},r(t,null,[{key:"VERSION",get:function(){return X}},{key:"Default",get:function(){return at}}]),t}();i.default(document).on(Et,Rt,qt._dataApiClickHandler),i.default(window).on(Ct,(function(){for(var t=[].slice.call(document.querySelectorAll(Zt)),e=0,n=t.length;e<n;e++){var o=i.default(t[e]);qt._jQueryInterface.call(o,o.data())}})),i.default.fn[Y]=qt._jQueryInterface,i.default.fn[Y].Constructor=qt,i.default.fn[Y].noConflict=function(){return i.default.fn[Y]=et,qt._jQueryInterface};var Ft="collapse",Wt="4.6.0",Ut="bs.collapse",Vt="."+Ut,Gt=".data-api",Kt=i.default.fn[Ft],Yt={toggle:!0,parent:""},Xt={toggle:"boolean",parent:"(string|element)"},Qt="show"+Vt,Jt="shown"+Vt,te="hide"+Vt,ee="hidden"+Vt,ne="click"+Vt+Gt,ie="show",oe="collapse",re="collapsing",se="collapsed",ae="width",le="height",ue=".show, .collapsing",ce='[data-toggle="collapse"]',he=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(ce)),i=0,o=n.length;i<o;i++){var r=n[i],s=m.getSelectorFromElement(r),a=[].slice.call(document.querySelectorAll(s)).filter((function(e){return e===t}));null!==s&&a.length>0&&(this._selector=s,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){i.default(this._element).hasClass(ie)?this.hide():this.show()},e.show=function(){var e,n,o=this;if(!(this._isTransitioning||i.default(this._element).hasClass(ie)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(ue)).filter((function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains(oe)}))).length&&(e=null),e&&(n=i.default(e).not(this._selector).data(Ut))&&n._isTransitioning))){var r=i.default.Event(Qt);if(i.default(this._element).trigger(r),!r.isDefaultPrevented()){e&&(t._jQueryInterface.call(i.default(e).not(this._selector),"hide"),n||i.default(e).data(Ut,null));var s=this._getDimension();i.default(this._element).removeClass(oe).addClass(re),this._element.style[s]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(se).attr("aria-expanded",!0),this.setTransitioning(!0);var a=function(){i.default(o._element).removeClass(re).addClass(oe+" "+ie),o._element.style[s]="",o.setTransitioning(!1),i.default(o._element).trigger(Jt)},l="scroll"+(s[0].toUpperCase()+s.slice(1)),u=m.getTransitionDurationFromElement(this._element);i.default(this._element).one(m.TRANSITION_END,a).emulateTransitionEnd(u),this._element.style[s]=this._element[l]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&i.default(this._element).hasClass(ie)){var e=i.default.Event(te);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",m.reflow(this._element),i.default(this._element).addClass(re).removeClass(oe+" "+ie);var o=this._triggerArray.length;if(o>0)for(var r=0;r<o;r++){var s=this._triggerArray[r],a=m.getSelectorFromElement(s);null!==a&&(i.default([].slice.call(document.querySelectorAll(a))).hasClass(ie)||i.default(s).addClass(se).attr("aria-expanded",!1))}this.setTransitioning(!0);var l=function(){t.setTransitioning(!1),i.default(t._element).removeClass(re).addClass(oe).trigger(ee)};this._element.style[n]="";var u=m.getTransitionDurationFromElement(this._element);i.default(this._element).one(m.TRANSITION_END,l).emulateTransitionEnd(u)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){i.default.removeData(this._element,Ut),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=s({},Yt,t)).toggle=Boolean(t.toggle),m.typeCheckConfig(Ft,t,Xt),t},e._getDimension=function(){return i.default(this._element).hasClass(ae)?ae:le},e._getParent=function(){var e,n=this;m.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var o='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',r=[].slice.call(e.querySelectorAll(o));return i.default(r).each((function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])})),e},e._addAriaAndCollapsedClass=function(t,e){var n=i.default(t).hasClass(ie);e.length&&i.default(e).toggleClass(se,!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=m.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(Ut),r=s({},Yt,n.data(),"object"==typeof e&&e?e:{});if(!o&&r.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(r.toggle=!1),o||(o=new t(this,r),n.data(Ut,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return Wt}},{key:"Default",get:function(){return Yt}}]),t}();i.default(document).on(ne,ce,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=i.default(this),n=m.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(n));i.default(o).each((function(){var t=i.default(this),n=t.data(Ut)?"toggle":e.data();he._jQueryInterface.call(t,n)}))})),i.default.fn[Ft]=he._jQueryInterface,i.default.fn[Ft].Constructor=he,i.default.fn[Ft].noConflict=function(){return i.default.fn[Ft]=Kt,he._jQueryInterface};
-/**!
-       * @fileOverview Kickass library to create and place poppers near their reference elements.
-       * @version 1.16.1
-       * @license
-       * Copyright (c) 2016 Federico Zivolo and contributors
-       *
-       * Permission is hereby granted, free of charge, to any person obtaining a copy
-       * of this software and associated documentation files (the "Software"), to deal
-       * in the Software without restriction, including without limitation the rights
-       * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-       * copies of the Software, and to permit persons to whom the Software is
-       * furnished to do so, subject to the following conditions:
-       *
-       * The above copyright notice and this permission notice shall be included in all
-       * copies or substantial portions of the Software.
-       *
-       * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-       * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-       * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-       * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-       * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-       * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-       * SOFTWARE.
-       */
-var de="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,fe=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(de&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();function pe(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}function me(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),fe))}}var ge=de&&window.Promise?pe:me;function _e(t){return t&&"[object Function]"==={}.toString.call(t)}function ve(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function ye(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function be(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=ve(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:be(ye(t))}function xe(t){return t&&t.referenceNode?t.referenceNode:t}var we=de&&!(!window.MSInputMethodContext||!document.documentMode),Te=de&&/MSIE 10/.test(navigator.userAgent);function Ce(t){return 11===t?we:10===t?Te:we||Te}function Ee(t){if(!t)return document.documentElement;for(var e=Ce(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===ve(n,"position")?Ee(n):n:t?t.ownerDocument.documentElement:document.documentElement}function Le(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||Ee(t.firstElementChild)===t)}function $e(t){return null!==t.parentNode?$e(t.parentNode):t}function ke(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var s=r.commonAncestorContainer;if(t!==s&&e!==s||i.contains(o))return Le(s)?s:Ee(s);var a=$e(t);return a.host?ke(a.host,e):ke(t,$e(e).host)}function Pe(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function Se(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Pe(e,"top"),o=Pe(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function Me(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function Ae(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],Ce(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function Ne(t){var e=t.body,n=t.documentElement,i=Ce(10)&&getComputedStyle(n);return{height:Ae("Height",e,n,i),width:Ae("Width",e,n,i)}}var De=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Ie=function(){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)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),Oe=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},ze=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};function je(t){return ze({},t,{right:t.left+t.width,bottom:t.top+t.height})}function Be(t){var e={};try{if(Ce(10)){e=t.getBoundingClientRect();var n=Pe(t,"top"),i=Pe(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?Ne(t.ownerDocument):{},s=r.width||t.clientWidth||o.width,a=r.height||t.clientHeight||o.height,l=t.offsetWidth-s,u=t.offsetHeight-a;if(l||u){var c=ve(t);l-=Me(c,"x"),u-=Me(c,"y"),o.width-=l,o.height-=u}return je(o)}function Re(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Ce(10),o="HTML"===e.nodeName,r=Be(t),s=Be(e),a=be(t),l=ve(e),u=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=je({top:r.top-s.top-u,left:r.left-s.left-c,width:r.width,height:r.height});if(h.marginTop=0,h.marginLeft=0,!i&&o){var d=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);h.top-=u-d,h.bottom-=u-d,h.left-=c-f,h.right-=c-f,h.marginTop=d,h.marginLeft=f}return(i&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(h=Se(h,e)),h}function Ze(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=Re(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:Pe(n),a=e?0:Pe(n,"left");return je({top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:o,height:r})}function He(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===ve(t,"position"))return!0;var n=ye(t);return!!n&&He(n)}function qe(t){if(!t||!t.parentElement||Ce())return document.documentElement;for(var e=t.parentElement;e&&"none"===ve(e,"transform");)e=e.parentElement;return e||document.documentElement}function Fe(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=o?qe(t):ke(t,xe(e));if("viewport"===i)r=Ze(s,o);else{var a=void 0;"scrollParent"===i?"BODY"===(a=be(ye(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===i?t.ownerDocument.documentElement:i;var l=Re(a,s,o);if("HTML"!==a.nodeName||He(s))r=l;else{var u=Ne(t.ownerDocument),c=u.height,h=u.width;r.top+=l.top-l.marginTop,r.bottom=c+l.top,r.left+=l.left-l.marginLeft,r.right=h+l.left}}var d="number"==typeof(n=n||0);return r.left+=d?n:n.left||0,r.top+=d?n:n.top||0,r.right-=d?n:n.right||0,r.bottom-=d?n:n.bottom||0,r}function We(t){return t.width*t.height}function Ue(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=Fe(n,i,r,o),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map((function(t){return ze({key:t},a[t],{area:We(a[t])})})).sort((function(t,e){return e.area-t.area})),u=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,h=t.split("-")[1];return c+(h?"-"+h:"")}function Ve(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Re(n,i?qe(e):ke(e,xe(n)),i)}function Ge(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function Ke(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function Ye(t,e,n){n=n.split("-")[0];var i=Ge(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",u=r?"width":"height";return o[s]=e[s]+e[l]/2-i[l]/2,o[a]=n===a?e[a]-i[u]:e[Ke(a)],o}function Xe(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Qe(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var i=Xe(t,(function(t){return t[e]===n}));return t.indexOf(i)}function Je(t,e,n){return(void 0===n?t:t.slice(0,Qe(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&_e(n)&&(e.offsets.popper=je(e.offsets.popper),e.offsets.reference=je(e.offsets.reference),e=n(e,t))})),e}function tn(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Ve(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Ue(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=Ye(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Je(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function en(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function nn(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],r=o?""+o+n:t;if(void 0!==document.body.style[r])return r}return null}function on(){return this.state.isDestroyed=!0,en(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[nn("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function rn(t){var e=t.ownerDocument;return e?e.defaultView:window}function sn(t,e,n,i){var o="BODY"===t.nodeName,r=o?t.ownerDocument.defaultView:t;r.addEventListener(e,n,{passive:!0}),o||sn(be(r.parentNode),e,n,i),i.push(r)}function an(t,e,n,i){n.updateBound=i,rn(t).addEventListener("resize",n.updateBound,{passive:!0});var o=be(t);return sn(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function ln(){this.state.eventsEnabled||(this.state=an(this.reference,this.options,this.state,this.scheduleUpdate))}function un(t,e){return rn(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function cn(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=un(this.reference,this.state))}function hn(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function dn(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&hn(e[n])&&(i="px"),t.style[n]=e[n]+i}))}function fn(t,e){Object.keys(e).forEach((function(n){!1!==e[n]?t.setAttribute(n,e[n]):t.removeAttribute(n)}))}function pn(t){return dn(t.instance.popper,t.styles),fn(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&dn(t.arrowElement,t.arrowStyles),t}function mn(t,e,n,i,o){var r=Ve(o,e,t,n.positionFixed),s=Ue(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),dn(e,{position:n.positionFixed?"fixed":"absolute"}),n}function gn(t,e){var n=t.offsets,i=n.popper,o=n.reference,r=Math.round,s=Math.floor,a=function(t){return t},l=r(o.width),u=r(i.width),c=-1!==["left","right"].indexOf(t.placement),h=-1!==t.placement.indexOf("-"),d=e?c||h||l%2==u%2?r:s:a,f=e?r:a;return{left:d(l%2==1&&u%2==1&&!h&&e?i.left-1:i.left),top:f(i.top),bottom:f(i.bottom),right:d(i.right)}}var _n=de&&/Firefox/i.test(navigator.userAgent);function vn(t,e){var n=e.x,i=e.y,o=t.offsets.popper,r=Xe(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==r?r:e.gpuAcceleration,a=Ee(t.instance.popper),l=Be(a),u={position:o.position},c=gn(t,window.devicePixelRatio<2||!_n),h="bottom"===n?"top":"bottom",d="right"===i?"left":"right",f=nn("transform"),p=void 0,m=void 0;if(m="bottom"===h?"HTML"===a.nodeName?-a.clientHeight+c.bottom:-l.height+c.bottom:c.top,p="right"===d?"HTML"===a.nodeName?-a.clientWidth+c.right:-l.width+c.right:c.left,s&&f)u[f]="translate3d("+p+"px, "+m+"px, 0)",u[h]=0,u[d]=0,u.willChange="transform";else{var g="bottom"===h?-1:1,_="right"===d?-1:1;u[h]=m*g,u[d]=p*_,u.willChange=h+", "+d}var v={"x-placement":t.placement};return t.attributes=ze({},v,t.attributes),t.styles=ze({},u,t.styles),t.arrowStyles=ze({},t.offsets.arrow,t.arrowStyles),t}function yn(t,e,n){var i=Xe(t,(function(t){return t.name===e})),o=!!i&&t.some((function(t){return t.name===n&&t.enabled&&t.order<i.order}));if(!o){var r="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}function bn(t,e){var n;if(!yn(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],r=t.offsets,s=r.popper,a=r.reference,l=-1!==["left","right"].indexOf(o),u=l?"height":"width",c=l?"Top":"Left",h=c.toLowerCase(),d=l?"left":"top",f=l?"bottom":"right",p=Ge(i)[u];a[f]-p<s[h]&&(t.offsets.popper[h]-=s[h]-(a[f]-p)),a[h]+p>s[f]&&(t.offsets.popper[h]+=a[h]+p-s[f]),t.offsets.popper=je(t.offsets.popper);var m=a[h]+a[u]/2-p/2,g=ve(t.instance.popper),_=parseFloat(g["margin"+c]),v=parseFloat(g["border"+c+"Width"]),y=m-t.offsets.popper[h]-_-v;return y=Math.max(Math.min(s[u]-p,y),0),t.arrowElement=i,t.offsets.arrow=(Oe(n={},h,Math.round(y)),Oe(n,d,""),n),t}function xn(t){return"end"===t?"start":"start"===t?"end":t}var wn=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Tn=wn.slice(3);function Cn(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Tn.indexOf(t),i=Tn.slice(n+1).concat(Tn.slice(0,n));return e?i.reverse():i}var En={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Ln(t,e){if(en(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=Fe(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=Ke(i),r=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case En.FLIP:s=[i,o];break;case En.CLOCKWISE:s=Cn(i);break;case En.COUNTERCLOCKWISE:s=Cn(i,!0);break;default:s=e.behavior}return s.forEach((function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],o=Ke(i);var u=t.offsets.popper,c=t.offsets.reference,h=Math.floor,d="left"===i&&h(u.right)>h(c.left)||"right"===i&&h(u.left)<h(c.right)||"top"===i&&h(u.bottom)>h(c.top)||"bottom"===i&&h(u.top)<h(c.bottom),f=h(u.left)<h(n.left),p=h(u.right)>h(n.right),m=h(u.top)<h(n.top),g=h(u.bottom)>h(n.bottom),_="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,v=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(v&&"start"===r&&f||v&&"end"===r&&p||!v&&"start"===r&&m||!v&&"end"===r&&g),b=!!e.flipVariationsByContent&&(v&&"start"===r&&p||v&&"end"===r&&f||!v&&"start"===r&&g||!v&&"end"===r&&m),x=y||b;(d||_||x)&&(t.flipped=!0,(d||_)&&(i=s[l+1]),x&&(r=xn(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=ze({},t.offsets.popper,Ye(t.instance.popper,t.offsets.reference,t.placement)),t=Je(t.instance.modifiers,t,"flip"))})),t}function $n(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return n[a]<r(i[l])&&(t.offsets.popper[l]=r(i[l])-n[u]),n[l]>r(i[a])&&(t.offsets.popper[l]=r(i[a])),t}function kn(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],s=o[2];if(!r)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return je(a)[e]/100*r}return"vh"===s||"vw"===s?("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r:r}function Pn(t,e,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(Xe(s,(function(t){return-1!==t.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(u=u.map((function(t,i){var o=(1===i?!r:r)?"height":"width",s=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)}),[]).map((function(t){return kn(t,o,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,i){hn(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}function Sn(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,s=o.reference,a=i.split("-")[0],l=void 0;return l=hn(+n)?[+n,0]:Pn(n,r,s,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t}function Mn(t,e){var n=e.boundariesElement||Ee(t.instance.popper);t.instance.reference===n&&(n=Ee(n));var i=nn("transform"),o=t.instance.popper.style,r=o.top,s=o.left,a=o[i];o.top="",o.left="",o[i]="";var l=Fe(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=s,o[i]=a,e.boundaries=l;var u=e.priority,c=t.offsets.popper,h={primary:function(t){var n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),Oe({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),Oe({},n,i)}};return u.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=ze({},c,h[e](t))})),t.offsets.popper=c,t}function An(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",u=a?"width":"height",c={start:Oe({},l,r[l]),end:Oe({},l,r[l]+r[u]-s[u])};t.offsets.popper=ze({},s,c[i])}return t}function Nn(t){if(!yn(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=Xe(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function Dn(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=r[n]-(a?o[s?"width":"height"]:0),t.placement=Ke(e),t.offsets.popper=je(o),t}var In={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:An},offset:{order:200,enabled:!0,fn:Sn,offset:0},preventOverflow:{order:300,enabled:!0,fn:Mn,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:$n},arrow:{order:500,enabled:!0,fn:bn,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Ln,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Dn},hide:{order:800,enabled:!0,fn:Nn},computeStyle:{order:850,enabled:!0,fn:vn,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:pn,onLoad:mn,gpuAcceleration:void 0}}},On=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};De(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=ge(this.update.bind(this)),this.options=ze({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ze({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=ze({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return ze({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&_e(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return Ie(t,[{key:"update",value:function(){return tn.call(this)}},{key:"destroy",value:function(){return on.call(this)}},{key:"enableEventListeners",value:function(){return ln.call(this)}},{key:"disableEventListeners",value:function(){return cn.call(this)}}]),t}();On.Utils=("undefined"!=typeof window?window:rt).PopperUtils,On.placements=wn,On.Defaults=In;var zn="dropdown",jn="4.6.0",Bn="bs.dropdown",Rn="."+Bn,Zn=".data-api",Hn=i.default.fn[zn],qn=27,Fn=32,Wn=9,Un=38,Vn=40,Gn=3,Kn=new RegExp(Un+"|"+Vn+"|"+qn),Yn="hide"+Rn,Xn="hidden"+Rn,Qn="show"+Rn,Jn="shown"+Rn,ti="click"+Rn,ei="click"+Rn+Zn,ni="keydown"+Rn+Zn,ii="keyup"+Rn+Zn,oi="disabled",ri="show",si="dropup",ai="dropright",li="dropleft",ui="dropdown-menu-right",ci="position-static",hi='[data-toggle="dropdown"]',di=".dropdown form",fi=".dropdown-menu",pi=".navbar-nav",mi=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",gi="top-start",_i="top-end",vi="bottom-start",yi="bottom-end",bi="right-start",xi="left-start",wi={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Ti={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},Ci=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!i.default(this._element).hasClass(oi)){var e=i.default(this._menu).hasClass(ri);t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||i.default(this._element).hasClass(oi)||i.default(this._menu).hasClass(ri))){var n={relatedTarget:this._element},o=i.default.Event(Qn,n),r=t._getParentFromElement(this._element);if(i.default(r).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===On)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var s=this._element;"parent"===this._config.reference?s=r:m.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&i.default(r).addClass(ci),this._popper=new On(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===i.default(r).closest(pi).length&&i.default(document.body).children().on("mouseover",null,i.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),i.default(this._menu).toggleClass(ri),i.default(r).toggleClass(ri).trigger(i.default.Event(Jn,n))}}},e.hide=function(){if(!this._element.disabled&&!i.default(this._element).hasClass(oi)&&i.default(this._menu).hasClass(ri)){var e={relatedTarget:this._element},n=i.default.Event(Yn,e),o=t._getParentFromElement(this._element);i.default(o).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),i.default(this._menu).toggleClass(ri),i.default(o).toggleClass(ri).trigger(i.default.Event(Xn,e)))}},e.dispose=function(){i.default.removeData(this._element,Bn),i.default(this._element).off(Rn),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;i.default(this._element).on(ti,(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=s({},this.constructor.Default,i.default(this._element).data(),t),m.typeCheckConfig(zn,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(fi))}return this._menu},e._getPlacement=function(){var t=i.default(this._element.parentNode),e=vi;return t.hasClass(si)?e=i.default(this._menu).hasClass(ui)?_i:gi:t.hasClass(ai)?e=bi:t.hasClass(li)?e=xi:i.default(this._menu).hasClass(ui)&&(e=yi),e},e._detectNavbar=function(){return i.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),s({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(Bn);if(n||(n=new t(this,"object"==typeof e?e:null),i.default(this).data(Bn,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||e.which!==Gn&&("keyup"!==e.type||e.which===Wn))for(var n=[].slice.call(document.querySelectorAll(hi)),o=0,r=n.length;o<r;o++){var s=t._getParentFromElement(n[o]),a=i.default(n[o]).data(Bn),l={relatedTarget:n[o]};if(e&&"click"===e.type&&(l.clickEvent=e),a){var u=a._menu;if(i.default(s).hasClass(ri)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&e.which===Wn)&&i.default.contains(s,e.target))){var c=i.default.Event(Yn,l);i.default(s).trigger(c),c.isDefaultPrevented()||("ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),n[o].setAttribute("aria-expanded","false"),a._popper&&a._popper.destroy(),i.default(u).removeClass(ri),i.default(s).removeClass(ri).trigger(i.default.Event(Xn,l)))}}}},t._getParentFromElement=function(t){var e,n=m.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?e.which===Fn||e.which!==qn&&(e.which!==Vn&&e.which!==Un||i.default(e.target).closest(fi).length):!Kn.test(e.which))&&!this.disabled&&!i.default(this).hasClass(oi)){var n=t._getParentFromElement(this),o=i.default(n).hasClass(ri);if(o||e.which!==qn){if(e.preventDefault(),e.stopPropagation(),!o||e.which===qn||e.which===Fn)return e.which===qn&&i.default(n.querySelector(hi)).trigger("focus"),void i.default(this).trigger("click");var r=[].slice.call(n.querySelectorAll(mi)).filter((function(t){return i.default(t).is(":visible")}));if(0!==r.length){var s=r.indexOf(e.target);e.which===Un&&s>0&&s--,e.which===Vn&&s<r.length-1&&s++,s<0&&(s=0),r[s].focus()}}}},r(t,null,[{key:"VERSION",get:function(){return jn}},{key:"Default",get:function(){return wi}},{key:"DefaultType",get:function(){return Ti}}]),t}();i.default(document).on(ni,hi,Ci._dataApiKeydownHandler).on(ni,fi,Ci._dataApiKeydownHandler).on(ei+" "+ii,Ci._clearMenus).on(ei,hi,(function(t){t.preventDefault(),t.stopPropagation(),Ci._jQueryInterface.call(i.default(this),"toggle")})).on(ei,di,(function(t){t.stopPropagation()})),i.default.fn[zn]=Ci._jQueryInterface,i.default.fn[zn].Constructor=Ci,i.default.fn[zn].noConflict=function(){return i.default.fn[zn]=Hn,Ci._jQueryInterface};var Ei="modal",Li="4.6.0",$i="bs.modal",ki="."+$i,Pi=".data-api",Si=i.default.fn[Ei],Mi=27,Ai={backdrop:!0,keyboard:!0,focus:!0,show:!0},Ni={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Di="hide"+ki,Ii="hidePrevented"+ki,Oi="hidden"+ki,zi="show"+ki,ji="shown"+ki,Bi="focusin"+ki,Ri="resize"+ki,Zi="click.dismiss"+ki,Hi="keydown.dismiss"+ki,qi="mouseup.dismiss"+ki,Fi="mousedown.dismiss"+ki,Wi="click"+ki+Pi,Ui="modal-dialog-scrollable",Vi="modal-scrollbar-measure",Gi="modal-backdrop",Ki="modal-open",Yi="fade",Xi="show",Qi="modal-static",Ji=".modal-dialog",to=".modal-body",eo='[data-toggle="modal"]',no='[data-dismiss="modal"]',io=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",oo=".sticky-top",ro=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(Ji),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){i.default(this._element).hasClass(Yi)&&(this._isTransitioning=!0);var n=i.default.Event(zi,{relatedTarget:t});i.default(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),i.default(this._element).on(Zi,no,(function(t){return e.hide(t)})),i.default(this._dialog).on(Fi,(function(){i.default(e._element).one(qi,(function(t){i.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=i.default.Event(Di);if(i.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var o=i.default(this._element).hasClass(Yi);if(o&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),i.default(document).off(Bi),i.default(this._element).removeClass(Xi),i.default(this._element).off(Zi),i.default(this._dialog).off(Fi),o){var r=m.getTransitionDurationFromElement(this._element);i.default(this._element).one(m.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(r)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return i.default(t).off(ki)})),i.default(document).off(Bi),i.default.removeData(this._element,$i),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=s({},Ai,t),m.typeCheckConfig(Ei,t,Ni),t},e._triggerBackdropTransition=function(){var t=this,e=i.default.Event(Ii);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(Qi);var o=m.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(m.TRANSITION_END),i.default(this._element).one(m.TRANSITION_END,(function(){t._element.classList.remove(Qi),n||i.default(t._element).one(m.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,o)})).emulateTransitionEnd(o),this._element.focus()}},e._showElement=function(t){var e=this,n=i.default(this._element).hasClass(Yi),o=this._dialog?this._dialog.querySelector(to):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass(Ui)&&o?o.scrollTop=0:this._element.scrollTop=0,n&&m.reflow(this._element),i.default(this._element).addClass(Xi),this._config.focus&&this._enforceFocus();var r=i.default.Event(ji,{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,i.default(e._element).trigger(r)};if(n){var a=m.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(m.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},e._enforceFocus=function(){var t=this;i.default(document).off(Bi).on(Bi,(function(e){document!==e.target&&t._element!==e.target&&0===i.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?i.default(this._element).on(Hi,(function(e){t._config.keyboard&&e.which===Mi?(e.preventDefault(),t.hide()):t._config.keyboard||e.which!==Mi||t._triggerBackdropTransition()})):this._isShown||i.default(this._element).off(Hi)},e._setResizeEvent=function(){var t=this;this._isShown?i.default(window).on(Ri,(function(e){return t.handleUpdate(e)})):i.default(window).off(Ri)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){i.default(document.body).removeClass(Ki),t._resetAdjustments(),t._resetScrollbar(),i.default(t._element).trigger(Oi)}))},e._removeBackdrop=function(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=i.default(this._element).hasClass(Yi)?Yi:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=Gi,n&&this._backdrop.classList.add(n),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(Zi,(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&m.reflow(this._backdrop),i.default(this._backdrop).addClass(Xi),!t)return;if(!n)return void t();var o=m.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(m.TRANSITION_END,t).emulateTransitionEnd(o)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(Xi);var r=function(){e._removeBackdrop(),t&&t()};if(i.default(this._element).hasClass(Yi)){var s=m.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(m.TRANSITION_END,r).emulateTransitionEnd(s)}else r()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(io)),n=[].slice.call(document.querySelectorAll(oo));i.default(e).each((function(e,n){var o=n.style.paddingRight,r=i.default(n).css("padding-right");i.default(n).data("padding-right",o).css("padding-right",parseFloat(r)+t._scrollbarWidth+"px")})),i.default(n).each((function(e,n){var o=n.style.marginRight,r=i.default(n).css("margin-right");i.default(n).data("margin-right",o).css("margin-right",parseFloat(r)-t._scrollbarWidth+"px")}));var o=document.body.style.paddingRight,r=i.default(document.body).css("padding-right");i.default(document.body).data("padding-right",o).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px")}i.default(document.body).addClass(Ki)},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(io));i.default(t).each((function(t,e){var n=i.default(e).data("padding-right");i.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));var e=[].slice.call(document.querySelectorAll(""+oo));i.default(e).each((function(t,e){var n=i.default(e).data("margin-right");void 0!==n&&i.default(e).css("margin-right",n).removeData("margin-right")}));var n=i.default(document.body).data("padding-right");i.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className=Vi,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each((function(){var o=i.default(this).data($i),r=s({},Ai,i.default(this).data(),"object"==typeof e&&e?e:{});if(o||(o=new t(this,r),i.default(this).data($i,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e](n)}else r.show&&o.show(n)}))},r(t,null,[{key:"VERSION",get:function(){return Li}},{key:"Default",get:function(){return Ai}}]),t}();i.default(document).on(Wi,eo,(function(t){var e,n=this,o=m.getSelectorFromElement(this);o&&(e=document.querySelector(o));var r=i.default(e).data($i)?"toggle":s({},i.default(e).data(),i.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=i.default(e).one(zi,(function(t){t.isDefaultPrevented()||a.one(Oi,(function(){i.default(n).is(":visible")&&n.focus()}))}));ro._jQueryInterface.call(i.default(e),r,this)})),i.default.fn[Ei]=ro._jQueryInterface,i.default.fn[Ei].Constructor=ro,i.default.fn[Ei].noConflict=function(){return i.default.fn[Ei]=Si,ro._jQueryInterface};var so=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],ao={"*":["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:[]},lo=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,uo=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function co(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===so.indexOf(n)||Boolean(t.nodeValue.match(lo)||t.nodeValue.match(uo));for(var i=e.filter((function(t){return t instanceof RegExp})),o=0,r=i.length;o<r;o++)if(n.match(i[o]))return!0;return!1}function ho(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),r=[].slice.call(i.body.querySelectorAll("*")),s=function(t,n){var i=r[t],s=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var a=[].slice.call(i.attributes),l=[].concat(e["*"]||[],e[s]||[]);a.forEach((function(t){co(t,l)||i.removeAttribute(t.nodeName)}))},a=0,l=r.length;a<l;a++)s(a);return i.body.innerHTML}var fo="tooltip",po="4.6.0",mo="bs.tooltip",go="."+mo,_o=i.default.fn[fo],vo="bs-tooltip",yo=new RegExp("(^|\\s)"+vo+"\\S+","g"),bo=["sanitize","whiteList","sanitizeFn"],xo={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},wo={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},To={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:ao,popperConfig:null},Co="show",Eo="out",Lo={HIDE:"hide"+go,HIDDEN:"hidden"+go,SHOW:"show"+go,SHOWN:"shown"+go,INSERTED:"inserted"+go,CLICK:"click"+go,FOCUSIN:"focusin"+go,FOCUSOUT:"focusout"+go,MOUSEENTER:"mouseenter"+go,MOUSELEAVE:"mouseleave"+go},$o="fade",ko="show",Po=".tooltip-inner",So=".arrow",Mo="hover",Ao="focus",No="click",Do="manual",Io=function(){function t(t,e){if(void 0===On)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=i.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass(ko))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(e);var n=m.findShadowRoot(this.element),o=i.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!o)return;var r=this.getTipElement(),s=m.getUID(this.constructor.NAME);r.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&i.default(r).addClass($o);var a="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,l=this._getAttachment(a);this.addAttachmentClass(l);var u=this._getContainer();i.default(r).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(r).appendTo(u),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new On(this.element,r,this._getPopperConfig(l)),i.default(r).addClass(ko),i.default(r).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);var c=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,i.default(t.element).trigger(t.constructor.Event.SHOWN),e===Eo&&t._leave(null,t)};if(i.default(this.tip).hasClass($o)){var h=m.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(m.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},e.hide=function(t){var e=this,n=this.getTipElement(),o=i.default.Event(this.constructor.Event.HIDE),r=function(){e._hoverState!==Co&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),i.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(i.default(this.element).trigger(o),!o.isDefaultPrevented()){if(i.default(n).removeClass(ko),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger[No]=!1,this._activeTrigger[Ao]=!1,this._activeTrigger[Mo]=!1,i.default(this.tip).hasClass($o)){var s=m.getTransitionDurationFromElement(n);i.default(n).one(m.TRANSITION_END,r).emulateTransitionEnd(s)}else r();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass(vo+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(i.default(t.querySelectorAll(Po)),this.getTitle()),i.default(t).removeClass($o+" "+ko)},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=ho(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?i.default(e).parent().is(t)||t.empty().append(e):t.text(i.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return s({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:So},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},e._getAttachment=function(t){return wo[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)i.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if(e!==Do){var n=e===Mo?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o=e===Mo?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;i.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(o,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Ao:Mo]=!0),i.default(e.getTipElement()).hasClass(ko)||e._hoverState===Co?e._hoverState=Co:(clearTimeout(e._timeout),e._hoverState=Co,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===Co&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Ao:Mo]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Eo,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===Eo&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=i.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==bo.indexOf(t)&&delete e[t]})),"number"==typeof(t=s({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),m.typeCheckConfig(fo,t,this.constructor.DefaultType),t.sanitize&&(t.template=ho(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(yo);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(i.default(t).removeClass($o),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(mo),r="object"==typeof e&&e;if((o||!/dispose|hide/.test(e))&&(o||(o=new t(this,r),n.data(mo,o)),"string"==typeof e)){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return po}},{key:"Default",get:function(){return To}},{key:"NAME",get:function(){return fo}},{key:"DATA_KEY",get:function(){return mo}},{key:"Event",get:function(){return Lo}},{key:"EVENT_KEY",get:function(){return go}},{key:"DefaultType",get:function(){return xo}}]),t}();i.default.fn[fo]=Io._jQueryInterface,i.default.fn[fo].Constructor=Io,i.default.fn[fo].noConflict=function(){return i.default.fn[fo]=_o,Io._jQueryInterface};var Oo="popover",zo="4.6.0",jo="bs.popover",Bo="."+jo,Ro=i.default.fn[Oo],Zo="bs-popover",Ho=new RegExp("(^|\\s)"+Zo+"\\S+","g"),qo=s({},Io.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Fo=s({},Io.DefaultType,{content:"(string|element|function)"}),Wo="fade",Uo="show",Vo=".popover-header",Go=".popover-body",Ko={HIDE:"hide"+Bo,HIDDEN:"hidden"+Bo,SHOW:"show"+Bo,SHOWN:"shown"+Bo,INSERTED:"inserted"+Bo,CLICK:"click"+Bo,FOCUSIN:"focusin"+Bo,FOCUSOUT:"focusout"+Bo,MOUSEENTER:"mouseenter"+Bo,MOUSELEAVE:"mouseleave"+Bo},Yo=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);var n=e.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass(Zo+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},n.setContent=function(){var t=i.default(this.getTipElement());this.setElementContent(t.find(Vo),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(Go),e),t.removeClass(Wo+" "+Uo)},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(Ho);null!==e&&e.length>0&&t.removeClass(e.join(""))},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this).data(jo),o="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,o),i.default(this).data(jo,n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},r(e,null,[{key:"VERSION",get:function(){return zo}},{key:"Default",get:function(){return qo}},{key:"NAME",get:function(){return Oo}},{key:"DATA_KEY",get:function(){return jo}},{key:"Event",get:function(){return Ko}},{key:"EVENT_KEY",get:function(){return Bo}},{key:"DefaultType",get:function(){return Fo}}]),e}(Io);i.default.fn[Oo]=Yo._jQueryInterface,i.default.fn[Oo].Constructor=Yo,i.default.fn[Oo].noConflict=function(){return i.default.fn[Oo]=Ro,Yo._jQueryInterface};var Xo="scrollspy",Qo="4.6.0",Jo="bs.scrollspy",tr="."+Jo,er=".data-api",nr=i.default.fn[Xo],ir={offset:10,method:"auto",target:""},or={offset:"number",method:"string",target:"(string|element)"},rr="activate"+tr,sr="scroll"+tr,ar="load"+tr+er,lr="dropdown-item",ur="active",cr='[data-spy="scroll"]',hr=".nav, .list-group",dr=".nav-link",fr=".nav-item",pr=".list-group-item",mr=".dropdown",gr=".dropdown-item",_r=".dropdown-toggle",vr="offset",yr="position",br=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+dr+","+this._config.target+" "+pr+","+this._config.target+" "+gr,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on(sr,(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?vr:yr,n="auto"===this._config.method?e:this._config.method,o=n===yr?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,r=m.getSelectorFromElement(t);if(r&&(e=document.querySelector(r)),e){var s=e.getBoundingClientRect();if(s.width||s.height)return[i.default(e)[n]().top+o,r]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){i.default.removeData(this._element,Jo),i.default(this._scrollElement).off(tr),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=s({},ir,"object"==typeof t&&t?t:{})).target&&m.isElement(t.target)){var e=i.default(t.target).attr("id");e||(e=m.getUID(Xo),i.default(t.target).attr("id",e)),t.target="#"+e}return m.typeCheckConfig(Xo,t,or),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),n=i.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(lr)?(n.closest(mr).find(_r).addClass(ur),n.addClass(ur)):(n.addClass(ur),n.parents(hr).prev(dr+", "+pr).addClass(ur),n.parents(hr).prev(fr).children(dr).addClass(ur)),i.default(this._scrollElement).trigger(rr,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains(ur)})).forEach((function(t){return t.classList.remove(ur)}))},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(Jo);if(n||(n=new t(this,"object"==typeof e&&e),i.default(this).data(Jo,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return Qo}},{key:"Default",get:function(){return ir}}]),t}();i.default(window).on(ar,(function(){for(var t=[].slice.call(document.querySelectorAll(cr)),e=t.length;e--;){var n=i.default(t[e]);br._jQueryInterface.call(n,n.data())}})),i.default.fn[Xo]=br._jQueryInterface,i.default.fn[Xo].Constructor=br,i.default.fn[Xo].noConflict=function(){return i.default.fn[Xo]=nr,br._jQueryInterface};var xr="tab",wr="4.6.0",Tr="bs.tab",Cr="."+Tr,Er=".data-api",Lr=i.default.fn[xr],$r="hide"+Cr,kr="hidden"+Cr,Pr="show"+Cr,Sr="shown"+Cr,Mr="click"+Cr+Er,Ar="dropdown-menu",Nr="active",Dr="disabled",Ir="fade",Or="show",zr=".dropdown",jr=".nav, .list-group",Br=".active",Rr="> li > .active",Zr='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Hr=".dropdown-toggle",qr="> .dropdown-menu .active",Fr=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass(Nr)||i.default(this._element).hasClass(Dr))){var e,n,o=i.default(this._element).closest(jr)[0],r=m.getSelectorFromElement(this._element);if(o){var s="UL"===o.nodeName||"OL"===o.nodeName?Rr:Br;n=(n=i.default.makeArray(i.default(o).find(s)))[n.length-1]}var a=i.default.Event($r,{relatedTarget:this._element}),l=i.default.Event(Pr,{relatedTarget:n});if(n&&i.default(n).trigger(a),i.default(this._element).trigger(l),!l.isDefaultPrevented()&&!a.isDefaultPrevented()){r&&(e=document.querySelector(r)),this._activate(this._element,o);var u=function(){var e=i.default.Event(kr,{relatedTarget:t._element}),o=i.default.Event(Sr,{relatedTarget:n});i.default(n).trigger(e),i.default(t._element).trigger(o)};e?this._activate(e,e.parentNode,u):u()}}},e.dispose=function(){i.default.removeData(this._element,Tr),this._element=null},e._activate=function(t,e,n){var o=this,r=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?i.default(e).children(Br):i.default(e).find(Rr))[0],s=n&&r&&i.default(r).hasClass(Ir),a=function(){return o._transitionComplete(t,r,n)};if(r&&s){var l=m.getTransitionDurationFromElement(r);i.default(r).removeClass(Or).one(m.TRANSITION_END,a).emulateTransitionEnd(l)}else a()},e._transitionComplete=function(t,e,n){if(e){i.default(e).removeClass(Nr);var o=i.default(e.parentNode).find(qr)[0];o&&i.default(o).removeClass(Nr),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(i.default(t).addClass(Nr),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),m.reflow(t),t.classList.contains(Ir)&&t.classList.add(Or),t.parentNode&&i.default(t.parentNode).hasClass(Ar)){var r=i.default(t).closest(zr)[0];if(r){var s=[].slice.call(r.querySelectorAll(Hr));i.default(s).addClass(Nr)}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(Tr);if(o||(o=new t(this),n.data(Tr,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return wr}}]),t}();i.default(document).on(Mr,Zr,(function(t){t.preventDefault(),Fr._jQueryInterface.call(i.default(this),"show")})),i.default.fn[xr]=Fr._jQueryInterface,i.default.fn[xr].Constructor=Fr,i.default.fn[xr].noConflict=function(){return i.default.fn[xr]=Lr,Fr._jQueryInterface};var Wr="toast",Ur="4.6.0",Vr="bs.toast",Gr="."+Vr,Kr=i.default.fn[Wr],Yr="click.dismiss"+Gr,Xr="hide"+Gr,Qr="hidden"+Gr,Jr="show"+Gr,ts="shown"+Gr,es="fade",ns="hide",is="show",os="showing",rs={animation:"boolean",autohide:"boolean",delay:"number"},ss={animation:!0,autohide:!0,delay:500},as='[data-dismiss="toast"]',ls=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=i.default.Event(Jr);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(es);var n=function(){t._element.classList.remove(os),t._element.classList.add(is),i.default(t._element).trigger(ts),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove(ns),m.reflow(this._element),this._element.classList.add(os),this._config.animation){var o=m.getTransitionDurationFromElement(this._element);i.default(this._element).one(m.TRANSITION_END,n).emulateTransitionEnd(o)}else n()}},e.hide=function(){if(this._element.classList.contains(is)){var t=i.default.Event(Xr);i.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(is)&&this._element.classList.remove(is),i.default(this._element).off(Yr),i.default.removeData(this._element,Vr),this._element=null,this._config=null},e._getConfig=function(t){return t=s({},ss,i.default(this._element).data(),"object"==typeof t&&t?t:{}),m.typeCheckConfig(Wr,t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;i.default(this._element).on(Yr,as,(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add(ns),i.default(t._element).trigger(Qr)};if(this._element.classList.remove(is),this._config.animation){var n=m.getTransitionDurationFromElement(this._element);i.default(this._element).one(m.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(Vr);if(o||(o=new t(this,"object"==typeof e&&e),n.data(Vr,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e](this)}}))},r(t,null,[{key:"VERSION",get:function(){return Ur}},{key:"DefaultType",get:function(){return rs}},{key:"Default",get:function(){return ss}}]),t}();i.default.fn[Wr]=ls._jQueryInterface,i.default.fn[Wr].Constructor=ls,i.default.fn[Wr].noConflict=function(){return i.default.fn[Wr]=Kr,ls._jQueryInterface},t.Alert=P,t.Button=K,t.Carousel=qt,t.Collapse=he,t.Dropdown=Ci,t.Modal=ro,t.Popover=Yo,t.Scrollspy=br,t.Tab=Fr,t.Toast=ls,t.Tooltip=Io,t.Util=m,Object.defineProperty(t,"__esModule",{value:!0})}(e,at)}));const lt=[];function ut(e,n=t){let i;const o=[];function r(t){if(s(e,t)&&(e=t,i)){const t=!lt.length;for(let t=0;t<o.length;t+=1){const n=o[t];n[1](),lt.push(n,e)}if(t){for(let t=0;t<lt.length;t+=2)lt[t][0](lt[t+1]);lt.length=0}}}return{set:r,update:function(t){r(t(e))},subscribe:function(s,a=t){const l=[s,a];return o.push(l),1===o.length&&(i=n(r)||t),s(e),()=>{const t=o.indexOf(l);-1!==t&&o.splice(t,1),0===o.length&&(i(),i=null)}}}}const ct=ut(),ht=ut(),dt=ut(),ft=ut(),pt=ut(),mt=["search","reverse","details","deletable","polygons","status","about"];function gt(t,e){if(void 0===t)t=window.location.pathname.replace(".html","").replace(/^.*\//,""),mt.includes(t)||(t="search"),e=new URLSearchParams(window.location.search);else{void 0===e&&(e=new URLSearchParams);let n=e.toString();n&&(n="?"+n);let i=t+".html"+n;window.location.protocol.match(/^http/)?window.history.pushState([],"",i):window.location.href=i}pt.set({tab:t,params:e}),dt.set(null),ft.set(null)}function _t(e){let n;return{c(){n=_("footer"),n.innerHTML='<p class="disclaimer svelte-1f2bd8l">Addresses and postcodes are approximate</p> \n  <p class="copyright svelte-1f2bd8l">© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors</p>',C(n,"class","svelte-1f2bd8l")},m(t,e){p(t,n,e)},p:t,i:t,o:t,d(t){t&&m(n)}}}class vt extends ot{constructor(t){super(),it(this,t,null,_t,s,{})}}function yt(t){var e=document.getElementById("loading");e&&(e.style.display="start"===t?"block":null)}async function bt(t,e,n){var i=function(t,e){return Nominatim_Config.Nominatim_API_Endpoint+t+".php?"+Object.keys(function(t){for(var e=Object.keys(t),n=0;n<e.length;n+=1){var i=t[e[n]];void 0!==i&&""!==i&&null!==i||delete t[e[n]]}return t}(e)).map((t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t]))).join("&")}(t,e);yt("start"),"status"!==t&&dt.set(null);try{await fetch(i).then((t=>t.json())).then((t=>{t.error&&ft.set(t.error.message),n(t),yt("finish")}))}catch(t){ft.set(`Error fetching data from ${i} (${t})`),yt("finish")}"status"!==t&&dt.set(i)}var xt={};async function wt(t,e){if(window.location.protocol.match(/^http/))if(xt[t])e.innerHTML=xt[t];else try{await fetch(t).then((t=>t.text())).then((n=>{n=n.replace("Nominatim_API_Endpoint",Nominatim_Config.Nominatim_API_Endpoint),e.innerHTML=n,xt[t]=n}))}catch(n){e.innerHTML=`Error fetching content from ${t} (${n})`}else e.innerHTML=`Cannot display data from ${t} here. Browser security prevents loading content from file:// URLs.`}function Tt(t){document.title=[t,Nominatim_Config.Page_Title].filter((t=>t&&t.length>1)).join(" | ")}function Ct(t){let e,n,i,o;const r=t[6].default,s=c(r,t,t[5],null);return{c(){e=_("a"),s&&s.c(),C(e,"href",t[1]),C(e,"class",t[0])},m(r,a){p(r,e,a),s&&s.m(e,null),n=!0,i||(o=x(e,"click",T(w(t[2]))),i=!0)},p(t,[i]){s&&s.p&&32&i&&d(s,r,t,t[5],i,null,null),(!n||2&i)&&C(e,"href",t[1]),(!n||1&i)&&C(e,"class",t[0])},i(t){n||(Y(s,t),n=!0)},o(t){X(s,t),n=!1},d(t){t&&m(e),s&&s.d(t),i=!1,o()}}}function Et(t,e,n){let{$$slots:i={},$$scope:o}=e,{page:r}=e,{params_hash:s={}}=e,{extra_classes:a=""}=e,l=r+".html";return t.$$set=t=>{"page"in t&&n(3,r=t.page),"params_hash"in t&&n(4,s=t.params_hash),"extra_classes"in t&&n(0,a=t.extra_classes),"$$scope"in t&&n(5,o=t.$$scope)},t.$$.update=()=>{if(24&t.$$.dirty){let t=new URLSearchParams(s).toString();n(1,l=r+".html"+(t?"?":"")+t)}},[a,l,function(){gt(r,new URLSearchParams(s))},r,s,o,i]}class Lt extends ot{constructor(t){super(),it(this,t,Et,Ct,s,{page:3,params_hash:4,extra_classes:0})}}function $t(t){let e,n,i,o;const r=t[7].default,s=c(r,t,t[6],null);return{c(){e=_("a"),s&&s.c(),C(e,"href",t[2]),C(e,"class",t[0])},m(r,a){p(r,e,a),s&&s.m(e,null),n=!0,i||(o=x(e,"click",T(w(t[8]))),i=!0)},p(t,[i]){s&&s.p&&64&i&&d(s,r,t,t[6],i,null,null),(!n||4&i)&&C(e,"href",t[2]),(!n||1&i)&&C(e,"class",t[0])},i(t){n||(Y(s,t),n=!0)},o(t){X(s,t),n=!1},d(t){t&&m(e),s&&s.d(t),i=!1,o()}}}function kt(t,e,n){let{$$slots:i={},$$scope:o}=e,{lat:r=null}=e,{lon:s=null}=e,{zoom:a=null}=e,{extra_classes:l=""}=e,u=new URLSearchParams,c="reverse.html";return t.$$set=t=>{"lat"in t&&n(3,r=t.lat),"lon"in t&&n(4,s=t.lon),"zoom"in t&&n(5,a=t.zoom),"extra_classes"in t&&n(0,l=t.extra_classes),"$$scope"in t&&n(6,o=t.$$scope)},t.$$.update=()=>{if(56&t.$$.dirty){let t=new URLSearchParams;r&&s&&(t.set("lat",r),t.set("lon",s),a&&t.set("zoom",a)),n(1,u=t)}if(2&t.$$.dirty){let t=u.toString();n(2,c="reverse.html"+(t?"?":"")+t)}},[l,u,c,r,s,a,o,i,()=>gt("reverse",u)]}class Pt extends ot{constructor(t){super(),it(this,t,kt,$t,s,{lat:3,lon:4,zoom:5,extra_classes:0})}}var St=["second","minute","hour","day","week","month","year"];var Mt=["秒","分钟","小时","天","周","个月","年"];var At={},Nt=function(t,e){At[t]=e},Dt=[60,60,24,7,365/7/12,12];function It(t){return t instanceof Date?t:!isNaN(t)||/^\d+$/.test(t)?new Date(parseInt(t)):(t=(t||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(t))}var Ot=function(t,e,n){return function(t,e){for(var n=t<0?1:0,i=t=Math.abs(t),o=0;t>=Dt[o]&&o<Dt.length;o++)t/=Dt[o];return(t=Math.floor(t))>(0==(o*=2)?9:1)&&(o+=1),e(t,o,i)[n].replace("%s",t.toString())}(function(t,e){return(+(e?It(e):new Date)-+It(t))/1e3}(t,n&&n.relativeDate),function(t){return At[t]||At.en_US}(e))};function zt(t){let e,n,i,o,r,s,a,l,u,c,h;return{c(){e=_("div"),n=v("Data from "),i=_("a"),o=v("API request"),r=y(),s=_("span"),a=v("("),l=_("a"),u=v("debug output"),h=v(")"),C(i,"href",t[1]),C(l,"href",c=t[1]+"&debug=1"),C(s,"id","api-request-debug"),C(e,"id","api-request")},m(t,c){p(t,e,c),f(e,n),f(e,i),f(i,o),f(e,r),f(e,s),f(s,a),f(s,l),f(l,u),f(s,h)},p(t,e){2&e&&C(i,"href",t[1]),2&e&&c!==(c=t[1]+"&debug=1")&&C(l,"href",c)},d(t){t&&m(e)}}}function jt(t){let e,n,i,o,r=Ot(new Date(t[0]))+"";return{c(){e=v("Data last updated:\n        "),n=_("abbr"),i=v(r),C(n,"id","data-date"),C(n,"title",o=t[0]+" (UTC timezone)")},m(t,o){p(t,e,o),p(t,n,o),f(n,i)},p(t,e){1&e&&r!==(r=Ot(new Date(t[0]))+"")&&E(i,r),1&e&&o!==(o=t[0]+" (UTC timezone)")&&C(n,"title",o)},d(t){t&&m(e),t&&m(n)}}}function Bt(t){let e;return{c(){e=v("Details")},m(t,n){p(t,e,n)},d(t){t&&m(e)}}}function Rt(t){let e,n,i,o,r,s,a,l,u,c,h,d=t[1]&&zt(t),g=t[0]&&jt(t);return u=new Lt({props:{page:"status",$$slots:{default:[Bt]},$$scope:{ctx:t}}}),{c(){e=_("div"),n=_("div"),n.innerHTML='<div class="spinner-border spinner-border-sm text-primary mr-1" role="status"></div>\n    Loading data from API ...',i=y(),o=_("div"),r=_("div"),d&&d.c(),s=y(),a=_("div"),g&&g.c(),l=v("\n      ("),J(u.$$.fragment),c=v(")"),C(n,"id","loading"),C(n,"class","py-2 px-4 svelte-1i1228w"),C(r,"class","col-sm-6"),C(a,"class","col-sm-6 text-right"),C(o,"class","row"),C(e,"id","last-updated"),C(e,"class","container-fluid py-2 px-4 mb-3 svelte-1i1228w")},m(t,m){p(t,e,m),f(e,n),f(e,i),f(e,o),f(o,r),d&&d.m(r,null),f(o,s),f(o,a),g&&g.m(a,null),f(a,l),tt(u,a,null),f(a,c),h=!0},p(t,[e]){t[1]?d?d.p(t,e):(d=zt(t),d.c(),d.m(r,null)):d&&(d.d(1),d=null),t[0]?g?g.p(t,e):(g=jt(t),g.c(),g.m(a,l)):g&&(g.d(1),g=null);const n={};4&e&&(n.$$scope={dirty:e,ctx:t}),u.$set(n)},i(t){h||(Y(u.$$.fragment,t),h=!0)},o(t){X(u.$$.fragment,t),h=!1},d(t){t&&m(e),d&&d.d(),g&&g.d(),et(u)}}}function Zt(t,e,n){let i,o;return dt.subscribe((t=>{n(1,o=t),bt("status",{format:"json"},(function(t){n(0,i=t.data_updated)}))})),[i,o]}Nt("en_US",(function(t,e){if(0===e)return["just now","right now"];var n=St[Math.floor(e/2)];return t>1&&(n+="s"),[t+" "+n+" ago","in "+t+" "+n]})),Nt("zh_CN",(function(t,e){if(0===e)return["刚刚","片刻后"];var n=Mt[~~(e/2)];return[t+" "+n+"前",t+" "+n+"后"]}));class Ht extends ot{constructor(t){super(),it(this,t,Zt,Rt,s,{})}}function qt(t){let e,n,i,o,r,s;return{c(){e=_("div"),n=v(t[0]),i=y(),o=_("button"),o.innerHTML='<span aria-hidden="true">×</span>',C(o,"type","button"),C(o,"class","close"),C(o,"aria-label","dismiss"),C(e,"id","error"),C(e,"class","container-fluid alert-danger py-3 px-4")},m(a,l){p(a,e,l),f(e,n),f(e,i),f(e,o),r||(s=x(o,"click",t[1]),r=!0)},p(t,e){1&e&&E(n,t[0])},d(t){t&&m(e),r=!1,s()}}}function Ft(e){let n,i=e[0]&&qt(e);return{c(){i&&i.c(),n=b()},m(t,e){i&&i.m(t,e),p(t,n,e)},p(t,[e]){t[0]?i?i.p(t,e):(i=qt(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:t,o:t,d(t){i&&i.d(t),t&&m(n)}}}function Wt(t,e,n){let i;return ft.subscribe((t=>{n(0,i=t)})),[i,function(){ft.set(null)}]}class Ut extends ot{constructor(t){super(),it(this,t,Wt,Ft,s,{})}}function Vt(t){let e,n,i,o,r;return{c(){e=_("img"),i=y(),o=_("h1"),r=v(t[3]),C(e,"alt","logo"),C(e,"id","theme-logo"),e.src!==(n="theme/logo.png")&&C(e,"src","theme/logo.png"),C(e,"class","svelte-1q88nx"),C(o,"class","svelte-1q88nx")},m(t,n){p(t,e,n),p(t,i,n),p(t,o,n),f(o,r)},p(t,e){8&e&&E(r,t[3])},d(t){t&&m(e),t&&m(i),t&&m(o)}}}function Gt(t){let e;return{c(){e=v("Search")},m(t,n){p(t,e,n)},d(t){t&&m(e)}}}function Kt(t){let e;return{c(){e=v("Reverse")},m(t,n){p(t,e,n)},d(t){t&&m(e)}}}function Yt(t){let e;return{c(){e=v("Search By ID")},m(t,n){p(t,e,n)},d(t){t&&m(e)}}}function Xt(t){let e;return{c(){e=v("About & Help")},m(t,n){p(t,e,n)},d(t){t&&m(e)}}}function Qt(t){let e,n,i,o,r,s,a,l,u,h,g,b,x,w,T,L,$,k,P,S,M,A,N,D,I,O,z,j,B,R,Z,H,q,F,W,U;o=new Lt({props:{page:"search",$$slots:{default:[Vt]},$$scope:{ctx:t}}}),g=new Lt({props:{page:"search",extra_classes:"nav-link",$$slots:{default:[Gt]},$$scope:{ctx:t}}}),T=new Pt({props:{lat:t[0],lon:t[1],extra_classes:"nav-link",$$slots:{default:[Kt]},$$scope:{ctx:t}}}),P=new Lt({props:{page:"details",extra_classes:"nav-link",$$slots:{default:[Yt]},$$scope:{ctx:t}}}),D=new Lt({props:{page:"about",extra_classes:"nav-link",$$slots:{default:[Xt]},$$scope:{ctx:t}}});const V=t[5].default,G=c(V,t,t[6],null);return q=new Ut({}),W=new Ht({}),{c(){e=_("header"),n=_("nav"),i=_("div"),J(o.$$.fragment),r=y(),s=_("button"),s.innerHTML='<span class="navbar-toggler-icon"></span>',a=y(),l=_("div"),u=_("ul"),h=_("li"),J(g.$$.fragment),x=y(),w=_("li"),J(T.$$.fragment),$=y(),k=_("li"),J(P.$$.fragment),M=y(),A=_("ul"),N=_("li"),J(D.$$.fragment),O=y(),z=_("section"),j=_("h2"),B=v(t[2]),R=y(),Z=_("section"),G&&G.c(),H=y(),J(q.$$.fragment),F=y(),J(W.$$.fragment),C(i,"class","navbar-brand svelte-1q88nx"),C(s,"class","navbar-toggler"),C(s,"type","button"),C(s,"data-toggle","collapse"),C(s,"data-target","#navbarSupportedContent"),C(s,"aria-controls","navbarSupportedContent"),C(s,"aria-expanded","false"),C(s,"aria-label","Toggle navigation"),C(h,"class",b="nav-item "+("search"===t[2]?"active":"")+" svelte-1q88nx"),C(w,"class",L="nav-item "+("reverse"===t[2]?"active":"")+" svelte-1q88nx"),C(k,"class",S="nav-item "+("details"===t[2]?"active":"")+" svelte-1q88nx"),C(u,"class","navbar-nav mr-auto"),C(l,"class","collapse navbar-collapse"),C(l,"id","navbarSupportedContent"),C(N,"class",I="nav-item "+("about"===t[2]?"active":"")+" svelte-1q88nx"),C(A,"class","navbar-nav"),C(n,"class","navbar navbar-expand-sm navbar-light"),C(e,"class","container-fluid"),C(z,"class","page-title-section svelte-1q88nx"),C(Z,"class","search-section svelte-1q88nx")},m(t,c){p(t,e,c),f(e,n),f(n,i),tt(o,i,null),f(n,r),f(n,s),f(n,a),f(n,l),f(l,u),f(u,h),tt(g,h,null),f(u,x),f(u,w),tt(T,w,null),f(u,$),f(u,k),tt(P,k,null),f(n,M),f(n,A),f(A,N),tt(D,N,null),p(t,O,c),p(t,z,c),f(z,j),f(j,B),p(t,R,c),p(t,Z,c),G&&G.m(Z,null),p(t,H,c),tt(q,t,c),p(t,F,c),tt(W,t,c),U=!0},p(t,[e]){const n={};72&e&&(n.$$scope={dirty:e,ctx:t}),o.$set(n);const i={};64&e&&(i.$$scope={dirty:e,ctx:t}),g.$set(i),(!U||4&e&&b!==(b="nav-item "+("search"===t[2]?"active":"")+" svelte-1q88nx"))&&C(h,"class",b);const r={};1&e&&(r.lat=t[0]),2&e&&(r.lon=t[1]),64&e&&(r.$$scope={dirty:e,ctx:t}),T.$set(r),(!U||4&e&&L!==(L="nav-item "+("reverse"===t[2]?"active":"")+" svelte-1q88nx"))&&C(w,"class",L);const s={};64&e&&(s.$$scope={dirty:e,ctx:t}),P.$set(s),(!U||4&e&&S!==(S="nav-item "+("details"===t[2]?"active":"")+" svelte-1q88nx"))&&C(k,"class",S);const a={};64&e&&(a.$$scope={dirty:e,ctx:t}),D.$set(a),(!U||4&e&&I!==(I="nav-item "+("about"===t[2]?"active":"")+" svelte-1q88nx"))&&C(N,"class",I),(!U||4&e)&&E(B,t[2]),G&&G.p&&64&e&&d(G,V,t,t[6],e,null,null)},i(t){U||(Y(o.$$.fragment,t),Y(g.$$.fragment,t),Y(T.$$.fragment,t),Y(P.$$.fragment,t),Y(D.$$.fragment,t),Y(G,t),Y(q.$$.fragment,t),Y(W.$$.fragment,t),U=!0)},o(t){X(o.$$.fragment,t),X(g.$$.fragment,t),X(T.$$.fragment,t),X(P.$$.fragment,t),X(D.$$.fragment,t),X(G,t),X(q.$$.fragment,t),X(W.$$.fragment,t),U=!1},d(t){t&&m(e),et(o),et(g),et(T),et(P),et(D),t&&m(O),t&&m(z),t&&m(R),t&&m(Z),G&&G.d(t),t&&m(H),et(q,t),t&&m(F),et(W,t)}}}function Jt(t,e,n){let i,o,r;u(t,pt,(t=>n(4,r=t)));let s,a,{$$slots:l={},$$scope:c}=e;return ct.subscribe((t=>{t&&t.on("move",(function(){n(0,s=t.getCenter().lat),n(1,a=t.getCenter().lng)}))})),t.$$set=t=>{"$$scope"in t&&n(6,c=t.$$scope)},t.$$.update=()=>{16&t.$$.dirty&&n(2,i=r.tab)},n(3,o=Nominatim_Config.Page_Title),[s,a,i,o,r,l,c]}class te extends ot{constructor(t){super(),it(this,t,Jt,Qt,s,{})}}function ee(t){let e,n,i,o;const r=t[3].default,s=c(r,t,t[2],null);return{c(){e=_("form"),s&&s.c(),C(e,"class","form-inline"),C(e,"role","search"),C(e,"accept-charset","UTF-8"),C(e,"action","")},m(r,a){p(r,e,a),s&&s.m(e,null),n=!0,i||(o=x(e,"submit",w(t[0])),i=!0)},p(t,[e]){s&&s.p&&4&e&&d(s,r,t,t[2],e,null,null)},i(t){n||(Y(s,t),n=!0)},o(t){X(s,t),n=!1},d(t){t&&m(e),s&&s.d(t),i=!1,o()}}}function ne(t,e,n){let{$$slots:i={},$$scope:o}=e,{page:r}=e;return t.$$set=t=>{"page"in t&&n(1,r=t.page),"$$scope"in t&&n(2,o=t.$$scope)},[function(t){let e=t.target,n=!0;Array.prototype.slice.call(e.elements).forEach((function(t){(function(t){return!("hidden"===t.type&&t.value.length&&t.pattern&&!t.value.match(t.pattern))&&t.checkValidity()})(t)||(alert("Invalid input in "+t.name),n=!1)})),n&&gt(r,function(t){var e=new URLSearchParams;return Array.prototype.slice.call(t.elements).forEach((function(t){!t.name||t.disabled||["submit","button"].indexOf(t.type)>-1||["checkbox","radio"].indexOf(t.type)>-1&&!t.checked||void 0!==t.value&&""!==t.value&&e.set(t.name,t.value)})),e}(e))},r,o,i]}class ie extends ot{constructor(t){super(),it(this,t,ne,ee,s,{page:1})}}function oe(t){let e,n,i,o,r,s,a,l,u,c,h,d,f,g,v,b,x,w,T,E,L,$,k,P,S;return{c(){e=_("input"),i=y(),o=_("button"),o.textContent="Search",r=y(),s=_("input"),l=y(),u=_("input"),h=y(),d=_("input"),g=y(),v=_("input"),x=y(),w=_("input"),E=y(),L=_("input"),k=y(),P=_("input"),C(e,"id","q"),C(e,"name","q"),C(e,"type","text"),C(e,"class","form-control form-control-sm svelte-1u2ltgo"),C(e,"placeholder","Search"),e.value=n=t[1].q||"",C(o,"type","submit"),C(o,"class","btn btn-primary btn-sm mx-1"),C(s,"type","hidden"),C(s,"name","viewbox"),s.value=a=t[2]||"",C(u,"type","hidden"),C(u,"name","dedupe"),u.value=c=t[1].dedupe?1:"",C(d,"type","hidden"),C(d,"name","bounded"),d.value=f=t[1].bounded?1:"",C(v,"type","hidden"),C(v,"name","accept-language"),v.value=b=t[1]["accept-language"]||"",C(w,"type","hidden"),C(w,"name","countrycodes"),w.value=T=t[1].countrycodes||"",C(w,"pattern","^[a-zA-Z]{2}(,[a-zA-Z]{2})*$"),C(L,"type","hidden"),C(L,"name","limit"),L.value=$=t[1].limit||"",C(P,"type","hidden"),C(P,"name","polygon_threshold"),P.value=S=t[1].polygon_threshold||""},m(t,n){p(t,e,n),p(t,i,n),p(t,o,n),p(t,r,n),p(t,s,n),p(t,l,n),p(t,u,n),p(t,h,n),p(t,d,n),p(t,g,n),p(t,v,n),p(t,x,n),p(t,w,n),p(t,E,n),p(t,L,n),p(t,k,n),p(t,P,n)},p(t,i){2&i&&n!==(n=t[1].q||"")&&e.value!==n&&(e.value=n),4&i&&a!==(a=t[2]||"")&&(s.value=a),2&i&&c!==(c=t[1].dedupe?1:"")&&(u.value=c),2&i&&f!==(f=t[1].bounded?1:"")&&(d.value=f),2&i&&b!==(b=t[1]["accept-language"]||"")&&(v.value=b),2&i&&T!==(T=t[1].countrycodes||"")&&(w.value=T),2&i&&$!==($=t[1].limit||"")&&(L.value=$),2&i&&S!==(S=t[1].polygon_threshold||"")&&(P.value=S)},d(t){t&&m(e),t&&m(i),t&&m(o),t&&m(r),t&&m(s),t&&m(l),t&&m(u),t&&m(h),t&&m(d),t&&m(g),t&&m(v),t&&m(x),t&&m(w),t&&m(E),t&&m(L),t&&m(k),t&&m(P)}}}function re(t){let e,n,i,o,r,s,a,l,u,c,h,d,f,g,v,b,x,w,T,E,L,$,k,P,S,M,A,N,D,I,O,z,j,B,R,Z,H,q,F,W;return{c(){e=_("input"),i=y(),o=_("input"),s=y(),a=_("input"),u=y(),c=_("input"),d=y(),f=_("input"),v=y(),b=_("input"),w=y(),T=_("button"),T.textContent="Search",E=y(),L=_("input"),k=y(),P=_("input"),M=y(),A=_("input"),D=y(),I=_("input"),z=y(),j=_("input"),R=y(),Z=_("input"),q=y(),F=_("input"),C(e,"name","street"),C(e,"type","text"),C(e,"class","form-control form-control-sm mr-1"),C(e,"placeholder","House number/Street"),e.value=n=t[1].street||"",C(o,"name","city"),C(o,"type","text"),C(o,"class","form-control form-control-sm mr-1"),C(o,"placeholder","City"),o.value=r=t[1].city||"",C(a,"id","county"),C(a,"name","county"),C(a,"type","text"),C(a,"class","form-control form-control-sm mr-1"),C(a,"placeholder","County"),a.value=l=t[1].county||"",C(c,"name","state"),C(c,"type","text"),C(c,"class","form-control form-control-sm mr-1"),C(c,"placeholder","State"),c.value=h=t[1].state||"",C(f,"name","country"),C(f,"type","text"),C(f,"class","form-control form-control-sm mr-1"),C(f,"placeholder","Country"),f.value=g=t[1].country||"",C(b,"name","postalcode"),C(b,"type","text"),C(b,"class","form-control form-control-sm mr-1"),C(b,"placeholder","Postal Code"),b.value=x=t[1].postalcode||"",C(T,"type","submit"),C(T,"class","btn btn-primary btn-sm"),C(L,"type","hidden"),C(L,"name","viewbox"),L.value=$=t[2]||"",C(P,"type","hidden"),C(P,"name","dedupe"),P.value=S=t[1].dedupe?1:"",C(A,"type","hidden"),C(A,"name","bounded"),A.value=N=t[1].bounded?1:"",C(I,"type","hidden"),C(I,"name","accept-language"),I.value=O=t[1]["accept-language"]||"",C(j,"type","hidden"),C(j,"name","countrycodes"),j.value=B=t[1].countrycodes||"",C(j,"pattern","^[a-zA-Z]{2}(,[a-zA-Z]{2})*$"),C(Z,"type","hidden"),C(Z,"name","limit"),Z.value=H=t[1].limit||"",C(F,"type","hidden"),C(F,"name","polygon_threshold"),F.value=W=t[1].polygon_threshold||""},m(t,n){p(t,e,n),p(t,i,n),p(t,o,n),p(t,s,n),p(t,a,n),p(t,u,n),p(t,c,n),p(t,d,n),p(t,f,n),p(t,v,n),p(t,b,n),p(t,w,n),p(t,T,n),p(t,E,n),p(t,L,n),p(t,k,n),p(t,P,n),p(t,M,n),p(t,A,n),p(t,D,n),p(t,I,n),p(t,z,n),p(t,j,n),p(t,R,n),p(t,Z,n),p(t,q,n),p(t,F,n)},p(t,i){2&i&&n!==(n=t[1].street||"")&&e.value!==n&&(e.value=n),2&i&&r!==(r=t[1].city||"")&&o.value!==r&&(o.value=r),2&i&&l!==(l=t[1].county||"")&&a.value!==l&&(a.value=l),2&i&&h!==(h=t[1].state||"")&&c.value!==h&&(c.value=h),2&i&&g!==(g=t[1].country||"")&&f.value!==g&&(f.value=g),2&i&&x!==(x=t[1].postalcode||"")&&b.value!==x&&(b.value=x),4&i&&$!==($=t[2]||"")&&(L.value=$),2&i&&S!==(S=t[1].dedupe?1:"")&&(P.value=S),2&i&&N!==(N=t[1].bounded?1:"")&&(A.value=N),2&i&&O!==(O=t[1]["accept-language"]||"")&&(I.value=O),2&i&&B!==(B=t[1].countrycodes||"")&&(j.value=B),2&i&&H!==(H=t[1].limit||"")&&(Z.value=H),2&i&&W!==(W=t[1].polygon_threshold||"")&&(F.value=W)},d(t){t&&m(e),t&&m(i),t&&m(o),t&&m(s),t&&m(a),t&&m(u),t&&m(c),t&&m(d),t&&m(f),t&&m(v),t&&m(b),t&&m(w),t&&m(T),t&&m(E),t&&m(L),t&&m(k),t&&m(P),t&&m(M),t&&m(A),t&&m(D),t&&m(I),t&&m(z),t&&m(j),t&&m(R),t&&m(Z),t&&m(q),t&&m(F)}}}function se(t){let e,n,i,r,s,a,l,u,c,h,d,g,v,b,w,T,E,L,$,k,S,M,A,N,D,I,O,z,j,B,R,Z,H,q,F,W,U,V,G,K,Q,nt,it,ot,rt,st,at,lt,ut,ct,ht,dt,ft,pt,mt,gt,_t,vt,yt,bt,xt,wt,Tt,Ct,Et;return h=new ie({props:{page:"search",$$slots:{default:[oe]},$$scope:{ctx:t}}}),v=new ie({props:{page:"search",$$slots:{default:[re]},$$scope:{ctx:t}}}),{c(){e=_("ul"),n=_("li"),i=_("a"),i.textContent="Simple",r=y(),s=_("li"),a=_("a"),a.textContent="Structured",l=y(),u=_("div"),c=_("div"),J(h.$$.fragment),d=y(),g=_("div"),J(v.$$.fragment),b=y(),w=_("details"),T=_("summary"),T.innerHTML="<small>Advanced options</small>",E=y(),L=_("ul"),$=_("li"),k=_("div"),S=_("label"),S.textContent="apply viewbox",M=y(),A=_("input"),D=y(),I=_("li"),O=_("div"),z=_("label"),z.textContent="bounded to viewbox",j=y(),B=_("input"),Z=y(),H=_("li"),q=_("div"),F=_("label"),F.textContent="deduplicate results",W=y(),U=_("input"),G=y(),K=_("li"),Q=_("label"),Q.textContent="Maximum number of results",nt=y(),it=_("input"),rt=y(),st=_("li"),at=_("label"),at.textContent="Polygon simplification",lt=y(),ut=_("input"),ht=y(),dt=_("li"),ft=_("label"),ft.textContent="Languages",pt=y(),mt=_("input"),_t=y(),vt=_("li"),yt=_("label"),yt.textContent="Country Codes",bt=y(),xt=_("input"),C(i,"class","nav-link svelte-1u2ltgo"),C(i,"data-toggle","tab"),C(i,"href","#simple"),P(i,"active",!t[0]),C(n,"class","nav-item"),C(a,"class","nav-link svelte-1u2ltgo"),C(a,"data-toggle","tab"),C(a,"href","#structured"),P(a,"active",t[0]),C(s,"class","nav-item"),C(e,"class","nav nav-tabs svelte-1u2ltgo"),C(c,"class","tab-pane"),C(c,"id","simple"),C(c,"role","tabpanel"),P(c,"active",!t[0]),C(g,"class","tab-pane"),C(g,"id","structured"),C(g,"role","tabpanel"),P(g,"active",t[0]),C(u,"class","tab-content py-2"),C(S,"class","form-check-label svelte-1u2ltgo"),C(S,"for","use_viewbox"),C(A,"type","checkbox"),C(A,"class","form-check-input api-param-setting"),C(A,"id","use_viewbox"),A.checked=N=t[1].viewbox,C(k,"class","form-check form-check-inline"),C($,"class","svelte-1u2ltgo"),C(z,"class","form-check-label svelte-1u2ltgo"),C(z,"for","option_bounded"),C(B,"type","checkbox"),C(B,"class","form-check-input api-param-setting"),C(B,"id","option_bounded"),B.checked=R=!!t[1].bounded,C(O,"class","form-check form-check-inline"),C(I,"class","svelte-1u2ltgo"),C(F,"class","form-check-label svelte-1u2ltgo"),C(F,"for","option_dedupe"),C(U,"type","checkbox"),C(U,"class","form-check-input api-param-setting"),C(U,"id","option_dedupe"),U.checked=V=!!t[1].dedupe,C(q,"class","form-check form-check-inline"),C(H,"class","svelte-1u2ltgo"),C(Q,"for","option_limit"),C(Q,"class","svelte-1u2ltgo"),C(it,"type","number"),C(it,"class","form-control form-control-sm d-inline w-auto api-param-setting"),C(it,"data-api-param","limit"),C(it,"id","option_limit"),C(it,"min","1"),C(it,"max","50"),it.value=ot=t[1].limit||"",C(K,"class","svelte-1u2ltgo"),C(at,"for","option_polygon_threshold"),C(at,"class","svelte-1u2ltgo"),C(ut,"type","number"),C(ut,"class","form-control form-control-sm d-inline w-auto api-param-setting"),C(ut,"data-api-param","polygon_threshold"),C(ut,"id","option_polygon_threshold"),C(ut,"min","0.0"),C(ut,"max","1.0"),C(ut,"step","0.001"),ut.value=ct=t[1].polygon_threshold||"",C(st,"class","svelte-1u2ltgo"),C(ft,"for","accept_lang"),C(ft,"class","svelte-1u2ltgo"),C(mt,"type","text"),C(mt,"placeholder","e.g. en,zh-Hant"),C(mt,"class","form-control form-control-sm d-inline w-auto api-param-setting"),C(mt,"data-api-param","accept-language"),C(mt,"id","accept_lang"),C(mt,"size","15"),mt.value=gt=t[1]["accept-language"]||"",C(dt,"class","svelte-1u2ltgo"),C(yt,"for","option_ccode"),C(yt,"class","svelte-1u2ltgo"),C(xt,"type","text"),C(xt,"placeholder","e.g. de,gb"),C(xt,"class","form-control form-control-sm d-inline w-auto api-param-setting"),C(xt,"data-api-param","countrycodes"),C(xt,"id","option_ccode"),C(xt,"size","15"),xt.value=wt=t[1].countrycodes||"",C(xt,"pattern","^[a-zA-Z]{2}(,[a-zA-Z]{2})*$"),C(vt,"class","svelte-1u2ltgo"),C(L,"class","svelte-1u2ltgo"),C(w,"id","searchAdvancedOptions"),C(w,"class","svelte-1u2ltgo")},m(o,m){p(o,e,m),f(e,n),f(n,i),f(e,r),f(e,s),f(s,a),p(o,l,m),p(o,u,m),f(u,c),tt(h,c,null),f(u,d),f(u,g),tt(v,g,null),p(o,b,m),p(o,w,m),f(w,T),f(w,E),f(w,L),f(L,$),f($,k),f(k,S),f(k,M),f(k,A),f(L,D),f(L,I),f(I,O),f(O,z),f(O,j),f(O,B),f(L,Z),f(L,H),f(H,q),f(q,F),f(q,W),f(q,U),f(L,G),f(L,K),f(K,Q),f(K,nt),f(K,it),f(L,rt),f(L,st),f(st,at),f(st,lt),f(st,ut),f(L,ht),f(L,dt),f(dt,ft),f(dt,pt),f(dt,mt),f(L,_t),f(L,vt),f(vt,yt),f(vt,bt),f(vt,xt),Tt=!0,Ct||(Et=[x(A,"change",t[3]),x(B,"change",ae),x(U,"change",le),x(it,"change",ue),x(ut,"change",ue),x(mt,"change",ue),x(xt,"change",ue)],Ct=!0)},p(t,[e]){1&e&&P(i,"active",!t[0]),1&e&&P(a,"active",t[0]);const n={};262&e&&(n.$$scope={dirty:e,ctx:t}),h.$set(n),1&e&&P(c,"active",!t[0]);const o={};262&e&&(o.$$scope={dirty:e,ctx:t}),v.$set(o),1&e&&P(g,"active",t[0]),(!Tt||2&e&&N!==(N=t[1].viewbox))&&(A.checked=N),(!Tt||2&e&&R!==(R=!!t[1].bounded))&&(B.checked=R),(!Tt||2&e&&V!==(V=!!t[1].dedupe))&&(U.checked=V),(!Tt||2&e&&ot!==(ot=t[1].limit||""))&&(it.value=ot),(!Tt||2&e&&ct!==(ct=t[1].polygon_threshold||""))&&(ut.value=ct),(!Tt||2&e&&gt!==(gt=t[1]["accept-language"]||"")&&mt.value!==gt)&&(mt.value=gt),(!Tt||2&e&&wt!==(wt=t[1].countrycodes||"")&&xt.value!==wt)&&(xt.value=wt)},i(t){Tt||(Y(h.$$.fragment,t),Y(v.$$.fragment,t),Tt=!0)},o(t){X(h.$$.fragment,t),X(v.$$.fragment,t),Tt=!1},d(t){t&&m(e),t&&m(l),t&&m(u),et(h),et(v),t&&m(b),t&&m(w),Ct=!1,o(Et)}}}function ae(t){document.querySelector("input[name=bounded]").value=t.target.checked?1:""}function le(t){document.querySelector("input[name=dedupe]").value=t.target.checked?1:""}function ue(t){document.querySelector("input[name="+t.target.dataset.apiParam+"]").value=t.target.value}function ce(t,e,n){let i,{bStructuredSearch:o=!1}=e,{api_request_params:r={}}=e;function s(t){let e=document.getElementById("use_viewbox");e&&e.checked?n(2,i=function(t){var e=t.getBounds(),n=e.getWest(),i=e.getEast();return i-n>=360&&(n=t.getCenter().lng-179.999,i=t.getCenter().lng+179.999),i=L.latLng(77,i).wrap().lng,[(n=L.latLng(77,n).wrap().lng).toFixed(5),e.getNorth().toFixed(5),i.toFixed(5),e.getSouth().toFixed(5)].join(",")}(t)):n(2,i="")}function a(t){let e=t.wrapLatLng(t.getCenter());e.lat.toFixed(5),e.lng.toFixed(5)}return ct.subscribe((t=>{t&&(t.on("move",(function(){s(t),a(t)})),t.on("load",(function(){s(t),a(t)})))})),t.$$set=t=>{"bStructuredSearch"in t&&n(0,o=t.bStructuredSearch),"api_request_params"in t&&n(1,r=t.api_request_params)},[o,r,i,function(){let t=l(ct);t&&s(t)}]}class he extends ot{constructor(t){super(),it(this,t,ce,se,s,{bStructuredSearch:0,api_request_params:1})}}
+!function(){"use strict";function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function i(){return Object.create(null)}function o(t){t.forEach(n)}function s(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let a,l;function c(t,e){return a||(a=document.createElement("a")),a.href=e,t===a.href}function h(e,...n){if(null==e)return t;const i=e.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}function u(t){let e;return h(t,(t=>e=t))(),e}function d(t,e,n){t.$$.on_destroy.push(h(e,n))}function p(t,e,n,i){if(t){const o=m(t,e,n,i);return t[0](o)}}function m(t,n,i,o){return t[1]&&o?e(i.ctx.slice(),t[1](o(n))):i.ctx}function f(t,e,n,i){if(t[2]&&i){const o=t[2](i(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let i=0;i<n;i+=1)t[i]=e.dirty[i]|o[i];return t}return e.dirty|o}return e.dirty}function _(t,e,n,i,o,s){if(o){const r=m(e,n,i,s);t.p(r,o)}}function g(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function v(t,e){t.appendChild(e)}function y(t,e,n){t.insertBefore(e,n||null)}function b(t){t.parentNode.removeChild(t)}function w(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function x(t){return document.createElement(t)}function $(t){return document.createTextNode(t)}function T(){return $(" ")}function P(){return $("")}function M(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function k(t){return function(e){return e.preventDefault(),t.call(this,e)}}function C(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function E(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function A(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function O(t,e){t.value=null==e?"":e}function S(t,e){for(let n=0;n<t.options.length;n+=1){const i=t.options[n];if(i.__value===e)return void(i.selected=!0)}t.selectedIndex=-1}function z(t,e,n){t.classList[n?"add":"remove"](e)}class I{constructor(t=!1){this.is_svg=!1,this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,n=null){var i;this.e||(this.is_svg?this.e=(i=e.nodeName,document.createElementNS("http://www.w3.org/2000/svg",i)):this.e=x(e.nodeName),this.t=e,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)y(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(b)}}function D(t){l=t}function B(t){(function(){if(!l)throw new Error("Function called outside component initialization");return l})().$$.on_mount.push(t)}const N=[],Z=[],j=[],R=[],H=Promise.resolve();let F=!1;function W(t){j.push(t)}function q(t){R.push(t)}const U=new Set;let V=0;function G(){const t=l;do{for(;V<N.length;){const t=N[V];V++,D(t),K(t.$$)}for(D(null),N.length=0,V=0;Z.length;)Z.pop()();for(let t=0;t<j.length;t+=1){const e=j[t];U.has(e)||(U.add(e),e())}j.length=0}while(N.length);for(;R.length;)R.pop()();F=!1,U.clear(),D(t)}function K(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(W)}}const Y=new Set;let X;function J(){X={r:0,c:[],p:X}}function Q(){X.r||o(X.c),X=X.p}function tt(t,e){t&&t.i&&(Y.delete(t),t.i(e))}function et(t,e,n,i){if(t&&t.o){if(Y.has(t))return;Y.add(t),X.c.push((()=>{Y.delete(t),i&&(n&&t.d(1),i())})),t.o(e)}else i&&i()}function nt(t,e,n){const i=t.$$.props[e];void 0!==i&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function it(t){t&&t.c()}function ot(t,e,i,r){const{fragment:a,on_mount:l,on_destroy:c,after_update:h}=t.$$;a&&a.m(e,i),r||W((()=>{const e=l.map(n).filter(s);c?c.push(...e):o(e),t.$$.on_mount=[]})),h.forEach(W)}function st(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function rt(t,e){-1===t.$$.dirty[0]&&(N.push(t),F||(F=!0,H.then(G)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function at(e,n,s,r,a,c,h,u=[-1]){const d=l;D(e);const p=e.$$={fragment:null,ctx:null,props:c,update:t,not_equal:a,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:i(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};h&&h(p.root);let m=!1;if(p.ctx=s?s(e,n.props||{},((t,n,...i)=>{const o=i.length?i[0]:n;return p.ctx&&a(p.ctx[t],p.ctx[t]=o)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](o),m&&rt(e,t)),n})):[],p.update(),m=!0,o(p.before_update),p.fragment=!!r&&r(p.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);p.fragment&&p.fragment.l(t),t.forEach(b)}else p.fragment&&p.fragment.c();n.intro&&tt(e.$$.fragment),ot(e,n.target,n.anchor,n.customElement),G()}D(d)}class lt{$destroy(){st(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function ct(t){var e=t.default;if("function"==typeof e){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})})),n}(function(){const t=1e6,e=1e3,n="transitionend",i=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),o=e=>{do{e+=Math.floor(Math.random()*t)}while(document.getElementById(e));return e},s=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=s(t);return e&&document.querySelector(e)?e:null},a=t=>{const e=s(t);return e?document.querySelector(e):null},l=t=>{if(!t)return 0;let{transitionDuration:n,transitionDelay:i}=window.getComputedStyle(t);const o=Number.parseFloat(n),s=Number.parseFloat(i);return o||s?(n=n.split(",")[0],i=i.split(",")[0],(Number.parseFloat(n)+Number.parseFloat(i))*e):0},c=t=>{t.dispatchEvent(new Event(n))},h=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),u=t=>h(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,d=t=>{if(!h(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const e=t.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return e},p=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),m=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?m(t.parentNode):null},f=()=>{},_=t=>{t.offsetHeight},g=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,v=[],y=t=>{"loading"===document.readyState?(v.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of v)t()})),v.push(t)):t()},b=()=>"rtl"===document.documentElement.dir,w=t=>{y((()=>{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)}}))},x=t=>{"function"==typeof t&&t()},$=(t,e,i=!0)=>{if(!i)return void x(t);const o=5,s=l(e)+o;let r=!1;const a=({target:i})=>{i===e&&(r=!0,e.removeEventListener(n,a),x(t))};e.addEventListener(n,a),setTimeout((()=>{r||c(e)}),s)},L=(t,e,n,i)=>{const o=t.length;let s=t.indexOf(e);return-1===s?!n&&i?t[o-1]:t[0]:(s+=n?1:-1,i&&(s=(s+o)%o),t[Math.max(0,Math.min(s,o-1))])},T=/[^.]*(?=\..*)\.|.*/,P=/\..*/,M=/::\d+$/,k={};let C=1;const E={mouseenter:"mouseover",mouseleave:"mouseout"},A=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 O(t,e){return e&&`${e}::${C++}`||t.uidEvent||C++}function S(t){const e=O(t);return t.uidEvent=e,k[e]=k[e]||{},k[e]}function z(t,e){return function n(i){return F(i,{delegateTarget:t}),n.oneOff&&H.off(t,i.type,e),e.apply(t,[i])}}function I(t,e,n){return function i(o){const s=t.querySelectorAll(e);for(let{target:r}=o;r&&r!==this;r=r.parentNode)for(const a of s)if(a===r)return F(o,{delegateTarget:r}),i.oneOff&&H.off(t,o.type,e,n),n.apply(r,[o])}}function D(t,e,n=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===n))}function B(t,e,n){const i="string"==typeof e,o=i?n:e||n;let s=R(t);return A.has(s)||(s=t),[i,o,s]}function N(t,e,n,i,o){if("string"!=typeof e||!t)return;let[s,r,a]=B(e,n,i);if(e in E){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=S(t),c=l[a]||(l[a]={}),h=D(c,r,s?n:null);if(h)return void(h.oneOff=h.oneOff&&o);const u=O(r,e.replace(T,"")),d=s?I(t,n,r):z(t,r);d.delegationSelector=s?n:null,d.callable=r,d.oneOff=o,d.uidEvent=u,c[u]=d,t.addEventListener(a,d,s)}function Z(t,e,n,i,o){const s=D(e[n],i,o);s&&(t.removeEventListener(n,s,Boolean(o)),delete e[n][s.uidEvent])}function j(t,e,n,i){const o=e[n]||{};for(const s of Object.keys(o))if(s.includes(i)){const i=o[s];Z(t,e,n,i.callable,i.delegationSelector)}}function R(t){return t=t.replace(P,""),E[t]||t}const H={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,s,r]=B(e,n,i),a=r!==e,l=S(t),c=l[r]||{},h=e.startsWith(".");if(void 0===s){if(h)for(const n of Object.keys(l))j(t,l,n,e.slice(1));for(const n of Object.keys(c)){const i=n.replace(M,"");if(!a||e.includes(i)){const e=c[n];Z(t,l,r,e.callable,e.delegationSelector)}}}else{if(!Object.keys(c).length)return;Z(t,l,r,s,o?n:null)}},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=g();let o=null,s=!0,r=!0,a=!1;e!==R(e)&&i&&(o=i.Event(e,n),i(t).trigger(o),s=!o.isPropagationStopped(),r=!o.isImmediatePropagationStopped(),a=o.isDefaultPrevented());let l=new Event(e,{bubbles:s,cancelable:!0});return l=F(l,n),a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&o&&o.preventDefault(),l}};function F(t,e){for(const[n,i]of Object.entries(e||{}))try{t[n]=i}catch(e){Object.defineProperty(t,n,{configurable:!0,get:()=>i})}return t}const W=new Map,q={set(t,e,n){W.has(t)||W.set(t,new Map);const i=W.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)=>W.has(t)&&W.get(t).get(e)||null,remove(t,e){if(!W.has(t))return;const n=W.get(t);n.delete(e),0===n.size&&W.delete(t)}};function U(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function V(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const G={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={},n=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=U(t.dataset[i])}return e},getDataAttribute:(t,e)=>U(t.getAttribute(`data-bs-${V(e)}`))};class K{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=h(e)?G.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...h(e)?G.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const n of Object.keys(e)){const o=e[n],s=t[n],r=h(s)?"element":i(s);if(!new RegExp(o).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${o}".`)}}}const Y="5.2.1";class X extends K{constructor(t,e){super(),(t=u(t))&&(this._element=t,this._config=this._getConfig(e),q.set(this._element,this.constructor.DATA_KEY,this))}dispose(){q.remove(this._element,this.constructor.DATA_KEY),H.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,n=!0){$(t,e,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return q.get(u(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return Y}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const J=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,i=t.NAME;H.on(document,n,`[data-bs-dismiss="${i}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),p(this))return;const o=a(this)||this.closest(`.${i}`);t.getOrCreateInstance(o)[e]()}))},Q="alert",tt=".bs.alert",et=`close${tt}`,nt=`closed${tt}`,it="fade",ot="show";class st extends X{static get NAME(){return Q}close(){if(H.trigger(this._element,et).defaultPrevented)return;this._element.classList.remove(ot);const t=this._element.classList.contains(it);this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),H.trigger(this._element,nt),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=st.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}J(st,"close"),w(st);const rt="button",at="active",lt='[data-bs-toggle="button"]',ct="click.bs.button.data-api";class ht extends X{static get NAME(){return rt}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(at))}static jQueryInterface(t){return this.each((function(){const e=ht.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}H.on(document,ct,lt,(t=>{t.preventDefault();const e=t.target.closest(lt);ht.getOrCreateInstance(e).toggle()})),w(ht);const ut={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.closest(e);for(;i;)n.push(i),i=i.parentNode.closest(e);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[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!p(t)&&d(t)))}},dt="swipe",pt=".bs.swipe",mt=`touchstart${pt}`,ft=`touchmove${pt}`,_t=`touchend${pt}`,gt=`pointerdown${pt}`,vt=`pointerup${pt}`,yt="touch",bt="pen",wt="pointer-event",xt=40,$t={endCallback:null,leftCallback:null,rightCallback:null},Lt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Tt extends K{constructor(t,e){super(),this._element=t,t&&Tt.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return $t}static get DefaultType(){return Lt}static get NAME(){return dt}dispose(){H.off(this._element,pt)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),x(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=xt)return;const e=t/this._deltaX;this._deltaX=0,e&&x(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(H.on(this._element,gt,(t=>this._start(t))),H.on(this._element,vt,(t=>this._end(t))),this._element.classList.add(wt)):(H.on(this._element,mt,(t=>this._start(t))),H.on(this._element,ft,(t=>this._move(t))),H.on(this._element,_t,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===bt||t.pointerType===yt)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Pt="carousel",Mt=".bs.carousel",kt=".data-api",Ct=500,Et="next",At="prev",Ot="left",St="right",zt=`slide${Mt}`,It=`slid${Mt}`,Dt=`keydown${Mt}`,Bt=`mouseenter${Mt}`,Nt=`mouseleave${Mt}`,Zt=`dragstart${Mt}`,jt=`load${Mt}${kt}`,Rt=`click${Mt}${kt}`,Ht="carousel",Ft="active",Wt="slide",qt="carousel-item-end",Ut="carousel-item-start",Vt="carousel-item-next",Gt="carousel-item-prev",Kt=".active",Yt=".carousel-item",Xt=Kt+Yt,Jt=".carousel-item img",Qt=".carousel-indicators",te="[data-bs-slide], [data-bs-slide-to]",ee='[data-bs-ride="carousel"]',ne={ArrowLeft:St,ArrowRight:Ot},ie={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},oe={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class se extends X{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ut.findOne(Qt,this._element),this._addEventListeners(),this._config.ride===Ht&&this.cycle()}static get Default(){return ie}static get DefaultType(){return oe}static get NAME(){return Pt}next(){this._slide(Et)}nextWhenVisible(){!document.hidden&&d(this._element)&&this.next()}prev(){this._slide(At)}pause(){this._isSliding&&c(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?H.one(this._element,It,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void H.one(this._element,It,(()=>this.to(t)));const n=this._getItemIndex(this._getActive());if(n===t)return;const i=t>n?Et:At;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&H.on(this._element,Dt,(t=>this._keydown(t))),"hover"===this._config.pause&&(H.on(this._element,Bt,(()=>this.pause())),H.on(this._element,Nt,(()=>this._maybeEnableCycle()))),this._config.touch&&Tt.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of ut.find(Jt,this._element))H.on(t,Zt,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(Ot)),rightCallback:()=>this._slide(this._directionToOrder(St)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),Ct+this._config.interval))}};this._swipeHelper=new Tt(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=ne[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=ut.findOne(Kt,this._indicatorsElement);e.classList.remove(Ft),e.removeAttribute("aria-current");const n=ut.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(Ft),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const n=this._getActive(),i=t===Et,o=e||L(this._getItems(),n,i,this._config.wrap);if(o===n)return;const s=this._getItemIndex(o),r=e=>H.trigger(this._element,e,{relatedTarget:o,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:s});if(r(zt).defaultPrevented)return;if(!n||!o)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=o;const l=i?Ut:qt,c=i?Vt:Gt;o.classList.add(c),_(o),n.classList.add(l),o.classList.add(l);const h=()=>{o.classList.remove(l,c),o.classList.add(Ft),n.classList.remove(Ft,c,l),this._isSliding=!1,r(It)};this._queueCallback(h,n,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains(Wt)}_getActive(){return ut.findOne(Xt,this._element)}_getItems(){return ut.find(Yt,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return b()?t===Ot?At:Et:t===Ot?Et:At}_orderToDirection(t){return b()?t===At?Ot:St:t===At?St:Ot}static jQueryInterface(t){return this.each((function(){const e=se.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}H.on(document,Rt,te,(function(t){const e=a(this);if(!e||!e.classList.contains(Ht))return;t.preventDefault();const n=se.getOrCreateInstance(e),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===G.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),H.on(window,jt,(()=>{const t=ut.find(ee);for(const e of t)se.getOrCreateInstance(e)})),w(se);const re="collapse",ae=".bs.collapse",le=`show${ae}`,ce=`shown${ae}`,he=`hide${ae}`,ue=`hidden${ae}`,de=`click${ae}.data-api`,pe="show",me="collapse",fe="collapsing",_e="collapsed",ge=`:scope .${me} .${me}`,ve="collapse-horizontal",ye="width",be="height",we=".collapse.show, .collapse.collapsing",xe='[data-bs-toggle="collapse"]',$e={parent:null,toggle:!0},Le={parent:"(null|element)",toggle:"boolean"};class Te extends X{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=ut.find(xe);for(const t of n){const e=r(t),n=ut.find(e).filter((t=>t===this._element));null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return $e}static get DefaultType(){return Le}static get NAME(){return re}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(we).filter((t=>t!==this._element)).map((t=>Te.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(H.trigger(this._element,le).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(me),this._element.classList.add(fe),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(fe),this._element.classList.add(me,pe),this._element.style[e]="",H.trigger(this._element,ce)},i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(H.trigger(this._element,he).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,_(this._element),this._element.classList.add(fe),this._element.classList.remove(me,pe);for(const t of this._triggerArray){const e=a(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;const e=()=>{this._isTransitioning=!1,this._element.classList.remove(fe),this._element.classList.add(me),H.trigger(this._element,ue)};this._element.style[t]="",this._queueCallback(e,this._element,!0)}_isShown(t=this._element){return t.classList.contains(pe)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=u(t.parent),t}_getDimension(){return this._element.classList.contains(ve)?ye:be}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(xe);for(const e of t){const t=a(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=ut.find(ge,this._config.parent);return ut.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle(_e,!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const n=Te.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}H.on(document,de,xe,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=r(this),n=ut.find(e);for(const t of n)Te.getOrCreateInstance(t,{toggle:!1}).toggle()})),w(Te);var Pe="top",Me="bottom",ke="right",Ce="left",Ee="auto",Ae=[Pe,Me,ke,Ce],Oe="start",Se="end",ze="clippingParents",Ie="viewport",De="popper",Be="reference",Ne=Ae.reduce((function(t,e){return t.concat([e+"-"+Oe,e+"-"+Se])}),[]),Ze=[].concat(Ae,[Ee]).reduce((function(t,e){return t.concat([e,e+"-"+Oe,e+"-"+Se])}),[]),je="beforeRead",Re="read",He="afterRead",Fe="beforeMain",We="main",qe="afterMain",Ue="beforeWrite",Ve="write",Ge="afterWrite",Ke=[je,Re,He,Fe,We,qe,Ue,Ve,Ge];function Ye(t){return t?(t.nodeName||"").toLowerCase():null}function Xe(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Je(t){return t instanceof Xe(t).Element||t instanceof Element}function Qe(t){return t instanceof Xe(t).HTMLElement||t instanceof HTMLElement}function tn(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Xe(t).ShadowRoot||t instanceof ShadowRoot)}function en(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];Qe(o)&&Ye(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)})))}))}function nn(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]||{},s=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});Qe(i)&&Ye(i)&&(Object.assign(i.style,s),Object.keys(o).forEach((function(t){i.removeAttribute(t)})))}))}}const on={name:"applyStyles",enabled:!0,phase:"write",fn:en,effect:nn,requires:["computeStyles"]};function sn(t){return t.split("-")[0]}var rn=Math.max,an=Math.min,ln=Math.round;function cn(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function hn(){return!/^((?!chrome|android).)*safari/i.test(cn())}function un(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),o=1,s=1;e&&Qe(t)&&(o=t.offsetWidth>0&&ln(i.width)/t.offsetWidth||1,s=t.offsetHeight>0&&ln(i.height)/t.offsetHeight||1);var r=(Je(t)?Xe(t):window).visualViewport,a=!hn()&&n,l=(i.left+(a&&r?r.offsetLeft:0))/o,c=(i.top+(a&&r?r.offsetTop:0))/s,h=i.width/o,u=i.height/s;return{width:h,height:u,top:c,right:l+h,bottom:c+u,left:l,x:l,y:c}}function dn(t){var e=un(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function pn(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&tn(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function mn(t){return Xe(t).getComputedStyle(t)}function fn(t){return["table","td","th"].indexOf(Ye(t))>=0}function _n(t){return((Je(t)?t.ownerDocument:t.document)||window.document).documentElement}function gn(t){return"html"===Ye(t)?t:t.assignedSlot||t.parentNode||(tn(t)?t.host:null)||_n(t)}function vn(t){return Qe(t)&&"fixed"!==mn(t).position?t.offsetParent:null}function yn(t){var e=/firefox/i.test(cn());if(/Trident/i.test(cn())&&Qe(t)&&"fixed"===mn(t).position)return null;var n=gn(t);for(tn(n)&&(n=n.host);Qe(n)&&["html","body"].indexOf(Ye(n))<0;){var i=mn(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}function bn(t){for(var e=Xe(t),n=vn(t);n&&fn(n)&&"static"===mn(n).position;)n=vn(n);return n&&("html"===Ye(n)||"body"===Ye(n)&&"static"===mn(n).position)?e:n||yn(t)||e}function wn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function xn(t,e,n){return rn(t,an(e,n))}function $n(t,e,n){var i=xn(t,e,n);return i>n?n:i}function Ln(){return{top:0,right:0,bottom:0,left:0}}function Tn(t){return Object.assign({},Ln(),t)}function Pn(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var Mn=function(t,e){return Tn("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Pn(t,Ae))};function kn(t){var e,n=t.state,i=t.name,o=t.options,s=n.elements.arrow,r=n.modifiersData.popperOffsets,a=sn(n.placement),l=wn(a),c=[Ce,ke].indexOf(a)>=0?"height":"width";if(s&&r){var h=Mn(o.padding,n),u=dn(s),d="y"===l?Pe:Ce,p="y"===l?Me:ke,m=n.rects.reference[c]+n.rects.reference[l]-r[l]-n.rects.popper[c],f=r[l]-n.rects.reference[l],_=bn(s),g=_?"y"===l?_.clientHeight||0:_.clientWidth||0:0,v=m/2-f/2,y=h[d],b=g-u[c]-h[p],w=g/2-u[c]/2+v,x=xn(y,w,b),$=l;n.modifiersData[i]=((e={})[$]=x,e.centerOffset=x-w,e)}}function Cn(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&pn(e.elements.popper,i)&&(e.elements.arrow=i)}const En={name:"arrow",enabled:!0,phase:"main",fn:kn,effect:Cn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function An(t){return t.split("-")[1]}var On={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Sn(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:ln(e*i)/i||0,y:ln(n*i)/i||0}}function zn(t){var e,n=t.popper,i=t.popperRect,o=t.placement,s=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,u=t.isFixed,d=r.x,p=void 0===d?0:d,m=r.y,f=void 0===m?0:m,_="function"==typeof h?h({x:p,y:f}):{x:p,y:f};p=_.x,f=_.y;var g=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),y=Ce,b=Pe,w=window;if(c){var x=bn(n),$="clientHeight",L="clientWidth";x===Xe(n)&&"static"!==mn(x=_n(n)).position&&"absolute"===a&&($="scrollHeight",L="scrollWidth"),(o===Pe||(o===Ce||o===ke)&&s===Se)&&(b=Me,f-=(u&&x===w&&w.visualViewport?w.visualViewport.height:x[$])-i.height,f*=l?1:-1),o!==Ce&&(o!==Pe&&o!==Me||s!==Se)||(y=ke,p-=(u&&x===w&&w.visualViewport?w.visualViewport.width:x[L])-i.width,p*=l?1:-1)}var T,P=Object.assign({position:a},c&&On),M=!0===h?Sn({x:p,y:f}):{x:p,y:f};return p=M.x,f=M.y,l?Object.assign({},P,((T={})[b]=v?"0":"",T[y]=g?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",T)):Object.assign({},P,((e={})[b]=v?f+"px":"",e[y]=g?p+"px":"",e.transform="",e))}function In(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,s=n.adaptive,r=void 0===s||s,a=n.roundOffsets,l=void 0===a||a,c={placement:sn(e.placement),variation:An(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,zn(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,zn(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Dn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:In,data:{}};var Bn={passive:!0};function Nn(t){var e=t.state,n=t.instance,i=t.options,o=i.scroll,s=void 0===o||o,r=i.resize,a=void 0===r||r,l=Xe(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach((function(t){t.addEventListener("scroll",n.update,Bn)})),a&&l.addEventListener("resize",n.update,Bn),function(){s&&c.forEach((function(t){t.removeEventListener("scroll",n.update,Bn)})),a&&l.removeEventListener("resize",n.update,Bn)}}const Zn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nn,data:{}};var jn={left:"right",right:"left",bottom:"top",top:"bottom"};function Rn(t){return t.replace(/left|right|bottom|top/g,(function(t){return jn[t]}))}var Hn={start:"end",end:"start"};function Fn(t){return t.replace(/start|end/g,(function(t){return Hn[t]}))}function Wn(t){var e=Xe(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function qn(t){return un(_n(t)).left+Wn(t).scrollLeft}function Un(t,e){var n=Xe(t),i=_n(t),o=n.visualViewport,s=i.clientWidth,r=i.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;var c=hn();(c||!c&&"fixed"===e)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a+qn(t),y:l}}function Vn(t){var e,n=_n(t),i=Wn(t),o=null==(e=t.ownerDocument)?void 0:e.body,s=rn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=rn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+qn(t),l=-i.scrollTop;return"rtl"===mn(o||n).direction&&(a+=rn(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}function Gn(t){var e=mn(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function Kn(t){return["html","body","#document"].indexOf(Ye(t))>=0?t.ownerDocument.body:Qe(t)&&Gn(t)?t:Kn(gn(t))}function Yn(t,e){var n;void 0===e&&(e=[]);var i=Kn(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),s=Xe(i),r=o?[s].concat(s.visualViewport||[],Gn(i)?i:[]):i,a=e.concat(r);return o?a:a.concat(Yn(gn(r)))}function Xn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Jn(t,e){var n=un(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Qn(t,e,n){return e===Ie?Xn(Un(t,n)):Je(e)?Jn(e,n):Xn(Vn(_n(t)))}function ti(t){var e=Yn(gn(t)),n=["absolute","fixed"].indexOf(mn(t).position)>=0&&Qe(t)?bn(t):t;return Je(n)?e.filter((function(t){return Je(t)&&pn(t,n)&&"body"!==Ye(t)})):[]}function ei(t,e,n,i){var o="clippingParents"===e?ti(t):[].concat(e),s=[].concat(o,[n]),r=s[0],a=s.reduce((function(e,n){var o=Qn(t,n,i);return e.top=rn(o.top,e.top),e.right=an(o.right,e.right),e.bottom=an(o.bottom,e.bottom),e.left=rn(o.left,e.left),e}),Qn(t,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ni(t){var e,n=t.reference,i=t.element,o=t.placement,s=o?sn(o):null,r=o?An(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(s){case Pe:e={x:a,y:n.y-i.height};break;case Me:e={x:a,y:n.y+n.height};break;case ke:e={x:n.x+n.width,y:l};break;case Ce:e={x:n.x-i.width,y:l};break;default:e={x:n.x,y:n.y}}var c=s?wn(s):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case Oe:e[c]=e[c]-(n[h]/2-i[h]/2);break;case Se:e[c]=e[c]+(n[h]/2-i[h]/2)}}return e}function ii(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,s=n.strategy,r=void 0===s?t.strategy:s,a=n.boundary,l=void 0===a?ze:a,c=n.rootBoundary,h=void 0===c?Ie:c,u=n.elementContext,d=void 0===u?De:u,p=n.altBoundary,m=void 0!==p&&p,f=n.padding,_=void 0===f?0:f,g=Tn("number"!=typeof _?_:Pn(_,Ae)),v=d===De?Be:De,y=t.rects.popper,b=t.elements[m?v:d],w=ei(Je(b)?b:b.contextElement||_n(t.elements.popper),l,h,r),x=un(t.elements.reference),$=ni({reference:x,element:y,strategy:"absolute",placement:o}),L=Xn(Object.assign({},y,$)),T=d===De?L:x,P={top:w.top-T.top+g.top,bottom:T.bottom-w.bottom+g.bottom,left:w.left-T.left+g.left,right:T.right-w.right+g.right},M=t.modifiersData.offset;if(d===De&&M){var k=M[o];Object.keys(P).forEach((function(t){var e=[ke,Me].indexOf(t)>=0?1:-1,n=[Pe,Me].indexOf(t)>=0?"y":"x";P[t]+=k[n]*e}))}return P}function oi(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,s=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Ze:l,h=An(i),u=h?a?Ne:Ne.filter((function(t){return An(t)===h})):Ae,d=u.filter((function(t){return c.indexOf(t)>=0}));0===d.length&&(d=u);var p=d.reduce((function(e,n){return e[n]=ii(t,{placement:n,boundary:o,rootBoundary:s,padding:r})[sn(n)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}function si(t){if(sn(t)===Ee)return[];var e=Rn(t);return[Fn(t),e,Fn(e)]}function ri(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,s=void 0===o||o,r=n.altAxis,a=void 0===r||r,l=n.fallbackPlacements,c=n.padding,h=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,m=void 0===p||p,f=n.allowedAutoPlacements,_=e.options.placement,g=sn(_),v=l||(g!==_&&m?si(_):[Rn(_)]),y=[_].concat(v).reduce((function(t,n){return t.concat(sn(n)===Ee?oi(e,{placement:n,boundary:h,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:f}):n)}),[]),b=e.rects.reference,w=e.rects.popper,x=new Map,$=!0,L=y[0],T=0;T<y.length;T++){var P=y[T],M=sn(P),k=An(P)===Oe,C=[Pe,Me].indexOf(M)>=0,E=C?"width":"height",A=ii(e,{placement:P,boundary:h,rootBoundary:u,altBoundary:d,padding:c}),O=C?k?ke:Ce:k?Me:Pe;b[E]>w[E]&&(O=Rn(O));var S=Rn(O),z=[];if(s&&z.push(A[M]<=0),a&&z.push(A[O]<=0,A[S]<=0),z.every((function(t){return t}))){L=P,$=!1;break}x.set(P,z)}if($)for(var I=function(t){var e=y.find((function(e){var n=x.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return L=e,"break"},D=m?3:1;D>0&&"break"!==I(D);D--);e.placement!==L&&(e.modifiersData[i]._skip=!0,e.placement=L,e.reset=!0)}}const ai={name:"flip",enabled:!0,phase:"main",fn:ri,requiresIfExists:["offset"],data:{_skip:!1}};function li(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 ci(t){return[Pe,ke,Me,Ce].some((function(e){return t[e]>=0}))}function hi(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,r=ii(e,{elementContext:"reference"}),a=ii(e,{altBoundary:!0}),l=li(r,i),c=li(a,o,s),h=ci(l),u=ci(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}const ui={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hi};function di(t,e,n){var i=sn(t),o=[Ce,Pe].indexOf(i)>=0?-1:1,s="function"==typeof n?n(Object.assign({},e,{placement:t})):n,r=s[0],a=s[1];return r=r||0,a=(a||0)*o,[Ce,ke].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function pi(t){var e=t.state,n=t.options,i=t.name,o=n.offset,s=void 0===o?[0,0]:o,r=Ze.reduce((function(t,n){return t[n]=di(n,e.rects,s),t}),{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=r}const mi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pi};function fi(t){var e=t.state,n=t.name;e.modifiersData[n]=ni({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const _i={name:"popperOffsets",enabled:!0,phase:"read",fn:fi,data:{}};function gi(t){return"x"===t?"y":"x"}function vi(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,s=void 0===o||o,r=n.altAxis,a=void 0!==r&&r,l=n.boundary,c=n.rootBoundary,h=n.altBoundary,u=n.padding,d=n.tether,p=void 0===d||d,m=n.tetherOffset,f=void 0===m?0:m,_=ii(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:h}),g=sn(e.placement),v=An(e.placement),y=!v,b=wn(g),w=gi(b),x=e.modifiersData.popperOffsets,$=e.rects.reference,L=e.rects.popper,T="function"==typeof f?f(Object.assign({},e.rects,{placement:e.placement})):f,P="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(x){if(s){var C,E="y"===b?Pe:Ce,A="y"===b?Me:ke,O="y"===b?"height":"width",S=x[b],z=S+_[E],I=S-_[A],D=p?-L[O]/2:0,B=v===Oe?$[O]:L[O],N=v===Oe?-L[O]:-$[O],Z=e.elements.arrow,j=p&&Z?dn(Z):{width:0,height:0},R=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ln(),H=R[E],F=R[A],W=xn(0,$[O],j[O]),q=y?$[O]/2-D-W-H-P.mainAxis:B-W-H-P.mainAxis,U=y?-$[O]/2+D+W+F+P.mainAxis:N+W+F+P.mainAxis,V=e.elements.arrow&&bn(e.elements.arrow),G=V?"y"===b?V.clientTop||0:V.clientLeft||0:0,K=null!=(C=null==M?void 0:M[b])?C:0,Y=S+U-K,X=xn(p?an(z,S+q-K-G):z,S,p?rn(I,Y):I);x[b]=X,k[b]=X-S}if(a){var J,Q="x"===b?Pe:Ce,tt="x"===b?Me:ke,et=x[w],nt="y"===w?"height":"width",it=et+_[Q],ot=et-_[tt],st=-1!==[Pe,Ce].indexOf(g),rt=null!=(J=null==M?void 0:M[w])?J:0,at=st?it:et-$[nt]-L[nt]-rt+P.altAxis,lt=st?et+$[nt]+L[nt]-rt-P.altAxis:ot,ct=p&&st?$n(at,et,lt):xn(p?at:it,et,p?lt:ot);x[w]=ct,k[w]=ct-et}e.modifiersData[i]=k}}const yi={name:"preventOverflow",enabled:!0,phase:"main",fn:vi,requiresIfExists:["offset"]};function bi(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function wi(t){return t!==Xe(t)&&Qe(t)?bi(t):Wn(t)}function xi(t){var e=t.getBoundingClientRect(),n=ln(e.width)/t.offsetWidth||1,i=ln(e.height)/t.offsetHeight||1;return 1!==n||1!==i}function $i(t,e,n){void 0===n&&(n=!1);var i=Qe(e),o=Qe(e)&&xi(e),s=_n(e),r=un(t,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==Ye(e)||Gn(s))&&(a=wi(e)),Qe(e)?((l=un(e,!0)).x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=qn(s))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function Li(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||o(t)})),i}function Ti(t){var e=Li(t);return Ke.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}function Pi(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}function Mi(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]}))}var ki={placement:"bottom",modifiers:[],strategy:"absolute"};function Ci(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Ei(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,s=void 0===o?ki:o;return function(t,e,n){void 0===n&&(n=s);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},ki,s),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},r=[],a=!1,l={state:o,setOptions:function(n){var r="function"==typeof n?n(o.options):n;h(),o.options=Object.assign({},s,o.options,r),o.scrollParents={reference:Je(t)?Yn(t):t.contextElement?Yn(t.contextElement):[],popper:Yn(e)};var a=Ti(Mi([].concat(i,o.options.modifiers)));return o.orderedModifiers=a.filter((function(t){return t.enabled})),c(),l.update()},forceUpdate:function(){if(!a){var t=o.elements,e=t.reference,n=t.popper;if(Ci(e,n)){o.rects={reference:$i(e,bn(n),"fixed"===o.options.strategy),popper:dn(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<o.orderedModifiers.length;i++)if(!0!==o.reset){var s=o.orderedModifiers[i],r=s.fn,c=s.options,h=void 0===c?{}:c,u=s.name;"function"==typeof r&&(o=r({state:o,options:h,name:u,instance:l})||o)}else o.reset=!1,i=-1}}},update:Pi((function(){return new Promise((function(t){l.forceUpdate(),t(o)}))})),destroy:function(){h(),a=!0}};if(!Ci(t,e))return l;function c(){o.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,s=t.effect;if("function"==typeof s){var a=s({state:o,name:e,instance:l,options:i}),c=function(){};r.push(a||c)}}))}function h(){r.forEach((function(t){return t()})),r=[]}return l.setOptions(n).then((function(t){!a&&n.onFirstUpdate&&n.onFirstUpdate(t)})),l}}var Ai=Ei(),Oi=Ei({defaultModifiers:[Zn,_i,Dn,on]}),Si=Ei({defaultModifiers:[Zn,_i,Dn,on,mi,ai,yi,En,ui]});const zi=Object.freeze(Object.defineProperty({__proto__:null,popperGenerator:Ei,detectOverflow:ii,createPopperBase:Ai,createPopper:Si,createPopperLite:Oi,top:Pe,bottom:Me,right:ke,left:Ce,auto:Ee,basePlacements:Ae,start:Oe,end:Se,clippingParents:ze,viewport:Ie,popper:De,reference:Be,variationPlacements:Ne,placements:Ze,beforeRead:je,read:Re,afterRead:He,beforeMain:Fe,main:We,afterMain:qe,beforeWrite:Ue,write:Ve,afterWrite:Ge,modifierPhases:Ke,applyStyles:on,arrow:En,computeStyles:Dn,eventListeners:Zn,flip:ai,hide:ui,offset:mi,popperOffsets:_i,preventOverflow:yi},Symbol.toStringTag,{value:"Module"})),Ii="dropdown",Di=".bs.dropdown",Bi=".data-api",Ni="Escape",Zi="Tab",ji="ArrowUp",Ri="ArrowDown",Hi=2,Fi=`hide${Di}`,Wi=`hidden${Di}`,qi=`show${Di}`,Ui=`shown${Di}`,Vi=`click${Di}${Bi}`,Gi=`keydown${Di}${Bi}`,Ki=`keyup${Di}${Bi}`,Yi="show",Xi="dropup",Ji="dropend",Qi="dropstart",to="dropup-center",eo="dropdown-center",no='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',io=`${no}.${Yi}`,oo=".dropdown-menu",so=".navbar",ro=".navbar-nav",ao=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",lo=b()?"top-end":"top-start",co=b()?"top-start":"top-end",ho=b()?"bottom-end":"bottom-start",uo=b()?"bottom-start":"bottom-end",po=b()?"left-start":"right-start",mo=b()?"right-start":"left-start",fo="top",_o="bottom",go={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},vo={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class yo extends X{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=ut.next(this._element,oo)[0]||ut.prev(this._element,oo)[0],this._inNavbar=this._detectNavbar()}static get Default(){return go}static get DefaultType(){return vo}static get NAME(){return Ii}toggle(){return this._isShown()?this.hide():this.show()}show(){if(p(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!H.trigger(this._element,qi,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(ro))for(const t of[].concat(...document.body.children))H.on(t,"mouseover",f);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Yi),this._element.classList.add(Yi),H.trigger(this._element,Ui,t)}}hide(){if(p(this._element)||!this._isShown())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()}_completeHide(t){if(!H.trigger(this._element,Fi,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))H.off(t,"mouseover",f);this._popper&&this._popper.destroy(),this._menu.classList.remove(Yi),this._element.classList.remove(Yi),this._element.setAttribute("aria-expanded","false"),G.removeDataAttribute(this._menu,"popper"),H.trigger(this._element,Wi,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!h(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Ii.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===zi)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:h(this._config.reference)?t=u(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Si(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Yi)}_getPlacement(){const t=this._parent;if(t.classList.contains(Ji))return po;if(t.classList.contains(Qi))return mo;if(t.classList.contains(to))return fo;if(t.classList.contains(eo))return _o;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains(Xi)?e?co:lo:e?uo:ho}_detectNavbar(){return null!==this._element.closest(so)}_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(this._inNavbar||"static"===this._config.display)&&(G.setDataAttribute(this._menu,"popper","static"),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 n=ut.find(ao,this._menu).filter((t=>d(t)));n.length&&L(n,e,t===Ri,!n.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=yo.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(t.button===Hi||"keyup"===t.type&&t.key!==Zi)return;const e=ut.find(io);for(const n of e){const e=yo.getInstance(n);if(!e||!1===e._config.autoClose)continue;const i=t.composedPath(),o=i.includes(e._menu);if(i.includes(e._element)||"inside"===e._config.autoClose&&!o||"outside"===e._config.autoClose&&o)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&t.key===Zi||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const s={relatedTarget:e._element};"click"===t.type&&(s.clickEvent=t),e._completeHide(s)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n=t.key===Ni,i=[ji,Ri].includes(t.key);if(!i&&!n)return;if(e&&!n)return;t.preventDefault();const o=this.matches(no)?this:ut.prev(this,no)[0]||ut.next(this,no)[0],s=yo.getOrCreateInstance(o);if(i)return t.stopPropagation(),s.show(),void s._selectMenuItem(t);s._isShown()&&(t.stopPropagation(),s.hide(),o.focus())}}H.on(document,Gi,no,yo.dataApiKeydownHandler),H.on(document,Gi,oo,yo.dataApiKeydownHandler),H.on(document,Vi,yo.clearMenus),H.on(document,Ki,yo.clearMenus),H.on(document,Vi,no,(function(t){t.preventDefault(),yo.getOrCreateInstance(this).toggle()})),w(yo);const bo=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",wo=".sticky-top",xo="padding-right",$o="margin-right";class Lo{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,xo,(e=>e+t)),this._setElementAttributes(bo,xo,(e=>e+t)),this._setElementAttributes(wo,$o,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,xo),this._resetElementAttributes(bo,xo),this._resetElementAttributes(wo,$o)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const i=this.getWidth(),o=t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+i)return;this._saveInitialAttribute(t,e);const o=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${n(Number.parseFloat(o))}px`)};this._applyManipulationCallback(t,o)}_saveInitialAttribute(t,e){const n=t.style.getPropertyValue(e);n&&G.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){const n=t=>{const n=G.getDataAttribute(t,e);null!==n?(G.removeDataAttribute(t,e),t.style.setProperty(e,n)):t.style.removeProperty(e)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,e){if(h(t))e(t);else for(const n of ut.find(t,this._element))e(n)}}const To="backdrop",Po="fade",Mo="show",ko=`mousedown.bs.${To}`,Co={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Eo={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ao extends K{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Co}static get DefaultType(){return Eo}static get NAME(){return To}show(t){if(!this._config.isVisible)return void x(t);this._append();const e=this._getElement();this._config.isAnimated&&_(e),e.classList.add(Mo),this._emulateAnimation((()=>{x(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Mo),this._emulateAnimation((()=>{this.dispose(),x(t)}))):x(t)}dispose(){this._isAppended&&(H.off(this._element,ko),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(Po),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=u(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),H.on(t,ko,(()=>{x(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){$(t,this._getElement(),this._config.isAnimated)}}const Oo="focustrap",So=".bs.focustrap",zo=`focusin${So}`,Io=`keydown.tab${So}`,Do="Tab",Bo="forward",No="backward",Zo={autofocus:!0,trapElement:null},jo={autofocus:"boolean",trapElement:"element"};class Ro extends K{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Zo}static get DefaultType(){return jo}static get NAME(){return Oo}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),H.off(document,So),H.on(document,zo,(t=>this._handleFocusin(t))),H.on(document,Io,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,H.off(document,So))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const n=ut.focusableChildren(e);0===n.length?e.focus():this._lastTabNavDirection===No?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){t.key===Do&&(this._lastTabNavDirection=t.shiftKey?No:Bo)}}const Ho="modal",Fo=".bs.modal",Wo="Escape",qo=`hide${Fo}`,Uo=`hidePrevented${Fo}`,Vo=`hidden${Fo}`,Go=`show${Fo}`,Ko=`shown${Fo}`,Yo=`resize${Fo}`,Xo=`click.dismiss${Fo}`,Jo=`mousedown.dismiss${Fo}`,Qo=`keydown.dismiss${Fo}`,ts=`click${Fo}.data-api`,es="modal-open",ns="fade",is="show",os="modal-static",ss=".modal.show",rs=".modal-dialog",as=".modal-body",ls='[data-bs-toggle="modal"]',cs={backdrop:!0,focus:!0,keyboard:!0},hs={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class us extends X{constructor(t,e){super(t,e),this._dialog=ut.findOne(rs,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Lo,this._addEventListeners()}static get Default(){return cs}static get DefaultType(){return hs}static get NAME(){return Ho}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||H.trigger(this._element,Go,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(es),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(H.trigger(this._element,qo).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(is),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){for(const t of[window,this._dialog])H.off(t,Fo);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ao({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ro({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(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;const e=ut.findOne(as,this._dialog);e&&(e.scrollTop=0),_(this._element),this._element.classList.add(is);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,H.trigger(this._element,Ko,{relatedTarget:t})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){H.on(this._element,Qo,(t=>{if(t.key===Wo)return this._config.keyboard?(t.preventDefault(),void this.hide()):void this._triggerBackdropTransition()})),H.on(window,Yo,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),H.on(this._element,Jo,(t=>{H.one(this._element,Xo,(e=>{this._dialog.contains(t.target)||this._dialog.contains(e.target)||("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_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(es),this._resetAdjustments(),this._scrollBar.reset(),H.trigger(this._element,Vo)}))}_isAnimated(){return this._element.classList.contains(ns)}_triggerBackdropTransition(){if(H.trigger(this._element,Uo).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(os)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(os),this._queueCallback((()=>{this._element.classList.remove(os),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;if(n&&!t){const t=b()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!n&&t){const t=b()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const n=us.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](e)}}))}}H.on(document,ts,ls,(function(t){const e=a(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),H.one(e,Go,(t=>{t.defaultPrevented||H.one(e,Vo,(()=>{d(this)&&this.focus()}))}));const n=ut.findOne(ss);n&&us.getInstance(n).hide(),us.getOrCreateInstance(e).toggle(this)})),J(us),w(us);const ds="offcanvas",ps=".bs.offcanvas",ms=".data-api",fs=`load${ps}${ms}`,_s="Escape",gs="show",vs="showing",ys="hiding",bs="offcanvas-backdrop",ws=".offcanvas.show",xs=`show${ps}`,$s=`shown${ps}`,Ls=`hide${ps}`,Ts=`hidePrevented${ps}`,Ps=`hidden${ps}`,Ms=`resize${ps}`,ks=`click${ps}${ms}`,Cs=`keydown.dismiss${ps}`,Es='[data-bs-toggle="offcanvas"]',As={backdrop:!0,keyboard:!0,scroll:!1},Os={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ss extends X{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return As}static get DefaultType(){return Os}static get NAME(){return ds}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(H.trigger(this._element,xs,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Lo).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(vs);const e=()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(gs),this._element.classList.remove(vs),H.trigger(this._element,$s,{relatedTarget:t})};this._queueCallback(e,this._element,!0)}hide(){if(!this._isShown)return;if(H.trigger(this._element,Ls).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(ys),this._backdrop.hide();const t=()=>{this._element.classList.remove(gs,ys),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Lo).reset(),H.trigger(this._element,Ps)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{"static"!==this._config.backdrop?this.hide():H.trigger(this._element,Ts)},e=Boolean(this._config.backdrop);return new Ao({className:bs,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new Ro({trapElement:this._element})}_addEventListeners(){H.on(this._element,Cs,(t=>{t.key===_s&&(this._config.keyboard?this.hide():H.trigger(this._element,Ts))}))}static jQueryInterface(t){return this.each((function(){const e=Ss.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)}}))}}H.on(document,ks,Es,(function(t){const e=a(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),p(this))return;H.one(e,Ps,(()=>{d(this)&&this.focus()}));const n=ut.findOne(ws);n&&n!==e&&Ss.getInstance(n).hide(),Ss.getOrCreateInstance(e).toggle(this)})),H.on(window,fs,(()=>{for(const t of ut.find(ws))Ss.getOrCreateInstance(t).show()})),H.on(window,Ms,(()=>{for(const t of ut.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Ss.getOrCreateInstance(t).hide()})),J(Ss),w(Ss);const zs=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Is=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Ds=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Bs=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!zs.has(n)||Boolean(Is.test(t.nodeValue)||Ds.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(n)))},Ns={"*":["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:[]};function Zs(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=[].concat(...i.body.querySelectorAll("*"));for(const t of o){const n=t.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){t.remove();continue}const i=[].concat(...t.attributes),o=[].concat(e["*"]||[],e[n]||[]);for(const e of i)Bs(e,o)||t.removeAttribute(e.nodeName)}return i.body.innerHTML}const js="TemplateFactory",Rs={allowList:Ns,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Hs={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Fs={entry:"(string|element|function|null)",selector:"(string|element)"};class Ws extends K{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Rs}static get DefaultType(){return Hs}static get NAME(){return js}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,n]of Object.entries(this._config.content))this._setContent(t,n,e);const e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},Fs)}_setContent(t,e,n){const i=ut.findOne(n,t);i&&((e=this._resolvePossibleFunction(e))?h(e)?this._putElementInTemplate(u(e),i):this._config.html?i.innerHTML=this._maybeSanitize(e):i.textContent=e:i.remove())}_maybeSanitize(t){return this._config.sanitize?Zs(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return"function"==typeof t?t(this):t}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const qs="tooltip",Us=new Set(["sanitize","allowList","sanitizeFn"]),Vs="fade",Gs="show",Ks=".tooltip-inner",Ys=".modal",Xs="hide.bs.modal",Js="hover",Qs="focus",tr="click",er="manual",nr="hide",ir="hidden",or="show",sr="shown",rr="inserted",ar="click",lr="focusin",cr="focusout",hr="mouseenter",ur="mouseleave",dr={AUTO:"auto",TOP:"top",RIGHT:b()?"left":"right",BOTTOM:"bottom",LEFT:b()?"right":"left"},pr={allowList:Ns,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},mr={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class fr extends X{constructor(t,e){if(void 0===zi)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners()}static get Default(){return pr}static get DefaultType(){return mr}static get NAME(){return qs}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);return e._activeTrigger.click=!e._activeTrigger.click,void(e._isWithActiveTrigger()?e._enter():e._leave())}this._isShown()?this._leave():this._enter()}}dispose(){clearTimeout(this._timeout),H.off(this._element.closest(Ys),Xs,this._hideModalHandler),this.tip&&this.tip.remove(),this._config.originalTitle&&this._element.setAttribute("title",this._config.originalTitle),this._disposePopper(),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=H.trigger(this._element,this.constructor.eventName(or)),e=(m(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this.tip&&(this.tip.remove(),this.tip=null);const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),H.trigger(this._element,this.constructor.eventName(rr))),this._popper?this._popper.update():this._popper=this._createPopper(n),n.classList.add(Gs),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))H.on(t,"mouseover",f);const o=()=>{H.trigger(this._element,this.constructor.eventName(sr)),!1===this._isHovered&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(H.trigger(this._element,this.constructor.eventName(nr)).defaultPrevented)return;const t=this._getTipElement();if(t.classList.remove(Gs),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))H.off(t,"mouseover",f);this._activeTrigger[tr]=!1,this._activeTrigger[Qs]=!1,this._activeTrigger[Js]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||t.remove(),this._element.removeAttribute("aria-describedby"),H.trigger(this._element,this.constructor.eventName(ir)),this._disposePopper())};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Vs,Gs),e.classList.add(`bs-${this.constructor.NAME}-auto`);const n=o(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(Vs),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Ws({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Ks]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._config.originalTitle}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Vs)}_isShown(){return this.tip&&this.tip.classList.contains(Gs)}_createPopper(t){const e="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,n=dr[e.toUpperCase()];return Si(this._element,t,this._getPopperConfig(n))}_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}_resolvePossibleFunction(t){return"function"==typeof t?t.call(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:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)H.on(this._element,this.constructor.eventName(ar),this._config.selector,(t=>this.toggle(t)));else if(e!==er){const t=e===Js?this.constructor.eventName(hr):this.constructor.eventName(lr),n=e===Js?this.constructor.eventName(ur):this.constructor.eventName(cr);H.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Qs:Js]=!0,e._enter()})),H.on(this._element,n,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Qs:Js]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},H.on(this._element.closest(Ys),Xs,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._config.originalTitle;t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=G.getDataAttributes(this._element);for(const t of Object.keys(e))Us.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:u(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.originalTitle=this._element.getAttribute("title")||"","number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each((function(){const e=fr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}w(fr);const _r="popover",gr=".popover-header",vr=".popover-body",yr={...fr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},br={...fr.DefaultType,content:"(null|string|element|function)"};class wr extends fr{static get Default(){return yr}static get DefaultType(){return br}static get NAME(){return _r}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[gr]:this._getTitle(),[vr]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=wr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}w(wr);const xr="scrollspy",$r=".bs.scrollspy",Lr=`activate${$r}`,Tr=`click${$r}`,Pr=`load${$r}.data-api`,Mr="dropdown-item",kr="active",Cr='[data-bs-spy="scroll"]',Er="[href]",Ar=".nav, .list-group",Or=".nav-link",Sr=`${Or}, .nav-item > ${Or}, .list-group-item`,zr=".dropdown",Ir=".dropdown-toggle",Dr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Br={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Nr extends X{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Dr}static get DefaultType(){return Br}static get NAME(){return xr}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=u(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(H.off(this._config.target,Tr),H.on(this._config.target,Tr,Er,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const n=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),n=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},i=(this._rootElement||document.documentElement).scrollTop,o=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const s of t){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(s));continue}const t=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&t){if(n(s),!i)return}else o||t||n(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=ut.find(Er,this._config.target);for(const e of t){if(!e.hash||p(e))continue;const t=ut.findOne(e.hash,this._element);d(t)&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(kr),this._activateParents(t),H.trigger(this._element,Lr,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(Mr))ut.findOne(Ir,t.closest(zr)).classList.add(kr);else for(const e of ut.parents(t,Ar))for(const t of ut.prev(e,Sr))t.classList.add(kr)}_clearActiveClass(t){t.classList.remove(kr);const e=ut.find(`${Er}.${kr}`,t);for(const t of e)t.classList.remove(kr)}static jQueryInterface(t){return this.each((function(){const e=Nr.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]()}}))}}H.on(window,Pr,(()=>{for(const t of ut.find(Cr))Nr.getOrCreateInstance(t)})),w(Nr);const Zr="tab",jr=".bs.tab",Rr=`hide${jr}`,Hr=`hidden${jr}`,Fr=`show${jr}`,Wr=`shown${jr}`,qr=`click${jr}`,Ur=`keydown${jr}`,Vr=`load${jr}`,Gr="ArrowLeft",Kr="ArrowRight",Yr="ArrowUp",Xr="ArrowDown",Jr="active",Qr="fade",ta="show",ea="dropdown",na=".dropdown-toggle",ia=".dropdown-menu",oa=".dropdown-item",sa=":not(.dropdown-toggle)",ra='.list-group, .nav, [role="tablist"]',aa=".nav-item, .list-group-item",la='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ca=`.nav-link${sa}, .list-group-item${sa}, [role="tab"]${sa}, ${la}`,ha=`.${Jr}[data-bs-toggle="tab"], .${Jr}[data-bs-toggle="pill"], .${Jr}[data-bs-toggle="list"]`;class ua extends X{constructor(t){super(t),this._parent=this._element.closest(ra),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),H.on(this._element,Ur,(t=>this._keydown(t))))}static get NAME(){return Zr}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),n=e?H.trigger(e,Rr,{relatedTarget:t}):null;H.trigger(t,Fr,{relatedTarget:e}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(Jr),this._activate(a(t));const n=()=>{"tab"===t.getAttribute("role")?(t.focus(),t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),H.trigger(t,Wr,{relatedTarget:e})):t.classList.add(ta)};this._queueCallback(n,t,t.classList.contains(Qr))}_deactivate(t,e){if(!t)return;t.classList.remove(Jr),t.blur(),this._deactivate(a(t));const n=()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),H.trigger(t,Hr,{relatedTarget:e})):t.classList.remove(ta)};this._queueCallback(n,t,t.classList.contains(Qr))}_keydown(t){if(![Gr,Kr,Yr,Xr].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=[Kr,Xr].includes(t.key),n=L(this._getChildren().filter((t=>!p(t))),t.target,e,!0);n&&ua.getOrCreateInstance(n).show()}_getChildren(){return ut.find(ca,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",e),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=a(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`#${t.id}`))}_toggleDropDown(t,e){const n=this._getOuterElement(t);if(!n.classList.contains(ea))return;const i=(t,i)=>{const o=ut.findOne(t,n);o&&o.classList.toggle(i,e)};i(na,Jr),i(ia,ta),i(oa,Jr),n.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,n){t.hasAttribute(e)||t.setAttribute(e,n)}_elemIsActive(t){return t.classList.contains(Jr)}_getInnerElement(t){return t.matches(ca)?t:ut.findOne(ca,t)}_getOuterElement(t){return t.closest(aa)||t}static jQueryInterface(t){return this.each((function(){const e=ua.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}H.on(document,qr,la,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),p(this)||ua.getOrCreateInstance(this).show()})),H.on(window,Vr,(()=>{for(const t of ut.find(ha))ua.getOrCreateInstance(t)})),w(ua);const da="toast",pa=".bs.toast",ma=`mouseover${pa}`,fa=`mouseout${pa}`,_a=`focusin${pa}`,ga=`focusout${pa}`,va=`hide${pa}`,ya=`hidden${pa}`,ba=`show${pa}`,wa=`shown${pa}`,xa="fade",$a="hide",La="show",Ta="showing",Pa={animation:"boolean",autohide:"boolean",delay:"number"},Ma={animation:!0,autohide:!0,delay:5e3};class ka extends X{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Ma}static get DefaultType(){return Pa}static get NAME(){return da}show(){if(H.trigger(this._element,ba).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(xa);const t=()=>{this._element.classList.remove(Ta),H.trigger(this._element,wa),this._maybeScheduleHide()};this._element.classList.remove($a),_(this._element),this._element.classList.add(La,Ta),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown())return;if(H.trigger(this._element,va).defaultPrevented)return;const t=()=>{this._element.classList.add($a),this._element.classList.remove(Ta,La),H.trigger(this._element,ya)};this._element.classList.add(Ta),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(La),super.dispose()}isShown(){return this._element.classList.contains(La)}_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(){H.on(this._element,ma,(t=>this._onInteraction(t,!0))),H.on(this._element,fa,(t=>this._onInteraction(t,!1))),H.on(this._element,_a,(t=>this._onInteraction(t,!0))),H.on(this._element,ga,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=ka.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}J(ka),w(ka)})();const ht=[];function ut(e,n=t){let i;const o=new Set;function s(t){if(r(e,t)&&(e=t,i)){const t=!ht.length;for(const t of o)t[1](),ht.push(t,e);if(t){for(let t=0;t<ht.length;t+=2)ht[t][0](ht[t+1]);ht.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(r,a=t){const l=[r,a];return o.add(l),1===o.size&&(i=n(s)||t),r(e),()=>{o.delete(l),0===o.size&&(i(),i=null)}}}}const dt=ut(),pt=ut(),mt=ut(),ft=ut(),_t=ut(),gt=Nominatim_Config.Reverse_Only?"reverse":"search",vt=[gt,"reverse","details","deletable","polygons","status","about"];function yt(t,e){if(void 0===t)t=window.location.pathname.replace(".html","").replace(/^.*\//,""),vt.includes(t)||(t=gt),e=new URLSearchParams(window.location.search);else{vt.includes(t)||(t=gt),void 0===e&&(e=new URLSearchParams);let n=e.toString();n&&(n="?"+n);let i=t+".html"+n;window.location.protocol.match(/^http/)?window.history.pushState([],"",i):window.location.href=i}_t.set({tab:t,params:e}),mt.set(null),ft.set(null)}function bt(e){let n;return{c(){n=x("footer"),n.innerHTML='<p class="disclaimer svelte-1f2bd8l">Addresses and postcodes are approximate</p> \n  <p class="copyright svelte-1f2bd8l">© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors</p>',E(n,"class","svelte-1f2bd8l")},m(t,e){y(t,n,e)},p:t,i:t,o:t,d(t){t&&b(n)}}}class wt extends lt{constructor(t){super(),at(this,t,null,bt,r,{})}}function xt(t){var e=document.getElementById("loading");e&&(e.style.display="start"===t?"block":null)}async function $t(t,e,n){var i=function(t,e){1===e.dedupe&&delete e.dedupe;return function(t,e){for(var n=Object.keys(e),i=0;i<n.length;i+=1)t[n[i]]=e[n[i]]}(e,Nominatim_Config.Nominatim_API_Endpoint_Params),Pt(t)+"?"+Object.keys(function(t){for(var e=Object.keys(t),n=0;n<e.length;n+=1){var i=t[e[n]];void 0!==i&&""!==i&&null!==i||delete t[e[n]]}return t}(e)).map((t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t]))).join("&")}(t,e),o=new URLSearchParams(window.location.search);o&&o.get("httpbin_status")&&(i="https://httpbin.org/status/"+parseInt(o.get("httpbin_status"),10)),xt("start"),"status"!==t&&mt.set(null);try{await fetch(i,{headers:Nominatim_Config.Nominatim_API_Endpoint_Headers||{}}).then((async t=>{if(t.status>=200&&t.status<300||404===t.status){var e;try{e=await t.json()}catch(t){return void ft.set(`Error parsing JSON data from ${i} (${t})`)}return e}ft.set(`Error fetching data from ${i} (${t.statusText})`)})).then((t=>{t&&(t.error&&ft.set(t.error.message),n(t)),xt("finish")}))}catch(t){ft.set(`Error fetching data from ${i} (${t})`),xt("finish")}"status"!==t&&mt.set(i)}var Lt={};async function Tt(t,e){if(window.location.protocol.match(/^http/))if(Lt[t])e.innerHTML=Lt[t];else try{await fetch(t).then((t=>t.text())).then((n=>{n=n.replace("Nominatim_API_Endpoint",Pt()),e.innerHTML=n,Lt[t]=n}))}catch(n){e.innerHTML=`Error fetching content from ${t} (${n})`}else e.innerHTML=`Cannot display data from ${t} here. Browser security prevents loading content from file:// URLs.`}function Pt(t){var e=Nominatim_Config.Nominatim_API_Endpoint;return"function"==typeof e?e(t):t?e+t+".php":e}function Mt(t){document.title=[t,Nominatim_Config.Page_Title].filter((t=>t&&t.length>1)).join(" | ")}function kt(t){let e,n,i,o;const s=t[6].default,r=p(s,t,t[5],null);return{c(){e=x("a"),r&&r.c(),E(e,"href",t[1]),E(e,"class",t[0])},m(s,a){y(s,e,a),r&&r.m(e,null),n=!0,i||(o=M(e,"click",C(k(t[2]))),i=!0)},p(t,[i]){r&&r.p&&(!n||32&i)&&_(r,s,t,t[5],n?f(s,t[5],i,null):g(t[5]),null),(!n||2&i)&&E(e,"href",t[1]),(!n||1&i)&&E(e,"class",t[0])},i(t){n||(tt(r,t),n=!0)},o(t){et(r,t),n=!1},d(t){t&&b(e),r&&r.d(t),i=!1,o()}}}function Ct(t,e,n){let{$$slots:i={},$$scope:o}=e,{page:s}=e,{params_hash:r={}}=e,{extra_classes:a=""}=e,l=s+".html";return t.$$set=t=>{"page"in t&&n(3,s=t.page),"params_hash"in t&&n(4,r=t.params_hash),"extra_classes"in t&&n(0,a=t.extra_classes),"$$scope"in t&&n(5,o=t.$$scope)},t.$$.update=()=>{if(24&t.$$.dirty){let t=new URLSearchParams(r).toString();n(1,l=s+".html"+(t?"?":"")+t)}},[a,l,function(){yt(s,new URLSearchParams(r))},s,r,o,i]}class Et extends lt{constructor(t){super(),at(this,t,Ct,kt,r,{page:3,params_hash:4,extra_classes:0})}}function At(t){let e,n,i,o;const s=t[7].default,r=p(s,t,t[6],null);return{c(){e=x("a"),r&&r.c(),E(e,"href",t[2]),E(e,"class",t[0])},m(s,a){y(s,e,a),r&&r.m(e,null),n=!0,i||(o=M(e,"click",C(k(t[8]))),i=!0)},p(t,[i]){r&&r.p&&(!n||64&i)&&_(r,s,t,t[6],n?f(s,t[6],i,null):g(t[6]),null),(!n||4&i)&&E(e,"href",t[2]),(!n||1&i)&&E(e,"class",t[0])},i(t){n||(tt(r,t),n=!0)},o(t){et(r,t),n=!1},d(t){t&&b(e),r&&r.d(t),i=!1,o()}}}function Ot(t,e,n){let{$$slots:i={},$$scope:o}=e,{lat:s=null}=e,{lon:r=null}=e,{zoom:a=null}=e,{extra_classes:l=""}=e,c=new URLSearchParams,h="reverse.html";return t.$$set=t=>{"lat"in t&&n(3,s=t.lat),"lon"in t&&n(4,r=t.lon),"zoom"in t&&n(5,a=t.zoom),"extra_classes"in t&&n(0,l=t.extra_classes),"$$scope"in t&&n(6,o=t.$$scope)},t.$$.update=()=>{if(56&t.$$.dirty){let t=new URLSearchParams;s&&r&&(t.set("lat",s),t.set("lon",r),a&&t.set("zoom",a)),n(1,c=t)}if(2&t.$$.dirty){let t=c.toString();n(2,h="reverse.html"+(t?"?":"")+t)}},[l,c,h,s,r,a,o,i,()=>yt("reverse",c)]}class St extends lt{constructor(t){super(),at(this,t,Ot,At,r,{lat:3,lon:4,zoom:5,extra_classes:0})}}var zt=["second","minute","hour","day","week","month","year"];var It=["秒","分钟","小时","天","周","个月","年"];var Dt={},Bt=function(t,e){Dt[t]=e},Nt=[60,60,24,7,365/7/12,12];function Zt(t){return t instanceof Date?t:!isNaN(t)||/^\d+$/.test(t)?new Date(parseInt(t)):(t=(t||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(t))}var jt=function(t,e,n){var i=function(t,e){return(+(e?Zt(e):new Date)-+Zt(t))/1e3}(t,n&&n.relativeDate);return function(t,e){for(var n=t<0?1:0,i=t=Math.abs(t),o=0;t>=Nt[o]&&o<Nt.length;o++)t/=Nt[o];return(t=Math.floor(t))>(0==(o*=2)?9:1)&&(o+=1),e(t,o,i)[n].replace("%s",t.toString())}(i,function(t){return Dt[t]||Dt.en_US}(e))};function Rt(t){let e,n,i,o,s,r,a,l,c,h,u;return{c(){e=x("div"),n=$("Data from "),i=x("a"),o=$("API request"),s=T(),r=x("span"),a=$("("),l=x("a"),c=$("debug output"),u=$(")"),E(i,"href",t[1]),E(l,"href",h=t[1]+"&debug=1"),E(r,"id","api-request-debug"),E(e,"id","api-request")},m(t,h){y(t,e,h),v(e,n),v(e,i),v(i,o),v(e,s),v(e,r),v(r,a),v(r,l),v(l,c),v(r,u)},p(t,e){2&e&&E(i,"href",t[1]),2&e&&h!==(h=t[1]+"&debug=1")&&E(l,"href",h)},d(t){t&&b(e)}}}function Ht(t){let e,n,i,o,s=jt(new Date(t[0]))+"";return{c(){e=$("Data last updated:\n        "),n=x("abbr"),i=$(s),E(n,"id","data-date"),E(n,"title",o=t[0]+" (UTC timezone)")},m(t,o){y(t,e,o),y(t,n,o),v(n,i)},p(t,e){1&e&&s!==(s=jt(new Date(t[0]))+"")&&A(i,s),1&e&&o!==(o=t[0]+" (UTC timezone)")&&E(n,"title",o)},d(t){t&&b(e),t&&b(n)}}}function Ft(t){let e;return{c(){e=$("Details")},m(t,n){y(t,e,n)},d(t){t&&b(e)}}}function Wt(t){let e,n,i,o,s,r,a,l,c,h,u,d=t[1]&&Rt(t),p=t[0]&&Ht(t);return c=new Et({props:{page:"status",$$slots:{default:[Ft]},$$scope:{ctx:t}}}),{c(){e=x("div"),n=x("div"),n.innerHTML='<div class="spinner-border spinner-border-sm text-primary me-1" role="status"></div>\n    Loading data from API ...',i=T(),o=x("div"),s=x("div"),d&&d.c(),r=T(),a=x("div"),p&&p.c(),l=$("\n      ("),it(c.$$.fragment),h=$(")"),E(n,"id","loading"),E(n,"class","py-2 px-4 svelte-1i1228w"),E(s,"class","col-sm-6"),E(a,"class","col-sm-6 text-end"),E(o,"class","row"),E(e,"id","last-updated"),E(e,"class","container-fluid py-2 px-4 mb-3 svelte-1i1228w")},m(t,m){y(t,e,m),v(e,n),v(e,i),v(e,o),v(o,s),d&&d.m(s,null),v(o,r),v(o,a),p&&p.m(a,null),v(a,l),ot(c,a,null),v(a,h),u=!0},p(t,[e]){t[1]?d?d.p(t,e):(d=Rt(t),d.c(),d.m(s,null)):d&&(d.d(1),d=null),t[0]?p?p.p(t,e):(p=Ht(t),p.c(),p.m(a,l)):p&&(p.d(1),p=null);const n={};8&e&&(n.$$scope={dirty:e,ctx:t}),c.$set(n)},i(t){u||(tt(c.$$.fragment,t),u=!0)},o(t){et(c.$$.fragment,t),u=!1},d(t){t&&b(e),d&&d.d(),p&&p.d(),st(c)}}}function qt(t,e,n){let i,o,s=!1;return mt.subscribe((t=>{n(1,o=t),o&&(n(1,o=new URL(o,window.location.origin)),o.searchParams.delete("polygon_geojson"),n(1,o=o.toString())),s||i||(s=!0,$t("status",{format:"json"},(function(t){n(0,i=t.data_updated),s=!1})))})),[i,o]}Bt("en_US",(function(t,e){if(0===e)return["just now","right now"];var n=zt[Math.floor(e/2)];return t>1&&(n+="s"),[t+" "+n+" ago","in "+t+" "+n]})),Bt("zh_CN",(function(t,e){if(0===e)return["刚刚","片刻后"];var n=It[~~(e/2)];return[t+" "+n+"前",t+" "+n+"后"]}));class Ut extends lt{constructor(t){super(),at(this,t,qt,Wt,r,{})}}function Vt(t){let e,n,i,o,s,r;return{c(){e=x("div"),n=$(t[0]),i=T(),o=x("button"),E(o,"type","button"),E(o,"class","btn-close float-end"),E(o,"aria-label","dismiss"),E(e,"id","error"),E(e,"class","container-fluid alert-danger py-3 px-4")},m(a,l){y(a,e,l),v(e,n),v(e,i),v(e,o),s||(r=M(o,"click",t[1]),s=!0)},p(t,e){1&e&&A(n,t[0])},d(t){t&&b(e),s=!1,r()}}}function Gt(e){let n,i=e[0]&&Vt(e);return{c(){i&&i.c(),n=P()},m(t,e){i&&i.m(t,e),y(t,n,e)},p(t,[e]){t[0]?i?i.p(t,e):(i=Vt(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:t,o:t,d(t){i&&i.d(t),t&&b(n)}}}function Kt(t,e,n){let i;return ft.subscribe((t=>{n(0,i=t)})),[i,function(){ft.set(null)}]}class Yt extends lt{constructor(t){super(),at(this,t,Kt,Gt,r,{})}}function Xt(t){let e,n,i,o,s;return{c(){e=x("img"),i=T(),o=x("h1"),s=$(t[3]),E(e,"alt","logo"),E(e,"id","theme-logo"),c(e.src,n="theme/logo.png")||E(e,"src","theme/logo.png"),E(e,"class","svelte-1q88nx"),E(o,"class","svelte-1q88nx")},m(t,n){y(t,e,n),y(t,i,n),y(t,o,n),v(o,s)},p(t,e){8&e&&A(s,t[3])},d(t){t&&b(e),t&&b(i),t&&b(o)}}}function Jt(t){let e,n,i;return n=new Et({props:{page:"search",extra_classes:"nav-link "+("search"===t[4]?"active":""),$$slots:{default:[Qt]},$$scope:{ctx:t}}}),{c(){e=x("li"),it(n.$$.fragment),E(e,"class","nav-item svelte-1q88nx")},m(t,o){y(t,e,o),ot(n,e,null),i=!0},p(t,e){const i={};16&e&&(i.extra_classes="nav-link "+("search"===t[4]?"active":"")),128&e&&(i.$$scope={dirty:e,ctx:t}),n.$set(i)},i(t){i||(tt(n.$$.fragment,t),i=!0)},o(t){et(n.$$.fragment,t),i=!1},d(t){t&&b(e),st(n)}}}function Qt(t){let e;return{c(){e=$("Search")},m(t,n){y(t,e,n)},d(t){t&&b(e)}}}function te(t){let e;return{c(){e=$("Reverse")},m(t,n){y(t,e,n)},d(t){t&&b(e)}}}function ee(t){let e;return{c(){e=$("Search By ID")},m(t,n){y(t,e,n)},d(t){t&&b(e)}}}function ne(t){let e;return{c(){e=$("About & Help")},m(t,n){y(t,e,n)},d(t){t&&b(e)}}}function ie(t){let e,n,i,o,s,r,a,l,c,h,u,d,m,w,L,P,M,k,C,O,S,z,I,D,B,N,Z,j,R,H,F;s=new Et({props:{page:t[2]?"reverse":"search",$$slots:{default:[Xt]},$$scope:{ctx:t}}});let W=!t[2]&&Jt(t);m=new St({props:{lat:t[0],lon:t[1],extra_classes:"nav-link "+("reverse"===t[4]?"active":""),$$slots:{default:[te]},$$scope:{ctx:t}}}),P=new Et({props:{page:"details",extra_classes:"nav-link "+("details"===t[4]?"active":""),$$slots:{default:[ee]},$$scope:{ctx:t}}}),O=new Et({props:{page:"about",extra_classes:"nav-link "+("about"===t[4]?"active":""),$$slots:{default:[ne]},$$scope:{ctx:t}}});const q=t[6].default,U=p(q,t,t[7],null);return j=new Yt({}),H=new Ut({}),{c(){e=x("header"),n=x("nav"),i=x("div"),o=x("div"),it(s.$$.fragment),r=T(),a=x("button"),a.innerHTML='<span class="navbar-toggler-icon"></span>',l=T(),c=x("div"),h=x("ul"),W&&W.c(),u=T(),d=x("li"),it(m.$$.fragment),w=T(),L=x("li"),it(P.$$.fragment),M=T(),k=x("ul"),C=x("li"),it(O.$$.fragment),S=T(),z=x("section"),I=x("h2"),D=$(t[4]),B=T(),N=x("section"),U&&U.c(),Z=T(),it(j.$$.fragment),R=T(),it(H.$$.fragment),E(o,"class","navbar-brand svelte-1q88nx"),E(a,"class","navbar-toggler"),E(a,"type","button"),E(a,"data-bs-toggle","collapse"),E(a,"data-bs-target","#navbarSupportedContent"),E(a,"aria-controls","navbarSupportedContent"),E(a,"aria-expanded","false"),E(a,"aria-label","Toggle navigation"),E(d,"class","nav-item svelte-1q88nx"),E(L,"class","nav-item svelte-1q88nx"),E(h,"class","navbar-nav me-auto"),E(c,"class","collapse navbar-collapse"),E(c,"id","navbarSupportedContent"),E(C,"class","nav-item svelte-1q88nx"),E(k,"class","navbar-nav"),E(i,"class","container-fluid"),E(n,"class","navbar navbar-expand-sm navbar-light"),E(e,"class","container-fluid"),E(z,"class","page-title-section svelte-1q88nx"),E(N,"class","search-section svelte-1q88nx")},m(t,p){y(t,e,p),v(e,n),v(n,i),v(i,o),ot(s,o,null),v(i,r),v(i,a),v(i,l),v(i,c),v(c,h),W&&W.m(h,null),v(h,u),v(h,d),ot(m,d,null),v(h,w),v(h,L),ot(P,L,null),v(i,M),v(i,k),v(k,C),ot(O,C,null),y(t,S,p),y(t,z,p),v(z,I),v(I,D),y(t,B,p),y(t,N,p),U&&U.m(N,null),y(t,Z,p),ot(j,t,p),y(t,R,p),ot(H,t,p),F=!0},p(t,[e]){const n={};4&e&&(n.page=t[2]?"reverse":"search"),136&e&&(n.$$scope={dirty:e,ctx:t}),s.$set(n),t[2]?W&&(J(),et(W,1,1,(()=>{W=null})),Q()):W?(W.p(t,e),4&e&&tt(W,1)):(W=Jt(t),W.c(),tt(W,1),W.m(h,u));const i={};1&e&&(i.lat=t[0]),2&e&&(i.lon=t[1]),16&e&&(i.extra_classes="nav-link "+("reverse"===t[4]?"active":"")),128&e&&(i.$$scope={dirty:e,ctx:t}),m.$set(i);const o={};16&e&&(o.extra_classes="nav-link "+("details"===t[4]?"active":"")),128&e&&(o.$$scope={dirty:e,ctx:t}),P.$set(o);const r={};16&e&&(r.extra_classes="nav-link "+("about"===t[4]?"active":"")),128&e&&(r.$$scope={dirty:e,ctx:t}),O.$set(r),(!F||16&e)&&A(D,t[4]),U&&U.p&&(!F||128&e)&&_(U,q,t,t[7],F?f(q,t[7],e,null):g(t[7]),null)},i(t){F||(tt(s.$$.fragment,t),tt(W),tt(m.$$.fragment,t),tt(P.$$.fragment,t),tt(O.$$.fragment,t),tt(U,t),tt(j.$$.fragment,t),tt(H.$$.fragment,t),F=!0)},o(t){et(s.$$.fragment,t),et(W),et(m.$$.fragment,t),et(P.$$.fragment,t),et(O.$$.fragment,t),et(U,t),et(j.$$.fragment,t),et(H.$$.fragment,t),F=!1},d(t){t&&b(e),st(s),W&&W.d(),st(m),st(P),st(O),t&&b(S),t&&b(z),t&&b(B),t&&b(N),U&&U.d(t),t&&b(Z),st(j,t),t&&b(R),st(H,t)}}}function oe(t,e,n){let i,o,s,r;d(t,_t,(t=>n(5,r=t)));let a,l,{$$slots:c={},$$scope:h}=e;return dt.subscribe((t=>{t&&t.on("move",(function(){n(0,a=t.getCenter().lat),n(1,l=t.getCenter().lng)}))})),t.$$set=t=>{"$$scope"in t&&n(7,h=t.$$scope)},t.$$.update=()=>{32&t.$$.dirty&&n(4,i=r.tab)},n(3,o=Nominatim_Config.Page_Title),n(2,s=Nominatim_Config.Reverse_Only),[a,l,s,o,i,r,c,h]}class se extends lt{constructor(t){super(),at(this,t,oe,ie,r,{})}}function re(t){let e,n,i,o,s;const r=t[3].default,a=p(r,t,t[2],null);return{c(){e=x("form"),n=x("div"),a&&a.c(),E(n,"class","row g-2"),E(e,"class","form-inline"),E(e,"role","search"),E(e,"accept-charset","UTF-8"),E(e,"action","")},m(r,l){y(r,e,l),v(e,n),a&&a.m(n,null),i=!0,o||(s=M(e,"submit",k(t[0])),o=!0)},p(t,[e]){a&&a.p&&(!i||4&e)&&_(a,r,t,t[2],i?f(r,t[2],e,null):g(t[2]),null)},i(t){i||(tt(a,t),i=!0)},o(t){et(a,t),i=!1},d(t){t&&b(e),a&&a.d(t),o=!1,s()}}}function ae(t,e,n){let{$$slots:i={},$$scope:o}=e,{page:s}=e;return t.$$set=t=>{"page"in t&&n(1,s=t.page),"$$scope"in t&&n(2,o=t.$$scope)},[function(t){let e=t.target,n=!0;Array.prototype.slice.call(e.elements).forEach((function(t){(function(t){return!("hidden"===t.type&&t.value.length&&t.pattern&&!t.value.match(t.pattern))&&t.checkValidity()})(t)||(alert("Invalid input in "+t.name),n=!1)})),n&&yt(s,function(t){var e=new URLSearchParams;return Array.prototype.slice.call(t.elements).forEach((function(t){!t.name||t.disabled||["submit","button"].indexOf(t.type)>-1||["checkbox","radio"].indexOf(t.type)>-1&&!t.checked||void 0!==t.value&&""!==t.value&&("dedupe"!==t.name||1!==t.value&&"1"!==t.value)&&e.set(t.name,t.value)})),e}(e))},s,o,i]}class le extends lt{constructor(t){super(),at(this,t,ae,re,r,{page:1})}}function ce(t){let e,n,i,o,s,r,a,l,c,h,u,d,p,m,f,_,g,w,$,L,P,M,k,C,A,O,S;return{c(){e=x("div"),n=x("input"),o=T(),s=x("div"),r=x("button"),r.textContent="Search",a=T(),l=x("input"),h=T(),u=x("input"),p=T(),m=x("input"),_=T(),g=x("input"),$=T(),L=x("input"),M=T(),k=x("input"),A=T(),O=x("input"),E(n,"id","q"),E(n,"name","q"),E(n,"type","text"),E(n,"class","form-control form-control-sm svelte-1u2ltgo"),E(n,"placeholder","Search"),n.value=i=t[1].q||"",E(e,"class","col-auto"),E(r,"type","submit"),E(r,"class","btn btn-primary btn-sm mx-1"),E(l,"type","hidden"),E(l,"name","viewbox"),l.value=c=t[2]||"",E(u,"type","hidden"),E(u,"name","dedupe"),u.value=d=0===t[1].dedupe?0:1,E(m,"type","hidden"),E(m,"name","bounded"),m.value=f=t[1].bounded?1:"",E(g,"type","hidden"),E(g,"name","accept-language"),g.value=w=t[1]["accept-language"]||"",E(L,"type","hidden"),E(L,"name","countrycodes"),L.value=P=t[1].countrycodes||"",E(L,"pattern","^[a-zA-Z]{2}(,[a-zA-Z]{2})*$"),E(k,"type","hidden"),E(k,"name","limit"),k.value=C=t[1].limit||"",E(O,"type","hidden"),E(O,"name","polygon_threshold"),O.value=S=t[1].polygon_threshold||"",E(s,"class","col-auto")},m(t,i){y(t,e,i),v(e,n),y(t,o,i),y(t,s,i),v(s,r),v(s,a),v(s,l),v(s,h),v(s,u),v(s,p),v(s,m),v(s,_),v(s,g),v(s,$),v(s,L),v(s,M),v(s,k),v(s,A),v(s,O)},p(t,e){2&e&&i!==(i=t[1].q||"")&&n.value!==i&&(n.value=i),4&e&&c!==(c=t[2]||"")&&(l.value=c),2&e&&d!==(d=0===t[1].dedupe?0:1)&&(u.value=d),2&e&&f!==(f=t[1].bounded?1:"")&&(m.value=f),2&e&&w!==(w=t[1]["accept-language"]||"")&&(g.value=w),2&e&&P!==(P=t[1].countrycodes||"")&&(L.value=P),2&e&&C!==(C=t[1].limit||"")&&(k.value=C),2&e&&S!==(S=t[1].polygon_threshold||"")&&(O.value=S)},d(t){t&&b(e),t&&b(o),t&&b(s)}}}function he(t){let e,n,i,o,s,r,a,l,c,h,u,d,p,m,f,_,g,w,$,L,P,M,k,C,A,O,S,z,I,D,B,N,Z,j,R,H,F,W,q,U,V,G,K,Y,X,J,Q;return{c(){e=x("div"),n=x("input"),o=T(),s=x("div"),r=x("input"),l=T(),c=x("div"),h=x("input"),d=T(),p=x("div"),m=x("input"),_=T(),g=x("div"),w=x("input"),L=T(),P=x("div"),M=x("input"),C=T(),A=x("div"),O=x("button"),O.textContent="Search",S=T(),z=x("input"),D=T(),B=x("input"),Z=T(),j=x("input"),H=T(),F=x("input"),q=T(),U=x("input"),G=T(),K=x("input"),X=T(),J=x("input"),E(n,"name","street"),E(n,"type","text"),E(n,"class","form-control form-control-sm me-1"),E(n,"placeholder","House number/Street"),n.value=i=t[1].street||"",E(e,"class","col-auto"),E(r,"name","city"),E(r,"type","text"),E(r,"class","form-control form-control-sm me-1"),E(r,"placeholder","City"),r.value=a=t[1].city||"",E(s,"class","col-auto"),E(h,"id","county"),E(h,"name","county"),E(h,"type","text"),E(h,"class","form-control form-control-sm me-1"),E(h,"placeholder","County"),h.value=u=t[1].county||"",E(c,"class","col-auto"),E(m,"name","state"),E(m,"type","text"),E(m,"class","form-control form-control-sm me-1"),E(m,"placeholder","State"),m.value=f=t[1].state||"",E(p,"class","col-auto"),E(w,"name","country"),E(w,"type","text"),E(w,"class","form-control form-control-sm me-1"),E(w,"placeholder","Country"),w.value=$=t[1].country||"",E(g,"class","col-auto"),E(M,"name","postalcode"),E(M,"type","text"),E(M,"class","form-control form-control-sm me-1"),E(M,"placeholder","Postal Code"),M.value=k=t[1].postalcode||"",E(P,"class","col-auto"),E(O,"type","submit"),E(O,"class","btn btn-primary btn-sm"),E(z,"type","hidden"),E(z,"name","viewbox"),z.value=I=t[2]||"",E(B,"type","hidden"),E(B,"name","dedupe"),B.value=N=0===t[1].dedupe?0:1,E(j,"type","hidden"),E(j,"name","bounded"),j.value=R=t[1].bounded?1:"",E(F,"type","hidden"),E(F,"name","accept-language"),F.value=W=t[1]["accept-language"]||"",E(U,"type","hidden"),E(U,"name","countrycodes"),U.value=V=t[1].countrycodes||"",E(U,"pattern","^[a-zA-Z]{2}(,[a-zA-Z]{2})*$"),E(K,"type","hidden"),E(K,"name","limit"),K.value=Y=t[1].limit||"",E(J,"type","hidden"),E(J,"name","polygon_threshold"),J.value=Q=t[1].polygon_threshold||"",E(A,"class","col-auto")},m(t,i){y(t,e,i),v(e,n),y(t,o,i),y(t,s,i),v(s,r),y(t,l,i),y(t,c,i),v(c,h),y(t,d,i),y(t,p,i),v(p,m),y(t,_,i),y(t,g,i),v(g,w),y(t,L,i),y(t,P,i),v(P,M),y(t,C,i),y(t,A,i),v(A,O),v(A,S),v(A,z),v(A,D),v(A,B),v(A,Z),v(A,j),v(A,H),v(A,F),v(A,q),v(A,U),v(A,G),v(A,K),v(A,X),v(A,J)},p(t,e){2&e&&i!==(i=t[1].street||"")&&n.value!==i&&(n.value=i),2&e&&a!==(a=t[1].city||"")&&r.value!==a&&(r.value=a),2&e&&u!==(u=t[1].county||"")&&h.value!==u&&(h.value=u),2&e&&f!==(f=t[1].state||"")&&m.value!==f&&(m.value=f),2&e&&$!==($=t[1].country||"")&&w.value!==$&&(w.value=$),2&e&&k!==(k=t[1].postalcode||"")&&M.value!==k&&(M.value=k),4&e&&I!==(I=t[2]||"")&&(z.value=I),2&e&&N!==(N=0===t[1].dedupe?0:1)&&(B.value=N),2&e&&R!==(R=t[1].bounded?1:"")&&(j.value=R),2&e&&W!==(W=t[1]["accept-language"]||"")&&(F.value=W),2&e&&V!==(V=t[1].countrycodes||"")&&(U.value=V),2&e&&Y!==(Y=t[1].limit||"")&&(K.value=Y),2&e&&Q!==(Q=t[1].polygon_threshold||"")&&(J.value=Q)},d(t){t&&b(e),t&&b(o),t&&b(s),t&&b(l),t&&b(c),t&&b(d),t&&b(p),t&&b(_),t&&b(g),t&&b(L),t&&b(P),t&&b(C),t&&b(A)}}}function ue(t){let e,n,i,s,r,a,l,c,h,u,d,p,m,f,_,g,w,$,L,P,k,C,A,O,S,I,D,B,N,Z,j,R,H,F,W,q,U,V,G,K,Y,X,J,Q,nt,rt,at,lt,ct,ht,ut,dt,pt,mt,ft,_t,gt,vt,yt,bt,wt,xt,$t,Lt,Tt;return u=new le({props:{page:"search",$$slots:{default:[ce]},$$scope:{ctx:t}}}),m=new le({props:{page:"search",$$slots:{default:[he]},$$scope:{ctx:t}}}),{c(){e=x("ul"),n=x("li"),i=x("a"),i.textContent="Simple",s=T(),r=x("li"),a=x("a"),a.textContent="Structured",l=T(),c=x("div"),h=x("div"),it(u.$$.fragment),d=T(),p=x("div"),it(m.$$.fragment),f=T(),_=x("details"),g=x("summary"),g.innerHTML="<small>Advanced options</small>",w=T(),$=x("ul"),L=x("li"),P=x("div"),k=x("label"),k.textContent="apply viewbox",C=T(),A=x("input"),S=T(),I=x("li"),D=x("div"),B=x("label"),B.textContent="bounded to viewbox",N=T(),Z=x("input"),R=T(),H=x("li"),F=x("div"),W=x("label"),W.textContent="deduplicate results",q=T(),U=x("input"),G=T(),K=x("li"),Y=x("label"),Y.textContent="Maximum number of results",X=T(),J=x("input"),nt=T(),rt=x("li"),at=x("label"),at.textContent="Polygon simplification",lt=T(),ct=x("input"),ut=T(),dt=x("li"),pt=x("label"),pt.textContent="Languages",mt=T(),ft=x("input"),gt=T(),vt=x("li"),yt=x("label"),yt.textContent="Country Codes",bt=T(),wt=x("input"),E(i,"class","nav-link svelte-1u2ltgo"),E(i,"data-bs-toggle","tab"),E(i,"href","#simple"),z(i,"active",!t[0]),E(n,"class","nav-item"),E(a,"class","nav-link svelte-1u2ltgo"),E(a,"data-bs-toggle","tab"),E(a,"href","#structured"),z(a,"active",t[0]),E(r,"class","nav-item"),E(e,"class","nav nav-tabs svelte-1u2ltgo"),E(h,"class","tab-pane"),E(h,"id","simple"),E(h,"role","tabpanel"),z(h,"active",!t[0]),E(p,"class","tab-pane"),E(p,"id","structured"),E(p,"role","tabpanel"),z(p,"active",t[0]),E(c,"class","tab-content py-2"),E(k,"class","form-check-label svelte-1u2ltgo"),E(k,"for","use_viewbox"),E(A,"type","checkbox"),E(A,"class","form-check-input api-param-setting"),E(A,"id","use_viewbox"),A.checked=O=t[1].viewbox,E(P,"class","form-check form-check-inline"),E(L,"class","svelte-1u2ltgo"),E(B,"class","form-check-label svelte-1u2ltgo"),E(B,"for","option_bounded"),E(Z,"type","checkbox"),E(Z,"class","form-check-input api-param-setting"),E(Z,"id","option_bounded"),Z.checked=j=!!t[1].bounded,E(D,"class","form-check form-check-inline"),E(I,"class","svelte-1u2ltgo"),E(W,"class","form-check-label svelte-1u2ltgo"),E(W,"for","option_dedupe"),E(U,"type","checkbox"),E(U,"class","form-check-input api-param-setting"),E(U,"id","option_dedupe"),U.checked=V=0===t[1].dedupe?0:1,E(F,"class","form-check form-check-inline"),E(H,"class","svelte-1u2ltgo"),E(Y,"for","option_limit"),E(Y,"class","svelte-1u2ltgo"),E(J,"type","number"),E(J,"class","form-control form-control-sm d-inline w-auto api-param-setting"),E(J,"data-api-param","limit"),E(J,"id","option_limit"),E(J,"min","1"),E(J,"max","50"),J.value=Q=t[1].limit||"",E(K,"class","svelte-1u2ltgo"),E(at,"for","option_polygon_threshold"),E(at,"class","svelte-1u2ltgo"),E(ct,"type","number"),E(ct,"class","form-control form-control-sm d-inline w-auto api-param-setting"),E(ct,"data-api-param","polygon_threshold"),E(ct,"id","option_polygon_threshold"),E(ct,"min","0.0"),E(ct,"max","1.0"),E(ct,"step","0.001"),ct.value=ht=t[1].polygon_threshold||"",E(rt,"class","svelte-1u2ltgo"),E(pt,"for","accept_lang"),E(pt,"class","svelte-1u2ltgo"),E(ft,"type","text"),E(ft,"placeholder","e.g. en,zh-Hant"),E(ft,"class","form-control form-control-sm d-inline w-auto api-param-setting"),E(ft,"data-api-param","accept-language"),E(ft,"id","accept_lang"),E(ft,"size","15"),ft.value=_t=t[1]["accept-language"]||"",E(dt,"class","svelte-1u2ltgo"),E(yt,"for","option_ccode"),E(yt,"class","svelte-1u2ltgo"),E(wt,"type","text"),E(wt,"placeholder","e.g. de,gb"),E(wt,"class","form-control form-control-sm d-inline w-auto api-param-setting"),E(wt,"data-api-param","countrycodes"),E(wt,"id","option_ccode"),E(wt,"size","15"),wt.value=xt=t[1].countrycodes||"",E(wt,"pattern","^[a-zA-Z]{2}(,[a-zA-Z]{2})*$"),E(vt,"class","svelte-1u2ltgo"),E($,"class","svelte-1u2ltgo"),E(_,"id","searchAdvancedOptions"),E(_,"class","svelte-1u2ltgo")},m(o,b){y(o,e,b),v(e,n),v(n,i),v(e,s),v(e,r),v(r,a),y(o,l,b),y(o,c,b),v(c,h),ot(u,h,null),v(c,d),v(c,p),ot(m,p,null),y(o,f,b),y(o,_,b),v(_,g),v(_,w),v(_,$),v($,L),v(L,P),v(P,k),v(P,C),v(P,A),v($,S),v($,I),v(I,D),v(D,B),v(D,N),v(D,Z),v($,R),v($,H),v(H,F),v(F,W),v(F,q),v(F,U),v($,G),v($,K),v(K,Y),v(K,X),v(K,J),v($,nt),v($,rt),v(rt,at),v(rt,lt),v(rt,ct),v($,ut),v($,dt),v(dt,pt),v(dt,mt),v(dt,ft),v($,gt),v($,vt),v(vt,yt),v(vt,bt),v(vt,wt),$t=!0,Lt||(Tt=[M(A,"change",t[3]),M(Z,"change",de),M(U,"change",pe),M(J,"change",me),M(ct,"change",me),M(ft,"change",me),M(wt,"change",me)],Lt=!0)},p(t,[e]){(!$t||1&e)&&z(i,"active",!t[0]),(!$t||1&e)&&z(a,"active",t[0]);const n={};262&e&&(n.$$scope={dirty:e,ctx:t}),u.$set(n),(!$t||1&e)&&z(h,"active",!t[0]);const o={};262&e&&(o.$$scope={dirty:e,ctx:t}),m.$set(o),(!$t||1&e)&&z(p,"active",t[0]),(!$t||2&e&&O!==(O=t[1].viewbox))&&(A.checked=O),(!$t||2&e&&j!==(j=!!t[1].bounded))&&(Z.checked=j),(!$t||2&e&&V!==(V=0===t[1].dedupe?0:1))&&(U.checked=V),(!$t||2&e&&Q!==(Q=t[1].limit||"")&&J.value!==Q)&&(J.value=Q),(!$t||2&e&&ht!==(ht=t[1].polygon_threshold||"")&&ct.value!==ht)&&(ct.value=ht),(!$t||2&e&&_t!==(_t=t[1]["accept-language"]||"")&&ft.value!==_t)&&(ft.value=_t),(!$t||2&e&&xt!==(xt=t[1].countrycodes||"")&&wt.value!==xt)&&(wt.value=xt)},i(t){$t||(tt(u.$$.fragment,t),tt(m.$$.fragment,t),$t=!0)},o(t){et(u.$$.fragment,t),et(m.$$.fragment,t),$t=!1},d(t){t&&b(e),t&&b(l),t&&b(c),st(u),st(m),t&&b(f),t&&b(_),Lt=!1,o(Tt)}}}function de(t){document.querySelector("input[name=bounded]").value=t.target.checked?1:""}function pe(t){document.querySelector("input[name=dedupe]").value=t.target.checked?1:0}function me(t){document.querySelector("input[name="+t.target.dataset.apiParam+"]").value=t.target.value}function fe(t,e,n){let i,{bStructuredSearch:o=!1}=e,{api_request_params:s={}}=e;function r(t){let e=document.getElementById("use_viewbox");e&&e.checked?n(2,i=function(t){var e=t.getBounds(),n=e.getWest(),i=e.getEast();return i-n>=360&&(n=t.getCenter().lng-179.999,i=t.getCenter().lng+179.999),i=L.latLng(77,i).wrap().lng,[(n=L.latLng(77,n).wrap().lng).toFixed(5),e.getNorth().toFixed(5),i.toFixed(5),e.getSouth().toFixed(5)].join(",")}(t)):n(2,i="")}function a(t){let e=t.wrapLatLng(t.getCenter());e.lat.toFixed(5),e.lng.toFixed(5)}return dt.subscribe((t=>{t&&(t.on("move",(function(){r(t),a(t)})),t.on("load",(function(){r(t),a(t)})))})),t.$$set=t=>{"bStructuredSearch"in t&&n(0,o=t.bStructuredSearch),"api_request_params"in t&&n(1,s=t.api_request_params)},[o,s,i,function(){let t=u(dt);t&&r(t)}]}class _e extends lt{constructor(t){super(),at(this,t,fe,ue,r,{bStructuredSearch:0,api_request_params:1})}}
 /*!
      * escape-html
      * Copyright(c) 2012-2013 TJ Holowaychuk
      * Copyright(c) 2015 Andreas Lubbe
      * Copyright(c) 2015 Tiancheng "Timothy" Gu
      * MIT Licensed
-     */var de=/["'&<>]/,fe=function(t){var e,n=""+t,i=de.exec(n);if(!i)return n;var o="",r=0,s=0;for(r=i.index;r<n.length;r++){switch(n.charCodeAt(r)){case 34:e="&quot;";break;case 38:e="&amp;";break;case 39:e="&#39;";break;case 60:e="&lt;";break;case 62:e="&gt;";break;default:continue}s!==r&&(o+=n.substring(s,r)),s=r+1,o+=e}return s!==r?o+n.substring(s,r):o};var pe=Le,me=function(t){if(!t.osm_type)return"";var e=Le(t.osm_type,!1);return e?'<a href="https://www.openstreetmap.org/'+e+"/"+t.osm_id+'">'+e+" "+t.osm_id+"</a>":""},ge=function(t){if(t.label)return t.label;function e(t){return t&&t[0].toUpperCase()+t.slice(1)}if(t.type&&"yes"===t.type&&t.class)return e(t.class.replace(/_/g," "));if(t.type)return e(t.type.replace(/_/g," "));return""},_e=function(t){if(!t.calculated_wikipedia)return"";var e=t.calculated_wikipedia.split(":",2),n=fe(t.calculated_wikipedia),i=fe(e[0]),o=fe(e[1]);return'<a href="https://'+i+".wikipedia.org/wiki/"+o+'" target="_blank">'+n+"</a>"},ve=function(t){return t.isarea?"Polygon":"Point"},ye=function(t){return"boundary"===t.category&&"administrative"===t.type},be=function(t){return t<4?"other":t<6?"country":t<8?"region":t<10?"state":t<12?"state district":t<14?"county":t<16?"municipality":t<18?"city / town / village":t<20?"city / village district":t<22?"suburb / hamlet":t<24?"neighbourhood":t<26?"city block / square":26===t?"major street":27===t?"minory street / path":t<=30?"house / building":"other"},xe=function(t){var e=t.class+":"+t.type;t.type&&"administrative"===t.type&&t.place_type&&(e=e+" ("+t.place_type+")");return fe(e)},we=function(t){return t&&t<15?t:""},Te=function(t,e){if(e){if(t<1)return"0";var n=t>=1e3?Math.round(t/1e3,1)+" km":Math.round(t,0)+" m";return'<abbr class="distance" title="'+t+' meters">~'+n+"</abbr>"}return 0===t?"0":'<abbr class="distance" title="spheric distance '+t+'">~'+Math.round(1e3*t,4)/1e3+"</abbr>"},Ce=function(t){return(" "===t[0]?"*":"")+fe(t)},Ee=function(){return["Continent / Sea","","","Country","","State","Region","","County","","City","","Town / Village","","Suburb","","Street","","Building","","",""]};function Le(t,e){return"N"===t?"node":"W"===t?"way":"R"===t?"relation":e&&("T"===t||"I"===t)?"way":""}function $e(t){let e,n,i,o;const r=t[6].default,s=c(r,t,t[5],null);return{c(){e=_("a"),s&&s.c(),C(e,"href",t[1]),C(e,"class",t[0])},m(r,a){p(r,e,a),s&&s.m(e,null),n=!0,i||(o=x(e,"click",T(w(t[2]))),i=!0)},p(t,[i]){s&&s.p&&32&i&&d(s,r,t,t[5],i,null,null),(!n||2&i)&&C(e,"href",t[1]),(!n||1&i)&&C(e,"class",t[0])},i(t){n||(Y(s,t),n=!0)},o(t){X(s,t),n=!1},d(t){t&&m(e),s&&s.d(t),i=!1,o()}}}function ke(t,e,n){let{$$slots:i={},$$scope:o}=e,{extra_classes:r=""}=e,{feature:s=null}=e,a=new URLSearchParams,l="details.html";return t.$$set=t=>{"extra_classes"in t&&n(0,r=t.extra_classes),"feature"in t&&n(3,s=t.feature),"$$scope"in t&&n(5,o=t.$$scope)},t.$$.update=()=>{if(8&t.$$.dirty){let t=new URLSearchParams;null!==s&&(s.osm_type?(1===s.osm_type.length?t.set("osmtype",s.osm_type):t.set("osmtype","node"===(e=s.osm_type)?"N":"way"===e?"W":"relation"===e?"R":""),t.set("osmid",s.osm_id),s.class?t.set("class",s.class):s.category&&t.set("class",s.category)):s.place_id&&t.set("place_id",s.place_id)),n(4,a=t)}var e;if(16&t.$$.dirty){let t=a.toString();n(1,l="details.html"+(t?"?":"")+t)}},[r,l,function(){gt("details",a)},s,a,o,i]}class Pe extends ot{constructor(t){super(),it(this,t,ke,$e,s,{extra_classes:0,feature:3})}}function Se(e){let n;return{c(){n=_("div"),C(n,"id","welcome")},m(t,e){p(t,n,e)},p:t,i:t,o:t,d(t){t&&m(n)}}}function Me(t){return N((()=>{wt("theme/welcome.html",document.getElementById("welcome"))})),[]}class Ae extends ot{constructor(t){super(),it(this,t,Me,Se,s,{})}}function Ne(e){let n,i=e[0]&&function(e){let n,i;return{c(){n=_("img"),C(n,"class","mapicon svelte-180cawe"),n.src!==(i=e[2])&&C(n,"src",i),C(n,"alt",e[1])},m(t,e){p(t,n,e)},p:t,d(t){t&&m(n)}}}(e);return{c(){i&&i.c(),n=b()},m(t,e){i&&i.m(t,e),p(t,n,e)},p(t,[e]){t[0]&&i.p(t,e)},i:t,o:t,d(t){i&&i.d(t),t&&m(n)}}}function De(t,e,n){let{aPlace:i}=e,o=(r=i.category,s=i.type,{"boundary:administrative":"poi_boundary_administrative","place:city":"poi_place_city","place:town":"poi_place_town","place:village":"poi_place_village","place:hamlet":"poi_place_village","place:suburb":"poi_place_village","place:locality":"poi_place_village","place:airport":"transport_airport2","aeroway:aerodrome":"transport_airport2","railway:station":"transport_train_station2","amenity:place_of_worship":"place_of_worship_unknown3","amenity:pub":"food_pub","amenity:bar":"food_bar","amenity:university":"education_university","tourism:museum":"tourist_museum","amenity:arts_centre":"tourist_art_gallery2","tourism:zoo":"tourist_zoo","tourism:theme_park":"poi_point_of_interest","tourism:attraction":"poi_point_of_interest","leisure:golf_course":"sport_golf","historic:castle":"tourist_castle","amenity:hospital":"health_hospital","amenity:school":"education_school","amenity:theatre":"tourist_theatre","amenity:library":"amenity_library","amenity:fire_station":"amenity_firestation3","amenity:police":"amenity_police2","amenity:bank":"money_bank2","amenity:post_office":"amenity_post_office","tourism:hotel":"accommodation_hotel2","amenity:cinema":"tourist_cinema","tourism:artwork":"tourist_art_gallery2","historic:archaeological_site":"tourist_archaeological2","amenity:doctors":"health_doctors","leisure:sports_centre":"sport_leisure_centre","leisure:swimming_pool":"sport_swimming_outdoor","shop:supermarket":"shopping_supermarket","shop:convenience":"shopping_convenience","amenity:restaurant":"food_restaurant","amenity:fast_food":"food_fastfood","amenity:cafe":"food_cafe","tourism:guest_house":"accommodation_bed_and_breakfast","amenity:pharmacy":"health_pharmacy_dispensing","amenity:fuel":"transport_fuel","natural:peak":"poi_peak","natural:wood":"landuse_coniferous_and_deciduous","shop:bicycle":"shopping_bicycle","shop:clothes":"shopping_clothes","shop:hairdresser":"shopping_hairdresser","shop:doityourself":"shopping_diy","shop:estate_agent":"shopping_estateagent2","shop:car":"shopping_car","shop:garden_centre":"shopping_garden_centre","shop:car_repair":"shopping_car_repair","shop:bakery":"shopping_bakery","shop:butcher":"shopping_butcher","shop:apparel":"shopping_clothes","shop:laundry":"shopping_laundrette","shop:beverages":"shopping_alcohol","shop:alcohol":"shopping_alcohol","shop:optician":"health_opticians","shop:chemist":"health_pharmacy","shop:gallery":"tourist_art_gallery2","shop:jewelry":"shopping_jewelry","tourism:information":"amenity_information","historic:ruins":"tourist_ruin","amenity:college":"education_school","historic:monument":"tourist_monument","historic:memorial":"tourist_monument","historic:mine":"poi_mine","tourism:caravan_site":"accommodation_caravan_park","amenity:bus_station":"transport_bus_station","amenity:atm":"money_atm2","tourism:viewpoint":"tourist_view_point","tourism:guesthouse":"accommodation_bed_and_breakfast","railway:tram":"transport_tram_stop","amenity:courthouse":"amenity_court","amenity:recycling":"amenity_recycling","amenity:dentist":"health_dentist","natural:beach":"tourist_beach","railway:tram_stop":"transport_tram_stop","amenity:prison":"amenity_prison","highway:bus_stop":"transport_bus_stop2"}[r+":"+s]);var r,s;let a="icon for "+i.category+" "+i.type,l=Nominatim_Config.Images_Base_Url+o+".p.20.png";return t.$$set=t=>{"aPlace"in t&&n(3,i=t.aPlace)},[o,a,l,i]}class Ie extends ot{constructor(t){super(),it(this,t,De,Ne,s,{aPlace:3})}}function Oe(t,e,n){const i=t.slice();return i[6]=e[n],i[8]=n,i}function ze(e){let n,i;return n=new Ae({}),{c(){J(n.$$.fragment)},m(t,e){tt(n,t,e),i=!0},p:t,i(t){i||(Y(n.$$.fragment,t),i=!0)},o(t){X(n.$$.fragment,t),i=!1},d(t){et(n,t)}}}function je(e){let n;function i(t,e){return t[0]?Ze:Re}let o=i(e),r=o(e);return{c(){r.c(),n=b()},m(t,e){r.m(t,e),p(t,n,e)},p(t,e){o!==(o=i(t))&&(r.d(1),r=o(t),r&&(r.c(),r.m(n.parentNode,n)))},i:t,o:t,d(t){r.d(t),t&&m(n)}}}function Be(t){let e,n,i,o=t[1],r=[];for(let e=0;e<o.length;e+=1)r[e]=qe(Oe(t,o,e));const s=t=>X(r[t],1,1,(()=>{r[t]=null}));let a=t[3]&&!t[0]&&Fe(t);return{c(){e=_("div");for(let t=0;t<r.length;t+=1)r[t].c();n=y(),a&&a.c(),C(e,"id","searchresults")},m(t,o){p(t,e,o);for(let t=0;t<r.length;t+=1)r[t].m(e,null);f(e,n),a&&a.m(e,null),i=!0},p(t,i){if(22&i){let a;for(o=t[1],a=0;a<o.length;a+=1){const s=Oe(t,o,a);r[a]?(r[a].p(s,i),Y(r[a],1)):(r[a]=qe(s),r[a].c(),Y(r[a],1),r[a].m(e,n))}for(G(),a=o.length;a<r.length;a+=1)s(a);K()}t[3]&&!t[0]?a?a.p(t,i):(a=Fe(t),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i(t){if(!i){for(let t=0;t<o.length;t+=1)Y(r[t]);i=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)X(r[t]);i=!1},d(t){t&&m(e),g(r,t),a&&a.d()}}}function Re(t){let e;return{c(){e=_("div"),e.textContent="No search results found",C(e,"class","noresults svelte-5fm7ib")},m(t,n){p(t,e,n)},d(t){t&&m(e)}}}function Ze(t){let e;return{c(){e=_("div"),e.textContent="Search for coordinates or click anywhere on the map.",C(e,"id","intro"),C(e,"class","sidebar")},m(t,n){p(t,e,n)},d(t){t&&m(e)}}}function He(t){let e;return{c(){e=v("details")},m(t,n){p(t,e,n)},d(t){t&&m(e)}}}function qe(t){let e,n,i,o,r,s,a,l,u,c,h,d,g,b,w,L,$,k,S,M=t[6].display_name+"",A=ge(t[6])+"",N=t[6].lat+"",D=t[6].lon+"";return i=new Ie({props:{aPlace:t[6]}}),L=new Pe({props:{extra_classes:"btn btn-outline-secondary btn-sm",feature:t[6],$$slots:{default:[He]},$$scope:{ctx:t}}}),{c(){var f,p,m;e=_("div"),n=_("div"),J(i.$$.fragment),o=y(),r=_("span"),s=v(M),a=y(),l=_("span"),u=v(A),c=y(),h=_("p"),d=v(N),g=v(","),b=v(D),w=y(),J(L.$$.fragment),f="float",p="right",n.style.setProperty(f,p,m?"important":""),C(r,"class","name"),C(l,"class","type svelte-5fm7ib"),C(h,"class","coords svelte-5fm7ib"),C(e,"class","result svelte-5fm7ib"),C(e,"data-position",t[8]),P(e,"highlight",t[8]===t[2])},m(m,_){p(m,e,_),f(e,n),tt(i,n,null),f(e,o),f(e,r),f(r,s),f(e,a),f(e,l),f(l,u),f(e,c),f(e,h),f(h,d),f(h,g),f(h,b),f(e,w),tt(L,e,null),$=!0,k||(S=x(e,"click",T(t[4])),k=!0)},p(t,n){const o={};2&n&&(o.aPlace=t[6]),i.$set(o),(!$||2&n)&&M!==(M=t[6].display_name+"")&&E(s,M),(!$||2&n)&&A!==(A=ge(t[6])+"")&&E(u,A),(!$||2&n)&&N!==(N=t[6].lat+"")&&E(d,N),(!$||2&n)&&D!==(D=t[6].lon+"")&&E(b,D);const r={};2&n&&(r.feature=t[6]),512&n&&(r.$$scope={dirty:n,ctx:t}),L.$set(r),4&n&&P(e,"highlight",t[8]===t[2])},i(t){$||(Y(i.$$.fragment,t),Y(L.$$.fragment,t),$=!0)},o(t){X(i.$$.fragment,t),X(L.$$.fragment,t),$=!1},d(t){t&&m(e),et(i),et(L),k=!1,S()}}}function Fe(t){let e,n,i;return{c(){e=_("div"),n=_("a"),i=v("Search for more results"),C(n,"class","btn btn-primary"),C(n,"href",t[3]),C(e,"class","more svelte-5fm7ib")},m(t,o){p(t,e,o),f(e,n),f(n,i)},p(t,e){8&e&&C(n,"href",t[3])},d(t){t&&m(e)}}}function We(t){let e,n,i,o;const r=[Be,je,ze],s=[];function a(t,e){return t[1]&&t[1].length>0?0:t[1]?1:2}return e=a(t),n=s[e]=r[e](t),{c(){n.c(),i=b()},m(t,n){s[e].m(t,n),p(t,i,n),o=!0},p(t,[o]){let l=e;e=a(t),e===l?s[e].p(t,o):(G(),X(s[l],1,1,(()=>{s[l]=null})),K(),n=s[e],n?n.p(t,o):(n=s[e]=r[e](t),n.c()),Y(n,1),n.m(i.parentNode,i))},i(t){o||(Y(n),o=!0)},o(t){X(n),o=!1},d(t){s[e].d(t),t&&m(i)}}}function Ue(t,e,n){let i,o,r,{reverse_search:s=!1}=e,{current_result:a=null}=e;return ht.subscribe((t=>{if(!t)return;n(1,i=t),n(2,o=0),n(5,a=i[0]);let e=new URLSearchParams(window.location.search),s=t;var l=[];e.has("exclude_place_ids")&&(l=e.get("exclude_place_ids").split(","));for(var u=0;u<s.length;u+=1)l.push(s[u].place_id);var c=new URLSearchParams(window.location.search);c.set("exclude_place_ids",l.join(",")),n(3,r="?"+c.toString())})),t.$$set=t=>{"reverse_search"in t&&n(0,s=t.reverse_search),"current_result"in t&&n(5,a=t.current_result)},[s,i,o,r,function(t){let e=t.target;e.className.match("result")||(e=e.parentElement);let r=Number(e.dataset.position);n(5,a=i[r]),n(2,o=r)},a]}class Ve extends ot{constructor(t){super(),it(this,t,Ue,We,s,{reverse_search:0,current_result:5})}}
+     */var ge=/["'&<>]/,ve=function(t){var e,n=""+t,i=ge.exec(n);if(!i)return n;var o="",s=0,r=0;for(s=i.index;s<n.length;s++){switch(n.charCodeAt(s)){case 34:e="&quot;";break;case 38:e="&amp;";break;case 39:e="&#39;";break;case 60:e="&lt;";break;case 62:e="&gt;";break;default:continue}r!==s&&(o+=n.substring(r,s)),r=s+1,o+=e}return r!==s?o+n.substring(r,s):o};var ye=Oe,be=function(t){if(!t.osm_type)return"";var e=Oe(t.osm_type,!1);return e?'<a href="https://www.openstreetmap.org/'+e+"/"+t.osm_id+'">'+e+" "+t.osm_id+"</a>":""},we=function(t){if(t.label)return t.label;function e(t){return t&&t[0].toUpperCase()+t.slice(1)}if(t.type&&"yes"===t.type&&t.class)return e(t.class.replace(/_/g," "));if(t.type)return e(t.type.replace(/_/g," "));return""},xe=function(t){if(!t.calculated_wikipedia)return"";var e=t.calculated_wikipedia.split(":",2),n=Ae(t.calculated_wikipedia),i=Ae(e[0]),o=Ae(e[1]);return'<a href="https://'+i+".wikipedia.org/wiki/"+o+'" target="_blank">'+n+"</a>"},$e=function(t){return t.isarea?"Polygon":"Point"},Le=function(t){return"boundary"===t.category&&"administrative"===t.type},Te=function(t){return t<4?"other":t<6?"country":t<8?"region":t<10?"state":t<12?"state district":t<14?"county":t<16?"municipality":t<18?"city / town / village":t<20?"city / village district":t<22?"suburb / hamlet":t<24?"neighbourhood":t<26?"city block / square":26===t?"major street":27===t?"minory street / path":t<=30?"house / building":"other"},Pe=function(t){var e=t.class+":"+t.type;t.type&&"administrative"===t.type&&t.place_type&&(e=e+" ("+t.place_type+")");return Ae(e)},Me=function(t){return t&&t<15?t:""},ke=function(t,e){if(e){if(t<1)return"0";var n=t>=1e3?Math.round(t/1e3,1)+" km":Math.round(t,0)+" m";return'<abbr class="distance" title="'+t+' meters">~'+n+"</abbr>"}return 0===t?"0":'<abbr class="distance" title="spheric distance '+t+'">~'+Math.round(1e3*t,4)/1e3+"</abbr>"},Ce=function(t){return(" "===t[0]?"*":"")+Ae(t)},Ee=function(){return["Continent / Sea","","","Country","","State","Region","","County","","City","","Town / Village","","Suburb","","Street","","Building","","",""]};const Ae=ve;function Oe(t,e){return"N"===t?"node":"W"===t?"way":"R"===t?"relation":e&&("T"===t||"I"===t)?"way":""}function Se(t){let e,n,i,o;const s=t[6].default,r=p(s,t,t[5],null);return{c(){e=x("a"),r&&r.c(),E(e,"href",t[1]),E(e,"class",t[0])},m(s,a){y(s,e,a),r&&r.m(e,null),n=!0,i||(o=M(e,"click",C(k(t[2]))),i=!0)},p(t,[i]){r&&r.p&&(!n||32&i)&&_(r,s,t,t[5],n?f(s,t[5],i,null):g(t[5]),null),(!n||2&i)&&E(e,"href",t[1]),(!n||1&i)&&E(e,"class",t[0])},i(t){n||(tt(r,t),n=!0)},o(t){et(r,t),n=!1},d(t){t&&b(e),r&&r.d(t),i=!1,o()}}}function ze(t,e,n){let{$$slots:i={},$$scope:o}=e,{extra_classes:s=""}=e,{feature:r=null}=e,a=new URLSearchParams,l="details.html";return t.$$set=t=>{"extra_classes"in t&&n(0,s=t.extra_classes),"feature"in t&&n(3,r=t.feature),"$$scope"in t&&n(5,o=t.$$scope)},t.$$.update=()=>{if(8&t.$$.dirty){let t=new URLSearchParams;null!==r&&(r.osm_type?(1===r.osm_type.length?t.set("osmtype",r.osm_type):t.set("osmtype","node"===(e=r.osm_type)?"N":"way"===e?"W":"relation"===e?"R":""),t.set("osmid",r.osm_id),r.class?t.set("class",r.class):r.category&&t.set("class",r.category)):r.place_id&&t.set("place_id",r.place_id)),n(4,a=t)}var e;if(16&t.$$.dirty){let t=a.toString();n(1,l="details.html"+(t?"?":"")+t)}},[s,l,function(){yt("details",a)},r,a,o,i]}class Ie extends lt{constructor(t){super(),at(this,t,ze,Se,r,{extra_classes:0,feature:3})}}function De(e){let n;return{c(){n=x("div"),E(n,"id","welcome")},m(t,e){y(t,n,e)},p:t,i:t,o:t,d(t){t&&b(n)}}}function Be(t){return B((()=>{Tt("theme/welcome.html",document.getElementById("welcome"))})),[]}class Ne extends lt{constructor(t){super(),at(this,t,Be,De,r,{})}}function Ze(t){let e,n;return{c(){e=x("img"),E(e,"class","mapicon svelte-180cawe"),c(e.src,n=t[1])||E(e,"src",n),E(e,"alt",t[2])},m(t,n){y(t,e,n)},p(t,i){2&i&&!c(e.src,n=t[1])&&E(e,"src",n),4&i&&E(e,"alt",t[2])},d(t){t&&b(e)}}}function je(e){let n,i=e[0]&&Ze(e);return{c(){i&&i.c(),n=P()},m(t,e){i&&i.m(t,e),y(t,n,e)},p(t,[e]){t[0]?i?i.p(t,e):(i=Ze(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:t,o:t,d(t){i&&i.d(t),t&&b(n)}}}function Re(t,e,n){let i,o,s,{aPlace:r}=e;return t.$$set=t=>{"aPlace"in t&&n(3,r=t.aPlace)},t.$$.update=()=>{var e,a;8&t.$$.dirty&&n(0,(e=r.category,a=r.type,i={"boundary:administrative":"poi_boundary_administrative","place:city":"poi_place_city","place:town":"poi_place_town","place:village":"poi_place_village","place:hamlet":"poi_place_village","place:suburb":"poi_place_village","place:locality":"poi_place_village","place:airport":"transport_airport2","aeroway:aerodrome":"transport_airport2","railway:station":"transport_train_station2","amenity:place_of_worship":"place_of_worship_unknown3","amenity:pub":"food_pub","amenity:bar":"food_bar","amenity:university":"education_university","tourism:museum":"tourist_museum","amenity:arts_centre":"tourist_art_gallery2","tourism:zoo":"tourist_zoo","tourism:theme_park":"poi_point_of_interest","tourism:attraction":"poi_point_of_interest","leisure:golf_course":"sport_golf","historic:castle":"tourist_castle","amenity:hospital":"health_hospital","amenity:school":"education_school","amenity:theatre":"tourist_theatre","amenity:library":"amenity_library","amenity:fire_station":"amenity_firestation3","amenity:police":"amenity_police2","amenity:bank":"money_bank2","amenity:post_office":"amenity_post_office","tourism:hotel":"accommodation_hotel2","amenity:cinema":"tourist_cinema","tourism:artwork":"tourist_art_gallery2","historic:archaeological_site":"tourist_archaeological2","amenity:doctors":"health_doctors","leisure:sports_centre":"sport_leisure_centre","leisure:swimming_pool":"sport_swimming_outdoor","shop:supermarket":"shopping_supermarket","shop:convenience":"shopping_convenience","amenity:restaurant":"food_restaurant","amenity:fast_food":"food_fastfood","amenity:cafe":"food_cafe","tourism:guest_house":"accommodation_bed_and_breakfast","amenity:pharmacy":"health_pharmacy_dispensing","amenity:fuel":"transport_fuel","natural:peak":"poi_peak","natural:wood":"landuse_coniferous_and_deciduous","shop:bicycle":"shopping_bicycle","shop:clothes":"shopping_clothes","shop:hairdresser":"shopping_hairdresser","shop:doityourself":"shopping_diy","shop:estate_agent":"shopping_estateagent2","shop:car":"shopping_car","shop:garden_centre":"shopping_garden_centre","shop:car_repair":"shopping_car_repair","shop:bakery":"shopping_bakery","shop:butcher":"shopping_butcher","shop:apparel":"shopping_clothes","shop:laundry":"shopping_laundrette","shop:beverages":"shopping_alcohol","shop:alcohol":"shopping_alcohol","shop:optician":"health_opticians","shop:chemist":"health_pharmacy","shop:gallery":"tourist_art_gallery2","shop:jewelry":"shopping_jewelry","tourism:information":"amenity_information","historic:ruins":"tourist_ruin","amenity:college":"education_school","historic:monument":"tourist_monument","historic:memorial":"tourist_monument","historic:mine":"poi_mine","tourism:caravan_site":"accommodation_caravan_park","amenity:bus_station":"transport_bus_station","amenity:atm":"money_atm2","tourism:viewpoint":"tourist_view_point","tourism:guesthouse":"accommodation_bed_and_breakfast","railway:tram":"transport_tram_stop","amenity:courthouse":"amenity_court","amenity:recycling":"amenity_recycling","amenity:dentist":"health_dentist","natural:beach":"tourist_beach","railway:tram_stop":"transport_tram_stop","amenity:prison":"amenity_prison","highway:bus_stop":"transport_bus_stop2"}[e+":"+a])),8&t.$$.dirty&&n(2,o="icon for "+r.category+" "+r.type),1&t.$$.dirty&&n(1,s=Nominatim_Config.Images_Base_Url+i+".p.20.png")},[i,s,o,r]}class He extends lt{constructor(t){super(),at(this,t,Re,je,r,{aPlace:3})}}function Fe(t,e,n){const i=t.slice();return i[6]=e[n],i[8]=n,i}function We(e){let n,i;return n=new Ne({}),{c(){it(n.$$.fragment)},m(t,e){ot(n,t,e),i=!0},p:t,i(t){i||(tt(n.$$.fragment,t),i=!0)},o(t){et(n.$$.fragment,t),i=!1},d(t){st(n,t)}}}function qe(e){let n;function i(t,e){return t[0]?Ge:Ve}let o=i(e),s=o(e);return{c(){s.c(),n=P()},m(t,e){s.m(t,e),y(t,n,e)},p(t,e){o!==(o=i(t))&&(s.d(1),s=o(t),s&&(s.c(),s.m(n.parentNode,n)))},i:t,o:t,d(t){s.d(t),t&&b(n)}}}function Ue(t){let e,n,i,o=t[1],s=[];for(let e=0;e<o.length;e+=1)s[e]=Ye(Fe(t,o,e));const r=t=>et(s[t],1,1,(()=>{s[t]=null}));let a=t[3]&&!t[0]&&Xe(t);return{c(){e=x("div");for(let t=0;t<s.length;t+=1)s[t].c();n=T(),a&&a.c(),E(e,"id","searchresults")},m(t,o){y(t,e,o);for(let t=0;t<s.length;t+=1)s[t].m(e,null);v(e,n),a&&a.m(e,null),i=!0},p(t,i){if(22&i){let a;for(o=t[1],a=0;a<o.length;a+=1){const r=Fe(t,o,a);s[a]?(s[a].p(r,i),tt(s[a],1)):(s[a]=Ye(r),s[a].c(),tt(s[a],1),s[a].m(e,n))}for(J(),a=o.length;a<s.length;a+=1)r(a);Q()}t[3]&&!t[0]?a?a.p(t,i):(a=Xe(t),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i(t){if(!i){for(let t=0;t<o.length;t+=1)tt(s[t]);i=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)et(s[t]);i=!1},d(t){t&&b(e),w(s,t),a&&a.d()}}}function Ve(t){let e;return{c(){e=x("div"),e.textContent="No search results found",E(e,"class","noresults svelte-5fm7ib")},m(t,n){y(t,e,n)},d(t){t&&b(e)}}}function Ge(t){let e;return{c(){e=x("div"),e.textContent="Search for coordinates or click anywhere on the map.",E(e,"id","intro"),E(e,"class","sidebar")},m(t,n){y(t,e,n)},d(t){t&&b(e)}}}function Ke(t){let e;return{c(){e=$("details")},m(t,n){y(t,e,n)},d(t){t&&b(e)}}}function Ye(t){let e,n,i,o,s,r,a,l,c,h,u,d,p,m,f,_,g,w,L,P=t[6].display_name+"",k=we(t[6])+"",O=t[6].lat+"",S=t[6].lon+"";return i=new He({props:{aPlace:t[6]}}),_=new Ie({props:{extra_classes:"btn btn-outline-secondary btn-sm",feature:t[6],$$slots:{default:[Ke]},$$scope:{ctx:t}}}),{c(){var g,v,y,b;e=x("div"),n=x("div"),it(i.$$.fragment),o=T(),s=x("span"),r=$(P),a=T(),l=x("span"),c=$(k),h=T(),u=x("p"),d=$(O),p=$(","),m=$(S),f=T(),it(_.$$.fragment),g=n,v="float",null===(y="right")?g.style.removeProperty(v):g.style.setProperty(v,y,b?"important":""),E(s,"class","name"),E(l,"class","type svelte-5fm7ib"),E(u,"class","coords svelte-5fm7ib"),E(e,"class","result svelte-5fm7ib"),E(e,"data-position",t[8]),z(e,"highlight",t[8]===t[2])},m(b,x){y(b,e,x),v(e,n),ot(i,n,null),v(e,o),v(e,s),v(s,r),v(e,a),v(e,l),v(l,c),v(e,h),v(e,u),v(u,d),v(u,p),v(u,m),v(e,f),ot(_,e,null),g=!0,w||(L=M(e,"click",C(t[4])),w=!0)},p(t,n){const o={};2&n&&(o.aPlace=t[6]),i.$set(o),(!g||2&n)&&P!==(P=t[6].display_name+"")&&A(r,P),(!g||2&n)&&k!==(k=we(t[6])+"")&&A(c,k),(!g||2&n)&&O!==(O=t[6].lat+"")&&A(d,O),(!g||2&n)&&S!==(S=t[6].lon+"")&&A(m,S);const s={};2&n&&(s.feature=t[6]),512&n&&(s.$$scope={dirty:n,ctx:t}),_.$set(s),(!g||4&n)&&z(e,"highlight",t[8]===t[2])},i(t){g||(tt(i.$$.fragment,t),tt(_.$$.fragment,t),g=!0)},o(t){et(i.$$.fragment,t),et(_.$$.fragment,t),g=!1},d(t){t&&b(e),st(i),st(_),w=!1,L()}}}function Xe(t){let e,n,i;return{c(){e=x("div"),n=x("a"),i=$("Search for more results"),E(n,"class","btn btn-primary"),E(n,"href",t[3]),E(e,"class","more svelte-5fm7ib")},m(t,o){y(t,e,o),v(e,n),v(n,i)},p(t,e){8&e&&E(n,"href",t[3])},d(t){t&&b(e)}}}function Je(t){let e,n,i,o;const s=[Ue,qe,We],r=[];function a(t,e){return t[1]&&t[1].length>0?0:t[1]?1:2}return e=a(t),n=r[e]=s[e](t),{c(){n.c(),i=P()},m(t,n){r[e].m(t,n),y(t,i,n),o=!0},p(t,[o]){let l=e;e=a(t),e===l?r[e].p(t,o):(J(),et(r[l],1,1,(()=>{r[l]=null})),Q(),n=r[e],n?n.p(t,o):(n=r[e]=s[e](t),n.c()),tt(n,1),n.m(i.parentNode,i))},i(t){o||(tt(n),o=!0)},o(t){et(n),o=!1},d(t){r[e].d(t),t&&b(i)}}}function Qe(t,e,n){let i,o,s,{reverse_search:r=!1}=e,{current_result:a=null}=e;return pt.subscribe((t=>{if(!t)return;n(1,i=t),n(2,o=0),n(5,a=i[0]);let e=new URLSearchParams(window.location.search),r=t;var l=[];e.has("exclude_place_ids")&&(l=e.get("exclude_place_ids").split(","));for(var c=0;c<r.length;c+=1)l.push(r[c].place_id);var h=new URLSearchParams(window.location.search);h.set("exclude_place_ids",l.join(",")),n(3,s="?"+h.toString())})),t.$$set=t=>{"reverse_search"in t&&n(0,r=t.reverse_search),"current_result"in t&&n(5,a=t.current_result)},[r,i,o,s,function(t){let e=t.target;e.className.match("result")||(e=e.parentElement);let s=Number(e.dataset.position);n(5,a=i[s]),n(2,o=s)},a]}class tn extends lt{constructor(t){super(),at(this,t,Qe,Je,r,{reverse_search:0,current_result:5})}}
 /* @preserve
-     * Leaflet 1.7.1, a JS library for interactive maps. http://leafletjs.com
-     * (c) 2010-2019 Vladimir Agafonkin, (c) 2010-2011 CloudMade
-     */var Ge=st((function(t,e){!function(t){var e="1.7.1";function n(t){var e,n,i,o;for(n=1,i=arguments.length;n<i;n++)for(e in o=arguments[n])t[e]=o[e];return t}var i=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();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 s(t){return t._leaflet_id=t._leaflet_id||++r,t._leaflet_id}function a(t,e,n){var i,o,r,s;return s=function(){i=!1,o&&(r.apply(n,o),o=!1)},r=function(){i?o=arguments:(t.apply(n,arguments),setTimeout(s,e),i=!0)}}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 u(){return!1}function c(t,e){var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function h(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function d(t){return h(t).split(/\s+/)}function f(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?i(t.options):{}),e)t.options[n]=e[n];return t.options}function p(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 _=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function v(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function w(t){var e=+new Date,n=Math.max(0,16-(e-x));return x=e+n,window.setTimeout(t,n)}var T=window.requestAnimationFrame||b("RequestAnimationFrame")||w,C=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function E(t,e,n){if(!n||T!==w)return T.call(window,o(t,e));t.call(e)}function $(t){t&&C.call(window,t)}var k={extend:n,create:i,bind:o,lastId:r,stamp:s,throttle:a,wrapNum:l,falseFn:u,formatNum:c,trim:h,splitWords:d,setOptions:f,getParamString:p,template:g,isArray:_,indexOf:v,emptyImageUrl:y,requestFn:T,cancelFn:C,requestAnimFrame:E,cancelAnimFrame:$};function P(){}function S(t){if("undefined"!=typeof L&&L&&L.Mixin){t=_(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)}}P.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=e.__super__=this.prototype,r=i(o);for(var s in r.constructor=e,e.prototype=r,this)Object.prototype.hasOwnProperty.call(this,s)&&"prototype"!==s&&"__super__"!==s&&(e[s]=this[s]);return t.statics&&(n(e,t.statics),delete t.statics),t.includes&&(S(t.includes),n.apply(null,[r].concat(t.includes)),delete t.includes),r.options&&(t.options=n(i(r.options),t.options)),n(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)}},e},P.include=function(t){return n(this.prototype,t),this},P.mergeOptions=function(t){return n(this.prototype.options,t),this},P.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 M={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=d(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=d(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,s=0,a=r.length;s<a;s++)if(r[s].fn===e&&r[s].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 s=i[o];if(s.ctx===n&&s.fn===e)return s.fn=u,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=u;delete this._events[t]}},fire:function(t,e,i){if(!this.listens(t,i))return this;var o=n({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var s=0,a=r.length;s<a;s++){var l=r[s];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[s(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[s(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};M.addEventListener=M.on,M.removeEventListener=M.clearAllEventListeners=M.off,M.addOneTimeEventListener=M.once,M.fireEvent=M.fire,M.hasEventListeners=M.listens;var A=P.extend(M);function N(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var D=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function I(t,e,n){return t instanceof N?t:_(t)?new N(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new N(t.x,t.y):new N(t,e,n)}function O(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 O?t:new O(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 Z(t,e,n){return t instanceof R?t:_(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)}N.prototype={clone:function(){return new N(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 N(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new N(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=D(this.x),this.y=D(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("+c(this.x)+", "+c(this.y)+")"}},O.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 N((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new N(this.min.x,this.max.y)},getTopRight:function(){return new N(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 N?I(t):z(t))instanceof O?(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,s=o.y>=e.y&&i.y<=n.y;return r&&s},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,s=o.y>e.y&&i.y<n.y;return r&&s},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)e=t,n=t;else{if(!(t instanceof j))return t?this.extend(Z(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?Z(t):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,s=o.lng>=e.lng&&i.lng<=n.lng;return r&&s},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,s=o.lng>e.lng&&i.lng<n.lng;return r&&s},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)}},R.prototype={equals:function(t,e){return!!t&&(t=Z(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("+c(this.lat,t)+", "+c(this.lng,t)+")"},distanceTo:function(t){return F.distance(this,Z(t))},wrap:function(){return F.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)}};var H,q={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 O(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!1,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(),s=t.getNorthEast();return new j(new R(r.lat-i,r.lng-o),new R(s.lat-i,s.lng-o))}},F=n({},q,{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),s=Math.sin((e.lng-t.lng)*n/2),a=r*r+Math.cos(i)*Math.cos(o)*s*s,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}}),W=6378137,U={R:W,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 N(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:(H=W*Math.PI,new O([-H,-H],[H,H]))};function V(t,e,n,i){if(_(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 G(t,e,n,i){return new V(t,e,n,i)}V.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 N((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var K=n({},F,{code:"EPSG:3857",projection:U,transformation:function(){var t=.5/(Math.PI*U.R);return G(t,.5,-t,.5)}()}),Y=n({},K,{code:"EPSG:900913"});function X(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Q(t,e){var n,i,o,r,s,a,l="";for(n=0,o=t.length;n<o;n++){for(i=0,r=(s=t[n]).length;i<r;i++)l+=(i?"L":"M")+(a=s[i]).x+" "+a.y;l+=e?St?"z":"x":""}return l||"M0 0"}var J=document.documentElement.style,tt="ActiveXObject"in window,et=tt&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),it=At("webkit"),ot=At("android"),rt=At("android 2")||At("android 3"),st=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),at=ot&&At("Google")&&st<537&&!("AudioNode"in window),lt=!!window.opera,ut=!nt&&At("chrome"),ct=At("gecko")&&!it&&!lt&&!tt,ht=!ut&&At("safari"),dt=At("phantom"),ft="OTransition"in J,pt=0===navigator.platform.indexOf("Win"),mt=tt&&"transition"in J,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!rt,_t="MozPerspective"in J,vt=!window.L_DISABLE_3D&&(mt||gt||_t)&&!ft&&!dt,yt="undefined"!=typeof orientation||At("mobile"),bt=yt&&it,xt=yt&&gt,wt=!window.PointerEvent&&window.MSPointerEvent,Tt=!(!window.PointerEvent&&!wt),Ct=!window.L_NO_TOUCH&&(Tt||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Et=yt&&lt,Lt=yt&&ct,$t=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,kt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",u,e),window.removeEventListener("testPassiveEventSupport",u,e)}catch(t){}return t}(),Pt=!!document.createElement("canvas").getContext,St=!(!document.createElementNS||!X("svg").createSVGRect),Mt=!St&&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 At(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Nt={ie:tt,ielt9:et,edge:nt,webkit:it,android:ot,android23:rt,androidStock:at,opera:lt,chrome:ut,gecko:ct,safari:ht,phantom:dt,opera12:ft,win:pt,ie3d:mt,webkit3d:gt,gecko3d:_t,any3d:vt,mobile:yt,mobileWebkit:bt,mobileWebkit3d:xt,msPointer:wt,pointer:Tt,touch:Ct,mobileOpera:Et,mobileGecko:Lt,retina:$t,passiveEvents:kt,canvas:Pt,svg:St,vml:Mt},Dt=wt?"MSPointerDown":"pointerdown",It=wt?"MSPointerMove":"pointermove",Ot=wt?"MSPointerUp":"pointerup",zt=wt?"MSPointerCancel":"pointercancel",jt={},Bt=!1;function Rt(t,e,n,i){return"touchstart"===e?Ht(t,n,i):"touchmove"===e?Vt(t,n,i):"touchend"===e&&Gt(t,n,i),this}function Zt(t,e,n){var i=t["_leaflet_"+e+n];return"touchstart"===e?t.removeEventListener(Dt,i,!1):"touchmove"===e?t.removeEventListener(It,i,!1):"touchend"===e&&(t.removeEventListener(Ot,i,!1),t.removeEventListener(zt,i,!1)),this}function Ht(t,e,n){var i=o((function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Fe(t),Ut(t,e)}));t["_leaflet_touchstart"+n]=i,t.addEventListener(Dt,i,!1),Bt||(document.addEventListener(Dt,qt,!0),document.addEventListener(It,Ft,!0),document.addEventListener(Ot,Wt,!0),document.addEventListener(zt,Wt,!0),Bt=!0)}function qt(t){jt[t.pointerId]=t}function Ft(t){jt[t.pointerId]&&(jt[t.pointerId]=t)}function Wt(t){delete jt[t.pointerId]}function Ut(t,e){for(var n in t.touches=[],jt)t.touches.push(jt[n]);t.changedTouches=[t],e(t)}function Vt(t,e,n){var i=function(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||Ut(t,e)};t["_leaflet_touchmove"+n]=i,t.addEventListener(It,i,!1)}function Gt(t,e,n){var i=function(t){Ut(t,e)};t["_leaflet_touchend"+n]=i,t.addEventListener(Ot,i,!1),t.addEventListener(zt,i,!1)}var Kt=wt?"MSPointerDown":Tt?"pointerdown":"touchstart",Yt=wt?"MSPointerUp":Tt?"pointerup":"touchend",Xt="_leaflet_";function Qt(t,e,n){var i,o,r=!1,s=250;function a(t){if(Tt){if(!t.isPrimary)return;if("mouse"===t.pointerType)return}else if(t.touches.length>1)return;var e=Date.now(),n=e-(i||e);o=t.touches?t.touches[0]:t,r=n>0&&n<=s,i=e}function l(t){if(r&&!o.cancelBubble){if(Tt){if("mouse"===t.pointerType)return;var n,s,a={};for(s in o)n=o[s],a[s]=n&&n.bind?n.bind(o):n;o=a}o.type="dblclick",o.button=0,e(o),i=null}}return t[Xt+Kt+n]=a,t[Xt+Yt+n]=l,t[Xt+"dblclick"+n]=e,t.addEventListener(Kt,a,!!kt&&{passive:!1}),t.addEventListener(Yt,l,!!kt&&{passive:!1}),t.addEventListener("dblclick",e,!1),this}function Jt(t,e){var n=t[Xt+Kt+e],i=t[Xt+Yt+e],o=t[Xt+"dblclick"+e];return t.removeEventListener(Kt,n,!!kt&&{passive:!1}),t.removeEventListener(Yt,i,!!kt&&{passive:!1}),t.removeEventListener("dblclick",o,!1),this}var te,ee,ne,ie,oe,re=we(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),se=we(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ae="webkitTransition"===se||"OTransition"===se?se+"End":"transitionend";function le(t){return"string"==typeof t?document.getElementById(t):t}function ue(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function ce(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function he(t){var e=t.parentNode;e&&e.removeChild(t)}function de(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function fe(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function pe(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function me(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=ye(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function ge(t,e){if(void 0!==t.classList)for(var n=d(e),i=0,o=n.length;i<o;i++)t.classList.add(n[i]);else if(!me(t,e)){var r=ye(t);ve(t,(r?r+" ":"")+e)}}function _e(t,e){void 0!==t.classList?t.classList.remove(e):ve(t,h((" "+ye(t)+" ").replace(" "+e+" "," ")))}function ve(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function ye(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function be(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&xe(t,e)}function xe(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+")"}function we(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function Te(t,e,n){var i=e||new N(0,0);t.style[re]=(mt?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function Ce(t,e){t._leaflet_pos=e,vt?Te(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Ee(t){return t._leaflet_pos||new N(0,0)}if("onselectstart"in document)te=function(){De(window,"selectstart",Fe)},ee=function(){Oe(window,"selectstart",Fe)};else{var Le=we(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);te=function(){if(Le){var t=document.documentElement.style;ne=t[Le],t[Le]="none"}},ee=function(){Le&&(document.documentElement.style[Le]=ne,ne=void 0)}}function $e(){De(window,"dragstart",Fe)}function ke(){Oe(window,"dragstart",Fe)}function Pe(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Se(),ie=t,oe=t.style.outline,t.style.outline="none",De(window,"keydown",Se))}function Se(){ie&&(ie.style.outline=oe,ie=void 0,oe=void 0,Oe(window,"keydown",Se))}function Me(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Ae(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ne={TRANSFORM:re,TRANSITION:se,TRANSITION_END:ae,get:le,getStyle:ue,create:ce,remove:he,empty:de,toFront:fe,toBack:pe,hasClass:me,addClass:ge,removeClass:_e,setClass:ve,getClass:ye,setOpacity:be,testProp:we,setTransform:Te,setPosition:Ce,getPosition:Ee,disableTextSelection:te,enableTextSelection:ee,disableImageDrag:$e,enableImageDrag:ke,preventOutline:Pe,restoreOutline:Se,getSizedParentNode:Me,getScale:Ae};function De(t,e,n,i){if("object"==typeof e)for(var o in e)Be(t,o,e[o],n);else for(var r=0,s=(e=d(e)).length;r<s;r++)Be(t,e[r],n,i);return this}var Ie="_leaflet_events";function Oe(t,e,n,i){if("object"==typeof e)for(var o in e)Re(t,o,e[o],n);else if(e)for(var r=0,s=(e=d(e)).length;r<s;r++)Re(t,e[r],n,i);else{for(var a in t[Ie])Re(t,a,t[Ie][a]);delete t[Ie]}return this}function ze(){if(Tt)return!(nt||ht)}var je={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Be(t,e,n,i){var o=e+s(n)+(i?"_"+s(i):"");if(t[Ie]&&t[Ie][o])return this;var r=function(e){return n.call(i||t,e||window.event)},a=r;Tt&&0===e.indexOf("touch")?Rt(t,e,r,o):Ct&&"dblclick"===e&&!ze()?Qt(t,r,o):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(je[e]||e,r,!!kt&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(r=function(e){e=e||window.event,Qe(t,e)&&a(e)},t.addEventListener(je[e],r,!1)):t.addEventListener(e,a,!1):"attachEvent"in t&&t.attachEvent("on"+e,r),t[Ie]=t[Ie]||{},t[Ie][o]=r}function Re(t,e,n,i){var o=e+s(n)+(i?"_"+s(i):""),r=t[Ie]&&t[Ie][o];if(!r)return this;Tt&&0===e.indexOf("touch")?Zt(t,e,o):Ct&&"dblclick"===e&&!ze()?Jt(t,o):"removeEventListener"in t?t.removeEventListener(je[e]||e,r,!1):"detachEvent"in t&&t.detachEvent("on"+e,r),t[Ie][o]=null}function Ze(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Xe(t),this}function He(t){return Be(t,"wheel",Ze),this}function qe(t){return De(t,"mousedown touchstart dblclick",Ze),Be(t,"click",Ye),this}function Fe(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function We(t){return Fe(t),Ze(t),this}function Ue(t,e){if(!e)return new N(t.clientX,t.clientY);var n=Ae(e),i=n.boundingClientRect;return new N((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var Ve=pt&&ut?2*window.devicePixelRatio:ct?window.devicePixelRatio:1;function Ge(t){return nt?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Ve: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 Ke={};function Ye(t){Ke[t.type]=!0}function Xe(t){var e=Ke[t.type];return Ke[t.type]=!1,e}function Qe(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 Je={on:De,off:Oe,stopPropagation:Ze,disableScrollPropagation:He,disableClickPropagation:qe,preventDefault:Fe,stop:We,getMousePosition:Ue,getWheelDelta:Ge,fakeStop:Ye,skipped:Xe,isExternalTarget:Qe,addListener:De,removeListener:Oe},tn=A.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=Ee(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=E(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(),Ce(this._el,n),this.fire("step")},_complete:function(){$(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),en=A.extend({options:{crs:K,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=f(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(Z(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=se&&vt&&!Et&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),De(this._proxy,ae,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,i){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(Z(t),e,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom=n({animate:i.animate},i.zoom),i.pan=n({animate:i.animate,duration:i.duration},i.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e),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||(vt?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(vt?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 N?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/i),s=this.containerPointToLatLng(o.add(r));return this.setView(s,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),s=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o);return{center:this.unproject(s.add(a).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){if(e=e||{},!(t=I(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new tn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){ge(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!vt)return this.setView(t,e,n);this._stop();var i=this.project(this.getCenter()),o=this.project(t),r=this.getSize(),s=this._zoom;t=Z(t),e=void 0===e?s:e;var a=Math.max(r.x,r.y),l=a*this.getZoomScale(s,e),u=o.distanceTo(i)||1,c=1.42,h=c*c;function d(t){var e=(l*l-a*a+(t?-1:1)*h*h*u*u)/(2*(t?l:a)*h*u),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function f(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return f(t)/p(t)}var g=d(0);function _(t){return a*(p(g)/p(g+c*t))}function v(t){return a*(p(g)*m(g+c*t)-f(g))/h}function y(t){return 1-Math.pow(1-t,1.5)}var b=Date.now(),x=(d(1)-g)/c,w=n.duration?1e3*n.duration:1e3*x*.8;function T(){var n=(Date.now()-b)/w,r=y(n)*x;n<=1?(this._flyToFrame=E(T,this),this._move(this.unproject(i.add(o.subtract(i).multiplyBy(v(r)/u)),s),this.getScaleZoom(a/_(r),s),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),T.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((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=I(e.paddingBottomRight||e.padding||[0,0]),o=this.getCenter(),r=this.project(o),s=this.project(t),a=this.getPixelBounds(),l=a.getSize().divideBy(2),u=z([a.min.add(n),a.max.subtract(i)]);if(!u.contains(s)){this._enforcingBounds=!0;var c=r.subtract(s),h=I(s.x+c.x,s.y+c.y);(s.x<u.min.x||s.x>u.max.x)&&(h.x=r.x-c.x,c.x>0?h.x+=l.x-n.x:h.x-=l.x-i.x),(s.y<u.min.y||s.y>u.max.y)&&(h.y=r.y-c.y,c.y>0?h.y+=l.y-n.y:h.y-=l.y-i.y),this.panTo(this.unproject(h),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),r=e.divideBy(2).round(),s=i.divideBy(2).round(),a=r.subtract(s);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,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=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),i=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,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=new R(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),i=this._locateOptions;if(i.setView){var o=this.getBoundsZoom(n);this.setView(e,i.maxZoom?Math.min(o,i.maxZoom):o)}var r={latlng:e,bounds:n,timestamp:t.timestamp};for(var s in t.coords)"number"==typeof t.coords[s]&&(r[s]=t.coords[s]);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(),he(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&($(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)he(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=ce("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(),s=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(n),u=z(this.project(a,i),this.project(s,i)).getSize(),c=vt?this.options.zoomSnap:1,h=l.x/u.x,d=l.y/u.y,f=e?Math.max(h,d):Math.min(h,d);return i=this.getScaleZoom(f,i),c&&(i=Math.round(i/(c/100))*(c/100),i=e?Math.ceil(i/c)*c:Math.floor(i/c)*c),Math.max(o,Math.min(r,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new N(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 O(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(Z(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(Z(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Z(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(B(t))},distance:function(t,e){return this.options.crs.distance(Z(t),Z(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(Z(t)))},mouseEventToContainerPoint:function(t){return Ue(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=le(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=s(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&vt,ge(t,"leaflet-container"+(Ct?" leaflet-touch":"")+($t?" leaflet-retina":"")+(et?" leaflet-oldie":"")+(ht?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ue(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),Ce(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ge(t.markerPane,"leaflet-zoom-hide"),ge(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){Ce(this._mapPane,new N(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 $(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Ce(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[s(this._container)]=this;var e=t?Oe:De;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),vt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){$(this._resizeRequest),this._resizeRequest=E((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,a=!1;r;){if((n=this._targets[s(r)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)){if(o&&!Qe(r,t))break;if(i.push(n),o)break}if(r===this._container)break;r=r.parentNode}return i.length||a||o||!Qe(r,t)||(i=[this]),i},_handleDOMEvent:function(t){if(this._loaded&&!Xe(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||Pe(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if("click"===t.type){var o=n({},t);o.type="preclick",this._fireDOMEvent(o,o.type,i)}if(!t._stopped&&(i=(i||[]).concat(this._findEventTargets(t,e))).length){var r=i[0];"contextmenu"===e&&r.listens(e,!0)&&Fe(t);var s={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var 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(e,s,!0),s.originalEvent._stopped||!1===i[l].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Ee(this._mapPane)||new N(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 O(i.subtract(o),i.add(o)),s=this._getBoundsOffset(r,n,e);return s.round().equals([0,0])?t:this.unproject(i.add(s),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new O(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 N(this._rebound(o.x,-r.x),this._rebound(o.y,-r.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=vt?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(){_e(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=ce("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=re,n=this._proxy.style[e];Te(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(){he(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Te(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,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)||(E((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,ge(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&&_e(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),E((function(){this._moveEnd(!0)}),this))}});function nn(t,e){return new en(t,e)}var on=P.extend({options:{position:"topright"},initialize:function(t){f(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 ge(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?(he(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),rn=function(t){return new on(t)};en.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=ce("div",e+"control-container",this._container);function i(i,o){var r=e+i+" "+e+o;t[i+o]=ce("div",r,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)he(this._controlCorners[t]);he(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var sn=on.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 f(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,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 on.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(s(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){ge(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?(ge(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):_e(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return _e(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=ce("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),qe(e),He(e);var i=this._section=ce("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=ce("a",t+"-toggle",e);o.href="#",o.title="Layers",Ct?(De(o,"click",We),De(o,"click",this.expand,this)):De(o,"focus",this.expand,this),n||this.expand(),this._baseLayersList=ce("div",t+"-base",i),this._separator=ce("div",t+"-separator",i),this._overlaysList=ce("div",t+"-overlays",i),e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&s(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;de(this._baseLayersList),de(this._overlaysList),this._layerControlInputs=[];var t,e,n,i,o=0;for(n=0;n<this._layers.length;n++)i=this._layers[n],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,o+=i.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(s(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_"+s(this),i),this._layerControlInputs.push(e),e.layerId=s(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;r>=0;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;o>=0;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()}}),an=function(t,e,n){return new sn(t,e,n)},ln=on.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=ce("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=ce("a",n,i);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),qe(r),De(r,"click",We),De(r,"click",o,this),De(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";_e(this._zoomInButton,e),_e(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&ge(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&ge(this._zoomInButton,e)}});en.mergeOptions({zoomControl:!0}),en.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new ln,this.addControl(this.zoomControl))}));var un=function(t){return new ln(t)},cn=on.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=ce("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=ce("div",e,n)),t.imperial&&(this._iScale=ce("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;o>5280?(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*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),hn=function(t){return new cn(t)},dn=on.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){f(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=ce("div","leaflet-control-attribution"),qe(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):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});en.mergeOptions({attributionControl:!0}),en.addInitHook((function(){this.options.attributionControl&&(new dn).addTo(this)}));var fn=function(t){return new dn(t)};on.Layers=sn,on.Zoom=ln,on.Scale=cn,on.Attribution=dn,rn.layers=an,rn.zoom=un,rn.scale=hn,rn.attribution=fn;var pn=P.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});pn.addTo=function(t,e){return t.addHandler(e,this),this};var mn,gn={Events:M},_n=Ct?"touchstart mousedown":"mousedown",vn={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},yn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},bn=A.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){f(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(De(this._dragStartTarget,_n,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(bn._dragging===this&&this.finishDrag(),Oe(this._dragStartTarget,_n,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!me(this._element,"leaflet-zoom-anim")&&!(bn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(bn._dragging=this,this._preventOutline&&Pe(this._element),$e(),te(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Me(this._element);this._startPoint=new N(e.clientX,e.clientY),this._parentScale=Ae(n),De(document,yn[t.type],this._onMove,this),De(document,vn[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new N(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Fe(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=Ee(this._element).subtract(n),ge(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ge(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,$(this._animRequest),this._lastEvent=t,this._animRequest=E(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Ce(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in _e(document.body,"leaflet-dragging"),this._lastTarget&&(_e(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),yn)Oe(document,yn[t],this._onMove,this),Oe(document,vn[t],this._onUp,this);ke(),ee(),this._moved&&this._moving&&($(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,bn._dragging=!1}});function xn(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=Cn(t=Ln(t,n),n)}function wn(t,e,n){return Math.sqrt(Mn(t,e,n,!0))}function Tn(t,e,n){return Mn(t,e,n)}function Cn(t,e){var n=t.length,i=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,En(t,i,e,0,n-1);var o,r=[];for(o=0;o<n;o++)i[o]&&r.push(t[o]);return r}function En(t,e,n,i,o){var r,s,a,l=0;for(s=i+1;s<=o-1;s++)(a=Mn(t[s],t[i],t[o],!0))>l&&(r=s,l=a);l>n&&(e[r]=1,En(t,e,n,i,r),En(t,e,n,r,o))}function Ln(t,e){for(var n=[t[0]],i=1,o=0,r=t.length;i<r;i++)Sn(t[i],t[o])>e&&(n.push(t[i]),o=i);return o<r-1&&n.push(t[r-1]),n}function $n(t,e,n,i,o){var r,s,a,l=i?mn:Pn(t,n),u=Pn(e,n);for(mn=u;;){if(!(l|u))return[t,e];if(l&u)return!1;a=Pn(s=kn(t,e,r=l||u,n,o),n),r===l?(t=s,l=a):(e=s,u=a)}}function kn(t,e,n,i,o){var r,s,a=e.x-t.x,l=e.y-t.y,u=i.min,c=i.max;return 8&n?(r=t.x+a*(c.y-t.y)/l,s=c.y):4&n?(r=t.x+a*(u.y-t.y)/l,s=u.y):2&n?(r=c.x,s=t.y+l*(c.x-t.x)/a):1&n&&(r=u.x,s=t.y+l*(u.x-t.x)/a),new N(r,s,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 Sn(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function Mn(t,e,n,i){var o,r=e.x,s=e.y,a=n.x-r,l=n.y-s,u=a*a+l*l;return u>0&&((o=((t.x-r)*a+(t.y-s)*l)/u)>1?(r=n.x,s=n.y):o>0&&(r+=a*o,s+=l*o)),a=t.x-r,l=t.y-s,i?a*a+l*l:new N(r,s)}function An(t){return!_(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Nn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),An(t)}var Dn={simplify:xn,pointToSegmentDistance:wn,closestPointOnSegment:Tn,clipSegment:$n,_getEdgeIntersection:kn,_getBitCode:Pn,_sqClosestPointOnSegment:Mn,isFlat:An,_flat:Nn};function In(t,e,n){var i,o,r,s,a,l,u,c,h,d=[1,4,2,8];for(o=0,u=t.length;o<u;o++)t[o]._code=Pn(t[o],e);for(s=0;s<4;s++){for(c=d[s],i=[],o=0,r=(u=t.length)-1;o<u;r=o++)a=t[o],l=t[r],a._code&c?l._code&c||((h=kn(l,a,c,e,n))._code=Pn(h,e),i.push(h)):(l._code&c&&((h=kn(l,a,c,e,n))._code=Pn(h,e),i.push(h)),i.push(a));t=i}return t}var On={clipPolygon:In},zn={project:function(t){return new N(t.lng,t.lat)},unproject:function(t){return new R(t.y,t.x)},bounds:new O([-180,-90],[180,90])},jn={R:6378137,R_MINOR:6356752.314245179,bounds:new O([-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),s=r*Math.sin(i),a=Math.tan(Math.PI/4-i/2)/Math.pow((1-s)/(1+s),r/2);return i=-n*Math.log(Math.max(a,1e-10)),new N(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),s=Math.exp(-t.y/i),a=Math.PI/2-2*Math.atan(s),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)e=r*Math.sin(a),e=Math.pow((1-e)/(1+e),r/2),a+=u=Math.PI/2-2*Math.atan(s*e)-a;return new R(a*n,t.x*n/i)}},Bn={LonLat:zn,Mercator:jn,SphericalMercator:U},Rn=n({},F,{code:"EPSG:3395",projection:jn,transformation:function(){var t=.5/(Math.PI*jn.R);return G(t,.5,-t,.5)}()}),Zn=n({},F,{code:"EPSG:4326",projection:zn,transformation:G(1/180,1,-1/180,.5)}),Hn=n({},q,{projection:zn,transformation:G(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});q.Earth=F,q.EPSG3395=Rn,q.EPSG3857=K,q.EPSG900913=Y,q.EPSG4326=Zn,q.Simple=Hn;var qn=A.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[s(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[s(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});en.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=s(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=s(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):this},hasLayer:function(t){return!!t&&s(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?_(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[s(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=s(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 Fn=qn.extend({initialize:function(t,e){var n,i;if(f(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:function(t){return s(t)}}),Wn=function(t,e){return new Fn(t,e)},Un=Fn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Fn.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),Fn.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}}),Vn=function(t,e){return new Un(t,e)},Gn=P.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){f(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 $t&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Kn(t){return new Gn(t)}var Yn=Gn.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 Yn.imagePath||(Yn.imagePath=this._detectIconPath()),(this.options.imagePath||Yn.imagePath)+Gn.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=ce("div","leaflet-default-icon-path",document.body),e=ue(t,"background-image")||ue(t,"backgroundImage");return document.body.removeChild(t),e=null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Xn=pn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new bn(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ge(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&&_e(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=Ee(e._icon),s=n.getPixelBounds(),a=n.getPixelOrigin(),l=z(s.min._subtract(a).add(o),s.max._subtract(a).subtract(o));if(!l.contains(r)){var u=I((Math.max(l.max.x,r.x)-l.max.x)/(s.max.x-l.max.x)-(Math.min(l.min.x,r.x)-l.min.x)/(s.min.x-l.min.x),(Math.max(l.max.y,r.y)-l.max.y)/(s.max.y-l.max.y)-(Math.min(l.min.y,r.y)-l.min.y)/(s.min.y-l.min.y)).multiplyBy(i);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),Ce(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=E(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&&($(this._panRequest),this._panRequest=E(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=Ee(e._icon),o=e._map.layerPointToLatLng(i);n&&Ce(n,i),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){$(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Qn=qn.extend({options:{icon:new Yn,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){f(this,e),this._latlng=Z(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=Z(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),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||"")),ge(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&&(ge(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}),he(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&he(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Ce(this._icon,t),this._shadow&&Ce(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(ge(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Xn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Xn(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&&be(this._icon,t),this._shadow&&be(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}});function Jn(t,e){return new Qn(t,e)}var ti=qn.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 f(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}}),ei=ti.extend({options:{fill:!0,radius:10},initialize:function(t,e){f(this,e),this._latlng=Z(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=Z(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 ti.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 O(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()}});function ni(t,e){return new ei(t,e)}var ii=ei.extend({initialize:function(t,e,i){if("number"==typeof e&&(e=n({},i,{radius:e})),f(this,e),this._latlng=Z(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:ti.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===F.distance){var o=Math.PI/180,r=this._mRadius/F.R/o,s=n.project([e+r,t]),a=n.project([e-r,t]),l=s.add(a).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(u*o))/(Math.cos(e*o)*Math.cos(u*o)))/o;(isNaN(c)||0===c)&&(c=r/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,t-c]).x,this._radiusY=l.y-s.y}else{var h=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(h).x}this._updateBounds()}});function oi(t,e,n){return new ii(t,e,n)}var ri=ti.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){f(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=Mn,s=0,a=this._parts.length;s<a;s++)for(var l=this._parts[s],u=1,c=l.length;u<c;u++){var h=r(t,e=l[u-1],n=l[u],!0);h<i&&(i=h,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,s,a=this._rings[0],l=a.length;if(!l)return null;for(t=0,e=0;t<l-1;t++)e+=a[t].distanceTo(a[t+1])/2;if(0===e)return this._map.layerPointToLatLng(a[0]);for(t=0,i=0;t<l-1;t++)if(o=a[t],r=a[t+1],(i+=n=o.distanceTo(r))>e)return s=(i-e)/n,this._map.layerPointToLatLng([r.x-s*(r.x-o.x),r.y-s*(r.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=Z(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 An(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=An(t),i=0,o=t.length;i<o;i++)n?(e[i]=Z(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new O;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 N(t,t);this._pxBounds=new O([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,n){var i,o,r=t[0]instanceof R,s=t.length;if(r){for(o=[],i=0;i<s;i++)o[i]=this._map.latLngToLayerPoint(t[i]),n.extend(o[i]);e.push(o)}else for(i=0;i<s;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{var e,n,i,o,r,s,a,l=this._parts;for(e=0,i=0,o=this._rings.length;e<o;e++)for(n=0,r=(a=this._rings[e]).length;n<r-1;n++)(s=$n(a[n],a[n+1],t,n,!0))&&(l[i]=l[i]||[],l[i].push(s[0]),s[1]===a[n+1]&&n!==r-2||(l[i].push(s[1]),i++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=xn(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,s,a,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=(s=(a=this._parts[n]).length)-1;i<s;o=i++)if((e||0!==i)&&wn(t,a[o],a[i])<=l)return!0;return!1}});function si(t,e){return new ri(t,e)}ri._flat=Nn;var ai=ri.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,s,a,l,u=this._rings[0],c=u.length;if(!c)return null;for(r=s=a=0,t=0,e=c-1;t<c;e=t++)n=u[t],i=u[e],o=n.y*i.x-i.y*n.x,s+=(n.x+i.x)*o,a+=(n.y+i.y)*o,r+=3*o;return l=0===r?u[0]:[s/r,a/r],this._map.layerPointToLatLng(l)},_convertLatLngs:function(t){var e=ri.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof R&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){ri.prototype._setLatLngs.call(this,t),An(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return An(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new N(e,e);if(t=new O(t.min.subtract(n),t.max.add(n)),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=In(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,s,a,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(r=0,s=(l=(e=this._parts[o]).length)-1;r<l;s=r++)n=e[r],i=e[s],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(u=!u);return u||ri.prototype._containsPoint.call(this,t,!0)}});function li(t,e){return new ai(t,e)}var ui=Un.extend({initialize:function(t,e){f(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=_(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 s=ci(t,r);return s?(s.feature=_i(t),s.defaultOptions=s.options,this.resetStyle(s),r.onEachFeature&&r.onEachFeature(t,s),this.addLayer(s)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=n({},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 ci(t,e){var n,i,o,r,s="Feature"===t.type?t.geometry:t,a=s?s.coordinates:null,l=[],u=e&&e.pointToLayer,c=e&&e.coordsToLatLng||di;if(!a&&!s)return null;switch(s.type){case"Point":return hi(u,t,n=c(a),e);case"MultiPoint":for(o=0,r=a.length;o<r;o++)n=c(a[o]),l.push(hi(u,t,n,e));return new Un(l);case"LineString":case"MultiLineString":return i=fi(a,"LineString"===s.type?0:1,c),new ri(i,e);case"Polygon":case"MultiPolygon":return i=fi(a,"Polygon"===s.type?1:2,c),new ai(i,e);case"GeometryCollection":for(o=0,r=s.geometries.length;o<r;o++){var h=ci({geometry:s.geometries[o],type:"Feature",properties:t.properties},e);h&&l.push(h)}return new Un(l);default:throw new Error("Invalid GeoJSON object.")}}function hi(t,e,n,i){return t?t(e,n):new Qn(n,i&&i.markersInheritOptions&&i)}function di(t){return new R(t[1],t[0],t[2])}function fi(t,e,n){for(var i,o=[],r=0,s=t.length;r<s;r++)i=e?fi(t[r],e-1,n):(n||di)(t[r]),o.push(i);return o}function pi(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[c(t.lng,e),c(t.lat,e),c(t.alt,e)]:[c(t.lng,e),c(t.lat,e)]}function mi(t,e,n,i){for(var o=[],r=0,s=t.length;r<s;r++)o.push(e?mi(t[r],e-1,n,i):pi(t[r],i));return!e&&n&&o.push(o[0]),o}function gi(t,e){return t.feature?n({},t.feature,{geometry:e}):_i(e)}function _i(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var vi={toGeoJSON:function(t){return gi(this,{type:"Point",coordinates:pi(this.getLatLng(),t)})}};function yi(t,e){return new ui(t,e)}Qn.include(vi),ii.include(vi),ei.include(vi),ri.include({toGeoJSON:function(t){var e=!An(this._latlngs);return gi(this,{type:(e?"Multi":"")+"LineString",coordinates:mi(this._latlngs,e?1:0,!1,t)})}}),ai.include({toGeoJSON:function(t){var e=!An(this._latlngs),n=e&&!An(this._latlngs[0]),i=mi(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),gi(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),Fn.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(n){e.push(n.toGeoJSON(t).geometry.coordinates)})),gi(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){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(n)i.push(o.geometry);else{var r=_i(o);"FeatureCollection"===r.type?i.push.apply(i,r.features):i.push(r)}}})),n?gi(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var bi=yi,xi=qn.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),f(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ge(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){he(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&&fe(this._image),this},bringToBack:function(){return this._map&&pe(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:ce("img");ge(e,"leaflet-image-layer"),this._zoomAnimated&&ge(e,"leaflet-zoom-animated"),this.options.className&&ge(e,this.options.className),e.onselectstart=u,e.onmousemove=u,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;Te(this._image,n,e)},_reset:function(){var t=this._image,e=new O(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();Ce(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){be(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)}}),wi=function(t,e,n){return new xi(t,e,n)},Ti=xi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:ce("video");if(ge(e,"leaflet-image-layer"),this._zoomAnimated&&ge(e,"leaflet-zoom-animated"),this.options.className&&ge(e,this.options.className),e.onselectstart=u,e.onmousemove=u,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=n.length>0?i:[e.src]}else{_(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 s=0;s<this._url.length;s++){var a=ce("source");a.src=this._url[s],e.appendChild(a)}}}});function Ci(t,e,n){return new Ti(t,e,n)}var Ei=xi.extend({_initImage:function(){var t=this._image=this._url;ge(t,"leaflet-image-layer"),this._zoomAnimated&&ge(t,"leaflet-zoom-animated"),this.options.className&&ge(t,this.options.className),t.onselectstart=u,t.onmousemove=u}});function Li(t,e,n){return new Ei(t,e,n)}var $i=qn.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){f(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&be(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&be(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(be(this._container,0),this._removeTimeout=setTimeout(o(he,void 0,this._container),200)):he(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=Z(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&&fe(this._container),this},bringToBack:function(){return this._map&&pe(this._container),this},_prepareOpen:function(t,e,n){if(e instanceof qn||(n=e,e=t),e instanceof Un)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(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=I(this.options.offset),n=this._getAnchor();this._zoomAnimated?Ce(this._container,t.add(n)):e=e.add(t).add(n);var 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]}}),ki=$i.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){$i.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ti||this._source.on("preclick",Ze))},onRemove:function(t){$i.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ti||this._source.off("preclick",Ze))},getEvents:function(){var t=$i.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="leaflet-popup",e=this._container=ce("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=ce("div",t+"-content-wrapper",e);if(this._contentNode=ce("div",t+"-content",n),qe(e),He(this._contentNode),De(e,"contextmenu",Ze),this._tipContainer=ce("div",t+"-tip-container",e),this._tip=ce("div",t+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=ce("a",t+"-close-button",e);i.href="#close",i.innerHTML="&#215;",De(i,"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&&i>o?(e.height=o+"px",ge(t,r)):_e(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();Ce(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(ue(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,o=new N(this._containerLeft,-n-this._containerBottom);o._add(Ee(this._container));var r=t.layerPointToContainerPoint(o),s=I(this.options.autoPanPadding),a=I(this.options.autoPanPaddingTopLeft||s),l=I(this.options.autoPanPaddingBottomRight||s),u=t.getSize(),c=0,h=0;r.x+i+l.x>u.x&&(c=r.x+i-u.x+l.x),r.x-c-a.x<0&&(c=r.x-a.x),r.y+n+l.y>u.y&&(h=r.y+n-u.y+l.y),r.y-h-a.y<0&&(h=r.y-a.y),(c||h)&&t.fire("autopanstart").panBy([c,h])}},_onCloseButtonClick:function(t){this._close(),We(t)},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Pi=function(t,e){return new ki(t,e)};en.mergeOptions({closePopupOnClick:!0}),en.include({openPopup:function(t,e,n){return t instanceof ki||(t=new ki(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}}),qn.include({bindPopup:function(t,e){return t instanceof ki?(f(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new ki(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&&(We(t),e instanceof ti?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 Si=$i.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){$i.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){$i.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=$i.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=ce("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,i=this._map,o=this._container,r=i.latLngToContainerPoint(i.getCenter()),s=i.layerPointToContainerPoint(t),a=this.options.direction,l=o.offsetWidth,u=o.offsetHeight,c=I(this.options.offset),h=this._getAnchor();"top"===a?(e=l/2,n=u):"bottom"===a?(e=l/2,n=0):"center"===a?(e=l/2,n=u/2):"right"===a?(e=0,n=u/2):"left"===a?(e=l,n=u/2):s.x<r.x?(a="right",e=0,n=u/2):(a="left",e=l+2*(c.x+h.x),n=u/2),t=t.subtract(I(e,n,!0)).add(c).add(h),_e(o,"leaflet-tooltip-right"),_e(o,"leaflet-tooltip-left"),_e(o,"leaflet-tooltip-top"),_e(o,"leaflet-tooltip-bottom"),ge(o,"leaflet-tooltip-"+a),Ce(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&be(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])}}),Mi=function(t,e){return new Si(t,e)};en.include({openTooltip:function(t,e,n){return t instanceof Si||(t=new Si(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),qn.include({bindTooltip:function(t,e){return t instanceof Si?(f(t,e),this._tooltip=t,t._source=this):(this._tooltip&&!e||(this._tooltip=new Si(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){if(t||!this._tooltipHandlersAdded){var 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&&(ge(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&&(_e(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 Ai=Gn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(de(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var i=I(n.bgPos);e.style.backgroundPosition=-i.x+"px "+-i.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Ni(t){return new Ai(t)}Gn.Default=Yn;var Di=qn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:yt,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){f(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(),he(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(fe(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(pe(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=a(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 N?t:new N(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){be(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var i in this._tiles){var o=this._tiles[i];if(o.current&&o.loaded){var r=Math.min(1,(t-o.loaded)/200);be(o.el,r),r<1?e=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&($(this._fadeFrame),this._fadeFrame=E(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=ce("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)):(he(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=ce("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()),u(i.el.offsetWidth),this._onCreateLevel(i)),this._level=i,i}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.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)he(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),s=n-1,a=new N(+o,+r);a.z=+s;var l=this._tileCoordsToKey(a),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),s>i&&this._retainParent(o,r,s,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 s=new N(o,r);s.z=n+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];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);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var r=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();vt?Te(t.el,o,i):Ce(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 O(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(),s=[],a=this.options.keepBuffer,l=new O(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));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 u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new N(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var h=o.min.y;h<=o.max.y;h++)for(var d=o.min.x;d<=o.max.x;d++){var f=new N(d,h);if(f.z=this._tileZoom,this._isValidTile(f)){var p=this._tiles[this._tileCoordsToKey(f)];p?p.current=!0:s.push(f)}}if(s.sort((function(t,e){return t.distanceTo(r)-e.distanceTo(r)})),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;d<s.length;d++)this._addTile(s[d],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 N(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(he(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ge(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=u,t.onmousemove=u,et&&this.options.opacity<1&&be(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&&E(o(this._tileReady,this,t,null,r)),Ce(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?(be(n.el,0),$(this._fadeFrame),this._fadeFrame=E(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(ge(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?E(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 N(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 O(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Ii(t){return new Di(t)}var Oi=Di.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=f(this,e)).detectRetina&&$t&&e.maxZoom>0&&(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 e={r:$t?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return g(this._url,n(e,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=u,e.onerror=u,e.complete||(e.src=y,he(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return at||e.el.setAttribute("src",y),Di.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==y))return Di.prototype._tileReady.call(this,t,e,n)}});function zi(t,e){return new Oi(t,e)}var ji=Oi.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=n({},this.defaultWmsParams);for(var o in e)o in this.options||(i[o]=e[o]);var r=(e=f(this,e)).detectRetina&&$t?2:1,s=this.getTileSize();i.width=s.x*r,i.height=s.y*r,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Oi.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,s=(this._wmsVersion>=1.3&&this._crs===Zn?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),a=Oi.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});function Bi(t,e){return new ji(t,e)}Oi.WMS=ji,zi.wms=Bi;var Ri=qn.extend({options:{padding:.1,tolerance:0},initialize:function(t){f(this,t),s(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&ge(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=Ee(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,e),s=this._map.project(t,e).subtract(r),a=o.multiplyBy(-n).add(i).add(o).subtract(s);vt?Te(this._container,a,n):Ce(this._container,a)},_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 O(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Zi=Ri.extend({getEvents:function(){var t=Ri.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ri.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");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(){$(this._redrawRequest),delete this._ctx,he(this._container),Oe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Ri.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=$t?2:1;Ce(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",$t&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Ri.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[s(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,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[s(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),o=[];for(n=0;n<i.length;n++){if(e=Number(i[n]),isNaN(e))return;o.push(e)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||E(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new O,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,o,r,s=t._parts,a=s.length,l=this._ctx;if(a){for(l.beginPath(),n=0;n<a;n++){for(i=0,o=s[n].length;i<o;i++)r=s[n][i],l[i?"lineTo":"moveTo"](r.x,r.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||i)/i;1!==o&&(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&&(Ye(t),this._fireEvent([n],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(_e(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&&(ge(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=t._order;if(e){var n=e.next,i=e.prev;n&&(n.prev=i,i?i.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;i&&(i.next=n,n?n.prev=i:i&&(this._drawLast=i),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function Hi(t){return Pt?new Zi(t):null}var qi=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">')}}}(),Fi={_initContainer:function(){this._container=ce("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ri.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=qi("shape");ge(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=qi("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[s(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;he(e),t.removeInteractiveTarget(e),delete this._layers[s(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=qi("stroke")),o.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=_(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=qi("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){fe(t._container)},_bringToBack:function(t){pe(t._container)}},Wi=Mt?qi:X,Ui=Ri.extend({getEvents:function(){var t=Ri.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=Wi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Wi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){he(this._container),Oe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){Ri.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),Ce(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=Wi("path");t.options.className&&ge(e,t.options.className),t.options.interactive&&ge(e,"leaflet-interactive"),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){he(t._path),t.removeInteractiveTarget(t._path),delete this._layers[s(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,Q(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){fe(t._path)},_bringToBack:function(t){pe(t._path)}});function Vi(t){return St||Mt?new Ui(t):null}Mt&&Ui.include(Fi),en.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Hi(t)||Vi(t)}});var Gi=ai.extend({initialize:function(t,e){ai.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()]}});function Ki(t,e){return new Gi(t,e)}Ui.create=Wi,Ui.pointsToPath=Q,ui.geometryToLayer=ci,ui.coordsToLatLng=di,ui.coordsToLatLngs=fi,ui.latLngToCoords=pi,ui.latLngsToCoords=mi,ui.getFeature=gi,ui.asFeature=_i,en.mergeOptions({boxZoom:!0});var Yi=pn.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(){Oe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){he(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(),te(),$e(),this._startPoint=this._map.mouseEventToContainerPoint(t),De(document,{contextmenu:We,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ce("div","leaflet-zoom-box",this._container),ge(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new O(this._point,this._startPoint),n=e.getSize();Ce(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(he(this._box),_e(this._container,"leaflet-crosshair")),ee(),ke(),Oe(document,{contextmenu:We,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var 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()}});en.addInitHook("addHandler","boxZoom",Yi),en.mergeOptions({doubleClickZoom:!0});var Xi=pn.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)}});en.addInitHook("addHandler","doubleClickZoom",Xi),en.mergeOptions({dragging:!0,inertia:!rt,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Qi=pn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new bn(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))}ge(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){_e(this._map._container,"leaflet-grab"),_e(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=B(this._map.options.maxBounds);this._offsetLimit=z(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,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(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,o=(i-e+n)%t+e-n,r=(i+e+n)%t-e-n,s=Math.abs(o+n)<Math.abs(r+n)?o:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,n=e.options,i=!n.inertia||this._times.length<2;if(e.fire("dragend",t),i)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,s=n.easeLinearity,a=o.multiplyBy(s/r),l=a.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=a.multiplyBy(u/l),h=u/(n.inertiaDeceleration*s),d=c.multiplyBy(-h/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),E((function(){e.panBy(d,{duration:h,easeLinearity:s,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});en.addInitHook("addHandler","dragging",Qi),en.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Ji=pn.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(),Oe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,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){var e,n,i=this._panKeys={},o=this.keyCodes;for(e=0,n=o.left.length;e<n;e++)i[o.left[e]]=[-1*t,0];for(e=0,n=o.right.length;e<n;e++)i[o.right[e]]=[t,0];for(e=0,n=o.down.length;e<n;e++)i[o.down[e]]=[0,t];for(e=0,n=o.up.length;e<n;e++)i[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,i=this._zoomKeys={},o=this.keyCodes;for(e=0,n=o.zoomIn.length;e<n;e++)i[o.zoomIn[e]]=t;for(e=0,n=o.zoomOut.length;e<n;e++)i[o.zoomOut[e]]=-t},_addHooks:function(){De(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Oe(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()}We(t)}}});en.addInitHook("addHandler","keyboard",Ji),en.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var to=pn.extend({addHooks:function(){De(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Oe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ge(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),We(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,s=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0,this._startTime=null,s&&("center"===t.options.scrollWheelZoom?t.setZoom(e+s):t.setZoomAround(this._lastMousePos,e+s))}});en.addInitHook("addHandler","scrollWheelZoom",to),en.mergeOptions({tap:!0,tapTolerance:15});var eo=pn.extend({addHooks:function(){De(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Oe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Fe(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new N(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&ge(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){if(clearTimeout(this._holdTimeout),Oe(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&_e(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 N(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&&!ht||en.addInitHook("addHandler","tap",eo),en.mergeOptions({touchZoom:Ct&&!rt,bounceAtZoomLimits:!0});var no=pn.extend({addHooks:function(){ge(this._map._container,"leaflet-touch-zoom"),De(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){_e(this._map._container,"leaflet-touch-zoom"),Oe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),De(document,"touchmove",this._onTouchMove,this),De(document,"touchend",this._onTouchEnd,this),Fe(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()&&r>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===r)return}else{var s=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(1===r&&0===s.x&&0===s.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),$(this._animRequest);var a=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=E(a,this,!0),Fe(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,$(this._animRequest),Oe(document,"touchmove",this._onTouchMove,this),Oe(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}});en.addInitHook("addHandler","touchZoom",no),en.BoxZoom=Yi,en.DoubleClickZoom=Xi,en.Drag=Qi,en.Keyboard=Ji,en.ScrollWheelZoom=to,en.Tap=eo,en.TouchZoom=no,t.version=e,t.Control=on,t.control=rn,t.Browser=Nt,t.Evented=A,t.Mixin=gn,t.Util=k,t.Class=P,t.Handler=pn,t.extend=n,t.bind=o,t.stamp=s,t.setOptions=f,t.DomEvent=Je,t.DomUtil=Ne,t.PosAnimation=tn,t.Draggable=bn,t.LineUtil=Dn,t.PolyUtil=On,t.Point=N,t.point=I,t.Bounds=O,t.bounds=z,t.Transformation=V,t.transformation=G,t.Projection=Bn,t.LatLng=R,t.latLng=Z,t.LatLngBounds=j,t.latLngBounds=B,t.CRS=q,t.GeoJSON=ui,t.geoJSON=yi,t.geoJson=bi,t.Layer=qn,t.LayerGroup=Fn,t.layerGroup=Wn,t.FeatureGroup=Un,t.featureGroup=Vn,t.ImageOverlay=xi,t.imageOverlay=wi,t.VideoOverlay=Ti,t.videoOverlay=Ci,t.SVGOverlay=Ei,t.svgOverlay=Li,t.DivOverlay=$i,t.Popup=ki,t.popup=Pi,t.Tooltip=Si,t.tooltip=Mi,t.Icon=Gn,t.icon=Kn,t.DivIcon=Ai,t.divIcon=Ni,t.Marker=Qn,t.marker=Jn,t.TileLayer=Oi,t.tileLayer=zi,t.GridLayer=Di,t.gridLayer=Ii,t.SVG=Ui,t.svg=Vi,t.Renderer=Ri,t.Canvas=Zi,t.canvas=Hi,t.Path=ti,t.CircleMarker=ei,t.circleMarker=ni,t.Circle=ii,t.circle=oi,t.Polyline=ri,t.polyline=si,t.Polygon=ai,t.polygon=li,t.Rectangle=Gi,t.rectangle=Ki,t.Map=en,t.map=nn;var io=window.L;t.noConflict=function(){return window.L=io,this},window.L=t}(e)}));function Ke(e){let n,i,o,r,s,a,l,u,c,h,d,g,b,w,T,L,$,k,P,S,M,A,N,D,I,O,z,j;return{c(){n=_("div"),i=_("div"),o=v("map center: "),r=v(e[0]),s=y(),a=_("a"),l=v("view on osm.org"),u=y(),c=_("br"),h=v("\n    map zoom: "),d=v(e[1]),g=y(),b=_("br"),w=v("\n    viewbox: "),T=v(e[2]),L=y(),$=_("br"),k=v("\n    last click: "),P=v(e[4]),S=y(),M=_("br"),A=v("\n    mouse position: "),N=v(e[5]),D=y(),I=_("div"),O=_("a"),O.textContent="hide",C(a,"target","_blank"),C(a,"href",e[3]),C(i,"id","map-position-inner"),C(O,"href","#hide"),C(I,"id","map-position-close"),C(I,"class","svelte-1b30dq3"),C(n,"id","map-position"),C(n,"class","svelte-1b30dq3")},m(t,e){p(t,n,e),f(n,i),f(i,o),f(i,r),f(i,s),f(i,a),f(a,l),f(i,u),f(i,c),f(i,h),f(i,d),f(i,g),f(i,b),f(i,w),f(i,T),f(i,L),f(i,$),f(i,k),f(i,P),f(i,S),f(i,M),f(i,A),f(i,N),f(n,D),f(n,I),f(I,O),z||(j=x(O,"click",Ye),z=!0)},p(t,[e]){1&e&&E(r,t[0]),8&e&&C(a,"href",t[3]),2&e&&E(d,t[1]),4&e&&E(T,t[2]),16&e&&E(P,t[4]),32&e&&E(N,t[5])},i:t,o:t,d(t){t&&m(n),z=!1,j()}}}function Ye(){document.getElementById("map-position").style.display="none",document.getElementById("show-map-position").style.display="block"}function Xe(t,e,n){let i,o,r,s,a,l,u;function c(t,e){n(0,o=t.getCenter().lat.toFixed(5)+","+t.getCenter().lng.toFixed(5)),n(3,a=function(t){return"https://openstreetmap.org/#map="+t.getZoom()+"/"+t.getCenter().lat.toFixed(5)+"/"+t.getCenter().lng.toFixed(5)}(t)),n(1,r=t.getZoom()),n(2,s=function(t){var e=t.getBounds(),n=e.getWest(),i=e.getEast();return i-n>=360&&(n=t.getCenter().lng-179.999,i=t.getCenter().lng+179.999),i=L.latLng(77,i).wrap().lng,[(n=L.latLng(77,n).wrap().lng).toFixed(5),e.getNorth().toFixed(5),i.toFixed(5),e.getSouth().toFixed(5)].join(",")}(t)),n(5,u="-"),e&&n(5,u=[e.lat.toFixed(5),e.lng.toFixed(5)].join(",")),i&&n(4,l=[i.lat.toFixed(5),i.lng.toFixed(5)].join(","))}return ct.subscribe((t=>{t&&(t.on("move",(function(){c(t)})),t.on("mousemove",(function(e){c(t,e.latlng)})),t.on("click",(function(e){i=e.latlng,c(t)})),t.on("load",(function(){c(t)})))})),[o,r,s,a,l,u]}st((function(t,e){!function(e,n){t.exports=e(Ge),void 0!==n&&n.L&&(n.L.Control.MiniMap=e(L),n.L.control.minimap=function(t,e){return new n.L.Control.MiniMap(t,e)})}((function(t){var e=t.Control.extend({includes:t.Evented?t.Evented.prototype:t.Mixin.Events,options:{position:"bottomright",toggleDisplay:!1,zoomLevelOffset:-5,zoomLevelFixed:!1,centerFixed:!1,zoomAnimation:!1,autoToggleDisplay:!1,minimized:!1,width:150,height:150,collapsedWidth:19,collapsedHeight:19,aimingRectOptions:{color:"#ff7800",weight:1,clickable:!1},shadowRectOptions:{color:"#000000",weight:1,clickable:!1,opacity:0,fillOpacity:0},strings:{hideText:"Hide MiniMap",showText:"Show MiniMap"},mapOptions:{}},initialize:function(e,n){t.Util.setOptions(this,n),this.options.aimingRectOptions.clickable=!1,this.options.shadowRectOptions.clickable=!1,this._layer=e},onAdd:function(e){this._mainMap=e,this._container=t.DomUtil.create("div","leaflet-control-minimap"),this._container.style.width=this.options.width+"px",this._container.style.height=this.options.height+"px",t.DomEvent.disableClickPropagation(this._container),t.DomEvent.on(this._container,"mousewheel",t.DomEvent.stopPropagation);var n={attributionControl:!1,dragging:!this.options.centerFixed,zoomControl:!1,zoomAnimation:this.options.zoomAnimation,autoToggleDisplay:this.options.autoToggleDisplay,touchZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),scrollWheelZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),doubleClickZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),boxZoom:!this._isZoomLevelFixed(),crs:e.options.crs};return n=t.Util.extend(this.options.mapOptions,n),this._miniMap=new t.Map(this._container,n),this._miniMap.addLayer(this._layer),this._mainMapMoving=!1,this._miniMapMoving=!1,this._userToggledDisplay=!1,this._minimized=!1,this.options.toggleDisplay&&this._addToggleButton(),this._miniMap.whenReady(t.Util.bind((function(){this._aimingRect=t.rectangle(this._mainMap.getBounds(),this.options.aimingRectOptions).addTo(this._miniMap),this._shadowRect=t.rectangle(this._mainMap.getBounds(),this.options.shadowRectOptions).addTo(this._miniMap),this._mainMap.on("moveend",this._onMainMapMoved,this),this._mainMap.on("move",this._onMainMapMoving,this),this._miniMap.on("movestart",this._onMiniMapMoveStarted,this),this._miniMap.on("move",this._onMiniMapMoving,this),this._miniMap.on("moveend",this._onMiniMapMoved,this)}),this)),this._container},addTo:function(e){t.Control.prototype.addTo.call(this,e);var n=this.options.centerFixed||this._mainMap.getCenter();return this._miniMap.setView(n,this._decideZoom(!0)),this._setDisplay(this.options.minimized),this},onRemove:function(t){this._mainMap.off("moveend",this._onMainMapMoved,this),this._mainMap.off("move",this._onMainMapMoving,this),this._miniMap.off("moveend",this._onMiniMapMoved,this),this._miniMap.removeLayer(this._layer)},changeLayer:function(t){this._miniMap.removeLayer(this._layer),this._layer=t,this._miniMap.addLayer(this._layer)},_addToggleButton:function(){this._toggleDisplayButton=this.options.toggleDisplay?this._createButton("",this._toggleButtonInitialTitleText(),"leaflet-control-minimap-toggle-display leaflet-control-minimap-toggle-display-"+this.options.position,this._container,this._toggleDisplayButtonClicked,this):void 0,this._toggleDisplayButton.style.width=this.options.collapsedWidth+"px",this._toggleDisplayButton.style.height=this.options.collapsedHeight+"px"},_toggleButtonInitialTitleText:function(){return this.options.minimized?this.options.strings.showText:this.options.strings.hideText},_createButton:function(e,n,i,o,r,s){var a=t.DomUtil.create("a",i,o);a.innerHTML=e,a.href="#",a.title=n;var l=t.DomEvent.stopPropagation;return t.DomEvent.on(a,"click",l).on(a,"mousedown",l).on(a,"dblclick",l).on(a,"click",t.DomEvent.preventDefault).on(a,"click",r,s),a},_toggleDisplayButtonClicked:function(){this._userToggledDisplay=!0,this._minimized?this._restore():this._minimize()},_setDisplay:function(t){t!==this._minimized&&(this._minimized?this._restore():this._minimize())},_minimize:function(){this.options.toggleDisplay?(this._container.style.width=this.options.collapsedWidth+"px",this._container.style.height=this.options.collapsedHeight+"px",this._toggleDisplayButton.className+=" minimized-"+this.options.position,this._toggleDisplayButton.title=this.options.strings.showText):this._container.style.display="none",this._minimized=!0,this._onToggle()},_restore:function(){this.options.toggleDisplay?(this._container.style.width=this.options.width+"px",this._container.style.height=this.options.height+"px",this._toggleDisplayButton.className=this._toggleDisplayButton.className.replace("minimized-"+this.options.position,""),this._toggleDisplayButton.title=this.options.strings.hideText):this._container.style.display="block",this._minimized=!1,this._onToggle()},_onMainMapMoved:function(t){if(this._miniMapMoving)this._miniMapMoving=!1;else{var e=this.options.centerFixed||this._mainMap.getCenter();this._mainMapMoving=!0,this._miniMap.setView(e,this._decideZoom(!0)),this._setDisplay(this._decideMinimized())}this._aimingRect.setBounds(this._mainMap.getBounds())},_onMainMapMoving:function(t){this._aimingRect.setBounds(this._mainMap.getBounds())},_onMiniMapMoveStarted:function(t){if(!this.options.centerFixed){var e=this._aimingRect.getBounds(),n=this._miniMap.latLngToContainerPoint(e.getSouthWest()),i=this._miniMap.latLngToContainerPoint(e.getNorthEast());this._lastAimingRectPosition={sw:n,ne:i}}},_onMiniMapMoving:function(e){this.options.centerFixed||!this._mainMapMoving&&this._lastAimingRectPosition&&(this._shadowRect.setBounds(new t.LatLngBounds(this._miniMap.containerPointToLatLng(this._lastAimingRectPosition.sw),this._miniMap.containerPointToLatLng(this._lastAimingRectPosition.ne))),this._shadowRect.setStyle({opacity:1,fillOpacity:.3}))},_onMiniMapMoved:function(t){this._mainMapMoving?this._mainMapMoving=!1:(this._miniMapMoving=!0,this._mainMap.setView(this._miniMap.getCenter(),this._decideZoom(!1)),this._shadowRect.setStyle({opacity:0,fillOpacity:0}))},_isZoomLevelFixed:function(){var t=this.options.zoomLevelFixed;return this._isDefined(t)&&this._isInteger(t)},_decideZoom:function(t){if(this._isZoomLevelFixed())return t?this.options.zoomLevelFixed:this._mainMap.getZoom();if(t)return this._mainMap.getZoom()+this.options.zoomLevelOffset;var e,n=this._miniMap.getZoom()-this._mainMap.getZoom(),i=this._miniMap.getZoom()-this.options.zoomLevelOffset;return n>this.options.zoomLevelOffset&&this._mainMap.getZoom()<this._miniMap.getMinZoom()-this.options.zoomLevelOffset?this._miniMap.getZoom()>this._lastMiniMapZoom?(e=this._mainMap.getZoom()+1,this._miniMap.setZoom(this._miniMap.getZoom()-1)):e=this._mainMap.getZoom():e=i,this._lastMiniMapZoom=this._miniMap.getZoom(),e},_decideMinimized:function(){return this._userToggledDisplay?this._minimized:this.options.autoToggleDisplay?!!this._mainMap.getBounds().contains(this._miniMap.getBounds()):this._minimized},_isInteger:function(t){return"number"==typeof t},_isDefined:function(t){return void 0!==t},_onToggle:function(){t.Util.requestAnimFrame((function(){t.DomEvent.on(this._container,"transitionend",this._fireToggleEvents,this),t.Browser.any3d||t.Util.requestAnimFrame(this._fireToggleEvents,this)}),this)},_fireToggleEvents:function(){t.DomEvent.off(this._container,"transitionend",this._fireToggleEvents,this);var e={minimized:this._minimized};this.fire(this._minimized?"minimize":"restore",e),this.fire("toggle",e)}});return t.Map.mergeOptions({miniMapControl:!1}),t.Map.addInitHook((function(){this.options.miniMapControl&&(this.miniMapControl=(new e).addTo(this))})),e}),window)}));class Qe extends ot{constructor(t){super(),it(this,t,Xe,Ke,s,{})}}function Je(e){let n,i,s,a,l,u,c,h;return n=new Qe({}),{c(){J(n.$$.fragment),i=y(),s=_("div"),a=y(),l=_("div"),l.textContent="show map bounds",C(s,"id","map"),C(s,"class","svelte-1vbvdrk"),C(l,"id","show-map-position"),C(l,"class","leaflet-bar btn btn-sm btn-outline-secondary svelte-1vbvdrk")},m(o,d){var f;tt(n,o,d),p(o,i,d),p(o,s,d),p(o,a,d),p(o,l,d),u=!0,c||(h=[(f=e[0].call(null,s),f&&r(f.destroy)?f.destroy:t),x(l,"click",T(tn))],c=!0)},p:t,i(t){u||(Y(n.$$.fragment,t),u=!0)},o(t){X(n.$$.fragment,t),u=!1},d(t){et(n,t),t&&m(i),t&&m(s),t&&m(a),t&&m(l),c=!1,o(h)}}}function tn(t){t.target.style.display="none",document.getElementById("map-position").style.display="block"}function en(t,e,n){let{display_minimap:i=!1}=e,{current_result:o=null}=e,{position_marker:r=null}=e,s=[];function a(t){let e=l(ct);if(!e)return;if(function(){let t=l(ct);t&&s.forEach((function(e){t.removeLayer(e)}))}(),r){let t=Ge.circleMarker(r,{radius:5,weight:2,fillColor:"#ff7800",color:"red",opacity:.75,zIndexOffset:100,clickable:!1});t.addTo(e),s.push(t)}var n=new URLSearchParams(window.location.search).get("viewbox");if(n){let t=n.split(","),i=Ge.latLngBounds([t[1],t[0]],[t[3],t[2]]);Ge.rectangle(i,{color:"#69d53e",weight:3,dashArray:"5 5",opacity:.8,fill:!1}).addTo(e)}if(!t)return;let i=t.centroid?t.centroid.coordinates[1]:t.lat,o=t.centroid?t.centroid.coordinates[0]:t.lon,a=t.geometry||t.geojson;if(i&&o){let t=Ge.circleMarker([i,o],{radius:10,weight:2,fillColor:"#ff7800",color:"blue",opacity:.75});e.addLayer(t),s.push(t)}if(a){var u=Ge.geoJson({type:"FeatureCollection",features:[{type:"Feature",geometry:a,properties:{}}]},{style:()=>({interactive:!1,color:"blue"})});e.addLayer(u),s.push(u),e.fitBounds(u.getBounds())}else i&&o&&r?e.fitBounds([[i,o],r],{padding:[50,50]}):i&&o&&e.setView([i,o],10)}return t.$$set=t=>{"display_minimap"in t&&n(1,i=t.display_minimap),"current_result"in t&&n(2,o=t.current_result),"position_marker"in t&&n(3,r=t.position_marker)},t.$$.update=()=>{4&t.$$.dirty&&a(o)},[function(t){let e=function(t){const e=Nominatim_Config.Map_Tile_Attribution;let n=new Ge.map(t,{attributionControl:e&&e.length,scrollWheelZoom:!0,touchZoom:!1,center:[Nominatim_Config.Map_Default_Lat,Nominatim_Config.Map_Default_Lon],zoom:Nominatim_Config.Map_Default_Zoom});if(Ge.tileLayer(Nominatim_Config.Map_Tile_URL,{attribution:e}).addTo(n),i){let t=new Ge.TileLayer(Nominatim_Config.Map_Tile_URL,{minZoom:0,maxZoom:13,attribution:e});new Ge.Control.MiniMap(t,{toggleDisplay:!0}).addTo(n)}const o=Ge.Control.extend({options:{position:"topright"},onAdd:()=>document.getElementById("show-map-position")});return n.addControl(new o),n}(t);return ct.set(e),a(o),{destroy:()=>{ct.set(null),e.remove()}}},i,o,r]}class nn extends ot{constructor(t){super(),it(this,t,en,Je,s,{display_minimap:1,current_result:2,position_marker:3})}}function on(t){let e,n;return e=new he({props:{api_request_params:t[0],bStructuredSearch:t[2]}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.api_request_params=t[0]),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function rn(t){let e,n,i,o,r,s,a,l,u,c;function h(e){t[4](e)}e=new te({props:{$$slots:{default:[on]},$$scope:{ctx:t}}});let d={reverse_search:!1};return void 0!==t[1]&&(d.current_result=t[1]),r=new Ve({props:d}),I.push((()=>Q(r,"current_result",h))),u=new nn({props:{current_result:t[1],display_minimap:!0}}),{c(){J(e.$$.fragment),n=y(),i=_("div"),o=_("div"),J(r.$$.fragment),a=y(),l=_("div"),J(u.$$.fragment),C(o,"class","sidebar svelte-1d53ob0"),C(l,"id","map-wrapper"),C(l,"class","svelte-1d53ob0"),C(i,"id","content"),C(i,"class","svelte-1d53ob0")},m(t,s){tt(e,t,s),p(t,n,s),p(t,i,s),f(i,o),tt(r,o,null),f(i,a),f(i,l),tt(u,l,null),c=!0},p(t,[n]){const i={};65&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i);const o={};!s&&2&n&&(s=!0,o.current_result=t[1],Z((()=>s=!1))),r.$set(o);const a={};2&n&&(a.current_result=t[1]),u.$set(a)},i(t){c||(Y(e.$$.fragment,t),Y(r.$$.fragment,t),Y(u.$$.fragment,t),c=!0)},o(t){X(e.$$.fragment,t),X(r.$$.fragment,t),X(u.$$.fragment,t),c=!1},d(t){et(e,t),t&&m(n),t&&m(i),et(r),et(u)}}}function sn(t,e,n){let i,o,r;return u(t,pt,(t=>n(3,i=t))),t.$$.update=()=>{if(8&t.$$.dirty){let t=i;"search"===t.tab&&function(t){Tt(),n(0,o={q:t.get("q"),street:t.get("street"),city:t.get("city"),county:t.get("county"),state:t.get("state"),country:t.get("country"),postalcode:t.get("postalcode"),polygon_geojson:Nominatim_Config.Search_AreaPolygons?1:0,viewbox:t.get("viewbox"),bounded:t.get("bounded"),dedupe:t.get("dedupe"),"accept-language":t.get("accept-language"),countrycodes:t.get("countrycodes"),limit:t.get("limit"),polygon_threshold:t.get("polygon_threshold"),exclude_place_ids:t.get("exclude_place_ids"),format:"jsonv2"});let e=o.street||o.city||o.county||o.state||o.country||o.postalcode;o.q||e?bt("search",o,(function(t){ht.set(t),Tt("Result for "+o.q),e?(document.querySelector(".nav-tabs a[href='#structured']").click(),document.querySelector("input[name=street]").focus()):document.querySelector("input[name=q]").focus()})):ht.set(void 0)}(t.params)}},[o,r,undefined,i,function(t){r=t,n(1,r)}]}class an extends ot{constructor(t){super(),it(this,t,sn,rn,s,{})}}function ln(t,e,n){const i=t.slice();return i[8]=e[n],i[10]=n,i}function un(e){let n,i,o,r,s=e[8]+"";return{c(){n=_("option"),i=v(e[10]),o=v(" - "),r=v(s),n.__value=e[10],n.value=n.__value},m(t,e){p(t,n,e),f(n,i),f(n,o),f(n,r)},p:t,d(t){t&&m(n)}}}function cn(t){let e,n,i,r,s,a,l,u,c,h,d,v,b,E,L,P,S,M,A,N,D,I,O=Ee(),z=[];for(let e=0;e<O.length;e+=1)z[e]=un(ln(t,O,e));return{c(){e=_("div"),n=_("label"),n.textContent="lat",i=y(),r=_("input"),s=y(),a=_("div"),l=_("a"),l.textContent="<>",u=y(),c=_("div"),h=_("label"),h.textContent="lon",d=y(),v=_("input"),b=y(),E=_("div"),L=_("label"),L.textContent="max zoom",P=y(),S=_("select"),M=_("option"),M.textContent="---";for(let t=0;t<z.length;t+=1)z[t].c();A=y(),N=_("div"),N.innerHTML='<button type="submit" class="btn btn-primary btn-sm mx-1">Search</button>',C(n,"for","reverse-lat"),C(n,"class","svelte-1z124cx"),C(r,"id","reverse-lat"),C(r,"name","lat"),C(r,"type","text"),C(r,"class","form-control form-control-sm svelte-1z124cx"),C(r,"placeholder","latitude"),C(r,"pattern","^-?\\d+(\\.\\d+)?$"),C(e,"class","form-group"),C(l,"id","switch-coords"),C(l,"class","btn btn-outline-secondary btn-sm svelte-1z124cx"),C(l,"title","switch lat and lon"),C(a,"class","form-group"),C(h,"for","reverse-lon"),C(h,"class","svelte-1z124cx"),C(v,"id","reverse-lon"),C(v,"name","lon"),C(v,"type","text"),C(v,"class","form-control form-control-sm svelte-1z124cx"),C(v,"placeholder","longitude"),C(v,"pattern","^-?\\d+(\\.\\d+)?$"),C(c,"class","form-group"),C(L,"for","reverse-zoom"),C(L,"class","svelte-1z124cx"),M.__value="",M.value=M.__value,C(S,"id","reverse-zoom"),C(S,"name","zoom"),C(S,"class","form-control form-control-sm svelte-1z124cx"),void 0===t[2]&&R((()=>t[7].call(S))),C(E,"class","form-group"),C(N,"class","form-group")},m(o,m){p(o,e,m),f(e,n),f(e,i),f(e,r),$(r,t[0]),p(o,s,m),p(o,a,m),f(a,l),p(o,u,m),p(o,c,m),f(c,h),f(c,d),f(c,v),$(v,t[1]),p(o,b,m),p(o,E,m),f(E,L),f(E,P),f(E,S),f(S,M);for(let t=0;t<z.length;t+=1)z[t].m(S,null);k(S,t[2]),p(o,A,m),p(o,N,m),D||(I=[x(r,"input",t[4]),x(r,"change",dn),x(l,"click",T(w(t[5]))),x(v,"input",t[6]),x(S,"change",t[7])],D=!0)},p(t,e){if(1&e&&r.value!==t[0]&&$(r,t[0]),2&e&&v.value!==t[1]&&$(v,t[1]),0&e){let n;for(O=Ee(),n=0;n<O.length;n+=1){const i=ln(t,O,n);z[n]?z[n].p(i,e):(z[n]=un(i),z[n].c(),z[n].m(S,null))}for(;n<z.length;n+=1)z[n].d(1);z.length=O.length}4&e&&k(S,t[2])},d(t){t&&m(e),t&&m(s),t&&m(a),t&&m(u),t&&m(c),t&&m(b),t&&m(E),g(z,t),t&&m(A),t&&m(N),D=!1,o(I)}}}function hn(t){let e,n;return e=new ie({props:{page:"reverse",$$slots:{default:[cn]},$$scope:{ctx:t}}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,[n]){const i={};2055&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function dn(t){var e=t.target.value.split(",");2===e.length&&(document.querySelector("input[name=lat]").value=L.Util.trim(e[0]),document.querySelector("input[name=lon]").value=L.Util.trim(e[1]))}function fn(t,e,n){let{lat:i=""}=e,{lon:o=""}=e,{zoom:r=""}=e;function s(t,e,n){let i=new URLSearchParams;i.set("lat",t),i.set("lon",e),i.set("zoom",n||r),gt("reverse",i)}ct.subscribe((t=>{t&&t.on("click",(t=>{let e=t.latlng.wrap();s(e.lat.toFixed(5),e.lng.toFixed(5))}))}));return t.$$set=t=>{"lat"in t&&n(0,i=t.lat),"lon"in t&&n(1,o=t.lon),"zoom"in t&&n(2,r=t.zoom)},[i,o,r,s,function(){i=this.value,n(0,i)},()=>s(o,i),function(){o=this.value,n(1,o)},function(){r=function(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}(this),n(2,r)}]}class pn extends ot{constructor(t){super(),it(this,t,fn,hn,s,{lat:0,lon:1,zoom:2})}}function mn(t){let n,i;const o=[t[0]];let r={};for(let t=0;t<o.length;t+=1)r=e(r,o[t]);return n=new pn({props:r}),{c(){J(n.$$.fragment)},m(t,e){tt(n,t,e),i=!0},p(t,e){const i=1&e?function(t,e){const n={},i={},o={$$scope:1};let r=t.length;for(;r--;){const s=t[r],a=e[r];if(a){for(const t in s)t in a||(i[t]=1);for(const t in a)o[t]||(n[t]=a[t],o[t]=1);t[r]=a}else for(const t in s)o[t]=1}for(const t in i)t in n||(n[t]=void 0);return n}(o,[(r=t[0],"object"==typeof r&&null!==r?r:{})]):{};var r;n.$set(i)},i(t){i||(Y(n.$$.fragment,t),i=!0)},o(t){X(n.$$.fragment,t),i=!1},d(t){et(n,t)}}}function gn(t){let e,n,i,o,r,s,a,l,u,c;function h(e){t[4](e)}e=new te({props:{$$slots:{default:[mn]},$$scope:{ctx:t}}});let d={reverse_search:!0};return void 0!==t[1]&&(d.current_result=t[1]),r=new Ve({props:d}),I.push((()=>Q(r,"current_result",h))),u=new nn({props:{current_result:t[1],position_marker:t[2],display_minimap:!0}}),{c(){J(e.$$.fragment),n=y(),i=_("div"),o=_("div"),J(r.$$.fragment),a=y(),l=_("div"),J(u.$$.fragment),C(o,"class","sidebar svelte-1d53ob0"),C(l,"id","map-wrapper"),C(l,"class","svelte-1d53ob0"),C(i,"id","content"),C(i,"class","svelte-1d53ob0")},m(t,s){tt(e,t,s),p(t,n,s),p(t,i,s),f(i,o),tt(r,o,null),f(i,a),f(i,l),tt(u,l,null),c=!0},p(t,[n]){const i={};65&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i);const o={};!s&&2&n&&(s=!0,o.current_result=t[1],Z((()=>s=!1))),r.$set(o);const a={};2&n&&(a.current_result=t[1]),4&n&&(a.position_marker=t[2]),u.$set(a)},i(t){c||(Y(e.$$.fragment,t),Y(r.$$.fragment,t),Y(u.$$.fragment,t),c=!0)},o(t){X(e.$$.fragment,t),X(r.$$.fragment,t),X(u.$$.fragment,t),c=!1},d(t){et(e,t),t&&m(n),t&&m(i),et(r),et(u)}}}function _n(t,e,n){let i,o,r,s;return u(t,pt,(t=>n(3,i=t))),t.$$.update=()=>{if(8&t.$$.dirty){let t=i;"reverse"===t.tab&&(e=t.params,Tt(),n(0,o={lat:e.get("lat"),lon:e.get("lon"),zoom:e.get("zoom")>1?Number(e.get("zoom")):Number(Nominatim_Config.Reverse_Default_Search_Zoom),format:"jsonv2"}),o.lat||o.lat?bt("reverse",o,(function(t){t&&!t.error?(n(2,s=[o.lat,o.lon]),ht.set([t])):ht.set([]),Tt("Reverse result for "+o.lat+","+o.lon),document.querySelector("input[name=lat]").focus()})):ht.set(void 0))}var e},[o,r,s,i,function(t){r=t,n(1,r)}]}class vn extends ot{constructor(t){super(),it(this,t,_n,gn,s,{})}}function yn(e){let n,i,o,r,s,a,l,u,c;return{c(){n=_("form"),i=_("input"),r=y(),s=_("button"),s.textContent="Show",a=y(),l=_("small"),l.innerHTML='OSM type+id (<em class="svelte-1kvo9ki">N123</em>, <em class="svelte-1kvo9ki">W123</em>, <em class="svelte-1kvo9ki">R123</em>),\n  Place id (<em class="svelte-1kvo9ki">1234</em>) or\n  URL (<em class="svelte-1kvo9ki">https://openstreetmap.org/way/123</em>)',C(i,"type","edit"),C(i,"class","form-control form-control-sm mr-1 svelte-1kvo9ki"),C(i,"pattern","^[NWR]?[0-9]+$|.*openstreetmap.*"),i.value=o=""+((e[0].osmtype||"")+(e[0].osmid||"")+(e[0].place_id||"")),C(s,"type","submit"),C(s,"class","btn btn-primary btn-sm"),C(n,"class","form-inline svelte-1kvo9ki"),C(n,"action","details.html"),C(l,"class","form-text text-muted svelte-1kvo9ki")},m(t,o){p(t,n,o),f(n,i),f(n,r),f(n,s),p(t,a,o),p(t,l,o),u||(c=x(n,"submit",w(e[1])),u=!0)},p(t,[e]){1&e&&o!==(o=""+((t[0].osmtype||"")+(t[0].osmid||"")+(t[0].place_id||"")))&&(i.value=o)},i:t,o:t,d(t){t&&m(n),t&&m(a),t&&m(l),u=!1,c()}}}function bn(t,e,n){let{api_request_params:i={}}=e;return t.$$set=t=>{"api_request_params"in t&&n(0,i=t.api_request_params)},[i,function(t){let e=t.target.querySelector("input[type=edit]").value.trim(),n=e.match(/^\s*([NWR])(\d+)\s*$/i)||e.match(/\/(relation|way|node)\/(\d+)\s*$/);var i=new URLSearchParams;if(n)i.set("osmtype",n[1].charAt(0).toUpperCase()),i.set("osmid",n[2]);else{if(!e.match(/^\d+$/))return void alert("invalid input");i.set("place_id",e)}gt("details",i)}]}class xn extends ot{constructor(t){super(),it(this,t,bn,yn,s,{api_request_params:0})}}function wn(e){let n;return{c(){n=_("span"),n.textContent="No Name",C(n,"class","noname svelte-bio7jk")},m(t,e){p(t,n,e)},p:t,d(t){t&&m(n)}}}function Tn(t){let e,n=t[0].localname+"";return{c(){e=v(n)},m(t,n){p(t,e,n)},p(t,i){1&i&&n!==(n=t[0].localname+"")&&E(e,n)},d(t){t&&m(e)}}}function Cn(t){let e,n;return e=new Lt({props:{page:"search",params_hash:{postalcode:t[0].localname},$$slots:{default:[$n]},$$scope:{ctx:t}}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.params_hash={postalcode:t[0].localname}),16&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function En(t){let e,n;return e=new Lt({props:{page:"search",params_hash:{country:t[0].localname},$$slots:{default:[kn]},$$scope:{ctx:t}}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.params_hash={country:t[0].localname}),16&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function Ln(t){let e,n;return e=new Pe({props:{feature:t[0],$$slots:{default:[Pn]},$$scope:{ctx:t}}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.feature=t[0]),16&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function $n(t){let e;return{c(){e=v("search by name")},m(t,n){p(t,e,n)},d(t){t&&m(e)}}}function kn(t){let e;return{c(){e=v("search by name")},m(t,n){p(t,e,n)},d(t){t&&m(e)}}}function Pn(t){let e;return{c(){e=v("details")},m(t,n){p(t,e,n)},d(t){t&&m(e)}}}function Sn(t){let e,n,i,o,r,s,a,l,u,c,h,d,g,b,x,w,T,L,$,k,S,M=xe(t[0])+"",A=me(t[0])+"",N=t[0].rank_address+"",D=we(t[0].admin_level)+"",I=Te(t[0].distance,t[1])+"";function O(t,e){return t[0].localname?Tn:wn}let z=O(t),j=z(t);const B=[Ln,En,Cn],R=[];function Z(t,e){return t[0].osm_id?0:(1&e&&(L=!!t[0].type.match(/^country/)),L?1:"postcode"===t[0].type?2:-1)}return~($=Z(t,-1))&&(k=R[$]=B[$](t)),{c(){e=_("tr"),n=_("td"),j.c(),i=y(),o=_("td"),r=v(M),s=y(),a=_("td"),l=y(),u=_("td"),c=v(N),h=y(),d=_("td"),g=v(D),b=y(),x=_("td"),w=y(),T=_("td"),k&&k.c(),C(n,"class","name font-weight-bold svelte-bio7jk"),C(o,"class","svelte-bio7jk"),C(a,"class","svelte-bio7jk"),C(u,"class","svelte-bio7jk"),C(d,"class","svelte-bio7jk"),C(x,"class","svelte-bio7jk"),C(T,"class","svelte-bio7jk"),C(e,"class","svelte-bio7jk"),P(e,"notused",t[2]&&!t[3])},m(t,m){p(t,e,m),f(e,n),j.m(n,null),f(e,i),f(e,o),f(o,r),f(e,s),f(e,a),a.innerHTML=A,f(e,l),f(e,u),f(u,c),f(e,h),f(e,d),f(d,g),f(e,b),f(e,x),x.innerHTML=I,f(e,w),f(e,T),~$&&R[$].m(T,null),S=!0},p(t,[i]){z===(z=O(t))&&j?j.p(t,i):(j.d(1),j=z(t),j&&(j.c(),j.m(n,null))),(!S||1&i)&&M!==(M=xe(t[0])+"")&&E(r,M),(!S||1&i)&&A!==(A=me(t[0])+"")&&(a.innerHTML=A),(!S||1&i)&&N!==(N=t[0].rank_address+"")&&E(c,N),(!S||1&i)&&D!==(D=we(t[0].admin_level)+"")&&E(g,D),(!S||3&i)&&I!==(I=Te(t[0].distance,t[1])+"")&&(x.innerHTML=I);let o=$;$=Z(t,i),$===o?~$&&R[$].p(t,i):(k&&(G(),X(R[o],1,1,(()=>{R[o]=null})),K()),~$?(k=R[$],k?k.p(t,i):(k=R[$]=B[$](t),k.c()),Y(k,1),k.m(T,null)):k=null),12&i&&P(e,"notused",t[2]&&!t[3])},i(t){S||(Y(k),S=!0)},o(t){X(k),S=!1},d(t){t&&m(e),j.d(),~$&&R[$].d()}}}function Mn(t,e,n){let i,{addressLine:o}=e,{bDistanceInMeters:r}=e,{bMarkUnusedLines:s=!1}=e;return t.$$set=t=>{"addressLine"in t&&n(0,o=t.addressLine),"bDistanceInMeters"in t&&n(1,r=t.bDistanceInMeters),"bMarkUnusedLines"in t&&n(2,s=t.bMarkUnusedLines)},t.$$.update=()=>{1&t.$$.dirty&&n(3,i=o.isaddress)},[o,r,s,i]}class An extends ot{constructor(t){super(),it(this,t,Mn,Sn,s,{addressLine:0,bDistanceInMeters:1,bMarkUnusedLines:2})}}function Nn(t){let e,n,i,o,r,s;const a=t[2].default,l=c(a,t,t[1],null);return{c(){e=_("tr"),n=_("td"),i=v(t[0]),o=y(),r=_("td"),l&&l.c(),C(n,"class","svelte-1184nr4"),C(r,"class","svelte-1184nr4")},m(t,a){p(t,e,a),f(e,n),f(n,i),f(e,o),f(e,r),l&&l.m(r,null),s=!0},p(t,[e]){(!s||1&e)&&E(i,t[0]),l&&l.p&&2&e&&d(l,a,t,t[1],e,null,null)},i(t){s||(Y(l,t),s=!0)},o(t){X(l,t),s=!1},d(t){t&&m(e),l&&l.d(t)}}}function Dn(t,e,n){let{$$slots:i={},$$scope:o}=e,{title:r}=e;return t.$$set=t=>{"title"in t&&n(0,r=t.title),"$$scope"in t&&n(1,o=t.$$scope)},[r,o,i]}class In extends ot{constructor(t){super(),it(this,t,Dn,Nn,s,{title:0})}}function On(t,e,n){const i=t.slice();return i[1]=e[n],i}function zn(t){let e,n,i,o,r,s,a=t[0][t[1]]+"",l=t[1]+"";return{c(){e=_("div"),n=_("span"),i=v(a),o=v(" ("),r=v(l),s=v(")\n  "),C(n,"class","name svelte-ndknvb"),C(e,"class","line")},m(t,a){p(t,e,a),f(e,n),f(n,i),f(e,o),f(e,r),f(e,s)},p(t,e){1&e&&a!==(a=t[0][t[1]]+"")&&E(i,a),1&e&&l!==(l=t[1]+"")&&E(r,l)},d(t){t&&m(e)}}}function jn(e){let n,i=Object.keys(e[0]),o=[];for(let t=0;t<i.length;t+=1)o[t]=zn(On(e,i,t));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();n=b()},m(t,e){for(let n=0;n<o.length;n+=1)o[n].m(t,e);p(t,n,e)},p(t,[e]){if(1&e){let r;for(i=Object.keys(t[0]),r=0;r<i.length;r+=1){const s=On(t,i,r);o[r]?o[r].p(s,e):(o[r]=zn(s),o[r].c(),o[r].m(n.parentNode,n))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},i:t,o:t,d(t){g(o,t),t&&m(n)}}}function Bn(t,e,n){let{items:i}=e;return t.$$set=t=>{"items"in t&&n(0,i=t.items)},[i]}class Rn extends ot{constructor(t){super(),it(this,t,Bn,jn,s,{items:0})}}function Zn(t,e,n){const i=t.slice();return i[6]=e[n],i}function Hn(t,e,n){const i=t.slice();return i[9]=e[n],i}function qn(t,e,n){const i=t.slice();return i[12]=e[n],i}function Fn(t,e,n){const i=t.slice();return i[12]=e[n],i}function Wn(t,e,n){const i=t.slice();return i[17]=e[n],i}function Un(t,e,n){const i=t.slice();return i[17]=e[n],i}function Vn(t){let e,n;return e=new xn({props:{api_request_params:t[2]}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,n){const i={};4&n&&(i.api_request_params=t[2]),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function Gn(e){let n;return{c(){n=v("No such place found.")},m(t,e){p(t,n,e)},p:t,i:t,o:t,d(t){t&&m(n)}}}function Kn(t){let e,n,i,o,r,s,a,l,u,c,h,d,g,b,x,w,T,L,$,k,P,S,M,A,N,D,I,O,z,j,B,R,Z,H,q,F,W,U,V,Q,nt,it,ot,rt,st,at,lt,ut,ct,ht,dt,ft,pt,mt,gt,_t,vt,yt,bt,xt,wt,Tt,Ct,Et,Lt=t[0].localname+"",$t=ye(t[0]);a=new Pe({props:{feature:t[0],$$slots:{default:[Yn]},$$scope:{ctx:t}}}),c=new Ie({props:{aPlace:t[0]}}),w=new In({props:{title:"Name",$$slots:{default:[Xn]},$$scope:{ctx:t}}}),L=new In({props:{title:"Type",$$slots:{default:[Qn]},$$scope:{ctx:t}}}),k=new In({props:{title:"Last Updated",$$slots:{default:[Jn]},$$scope:{ctx:t}}});let kt=$t&&ti(t);M=new In({props:{title:"Search Rank",$$slots:{default:[ni]},$$scope:{ctx:t}}}),N=new In({props:{title:"Address Rank",$$slots:{default:[ii]},$$scope:{ctx:t}}});let Pt=t[0].calculated_importance&&oi(t);O=new In({props:{title:"Coverage",$$slots:{default:[ai]},$$scope:{ctx:t}}}),j=new In({props:{title:"Centre Point (lat,lon)",$$slots:{default:[li]},$$scope:{ctx:t}}}),R=new In({props:{title:"OSM",$$slots:{default:[ui]},$$scope:{ctx:t}}}),H=new In({props:{title:"Place Id",$$slots:{default:[ci]},$$scope:{ctx:t}}});let St=t[0].calculated_wikipedia&&hi(t);W=new In({props:{title:"Computed Postcode",$$slots:{default:[fi]},$$scope:{ctx:t}}}),V=new In({props:{title:"Address Tags",$$slots:{default:[pi]},$$scope:{ctx:t}}}),nt=new In({props:{title:"Extra Tags",$$slots:{default:[mi]},$$scope:{ctx:t}}}),st=new nn({props:{current_result:t[0]}});let Mt=t[0].address&&gi(t),At=t[0].linked_places&&vi(t);function Nt(t,e){return t[0].keywords?xi:bi}let Dt=Nt(t),It=Dt(t);const Ot=[ki,$i],zt=[];function jt(t,e){return t[0].hierarchy?0:1}return Tt=jt(t),Ct=zt[Tt]=Ot[Tt](t),{c(){e=_("div"),n=_("div"),i=_("h1"),o=v(Lt),r=y(),s=_("small"),J(a.$$.fragment),l=y(),u=_("div"),J(c.$$.fragment),h=y(),d=_("div"),g=_("div"),b=_("table"),x=_("tbody"),J(w.$$.fragment),T=y(),J(L.$$.fragment),$=y(),J(k.$$.fragment),P=y(),kt&&kt.c(),S=y(),J(M.$$.fragment),A=y(),J(N.$$.fragment),D=y(),Pt&&Pt.c(),I=y(),J(O.$$.fragment),z=y(),J(j.$$.fragment),B=y(),J(R.$$.fragment),Z=y(),J(H.$$.fragment),q=y(),St&&St.c(),F=y(),J(W.$$.fragment),U=y(),J(V.$$.fragment),Q=y(),J(nt.$$.fragment),it=y(),ot=_("div"),rt=_("div"),J(st.$$.fragment),at=y(),lt=_("div"),ut=_("div"),ct=_("h2"),ct.textContent="Address",ht=y(),dt=_("table"),ft=_("thead"),ft.innerHTML="<tr><th>Local name</th> \n              <th>Type</th> \n              <th>OSM</th> \n              <th>Address rank</th> \n              <th>Admin level</th> \n              <th>Distance</th> \n              <th></th></tr>",pt=y(),mt=_("tbody"),Mt&&Mt.c(),gt=y(),At&&At.c(),_t=y(),vt=_("tr"),vt.innerHTML='<td colspan="6" class="svelte-mfbmpl"><h2 class="svelte-mfbmpl">Keywords</h2></td>',yt=y(),It.c(),bt=y(),xt=_("tr"),xt.innerHTML='<td colspan="6" class="svelte-mfbmpl"><h2 class="svelte-mfbmpl">Parent Of</h2></td>',wt=y(),Ct.c(),C(s,"class","svelte-mfbmpl"),C(i,"class","svelte-mfbmpl"),C(n,"class","col-sm-10"),C(u,"class","col-sm-2 text-right"),C(e,"class","row"),C(b,"id","locationdetails"),C(b,"class","table table-striped table-responsive"),C(g,"class","col-md-6"),C(rt,"id","map-wrapper"),C(rt,"class","svelte-mfbmpl"),C(ot,"class","col-md-6"),C(d,"class","row"),C(ct,"class","svelte-mfbmpl"),C(vt,"class","all-columns svelte-mfbmpl"),C(xt,"class","all-columns svelte-mfbmpl"),C(dt,"id","address"),C(dt,"class","table table-striped table-small"),C(ut,"class","col-md-12"),C(lt,"class","row")},m(t,m){p(t,e,m),f(e,n),f(n,i),f(i,o),f(i,r),f(i,s),tt(a,s,null),f(e,l),f(e,u),tt(c,u,null),p(t,h,m),p(t,d,m),f(d,g),f(g,b),f(b,x),tt(w,x,null),f(x,T),tt(L,x,null),f(x,$),tt(k,x,null),f(x,P),kt&&kt.m(x,null),f(x,S),tt(M,x,null),f(x,A),tt(N,x,null),f(x,D),Pt&&Pt.m(x,null),f(x,I),tt(O,x,null),f(x,z),tt(j,x,null),f(x,B),tt(R,x,null),f(x,Z),tt(H,x,null),f(x,q),St&&St.m(x,null),f(x,F),tt(W,x,null),f(x,U),tt(V,x,null),f(x,Q),tt(nt,x,null),f(d,it),f(d,ot),f(ot,rt),tt(st,rt,null),p(t,at,m),p(t,lt,m),f(lt,ut),f(ut,ct),f(ut,ht),f(ut,dt),f(dt,ft),f(dt,pt),f(dt,mt),Mt&&Mt.m(mt,null),f(mt,gt),At&&At.m(mt,null),f(mt,_t),f(mt,vt),f(mt,yt),It.m(mt,null),f(mt,bt),f(mt,xt),f(mt,wt),zt[Tt].m(mt,null),Et=!0},p(t,e){(!Et||1&e)&&Lt!==(Lt=t[0].localname+"")&&E(o,Lt);const n={};1&e&&(n.feature=t[0]),4194304&e&&(n.$$scope={dirty:e,ctx:t}),a.$set(n);const i={};1&e&&(i.aPlace=t[0]),c.$set(i);const r={};4194305&e&&(r.$$scope={dirty:e,ctx:t}),w.$set(r);const s={};4194305&e&&(s.$$scope={dirty:e,ctx:t}),L.$set(s);const l={};4194305&e&&(l.$$scope={dirty:e,ctx:t}),k.$set(l),1&e&&($t=ye(t[0])),$t?kt?(kt.p(t,e),1&e&&Y(kt,1)):(kt=ti(t),kt.c(),Y(kt,1),kt.m(x,S)):kt&&(G(),X(kt,1,1,(()=>{kt=null})),K());const u={};4194305&e&&(u.$$scope={dirty:e,ctx:t}),M.$set(u);const h={};4194305&e&&(h.$$scope={dirty:e,ctx:t}),N.$set(h),t[0].calculated_importance?Pt?(Pt.p(t,e),1&e&&Y(Pt,1)):(Pt=oi(t),Pt.c(),Y(Pt,1),Pt.m(x,I)):Pt&&(G(),X(Pt,1,1,(()=>{Pt=null})),K());const d={};4194305&e&&(d.$$scope={dirty:e,ctx:t}),O.$set(d);const f={};4194305&e&&(f.$$scope={dirty:e,ctx:t}),j.$set(f);const p={};4194305&e&&(p.$$scope={dirty:e,ctx:t}),R.$set(p);const m={};4194305&e&&(m.$$scope={dirty:e,ctx:t}),H.$set(m),t[0].calculated_wikipedia?St?(St.p(t,e),1&e&&Y(St,1)):(St=hi(t),St.c(),Y(St,1),St.m(x,F)):St&&(G(),X(St,1,1,(()=>{St=null})),K());const g={};4194305&e&&(g.$$scope={dirty:e,ctx:t}),W.$set(g);const _={};4194305&e&&(_.$$scope={dirty:e,ctx:t}),V.$set(_);const v={};4194305&e&&(v.$$scope={dirty:e,ctx:t}),nt.$set(v);const y={};1&e&&(y.current_result=t[0]),st.$set(y),t[0].address?Mt?(Mt.p(t,e),1&e&&Y(Mt,1)):(Mt=gi(t),Mt.c(),Y(Mt,1),Mt.m(mt,gt)):Mt&&(G(),X(Mt,1,1,(()=>{Mt=null})),K()),t[0].linked_places?At?(At.p(t,e),1&e&&Y(At,1)):(At=vi(t),At.c(),Y(At,1),At.m(mt,_t)):At&&(G(),X(At,1,1,(()=>{At=null})),K()),Dt===(Dt=Nt(t))&&It?It.p(t,e):(It.d(1),It=Dt(t),It&&(It.c(),It.m(mt,bt)));let b=Tt;Tt=jt(t),Tt===b?zt[Tt].p(t,e):(G(),X(zt[b],1,1,(()=>{zt[b]=null})),K(),Ct=zt[Tt],Ct?Ct.p(t,e):(Ct=zt[Tt]=Ot[Tt](t),Ct.c()),Y(Ct,1),Ct.m(mt,null))},i(t){Et||(Y(a.$$.fragment,t),Y(c.$$.fragment,t),Y(w.$$.fragment,t),Y(L.$$.fragment,t),Y(k.$$.fragment,t),Y(kt),Y(M.$$.fragment,t),Y(N.$$.fragment,t),Y(Pt),Y(O.$$.fragment,t),Y(j.$$.fragment,t),Y(R.$$.fragment,t),Y(H.$$.fragment,t),Y(St),Y(W.$$.fragment,t),Y(V.$$.fragment,t),Y(nt.$$.fragment,t),Y(st.$$.fragment,t),Y(Mt),Y(At),Y(Ct),Et=!0)},o(t){X(a.$$.fragment,t),X(c.$$.fragment,t),X(w.$$.fragment,t),X(L.$$.fragment,t),X(k.$$.fragment,t),X(kt),X(M.$$.fragment,t),X(N.$$.fragment,t),X(Pt),X(O.$$.fragment,t),X(j.$$.fragment,t),X(R.$$.fragment,t),X(H.$$.fragment,t),X(St),X(W.$$.fragment,t),X(V.$$.fragment,t),X(nt.$$.fragment,t),X(st.$$.fragment,t),X(Mt),X(At),X(Ct),Et=!1},d(t){t&&m(e),et(a),et(c),t&&m(h),t&&m(d),et(w),et(L),et(k),kt&&kt.d(),et(M),et(N),Pt&&Pt.d(),et(O),et(j),et(R),et(H),St&&St.d(),et(W),et(V),et(nt),et(st),t&&m(at),t&&m(lt),Mt&&Mt.d(),At&&At.d(),It.d(),zt[Tt].d()}}}function Yn(t){let e;return{c(){e=v("link to this page")},m(t,n){p(t,e,n)},d(t){t&&m(e)}}}function Xn(t){let e,n;return e=new Rn({props:{items:t[0].names}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.items=t[0].names),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function Qn(t){let e,n,i,o=t[0].category+"",r=t[0].type+"";return{c(){e=v(o),n=v(":"),i=v(r)},m(t,o){p(t,e,o),p(t,n,o),p(t,i,o)},p(t,n){1&n&&o!==(o=t[0].category+"")&&E(e,o),1&n&&r!==(r=t[0].type+"")&&E(i,r)},d(t){t&&m(e),t&&m(n),t&&m(i)}}}function Jn(t){let e,n=t[0].indexed_date+"";return{c(){e=v(n)},m(t,n){p(t,e,n)},p(t,i){1&i&&n!==(n=t[0].indexed_date+"")&&E(e,n)},d(t){t&&m(e)}}}function ti(t){let e,n;return e=new In({props:{title:"Admin Level",$$slots:{default:[ei]},$$scope:{ctx:t}}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,n){const i={};4194305&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function ei(t){let e,n=t[0].admin_level+"";return{c(){e=v(n)},m(t,n){p(t,e,n)},p(t,i){1&i&&n!==(n=t[0].admin_level+"")&&E(e,n)},d(t){t&&m(e)}}}function ni(t){let e,n=t[0].rank_search+"";return{c(){e=v(n)},m(t,n){p(t,e,n)},p(t,i){1&i&&n!==(n=t[0].rank_search+"")&&E(e,n)},d(t){t&&m(e)}}}function ii(t){let e,n,i,o,r=t[0].rank_address+"",s=be(t[0].rank_address)+"";return{c(){e=v(r),n=v(" ("),i=v(s),o=v(")")},m(t,r){p(t,e,r),p(t,n,r),p(t,i,r),p(t,o,r)},p(t,n){1&n&&r!==(r=t[0].rank_address+"")&&E(e,r),1&n&&s!==(s=be(t[0].rank_address)+"")&&E(i,s)},d(t){t&&m(e),t&&m(n),t&&m(i),t&&m(o)}}}function oi(t){let e,n;return e=new In({props:{title:"Importance",$$slots:{default:[si]},$$scope:{ctx:t}}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,n){const i={};4194305&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function ri(t){let e;return{c(){e=v("(estimated)")},m(t,n){p(t,e,n)},d(t){t&&m(e)}}}function si(t){let e,n,i,o=t[0].calculated_importance+"",r=!t[0].importance&&ri();return{c(){e=v(o),n=y(),r&&r.c(),i=b()},m(t,o){p(t,e,o),p(t,n,o),r&&r.m(t,o),p(t,i,o)},p(t,n){1&n&&o!==(o=t[0].calculated_importance+"")&&E(e,o),t[0].importance?r&&(r.d(1),r=null):r||(r=ri(),r.c(),r.m(i.parentNode,i))},d(t){t&&m(e),t&&m(n),r&&r.d(t),t&&m(i)}}}function ai(t){let e,n=ve(t[0])+"";return{c(){e=v(n)},m(t,n){p(t,e,n)},p(t,i){1&i&&n!==(n=ve(t[0])+"")&&E(e,n)},d(t){t&&m(e)}}}function li(t){let e,n,i,o=t[0].centroid.coordinates[1]+"",r=t[0].centroid.coordinates[0]+"";return{c(){e=v(o),n=v(","),i=v(r)},m(t,o){p(t,e,o),p(t,n,o),p(t,i,o)},p(t,n){1&n&&o!==(o=t[0].centroid.coordinates[1]+"")&&E(e,o),1&n&&r!==(r=t[0].centroid.coordinates[0]+"")&&E(i,r)},d(t){t&&m(e),t&&m(n),t&&m(i)}}}function ui(t){let e,n,i=me(t[0])+"";return{c(){n=b(),e=new S(n)},m(t,o){e.m(i,t,o),p(t,n,o)},p(t,n){1&n&&i!==(i=me(t[0])+"")&&e.p(i)},d(t){t&&m(n),t&&e.d()}}}function ci(t){let e,n,i,o,r=t[0].place_id+"";return{c(){e=v(r),n=v("\n               ("),i=_("a"),i.textContent="on this server",o=v(")"),C(i,"href","https://nominatim.org/release-docs/develop/api/Output/#place_id-is-not-a-persistent-id")},m(t,r){p(t,e,r),p(t,n,r),p(t,i,r),p(t,o,r)},p(t,n){1&n&&r!==(r=t[0].place_id+"")&&E(e,r)},d(t){t&&m(e),t&&m(n),t&&m(i),t&&m(o)}}}function hi(t){let e,n;return e=new In({props:{title:"Wikipedia Calculated",$$slots:{default:[di]},$$scope:{ctx:t}}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,n){const i={};4194305&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function di(t){let e,n,i=_e(t[0])+"";return{c(){n=b(),e=new S(n)},m(t,o){e.m(i,t,o),p(t,n,o)},p(t,n){1&n&&i!==(i=_e(t[0])+"")&&e.p(i)},d(t){t&&m(n),t&&e.d()}}}function fi(t){let e,n=(t[0].calculated_postcode||"")+"";return{c(){e=v(n)},m(t,n){p(t,e,n)},p(t,i){1&i&&n!==(n=(t[0].calculated_postcode||"")+"")&&E(e,n)},d(t){t&&m(e)}}}function pi(t){let e,n;return e=new Rn({props:{items:t[0].addresstags}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.items=t[0].addresstags),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function mi(t){let e,n;return e=new Rn({props:{items:t[0].extratags}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.items=t[0].extratags),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function gi(t){let e,n,i=t[0].address,o=[];for(let e=0;e<i.length;e+=1)o[e]=_i(Un(t,i,e));const r=t=>X(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=b()},m(t,i){for(let e=0;e<o.length;e+=1)o[e].m(t,i);p(t,e,i),n=!0},p(t,n){if(1&n){let s;for(i=t[0].address,s=0;s<i.length;s+=1){const r=Un(t,i,s);o[s]?(o[s].p(r,n),Y(o[s],1)):(o[s]=_i(r),o[s].c(),Y(o[s],1),o[s].m(e.parentNode,e))}for(G(),s=i.length;s<o.length;s+=1)r(s);K()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)Y(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)X(o[t]);n=!1},d(t){g(o,t),t&&m(e)}}}function _i(t){let e,n;return e=new An({props:{addressLine:t[17],bMarkUnusedLines:"true",bDistanceInMeters:"false"}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.addressLine=t[17]),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function vi(t){let e,n,i,o,r=t[0].linked_places,s=[];for(let e=0;e<r.length;e+=1)s[e]=yi(Wn(t,r,e));const a=t=>X(s[t],1,1,(()=>{s[t]=null}));return{c(){e=_("tr"),e.innerHTML='<td colspan="6" class="svelte-mfbmpl"><h2 class="svelte-mfbmpl">Linked Places</h2></td>',n=y();for(let t=0;t<s.length;t+=1)s[t].c();i=b(),C(e,"class","all-columns svelte-mfbmpl")},m(t,r){p(t,e,r),p(t,n,r);for(let e=0;e<s.length;e+=1)s[e].m(t,r);p(t,i,r),o=!0},p(t,e){if(1&e){let n;for(r=t[0].linked_places,n=0;n<r.length;n+=1){const o=Wn(t,r,n);s[n]?(s[n].p(o,e),Y(s[n],1)):(s[n]=yi(o),s[n].c(),Y(s[n],1),s[n].m(i.parentNode,i))}for(G(),n=r.length;n<s.length;n+=1)a(n);K()}},i(t){if(!o){for(let t=0;t<r.length;t+=1)Y(s[t]);o=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)X(s[t]);o=!1},d(t){t&&m(e),t&&m(n),g(s,t),t&&m(i)}}}function yi(t){let e,n;return e=new An({props:{addressLine:t[17],bMarkUnusedLines:"true",bDistanceInMeters:"true"}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.addressLine=t[17]),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function bi(t){let e,n,i,o,r;return{c(){e=_("tr"),n=_("td"),i=_("a"),o=v("display keywords"),C(i,"class","btn btn-outline-secondary btn-sm"),C(i,"href",r=t[1]+"&keywords=1")},m(t,r){p(t,e,r),f(e,n),f(n,i),f(i,o)},p(t,e){2&e&&r!==(r=t[1]+"&keywords=1")&&C(i,"href",r)},d(t){t&&m(e)}}}function xi(t){let e,n,i,o,r=t[0].keywords.name,s=[];for(let e=0;e<r.length;e+=1)s[e]=Ti(Fn(t,r,e));let a=t[0].keywords.address&&Ci(t);return{c(){e=_("tr"),e.innerHTML='<td colspan="6" class="svelte-mfbmpl"><h3 class="svelte-mfbmpl">Name Keywords</h3></td>',n=y();for(let t=0;t<s.length;t+=1)s[t].c();i=y(),a&&a.c(),o=b(),C(e,"class","all-columns svelte-mfbmpl")},m(t,r){p(t,e,r),p(t,n,r);for(let e=0;e<s.length;e+=1)s[e].m(t,r);p(t,i,r),a&&a.m(t,r),p(t,o,r)},p(t,e){if(1&e){let n;for(r=t[0].keywords.name,n=0;n<r.length;n+=1){const o=Fn(t,r,n);s[n]?s[n].p(o,e):(s[n]=Ti(o),s[n].c(),s[n].m(i.parentNode,i))}for(;n<s.length;n+=1)s[n].d(1);s.length=r.length}t[0].keywords.address?a?a.p(t,e):(a=Ci(t),a.c(),a.m(o.parentNode,o)):a&&(a.d(1),a=null)},d(t){t&&m(e),t&&m(n),g(s,t),t&&m(i),a&&a.d(t),t&&m(o)}}}function wi(t){let e,n,i,o=t[12].id+"";return{c(){e=_("td"),n=v("word id: "),i=v(o)},m(t,o){p(t,e,o),f(e,n),f(e,i)},p(t,e){1&e&&o!==(o=t[12].id+"")&&E(i,o)},d(t){t&&m(e)}}}function Ti(t){let e,n,i,o,r=Ce(t[12].token)+"",s=t[12].id&&wi(t);return{c(){e=_("tr"),n=_("td"),i=v(r),o=y(),s&&s.c()},m(t,r){p(t,e,r),f(e,n),f(n,i),f(e,o),s&&s.m(e,null)},p(t,n){1&n&&r!==(r=Ce(t[12].token)+"")&&E(i,r),t[12].id?s?s.p(t,n):(s=wi(t),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},d(t){t&&m(e),s&&s.d()}}}function Ci(t){let e,n,i,o=t[0].keywords.address,r=[];for(let e=0;e<o.length;e+=1)r[e]=Li(qn(t,o,e));return{c(){e=_("tr"),e.innerHTML='<td colspan="6" class="svelte-mfbmpl"><h3 class="svelte-mfbmpl">Address Keywords</h3></td>',n=y();for(let t=0;t<r.length;t+=1)r[t].c();i=b(),C(e,"class","all-columns svelte-mfbmpl")},m(t,o){p(t,e,o),p(t,n,o);for(let e=0;e<r.length;e+=1)r[e].m(t,o);p(t,i,o)},p(t,e){if(1&e){let n;for(o=t[0].keywords.address,n=0;n<o.length;n+=1){const s=qn(t,o,n);r[n]?r[n].p(s,e):(r[n]=Li(s),r[n].c(),r[n].m(i.parentNode,i))}for(;n<r.length;n+=1)r[n].d(1);r.length=o.length}},d(t){t&&m(e),t&&m(n),g(r,t),t&&m(i)}}}function Ei(t){let e,n,i,o=t[12].id+"";return{c(){e=_("td"),n=v("word id: "),i=v(o)},m(t,o){p(t,e,o),f(e,n),f(e,i)},p(t,e){1&e&&o!==(o=t[12].id+"")&&E(i,o)},d(t){t&&m(e)}}}function Li(t){let e,n,i,o,r,s=Ce(t[12].token)+"",a=t[12].id&&Ei(t);return{c(){e=_("tr"),n=_("td"),i=v(s),o=y(),a&&a.c(),r=y()},m(t,s){p(t,e,s),f(e,n),f(n,i),f(e,o),a&&a.m(e,null),f(e,r)},p(t,n){1&n&&s!==(s=Ce(t[12].token)+"")&&E(i,s),t[12].id?a?a.p(t,n):(a=Ei(t),a.c(),a.m(e,r)):a&&(a.d(1),a=null)},d(t){t&&m(e),a&&a.d()}}}function $i(e){let n,i,o,r,s;return{c(){n=_("tr"),i=_("td"),o=_("a"),r=v("display child places"),C(o,"class","btn btn-outline-secondary btn-sm"),C(o,"href",s=e[1]+"&hierarchy=1")},m(t,e){p(t,n,e),f(n,i),f(i,o),f(o,r)},p(t,e){2&e&&s!==(s=t[1]+"&hierarchy=1")&&C(o,"href",s)},i:t,o:t,d(t){t&&m(n)}}}function ki(t){let e,n,i,o=Object.keys(t[0].hierarchy)>500,r=Object.keys(t[0].hierarchy),s=[];for(let e=0;e<r.length;e+=1)s[e]=Si(Zn(t,r,e));const a=t=>X(s[t],1,1,(()=>{s[t]=null}));let l=o&&Mi();return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=y(),l&&l.c(),n=b()},m(t,o){for(let e=0;e<s.length;e+=1)s[e].m(t,o);p(t,e,o),l&&l.m(t,o),p(t,n,o),i=!0},p(t,i){if(1&i){let n;for(r=Object.keys(t[0].hierarchy),n=0;n<r.length;n+=1){const o=Zn(t,r,n);s[n]?(s[n].p(o,i),Y(s[n],1)):(s[n]=Si(o),s[n].c(),Y(s[n],1),s[n].m(e.parentNode,e))}for(G(),n=r.length;n<s.length;n+=1)a(n);K()}1&i&&(o=Object.keys(t[0].hierarchy)>500),o?l||(l=Mi(),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){if(!i){for(let t=0;t<r.length;t+=1)Y(s[t]);i=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)X(s[t]);i=!1},d(t){g(s,t),t&&m(e),l&&l.d(t),t&&m(n)}}}function Pi(t){let e,n;return e=new An({props:{addressLine:t[9],bDistanceInMeters:"true"}}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.addressLine=t[9]),e.$set(i)},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function Si(t){let e,n,i,o,r,s,a,l=t[6]+"",u=t[0].hierarchy[t[6]],c=[];for(let e=0;e<u.length;e+=1)c[e]=Pi(Hn(t,u,e));const h=t=>X(c[t],1,1,(()=>{c[t]=null}));return{c(){e=_("tr"),n=_("td"),i=_("h3"),o=v(l),r=y();for(let t=0;t<c.length;t+=1)c[t].c();s=b(),C(i,"class","svelte-mfbmpl"),C(n,"colspan","6"),C(n,"class","svelte-mfbmpl"),C(e,"class","all-columns svelte-mfbmpl")},m(t,l){p(t,e,l),f(e,n),f(n,i),f(i,o),p(t,r,l);for(let e=0;e<c.length;e+=1)c[e].m(t,l);p(t,s,l),a=!0},p(t,e){if((!a||1&e)&&l!==(l=t[6]+"")&&E(o,l),1&e){let n;for(u=t[0].hierarchy[t[6]],n=0;n<u.length;n+=1){const i=Hn(t,u,n);c[n]?(c[n].p(i,e),Y(c[n],1)):(c[n]=Pi(i),c[n].c(),Y(c[n],1),c[n].m(s.parentNode,s))}for(G(),n=u.length;n<c.length;n+=1)h(n);K()}},i(t){if(!a){for(let t=0;t<u.length;t+=1)Y(c[t]);a=!0}},o(t){c=c.filter(Boolean);for(let t=0;t<c.length;t+=1)X(c[t]);a=!1},d(t){t&&m(e),t&&m(r),g(c,t),t&&m(s)}}}function Mi(t){let e;return{c(){e=_("p"),e.textContent="There are more child objects which are not shown."},m(t,n){p(t,e,n)},d(t){t&&m(e)}}}function Ai(t){let e,n,i,o,r,s;e=new te({props:{$$slots:{default:[Vn]},$$scope:{ctx:t}}});const a=[Kn,Gn],l=[];function u(t,e){return t[0]?0:""!==window.location.search&&t[3]?1:-1}return~(o=u(t))&&(r=l[o]=a[o](t)),{c(){J(e.$$.fragment),n=y(),i=_("div"),r&&r.c(),C(i,"class","container")},m(t,r){tt(e,t,r),p(t,n,r),p(t,i,r),~o&&l[o].m(i,null),s=!0},p(t,[n]){const s={};4194308&n&&(s.$$scope={dirty:n,ctx:t}),e.$set(s);let c=o;o=u(t),o===c?~o&&l[o].p(t,n):(r&&(G(),X(l[c],1,1,(()=>{l[c]=null})),K()),~o?(r=l[o],r?r.p(t,n):(r=l[o]=a[o](t),r.c()),Y(r,1),r.m(i,null)):r=null)},i(t){s||(Y(e.$$.fragment,t),Y(r),s=!0)},o(t){X(e.$$.fragment,t),X(r),s=!1},d(t){et(e,t),t&&m(n),t&&m(i),~o&&l[o].d()}}}function Ni(t,e,n){let i,o,r,s;u(t,pt,(t=>n(4,i=t)));let a=!1;return t.$$.update=()=>{if(16&t.$$.dirty){let t=i;"details"===t.tab&&(e=t.params,n(2,s={place_id:e.get("place_id"),osmtype:e.get("osmtype"),osmid:e.get("osmid"),class:e.get("class"),keywords:e.get("keywords"),addressdetails:1,hierarchy:"1"===e.get("hierarchy")?1:0,group_hierarchy:1,polygon_geojson:1,format:"json"}),n(3,a=!1),s.place_id||s.osmtype&&s.osmid?(s.place_id?Tt("Details for "+s.place_id):Tt("Details for "+s.osmtype+s.osmid),bt("details",s,(function(t){window.scrollTo(0,0),n(3,a=!0),n(0,o=t&&!t.error?t:void 0)}))):n(0,o=void 0),n(1,r=window.location.search))}var e},[o,r,s,a,i]}class Di extends ot{constructor(t){super(),it(this,t,Ni,Ai,s,{})}}function Ii(t,e,n){const i=t.slice();return i[2]=e[n],i}function Oi(t){let e,n,i,o,r,s,a,l,u,c,h,d,g,b,x,w,T,L,$,k,P,S,M,A,N,D,I,O,z,j=t[2].osm_type+"",B=me(t[2])+"",R=t[2].class+"",Z=t[2].type+"",H=t[2].name+"",q=(t[2].country_code||"")+"",F=t[2].errormessage+"",W=t[2].updated+"";return{c(){e=_("tr"),n=_("td"),i=v(j),o=y(),r=_("td"),s=y(),a=_("td"),l=v(R),u=y(),c=_("td"),h=v(Z),d=y(),g=_("td"),b=v(H),x=y(),w=_("td"),T=v(q),L=y(),$=_("td"),k=v(F),P=y(),S=_("td"),M=v(W),A=y(),N=_("td"),D=_("a"),I=v("josm"),z=y(),C(D,"href",O="http://localhost:8111/import?url=https://www.openstreetmap.org/api/0.6/"+pe(t[2].osm_type)+"/"+t[2].osm_id+"/full"),C(D,"target","josm")},m(t,m){p(t,e,m),f(e,n),f(n,i),f(e,o),f(e,r),r.innerHTML=B,f(e,s),f(e,a),f(a,l),f(e,u),f(e,c),f(c,h),f(e,d),f(e,g),f(g,b),f(e,x),f(e,w),f(w,T),f(e,L),f(e,$),f($,k),f(e,P),f(e,S),f(S,M),f(e,A),f(e,N),f(N,D),f(D,I),f(e,z)},p(t,e){1&e&&j!==(j=t[2].osm_type+"")&&E(i,j),1&e&&B!==(B=me(t[2])+"")&&(r.innerHTML=B),1&e&&R!==(R=t[2].class+"")&&E(l,R),1&e&&Z!==(Z=t[2].type+"")&&E(h,Z),1&e&&H!==(H=t[2].name+"")&&E(b,H),1&e&&q!==(q=(t[2].country_code||"")+"")&&E(T,q),1&e&&F!==(F=t[2].errormessage+"")&&E(k,F),1&e&&W!==(W=t[2].updated+"")&&E(M,W),1&e&&O!==(O="http://localhost:8111/import?url=https://www.openstreetmap.org/api/0.6/"+pe(t[2].osm_type)+"/"+t[2].osm_id+"/full")&&C(D,"href",O)},d(t){t&&m(e)}}}function zi(t){let e,n,i,o,r,s,a,l,u,c,h,d,b,x,w,T,L,$=t[0].length+"";e=new te({});let k=t[0],P=[];for(let e=0;e<k.length;e+=1)P[e]=Oi(Ii(t,k,e));return{c(){J(e.$$.fragment),n=y(),i=_("div"),o=_("div"),r=_("div"),s=_("h1"),s.textContent="Broken polygons",a=y(),l=_("p"),u=v("Total number of broken polygons: "),c=v($),h=v("."),d=y(),b=_("table"),x=_("thead"),x.innerHTML="<th>OSM type</th> \n          <th>OSM id</th> \n          <th>Class</th> \n          <th>Type</th> \n          <th>Name</th> \n          <th>Country Code</th> \n          <th>Error message</th> \n          <th>Updated</th> \n          <th></th>",w=y(),T=_("tbody");for(let t=0;t<P.length;t+=1)P[t].c();C(b,"class","table table-striped table-hover"),C(r,"class","col-sm-12"),C(o,"class","row"),C(i,"class","container")},m(t,m){tt(e,t,m),p(t,n,m),p(t,i,m),f(i,o),f(o,r),f(r,s),f(r,a),f(r,l),f(l,u),f(l,c),f(l,h),f(r,d),f(r,b),f(b,x),f(b,w),f(b,T);for(let t=0;t<P.length;t+=1)P[t].m(T,null);L=!0},p(t,[e]){if((!L||1&e)&&$!==($=t[0].length+"")&&E(c,$),1&e){let n;for(k=t[0],n=0;n<k.length;n+=1){const i=Ii(t,k,n);P[n]?P[n].p(i,e):(P[n]=Oi(i),P[n].c(),P[n].m(T,null))}for(;n<P.length;n+=1)P[n].d(1);P.length=k.length}},i(t){L||(Y(e.$$.fragment,t),L=!0)},o(t){X(e.$$.fragment,t),L=!1},d(t){et(e,t),t&&m(n),t&&m(i),g(P,t)}}}function ji(t,e,n){let i=[];return N((function(){bt("polygons",{format:"json"},(function(t){n(0,i=t)})),Tt("Broken polygons")})),[i]}class Bi extends ot{constructor(t){super(),it(this,t,ji,zi,s,{})}}function Ri(t,e,n){const i=t.slice();return i[2]=e[n],i}function Zi(t){let e,n=t[2].place_id+"";return{c(){e=v(n)},m(t,n){p(t,e,n)},p(t,i){1&i&&n!==(n=t[2].place_id+"")&&E(e,n)},d(t){t&&m(e)}}}function Hi(t){let e,n,i,o,r,s,a,l,u,c,h,d,g,b,x,w,T,C,L,$,k,P,S=t[2].country_code+"",M=t[2].name+"",A=me(t[2])+"",N=t[2].osm_type+"",D=t[2].class+"",I=t[2].type+"";return i=new Pe({props:{feature:t[2],$$slots:{default:[Zi]},$$scope:{ctx:t}}}),{c(){e=_("tr"),n=_("td"),J(i.$$.fragment),o=y(),r=_("td"),s=v(S),a=y(),l=_("td"),u=v(M),c=y(),h=_("td"),d=y(),g=_("td"),b=v(N),x=y(),w=_("td"),T=v(D),C=y(),L=_("td"),$=v(I),k=y()},m(t,m){p(t,e,m),f(e,n),tt(i,n,null),f(e,o),f(e,r),f(r,s),f(e,a),f(e,l),f(l,u),f(e,c),f(e,h),h.innerHTML=A,f(e,d),f(e,g),f(g,b),f(e,x),f(e,w),f(w,T),f(e,C),f(e,L),f(L,$),f(e,k),P=!0},p(t,e){const n={};1&e&&(n.feature=t[2]),33&e&&(n.$$scope={dirty:e,ctx:t}),i.$set(n),(!P||1&e)&&S!==(S=t[2].country_code+"")&&E(s,S),(!P||1&e)&&M!==(M=t[2].name+"")&&E(u,M),(!P||1&e)&&A!==(A=me(t[2])+"")&&(h.innerHTML=A),(!P||1&e)&&N!==(N=t[2].osm_type+"")&&E(b,N),(!P||1&e)&&D!==(D=t[2].class+"")&&E(T,D),(!P||1&e)&&I!==(I=t[2].type+"")&&E($,I)},i(t){P||(Y(i.$$.fragment,t),P=!0)},o(t){X(i.$$.fragment,t),P=!1},d(t){t&&m(e),et(i)}}}function qi(t){let e,n,i,o,r,s,a,l,u,c,h,d,b,x,w,T,L=t[0].length+"";e=new te({});let $=t[0],k=[];for(let e=0;e<$.length;e+=1)k[e]=Hi(Ri(t,$,e));const P=t=>X(k[t],1,1,(()=>{k[t]=null}));return{c(){J(e.$$.fragment),n=y(),i=_("div"),o=_("div"),r=_("div"),s=_("h1"),s.textContent="Deletable",a=y(),l=_("p"),u=v(L),c=v(" objects have been deleted in OSM but are still in the Nominatim database."),h=y(),d=_("table"),b=_("thead"),b.innerHTML="<th>Place id</th> \n          <th>Country Code</th> \n          <th>Name</th> \n          <th>OSM id</th> \n          <th>OSM type</th> \n          <th>Class</th> \n          <th>Type</th>",x=y(),w=_("tbody");for(let t=0;t<k.length;t+=1)k[t].c();C(d,"class","table table-striped table-hover"),C(r,"class","col-sm-12"),C(o,"class","row"),C(i,"class","container")},m(t,m){tt(e,t,m),p(t,n,m),p(t,i,m),f(i,o),f(o,r),f(r,s),f(r,a),f(r,l),f(l,u),f(l,c),f(r,h),f(r,d),f(d,b),f(d,x),f(d,w);for(let t=0;t<k.length;t+=1)k[t].m(w,null);T=!0},p(t,[e]){if((!T||1&e)&&L!==(L=t[0].length+"")&&E(u,L),1&e){let n;for($=t[0],n=0;n<$.length;n+=1){const i=Ri(t,$,n);k[n]?(k[n].p(i,e),Y(k[n],1)):(k[n]=Hi(i),k[n].c(),Y(k[n],1),k[n].m(w,null))}for(G(),n=$.length;n<k.length;n+=1)P(n);K()}},i(t){if(!T){Y(e.$$.fragment,t);for(let t=0;t<$.length;t+=1)Y(k[t]);T=!0}},o(t){X(e.$$.fragment,t),k=k.filter(Boolean);for(let t=0;t<k.length;t+=1)X(k[t]);T=!1},d(t){et(e,t),t&&m(n),t&&m(i),g(k,t)}}}function Fi(t,e,n){let i=[];return N((function(){bt("deletable",{format:"json"},(function(t){n(0,i=t)})),Tt("Deletable objects")})),[i]}class Wi extends ot{constructor(t){super(),it(this,t,Fi,qi,s,{})}}function Ui(t){let e,n,i,o,r,s,a,l,u,c,h,d,g,b,x,w,T,L,$,k,P,S,M=Nominatim_Config.Nominatim_API_Endpoint+"",A=t[0].software_version+"",N=t[0].database_version+"",D=t[0].data_updated+"";return e=new te({}),{c(){J(e.$$.fragment),n=y(),i=_("div"),o=_("div"),r=_("div"),s=_("h1"),s.textContent="Server status",a=y(),l=_("dl"),u=_("dt"),u.textContent="API Endpoint",c=_("dd"),h=_("a"),d=v(M),g=_("dt"),g.textContent="Software version",b=_("dd"),x=v(A),w=_("dt"),w.textContent="Database version",T=_("dd"),L=v(N),$=_("dt"),$.textContent="Data last updated",k=_("dd"),P=v(D),C(h,"href",Nominatim_Config.Nominatim_API_Endpoint),C(r,"class","col-sm-12"),C(o,"class","row"),C(i,"class","container")},m(t,m){tt(e,t,m),p(t,n,m),p(t,i,m),f(i,o),f(o,r),f(r,s),f(r,a),f(r,l),f(l,u),f(l,c),f(c,h),f(h,d),f(l,g),f(l,b),f(b,x),f(l,w),f(l,T),f(T,L),f(l,$),f(l,k),f(k,P),S=!0},p(t,[e]){(!S||1&e)&&A!==(A=t[0].software_version+"")&&E(x,A),(!S||1&e)&&N!==(N=t[0].database_version+"")&&E(L,N),(!S||1&e)&&D!==(D=t[0].data_updated+"")&&E(P,D)},i(t){S||(Y(e.$$.fragment,t),S=!0)},o(t){X(e.$$.fragment,t),S=!1},d(t){et(e,t),t&&m(n),t&&m(i)}}}function Vi(t,e,n){let i={};return N((function(){bt("status",{format:"json"},(function(t){n(0,i=t)})),Tt("Server status")})),[i]}class Gi extends ot{constructor(t){super(),it(this,t,Vi,Ui,s,{})}}function Ki(e){let n,i,o,r;return n=new te({}),{c(){J(n.$$.fragment),i=y(),o=_("div"),C(o,"id","about-help"),C(o,"class","container svelte-1l5yrvt")},m(t,e){tt(n,t,e),p(t,i,e),p(t,o,e),r=!0},p:t,i(t){r||(Y(n.$$.fragment,t),r=!0)},o(t){X(n.$$.fragment,t),r=!1},d(t){et(n,t),t&&m(i),t&&m(o)}}}function Yi(t){return N((()=>{wt("theme/about-help.html",document.getElementById("about-help"))})),[]}class Xi extends ot{constructor(t){super(),it(this,t,Yi,Ki,s,{})}}function Qi(t){let e,n;return e=new Xi({}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function Ji(t){let e,n;return e=new Gi({}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function to(t){let e,n;return e=new Bi({}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function eo(t){let e,n;return e=new Wi({}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function no(t){let e,n;return e=new Di({}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function io(t){let e,n;return e=new vn({}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function oo(t){let e,n;return e=new an({}),{c(){J(e.$$.fragment)},m(t,i){tt(e,t,i),n=!0},i(t){n||(Y(e.$$.fragment,t),n=!0)},o(t){X(e.$$.fragment,t),n=!1},d(t){et(e,t)}}}function ro(t){let e,n,i,o,r,s,a;const l=[oo,io,no,eo,to,Ji,Qi],u=[];function c(t,e){return"search"===t[0]?0:"reverse"===t[0]?1:"details"===t[0]?2:"deletable"===t[0]?3:"polygons"===t[0]?4:"status"===t[0]?5:"about"===t[0]?6:-1}return~(e=c(t))&&(n=u[e]=l[e](t)),o=new vt({}),{c(){n&&n.c(),i=y(),J(o.$$.fragment)},m(n,l){~e&&u[e].m(n,l),p(n,i,l),tt(o,n,l),r=!0,s||(a=x(window,"popstate",t[2]),s=!0)},p(t,[o]){let r=e;e=c(t),e!==r&&(n&&(G(),X(u[r],1,1,(()=>{u[r]=null})),K()),~e?(n=u[e],n||(n=u[e]=l[e](t),n.c()),Y(n,1),n.m(i.parentNode,i)):n=null)},i(t){r||(Y(n),Y(o.$$.fragment,t),r=!0)},o(t){X(n),X(o.$$.fragment,t),r=!1},d(t){~e&&u[e].d(t),t&&m(i),et(o,t),s=!1,a()}}}function so(t,e,n){let i,o;u(t,pt,(t=>n(1,o=t))),gt();return t.$$.update=()=>{2&t.$$.dirty&&n(0,i=o.tab)},[i,o,()=>gt()]}new class extends ot{constructor(t){super(),it(this,t,so,ro,s,{})}}({target:document.body})}();
+     * Leaflet 1.9.1, a JS library for interactive maps. https://leafletjs.com
+     * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade
+     */var en="1.9.1";function nn(t){var e,n,i,o;for(n=1,i=arguments.length;n<i;n++)for(e in o=arguments[n])t[e]=o[e];return t}var on=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function sn(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 rn=0;function an(t){return"_leaflet_id"in t||(t._leaflet_id=++rn),t._leaflet_id}function ln(t,e,n){var i,o,s,r;return r=function(){i=!1,o&&(s.apply(n,o),o=!1)},s=function(){i?o=arguments:(t.apply(n,arguments),setTimeout(r,e),i=!0)},s}function cn(t,e,n){var i=e[1],o=e[0],s=i-o;return t===i&&n?t:((t-o)%s+s)%s+o}function hn(){return!1}function un(t,e){if(!1===e)return t;var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function dn(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function pn(t){return dn(t).split(/\s+/)}function mn(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?on(t.options):{}),e)t.options[n]=e[n];return t.options}function fn(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 _n=/\{ *([\w_ -]+) *\}/g;function gn(t,e){return t.replace(_n,(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 vn=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function yn(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var bn="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function wn(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var xn=0;function $n(t){var e=+new Date,n=Math.max(0,16-(e-xn));return xn=e+n,window.setTimeout(t,n)}var Ln=window.requestAnimationFrame||wn("RequestAnimationFrame")||$n,Tn=window.cancelAnimationFrame||wn("CancelAnimationFrame")||wn("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function Pn(t,e,n){if(!n||Ln!==$n)return Ln.call(window,sn(t,e));t.call(e)}function Mn(t){t&&Tn.call(window,t)}var kn={__proto__:null,extend:nn,create:on,bind:sn,get lastId(){return rn},stamp:an,throttle:ln,wrapNum:cn,falseFn:hn,formatNum:un,trim:dn,splitWords:pn,setOptions:mn,getParamString:fn,template:gn,isArray:vn,indexOf:yn,emptyImageUrl:bn,requestFn:Ln,cancelFn:Tn,requestAnimFrame:Pn,cancelAnimFrame:Mn};function Cn(){}Cn.extend=function(t){var e=function(){mn(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},n=e.__super__=this.prototype,i=on(n);for(var o in i.constructor=e,e.prototype=i,this)Object.prototype.hasOwnProperty.call(this,o)&&"prototype"!==o&&"__super__"!==o&&(e[o]=this[o]);return t.statics&&nn(e,t.statics),t.includes&&(!function(t){if("undefined"==typeof L||!L||!L.Mixin)return;t=vn(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),nn.apply(null,[i].concat(t.includes))),nn(i,t),delete i.statics,delete i.includes,i.options&&(i.options=n.options?on(n.options):{},nn(i.options,t.options)),i._initHooks=[],i.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=i._initHooks.length;t<e;t++)i._initHooks[t].call(this)}},e},Cn.include=function(t){var e=this.prototype.options;return nn(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},Cn.mergeOptions=function(t){return nn(this.prototype.options,t),this},Cn.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 En={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,s=(t=pn(t)).length;o<s;o++)this._on(t[o],e,n);return this},off:function(t,e,n){if(arguments.length)if("object"==typeof t)for(var i in t)this._off(i,t[i],e);else{t=pn(t);for(var o=1===arguments.length,s=0,r=t.length;s<r;s++)o?this._off(t[s]):this._off(t[s],e,n)}else delete this._events;return this},_on:function(t,e,n,i){if("function"==typeof e){if(!1===this._listens(t,e,n)){n===this&&(n=void 0);var o={fn:e,ctx:n};i&&(o.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(o)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,n){var i,o,s;if(this._events&&(i=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var r=this._listens(t,e,n);if(!1!==r){var a=i[r];this._firingCount&&(a.fn=hn,this._events[t]=i=i.slice()),i.splice(r,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(o=0,s=i.length;o<s;o++)i[o].fn=hn;delete this._events[t]}},fire:function(t,e,n){if(!this.listens(t,n))return this;var i=nn({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var s=0,r=o.length;s<r;s++){var a=o[s],l=a.fn;a.once&&this.off(t,l,a.ctx),l.call(a.ctx||this,i)}this._firingCount--}}return n&&this._propagateEvent(i),this},listens:function(t,e,n,i){"string"!=typeof t&&console.warn('"string" type argument expected');var o=e;"function"!=typeof e&&(i=!!e,o=void 0,n=void 0);var s=this._events&&this._events[t];if(s&&s.length&&!1!==this._listens(t,o,n))return!0;if(i)for(var r in this._eventParents)if(this._eventParents[r].listens(t,e,n,i))return!0;return!1},_listens:function(t,e,n){if(!this._events)return!1;var i=this._events[t]||[];if(!e)return!!i.length;n===this&&(n=void 0);for(var o=0,s=i.length;o<s;o++)if(i[o].fn===e&&i[o].ctx===n)return o;return!1},once:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e,!0);else for(var o=0,s=(t=pn(t)).length;o<s;o++)this._on(t[o],e,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[an(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[an(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,nn({layer:t.target,propagatedFrom:t.target},t),!0)}};En.addEventListener=En.on,En.removeEventListener=En.clearAllEventListeners=En.off,En.addOneTimeEventListener=En.once,En.fireEvent=En.fire,En.hasEventListeners=En.listens;var An=Cn.extend(En);function On(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var Sn=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function zn(t,e,n){return t instanceof On?t:vn(t)?new On(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new On(t.x,t.y):new On(t,e,n)}function In(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function Dn(t,e){return!t||t instanceof In?t:new In(t,e)}function Bn(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function Nn(t,e){return t instanceof Bn?t:new Bn(t,e)}function Zn(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 jn(t,e,n){return t instanceof Zn?t:vn(t)&&"object"!=typeof t[0]?3===t.length?new Zn(t[0],t[1],t[2]):2===t.length?new Zn(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new Zn(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new Zn(t,e,n)}On.prototype={clone:function(){return new On(this.x,this.y)},add:function(t){return this.clone()._add(zn(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(zn(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 On(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new On(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=Sn(this.x),this.y=Sn(this.y),this},distanceTo:function(t){var e=(t=zn(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=zn(t)).x===this.x&&t.y===this.y},contains:function(t){return t=zn(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+un(this.x)+", "+un(this.y)+")"}},In.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof On||"number"==typeof t[0]||"x"in t)e=n=zn(t);else if(e=(t=Dn(t)).min,n=t.max,!e||!n)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone()),this},getCenter:function(t){return zn((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return zn(this.min.x,this.max.y)},getTopRight:function(){return zn(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 On?zn(t):Dn(t))instanceof In?(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=Dn(t);var e=this.min,n=this.max,i=t.min,o=t.max,s=o.x>=e.x&&i.x<=n.x,r=o.y>=e.y&&i.y<=n.y;return s&&r},overlaps:function(t){t=Dn(t);var e=this.min,n=this.max,i=t.min,o=t.max,s=o.x>e.x&&i.x<n.x,r=o.y>e.y&&i.y<n.y;return s&&r},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,n=this.max,i=Math.abs(e.x-n.x)*t,o=Math.abs(e.y-n.y)*t;return Dn(zn(e.x-i,e.y-o),zn(n.x+i,n.y+o))},equals:function(t){return!!t&&(t=Dn(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},Bn.prototype={extend:function(t){var e,n,i=this._southWest,o=this._northEast;if(t instanceof Zn)e=t,n=t;else{if(!(t instanceof Bn))return t?this.extend(jn(t)||Nn(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 Zn(e.lat,e.lng),this._northEast=new Zn(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 Bn(new Zn(e.lat-i,e.lng-o),new Zn(n.lat+i,n.lng+o))},getCenter:function(){return new Zn((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 Zn(this.getNorth(),this.getWest())},getSouthEast:function(){return new Zn(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 Zn||"lat"in t?jn(t):Nn(t);var e,n,i=this._southWest,o=this._northEast;return t instanceof Bn?(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=Nn(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&i.lat<=n.lat,r=o.lng>=e.lng&&i.lng<=n.lng;return s&&r},overlaps:function(t){t=Nn(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&i.lat<n.lat,r=o.lng>e.lng&&i.lng<n.lng;return s&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=Nn(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},Zn.prototype={equals:function(t,e){return!!t&&(t=jn(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("+un(this.lat,t)+", "+un(this.lng,t)+")"},distanceTo:function(t){return Fn.distance(this,jn(t))},wrap:function(){return Fn.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return Nn([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new Zn(this.lat,this.lng,this.alt)}};var Rn,Hn={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 In(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?cn(t.lng,this.wrapLng,!0):t.lng;return new Zn(this.wrapLat?cn(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 s=t.getSouthWest(),r=t.getNorthEast();return new Bn(new Zn(s.lat-i,s.lng-o),new Zn(r.lat-i,r.lng-o))}},Fn=nn({},Hn,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,o=e.lat*n,s=Math.sin((e.lat-t.lat)*n/2),r=Math.sin((e.lng-t.lng)*n/2),a=s*s+Math.cos(i)*Math.cos(o)*r*r,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}}),Wn=6378137,qn={R:Wn,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 On(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new Zn((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(Rn=Wn*Math.PI,new In([-Rn,-Rn],[Rn,Rn]))};function Un(t,e,n,i){if(vn(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 Vn(t,e,n,i){return new Un(t,e,n,i)}Un.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 On((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var Gn=nn({},Fn,{code:"EPSG:3857",projection:qn,transformation:function(){var t=.5/(Math.PI*qn.R);return Vn(t,.5,-t,.5)}()}),Kn=nn({},Gn,{code:"EPSG:900913"});function Yn(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Xn(t,e){var n,i,o,s,r,a,l="";for(n=0,o=t.length;n<o;n++){for(i=0,s=(r=t[n]).length;i<s;i++)l+=(i?"L":"M")+(a=r[i]).x+" "+a.y;l+=e?Ii.svg?"z":"x":""}return l||"M0 0"}var Jn,Qn=document.documentElement.style,ti="ActiveXObject"in window,ei=ti&&!document.addEventListener,ni="msLaunchUri"in navigator&&!("documentMode"in document),ii=zi("webkit"),oi=zi("android"),si=zi("android 2")||zi("android 3"),ri=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ai=oi&&zi("Google")&&ri<537&&!("AudioNode"in window),li=!!window.opera,ci=!ni&&zi("chrome"),hi=zi("gecko")&&!ii&&!li&&!ti,ui=!ci&&zi("safari"),di=zi("phantom"),pi="OTransition"in Qn,mi=0===navigator.platform.indexOf("Win"),fi=ti&&"transition"in Qn,_i="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!si,gi="MozPerspective"in Qn,vi=!window.L_DISABLE_3D&&(fi||_i||gi)&&!pi&&!di,yi="undefined"!=typeof orientation||zi("mobile"),bi=yi&&ii,wi=yi&&_i,xi=!window.PointerEvent&&window.MSPointerEvent,$i=!(!window.PointerEvent&&!xi),Li="ontouchstart"in window||!!window.TouchEvent,Ti=!window.L_NO_TOUCH&&(Li||$i),Pi=yi&&li,Mi=yi&&hi,ki=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Ci=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",hn,e),window.removeEventListener("testPassiveEventSupport",hn,e)}catch(t){}return t}(),Ei=!!document.createElement("canvas").getContext,Ai=!(!document.createElementNS||!Yn("svg").createSVGRect),Oi=!!Ai&&((Jn=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(Jn.firstChild&&Jn.firstChild.namespaceURI)),Si=!Ai&&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 zi(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Ii={ie:ti,ielt9:ei,edge:ni,webkit:ii,android:oi,android23:si,androidStock:ai,opera:li,chrome:ci,gecko:hi,safari:ui,phantom:di,opera12:pi,win:mi,ie3d:fi,webkit3d:_i,gecko3d:gi,any3d:vi,mobile:yi,mobileWebkit:bi,mobileWebkit3d:wi,msPointer:xi,pointer:$i,touch:Ti,touchNative:Li,mobileOpera:Pi,mobileGecko:Mi,retina:ki,passiveEvents:Ci,canvas:Ei,svg:Ai,vml:Si,inlineSvg:Oi,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Di=Ii.msPointer?"MSPointerDown":"pointerdown",Bi=Ii.msPointer?"MSPointerMove":"pointermove",Ni=Ii.msPointer?"MSPointerUp":"pointerup",Zi=Ii.msPointer?"MSPointerCancel":"pointercancel",ji={touchstart:Di,touchmove:Bi,touchend:Ni,touchcancel:Zi},Ri={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Zo(e);Gi(t,e)},touchmove:Gi,touchend:Gi,touchcancel:Gi},Hi={},Fi=!1;function Wi(t,e,n){return"touchstart"===e&&(Fi||(document.addEventListener(Di,qi,!0),document.addEventListener(Bi,Ui,!0),document.addEventListener(Ni,Vi,!0),document.addEventListener(Zi,Vi,!0),Fi=!0)),Ri[e]?(n=Ri[e].bind(this,n),t.addEventListener(ji[e],n,!1),n):(console.warn("wrong event specified:",e),L.Util.falseFn)}function qi(t){Hi[t.pointerId]=t}function Ui(t){Hi[t.pointerId]&&(Hi[t.pointerId]=t)}function Vi(t){delete Hi[t.pointerId]}function Gi(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in e.touches=[],Hi)e.touches.push(Hi[n]);e.changedTouches=[e],t(e)}}var Ki,Yi,Xi,Ji,Qi,to=go(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),eo=go(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),no="webkitTransition"===eo||"OTransition"===eo?eo+"End":"transitionend";function io(t){return"string"==typeof t?document.getElementById(t):t}function oo(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function so(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function ro(t){var e=t.parentNode;e&&e.removeChild(t)}function ao(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function lo(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function co(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ho(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=fo(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function uo(t,e){if(void 0!==t.classList)for(var n=pn(e),i=0,o=n.length;i<o;i++)t.classList.add(n[i]);else if(!ho(t,e)){var s=fo(t);mo(t,(s?s+" ":"")+e)}}function po(t,e){void 0!==t.classList?t.classList.remove(e):mo(t,dn((" "+fo(t)+" ").replace(" "+e+" "," ")))}function mo(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function fo(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function _o(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 go(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function vo(t,e,n){var i=e||new On(0,0);t.style[to]=(Ii.ie3d?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function yo(t,e){t._leaflet_pos=e,Ii.any3d?vo(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function bo(t){return t._leaflet_pos||new On(0,0)}if("onselectstart"in document)Ki=function(){Co(window,"selectstart",Zo)},Yi=function(){Ao(window,"selectstart",Zo)};else{var wo=go(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Ki=function(){if(wo){var t=document.documentElement.style;Xi=t[wo],t[wo]="none"}},Yi=function(){wo&&(document.documentElement.style[wo]=Xi,Xi=void 0)}}function xo(){Co(window,"dragstart",Zo)}function $o(){Ao(window,"dragstart",Zo)}function Lo(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(To(),Ji=t,Qi=t.style.outline,t.style.outline="none",Co(window,"keydown",To))}function To(){Ji&&(Ji.style.outline=Qi,Ji=void 0,Qi=void 0,Ao(window,"keydown",To))}function Po(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Mo(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var ko={__proto__:null,TRANSFORM:to,TRANSITION:eo,TRANSITION_END:no,get:io,getStyle:oo,create:so,remove:ro,empty:ao,toFront:lo,toBack:co,hasClass:ho,addClass:uo,removeClass:po,setClass:mo,getClass:fo,setOpacity:_o,testProp:go,setTransform:vo,setPosition:yo,getPosition:bo,get disableTextSelection(){return Ki},get enableTextSelection(){return Yi},disableImageDrag:xo,enableImageDrag:$o,preventOutline:Lo,restoreOutline:To,getSizedParentNode:Po,getScale:Mo};function Co(t,e,n,i){if(e&&"object"==typeof e)for(var o in e)zo(t,o,e[o],n);else for(var s=0,r=(e=pn(e)).length;s<r;s++)zo(t,e[s],n,i);return this}var Eo="_leaflet_events";function Ao(t,e,n,i){if(1===arguments.length)Oo(t),delete t[Eo];else if(e&&"object"==typeof e)for(var o in e)Io(t,o,e[o],n);else if(e=pn(e),2===arguments.length)Oo(t,(function(t){return-1!==yn(e,t)}));else for(var s=0,r=e.length;s<r;s++)Io(t,e[s],n,i);return this}function Oo(t,e){for(var n in t[Eo]){var i=n.split(/\d/)[0];e&&!e(i)||Io(t,i,null,null,n)}}var So={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function zo(t,e,n,i){var o=e+an(n)+(i?"_"+an(i):"");if(t[Eo]&&t[Eo][o])return this;var s=function(e){return n.call(i||t,e||window.event)},r=s;!Ii.touchNative&&Ii.pointer&&0===e.indexOf("touch")?s=Wi(t,e,s):Ii.touch&&"dblclick"===e?s=function(t,e){t.addEventListener("dblclick",e);var n,i=0;function o(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var o=Ro(t);if(!o.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||o.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var s=Date.now();s-i<=200?2==++n&&e(function(t){var e,n,i={};for(n in t)e=t[n],i[n]=e&&e.bind?e.bind(t):e;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}(t)):n=1,i=s}}}else n=t.detail}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}(t,s):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(So[e]||e,s,!!Ii.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(s=function(e){e=e||window.event,qo(t,e)&&r(e)},t.addEventListener(So[e],s,!1)):t.addEventListener(e,r,!1):t.attachEvent("on"+e,s),t[Eo]=t[Eo]||{},t[Eo][o]=s}function Io(t,e,n,i,o){o=o||e+an(n)+(i?"_"+an(i):"");var s=t[Eo]&&t[Eo][o];if(!s)return this;!Ii.touchNative&&Ii.pointer&&0===e.indexOf("touch")?function(t,e,n){ji[e]?t.removeEventListener(ji[e],n,!1):console.warn("wrong event specified:",e)}(t,e,s):Ii.touch&&"dblclick"===e?function(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}(t,s):"removeEventListener"in t?t.removeEventListener(So[e]||e,s,!1):t.detachEvent("on"+e,s),t[Eo][o]=null}function Do(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Bo(t){return zo(t,"wheel",Do),this}function No(t){return Co(t,"mousedown touchstart dblclick contextmenu",Do),t._leaflet_disable_click=!0,this}function Zo(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function jo(t){return Zo(t),Do(t),this}function Ro(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function Ho(t,e){if(!e)return new On(t.clientX,t.clientY);var n=Mo(e),i=n.boundingClientRect;return new On((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var Fo=Ii.linux&&Ii.chrome?window.devicePixelRatio:Ii.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Wo(t){return Ii.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Fo:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function qo(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 Uo={__proto__:null,on:Co,off:Ao,stopPropagation:Do,disableScrollPropagation:Bo,disableClickPropagation:No,preventDefault:Zo,stop:jo,getPropagationPath:Ro,getMousePosition:Ho,getWheelDelta:Wo,isExternalTarget:qo,addListener:Co,removeListener:Ao},Vo=An.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=bo(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=Pn(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(),yo(this._el,n),this.fire("step")},_complete:function(){Mn(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Go=An.extend({options:{crs:Gn,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=mn(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=sn(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(jn(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=eo&&Ii.any3d&&!Ii.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Co(this._proxy,no,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){if((e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(jn(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n)&&(void 0!==n.animate&&(n.zoom=nn({animate:n.animate},n.zoom),n.pan=nn({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan)))return clearTimeout(this._sizeTimer),this;return this._resetView(t,e,n.pan&&n.pan.noMoveStart),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Ii.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Ii.any3d?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),s=(t instanceof On?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/i),r=this.containerPointToLatLng(o.add(s));return this.setView(r,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():Nn(t);var n=zn(e.paddingTopLeft||e.padding||[0,0]),i=zn(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 s=i.subtract(n).divideBy(2),r=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o);return{center:this.unproject(r.add(a).divideBy(2).add(s),o),zoom:o}},fitBounds:function(t,e){if(!(t=Nn(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){if(e=e||{},!(t=zn(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Vo,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){uo(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!Ii.any3d)return this.setView(t,e,n);this._stop();var i=this.project(this.getCenter()),o=this.project(t),s=this.getSize(),r=this._zoom;t=jn(t),e=void 0===e?r:e;var a=Math.max(s.x,s.y),l=a*this.getZoomScale(r,e),c=o.distanceTo(i)||1,h=1.42,u=2.0164;function d(t){var e=(l*l-a*a+(t?-1:1)*u*u*c*c)/(2*(t?l:a)*u*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 m(t){return(Math.exp(t)+Math.exp(-t))/2}var f=d(0);function _(t){return a*(m(f)*(p(e=f+h*t)/m(e))-p(f))/u;var e}var g=Date.now(),v=(d(1)-f)/h,y=n.duration?1e3*n.duration:1e3*v*.8;return this._moveStart(!0,n.noMoveStart),function n(){var s=(Date.now()-g)/y,l=function(t){return 1-Math.pow(1-t,1.5)}(s)*v;s<=1?(this._flyToFrame=Pn(n,this),this._move(this.unproject(i.add(o.subtract(i).multiplyBy(_(l)/c)),r),this.getScaleZoom(a/function(t){return a*(m(f)/m(f+h*t))}(l),r),{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=Nn(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,Nn(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=zn((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=zn(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),s=this.project(t),r=this.getPixelBounds(),a=Dn([r.min.add(n),r.max.subtract(i)]),l=a.getSize();if(!a.contains(s)){this._enforcingBounds=!0;var c=s.subtract(a.getCenter()),h=a.extend(s).getSize().subtract(l);o.x+=c.x<0?-h.x:h.x,o.y+=c.y<0?-h.y:h.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=nn({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),i=e.divideBy(2).round(),o=n.divideBy(2).round(),s=i.subtract(o);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(sn(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=nn({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=sn(this._handleGeolocationResponse,this),n=sn(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,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){if(this._container._leaflet_id){var e=new Zn(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),i=this._locateOptions;if(i.setView){var o=this.getBoundsZoom(n);this.setView(e,i.maxZoom?Math.min(o,i.maxZoom):o)}var s={latlng:e,bounds:n,timestamp:t.timestamp};for(var r in t.coords)"number"==typeof t.coords[r]&&(s[r]=t.coords[r]);this.fire("locationfound",s)}},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.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ro(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Mn(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ro(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=so("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.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new Bn(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=Nn(t),n=zn(n||[0,0]);var i=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(n),c=Dn(this.project(a,i),this.project(r,i)).getSize(),h=Ii.any3d?this.options.zoomSnap:1,u=l.x/c.x,d=l.y/c.y,p=e?Math.max(u,d):Math.min(u,d);return i=this.getScaleZoom(p,i),h&&(i=Math.round(i/(h/100))*(h/100),i=e?Math.ceil(i/h)*h:Math.floor(i/h)*h),Math.max(o,Math.min(s,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new On(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 In(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(jn(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(zn(t),e)},layerPointToLatLng:function(t){var e=zn(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(jn(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(jn(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(Nn(t))},distance:function(t,e){return this.options.crs.distance(jn(t),jn(e))},containerPointToLayerPoint:function(t){return zn(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return zn(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(zn(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(jn(t)))},mouseEventToContainerPoint:function(t){return Ho(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=io(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Co(e,"scroll",this._onScroll,this),this._containerId=an(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ii.any3d,uo(t,"leaflet-container"+(Ii.touch?" leaflet-touch":"")+(Ii.retina?" leaflet-retina":"")+(Ii.ielt9?" leaflet-oldie":"")+(Ii.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=oo(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),yo(this._mapPane,new On(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(uo(t.markerPane,"leaflet-zoom-hide"),uo(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){yo(this._mapPane,new On(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,n)._move(t,e)._moveEnd(o),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,i){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),i?n&&n.pinch&&this.fire("zoom",n):((o||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Mn(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){yo(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[an(this._container)]=this;var e=t?Ao:Co;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Ii.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Mn(this._resizeRequest),this._resizeRequest=Pn((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,s=t.target||t.srcElement,r=!1;s;){if((n=this._targets[an(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){r=!0;break}if(n&&n.listens(e,!0)){if(o&&!qo(s,t))break;if(i.push(n),o)break}if(s===this._container)break;s=s.parentNode}return i.length||r||o||!this.listens(e,!0)||(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var n=t.type;"mousedown"===n&&Lo(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var i=nn({},t);i.type="preclick",this._fireDOMEvent(i,i.type,n)}var o=this._findEventTargets(t,e);if(n){for(var s=[],r=0;r<n.length;r++)n[r].listens(e,!0)&&s.push(n[r]);o=s.concat(o)}if(o.length){"contextmenu"===e&&Zo(t);var a=o[0],l={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var c=a.getLatLng&&(!a._radius||a._radius<=10);l.containerPoint=c?this.latLngToContainerPoint(a.getLatLng()):this.mouseEventToContainerPoint(t),l.layerPoint=this.containerPointToLayerPoint(l.containerPoint),l.latlng=c?a.getLatLng():this.layerPointToLatLng(l.layerPoint)}for(r=0;r<o.length;r++)if(o[r].fire(e,l,!0),l.originalEvent._stopped||!1===o[r].options.bubblingMouseEvents&&-1!==yn(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return bo(this._mapPane)||new On(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 Dn([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),s=new In(i.subtract(o),i.add(o)),r=this._getBoundsOffset(s,n,e);return r.round().equals([0,0])?t:this.unproject(i.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new In(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=Dn(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),o=i.min.subtract(t.min),s=i.max.subtract(t.max);return new On(this._rebound(o.x,-s.x),this._rebound(o.y,-s.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=Ii.any3d?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(){po(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=so("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=to,n=this._proxy.style[e];vo(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(){ro(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();vo(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,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))&&(Pn((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,uo(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:i}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(sn(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&po(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Ko(t,e){return new Go(t,e)}var Yo=Cn.extend({options:{position:"topright"},initialize:function(t){mn(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 uo(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?(ro(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Xo=function(t){return new Yo(t)};Go.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=so("div",e+"control-container",this._container);function i(i,o){var s=e+i+" "+e+o;t[i+o]=so("div",s,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ro(this._controlCorners[t]);ro(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Jo=Yo.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 mn(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,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 Yo.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(an(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){uo(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?(uo(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):po(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return po(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=so("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),No(e),Bo(e);var i=this._section=so("section",t+"-list");n&&(this._map.on("click",this.collapse,this),Co(e,{mouseenter:function(){Co(i,"click",Zo),this.expand(),setTimeout((function(){Ao(i,"click",Zo)}))},mouseleave:this.collapse},this));var o=this._layersLink=so("a",t+"-toggle",e);o.href="#",o.title="Layers",o.setAttribute("role","button"),Co(o,"click",Zo),Co(o,"focus",this.expand,this),n||this.expand(),this._baseLayersList=so("div",t+"-base",i),this._separator=so("div",t+"-separator",i),this._overlaysList=so("div",t+"-overlays",i),e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&an(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(sn((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;ao(this._baseLayersList),ao(this._overlaysList),this._layerControlInputs=[];var t,e,n,i,o=0;for(n=0;n<this._layers.length;n++)i=this._layers[n],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,o+=i.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(an(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_"+an(this),i),this._layerControlInputs.push(e),e.layerId=an(t.layer),Co(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("span");return n.appendChild(s),s.appendChild(e),s.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 s=n.length-1;s>=0;s--)t=n[s],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||o.push(e);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<i.length;s++)this._map.hasLayer(i[s])||this._map.addLayer(i[s]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,i=this._map.getZoom(),o=n.length-1;o>=0;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}}),Qo=Yo.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=so("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 s=so("a",n,i);return s.innerHTML=t,s.href="#",s.title=e,s.setAttribute("role","button"),s.setAttribute("aria-label",e),No(s),Co(s,"click",jo),Co(s,"click",o,this),Co(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";po(this._zoomInButton,e),po(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(uo(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(uo(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});Go.mergeOptions({zoomControl:!0}),Go.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Qo,this.addControl(this.zoomControl))}));var ts=Yo.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=so("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=so("div",e,n)),t.imperial&&(this._iScale=so("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;o>5280?(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*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),es=Yo.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ii.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){mn(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=so("div","leaflet-control-attribution"),No(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});Go.mergeOptions({attributionControl:!0}),Go.addInitHook((function(){this.options.attributionControl&&(new es).addTo(this)}));Yo.Layers=Jo,Yo.Zoom=Qo,Yo.Scale=ts,Yo.Attribution=es,Xo.layers=function(t,e,n){return new Jo(t,e,n)},Xo.zoom=function(t){return new Qo(t)},Xo.scale=function(t){return new ts(t)},Xo.attribution=function(t){return new es(t)};var ns=Cn.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ns.addTo=function(t,e){return t.addHandler(e,this),this};var is,os={Events:En},ss=Ii.touch?"touchstart mousedown":"mousedown",rs=An.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){mn(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Co(this._dragStartTarget,ss,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(rs._dragging===this&&this.finishDrag(!0),Ao(this._dragStartTarget,ss,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ho(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)rs._dragging===this&&this.finishDrag();else if(!(rs._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(rs._dragging=this,this._preventOutline&&Lo(this._element),xo(),Ki(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Po(this._element);this._startPoint=new On(e.clientX,e.clientY),this._startPos=bo(this._element),this._parentScale=Mo(n);var i="mousedown"===t.type;Co(document,i?"mousemove":"touchmove",this._onMove,this),Co(document,i?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new On(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Zo(t),this._moved||(this.fire("dragstart"),this._moved=!0,uo(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),uo(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),yo(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){po(document.body,"leaflet-dragging"),this._lastTarget&&(po(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ao(document,"mousemove touchmove",this._onMove,this),Ao(document,"mouseup touchend touchcancel",this._onUp,this),$o(),Yi(),this._moved&&this._moving&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,rs._dragging=!1}});function as(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=function(t,e){for(var n=[t[0]],i=1,o=0,s=t.length;i<s;i++)ps(t[i],t[o])>e&&(n.push(t[i]),o=i);o<s-1&&n.push(t[s-1]);return n}(t,n),t=function(t,e){var n=t.length,i=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,cs(t,i,e,0,n-1);var o,s=[];for(o=0;o<n;o++)i[o]&&s.push(t[o]);return s}(t,n),t}function ls(t,e,n){return Math.sqrt(ms(t,e,n,!0))}function cs(t,e,n,i,o){var s,r,a,l=0;for(r=i+1;r<=o-1;r++)(a=ms(t[r],t[i],t[o],!0))>l&&(s=r,l=a);l>n&&(e[s]=1,cs(t,e,n,i,s),cs(t,e,n,s,o))}function hs(t,e,n,i,o){var s,r,a,l=i?is:ds(t,n),c=ds(e,n);for(is=c;;){if(!(l|c))return[t,e];if(l&c)return!1;a=ds(r=us(t,e,s=l||c,n,o),n),s===l?(t=r,l=a):(e=r,c=a)}}function us(t,e,n,i,o){var s,r,a=e.x-t.x,l=e.y-t.y,c=i.min,h=i.max;return 8&n?(s=t.x+a*(h.y-t.y)/l,r=h.y):4&n?(s=t.x+a*(c.y-t.y)/l,r=c.y):2&n?(s=h.x,r=t.y+l*(h.x-t.x)/a):1&n&&(s=c.x,r=t.y+l*(c.x-t.x)/a),new On(s,r,o)}function ds(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 ps(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function ms(t,e,n,i){var o,s=e.x,r=e.y,a=n.x-s,l=n.y-r,c=a*a+l*l;return c>0&&((o=((t.x-s)*a+(t.y-r)*l)/c)>1?(s=n.x,r=n.y):o>0&&(s+=a*o,r+=l*o)),a=t.x-s,l=t.y-r,i?a*a+l*l:new On(s,r)}function fs(t){return!vn(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function _s(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),fs(t)}function gs(t,e){var n,i,o,s,r,a,l,c;if(!t||0===t.length)throw new Error("latlngs not passed");fs(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var h=[];for(var u in t)h.push(e.project(jn(t[u])));var d=h.length;for(n=0,i=0;n<d-1;n++)i+=h[n].distanceTo(h[n+1])/2;if(0===i)c=h[0];else for(n=0,s=0;n<d-1;n++)if(r=h[n],a=h[n+1],(s+=o=r.distanceTo(a))>i){l=(s-i)/o,c=[a.x-l*(a.x-r.x),a.y-l*(a.y-r.y)];break}return e.unproject(zn(c))}var vs={__proto__:null,simplify:as,pointToSegmentDistance:ls,closestPointOnSegment:function(t,e,n){return ms(t,e,n)},clipSegment:hs,_getEdgeIntersection:us,_getBitCode:ds,_sqClosestPointOnSegment:ms,isFlat:fs,_flat:_s,polylineCenter:gs};function ys(t,e,n){var i,o,s,r,a,l,c,h,u,d=[1,4,2,8];for(o=0,c=t.length;o<c;o++)t[o]._code=ds(t[o],e);for(r=0;r<4;r++){for(h=d[r],i=[],o=0,s=(c=t.length)-1;o<c;s=o++)a=t[o],l=t[s],a._code&h?l._code&h||((u=us(l,a,h,e,n))._code=ds(u,e),i.push(u)):(l._code&h&&((u=us(l,a,h,e,n))._code=ds(u,e),i.push(u)),i.push(a));t=i}return t}function bs(t,e){var n,i,o,s,r,a,l,c,h;if(!t||0===t.length)throw new Error("latlngs not passed");fs(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=[];for(var d in t)u.push(e.project(jn(t[d])));var p=u.length;for(a=l=c=0,n=0,i=p-1;n<p;i=n++)o=u[n],s=u[i],r=o.y*s.x-s.y*o.x,l+=(o.x+s.x)*r,c+=(o.y+s.y)*r,a+=3*r;return h=0===a?u[0]:[l/a,c/a],e.unproject(zn(h))}var ws={__proto__:null,clipPolygon:ys,polygonCenter:bs},xs={project:function(t){return new On(t.lng,t.lat)},unproject:function(t){return new Zn(t.y,t.x)},bounds:new In([-180,-90],[180,90])},$s={R:6378137,R_MINOR:6356752.314245179,bounds:new In([-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,s=Math.sqrt(1-o*o),r=s*Math.sin(i),a=Math.tan(Math.PI/4-i/2)/Math.pow((1-r)/(1+r),s/2);return i=-n*Math.log(Math.max(a,1e-10)),new On(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,o=this.R_MINOR/i,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/i),a=Math.PI/2-2*Math.atan(r),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)e=s*Math.sin(a),e=Math.pow((1-e)/(1+e),s/2),a+=c=Math.PI/2-2*Math.atan(r*e)-a;return new Zn(a*n,t.x*n/i)}},Ls={__proto__:null,LonLat:xs,Mercator:$s,SphericalMercator:qn},Ts=nn({},Fn,{code:"EPSG:3395",projection:$s,transformation:function(){var t=.5/(Math.PI*$s.R);return Vn(t,.5,-t,.5)}()}),Ps=nn({},Fn,{code:"EPSG:4326",projection:xs,transformation:Vn(1/180,1,-1/180,.5)}),Ms=nn({},Hn,{projection:xs,transformation:Vn(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});Hn.Earth=Fn,Hn.EPSG3395=Ts,Hn.EPSG3857=Gn,Hn.EPSG900913=Kn,Hn.EPSG4326=Ps,Hn.Simple=Ms;var ks=An.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[an(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[an(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});Go.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=an(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=an(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return an(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?vn(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[an(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=an(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 Cs=ks.extend({initialize:function(t,e){var n,i;if(mn(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("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:function(t){return an(t)}}),Es=function(t,e){return new Cs(t,e)},As=Cs.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Cs.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),Cs.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 Bn;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Os=function(t,e){return new As(t,e)},Ss=Cn.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){mn(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),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i},_setIconStyles:function(t,e){var n=this.options,i=n[e+"Size"];"number"==typeof i&&(i=[i,i]);var o=zn(i),s=zn("shadow"===e&&n.shadowAnchor||n.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.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 Ii.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function zs(t){return new Ss(t)}var Is=Ss.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof Is.imagePath&&(Is.imagePath=this._detectIconPath()),(this.options.imagePath||Is.imagePath)+Ss.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,n){var i=e.exec(t);return i&&i[n]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=so("div","leaflet-default-icon-path",document.body),e=oo(t,"background-image")||oo(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-"leaflet.css".length-1):""}}),Ds=ns.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new rs(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),uo(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&&po(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,s=bo(e._icon),r=n.getPixelBounds(),a=n.getPixelOrigin(),l=Dn(r.min._subtract(a).add(o),r.max._subtract(a).subtract(o));if(!l.contains(s)){var c=zn((Math.max(l.max.x,s.x)-l.max.x)/(r.max.x-l.max.x)-(Math.min(l.min.x,s.x)-l.min.x)/(r.min.x-l.min.x),(Math.max(l.max.y,s.y)-l.max.y)/(r.max.y-l.max.y)-(Math.min(l.min.y,s.y)-l.min.y)/(r.min.y-l.min.y)).multiplyBy(i);n.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),yo(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=Pn(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&&(Mn(this._panRequest),this._panRequest=Pn(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=bo(e._icon),o=e._map.layerPointToLatLng(i);n&&yo(n,i),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){Mn(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Bs=ks.extend({options:{icon:new Is,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){mn(this,e),this._latlng=jn(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=jn(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),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||"")),uo(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Co(n,"focus",this._panOnFocus,this);var o=t.icon.createShadow(this._shadow),s=!1;o!==this._shadow&&(this._removeShadow(),s=!0),o&&(uo(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&s&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ao(this._icon,"focus",this._panOnFocus,this),ro(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ro(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&yo(this._icon,t),this._shadow&&yo(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(uo(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ds)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ds(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&&_o(this._icon,t),this._shadow&&_o(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?zn(e.iconSize):zn(0,0),i=e.iconAnchor?zn(e.iconAnchor):zn(0,0);t.panInside(this._latlng,{paddingTopLeft:i,paddingBottomRight:n.subtract(i)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Ns(t,e){return new Bs(t,e)}var Zs=ks.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 mn(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),js=Zs.extend({options:{fill:!0,radius:10},initialize:function(t,e){mn(this,e),this._latlng=jn(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=jn(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 Zs.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 In(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()}});function Rs(t,e){return new js(t,e)}var Hs=js.extend({initialize:function(t,e,n){if("number"==typeof e&&(e=nn({},n,{radius:e})),mn(this,e),this._latlng=jn(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 Bn(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Zs.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===Fn.distance){var o=Math.PI/180,s=this._mRadius/Fn.R/o,r=n.project([e+s,t]),a=n.project([e-s,t]),l=r.add(a).divideBy(2),c=n.unproject(l).lat,h=Math.acos((Math.cos(s*o)-Math.sin(e*o)*Math.sin(c*o))/(Math.cos(e*o)*Math.cos(c*o)))/o;(isNaN(h)||0===h)&&(h=s/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(h)?0:l.x-n.project([c,t-h]).x,this._radiusY=l.y-r.y}else{var u=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(u).x}this._updateBounds()}});function Fs(t,e,n){return new Hs(t,e,n)}var Ws=Zs.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){mn(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,s=ms,r=0,a=this._parts.length;r<a;r++)for(var l=this._parts[r],c=1,h=l.length;c<h;c++){var u=s(t,e=l[c-1],n=l[c],!0);u<i&&(i=u,o=s(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()");return gs(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=jn(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new Bn,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return fs(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=fs(t),i=0,o=t.length;i<o;i++)n?(e[i]=jn(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new In;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 On(t,t);this._rawPxBounds&&(this._pxBounds=new In([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var i,o,s=t[0]instanceof Zn,r=t.length;if(s){for(o=[],i=0;i<r;i++)o[i]=this._map.latLngToLayerPoint(t[i]),n.extend(o[i]);e.push(o)}else for(i=0;i<r;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{var e,n,i,o,s,r,a,l=this._parts;for(e=0,i=0,o=this._rings.length;e<o;e++)for(n=0,s=(a=this._rings[e]).length;n<s-1;n++)(r=hs(a[n],a[n+1],t,n,!0))&&(l[i]=l[i]||[],l[i].push(r[0]),r[1]===a[n+1]&&n!==s-2||(l[i].push(r[1]),i++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=as(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,s,r,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,s=this._parts.length;n<s;n++)for(i=0,o=(r=(a=this._parts[n]).length)-1;i<r;o=i++)if((e||0!==i)&&ls(t,a[o],a[i])<=l)return!0;return!1}});function qs(t,e){return new Ws(t,e)}Ws._flat=_s;var Us=Ws.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return bs(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=Ws.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof Zn&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){Ws.prototype._setLatLngs.call(this,t),fs(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return fs(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new On(e,e);if(t=new In(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,o=0,s=this._rings.length;o<s;o++)(i=ys(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,s,r,a,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(s=0,r=(l=(e=this._parts[o]).length)-1;s<l;r=s++)n=e[s],i=e[r],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||Ws.prototype._containsPoint.call(this,t,!0)}});function Vs(t,e){return new Us(t,e)}var Gs=As.extend({initialize:function(t,e){mn(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=vn(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 s=this.options;if(s.filter&&!s.filter(t))return this;var r=Ks(t,s);return r?(r.feature=nr(t),r.defaultOptions=r.options,this.resetStyle(r),s.onEachFeature&&s.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=nn({},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 Ks(t,e){var n,i,o,s,r="Feature"===t.type?t.geometry:t,a=r?r.coordinates:null,l=[],c=e&&e.pointToLayer,h=e&&e.coordsToLatLng||Xs;if(!a&&!r)return null;switch(r.type){case"Point":return Ys(c,t,n=h(a),e);case"MultiPoint":for(o=0,s=a.length;o<s;o++)n=h(a[o]),l.push(Ys(c,t,n,e));return new As(l);case"LineString":case"MultiLineString":return i=Js(a,"LineString"===r.type?0:1,h),new Ws(i,e);case"Polygon":case"MultiPolygon":return i=Js(a,"Polygon"===r.type?1:2,h),new Us(i,e);case"GeometryCollection":for(o=0,s=r.geometries.length;o<s;o++){var u=Ks({geometry:r.geometries[o],type:"Feature",properties:t.properties},e);u&&l.push(u)}return new As(l);case"FeatureCollection":for(o=0,s=r.features.length;o<s;o++){var d=Ks(r.features[o],e);d&&l.push(d)}return new As(l);default:throw new Error("Invalid GeoJSON object.")}}function Ys(t,e,n,i){return t?t(e,n):new Bs(n,i&&i.markersInheritOptions&&i)}function Xs(t){return new Zn(t[1],t[0],t[2])}function Js(t,e,n){for(var i,o=[],s=0,r=t.length;s<r;s++)i=e?Js(t[s],e-1,n):(n||Xs)(t[s]),o.push(i);return o}function Qs(t,e){return void 0!==(t=jn(t)).alt?[un(t.lng,e),un(t.lat,e),un(t.alt,e)]:[un(t.lng,e),un(t.lat,e)]}function tr(t,e,n,i){for(var o=[],s=0,r=t.length;s<r;s++)o.push(e?tr(t[s],fs(t[s])?0:e-1,n,i):Qs(t[s],i));return!e&&n&&o.push(o[0]),o}function er(t,e){return t.feature?nn({},t.feature,{geometry:e}):nr(e)}function nr(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var ir={toGeoJSON:function(t){return er(this,{type:"Point",coordinates:Qs(this.getLatLng(),t)})}};function or(t,e){return new Gs(t,e)}Bs.include(ir),Hs.include(ir),js.include(ir),Ws.include({toGeoJSON:function(t){var e=!fs(this._latlngs);return er(this,{type:(e?"Multi":"")+"LineString",coordinates:tr(this._latlngs,e?1:0,!1,t)})}}),Us.include({toGeoJSON:function(t){var e=!fs(this._latlngs),n=e&&!fs(this._latlngs[0]),i=tr(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),er(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),Cs.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(n){e.push(n.toGeoJSON(t).geometry.coordinates)})),er(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){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(n)i.push(o.geometry);else{var s=nr(o);"FeatureCollection"===s.type?i.push.apply(i,s.features):i.push(s)}}})),n?er(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var sr=or,rr=ks.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=Nn(e),mn(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(uo(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ro(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&&lo(this._image),this},bringToBack:function(){return this._map&&co(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=Nn(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:so("img");uo(e,"leaflet-image-layer"),this._zoomAnimated&&uo(e,"leaflet-zoom-animated"),this.options.className&&uo(e,this.options.className),e.onselectstart=hn,e.onmousemove=hn,e.onload=sn(this.fire,this,"load"),e.onerror=sn(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;vo(this._image,n,e)},_reset:function(){var t=this._image,e=new In(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();yo(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){_o(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),ar=function(t,e,n){return new rr(t,e,n)},lr=rr.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:so("video");if(uo(e,"leaflet-image-layer"),this._zoomAnimated&&uo(e,"leaflet-zoom-animated"),this.options.className&&uo(e,this.options.className),e.onselectstart=hn,e.onmousemove=hn,e.onloadeddata=sn(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),i=[],o=0;o<n.length;o++)i.push(n[o].src);this._url=n.length>0?i:[e.src]}else{vn(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var r=so("source");r.src=this._url[s],e.appendChild(r)}}}});function cr(t,e,n){return new lr(t,e,n)}var hr=rr.extend({_initImage:function(){var t=this._image=this._url;uo(t,"leaflet-image-layer"),this._zoomAnimated&&uo(t,"leaflet-zoom-animated"),this.options.className&&uo(t,this.options.className),t.onselectstart=hn,t.onmousemove=hn}});function ur(t,e,n){return new hr(t,e,n)}var dr=ks.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof L.LatLng||vn(t))?(this._latlng=jn(t),mn(this,e)):(mn(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&_o(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&_o(this._container,1),this.bringToFront(),this.options.interactive&&(uo(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(_o(this._container,0),this._removeTimeout=setTimeout(sn(ro,void 0,this._container),200)):ro(this._container),this.options.interactive&&(po(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=jn(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&&lo(this._container),this},bringToBack:function(){return this._map&&co(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof As){e=null;var n=this._source._layers;for(var i in n)if(n[i]._map){e=n[i];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=zn(this.options.offset),n=this._getAnchor();this._zoomAnimated?yo(this._container,t.add(n)):e=e.add(t).add(n);var 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]}});Go.include({_initOverlay:function(t,e,n,i){var o=e;return o instanceof t||(o=new t(i).setContent(e)),n&&o.setLatLng(n),o}}),ks.include({_initOverlay:function(t,e,n,i){var o=n;return o instanceof t?(mn(o,i),o._source=this):(o=e&&!i?e:new t(i,this)).setContent(n),o}});var pr=dr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,dr.prototype.openOn.call(this,t)},onAdd:function(t){dr.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Zs||this._source.on("preclick",Do))},onRemove:function(t){dr.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Zs||this._source.off("preclick",Do))},getEvents:function(){var t=dr.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=so("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=so("div",t+"-content-wrapper",e);if(this._contentNode=so("div",t+"-content",n),No(e),Bo(this._contentNode),Co(e,"contextmenu",Do),this._tipContainer=so("div",t+"-tip-container",e),this._tip=so("div",t+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=so("a",t+"-close-button",e);i.setAttribute("role","button"),i.setAttribute("aria-label","Close popup"),i.href="#close",i.innerHTML='<span aria-hidden="true">&#215;</span>',Co(i,"click",(function(t){Zo(t),this.close()}),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,s="leaflet-popup-scrolled";o&&i>o?(e.height=o+"px",uo(t,s)):po(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();yo(this._container,e.add(n))},_adjustPan:function(t){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var e=this._map,n=parseInt(oo(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+n,o=this._containerWidth,s=new On(this._containerLeft,-i-this._containerBottom);s._add(bo(this._container));var r=e.layerPointToContainerPoint(s),a=zn(this.options.autoPanPadding),l=zn(this.options.autoPanPaddingTopLeft||a),c=zn(this.options.autoPanPaddingBottomRight||a),h=e.getSize(),u=0,d=0;r.x+o+c.x>h.x&&(u=r.x+o-h.x+c.x),r.x-u-l.x<0&&(u=r.x-l.x),r.y+i+c.y>h.y&&(d=r.y+i-h.y+c.y),r.y-d-l.y<0&&(d=r.y-l.y),(u||d)&&e.fire("autopanstart").panBy([u,d],{animate:t&&"moveend"===t.type})}},_getAnchor:function(){return zn(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),mr=function(t,e){return new pr(t,e)};Go.mergeOptions({closePopupOnClick:!0}),Go.include({openPopup:function(t,e,n){return this._initOverlay(pr,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),ks.include({bindPopup:function(t,e){return this._popup=this._initOverlay(pr,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&this._popup._prepareOpen(t)&&this._popup.openOn(this._map),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){jo(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof Zs?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var fr=dr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){dr.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){dr.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=dr.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=so("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+an(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,i=this._map,o=this._container,s=i.latLngToContainerPoint(i.getCenter()),r=i.layerPointToContainerPoint(t),a=this.options.direction,l=o.offsetWidth,c=o.offsetHeight,h=zn(this.options.offset),u=this._getAnchor();"top"===a?(e=l/2,n=c):"bottom"===a?(e=l/2,n=0):"center"===a?(e=l/2,n=c/2):"right"===a?(e=0,n=c/2):"left"===a?(e=l,n=c/2):r.x<s.x?(a="right",e=0,n=c/2):(a="left",e=l+2*(h.x+u.x),n=c/2),t=t.subtract(zn(e,n,!0)).add(h).add(u),po(o,"leaflet-tooltip-right"),po(o,"leaflet-tooltip-left"),po(o,"leaflet-tooltip-top"),po(o,"leaflet-tooltip-bottom"),uo(o,"leaflet-tooltip-"+a),yo(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&_o(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return zn(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),_r=function(t,e){return new fr(t,e)};Go.include({openTooltip:function(t,e,n){return this._initOverlay(fr,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),ks.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(fr,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this)),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){Co(t.getElement(),"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),Co(t.getElement(),"blur",this.closeTooltip,this)},_setAriaDescribedByOnLayer:function(t){t.getElement().setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=t.layer||t.target,this.openTooltip(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 gr=Ss.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ao(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var i=zn(n.bgPos);e.style.backgroundPosition=-i.x+"px "+-i.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function vr(t){return new gr(t)}Ss.Default=Is;var yr=ks.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ii.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){mn(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ro(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(lo(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(co(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=ln(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 On?t:new On(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,s=n.length;o<s;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&&!Ii.ielt9){_o(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var i in this._tiles){var o=this._tiles[i];if(o.current&&o.loaded){var s=Math.min(1,(t-o.loaded)/200);_o(o.el,s),s<1?e=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(Mn(this._fadeFrame),this._fadeFrame=Pn(this._updateOpacity,this))}},_onOpaqueTile:hn,_initContainer:function(){this._container||(this._container=so("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)):(ro(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=so("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,i}},_onUpdateLevel:hn,_onRemoveLevel:hn,_onCreateLevel:hn,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.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)ro(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),s=Math.floor(e/2),r=n-1,a=new On(+o,+s);a.z=+r;var l=this._tileCoordsToKey(a),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),r>i&&this._retainParent(o,s,r,i))},_retainChildren:function(t,e,n,i){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var r=new On(o,s);r.z=n+1;var a=this._tileCoordsToKey(r),l=this._tiles[a];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<i&&this._retainChildren(o,s,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);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var s=this.options.updateWhenZooming&&o!==this._tileZoom;i&&!s||(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();Ii.any3d?vo(t.el,o,i):yo(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(),s=e.getSize().divideBy(2*i);return new In(o.subtract(s),o.add(s))},_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),s=o.getCenter(),r=[],a=this.options.keepBuffer,l=new In(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));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 h=this._tiles[c].coords;h.z===this._tileZoom&&l.contains(new On(h.x,h.y))||(this._tiles[c].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var u=o.min.y;u<=o.max.y;u++)for(var d=o.min.x;d<=o.max.x;d++){var p=new On(d,u);if(p.z=this._tileZoom,this._isValidTile(p)){var m=this._tiles[this._tileCoordsToKey(p)];m?m.current=!0:r.push(p)}}if(r.sort((function(t,e){return t.distanceTo(s)-e.distanceTo(s)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var f=document.createDocumentFragment();for(d=0;d<r.length;d++)this._addTile(r[d],f);this._level.el.appendChild(f)}}}}},_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 Nn(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 Bn(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 On(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(ro(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){uo(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=hn,t.onmousemove=hn,Ii.ielt9&&this.options.opacity<1&&_o(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),i=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),sn(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&Pn(sn(this._tileReady,this,t,null,o)),yo(o,n),this._tiles[i]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,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?(_o(n.el,0),Mn(this._fadeFrame),this._fadeFrame=Pn(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(uo(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ii.ielt9||!this._map._fadeAnimated?Pn(this._pruneTiles,this):setTimeout(sn(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new On(this._wrapX?cn(t.x,this._wrapX):t.x,this._wrapY?cn(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new In(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function br(t){return new yr(t)}var wr=yr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=mn(this,e)).detectRetina&&Ii.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Co(n,"load",sn(this._tileOnLoad,this,e,n)),Co(n,"error",sn(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:Ii.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return gn(this._url,nn(e,this.options))},_tileOnLoad:function(t,e){Ii.ielt9?setTimeout(sn(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)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=hn,e.onerror=hn,!e.complete)){e.src=bn;var n=this._tiles[t].coords;ro(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",bn),yr.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==bn))return yr.prototype._tileReady.call(this,t,e,n)}});function xr(t,e){return new wr(t,e)}var $r=wr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=nn({},this.defaultWmsParams);for(var i in e)i in this.options||(n[i]=e[i]);var o=(e=mn(this,e)).detectRetina&&Ii.retina?2:1,s=this.getTileSize();n.width=s.x*o,n.height=s.y*o,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,wr.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=Dn(n.project(e[0]),n.project(e[1])),o=i.min,s=i.max,r=(this._wmsVersion>=1.3&&this._crs===Ps?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=wr.prototype.getTileUrl.call(this,t);return a+fn(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,e){return nn(this.wmsParams,t),e||this.redraw(),this}});wr.WMS=$r,xr.wms=function(t,e){return new $r(t,e)};var Lr=ks.extend({options:{padding:.1},initialize:function(t){mn(this,t),an(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&uo(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=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),s=i.multiplyBy(-n).add(o).subtract(this._map._getNewPixelOrigin(t,e));Ii.any3d?vo(this._container,s,n):yo(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 In(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Tr=Lr.extend({options:{tolerance:0},getEvents:function(){var t=Lr.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Lr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Co(t,"mousemove",this._onMouseMove,this),Co(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Co(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){Mn(this._redrawRequest),delete this._ctx,ro(this._container),Ao(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Lr.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=Ii.retina?2:1;yo(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",Ii.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Lr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[an(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,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[an(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),o=[];for(n=0;n<i.length;n++){if(e=Number(i[n]),isNaN(e))return;o.push(e)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||Pn(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new In,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,o,s,r=t._parts,a=r.length,l=this._ctx;if(a){for(l.beginPath(),n=0;n<a;n++){for(i=0,o=r[n].length;i<o;i++)s=r[n][i],l[i?"lineTo":"moveTo"](s.x,s.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||i)/i;1!==o&&(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);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(po(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,o=this._drawFirst;o;o=o.next)(n=o.layer).options.interactive&&n._containsPoint(e)&&(i=n);i!==this._hoveredLayer&&(this._handleMouseOut(t),i&&(uo(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseover"),this._hoveredLayer=i)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(sn((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;n&&(n.prev=i,i?i.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;i&&(i.next=n,n?n.prev=i:i&&(this._drawLast=i),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function Pr(t){return Ii.canvas?new Tr(t):null}var Mr=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">')}}(),kr={_initContainer:function(){this._container=so("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Lr.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Mr("shape");uo(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Mr("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[an(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;ro(e),t.removeInteractiveTarget(e),delete this._layers[an(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=Mr("stroke")),o.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=vn(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=Mr("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){lo(t._container)},_bringToBack:function(t){co(t._container)}},Cr=Ii.vml?Mr:Yn,Er=Lr.extend({_initContainer:function(){this._container=Cr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Cr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ro(this._container),Ao(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Lr.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),yo(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=Cr("path");t.options.className&&uo(e,t.options.className),t.options.interactive&&uo(e,"leaflet-interactive"),this._updateStyle(t),this._layers[an(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ro(t._path),t.removeInteractiveTarget(t._path),delete this._layers[an(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,Xn(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){lo(t._path)},_bringToBack:function(t){co(t._path)}});function Ar(t){return Ii.svg||Ii.vml?new Er(t):null}Ii.vml&&Er.include(kr),Go.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Pr(t)||Ar(t)}});var Or=Us.extend({initialize:function(t,e){Us.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=Nn(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Sr(t,e){return new Or(t,e)}Er.create=Cr,Er.pointsToPath=Xn,Gs.geometryToLayer=Ks,Gs.coordsToLatLng=Xs,Gs.coordsToLatLngs=Js,Gs.latLngToCoords=Qs,Gs.latLngsToCoords=tr,Gs.getFeature=er,Gs.asFeature=nr,Go.mergeOptions({boxZoom:!0});var zr=ns.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(){Co(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ao(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ro(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(),Ki(),xo(),this._startPoint=this._map.mouseEventToContainerPoint(t),Co(document,{contextmenu:jo,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=so("div","leaflet-zoom-box",this._container),uo(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new In(this._point,this._startPoint),n=e.getSize();yo(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ro(this._box),po(this._container,"leaflet-crosshair")),Yi(),$o(),Ao(document,{contextmenu:jo,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(sn(this._resetState,this),0);var e=new Bn(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Go.addInitHook("addHandler","boxZoom",zr),Go.mergeOptions({doubleClickZoom:!0});var Ir=ns.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)}});Go.addInitHook("addHandler","doubleClickZoom",Ir),Go.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Dr=ns.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new rs(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))}uo(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){po(this._map._container,"leaflet-grab"),po(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=Nn(this._map.options.maxBounds);this._offsetLimit=Dn(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,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(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,o=(i-e+n)%t+e-n,s=(i+e+n)%t-e-n,r=Math.abs(o+n)<Math.abs(s+n)?o:s;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(t){var e=this._map,n=e.options,i=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),i)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),s=(this._lastTime-this._times[0])/1e3,r=n.easeLinearity,a=o.multiplyBy(r/s),l=a.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,l),h=a.multiplyBy(c/l),u=c/(n.inertiaDeceleration*r),d=h.multiplyBy(-u/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),Pn((function(){e.panBy(d,{duration:u,easeLinearity:r,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});Go.addInitHook("addHandler","dragging",Dr),Go.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Br=ns.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"),Co(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(),Ao(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,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){var e,n,i=this._panKeys={},o=this.keyCodes;for(e=0,n=o.left.length;e<n;e++)i[o.left[e]]=[-1*t,0];for(e=0,n=o.right.length;e<n;e++)i[o.right[e]]=[t,0];for(e=0,n=o.down.length;e<n;e++)i[o.down[e]]=[0,t];for(e=0,n=o.up.length;e<n;e++)i[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,i=this._zoomKeys={},o=this.keyCodes;for(e=0,n=o.zoomIn.length;e<n;e++)i[o.zoomIn[e]]=t;for(e=0,n=o.zoomOut.length;e<n;e++)i[o.zoomOut[e]]=-t},_addHooks:function(){Co(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ao(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=zn(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()}jo(t)}}});Go.addInitHook("addHandler","keyboard",Br),Go.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Nr=ns.extend({addHooks:function(){Co(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ao(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Wo(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(sn(this._performZoom,this),i),jo(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,s=n?Math.ceil(o/n)*n:o,r=t._limitZoom(e+(this._delta>0?s:-s))-e;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});Go.addInitHook("addHandler","scrollWheelZoom",Nr);Go.mergeOptions({tapHold:Ii.touchNative&&Ii.safari&&Ii.mobile,tapTolerance:15});var Zr=ns.extend({addHooks:function(){Co(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ao(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new On(e.clientX,e.clientY),this._holdTimeout=setTimeout(sn((function(){this._cancel(),this._isTapValid()&&(Co(document,"touchend",Zo),Co(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),600),Co(document,"touchend touchcancel contextmenu",this._cancel,this),Co(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Ao(document,"touchend",Zo),Ao(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Ao(document,"touchend touchcancel contextmenu",this._cancel,this),Ao(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new On(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});Go.addInitHook("addHandler","tapHold",Zr),Go.mergeOptions({touchZoom:Ii.touch,bounceAtZoomLimits:!0});var jr=ns.extend({addHooks:function(){uo(this._map._container,"leaflet-touch-zoom"),Co(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){po(this._map._container,"leaflet-touch-zoom"),Ao(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Co(document,"touchmove",this._onTouchMove,this),Co(document,"touchend touchcancel",this._onTouchEnd,this),Zo(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]),o=n.distanceTo(i)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var s=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===s.x&&0===s.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),Mn(this._animRequest);var r=sn(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Pn(r,this,!0),Zo(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,Mn(this._animRequest),Ao(document,"touchmove",this._onTouchMove,this),Ao(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Go.addInitHook("addHandler","touchZoom",jr),Go.BoxZoom=zr,Go.DoubleClickZoom=Ir,Go.Drag=Dr,Go.Keyboard=Br,Go.ScrollWheelZoom=Nr,Go.TapHold=Zr,Go.TouchZoom=jr;var Rr=nn({__proto__:null,version:en,Control:Yo,control:Xo,Class:Cn,Handler:ns,extend:nn,bind:sn,stamp:an,setOptions:mn,Browser:Ii,Evented:An,Mixin:os,Util:kn,PosAnimation:Vo,Draggable:rs,DomEvent:Uo,DomUtil:ko,Point:On,point:zn,Bounds:In,bounds:Dn,Transformation:Un,transformation:Vn,LineUtil:vs,PolyUtil:ws,LatLng:Zn,latLng:jn,LatLngBounds:Bn,latLngBounds:Nn,CRS:Hn,Projection:Ls,Layer:ks,LayerGroup:Cs,layerGroup:Es,FeatureGroup:As,featureGroup:Os,ImageOverlay:rr,imageOverlay:ar,VideoOverlay:lr,videoOverlay:cr,SVGOverlay:hr,svgOverlay:ur,DivOverlay:dr,Popup:pr,popup:mr,Tooltip:fr,tooltip:_r,icon:zs,DivIcon:gr,divIcon:vr,Marker:Bs,marker:Ns,Icon:Ss,GridLayer:yr,gridLayer:br,TileLayer:wr,tileLayer:xr,Renderer:Lr,Canvas:Tr,canvas:Pr,Path:Zs,CircleMarker:js,circleMarker:Rs,Circle:Hs,circle:Fs,Polyline:Ws,polyline:qs,Polygon:Us,polygon:Vs,Rectangle:Or,rectangle:Sr,SVG:Er,svg:Ar,GeoJSON:Gs,geoJSON:or,geoJson:sr,Map:Go,map:Ko},{noConflict:Wr}),Hr=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("Unable to locate global object.")}(),Fr=Hr.L;function Wr(){return Hr.L=Fr,Rr}Hr.L=Rr;var qr=ct(Object.freeze({__proto__:null,Bounds:In,Browser:Ii,CRS:Hn,Canvas:Tr,Circle:Hs,CircleMarker:js,Class:Cn,Control:Yo,DivIcon:gr,DivOverlay:dr,DomEvent:Uo,DomUtil:ko,Draggable:rs,Evented:An,FeatureGroup:As,GeoJSON:Gs,GridLayer:yr,Handler:ns,Icon:Ss,ImageOverlay:rr,LatLng:Zn,LatLngBounds:Bn,Layer:ks,LayerGroup:Cs,LineUtil:vs,Map:Go,Marker:Bs,Mixin:os,Path:Zs,Point:On,PolyUtil:ws,Polygon:Us,Polyline:Ws,Popup:pr,PosAnimation:Vo,Projection:Ls,Rectangle:Or,Renderer:Lr,SVG:Er,SVGOverlay:hr,TileLayer:wr,Tooltip:fr,Transformation:Un,Util:kn,VideoOverlay:lr,bind:sn,bounds:Dn,canvas:Pr,circle:Fs,circleMarker:Rs,control:Xo,default:Rr,divIcon:vr,extend:nn,featureGroup:Os,geoJSON:or,geoJson:sr,gridLayer:br,icon:zs,imageOverlay:ar,latLng:jn,latLngBounds:Nn,layerGroup:Es,map:Ko,marker:Ns,noConflict:Wr,point:zn,polygon:Vs,polyline:qs,popup:mr,rectangle:Sr,setOptions:mn,stamp:an,svg:Ar,svgOverlay:ur,tileLayer:xr,tooltip:_r,transformation:Vn,version:en,videoOverlay:cr}));function Ur(e){let n,i,o,s,r,a,l,c,h,u,d,p,m,f,_,g,w,L,P,k,C,O,S,z,I,D,B,N;return{c(){n=x("div"),i=x("div"),o=$("map center: "),s=$(e[0]),r=T(),a=x("a"),l=$("view on osm.org"),c=T(),h=x("br"),u=$("\n    map zoom: "),d=$(e[1]),p=T(),m=x("br"),f=$("\n    viewbox: "),_=$(e[2]),g=T(),w=x("br"),L=$("\n    last click: "),P=$(e[4]),k=T(),C=x("br"),O=$("\n    mouse position: "),S=$(e[5]),z=T(),I=x("div"),D=x("a"),D.textContent="hide",E(a,"target","_blank"),E(a,"href",e[3]),E(i,"id","map-position-inner"),E(D,"href","#hide"),E(I,"id","map-position-close"),E(I,"class","svelte-1b30dq3"),E(n,"id","map-position"),E(n,"class","svelte-1b30dq3")},m(t,e){y(t,n,e),v(n,i),v(i,o),v(i,s),v(i,r),v(i,a),v(a,l),v(i,c),v(i,h),v(i,u),v(i,d),v(i,p),v(i,m),v(i,f),v(i,_),v(i,g),v(i,w),v(i,L),v(i,P),v(i,k),v(i,C),v(i,O),v(i,S),v(n,z),v(n,I),v(I,D),B||(N=M(D,"click",Vr),B=!0)},p(t,[e]){1&e&&A(s,t[0]),8&e&&E(a,"href",t[3]),2&e&&A(d,t[1]),4&e&&A(_,t[2]),16&e&&A(P,t[4]),32&e&&A(S,t[5])},i:t,o:t,d(t){t&&b(n),B=!1,N()}}}function Vr(){document.getElementById("map-position").style.display="none",document.getElementById("show-map-position").style.display="block"}function Gr(t,e,n){let i,o,s,r,a,l,c;function h(t,e){n(0,o=t.getCenter().lat.toFixed(5)+","+t.getCenter().lng.toFixed(5)),n(3,a=function(t){return"https://openstreetmap.org/#map="+t.getZoom()+"/"+t.getCenter().lat.toFixed(5)+"/"+t.getCenter().lng.toFixed(5)}(t)),n(1,s=t.getZoom()),n(2,r=function(t){var e=t.getBounds(),n=e.getWest(),i=e.getEast();return i-n>=360&&(n=t.getCenter().lng-179.999,i=t.getCenter().lng+179.999),i=L.latLng(77,i).wrap().lng,[(n=L.latLng(77,n).wrap().lng).toFixed(5),e.getNorth().toFixed(5),i.toFixed(5),e.getSouth().toFixed(5)].join(",")}(t)),n(5,c="-"),e&&n(5,c=[e.lat.toFixed(5),e.lng.toFixed(5)].join(",")),i&&n(4,l=[i.lat.toFixed(5),i.lng.toFixed(5)].join(","))}return dt.subscribe((t=>{t&&(t.on("move",(function(){h(t)})),t.on("mousemove",(function(e){h(t,e.latlng)})),t.on("click",(function(e){i=e.latlng,h(t)})),t.on("load",(function(){h(t)})))})),[o,s,r,a,l,c]}!function(t,e){!function(e,n){t.exports=e(qr),void 0!==n&&n.L&&(n.L.Control.MiniMap=e(L),n.L.control.minimap=function(t,e){return new n.L.Control.MiniMap(t,e)})}((function(t){var e=t.Control.extend({includes:t.Evented?t.Evented.prototype:t.Mixin.Events,options:{position:"bottomright",toggleDisplay:!1,zoomLevelOffset:-5,zoomLevelFixed:!1,centerFixed:!1,zoomAnimation:!1,autoToggleDisplay:!1,minimized:!1,width:150,height:150,collapsedWidth:19,collapsedHeight:19,aimingRectOptions:{color:"#ff7800",weight:1,clickable:!1},shadowRectOptions:{color:"#000000",weight:1,clickable:!1,opacity:0,fillOpacity:0},strings:{hideText:"Hide MiniMap",showText:"Show MiniMap"},mapOptions:{}},initialize:function(e,n){t.Util.setOptions(this,n),this.options.aimingRectOptions.clickable=!1,this.options.shadowRectOptions.clickable=!1,this._layer=e},onAdd:function(e){this._mainMap=e,this._container=t.DomUtil.create("div","leaflet-control-minimap"),this._container.style.width=this.options.width+"px",this._container.style.height=this.options.height+"px",t.DomEvent.disableClickPropagation(this._container),t.DomEvent.on(this._container,"mousewheel",t.DomEvent.stopPropagation);var n={attributionControl:!1,dragging:!this.options.centerFixed,zoomControl:!1,zoomAnimation:this.options.zoomAnimation,autoToggleDisplay:this.options.autoToggleDisplay,touchZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),scrollWheelZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),doubleClickZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),boxZoom:!this._isZoomLevelFixed(),crs:e.options.crs};return n=t.Util.extend(this.options.mapOptions,n),this._miniMap=new t.Map(this._container,n),this._miniMap.addLayer(this._layer),this._mainMapMoving=!1,this._miniMapMoving=!1,this._userToggledDisplay=!1,this._minimized=!1,this.options.toggleDisplay&&this._addToggleButton(),this._miniMap.whenReady(t.Util.bind((function(){this._aimingRect=t.rectangle(this._mainMap.getBounds(),this.options.aimingRectOptions).addTo(this._miniMap),this._shadowRect=t.rectangle(this._mainMap.getBounds(),this.options.shadowRectOptions).addTo(this._miniMap),this._mainMap.on("moveend",this._onMainMapMoved,this),this._mainMap.on("move",this._onMainMapMoving,this),this._miniMap.on("movestart",this._onMiniMapMoveStarted,this),this._miniMap.on("move",this._onMiniMapMoving,this),this._miniMap.on("moveend",this._onMiniMapMoved,this)}),this)),this._container},addTo:function(e){t.Control.prototype.addTo.call(this,e);var n=this.options.centerFixed||this._mainMap.getCenter();return this._miniMap.setView(n,this._decideZoom(!0)),this._setDisplay(this.options.minimized),this},onRemove:function(t){this._mainMap.off("moveend",this._onMainMapMoved,this),this._mainMap.off("move",this._onMainMapMoving,this),this._miniMap.off("moveend",this._onMiniMapMoved,this),this._miniMap.removeLayer(this._layer)},changeLayer:function(t){this._miniMap.removeLayer(this._layer),this._layer=t,this._miniMap.addLayer(this._layer)},_addToggleButton:function(){this._toggleDisplayButton=this.options.toggleDisplay?this._createButton("",this._toggleButtonInitialTitleText(),"leaflet-control-minimap-toggle-display leaflet-control-minimap-toggle-display-"+this.options.position,this._container,this._toggleDisplayButtonClicked,this):void 0,this._toggleDisplayButton.style.width=this.options.collapsedWidth+"px",this._toggleDisplayButton.style.height=this.options.collapsedHeight+"px"},_toggleButtonInitialTitleText:function(){return this.options.minimized?this.options.strings.showText:this.options.strings.hideText},_createButton:function(e,n,i,o,s,r){var a=t.DomUtil.create("a",i,o);a.innerHTML=e,a.href="#",a.title=n;var l=t.DomEvent.stopPropagation;return t.DomEvent.on(a,"click",l).on(a,"mousedown",l).on(a,"dblclick",l).on(a,"click",t.DomEvent.preventDefault).on(a,"click",s,r),a},_toggleDisplayButtonClicked:function(){this._userToggledDisplay=!0,this._minimized?this._restore():this._minimize()},_setDisplay:function(t){t!==this._minimized&&(this._minimized?this._restore():this._minimize())},_minimize:function(){this.options.toggleDisplay?(this._container.style.width=this.options.collapsedWidth+"px",this._container.style.height=this.options.collapsedHeight+"px",this._toggleDisplayButton.className+=" minimized-"+this.options.position,this._toggleDisplayButton.title=this.options.strings.showText):this._container.style.display="none",this._minimized=!0,this._onToggle()},_restore:function(){this.options.toggleDisplay?(this._container.style.width=this.options.width+"px",this._container.style.height=this.options.height+"px",this._toggleDisplayButton.className=this._toggleDisplayButton.className.replace("minimized-"+this.options.position,""),this._toggleDisplayButton.title=this.options.strings.hideText):this._container.style.display="block",this._minimized=!1,this._onToggle()},_onMainMapMoved:function(t){if(this._miniMapMoving)this._miniMapMoving=!1;else{var e=this.options.centerFixed||this._mainMap.getCenter();this._mainMapMoving=!0,this._miniMap.setView(e,this._decideZoom(!0)),this._setDisplay(this._decideMinimized())}this._aimingRect.setBounds(this._mainMap.getBounds())},_onMainMapMoving:function(t){this._aimingRect.setBounds(this._mainMap.getBounds())},_onMiniMapMoveStarted:function(t){if(!this.options.centerFixed){var e=this._aimingRect.getBounds(),n=this._miniMap.latLngToContainerPoint(e.getSouthWest()),i=this._miniMap.latLngToContainerPoint(e.getNorthEast());this._lastAimingRectPosition={sw:n,ne:i}}},_onMiniMapMoving:function(e){this.options.centerFixed||!this._mainMapMoving&&this._lastAimingRectPosition&&(this._shadowRect.setBounds(new t.LatLngBounds(this._miniMap.containerPointToLatLng(this._lastAimingRectPosition.sw),this._miniMap.containerPointToLatLng(this._lastAimingRectPosition.ne))),this._shadowRect.setStyle({opacity:1,fillOpacity:.3}))},_onMiniMapMoved:function(t){this._mainMapMoving?this._mainMapMoving=!1:(this._miniMapMoving=!0,this._mainMap.setView(this._miniMap.getCenter(),this._decideZoom(!1)),this._shadowRect.setStyle({opacity:0,fillOpacity:0}))},_isZoomLevelFixed:function(){var t=this.options.zoomLevelFixed;return this._isDefined(t)&&this._isInteger(t)},_decideZoom:function(t){if(this._isZoomLevelFixed())return t?this.options.zoomLevelFixed:this._mainMap.getZoom();if(t)return this._mainMap.getZoom()+this.options.zoomLevelOffset;var e,n=this._miniMap.getZoom()-this._mainMap.getZoom(),i=this._miniMap.getZoom()-this.options.zoomLevelOffset;return n>this.options.zoomLevelOffset&&this._mainMap.getZoom()<this._miniMap.getMinZoom()-this.options.zoomLevelOffset?this._miniMap.getZoom()>this._lastMiniMapZoom?(e=this._mainMap.getZoom()+1,this._miniMap.setZoom(this._miniMap.getZoom()-1)):e=this._mainMap.getZoom():e=i,this._lastMiniMapZoom=this._miniMap.getZoom(),e},_decideMinimized:function(){return this._userToggledDisplay?this._minimized:this.options.autoToggleDisplay?!!this._mainMap.getBounds().contains(this._miniMap.getBounds()):this._minimized},_isInteger:function(t){return"number"==typeof t},_isDefined:function(t){return void 0!==t},_onToggle:function(){t.Util.requestAnimFrame((function(){t.DomEvent.on(this._container,"transitionend",this._fireToggleEvents,this),t.Browser.any3d||t.Util.requestAnimFrame(this._fireToggleEvents,this)}),this)},_fireToggleEvents:function(){t.DomEvent.off(this._container,"transitionend",this._fireToggleEvents,this);var e={minimized:this._minimized};this.fire(this._minimized?"minimize":"restore",e),this.fire("toggle",e)}});return t.Map.mergeOptions({miniMapControl:!1}),t.Map.addInitHook((function(){this.options.miniMapControl&&(this.miniMapControl=(new e).addTo(this))})),e}),window)}({exports:{}});class Kr extends lt{constructor(t){super(),at(this,t,Gr,Ur,r,{})}}function Yr(e){let n,i,r,a,l,c,h,u;return n=new Kr({}),{c(){it(n.$$.fragment),i=T(),r=x("div"),a=T(),l=x("div"),l.textContent="show map bounds",E(r,"id","map"),E(r,"class","svelte-1vbvdrk"),E(l,"id","show-map-position"),E(l,"class","leaflet-bar btn btn-sm btn-outline-secondary svelte-1vbvdrk")},m(o,d){var p;ot(n,o,d),y(o,i,d),y(o,r,d),y(o,a,d),y(o,l,d),c=!0,h||(u=[(p=e[0].call(null,r),p&&s(p.destroy)?p.destroy:t),M(l,"click",C(Xr))],h=!0)},p:t,i(t){c||(tt(n.$$.fragment,t),c=!0)},o(t){et(n.$$.fragment,t),c=!1},d(t){st(n,t),t&&b(i),t&&b(r),t&&b(a),t&&b(l),h=!1,o(u)}}}function Xr(t){t.target.style.display="none",document.getElementById("map-position").style.display="block"}function Jr(t,e,n){let{display_minimap:i=!1}=e,{current_result:o=null}=e,{position_marker:s=null}=e,r=[];function a(t){let e=u(dt);if(!e)return;if(function(){let t=u(dt);t&&r.forEach((function(e){t.removeLayer(e)}))}(),s){let t=Rs(s,{radius:5,weight:2,fillColor:"#ff7800",color:"red",opacity:.75,zIndexOffset:100,clickable:!1});t.bindTooltip(`Search (${s[0]},${s[1]})`).openTooltip(),t.addTo(e),r.push(t)}var n=new URLSearchParams(window.location.search).get("viewbox");if(n){let t=n.split(",");Sr(Nn([t[1],t[0]],[t[3],t[2]]),{color:"#69d53e",weight:3,dashArray:"5 5",opacity:.8,fill:!1}).addTo(e)}if(!t)return;let i=t.centroid?t.centroid.coordinates[1]:t.lat,o=t.centroid?t.centroid.coordinates[0]:t.lon,a=t.geometry||t.geojson;if(i&&o){let t=Rs([i,o],{radius:10,weight:2,fillColor:"#ff7800",color:"blue",opacity:.75});s&&t.bindTooltip("Result").openTooltip(),e.addLayer(t),r.push(t)}if(a){var l=sr({type:"FeatureCollection",features:[{type:"Feature",geometry:a,properties:{}}]},{style:()=>({interactive:!1,color:"blue"})});e.addLayer(l),r.push(l),e.fitBounds(l.getBounds())}else i&&o&&s?e.fitBounds([[i,o],s],{padding:[50,50]}):i&&o&&e.setView([i,o],10)}return t.$$set=t=>{"display_minimap"in t&&n(1,i=t.display_minimap),"current_result"in t&&n(2,o=t.current_result),"position_marker"in t&&n(3,s=t.position_marker)},t.$$.update=()=>{4&t.$$.dirty&&a(o)},[function(t){let e=function(t){const e=Nominatim_Config.Map_Tile_Attribution;let n=new Ko(t,{attributionControl:!1,scrollWheelZoom:!0,touchZoom:!1,center:[Nominatim_Config.Map_Default_Lat,Nominatim_Config.Map_Default_Lon],zoom:Nominatim_Config.Map_Default_Zoom});if(e&&e.length&&Xo.attribution({prefix:'<a href="https://leafletjs.com/">Leaflet</a>'}).addTo(n),xr(Nominatim_Config.Map_Tile_URL,{attribution:e}).addTo(n),i){let t=new wr(Nominatim_Config.Map_Tile_URL,{minZoom:0,maxZoom:13,attribution:e});new Yo.MiniMap(t,{toggleDisplay:!0}).addTo(n)}const o=Yo.extend({options:{position:"topright"},onAdd:()=>document.getElementById("show-map-position")});return n.addControl(new o),n}(t);return dt.set(e),a(o),{destroy:()=>{dt.set(null),e.remove()}}},i,o,s]}class Qr extends lt{constructor(t){super(),at(this,t,Jr,Yr,r,{display_minimap:1,current_result:2,position_marker:3})}}function ta(t){let e,n;return e=new _e({props:{api_request_params:t[0],bStructuredSearch:t[2]}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.api_request_params=t[0]),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function ea(t){let e,n,i,o,s,r,a,l,c,h;function u(e){t[4](e)}e=new se({props:{$$slots:{default:[ta]},$$scope:{ctx:t}}});let d={reverse_search:!1};return void 0!==t[1]&&(d.current_result=t[1]),s=new tn({props:d}),Z.push((()=>nt(s,"current_result",u))),c=new Qr({props:{current_result:t[1],display_minimap:!0}}),{c(){it(e.$$.fragment),n=T(),i=x("div"),o=x("div"),it(s.$$.fragment),a=T(),l=x("div"),it(c.$$.fragment),E(o,"class","sidebar svelte-1d53ob0"),E(l,"id","map-wrapper"),E(l,"class","svelte-1d53ob0"),E(i,"id","content"),E(i,"class","svelte-1d53ob0")},m(t,r){ot(e,t,r),y(t,n,r),y(t,i,r),v(i,o),ot(s,o,null),v(i,a),v(i,l),ot(c,l,null),h=!0},p(t,[n]){const i={};65&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i);const o={};!r&&2&n&&(r=!0,o.current_result=t[1],q((()=>r=!1))),s.$set(o);const a={};2&n&&(a.current_result=t[1]),c.$set(a)},i(t){h||(tt(e.$$.fragment,t),tt(s.$$.fragment,t),tt(c.$$.fragment,t),h=!0)},o(t){et(e.$$.fragment,t),et(s.$$.fragment,t),et(c.$$.fragment,t),h=!1},d(t){st(e,t),t&&b(n),t&&b(i),st(s),st(c)}}}function na(t,e,n){let i,o,s;return d(t,_t,(t=>n(3,i=t))),t.$$.update=()=>{if(8&t.$$.dirty){let t=i;"search"===t.tab&&function(t){Mt(),n(0,o={q:t.get("q"),street:t.get("street"),city:t.get("city"),county:t.get("county"),state:t.get("state"),country:t.get("country"),postalcode:t.get("postalcode"),polygon_geojson:Nominatim_Config.Search_AreaPolygons?1:0,viewbox:t.get("viewbox"),bounded:t.get("bounded"),dedupe:t.has("dedupe")&&"1"!==t.get("dedupe")?0:1,"accept-language":t.get("accept-language"),countrycodes:t.get("countrycodes"),limit:t.get("limit"),polygon_threshold:t.get("polygon_threshold"),exclude_place_ids:t.get("exclude_place_ids"),format:"jsonv2"});let e=o.street||o.city||o.county||o.state||o.country||o.postalcode;o.q||e?$t("search",o,(function(t){pt.set(t),Mt("Result for "+o.q),e?(document.querySelector(".nav-tabs a[href='#structured']").click(),document.querySelector("input[name=street]").focus()):document.querySelector("input[name=q]").focus()})):pt.set(void 0)}(t.params)}},[o,s,undefined,i,function(t){s=t,n(1,s)}]}class ia extends lt{constructor(t){super(),at(this,t,na,ea,r,{})}}function oa(t,e,n){const i=t.slice();return i[8]=e[n],i[10]=n,i}function sa(e){let n,i,o,s,r=e[8]+"";return{c(){n=x("option"),i=$(e[10]),o=$(" - "),s=$(r),n.__value=e[10],n.value=n.__value},m(t,e){y(t,n,e),v(n,i),v(n,o),v(n,s)},p:t,d(t){t&&b(n)}}}function ra(t){let e,n,i,s,r,a,l,c,h,u,d,p,m,f,_,g,$,L,P,A,z,I,D=Ee(),B=[];for(let e=0;e<D.length;e+=1)B[e]=sa(oa(t,D,e));return{c(){e=x("div"),e.innerHTML='<label for="reverse-lat" class="svelte-1pqxd6v">lat</label>',n=T(),i=x("div"),s=x("input"),r=T(),a=x("div"),l=x("a"),l.textContent="<>",c=T(),h=x("div"),h.innerHTML='<label for="reverse-lon" class="svelte-1pqxd6v">lon</label>',u=T(),d=x("div"),p=x("input"),m=T(),f=x("div"),f.innerHTML='<label for="reverse-zoom" class="svelte-1pqxd6v">max zoom</label>',_=T(),g=x("div"),$=x("select"),L=x("option"),L.textContent="---";for(let t=0;t<B.length;t+=1)B[t].c();P=T(),A=x("div"),A.innerHTML='<button type="submit" class="btn btn-primary btn-sm mx-1">Search</button>',E(e,"class","col-auto"),E(s,"id","reverse-lat"),E(s,"name","lat"),E(s,"type","text"),E(s,"class","form-control form-control-sm d-inline svelte-1pqxd6v"),E(s,"placeholder","latitude"),E(s,"pattern","^-?\\d+(\\.\\d+)?$"),E(i,"class","col-auto"),E(l,"id","switch-coords"),E(l,"class","btn btn-outline-secondary btn-sm svelte-1pqxd6v"),E(l,"title","switch lat and lon"),E(a,"class","col-auto"),E(h,"class","col-auto"),E(p,"id","reverse-lon"),E(p,"name","lon"),E(p,"type","text"),E(p,"class","form-control form-control-sm svelte-1pqxd6v"),E(p,"placeholder","longitude"),E(p,"pattern","^-?\\d+(\\.\\d+)?$"),E(d,"class","col-auto"),E(f,"class","col-auto"),L.__value="",L.value=L.__value,E($,"id","reverse-zoom"),E($,"name","zoom"),E($,"class","form-select form-select-sm svelte-1pqxd6v"),void 0===t[2]&&W((()=>t[7].call($))),E(g,"class","col-auto"),E(A,"class","col-auto")},m(o,b){y(o,e,b),y(o,n,b),y(o,i,b),v(i,s),O(s,t[0]),y(o,r,b),y(o,a,b),v(a,l),y(o,c,b),y(o,h,b),y(o,u,b),y(o,d,b),v(d,p),O(p,t[1]),y(o,m,b),y(o,f,b),y(o,_,b),y(o,g,b),v(g,$),v($,L);for(let t=0;t<B.length;t+=1)B[t].m($,null);S($,t[2]),y(o,P,b),y(o,A,b),z||(I=[M(s,"input",t[4]),M(s,"change",la),M(l,"click",C(k(t[5]))),M(p,"input",t[6]),M($,"change",t[7])],z=!0)},p(t,e){if(1&e&&s.value!==t[0]&&O(s,t[0]),2&e&&p.value!==t[1]&&O(p,t[1]),0&e){let n;for(D=Ee(),n=0;n<D.length;n+=1){const i=oa(t,D,n);B[n]?B[n].p(i,e):(B[n]=sa(i),B[n].c(),B[n].m($,null))}for(;n<B.length;n+=1)B[n].d(1);B.length=D.length}4&e&&S($,t[2])},d(t){t&&b(e),t&&b(n),t&&b(i),t&&b(r),t&&b(a),t&&b(c),t&&b(h),t&&b(u),t&&b(d),t&&b(m),t&&b(f),t&&b(_),t&&b(g),w(B,t),t&&b(P),t&&b(A),z=!1,o(I)}}}function aa(t){let e,n;return e=new le({props:{page:"reverse",$$slots:{default:[ra]},$$scope:{ctx:t}}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,[n]){const i={};2055&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function la(t){var e=t.target.value.split(",");2===e.length&&(document.querySelector("input[name=lat]").value=L.Util.trim(e[0]),document.querySelector("input[name=lon]").value=L.Util.trim(e[1]))}function ca(t,e,n){let{lat:i=""}=e,{lon:o=""}=e,{zoom:s=""}=e;function r(t,e,n){if(null===t||null===e)return;let i=new URLSearchParams;i.set("lat",t),i.set("lon",e),i.set("zoom",n||s),yt("reverse",i)}dt.subscribe((t=>{t&&t.on("click",(t=>{let e=t.latlng.wrap();r(e.lat.toFixed(5),e.lng.toFixed(5))}))}));return t.$$set=t=>{"lat"in t&&n(0,i=t.lat),"lon"in t&&n(1,o=t.lon),"zoom"in t&&n(2,s=t.zoom)},[i,o,s,r,function(){i=this.value,n(0,i)},()=>r(o,i),function(){o=this.value,n(1,o)},function(){s=function(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}(this),n(2,s)}]}class ha extends lt{constructor(t){super(),at(this,t,ca,aa,r,{lat:0,lon:1,zoom:2})}}function ua(t){let n,i;const o=[t[0]];let s={};for(let t=0;t<o.length;t+=1)s=e(s,o[t]);return n=new ha({props:s}),{c(){it(n.$$.fragment)},m(t,e){ot(n,t,e),i=!0},p(t,e){const i=1&e?function(t,e){const n={},i={},o={$$scope:1};let s=t.length;for(;s--;){const r=t[s],a=e[s];if(a){for(const t in r)t in a||(i[t]=1);for(const t in a)o[t]||(n[t]=a[t],o[t]=1);t[s]=a}else for(const t in r)o[t]=1}for(const t in i)t in n||(n[t]=void 0);return n}(o,[(s=t[0],"object"==typeof s&&null!==s?s:{})]):{};var s;n.$set(i)},i(t){i||(tt(n.$$.fragment,t),i=!0)},o(t){et(n.$$.fragment,t),i=!1},d(t){st(n,t)}}}function da(t){let e,n,i,o,s,r,a,l,c,h;function u(e){t[4](e)}e=new se({props:{$$slots:{default:[ua]},$$scope:{ctx:t}}});let d={reverse_search:!0};return void 0!==t[1]&&(d.current_result=t[1]),s=new tn({props:d}),Z.push((()=>nt(s,"current_result",u))),c=new Qr({props:{current_result:t[1],position_marker:t[2],display_minimap:!0}}),{c(){it(e.$$.fragment),n=T(),i=x("div"),o=x("div"),it(s.$$.fragment),a=T(),l=x("div"),it(c.$$.fragment),E(o,"class","sidebar svelte-1d53ob0"),E(l,"id","map-wrapper"),E(l,"class","svelte-1d53ob0"),E(i,"id","content"),E(i,"class","svelte-1d53ob0")},m(t,r){ot(e,t,r),y(t,n,r),y(t,i,r),v(i,o),ot(s,o,null),v(i,a),v(i,l),ot(c,l,null),h=!0},p(t,[n]){const i={};65&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i);const o={};!r&&2&n&&(r=!0,o.current_result=t[1],q((()=>r=!1))),s.$set(o);const a={};2&n&&(a.current_result=t[1]),4&n&&(a.position_marker=t[2]),c.$set(a)},i(t){h||(tt(e.$$.fragment,t),tt(s.$$.fragment,t),tt(c.$$.fragment,t),h=!0)},o(t){et(e.$$.fragment,t),et(s.$$.fragment,t),et(c.$$.fragment,t),h=!1},d(t){st(e,t),t&&b(n),t&&b(i),st(s),st(c)}}}function pa(t,e,n){let i,o,s,r;return d(t,_t,(t=>n(3,i=t))),t.$$.update=()=>{if(8&t.$$.dirty){let t=i;"reverse"===t.tab&&(e=t.params,Mt(),n(0,o={lat:e.get("lat"),lon:e.get("lon"),zoom:e.get("zoom")>1?Number(e.get("zoom")):Number(Nominatim_Config.Reverse_Default_Search_Zoom),format:"jsonv2"}),o.lat||o.lat?$t("reverse",o,(function(t){t&&!t.error?(n(2,r=[o.lat,o.lon]),pt.set([t])):pt.set([]),Mt("Reverse result for "+o.lat+","+o.lon),document.querySelector("input[name=lat]").focus()})):pt.set(void 0))}var e},[o,s,r,i,function(t){s=t,n(1,s)}]}class ma extends lt{constructor(t){super(),at(this,t,pa,da,r,{})}}function fa(e){let n,i,o,s,r,a,l,c,h,u,d;return{c(){n=x("form"),i=x("div"),o=x("div"),s=x("input"),a=T(),l=x("div"),l.innerHTML='<button type="submit" class="btn btn-primary btn-sm">Show</button>',c=T(),h=x("small"),h.innerHTML='OSM type+id (<em class="svelte-1kvo9ki">N123</em>, <em class="svelte-1kvo9ki">n123</em>, <em class="svelte-1kvo9ki">W123</em>, <em class="svelte-1kvo9ki">w123</em>, <em class="svelte-1kvo9ki">R123</em>, <em class="svelte-1kvo9ki">r123</em>),\n  Place id (<em class="svelte-1kvo9ki">1234</em>) or\n  URL (<em class="svelte-1kvo9ki">https://openstreetmap.org/way/123</em>)',E(s,"type","edit"),E(s,"class","form-control form-control-sm me-1 svelte-1kvo9ki"),E(s,"pattern","^[NWRnwr]?[0-9]+$|.*openstreetmap.*"),s.value=r=""+((e[0].osmtype||"")+(e[0].osmid||"")+(e[0].place_id||"")),E(o,"class","col-auto"),E(l,"class","col-auto"),E(i,"class","row g-1"),E(n,"class","form-inline svelte-1kvo9ki"),E(n,"action","details.html"),E(h,"class","form-text text-muted svelte-1kvo9ki")},m(t,r){y(t,n,r),v(n,i),v(i,o),v(o,s),v(i,a),v(i,l),y(t,c,r),y(t,h,r),u||(d=M(n,"submit",k(e[1])),u=!0)},p(t,[e]){1&e&&r!==(r=""+((t[0].osmtype||"")+(t[0].osmid||"")+(t[0].place_id||"")))&&s.value!==r&&(s.value=r)},i:t,o:t,d(t){t&&b(n),t&&b(c),t&&b(h),u=!1,d()}}}function _a(t,e,n){let{api_request_params:i={}}=e;return t.$$set=t=>{"api_request_params"in t&&n(0,i=t.api_request_params)},[i,function(t){let e=t.target.querySelector("input[type=edit]").value.trim(),n=e.match(/^\s*([NWR])(\d+)\s*$/i)||e.match(/\/(relation|way|node)\/(\d+)\s*$/);var i=new URLSearchParams;if(n)i.set("osmtype",n[1].charAt(0).toUpperCase()),i.set("osmid",n[2]);else{if(!e.match(/^\d+$/))return void alert("invalid input");i.set("place_id",e)}yt("details",i)}]}class ga extends lt{constructor(t){super(),at(this,t,_a,fa,r,{api_request_params:0})}}function va(e){let n;return{c(){n=x("span"),n.textContent="No Name",E(n,"class","noname")},m(t,e){y(t,n,e)},p:t,d(t){t&&b(n)}}}function ya(t){let e,n=t[0].localname+"";return{c(){e=$(n)},m(t,n){y(t,e,n)},p(t,i){1&i&&n!==(n=t[0].localname+"")&&A(e,n)},d(t){t&&b(e)}}}function ba(t){let e,n;return e=new Et({props:{page:"search",params_hash:{postalcode:t[0].localname},$$slots:{default:[$a]},$$scope:{ctx:t}}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.params_hash={postalcode:t[0].localname}),32&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function wa(t){let e,n;return e=new Et({props:{page:"search",params_hash:{country:t[0].localname},$$slots:{default:[La]},$$scope:{ctx:t}}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.params_hash={country:t[0].localname}),32&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function xa(t){let e,n;return e=new Ie({props:{feature:t[0],$$slots:{default:[Ta]},$$scope:{ctx:t}}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.feature=t[0]),32&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function $a(t){let e;return{c(){e=$("search by name")},m(t,n){y(t,e,n)},d(t){t&&b(e)}}}function La(t){let e;return{c(){e=$("search by name")},m(t,n){y(t,e,n)},d(t){t&&b(e)}}}function Ta(t){let e;return{c(){e=$("details")},m(t,n){y(t,e,n)},d(t){t&&b(e)}}}function Pa(t){let e,n,i,o,s,r,a,l,c,h,u,d,p,m,f,_,g,w,L,P,M,k=Pe(t[0])+"",C=be(t[0])+"",O=t[0].rank_address+"",S=Me(t[0].admin_level)+"",I=ke(t[0].distance,t[1])+"";function D(t,e){return t[0].localname?ya:va}let B=D(t),N=B(t);const Z=[xa,wa,ba],j=[];function R(t,e){return 9&e&&(w=null),t[0].osm_id?0:(null==w&&(w=!(t[3]||!t[0].type.match(/^country/))),w?1:t[3]||"postcode"!==t[0].type?-1:2)}return~(L=R(t,-1))&&(P=j[L]=Z[L](t)),{c(){e=x("tr"),n=x("td"),N.c(),i=T(),o=x("td"),s=$(k),r=T(),a=x("td"),l=T(),c=x("td"),h=$(O),u=T(),d=x("td"),p=$(S),m=T(),f=x("td"),_=T(),g=x("td"),P&&P.c(),E(n,"class","name fw-bold svelte-6a43i0"),E(o,"class","svelte-6a43i0"),E(a,"class","svelte-6a43i0"),E(c,"class","svelte-6a43i0"),E(d,"class","svelte-6a43i0"),E(f,"class","svelte-6a43i0"),E(g,"class","svelte-6a43i0"),E(e,"class","svelte-6a43i0"),z(e,"notused",t[2]&&!t[4])},m(t,b){y(t,e,b),v(e,n),N.m(n,null),v(e,i),v(e,o),v(o,s),v(e,r),v(e,a),a.innerHTML=C,v(e,l),v(e,c),v(c,h),v(e,u),v(e,d),v(d,p),v(e,m),v(e,f),f.innerHTML=I,v(e,_),v(e,g),~L&&j[L].m(g,null),M=!0},p(t,[i]){B===(B=D(t))&&N?N.p(t,i):(N.d(1),N=B(t),N&&(N.c(),N.m(n,null))),(!M||1&i)&&k!==(k=Pe(t[0])+"")&&A(s,k),(!M||1&i)&&C!==(C=be(t[0])+"")&&(a.innerHTML=C),(!M||1&i)&&O!==(O=t[0].rank_address+"")&&A(h,O),(!M||1&i)&&S!==(S=Me(t[0].admin_level)+"")&&A(p,S),(!M||3&i)&&I!==(I=ke(t[0].distance,t[1])+"")&&(f.innerHTML=I);let o=L;L=R(t,i),L===o?~L&&j[L].p(t,i):(P&&(J(),et(j[o],1,1,(()=>{j[o]=null})),Q()),~L?(P=j[L],P?P.p(t,i):(P=j[L]=Z[L](t),P.c()),tt(P,1),P.m(g,null)):P=null),(!M||20&i)&&z(e,"notused",t[2]&&!t[4])},i(t){M||(tt(P),M=!0)},o(t){et(P),M=!1},d(t){t&&b(e),N.d(),~L&&j[L].d()}}}function Ma(t,e,n){let i,o,{addressLine:s}=e,{bDistanceInMeters:r}=e,{bMarkUnusedLines:a=!1}=e;return t.$$set=t=>{"addressLine"in t&&n(0,s=t.addressLine),"bDistanceInMeters"in t&&n(1,r=t.bDistanceInMeters),"bMarkUnusedLines"in t&&n(2,a=t.bMarkUnusedLines)},t.$$.update=()=>{1&t.$$.dirty&&n(4,i=s.isaddress)},n(3,o=Nominatim_Config.Reverse_Only),[s,r,a,o,i]}class ka extends lt{constructor(t){super(),at(this,t,Ma,Pa,r,{addressLine:0,bDistanceInMeters:1,bMarkUnusedLines:2})}}function Ca(e){let n,i,s,r,a,l,c,h,u,d,p,m,f;return{c(){n=$("("),i=x("a"),i.textContent="how?",s=$(")\n\n"),r=x("div"),a=x("button"),a.innerHTML='<span aria-hidden="true">×</span>',l=$("\n\n  Nightly calculated from nearby places having this postcode.\n  "),c=x("a"),c.textContent="Documentation",h=$(".\n  You can search for those with an "),u=x("a"),d=$("Overpass Turbo query"),p=$("."),E(i,"href","#openHint"),E(a,"type","button"),E(a,"class","close svelte-yw4tm0"),E(a,"aria-label","Close"),E(c,"href","https://nominatim.org/release-docs/latest/develop/Postcodes/"),E(u,"href",e[0]),E(u,"target","_blank"),E(r,"id","postcode-hint"),E(r,"class","my-2 p-2 svelte-yw4tm0")},m(t,e){y(t,n,e),y(t,i,e),y(t,s,e),y(t,r,e),v(r,a),v(r,l),v(r,c),v(r,h),v(r,u),v(u,d),v(r,p),m||(f=[M(i,"click",C(k(Ea))),M(a,"click",C(Aa))],m=!0)},p:t,i:t,o:t,d(t){t&&b(n),t&&b(i),t&&b(s),t&&b(r),m=!1,o(f)}}}function Ea(){document.getElementById("postcode-hint").style.display="block"}function Aa(){document.getElementById("postcode-hint").style.display="none"}function Oa(t,e,n){let{postcode:i}=e,{lat:o}=e,{lon:s}=e,r=`\n    // Based on the map bounds, you can zoom out and rerun the query\n\n    [timeout:30]; // in seconds\n\n    // we define a shortcut\n    // https://wiki.openstreetmap.org/wiki/Overpass_turbo/Extended_Overpass_Turbo_Queries\n    {{postcode=${i}}}\n\n    (\n      node["addr:postcode"="{{postcode}}"]({{bbox}});\n      way["addr:postcode"="{{postcode}}"]({{bbox}});\n      relation["addr:postcode"="{{postcode}}"]({{bbox}});\n\n      node["postal_code"="{{postcode}}"]({{bbox}});\n      way["postal_code"="{{postcode}}"]({{bbox}});\n      relation["postal_code"="{{postcode}}"]({{bbox}});\n    );\n\n    out body;\n    >;\n    out skel qt;\n  `.replace(/^ {4}/gm,""),a="https://overpass-turbo.eu/?Q="+encodeURIComponent(r)+"&C="+encodeURIComponent([o,s,15].join(";"))+"&R";return t.$$set=t=>{"postcode"in t&&n(1,i=t.postcode),"lat"in t&&n(2,o=t.lat),"lon"in t&&n(3,s=t.lon)},[a,i,o,s]}class Sa extends lt{constructor(t){super(),at(this,t,Oa,Ca,r,{postcode:1,lat:2,lon:3})}}function za(t){let e,n,i,o,s,r;const a=t[2].default,l=p(a,t,t[1],null);return{c(){e=x("tr"),n=x("td"),i=$(t[0]),o=T(),s=x("td"),l&&l.c(),E(n,"class","svelte-1184nr4"),E(s,"class","svelte-1184nr4")},m(t,a){y(t,e,a),v(e,n),v(n,i),v(e,o),v(e,s),l&&l.m(s,null),r=!0},p(t,[e]){(!r||1&e)&&A(i,t[0]),l&&l.p&&(!r||2&e)&&_(l,a,t,t[1],r?f(a,t[1],e,null):g(t[1]),null)},i(t){r||(tt(l,t),r=!0)},o(t){et(l,t),r=!1},d(t){t&&b(e),l&&l.d(t)}}}function Ia(t,e,n){let{$$slots:i={},$$scope:o}=e,{title:s}=e;return t.$$set=t=>{"title"in t&&n(0,s=t.title),"$$scope"in t&&n(1,o=t.$$scope)},[s,o,i]}class Da extends lt{constructor(t){super(),at(this,t,Ia,za,r,{title:0})}}function Ba(t,e,n){const i=t.slice();return i[1]=e[n],i}function Na(t){let e,n,i,o,s,r,a=t[0][t[1]]+"",l=t[1]+"";return{c(){e=x("div"),n=x("span"),i=$(a),o=$(" ("),s=$(l),r=$(")\n  "),E(n,"class","name svelte-ndknvb"),E(e,"class","line")},m(t,a){y(t,e,a),v(e,n),v(n,i),v(e,o),v(e,s),v(e,r)},p(t,e){1&e&&a!==(a=t[0][t[1]]+"")&&A(i,a),1&e&&l!==(l=t[1]+"")&&A(s,l)},d(t){t&&b(e)}}}function Za(e){let n,i=Object.keys(e[0]),o=[];for(let t=0;t<i.length;t+=1)o[t]=Na(Ba(e,i,t));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();n=P()},m(t,e){for(let n=0;n<o.length;n+=1)o[n].m(t,e);y(t,n,e)},p(t,[e]){if(1&e){let s;for(i=Object.keys(t[0]),s=0;s<i.length;s+=1){const r=Ba(t,i,s);o[s]?o[s].p(r,e):(o[s]=Na(r),o[s].c(),o[s].m(n.parentNode,n))}for(;s<o.length;s+=1)o[s].d(1);o.length=i.length}},i:t,o:t,d(t){w(o,t),t&&b(n)}}}function ja(t,e,n){let{items:i}=e;return t.$$set=t=>{"items"in t&&n(0,i=t.items)},[i]}class Ra extends lt{constructor(t){super(),at(this,t,ja,Za,r,{items:0})}}function Ha(t,e,n){const i=t.slice();return i[7]=e[n],i}function Fa(t,e,n){const i=t.slice();return i[10]=e[n],i}function Wa(t,e,n){const i=t.slice();return i[13]=e[n],i}function qa(t,e,n){const i=t.slice();return i[13]=e[n],i}function Ua(t,e,n){const i=t.slice();return i[18]=e[n],i}function Va(t,e,n){const i=t.slice();return i[18]=e[n],i}function Ga(t){let e,n;return e=new ga({props:{api_request_params:t[2]}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,n){const i={};4&n&&(i.api_request_params=t[2]),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function Ka(e){let n;return{c(){n=$("No such place found.")},m(t,e){y(t,n,e)},p:t,i:t,o:t,d(t){t&&b(n)}}}function Ya(t){let e,n,i,o,s,r,a,l,c,h,u,d,p,m,f,_,g,w,L,P,M,k,C,O,S,z,I,D,B,N,Z,j,R,H,F,W,q,U,V,G,K,Y,X,nt,rt,at,lt,ct,ht,ut,dt,pt,mt,ft,_t,gt,vt,yt,bt,wt,xt,$t,Lt=(t[0].localname||`${ye(t[0].osm_type)} ${t[0].osm_id}`)+"",Tt=Le(t[0]);a=new Ie({props:{feature:t[0],$$slots:{default:[Xa]},$$scope:{ctx:t}}}),h=new He({props:{aPlace:t[0]}}),_=new Da({props:{title:"Name",$$slots:{default:[tl]},$$scope:{ctx:t}}}),w=new Da({props:{title:"Type",$$slots:{default:[el]},$$scope:{ctx:t}}}),P=new Da({props:{title:"Last Updated",$$slots:{default:[nl]},$$scope:{ctx:t}}});let Pt=Tt&&il(t);C=new Da({props:{title:"Search Rank",$$slots:{default:[sl]},$$scope:{ctx:t}}}),S=new Da({props:{title:"Address Rank",$$slots:{default:[rl]},$$scope:{ctx:t}}});let Mt=t[0].calculated_importance&&al(t);D=new Da({props:{title:"Coverage",$$slots:{default:[hl]},$$scope:{ctx:t}}}),N=new Da({props:{title:"Centre Point (lat,lon)",$$slots:{default:[ul]},$$scope:{ctx:t}}}),j=new Da({props:{title:"OSM",$$slots:{default:[dl]},$$scope:{ctx:t}}}),H=new Da({props:{title:"Place Id",$$slots:{default:[pl]},$$scope:{ctx:t}}});let kt=t[0].calculated_wikipedia&&ml(t);q=new Da({props:{title:"Computed Postcode",$$slots:{default:[gl]},$$scope:{ctx:t}}}),V=new Da({props:{title:"Address Tags",$$slots:{default:[vl]},$$scope:{ctx:t}}}),K=new Da({props:{title:"Extra Tags",$$slots:{default:[yl]},$$scope:{ctx:t}}}),rt=new Qr({props:{current_result:t[0]}});let Ct=t[0].address&&bl(t),Et=t[0].linked_places&&xl(t),At=!t[4]&&Ll(t);const Ot=[Il,zl],St=[];function zt(t,e){return t[2].hierarchy?0:1}return wt=zt(t),xt=St[wt]=Ot[wt](t),{c(){e=x("div"),n=x("div"),i=x("h1"),o=$(Lt),s=T(),r=x("small"),it(a.$$.fragment),l=T(),c=x("div"),it(h.$$.fragment),u=T(),d=x("div"),p=x("div"),m=x("table"),f=x("tbody"),it(_.$$.fragment),g=T(),it(w.$$.fragment),L=T(),it(P.$$.fragment),M=T(),Pt&&Pt.c(),k=T(),it(C.$$.fragment),O=T(),it(S.$$.fragment),z=T(),Mt&&Mt.c(),I=T(),it(D.$$.fragment),B=T(),it(N.$$.fragment),Z=T(),it(j.$$.fragment),R=T(),it(H.$$.fragment),F=T(),kt&&kt.c(),W=T(),it(q.$$.fragment),U=T(),it(V.$$.fragment),G=T(),it(K.$$.fragment),Y=T(),X=x("div"),nt=x("div"),it(rt.$$.fragment),at=T(),lt=x("div"),ct=x("div"),ht=x("h2"),ht.textContent="Address",ut=T(),dt=x("table"),pt=x("thead"),pt.innerHTML="<tr><th>Local name</th> \n              <th>Type</th> \n              <th>OSM</th> \n              <th>Address rank</th> \n              <th>Admin level</th> \n              <th>Distance</th> \n              <th></th></tr>",mt=T(),ft=x("tbody"),Ct&&Ct.c(),_t=T(),Et&&Et.c(),gt=T(),At&&At.c(),vt=T(),yt=x("tr"),yt.innerHTML='<td colspan="7" class="svelte-193h58e"><h2 class="svelte-193h58e">Parent Of</h2></td>',bt=T(),xt.c(),E(r,"class","svelte-193h58e"),E(i,"class","svelte-193h58e"),E(n,"class","col-sm-10"),E(c,"class","col-sm-2 text-end"),E(e,"class","row"),E(m,"id","locationdetails"),E(m,"class","table table-striped table-responsive"),E(p,"class","col-md-6"),E(nt,"id","map-wrapper"),E(nt,"class","svelte-193h58e"),E(X,"class","col-md-6"),E(d,"class","row"),E(ht,"class","svelte-193h58e"),E(yt,"class","all-columns svelte-193h58e"),E(dt,"id","address"),E(dt,"class","table table-striped table-small"),E(ct,"class","col-md-12"),E(lt,"class","row")},m(t,b){y(t,e,b),v(e,n),v(n,i),v(i,o),v(i,s),v(i,r),ot(a,r,null),v(e,l),v(e,c),ot(h,c,null),y(t,u,b),y(t,d,b),v(d,p),v(p,m),v(m,f),ot(_,f,null),v(f,g),ot(w,f,null),v(f,L),ot(P,f,null),v(f,M),Pt&&Pt.m(f,null),v(f,k),ot(C,f,null),v(f,O),ot(S,f,null),v(f,z),Mt&&Mt.m(f,null),v(f,I),ot(D,f,null),v(f,B),ot(N,f,null),v(f,Z),ot(j,f,null),v(f,R),ot(H,f,null),v(f,F),kt&&kt.m(f,null),v(f,W),ot(q,f,null),v(f,U),ot(V,f,null),v(f,G),ot(K,f,null),v(d,Y),v(d,X),v(X,nt),ot(rt,nt,null),y(t,at,b),y(t,lt,b),v(lt,ct),v(ct,ht),v(ct,ut),v(ct,dt),v(dt,pt),v(dt,mt),v(dt,ft),Ct&&Ct.m(ft,null),v(ft,_t),Et&&Et.m(ft,null),v(ft,gt),At&&At.m(ft,null),v(ft,vt),v(ft,yt),v(ft,bt),St[wt].m(ft,null),$t=!0},p(t,e){(!$t||1&e)&&Lt!==(Lt=(t[0].localname||`${ye(t[0].osm_type)} ${t[0].osm_id}`)+"")&&A(o,Lt);const n={};1&e&&(n.feature=t[0]),8388608&e&&(n.$$scope={dirty:e,ctx:t}),a.$set(n);const i={};1&e&&(i.aPlace=t[0]),h.$set(i);const s={};8388609&e&&(s.$$scope={dirty:e,ctx:t}),_.$set(s);const r={};8388609&e&&(r.$$scope={dirty:e,ctx:t}),w.$set(r);const l={};8388609&e&&(l.$$scope={dirty:e,ctx:t}),P.$set(l),1&e&&(Tt=Le(t[0])),Tt?Pt?(Pt.p(t,e),1&e&&tt(Pt,1)):(Pt=il(t),Pt.c(),tt(Pt,1),Pt.m(f,k)):Pt&&(J(),et(Pt,1,1,(()=>{Pt=null})),Q());const c={};8388609&e&&(c.$$scope={dirty:e,ctx:t}),C.$set(c);const u={};8388609&e&&(u.$$scope={dirty:e,ctx:t}),S.$set(u),t[0].calculated_importance?Mt?(Mt.p(t,e),1&e&&tt(Mt,1)):(Mt=al(t),Mt.c(),tt(Mt,1),Mt.m(f,I)):Mt&&(J(),et(Mt,1,1,(()=>{Mt=null})),Q());const d={};8388609&e&&(d.$$scope={dirty:e,ctx:t}),D.$set(d);const p={};8388609&e&&(p.$$scope={dirty:e,ctx:t}),N.$set(p);const m={};8388609&e&&(m.$$scope={dirty:e,ctx:t}),j.$set(m);const g={};8388609&e&&(g.$$scope={dirty:e,ctx:t}),H.$set(g),t[0].calculated_wikipedia?kt?(kt.p(t,e),1&e&&tt(kt,1)):(kt=ml(t),kt.c(),tt(kt,1),kt.m(f,W)):kt&&(J(),et(kt,1,1,(()=>{kt=null})),Q());const v={};8388609&e&&(v.$$scope={dirty:e,ctx:t}),q.$set(v);const y={};8388609&e&&(y.$$scope={dirty:e,ctx:t}),V.$set(y);const b={};8388609&e&&(b.$$scope={dirty:e,ctx:t}),K.$set(b);const x={};1&e&&(x.current_result=t[0]),rt.$set(x),t[0].address?Ct?(Ct.p(t,e),1&e&&tt(Ct,1)):(Ct=bl(t),Ct.c(),tt(Ct,1),Ct.m(ft,_t)):Ct&&(J(),et(Ct,1,1,(()=>{Ct=null})),Q()),t[0].linked_places?Et?(Et.p(t,e),1&e&&tt(Et,1)):(Et=xl(t),Et.c(),tt(Et,1),Et.m(ft,gt)):Et&&(J(),et(Et,1,1,(()=>{Et=null})),Q()),t[4]?At&&(At.d(1),At=null):At?At.p(t,e):(At=Ll(t),At.c(),At.m(ft,vt));let $=wt;wt=zt(t),wt===$?St[wt].p(t,e):(J(),et(St[$],1,1,(()=>{St[$]=null})),Q(),xt=St[wt],xt?xt.p(t,e):(xt=St[wt]=Ot[wt](t),xt.c()),tt(xt,1),xt.m(ft,null))},i(t){$t||(tt(a.$$.fragment,t),tt(h.$$.fragment,t),tt(_.$$.fragment,t),tt(w.$$.fragment,t),tt(P.$$.fragment,t),tt(Pt),tt(C.$$.fragment,t),tt(S.$$.fragment,t),tt(Mt),tt(D.$$.fragment,t),tt(N.$$.fragment,t),tt(j.$$.fragment,t),tt(H.$$.fragment,t),tt(kt),tt(q.$$.fragment,t),tt(V.$$.fragment,t),tt(K.$$.fragment,t),tt(rt.$$.fragment,t),tt(Ct),tt(Et),tt(xt),$t=!0)},o(t){et(a.$$.fragment,t),et(h.$$.fragment,t),et(_.$$.fragment,t),et(w.$$.fragment,t),et(P.$$.fragment,t),et(Pt),et(C.$$.fragment,t),et(S.$$.fragment,t),et(Mt),et(D.$$.fragment,t),et(N.$$.fragment,t),et(j.$$.fragment,t),et(H.$$.fragment,t),et(kt),et(q.$$.fragment,t),et(V.$$.fragment,t),et(K.$$.fragment,t),et(rt.$$.fragment,t),et(Ct),et(Et),et(xt),$t=!1},d(t){t&&b(e),st(a),st(h),t&&b(u),t&&b(d),st(_),st(w),st(P),Pt&&Pt.d(),st(C),st(S),Mt&&Mt.d(),st(D),st(N),st(j),st(H),kt&&kt.d(),st(q),st(V),st(K),st(rt),t&&b(at),t&&b(lt),Ct&&Ct.d(),Et&&Et.d(),At&&At.d(),St[wt].d()}}}function Xa(t){let e;return{c(){e=$("link to this page")},m(t,n){y(t,e,n)},d(t){t&&b(e)}}}function Ja(t){let e,n;return e=new Ra({props:{items:t[0].names}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.items=t[0].names),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function Qa(e){let n;return{c(){n=x("span"),n.textContent="No Name",E(n,"class","noname fw-bold")},m(t,e){y(t,n,e)},p:t,i:t,o:t,d(t){t&&b(n)}}}function tl(t){let e,n,i,o,s;const r=[Qa,Ja],a=[];function l(t,n){return 1&n&&(e=null),null==e&&(e=!!Array.isArray(t[0].names)),e?0:1}return n=l(t,-1),i=a[n]=r[n](t),{c(){i.c(),o=P()},m(t,e){a[n].m(t,e),y(t,o,e),s=!0},p(t,e){let s=n;n=l(t,e),n===s?a[n].p(t,e):(J(),et(a[s],1,1,(()=>{a[s]=null})),Q(),i=a[n],i?i.p(t,e):(i=a[n]=r[n](t),i.c()),tt(i,1),i.m(o.parentNode,o))},i(t){s||(tt(i),s=!0)},o(t){et(i),s=!1},d(t){a[n].d(t),t&&b(o)}}}function el(t){let e,n,i,o=t[0].category+"",s=t[0].type+"";return{c(){e=$(o),n=$(":"),i=$(s)},m(t,o){y(t,e,o),y(t,n,o),y(t,i,o)},p(t,n){1&n&&o!==(o=t[0].category+"")&&A(e,o),1&n&&s!==(s=t[0].type+"")&&A(i,s)},d(t){t&&b(e),t&&b(n),t&&b(i)}}}function nl(t){let e,n=t[0].indexed_date+"";return{c(){e=$(n)},m(t,n){y(t,e,n)},p(t,i){1&i&&n!==(n=t[0].indexed_date+"")&&A(e,n)},d(t){t&&b(e)}}}function il(t){let e,n;return e=new Da({props:{title:"Admin Level",$$slots:{default:[ol]},$$scope:{ctx:t}}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,n){const i={};8388609&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function ol(t){let e,n=t[0].admin_level+"";return{c(){e=$(n)},m(t,n){y(t,e,n)},p(t,i){1&i&&n!==(n=t[0].admin_level+"")&&A(e,n)},d(t){t&&b(e)}}}function sl(t){let e,n=t[0].rank_search+"";return{c(){e=$(n)},m(t,n){y(t,e,n)},p(t,i){1&i&&n!==(n=t[0].rank_search+"")&&A(e,n)},d(t){t&&b(e)}}}function rl(t){let e,n,i,o,s=t[0].rank_address+"",r=Te(t[0].rank_address)+"";return{c(){e=$(s),n=$(" ("),i=$(r),o=$(")")},m(t,s){y(t,e,s),y(t,n,s),y(t,i,s),y(t,o,s)},p(t,n){1&n&&s!==(s=t[0].rank_address+"")&&A(e,s),1&n&&r!==(r=Te(t[0].rank_address)+"")&&A(i,r)},d(t){t&&b(e),t&&b(n),t&&b(i),t&&b(o)}}}function al(t){let e,n;return e=new Da({props:{title:"Importance",$$slots:{default:[cl]},$$scope:{ctx:t}}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,n){const i={};8388609&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function ll(t){let e;return{c(){e=$("(estimated)")},m(t,n){y(t,e,n)},d(t){t&&b(e)}}}function cl(t){let e,n,i,o=t[0].calculated_importance+"",s=!t[0].importance&&ll();return{c(){e=$(o),n=T(),s&&s.c(),i=P()},m(t,o){y(t,e,o),y(t,n,o),s&&s.m(t,o),y(t,i,o)},p(t,n){1&n&&o!==(o=t[0].calculated_importance+"")&&A(e,o),t[0].importance?s&&(s.d(1),s=null):s||(s=ll(),s.c(),s.m(i.parentNode,i))},d(t){t&&b(e),t&&b(n),s&&s.d(t),t&&b(i)}}}function hl(t){let e,n=$e(t[0])+"";return{c(){e=$(n)},m(t,n){y(t,e,n)},p(t,i){1&i&&n!==(n=$e(t[0])+"")&&A(e,n)},d(t){t&&b(e)}}}function ul(t){let e,n,i,o=t[0].centroid.coordinates[1]+"",s=t[0].centroid.coordinates[0]+"";return{c(){e=$(o),n=$(","),i=$(s)},m(t,o){y(t,e,o),y(t,n,o),y(t,i,o)},p(t,n){1&n&&o!==(o=t[0].centroid.coordinates[1]+"")&&A(e,o),1&n&&s!==(s=t[0].centroid.coordinates[0]+"")&&A(i,s)},d(t){t&&b(e),t&&b(n),t&&b(i)}}}function dl(t){let e,n,i=be(t[0])+"";return{c(){e=new I(!1),n=P(),e.a=n},m(t,o){e.m(i,t,o),y(t,n,o)},p(t,n){1&n&&i!==(i=be(t[0])+"")&&e.p(i)},d(t){t&&b(n),t&&e.d()}}}function pl(t){let e,n,i,o,s=t[0].place_id+"";return{c(){e=$(s),n=$("\n               ("),i=x("a"),i.textContent="on this server",o=$(")"),E(i,"href","https://nominatim.org/release-docs/develop/api/Output/#place_id-is-not-a-persistent-id")},m(t,s){y(t,e,s),y(t,n,s),y(t,i,s),y(t,o,s)},p(t,n){1&n&&s!==(s=t[0].place_id+"")&&A(e,s)},d(t){t&&b(e),t&&b(n),t&&b(i),t&&b(o)}}}function ml(t){let e,n;return e=new Da({props:{title:"Wikipedia Calculated",$$slots:{default:[fl]},$$scope:{ctx:t}}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,n){const i={};8388609&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function fl(t){let e,n,i=xe(t[0])+"";return{c(){e=new I(!1),n=P(),e.a=n},m(t,o){e.m(i,t,o),y(t,n,o)},p(t,n){1&n&&i!==(i=xe(t[0])+"")&&e.p(i)},d(t){t&&b(n),t&&e.d()}}}function _l(t){let e,n,i,o,s=t[0].calculated_postcode+"";return i=new Sa({props:{postcode:t[0].calculated_postcode,lat:t[0].centroid.coordinates[1],lon:t[0].centroid.coordinates[0]}}),{c(){e=$(s),n=T(),it(i.$$.fragment)},m(t,s){y(t,e,s),y(t,n,s),ot(i,t,s),o=!0},p(t,n){(!o||1&n)&&s!==(s=t[0].calculated_postcode+"")&&A(e,s);const r={};1&n&&(r.postcode=t[0].calculated_postcode),1&n&&(r.lat=t[0].centroid.coordinates[1]),1&n&&(r.lon=t[0].centroid.coordinates[0]),i.$set(r)},i(t){o||(tt(i.$$.fragment,t),o=!0)},o(t){et(i.$$.fragment,t),o=!1},d(t){t&&b(e),t&&b(n),st(i,t)}}}function gl(t){let e,n,i=t[0].calculated_postcode&&_l(t);return{c(){i&&i.c(),e=P()},m(t,o){i&&i.m(t,o),y(t,e,o),n=!0},p(t,n){t[0].calculated_postcode?i?(i.p(t,n),1&n&&tt(i,1)):(i=_l(t),i.c(),tt(i,1),i.m(e.parentNode,e)):i&&(J(),et(i,1,1,(()=>{i=null})),Q())},i(t){n||(tt(i),n=!0)},o(t){et(i),n=!1},d(t){i&&i.d(t),t&&b(e)}}}function vl(t){let e,n;return e=new Ra({props:{items:t[0].addresstags}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.items=t[0].addresstags),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function yl(t){let e,n;return e=new Ra({props:{items:t[0].extratags}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.items=t[0].extratags),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function bl(t){let e,n,i=t[0].address,o=[];for(let e=0;e<i.length;e+=1)o[e]=wl(Va(t,i,e));const s=t=>et(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=P()},m(t,i){for(let e=0;e<o.length;e+=1)o[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(1&n){let r;for(i=t[0].address,r=0;r<i.length;r+=1){const s=Va(t,i,r);o[r]?(o[r].p(s,n),tt(o[r],1)):(o[r]=wl(s),o[r].c(),tt(o[r],1),o[r].m(e.parentNode,e))}for(J(),r=i.length;r<o.length;r+=1)s(r);Q()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)tt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)et(o[t]);n=!1},d(t){w(o,t),t&&b(e)}}}function wl(t){let e,n;return e=new ka({props:{addressLine:t[18],bMarkUnusedLines:!0,bDistanceInMeters:!1}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.addressLine=t[18]),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function xl(t){let e,n,i,o,s=t[0].linked_places,r=[];for(let e=0;e<s.length;e+=1)r[e]=$l(Ua(t,s,e));const a=t=>et(r[t],1,1,(()=>{r[t]=null}));return{c(){e=x("tr"),e.innerHTML='<td colspan="7" class="svelte-193h58e"><h2 class="svelte-193h58e">Linked Places</h2></td>',n=T();for(let t=0;t<r.length;t+=1)r[t].c();i=P(),E(e,"class","all-columns svelte-193h58e")},m(t,s){y(t,e,s),y(t,n,s);for(let e=0;e<r.length;e+=1)r[e].m(t,s);y(t,i,s),o=!0},p(t,e){if(1&e){let n;for(s=t[0].linked_places,n=0;n<s.length;n+=1){const o=Ua(t,s,n);r[n]?(r[n].p(o,e),tt(r[n],1)):(r[n]=$l(o),r[n].c(),tt(r[n],1),r[n].m(i.parentNode,i))}for(J(),n=s.length;n<r.length;n+=1)a(n);Q()}},i(t){if(!o){for(let t=0;t<s.length;t+=1)tt(r[t]);o=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)et(r[t]);o=!1},d(t){t&&b(e),t&&b(n),w(r,t),t&&b(i)}}}function $l(t){let e,n;return e=new ka({props:{addressLine:t[18],bMarkUnusedLines:!0,bDistanceInMeters:!0}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.addressLine=t[18]),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function Ll(t){let e,n,i;function o(t,e){return t[2].keywords?Pl:Tl}let s=o(t),r=s(t);return{c(){e=x("tr"),e.innerHTML='<td colspan="7" class="svelte-193h58e"><h2 class="svelte-193h58e">Keywords</h2></td>',n=T(),r.c(),i=P(),E(e,"class","all-columns svelte-193h58e")},m(t,o){y(t,e,o),y(t,n,o),r.m(t,o),y(t,i,o)},p(t,e){s===(s=o(t))&&r?r.p(t,e):(r.d(1),r=s(t),r&&(r.c(),r.m(i.parentNode,i)))},d(t){t&&b(e),t&&b(n),r.d(t),t&&b(i)}}}function Tl(t){let e,n,i,o,s;return{c(){e=x("tr"),n=x("td"),i=x("a"),o=$("display keywords"),E(i,"class","btn btn-outline-secondary btn-sm"),E(i,"href",s=t[1]+"&keywords=1")},m(t,s){y(t,e,s),v(e,n),v(n,i),v(i,o)},p(t,e){2&e&&s!==(s=t[1]+"&keywords=1")&&E(i,"href",s)},d(t){t&&b(e)}}}function Pl(t){let e,n;function i(t,n){var i;return 1&n&&(e=null),null==e&&(i=t[0],e=!!(i.keywords&&i.keywords.name&&i.keywords.address&&(i.keywords.name.length>0||i.keywords.address.length>0))),e?kl:Ml}let o=i(t,-1),s=o(t);return{c(){s.c(),n=P()},m(t,e){s.m(t,e),y(t,n,e)},p(t,e){o===(o=i(t,e))&&s?s.p(t,e):(s.d(1),s=o(t),s&&(s.c(),s.m(n.parentNode,n)))},d(t){s.d(t),t&&b(n)}}}function Ml(e){let n;return{c(){n=x("tr"),n.innerHTML="<td>Place has no keywords</td>"},m(t,e){y(t,n,e)},p:t,d(t){t&&b(n)}}}function kl(t){let e,n,i,o,s=t[0].keywords.name,r=[];for(let e=0;e<s.length;e+=1)r[e]=El(qa(t,s,e));let a=t[0].keywords.address&&Al(t);return{c(){e=x("tr"),e.innerHTML='<td colspan="7" class="svelte-193h58e"><h3 class="svelte-193h58e">Name Keywords</h3></td>',n=T();for(let t=0;t<r.length;t+=1)r[t].c();i=T(),a&&a.c(),o=P(),E(e,"class","all-columns svelte-193h58e")},m(t,s){y(t,e,s),y(t,n,s);for(let e=0;e<r.length;e+=1)r[e].m(t,s);y(t,i,s),a&&a.m(t,s),y(t,o,s)},p(t,e){if(1&e){let n;for(s=t[0].keywords.name,n=0;n<s.length;n+=1){const o=qa(t,s,n);r[n]?r[n].p(o,e):(r[n]=El(o),r[n].c(),r[n].m(i.parentNode,i))}for(;n<r.length;n+=1)r[n].d(1);r.length=s.length}t[0].keywords.address?a?a.p(t,e):(a=Al(t),a.c(),a.m(o.parentNode,o)):a&&(a.d(1),a=null)},d(t){t&&b(e),t&&b(n),w(r,t),t&&b(i),a&&a.d(t),t&&b(o)}}}function Cl(t){let e,n,i,o=t[13].id+"";return{c(){e=x("td"),n=$("word id: "),i=$(o)},m(t,o){y(t,e,o),v(e,n),v(e,i)},p(t,e){1&e&&o!==(o=t[13].id+"")&&A(i,o)},d(t){t&&b(e)}}}function El(t){let e,n,i,o,s=Ce(t[13].token)+"",r=t[13].id&&Cl(t);return{c(){e=x("tr"),n=x("td"),i=$(s),o=T(),r&&r.c()},m(t,s){y(t,e,s),v(e,n),v(n,i),v(e,o),r&&r.m(e,null)},p(t,n){1&n&&s!==(s=Ce(t[13].token)+"")&&A(i,s),t[13].id?r?r.p(t,n):(r=Cl(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},d(t){t&&b(e),r&&r.d()}}}function Al(t){let e,n,i,o=t[0].keywords.address,s=[];for(let e=0;e<o.length;e+=1)s[e]=Sl(Wa(t,o,e));return{c(){e=x("tr"),e.innerHTML='<td colspan="7" class="svelte-193h58e"><h3 class="svelte-193h58e">Address Keywords</h3></td>',n=T();for(let t=0;t<s.length;t+=1)s[t].c();i=P(),E(e,"class","all-columns svelte-193h58e")},m(t,o){y(t,e,o),y(t,n,o);for(let e=0;e<s.length;e+=1)s[e].m(t,o);y(t,i,o)},p(t,e){if(1&e){let n;for(o=t[0].keywords.address,n=0;n<o.length;n+=1){const r=Wa(t,o,n);s[n]?s[n].p(r,e):(s[n]=Sl(r),s[n].c(),s[n].m(i.parentNode,i))}for(;n<s.length;n+=1)s[n].d(1);s.length=o.length}},d(t){t&&b(e),t&&b(n),w(s,t),t&&b(i)}}}function Ol(t){let e,n,i,o=t[13].id+"";return{c(){e=x("td"),n=$("word id: "),i=$(o)},m(t,o){y(t,e,o),v(e,n),v(e,i)},p(t,e){1&e&&o!==(o=t[13].id+"")&&A(i,o)},d(t){t&&b(e)}}}function Sl(t){let e,n,i,o,s,r=Ce(t[13].token)+"",a=t[13].id&&Ol(t);return{c(){e=x("tr"),n=x("td"),i=$(r),o=T(),a&&a.c(),s=T()},m(t,r){y(t,e,r),v(e,n),v(n,i),v(e,o),a&&a.m(e,null),v(e,s)},p(t,n){1&n&&r!==(r=Ce(t[13].token)+"")&&A(i,r),t[13].id?a?a.p(t,n):(a=Ol(t),a.c(),a.m(e,s)):a&&(a.d(1),a=null)},d(t){t&&b(e),a&&a.d()}}}function zl(e){let n,i,o,s,r;return{c(){n=x("tr"),i=x("td"),o=x("a"),s=$("display child places"),E(o,"class","btn btn-outline-secondary btn-sm"),E(o,"href",r=e[1]+"&hierarchy=1")},m(t,e){y(t,n,e),v(n,i),v(i,o),v(o,s)},p(t,e){2&e&&r!==(r=t[1]+"&hierarchy=1")&&E(o,"href",r)},i:t,o:t,d(t){t&&b(n)}}}function Il(t){let e,n,i,o,s;const r=[Bl,Dl],a=[];function l(t,n){return 1&n&&(e=null),null==e&&(e=!(!t[0].hierarchy||"object"!=typeof t[0].hierarchy||!Object.keys(t[0].hierarchy).length)),e?0:1}return n=l(t,-1),i=a[n]=r[n](t),{c(){i.c(),o=P()},m(t,e){a[n].m(t,e),y(t,o,e),s=!0},p(t,e){let s=n;n=l(t,e),n===s?a[n].p(t,e):(J(),et(a[s],1,1,(()=>{a[s]=null})),Q(),i=a[n],i?i.p(t,e):(i=a[n]=r[n](t),i.c()),tt(i,1),i.m(o.parentNode,o))},i(t){s||(tt(i),s=!0)},o(t){et(i),s=!1},d(t){a[n].d(t),t&&b(o)}}}function Dl(e){let n;return{c(){n=x("tr"),n.innerHTML="<td>Place is not parent of other places</td>"},m(t,e){y(t,n,e)},p:t,i:t,o:t,d(t){t&&b(n)}}}function Bl(t){let e,n,i,o=Object.keys(t[0].hierarchy)>500,s=Object.keys(t[0].hierarchy),r=[];for(let e=0;e<s.length;e+=1)r[e]=Zl(Ha(t,s,e));const a=t=>et(r[t],1,1,(()=>{r[t]=null}));let l=o&&jl();return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=T(),l&&l.c(),n=P()},m(t,o){for(let e=0;e<r.length;e+=1)r[e].m(t,o);y(t,e,o),l&&l.m(t,o),y(t,n,o),i=!0},p(t,i){if(1&i){let n;for(s=Object.keys(t[0].hierarchy),n=0;n<s.length;n+=1){const o=Ha(t,s,n);r[n]?(r[n].p(o,i),tt(r[n],1)):(r[n]=Zl(o),r[n].c(),tt(r[n],1),r[n].m(e.parentNode,e))}for(J(),n=s.length;n<r.length;n+=1)a(n);Q()}1&i&&(o=Object.keys(t[0].hierarchy)>500),o?l||(l=jl(),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){if(!i){for(let t=0;t<s.length;t+=1)tt(r[t]);i=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)et(r[t]);i=!1},d(t){w(r,t),t&&b(e),l&&l.d(t),t&&b(n)}}}function Nl(t){let e,n;return e=new ka({props:{addressLine:t[10],bDistanceInMeters:!0}}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.addressLine=t[10]),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function Zl(t){let e,n,i,o,s,r,a,l=t[7]+"",c=t[0].hierarchy[t[7]],h=[];for(let e=0;e<c.length;e+=1)h[e]=Nl(Fa(t,c,e));const u=t=>et(h[t],1,1,(()=>{h[t]=null}));return{c(){e=x("tr"),n=x("td"),i=x("h3"),o=$(l),s=T();for(let t=0;t<h.length;t+=1)h[t].c();r=P(),E(i,"class","svelte-193h58e"),E(n,"colspan","7"),E(n,"class","svelte-193h58e"),E(e,"class","all-columns svelte-193h58e")},m(t,l){y(t,e,l),v(e,n),v(n,i),v(i,o),y(t,s,l);for(let e=0;e<h.length;e+=1)h[e].m(t,l);y(t,r,l),a=!0},p(t,e){if((!a||1&e)&&l!==(l=t[7]+"")&&A(o,l),1&e){let n;for(c=t[0].hierarchy[t[7]],n=0;n<c.length;n+=1){const i=Fa(t,c,n);h[n]?(h[n].p(i,e),tt(h[n],1)):(h[n]=Nl(i),h[n].c(),tt(h[n],1),h[n].m(r.parentNode,r))}for(J(),n=c.length;n<h.length;n+=1)u(n);Q()}},i(t){if(!a){for(let t=0;t<c.length;t+=1)tt(h[t]);a=!0}},o(t){h=h.filter(Boolean);for(let t=0;t<h.length;t+=1)et(h[t]);a=!1},d(t){t&&b(e),t&&b(s),w(h,t),t&&b(r)}}}function jl(t){let e;return{c(){e=x("p"),e.textContent="There are more child objects which are not shown."},m(t,n){y(t,e,n)},d(t){t&&b(e)}}}function Rl(t){let e,n,i,o,s,r;e=new se({props:{$$slots:{default:[Ga]},$$scope:{ctx:t}}});const a=[Ya,Ka],l=[];function c(t,e){return t[0]?0:""!==window.location.search&&t[3]?1:-1}return~(o=c(t))&&(s=l[o]=a[o](t)),{c(){it(e.$$.fragment),n=T(),i=x("div"),s&&s.c(),E(i,"class","container")},m(t,s){ot(e,t,s),y(t,n,s),y(t,i,s),~o&&l[o].m(i,null),r=!0},p(t,[n]){const r={};8388612&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r);let h=o;o=c(t),o===h?~o&&l[o].p(t,n):(s&&(J(),et(l[h],1,1,(()=>{l[h]=null})),Q()),~o?(s=l[o],s?s.p(t,n):(s=l[o]=a[o](t),s.c()),tt(s,1),s.m(i,null)):s=null)},i(t){r||(tt(e.$$.fragment,t),tt(s),r=!0)},o(t){et(e.$$.fragment,t),et(s),r=!1},d(t){st(e,t),t&&b(n),t&&b(i),~o&&l[o].d()}}}function Hl(t,e,n){let i,o,s,r,a;d(t,_t,(t=>n(5,o=t)));let l=!1;return t.$$.update=()=>{if(32&t.$$.dirty){let t=o;"details"===t.tab&&(e=t.params,n(2,a={place_id:e.get("place_id"),osmtype:e.get("osmtype"),osmid:e.get("osmid"),class:e.get("class"),keywords:e.get("keywords"),addressdetails:1,hierarchy:"1"===e.get("hierarchy")?1:0,group_hierarchy:1,polygon_geojson:1,format:"json"}),n(3,l=!1),a.place_id||a.osmtype&&a.osmid?(a.place_id?Mt("Details for "+a.place_id):Mt("Details for "+a.osmtype+a.osmid),$t("details",a,(function(t){window.scrollTo(0,0),n(3,l=!0),n(0,s=t&&!t.error?t:void 0)}))):n(0,s=void 0),n(1,r=window.location.search))}var e},n(4,i=Nominatim_Config.Reverse_Only),[s,r,a,l,i,o]}class Fl extends lt{constructor(t){super(),at(this,t,Hl,Rl,r,{})}}function Wl(t,e,n){const i=t.slice();return i[2]=e[n],i}function ql(t){let e,n,i,o,s,r,a,l,c,h,u,d,p,m,f,_,g,w,L,P,M,k,C,O,S,z,I,D,B,N=t[2].osm_type+"",Z=be(t[2])+"",j=t[2].class+"",R=t[2].type+"",H=t[2].name+"",F=(t[2].country_code||"")+"",W=t[2].errormessage+"",q=t[2].updated+"";return{c(){e=x("tr"),n=x("td"),i=$(N),o=T(),s=x("td"),r=T(),a=x("td"),l=$(j),c=T(),h=x("td"),u=$(R),d=T(),p=x("td"),m=$(H),f=T(),_=x("td"),g=$(F),w=T(),L=x("td"),P=$(W),M=T(),k=x("td"),C=$(q),O=T(),S=x("td"),z=x("a"),I=$("josm"),B=T(),E(z,"href",D="http://localhost:8111/import?url=https://www.openstreetmap.org/api/0.6/"+ye(t[2].osm_type)+"/"+t[2].osm_id+"/full"),E(z,"target","josm")},m(t,b){y(t,e,b),v(e,n),v(n,i),v(e,o),v(e,s),s.innerHTML=Z,v(e,r),v(e,a),v(a,l),v(e,c),v(e,h),v(h,u),v(e,d),v(e,p),v(p,m),v(e,f),v(e,_),v(_,g),v(e,w),v(e,L),v(L,P),v(e,M),v(e,k),v(k,C),v(e,O),v(e,S),v(S,z),v(z,I),v(e,B)},p(t,e){1&e&&N!==(N=t[2].osm_type+"")&&A(i,N),1&e&&Z!==(Z=be(t[2])+"")&&(s.innerHTML=Z),1&e&&j!==(j=t[2].class+"")&&A(l,j),1&e&&R!==(R=t[2].type+"")&&A(u,R),1&e&&H!==(H=t[2].name+"")&&A(m,H),1&e&&F!==(F=(t[2].country_code||"")+"")&&A(g,F),1&e&&W!==(W=t[2].errormessage+"")&&A(P,W),1&e&&q!==(q=t[2].updated+"")&&A(C,q),1&e&&D!==(D="http://localhost:8111/import?url=https://www.openstreetmap.org/api/0.6/"+ye(t[2].osm_type)+"/"+t[2].osm_id+"/full")&&E(z,"href",D)},d(t){t&&b(e)}}}function Ul(t){let e,n,i,o,s,r,a,l,c,h,u,d,p,m,f,_,g,L=t[0].length+"";e=new se({});let P=t[0],M=[];for(let e=0;e<P.length;e+=1)M[e]=ql(Wl(t,P,e));return{c(){it(e.$$.fragment),n=T(),i=x("div"),o=x("div"),s=x("div"),r=x("h1"),r.textContent="Broken polygons",a=T(),l=x("p"),c=$("Total number of broken polygons: "),h=$(L),u=$("."),d=T(),p=x("table"),m=x("thead"),m.innerHTML="<th>OSM type</th> \n          <th>OSM id</th> \n          <th>Class</th> \n          <th>Type</th> \n          <th>Name</th> \n          <th>Country Code</th> \n          <th>Error message</th> \n          <th>Updated</th> \n          <th></th>",f=T(),_=x("tbody");for(let t=0;t<M.length;t+=1)M[t].c();E(p,"class","table table-striped table-hover"),E(s,"class","col-sm-12"),E(o,"class","row"),E(i,"class","container")},m(t,b){ot(e,t,b),y(t,n,b),y(t,i,b),v(i,o),v(o,s),v(s,r),v(s,a),v(s,l),v(l,c),v(l,h),v(l,u),v(s,d),v(s,p),v(p,m),v(p,f),v(p,_);for(let t=0;t<M.length;t+=1)M[t].m(_,null);g=!0},p(t,[e]){if((!g||1&e)&&L!==(L=t[0].length+"")&&A(h,L),1&e){let n;for(P=t[0],n=0;n<P.length;n+=1){const i=Wl(t,P,n);M[n]?M[n].p(i,e):(M[n]=ql(i),M[n].c(),M[n].m(_,null))}for(;n<M.length;n+=1)M[n].d(1);M.length=P.length}},i(t){g||(tt(e.$$.fragment,t),g=!0)},o(t){et(e.$$.fragment,t),g=!1},d(t){st(e,t),t&&b(n),t&&b(i),w(M,t)}}}function Vl(t,e,n){let i=[];return B((function(){$t("polygons",{format:"json"},(function(t){n(0,i=t)})),Mt("Broken polygons")})),[i]}class Gl extends lt{constructor(t){super(),at(this,t,Vl,Ul,r,{})}}function Kl(t,e,n){const i=t.slice();return i[2]=e[n],i}function Yl(t){let e,n=t[2].place_id+"";return{c(){e=$(n)},m(t,n){y(t,e,n)},p(t,i){1&i&&n!==(n=t[2].place_id+"")&&A(e,n)},d(t){t&&b(e)}}}function Xl(t){let e,n,i,o,s,r,a,l,c,h,u,d,p,m,f,_,g,w,L,P,M,k,C=t[2].country_code+"",E=t[2].name+"",O=be(t[2])+"",S=t[2].osm_type+"",z=t[2].class+"",I=t[2].type+"";return i=new Ie({props:{feature:t[2],$$slots:{default:[Yl]},$$scope:{ctx:t}}}),{c(){e=x("tr"),n=x("td"),it(i.$$.fragment),o=T(),s=x("td"),r=$(C),a=T(),l=x("td"),c=$(E),h=T(),u=x("td"),d=T(),p=x("td"),m=$(S),f=T(),_=x("td"),g=$(z),w=T(),L=x("td"),P=$(I),M=T()},m(t,b){y(t,e,b),v(e,n),ot(i,n,null),v(e,o),v(e,s),v(s,r),v(e,a),v(e,l),v(l,c),v(e,h),v(e,u),u.innerHTML=O,v(e,d),v(e,p),v(p,m),v(e,f),v(e,_),v(_,g),v(e,w),v(e,L),v(L,P),v(e,M),k=!0},p(t,e){const n={};1&e&&(n.feature=t[2]),33&e&&(n.$$scope={dirty:e,ctx:t}),i.$set(n),(!k||1&e)&&C!==(C=t[2].country_code+"")&&A(r,C),(!k||1&e)&&E!==(E=t[2].name+"")&&A(c,E),(!k||1&e)&&O!==(O=be(t[2])+"")&&(u.innerHTML=O),(!k||1&e)&&S!==(S=t[2].osm_type+"")&&A(m,S),(!k||1&e)&&z!==(z=t[2].class+"")&&A(g,z),(!k||1&e)&&I!==(I=t[2].type+"")&&A(P,I)},i(t){k||(tt(i.$$.fragment,t),k=!0)},o(t){et(i.$$.fragment,t),k=!1},d(t){t&&b(e),st(i)}}}function Jl(t){let e,n,i,o,s,r,a,l,c,h,u,d,p,m,f,_,g=t[0].length+"";e=new se({});let L=t[0],P=[];for(let e=0;e<L.length;e+=1)P[e]=Xl(Kl(t,L,e));const M=t=>et(P[t],1,1,(()=>{P[t]=null}));return{c(){it(e.$$.fragment),n=T(),i=x("div"),o=x("div"),s=x("div"),r=x("h1"),r.textContent="Deletable",a=T(),l=x("p"),c=$(g),h=$(" objects have been deleted in OSM but are still in the Nominatim database."),u=T(),d=x("table"),p=x("thead"),p.innerHTML="<th>Place id</th> \n          <th>Country Code</th> \n          <th>Name</th> \n          <th>OSM id</th> \n          <th>OSM type</th> \n          <th>Class</th> \n          <th>Type</th>",m=T(),f=x("tbody");for(let t=0;t<P.length;t+=1)P[t].c();E(d,"class","table table-striped table-hover"),E(s,"class","col-sm-12"),E(o,"class","row"),E(i,"class","container")},m(t,g){ot(e,t,g),y(t,n,g),y(t,i,g),v(i,o),v(o,s),v(s,r),v(s,a),v(s,l),v(l,c),v(l,h),v(s,u),v(s,d),v(d,p),v(d,m),v(d,f);for(let t=0;t<P.length;t+=1)P[t].m(f,null);_=!0},p(t,[e]){if((!_||1&e)&&g!==(g=t[0].length+"")&&A(c,g),1&e){let n;for(L=t[0],n=0;n<L.length;n+=1){const i=Kl(t,L,n);P[n]?(P[n].p(i,e),tt(P[n],1)):(P[n]=Xl(i),P[n].c(),tt(P[n],1),P[n].m(f,null))}for(J(),n=L.length;n<P.length;n+=1)M(n);Q()}},i(t){if(!_){tt(e.$$.fragment,t);for(let t=0;t<L.length;t+=1)tt(P[t]);_=!0}},o(t){et(e.$$.fragment,t),P=P.filter(Boolean);for(let t=0;t<P.length;t+=1)et(P[t]);_=!1},d(t){st(e,t),t&&b(n),t&&b(i),w(P,t)}}}function Ql(t,e,n){let i=[];return B((function(){$t("deletable",{format:"json"},(function(t){n(0,i=t)})),Mt("Deletable objects")})),[i]}class tc extends lt{constructor(t){super(),at(this,t,Ql,Jl,r,{})}}function ec(t){let e,n,i,o,s,r,a,l,c,h,u,d,p,m,f,_,g,w,L,P,M,k,C=t[1].Nominatim_API_Endpoint+"",O=t[0].software_version+"",S=t[0].database_version+"",z=t[0].data_updated+"";return e=new se({}),{c(){it(e.$$.fragment),n=T(),i=x("div"),o=x("div"),s=x("div"),r=x("h1"),r.textContent="Server status",a=T(),l=x("dl"),c=x("dt"),c.textContent="API Endpoint",h=x("dd"),u=x("a"),d=$(C),p=x("dt"),p.textContent="Software version",m=x("dd"),f=$(O),_=x("dt"),_.textContent="Database version",g=x("dd"),w=$(S),L=x("dt"),L.textContent="Data last updated",P=x("dd"),M=$(z),E(u,"href",t[1].Nominatim_API_Endpoint),E(s,"class","col-sm-12"),E(o,"class","row"),E(i,"class","container")},m(t,b){ot(e,t,b),y(t,n,b),y(t,i,b),v(i,o),v(o,s),v(s,r),v(s,a),v(s,l),v(l,c),v(l,h),v(h,u),v(u,d),v(l,p),v(l,m),v(m,f),v(l,_),v(l,g),v(g,w),v(l,L),v(l,P),v(P,M),k=!0},p(t,[e]){(!k||1&e)&&O!==(O=t[0].software_version+"")&&A(f,O),(!k||1&e)&&S!==(S=t[0].database_version+"")&&A(w,S),(!k||1&e)&&z!==(z=t[0].data_updated+"")&&A(M,z)},i(t){k||(tt(e.$$.fragment,t),k=!0)},o(t){et(e.$$.fragment,t),k=!1},d(t){st(e,t),t&&b(n),t&&b(i)}}}function nc(t,e,n){let i={},o=Nominatim_Config;return B((function(){$t("status",{format:"json"},(function(t){n(0,i=t)})),Mt("Server status")})),[i,o]}class ic extends lt{constructor(t){super(),at(this,t,nc,ec,r,{})}}function oc(e){let n,i,o,s;return n=new se({}),{c(){it(n.$$.fragment),i=T(),o=x("div"),E(o,"id","about-help"),E(o,"class","container svelte-1l5yrvt")},m(t,e){ot(n,t,e),y(t,i,e),y(t,o,e),s=!0},p:t,i(t){s||(tt(n.$$.fragment,t),s=!0)},o(t){et(n.$$.fragment,t),s=!1},d(t){st(n,t),t&&b(i),t&&b(o)}}}function sc(t){return B((()=>{Tt("theme/about-help.html",document.getElementById("about-help"))})),[]}class rc extends lt{constructor(t){super(),at(this,t,sc,oc,r,{})}}function ac(t){let e,n;return e=new rc({}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function lc(t){let e,n;return e=new ic({}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function cc(t){let e,n;return e=new Gl({}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function hc(t){let e,n;return e=new tc({}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function uc(t){let e,n;return e=new Fl({}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function dc(t){let e,n;return e=new ma({}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function pc(t){let e,n;return e=new ia({}),{c(){it(e.$$.fragment)},m(t,i){ot(e,t,i),n=!0},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function mc(t){let e,n,i,o,s,r,a;const l=[pc,dc,uc,hc,cc,lc,ac],c=[];function h(t,e){return"search"===t[0]?0:"reverse"===t[0]?1:"details"===t[0]?2:"deletable"===t[0]?3:"polygons"===t[0]?4:"status"===t[0]?5:"about"===t[0]?6:-1}return~(e=h(t))&&(n=c[e]=l[e](t)),o=new wt({}),{c(){n&&n.c(),i=T(),it(o.$$.fragment)},m(n,l){~e&&c[e].m(n,l),y(n,i,l),ot(o,n,l),s=!0,r||(a=M(window,"popstate",t[2]),r=!0)},p(t,[o]){let s=e;e=h(t),e!==s&&(n&&(J(),et(c[s],1,1,(()=>{c[s]=null})),Q()),~e?(n=c[e],n||(n=c[e]=l[e](t),n.c()),tt(n,1),n.m(i.parentNode,i)):n=null)},i(t){s||(tt(n),tt(o.$$.fragment,t),s=!0)},o(t){et(n),et(o.$$.fragment,t),s=!1},d(t){~e&&c[e].d(t),t&&b(i),st(o,t),r=!1,a()}}}function fc(t,e,n){let i,o;d(t,_t,(t=>n(1,o=t))),yt();return t.$$.update=()=>{2&t.$$.dirty&&n(0,i=o.tab)},[i,o,()=>yt()]}new class extends lt{constructor(t){super(),at(this,t,fc,mc,r,{})}}({target:document.body})}();
 //# sourceMappingURL=bundle.js.map