@soton.ac.uk/cape3 3.6.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cape3.umd.js CHANGED
@@ -53,7 +53,7 @@ ge.version="2.30.1",BC(kt),ge.fn=ue,ge.min=ND,ge.max=kD,ge.now=CD,ge.utc=Pr,ge.u
53
53
  `).join("")}const VO=l.defineComponent({__name:"CapeDownloadCsvButton",setup(e){function t(){const n=AO(),i=BO(n);MO("download.csv",i,"text/csv;charset=utf-8")}return(n,i)=>(l.openBlock(),l.createElementBlock("a",{onClick:t,class:"cursor-pointer cape-button"},"Download CSV"))}}),FO={},YO={href:"/site-data.json",class:"cape-button"};function $O(e,t){return l.openBlock(),l.createElementBlock("a",YO,"Download JSON")}const UO=ji(FO,[["render",$O]]),zO={class:"cape-fields-table"},HO={key:0},WO=l.defineComponent({__name:"CapeFieldsTable",setup(e){const t=es(),n=l.computed(()=>t.all);return(i,o)=>(l.openBlock(),l.createElementBlock("table",zO,[o[0]||(o[0]=l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[l.createElementVNode("th",{scope:"col"},"Field id"),l.createElementVNode("th",{scope:"col"},"Field name"),l.createElementVNode("th",{scope:"col"},"Field type"),l.createElementVNode("th",{scope:"col"},"Description")])],-1)),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,s=>(l.openBlock(),l.createElementBlock("tr",{key:s.id},[l.createElementVNode("td",null,l.toDisplayString(s.id),1),l.createElementVNode("td",null,l.toDisplayString(s.label),1),l.createElementVNode("td",null,[l.createTextVNode(l.toDisplayString(s.type)+" ",1),s.isMultiple?(l.openBlock(),l.createElementBlock("span",HO," list")):l.createCommentVNode("",!0)]),l.createElementVNode("td",null,l.toDisplayString(s.description),1)]))),128))])]))}});function ZO(e){const n=nn().idField.id;return"/record/"+encodeURIComponent(`${e[n].value}`)}const GO=l.defineComponent({__name:"CapeRecordLink",props:{record:{}},setup(e){const t=e,n=l.computed(()=>ZO(t.record));return(i,o)=>{const s=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(s,{to:n.value},{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},8,["to"])}}});function jO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $l={exports:{}};/* @preserve
54
54
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
55
55
  * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
56
- */var qO=$l.exports,S0;function KO(){return S0||(S0=1,function(e,t){(function(n,i){i(t)})(qO,function(n){var i="1.9.4";function o(r){var a,u,h,m;for(u=1,h=arguments.length;u<h;u++){m=arguments[u];for(a in m)r[a]=m[a]}return r}var s=Object.create||function(){function r(){}return function(a){return r.prototype=a,new r}}();function c(r,a){var u=Array.prototype.slice;if(r.bind)return r.bind.apply(r,u.call(arguments,1));var h=u.call(arguments,2);return function(){return r.apply(a,h.length?h.concat(u.call(arguments)):arguments)}}var f=0;function d(r){return"_leaflet_id"in r||(r._leaflet_id=++f),r._leaflet_id}function p(r,a,u){var h,m,S,D;return D=function(){h=!1,m&&(S.apply(u,m),m=!1)},S=function(){h?m=arguments:(r.apply(u,arguments),setTimeout(D,a),h=!0)},S}function _(r,a,u){var h=a[1],m=a[0],S=h-m;return r===h&&u?r:((r-m)%S+S)%S+m}function v(){return!1}function y(r,a){if(a===!1)return r;var u=Math.pow(10,a===void 0?6:a);return Math.round(r*u)/u}function g(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function E(r){return g(r).split(/\s+/)}function w(r,a){Object.prototype.hasOwnProperty.call(r,"options")||(r.options=r.options?s(r.options):{});for(var u in a)r.options[u]=a[u];return r.options}function T(r,a,u){var h=[];for(var m in r)h.push(encodeURIComponent(u?m.toUpperCase():m)+"="+encodeURIComponent(r[m]));return(!a||a.indexOf("?")===-1?"?":"&")+h.join("&")}var b=/\{ *([\w_ -]+) *\}/g;function C(r,a){return r.replace(b,function(u,h){var m=a[h];if(m===void 0)throw new Error("No value provided for variable "+u);return typeof m=="function"&&(m=m(a)),m})}var M=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"};function z(r,a){for(var u=0;u<r.length;u++)if(r[u]===a)return u;return-1}var G="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function oe(r){return window["webkit"+r]||window["moz"+r]||window["ms"+r]}var R=0;function F(r){var a=+new Date,u=Math.max(0,16-(a-R));return R=a+u,window.setTimeout(r,u)}var Q=window.requestAnimationFrame||oe("RequestAnimationFrame")||F,A=window.cancelAnimationFrame||oe("CancelAnimationFrame")||oe("CancelRequestAnimationFrame")||function(r){window.clearTimeout(r)};function B(r,a,u){if(u&&Q===F)r.call(a);else return Q.call(window,c(r,a))}function ae(r){r&&A.call(window,r)}var he={__proto__:null,extend:o,create:s,bind:c,get lastId(){return f},stamp:d,throttle:p,wrapNum:_,falseFn:v,formatNum:y,trim:g,splitWords:E,setOptions:w,getParamString:T,template:C,isArray:M,indexOf:z,emptyImageUrl:G,requestFn:Q,cancelFn:A,requestAnimFrame:B,cancelAnimFrame:ae};function P(){}P.extend=function(r){var a=function(){w(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},u=a.__super__=this.prototype,h=s(u);h.constructor=a,a.prototype=h;for(var m in this)Object.prototype.hasOwnProperty.call(this,m)&&m!=="prototype"&&m!=="__super__"&&(a[m]=this[m]);return r.statics&&o(a,r.statics),r.includes&&(V(r.includes),o.apply(null,[h].concat(r.includes))),o(h,r),delete h.statics,delete h.includes,h.options&&(h.options=u.options?s(u.options):{},o(h.options,r.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){u.callInitHooks&&u.callInitHooks.call(this),this._initHooksCalled=!0;for(var S=0,D=h._initHooks.length;S<D;S++)h._initHooks[S].call(this)}},a},P.include=function(r){var a=this.prototype.options;return o(this.prototype,r),r.options&&(this.prototype.options=a,this.mergeOptions(r.options)),this},P.mergeOptions=function(r){return o(this.prototype.options,r),this},P.addInitHook=function(r){var a=Array.prototype.slice.call(arguments,1),u=typeof r=="function"?r:function(){this[r].apply(this,a)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(u),this};function V(r){if(!(typeof L>"u"||!L||!L.Mixin)){r=M(r)?r:[r];for(var a=0;a<r.length;a++)r[a]===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)}}var K={on:function(r,a,u){if(typeof r=="object")for(var h in r)this._on(h,r[h],a);else{r=E(r);for(var m=0,S=r.length;m<S;m++)this._on(r[m],a,u)}return this},off:function(r,a,u){if(!arguments.length)delete this._events;else if(typeof r=="object")for(var h in r)this._off(h,r[h],a);else{r=E(r);for(var m=arguments.length===1,S=0,D=r.length;S<D;S++)m?this._off(r[S]):this._off(r[S],a,u)}return this},_on:function(r,a,u,h){if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}if(this._listens(r,a,u)===!1){u===this&&(u=void 0);var m={fn:a,ctx:u};h&&(m.once=!0),this._events=this._events||{},this._events[r]=this._events[r]||[],this._events[r].push(m)}},_off:function(r,a,u){var h,m,S;if(this._events&&(h=this._events[r],!!h)){if(arguments.length===1){if(this._firingCount)for(m=0,S=h.length;m<S;m++)h[m].fn=v;delete this._events[r];return}if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}var D=this._listens(r,a,u);if(D!==!1){var $=h[D];this._firingCount&&($.fn=v,this._events[r]=h=h.slice()),h.splice(D,1)}}},fire:function(r,a,u){if(!this.listens(r,u))return this;var h=o({},a,{type:r,target:this,sourceTarget:a&&a.sourceTarget||this});if(this._events){var m=this._events[r];if(m){this._firingCount=this._firingCount+1||1;for(var S=0,D=m.length;S<D;S++){var $=m[S],Z=$.fn;$.once&&this.off(r,Z,$.ctx),Z.call($.ctx||this,h)}this._firingCount--}}return u&&this._propagateEvent(h),this},listens:function(r,a,u,h){typeof r!="string"&&console.warn('"string" type argument expected');var m=a;typeof a!="function"&&(h=!!a,m=void 0,u=void 0);var S=this._events&&this._events[r];if(S&&S.length&&this._listens(r,m,u)!==!1)return!0;if(h){for(var D in this._eventParents)if(this._eventParents[D].listens(r,a,u,h))return!0}return!1},_listens:function(r,a,u){if(!this._events)return!1;var h=this._events[r]||[];if(!a)return!!h.length;u===this&&(u=void 0);for(var m=0,S=h.length;m<S;m++)if(h[m].fn===a&&h[m].ctx===u)return m;return!1},once:function(r,a,u){if(typeof r=="object")for(var h in r)this._on(h,r[h],a,!0);else{r=E(r);for(var m=0,S=r.length;m<S;m++)this._on(r[m],a,u,!0)}return this},addEventParent:function(r){return this._eventParents=this._eventParents||{},this._eventParents[d(r)]=r,this},removeEventParent:function(r){return this._eventParents&&delete this._eventParents[d(r)],this},_propagateEvent:function(r){for(var a in this._eventParents)this._eventParents[a].fire(r.type,o({layer:r.target,propagatedFrom:r.target},r),!0)}};K.addEventListener=K.on,K.removeEventListener=K.clearAllEventListeners=K.off,K.addOneTimeEventListener=K.once,K.fireEvent=K.fire,K.hasEventListeners=K.listens;var W=P.extend(K);function x(r,a,u){this.x=u?Math.round(r):r,this.y=u?Math.round(a):a}var ve=Math.trunc||function(r){return r>0?Math.floor(r):Math.ceil(r)};x.prototype={clone:function(){return new x(this.x,this.y)},add:function(r){return this.clone()._add(re(r))},_add:function(r){return this.x+=r.x,this.y+=r.y,this},subtract:function(r){return this.clone()._subtract(re(r))},_subtract:function(r){return this.x-=r.x,this.y-=r.y,this},divideBy:function(r){return this.clone()._divideBy(r)},_divideBy:function(r){return this.x/=r,this.y/=r,this},multiplyBy:function(r){return this.clone()._multiplyBy(r)},_multiplyBy:function(r){return this.x*=r,this.y*=r,this},scaleBy:function(r){return new x(this.x*r.x,this.y*r.y)},unscaleBy:function(r){return new x(this.x/r.x,this.y/r.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=ve(this.x),this.y=ve(this.y),this},distanceTo:function(r){r=re(r);var a=r.x-this.x,u=r.y-this.y;return Math.sqrt(a*a+u*u)},equals:function(r){return r=re(r),r.x===this.x&&r.y===this.y},contains:function(r){return r=re(r),Math.abs(r.x)<=Math.abs(this.x)&&Math.abs(r.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function re(r,a,u){return r instanceof x?r:M(r)?new x(r[0],r[1]):r==null?r:typeof r=="object"&&"x"in r&&"y"in r?new x(r.x,r.y):new x(r,a,u)}function _e(r,a){if(r)for(var u=a?[r,a]:r,h=0,m=u.length;h<m;h++)this.extend(u[h])}_e.prototype={extend:function(r){var a,u;if(!r)return this;if(r instanceof x||typeof r[0]=="number"||"x"in r)a=u=re(r);else if(r=N(r),a=r.min,u=r.max,!a||!u)return this;return!this.min&&!this.max?(this.min=a.clone(),this.max=u.clone()):(this.min.x=Math.min(a.x,this.min.x),this.max.x=Math.max(u.x,this.max.x),this.min.y=Math.min(a.y,this.min.y),this.max.y=Math.max(u.y,this.max.y)),this},getCenter:function(r){return re((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,r)},getBottomLeft:function(){return re(this.min.x,this.max.y)},getTopRight:function(){return re(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(r){var a,u;return typeof r[0]=="number"||r instanceof x?r=re(r):r=N(r),r instanceof _e?(a=r.min,u=r.max):a=u=r,a.x>=this.min.x&&u.x<=this.max.x&&a.y>=this.min.y&&u.y<=this.max.y},intersects:function(r){r=N(r);var a=this.min,u=this.max,h=r.min,m=r.max,S=m.x>=a.x&&h.x<=u.x,D=m.y>=a.y&&h.y<=u.y;return S&&D},overlaps:function(r){r=N(r);var a=this.min,u=this.max,h=r.min,m=r.max,S=m.x>a.x&&h.x<u.x,D=m.y>a.y&&h.y<u.y;return S&&D},isValid:function(){return!!(this.min&&this.max)},pad:function(r){var a=this.min,u=this.max,h=Math.abs(a.x-u.x)*r,m=Math.abs(a.y-u.y)*r;return N(re(a.x-h,a.y-m),re(u.x+h,u.y+m))},equals:function(r){return r?(r=N(r),this.min.equals(r.getTopLeft())&&this.max.equals(r.getBottomRight())):!1}};function N(r,a){return!r||r instanceof _e?r:new _e(r,a)}function U(r,a){if(r)for(var u=a?[r,a]:r,h=0,m=u.length;h<m;h++)this.extend(u[h])}U.prototype={extend:function(r){var a=this._southWest,u=this._northEast,h,m;if(r instanceof H)h=r,m=r;else if(r instanceof U){if(h=r._southWest,m=r._northEast,!h||!m)return this}else return r?this.extend(ie(r)||k(r)):this;return!a&&!u?(this._southWest=new H(h.lat,h.lng),this._northEast=new H(m.lat,m.lng)):(a.lat=Math.min(h.lat,a.lat),a.lng=Math.min(h.lng,a.lng),u.lat=Math.max(m.lat,u.lat),u.lng=Math.max(m.lng,u.lng)),this},pad:function(r){var a=this._southWest,u=this._northEast,h=Math.abs(a.lat-u.lat)*r,m=Math.abs(a.lng-u.lng)*r;return new U(new H(a.lat-h,a.lng-m),new H(u.lat+h,u.lng+m))},getCenter:function(){return new H((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new H(this.getNorth(),this.getWest())},getSouthEast:function(){return new H(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(r){typeof r[0]=="number"||r instanceof H||"lat"in r?r=ie(r):r=k(r);var a=this._southWest,u=this._northEast,h,m;return r instanceof U?(h=r.getSouthWest(),m=r.getNorthEast()):h=m=r,h.lat>=a.lat&&m.lat<=u.lat&&h.lng>=a.lng&&m.lng<=u.lng},intersects:function(r){r=k(r);var a=this._southWest,u=this._northEast,h=r.getSouthWest(),m=r.getNorthEast(),S=m.lat>=a.lat&&h.lat<=u.lat,D=m.lng>=a.lng&&h.lng<=u.lng;return S&&D},overlaps:function(r){r=k(r);var a=this._southWest,u=this._northEast,h=r.getSouthWest(),m=r.getNorthEast(),S=m.lat>a.lat&&h.lat<u.lat,D=m.lng>a.lng&&h.lng<u.lng;return S&&D},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(r,a){return r?(r=k(r),this._southWest.equals(r.getSouthWest(),a)&&this._northEast.equals(r.getNorthEast(),a)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function k(r,a){return r instanceof U?r:new U(r,a)}function H(r,a,u){if(isNaN(r)||isNaN(a))throw new Error("Invalid LatLng object: ("+r+", "+a+")");this.lat=+r,this.lng=+a,u!==void 0&&(this.alt=+u)}H.prototype={equals:function(r,a){if(!r)return!1;r=ie(r);var u=Math.max(Math.abs(this.lat-r.lat),Math.abs(this.lng-r.lng));return u<=(a===void 0?1e-9:a)},toString:function(r){return"LatLng("+y(this.lat,r)+", "+y(this.lng,r)+")"},distanceTo:function(r){return X.distance(this,ie(r))},wrap:function(){return X.wrapLatLng(this)},toBounds:function(r){var a=180*r/40075017,u=a/Math.cos(Math.PI/180*this.lat);return k([this.lat-a,this.lng-u],[this.lat+a,this.lng+u])},clone:function(){return new H(this.lat,this.lng,this.alt)}};function ie(r,a,u){return r instanceof H?r:M(r)&&typeof r[0]!="object"?r.length===3?new H(r[0],r[1],r[2]):r.length===2?new H(r[0],r[1]):null:r==null?r:typeof r=="object"&&"lat"in r?new H(r.lat,"lng"in r?r.lng:r.lon,r.alt):a===void 0?null:new H(r,a,u)}var O={latLngToPoint:function(r,a){var u=this.projection.project(r),h=this.scale(a);return this.transformation._transform(u,h)},pointToLatLng:function(r,a){var u=this.scale(a),h=this.transformation.untransform(r,u);return this.projection.unproject(h)},project:function(r){return this.projection.project(r)},unproject:function(r){return this.projection.unproject(r)},scale:function(r){return 256*Math.pow(2,r)},zoom:function(r){return Math.log(r/256)/Math.LN2},getProjectedBounds:function(r){if(this.infinite)return null;var a=this.projection.bounds,u=this.scale(r),h=this.transformation.transform(a.min,u),m=this.transformation.transform(a.max,u);return new _e(h,m)},infinite:!1,wrapLatLng:function(r){var a=this.wrapLng?_(r.lng,this.wrapLng,!0):r.lng,u=this.wrapLat?_(r.lat,this.wrapLat,!0):r.lat,h=r.alt;return new H(u,a,h)},wrapLatLngBounds:function(r){var a=r.getCenter(),u=this.wrapLatLng(a),h=a.lat-u.lat,m=a.lng-u.lng;if(h===0&&m===0)return r;var S=r.getSouthWest(),D=r.getNorthEast(),$=new H(S.lat-h,S.lng-m),Z=new H(D.lat-h,D.lng-m);return new U($,Z)}},X=o({},O,{wrapLng:[-180,180],R:6371e3,distance:function(r,a){var u=Math.PI/180,h=r.lat*u,m=a.lat*u,S=Math.sin((a.lat-r.lat)*u/2),D=Math.sin((a.lng-r.lng)*u/2),$=S*S+Math.cos(h)*Math.cos(m)*D*D,Z=2*Math.atan2(Math.sqrt($),Math.sqrt(1-$));return this.R*Z}}),J=6378137,fe={R:J,MAX_LATITUDE:85.0511287798,project:function(r){var a=Math.PI/180,u=this.MAX_LATITUDE,h=Math.max(Math.min(u,r.lat),-u),m=Math.sin(h*a);return new x(this.R*r.lng*a,this.R*Math.log((1+m)/(1-m))/2)},unproject:function(r){var a=180/Math.PI;return new H((2*Math.atan(Math.exp(r.y/this.R))-Math.PI/2)*a,r.x*a/this.R)},bounds:function(){var r=J*Math.PI;return new _e([-r,-r],[r,r])}()};function Oe(r,a,u,h){if(M(r)){this._a=r[0],this._b=r[1],this._c=r[2],this._d=r[3];return}this._a=r,this._b=a,this._c=u,this._d=h}Oe.prototype={transform:function(r,a){return this._transform(r.clone(),a)},_transform:function(r,a){return a=a||1,r.x=a*(this._a*r.x+this._b),r.y=a*(this._c*r.y+this._d),r},untransform:function(r,a){return a=a||1,new x((r.x/a-this._b)/this._a,(r.y/a-this._d)/this._c)}};function Ge(r,a,u,h){return new Oe(r,a,u,h)}var we=o({},X,{code:"EPSG:3857",projection:fe,transformation:function(){var r=.5/(Math.PI*fe.R);return Ge(r,.5,-r,.5)}()}),be=o({},we,{code:"EPSG:900913"});function ze(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function Wt(r,a){var u="",h,m,S,D,$,Z;for(h=0,S=r.length;h<S;h++){for($=r[h],m=0,D=$.length;m<D;m++)Z=$[m],u+=(m?"L":"M")+Z.x+" "+Z.y;u+=a?xe.svg?"z":"x":""}return u||"M0 0"}var dt=document.documentElement.style,q="ActiveXObject"in window,me=q&&!document.addEventListener,Pe="msLaunchUri"in navigator&&!("documentMode"in document),Ee=ln("webkit"),I=ln("android"),j=ln("android 2")||ln("android 3"),ne=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),te=I&&ln("Google")&&ne<537&&!("AudioNode"in window),le=!!window.opera,ke=!Pe&&ln("chrome"),De=ln("gecko")&&!Ee&&!le&&!q,He=!ke&&ln("safari"),Me=ln("phantom"),at="OTransition"in dt,vt=navigator.platform.indexOf("Win")===0,Vt=q&&"transition"in dt,Rn="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!j,Hn="MozPerspective"in dt,_n=!window.L_DISABLE_3D&&(Vt||Rn||Hn)&&!at&&!Me,or=typeof orientation<"u"||ln("mobile"),fl=or&&Ee,Y=or&&Rn,ee=!window.PointerEvent&&window.MSPointerEvent,de=!!(window.PointerEvent||ee),Ce="ontouchstart"in window||!!window.TouchEvent,Be=!window.L_NO_TOUCH&&(Ce||de),Ae=or&&le,nt=or&&De,Tt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,kn=function(){var r=!1;try{var a=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("testPassiveEventSupport",v,a),window.removeEventListener("testPassiveEventSupport",v,a)}catch{}return r}(),Ue=function(){return!!document.createElement("canvas").getContext}(),dl=!!(document.createElementNS&&ze("svg").createSVGRect),au=!!dl&&function(){var r=document.createElement("div");return r.innerHTML="<svg/>",(r.firstChild&&r.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),zv=!dl&&function(){try{var r=document.createElement("div");r.innerHTML='<v:shape adj="1"/>';var a=r.firstChild;return a.style.behavior="url(#default#VML)",a&&typeof a.adj=="object"}catch{return!1}}(),Va=navigator.platform.indexOf("Mac")===0,su=navigator.platform.indexOf("Linux")===0;function ln(r){return navigator.userAgent.toLowerCase().indexOf(r)>=0}var xe={ie:q,ielt9:me,edge:Pe,webkit:Ee,android:I,android23:j,androidStock:te,opera:le,chrome:ke,gecko:De,safari:He,phantom:Me,opera12:at,win:vt,ie3d:Vt,webkit3d:Rn,gecko3d:Hn,any3d:_n,mobile:or,mobileWebkit:fl,mobileWebkit3d:Y,msPointer:ee,pointer:de,touch:Be,touchNative:Ce,mobileOpera:Ae,mobileGecko:nt,retina:Tt,passiveEvents:kn,canvas:Ue,svg:dl,vml:zv,inlineSvg:au,mac:Va,linux:su},Qd=xe.msPointer?"MSPointerDown":"pointerdown",lu=xe.msPointer?"MSPointerMove":"pointermove",Fa=xe.msPointer?"MSPointerUp":"pointerup",Ya=xe.msPointer?"MSPointerCancel":"pointercancel",Mi={touchstart:Qd,touchmove:lu,touchend:Fa,touchcancel:Ya},eh={touchstart:Y2,touchmove:th,touchend:th,touchcancel:th},Jr={},hl=!1;function Xt(r,a,u){return a==="touchstart"&&F2(),eh[a]?(u=eh[a].bind(this,u),r.addEventListener(Mi[a],u,!1),u):(console.warn("wrong event specified:",a),v)}function Ai(r,a,u){if(!Mi[a]){console.warn("wrong event specified:",a);return}r.removeEventListener(Mi[a],u,!1)}function B2(r){Jr[r.pointerId]=r}function V2(r){Jr[r.pointerId]&&(Jr[r.pointerId]=r)}function WT(r){delete Jr[r.pointerId]}function F2(){hl||(document.addEventListener(Qd,B2,!0),document.addEventListener(lu,V2,!0),document.addEventListener(Fa,WT,!0),document.addEventListener(Ya,WT,!0),hl=!0)}function th(r,a){if(a.pointerType!==(a.MSPOINTER_TYPE_MOUSE||"mouse")){a.touches=[];for(var u in Jr)a.touches.push(Jr[u]);a.changedTouches=[a],r(a)}}function Y2(r,a){a.MSPOINTER_TYPE_TOUCH&&a.pointerType===a.MSPOINTER_TYPE_TOUCH&&cn(a),th(r,a)}function $2(r){var a={},u,h;for(h in r)u=r[h],a[h]=u&&u.bind?u.bind(r):u;return r=a,a.type="dblclick",a.detail=2,a.isTrusted=!1,a._simulated=!0,a}var U2=200;function z2(r,a){r.addEventListener("dblclick",a);var u=0,h;function m(S){if(S.detail!==1){h=S.detail;return}if(!(S.pointerType==="mouse"||S.sourceCapabilities&&!S.sourceCapabilities.firesTouchEvents)){var D=KT(S);if(!(D.some(function(Z){return Z instanceof HTMLLabelElement&&Z.attributes.for})&&!D.some(function(Z){return Z instanceof HTMLInputElement||Z instanceof HTMLSelectElement}))){var $=Date.now();$-u<=U2?(h++,h===2&&a($2(S))):h=1,u=$}}}return r.addEventListener("click",m),{dblclick:a,simDblclick:m}}function H2(r,a){r.removeEventListener("dblclick",a.dblclick),r.removeEventListener("click",a.simDblclick)}var Hv=ih(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),cu=ih(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ZT=cu==="webkitTransition"||cu==="OTransition"?cu+"End":"transitionend";function GT(r){return typeof r=="string"?document.getElementById(r):r}function uu(r,a){var u=r.style[a]||r.currentStyle&&r.currentStyle[a];if((!u||u==="auto")&&document.defaultView){var h=document.defaultView.getComputedStyle(r,null);u=h?h[a]:null}return u==="auto"?null:u}function ht(r,a,u){var h=document.createElement(r);return h.className=a||"",u&&u.appendChild(h),h}function Rt(r){var a=r.parentNode;a&&a.removeChild(r)}function nh(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function pl(r){var a=r.parentNode;a&&a.lastChild!==r&&a.appendChild(r)}function _l(r){var a=r.parentNode;a&&a.firstChild!==r&&a.insertBefore(r,a.firstChild)}function Wv(r,a){if(r.classList!==void 0)return r.classList.contains(a);var u=rh(r);return u.length>0&&new RegExp("(^|\\s)"+a+"(\\s|$)").test(u)}function qe(r,a){if(r.classList!==void 0)for(var u=E(a),h=0,m=u.length;h<m;h++)r.classList.add(u[h]);else if(!Wv(r,a)){var S=rh(r);Zv(r,(S?S+" ":"")+a)}}function Ft(r,a){r.classList!==void 0?r.classList.remove(a):Zv(r,g((" "+rh(r)+" ").replace(" "+a+" "," ")))}function Zv(r,a){r.className.baseVal===void 0?r.className=a:r.className.baseVal=a}function rh(r){return r.correspondingElement&&(r=r.correspondingElement),r.className.baseVal===void 0?r.className:r.className.baseVal}function ar(r,a){"opacity"in r.style?r.style.opacity=a:"filter"in r.style&&W2(r,a)}function W2(r,a){var u=!1,h="DXImageTransform.Microsoft.Alpha";try{u=r.filters.item(h)}catch{if(a===1)return}a=Math.round(a*100),u?(u.Enabled=a!==100,u.Opacity=a):r.style.filter+=" progid:"+h+"(opacity="+a+")"}function ih(r){for(var a=document.documentElement.style,u=0;u<r.length;u++)if(r[u]in a)return r[u];return!1}function $a(r,a,u){var h=a||new x(0,0);r.style[Hv]=(xe.ie3d?"translate("+h.x+"px,"+h.y+"px)":"translate3d("+h.x+"px,"+h.y+"px,0)")+(u?" scale("+u+")":"")}function Zt(r,a){r._leaflet_pos=a,xe.any3d?$a(r,a):(r.style.left=a.x+"px",r.style.top=a.y+"px")}function Ua(r){return r._leaflet_pos||new x(0,0)}var fu,du,Gv;if("onselectstart"in document)fu=function(){We(window,"selectstart",cn)},du=function(){bt(window,"selectstart",cn)};else{var hu=ih(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);fu=function(){if(hu){var r=document.documentElement.style;Gv=r[hu],r[hu]="none"}},du=function(){hu&&(document.documentElement.style[hu]=Gv,Gv=void 0)}}function jv(){We(window,"dragstart",cn)}function qv(){bt(window,"dragstart",cn)}var oh,Kv;function Xv(r){for(;r.tabIndex===-1;)r=r.parentNode;r.style&&(ah(),oh=r,Kv=r.style.outlineStyle,r.style.outlineStyle="none",We(window,"keydown",ah))}function ah(){oh&&(oh.style.outlineStyle=Kv,oh=void 0,Kv=void 0,bt(window,"keydown",ah))}function jT(r){do r=r.parentNode;while((!r.offsetWidth||!r.offsetHeight)&&r!==document.body);return r}function Jv(r){var a=r.getBoundingClientRect();return{x:a.width/r.offsetWidth||1,y:a.height/r.offsetHeight||1,boundingClientRect:a}}var Z2={__proto__:null,TRANSFORM:Hv,TRANSITION:cu,TRANSITION_END:ZT,get:GT,getStyle:uu,create:ht,remove:Rt,empty:nh,toFront:pl,toBack:_l,hasClass:Wv,addClass:qe,removeClass:Ft,setClass:Zv,getClass:rh,setOpacity:ar,testProp:ih,setTransform:$a,setPosition:Zt,getPosition:Ua,get disableTextSelection(){return fu},get enableTextSelection(){return du},disableImageDrag:jv,enableImageDrag:qv,preventOutline:Xv,restoreOutline:ah,getSizedParentNode:jT,getScale:Jv};function We(r,a,u,h){if(a&&typeof a=="object")for(var m in a)eg(r,m,a[m],u);else{a=E(a);for(var S=0,D=a.length;S<D;S++)eg(r,a[S],u,h)}return this}var Qr="_leaflet_events";function bt(r,a,u,h){if(arguments.length===1)qT(r),delete r[Qr];else if(a&&typeof a=="object")for(var m in a)tg(r,m,a[m],u);else if(a=E(a),arguments.length===2)qT(r,function($){return z(a,$)!==-1});else for(var S=0,D=a.length;S<D;S++)tg(r,a[S],u,h);return this}function qT(r,a){for(var u in r[Qr]){var h=u.split(/\d/)[0];(!a||a(h))&&tg(r,h,null,null,u)}}var Qv={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function eg(r,a,u,h){var m=a+d(u)+(h?"_"+d(h):"");if(r[Qr]&&r[Qr][m])return this;var S=function($){return u.call(h||r,$||window.event)},D=S;!xe.touchNative&&xe.pointer&&a.indexOf("touch")===0?S=Xt(r,a,S):xe.touch&&a==="dblclick"?S=z2(r,S):"addEventListener"in r?a==="touchstart"||a==="touchmove"||a==="wheel"||a==="mousewheel"?r.addEventListener(Qv[a]||a,S,xe.passiveEvents?{passive:!1}:!1):a==="mouseenter"||a==="mouseleave"?(S=function($){$=$||window.event,rg(r,$)&&D($)},r.addEventListener(Qv[a],S,!1)):r.addEventListener(a,D,!1):r.attachEvent("on"+a,S),r[Qr]=r[Qr]||{},r[Qr][m]=S}function tg(r,a,u,h,m){m=m||a+d(u)+(h?"_"+d(h):"");var S=r[Qr]&&r[Qr][m];if(!S)return this;!xe.touchNative&&xe.pointer&&a.indexOf("touch")===0?Ai(r,a,S):xe.touch&&a==="dblclick"?H2(r,S):"removeEventListener"in r?r.removeEventListener(Qv[a]||a,S,!1):r.detachEvent("on"+a,S),r[Qr][m]=null}function za(r){return r.stopPropagation?r.stopPropagation():r.originalEvent?r.originalEvent._stopped=!0:r.cancelBubble=!0,this}function ng(r){return eg(r,"wheel",za),this}function pu(r){return We(r,"mousedown touchstart dblclick contextmenu",za),r._leaflet_disable_click=!0,this}function cn(r){return r.preventDefault?r.preventDefault():r.returnValue=!1,this}function Ha(r){return cn(r),za(r),this}function KT(r){if(r.composedPath)return r.composedPath();for(var a=[],u=r.target;u;)a.push(u),u=u.parentNode;return a}function XT(r,a){if(!a)return new x(r.clientX,r.clientY);var u=Jv(a),h=u.boundingClientRect;return new x((r.clientX-h.left)/u.x-a.clientLeft,(r.clientY-h.top)/u.y-a.clientTop)}var G2=xe.linux&&xe.chrome?window.devicePixelRatio:xe.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function JT(r){return xe.edge?r.wheelDeltaY/2:r.deltaY&&r.deltaMode===0?-r.deltaY/G2:r.deltaY&&r.deltaMode===1?-r.deltaY*20:r.deltaY&&r.deltaMode===2?-r.deltaY*60:r.deltaX||r.deltaZ?0:r.wheelDelta?(r.wheelDeltaY||r.wheelDelta)/2:r.detail&&Math.abs(r.detail)<32765?-r.detail*20:r.detail?r.detail/-32765*60:0}function rg(r,a){var u=a.relatedTarget;if(!u)return!0;try{for(;u&&u!==r;)u=u.parentNode}catch{return!1}return u!==r}var j2={__proto__:null,on:We,off:bt,stopPropagation:za,disableScrollPropagation:ng,disableClickPropagation:pu,preventDefault:cn,stop:Ha,getPropagationPath:KT,getMousePosition:XT,getWheelDelta:JT,isExternalTarget:rg,addListener:We,removeListener:bt},QT=W.extend({run:function(r,a,u,h){this.stop(),this._el=r,this._inProgress=!0,this._duration=u||.25,this._easeOutPower=1/Math.max(h||.5,.2),this._startPos=Ua(r),this._offset=a.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=B(this._animate,this),this._step()},_step:function(r){var a=+new Date-this._startTime,u=this._duration*1e3;a<u?this._runFrame(this._easeOut(a/u),r):(this._runFrame(1),this._complete())},_runFrame:function(r,a){var u=this._startPos.add(this._offset.multiplyBy(r));a&&u._round(),Zt(this._el,u),this.fire("step")},_complete:function(){ae(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(r){return 1-Math.pow(1-r,this._easeOutPower)}}),st=W.extend({options:{crs:we,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(r,a){a=w(this,a),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(r),this._initLayout(),this._onResize=c(this._onResize,this),this._initEvents(),a.maxBounds&&this.setMaxBounds(a.maxBounds),a.zoom!==void 0&&(this._zoom=this._limitZoom(a.zoom)),a.center&&a.zoom!==void 0&&this.setView(ie(a.center),a.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=cu&&xe.any3d&&!xe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),We(this._proxy,ZT,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(r,a,u){if(a=a===void 0?this._zoom:this._limitZoom(a),r=this._limitCenter(ie(r),a,this.options.maxBounds),u=u||{},this._stop(),this._loaded&&!u.reset&&u!==!0){u.animate!==void 0&&(u.zoom=o({animate:u.animate},u.zoom),u.pan=o({animate:u.animate,duration:u.duration},u.pan));var h=this._zoom!==a?this._tryAnimatedZoom&&this._tryAnimatedZoom(r,a,u.zoom):this._tryAnimatedPan(r,u.pan);if(h)return clearTimeout(this._sizeTimer),this}return this._resetView(r,a,u.pan&&u.pan.noMoveStart),this},setZoom:function(r,a){return this._loaded?this.setView(this.getCenter(),r,{zoom:a}):(this._zoom=r,this)},zoomIn:function(r,a){return r=r||(xe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+r,a)},zoomOut:function(r,a){return r=r||(xe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-r,a)},setZoomAround:function(r,a,u){var h=this.getZoomScale(a),m=this.getSize().divideBy(2),S=r instanceof x?r:this.latLngToContainerPoint(r),D=S.subtract(m).multiplyBy(1-1/h),$=this.containerPointToLatLng(m.add(D));return this.setView($,a,{zoom:u})},_getBoundsCenterZoom:function(r,a){a=a||{},r=r.getBounds?r.getBounds():k(r);var u=re(a.paddingTopLeft||a.padding||[0,0]),h=re(a.paddingBottomRight||a.padding||[0,0]),m=this.getBoundsZoom(r,!1,u.add(h));if(m=typeof a.maxZoom=="number"?Math.min(a.maxZoom,m):m,m===1/0)return{center:r.getCenter(),zoom:m};var S=h.subtract(u).divideBy(2),D=this.project(r.getSouthWest(),m),$=this.project(r.getNorthEast(),m),Z=this.unproject(D.add($).divideBy(2).add(S),m);return{center:Z,zoom:m}},fitBounds:function(r,a){if(r=k(r),!r.isValid())throw new Error("Bounds are not valid.");var u=this._getBoundsCenterZoom(r,a);return this.setView(u.center,u.zoom,a)},fitWorld:function(r){return this.fitBounds([[-90,-180],[90,180]],r)},panTo:function(r,a){return this.setView(r,this._zoom,{pan:a})},panBy:function(r,a){if(r=re(r).round(),a=a||{},!r.x&&!r.y)return this.fire("moveend");if(a.animate!==!0&&!this.getSize().contains(r))return this._resetView(this.unproject(this.project(this.getCenter()).add(r)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new QT,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),a.noMoveStart||this.fire("movestart"),a.animate!==!1){qe(this._mapPane,"leaflet-pan-anim");var u=this._getMapPanePos().subtract(r).round();this._panAnim.run(this._mapPane,u,a.duration||.25,a.easeLinearity)}else this._rawPanBy(r),this.fire("move").fire("moveend");return this},flyTo:function(r,a,u){if(u=u||{},u.animate===!1||!xe.any3d)return this.setView(r,a,u);this._stop();var h=this.project(this.getCenter()),m=this.project(r),S=this.getSize(),D=this._zoom;r=ie(r),a=a===void 0?D:a;var $=Math.max(S.x,S.y),Z=$*this.getZoomScale(D,a),se=m.distanceTo(h)||1,ye=1.42,Fe=ye*ye;function Qe(Gt){var gh=Gt?-1:1,AY=Gt?Z:$,BY=Z*Z-$*$+gh*Fe*Fe*se*se,VY=2*AY*Fe*se,pg=BY/VY,Rb=Math.sqrt(pg*pg+1)-pg,FY=Rb<1e-9?-18:Math.log(Rb);return FY}function Cn(Gt){return(Math.exp(Gt)-Math.exp(-Gt))/2}function tn(Gt){return(Math.exp(Gt)+Math.exp(-Gt))/2}function lr(Gt){return Cn(Gt)/tn(Gt)}var Ln=Qe(0);function wl(Gt){return $*(tn(Ln)/tn(Ln+ye*Gt))}function IY(Gt){return $*(tn(Ln)*lr(Ln+ye*Gt)-Cn(Ln))/Fe}function RY(Gt){return 1-Math.pow(1-Gt,1.5)}var LY=Date.now(),Ob=(Qe(1)-Ln)/ye,MY=u.duration?1e3*u.duration:1e3*Ob*.8;function Ib(){var Gt=(Date.now()-LY)/MY,gh=RY(Gt)*Ob;Gt<=1?(this._flyToFrame=B(Ib,this),this._move(this.unproject(h.add(m.subtract(h).multiplyBy(IY(gh)/se)),D),this.getScaleZoom($/wl(gh),D),{flyTo:!0})):this._move(r,a)._moveEnd(!0)}return this._moveStart(!0,u.noMoveStart),Ib.call(this),this},flyToBounds:function(r,a){var u=this._getBoundsCenterZoom(r,a);return this.flyTo(u.center,u.zoom,a)},setMaxBounds:function(r){return r=k(r),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),r.isValid()?(this.options.maxBounds=r,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(r){var a=this.options.minZoom;return this.options.minZoom=r,this._loaded&&a!==r&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(r):this},setMaxZoom:function(r){var a=this.options.maxZoom;return this.options.maxZoom=r,this._loaded&&a!==r&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(r):this},panInsideBounds:function(r,a){this._enforcingBounds=!0;var u=this.getCenter(),h=this._limitCenter(u,this._zoom,k(r));return u.equals(h)||this.panTo(h,a),this._enforcingBounds=!1,this},panInside:function(r,a){a=a||{};var u=re(a.paddingTopLeft||a.padding||[0,0]),h=re(a.paddingBottomRight||a.padding||[0,0]),m=this.project(this.getCenter()),S=this.project(r),D=this.getPixelBounds(),$=N([D.min.add(u),D.max.subtract(h)]),Z=$.getSize();if(!$.contains(S)){this._enforcingBounds=!0;var se=S.subtract($.getCenter()),ye=$.extend(S).getSize().subtract(Z);m.x+=se.x<0?-ye.x:ye.x,m.y+=se.y<0?-ye.y:ye.y,this.panTo(this.unproject(m),a),this._enforcingBounds=!1}return this},invalidateSize:function(r){if(!this._loaded)return this;r=o({animate:!1,pan:!0},r===!0?{animate:!0}:r);var a=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var u=this.getSize(),h=a.divideBy(2).round(),m=u.divideBy(2).round(),S=h.subtract(m);return!S.x&&!S.y?this:(r.animate&&r.pan?this.panBy(S):(r.pan&&this._rawPanBy(S),this.fire("move"),r.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:a,newSize:u}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(r){if(r=this._locateOptions=o({timeout:1e4,watch:!1},r),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var a=c(this._handleGeolocationResponse,this),u=c(this._handleGeolocationError,this);return r.watch?this._locationWatchId=navigator.geolocation.watchPosition(a,u,r):navigator.geolocation.getCurrentPosition(a,u,r),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(r){if(this._container._leaflet_id){var a=r.code,u=r.message||(a===1?"permission denied":a===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:a,message:"Geolocation error: "+u+"."})}},_handleGeolocationResponse:function(r){if(this._container._leaflet_id){var a=r.coords.latitude,u=r.coords.longitude,h=new H(a,u),m=h.toBounds(r.coords.accuracy*2),S=this._locateOptions;if(S.setView){var D=this.getBoundsZoom(m);this.setView(h,S.maxZoom?Math.min(D,S.maxZoom):D)}var $={latlng:h,bounds:m,timestamp:r.timestamp};for(var Z in r.coords)typeof r.coords[Z]=="number"&&($[Z]=r.coords[Z]);this.fire("locationfound",$)}},addHandler:function(r,a){if(!a)return this;var u=this[r]=new a(this);return this._handlers.push(u),this.options[r]&&u.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Rt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ae(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var r;for(r in this._layers)this._layers[r].remove();for(r in this._panes)Rt(this._panes[r]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(r,a){var u="leaflet-pane"+(r?" leaflet-"+r.replace("Pane","")+"-pane":""),h=ht("div",u,a||this._mapPane);return r&&(this._panes[r]=h),h},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var r=this.getPixelBounds(),a=this.unproject(r.getBottomLeft()),u=this.unproject(r.getTopRight());return new U(a,u)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(r,a,u){r=k(r),u=re(u||[0,0]);var h=this.getZoom()||0,m=this.getMinZoom(),S=this.getMaxZoom(),D=r.getNorthWest(),$=r.getSouthEast(),Z=this.getSize().subtract(u),se=N(this.project($,h),this.project(D,h)).getSize(),ye=xe.any3d?this.options.zoomSnap:1,Fe=Z.x/se.x,Qe=Z.y/se.y,Cn=a?Math.max(Fe,Qe):Math.min(Fe,Qe);return h=this.getScaleZoom(Cn,h),ye&&(h=Math.round(h/(ye/100))*(ye/100),h=a?Math.ceil(h/ye)*ye:Math.floor(h/ye)*ye),Math.max(m,Math.min(S,h))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new x(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(r,a){var u=this._getTopLeftPoint(r,a);return new _e(u,u.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(r){return this.options.crs.getProjectedBounds(r===void 0?this.getZoom():r)},getPane:function(r){return typeof r=="string"?this._panes[r]:r},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(r,a){var u=this.options.crs;return a=a===void 0?this._zoom:a,u.scale(r)/u.scale(a)},getScaleZoom:function(r,a){var u=this.options.crs;a=a===void 0?this._zoom:a;var h=u.zoom(r*u.scale(a));return isNaN(h)?1/0:h},project:function(r,a){return a=a===void 0?this._zoom:a,this.options.crs.latLngToPoint(ie(r),a)},unproject:function(r,a){return a=a===void 0?this._zoom:a,this.options.crs.pointToLatLng(re(r),a)},layerPointToLatLng:function(r){var a=re(r).add(this.getPixelOrigin());return this.unproject(a)},latLngToLayerPoint:function(r){var a=this.project(ie(r))._round();return a._subtract(this.getPixelOrigin())},wrapLatLng:function(r){return this.options.crs.wrapLatLng(ie(r))},wrapLatLngBounds:function(r){return this.options.crs.wrapLatLngBounds(k(r))},distance:function(r,a){return this.options.crs.distance(ie(r),ie(a))},containerPointToLayerPoint:function(r){return re(r).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(r){return re(r).add(this._getMapPanePos())},containerPointToLatLng:function(r){var a=this.containerPointToLayerPoint(re(r));return this.layerPointToLatLng(a)},latLngToContainerPoint:function(r){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ie(r)))},mouseEventToContainerPoint:function(r){return XT(r,this._container)},mouseEventToLayerPoint:function(r){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(r))},mouseEventToLatLng:function(r){return this.layerPointToLatLng(this.mouseEventToLayerPoint(r))},_initContainer:function(r){var a=this._container=GT(r);if(a){if(a._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");We(a,"scroll",this._onScroll,this),this._containerId=d(a)},_initLayout:function(){var r=this._container;this._fadeAnimated=this.options.fadeAnimation&&xe.any3d,qe(r,"leaflet-container"+(xe.touch?" leaflet-touch":"")+(xe.retina?" leaflet-retina":"")+(xe.ielt9?" leaflet-oldie":"")+(xe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var a=uu(r,"position");a!=="absolute"&&a!=="relative"&&a!=="fixed"&&a!=="sticky"&&(r.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var r=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Zt(this._mapPane,new x(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(qe(r.markerPane,"leaflet-zoom-hide"),qe(r.shadowPane,"leaflet-zoom-hide"))},_resetView:function(r,a,u){Zt(this._mapPane,new x(0,0));var h=!this._loaded;this._loaded=!0,a=this._limitZoom(a),this.fire("viewprereset");var m=this._zoom!==a;this._moveStart(m,u)._move(r,a)._moveEnd(m),this.fire("viewreset"),h&&this.fire("load")},_moveStart:function(r,a){return r&&this.fire("zoomstart"),a||this.fire("movestart"),this},_move:function(r,a,u,h){a===void 0&&(a=this._zoom);var m=this._zoom!==a;return this._zoom=a,this._lastCenter=r,this._pixelOrigin=this._getNewPixelOrigin(r),h?u&&u.pinch&&this.fire("zoom",u):((m||u&&u.pinch)&&this.fire("zoom",u),this.fire("move",u)),this},_moveEnd:function(r){return r&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return ae(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(r){Zt(this._mapPane,this._getMapPanePos().subtract(r))},_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(r){this._targets={},this._targets[d(this._container)]=this;var a=r?bt:We;a(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&a(window,"resize",this._onResize,this),xe.any3d&&this.options.transform3DLimit&&(r?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){ae(this._resizeRequest),this._resizeRequest=B(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var r=this._getMapPanePos();Math.max(Math.abs(r.x),Math.abs(r.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(r,a){for(var u=[],h,m=a==="mouseout"||a==="mouseover",S=r.target||r.srcElement,D=!1;S;){if(h=this._targets[d(S)],h&&(a==="click"||a==="preclick")&&this._draggableMoved(h)){D=!0;break}if(h&&h.listens(a,!0)&&(m&&!rg(S,r)||(u.push(h),m))||S===this._container)break;S=S.parentNode}return!u.length&&!D&&!m&&this.listens(a,!0)&&(u=[this]),u},_isClickDisabled:function(r){for(;r&&r!==this._container;){if(r._leaflet_disable_click)return!0;r=r.parentNode}},_handleDOMEvent:function(r){var a=r.target||r.srcElement;if(!(!this._loaded||a._leaflet_disable_events||r.type==="click"&&this._isClickDisabled(a))){var u=r.type;u==="mousedown"&&Xv(a),this._fireDOMEvent(r,u)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(r,a,u){if(r.type==="click"){var h=o({},r);h.type="preclick",this._fireDOMEvent(h,h.type,u)}var m=this._findEventTargets(r,a);if(u){for(var S=[],D=0;D<u.length;D++)u[D].listens(a,!0)&&S.push(u[D]);m=S.concat(m)}if(m.length){a==="contextmenu"&&cn(r);var $=m[0],Z={originalEvent:r};if(r.type!=="keypress"&&r.type!=="keydown"&&r.type!=="keyup"){var se=$.getLatLng&&(!$._radius||$._radius<=10);Z.containerPoint=se?this.latLngToContainerPoint($.getLatLng()):this.mouseEventToContainerPoint(r),Z.layerPoint=this.containerPointToLayerPoint(Z.containerPoint),Z.latlng=se?$.getLatLng():this.layerPointToLatLng(Z.layerPoint)}for(D=0;D<m.length;D++)if(m[D].fire(a,Z,!0),Z.originalEvent._stopped||m[D].options.bubblingMouseEvents===!1&&z(this._mouseEvents,a)!==-1)return}},_draggableMoved:function(r){return r=r.dragging&&r.dragging.enabled()?r:this,r.dragging&&r.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var r=0,a=this._handlers.length;r<a;r++)this._handlers[r].disable()},whenReady:function(r,a){return this._loaded?r.call(a||this,{target:this}):this.on("load",r,a),this},_getMapPanePos:function(){return Ua(this._mapPane)||new x(0,0)},_moved:function(){var r=this._getMapPanePos();return r&&!r.equals([0,0])},_getTopLeftPoint:function(r,a){var u=r&&a!==void 0?this._getNewPixelOrigin(r,a):this.getPixelOrigin();return u.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(r,a){var u=this.getSize()._divideBy(2);return this.project(r,a)._subtract(u)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(r,a,u){var h=this._getNewPixelOrigin(u,a);return this.project(r,a)._subtract(h)},_latLngBoundsToNewLayerBounds:function(r,a,u){var h=this._getNewPixelOrigin(u,a);return N([this.project(r.getSouthWest(),a)._subtract(h),this.project(r.getNorthWest(),a)._subtract(h),this.project(r.getSouthEast(),a)._subtract(h),this.project(r.getNorthEast(),a)._subtract(h)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(r){return this.latLngToLayerPoint(r).subtract(this._getCenterLayerPoint())},_limitCenter:function(r,a,u){if(!u)return r;var h=this.project(r,a),m=this.getSize().divideBy(2),S=new _e(h.subtract(m),h.add(m)),D=this._getBoundsOffset(S,u,a);return Math.abs(D.x)<=1&&Math.abs(D.y)<=1?r:this.unproject(h.add(D),a)},_limitOffset:function(r,a){if(!a)return r;var u=this.getPixelBounds(),h=new _e(u.min.add(r),u.max.add(r));return r.add(this._getBoundsOffset(h,a))},_getBoundsOffset:function(r,a,u){var h=N(this.project(a.getNorthEast(),u),this.project(a.getSouthWest(),u)),m=h.min.subtract(r.min),S=h.max.subtract(r.max),D=this._rebound(m.x,-S.x),$=this._rebound(m.y,-S.y);return new x(D,$)},_rebound:function(r,a){return r+a>0?Math.round(r-a)/2:Math.max(0,Math.ceil(r))-Math.max(0,Math.floor(a))},_limitZoom:function(r){var a=this.getMinZoom(),u=this.getMaxZoom(),h=xe.any3d?this.options.zoomSnap:1;return h&&(r=Math.round(r/h)*h),Math.max(a,Math.min(u,r))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ft(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(r,a){var u=this._getCenterOffset(r)._trunc();return(a&&a.animate)!==!0&&!this.getSize().contains(u)?!1:(this.panBy(u,a),!0)},_createAnimProxy:function(){var r=this._proxy=ht("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(r),this.on("zoomanim",function(a){var u=Hv,h=this._proxy.style[u];$a(this._proxy,this.project(a.center,a.zoom),this.getZoomScale(a.zoom,1)),h===this._proxy.style[u]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Rt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var r=this.getCenter(),a=this.getZoom();$a(this._proxy,this.project(r,a),this.getZoomScale(a,1))},_catchTransitionEnd:function(r){this._animatingZoom&&r.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(r,a,u){if(this._animatingZoom)return!0;if(u=u||{},!this._zoomAnimated||u.animate===!1||this._nothingToAnimate()||Math.abs(a-this._zoom)>this.options.zoomAnimationThreshold)return!1;var h=this.getZoomScale(a),m=this._getCenterOffset(r)._divideBy(1-1/h);return u.animate!==!0&&!this.getSize().contains(m)?!1:(B(function(){this._moveStart(!0,u.noMoveStart||!1)._animateZoom(r,a,!0)},this),!0)},_animateZoom:function(r,a,u,h){this._mapPane&&(u&&(this._animatingZoom=!0,this._animateToCenter=r,this._animateToZoom=a,qe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:r,zoom:a,noUpdate:h}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(c(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ft(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 q2(r,a){return new st(r,a)}var Nr=P.extend({options:{position:"topright"},initialize:function(r){w(this,r)},getPosition:function(){return this.options.position},setPosition:function(r){var a=this._map;return a&&a.removeControl(this),this.options.position=r,a&&a.addControl(this),this},getContainer:function(){return this._container},addTo:function(r){this.remove(),this._map=r;var a=this._container=this.onAdd(r),u=this.getPosition(),h=r._controlCorners[u];return qe(a,"leaflet-control"),u.indexOf("bottom")!==-1?h.insertBefore(a,h.firstChild):h.appendChild(a),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Rt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(r){this._map&&r&&r.screenX>0&&r.screenY>0&&this._map.getContainer().focus()}}),_u=function(r){return new Nr(r)};st.include({addControl:function(r){return r.addTo(this),this},removeControl:function(r){return r.remove(),this},_initControlPos:function(){var r=this._controlCorners={},a="leaflet-",u=this._controlContainer=ht("div",a+"control-container",this._container);function h(m,S){var D=a+m+" "+a+S;r[m+S]=ht("div",D,u)}h("top","left"),h("top","right"),h("bottom","left"),h("bottom","right")},_clearControlPos:function(){for(var r in this._controlCorners)Rt(this._controlCorners[r]);Rt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var eb=Nr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(r,a,u,h){return u<h?-1:h<u?1:0}},initialize:function(r,a,u){w(this,u),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var h in r)this._addLayer(r[h],h);for(h in a)this._addLayer(a[h],h,!0)},onAdd:function(r){this._initLayout(),this._update(),this._map=r,r.on("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(r){return Nr.prototype.addTo.call(this,r),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var r=0;r<this._layers.length;r++)this._layers[r].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(r,a){return this._addLayer(r,a),this._map?this._update():this},addOverlay:function(r,a){return this._addLayer(r,a,!0),this._map?this._update():this},removeLayer:function(r){r.off("add remove",this._onLayerChange,this);var a=this._getLayer(d(r));return a&&this._layers.splice(this._layers.indexOf(a),1),this._map?this._update():this},expand:function(){qe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var r=this._map.getSize().y-(this._container.offsetTop+50);return r<this._section.clientHeight?(qe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=r+"px"):Ft(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ft(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var r="leaflet-control-layers",a=this._container=ht("div",r),u=this.options.collapsed;a.setAttribute("aria-haspopup",!0),pu(a),ng(a);var h=this._section=ht("section",r+"-list");u&&(this._map.on("click",this.collapse,this),We(a,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var m=this._layersLink=ht("a",r+"-toggle",a);m.href="#",m.title="Layers",m.setAttribute("role","button"),We(m,{keydown:function(S){S.keyCode===13&&this._expandSafely()},click:function(S){cn(S),this._expandSafely()}},this),u||this.expand(),this._baseLayersList=ht("div",r+"-base",h),this._separator=ht("div",r+"-separator",h),this._overlaysList=ht("div",r+"-overlays",h),a.appendChild(h)},_getLayer:function(r){for(var a=0;a<this._layers.length;a++)if(this._layers[a]&&d(this._layers[a].layer)===r)return this._layers[a]},_addLayer:function(r,a,u){this._map&&r.on("add remove",this._onLayerChange,this),this._layers.push({layer:r,name:a,overlay:u}),this.options.sortLayers&&this._layers.sort(c(function(h,m){return this.options.sortFunction(h.layer,m.layer,h.name,m.name)},this)),this.options.autoZIndex&&r.setZIndex&&(this._lastZIndex++,r.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;nh(this._baseLayersList),nh(this._overlaysList),this._layerControlInputs=[];var r,a,u,h,m=0;for(u=0;u<this._layers.length;u++)h=this._layers[u],this._addItem(h),a=a||h.overlay,r=r||!h.overlay,m+=h.overlay?0:1;return this.options.hideSingleBase&&(r=r&&m>1,this._baseLayersList.style.display=r?"":"none"),this._separator.style.display=a&&r?"":"none",this},_onLayerChange:function(r){this._handlingClick||this._update();var a=this._getLayer(d(r.target)),u=a.overlay?r.type==="add"?"overlayadd":"overlayremove":r.type==="add"?"baselayerchange":null;u&&this._map.fire(u,a)},_createRadioElement:function(r,a){var u='<input type="radio" class="leaflet-control-layers-selector" name="'+r+'"'+(a?' checked="checked"':"")+"/>",h=document.createElement("div");return h.innerHTML=u,h.firstChild},_addItem:function(r){var a=document.createElement("label"),u=this._map.hasLayer(r.layer),h;r.overlay?(h=document.createElement("input"),h.type="checkbox",h.className="leaflet-control-layers-selector",h.defaultChecked=u):h=this._createRadioElement("leaflet-base-layers_"+d(this),u),this._layerControlInputs.push(h),h.layerId=d(r.layer),We(h,"click",this._onInputClick,this);var m=document.createElement("span");m.innerHTML=" "+r.name;var S=document.createElement("span");a.appendChild(S),S.appendChild(h),S.appendChild(m);var D=r.overlay?this._overlaysList:this._baseLayersList;return D.appendChild(a),this._checkDisabledLayers(),a},_onInputClick:function(){if(!this._preventClick){var r=this._layerControlInputs,a,u,h=[],m=[];this._handlingClick=!0;for(var S=r.length-1;S>=0;S--)a=r[S],u=this._getLayer(a.layerId).layer,a.checked?h.push(u):a.checked||m.push(u);for(S=0;S<m.length;S++)this._map.hasLayer(m[S])&&this._map.removeLayer(m[S]);for(S=0;S<h.length;S++)this._map.hasLayer(h[S])||this._map.addLayer(h[S]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var r=this._layerControlInputs,a,u,h=this._map.getZoom(),m=r.length-1;m>=0;m--)a=r[m],u=this._getLayer(a.layerId).layer,a.disabled=u.options.minZoom!==void 0&&h<u.options.minZoom||u.options.maxZoom!==void 0&&h>u.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var r=this._section;this._preventClick=!0,We(r,"click",cn),this.expand();var a=this;setTimeout(function(){bt(r,"click",cn),a._preventClick=!1})}}),K2=function(r,a,u){return new eb(r,a,u)},ig=Nr.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(r){var a="leaflet-control-zoom",u=ht("div",a+" leaflet-bar"),h=this.options;return this._zoomInButton=this._createButton(h.zoomInText,h.zoomInTitle,a+"-in",u,this._zoomIn),this._zoomOutButton=this._createButton(h.zoomOutText,h.zoomOutTitle,a+"-out",u,this._zoomOut),this._updateDisabled(),r.on("zoomend zoomlevelschange",this._updateDisabled,this),u},onRemove:function(r){r.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(r){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(r.shiftKey?3:1))},_zoomOut:function(r){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(r.shiftKey?3:1))},_createButton:function(r,a,u,h,m){var S=ht("a",u,h);return S.innerHTML=r,S.href="#",S.title=a,S.setAttribute("role","button"),S.setAttribute("aria-label",a),pu(S),We(S,"click",Ha),We(S,"click",m,this),We(S,"click",this._refocusOnMap,this),S},_updateDisabled:function(){var r=this._map,a="leaflet-disabled";Ft(this._zoomInButton,a),Ft(this._zoomOutButton,a),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||r._zoom===r.getMinZoom())&&(qe(this._zoomOutButton,a),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||r._zoom===r.getMaxZoom())&&(qe(this._zoomInButton,a),this._zoomInButton.setAttribute("aria-disabled","true"))}});st.mergeOptions({zoomControl:!0}),st.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ig,this.addControl(this.zoomControl))});var X2=function(r){return new ig(r)},tb=Nr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(r){var a="leaflet-control-scale",u=ht("div",a),h=this.options;return this._addScales(h,a+"-line",u),r.on(h.updateWhenIdle?"moveend":"move",this._update,this),r.whenReady(this._update,this),u},onRemove:function(r){r.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(r,a,u){r.metric&&(this._mScale=ht("div",a,u)),r.imperial&&(this._iScale=ht("div",a,u))},_update:function(){var r=this._map,a=r.getSize().y/2,u=r.distance(r.containerPointToLatLng([0,a]),r.containerPointToLatLng([this.options.maxWidth,a]));this._updateScales(u)},_updateScales:function(r){this.options.metric&&r&&this._updateMetric(r),this.options.imperial&&r&&this._updateImperial(r)},_updateMetric:function(r){var a=this._getRoundNum(r),u=a<1e3?a+" m":a/1e3+" km";this._updateScale(this._mScale,u,a/r)},_updateImperial:function(r){var a=r*3.2808399,u,h,m;a>5280?(u=a/5280,h=this._getRoundNum(u),this._updateScale(this._iScale,h+" mi",h/u)):(m=this._getRoundNum(a),this._updateScale(this._iScale,m+" ft",m/a))},_updateScale:function(r,a,u){r.style.width=Math.round(this.options.maxWidth*u)+"px",r.innerHTML=a},_getRoundNum:function(r){var a=Math.pow(10,(Math.floor(r)+"").length-1),u=r/a;return u=u>=10?10:u>=5?5:u>=3?3:u>=2?2:1,a*u}}),J2=function(r){return new tb(r)},Q2='<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>',og=Nr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(xe.inlineSvg?Q2+" ":"")+"Leaflet</a>"},initialize:function(r){w(this,r),this._attributions={}},onAdd:function(r){r.attributionControl=this,this._container=ht("div","leaflet-control-attribution"),pu(this._container);for(var a in r._layers)r._layers[a].getAttribution&&this.addAttribution(r._layers[a].getAttribution());return this._update(),r.on("layeradd",this._addAttribution,this),this._container},onRemove:function(r){r.off("layeradd",this._addAttribution,this)},_addAttribution:function(r){r.layer.getAttribution&&(this.addAttribution(r.layer.getAttribution()),r.layer.once("remove",function(){this.removeAttribution(r.layer.getAttribution())},this))},setPrefix:function(r){return this.options.prefix=r,this._update(),this},addAttribution:function(r){return r?(this._attributions[r]||(this._attributions[r]=0),this._attributions[r]++,this._update(),this):this},removeAttribution:function(r){return r?(this._attributions[r]&&(this._attributions[r]--,this._update()),this):this},_update:function(){if(this._map){var r=[];for(var a in this._attributions)this._attributions[a]&&r.push(a);var u=[];this.options.prefix&&u.push(this.options.prefix),r.length&&u.push(r.join(", ")),this._container.innerHTML=u.join(' <span aria-hidden="true">|</span> ')}}});st.mergeOptions({attributionControl:!0}),st.addInitHook(function(){this.options.attributionControl&&new og().addTo(this)});var eY=function(r){return new og(r)};Nr.Layers=eb,Nr.Zoom=ig,Nr.Scale=tb,Nr.Attribution=og,_u.layers=K2,_u.zoom=X2,_u.scale=J2,_u.attribution=eY;var ei=P.extend({initialize:function(r){this._map=r},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ei.addTo=function(r,a){return r.addHandler(a,this),this};var tY={Events:K},nb=xe.touch?"touchstart mousedown":"mousedown",Oo=W.extend({options:{clickTolerance:3},initialize:function(r,a,u,h){w(this,h),this._element=r,this._dragStartTarget=a||r,this._preventOutline=u},enable:function(){this._enabled||(We(this._dragStartTarget,nb,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Oo._dragging===this&&this.finishDrag(!0),bt(this._dragStartTarget,nb,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(r){if(this._enabled&&(this._moved=!1,!Wv(this._element,"leaflet-zoom-anim"))){if(r.touches&&r.touches.length!==1){Oo._dragging===this&&this.finishDrag();return}if(!(Oo._dragging||r.shiftKey||r.which!==1&&r.button!==1&&!r.touches)&&(Oo._dragging=this,this._preventOutline&&Xv(this._element),jv(),fu(),!this._moving)){this.fire("down");var a=r.touches?r.touches[0]:r,u=jT(this._element);this._startPoint=new x(a.clientX,a.clientY),this._startPos=Ua(this._element),this._parentScale=Jv(u);var h=r.type==="mousedown";We(document,h?"mousemove":"touchmove",this._onMove,this),We(document,h?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(r){if(this._enabled){if(r.touches&&r.touches.length>1){this._moved=!0;return}var a=r.touches&&r.touches.length===1?r.touches[0]:r,u=new x(a.clientX,a.clientY)._subtract(this._startPoint);!u.x&&!u.y||Math.abs(u.x)+Math.abs(u.y)<this.options.clickTolerance||(u.x/=this._parentScale.x,u.y/=this._parentScale.y,cn(r),this._moved||(this.fire("dragstart"),this._moved=!0,qe(document.body,"leaflet-dragging"),this._lastTarget=r.target||r.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),qe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(u),this._moving=!0,this._lastEvent=r,this._updatePosition())}},_updatePosition:function(){var r={originalEvent:this._lastEvent};this.fire("predrag",r),Zt(this._element,this._newPos),this.fire("drag",r)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(r){Ft(document.body,"leaflet-dragging"),this._lastTarget&&(Ft(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),bt(document,"mousemove touchmove",this._onMove,this),bt(document,"mouseup touchend touchcancel",this._onUp,this),qv(),du();var a=this._moved&&this._moving;this._moving=!1,Oo._dragging=!1,a&&this.fire("dragend",{noInertia:r,distance:this._newPos.distanceTo(this._startPos)})}});function rb(r,a,u){var h,m=[1,4,2,8],S,D,$,Z,se,ye,Fe,Qe;for(S=0,ye=r.length;S<ye;S++)r[S]._code=Wa(r[S],a);for($=0;$<4;$++){for(Fe=m[$],h=[],S=0,ye=r.length,D=ye-1;S<ye;D=S++)Z=r[S],se=r[D],Z._code&Fe?se._code&Fe||(Qe=sh(se,Z,Fe,a,u),Qe._code=Wa(Qe,a),h.push(Qe)):(se._code&Fe&&(Qe=sh(se,Z,Fe,a,u),Qe._code=Wa(Qe,a),h.push(Qe)),h.push(Z));r=h}return r}function ib(r,a){var u,h,m,S,D,$,Z,se,ye;if(!r||r.length===0)throw new Error("latlngs not passed");sr(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var Fe=ie([0,0]),Qe=k(r),Cn=Qe.getNorthWest().distanceTo(Qe.getSouthWest())*Qe.getNorthEast().distanceTo(Qe.getNorthWest());Cn<1700&&(Fe=ag(r));var tn=r.length,lr=[];for(u=0;u<tn;u++){var Ln=ie(r[u]);lr.push(a.project(ie([Ln.lat-Fe.lat,Ln.lng-Fe.lng])))}for($=Z=se=0,u=0,h=tn-1;u<tn;h=u++)m=lr[u],S=lr[h],D=m.y*S.x-S.y*m.x,Z+=(m.x+S.x)*D,se+=(m.y+S.y)*D,$+=D*3;$===0?ye=lr[0]:ye=[Z/$,se/$];var wl=a.unproject(re(ye));return ie([wl.lat+Fe.lat,wl.lng+Fe.lng])}function ag(r){for(var a=0,u=0,h=0,m=0;m<r.length;m++){var S=ie(r[m]);a+=S.lat,u+=S.lng,h++}return ie([a/h,u/h])}var nY={__proto__:null,clipPolygon:rb,polygonCenter:ib,centroid:ag};function ob(r,a){if(!a||!r.length)return r.slice();var u=a*a;return r=oY(r,u),r=iY(r,u),r}function ab(r,a,u){return Math.sqrt(mu(r,a,u,!0))}function rY(r,a,u){return mu(r,a,u)}function iY(r,a){var u=r.length,h=typeof Uint8Array<"u"?Uint8Array:Array,m=new h(u);m[0]=m[u-1]=1,sg(r,m,a,0,u-1);var S,D=[];for(S=0;S<u;S++)m[S]&&D.push(r[S]);return D}function sg(r,a,u,h,m){var S=0,D,$,Z;for($=h+1;$<=m-1;$++)Z=mu(r[$],r[h],r[m],!0),Z>S&&(D=$,S=Z);S>u&&(a[D]=1,sg(r,a,u,h,D),sg(r,a,u,D,m))}function oY(r,a){for(var u=[r[0]],h=1,m=0,S=r.length;h<S;h++)aY(r[h],r[m])>a&&(u.push(r[h]),m=h);return m<S-1&&u.push(r[S-1]),u}var sb;function lb(r,a,u,h,m){var S=h?sb:Wa(r,u),D=Wa(a,u),$,Z,se;for(sb=D;;){if(!(S|D))return[r,a];if(S&D)return!1;$=S||D,Z=sh(r,a,$,u,m),se=Wa(Z,u),$===S?(r=Z,S=se):(a=Z,D=se)}}function sh(r,a,u,h,m){var S=a.x-r.x,D=a.y-r.y,$=h.min,Z=h.max,se,ye;return u&8?(se=r.x+S*(Z.y-r.y)/D,ye=Z.y):u&4?(se=r.x+S*($.y-r.y)/D,ye=$.y):u&2?(se=Z.x,ye=r.y+D*(Z.x-r.x)/S):u&1&&(se=$.x,ye=r.y+D*($.x-r.x)/S),new x(se,ye,m)}function Wa(r,a){var u=0;return r.x<a.min.x?u|=1:r.x>a.max.x&&(u|=2),r.y<a.min.y?u|=4:r.y>a.max.y&&(u|=8),u}function aY(r,a){var u=a.x-r.x,h=a.y-r.y;return u*u+h*h}function mu(r,a,u,h){var m=a.x,S=a.y,D=u.x-m,$=u.y-S,Z=D*D+$*$,se;return Z>0&&(se=((r.x-m)*D+(r.y-S)*$)/Z,se>1?(m=u.x,S=u.y):se>0&&(m+=D*se,S+=$*se)),D=r.x-m,$=r.y-S,h?D*D+$*$:new x(m,S)}function sr(r){return!M(r[0])||typeof r[0][0]!="object"&&typeof r[0][0]<"u"}function cb(r){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),sr(r)}function ub(r,a){var u,h,m,S,D,$,Z,se;if(!r||r.length===0)throw new Error("latlngs not passed");sr(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var ye=ie([0,0]),Fe=k(r),Qe=Fe.getNorthWest().distanceTo(Fe.getSouthWest())*Fe.getNorthEast().distanceTo(Fe.getNorthWest());Qe<1700&&(ye=ag(r));var Cn=r.length,tn=[];for(u=0;u<Cn;u++){var lr=ie(r[u]);tn.push(a.project(ie([lr.lat-ye.lat,lr.lng-ye.lng])))}for(u=0,h=0;u<Cn-1;u++)h+=tn[u].distanceTo(tn[u+1])/2;if(h===0)se=tn[0];else for(u=0,S=0;u<Cn-1;u++)if(D=tn[u],$=tn[u+1],m=D.distanceTo($),S+=m,S>h){Z=(S-h)/m,se=[$.x-Z*($.x-D.x),$.y-Z*($.y-D.y)];break}var Ln=a.unproject(re(se));return ie([Ln.lat+ye.lat,Ln.lng+ye.lng])}var sY={__proto__:null,simplify:ob,pointToSegmentDistance:ab,closestPointOnSegment:rY,clipSegment:lb,_getEdgeIntersection:sh,_getBitCode:Wa,_sqClosestPointOnSegment:mu,isFlat:sr,_flat:cb,polylineCenter:ub},lg={project:function(r){return new x(r.lng,r.lat)},unproject:function(r){return new H(r.y,r.x)},bounds:new _e([-180,-90],[180,90])},cg={R:6378137,R_MINOR:6356752314245179e-9,bounds:new _e([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(r){var a=Math.PI/180,u=this.R,h=r.lat*a,m=this.R_MINOR/u,S=Math.sqrt(1-m*m),D=S*Math.sin(h),$=Math.tan(Math.PI/4-h/2)/Math.pow((1-D)/(1+D),S/2);return h=-u*Math.log(Math.max($,1e-10)),new x(r.lng*a*u,h)},unproject:function(r){for(var a=180/Math.PI,u=this.R,h=this.R_MINOR/u,m=Math.sqrt(1-h*h),S=Math.exp(-r.y/u),D=Math.PI/2-2*Math.atan(S),$=0,Z=.1,se;$<15&&Math.abs(Z)>1e-7;$++)se=m*Math.sin(D),se=Math.pow((1-se)/(1+se),m/2),Z=Math.PI/2-2*Math.atan(S*se)-D,D+=Z;return new H(D*a,r.x*a/u)}},lY={__proto__:null,LonLat:lg,Mercator:cg,SphericalMercator:fe},cY=o({},X,{code:"EPSG:3395",projection:cg,transformation:function(){var r=.5/(Math.PI*cg.R);return Ge(r,.5,-r,.5)}()}),fb=o({},X,{code:"EPSG:4326",projection:lg,transformation:Ge(1/180,1,-1/180,.5)}),uY=o({},O,{projection:lg,transformation:Ge(1,0,-1,0),scale:function(r){return Math.pow(2,r)},zoom:function(r){return Math.log(r)/Math.LN2},distance:function(r,a){var u=a.lng-r.lng,h=a.lat-r.lat;return Math.sqrt(u*u+h*h)},infinite:!0});O.Earth=X,O.EPSG3395=cY,O.EPSG3857=we,O.EPSG900913=be,O.EPSG4326=fb,O.Simple=uY;var kr=W.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(r){return r.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(r){return r&&r.removeLayer(this),this},getPane:function(r){return this._map.getPane(r?this.options[r]||r:this.options.pane)},addInteractiveTarget:function(r){return this._map._targets[d(r)]=this,this},removeInteractiveTarget:function(r){return delete this._map._targets[d(r)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(r){var a=r.target;if(a.hasLayer(this)){if(this._map=a,this._zoomAnimated=a._zoomAnimated,this.getEvents){var u=this.getEvents();a.on(u,this),this.once("remove",function(){a.off(u,this)},this)}this.onAdd(a),this.fire("add"),a.fire("layeradd",{layer:this})}}});st.include({addLayer:function(r){if(!r._layerAdd)throw new Error("The provided object is not a Layer.");var a=d(r);return this._layers[a]?this:(this._layers[a]=r,r._mapToAdd=this,r.beforeAdd&&r.beforeAdd(this),this.whenReady(r._layerAdd,r),this)},removeLayer:function(r){var a=d(r);return this._layers[a]?(this._loaded&&r.onRemove(this),delete this._layers[a],this._loaded&&(this.fire("layerremove",{layer:r}),r.fire("remove")),r._map=r._mapToAdd=null,this):this},hasLayer:function(r){return d(r)in this._layers},eachLayer:function(r,a){for(var u in this._layers)r.call(a,this._layers[u]);return this},_addLayers:function(r){r=r?M(r)?r:[r]:[];for(var a=0,u=r.length;a<u;a++)this.addLayer(r[a])},_addZoomLimit:function(r){(!isNaN(r.options.maxZoom)||!isNaN(r.options.minZoom))&&(this._zoomBoundLayers[d(r)]=r,this._updateZoomLevels())},_removeZoomLimit:function(r){var a=d(r);this._zoomBoundLayers[a]&&(delete this._zoomBoundLayers[a],this._updateZoomLevels())},_updateZoomLevels:function(){var r=1/0,a=-1/0,u=this._getZoomSpan();for(var h in this._zoomBoundLayers){var m=this._zoomBoundLayers[h].options;r=m.minZoom===void 0?r:Math.min(r,m.minZoom),a=m.maxZoom===void 0?a:Math.max(a,m.maxZoom)}this._layersMaxZoom=a===-1/0?void 0:a,this._layersMinZoom=r===1/0?void 0:r,u!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ml=kr.extend({initialize:function(r,a){w(this,a),this._layers={};var u,h;if(r)for(u=0,h=r.length;u<h;u++)this.addLayer(r[u])},addLayer:function(r){var a=this.getLayerId(r);return this._layers[a]=r,this._map&&this._map.addLayer(r),this},removeLayer:function(r){var a=r in this._layers?r:this.getLayerId(r);return this._map&&this._layers[a]&&this._map.removeLayer(this._layers[a]),delete this._layers[a],this},hasLayer:function(r){var a=typeof r=="number"?r:this.getLayerId(r);return a in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(r){var a=Array.prototype.slice.call(arguments,1),u,h;for(u in this._layers)h=this._layers[u],h[r]&&h[r].apply(h,a);return this},onAdd:function(r){this.eachLayer(r.addLayer,r)},onRemove:function(r){this.eachLayer(r.removeLayer,r)},eachLayer:function(r,a){for(var u in this._layers)r.call(a,this._layers[u]);return this},getLayer:function(r){return this._layers[r]},getLayers:function(){var r=[];return this.eachLayer(r.push,r),r},setZIndex:function(r){return this.invoke("setZIndex",r)},getLayerId:function(r){return d(r)}}),fY=function(r,a){return new ml(r,a)},Bi=ml.extend({addLayer:function(r){return this.hasLayer(r)?this:(r.addEventParent(this),ml.prototype.addLayer.call(this,r),this.fire("layeradd",{layer:r}))},removeLayer:function(r){return this.hasLayer(r)?(r in this._layers&&(r=this._layers[r]),r.removeEventParent(this),ml.prototype.removeLayer.call(this,r),this.fire("layerremove",{layer:r})):this},setStyle:function(r){return this.invoke("setStyle",r)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var r=new U;for(var a in this._layers){var u=this._layers[a];r.extend(u.getBounds?u.getBounds():u.getLatLng())}return r}}),dY=function(r,a){return new Bi(r,a)},vl=P.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(r){w(this,r)},createIcon:function(r){return this._createIcon("icon",r)},createShadow:function(r){return this._createIcon("shadow",r)},_createIcon:function(r,a){var u=this._getIconUrl(r);if(!u){if(r==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var h=this._createImg(u,a&&a.tagName==="IMG"?a:null);return this._setIconStyles(h,r),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),h},_setIconStyles:function(r,a){var u=this.options,h=u[a+"Size"];typeof h=="number"&&(h=[h,h]);var m=re(h),S=re(a==="shadow"&&u.shadowAnchor||u.iconAnchor||m&&m.divideBy(2,!0));r.className="leaflet-marker-"+a+" "+(u.className||""),S&&(r.style.marginLeft=-S.x+"px",r.style.marginTop=-S.y+"px"),m&&(r.style.width=m.x+"px",r.style.height=m.y+"px")},_createImg:function(r,a){return a=a||document.createElement("img"),a.src=r,a},_getIconUrl:function(r){return xe.retina&&this.options[r+"RetinaUrl"]||this.options[r+"Url"]}});function hY(r){return new vl(r)}var vu=vl.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(r){return typeof vu.imagePath!="string"&&(vu.imagePath=this._detectIconPath()),(this.options.imagePath||vu.imagePath)+vl.prototype._getIconUrl.call(this,r)},_stripUrl:function(r){var a=function(u,h,m){var S=h.exec(u);return S&&S[m]};return r=a(r,/^url\((['"])?(.+)\1\)$/,2),r&&a(r,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var r=ht("div","leaflet-default-icon-path",document.body),a=uu(r,"background-image")||uu(r,"backgroundImage");if(document.body.removeChild(r),a=this._stripUrl(a),a)return a;var u=document.querySelector('link[href$="leaflet.css"]');return u?u.href.substring(0,u.href.length-11-1):""}}),db=ei.extend({initialize:function(r){this._marker=r},addHooks:function(){var r=this._marker._icon;this._draggable||(this._draggable=new Oo(r,r,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),qe(r,"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&&Ft(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(r){var a=this._marker,u=a._map,h=this._marker.options.autoPanSpeed,m=this._marker.options.autoPanPadding,S=Ua(a._icon),D=u.getPixelBounds(),$=u.getPixelOrigin(),Z=N(D.min._subtract($).add(m),D.max._subtract($).subtract(m));if(!Z.contains(S)){var se=re((Math.max(Z.max.x,S.x)-Z.max.x)/(D.max.x-Z.max.x)-(Math.min(Z.min.x,S.x)-Z.min.x)/(D.min.x-Z.min.x),(Math.max(Z.max.y,S.y)-Z.max.y)/(D.max.y-Z.max.y)-(Math.min(Z.min.y,S.y)-Z.min.y)/(D.min.y-Z.min.y)).multiplyBy(h);u.panBy(se,{animate:!1}),this._draggable._newPos._add(se),this._draggable._startPos._add(se),Zt(a._icon,this._draggable._newPos),this._onDrag(r),this._panRequest=B(this._adjustPan.bind(this,r))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(r){this._marker.options.autoPan&&(ae(this._panRequest),this._panRequest=B(this._adjustPan.bind(this,r)))},_onDrag:function(r){var a=this._marker,u=a._shadow,h=Ua(a._icon),m=a._map.layerPointToLatLng(h);u&&Zt(u,h),a._latlng=m,r.latlng=m,r.oldLatLng=this._oldLatLng,a.fire("move",r).fire("drag",r)},_onDragEnd:function(r){ae(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",r)}}),lh=kr.extend({options:{icon:new vu,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(r,a){w(this,a),this._latlng=ie(r)},onAdd:function(r){this._zoomAnimated=this._zoomAnimated&&r.options.markerZoomAnimation,this._zoomAnimated&&r.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(r){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&r.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(r){var a=this._latlng;return this._latlng=ie(r),this.update(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},setZIndexOffset:function(r){return this.options.zIndexOffset=r,this.update()},getIcon:function(){return this.options.icon},setIcon:function(r){return this.options.icon=r,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 r=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(r)}return this},_initIcon:function(){var r=this.options,a="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),u=r.icon.createIcon(this._icon),h=!1;u!==this._icon&&(this._icon&&this._removeIcon(),h=!0,r.title&&(u.title=r.title),u.tagName==="IMG"&&(u.alt=r.alt||"")),qe(u,a),r.keyboard&&(u.tabIndex="0",u.setAttribute("role","button")),this._icon=u,r.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&We(u,"focus",this._panOnFocus,this);var m=r.icon.createShadow(this._shadow),S=!1;m!==this._shadow&&(this._removeShadow(),S=!0),m&&(qe(m,a),m.alt=""),this._shadow=m,r.opacity<1&&this._updateOpacity(),h&&this.getPane().appendChild(this._icon),this._initInteraction(),m&&S&&this.getPane(r.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&bt(this._icon,"focus",this._panOnFocus,this),Rt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Rt(this._shadow),this._shadow=null},_setPos:function(r){this._icon&&Zt(this._icon,r),this._shadow&&Zt(this._shadow,r),this._zIndex=r.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(r){this._icon&&(this._icon.style.zIndex=this._zIndex+r)},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center).round();this._setPos(a)},_initInteraction:function(){if(this.options.interactive&&(qe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),db)){var r=this.options.draggable;this.dragging&&(r=this.dragging.enabled(),this.dragging.disable()),this.dragging=new db(this),r&&this.dragging.enable()}},setOpacity:function(r){return this.options.opacity=r,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var r=this.options.opacity;this._icon&&ar(this._icon,r),this._shadow&&ar(this._shadow,r)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var r=this._map;if(r){var a=this.options.icon.options,u=a.iconSize?re(a.iconSize):re(0,0),h=a.iconAnchor?re(a.iconAnchor):re(0,0);r.panInside(this._latlng,{paddingTopLeft:h,paddingBottomRight:u.subtract(h)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function pY(r,a){return new lh(r,a)}var Io=kr.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(r){this._renderer=r.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(r){return w(this,r),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&r&&Object.prototype.hasOwnProperty.call(r,"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)}}),ch=Io.extend({options:{fill:!0,radius:10},initialize:function(r,a){w(this,a),this._latlng=ie(r),this._radius=this.options.radius},setLatLng:function(r){var a=this._latlng;return this._latlng=ie(r),this.redraw(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(r){return this.options.radius=this._radius=r,this.redraw()},getRadius:function(){return this._radius},setStyle:function(r){var a=r&&r.radius||this._radius;return Io.prototype.setStyle.call(this,r),this.setRadius(a),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var r=this._radius,a=this._radiusY||r,u=this._clickTolerance(),h=[r+u,a+u];this._pxBounds=new _e(this._point.subtract(h),this._point.add(h))},_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(r){return r.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function _Y(r,a){return new ch(r,a)}var ug=ch.extend({initialize:function(r,a,u){if(typeof a=="number"&&(a=o({},u,{radius:a})),w(this,a),this._latlng=ie(r),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(r){return this._mRadius=r,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var r=[this._radius,this._radiusY||this._radius];return new U(this._map.layerPointToLatLng(this._point.subtract(r)),this._map.layerPointToLatLng(this._point.add(r)))},setStyle:Io.prototype.setStyle,_project:function(){var r=this._latlng.lng,a=this._latlng.lat,u=this._map,h=u.options.crs;if(h.distance===X.distance){var m=Math.PI/180,S=this._mRadius/X.R/m,D=u.project([a+S,r]),$=u.project([a-S,r]),Z=D.add($).divideBy(2),se=u.unproject(Z).lat,ye=Math.acos((Math.cos(S*m)-Math.sin(a*m)*Math.sin(se*m))/(Math.cos(a*m)*Math.cos(se*m)))/m;(isNaN(ye)||ye===0)&&(ye=S/Math.cos(Math.PI/180*a)),this._point=Z.subtract(u.getPixelOrigin()),this._radius=isNaN(ye)?0:Z.x-u.project([se,r-ye]).x,this._radiusY=Z.y-D.y}else{var Fe=h.unproject(h.project(this._latlng).subtract([this._mRadius,0]));this._point=u.latLngToLayerPoint(this._latlng),this._radius=this._point.x-u.latLngToLayerPoint(Fe).x}this._updateBounds()}});function mY(r,a,u){return new ug(r,a,u)}var Vi=Io.extend({options:{smoothFactor:1,noClip:!1},initialize:function(r,a){w(this,a),this._setLatLngs(r)},getLatLngs:function(){return this._latlngs},setLatLngs:function(r){return this._setLatLngs(r),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(r){for(var a=1/0,u=null,h=mu,m,S,D=0,$=this._parts.length;D<$;D++)for(var Z=this._parts[D],se=1,ye=Z.length;se<ye;se++){m=Z[se-1],S=Z[se];var Fe=h(r,m,S,!0);Fe<a&&(a=Fe,u=h(r,m,S))}return u&&(u.distance=Math.sqrt(a)),u},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ub(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(r,a){return a=a||this._defaultShape(),r=ie(r),a.push(r),this._bounds.extend(r),this.redraw()},_setLatLngs:function(r){this._bounds=new U,this._latlngs=this._convertLatLngs(r)},_defaultShape:function(){return sr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(r){for(var a=[],u=sr(r),h=0,m=r.length;h<m;h++)u?(a[h]=ie(r[h]),this._bounds.extend(a[h])):a[h]=this._convertLatLngs(r[h]);return a},_project:function(){var r=new _e;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,r),this._bounds.isValid()&&r.isValid()&&(this._rawPxBounds=r,this._updateBounds())},_updateBounds:function(){var r=this._clickTolerance(),a=new x(r,r);this._rawPxBounds&&(this._pxBounds=new _e([this._rawPxBounds.min.subtract(a),this._rawPxBounds.max.add(a)]))},_projectLatlngs:function(r,a,u){var h=r[0]instanceof H,m=r.length,S,D;if(h){for(D=[],S=0;S<m;S++)D[S]=this._map.latLngToLayerPoint(r[S]),u.extend(D[S]);a.push(D)}else for(S=0;S<m;S++)this._projectLatlngs(r[S],a,u)},_clipPoints:function(){var r=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}var a=this._parts,u,h,m,S,D,$,Z;for(u=0,m=0,S=this._rings.length;u<S;u++)for(Z=this._rings[u],h=0,D=Z.length;h<D-1;h++)$=lb(Z[h],Z[h+1],r,h,!0),$&&(a[m]=a[m]||[],a[m].push($[0]),($[1]!==Z[h+1]||h===D-2)&&(a[m].push($[1]),m++))}},_simplifyPoints:function(){for(var r=this._parts,a=this.options.smoothFactor,u=0,h=r.length;u<h;u++)r[u]=ob(r[u],a)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(r,a){var u,h,m,S,D,$,Z=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(r))return!1;for(u=0,S=this._parts.length;u<S;u++)for($=this._parts[u],h=0,D=$.length,m=D-1;h<D;m=h++)if(!(!a&&h===0)&&ab(r,$[m],$[h])<=Z)return!0;return!1}});function vY(r,a){return new Vi(r,a)}Vi._flat=cb;var gl=Vi.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 ib(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(r){var a=Vi.prototype._convertLatLngs.call(this,r),u=a.length;return u>=2&&a[0]instanceof H&&a[0].equals(a[u-1])&&a.pop(),a},_setLatLngs:function(r){Vi.prototype._setLatLngs.call(this,r),sr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return sr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var r=this._renderer._bounds,a=this.options.weight,u=new x(a,a);if(r=new _e(r.min.subtract(u),r.max.add(u)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}for(var h=0,m=this._rings.length,S;h<m;h++)S=rb(this._rings[h],r,!0),S.length&&this._parts.push(S)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(r){var a=!1,u,h,m,S,D,$,Z,se;if(!this._pxBounds||!this._pxBounds.contains(r))return!1;for(S=0,Z=this._parts.length;S<Z;S++)for(u=this._parts[S],D=0,se=u.length,$=se-1;D<se;$=D++)h=u[D],m=u[$],h.y>r.y!=m.y>r.y&&r.x<(m.x-h.x)*(r.y-h.y)/(m.y-h.y)+h.x&&(a=!a);return a||Vi.prototype._containsPoint.call(this,r,!0)}});function gY(r,a){return new gl(r,a)}var Fi=Bi.extend({initialize:function(r,a){w(this,a),this._layers={},r&&this.addData(r)},addData:function(r){var a=M(r)?r:r.features,u,h,m;if(a){for(u=0,h=a.length;u<h;u++)m=a[u],(m.geometries||m.geometry||m.features||m.coordinates)&&this.addData(m);return this}var S=this.options;if(S.filter&&!S.filter(r))return this;var D=uh(r,S);return D?(D.feature=hh(r),D.defaultOptions=D.options,this.resetStyle(D),S.onEachFeature&&S.onEachFeature(r,D),this.addLayer(D)):this},resetStyle:function(r){return r===void 0?this.eachLayer(this.resetStyle,this):(r.options=o({},r.defaultOptions),this._setLayerStyle(r,this.options.style),this)},setStyle:function(r){return this.eachLayer(function(a){this._setLayerStyle(a,r)},this)},_setLayerStyle:function(r,a){r.setStyle&&(typeof a=="function"&&(a=a(r.feature)),r.setStyle(a))}});function uh(r,a){var u=r.type==="Feature"?r.geometry:r,h=u?u.coordinates:null,m=[],S=a&&a.pointToLayer,D=a&&a.coordsToLatLng||fg,$,Z,se,ye;if(!h&&!u)return null;switch(u.type){case"Point":return $=D(h),hb(S,r,$,a);case"MultiPoint":for(se=0,ye=h.length;se<ye;se++)$=D(h[se]),m.push(hb(S,r,$,a));return new Bi(m);case"LineString":case"MultiLineString":return Z=fh(h,u.type==="LineString"?0:1,D),new Vi(Z,a);case"Polygon":case"MultiPolygon":return Z=fh(h,u.type==="Polygon"?1:2,D),new gl(Z,a);case"GeometryCollection":for(se=0,ye=u.geometries.length;se<ye;se++){var Fe=uh({geometry:u.geometries[se],type:"Feature",properties:r.properties},a);Fe&&m.push(Fe)}return new Bi(m);case"FeatureCollection":for(se=0,ye=u.features.length;se<ye;se++){var Qe=uh(u.features[se],a);Qe&&m.push(Qe)}return new Bi(m);default:throw new Error("Invalid GeoJSON object.")}}function hb(r,a,u,h){return r?r(a,u):new lh(u,h&&h.markersInheritOptions&&h)}function fg(r){return new H(r[1],r[0],r[2])}function fh(r,a,u){for(var h=[],m=0,S=r.length,D;m<S;m++)D=a?fh(r[m],a-1,u):(u||fg)(r[m]),h.push(D);return h}function dg(r,a){return r=ie(r),r.alt!==void 0?[y(r.lng,a),y(r.lat,a),y(r.alt,a)]:[y(r.lng,a),y(r.lat,a)]}function dh(r,a,u,h){for(var m=[],S=0,D=r.length;S<D;S++)m.push(a?dh(r[S],sr(r[S])?0:a-1,u,h):dg(r[S],h));return!a&&u&&m.length>0&&m.push(m[0].slice()),m}function yl(r,a){return r.feature?o({},r.feature,{geometry:a}):hh(a)}function hh(r){return r.type==="Feature"||r.type==="FeatureCollection"?r:{type:"Feature",properties:{},geometry:r}}var hg={toGeoJSON:function(r){return yl(this,{type:"Point",coordinates:dg(this.getLatLng(),r)})}};lh.include(hg),ug.include(hg),ch.include(hg),Vi.include({toGeoJSON:function(r){var a=!sr(this._latlngs),u=dh(this._latlngs,a?1:0,!1,r);return yl(this,{type:(a?"Multi":"")+"LineString",coordinates:u})}}),gl.include({toGeoJSON:function(r){var a=!sr(this._latlngs),u=a&&!sr(this._latlngs[0]),h=dh(this._latlngs,u?2:a?1:0,!0,r);return a||(h=[h]),yl(this,{type:(u?"Multi":"")+"Polygon",coordinates:h})}}),ml.include({toMultiPoint:function(r){var a=[];return this.eachLayer(function(u){a.push(u.toGeoJSON(r).geometry.coordinates)}),yl(this,{type:"MultiPoint",coordinates:a})},toGeoJSON:function(r){var a=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(a==="MultiPoint")return this.toMultiPoint(r);var u=a==="GeometryCollection",h=[];return this.eachLayer(function(m){if(m.toGeoJSON){var S=m.toGeoJSON(r);if(u)h.push(S.geometry);else{var D=hh(S);D.type==="FeatureCollection"?h.push.apply(h,D.features):h.push(D)}}}),u?yl(this,{geometries:h,type:"GeometryCollection"}):{type:"FeatureCollection",features:h}}});function pb(r,a){return new Fi(r,a)}var yY=pb,ph=kr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(r,a,u){this._url=r,this._bounds=k(a),w(this,u)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(qe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Rt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(r){return this.options.opacity=r,this._image&&this._updateOpacity(),this},setStyle:function(r){return r.opacity&&this.setOpacity(r.opacity),this},bringToFront:function(){return this._map&&pl(this._image),this},bringToBack:function(){return this._map&&_l(this._image),this},setUrl:function(r){return this._url=r,this._image&&(this._image.src=r),this},setBounds:function(r){return this._bounds=k(r),this._map&&this._reset(),this},getEvents:function(){var r={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var r=this._url.tagName==="IMG",a=this._image=r?this._url:ht("img");if(qe(a,"leaflet-image-layer"),this._zoomAnimated&&qe(a,"leaflet-zoom-animated"),this.options.className&&qe(a,this.options.className),a.onselectstart=v,a.onmousemove=v,a.onload=c(this.fire,this,"load"),a.onerror=c(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),r){this._url=a.src;return}a.src=this._url,a.alt=this.options.alt},_animateZoom:function(r){var a=this._map.getZoomScale(r.zoom),u=this._map._latLngBoundsToNewLayerBounds(this._bounds,r.zoom,r.center).min;$a(this._image,u,a)},_reset:function(){var r=this._image,a=new _e(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),u=a.getSize();Zt(r,a.min),r.style.width=u.x+"px",r.style.height=u.y+"px"},_updateOpacity:function(){ar(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var r=this.options.errorOverlayUrl;r&&this._url!==r&&(this._url=r,this._image.src=r)},getCenter:function(){return this._bounds.getCenter()}}),SY=function(r,a,u){return new ph(r,a,u)},_b=ph.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var r=this._url.tagName==="VIDEO",a=this._image=r?this._url:ht("video");if(qe(a,"leaflet-image-layer"),this._zoomAnimated&&qe(a,"leaflet-zoom-animated"),this.options.className&&qe(a,this.options.className),a.onselectstart=v,a.onmousemove=v,a.onloadeddata=c(this.fire,this,"load"),r){for(var u=a.getElementsByTagName("source"),h=[],m=0;m<u.length;m++)h.push(u[m].src);this._url=u.length>0?h:[a.src];return}M(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(a.style,"objectFit")&&(a.style.objectFit="fill"),a.autoplay=!!this.options.autoplay,a.loop=!!this.options.loop,a.muted=!!this.options.muted,a.playsInline=!!this.options.playsInline;for(var S=0;S<this._url.length;S++){var D=ht("source");D.src=this._url[S],a.appendChild(D)}}});function wY(r,a,u){return new _b(r,a,u)}var mb=ph.extend({_initImage:function(){var r=this._image=this._url;qe(r,"leaflet-image-layer"),this._zoomAnimated&&qe(r,"leaflet-zoom-animated"),this.options.className&&qe(r,this.options.className),r.onselectstart=v,r.onmousemove=v}});function EY(r,a,u){return new mb(r,a,u)}var ti=kr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(r,a){r&&(r instanceof H||M(r))?(this._latlng=ie(r),w(this,a)):(w(this,r),this._source=a),this.options.content&&(this._content=this.options.content)},openOn:function(r){return r=arguments.length?r:this._source._map,r.hasLayer(this)||r.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(r){return this._map?this.close():(arguments.length?this._source=r:r=this._source,this._prepareOpen(),this.openOn(r._map)),this},onAdd:function(r){this._zoomAnimated=r._zoomAnimated,this._container||this._initLayout(),r._fadeAnimated&&ar(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),r._fadeAnimated&&ar(this._container,1),this.bringToFront(),this.options.interactive&&(qe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(r){r._fadeAnimated?(ar(this._container,0),this._removeTimeout=setTimeout(c(Rt,void 0,this._container),200)):Rt(this._container),this.options.interactive&&(Ft(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(r){return this._latlng=ie(r),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(r){return this._content=r,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 r={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&pl(this._container),this},bringToBack:function(){return this._map&&_l(this._container),this},_prepareOpen:function(r){var a=this._source;if(!a._map)return!1;if(a instanceof Bi){a=null;var u=this._source._layers;for(var h in u)if(u[h]._map){a=u[h];break}if(!a)return!1;this._source=a}if(!r)if(a.getCenter)r=a.getCenter();else if(a.getLatLng)r=a.getLatLng();else if(a.getBounds)r=a.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(r),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var r=this._contentNode,a=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof a=="string")r.innerHTML=a;else{for(;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(a)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var r=this._map.latLngToLayerPoint(this._latlng),a=re(this.options.offset),u=this._getAnchor();this._zoomAnimated?Zt(this._container,r.add(u)):a=a.add(r).add(u);var h=this._containerBottom=-a.y,m=this._containerLeft=-Math.round(this._containerWidth/2)+a.x;this._container.style.bottom=h+"px",this._container.style.left=m+"px"}},_getAnchor:function(){return[0,0]}});st.include({_initOverlay:function(r,a,u,h){var m=a;return m instanceof r||(m=new r(h).setContent(a)),u&&m.setLatLng(u),m}}),kr.include({_initOverlay:function(r,a,u,h){var m=u;return m instanceof r?(w(m,h),m._source=this):(m=a&&!h?a:new r(h,this),m.setContent(u)),m}});var _h=ti.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(r){return r=arguments.length?r:this._source._map,!r.hasLayer(this)&&r._popup&&r._popup.options.autoClose&&r.removeLayer(r._popup),r._popup=this,ti.prototype.openOn.call(this,r)},onAdd:function(r){ti.prototype.onAdd.call(this,r),r.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Io||this._source.on("preclick",za))},onRemove:function(r){ti.prototype.onRemove.call(this,r),r.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Io||this._source.off("preclick",za))},getEvents:function(){var r=ti.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(r.preclick=this.close),this.options.keepInView&&(r.moveend=this._adjustPan),r},_initLayout:function(){var r="leaflet-popup",a=this._container=ht("div",r+" "+(this.options.className||"")+" leaflet-zoom-animated"),u=this._wrapper=ht("div",r+"-content-wrapper",a);if(this._contentNode=ht("div",r+"-content",u),pu(a),ng(this._contentNode),We(a,"contextmenu",za),this._tipContainer=ht("div",r+"-tip-container",a),this._tip=ht("div",r+"-tip",this._tipContainer),this.options.closeButton){var h=this._closeButton=ht("a",r+"-close-button",a);h.setAttribute("role","button"),h.setAttribute("aria-label","Close popup"),h.href="#close",h.innerHTML='<span aria-hidden="true">&#215;</span>',We(h,"click",function(m){cn(m),this.close()},this)}},_updateLayout:function(){var r=this._contentNode,a=r.style;a.width="",a.whiteSpace="nowrap";var u=r.offsetWidth;u=Math.min(u,this.options.maxWidth),u=Math.max(u,this.options.minWidth),a.width=u+1+"px",a.whiteSpace="",a.height="";var h=r.offsetHeight,m=this.options.maxHeight,S="leaflet-popup-scrolled";m&&h>m?(a.height=m+"px",qe(r,S)):Ft(r,S),this._containerWidth=this._container.offsetWidth},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center),u=this._getAnchor();Zt(this._container,a.add(u))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var r=this._map,a=parseInt(uu(this._container,"marginBottom"),10)||0,u=this._container.offsetHeight+a,h=this._containerWidth,m=new x(this._containerLeft,-u-this._containerBottom);m._add(Ua(this._container));var S=r.layerPointToContainerPoint(m),D=re(this.options.autoPanPadding),$=re(this.options.autoPanPaddingTopLeft||D),Z=re(this.options.autoPanPaddingBottomRight||D),se=r.getSize(),ye=0,Fe=0;S.x+h+Z.x>se.x&&(ye=S.x+h-se.x+Z.x),S.x-ye-$.x<0&&(ye=S.x-$.x),S.y+u+Z.y>se.y&&(Fe=S.y+u-se.y+Z.y),S.y-Fe-$.y<0&&(Fe=S.y-$.y),(ye||Fe)&&(this.options.keepInView&&(this._autopanning=!0),r.fire("autopanstart").panBy([ye,Fe]))}},_getAnchor:function(){return re(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),TY=function(r,a){return new _h(r,a)};st.mergeOptions({closePopupOnClick:!0}),st.include({openPopup:function(r,a,u){return this._initOverlay(_h,r,a,u).openOn(this),this},closePopup:function(r){return r=arguments.length?r:this._popup,r&&r.close(),this}}),kr.include({bindPopup:function(r,a){return this._popup=this._initOverlay(_h,this._popup,r,a),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(r){return this._popup&&(this instanceof Bi||(this._popup._source=this),this._popup._prepareOpen(r||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(r){return this._popup&&this._popup.setContent(r),this},getPopup:function(){return this._popup},_openPopup:function(r){if(!(!this._popup||!this._map)){Ha(r);var a=r.layer||r.target;if(this._popup._source===a&&!(a instanceof Io)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(r.latlng);return}this._popup._source=a,this.openPopup(r.latlng)}},_movePopup:function(r){this._popup.setLatLng(r.latlng)},_onKeyPress:function(r){r.originalEvent.keyCode===13&&this._openPopup(r)}});var mh=ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(r){ti.prototype.onAdd.call(this,r),this.setOpacity(this.options.opacity),r.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(r){ti.prototype.onRemove.call(this,r),r.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var r=ti.prototype.getEvents.call(this);return this.options.permanent||(r.preclick=this.close),r},_initLayout:function(){var r="leaflet-tooltip",a=r+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ht("div",a),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(r){var a,u,h=this._map,m=this._container,S=h.latLngToContainerPoint(h.getCenter()),D=h.layerPointToContainerPoint(r),$=this.options.direction,Z=m.offsetWidth,se=m.offsetHeight,ye=re(this.options.offset),Fe=this._getAnchor();$==="top"?(a=Z/2,u=se):$==="bottom"?(a=Z/2,u=0):$==="center"?(a=Z/2,u=se/2):$==="right"?(a=0,u=se/2):$==="left"?(a=Z,u=se/2):D.x<S.x?($="right",a=0,u=se/2):($="left",a=Z+(ye.x+Fe.x)*2,u=se/2),r=r.subtract(re(a,u,!0)).add(ye).add(Fe),Ft(m,"leaflet-tooltip-right"),Ft(m,"leaflet-tooltip-left"),Ft(m,"leaflet-tooltip-top"),Ft(m,"leaflet-tooltip-bottom"),qe(m,"leaflet-tooltip-"+$),Zt(m,r)},_updatePosition:function(){var r=this._map.latLngToLayerPoint(this._latlng);this._setPosition(r)},setOpacity:function(r){this.options.opacity=r,this._container&&ar(this._container,r)},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center);this._setPosition(a)},_getAnchor:function(){return re(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),bY=function(r,a){return new mh(r,a)};st.include({openTooltip:function(r,a,u){return this._initOverlay(mh,r,a,u).openOn(this),this},closeTooltip:function(r){return r.close(),this}}),kr.include({bindTooltip:function(r,a){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(mh,this._tooltip,r,a),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(r){if(!(!r&&this._tooltipHandlersAdded)){var a=r?"off":"on",u={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?u.add=this._openTooltip:(u.mouseover=this._openTooltip,u.mouseout=this.closeTooltip,u.click=this._openTooltip,this._map?this._addFocusListeners():u.add=this._addFocusListeners),this._tooltip.options.sticky&&(u.mousemove=this._moveTooltip),this[a](u),this._tooltipHandlersAdded=!r}},openTooltip:function(r){return this._tooltip&&(this instanceof Bi||(this._tooltip._source=this),this._tooltip._prepareOpen(r)&&(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(r){return this._tooltip&&this._tooltip.setContent(r),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(r){var a=typeof r.getElement=="function"&&r.getElement();a&&(We(a,"focus",function(){this._tooltip._source=r,this.openTooltip()},this),We(a,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(r){var a=typeof r.getElement=="function"&&r.getElement();a&&a.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(r){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var a=this;this._map.once("moveend",function(){a._openOnceFlag=!1,a._openTooltip(r)});return}this._tooltip._source=r.layer||r.target,this.openTooltip(this._tooltip.options.sticky?r.latlng:void 0)}},_moveTooltip:function(r){var a=r.latlng,u,h;this._tooltip.options.sticky&&r.originalEvent&&(u=this._map.mouseEventToContainerPoint(r.originalEvent),h=this._map.containerPointToLayerPoint(u),a=this._map.layerPointToLatLng(h)),this._tooltip.setLatLng(a)}});var vb=vl.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(r){var a=r&&r.tagName==="DIV"?r:document.createElement("div"),u=this.options;if(u.html instanceof Element?(nh(a),a.appendChild(u.html)):a.innerHTML=u.html!==!1?u.html:"",u.bgPos){var h=re(u.bgPos);a.style.backgroundPosition=-h.x+"px "+-h.y+"px"}return this._setIconStyles(a,"icon"),a},createShadow:function(){return null}});function NY(r){return new vb(r)}vl.Default=vu;var gu=kr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:xe.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(r){w(this,r)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(r){r._addZoomLimit(this)},onRemove:function(r){this._removeAllTiles(),Rt(this._container),r._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(pl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(_l(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(r){return this.options.opacity=r,this._updateOpacity(),this},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var r=this._clampZoom(this._map.getZoom());r!==this._tileZoom&&(this._tileZoom=r,this._updateLevels()),this._update()}return this},getEvents:function(){var r={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=p(this._onMoveEnd,this.options.updateInterval,this)),r.move=this._onMove),this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},createTile:function(){return document.createElement("div")},getTileSize:function(){var r=this.options.tileSize;return r instanceof x?r:new x(r,r)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(r){for(var a=this.getPane().children,u=-r(-1/0,1/0),h=0,m=a.length,S;h<m;h++)S=a[h].style.zIndex,a[h]!==this._container&&S&&(u=r(u,+S));isFinite(u)&&(this.options.zIndex=u+r(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!xe.ielt9){ar(this._container,this.options.opacity);var r=+new Date,a=!1,u=!1;for(var h in this._tiles){var m=this._tiles[h];if(!(!m.current||!m.loaded)){var S=Math.min(1,(r-m.loaded)/200);ar(m.el,S),S<1?a=!0:(m.active?u=!0:this._onOpaqueTile(m),m.active=!0)}}u&&!this._noPrune&&this._pruneTiles(),a&&(ae(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this))}},_onOpaqueTile:v,_initContainer:function(){this._container||(this._container=ht("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var r=this._tileZoom,a=this.options.maxZoom;if(r!==void 0){for(var u in this._levels)u=Number(u),this._levels[u].el.children.length||u===r?(this._levels[u].el.style.zIndex=a-Math.abs(r-u),this._onUpdateLevel(u)):(Rt(this._levels[u].el),this._removeTilesAtZoom(u),this._onRemoveLevel(u),delete this._levels[u]);var h=this._levels[r],m=this._map;return h||(h=this._levels[r]={},h.el=ht("div","leaflet-tile-container leaflet-zoom-animated",this._container),h.el.style.zIndex=a,h.origin=m.project(m.unproject(m.getPixelOrigin()),r).round(),h.zoom=r,this._setZoomTransform(h,m.getCenter(),m.getZoom()),v(h.el.offsetWidth),this._onCreateLevel(h)),this._level=h,h}},_onUpdateLevel:v,_onRemoveLevel:v,_onCreateLevel:v,_pruneTiles:function(){if(this._map){var r,a,u=this._map.getZoom();if(u>this.options.maxZoom||u<this.options.minZoom){this._removeAllTiles();return}for(r in this._tiles)a=this._tiles[r],a.retain=a.current;for(r in this._tiles)if(a=this._tiles[r],a.current&&!a.active){var h=a.coords;this._retainParent(h.x,h.y,h.z,h.z-5)||this._retainChildren(h.x,h.y,h.z,h.z+2)}for(r in this._tiles)this._tiles[r].retain||this._removeTile(r)}},_removeTilesAtZoom:function(r){for(var a in this._tiles)this._tiles[a].coords.z===r&&this._removeTile(a)},_removeAllTiles:function(){for(var r in this._tiles)this._removeTile(r)},_invalidateAll:function(){for(var r in this._levels)Rt(this._levels[r].el),this._onRemoveLevel(Number(r)),delete this._levels[r];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(r,a,u,h){var m=Math.floor(r/2),S=Math.floor(a/2),D=u-1,$=new x(+m,+S);$.z=+D;var Z=this._tileCoordsToKey($),se=this._tiles[Z];return se&&se.active?(se.retain=!0,!0):(se&&se.loaded&&(se.retain=!0),D>h?this._retainParent(m,S,D,h):!1)},_retainChildren:function(r,a,u,h){for(var m=2*r;m<2*r+2;m++)for(var S=2*a;S<2*a+2;S++){var D=new x(m,S);D.z=u+1;var $=this._tileCoordsToKey(D),Z=this._tiles[$];if(Z&&Z.active){Z.retain=!0;continue}else Z&&Z.loaded&&(Z.retain=!0);u+1<h&&this._retainChildren(m,S,u+1,h)}},_resetView:function(r){var a=r&&(r.pinch||r.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),a,a)},_animateZoom:function(r){this._setView(r.center,r.zoom,!0,r.noUpdate)},_clampZoom:function(r){var a=this.options;return a.minNativeZoom!==void 0&&r<a.minNativeZoom?a.minNativeZoom:a.maxNativeZoom!==void 0&&a.maxNativeZoom<r?a.maxNativeZoom:r},_setView:function(r,a,u,h){var m=Math.round(a);this.options.maxZoom!==void 0&&m>this.options.maxZoom||this.options.minZoom!==void 0&&m<this.options.minZoom?m=void 0:m=this._clampZoom(m);var S=this.options.updateWhenZooming&&m!==this._tileZoom;(!h||S)&&(this._tileZoom=m,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),m!==void 0&&this._update(r),u||this._pruneTiles(),this._noPrune=!!u),this._setZoomTransforms(r,a)},_setZoomTransforms:function(r,a){for(var u in this._levels)this._setZoomTransform(this._levels[u],r,a)},_setZoomTransform:function(r,a,u){var h=this._map.getZoomScale(u,r.zoom),m=r.origin.multiplyBy(h).subtract(this._map._getNewPixelOrigin(a,u)).round();xe.any3d?$a(r.el,m,h):Zt(r.el,m)},_resetGrid:function(){var r=this._map,a=r.options.crs,u=this._tileSize=this.getTileSize(),h=this._tileZoom,m=this._map.getPixelWorldBounds(this._tileZoom);m&&(this._globalTileRange=this._pxBoundsToTileRange(m)),this._wrapX=a.wrapLng&&!this.options.noWrap&&[Math.floor(r.project([0,a.wrapLng[0]],h).x/u.x),Math.ceil(r.project([0,a.wrapLng[1]],h).x/u.y)],this._wrapY=a.wrapLat&&!this.options.noWrap&&[Math.floor(r.project([a.wrapLat[0],0],h).y/u.x),Math.ceil(r.project([a.wrapLat[1],0],h).y/u.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(r){var a=this._map,u=a._animatingZoom?Math.max(a._animateToZoom,a.getZoom()):a.getZoom(),h=a.getZoomScale(u,this._tileZoom),m=a.project(r,this._tileZoom).floor(),S=a.getSize().divideBy(h*2);return new _e(m.subtract(S),m.add(S))},_update:function(r){var a=this._map;if(a){var u=this._clampZoom(a.getZoom());if(r===void 0&&(r=a.getCenter()),this._tileZoom!==void 0){var h=this._getTiledPixelBounds(r),m=this._pxBoundsToTileRange(h),S=m.getCenter(),D=[],$=this.options.keepBuffer,Z=new _e(m.getBottomLeft().subtract([$,-$]),m.getTopRight().add([$,-$]));if(!(isFinite(m.min.x)&&isFinite(m.min.y)&&isFinite(m.max.x)&&isFinite(m.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var se in this._tiles){var ye=this._tiles[se].coords;(ye.z!==this._tileZoom||!Z.contains(new x(ye.x,ye.y)))&&(this._tiles[se].current=!1)}if(Math.abs(u-this._tileZoom)>1){this._setView(r,u);return}for(var Fe=m.min.y;Fe<=m.max.y;Fe++)for(var Qe=m.min.x;Qe<=m.max.x;Qe++){var Cn=new x(Qe,Fe);if(Cn.z=this._tileZoom,!!this._isValidTile(Cn)){var tn=this._tiles[this._tileCoordsToKey(Cn)];tn?tn.current=!0:D.push(Cn)}}if(D.sort(function(Ln,wl){return Ln.distanceTo(S)-wl.distanceTo(S)}),D.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var lr=document.createDocumentFragment();for(Qe=0;Qe<D.length;Qe++)this._addTile(D[Qe],lr);this._level.el.appendChild(lr)}}}},_isValidTile:function(r){var a=this._map.options.crs;if(!a.infinite){var u=this._globalTileRange;if(!a.wrapLng&&(r.x<u.min.x||r.x>u.max.x)||!a.wrapLat&&(r.y<u.min.y||r.y>u.max.y))return!1}if(!this.options.bounds)return!0;var h=this._tileCoordsToBounds(r);return k(this.options.bounds).overlaps(h)},_keyToBounds:function(r){return this._tileCoordsToBounds(this._keyToTileCoords(r))},_tileCoordsToNwSe:function(r){var a=this._map,u=this.getTileSize(),h=r.scaleBy(u),m=h.add(u),S=a.unproject(h,r.z),D=a.unproject(m,r.z);return[S,D]},_tileCoordsToBounds:function(r){var a=this._tileCoordsToNwSe(r),u=new U(a[0],a[1]);return this.options.noWrap||(u=this._map.wrapLatLngBounds(u)),u},_tileCoordsToKey:function(r){return r.x+":"+r.y+":"+r.z},_keyToTileCoords:function(r){var a=r.split(":"),u=new x(+a[0],+a[1]);return u.z=+a[2],u},_removeTile:function(r){var a=this._tiles[r];a&&(Rt(a.el),delete this._tiles[r],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(r)}))},_initTile:function(r){qe(r,"leaflet-tile");var a=this.getTileSize();r.style.width=a.x+"px",r.style.height=a.y+"px",r.onselectstart=v,r.onmousemove=v,xe.ielt9&&this.options.opacity<1&&ar(r,this.options.opacity)},_addTile:function(r,a){var u=this._getTilePos(r),h=this._tileCoordsToKey(r),m=this.createTile(this._wrapCoords(r),c(this._tileReady,this,r));this._initTile(m),this.createTile.length<2&&B(c(this._tileReady,this,r,null,m)),Zt(m,u),this._tiles[h]={el:m,coords:r,current:!0},a.appendChild(m),this.fire("tileloadstart",{tile:m,coords:r})},_tileReady:function(r,a,u){a&&this.fire("tileerror",{error:a,tile:u,coords:r});var h=this._tileCoordsToKey(r);u=this._tiles[h],u&&(u.loaded=+new Date,this._map._fadeAnimated?(ar(u.el,0),ae(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this)):(u.active=!0,this._pruneTiles()),a||(qe(u.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:u.el,coords:r})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),xe.ielt9||!this._map._fadeAnimated?B(this._pruneTiles,this):setTimeout(c(this._pruneTiles,this),250)))},_getTilePos:function(r){return r.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(r){var a=new x(this._wrapX?_(r.x,this._wrapX):r.x,this._wrapY?_(r.y,this._wrapY):r.y);return a.z=r.z,a},_pxBoundsToTileRange:function(r){var a=this.getTileSize();return new _e(r.min.unscaleBy(a).floor(),r.max.unscaleBy(a).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var r in this._tiles)if(!this._tiles[r].loaded)return!1;return!0}});function kY(r){return new gu(r)}var Sl=gu.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(r,a){this._url=r,a=w(this,a),a.detectRetina&&xe.retina&&a.maxZoom>0?(a.tileSize=Math.floor(a.tileSize/2),a.zoomReverse?(a.zoomOffset--,a.minZoom=Math.min(a.maxZoom,a.minZoom+1)):(a.zoomOffset++,a.maxZoom=Math.max(a.minZoom,a.maxZoom-1)),a.minZoom=Math.max(0,a.minZoom)):a.zoomReverse?a.minZoom=Math.min(a.maxZoom,a.minZoom):a.maxZoom=Math.max(a.minZoom,a.maxZoom),typeof a.subdomains=="string"&&(a.subdomains=a.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(r,a){return this._url===r&&a===void 0&&(a=!0),this._url=r,a||this.redraw(),this},createTile:function(r,a){var u=document.createElement("img");return We(u,"load",c(this._tileOnLoad,this,a,u)),We(u,"error",c(this._tileOnError,this,a,u)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(u.referrerPolicy=this.options.referrerPolicy),u.alt="",u.src=this.getTileUrl(r),u},getTileUrl:function(r){var a={r:xe.retina?"@2x":"",s:this._getSubdomain(r),x:r.x,y:r.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var u=this._globalTileRange.max.y-r.y;this.options.tms&&(a.y=u),a["-y"]=u}return C(this._url,o(a,this.options))},_tileOnLoad:function(r,a){xe.ielt9?setTimeout(c(r,this,null,a),0):r(null,a)},_tileOnError:function(r,a,u){var h=this.options.errorTileUrl;h&&a.getAttribute("src")!==h&&(a.src=h),r(u,a)},_onTileRemove:function(r){r.tile.onload=null},_getZoomForUrl:function(){var r=this._tileZoom,a=this.options.maxZoom,u=this.options.zoomReverse,h=this.options.zoomOffset;return u&&(r=a-r),r+h},_getSubdomain:function(r){var a=Math.abs(r.x+r.y)%this.options.subdomains.length;return this.options.subdomains[a]},_abortLoading:function(){var r,a;for(r in this._tiles)if(this._tiles[r].coords.z!==this._tileZoom&&(a=this._tiles[r].el,a.onload=v,a.onerror=v,!a.complete)){a.src=G;var u=this._tiles[r].coords;Rt(a),delete this._tiles[r],this.fire("tileabort",{tile:a,coords:u})}},_removeTile:function(r){var a=this._tiles[r];if(a)return a.el.setAttribute("src",G),gu.prototype._removeTile.call(this,r)},_tileReady:function(r,a,u){if(!(!this._map||u&&u.getAttribute("src")===G))return gu.prototype._tileReady.call(this,r,a,u)}});function gb(r,a){return new Sl(r,a)}var yb=Sl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(r,a){this._url=r;var u=o({},this.defaultWmsParams);for(var h in a)h in this.options||(u[h]=a[h]);a=w(this,a);var m=a.detectRetina&&xe.retina?2:1,S=this.getTileSize();u.width=S.x*m,u.height=S.y*m,this.wmsParams=u},onAdd:function(r){this._crs=this.options.crs||r.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var a=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[a]=this._crs.code,Sl.prototype.onAdd.call(this,r)},getTileUrl:function(r){var a=this._tileCoordsToNwSe(r),u=this._crs,h=N(u.project(a[0]),u.project(a[1])),m=h.min,S=h.max,D=(this._wmsVersion>=1.3&&this._crs===fb?[m.y,m.x,S.y,S.x]:[m.x,m.y,S.x,S.y]).join(","),$=Sl.prototype.getTileUrl.call(this,r);return $+T(this.wmsParams,$,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+D},setParams:function(r,a){return o(this.wmsParams,r),a||this.redraw(),this}});function CY(r,a){return new yb(r,a)}Sl.WMS=yb,gb.wms=CY;var Yi=kr.extend({options:{padding:.1},initialize:function(r){w(this,r),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),qe(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 r={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(r.zoomanim=this._onAnimZoom),r},_onAnimZoom:function(r){this._updateTransform(r.center,r.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(r,a){var u=this._map.getZoomScale(a,this._zoom),h=this._map.getSize().multiplyBy(.5+this.options.padding),m=this._map.project(this._center,a),S=h.multiplyBy(-u).add(m).subtract(this._map._getNewPixelOrigin(r,a));xe.any3d?$a(this._container,S,u):Zt(this._container,S)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var r in this._layers)this._layers[r]._reset()},_onZoomEnd:function(){for(var r in this._layers)this._layers[r]._project()},_updatePaths:function(){for(var r in this._layers)this._layers[r]._update()},_update:function(){var r=this.options.padding,a=this._map.getSize(),u=this._map.containerPointToLayerPoint(a.multiplyBy(-r)).round();this._bounds=new _e(u,u.add(a.multiplyBy(1+r*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Sb=Yi.extend({options:{tolerance:0},getEvents:function(){var r=Yi.prototype.getEvents.call(this);return r.viewprereset=this._onViewPreReset,r},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Yi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var r=this._container=document.createElement("canvas");We(r,"mousemove",this._onMouseMove,this),We(r,"click dblclick mousedown mouseup contextmenu",this._onClick,this),We(r,"mouseout",this._handleMouseOut,this),r._leaflet_disable_events=!0,this._ctx=r.getContext("2d")},_destroyContainer:function(){ae(this._redrawRequest),delete this._ctx,Rt(this._container),bt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var r;this._redrawBounds=null;for(var a in this._layers)r=this._layers[a],r._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Yi.prototype._update.call(this);var r=this._bounds,a=this._container,u=r.getSize(),h=xe.retina?2:1;Zt(a,r.min),a.width=h*u.x,a.height=h*u.y,a.style.width=u.x+"px",a.style.height=u.y+"px",xe.retina&&this._ctx.scale(2,2),this._ctx.translate(-r.min.x,-r.min.y),this.fire("update")}},_reset:function(){Yi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(r){this._updateDashArray(r),this._layers[d(r)]=r;var a=r._order={layer:r,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=a),this._drawLast=a,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(r){this._requestRedraw(r)},_removePath:function(r){var a=r._order,u=a.next,h=a.prev;u?u.prev=h:this._drawLast=h,h?h.next=u:this._drawFirst=u,delete r._order,delete this._layers[d(r)],this._requestRedraw(r)},_updatePath:function(r){this._extendRedrawBounds(r),r._project(),r._update(),this._requestRedraw(r)},_updateStyle:function(r){this._updateDashArray(r),this._requestRedraw(r)},_updateDashArray:function(r){if(typeof r.options.dashArray=="string"){var a=r.options.dashArray.split(/[, ]+/),u=[],h,m;for(m=0;m<a.length;m++){if(h=Number(a[m]),isNaN(h))return;u.push(h)}r.options._dashArray=u}else r.options._dashArray=r.options.dashArray},_requestRedraw:function(r){this._map&&(this._extendRedrawBounds(r),this._redrawRequest=this._redrawRequest||B(this._redraw,this))},_extendRedrawBounds:function(r){if(r._pxBounds){var a=(r.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new _e,this._redrawBounds.extend(r._pxBounds.min.subtract([a,a])),this._redrawBounds.extend(r._pxBounds.max.add([a,a]))}},_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 r=this._redrawBounds;if(r){var a=r.getSize();this._ctx.clearRect(r.min.x,r.min.y,a.x,a.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 r,a=this._redrawBounds;if(this._ctx.save(),a){var u=a.getSize();this._ctx.beginPath(),this._ctx.rect(a.min.x,a.min.y,u.x,u.y),this._ctx.clip()}this._drawing=!0;for(var h=this._drawFirst;h;h=h.next)r=h.layer,(!a||r._pxBounds&&r._pxBounds.intersects(a))&&r._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(r,a){if(this._drawing){var u,h,m,S,D=r._parts,$=D.length,Z=this._ctx;if($){for(Z.beginPath(),u=0;u<$;u++){for(h=0,m=D[u].length;h<m;h++)S=D[u][h],Z[h?"lineTo":"moveTo"](S.x,S.y);a&&Z.closePath()}this._fillStroke(Z,r)}}},_updateCircle:function(r){if(!(!this._drawing||r._empty())){var a=r._point,u=this._ctx,h=Math.max(Math.round(r._radius),1),m=(Math.max(Math.round(r._radiusY),1)||h)/h;m!==1&&(u.save(),u.scale(1,m)),u.beginPath(),u.arc(a.x,a.y/m,h,0,Math.PI*2,!1),m!==1&&u.restore(),this._fillStroke(u,r)}},_fillStroke:function(r,a){var u=a.options;u.fill&&(r.globalAlpha=u.fillOpacity,r.fillStyle=u.fillColor||u.color,r.fill(u.fillRule||"evenodd")),u.stroke&&u.weight!==0&&(r.setLineDash&&r.setLineDash(a.options&&a.options._dashArray||[]),r.globalAlpha=u.opacity,r.lineWidth=u.weight,r.strokeStyle=u.color,r.lineCap=u.lineCap,r.lineJoin=u.lineJoin,r.stroke())},_onClick:function(r){for(var a=this._map.mouseEventToLayerPoint(r),u,h,m=this._drawFirst;m;m=m.next)u=m.layer,u.options.interactive&&u._containsPoint(a)&&(!(r.type==="click"||r.type==="preclick")||!this._map._draggableMoved(u))&&(h=u);this._fireEvent(h?[h]:!1,r)},_onMouseMove:function(r){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var a=this._map.mouseEventToLayerPoint(r);this._handleMouseHover(r,a)}},_handleMouseOut:function(r){var a=this._hoveredLayer;a&&(Ft(this._container,"leaflet-interactive"),this._fireEvent([a],r,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(r,a){if(!this._mouseHoverThrottled){for(var u,h,m=this._drawFirst;m;m=m.next)u=m.layer,u.options.interactive&&u._containsPoint(a)&&(h=u);h!==this._hoveredLayer&&(this._handleMouseOut(r),h&&(qe(this._container,"leaflet-interactive"),this._fireEvent([h],r,"mouseover"),this._hoveredLayer=h)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,r),this._mouseHoverThrottled=!0,setTimeout(c(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(r,a,u){this._map._fireDOMEvent(a,u||a.type,r)},_bringToFront:function(r){var a=r._order;if(a){var u=a.next,h=a.prev;if(u)u.prev=h;else return;h?h.next=u:u&&(this._drawFirst=u),a.prev=this._drawLast,this._drawLast.next=a,a.next=null,this._drawLast=a,this._requestRedraw(r)}},_bringToBack:function(r){var a=r._order;if(a){var u=a.next,h=a.prev;if(h)h.next=u;else return;u?u.prev=h:h&&(this._drawLast=h),a.prev=null,a.next=this._drawFirst,this._drawFirst.prev=a,this._drawFirst=a,this._requestRedraw(r)}}});function wb(r){return xe.canvas?new Sb(r):null}var yu=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(r){return document.createElement("<lvml:"+r+' class="lvml">')}}catch{}return function(r){return document.createElement("<"+r+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),PY={_initContainer:function(){this._container=ht("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Yi.prototype._update.call(this),this.fire("update"))},_initPath:function(r){var a=r._container=yu("shape");qe(a,"leaflet-vml-shape "+(this.options.className||"")),a.coordsize="1 1",r._path=yu("path"),a.appendChild(r._path),this._updateStyle(r),this._layers[d(r)]=r},_addPath:function(r){var a=r._container;this._container.appendChild(a),r.options.interactive&&r.addInteractiveTarget(a)},_removePath:function(r){var a=r._container;Rt(a),r.removeInteractiveTarget(a),delete this._layers[d(r)]},_updateStyle:function(r){var a=r._stroke,u=r._fill,h=r.options,m=r._container;m.stroked=!!h.stroke,m.filled=!!h.fill,h.stroke?(a||(a=r._stroke=yu("stroke")),m.appendChild(a),a.weight=h.weight+"px",a.color=h.color,a.opacity=h.opacity,h.dashArray?a.dashStyle=M(h.dashArray)?h.dashArray.join(" "):h.dashArray.replace(/( *, *)/g," "):a.dashStyle="",a.endcap=h.lineCap.replace("butt","flat"),a.joinstyle=h.lineJoin):a&&(m.removeChild(a),r._stroke=null),h.fill?(u||(u=r._fill=yu("fill")),m.appendChild(u),u.color=h.fillColor||h.color,u.opacity=h.fillOpacity):u&&(m.removeChild(u),r._fill=null)},_updateCircle:function(r){var a=r._point.round(),u=Math.round(r._radius),h=Math.round(r._radiusY||u);this._setPath(r,r._empty()?"M0 0":"AL "+a.x+","+a.y+" "+u+","+h+" 0,"+65535*360)},_setPath:function(r,a){r._path.v=a},_bringToFront:function(r){pl(r._container)},_bringToBack:function(r){_l(r._container)}},vh=xe.vml?yu:ze,Su=Yi.extend({_initContainer:function(){this._container=vh("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=vh("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Rt(this._container),bt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Yi.prototype._update.call(this);var r=this._bounds,a=r.getSize(),u=this._container;(!this._svgSize||!this._svgSize.equals(a))&&(this._svgSize=a,u.setAttribute("width",a.x),u.setAttribute("height",a.y)),Zt(u,r.min),u.setAttribute("viewBox",[r.min.x,r.min.y,a.x,a.y].join(" ")),this.fire("update")}},_initPath:function(r){var a=r._path=vh("path");r.options.className&&qe(a,r.options.className),r.options.interactive&&qe(a,"leaflet-interactive"),this._updateStyle(r),this._layers[d(r)]=r},_addPath:function(r){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(r._path),r.addInteractiveTarget(r._path)},_removePath:function(r){Rt(r._path),r.removeInteractiveTarget(r._path),delete this._layers[d(r)]},_updatePath:function(r){r._project(),r._update()},_updateStyle:function(r){var a=r._path,u=r.options;a&&(u.stroke?(a.setAttribute("stroke",u.color),a.setAttribute("stroke-opacity",u.opacity),a.setAttribute("stroke-width",u.weight),a.setAttribute("stroke-linecap",u.lineCap),a.setAttribute("stroke-linejoin",u.lineJoin),u.dashArray?a.setAttribute("stroke-dasharray",u.dashArray):a.removeAttribute("stroke-dasharray"),u.dashOffset?a.setAttribute("stroke-dashoffset",u.dashOffset):a.removeAttribute("stroke-dashoffset")):a.setAttribute("stroke","none"),u.fill?(a.setAttribute("fill",u.fillColor||u.color),a.setAttribute("fill-opacity",u.fillOpacity),a.setAttribute("fill-rule",u.fillRule||"evenodd")):a.setAttribute("fill","none"))},_updatePoly:function(r,a){this._setPath(r,Wt(r._parts,a))},_updateCircle:function(r){var a=r._point,u=Math.max(Math.round(r._radius),1),h=Math.max(Math.round(r._radiusY),1)||u,m="a"+u+","+h+" 0 1,0 ",S=r._empty()?"M0 0":"M"+(a.x-u)+","+a.y+m+u*2+",0 "+m+-u*2+",0 ";this._setPath(r,S)},_setPath:function(r,a){r._path.setAttribute("d",a)},_bringToFront:function(r){pl(r._path)},_bringToBack:function(r){_l(r._path)}});xe.vml&&Su.include(PY);function Eb(r){return xe.svg||xe.vml?new Su(r):null}st.include({getRenderer:function(r){var a=r.options.renderer||this._getPaneRenderer(r.options.pane)||this.options.renderer||this._renderer;return a||(a=this._renderer=this._createRenderer()),this.hasLayer(a)||this.addLayer(a),a},_getPaneRenderer:function(r){if(r==="overlayPane"||r===void 0)return!1;var a=this._paneRenderers[r];return a===void 0&&(a=this._createRenderer({pane:r}),this._paneRenderers[r]=a),a},_createRenderer:function(r){return this.options.preferCanvas&&wb(r)||Eb(r)}});var Tb=gl.extend({initialize:function(r,a){gl.prototype.initialize.call(this,this._boundsToLatLngs(r),a)},setBounds:function(r){return this.setLatLngs(this._boundsToLatLngs(r))},_boundsToLatLngs:function(r){return r=k(r),[r.getSouthWest(),r.getNorthWest(),r.getNorthEast(),r.getSouthEast()]}});function DY(r,a){return new Tb(r,a)}Su.create=vh,Su.pointsToPath=Wt,Fi.geometryToLayer=uh,Fi.coordsToLatLng=fg,Fi.coordsToLatLngs=fh,Fi.latLngToCoords=dg,Fi.latLngsToCoords=dh,Fi.getFeature=yl,Fi.asFeature=hh,st.mergeOptions({boxZoom:!0});var bb=ei.extend({initialize:function(r){this._map=r,this._container=r._container,this._pane=r._panes.overlayPane,this._resetStateTimeout=0,r.on("unload",this._destroy,this)},addHooks:function(){We(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){bt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Rt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(r){if(!r.shiftKey||r.which!==1&&r.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),fu(),jv(),this._startPoint=this._map.mouseEventToContainerPoint(r),We(document,{contextmenu:Ha,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(r){this._moved||(this._moved=!0,this._box=ht("div","leaflet-zoom-box",this._container),qe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(r);var a=new _e(this._point,this._startPoint),u=a.getSize();Zt(this._box,a.min),this._box.style.width=u.x+"px",this._box.style.height=u.y+"px"},_finish:function(){this._moved&&(Rt(this._box),Ft(this._container,"leaflet-crosshair")),du(),qv(),bt(document,{contextmenu:Ha,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(r){if(!(r.which!==1&&r.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(c(this._resetState,this),0);var a=new U(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(a).fire("boxzoomend",{boxZoomBounds:a})}},_onKeyDown:function(r){r.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});st.addInitHook("addHandler","boxZoom",bb),st.mergeOptions({doubleClickZoom:!0});var Nb=ei.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(r){var a=this._map,u=a.getZoom(),h=a.options.zoomDelta,m=r.originalEvent.shiftKey?u-h:u+h;a.options.doubleClickZoom==="center"?a.setZoom(m):a.setZoomAround(r.containerPoint,m)}});st.addInitHook("addHandler","doubleClickZoom",Nb),st.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var kb=ei.extend({addHooks:function(){if(!this._draggable){var r=this._map;this._draggable=new Oo(r._mapPane,r._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),r.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),r.on("zoomend",this._onZoomEnd,this),r.whenReady(this._onZoomEnd,this))}qe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ft(this._map._container,"leaflet-grab"),Ft(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 r=this._map;if(r._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var a=k(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(a.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(a.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;r.fire("movestart").fire("dragstart"),r.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(r){if(this._map.options.inertia){var a=this._lastTime=+new Date,u=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(u),this._times.push(a),this._prunePositions(a)}this._map.fire("move",r).fire("drag",r)},_prunePositions:function(r){for(;this._positions.length>1&&r-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var r=this._map.getSize().divideBy(2),a=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=a.subtract(r).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(r,a){return r-(r-a)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var r=this._draggable._newPos.subtract(this._draggable._startPos),a=this._offsetLimit;r.x<a.min.x&&(r.x=this._viscousLimit(r.x,a.min.x)),r.y<a.min.y&&(r.y=this._viscousLimit(r.y,a.min.y)),r.x>a.max.x&&(r.x=this._viscousLimit(r.x,a.max.x)),r.y>a.max.y&&(r.y=this._viscousLimit(r.y,a.max.y)),this._draggable._newPos=this._draggable._startPos.add(r)}},_onPreDragWrap:function(){var r=this._worldWidth,a=Math.round(r/2),u=this._initialWorldOffset,h=this._draggable._newPos.x,m=(h-a+u)%r+a-u,S=(h+a+u)%r-a-u,D=Math.abs(m+u)<Math.abs(S+u)?m:S;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=D},_onDragEnd:function(r){var a=this._map,u=a.options,h=!u.inertia||r.noInertia||this._times.length<2;if(a.fire("dragend",r),h)a.fire("moveend");else{this._prunePositions(+new Date);var m=this._lastPos.subtract(this._positions[0]),S=(this._lastTime-this._times[0])/1e3,D=u.easeLinearity,$=m.multiplyBy(D/S),Z=$.distanceTo([0,0]),se=Math.min(u.inertiaMaxSpeed,Z),ye=$.multiplyBy(se/Z),Fe=se/(u.inertiaDeceleration*D),Qe=ye.multiplyBy(-Fe/2).round();!Qe.x&&!Qe.y?a.fire("moveend"):(Qe=a._limitOffset(Qe,a.options.maxBounds),B(function(){a.panBy(Qe,{duration:Fe,easeLinearity:D,noMoveStart:!0,animate:!0})}))}}});st.addInitHook("addHandler","dragging",kb),st.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Cb=ei.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(r){this._map=r,this._setPanDelta(r.options.keyboardPanDelta),this._setZoomDelta(r.options.zoomDelta)},addHooks:function(){var r=this._map._container;r.tabIndex<=0&&(r.tabIndex="0"),We(r,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),bt(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 r=document.body,a=document.documentElement,u=r.scrollTop||a.scrollTop,h=r.scrollLeft||a.scrollLeft;this._map._container.focus(),window.scrollTo(h,u)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(r){var a=this._panKeys={},u=this.keyCodes,h,m;for(h=0,m=u.left.length;h<m;h++)a[u.left[h]]=[-1*r,0];for(h=0,m=u.right.length;h<m;h++)a[u.right[h]]=[r,0];for(h=0,m=u.down.length;h<m;h++)a[u.down[h]]=[0,r];for(h=0,m=u.up.length;h<m;h++)a[u.up[h]]=[0,-1*r]},_setZoomDelta:function(r){var a=this._zoomKeys={},u=this.keyCodes,h,m;for(h=0,m=u.zoomIn.length;h<m;h++)a[u.zoomIn[h]]=r;for(h=0,m=u.zoomOut.length;h<m;h++)a[u.zoomOut[h]]=-r},_addHooks:function(){We(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){bt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(r){if(!(r.altKey||r.ctrlKey||r.metaKey)){var a=r.keyCode,u=this._map,h;if(a in this._panKeys){if(!u._panAnim||!u._panAnim._inProgress)if(h=this._panKeys[a],r.shiftKey&&(h=re(h).multiplyBy(3)),u.options.maxBounds&&(h=u._limitOffset(re(h),u.options.maxBounds)),u.options.worldCopyJump){var m=u.wrapLatLng(u.unproject(u.project(u.getCenter()).add(h)));u.panTo(m)}else u.panBy(h)}else if(a in this._zoomKeys)u.setZoom(u.getZoom()+(r.shiftKey?3:1)*this._zoomKeys[a]);else if(a===27&&u._popup&&u._popup.options.closeOnEscapeKey)u.closePopup();else return;Ha(r)}}});st.addInitHook("addHandler","keyboard",Cb),st.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Pb=ei.extend({addHooks:function(){We(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){bt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(r){var a=JT(r),u=this._map.options.wheelDebounceTime;this._delta+=a,this._lastMousePos=this._map.mouseEventToContainerPoint(r),this._startTime||(this._startTime=+new Date);var h=Math.max(u-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c(this._performZoom,this),h),Ha(r)},_performZoom:function(){var r=this._map,a=r.getZoom(),u=this._map.options.zoomSnap||0;r._stop();var h=this._delta/(this._map.options.wheelPxPerZoomLevel*4),m=4*Math.log(2/(1+Math.exp(-Math.abs(h))))/Math.LN2,S=u?Math.ceil(m/u)*u:m,D=r._limitZoom(a+(this._delta>0?S:-S))-a;this._delta=0,this._startTime=null,D&&(r.options.scrollWheelZoom==="center"?r.setZoom(a+D):r.setZoomAround(this._lastMousePos,a+D))}});st.addInitHook("addHandler","scrollWheelZoom",Pb);var xY=600;st.mergeOptions({tapHold:xe.touchNative&&xe.safari&&xe.mobile,tapTolerance:15});var Db=ei.extend({addHooks:function(){We(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){bt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(r){if(clearTimeout(this._holdTimeout),r.touches.length===1){var a=r.touches[0];this._startPos=this._newPos=new x(a.clientX,a.clientY),this._holdTimeout=setTimeout(c(function(){this._cancel(),this._isTapValid()&&(We(document,"touchend",cn),We(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",a))},this),xY),We(document,"touchend touchcancel contextmenu",this._cancel,this),We(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function r(){bt(document,"touchend",cn),bt(document,"touchend touchcancel",r)},_cancel:function(){clearTimeout(this._holdTimeout),bt(document,"touchend touchcancel contextmenu",this._cancel,this),bt(document,"touchmove",this._onMove,this)},_onMove:function(r){var a=r.touches[0];this._newPos=new x(a.clientX,a.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(r,a){var u=new MouseEvent(r,{bubbles:!0,cancelable:!0,view:window,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX,clientY:a.clientY});u._simulated=!0,a.target.dispatchEvent(u)}});st.addInitHook("addHandler","tapHold",Db),st.mergeOptions({touchZoom:xe.touch,bounceAtZoomLimits:!0});var xb=ei.extend({addHooks:function(){qe(this._map._container,"leaflet-touch-zoom"),We(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ft(this._map._container,"leaflet-touch-zoom"),bt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(r){var a=this._map;if(!(!r.touches||r.touches.length!==2||a._animatingZoom||this._zooming)){var u=a.mouseEventToContainerPoint(r.touches[0]),h=a.mouseEventToContainerPoint(r.touches[1]);this._centerPoint=a.getSize()._divideBy(2),this._startLatLng=a.containerPointToLatLng(this._centerPoint),a.options.touchZoom!=="center"&&(this._pinchStartLatLng=a.containerPointToLatLng(u.add(h)._divideBy(2))),this._startDist=u.distanceTo(h),this._startZoom=a.getZoom(),this._moved=!1,this._zooming=!0,a._stop(),We(document,"touchmove",this._onTouchMove,this),We(document,"touchend touchcancel",this._onTouchEnd,this),cn(r)}},_onTouchMove:function(r){if(!(!r.touches||r.touches.length!==2||!this._zooming)){var a=this._map,u=a.mouseEventToContainerPoint(r.touches[0]),h=a.mouseEventToContainerPoint(r.touches[1]),m=u.distanceTo(h)/this._startDist;if(this._zoom=a.getScaleZoom(m,this._startZoom),!a.options.bounceAtZoomLimits&&(this._zoom<a.getMinZoom()&&m<1||this._zoom>a.getMaxZoom()&&m>1)&&(this._zoom=a._limitZoom(this._zoom)),a.options.touchZoom==="center"){if(this._center=this._startLatLng,m===1)return}else{var S=u._add(h)._divideBy(2)._subtract(this._centerPoint);if(m===1&&S.x===0&&S.y===0)return;this._center=a.unproject(a.project(this._pinchStartLatLng,this._zoom).subtract(S),this._zoom)}this._moved||(a._moveStart(!0,!1),this._moved=!0),ae(this._animRequest);var D=c(a._move,a,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=B(D,this,!0),cn(r)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,ae(this._animRequest),bt(document,"touchmove",this._onTouchMove,this),bt(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))}});st.addInitHook("addHandler","touchZoom",xb),st.BoxZoom=bb,st.DoubleClickZoom=Nb,st.Drag=kb,st.Keyboard=Cb,st.ScrollWheelZoom=Pb,st.TapHold=Db,st.TouchZoom=xb,n.Bounds=_e,n.Browser=xe,n.CRS=O,n.Canvas=Sb,n.Circle=ug,n.CircleMarker=ch,n.Class=P,n.Control=Nr,n.DivIcon=vb,n.DivOverlay=ti,n.DomEvent=j2,n.DomUtil=Z2,n.Draggable=Oo,n.Evented=W,n.FeatureGroup=Bi,n.GeoJSON=Fi,n.GridLayer=gu,n.Handler=ei,n.Icon=vl,n.ImageOverlay=ph,n.LatLng=H,n.LatLngBounds=U,n.Layer=kr,n.LayerGroup=ml,n.LineUtil=sY,n.Map=st,n.Marker=lh,n.Mixin=tY,n.Path=Io,n.Point=x,n.PolyUtil=nY,n.Polygon=gl,n.Polyline=Vi,n.Popup=_h,n.PosAnimation=QT,n.Projection=lY,n.Rectangle=Tb,n.Renderer=Yi,n.SVG=Su,n.SVGOverlay=mb,n.TileLayer=Sl,n.Tooltip=mh,n.Transformation=Oe,n.Util=he,n.VideoOverlay=_b,n.bind=c,n.bounds=N,n.canvas=wb,n.circle=mY,n.circleMarker=_Y,n.control=_u,n.divIcon=NY,n.extend=o,n.featureGroup=dY,n.geoJSON=pb,n.geoJson=yY,n.gridLayer=kY,n.icon=hY,n.imageOverlay=SY,n.latLng=ie,n.latLngBounds=k,n.layerGroup=fY,n.map=q2,n.marker=pY,n.point=re,n.polygon=gY,n.polyline=vY,n.popup=TY,n.rectangle=DY,n.setOptions=w,n.stamp=d,n.svg=Eb,n.svgOverlay=EY,n.tileLayer=gb,n.tooltip=bY,n.transformation=Ge,n.version=i,n.videoOverlay=wY;var OY=window.L;n.noConflict=function(){return window.L=OY,this},window.L=n})}($l,$l.exports)),$l.exports}var XO=KO();const Ul=jO(XO),JO=l.defineComponent({__name:"CapeRecordMap",props:{lat:{},long:{},zoom:{},icon:{}},setup(e){const t=e,n=l.ref(null);let i=null,o=null;function s(){if(i){i.setView([t.lat,t.long],t.zoom),o&&o.setLatLng([t.lat,t.long]);return}if(n.value){i=Ul.map(n.value).setView([t.lat,t.long],t.zoom),Ul.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"&copy; OpenStreetMap contributors"}).addTo(i);const c=t.icon??new Ul.Icon.Default;o=Ul.marker([t.lat,t.long],{icon:c}).addTo(i)}}return l.onMounted(()=>{s()}),l.watch(()=>[t.lat,t.long,t.zoom,t.icon],()=>{if(i){if(i.setView([t.lat,t.long],t.zoom),o){o.setLatLng([t.lat,t.long]);const c=t.icon??new Ul.Icon.Default;o.setIcon(c)}}else s()}),(c,f)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"mapRef",ref:n,class:"leaflet-map"},null,512))}}),QO={key:0,class:"cape-next-result"},eI={key:1,class:"cape-next-result cape-next-result-null"},tI=l.defineComponent({__name:"CapeNextResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in search results"}},setup(e){const t=mn(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",QO,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",eI,[l.renderSlot(o.$slots,"otherwise")]))}}}),nI={key:0,class:"cape-previous-result"},rI={key:1,class:"cape-previous-result cape-previous-result-null"},iI=l.defineComponent({__name:"CapePreviousResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=mn(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",nI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",rI,[l.renderSlot(o.$slots,"otherwise")]))}}}),oI={key:0,class:"cape-previous-record"},aI={key:1,class:"cape-previous-record cape-previous-record-null"},sI=l.defineComponent({__name:"CapePreviousRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=oi(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",oI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",aI,[l.renderSlot(o.$slots,"otherwise")]))}}}),lI={key:0,class:"cape-next-record"},cI={key:1,class:"cape-next-record cape-next-record-null"},uI=l.defineComponent({__name:"CapeNextRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in dataset"}},setup(e){const t=oi(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",lI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",cI,[l.renderSlot(o.$slots,"otherwise")]))}}}),ul=class ul{static add(t){ul.functions.push(t)}static all(){return ul.functions}static async execute(t,n){for(const i of ul.all().sort((o,s)=>o.priority-s.priority))try{await i.action(t,n)}catch(o){console.error("Error executing action:",o);return}}};Ke(ul,"functions",[]);let zl=ul;const w0={High:10,Low:1e3},Ba=class Ba{static async fetchIndexPageTitle(){if(Ba.indexHtmlTitle)return Ba.indexHtmlTitle;try{const t=await fetch("/index.html");if(!t.ok)return;const n=await t.text(),s=new DOMParser().parseFromString(n,"text/html").querySelector("title");return Ba.indexHtmlTitle=(s==null?void 0:s.text)||void 0,Ba.indexHtmlTitle}catch{return}}static async getPageTitle(t,n){const{name:i,params:o,meta:s}=t;if(i==="record"&&n.recordPageTitleExpression){const d=o==null?void 0:o.id;if(!d)throw new Error("Record ID is required but not specified.");if(Zi().status!=="OK")throw new Error("Dataset data not loaded. Cannot continue to build page title.");const v=oi().byId(d);return n.recordPageTitleExpression(v)}if(s!=null&&s.title)return s.title;const c=await this.fetchIndexPageTitle();return c||nn().title}};Ke(Ba,"indexHtmlTitle");let Ep=Ba;const fI={class:"cape-labelled-value"},dI={key:0,class:"cape-error cape-labelled-value-error"},hI=["title"],pI={key:1,class:"cape-labelled-value-label"},_I=l.defineComponent({__name:"CapeLabelledContent",props:{fieldValue:{},link:{}},setup(e){const t=e,n=l.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.field});return(i,o)=>(l.openBlock(),l.createElementBlock("div",fI,[!i.fieldValue||!n.value?(l.openBlock(),l.createElementBlock("div",dI," [Error, trying to render label for a non-existent field] ")):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[n.value.description!==void 0&&n.value.description!==""?(l.openBlock(),l.createElementBlock("div",{key:0,title:n.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},l.toDisplayString(n.value.label),9,hI)):(l.openBlock(),l.createElementBlock("div",pI,l.toDisplayString(n.value.label),1)),l.renderSlot(i.$slots,"default")],64))]))}}),mI=l.defineComponent({__name:"CapeLinkValue",props:{fieldValuePair:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>t.fieldValuePair.value),o=l.computed(()=>t.fieldValuePair.field),s=l.computed(()=>{const c="/",f={};try{n.byId(`field-${o.value.id}`).display==="advanced"&&(f.advanced="true"),f.jump="true",f[`field-${o.value.id}-mode`]="is",f[`field-${o.value.id}-term`]=`${i.value}`}catch{console.error(`Attempt to create link from field ${o.value.id} which has no related filter.`)}return{path:c,query:f}});return(c,f)=>{const d=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(d,{to:s.value},{default:l.withCtx(()=>[l.renderSlot(c.$slots,"default")]),_:3},8,["to"])}}}),vI=l.defineComponent({__name:"CapePercentageValue",props:{value:String},setup(e){const t=e,n=l.computed(()=>{if(t.value===void 0)return"";const i=parseFloat(t.value);return isNaN(i)?"":i*100+"%"});return(i,o)=>l.toDisplayString(n.value)}}),gI=l.defineComponent({__name:"CapeFixedNumericValue",props:{value:String,digits:Number},setup(e){const t=e,n=l.computed(()=>{if(t.value===void 0)return"";const i=parseFloat(t.value);return isNaN(i)?"":i.toFixed(t.digits)});return(i,o)=>l.toDisplayString(n.value)}}),yI={__name:"CapeShowAllResultsToggle",setup(e){const t=mn();return(n,i)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":i[0]||(i[0]=o=>l.unref(t).showAllResults=o),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[l.vModelCheckbox,l.unref(t).showAllResults]])}},SI={key:0,class:"cape-results-info"},wI={key:0},EI={key:1},TI={key:1,class:"cape-results-count"},bI=l.defineComponent({__name:"CapeResultsInfo",setup(e){const t=mn();return(n,i)=>l.unref(t).allResultsAreVisible?(l.openBlock(),l.createElementBlock("div",SI,[l.unref(t).visibleCount==1?(l.openBlock(),l.createElementBlock("div",wI,"Showing 1 matching record.")):(l.openBlock(),l.createElementBlock("div",EI,"Showing all "+l.toDisplayString(l.unref(t).visibleCount)+" matching records.",1))])):(l.openBlock(),l.createElementBlock("div",TI," Showing first "+l.toDisplayString(l.unref(t).visibleCount)+" of "+l.toDisplayString(l.unref(t).totalCount)+" matching records. ",1))}}),NI={class:"cape-results-count"},kI=l.defineComponent({__name:"CapeResultsCount",setup(e){const t=mn();return(n,i)=>(l.openBlock(),l.createElementBlock("span",NI,l.toDisplayString(l.unref(t).totalCount),1))}}),CI={class:"cape-filter-field-enum-is-radio"},PI={class:"form-check form-check-inline"},DI=["id"],xI=["for"],OI=["id","value"],II=["for"],RI=l.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createElementBlock("ul",CI,[l.createElementVNode("li",PI,[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-","onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).isTerm=f),type:"radio",value:""},null,8,DI),[[l.vModelRadio,l.unref(i).isTerm]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"},c[2]||(c[2]=[l.createElementVNode("em",null,"any",-1)]),8,xI)]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("li",{key:f},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-"+f,"onUpdate:modelValue":c[1]||(c[1]=d=>l.unref(i).isTerm=d),value:f,type:"radio"},null,8,OI),[[l.vModelRadio,l.unref(i).isTerm]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"+f},l.toDisplayString(f),9,II)]))),128))]))}}),LI=["aria-label"],MI=["value"],AI=l.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>l.withDirectives((l.openBlock(),l.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).isTerm=f),"aria-label":"Select "+l.unref(o).label+" value."},[c[1]||(c[1]=l.createElementVNode("option",{key:"",value:""},null,-1)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("option",{key:f,value:f},l.toDisplayString(f),9,MI))),128))],8,LI)),[[l.vModelSelect,l.unref(i).isTerm]])}}),BI={class:"cape-filter-field-enum-one-of-checkbox"},VI=["id","value"],FI=["for"],YI=l.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createElementBlock("ul",BI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("li",{key:f},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-"+f,"onUpdate:modelValue":c[0]||(c[0]=d=>l.unref(i).oneOfTerms=d),value:f,type:"checkbox"},null,8,VI),[[l.vModelCheckbox,l.unref(i).oneOfTerms]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"+f},l.toDisplayString(f),9,FI)]))),128))]))}});function Tp(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function $I(e){return(...t)=>!e(...t)}function UI(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function zI(e){return e.filter(t=>!t.$isLabel)}function bp(e,t){return n=>n.reduce((i,o)=>o[e]&&o[e].length?(i.push({$groupLabel:o[t],$isLabel:!0}),i.concat(o[e])):i,[])}const E0=(...e)=>t=>e.reduce((n,i)=>i(n),t);var HI={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return Tp(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?bp(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter($I(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return E0(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),bp(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return E0(bp(this.groupValues,this.groupLabel),zI)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Tp(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Tp(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(o=>o[this.trackBy]):t[this.groupValues],i=this.internalValue.filter(o=>n.indexOf(this.trackBy?o[this.trackBy]:o)===-1);this.$emit("update:modelValue",i)}else{const n=t[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const i=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,t,n,i){return t?e.filter(o=>UI(i(o,n),t)).sort((o,s)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(o,s):i(o,n).length-i(s,n).length):e},filterGroups(e,t,n,i,o){return s=>s.map(c=>{if(!c[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const f=this.filterOptions(c[n],e,t,o);return f.length?{[i]:c[i],[n]:f}:[]})}}},WI={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(i=>i[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},T0={name:"vue-multiselect",mixins:[HI,WI],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const ZI=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],GI={ref:"tags",class:"multiselect__tags"},jI={class:"multiselect__tags-wrap"},qI=["textContent"],KI=["onKeypress","onMousedown"],XI=["textContent"],JI={class:"multiselect__spinner"},QI=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],eR=["id","aria-multiselectable"],tR={key:0},nR={class:"multiselect__option"},rR=["aria-selected","id","role"],iR=["onClick","onMouseenter","data-select","data-selected","data-deselect"],oR=["data-select","data-deselect","onMouseenter","onMousedown"],aR={class:"multiselect__option"},sR={class:"multiselect__option"};function lR(e,t,n,i,o,s){return l.openBlock(),l.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:l.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":s.isAbove,"multiselect--has-options-group":s.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=c=>e.activate()),onBlur:t[15]||(t[15]=c=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=l.withKeys(l.withModifiers(c=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=l.withKeys(l.withModifiers(c=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=l.withKeys(l.withModifiers(c=>e.addPointerElement(c),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=l.withKeys(c=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[l.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[l.createElementVNode("div",{onMousedown:t[0]||(t[0]=l.withModifiers(c=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),l.renderSlot(e.$slots,"clear",{search:e.search}),l.createElementVNode("div",GI,[l.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:s.visibleValues,isOpen:e.isOpen},()=>[l.withDirectives(l.createElementVNode("div",jI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.visibleValues,(c,f)=>l.renderSlot(e.$slots,"tag",{option:c,search:e.search,remove:e.removeElement},()=>[(l.openBlock(),l.createElementBlock("span",{class:"multiselect__tag",key:f,onMousedown:t[1]||(t[1]=l.withModifiers(()=>{},["prevent"]))},[l.createElementVNode("span",{textContent:l.toDisplayString(e.getOptionLabel(c))},null,8,qI),l.createElementVNode("i",{tabindex:"1",onKeypress:l.withKeys(l.withModifiers(d=>e.removeElement(c),["prevent"]),["enter"]),onMousedown:l.withModifiers(d=>e.removeElement(c),["prevent"]),class:"multiselect__tag-icon"},null,40,KI)],32))])),256))],512),[[l.vShow,s.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?l.renderSlot(e.$slots,"limit",{key:0},()=>[l.createElementVNode("strong",{class:"multiselect__strong",textContent:l.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,XI)]):l.createCommentVNode("v-if",!0)]),l.createVNode(l.Transition,{name:"multiselect__loading"},{default:l.withCtx(()=>[l.renderSlot(e.$slots,"loading",{},()=>[l.withDirectives(l.createElementVNode("div",JI,null,512),[[l.vShow,n.loading]])])]),_:3}),e.searchable?(l.openBlock(),l.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:s.isRequired,style:l.normalizeStyle(s.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=c=>e.updateSearch(c.target.value)),onFocus:t[3]||(t[3]=l.withModifiers(c=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=l.withModifiers(c=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=l.withKeys(c=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=l.withKeys(l.withModifiers(c=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=l.withKeys(l.withModifiers(c=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=l.withKeys(l.withModifiers(c=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=l.withKeys(l.withModifiers(c=>e.addPointerElement(c),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,QI)):l.createCommentVNode("v-if",!0),s.isSingleLabelVisible?(l.openBlock(),l.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=l.withModifiers((...c)=>e.toggle&&e.toggle(...c),["prevent"]))},[l.renderSlot(e.$slots,"singleLabel",{option:s.singleValue},()=>[l.createTextVNode(l.toDisplayString(e.currentOptionLabel),1)])],32)):l.createCommentVNode("v-if",!0),s.isPlaceholderVisible?(l.openBlock(),l.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=l.withModifiers((...c)=>e.toggle&&e.toggle(...c),["prevent"]))},[l.renderSlot(e.$slots,"placeholder",{},()=>[l.createTextVNode(l.toDisplayString(e.placeholder),1)])],32)):l.createCommentVNode("v-if",!0)],512),l.createVNode(l.Transition,{name:"multiselect",persisted:""},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...c)=>e.activate&&e.activate(...c)),tabindex:"-1",onMousedown:t[13]||(t[13]=l.withModifiers(()=>{},["prevent"])),style:l.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[l.createElementVNode("ul",{class:"multiselect__content",style:l.normalizeStyle(s.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[l.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(l.openBlock(),l.createElementBlock("li",tR,[l.createElementVNode("span",nR,[l.renderSlot(e.$slots,"maxElements",{},()=>[l.createTextVNode("Maximum of "+l.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):l.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(e.filteredOptions,(c,f)=>(l.openBlock(),l.createElementBlock("li",{class:"multiselect__element",key:f,"aria-selected":e.isSelected(c),id:e.id+"-"+f,role:c&&(c.$isLabel||c.$isDisabled)?null:"option"},[c&&(c.$isLabel||c.$isDisabled)?l.createCommentVNode("v-if",!0):(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass([e.optionHighlight(f,c),"multiselect__option"]),onClick:l.withModifiers(d=>e.select(c),["stop"]),onMouseenter:l.withModifiers(d=>e.pointerSet(f),["self"]),"data-select":c&&c.isTag?e.tagPlaceholder:s.selectLabelText,"data-selected":s.selectedLabelText,"data-deselect":s.deselectLabelText},[l.renderSlot(e.$slots,"option",{option:c,search:e.search,index:f},()=>[l.createElementVNode("span",null,l.toDisplayString(e.getOptionLabel(c)),1)])],42,iR)),c&&(c.$isLabel||c.$isDisabled)?(l.openBlock(),l.createElementBlock("span",{key:1,"data-select":e.groupSelect&&s.selectGroupLabelText,"data-deselect":e.groupSelect&&s.deselectGroupLabelText,class:l.normalizeClass([e.groupHighlight(f,c),"multiselect__option"]),onMouseenter:l.withModifiers(d=>e.groupSelect&&e.pointerSet(f),["self"]),onMousedown:l.withModifiers(d=>e.selectGroup(c),["prevent"])},[l.renderSlot(e.$slots,"option",{option:c,search:e.search,index:f},()=>[l.createElementVNode("span",null,l.toDisplayString(e.getOptionLabel(c)),1)])],42,oR)):l.createCommentVNode("v-if",!0)],8,rR))),128)):l.createCommentVNode("v-if",!0),l.withDirectives(l.createElementVNode("li",null,[l.createElementVNode("span",aR,[l.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=l.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[l.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),l.withDirectives(l.createElementVNode("li",null,[l.createElementVNode("span",sR,[l.renderSlot(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=l.createTextVNode("List is empty."))])])],512),[[l.vShow,n.showNoOptions&&(e.options.length===0||s.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),l.renderSlot(e.$slots,"afterList")],12,eR)],36),[[l.vShow,e.isOpen]])]),_:3})],42,ZI)}T0.render=lR;const cR=l.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createBlock(l.unref(T0),{id:"filter-multiselect-"+l.unref(o).id,modelValue:l.unref(i).oneOfTerms,"onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).oneOfTerms=f),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:l.unref(o).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),uR={};function fR(e,t){const n=l.resolveComponent("cape-version");return l.openBlock(),l.createElementBlock("p",null,[t[0]||(t[0]=l.createTextVNode(" This website uses pure Javascript to provide interaction with a JSON datafile which contains the records and site configuration. It does not require any database or PHP -- all the searching is done using javascript inside the single page. This toolkit is called ")),t[1]||(t[1]=l.createElementVNode("i",null,"CAPE",-1)),t[2]||(t[2]=l.createTextVNode(". CAPE will be reused for similar projects in future. CAPE was created by the ")),t[3]||(t[3]=l.createElementVNode("a",{href:"https://ras.soton.ac.uk/"},"Research Application Support",-1)),t[4]||(t[4]=l.createTextVNode(" team at the ")),t[5]||(t[5]=l.createElementVNode("a",{href:"https://www.southampton.ac.uk/"},"University of Southampton",-1)),t[6]||(t[6]=l.createTextVNode(", UK. This site uses Cape ")),l.createVNode(n),t[7]||(t[7]=l.createTextVNode(". "))])}const dR=ji(uR,[["render",fR]]),hR={},pR={class:"border border-black p-1 fixed right-1 top-1"};function _R(e,t){return l.openBlock(),l.createElementBlock("div",pR,t[0]||(t[0]=[l.createStaticVNode('<span class="block sm:hidden">&lt;sm</span><span class="hidden sm:block md:hidden">sm</span><span class="hidden md:block lg:hidden">md</span><span class="hidden lg:block xl:hidden">lg</span><span class="hidden xl:block 2xl:hidden">xl</span><span class="hidden 2xl:block">2xl+</span>',6)]))}const mR=ji(hR,[["render",_R]]),vR="3.5.0",gR={class:"cape-plugin-version"},yR=l.defineComponent({__name:"CapeVersion",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("span",gR,"v"+l.toDisplayString(l.unref(vR)),1))}}),SR={class:"cape-content-page"},wR=["href"],ER=["href"],TR={key:0},bR={key:0},NR=["href"],kR=l.defineComponent({__name:"CapeAboutPage",setup(e){const{metadata:t}=nn();return(n,i)=>{var p,_,v,y,g,E,w,T,b,C,M,z,G,oe,R;const o=l.resolveComponent("cape-record-count"),s=l.resolveComponent("cape-download-json-button"),c=l.resolveComponent("cape-download-csv-button"),f=l.resolveComponent("cape-software"),d=l.resolveComponent("cape-fields-table");return l.openBlock(),l.createElementBlock("div",SR,[i[8]||(i[8]=l.createElementVNode("h2",null,"About the data",-1)),l.createElementVNode("p",null,[i[0]||(i[0]=l.createTextVNode(" This dataset has been created and shared with the intention it should be reused. The dataset contains ")),l.createVNode(o),i[1]||(i[1]=l.createTextVNode(" records. The fields in the dataset are described below. "))]),l.createElementVNode("p",null,[i[2]||(i[2]=l.createTextVNode(" This data is copyright ")),l.createElementVNode("a",{href:(_=(p=l.unref(t))==null?void 0:p.copyright)==null?void 0:_.url},l.toDisplayString(((y=(v=l.unref(t))==null?void 0:v.copyright)==null?void 0:y.title)??"MISSING DATA"),9,wR),i[3]||(i[3]=l.createTextVNode(" and may be reused under the ")),l.createElementVNode("a",{href:(E=(g=l.unref(t))==null?void 0:g.license)==null?void 0:E.url},l.toDisplayString(((T=(w=l.unref(t))==null?void 0:w.license)==null?void 0:T.title)??"MISSING DATA"),9,ER),i[4]||(i[4]=l.createTextVNode(" license. "))]),(b=l.unref(t))!=null&&b.creators?(l.openBlock(),l.createElementBlock("p",TR,[i[5]||(i[5]=l.createTextVNode(" This dataset was created by ")),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(t).creators,(F,Q)=>{var A;return l.openBlock(),l.createElementBlock("span",{key:Q},[l.createElementVNode("span",null,l.toDisplayString(F.name),1),Q+1<((A=l.unref(t).creators)==null?void 0:A.length)?(l.openBlock(),l.createElementBlock("span",bR,", ")):l.createCommentVNode("",!0)])}),128)),i[6]||(i[6]=l.createTextVNode(". "))])):l.createCommentVNode("",!0),l.createElementVNode("p",null,[l.createTextVNode(' If using this data, please attribute it as "'+l.toDisplayString(((M=(C=l.unref(t))==null?void 0:C.attribution)==null?void 0:M.title)??"MISSING DATA")+'" with a link to ',1),l.createElementVNode("a",{href:(G=(z=l.unref(t))==null?void 0:z.attribution)==null?void 0:G.url},l.toDisplayString(((R=(oe=l.unref(t))==null?void 0:oe.attribution)==null?void 0:R.url)??"MISSING DATA"),9,NR),i[7]||(i[7]=l.createTextVNode(". "))]),l.createElementVNode("p",null,[l.createVNode(s,{style:{"margin-right":"1rem"}}),l.createVNode(c)]),i[9]||(i[9]=l.createElementVNode("h2",null,"About this software",-1)),l.createVNode(f),i[10]||(i[10]=l.createElementVNode("h2",null,"Schema",-1)),i[11]||(i[11]=l.createElementVNode("p",null," Field types may be text, date, integer or enum. An enum field is short for enumerated, which means a limited set of terms rather than free text. ",-1)),l.createVNode(d)])}}}),CR=l.defineComponent({__name:"CapeSummaryCard",props:{record:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-value"),o=l.resolveComponent("cape-record-link");return l.openBlock(),l.createBlock(o,{class:"cape-summary-card block bg-blue-100 py-2 px-4 my-1",record:t.record},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(i,{"field-value":t.record.record_number},null,8,["field-value"]),n[0]||(n[0]=l.createTextVNode(" - ")),l.createVNode(i,{"field-value":t.record.title},null,8,["field-value"]),n[1]||(n[1]=l.createTextVNode(" - ")),l.createVNode(i,{"field-value":t.record.date},null,8,["field-value"])])]),_:1},8,["record"])}}}),PR={class:"cape-navigation"},DR={class:"cape-navigation-items"},xR={class:"cape-navigation-item"},OR=l.defineComponent({__name:"CapeNavigation",setup(e){const t=nn(),n=l.computed(()=>t.pages);return(i,o)=>{const s=l.resolveComponent("router-link"),c=l.resolveComponent("router-view");return l.openBlock(),l.createElementBlock("div",PR,[l.createElementVNode("nav",null,[l.createElementVNode("ul",DR,[l.createElementVNode("li",xR,[l.createVNode(s,{class:"cape-navigation-link",to:"/"},{default:l.withCtx(()=>o[0]||(o[0]=[l.createTextVNode("Search")])),_:1,__:[0]})]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,f=>(l.openBlock(),l.createElementBlock("li",{class:"cape-navigation-item",key:f.path},[l.createVNode(s,{class:"cape-navigation-link",to:f.path},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(f.label),1)]),_:2},1032,["to"])]))),128))])]),l.createElementVNode("main",null,[l.createVNode(c)])])}}}),IR={class:"cape-record-card bg-blue-100 py-2 px-4"},RR={class:"text-xl border-black border-b mb-4"},LR={class:"border-b mb-4 pb-4 border-b-black"},MR={class:"md:grid md:grid-cols-2 md:gap-4"},AR={class:"border-b mb-4 pb-4 border-b-black"},BR={class:"md:grid md:grid-cols-2 md:gap-4"},VR={class:"md:grid md:grid-cols-2 md:gap-4"},FR={class:"mb-5"},YR=l.defineComponent({__name:"CapeRecordCard",props:{record:{},previousInDataset:{},nextInDataset:{},previousInResults:{},nextInResults:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-previous-result"),o=l.resolveComponent("cape-next-result"),s=l.resolveComponent("cape-previous-record"),c=l.resolveComponent("cape-next-record"),f=l.resolveComponent("cape-labelled-value");return l.openBlock(),l.createElementBlock("div",IR,[l.createElementVNode("h2",RR,"RecordCard Placeholder ID: "+l.toDisplayString(t.record.record_number.value),1),l.createElementVNode("div",LR,[l.createElementVNode("div",MR,[l.createVNode(i,{record:t.record},{before:l.withCtx(()=>n[0]||(n[0]=[l.createTextVNode("← ")])),otherwise:l.withCtx(()=>n[1]||(n[1]=[l.createTextVNode("[start of results]")])),_:1},8,["record"]),l.createVNode(o,{record:t.record,class:"text-right"},{after:l.withCtx(()=>n[2]||(n[2]=[l.createTextVNode(" →")])),otherwise:l.withCtx(()=>n[3]||(n[3]=[l.createTextVNode("[end of results]")])),_:1},8,["record"])])]),l.createElementVNode("div",AR,[l.createElementVNode("div",BR,[l.createVNode(s,{record:t.record},{before:l.withCtx(()=>n[4]||(n[4]=[l.createTextVNode("← ")])),otherwise:l.withCtx(()=>n[5]||(n[5]=[l.createTextVNode("[start of dataset]")])),_:1},8,["record"]),l.createVNode(c,{record:t.record,class:"text-right"},{after:l.withCtx(()=>n[6]||(n[6]=[l.createTextVNode(" →")])),otherwise:l.withCtx(()=>n[7]||(n[7]=[l.createTextVNode("[end of dataset]")])),_:1},8,["record"])])]),l.createElementVNode("div",VR,[l.createElementVNode("ul",FR,[l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.record_number},null,8,["field-value"])]),l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.title},null,8,["field-value"])]),l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.date},null,8,["field-value"])])]),n[8]||(n[8]=l.createElementVNode("div",null," Column 2 ",-1))])])}}}),$R={};function UR(e,t){const n=l.resolveComponent("cape-page-width-indicator"),i=l.resolveComponent("cape-non-prod-warning");return l.openBlock(),l.createElementBlock("header",null,[l.createVNode(n),t[0]||(t[0]=l.createElementVNode("h1",{class:"text-4xl"},[l.createElementVNode("a",{href:"/",id:"service-title"},"CAPE")],-1)),l.createVNode(i)])}const zR=ji($R,[["render",UR]]),HR={class:"mt-10 py-5 px-4 bg-gray-700 text-white flex items-center justify-between"},WR={class:"text-left"},ZR=["href"],GR={class:"text-right"},jR={__name:"CapeFooter",setup(e){const{metadata:t}=nn();return(n,i)=>{var s,c,f,d;const o=l.resolveComponent("cape-version");return l.openBlock(),l.createElementBlock("footer",HR,[l.createElementVNode("div",WR,[i[0]||(i[0]=l.createTextVNode(" © ")),l.createElementVNode("a",{href:(c=(s=l.unref(t))==null?void 0:s.copyright)==null?void 0:c.url},l.toDisplayString(((d=(f=l.unref(t))==null?void 0:f.copyright)==null?void 0:d.title)??"MISSING COPYRIGHT METADATA"),9,ZR)]),i[2]||(i[2]=l.createElementVNode("div",{class:"text-center"},null,-1)),l.createElementVNode("div",GR,[i[1]||(i[1]=l.createTextVNode(" Powered by Cape ")),l.createVNode(o)])])}}},qR={class:"cape-record-label"},KR=l.defineComponent({__name:"CapeRecordLabel",props:{record:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-value");return l.openBlock(),l.createElementBlock("span",qR,[l.createVNode(i,{"field-value":t.record.title},null,8,["field-value"]),n[0]||(n[0]=l.createTextVNode(" # ")),l.createVNode(i,{"field-value":t.record.record_number},null,8,["field-value"])])}}}),XR={class:"cape-filter-controls cape-filter-controls-top"},JR={class:"cape-advanced-search-toggle-control switch switch-sm"},QR={key:0,class:"cape-filter-controls cape-filter-controls-bottom"},eL={class:"cape-advanced-search-toggle-control switch switch-sm"},tL=l.defineComponent({__name:"CapeHomepageLayout",setup(e){const t=Yt(),n=l.computed(()=>t.showAdvanced);return(i,o)=>{const s=l.resolveComponent("cape-intro"),c=l.resolveComponent("cape-advanced-search-toggle"),f=l.resolveComponent("cape-form-reset-button"),d=l.resolveComponent("cape-filters"),p=l.resolveComponent("cape-results");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(s),l.createElementVNode("div",XR,[l.createElementVNode("div",JR,[l.createVNode(c,{id:"cape-advanced-search-toggle-top"}),o[0]||(o[0]=l.createElementVNode("label",{for:"cape-advanced-search-toggle-top"},"Advanced Search",-1))]),l.createVNode(f)]),l.createElementVNode("div",null,[l.createVNode(d)]),n.value?(l.openBlock(),l.createElementBlock("div",QR,[l.createElementVNode("div",eL,[l.createVNode(c,{id:"cape-advanced-search-toggle-bottom"}),o[1]||(o[1]=l.createElementVNode("label",{for:"cape-advanced-search-toggle-bottom"},"Advanced Search",-1))]),l.createVNode(f)])):l.createCommentVNode("",!0),l.createElementVNode("div",null,[l.createVNode(p)])],64)}}}),nL={},rL={class:"cape-intro mb-10"};function iL(e,t){const n=l.resolveComponent("cape-record-count");return l.openBlock(),l.createElementBlock("p",rL,[t[0]||(t[0]=l.createElementVNode("strong",null,"Your intro text goes here.",-1)),t[1]||(t[1]=l.createTextVNode(" This repository contains ")),l.createVNode(n),t[2]||(t[2]=l.createTextVNode(" records. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas facilisis feugiat nunc vel interdum. Duis vehicula congue imperdiet. Vivamus sit amet lacus lectus. Proin nec placerat eros, nec eleifend sapien. Suspendisse in ante placerat, sodales arcu id, ornare odio. (component version) "))])}const oL=ji(nL,[["render",iL]]),aL=l.defineComponent({name:"CapeAboutPage",template:"#templateCapeAbout",computed:{metadata(){return nn().metadata}}}),sL={template:"#templateCapeSummaryCard",props:["record"]},lL={template:"#templateCapeNavigation",computed:{...Vh(nn,["pages"])}},cL={template:"#templateCapeRecordCard",props:["record","previousInDataset","nextInDataset","previousInResults","nextInResults"]},uL={template:"#templateCapeHeader"},fL={template:"#templateCapeFooter"},dL={template:"#templateCapeRecordLabel",props:["record"]},hL={template:"#templateCapeHomepageLayout",computed:{...Vh(Yt,["showAdvanced"]),...Vh(mn,{hasMatches:e=>e.totalCount>0})}},b0={install:function(e,t){e.use(Nk());const n=this.makeComponentMap(t);this.registerComponents(e,n),nn().setOptions(t),this.registerRoutes(e,t.pages,$h);const o=async s=>{const c=await Ep.getPageTitle(s,t);c&&(document.title=c)};zl.add({priority:w0.High,action:o}),$h.afterEach(async(s,c)=>{Zi().onLoaded(async()=>{await zl.execute(s,c)})}),e.use($h)},registerRoutes:function(e,t,n){n.addRoute({name:"root",path:"/",component:e.component("CapeHomePage")}),n.addRoute({name:"record",path:"/record/:id",component:e.component("CapeRecordPage")}),t!==void 0&&l.toRaw(t).forEach(i=>{const o={path:i.path,component:e.component(i.component)};i.title&&(o.meta={title:i.title}),n.addRoute(o)})},registerComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},makeComponentMap(e){const t=this.builtInComponentsMap();if(e.useInlineTemplate&&(t.CapeAboutPage=aL,t.CapeFooter=fL,t.CapeHeader=uL,t.CapeHomepageLayout=hL,t.CapeNavigation=lL,t.CapeRecordCard=cL,t.CapeRecordLabel=dL,t.CapeSummaryCard=sL),e.additionalComponents!==void 0)for(const[n,i]of Object.entries(e.additionalComponents))t[n]=i;return t},builtInComponentsMap(){return{CapeFilterFieldDate:kO,CapeFilterFieldEnum:uO,CapeFilterFieldEnumIsRadio:RI,CapeFilterFieldEnumIsSelect:AI,CapeFilterFieldEnumOneOfCheckbox:YI,CapeFilterFieldEnumOneOfMultiselect:cR,CapeFilterFieldInteger:gO,CapeFilterFieldText:W1,CapeFilterFreeText:K1,CapeAboutPage:kR,CapeFooter:jR,CapeHeader:zR,CapeHomepageLayout:tL,CapeIntro:oL,CapeNavigation:OR,CapeRecordCard:YR,CapeRecordLabel:KR,CapeSummaryCard:CR,CapeAdvancedSearchToggle:aC,CapeFilters:lC,CapeFormResetButton:cC,CapeResults:DC,CapeResultsControls:OO,CapeGoTopResults:IO,CapeExternalLinkValue:LO,CapeResultsCount:kI,CapeResultsInfo:bI,CapeShowAllResultsToggle:yI,CapeSortOrder:oO,CapeDownloadCsvButton:VO,CapeDownloadJsonButton:UO,CapeFieldsTable:WO,CapeFixedNumericValue:gI,CapeLabelledContent:_I,CapeLabelledValue:AC,CapeLinkValue:mI,CapeNextRecord:uI,CapeNextResult:tI,CapePercentageValue:vI,CapePreviousRecord:sI,CapePreviousResult:iI,CapeRecordCount:oC,CapeRecordLink:GO,CapeRecordMap:JO,CapeSingleValue:V1,CapeSoftware:dR,CapeValue:MC,CapeVersion:yR,CapeHomePage:fC,CapeLoadError:pC,CapeLoading:gC,CapeNonProdWarning:TC,CapePageWidthIndicator:mR,CapeRecordPage:kC,CapeRoot:rC}}},pL={};function _L(e,t){const n=l.resolveComponent("CapeHeader"),i=l.resolveComponent("CapeRoot"),o=l.resolveComponent("CapeLoading"),s=l.resolveComponent("CapeFooter");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(n),(l.openBlock(),l.createBlock(l.Suspense,null,{default:l.withCtx(()=>[l.createVNode(i)]),fallback:l.withCtx(()=>[l.createVNode(o)]),_:1})),l.createVNode(s)],64)}const mL=ji(pL,[["render",_L]]),vL=e=>{const t=l.createApp(mL);return t.use(b0,e),t},Li=class Li{static register(t){Li.loggers.push(t)}static clear(){Li.loggers=[]}static debug(t,n){Li.loggers.forEach(i=>i.debug(t,n))}static info(t,n){Li.loggers.forEach(i=>i.info(t,n))}static warn(t,n){Li.loggers.forEach(i=>i.warn(t,n))}static error(t,n){Li.loggers.forEach(i=>i.error(t,n))}};Ke(Li,"loggers",[]);let Hl=Li;var Dn=(e=>(e[e.Debug=3]="Debug",e[e.Info=2]="Info",e[e.Warn=1]="Warn",e[e.Error=0]="Error",e))(Dn||{});class gL{constructor(t){this.loggingLevel=t}debug(t,n){this.loggingLevel>=Dn.Debug&&console.debug(t,n??"")}info(t,n){this.loggingLevel>=Dn.Info&&console.info(t,n??"")}warn(t,n){this.loggingLevel>=Dn.Warn&&console.warn(t,n??"")}error(t,n){this.loggingLevel>=Dn.Error&&console.error(t,n??"")}}const yL={install:function(e,t){const n=new gL(t.loggingLevel);Hl.register(n)}};class SL{constructor(t,n){this.loggingLevel=t,this.appInsights=n}debug(t,n){this.loggingLevel>=Dn.Debug&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Debug}})}info(t,n){this.loggingLevel>=Dn.Info&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Info}})}warn(t,n){this.loggingLevel>=Dn.Warn&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Warn}})}error(t,n){this.loggingLevel>=Dn.Error&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Error}})}}/*! https://github.com/nevware21/ts-utils v0.12.4 */function xn(e,t){return e||t}function xt(e,t){return e[t]}var vn=void 0,qt=null,Np="",ef="function",Wl="object",_i="prototype",tf="__proto__",Yo="undefined",nf="constructor",kp="Symbol",fs="length",rf="name",rn="call",Zl="toString",Cp="getOwnPropertyDescriptor",gn=xn(Object),Pp=xt(gn,_i),N0=xn(String),$o=xt(N0,_i),Gl=xn(Math),k0=xn(Array),of=xt(k0,_i),mi=xt(of,"slice"),C0="_polyfill",P0="__nw21$polytype__";function Ot(e,t){try{return{v:e.apply(this,t)}}catch(n){return{e:n}}}function wL(e,t,n){var i=Ot(e,n);return i.e?t:i.v}var Dp;function af(e){return function(t){return typeof t===e}}function D0(e){var t="[object "+e+"]";return function(n){return!!(n&&EL(n)===t)}}function EL(e){return Pp[Zl].call(e)}function It(e){return typeof e===Yo||e===Yo}function TL(e){return e===vn}function ce(e){return e===qt||It(e)}function xp(e){return e===qt||e===vn}function bL(e){return!!e||e!==vn}function NL(e){return!Dp&&(Dp=["string","number","boolean",Yo,"symbol","bigint"]),e!==Wl&&Dp.indexOf(e)!==-1}var Re=af("string"),Le=af(ef);function On(e){return!e&&ce(e)?!1:!!e&&typeof e===Wl}var $e=xt(k0,"isArray"),kL=D0("Date"),jl=af("number"),x0=af("boolean"),Op=D0("Error");function Ji(e){return!!(e&&e.then&&Le(e.then))}function sf(e){return!(!e||wL(function(){return!(e&&0+e)},!e))}function Ip(){}function CL(){return!1}var yn=xn(N0),PL="[object Error]";function Te(e,t){var n=Np,i=Pp[Zl][rn](e);i===PL&&(e={stack:yn(e.stack),message:yn(e.message),name:yn(e.name)});try{n=JSON.stringify(e,qt,t?typeof t=="number"?t:4:vn),n=(n?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):qt)||yn(e)}catch(o){n=" - "+Te(o,t)}return i+": "+n}function Bn(e){throw new Error(e)}function Ir(e){throw new TypeError(e)}function lf(e){xp(e)&&Ir("Cannot convert undefined or null to object")}function DL(e){Re(e)||Ir("'"+Te(e)+"' is not a string")}function qn(e,t){return!!e&&Pp.hasOwnProperty[rn](e,t)}var xL=xn(xt(gn,Cp),Ip),Qi=xn(xt(gn,"hasOwn"),OL);function OL(e,t){return lf(e),qn(e,t)||!!xL(e,t)}function Xe(e,t,n){if(e&&(On(e)||Le(e))){for(var i in e)if(Qi(e,i)&&t[rn](e,i,e[i])===-1)break}}function Se(e,t,n){if(e)for(var i=e[fs]>>>0,o=0;o<i&&!(o in e&&t[rn](e,e[o],o,e)===-1);o++);}var Uo=cf;function cf(e,t,n){var i=t?t[e]:qt;return function(o){var s=(o?o[e]:qt)||i;if(s||n){var c=arguments;return(s||n).apply(o,s?mi[rn](c,1):c)}Ir('"'+yn(e)+'" not defined for '+Te(o))}}function IL(e){return function(t){return t[e]}}var RL=xn(xt(gn,Cp),Ip),uf={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function LL(e){var t={};if(t[uf.c]=!0,t[uf.e]=!0,e.l){t.get=function(){return e.l.v};var n=RL(e.l,"v");n&&n.set&&(t.set=function(i){e.l.v=i})}return Xe(e,function(i,o){t[uf[i]]=TL(o)?t[uf[i]]:o}),t}var vi=xt(gn,"defineProperty"),ML=xt(gn,"defineProperties");function tt(e,t,n){return vi(e,t,LL(n))}function O0(e,t,n,i,o){var s={};return Xe(e,function(c,f){ff(s,c,t?f:c),ff(s,f,c)}),i?i(s):s}function ff(e,t,n,i){vi(e,t,{value:n,enumerable:!0,writable:!1})}var AL=xn(xt(gn,"isFrozen"),CL),I0=xt(gn,"freeze");function BL(e){return e}function VL(e){return lf(e),e[tf]||qt}var Rp=xt(gn,"assign"),gi=xt(gn,"keys");function R0(e,t){if(($e(e)||On(e)||Le(e))&&!AL(e)){for(var n=0;n<t.length;n++)if(t[n]===e)return e;t.push(e),Xe(e,function(i,o){R0(o,t)}),pr(e)}return e}function ql(e){return I0?R0(e,[]):e}var pr=xn(I0,BL),Lp=xn(xt(gn,"getPrototypeOf"),VL);function FL(e){return O0(e,1,0,pr)}function YL(e){return O0(e,0,0,pr)}function $L(e){var t={};return Xe(e,function(n,i){ff(t,n,i[1]),ff(t,i[0],i[1])}),pr(t)}function UL(e){return $L(e)}var L0=YL({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),M0="__tsUtils$gblCfg",Mp;function A0(){var e;return typeof globalThis!==Yo&&(e=globalThis),!e&&typeof self!==Yo&&(e=self),!e&&typeof window!==Yo&&(e=window),!e&&typeof global!==Yo&&(e=global),e}function df(){if(!Mp){var e=Ot(A0).v||{};Mp=e[M0]=e[M0]||{}}return Mp}var B0=xt(Gl,"min"),Kl=xt(Gl,"max"),V0=Uo("slice",$o),Rr=Uo("substring",$o),eo=cf("substr",$o,zL);function zL(e,t,n){return lf(e),n<0?Np:(t=t||0,t<0&&(t=Kl(t+e[fs],0)),It(n)?V0(e,t):V0(e,t,t+n))}function Ap(e,t){return Rr(e,0,t)}function HL(e,t){return e&&(Ot(function(){e[C0]=!0,e[P0]=t}),Ot(tt,[e,C0,{v:!0,w:!1,e:!1}]),Ot(tt,[e,P0,{v:t,w:!1,e:!1}])),e}var yi=xn(xt(gn,"create"),WL);function WL(e,t){var n=null;function i(){}if(xp(e))n={};else{var o=typeof e;o!==Wl&&o!==ef&&Ir("Prototype must be an Object or function: "+Te(e)),i[_i]=e,Ot(function(){i[tf]=e}),n=new i}return t&&Ot(ML,[n,t]),n}function _r(){return(Date.now||ZL)()}function ZL(){return new Date().getTime()}function zo(e,t,n){return e.apply(t,n)}var $t;function to(){$t=df()}function F0(e,t){var n={};return!$t&&to(),n.b=$t.lzy,vi(n,"v",{configurable:!0,get:function(){var i=zo(e,null,t);return $t.lzy||vi(n,"v",{value:i}),n.b=$t.lzy,i}}),n}var GL=xt(Gl,"random"),jL=F0(function(){for(var e=_r().toString(36).slice(2);e.length<16;)e+=GL().toString(36).slice(2);return e=e.substring(0,16),e}),Y0="_urid",qL="$nw21sym",Bp,KL=0;function XL(){if(!Bp){var e=df();Bp=e.gblSym=e.gblSym||{k:{},s:{}}}return Bp}var hf;function Vp(e){var t="_"+KL+++"_"+jL.v,n=kp+"("+e+")";function i(s,c){tt(o,s,{v:c,e:!1,w:!1})}var o=yi(null);return i("description",yn(e)),i(Zl,function(){return n+qL+t}),i("valueOf",function(){return o}),i("v",n),i("_uid",t),HL(o,"symbol")}function JL(e){var t=XL();if(!Qi(t.k,e)){var n=Vp(e),i=gi(t.s).length;n[Y0]=function(){return i+"_"+n[Zl]()},t.k[e]=n,t.s[n[Y0]()]=yn(e)}return t.k[e]}function QL(e){!hf&&(hf={});var t,n=L0[e];return n&&(t=hf[n]=hf[n]||Vp(kp+"."+n)),t}function Kn(e){return vi({toJSON:function(){return e}},"v",{value:e})}var $0="window",Xl;function ds(e,t){var n;return function(){return!$t&&to(),(!n||$t.lzy)&&(n=Kn(Ot(e,t).v)),n.v}}function Xn(e){return!$t&&to(),(!Xl||e===!1||$t.lzy)&&(Xl=Kn(Ot(A0).v||qt)),Xl.v}function Ct(e,t){var n;if(!Xl||t===!1?n=Xn(t):n=Xl.v,n&&n[e])return n[e];if(e===$0)try{return window}catch{}return qt}function U0(){return!!on()}var on=ds(Ct,["document"]);function pf(){return!!Vn()}var Vn=ds(Ct,[$0]);function eM(){return!!Lr()}var Lr=ds(Ct,["navigator"]);function tM(){return!!z0()}var z0=ds(Ct,["history"]),nM=ds(function(){return!!Ot(function(){return process&&(process.versions||{}).node}).v}),H0=ds(function(){return!!Ot(function(){return self&&self instanceof WorkerGlobalScope}).v}),hs,Fp;function _f(){return hs=Kn(Ot(Ct,[kp]).v),hs}function rM(e){var t=($t.lzy?0:hs)||_f();return t.v?t.v[e]:vn}function iM(){return!!oM()}function oM(){return!$t&&to(),(($t.lzy?0:hs)||_f()).v}function Yp(e,t){var n=L0[e];!$t&&to();var i=($t.lzy?0:hs)||_f();return i.v?i.v[n||e]:QL(e)}function Jl(e,t){!$t&&to();var n=($t.lzy?0:hs)||_f();return n.v?n.v(e):Vp(e)}function $p(e){return!$t&&to(),Fp=($t.lzy?0:Fp)||Kn(Ot(rM,["for"]).v),(Fp.v||JL)(e)}function Up(e){return!!e&&Le(e.next)}function W0(e){return!xp(e)&&Le(e[Yp(3)])}var mf;function zp(e,t,n){if(e&&(Up(e)||(!mf&&(mf=Kn(Yp(3))),e=e[mf.v]?e[mf.v]():qt),Up(e))){var i=vn,o=vn;try{for(var s=0;!(o=e.next()).done&&t[rn](n||e,o.value,s,e)!==-1;)s++}catch(c){i={e:c},e.throw&&(o=qt,e.throw(i))}finally{try{o&&!o.done&&e.return&&e.return(o)}finally{if(i)throw i.e}}}}function ps(e,t){return!It(t)&&e&&($e(t)?zo(e.push,e,t):Up(t)||W0(t)?zp(t,function(n){e.push(n)}):e.push(t)),e}var dn=Uo("indexOf",of),Ql=Uo("map",of);function vf(e,t,n){return((e?e.slice:qt)||mi).apply(e,mi[rn](arguments,1))}var aM=Uo("reduce",of),Hp,Z0=xn(xt(gn,"setPrototypeOf"),sM);function sM(e,t){var n;return!Hp&&(Hp=Kn((n={},n[tf]=[],n instanceof Array))),Hp.v?e[tf]=t:Xe(t,function(i,o){return e[i]=o}),e}function lM(e,t,n){Ot(tt,[t,rf,{v:e,c:!0,e:!1}]),t=Z0(t,n);function i(){this[nf]=t,Ot(tt,[this,rf,{v:e,c:!0,e:!1}])}return t[_i]=n===qt?yi(n):(i[_i]=n[_i],new i),t}function G0(e,t){t&&(e[rf]=t)}function j0(e,t,n){var i=Error,o=i[_i][rf],s=Error.captureStackTrace;return lM(e,function(){var c=this,f=arguments;try{Ot(G0,[i,e]);var d=zo(i,c,mi[rn](f))||c;if(d!==c){var p=Lp(c);p!==Lp(d)&&Z0(d,p)}return s&&s(d,c[nf]),t&&t(d,f),d}finally{Ot(G0,[i,o])}},i)}var Wp;function cM(e){throw Wp||(Wp=j0("UnsupportedError")),new Wp(e)}function uM(e){return function(n){return lf(n),n&&n.replace&&(n=n.replace(e,Np)),n}}var fM=uM(/^\s+|(?=\s)\s+$/g),yt=cf("trim",$o,fM),Fn=xt(Gl,"floor"),Zp,Gp,jp;function Sn(e){if(!e||typeof e!==Wl)return!1;jp||(jp=pf()?Vn():!0);var t=!1;if(e!==jp){Gp||(Zp=Function[_i][Zl],Gp=Zp[rn](gn));try{var n=Lp(e);t=!n,t||(qn(n,nf)&&(n=n[nf]),t=!!(n&&typeof n===ef&&Zp[rn](n)===Gp))}catch{}}return t}function dM(e){return e.value&&X0(e),!0}var q0=[mM,X0,gM,vM];function hM(e,t,n,i){var o;return Se(e,function(s){if(s.k===t)return o=s,-1}),o||(o={k:t,v:t},e.push(o),i(o)),o.v}function qp(e,t,n,i){var o=n.handler,s=n.path?i?n.path.concat(i):n.path:[],c={handler:n.handler,src:n.src,path:s},f=typeof t,d=!1,p=t===qt;p||(t&&f===Wl?d=Sn(t):p=NL(f));var _={type:f,isPrim:p,isPlain:d,value:t,result:t,path:s,origin:n.src,copy:function(v,y){return qp(e,v,y?c:n,y)},copyTo:function(v,y){return K0(e,v,y,c)}};return _.isPrim?o&&o[rn](n,_)?_.result:t:hM(e,t,s,function(v){tt(_,"result",{g:function(){return v.v},s:function(E){v.v=E}});for(var y=0,g=o;!(g||(y<q0.length?q0[y++]:dM))[rn](n,_);)g=qt})}function K0(e,t,n,i){if(!ce(n))for(var o in n)t[o]=qp(e,n[o],i,o);return t}function pM(e,t,n){var i={handler:n,src:t,path:[]};return K0([],e,t,i)}function _M(e,t){var n={handler:t,src:e};return qp([],e,n)}function mM(e){var t=e.value;if($e(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1}function vM(e){var t=e.value;return kL(t)?(e.result=new Date(t.getTime()),!0):!1}function gM(e){return e.type===ef}function X0(e){var t=e.value;if(t&&e.isPlain){var n=e.result={};return e.copyTo(n,t),!0}return!1}function J0(e,t){return Se(t,function(n){pM(e,n)}),e}function Q0(e,t,n,i,o,s,c){return J0(_M(e)||{},mi[rn](arguments))}function yM(e,t,n,i,o,s,c){return J0(e||{},mi[rn](arguments))}var eS=Uo("split",$o);function tS(e,t,n){if(e&&t){var i=eS(t,"."),o=i.pop();Se(i,function(s){ce(e[s])&&(e[s]={}),e=e[s]}),e[o]=n}}var SM=IL(fs),Kp;function Si(){return!$t&&to(),(!Kp||$t.lzy)&&(Kp=Kn(Ot(Ct,["performance"]).v)),Kp.v}var nS=xt(Gl,"round"),wM=xn(xt(gn,Cp),Ip),rS=cf("endsWith",$o,EM);function EM(e,t,n){DL(e);var i=Re(t)?t:yn(t),o=!It(n)&&n<e[fs]?n:e[fs];return Rr(e,o-i[fs],o)===i}var wn=Uo("indexOf",$o),Xp="ref",Jp="unref",Qp="hasRef",TM="enabled";function bM(e,t,n){var i=!0,o=e?t(qt):qt,s;function c(){return i=!1,o&&o[Jp]&&o[Jp](),s}function f(){o&&n(o),o=qt}function d(){return o=t(o),i||c(),s}function p(_){!_&&o&&f(),_&&!o&&d()}return s={cancel:f,refresh:d},s[Qp]=function(){return o&&o[Qp]?o[Qp]():i},s[Xp]=function(){return i=!0,o&&o[Xp]&&o[Xp](),s},s[Jp]=c,s=vi(s,TM,{get:function(){return!!o},set:p}),{h:s,dn:function(){o=qt}}}var NM,kM;function CM(e){var t=Le(e)?e:NM;if(!t){var n=df().tmOut||[];$e(n)&&n.length>0&&Le(n[0])&&(t=n[0])}return t||setTimeout}function PM(e){var t=Le(e)?e:kM;if(!t){var n=df().tmOut||[];$e(n)&&n.length>1&&Le(n[1])&&(t=n[1])}return t||clearTimeout}function iS(e,t,n){var i=$e(t),o=i?t.length:0,s=CM(o>0?t[0]:i?vn:t),c=PM(o>1?t[1]:vn),f=n[0];n[0]=function(){d.dn(),zo(f,vn,mi[rn](arguments))};var d=bM(e,function(p){if(p){if(p.refresh)return p.refresh(),p;zo(c,vn,[p])}return zo(s,vn,n)},function(p){zo(c,vn,[p])});return d.h}function Jn(e,t){return iS(!0,vn,mi[rn](arguments))}function DM(e,t){return iS(!1,vn,mi[rn](arguments))}var gf,yf="constructor",wi="prototype",Sf="function",wf="_dynInstFuncs",e_="_isDynProxy",_s="_dynClass",xM="_dynCls$",t_="_dynInstChk",ec=t_,oS="_dfOpts",aS="_unknown_",n_="__proto__",Ef="_dyn"+n_,sS="__dynProto$Gbl",r_="_dynInstProto",Tf="useBaseInst",i_="setInstFuncs",o_=Object,tc=o_.getPrototypeOf,lS=o_.getOwnPropertyNames,cS=Xn(),a_=cS[sS]||(cS[sS]={o:(gf={},gf[i_]=!0,gf[Tf]=!0,gf),n:1e3});function bf(e){return e&&(e===o_[wi]||e===Array[wi])}function s_(e){return bf(e)||e===Function[wi]}function Ho(e){var t;if(e){if(tc)return tc(e);var n=e[n_]||e[wi]||(e[yf]?e[yf][wi]:null);t=e[Ef]||n,qn(e,Ef)||(delete e[r_],t=e[Ef]=e[r_]||e[Ef],e[r_]=n)}return t}function Nf(e,t){var n=[];if(lS)n=lS(e);else for(var i in e)typeof i=="string"&&qn(e,i)&&n.push(i);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function l_(e,t,n){return t!==yf&&typeof e[t]===Sf&&(n||qn(e,t))&&t!==n_&&t!==wi}function kf(e){Ir("DynamicProto: "+e)}function OM(e){var t=yi(null);return Nf(e,function(n){!t[n]&&l_(e,n,!1)&&(t[n]=e[n])}),t}function c_(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function IM(e,t,n,i){function o(d,p,_){var v=p[_];if(v[e_]&&i){var y=d[wf]||{};y[ec]!==!1&&(v=(y[p[_s]]||{})[_]||v)}return function(){return v.apply(d,arguments)}}var s=yi(null);Nf(n,function(d){s[d]=o(t,n,d)});for(var c=Ho(e),f=[];c&&!s_(c)&&!c_(f,c);)Nf(c,function(d){!s[d]&&l_(c,d,!tc)&&(s[d]=o(t,c,d))}),f.push(c),c=Ho(c);return s}function RM(e,t,n,i){var o=null;if(e&&qn(n,_s)){var s=e[wf]||yi(null);if(o=(s[n[_s]]||yi(null))[t],o||kf("Missing ["+t+"] "+Sf),!o[t_]&&s[ec]!==!1){for(var c=!qn(e,t),f=Ho(e),d=[];c&&f&&!s_(f)&&!c_(d,f);){var p=f[t];if(p){c=p===i;break}d.push(f),f=Ho(f)}try{c&&(e[t]=o),o[t_]=1}catch{s[ec]=!1}}}return o}function LM(e,t,n){var i=t[e];return i===n&&(i=Ho(t)[e]),typeof i!==Sf&&kf("["+e+"] is not a "+Sf),i}function MM(e,t,n,i,o){function s(d,p){var _=function(){var v=RM(this,p,d,_)||LM(p,d,_);return v.apply(this,arguments)};return _[e_]=1,_}if(!bf(e)){var c=n[wf]=n[wf]||yi(null);if(!bf(c)){var f=c[t]=c[t]||yi(null);c[ec]!==!1&&(c[ec]=!!o),bf(f)||Nf(n,function(d){l_(n,d,!1)&&n[d]!==i[d]&&(f[d]=n[d],delete n[d],(!qn(e,d)||e[d]&&!e[d][e_])&&(e[d]=s(e,d)))})}}}function AM(e,t){if(tc){for(var n=[],i=Ho(t);i&&!s_(i)&&!c_(n,i);){if(i===e)return!0;n.push(i),i=Ho(i)}return!1}return!0}function u_(e,t){return qn(e,wi)?e.name||t||aS:((e||{})[yf]||{}).name||t||aS}function St(e,t,n,i){qn(e,wi)||kf("theClass is an invalid class definition.");var o=e[wi];AM(o,t)||kf("["+u_(e)+"] not in hierarchy of ["+u_(t)+"]");var s=null;qn(o,_s)?s=o[_s]:(s=xM+u_(e,"_")+"$"+a_.n,a_.n++,o[_s]=s);var c=St[oS],f=!!c[Tf];f&&i&&i[Tf]!==void 0&&(f=!!i[Tf]);var d=OM(t),p=IM(o,t,d,f);n(t,p);var _=!!tc&&!!c[i_];_&&i&&(_=!!i[i_]),MM(o,s,t,d,_!==!1)}St[oS]=a_.o;var uS="function",fS="object",f_="undefined",Mr="prototype",d_=Object,BM=d_[Mr];(Xn()||{}).Symbol,(Xn()||{}).Reflect;var dS="hasOwnProperty",VM=function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)BM[dS].call(t,o)&&(e[o]=t[o])}return e},En=Rp||VM,h_=function(e,t){return h_=d_.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i[dS](o)&&(n[o]=i[o])},h_(e,t)};function Ei(e,t){typeof t!==uS&&t!==null&&Ir("Class extends value "+String(t)+" is not a constructor or null"),h_(e,t);function n(){this.constructor=e}e[Mr]=t===null?yi(t):(n[Mr]=t[Mr],new n)}function hS(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e}var pS=FL,FM=UL,no=pS({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),ms="toLowerCase",Ve="length",Cf="warnToConsole",nc="throwInternal",Wo="watch",Zo="apply",ot="push",vs="splice",Ut="logger",Go="cancel",rc="initialize",ro="identifier",Pf="removeNotificationListener",Df="addNotificationListener",Ar="isInitialized",xf="getNotifyMgr",ic="getPlugin",jo="name",Tn="processNext",_S="getProcessTelContext",qo="value",gs="enabled",mS="stopPollingInternalLogs",Ko="unload",Of="onComplete",p_="version",vS="loggingLevelConsole",Xo="createNew",Ti="teardown",If="messageId",Jo="message",bi="diagLog",Rf="_doTeardown",oc="update",Br="getNext",ac="setNextPlugin",__="userAgent",ys="split",Qo="replace",io="type",gS="evtName",Ni="status",YM="indexOf",yS="getAllResponseHeaders",m_="isChildEvt",mr="data",Ss="getCtx",Vr="setCtx",SS="itemsReceived",Lf="headers",sc="urlString",ws="timeout",v_="traceFlags",g_="getAttribute",y_;function $M(e,t){y_||(y_=j0("AggregationError",function(i,o){o[Ve]>1&&(i.errors=o[1])}));var n=e;throw Se(t,function(i,o){n+=`
56
+ */var qO=$l.exports,S0;function KO(){return S0||(S0=1,function(e,t){(function(n,i){i(t)})(qO,function(n){var i="1.9.4";function o(r){var a,u,h,m;for(u=1,h=arguments.length;u<h;u++){m=arguments[u];for(a in m)r[a]=m[a]}return r}var s=Object.create||function(){function r(){}return function(a){return r.prototype=a,new r}}();function c(r,a){var u=Array.prototype.slice;if(r.bind)return r.bind.apply(r,u.call(arguments,1));var h=u.call(arguments,2);return function(){return r.apply(a,h.length?h.concat(u.call(arguments)):arguments)}}var f=0;function d(r){return"_leaflet_id"in r||(r._leaflet_id=++f),r._leaflet_id}function p(r,a,u){var h,m,S,D;return D=function(){h=!1,m&&(S.apply(u,m),m=!1)},S=function(){h?m=arguments:(r.apply(u,arguments),setTimeout(D,a),h=!0)},S}function _(r,a,u){var h=a[1],m=a[0],S=h-m;return r===h&&u?r:((r-m)%S+S)%S+m}function v(){return!1}function y(r,a){if(a===!1)return r;var u=Math.pow(10,a===void 0?6:a);return Math.round(r*u)/u}function g(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function E(r){return g(r).split(/\s+/)}function w(r,a){Object.prototype.hasOwnProperty.call(r,"options")||(r.options=r.options?s(r.options):{});for(var u in a)r.options[u]=a[u];return r.options}function T(r,a,u){var h=[];for(var m in r)h.push(encodeURIComponent(u?m.toUpperCase():m)+"="+encodeURIComponent(r[m]));return(!a||a.indexOf("?")===-1?"?":"&")+h.join("&")}var b=/\{ *([\w_ -]+) *\}/g;function C(r,a){return r.replace(b,function(u,h){var m=a[h];if(m===void 0)throw new Error("No value provided for variable "+u);return typeof m=="function"&&(m=m(a)),m})}var M=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"};function z(r,a){for(var u=0;u<r.length;u++)if(r[u]===a)return u;return-1}var G="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function oe(r){return window["webkit"+r]||window["moz"+r]||window["ms"+r]}var R=0;function F(r){var a=+new Date,u=Math.max(0,16-(a-R));return R=a+u,window.setTimeout(r,u)}var Q=window.requestAnimationFrame||oe("RequestAnimationFrame")||F,A=window.cancelAnimationFrame||oe("CancelAnimationFrame")||oe("CancelRequestAnimationFrame")||function(r){window.clearTimeout(r)};function B(r,a,u){if(u&&Q===F)r.call(a);else return Q.call(window,c(r,a))}function ae(r){r&&A.call(window,r)}var he={__proto__:null,extend:o,create:s,bind:c,get lastId(){return f},stamp:d,throttle:p,wrapNum:_,falseFn:v,formatNum:y,trim:g,splitWords:E,setOptions:w,getParamString:T,template:C,isArray:M,indexOf:z,emptyImageUrl:G,requestFn:Q,cancelFn:A,requestAnimFrame:B,cancelAnimFrame:ae};function P(){}P.extend=function(r){var a=function(){w(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},u=a.__super__=this.prototype,h=s(u);h.constructor=a,a.prototype=h;for(var m in this)Object.prototype.hasOwnProperty.call(this,m)&&m!=="prototype"&&m!=="__super__"&&(a[m]=this[m]);return r.statics&&o(a,r.statics),r.includes&&(V(r.includes),o.apply(null,[h].concat(r.includes))),o(h,r),delete h.statics,delete h.includes,h.options&&(h.options=u.options?s(u.options):{},o(h.options,r.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){u.callInitHooks&&u.callInitHooks.call(this),this._initHooksCalled=!0;for(var S=0,D=h._initHooks.length;S<D;S++)h._initHooks[S].call(this)}},a},P.include=function(r){var a=this.prototype.options;return o(this.prototype,r),r.options&&(this.prototype.options=a,this.mergeOptions(r.options)),this},P.mergeOptions=function(r){return o(this.prototype.options,r),this},P.addInitHook=function(r){var a=Array.prototype.slice.call(arguments,1),u=typeof r=="function"?r:function(){this[r].apply(this,a)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(u),this};function V(r){if(!(typeof L>"u"||!L||!L.Mixin)){r=M(r)?r:[r];for(var a=0;a<r.length;a++)r[a]===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)}}var K={on:function(r,a,u){if(typeof r=="object")for(var h in r)this._on(h,r[h],a);else{r=E(r);for(var m=0,S=r.length;m<S;m++)this._on(r[m],a,u)}return this},off:function(r,a,u){if(!arguments.length)delete this._events;else if(typeof r=="object")for(var h in r)this._off(h,r[h],a);else{r=E(r);for(var m=arguments.length===1,S=0,D=r.length;S<D;S++)m?this._off(r[S]):this._off(r[S],a,u)}return this},_on:function(r,a,u,h){if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}if(this._listens(r,a,u)===!1){u===this&&(u=void 0);var m={fn:a,ctx:u};h&&(m.once=!0),this._events=this._events||{},this._events[r]=this._events[r]||[],this._events[r].push(m)}},_off:function(r,a,u){var h,m,S;if(this._events&&(h=this._events[r],!!h)){if(arguments.length===1){if(this._firingCount)for(m=0,S=h.length;m<S;m++)h[m].fn=v;delete this._events[r];return}if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}var D=this._listens(r,a,u);if(D!==!1){var $=h[D];this._firingCount&&($.fn=v,this._events[r]=h=h.slice()),h.splice(D,1)}}},fire:function(r,a,u){if(!this.listens(r,u))return this;var h=o({},a,{type:r,target:this,sourceTarget:a&&a.sourceTarget||this});if(this._events){var m=this._events[r];if(m){this._firingCount=this._firingCount+1||1;for(var S=0,D=m.length;S<D;S++){var $=m[S],Z=$.fn;$.once&&this.off(r,Z,$.ctx),Z.call($.ctx||this,h)}this._firingCount--}}return u&&this._propagateEvent(h),this},listens:function(r,a,u,h){typeof r!="string"&&console.warn('"string" type argument expected');var m=a;typeof a!="function"&&(h=!!a,m=void 0,u=void 0);var S=this._events&&this._events[r];if(S&&S.length&&this._listens(r,m,u)!==!1)return!0;if(h){for(var D in this._eventParents)if(this._eventParents[D].listens(r,a,u,h))return!0}return!1},_listens:function(r,a,u){if(!this._events)return!1;var h=this._events[r]||[];if(!a)return!!h.length;u===this&&(u=void 0);for(var m=0,S=h.length;m<S;m++)if(h[m].fn===a&&h[m].ctx===u)return m;return!1},once:function(r,a,u){if(typeof r=="object")for(var h in r)this._on(h,r[h],a,!0);else{r=E(r);for(var m=0,S=r.length;m<S;m++)this._on(r[m],a,u,!0)}return this},addEventParent:function(r){return this._eventParents=this._eventParents||{},this._eventParents[d(r)]=r,this},removeEventParent:function(r){return this._eventParents&&delete this._eventParents[d(r)],this},_propagateEvent:function(r){for(var a in this._eventParents)this._eventParents[a].fire(r.type,o({layer:r.target,propagatedFrom:r.target},r),!0)}};K.addEventListener=K.on,K.removeEventListener=K.clearAllEventListeners=K.off,K.addOneTimeEventListener=K.once,K.fireEvent=K.fire,K.hasEventListeners=K.listens;var W=P.extend(K);function x(r,a,u){this.x=u?Math.round(r):r,this.y=u?Math.round(a):a}var ve=Math.trunc||function(r){return r>0?Math.floor(r):Math.ceil(r)};x.prototype={clone:function(){return new x(this.x,this.y)},add:function(r){return this.clone()._add(re(r))},_add:function(r){return this.x+=r.x,this.y+=r.y,this},subtract:function(r){return this.clone()._subtract(re(r))},_subtract:function(r){return this.x-=r.x,this.y-=r.y,this},divideBy:function(r){return this.clone()._divideBy(r)},_divideBy:function(r){return this.x/=r,this.y/=r,this},multiplyBy:function(r){return this.clone()._multiplyBy(r)},_multiplyBy:function(r){return this.x*=r,this.y*=r,this},scaleBy:function(r){return new x(this.x*r.x,this.y*r.y)},unscaleBy:function(r){return new x(this.x/r.x,this.y/r.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=ve(this.x),this.y=ve(this.y),this},distanceTo:function(r){r=re(r);var a=r.x-this.x,u=r.y-this.y;return Math.sqrt(a*a+u*u)},equals:function(r){return r=re(r),r.x===this.x&&r.y===this.y},contains:function(r){return r=re(r),Math.abs(r.x)<=Math.abs(this.x)&&Math.abs(r.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function re(r,a,u){return r instanceof x?r:M(r)?new x(r[0],r[1]):r==null?r:typeof r=="object"&&"x"in r&&"y"in r?new x(r.x,r.y):new x(r,a,u)}function _e(r,a){if(r)for(var u=a?[r,a]:r,h=0,m=u.length;h<m;h++)this.extend(u[h])}_e.prototype={extend:function(r){var a,u;if(!r)return this;if(r instanceof x||typeof r[0]=="number"||"x"in r)a=u=re(r);else if(r=N(r),a=r.min,u=r.max,!a||!u)return this;return!this.min&&!this.max?(this.min=a.clone(),this.max=u.clone()):(this.min.x=Math.min(a.x,this.min.x),this.max.x=Math.max(u.x,this.max.x),this.min.y=Math.min(a.y,this.min.y),this.max.y=Math.max(u.y,this.max.y)),this},getCenter:function(r){return re((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,r)},getBottomLeft:function(){return re(this.min.x,this.max.y)},getTopRight:function(){return re(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(r){var a,u;return typeof r[0]=="number"||r instanceof x?r=re(r):r=N(r),r instanceof _e?(a=r.min,u=r.max):a=u=r,a.x>=this.min.x&&u.x<=this.max.x&&a.y>=this.min.y&&u.y<=this.max.y},intersects:function(r){r=N(r);var a=this.min,u=this.max,h=r.min,m=r.max,S=m.x>=a.x&&h.x<=u.x,D=m.y>=a.y&&h.y<=u.y;return S&&D},overlaps:function(r){r=N(r);var a=this.min,u=this.max,h=r.min,m=r.max,S=m.x>a.x&&h.x<u.x,D=m.y>a.y&&h.y<u.y;return S&&D},isValid:function(){return!!(this.min&&this.max)},pad:function(r){var a=this.min,u=this.max,h=Math.abs(a.x-u.x)*r,m=Math.abs(a.y-u.y)*r;return N(re(a.x-h,a.y-m),re(u.x+h,u.y+m))},equals:function(r){return r?(r=N(r),this.min.equals(r.getTopLeft())&&this.max.equals(r.getBottomRight())):!1}};function N(r,a){return!r||r instanceof _e?r:new _e(r,a)}function U(r,a){if(r)for(var u=a?[r,a]:r,h=0,m=u.length;h<m;h++)this.extend(u[h])}U.prototype={extend:function(r){var a=this._southWest,u=this._northEast,h,m;if(r instanceof H)h=r,m=r;else if(r instanceof U){if(h=r._southWest,m=r._northEast,!h||!m)return this}else return r?this.extend(ie(r)||k(r)):this;return!a&&!u?(this._southWest=new H(h.lat,h.lng),this._northEast=new H(m.lat,m.lng)):(a.lat=Math.min(h.lat,a.lat),a.lng=Math.min(h.lng,a.lng),u.lat=Math.max(m.lat,u.lat),u.lng=Math.max(m.lng,u.lng)),this},pad:function(r){var a=this._southWest,u=this._northEast,h=Math.abs(a.lat-u.lat)*r,m=Math.abs(a.lng-u.lng)*r;return new U(new H(a.lat-h,a.lng-m),new H(u.lat+h,u.lng+m))},getCenter:function(){return new H((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new H(this.getNorth(),this.getWest())},getSouthEast:function(){return new H(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(r){typeof r[0]=="number"||r instanceof H||"lat"in r?r=ie(r):r=k(r);var a=this._southWest,u=this._northEast,h,m;return r instanceof U?(h=r.getSouthWest(),m=r.getNorthEast()):h=m=r,h.lat>=a.lat&&m.lat<=u.lat&&h.lng>=a.lng&&m.lng<=u.lng},intersects:function(r){r=k(r);var a=this._southWest,u=this._northEast,h=r.getSouthWest(),m=r.getNorthEast(),S=m.lat>=a.lat&&h.lat<=u.lat,D=m.lng>=a.lng&&h.lng<=u.lng;return S&&D},overlaps:function(r){r=k(r);var a=this._southWest,u=this._northEast,h=r.getSouthWest(),m=r.getNorthEast(),S=m.lat>a.lat&&h.lat<u.lat,D=m.lng>a.lng&&h.lng<u.lng;return S&&D},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(r,a){return r?(r=k(r),this._southWest.equals(r.getSouthWest(),a)&&this._northEast.equals(r.getNorthEast(),a)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function k(r,a){return r instanceof U?r:new U(r,a)}function H(r,a,u){if(isNaN(r)||isNaN(a))throw new Error("Invalid LatLng object: ("+r+", "+a+")");this.lat=+r,this.lng=+a,u!==void 0&&(this.alt=+u)}H.prototype={equals:function(r,a){if(!r)return!1;r=ie(r);var u=Math.max(Math.abs(this.lat-r.lat),Math.abs(this.lng-r.lng));return u<=(a===void 0?1e-9:a)},toString:function(r){return"LatLng("+y(this.lat,r)+", "+y(this.lng,r)+")"},distanceTo:function(r){return X.distance(this,ie(r))},wrap:function(){return X.wrapLatLng(this)},toBounds:function(r){var a=180*r/40075017,u=a/Math.cos(Math.PI/180*this.lat);return k([this.lat-a,this.lng-u],[this.lat+a,this.lng+u])},clone:function(){return new H(this.lat,this.lng,this.alt)}};function ie(r,a,u){return r instanceof H?r:M(r)&&typeof r[0]!="object"?r.length===3?new H(r[0],r[1],r[2]):r.length===2?new H(r[0],r[1]):null:r==null?r:typeof r=="object"&&"lat"in r?new H(r.lat,"lng"in r?r.lng:r.lon,r.alt):a===void 0?null:new H(r,a,u)}var O={latLngToPoint:function(r,a){var u=this.projection.project(r),h=this.scale(a);return this.transformation._transform(u,h)},pointToLatLng:function(r,a){var u=this.scale(a),h=this.transformation.untransform(r,u);return this.projection.unproject(h)},project:function(r){return this.projection.project(r)},unproject:function(r){return this.projection.unproject(r)},scale:function(r){return 256*Math.pow(2,r)},zoom:function(r){return Math.log(r/256)/Math.LN2},getProjectedBounds:function(r){if(this.infinite)return null;var a=this.projection.bounds,u=this.scale(r),h=this.transformation.transform(a.min,u),m=this.transformation.transform(a.max,u);return new _e(h,m)},infinite:!1,wrapLatLng:function(r){var a=this.wrapLng?_(r.lng,this.wrapLng,!0):r.lng,u=this.wrapLat?_(r.lat,this.wrapLat,!0):r.lat,h=r.alt;return new H(u,a,h)},wrapLatLngBounds:function(r){var a=r.getCenter(),u=this.wrapLatLng(a),h=a.lat-u.lat,m=a.lng-u.lng;if(h===0&&m===0)return r;var S=r.getSouthWest(),D=r.getNorthEast(),$=new H(S.lat-h,S.lng-m),Z=new H(D.lat-h,D.lng-m);return new U($,Z)}},X=o({},O,{wrapLng:[-180,180],R:6371e3,distance:function(r,a){var u=Math.PI/180,h=r.lat*u,m=a.lat*u,S=Math.sin((a.lat-r.lat)*u/2),D=Math.sin((a.lng-r.lng)*u/2),$=S*S+Math.cos(h)*Math.cos(m)*D*D,Z=2*Math.atan2(Math.sqrt($),Math.sqrt(1-$));return this.R*Z}}),J=6378137,fe={R:J,MAX_LATITUDE:85.0511287798,project:function(r){var a=Math.PI/180,u=this.MAX_LATITUDE,h=Math.max(Math.min(u,r.lat),-u),m=Math.sin(h*a);return new x(this.R*r.lng*a,this.R*Math.log((1+m)/(1-m))/2)},unproject:function(r){var a=180/Math.PI;return new H((2*Math.atan(Math.exp(r.y/this.R))-Math.PI/2)*a,r.x*a/this.R)},bounds:function(){var r=J*Math.PI;return new _e([-r,-r],[r,r])}()};function Oe(r,a,u,h){if(M(r)){this._a=r[0],this._b=r[1],this._c=r[2],this._d=r[3];return}this._a=r,this._b=a,this._c=u,this._d=h}Oe.prototype={transform:function(r,a){return this._transform(r.clone(),a)},_transform:function(r,a){return a=a||1,r.x=a*(this._a*r.x+this._b),r.y=a*(this._c*r.y+this._d),r},untransform:function(r,a){return a=a||1,new x((r.x/a-this._b)/this._a,(r.y/a-this._d)/this._c)}};function Ge(r,a,u,h){return new Oe(r,a,u,h)}var we=o({},X,{code:"EPSG:3857",projection:fe,transformation:function(){var r=.5/(Math.PI*fe.R);return Ge(r,.5,-r,.5)}()}),be=o({},we,{code:"EPSG:900913"});function ze(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function Wt(r,a){var u="",h,m,S,D,$,Z;for(h=0,S=r.length;h<S;h++){for($=r[h],m=0,D=$.length;m<D;m++)Z=$[m],u+=(m?"L":"M")+Z.x+" "+Z.y;u+=a?xe.svg?"z":"x":""}return u||"M0 0"}var dt=document.documentElement.style,q="ActiveXObject"in window,me=q&&!document.addEventListener,Pe="msLaunchUri"in navigator&&!("documentMode"in document),Ee=ln("webkit"),I=ln("android"),j=ln("android 2")||ln("android 3"),ne=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),te=I&&ln("Google")&&ne<537&&!("AudioNode"in window),le=!!window.opera,ke=!Pe&&ln("chrome"),De=ln("gecko")&&!Ee&&!le&&!q,He=!ke&&ln("safari"),Me=ln("phantom"),at="OTransition"in dt,vt=navigator.platform.indexOf("Win")===0,Vt=q&&"transition"in dt,Rn="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!j,Hn="MozPerspective"in dt,_n=!window.L_DISABLE_3D&&(Vt||Rn||Hn)&&!at&&!Me,or=typeof orientation<"u"||ln("mobile"),fl=or&&Ee,Y=or&&Rn,ee=!window.PointerEvent&&window.MSPointerEvent,de=!!(window.PointerEvent||ee),Ce="ontouchstart"in window||!!window.TouchEvent,Be=!window.L_NO_TOUCH&&(Ce||de),Ae=or&&le,nt=or&&De,Tt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,kn=function(){var r=!1;try{var a=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("testPassiveEventSupport",v,a),window.removeEventListener("testPassiveEventSupport",v,a)}catch{}return r}(),Ue=function(){return!!document.createElement("canvas").getContext}(),dl=!!(document.createElementNS&&ze("svg").createSVGRect),au=!!dl&&function(){var r=document.createElement("div");return r.innerHTML="<svg/>",(r.firstChild&&r.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),zv=!dl&&function(){try{var r=document.createElement("div");r.innerHTML='<v:shape adj="1"/>';var a=r.firstChild;return a.style.behavior="url(#default#VML)",a&&typeof a.adj=="object"}catch{return!1}}(),Va=navigator.platform.indexOf("Mac")===0,su=navigator.platform.indexOf("Linux")===0;function ln(r){return navigator.userAgent.toLowerCase().indexOf(r)>=0}var xe={ie:q,ielt9:me,edge:Pe,webkit:Ee,android:I,android23:j,androidStock:te,opera:le,chrome:ke,gecko:De,safari:He,phantom:Me,opera12:at,win:vt,ie3d:Vt,webkit3d:Rn,gecko3d:Hn,any3d:_n,mobile:or,mobileWebkit:fl,mobileWebkit3d:Y,msPointer:ee,pointer:de,touch:Be,touchNative:Ce,mobileOpera:Ae,mobileGecko:nt,retina:Tt,passiveEvents:kn,canvas:Ue,svg:dl,vml:zv,inlineSvg:au,mac:Va,linux:su},Qd=xe.msPointer?"MSPointerDown":"pointerdown",lu=xe.msPointer?"MSPointerMove":"pointermove",Fa=xe.msPointer?"MSPointerUp":"pointerup",Ya=xe.msPointer?"MSPointerCancel":"pointercancel",Mi={touchstart:Qd,touchmove:lu,touchend:Fa,touchcancel:Ya},eh={touchstart:Y2,touchmove:th,touchend:th,touchcancel:th},Jr={},hl=!1;function Xt(r,a,u){return a==="touchstart"&&F2(),eh[a]?(u=eh[a].bind(this,u),r.addEventListener(Mi[a],u,!1),u):(console.warn("wrong event specified:",a),v)}function Ai(r,a,u){if(!Mi[a]){console.warn("wrong event specified:",a);return}r.removeEventListener(Mi[a],u,!1)}function B2(r){Jr[r.pointerId]=r}function V2(r){Jr[r.pointerId]&&(Jr[r.pointerId]=r)}function WT(r){delete Jr[r.pointerId]}function F2(){hl||(document.addEventListener(Qd,B2,!0),document.addEventListener(lu,V2,!0),document.addEventListener(Fa,WT,!0),document.addEventListener(Ya,WT,!0),hl=!0)}function th(r,a){if(a.pointerType!==(a.MSPOINTER_TYPE_MOUSE||"mouse")){a.touches=[];for(var u in Jr)a.touches.push(Jr[u]);a.changedTouches=[a],r(a)}}function Y2(r,a){a.MSPOINTER_TYPE_TOUCH&&a.pointerType===a.MSPOINTER_TYPE_TOUCH&&cn(a),th(r,a)}function $2(r){var a={},u,h;for(h in r)u=r[h],a[h]=u&&u.bind?u.bind(r):u;return r=a,a.type="dblclick",a.detail=2,a.isTrusted=!1,a._simulated=!0,a}var U2=200;function z2(r,a){r.addEventListener("dblclick",a);var u=0,h;function m(S){if(S.detail!==1){h=S.detail;return}if(!(S.pointerType==="mouse"||S.sourceCapabilities&&!S.sourceCapabilities.firesTouchEvents)){var D=KT(S);if(!(D.some(function(Z){return Z instanceof HTMLLabelElement&&Z.attributes.for})&&!D.some(function(Z){return Z instanceof HTMLInputElement||Z instanceof HTMLSelectElement}))){var $=Date.now();$-u<=U2?(h++,h===2&&a($2(S))):h=1,u=$}}}return r.addEventListener("click",m),{dblclick:a,simDblclick:m}}function H2(r,a){r.removeEventListener("dblclick",a.dblclick),r.removeEventListener("click",a.simDblclick)}var Hv=ih(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),cu=ih(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ZT=cu==="webkitTransition"||cu==="OTransition"?cu+"End":"transitionend";function GT(r){return typeof r=="string"?document.getElementById(r):r}function uu(r,a){var u=r.style[a]||r.currentStyle&&r.currentStyle[a];if((!u||u==="auto")&&document.defaultView){var h=document.defaultView.getComputedStyle(r,null);u=h?h[a]:null}return u==="auto"?null:u}function ht(r,a,u){var h=document.createElement(r);return h.className=a||"",u&&u.appendChild(h),h}function Rt(r){var a=r.parentNode;a&&a.removeChild(r)}function nh(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function pl(r){var a=r.parentNode;a&&a.lastChild!==r&&a.appendChild(r)}function _l(r){var a=r.parentNode;a&&a.firstChild!==r&&a.insertBefore(r,a.firstChild)}function Wv(r,a){if(r.classList!==void 0)return r.classList.contains(a);var u=rh(r);return u.length>0&&new RegExp("(^|\\s)"+a+"(\\s|$)").test(u)}function qe(r,a){if(r.classList!==void 0)for(var u=E(a),h=0,m=u.length;h<m;h++)r.classList.add(u[h]);else if(!Wv(r,a)){var S=rh(r);Zv(r,(S?S+" ":"")+a)}}function Ft(r,a){r.classList!==void 0?r.classList.remove(a):Zv(r,g((" "+rh(r)+" ").replace(" "+a+" "," ")))}function Zv(r,a){r.className.baseVal===void 0?r.className=a:r.className.baseVal=a}function rh(r){return r.correspondingElement&&(r=r.correspondingElement),r.className.baseVal===void 0?r.className:r.className.baseVal}function ar(r,a){"opacity"in r.style?r.style.opacity=a:"filter"in r.style&&W2(r,a)}function W2(r,a){var u=!1,h="DXImageTransform.Microsoft.Alpha";try{u=r.filters.item(h)}catch{if(a===1)return}a=Math.round(a*100),u?(u.Enabled=a!==100,u.Opacity=a):r.style.filter+=" progid:"+h+"(opacity="+a+")"}function ih(r){for(var a=document.documentElement.style,u=0;u<r.length;u++)if(r[u]in a)return r[u];return!1}function $a(r,a,u){var h=a||new x(0,0);r.style[Hv]=(xe.ie3d?"translate("+h.x+"px,"+h.y+"px)":"translate3d("+h.x+"px,"+h.y+"px,0)")+(u?" scale("+u+")":"")}function Zt(r,a){r._leaflet_pos=a,xe.any3d?$a(r,a):(r.style.left=a.x+"px",r.style.top=a.y+"px")}function Ua(r){return r._leaflet_pos||new x(0,0)}var fu,du,Gv;if("onselectstart"in document)fu=function(){We(window,"selectstart",cn)},du=function(){bt(window,"selectstart",cn)};else{var hu=ih(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);fu=function(){if(hu){var r=document.documentElement.style;Gv=r[hu],r[hu]="none"}},du=function(){hu&&(document.documentElement.style[hu]=Gv,Gv=void 0)}}function jv(){We(window,"dragstart",cn)}function qv(){bt(window,"dragstart",cn)}var oh,Kv;function Xv(r){for(;r.tabIndex===-1;)r=r.parentNode;r.style&&(ah(),oh=r,Kv=r.style.outlineStyle,r.style.outlineStyle="none",We(window,"keydown",ah))}function ah(){oh&&(oh.style.outlineStyle=Kv,oh=void 0,Kv=void 0,bt(window,"keydown",ah))}function jT(r){do r=r.parentNode;while((!r.offsetWidth||!r.offsetHeight)&&r!==document.body);return r}function Jv(r){var a=r.getBoundingClientRect();return{x:a.width/r.offsetWidth||1,y:a.height/r.offsetHeight||1,boundingClientRect:a}}var Z2={__proto__:null,TRANSFORM:Hv,TRANSITION:cu,TRANSITION_END:ZT,get:GT,getStyle:uu,create:ht,remove:Rt,empty:nh,toFront:pl,toBack:_l,hasClass:Wv,addClass:qe,removeClass:Ft,setClass:Zv,getClass:rh,setOpacity:ar,testProp:ih,setTransform:$a,setPosition:Zt,getPosition:Ua,get disableTextSelection(){return fu},get enableTextSelection(){return du},disableImageDrag:jv,enableImageDrag:qv,preventOutline:Xv,restoreOutline:ah,getSizedParentNode:jT,getScale:Jv};function We(r,a,u,h){if(a&&typeof a=="object")for(var m in a)eg(r,m,a[m],u);else{a=E(a);for(var S=0,D=a.length;S<D;S++)eg(r,a[S],u,h)}return this}var Qr="_leaflet_events";function bt(r,a,u,h){if(arguments.length===1)qT(r),delete r[Qr];else if(a&&typeof a=="object")for(var m in a)tg(r,m,a[m],u);else if(a=E(a),arguments.length===2)qT(r,function($){return z(a,$)!==-1});else for(var S=0,D=a.length;S<D;S++)tg(r,a[S],u,h);return this}function qT(r,a){for(var u in r[Qr]){var h=u.split(/\d/)[0];(!a||a(h))&&tg(r,h,null,null,u)}}var Qv={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function eg(r,a,u,h){var m=a+d(u)+(h?"_"+d(h):"");if(r[Qr]&&r[Qr][m])return this;var S=function($){return u.call(h||r,$||window.event)},D=S;!xe.touchNative&&xe.pointer&&a.indexOf("touch")===0?S=Xt(r,a,S):xe.touch&&a==="dblclick"?S=z2(r,S):"addEventListener"in r?a==="touchstart"||a==="touchmove"||a==="wheel"||a==="mousewheel"?r.addEventListener(Qv[a]||a,S,xe.passiveEvents?{passive:!1}:!1):a==="mouseenter"||a==="mouseleave"?(S=function($){$=$||window.event,rg(r,$)&&D($)},r.addEventListener(Qv[a],S,!1)):r.addEventListener(a,D,!1):r.attachEvent("on"+a,S),r[Qr]=r[Qr]||{},r[Qr][m]=S}function tg(r,a,u,h,m){m=m||a+d(u)+(h?"_"+d(h):"");var S=r[Qr]&&r[Qr][m];if(!S)return this;!xe.touchNative&&xe.pointer&&a.indexOf("touch")===0?Ai(r,a,S):xe.touch&&a==="dblclick"?H2(r,S):"removeEventListener"in r?r.removeEventListener(Qv[a]||a,S,!1):r.detachEvent("on"+a,S),r[Qr][m]=null}function za(r){return r.stopPropagation?r.stopPropagation():r.originalEvent?r.originalEvent._stopped=!0:r.cancelBubble=!0,this}function ng(r){return eg(r,"wheel",za),this}function pu(r){return We(r,"mousedown touchstart dblclick contextmenu",za),r._leaflet_disable_click=!0,this}function cn(r){return r.preventDefault?r.preventDefault():r.returnValue=!1,this}function Ha(r){return cn(r),za(r),this}function KT(r){if(r.composedPath)return r.composedPath();for(var a=[],u=r.target;u;)a.push(u),u=u.parentNode;return a}function XT(r,a){if(!a)return new x(r.clientX,r.clientY);var u=Jv(a),h=u.boundingClientRect;return new x((r.clientX-h.left)/u.x-a.clientLeft,(r.clientY-h.top)/u.y-a.clientTop)}var G2=xe.linux&&xe.chrome?window.devicePixelRatio:xe.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function JT(r){return xe.edge?r.wheelDeltaY/2:r.deltaY&&r.deltaMode===0?-r.deltaY/G2:r.deltaY&&r.deltaMode===1?-r.deltaY*20:r.deltaY&&r.deltaMode===2?-r.deltaY*60:r.deltaX||r.deltaZ?0:r.wheelDelta?(r.wheelDeltaY||r.wheelDelta)/2:r.detail&&Math.abs(r.detail)<32765?-r.detail*20:r.detail?r.detail/-32765*60:0}function rg(r,a){var u=a.relatedTarget;if(!u)return!0;try{for(;u&&u!==r;)u=u.parentNode}catch{return!1}return u!==r}var j2={__proto__:null,on:We,off:bt,stopPropagation:za,disableScrollPropagation:ng,disableClickPropagation:pu,preventDefault:cn,stop:Ha,getPropagationPath:KT,getMousePosition:XT,getWheelDelta:JT,isExternalTarget:rg,addListener:We,removeListener:bt},QT=W.extend({run:function(r,a,u,h){this.stop(),this._el=r,this._inProgress=!0,this._duration=u||.25,this._easeOutPower=1/Math.max(h||.5,.2),this._startPos=Ua(r),this._offset=a.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=B(this._animate,this),this._step()},_step:function(r){var a=+new Date-this._startTime,u=this._duration*1e3;a<u?this._runFrame(this._easeOut(a/u),r):(this._runFrame(1),this._complete())},_runFrame:function(r,a){var u=this._startPos.add(this._offset.multiplyBy(r));a&&u._round(),Zt(this._el,u),this.fire("step")},_complete:function(){ae(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(r){return 1-Math.pow(1-r,this._easeOutPower)}}),st=W.extend({options:{crs:we,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(r,a){a=w(this,a),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(r),this._initLayout(),this._onResize=c(this._onResize,this),this._initEvents(),a.maxBounds&&this.setMaxBounds(a.maxBounds),a.zoom!==void 0&&(this._zoom=this._limitZoom(a.zoom)),a.center&&a.zoom!==void 0&&this.setView(ie(a.center),a.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=cu&&xe.any3d&&!xe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),We(this._proxy,ZT,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(r,a,u){if(a=a===void 0?this._zoom:this._limitZoom(a),r=this._limitCenter(ie(r),a,this.options.maxBounds),u=u||{},this._stop(),this._loaded&&!u.reset&&u!==!0){u.animate!==void 0&&(u.zoom=o({animate:u.animate},u.zoom),u.pan=o({animate:u.animate,duration:u.duration},u.pan));var h=this._zoom!==a?this._tryAnimatedZoom&&this._tryAnimatedZoom(r,a,u.zoom):this._tryAnimatedPan(r,u.pan);if(h)return clearTimeout(this._sizeTimer),this}return this._resetView(r,a,u.pan&&u.pan.noMoveStart),this},setZoom:function(r,a){return this._loaded?this.setView(this.getCenter(),r,{zoom:a}):(this._zoom=r,this)},zoomIn:function(r,a){return r=r||(xe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+r,a)},zoomOut:function(r,a){return r=r||(xe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-r,a)},setZoomAround:function(r,a,u){var h=this.getZoomScale(a),m=this.getSize().divideBy(2),S=r instanceof x?r:this.latLngToContainerPoint(r),D=S.subtract(m).multiplyBy(1-1/h),$=this.containerPointToLatLng(m.add(D));return this.setView($,a,{zoom:u})},_getBoundsCenterZoom:function(r,a){a=a||{},r=r.getBounds?r.getBounds():k(r);var u=re(a.paddingTopLeft||a.padding||[0,0]),h=re(a.paddingBottomRight||a.padding||[0,0]),m=this.getBoundsZoom(r,!1,u.add(h));if(m=typeof a.maxZoom=="number"?Math.min(a.maxZoom,m):m,m===1/0)return{center:r.getCenter(),zoom:m};var S=h.subtract(u).divideBy(2),D=this.project(r.getSouthWest(),m),$=this.project(r.getNorthEast(),m),Z=this.unproject(D.add($).divideBy(2).add(S),m);return{center:Z,zoom:m}},fitBounds:function(r,a){if(r=k(r),!r.isValid())throw new Error("Bounds are not valid.");var u=this._getBoundsCenterZoom(r,a);return this.setView(u.center,u.zoom,a)},fitWorld:function(r){return this.fitBounds([[-90,-180],[90,180]],r)},panTo:function(r,a){return this.setView(r,this._zoom,{pan:a})},panBy:function(r,a){if(r=re(r).round(),a=a||{},!r.x&&!r.y)return this.fire("moveend");if(a.animate!==!0&&!this.getSize().contains(r))return this._resetView(this.unproject(this.project(this.getCenter()).add(r)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new QT,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),a.noMoveStart||this.fire("movestart"),a.animate!==!1){qe(this._mapPane,"leaflet-pan-anim");var u=this._getMapPanePos().subtract(r).round();this._panAnim.run(this._mapPane,u,a.duration||.25,a.easeLinearity)}else this._rawPanBy(r),this.fire("move").fire("moveend");return this},flyTo:function(r,a,u){if(u=u||{},u.animate===!1||!xe.any3d)return this.setView(r,a,u);this._stop();var h=this.project(this.getCenter()),m=this.project(r),S=this.getSize(),D=this._zoom;r=ie(r),a=a===void 0?D:a;var $=Math.max(S.x,S.y),Z=$*this.getZoomScale(D,a),se=m.distanceTo(h)||1,ye=1.42,Fe=ye*ye;function Qe(Gt){var gh=Gt?-1:1,AY=Gt?Z:$,BY=Z*Z-$*$+gh*Fe*Fe*se*se,VY=2*AY*Fe*se,pg=BY/VY,Rb=Math.sqrt(pg*pg+1)-pg,FY=Rb<1e-9?-18:Math.log(Rb);return FY}function Cn(Gt){return(Math.exp(Gt)-Math.exp(-Gt))/2}function tn(Gt){return(Math.exp(Gt)+Math.exp(-Gt))/2}function lr(Gt){return Cn(Gt)/tn(Gt)}var Ln=Qe(0);function wl(Gt){return $*(tn(Ln)/tn(Ln+ye*Gt))}function IY(Gt){return $*(tn(Ln)*lr(Ln+ye*Gt)-Cn(Ln))/Fe}function RY(Gt){return 1-Math.pow(1-Gt,1.5)}var LY=Date.now(),Ob=(Qe(1)-Ln)/ye,MY=u.duration?1e3*u.duration:1e3*Ob*.8;function Ib(){var Gt=(Date.now()-LY)/MY,gh=RY(Gt)*Ob;Gt<=1?(this._flyToFrame=B(Ib,this),this._move(this.unproject(h.add(m.subtract(h).multiplyBy(IY(gh)/se)),D),this.getScaleZoom($/wl(gh),D),{flyTo:!0})):this._move(r,a)._moveEnd(!0)}return this._moveStart(!0,u.noMoveStart),Ib.call(this),this},flyToBounds:function(r,a){var u=this._getBoundsCenterZoom(r,a);return this.flyTo(u.center,u.zoom,a)},setMaxBounds:function(r){return r=k(r),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),r.isValid()?(this.options.maxBounds=r,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(r){var a=this.options.minZoom;return this.options.minZoom=r,this._loaded&&a!==r&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(r):this},setMaxZoom:function(r){var a=this.options.maxZoom;return this.options.maxZoom=r,this._loaded&&a!==r&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(r):this},panInsideBounds:function(r,a){this._enforcingBounds=!0;var u=this.getCenter(),h=this._limitCenter(u,this._zoom,k(r));return u.equals(h)||this.panTo(h,a),this._enforcingBounds=!1,this},panInside:function(r,a){a=a||{};var u=re(a.paddingTopLeft||a.padding||[0,0]),h=re(a.paddingBottomRight||a.padding||[0,0]),m=this.project(this.getCenter()),S=this.project(r),D=this.getPixelBounds(),$=N([D.min.add(u),D.max.subtract(h)]),Z=$.getSize();if(!$.contains(S)){this._enforcingBounds=!0;var se=S.subtract($.getCenter()),ye=$.extend(S).getSize().subtract(Z);m.x+=se.x<0?-ye.x:ye.x,m.y+=se.y<0?-ye.y:ye.y,this.panTo(this.unproject(m),a),this._enforcingBounds=!1}return this},invalidateSize:function(r){if(!this._loaded)return this;r=o({animate:!1,pan:!0},r===!0?{animate:!0}:r);var a=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var u=this.getSize(),h=a.divideBy(2).round(),m=u.divideBy(2).round(),S=h.subtract(m);return!S.x&&!S.y?this:(r.animate&&r.pan?this.panBy(S):(r.pan&&this._rawPanBy(S),this.fire("move"),r.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:a,newSize:u}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(r){if(r=this._locateOptions=o({timeout:1e4,watch:!1},r),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var a=c(this._handleGeolocationResponse,this),u=c(this._handleGeolocationError,this);return r.watch?this._locationWatchId=navigator.geolocation.watchPosition(a,u,r):navigator.geolocation.getCurrentPosition(a,u,r),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(r){if(this._container._leaflet_id){var a=r.code,u=r.message||(a===1?"permission denied":a===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:a,message:"Geolocation error: "+u+"."})}},_handleGeolocationResponse:function(r){if(this._container._leaflet_id){var a=r.coords.latitude,u=r.coords.longitude,h=new H(a,u),m=h.toBounds(r.coords.accuracy*2),S=this._locateOptions;if(S.setView){var D=this.getBoundsZoom(m);this.setView(h,S.maxZoom?Math.min(D,S.maxZoom):D)}var $={latlng:h,bounds:m,timestamp:r.timestamp};for(var Z in r.coords)typeof r.coords[Z]=="number"&&($[Z]=r.coords[Z]);this.fire("locationfound",$)}},addHandler:function(r,a){if(!a)return this;var u=this[r]=new a(this);return this._handlers.push(u),this.options[r]&&u.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Rt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ae(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var r;for(r in this._layers)this._layers[r].remove();for(r in this._panes)Rt(this._panes[r]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(r,a){var u="leaflet-pane"+(r?" leaflet-"+r.replace("Pane","")+"-pane":""),h=ht("div",u,a||this._mapPane);return r&&(this._panes[r]=h),h},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var r=this.getPixelBounds(),a=this.unproject(r.getBottomLeft()),u=this.unproject(r.getTopRight());return new U(a,u)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(r,a,u){r=k(r),u=re(u||[0,0]);var h=this.getZoom()||0,m=this.getMinZoom(),S=this.getMaxZoom(),D=r.getNorthWest(),$=r.getSouthEast(),Z=this.getSize().subtract(u),se=N(this.project($,h),this.project(D,h)).getSize(),ye=xe.any3d?this.options.zoomSnap:1,Fe=Z.x/se.x,Qe=Z.y/se.y,Cn=a?Math.max(Fe,Qe):Math.min(Fe,Qe);return h=this.getScaleZoom(Cn,h),ye&&(h=Math.round(h/(ye/100))*(ye/100),h=a?Math.ceil(h/ye)*ye:Math.floor(h/ye)*ye),Math.max(m,Math.min(S,h))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new x(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(r,a){var u=this._getTopLeftPoint(r,a);return new _e(u,u.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(r){return this.options.crs.getProjectedBounds(r===void 0?this.getZoom():r)},getPane:function(r){return typeof r=="string"?this._panes[r]:r},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(r,a){var u=this.options.crs;return a=a===void 0?this._zoom:a,u.scale(r)/u.scale(a)},getScaleZoom:function(r,a){var u=this.options.crs;a=a===void 0?this._zoom:a;var h=u.zoom(r*u.scale(a));return isNaN(h)?1/0:h},project:function(r,a){return a=a===void 0?this._zoom:a,this.options.crs.latLngToPoint(ie(r),a)},unproject:function(r,a){return a=a===void 0?this._zoom:a,this.options.crs.pointToLatLng(re(r),a)},layerPointToLatLng:function(r){var a=re(r).add(this.getPixelOrigin());return this.unproject(a)},latLngToLayerPoint:function(r){var a=this.project(ie(r))._round();return a._subtract(this.getPixelOrigin())},wrapLatLng:function(r){return this.options.crs.wrapLatLng(ie(r))},wrapLatLngBounds:function(r){return this.options.crs.wrapLatLngBounds(k(r))},distance:function(r,a){return this.options.crs.distance(ie(r),ie(a))},containerPointToLayerPoint:function(r){return re(r).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(r){return re(r).add(this._getMapPanePos())},containerPointToLatLng:function(r){var a=this.containerPointToLayerPoint(re(r));return this.layerPointToLatLng(a)},latLngToContainerPoint:function(r){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ie(r)))},mouseEventToContainerPoint:function(r){return XT(r,this._container)},mouseEventToLayerPoint:function(r){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(r))},mouseEventToLatLng:function(r){return this.layerPointToLatLng(this.mouseEventToLayerPoint(r))},_initContainer:function(r){var a=this._container=GT(r);if(a){if(a._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");We(a,"scroll",this._onScroll,this),this._containerId=d(a)},_initLayout:function(){var r=this._container;this._fadeAnimated=this.options.fadeAnimation&&xe.any3d,qe(r,"leaflet-container"+(xe.touch?" leaflet-touch":"")+(xe.retina?" leaflet-retina":"")+(xe.ielt9?" leaflet-oldie":"")+(xe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var a=uu(r,"position");a!=="absolute"&&a!=="relative"&&a!=="fixed"&&a!=="sticky"&&(r.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var r=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Zt(this._mapPane,new x(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(qe(r.markerPane,"leaflet-zoom-hide"),qe(r.shadowPane,"leaflet-zoom-hide"))},_resetView:function(r,a,u){Zt(this._mapPane,new x(0,0));var h=!this._loaded;this._loaded=!0,a=this._limitZoom(a),this.fire("viewprereset");var m=this._zoom!==a;this._moveStart(m,u)._move(r,a)._moveEnd(m),this.fire("viewreset"),h&&this.fire("load")},_moveStart:function(r,a){return r&&this.fire("zoomstart"),a||this.fire("movestart"),this},_move:function(r,a,u,h){a===void 0&&(a=this._zoom);var m=this._zoom!==a;return this._zoom=a,this._lastCenter=r,this._pixelOrigin=this._getNewPixelOrigin(r),h?u&&u.pinch&&this.fire("zoom",u):((m||u&&u.pinch)&&this.fire("zoom",u),this.fire("move",u)),this},_moveEnd:function(r){return r&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return ae(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(r){Zt(this._mapPane,this._getMapPanePos().subtract(r))},_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(r){this._targets={},this._targets[d(this._container)]=this;var a=r?bt:We;a(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&a(window,"resize",this._onResize,this),xe.any3d&&this.options.transform3DLimit&&(r?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){ae(this._resizeRequest),this._resizeRequest=B(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var r=this._getMapPanePos();Math.max(Math.abs(r.x),Math.abs(r.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(r,a){for(var u=[],h,m=a==="mouseout"||a==="mouseover",S=r.target||r.srcElement,D=!1;S;){if(h=this._targets[d(S)],h&&(a==="click"||a==="preclick")&&this._draggableMoved(h)){D=!0;break}if(h&&h.listens(a,!0)&&(m&&!rg(S,r)||(u.push(h),m))||S===this._container)break;S=S.parentNode}return!u.length&&!D&&!m&&this.listens(a,!0)&&(u=[this]),u},_isClickDisabled:function(r){for(;r&&r!==this._container;){if(r._leaflet_disable_click)return!0;r=r.parentNode}},_handleDOMEvent:function(r){var a=r.target||r.srcElement;if(!(!this._loaded||a._leaflet_disable_events||r.type==="click"&&this._isClickDisabled(a))){var u=r.type;u==="mousedown"&&Xv(a),this._fireDOMEvent(r,u)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(r,a,u){if(r.type==="click"){var h=o({},r);h.type="preclick",this._fireDOMEvent(h,h.type,u)}var m=this._findEventTargets(r,a);if(u){for(var S=[],D=0;D<u.length;D++)u[D].listens(a,!0)&&S.push(u[D]);m=S.concat(m)}if(m.length){a==="contextmenu"&&cn(r);var $=m[0],Z={originalEvent:r};if(r.type!=="keypress"&&r.type!=="keydown"&&r.type!=="keyup"){var se=$.getLatLng&&(!$._radius||$._radius<=10);Z.containerPoint=se?this.latLngToContainerPoint($.getLatLng()):this.mouseEventToContainerPoint(r),Z.layerPoint=this.containerPointToLayerPoint(Z.containerPoint),Z.latlng=se?$.getLatLng():this.layerPointToLatLng(Z.layerPoint)}for(D=0;D<m.length;D++)if(m[D].fire(a,Z,!0),Z.originalEvent._stopped||m[D].options.bubblingMouseEvents===!1&&z(this._mouseEvents,a)!==-1)return}},_draggableMoved:function(r){return r=r.dragging&&r.dragging.enabled()?r:this,r.dragging&&r.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var r=0,a=this._handlers.length;r<a;r++)this._handlers[r].disable()},whenReady:function(r,a){return this._loaded?r.call(a||this,{target:this}):this.on("load",r,a),this},_getMapPanePos:function(){return Ua(this._mapPane)||new x(0,0)},_moved:function(){var r=this._getMapPanePos();return r&&!r.equals([0,0])},_getTopLeftPoint:function(r,a){var u=r&&a!==void 0?this._getNewPixelOrigin(r,a):this.getPixelOrigin();return u.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(r,a){var u=this.getSize()._divideBy(2);return this.project(r,a)._subtract(u)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(r,a,u){var h=this._getNewPixelOrigin(u,a);return this.project(r,a)._subtract(h)},_latLngBoundsToNewLayerBounds:function(r,a,u){var h=this._getNewPixelOrigin(u,a);return N([this.project(r.getSouthWest(),a)._subtract(h),this.project(r.getNorthWest(),a)._subtract(h),this.project(r.getSouthEast(),a)._subtract(h),this.project(r.getNorthEast(),a)._subtract(h)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(r){return this.latLngToLayerPoint(r).subtract(this._getCenterLayerPoint())},_limitCenter:function(r,a,u){if(!u)return r;var h=this.project(r,a),m=this.getSize().divideBy(2),S=new _e(h.subtract(m),h.add(m)),D=this._getBoundsOffset(S,u,a);return Math.abs(D.x)<=1&&Math.abs(D.y)<=1?r:this.unproject(h.add(D),a)},_limitOffset:function(r,a){if(!a)return r;var u=this.getPixelBounds(),h=new _e(u.min.add(r),u.max.add(r));return r.add(this._getBoundsOffset(h,a))},_getBoundsOffset:function(r,a,u){var h=N(this.project(a.getNorthEast(),u),this.project(a.getSouthWest(),u)),m=h.min.subtract(r.min),S=h.max.subtract(r.max),D=this._rebound(m.x,-S.x),$=this._rebound(m.y,-S.y);return new x(D,$)},_rebound:function(r,a){return r+a>0?Math.round(r-a)/2:Math.max(0,Math.ceil(r))-Math.max(0,Math.floor(a))},_limitZoom:function(r){var a=this.getMinZoom(),u=this.getMaxZoom(),h=xe.any3d?this.options.zoomSnap:1;return h&&(r=Math.round(r/h)*h),Math.max(a,Math.min(u,r))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ft(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(r,a){var u=this._getCenterOffset(r)._trunc();return(a&&a.animate)!==!0&&!this.getSize().contains(u)?!1:(this.panBy(u,a),!0)},_createAnimProxy:function(){var r=this._proxy=ht("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(r),this.on("zoomanim",function(a){var u=Hv,h=this._proxy.style[u];$a(this._proxy,this.project(a.center,a.zoom),this.getZoomScale(a.zoom,1)),h===this._proxy.style[u]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Rt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var r=this.getCenter(),a=this.getZoom();$a(this._proxy,this.project(r,a),this.getZoomScale(a,1))},_catchTransitionEnd:function(r){this._animatingZoom&&r.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(r,a,u){if(this._animatingZoom)return!0;if(u=u||{},!this._zoomAnimated||u.animate===!1||this._nothingToAnimate()||Math.abs(a-this._zoom)>this.options.zoomAnimationThreshold)return!1;var h=this.getZoomScale(a),m=this._getCenterOffset(r)._divideBy(1-1/h);return u.animate!==!0&&!this.getSize().contains(m)?!1:(B(function(){this._moveStart(!0,u.noMoveStart||!1)._animateZoom(r,a,!0)},this),!0)},_animateZoom:function(r,a,u,h){this._mapPane&&(u&&(this._animatingZoom=!0,this._animateToCenter=r,this._animateToZoom=a,qe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:r,zoom:a,noUpdate:h}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(c(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ft(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 q2(r,a){return new st(r,a)}var Nr=P.extend({options:{position:"topright"},initialize:function(r){w(this,r)},getPosition:function(){return this.options.position},setPosition:function(r){var a=this._map;return a&&a.removeControl(this),this.options.position=r,a&&a.addControl(this),this},getContainer:function(){return this._container},addTo:function(r){this.remove(),this._map=r;var a=this._container=this.onAdd(r),u=this.getPosition(),h=r._controlCorners[u];return qe(a,"leaflet-control"),u.indexOf("bottom")!==-1?h.insertBefore(a,h.firstChild):h.appendChild(a),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Rt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(r){this._map&&r&&r.screenX>0&&r.screenY>0&&this._map.getContainer().focus()}}),_u=function(r){return new Nr(r)};st.include({addControl:function(r){return r.addTo(this),this},removeControl:function(r){return r.remove(),this},_initControlPos:function(){var r=this._controlCorners={},a="leaflet-",u=this._controlContainer=ht("div",a+"control-container",this._container);function h(m,S){var D=a+m+" "+a+S;r[m+S]=ht("div",D,u)}h("top","left"),h("top","right"),h("bottom","left"),h("bottom","right")},_clearControlPos:function(){for(var r in this._controlCorners)Rt(this._controlCorners[r]);Rt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var eb=Nr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(r,a,u,h){return u<h?-1:h<u?1:0}},initialize:function(r,a,u){w(this,u),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var h in r)this._addLayer(r[h],h);for(h in a)this._addLayer(a[h],h,!0)},onAdd:function(r){this._initLayout(),this._update(),this._map=r,r.on("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(r){return Nr.prototype.addTo.call(this,r),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var r=0;r<this._layers.length;r++)this._layers[r].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(r,a){return this._addLayer(r,a),this._map?this._update():this},addOverlay:function(r,a){return this._addLayer(r,a,!0),this._map?this._update():this},removeLayer:function(r){r.off("add remove",this._onLayerChange,this);var a=this._getLayer(d(r));return a&&this._layers.splice(this._layers.indexOf(a),1),this._map?this._update():this},expand:function(){qe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var r=this._map.getSize().y-(this._container.offsetTop+50);return r<this._section.clientHeight?(qe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=r+"px"):Ft(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ft(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var r="leaflet-control-layers",a=this._container=ht("div",r),u=this.options.collapsed;a.setAttribute("aria-haspopup",!0),pu(a),ng(a);var h=this._section=ht("section",r+"-list");u&&(this._map.on("click",this.collapse,this),We(a,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var m=this._layersLink=ht("a",r+"-toggle",a);m.href="#",m.title="Layers",m.setAttribute("role","button"),We(m,{keydown:function(S){S.keyCode===13&&this._expandSafely()},click:function(S){cn(S),this._expandSafely()}},this),u||this.expand(),this._baseLayersList=ht("div",r+"-base",h),this._separator=ht("div",r+"-separator",h),this._overlaysList=ht("div",r+"-overlays",h),a.appendChild(h)},_getLayer:function(r){for(var a=0;a<this._layers.length;a++)if(this._layers[a]&&d(this._layers[a].layer)===r)return this._layers[a]},_addLayer:function(r,a,u){this._map&&r.on("add remove",this._onLayerChange,this),this._layers.push({layer:r,name:a,overlay:u}),this.options.sortLayers&&this._layers.sort(c(function(h,m){return this.options.sortFunction(h.layer,m.layer,h.name,m.name)},this)),this.options.autoZIndex&&r.setZIndex&&(this._lastZIndex++,r.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;nh(this._baseLayersList),nh(this._overlaysList),this._layerControlInputs=[];var r,a,u,h,m=0;for(u=0;u<this._layers.length;u++)h=this._layers[u],this._addItem(h),a=a||h.overlay,r=r||!h.overlay,m+=h.overlay?0:1;return this.options.hideSingleBase&&(r=r&&m>1,this._baseLayersList.style.display=r?"":"none"),this._separator.style.display=a&&r?"":"none",this},_onLayerChange:function(r){this._handlingClick||this._update();var a=this._getLayer(d(r.target)),u=a.overlay?r.type==="add"?"overlayadd":"overlayremove":r.type==="add"?"baselayerchange":null;u&&this._map.fire(u,a)},_createRadioElement:function(r,a){var u='<input type="radio" class="leaflet-control-layers-selector" name="'+r+'"'+(a?' checked="checked"':"")+"/>",h=document.createElement("div");return h.innerHTML=u,h.firstChild},_addItem:function(r){var a=document.createElement("label"),u=this._map.hasLayer(r.layer),h;r.overlay?(h=document.createElement("input"),h.type="checkbox",h.className="leaflet-control-layers-selector",h.defaultChecked=u):h=this._createRadioElement("leaflet-base-layers_"+d(this),u),this._layerControlInputs.push(h),h.layerId=d(r.layer),We(h,"click",this._onInputClick,this);var m=document.createElement("span");m.innerHTML=" "+r.name;var S=document.createElement("span");a.appendChild(S),S.appendChild(h),S.appendChild(m);var D=r.overlay?this._overlaysList:this._baseLayersList;return D.appendChild(a),this._checkDisabledLayers(),a},_onInputClick:function(){if(!this._preventClick){var r=this._layerControlInputs,a,u,h=[],m=[];this._handlingClick=!0;for(var S=r.length-1;S>=0;S--)a=r[S],u=this._getLayer(a.layerId).layer,a.checked?h.push(u):a.checked||m.push(u);for(S=0;S<m.length;S++)this._map.hasLayer(m[S])&&this._map.removeLayer(m[S]);for(S=0;S<h.length;S++)this._map.hasLayer(h[S])||this._map.addLayer(h[S]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var r=this._layerControlInputs,a,u,h=this._map.getZoom(),m=r.length-1;m>=0;m--)a=r[m],u=this._getLayer(a.layerId).layer,a.disabled=u.options.minZoom!==void 0&&h<u.options.minZoom||u.options.maxZoom!==void 0&&h>u.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var r=this._section;this._preventClick=!0,We(r,"click",cn),this.expand();var a=this;setTimeout(function(){bt(r,"click",cn),a._preventClick=!1})}}),K2=function(r,a,u){return new eb(r,a,u)},ig=Nr.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(r){var a="leaflet-control-zoom",u=ht("div",a+" leaflet-bar"),h=this.options;return this._zoomInButton=this._createButton(h.zoomInText,h.zoomInTitle,a+"-in",u,this._zoomIn),this._zoomOutButton=this._createButton(h.zoomOutText,h.zoomOutTitle,a+"-out",u,this._zoomOut),this._updateDisabled(),r.on("zoomend zoomlevelschange",this._updateDisabled,this),u},onRemove:function(r){r.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(r){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(r.shiftKey?3:1))},_zoomOut:function(r){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(r.shiftKey?3:1))},_createButton:function(r,a,u,h,m){var S=ht("a",u,h);return S.innerHTML=r,S.href="#",S.title=a,S.setAttribute("role","button"),S.setAttribute("aria-label",a),pu(S),We(S,"click",Ha),We(S,"click",m,this),We(S,"click",this._refocusOnMap,this),S},_updateDisabled:function(){var r=this._map,a="leaflet-disabled";Ft(this._zoomInButton,a),Ft(this._zoomOutButton,a),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||r._zoom===r.getMinZoom())&&(qe(this._zoomOutButton,a),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||r._zoom===r.getMaxZoom())&&(qe(this._zoomInButton,a),this._zoomInButton.setAttribute("aria-disabled","true"))}});st.mergeOptions({zoomControl:!0}),st.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ig,this.addControl(this.zoomControl))});var X2=function(r){return new ig(r)},tb=Nr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(r){var a="leaflet-control-scale",u=ht("div",a),h=this.options;return this._addScales(h,a+"-line",u),r.on(h.updateWhenIdle?"moveend":"move",this._update,this),r.whenReady(this._update,this),u},onRemove:function(r){r.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(r,a,u){r.metric&&(this._mScale=ht("div",a,u)),r.imperial&&(this._iScale=ht("div",a,u))},_update:function(){var r=this._map,a=r.getSize().y/2,u=r.distance(r.containerPointToLatLng([0,a]),r.containerPointToLatLng([this.options.maxWidth,a]));this._updateScales(u)},_updateScales:function(r){this.options.metric&&r&&this._updateMetric(r),this.options.imperial&&r&&this._updateImperial(r)},_updateMetric:function(r){var a=this._getRoundNum(r),u=a<1e3?a+" m":a/1e3+" km";this._updateScale(this._mScale,u,a/r)},_updateImperial:function(r){var a=r*3.2808399,u,h,m;a>5280?(u=a/5280,h=this._getRoundNum(u),this._updateScale(this._iScale,h+" mi",h/u)):(m=this._getRoundNum(a),this._updateScale(this._iScale,m+" ft",m/a))},_updateScale:function(r,a,u){r.style.width=Math.round(this.options.maxWidth*u)+"px",r.innerHTML=a},_getRoundNum:function(r){var a=Math.pow(10,(Math.floor(r)+"").length-1),u=r/a;return u=u>=10?10:u>=5?5:u>=3?3:u>=2?2:1,a*u}}),J2=function(r){return new tb(r)},Q2='<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>',og=Nr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(xe.inlineSvg?Q2+" ":"")+"Leaflet</a>"},initialize:function(r){w(this,r),this._attributions={}},onAdd:function(r){r.attributionControl=this,this._container=ht("div","leaflet-control-attribution"),pu(this._container);for(var a in r._layers)r._layers[a].getAttribution&&this.addAttribution(r._layers[a].getAttribution());return this._update(),r.on("layeradd",this._addAttribution,this),this._container},onRemove:function(r){r.off("layeradd",this._addAttribution,this)},_addAttribution:function(r){r.layer.getAttribution&&(this.addAttribution(r.layer.getAttribution()),r.layer.once("remove",function(){this.removeAttribution(r.layer.getAttribution())},this))},setPrefix:function(r){return this.options.prefix=r,this._update(),this},addAttribution:function(r){return r?(this._attributions[r]||(this._attributions[r]=0),this._attributions[r]++,this._update(),this):this},removeAttribution:function(r){return r?(this._attributions[r]&&(this._attributions[r]--,this._update()),this):this},_update:function(){if(this._map){var r=[];for(var a in this._attributions)this._attributions[a]&&r.push(a);var u=[];this.options.prefix&&u.push(this.options.prefix),r.length&&u.push(r.join(", ")),this._container.innerHTML=u.join(' <span aria-hidden="true">|</span> ')}}});st.mergeOptions({attributionControl:!0}),st.addInitHook(function(){this.options.attributionControl&&new og().addTo(this)});var eY=function(r){return new og(r)};Nr.Layers=eb,Nr.Zoom=ig,Nr.Scale=tb,Nr.Attribution=og,_u.layers=K2,_u.zoom=X2,_u.scale=J2,_u.attribution=eY;var ei=P.extend({initialize:function(r){this._map=r},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ei.addTo=function(r,a){return r.addHandler(a,this),this};var tY={Events:K},nb=xe.touch?"touchstart mousedown":"mousedown",Oo=W.extend({options:{clickTolerance:3},initialize:function(r,a,u,h){w(this,h),this._element=r,this._dragStartTarget=a||r,this._preventOutline=u},enable:function(){this._enabled||(We(this._dragStartTarget,nb,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Oo._dragging===this&&this.finishDrag(!0),bt(this._dragStartTarget,nb,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(r){if(this._enabled&&(this._moved=!1,!Wv(this._element,"leaflet-zoom-anim"))){if(r.touches&&r.touches.length!==1){Oo._dragging===this&&this.finishDrag();return}if(!(Oo._dragging||r.shiftKey||r.which!==1&&r.button!==1&&!r.touches)&&(Oo._dragging=this,this._preventOutline&&Xv(this._element),jv(),fu(),!this._moving)){this.fire("down");var a=r.touches?r.touches[0]:r,u=jT(this._element);this._startPoint=new x(a.clientX,a.clientY),this._startPos=Ua(this._element),this._parentScale=Jv(u);var h=r.type==="mousedown";We(document,h?"mousemove":"touchmove",this._onMove,this),We(document,h?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(r){if(this._enabled){if(r.touches&&r.touches.length>1){this._moved=!0;return}var a=r.touches&&r.touches.length===1?r.touches[0]:r,u=new x(a.clientX,a.clientY)._subtract(this._startPoint);!u.x&&!u.y||Math.abs(u.x)+Math.abs(u.y)<this.options.clickTolerance||(u.x/=this._parentScale.x,u.y/=this._parentScale.y,cn(r),this._moved||(this.fire("dragstart"),this._moved=!0,qe(document.body,"leaflet-dragging"),this._lastTarget=r.target||r.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),qe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(u),this._moving=!0,this._lastEvent=r,this._updatePosition())}},_updatePosition:function(){var r={originalEvent:this._lastEvent};this.fire("predrag",r),Zt(this._element,this._newPos),this.fire("drag",r)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(r){Ft(document.body,"leaflet-dragging"),this._lastTarget&&(Ft(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),bt(document,"mousemove touchmove",this._onMove,this),bt(document,"mouseup touchend touchcancel",this._onUp,this),qv(),du();var a=this._moved&&this._moving;this._moving=!1,Oo._dragging=!1,a&&this.fire("dragend",{noInertia:r,distance:this._newPos.distanceTo(this._startPos)})}});function rb(r,a,u){var h,m=[1,4,2,8],S,D,$,Z,se,ye,Fe,Qe;for(S=0,ye=r.length;S<ye;S++)r[S]._code=Wa(r[S],a);for($=0;$<4;$++){for(Fe=m[$],h=[],S=0,ye=r.length,D=ye-1;S<ye;D=S++)Z=r[S],se=r[D],Z._code&Fe?se._code&Fe||(Qe=sh(se,Z,Fe,a,u),Qe._code=Wa(Qe,a),h.push(Qe)):(se._code&Fe&&(Qe=sh(se,Z,Fe,a,u),Qe._code=Wa(Qe,a),h.push(Qe)),h.push(Z));r=h}return r}function ib(r,a){var u,h,m,S,D,$,Z,se,ye;if(!r||r.length===0)throw new Error("latlngs not passed");sr(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var Fe=ie([0,0]),Qe=k(r),Cn=Qe.getNorthWest().distanceTo(Qe.getSouthWest())*Qe.getNorthEast().distanceTo(Qe.getNorthWest());Cn<1700&&(Fe=ag(r));var tn=r.length,lr=[];for(u=0;u<tn;u++){var Ln=ie(r[u]);lr.push(a.project(ie([Ln.lat-Fe.lat,Ln.lng-Fe.lng])))}for($=Z=se=0,u=0,h=tn-1;u<tn;h=u++)m=lr[u],S=lr[h],D=m.y*S.x-S.y*m.x,Z+=(m.x+S.x)*D,se+=(m.y+S.y)*D,$+=D*3;$===0?ye=lr[0]:ye=[Z/$,se/$];var wl=a.unproject(re(ye));return ie([wl.lat+Fe.lat,wl.lng+Fe.lng])}function ag(r){for(var a=0,u=0,h=0,m=0;m<r.length;m++){var S=ie(r[m]);a+=S.lat,u+=S.lng,h++}return ie([a/h,u/h])}var nY={__proto__:null,clipPolygon:rb,polygonCenter:ib,centroid:ag};function ob(r,a){if(!a||!r.length)return r.slice();var u=a*a;return r=oY(r,u),r=iY(r,u),r}function ab(r,a,u){return Math.sqrt(mu(r,a,u,!0))}function rY(r,a,u){return mu(r,a,u)}function iY(r,a){var u=r.length,h=typeof Uint8Array<"u"?Uint8Array:Array,m=new h(u);m[0]=m[u-1]=1,sg(r,m,a,0,u-1);var S,D=[];for(S=0;S<u;S++)m[S]&&D.push(r[S]);return D}function sg(r,a,u,h,m){var S=0,D,$,Z;for($=h+1;$<=m-1;$++)Z=mu(r[$],r[h],r[m],!0),Z>S&&(D=$,S=Z);S>u&&(a[D]=1,sg(r,a,u,h,D),sg(r,a,u,D,m))}function oY(r,a){for(var u=[r[0]],h=1,m=0,S=r.length;h<S;h++)aY(r[h],r[m])>a&&(u.push(r[h]),m=h);return m<S-1&&u.push(r[S-1]),u}var sb;function lb(r,a,u,h,m){var S=h?sb:Wa(r,u),D=Wa(a,u),$,Z,se;for(sb=D;;){if(!(S|D))return[r,a];if(S&D)return!1;$=S||D,Z=sh(r,a,$,u,m),se=Wa(Z,u),$===S?(r=Z,S=se):(a=Z,D=se)}}function sh(r,a,u,h,m){var S=a.x-r.x,D=a.y-r.y,$=h.min,Z=h.max,se,ye;return u&8?(se=r.x+S*(Z.y-r.y)/D,ye=Z.y):u&4?(se=r.x+S*($.y-r.y)/D,ye=$.y):u&2?(se=Z.x,ye=r.y+D*(Z.x-r.x)/S):u&1&&(se=$.x,ye=r.y+D*($.x-r.x)/S),new x(se,ye,m)}function Wa(r,a){var u=0;return r.x<a.min.x?u|=1:r.x>a.max.x&&(u|=2),r.y<a.min.y?u|=4:r.y>a.max.y&&(u|=8),u}function aY(r,a){var u=a.x-r.x,h=a.y-r.y;return u*u+h*h}function mu(r,a,u,h){var m=a.x,S=a.y,D=u.x-m,$=u.y-S,Z=D*D+$*$,se;return Z>0&&(se=((r.x-m)*D+(r.y-S)*$)/Z,se>1?(m=u.x,S=u.y):se>0&&(m+=D*se,S+=$*se)),D=r.x-m,$=r.y-S,h?D*D+$*$:new x(m,S)}function sr(r){return!M(r[0])||typeof r[0][0]!="object"&&typeof r[0][0]<"u"}function cb(r){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),sr(r)}function ub(r,a){var u,h,m,S,D,$,Z,se;if(!r||r.length===0)throw new Error("latlngs not passed");sr(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var ye=ie([0,0]),Fe=k(r),Qe=Fe.getNorthWest().distanceTo(Fe.getSouthWest())*Fe.getNorthEast().distanceTo(Fe.getNorthWest());Qe<1700&&(ye=ag(r));var Cn=r.length,tn=[];for(u=0;u<Cn;u++){var lr=ie(r[u]);tn.push(a.project(ie([lr.lat-ye.lat,lr.lng-ye.lng])))}for(u=0,h=0;u<Cn-1;u++)h+=tn[u].distanceTo(tn[u+1])/2;if(h===0)se=tn[0];else for(u=0,S=0;u<Cn-1;u++)if(D=tn[u],$=tn[u+1],m=D.distanceTo($),S+=m,S>h){Z=(S-h)/m,se=[$.x-Z*($.x-D.x),$.y-Z*($.y-D.y)];break}var Ln=a.unproject(re(se));return ie([Ln.lat+ye.lat,Ln.lng+ye.lng])}var sY={__proto__:null,simplify:ob,pointToSegmentDistance:ab,closestPointOnSegment:rY,clipSegment:lb,_getEdgeIntersection:sh,_getBitCode:Wa,_sqClosestPointOnSegment:mu,isFlat:sr,_flat:cb,polylineCenter:ub},lg={project:function(r){return new x(r.lng,r.lat)},unproject:function(r){return new H(r.y,r.x)},bounds:new _e([-180,-90],[180,90])},cg={R:6378137,R_MINOR:6356752314245179e-9,bounds:new _e([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(r){var a=Math.PI/180,u=this.R,h=r.lat*a,m=this.R_MINOR/u,S=Math.sqrt(1-m*m),D=S*Math.sin(h),$=Math.tan(Math.PI/4-h/2)/Math.pow((1-D)/(1+D),S/2);return h=-u*Math.log(Math.max($,1e-10)),new x(r.lng*a*u,h)},unproject:function(r){for(var a=180/Math.PI,u=this.R,h=this.R_MINOR/u,m=Math.sqrt(1-h*h),S=Math.exp(-r.y/u),D=Math.PI/2-2*Math.atan(S),$=0,Z=.1,se;$<15&&Math.abs(Z)>1e-7;$++)se=m*Math.sin(D),se=Math.pow((1-se)/(1+se),m/2),Z=Math.PI/2-2*Math.atan(S*se)-D,D+=Z;return new H(D*a,r.x*a/u)}},lY={__proto__:null,LonLat:lg,Mercator:cg,SphericalMercator:fe},cY=o({},X,{code:"EPSG:3395",projection:cg,transformation:function(){var r=.5/(Math.PI*cg.R);return Ge(r,.5,-r,.5)}()}),fb=o({},X,{code:"EPSG:4326",projection:lg,transformation:Ge(1/180,1,-1/180,.5)}),uY=o({},O,{projection:lg,transformation:Ge(1,0,-1,0),scale:function(r){return Math.pow(2,r)},zoom:function(r){return Math.log(r)/Math.LN2},distance:function(r,a){var u=a.lng-r.lng,h=a.lat-r.lat;return Math.sqrt(u*u+h*h)},infinite:!0});O.Earth=X,O.EPSG3395=cY,O.EPSG3857=we,O.EPSG900913=be,O.EPSG4326=fb,O.Simple=uY;var kr=W.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(r){return r.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(r){return r&&r.removeLayer(this),this},getPane:function(r){return this._map.getPane(r?this.options[r]||r:this.options.pane)},addInteractiveTarget:function(r){return this._map._targets[d(r)]=this,this},removeInteractiveTarget:function(r){return delete this._map._targets[d(r)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(r){var a=r.target;if(a.hasLayer(this)){if(this._map=a,this._zoomAnimated=a._zoomAnimated,this.getEvents){var u=this.getEvents();a.on(u,this),this.once("remove",function(){a.off(u,this)},this)}this.onAdd(a),this.fire("add"),a.fire("layeradd",{layer:this})}}});st.include({addLayer:function(r){if(!r._layerAdd)throw new Error("The provided object is not a Layer.");var a=d(r);return this._layers[a]?this:(this._layers[a]=r,r._mapToAdd=this,r.beforeAdd&&r.beforeAdd(this),this.whenReady(r._layerAdd,r),this)},removeLayer:function(r){var a=d(r);return this._layers[a]?(this._loaded&&r.onRemove(this),delete this._layers[a],this._loaded&&(this.fire("layerremove",{layer:r}),r.fire("remove")),r._map=r._mapToAdd=null,this):this},hasLayer:function(r){return d(r)in this._layers},eachLayer:function(r,a){for(var u in this._layers)r.call(a,this._layers[u]);return this},_addLayers:function(r){r=r?M(r)?r:[r]:[];for(var a=0,u=r.length;a<u;a++)this.addLayer(r[a])},_addZoomLimit:function(r){(!isNaN(r.options.maxZoom)||!isNaN(r.options.minZoom))&&(this._zoomBoundLayers[d(r)]=r,this._updateZoomLevels())},_removeZoomLimit:function(r){var a=d(r);this._zoomBoundLayers[a]&&(delete this._zoomBoundLayers[a],this._updateZoomLevels())},_updateZoomLevels:function(){var r=1/0,a=-1/0,u=this._getZoomSpan();for(var h in this._zoomBoundLayers){var m=this._zoomBoundLayers[h].options;r=m.minZoom===void 0?r:Math.min(r,m.minZoom),a=m.maxZoom===void 0?a:Math.max(a,m.maxZoom)}this._layersMaxZoom=a===-1/0?void 0:a,this._layersMinZoom=r===1/0?void 0:r,u!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ml=kr.extend({initialize:function(r,a){w(this,a),this._layers={};var u,h;if(r)for(u=0,h=r.length;u<h;u++)this.addLayer(r[u])},addLayer:function(r){var a=this.getLayerId(r);return this._layers[a]=r,this._map&&this._map.addLayer(r),this},removeLayer:function(r){var a=r in this._layers?r:this.getLayerId(r);return this._map&&this._layers[a]&&this._map.removeLayer(this._layers[a]),delete this._layers[a],this},hasLayer:function(r){var a=typeof r=="number"?r:this.getLayerId(r);return a in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(r){var a=Array.prototype.slice.call(arguments,1),u,h;for(u in this._layers)h=this._layers[u],h[r]&&h[r].apply(h,a);return this},onAdd:function(r){this.eachLayer(r.addLayer,r)},onRemove:function(r){this.eachLayer(r.removeLayer,r)},eachLayer:function(r,a){for(var u in this._layers)r.call(a,this._layers[u]);return this},getLayer:function(r){return this._layers[r]},getLayers:function(){var r=[];return this.eachLayer(r.push,r),r},setZIndex:function(r){return this.invoke("setZIndex",r)},getLayerId:function(r){return d(r)}}),fY=function(r,a){return new ml(r,a)},Bi=ml.extend({addLayer:function(r){return this.hasLayer(r)?this:(r.addEventParent(this),ml.prototype.addLayer.call(this,r),this.fire("layeradd",{layer:r}))},removeLayer:function(r){return this.hasLayer(r)?(r in this._layers&&(r=this._layers[r]),r.removeEventParent(this),ml.prototype.removeLayer.call(this,r),this.fire("layerremove",{layer:r})):this},setStyle:function(r){return this.invoke("setStyle",r)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var r=new U;for(var a in this._layers){var u=this._layers[a];r.extend(u.getBounds?u.getBounds():u.getLatLng())}return r}}),dY=function(r,a){return new Bi(r,a)},vl=P.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(r){w(this,r)},createIcon:function(r){return this._createIcon("icon",r)},createShadow:function(r){return this._createIcon("shadow",r)},_createIcon:function(r,a){var u=this._getIconUrl(r);if(!u){if(r==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var h=this._createImg(u,a&&a.tagName==="IMG"?a:null);return this._setIconStyles(h,r),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),h},_setIconStyles:function(r,a){var u=this.options,h=u[a+"Size"];typeof h=="number"&&(h=[h,h]);var m=re(h),S=re(a==="shadow"&&u.shadowAnchor||u.iconAnchor||m&&m.divideBy(2,!0));r.className="leaflet-marker-"+a+" "+(u.className||""),S&&(r.style.marginLeft=-S.x+"px",r.style.marginTop=-S.y+"px"),m&&(r.style.width=m.x+"px",r.style.height=m.y+"px")},_createImg:function(r,a){return a=a||document.createElement("img"),a.src=r,a},_getIconUrl:function(r){return xe.retina&&this.options[r+"RetinaUrl"]||this.options[r+"Url"]}});function hY(r){return new vl(r)}var vu=vl.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(r){return typeof vu.imagePath!="string"&&(vu.imagePath=this._detectIconPath()),(this.options.imagePath||vu.imagePath)+vl.prototype._getIconUrl.call(this,r)},_stripUrl:function(r){var a=function(u,h,m){var S=h.exec(u);return S&&S[m]};return r=a(r,/^url\((['"])?(.+)\1\)$/,2),r&&a(r,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var r=ht("div","leaflet-default-icon-path",document.body),a=uu(r,"background-image")||uu(r,"backgroundImage");if(document.body.removeChild(r),a=this._stripUrl(a),a)return a;var u=document.querySelector('link[href$="leaflet.css"]');return u?u.href.substring(0,u.href.length-11-1):""}}),db=ei.extend({initialize:function(r){this._marker=r},addHooks:function(){var r=this._marker._icon;this._draggable||(this._draggable=new Oo(r,r,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),qe(r,"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&&Ft(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(r){var a=this._marker,u=a._map,h=this._marker.options.autoPanSpeed,m=this._marker.options.autoPanPadding,S=Ua(a._icon),D=u.getPixelBounds(),$=u.getPixelOrigin(),Z=N(D.min._subtract($).add(m),D.max._subtract($).subtract(m));if(!Z.contains(S)){var se=re((Math.max(Z.max.x,S.x)-Z.max.x)/(D.max.x-Z.max.x)-(Math.min(Z.min.x,S.x)-Z.min.x)/(D.min.x-Z.min.x),(Math.max(Z.max.y,S.y)-Z.max.y)/(D.max.y-Z.max.y)-(Math.min(Z.min.y,S.y)-Z.min.y)/(D.min.y-Z.min.y)).multiplyBy(h);u.panBy(se,{animate:!1}),this._draggable._newPos._add(se),this._draggable._startPos._add(se),Zt(a._icon,this._draggable._newPos),this._onDrag(r),this._panRequest=B(this._adjustPan.bind(this,r))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(r){this._marker.options.autoPan&&(ae(this._panRequest),this._panRequest=B(this._adjustPan.bind(this,r)))},_onDrag:function(r){var a=this._marker,u=a._shadow,h=Ua(a._icon),m=a._map.layerPointToLatLng(h);u&&Zt(u,h),a._latlng=m,r.latlng=m,r.oldLatLng=this._oldLatLng,a.fire("move",r).fire("drag",r)},_onDragEnd:function(r){ae(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",r)}}),lh=kr.extend({options:{icon:new vu,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(r,a){w(this,a),this._latlng=ie(r)},onAdd:function(r){this._zoomAnimated=this._zoomAnimated&&r.options.markerZoomAnimation,this._zoomAnimated&&r.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(r){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&r.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(r){var a=this._latlng;return this._latlng=ie(r),this.update(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},setZIndexOffset:function(r){return this.options.zIndexOffset=r,this.update()},getIcon:function(){return this.options.icon},setIcon:function(r){return this.options.icon=r,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 r=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(r)}return this},_initIcon:function(){var r=this.options,a="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),u=r.icon.createIcon(this._icon),h=!1;u!==this._icon&&(this._icon&&this._removeIcon(),h=!0,r.title&&(u.title=r.title),u.tagName==="IMG"&&(u.alt=r.alt||"")),qe(u,a),r.keyboard&&(u.tabIndex="0",u.setAttribute("role","button")),this._icon=u,r.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&We(u,"focus",this._panOnFocus,this);var m=r.icon.createShadow(this._shadow),S=!1;m!==this._shadow&&(this._removeShadow(),S=!0),m&&(qe(m,a),m.alt=""),this._shadow=m,r.opacity<1&&this._updateOpacity(),h&&this.getPane().appendChild(this._icon),this._initInteraction(),m&&S&&this.getPane(r.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&bt(this._icon,"focus",this._panOnFocus,this),Rt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Rt(this._shadow),this._shadow=null},_setPos:function(r){this._icon&&Zt(this._icon,r),this._shadow&&Zt(this._shadow,r),this._zIndex=r.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(r){this._icon&&(this._icon.style.zIndex=this._zIndex+r)},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center).round();this._setPos(a)},_initInteraction:function(){if(this.options.interactive&&(qe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),db)){var r=this.options.draggable;this.dragging&&(r=this.dragging.enabled(),this.dragging.disable()),this.dragging=new db(this),r&&this.dragging.enable()}},setOpacity:function(r){return this.options.opacity=r,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var r=this.options.opacity;this._icon&&ar(this._icon,r),this._shadow&&ar(this._shadow,r)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var r=this._map;if(r){var a=this.options.icon.options,u=a.iconSize?re(a.iconSize):re(0,0),h=a.iconAnchor?re(a.iconAnchor):re(0,0);r.panInside(this._latlng,{paddingTopLeft:h,paddingBottomRight:u.subtract(h)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function pY(r,a){return new lh(r,a)}var Io=kr.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(r){this._renderer=r.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(r){return w(this,r),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&r&&Object.prototype.hasOwnProperty.call(r,"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)}}),ch=Io.extend({options:{fill:!0,radius:10},initialize:function(r,a){w(this,a),this._latlng=ie(r),this._radius=this.options.radius},setLatLng:function(r){var a=this._latlng;return this._latlng=ie(r),this.redraw(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(r){return this.options.radius=this._radius=r,this.redraw()},getRadius:function(){return this._radius},setStyle:function(r){var a=r&&r.radius||this._radius;return Io.prototype.setStyle.call(this,r),this.setRadius(a),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var r=this._radius,a=this._radiusY||r,u=this._clickTolerance(),h=[r+u,a+u];this._pxBounds=new _e(this._point.subtract(h),this._point.add(h))},_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(r){return r.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function _Y(r,a){return new ch(r,a)}var ug=ch.extend({initialize:function(r,a,u){if(typeof a=="number"&&(a=o({},u,{radius:a})),w(this,a),this._latlng=ie(r),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(r){return this._mRadius=r,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var r=[this._radius,this._radiusY||this._radius];return new U(this._map.layerPointToLatLng(this._point.subtract(r)),this._map.layerPointToLatLng(this._point.add(r)))},setStyle:Io.prototype.setStyle,_project:function(){var r=this._latlng.lng,a=this._latlng.lat,u=this._map,h=u.options.crs;if(h.distance===X.distance){var m=Math.PI/180,S=this._mRadius/X.R/m,D=u.project([a+S,r]),$=u.project([a-S,r]),Z=D.add($).divideBy(2),se=u.unproject(Z).lat,ye=Math.acos((Math.cos(S*m)-Math.sin(a*m)*Math.sin(se*m))/(Math.cos(a*m)*Math.cos(se*m)))/m;(isNaN(ye)||ye===0)&&(ye=S/Math.cos(Math.PI/180*a)),this._point=Z.subtract(u.getPixelOrigin()),this._radius=isNaN(ye)?0:Z.x-u.project([se,r-ye]).x,this._radiusY=Z.y-D.y}else{var Fe=h.unproject(h.project(this._latlng).subtract([this._mRadius,0]));this._point=u.latLngToLayerPoint(this._latlng),this._radius=this._point.x-u.latLngToLayerPoint(Fe).x}this._updateBounds()}});function mY(r,a,u){return new ug(r,a,u)}var Vi=Io.extend({options:{smoothFactor:1,noClip:!1},initialize:function(r,a){w(this,a),this._setLatLngs(r)},getLatLngs:function(){return this._latlngs},setLatLngs:function(r){return this._setLatLngs(r),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(r){for(var a=1/0,u=null,h=mu,m,S,D=0,$=this._parts.length;D<$;D++)for(var Z=this._parts[D],se=1,ye=Z.length;se<ye;se++){m=Z[se-1],S=Z[se];var Fe=h(r,m,S,!0);Fe<a&&(a=Fe,u=h(r,m,S))}return u&&(u.distance=Math.sqrt(a)),u},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ub(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(r,a){return a=a||this._defaultShape(),r=ie(r),a.push(r),this._bounds.extend(r),this.redraw()},_setLatLngs:function(r){this._bounds=new U,this._latlngs=this._convertLatLngs(r)},_defaultShape:function(){return sr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(r){for(var a=[],u=sr(r),h=0,m=r.length;h<m;h++)u?(a[h]=ie(r[h]),this._bounds.extend(a[h])):a[h]=this._convertLatLngs(r[h]);return a},_project:function(){var r=new _e;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,r),this._bounds.isValid()&&r.isValid()&&(this._rawPxBounds=r,this._updateBounds())},_updateBounds:function(){var r=this._clickTolerance(),a=new x(r,r);this._rawPxBounds&&(this._pxBounds=new _e([this._rawPxBounds.min.subtract(a),this._rawPxBounds.max.add(a)]))},_projectLatlngs:function(r,a,u){var h=r[0]instanceof H,m=r.length,S,D;if(h){for(D=[],S=0;S<m;S++)D[S]=this._map.latLngToLayerPoint(r[S]),u.extend(D[S]);a.push(D)}else for(S=0;S<m;S++)this._projectLatlngs(r[S],a,u)},_clipPoints:function(){var r=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}var a=this._parts,u,h,m,S,D,$,Z;for(u=0,m=0,S=this._rings.length;u<S;u++)for(Z=this._rings[u],h=0,D=Z.length;h<D-1;h++)$=lb(Z[h],Z[h+1],r,h,!0),$&&(a[m]=a[m]||[],a[m].push($[0]),($[1]!==Z[h+1]||h===D-2)&&(a[m].push($[1]),m++))}},_simplifyPoints:function(){for(var r=this._parts,a=this.options.smoothFactor,u=0,h=r.length;u<h;u++)r[u]=ob(r[u],a)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(r,a){var u,h,m,S,D,$,Z=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(r))return!1;for(u=0,S=this._parts.length;u<S;u++)for($=this._parts[u],h=0,D=$.length,m=D-1;h<D;m=h++)if(!(!a&&h===0)&&ab(r,$[m],$[h])<=Z)return!0;return!1}});function vY(r,a){return new Vi(r,a)}Vi._flat=cb;var gl=Vi.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 ib(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(r){var a=Vi.prototype._convertLatLngs.call(this,r),u=a.length;return u>=2&&a[0]instanceof H&&a[0].equals(a[u-1])&&a.pop(),a},_setLatLngs:function(r){Vi.prototype._setLatLngs.call(this,r),sr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return sr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var r=this._renderer._bounds,a=this.options.weight,u=new x(a,a);if(r=new _e(r.min.subtract(u),r.max.add(u)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}for(var h=0,m=this._rings.length,S;h<m;h++)S=rb(this._rings[h],r,!0),S.length&&this._parts.push(S)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(r){var a=!1,u,h,m,S,D,$,Z,se;if(!this._pxBounds||!this._pxBounds.contains(r))return!1;for(S=0,Z=this._parts.length;S<Z;S++)for(u=this._parts[S],D=0,se=u.length,$=se-1;D<se;$=D++)h=u[D],m=u[$],h.y>r.y!=m.y>r.y&&r.x<(m.x-h.x)*(r.y-h.y)/(m.y-h.y)+h.x&&(a=!a);return a||Vi.prototype._containsPoint.call(this,r,!0)}});function gY(r,a){return new gl(r,a)}var Fi=Bi.extend({initialize:function(r,a){w(this,a),this._layers={},r&&this.addData(r)},addData:function(r){var a=M(r)?r:r.features,u,h,m;if(a){for(u=0,h=a.length;u<h;u++)m=a[u],(m.geometries||m.geometry||m.features||m.coordinates)&&this.addData(m);return this}var S=this.options;if(S.filter&&!S.filter(r))return this;var D=uh(r,S);return D?(D.feature=hh(r),D.defaultOptions=D.options,this.resetStyle(D),S.onEachFeature&&S.onEachFeature(r,D),this.addLayer(D)):this},resetStyle:function(r){return r===void 0?this.eachLayer(this.resetStyle,this):(r.options=o({},r.defaultOptions),this._setLayerStyle(r,this.options.style),this)},setStyle:function(r){return this.eachLayer(function(a){this._setLayerStyle(a,r)},this)},_setLayerStyle:function(r,a){r.setStyle&&(typeof a=="function"&&(a=a(r.feature)),r.setStyle(a))}});function uh(r,a){var u=r.type==="Feature"?r.geometry:r,h=u?u.coordinates:null,m=[],S=a&&a.pointToLayer,D=a&&a.coordsToLatLng||fg,$,Z,se,ye;if(!h&&!u)return null;switch(u.type){case"Point":return $=D(h),hb(S,r,$,a);case"MultiPoint":for(se=0,ye=h.length;se<ye;se++)$=D(h[se]),m.push(hb(S,r,$,a));return new Bi(m);case"LineString":case"MultiLineString":return Z=fh(h,u.type==="LineString"?0:1,D),new Vi(Z,a);case"Polygon":case"MultiPolygon":return Z=fh(h,u.type==="Polygon"?1:2,D),new gl(Z,a);case"GeometryCollection":for(se=0,ye=u.geometries.length;se<ye;se++){var Fe=uh({geometry:u.geometries[se],type:"Feature",properties:r.properties},a);Fe&&m.push(Fe)}return new Bi(m);case"FeatureCollection":for(se=0,ye=u.features.length;se<ye;se++){var Qe=uh(u.features[se],a);Qe&&m.push(Qe)}return new Bi(m);default:throw new Error("Invalid GeoJSON object.")}}function hb(r,a,u,h){return r?r(a,u):new lh(u,h&&h.markersInheritOptions&&h)}function fg(r){return new H(r[1],r[0],r[2])}function fh(r,a,u){for(var h=[],m=0,S=r.length,D;m<S;m++)D=a?fh(r[m],a-1,u):(u||fg)(r[m]),h.push(D);return h}function dg(r,a){return r=ie(r),r.alt!==void 0?[y(r.lng,a),y(r.lat,a),y(r.alt,a)]:[y(r.lng,a),y(r.lat,a)]}function dh(r,a,u,h){for(var m=[],S=0,D=r.length;S<D;S++)m.push(a?dh(r[S],sr(r[S])?0:a-1,u,h):dg(r[S],h));return!a&&u&&m.length>0&&m.push(m[0].slice()),m}function yl(r,a){return r.feature?o({},r.feature,{geometry:a}):hh(a)}function hh(r){return r.type==="Feature"||r.type==="FeatureCollection"?r:{type:"Feature",properties:{},geometry:r}}var hg={toGeoJSON:function(r){return yl(this,{type:"Point",coordinates:dg(this.getLatLng(),r)})}};lh.include(hg),ug.include(hg),ch.include(hg),Vi.include({toGeoJSON:function(r){var a=!sr(this._latlngs),u=dh(this._latlngs,a?1:0,!1,r);return yl(this,{type:(a?"Multi":"")+"LineString",coordinates:u})}}),gl.include({toGeoJSON:function(r){var a=!sr(this._latlngs),u=a&&!sr(this._latlngs[0]),h=dh(this._latlngs,u?2:a?1:0,!0,r);return a||(h=[h]),yl(this,{type:(u?"Multi":"")+"Polygon",coordinates:h})}}),ml.include({toMultiPoint:function(r){var a=[];return this.eachLayer(function(u){a.push(u.toGeoJSON(r).geometry.coordinates)}),yl(this,{type:"MultiPoint",coordinates:a})},toGeoJSON:function(r){var a=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(a==="MultiPoint")return this.toMultiPoint(r);var u=a==="GeometryCollection",h=[];return this.eachLayer(function(m){if(m.toGeoJSON){var S=m.toGeoJSON(r);if(u)h.push(S.geometry);else{var D=hh(S);D.type==="FeatureCollection"?h.push.apply(h,D.features):h.push(D)}}}),u?yl(this,{geometries:h,type:"GeometryCollection"}):{type:"FeatureCollection",features:h}}});function pb(r,a){return new Fi(r,a)}var yY=pb,ph=kr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(r,a,u){this._url=r,this._bounds=k(a),w(this,u)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(qe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Rt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(r){return this.options.opacity=r,this._image&&this._updateOpacity(),this},setStyle:function(r){return r.opacity&&this.setOpacity(r.opacity),this},bringToFront:function(){return this._map&&pl(this._image),this},bringToBack:function(){return this._map&&_l(this._image),this},setUrl:function(r){return this._url=r,this._image&&(this._image.src=r),this},setBounds:function(r){return this._bounds=k(r),this._map&&this._reset(),this},getEvents:function(){var r={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var r=this._url.tagName==="IMG",a=this._image=r?this._url:ht("img");if(qe(a,"leaflet-image-layer"),this._zoomAnimated&&qe(a,"leaflet-zoom-animated"),this.options.className&&qe(a,this.options.className),a.onselectstart=v,a.onmousemove=v,a.onload=c(this.fire,this,"load"),a.onerror=c(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),r){this._url=a.src;return}a.src=this._url,a.alt=this.options.alt},_animateZoom:function(r){var a=this._map.getZoomScale(r.zoom),u=this._map._latLngBoundsToNewLayerBounds(this._bounds,r.zoom,r.center).min;$a(this._image,u,a)},_reset:function(){var r=this._image,a=new _e(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),u=a.getSize();Zt(r,a.min),r.style.width=u.x+"px",r.style.height=u.y+"px"},_updateOpacity:function(){ar(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var r=this.options.errorOverlayUrl;r&&this._url!==r&&(this._url=r,this._image.src=r)},getCenter:function(){return this._bounds.getCenter()}}),SY=function(r,a,u){return new ph(r,a,u)},_b=ph.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var r=this._url.tagName==="VIDEO",a=this._image=r?this._url:ht("video");if(qe(a,"leaflet-image-layer"),this._zoomAnimated&&qe(a,"leaflet-zoom-animated"),this.options.className&&qe(a,this.options.className),a.onselectstart=v,a.onmousemove=v,a.onloadeddata=c(this.fire,this,"load"),r){for(var u=a.getElementsByTagName("source"),h=[],m=0;m<u.length;m++)h.push(u[m].src);this._url=u.length>0?h:[a.src];return}M(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(a.style,"objectFit")&&(a.style.objectFit="fill"),a.autoplay=!!this.options.autoplay,a.loop=!!this.options.loop,a.muted=!!this.options.muted,a.playsInline=!!this.options.playsInline;for(var S=0;S<this._url.length;S++){var D=ht("source");D.src=this._url[S],a.appendChild(D)}}});function wY(r,a,u){return new _b(r,a,u)}var mb=ph.extend({_initImage:function(){var r=this._image=this._url;qe(r,"leaflet-image-layer"),this._zoomAnimated&&qe(r,"leaflet-zoom-animated"),this.options.className&&qe(r,this.options.className),r.onselectstart=v,r.onmousemove=v}});function EY(r,a,u){return new mb(r,a,u)}var ti=kr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(r,a){r&&(r instanceof H||M(r))?(this._latlng=ie(r),w(this,a)):(w(this,r),this._source=a),this.options.content&&(this._content=this.options.content)},openOn:function(r){return r=arguments.length?r:this._source._map,r.hasLayer(this)||r.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(r){return this._map?this.close():(arguments.length?this._source=r:r=this._source,this._prepareOpen(),this.openOn(r._map)),this},onAdd:function(r){this._zoomAnimated=r._zoomAnimated,this._container||this._initLayout(),r._fadeAnimated&&ar(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),r._fadeAnimated&&ar(this._container,1),this.bringToFront(),this.options.interactive&&(qe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(r){r._fadeAnimated?(ar(this._container,0),this._removeTimeout=setTimeout(c(Rt,void 0,this._container),200)):Rt(this._container),this.options.interactive&&(Ft(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(r){return this._latlng=ie(r),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(r){return this._content=r,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 r={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&pl(this._container),this},bringToBack:function(){return this._map&&_l(this._container),this},_prepareOpen:function(r){var a=this._source;if(!a._map)return!1;if(a instanceof Bi){a=null;var u=this._source._layers;for(var h in u)if(u[h]._map){a=u[h];break}if(!a)return!1;this._source=a}if(!r)if(a.getCenter)r=a.getCenter();else if(a.getLatLng)r=a.getLatLng();else if(a.getBounds)r=a.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(r),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var r=this._contentNode,a=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof a=="string")r.innerHTML=a;else{for(;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(a)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var r=this._map.latLngToLayerPoint(this._latlng),a=re(this.options.offset),u=this._getAnchor();this._zoomAnimated?Zt(this._container,r.add(u)):a=a.add(r).add(u);var h=this._containerBottom=-a.y,m=this._containerLeft=-Math.round(this._containerWidth/2)+a.x;this._container.style.bottom=h+"px",this._container.style.left=m+"px"}},_getAnchor:function(){return[0,0]}});st.include({_initOverlay:function(r,a,u,h){var m=a;return m instanceof r||(m=new r(h).setContent(a)),u&&m.setLatLng(u),m}}),kr.include({_initOverlay:function(r,a,u,h){var m=u;return m instanceof r?(w(m,h),m._source=this):(m=a&&!h?a:new r(h,this),m.setContent(u)),m}});var _h=ti.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(r){return r=arguments.length?r:this._source._map,!r.hasLayer(this)&&r._popup&&r._popup.options.autoClose&&r.removeLayer(r._popup),r._popup=this,ti.prototype.openOn.call(this,r)},onAdd:function(r){ti.prototype.onAdd.call(this,r),r.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Io||this._source.on("preclick",za))},onRemove:function(r){ti.prototype.onRemove.call(this,r),r.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Io||this._source.off("preclick",za))},getEvents:function(){var r=ti.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(r.preclick=this.close),this.options.keepInView&&(r.moveend=this._adjustPan),r},_initLayout:function(){var r="leaflet-popup",a=this._container=ht("div",r+" "+(this.options.className||"")+" leaflet-zoom-animated"),u=this._wrapper=ht("div",r+"-content-wrapper",a);if(this._contentNode=ht("div",r+"-content",u),pu(a),ng(this._contentNode),We(a,"contextmenu",za),this._tipContainer=ht("div",r+"-tip-container",a),this._tip=ht("div",r+"-tip",this._tipContainer),this.options.closeButton){var h=this._closeButton=ht("a",r+"-close-button",a);h.setAttribute("role","button"),h.setAttribute("aria-label","Close popup"),h.href="#close",h.innerHTML='<span aria-hidden="true">&#215;</span>',We(h,"click",function(m){cn(m),this.close()},this)}},_updateLayout:function(){var r=this._contentNode,a=r.style;a.width="",a.whiteSpace="nowrap";var u=r.offsetWidth;u=Math.min(u,this.options.maxWidth),u=Math.max(u,this.options.minWidth),a.width=u+1+"px",a.whiteSpace="",a.height="";var h=r.offsetHeight,m=this.options.maxHeight,S="leaflet-popup-scrolled";m&&h>m?(a.height=m+"px",qe(r,S)):Ft(r,S),this._containerWidth=this._container.offsetWidth},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center),u=this._getAnchor();Zt(this._container,a.add(u))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var r=this._map,a=parseInt(uu(this._container,"marginBottom"),10)||0,u=this._container.offsetHeight+a,h=this._containerWidth,m=new x(this._containerLeft,-u-this._containerBottom);m._add(Ua(this._container));var S=r.layerPointToContainerPoint(m),D=re(this.options.autoPanPadding),$=re(this.options.autoPanPaddingTopLeft||D),Z=re(this.options.autoPanPaddingBottomRight||D),se=r.getSize(),ye=0,Fe=0;S.x+h+Z.x>se.x&&(ye=S.x+h-se.x+Z.x),S.x-ye-$.x<0&&(ye=S.x-$.x),S.y+u+Z.y>se.y&&(Fe=S.y+u-se.y+Z.y),S.y-Fe-$.y<0&&(Fe=S.y-$.y),(ye||Fe)&&(this.options.keepInView&&(this._autopanning=!0),r.fire("autopanstart").panBy([ye,Fe]))}},_getAnchor:function(){return re(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),TY=function(r,a){return new _h(r,a)};st.mergeOptions({closePopupOnClick:!0}),st.include({openPopup:function(r,a,u){return this._initOverlay(_h,r,a,u).openOn(this),this},closePopup:function(r){return r=arguments.length?r:this._popup,r&&r.close(),this}}),kr.include({bindPopup:function(r,a){return this._popup=this._initOverlay(_h,this._popup,r,a),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(r){return this._popup&&(this instanceof Bi||(this._popup._source=this),this._popup._prepareOpen(r||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(r){return this._popup&&this._popup.setContent(r),this},getPopup:function(){return this._popup},_openPopup:function(r){if(!(!this._popup||!this._map)){Ha(r);var a=r.layer||r.target;if(this._popup._source===a&&!(a instanceof Io)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(r.latlng);return}this._popup._source=a,this.openPopup(r.latlng)}},_movePopup:function(r){this._popup.setLatLng(r.latlng)},_onKeyPress:function(r){r.originalEvent.keyCode===13&&this._openPopup(r)}});var mh=ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(r){ti.prototype.onAdd.call(this,r),this.setOpacity(this.options.opacity),r.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(r){ti.prototype.onRemove.call(this,r),r.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var r=ti.prototype.getEvents.call(this);return this.options.permanent||(r.preclick=this.close),r},_initLayout:function(){var r="leaflet-tooltip",a=r+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ht("div",a),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(r){var a,u,h=this._map,m=this._container,S=h.latLngToContainerPoint(h.getCenter()),D=h.layerPointToContainerPoint(r),$=this.options.direction,Z=m.offsetWidth,se=m.offsetHeight,ye=re(this.options.offset),Fe=this._getAnchor();$==="top"?(a=Z/2,u=se):$==="bottom"?(a=Z/2,u=0):$==="center"?(a=Z/2,u=se/2):$==="right"?(a=0,u=se/2):$==="left"?(a=Z,u=se/2):D.x<S.x?($="right",a=0,u=se/2):($="left",a=Z+(ye.x+Fe.x)*2,u=se/2),r=r.subtract(re(a,u,!0)).add(ye).add(Fe),Ft(m,"leaflet-tooltip-right"),Ft(m,"leaflet-tooltip-left"),Ft(m,"leaflet-tooltip-top"),Ft(m,"leaflet-tooltip-bottom"),qe(m,"leaflet-tooltip-"+$),Zt(m,r)},_updatePosition:function(){var r=this._map.latLngToLayerPoint(this._latlng);this._setPosition(r)},setOpacity:function(r){this.options.opacity=r,this._container&&ar(this._container,r)},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center);this._setPosition(a)},_getAnchor:function(){return re(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),bY=function(r,a){return new mh(r,a)};st.include({openTooltip:function(r,a,u){return this._initOverlay(mh,r,a,u).openOn(this),this},closeTooltip:function(r){return r.close(),this}}),kr.include({bindTooltip:function(r,a){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(mh,this._tooltip,r,a),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(r){if(!(!r&&this._tooltipHandlersAdded)){var a=r?"off":"on",u={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?u.add=this._openTooltip:(u.mouseover=this._openTooltip,u.mouseout=this.closeTooltip,u.click=this._openTooltip,this._map?this._addFocusListeners():u.add=this._addFocusListeners),this._tooltip.options.sticky&&(u.mousemove=this._moveTooltip),this[a](u),this._tooltipHandlersAdded=!r}},openTooltip:function(r){return this._tooltip&&(this instanceof Bi||(this._tooltip._source=this),this._tooltip._prepareOpen(r)&&(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(r){return this._tooltip&&this._tooltip.setContent(r),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(r){var a=typeof r.getElement=="function"&&r.getElement();a&&(We(a,"focus",function(){this._tooltip._source=r,this.openTooltip()},this),We(a,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(r){var a=typeof r.getElement=="function"&&r.getElement();a&&a.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(r){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var a=this;this._map.once("moveend",function(){a._openOnceFlag=!1,a._openTooltip(r)});return}this._tooltip._source=r.layer||r.target,this.openTooltip(this._tooltip.options.sticky?r.latlng:void 0)}},_moveTooltip:function(r){var a=r.latlng,u,h;this._tooltip.options.sticky&&r.originalEvent&&(u=this._map.mouseEventToContainerPoint(r.originalEvent),h=this._map.containerPointToLayerPoint(u),a=this._map.layerPointToLatLng(h)),this._tooltip.setLatLng(a)}});var vb=vl.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(r){var a=r&&r.tagName==="DIV"?r:document.createElement("div"),u=this.options;if(u.html instanceof Element?(nh(a),a.appendChild(u.html)):a.innerHTML=u.html!==!1?u.html:"",u.bgPos){var h=re(u.bgPos);a.style.backgroundPosition=-h.x+"px "+-h.y+"px"}return this._setIconStyles(a,"icon"),a},createShadow:function(){return null}});function NY(r){return new vb(r)}vl.Default=vu;var gu=kr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:xe.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(r){w(this,r)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(r){r._addZoomLimit(this)},onRemove:function(r){this._removeAllTiles(),Rt(this._container),r._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(pl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(_l(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(r){return this.options.opacity=r,this._updateOpacity(),this},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var r=this._clampZoom(this._map.getZoom());r!==this._tileZoom&&(this._tileZoom=r,this._updateLevels()),this._update()}return this},getEvents:function(){var r={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=p(this._onMoveEnd,this.options.updateInterval,this)),r.move=this._onMove),this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},createTile:function(){return document.createElement("div")},getTileSize:function(){var r=this.options.tileSize;return r instanceof x?r:new x(r,r)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(r){for(var a=this.getPane().children,u=-r(-1/0,1/0),h=0,m=a.length,S;h<m;h++)S=a[h].style.zIndex,a[h]!==this._container&&S&&(u=r(u,+S));isFinite(u)&&(this.options.zIndex=u+r(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!xe.ielt9){ar(this._container,this.options.opacity);var r=+new Date,a=!1,u=!1;for(var h in this._tiles){var m=this._tiles[h];if(!(!m.current||!m.loaded)){var S=Math.min(1,(r-m.loaded)/200);ar(m.el,S),S<1?a=!0:(m.active?u=!0:this._onOpaqueTile(m),m.active=!0)}}u&&!this._noPrune&&this._pruneTiles(),a&&(ae(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this))}},_onOpaqueTile:v,_initContainer:function(){this._container||(this._container=ht("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var r=this._tileZoom,a=this.options.maxZoom;if(r!==void 0){for(var u in this._levels)u=Number(u),this._levels[u].el.children.length||u===r?(this._levels[u].el.style.zIndex=a-Math.abs(r-u),this._onUpdateLevel(u)):(Rt(this._levels[u].el),this._removeTilesAtZoom(u),this._onRemoveLevel(u),delete this._levels[u]);var h=this._levels[r],m=this._map;return h||(h=this._levels[r]={},h.el=ht("div","leaflet-tile-container leaflet-zoom-animated",this._container),h.el.style.zIndex=a,h.origin=m.project(m.unproject(m.getPixelOrigin()),r).round(),h.zoom=r,this._setZoomTransform(h,m.getCenter(),m.getZoom()),v(h.el.offsetWidth),this._onCreateLevel(h)),this._level=h,h}},_onUpdateLevel:v,_onRemoveLevel:v,_onCreateLevel:v,_pruneTiles:function(){if(this._map){var r,a,u=this._map.getZoom();if(u>this.options.maxZoom||u<this.options.minZoom){this._removeAllTiles();return}for(r in this._tiles)a=this._tiles[r],a.retain=a.current;for(r in this._tiles)if(a=this._tiles[r],a.current&&!a.active){var h=a.coords;this._retainParent(h.x,h.y,h.z,h.z-5)||this._retainChildren(h.x,h.y,h.z,h.z+2)}for(r in this._tiles)this._tiles[r].retain||this._removeTile(r)}},_removeTilesAtZoom:function(r){for(var a in this._tiles)this._tiles[a].coords.z===r&&this._removeTile(a)},_removeAllTiles:function(){for(var r in this._tiles)this._removeTile(r)},_invalidateAll:function(){for(var r in this._levels)Rt(this._levels[r].el),this._onRemoveLevel(Number(r)),delete this._levels[r];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(r,a,u,h){var m=Math.floor(r/2),S=Math.floor(a/2),D=u-1,$=new x(+m,+S);$.z=+D;var Z=this._tileCoordsToKey($),se=this._tiles[Z];return se&&se.active?(se.retain=!0,!0):(se&&se.loaded&&(se.retain=!0),D>h?this._retainParent(m,S,D,h):!1)},_retainChildren:function(r,a,u,h){for(var m=2*r;m<2*r+2;m++)for(var S=2*a;S<2*a+2;S++){var D=new x(m,S);D.z=u+1;var $=this._tileCoordsToKey(D),Z=this._tiles[$];if(Z&&Z.active){Z.retain=!0;continue}else Z&&Z.loaded&&(Z.retain=!0);u+1<h&&this._retainChildren(m,S,u+1,h)}},_resetView:function(r){var a=r&&(r.pinch||r.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),a,a)},_animateZoom:function(r){this._setView(r.center,r.zoom,!0,r.noUpdate)},_clampZoom:function(r){var a=this.options;return a.minNativeZoom!==void 0&&r<a.minNativeZoom?a.minNativeZoom:a.maxNativeZoom!==void 0&&a.maxNativeZoom<r?a.maxNativeZoom:r},_setView:function(r,a,u,h){var m=Math.round(a);this.options.maxZoom!==void 0&&m>this.options.maxZoom||this.options.minZoom!==void 0&&m<this.options.minZoom?m=void 0:m=this._clampZoom(m);var S=this.options.updateWhenZooming&&m!==this._tileZoom;(!h||S)&&(this._tileZoom=m,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),m!==void 0&&this._update(r),u||this._pruneTiles(),this._noPrune=!!u),this._setZoomTransforms(r,a)},_setZoomTransforms:function(r,a){for(var u in this._levels)this._setZoomTransform(this._levels[u],r,a)},_setZoomTransform:function(r,a,u){var h=this._map.getZoomScale(u,r.zoom),m=r.origin.multiplyBy(h).subtract(this._map._getNewPixelOrigin(a,u)).round();xe.any3d?$a(r.el,m,h):Zt(r.el,m)},_resetGrid:function(){var r=this._map,a=r.options.crs,u=this._tileSize=this.getTileSize(),h=this._tileZoom,m=this._map.getPixelWorldBounds(this._tileZoom);m&&(this._globalTileRange=this._pxBoundsToTileRange(m)),this._wrapX=a.wrapLng&&!this.options.noWrap&&[Math.floor(r.project([0,a.wrapLng[0]],h).x/u.x),Math.ceil(r.project([0,a.wrapLng[1]],h).x/u.y)],this._wrapY=a.wrapLat&&!this.options.noWrap&&[Math.floor(r.project([a.wrapLat[0],0],h).y/u.x),Math.ceil(r.project([a.wrapLat[1],0],h).y/u.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(r){var a=this._map,u=a._animatingZoom?Math.max(a._animateToZoom,a.getZoom()):a.getZoom(),h=a.getZoomScale(u,this._tileZoom),m=a.project(r,this._tileZoom).floor(),S=a.getSize().divideBy(h*2);return new _e(m.subtract(S),m.add(S))},_update:function(r){var a=this._map;if(a){var u=this._clampZoom(a.getZoom());if(r===void 0&&(r=a.getCenter()),this._tileZoom!==void 0){var h=this._getTiledPixelBounds(r),m=this._pxBoundsToTileRange(h),S=m.getCenter(),D=[],$=this.options.keepBuffer,Z=new _e(m.getBottomLeft().subtract([$,-$]),m.getTopRight().add([$,-$]));if(!(isFinite(m.min.x)&&isFinite(m.min.y)&&isFinite(m.max.x)&&isFinite(m.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var se in this._tiles){var ye=this._tiles[se].coords;(ye.z!==this._tileZoom||!Z.contains(new x(ye.x,ye.y)))&&(this._tiles[se].current=!1)}if(Math.abs(u-this._tileZoom)>1){this._setView(r,u);return}for(var Fe=m.min.y;Fe<=m.max.y;Fe++)for(var Qe=m.min.x;Qe<=m.max.x;Qe++){var Cn=new x(Qe,Fe);if(Cn.z=this._tileZoom,!!this._isValidTile(Cn)){var tn=this._tiles[this._tileCoordsToKey(Cn)];tn?tn.current=!0:D.push(Cn)}}if(D.sort(function(Ln,wl){return Ln.distanceTo(S)-wl.distanceTo(S)}),D.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var lr=document.createDocumentFragment();for(Qe=0;Qe<D.length;Qe++)this._addTile(D[Qe],lr);this._level.el.appendChild(lr)}}}},_isValidTile:function(r){var a=this._map.options.crs;if(!a.infinite){var u=this._globalTileRange;if(!a.wrapLng&&(r.x<u.min.x||r.x>u.max.x)||!a.wrapLat&&(r.y<u.min.y||r.y>u.max.y))return!1}if(!this.options.bounds)return!0;var h=this._tileCoordsToBounds(r);return k(this.options.bounds).overlaps(h)},_keyToBounds:function(r){return this._tileCoordsToBounds(this._keyToTileCoords(r))},_tileCoordsToNwSe:function(r){var a=this._map,u=this.getTileSize(),h=r.scaleBy(u),m=h.add(u),S=a.unproject(h,r.z),D=a.unproject(m,r.z);return[S,D]},_tileCoordsToBounds:function(r){var a=this._tileCoordsToNwSe(r),u=new U(a[0],a[1]);return this.options.noWrap||(u=this._map.wrapLatLngBounds(u)),u},_tileCoordsToKey:function(r){return r.x+":"+r.y+":"+r.z},_keyToTileCoords:function(r){var a=r.split(":"),u=new x(+a[0],+a[1]);return u.z=+a[2],u},_removeTile:function(r){var a=this._tiles[r];a&&(Rt(a.el),delete this._tiles[r],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(r)}))},_initTile:function(r){qe(r,"leaflet-tile");var a=this.getTileSize();r.style.width=a.x+"px",r.style.height=a.y+"px",r.onselectstart=v,r.onmousemove=v,xe.ielt9&&this.options.opacity<1&&ar(r,this.options.opacity)},_addTile:function(r,a){var u=this._getTilePos(r),h=this._tileCoordsToKey(r),m=this.createTile(this._wrapCoords(r),c(this._tileReady,this,r));this._initTile(m),this.createTile.length<2&&B(c(this._tileReady,this,r,null,m)),Zt(m,u),this._tiles[h]={el:m,coords:r,current:!0},a.appendChild(m),this.fire("tileloadstart",{tile:m,coords:r})},_tileReady:function(r,a,u){a&&this.fire("tileerror",{error:a,tile:u,coords:r});var h=this._tileCoordsToKey(r);u=this._tiles[h],u&&(u.loaded=+new Date,this._map._fadeAnimated?(ar(u.el,0),ae(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this)):(u.active=!0,this._pruneTiles()),a||(qe(u.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:u.el,coords:r})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),xe.ielt9||!this._map._fadeAnimated?B(this._pruneTiles,this):setTimeout(c(this._pruneTiles,this),250)))},_getTilePos:function(r){return r.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(r){var a=new x(this._wrapX?_(r.x,this._wrapX):r.x,this._wrapY?_(r.y,this._wrapY):r.y);return a.z=r.z,a},_pxBoundsToTileRange:function(r){var a=this.getTileSize();return new _e(r.min.unscaleBy(a).floor(),r.max.unscaleBy(a).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var r in this._tiles)if(!this._tiles[r].loaded)return!1;return!0}});function kY(r){return new gu(r)}var Sl=gu.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(r,a){this._url=r,a=w(this,a),a.detectRetina&&xe.retina&&a.maxZoom>0?(a.tileSize=Math.floor(a.tileSize/2),a.zoomReverse?(a.zoomOffset--,a.minZoom=Math.min(a.maxZoom,a.minZoom+1)):(a.zoomOffset++,a.maxZoom=Math.max(a.minZoom,a.maxZoom-1)),a.minZoom=Math.max(0,a.minZoom)):a.zoomReverse?a.minZoom=Math.min(a.maxZoom,a.minZoom):a.maxZoom=Math.max(a.minZoom,a.maxZoom),typeof a.subdomains=="string"&&(a.subdomains=a.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(r,a){return this._url===r&&a===void 0&&(a=!0),this._url=r,a||this.redraw(),this},createTile:function(r,a){var u=document.createElement("img");return We(u,"load",c(this._tileOnLoad,this,a,u)),We(u,"error",c(this._tileOnError,this,a,u)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(u.referrerPolicy=this.options.referrerPolicy),u.alt="",u.src=this.getTileUrl(r),u},getTileUrl:function(r){var a={r:xe.retina?"@2x":"",s:this._getSubdomain(r),x:r.x,y:r.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var u=this._globalTileRange.max.y-r.y;this.options.tms&&(a.y=u),a["-y"]=u}return C(this._url,o(a,this.options))},_tileOnLoad:function(r,a){xe.ielt9?setTimeout(c(r,this,null,a),0):r(null,a)},_tileOnError:function(r,a,u){var h=this.options.errorTileUrl;h&&a.getAttribute("src")!==h&&(a.src=h),r(u,a)},_onTileRemove:function(r){r.tile.onload=null},_getZoomForUrl:function(){var r=this._tileZoom,a=this.options.maxZoom,u=this.options.zoomReverse,h=this.options.zoomOffset;return u&&(r=a-r),r+h},_getSubdomain:function(r){var a=Math.abs(r.x+r.y)%this.options.subdomains.length;return this.options.subdomains[a]},_abortLoading:function(){var r,a;for(r in this._tiles)if(this._tiles[r].coords.z!==this._tileZoom&&(a=this._tiles[r].el,a.onload=v,a.onerror=v,!a.complete)){a.src=G;var u=this._tiles[r].coords;Rt(a),delete this._tiles[r],this.fire("tileabort",{tile:a,coords:u})}},_removeTile:function(r){var a=this._tiles[r];if(a)return a.el.setAttribute("src",G),gu.prototype._removeTile.call(this,r)},_tileReady:function(r,a,u){if(!(!this._map||u&&u.getAttribute("src")===G))return gu.prototype._tileReady.call(this,r,a,u)}});function gb(r,a){return new Sl(r,a)}var yb=Sl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(r,a){this._url=r;var u=o({},this.defaultWmsParams);for(var h in a)h in this.options||(u[h]=a[h]);a=w(this,a);var m=a.detectRetina&&xe.retina?2:1,S=this.getTileSize();u.width=S.x*m,u.height=S.y*m,this.wmsParams=u},onAdd:function(r){this._crs=this.options.crs||r.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var a=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[a]=this._crs.code,Sl.prototype.onAdd.call(this,r)},getTileUrl:function(r){var a=this._tileCoordsToNwSe(r),u=this._crs,h=N(u.project(a[0]),u.project(a[1])),m=h.min,S=h.max,D=(this._wmsVersion>=1.3&&this._crs===fb?[m.y,m.x,S.y,S.x]:[m.x,m.y,S.x,S.y]).join(","),$=Sl.prototype.getTileUrl.call(this,r);return $+T(this.wmsParams,$,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+D},setParams:function(r,a){return o(this.wmsParams,r),a||this.redraw(),this}});function CY(r,a){return new yb(r,a)}Sl.WMS=yb,gb.wms=CY;var Yi=kr.extend({options:{padding:.1},initialize:function(r){w(this,r),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),qe(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 r={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(r.zoomanim=this._onAnimZoom),r},_onAnimZoom:function(r){this._updateTransform(r.center,r.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(r,a){var u=this._map.getZoomScale(a,this._zoom),h=this._map.getSize().multiplyBy(.5+this.options.padding),m=this._map.project(this._center,a),S=h.multiplyBy(-u).add(m).subtract(this._map._getNewPixelOrigin(r,a));xe.any3d?$a(this._container,S,u):Zt(this._container,S)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var r in this._layers)this._layers[r]._reset()},_onZoomEnd:function(){for(var r in this._layers)this._layers[r]._project()},_updatePaths:function(){for(var r in this._layers)this._layers[r]._update()},_update:function(){var r=this.options.padding,a=this._map.getSize(),u=this._map.containerPointToLayerPoint(a.multiplyBy(-r)).round();this._bounds=new _e(u,u.add(a.multiplyBy(1+r*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Sb=Yi.extend({options:{tolerance:0},getEvents:function(){var r=Yi.prototype.getEvents.call(this);return r.viewprereset=this._onViewPreReset,r},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Yi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var r=this._container=document.createElement("canvas");We(r,"mousemove",this._onMouseMove,this),We(r,"click dblclick mousedown mouseup contextmenu",this._onClick,this),We(r,"mouseout",this._handleMouseOut,this),r._leaflet_disable_events=!0,this._ctx=r.getContext("2d")},_destroyContainer:function(){ae(this._redrawRequest),delete this._ctx,Rt(this._container),bt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var r;this._redrawBounds=null;for(var a in this._layers)r=this._layers[a],r._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Yi.prototype._update.call(this);var r=this._bounds,a=this._container,u=r.getSize(),h=xe.retina?2:1;Zt(a,r.min),a.width=h*u.x,a.height=h*u.y,a.style.width=u.x+"px",a.style.height=u.y+"px",xe.retina&&this._ctx.scale(2,2),this._ctx.translate(-r.min.x,-r.min.y),this.fire("update")}},_reset:function(){Yi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(r){this._updateDashArray(r),this._layers[d(r)]=r;var a=r._order={layer:r,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=a),this._drawLast=a,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(r){this._requestRedraw(r)},_removePath:function(r){var a=r._order,u=a.next,h=a.prev;u?u.prev=h:this._drawLast=h,h?h.next=u:this._drawFirst=u,delete r._order,delete this._layers[d(r)],this._requestRedraw(r)},_updatePath:function(r){this._extendRedrawBounds(r),r._project(),r._update(),this._requestRedraw(r)},_updateStyle:function(r){this._updateDashArray(r),this._requestRedraw(r)},_updateDashArray:function(r){if(typeof r.options.dashArray=="string"){var a=r.options.dashArray.split(/[, ]+/),u=[],h,m;for(m=0;m<a.length;m++){if(h=Number(a[m]),isNaN(h))return;u.push(h)}r.options._dashArray=u}else r.options._dashArray=r.options.dashArray},_requestRedraw:function(r){this._map&&(this._extendRedrawBounds(r),this._redrawRequest=this._redrawRequest||B(this._redraw,this))},_extendRedrawBounds:function(r){if(r._pxBounds){var a=(r.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new _e,this._redrawBounds.extend(r._pxBounds.min.subtract([a,a])),this._redrawBounds.extend(r._pxBounds.max.add([a,a]))}},_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 r=this._redrawBounds;if(r){var a=r.getSize();this._ctx.clearRect(r.min.x,r.min.y,a.x,a.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 r,a=this._redrawBounds;if(this._ctx.save(),a){var u=a.getSize();this._ctx.beginPath(),this._ctx.rect(a.min.x,a.min.y,u.x,u.y),this._ctx.clip()}this._drawing=!0;for(var h=this._drawFirst;h;h=h.next)r=h.layer,(!a||r._pxBounds&&r._pxBounds.intersects(a))&&r._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(r,a){if(this._drawing){var u,h,m,S,D=r._parts,$=D.length,Z=this._ctx;if($){for(Z.beginPath(),u=0;u<$;u++){for(h=0,m=D[u].length;h<m;h++)S=D[u][h],Z[h?"lineTo":"moveTo"](S.x,S.y);a&&Z.closePath()}this._fillStroke(Z,r)}}},_updateCircle:function(r){if(!(!this._drawing||r._empty())){var a=r._point,u=this._ctx,h=Math.max(Math.round(r._radius),1),m=(Math.max(Math.round(r._radiusY),1)||h)/h;m!==1&&(u.save(),u.scale(1,m)),u.beginPath(),u.arc(a.x,a.y/m,h,0,Math.PI*2,!1),m!==1&&u.restore(),this._fillStroke(u,r)}},_fillStroke:function(r,a){var u=a.options;u.fill&&(r.globalAlpha=u.fillOpacity,r.fillStyle=u.fillColor||u.color,r.fill(u.fillRule||"evenodd")),u.stroke&&u.weight!==0&&(r.setLineDash&&r.setLineDash(a.options&&a.options._dashArray||[]),r.globalAlpha=u.opacity,r.lineWidth=u.weight,r.strokeStyle=u.color,r.lineCap=u.lineCap,r.lineJoin=u.lineJoin,r.stroke())},_onClick:function(r){for(var a=this._map.mouseEventToLayerPoint(r),u,h,m=this._drawFirst;m;m=m.next)u=m.layer,u.options.interactive&&u._containsPoint(a)&&(!(r.type==="click"||r.type==="preclick")||!this._map._draggableMoved(u))&&(h=u);this._fireEvent(h?[h]:!1,r)},_onMouseMove:function(r){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var a=this._map.mouseEventToLayerPoint(r);this._handleMouseHover(r,a)}},_handleMouseOut:function(r){var a=this._hoveredLayer;a&&(Ft(this._container,"leaflet-interactive"),this._fireEvent([a],r,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(r,a){if(!this._mouseHoverThrottled){for(var u,h,m=this._drawFirst;m;m=m.next)u=m.layer,u.options.interactive&&u._containsPoint(a)&&(h=u);h!==this._hoveredLayer&&(this._handleMouseOut(r),h&&(qe(this._container,"leaflet-interactive"),this._fireEvent([h],r,"mouseover"),this._hoveredLayer=h)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,r),this._mouseHoverThrottled=!0,setTimeout(c(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(r,a,u){this._map._fireDOMEvent(a,u||a.type,r)},_bringToFront:function(r){var a=r._order;if(a){var u=a.next,h=a.prev;if(u)u.prev=h;else return;h?h.next=u:u&&(this._drawFirst=u),a.prev=this._drawLast,this._drawLast.next=a,a.next=null,this._drawLast=a,this._requestRedraw(r)}},_bringToBack:function(r){var a=r._order;if(a){var u=a.next,h=a.prev;if(h)h.next=u;else return;u?u.prev=h:h&&(this._drawLast=h),a.prev=null,a.next=this._drawFirst,this._drawFirst.prev=a,this._drawFirst=a,this._requestRedraw(r)}}});function wb(r){return xe.canvas?new Sb(r):null}var yu=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(r){return document.createElement("<lvml:"+r+' class="lvml">')}}catch{}return function(r){return document.createElement("<"+r+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),PY={_initContainer:function(){this._container=ht("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Yi.prototype._update.call(this),this.fire("update"))},_initPath:function(r){var a=r._container=yu("shape");qe(a,"leaflet-vml-shape "+(this.options.className||"")),a.coordsize="1 1",r._path=yu("path"),a.appendChild(r._path),this._updateStyle(r),this._layers[d(r)]=r},_addPath:function(r){var a=r._container;this._container.appendChild(a),r.options.interactive&&r.addInteractiveTarget(a)},_removePath:function(r){var a=r._container;Rt(a),r.removeInteractiveTarget(a),delete this._layers[d(r)]},_updateStyle:function(r){var a=r._stroke,u=r._fill,h=r.options,m=r._container;m.stroked=!!h.stroke,m.filled=!!h.fill,h.stroke?(a||(a=r._stroke=yu("stroke")),m.appendChild(a),a.weight=h.weight+"px",a.color=h.color,a.opacity=h.opacity,h.dashArray?a.dashStyle=M(h.dashArray)?h.dashArray.join(" "):h.dashArray.replace(/( *, *)/g," "):a.dashStyle="",a.endcap=h.lineCap.replace("butt","flat"),a.joinstyle=h.lineJoin):a&&(m.removeChild(a),r._stroke=null),h.fill?(u||(u=r._fill=yu("fill")),m.appendChild(u),u.color=h.fillColor||h.color,u.opacity=h.fillOpacity):u&&(m.removeChild(u),r._fill=null)},_updateCircle:function(r){var a=r._point.round(),u=Math.round(r._radius),h=Math.round(r._radiusY||u);this._setPath(r,r._empty()?"M0 0":"AL "+a.x+","+a.y+" "+u+","+h+" 0,"+65535*360)},_setPath:function(r,a){r._path.v=a},_bringToFront:function(r){pl(r._container)},_bringToBack:function(r){_l(r._container)}},vh=xe.vml?yu:ze,Su=Yi.extend({_initContainer:function(){this._container=vh("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=vh("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Rt(this._container),bt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Yi.prototype._update.call(this);var r=this._bounds,a=r.getSize(),u=this._container;(!this._svgSize||!this._svgSize.equals(a))&&(this._svgSize=a,u.setAttribute("width",a.x),u.setAttribute("height",a.y)),Zt(u,r.min),u.setAttribute("viewBox",[r.min.x,r.min.y,a.x,a.y].join(" ")),this.fire("update")}},_initPath:function(r){var a=r._path=vh("path");r.options.className&&qe(a,r.options.className),r.options.interactive&&qe(a,"leaflet-interactive"),this._updateStyle(r),this._layers[d(r)]=r},_addPath:function(r){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(r._path),r.addInteractiveTarget(r._path)},_removePath:function(r){Rt(r._path),r.removeInteractiveTarget(r._path),delete this._layers[d(r)]},_updatePath:function(r){r._project(),r._update()},_updateStyle:function(r){var a=r._path,u=r.options;a&&(u.stroke?(a.setAttribute("stroke",u.color),a.setAttribute("stroke-opacity",u.opacity),a.setAttribute("stroke-width",u.weight),a.setAttribute("stroke-linecap",u.lineCap),a.setAttribute("stroke-linejoin",u.lineJoin),u.dashArray?a.setAttribute("stroke-dasharray",u.dashArray):a.removeAttribute("stroke-dasharray"),u.dashOffset?a.setAttribute("stroke-dashoffset",u.dashOffset):a.removeAttribute("stroke-dashoffset")):a.setAttribute("stroke","none"),u.fill?(a.setAttribute("fill",u.fillColor||u.color),a.setAttribute("fill-opacity",u.fillOpacity),a.setAttribute("fill-rule",u.fillRule||"evenodd")):a.setAttribute("fill","none"))},_updatePoly:function(r,a){this._setPath(r,Wt(r._parts,a))},_updateCircle:function(r){var a=r._point,u=Math.max(Math.round(r._radius),1),h=Math.max(Math.round(r._radiusY),1)||u,m="a"+u+","+h+" 0 1,0 ",S=r._empty()?"M0 0":"M"+(a.x-u)+","+a.y+m+u*2+",0 "+m+-u*2+",0 ";this._setPath(r,S)},_setPath:function(r,a){r._path.setAttribute("d",a)},_bringToFront:function(r){pl(r._path)},_bringToBack:function(r){_l(r._path)}});xe.vml&&Su.include(PY);function Eb(r){return xe.svg||xe.vml?new Su(r):null}st.include({getRenderer:function(r){var a=r.options.renderer||this._getPaneRenderer(r.options.pane)||this.options.renderer||this._renderer;return a||(a=this._renderer=this._createRenderer()),this.hasLayer(a)||this.addLayer(a),a},_getPaneRenderer:function(r){if(r==="overlayPane"||r===void 0)return!1;var a=this._paneRenderers[r];return a===void 0&&(a=this._createRenderer({pane:r}),this._paneRenderers[r]=a),a},_createRenderer:function(r){return this.options.preferCanvas&&wb(r)||Eb(r)}});var Tb=gl.extend({initialize:function(r,a){gl.prototype.initialize.call(this,this._boundsToLatLngs(r),a)},setBounds:function(r){return this.setLatLngs(this._boundsToLatLngs(r))},_boundsToLatLngs:function(r){return r=k(r),[r.getSouthWest(),r.getNorthWest(),r.getNorthEast(),r.getSouthEast()]}});function DY(r,a){return new Tb(r,a)}Su.create=vh,Su.pointsToPath=Wt,Fi.geometryToLayer=uh,Fi.coordsToLatLng=fg,Fi.coordsToLatLngs=fh,Fi.latLngToCoords=dg,Fi.latLngsToCoords=dh,Fi.getFeature=yl,Fi.asFeature=hh,st.mergeOptions({boxZoom:!0});var bb=ei.extend({initialize:function(r){this._map=r,this._container=r._container,this._pane=r._panes.overlayPane,this._resetStateTimeout=0,r.on("unload",this._destroy,this)},addHooks:function(){We(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){bt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Rt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(r){if(!r.shiftKey||r.which!==1&&r.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),fu(),jv(),this._startPoint=this._map.mouseEventToContainerPoint(r),We(document,{contextmenu:Ha,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(r){this._moved||(this._moved=!0,this._box=ht("div","leaflet-zoom-box",this._container),qe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(r);var a=new _e(this._point,this._startPoint),u=a.getSize();Zt(this._box,a.min),this._box.style.width=u.x+"px",this._box.style.height=u.y+"px"},_finish:function(){this._moved&&(Rt(this._box),Ft(this._container,"leaflet-crosshair")),du(),qv(),bt(document,{contextmenu:Ha,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(r){if(!(r.which!==1&&r.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(c(this._resetState,this),0);var a=new U(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(a).fire("boxzoomend",{boxZoomBounds:a})}},_onKeyDown:function(r){r.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});st.addInitHook("addHandler","boxZoom",bb),st.mergeOptions({doubleClickZoom:!0});var Nb=ei.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(r){var a=this._map,u=a.getZoom(),h=a.options.zoomDelta,m=r.originalEvent.shiftKey?u-h:u+h;a.options.doubleClickZoom==="center"?a.setZoom(m):a.setZoomAround(r.containerPoint,m)}});st.addInitHook("addHandler","doubleClickZoom",Nb),st.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var kb=ei.extend({addHooks:function(){if(!this._draggable){var r=this._map;this._draggable=new Oo(r._mapPane,r._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),r.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),r.on("zoomend",this._onZoomEnd,this),r.whenReady(this._onZoomEnd,this))}qe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ft(this._map._container,"leaflet-grab"),Ft(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 r=this._map;if(r._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var a=k(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(a.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(a.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;r.fire("movestart").fire("dragstart"),r.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(r){if(this._map.options.inertia){var a=this._lastTime=+new Date,u=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(u),this._times.push(a),this._prunePositions(a)}this._map.fire("move",r).fire("drag",r)},_prunePositions:function(r){for(;this._positions.length>1&&r-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var r=this._map.getSize().divideBy(2),a=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=a.subtract(r).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(r,a){return r-(r-a)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var r=this._draggable._newPos.subtract(this._draggable._startPos),a=this._offsetLimit;r.x<a.min.x&&(r.x=this._viscousLimit(r.x,a.min.x)),r.y<a.min.y&&(r.y=this._viscousLimit(r.y,a.min.y)),r.x>a.max.x&&(r.x=this._viscousLimit(r.x,a.max.x)),r.y>a.max.y&&(r.y=this._viscousLimit(r.y,a.max.y)),this._draggable._newPos=this._draggable._startPos.add(r)}},_onPreDragWrap:function(){var r=this._worldWidth,a=Math.round(r/2),u=this._initialWorldOffset,h=this._draggable._newPos.x,m=(h-a+u)%r+a-u,S=(h+a+u)%r-a-u,D=Math.abs(m+u)<Math.abs(S+u)?m:S;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=D},_onDragEnd:function(r){var a=this._map,u=a.options,h=!u.inertia||r.noInertia||this._times.length<2;if(a.fire("dragend",r),h)a.fire("moveend");else{this._prunePositions(+new Date);var m=this._lastPos.subtract(this._positions[0]),S=(this._lastTime-this._times[0])/1e3,D=u.easeLinearity,$=m.multiplyBy(D/S),Z=$.distanceTo([0,0]),se=Math.min(u.inertiaMaxSpeed,Z),ye=$.multiplyBy(se/Z),Fe=se/(u.inertiaDeceleration*D),Qe=ye.multiplyBy(-Fe/2).round();!Qe.x&&!Qe.y?a.fire("moveend"):(Qe=a._limitOffset(Qe,a.options.maxBounds),B(function(){a.panBy(Qe,{duration:Fe,easeLinearity:D,noMoveStart:!0,animate:!0})}))}}});st.addInitHook("addHandler","dragging",kb),st.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Cb=ei.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(r){this._map=r,this._setPanDelta(r.options.keyboardPanDelta),this._setZoomDelta(r.options.zoomDelta)},addHooks:function(){var r=this._map._container;r.tabIndex<=0&&(r.tabIndex="0"),We(r,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),bt(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 r=document.body,a=document.documentElement,u=r.scrollTop||a.scrollTop,h=r.scrollLeft||a.scrollLeft;this._map._container.focus(),window.scrollTo(h,u)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(r){var a=this._panKeys={},u=this.keyCodes,h,m;for(h=0,m=u.left.length;h<m;h++)a[u.left[h]]=[-1*r,0];for(h=0,m=u.right.length;h<m;h++)a[u.right[h]]=[r,0];for(h=0,m=u.down.length;h<m;h++)a[u.down[h]]=[0,r];for(h=0,m=u.up.length;h<m;h++)a[u.up[h]]=[0,-1*r]},_setZoomDelta:function(r){var a=this._zoomKeys={},u=this.keyCodes,h,m;for(h=0,m=u.zoomIn.length;h<m;h++)a[u.zoomIn[h]]=r;for(h=0,m=u.zoomOut.length;h<m;h++)a[u.zoomOut[h]]=-r},_addHooks:function(){We(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){bt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(r){if(!(r.altKey||r.ctrlKey||r.metaKey)){var a=r.keyCode,u=this._map,h;if(a in this._panKeys){if(!u._panAnim||!u._panAnim._inProgress)if(h=this._panKeys[a],r.shiftKey&&(h=re(h).multiplyBy(3)),u.options.maxBounds&&(h=u._limitOffset(re(h),u.options.maxBounds)),u.options.worldCopyJump){var m=u.wrapLatLng(u.unproject(u.project(u.getCenter()).add(h)));u.panTo(m)}else u.panBy(h)}else if(a in this._zoomKeys)u.setZoom(u.getZoom()+(r.shiftKey?3:1)*this._zoomKeys[a]);else if(a===27&&u._popup&&u._popup.options.closeOnEscapeKey)u.closePopup();else return;Ha(r)}}});st.addInitHook("addHandler","keyboard",Cb),st.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Pb=ei.extend({addHooks:function(){We(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){bt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(r){var a=JT(r),u=this._map.options.wheelDebounceTime;this._delta+=a,this._lastMousePos=this._map.mouseEventToContainerPoint(r),this._startTime||(this._startTime=+new Date);var h=Math.max(u-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c(this._performZoom,this),h),Ha(r)},_performZoom:function(){var r=this._map,a=r.getZoom(),u=this._map.options.zoomSnap||0;r._stop();var h=this._delta/(this._map.options.wheelPxPerZoomLevel*4),m=4*Math.log(2/(1+Math.exp(-Math.abs(h))))/Math.LN2,S=u?Math.ceil(m/u)*u:m,D=r._limitZoom(a+(this._delta>0?S:-S))-a;this._delta=0,this._startTime=null,D&&(r.options.scrollWheelZoom==="center"?r.setZoom(a+D):r.setZoomAround(this._lastMousePos,a+D))}});st.addInitHook("addHandler","scrollWheelZoom",Pb);var xY=600;st.mergeOptions({tapHold:xe.touchNative&&xe.safari&&xe.mobile,tapTolerance:15});var Db=ei.extend({addHooks:function(){We(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){bt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(r){if(clearTimeout(this._holdTimeout),r.touches.length===1){var a=r.touches[0];this._startPos=this._newPos=new x(a.clientX,a.clientY),this._holdTimeout=setTimeout(c(function(){this._cancel(),this._isTapValid()&&(We(document,"touchend",cn),We(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",a))},this),xY),We(document,"touchend touchcancel contextmenu",this._cancel,this),We(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function r(){bt(document,"touchend",cn),bt(document,"touchend touchcancel",r)},_cancel:function(){clearTimeout(this._holdTimeout),bt(document,"touchend touchcancel contextmenu",this._cancel,this),bt(document,"touchmove",this._onMove,this)},_onMove:function(r){var a=r.touches[0];this._newPos=new x(a.clientX,a.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(r,a){var u=new MouseEvent(r,{bubbles:!0,cancelable:!0,view:window,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX,clientY:a.clientY});u._simulated=!0,a.target.dispatchEvent(u)}});st.addInitHook("addHandler","tapHold",Db),st.mergeOptions({touchZoom:xe.touch,bounceAtZoomLimits:!0});var xb=ei.extend({addHooks:function(){qe(this._map._container,"leaflet-touch-zoom"),We(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ft(this._map._container,"leaflet-touch-zoom"),bt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(r){var a=this._map;if(!(!r.touches||r.touches.length!==2||a._animatingZoom||this._zooming)){var u=a.mouseEventToContainerPoint(r.touches[0]),h=a.mouseEventToContainerPoint(r.touches[1]);this._centerPoint=a.getSize()._divideBy(2),this._startLatLng=a.containerPointToLatLng(this._centerPoint),a.options.touchZoom!=="center"&&(this._pinchStartLatLng=a.containerPointToLatLng(u.add(h)._divideBy(2))),this._startDist=u.distanceTo(h),this._startZoom=a.getZoom(),this._moved=!1,this._zooming=!0,a._stop(),We(document,"touchmove",this._onTouchMove,this),We(document,"touchend touchcancel",this._onTouchEnd,this),cn(r)}},_onTouchMove:function(r){if(!(!r.touches||r.touches.length!==2||!this._zooming)){var a=this._map,u=a.mouseEventToContainerPoint(r.touches[0]),h=a.mouseEventToContainerPoint(r.touches[1]),m=u.distanceTo(h)/this._startDist;if(this._zoom=a.getScaleZoom(m,this._startZoom),!a.options.bounceAtZoomLimits&&(this._zoom<a.getMinZoom()&&m<1||this._zoom>a.getMaxZoom()&&m>1)&&(this._zoom=a._limitZoom(this._zoom)),a.options.touchZoom==="center"){if(this._center=this._startLatLng,m===1)return}else{var S=u._add(h)._divideBy(2)._subtract(this._centerPoint);if(m===1&&S.x===0&&S.y===0)return;this._center=a.unproject(a.project(this._pinchStartLatLng,this._zoom).subtract(S),this._zoom)}this._moved||(a._moveStart(!0,!1),this._moved=!0),ae(this._animRequest);var D=c(a._move,a,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=B(D,this,!0),cn(r)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,ae(this._animRequest),bt(document,"touchmove",this._onTouchMove,this),bt(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))}});st.addInitHook("addHandler","touchZoom",xb),st.BoxZoom=bb,st.DoubleClickZoom=Nb,st.Drag=kb,st.Keyboard=Cb,st.ScrollWheelZoom=Pb,st.TapHold=Db,st.TouchZoom=xb,n.Bounds=_e,n.Browser=xe,n.CRS=O,n.Canvas=Sb,n.Circle=ug,n.CircleMarker=ch,n.Class=P,n.Control=Nr,n.DivIcon=vb,n.DivOverlay=ti,n.DomEvent=j2,n.DomUtil=Z2,n.Draggable=Oo,n.Evented=W,n.FeatureGroup=Bi,n.GeoJSON=Fi,n.GridLayer=gu,n.Handler=ei,n.Icon=vl,n.ImageOverlay=ph,n.LatLng=H,n.LatLngBounds=U,n.Layer=kr,n.LayerGroup=ml,n.LineUtil=sY,n.Map=st,n.Marker=lh,n.Mixin=tY,n.Path=Io,n.Point=x,n.PolyUtil=nY,n.Polygon=gl,n.Polyline=Vi,n.Popup=_h,n.PosAnimation=QT,n.Projection=lY,n.Rectangle=Tb,n.Renderer=Yi,n.SVG=Su,n.SVGOverlay=mb,n.TileLayer=Sl,n.Tooltip=mh,n.Transformation=Oe,n.Util=he,n.VideoOverlay=_b,n.bind=c,n.bounds=N,n.canvas=wb,n.circle=mY,n.circleMarker=_Y,n.control=_u,n.divIcon=NY,n.extend=o,n.featureGroup=dY,n.geoJSON=pb,n.geoJson=yY,n.gridLayer=kY,n.icon=hY,n.imageOverlay=SY,n.latLng=ie,n.latLngBounds=k,n.layerGroup=fY,n.map=q2,n.marker=pY,n.point=re,n.polygon=gY,n.polyline=vY,n.popup=TY,n.rectangle=DY,n.setOptions=w,n.stamp=d,n.svg=Eb,n.svgOverlay=EY,n.tileLayer=gb,n.tooltip=bY,n.transformation=Ge,n.version=i,n.videoOverlay=wY;var OY=window.L;n.noConflict=function(){return window.L=OY,this},window.L=n})}($l,$l.exports)),$l.exports}var XO=KO();const Ul=jO(XO),JO=l.defineComponent({__name:"CapeRecordMap",props:{lat:{},long:{},zoom:{},icon:{}},setup(e){const t=e,n=l.ref(null);let i=null,o=null;function s(){if(i){i.setView([t.lat,t.long],t.zoom),o&&o.setLatLng([t.lat,t.long]);return}if(n.value){i=Ul.map(n.value).setView([t.lat,t.long],t.zoom),Ul.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"&copy; OpenStreetMap contributors"}).addTo(i);const c=t.icon??new Ul.Icon.Default;o=Ul.marker([t.lat,t.long],{icon:c}).addTo(i)}}return l.onMounted(()=>{s()}),l.watch(()=>[t.lat,t.long,t.zoom,t.icon],()=>{if(i){if(i.setView([t.lat,t.long],t.zoom),o){o.setLatLng([t.lat,t.long]);const c=t.icon??new Ul.Icon.Default;o.setIcon(c)}}else s()}),(c,f)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"mapRef",ref:n,class:"leaflet-map"},null,512))}}),QO={key:0,class:"cape-next-result"},eI={key:1,class:"cape-next-result cape-next-result-null"},tI=l.defineComponent({__name:"CapeNextResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in search results"}},setup(e){const t=mn(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",QO,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",eI,[l.renderSlot(o.$slots,"otherwise")]))}}}),nI={key:0,class:"cape-previous-result"},rI={key:1,class:"cape-previous-result cape-previous-result-null"},iI=l.defineComponent({__name:"CapePreviousResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=mn(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",nI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",rI,[l.renderSlot(o.$slots,"otherwise")]))}}}),oI={key:0,class:"cape-previous-record"},aI={key:1,class:"cape-previous-record cape-previous-record-null"},sI=l.defineComponent({__name:"CapePreviousRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=oi(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",oI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",aI,[l.renderSlot(o.$slots,"otherwise")]))}}}),lI={key:0,class:"cape-next-record"},cI={key:1,class:"cape-next-record cape-next-record-null"},uI=l.defineComponent({__name:"CapeNextRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in dataset"}},setup(e){const t=oi(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",lI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",cI,[l.renderSlot(o.$slots,"otherwise")]))}}}),ul=class ul{static add(t){ul.functions.push(t)}static all(){return ul.functions}static async execute(t,n){for(const i of ul.all().sort((o,s)=>o.priority-s.priority))try{await i.action(t,n)}catch(o){console.error("Error executing action:",o);return}}};Ke(ul,"functions",[]);let zl=ul;const w0={High:10,Low:1e3},Ba=class Ba{static async fetchIndexPageTitle(){if(Ba.indexHtmlTitle)return Ba.indexHtmlTitle;try{const t=await fetch("/index.html");if(!t.ok)return;const n=await t.text(),s=new DOMParser().parseFromString(n,"text/html").querySelector("title");return Ba.indexHtmlTitle=(s==null?void 0:s.text)||void 0,Ba.indexHtmlTitle}catch{return}}static async getPageTitle(t,n){const{name:i,params:o,meta:s}=t;if(i==="record"&&n.recordPageTitleExpression){const d=o==null?void 0:o.id;if(!d)throw new Error("Record ID is required but not specified.");if(Zi().status!=="OK")throw new Error("Dataset data not loaded. Cannot continue to build page title.");const v=oi().byId(d);return n.recordPageTitleExpression(v)}if(s!=null&&s.title)return s.title;const c=await this.fetchIndexPageTitle();return c||nn().title}};Ke(Ba,"indexHtmlTitle");let Ep=Ba;const fI={class:"cape-labelled-value"},dI={key:0,class:"cape-error cape-labelled-value-error"},hI=["title"],pI={key:1,class:"cape-labelled-value-label"},_I=l.defineComponent({__name:"CapeLabelledContent",props:{fieldValue:{},link:{}},setup(e){const t=e,n=l.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.field});return(i,o)=>(l.openBlock(),l.createElementBlock("div",fI,[!i.fieldValue||!n.value?(l.openBlock(),l.createElementBlock("div",dI," [Error, trying to render label for a non-existent field] ")):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[n.value.description!==void 0&&n.value.description!==""?(l.openBlock(),l.createElementBlock("div",{key:0,title:n.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},l.toDisplayString(n.value.label),9,hI)):(l.openBlock(),l.createElementBlock("div",pI,l.toDisplayString(n.value.label),1)),l.renderSlot(i.$slots,"default")],64))]))}}),mI=l.defineComponent({__name:"CapeLinkValue",props:{fieldValuePair:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>t.fieldValuePair.value),o=l.computed(()=>t.fieldValuePair.field),s=l.computed(()=>{const c="/",f={};try{n.byId(`field-${o.value.id}`).display==="advanced"&&(f.advanced="true"),f.jump="true",f[`field-${o.value.id}-mode`]="is",f[`field-${o.value.id}-term`]=`${i.value}`}catch{console.error(`Attempt to create link from field ${o.value.id} which has no related filter.`)}return{path:c,query:f}});return(c,f)=>{const d=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(d,{to:s.value},{default:l.withCtx(()=>[l.renderSlot(c.$slots,"default")]),_:3},8,["to"])}}}),vI=l.defineComponent({__name:"CapePercentageValue",props:{value:{type:String,required:!0},digits:{type:Number,required:!1}},setup(e){const t=e,n=l.computed(()=>{if(t.value===void 0)return"";const i=parseFloat(t.value);return isNaN(i)?"":t.digits===void 0?i*100+"%":(i*100).toFixed(t.digits)+"%"});return(i,o)=>l.toDisplayString(n.value)}}),gI=l.defineComponent({__name:"CapeFixedNumericValue",props:{value:String,digits:Number},setup(e){const t=e,n=l.computed(()=>{if(t.value===void 0)return"";const i=parseFloat(t.value);return isNaN(i)?"":i.toFixed(t.digits)});return(i,o)=>l.toDisplayString(n.value)}}),yI={__name:"CapeShowAllResultsToggle",setup(e){const t=mn();return(n,i)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":i[0]||(i[0]=o=>l.unref(t).showAllResults=o),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[l.vModelCheckbox,l.unref(t).showAllResults]])}},SI={key:0,class:"cape-results-info"},wI={key:0},EI={key:1},TI={key:1,class:"cape-results-count"},bI=l.defineComponent({__name:"CapeResultsInfo",setup(e){const t=mn();return(n,i)=>l.unref(t).allResultsAreVisible?(l.openBlock(),l.createElementBlock("div",SI,[l.unref(t).visibleCount==1?(l.openBlock(),l.createElementBlock("div",wI,"Showing 1 matching record.")):(l.openBlock(),l.createElementBlock("div",EI,"Showing all "+l.toDisplayString(l.unref(t).visibleCount)+" matching records.",1))])):(l.openBlock(),l.createElementBlock("div",TI," Showing first "+l.toDisplayString(l.unref(t).visibleCount)+" of "+l.toDisplayString(l.unref(t).totalCount)+" matching records. ",1))}}),NI={class:"cape-results-count"},kI=l.defineComponent({__name:"CapeResultsCount",setup(e){const t=mn();return(n,i)=>(l.openBlock(),l.createElementBlock("span",NI,l.toDisplayString(l.unref(t).totalCount),1))}}),CI={class:"cape-filter-field-enum-is-radio"},PI={class:"form-check form-check-inline"},DI=["id"],xI=["for"],OI=["id","value"],II=["for"],RI=l.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createElementBlock("ul",CI,[l.createElementVNode("li",PI,[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-","onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).isTerm=f),type:"radio",value:""},null,8,DI),[[l.vModelRadio,l.unref(i).isTerm]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"},c[2]||(c[2]=[l.createElementVNode("em",null,"any",-1)]),8,xI)]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("li",{key:f},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-"+f,"onUpdate:modelValue":c[1]||(c[1]=d=>l.unref(i).isTerm=d),value:f,type:"radio"},null,8,OI),[[l.vModelRadio,l.unref(i).isTerm]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"+f},l.toDisplayString(f),9,II)]))),128))]))}}),LI=["aria-label"],MI=["value"],AI=l.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>l.withDirectives((l.openBlock(),l.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).isTerm=f),"aria-label":"Select "+l.unref(o).label+" value."},[c[1]||(c[1]=l.createElementVNode("option",{key:"",value:""},null,-1)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("option",{key:f,value:f},l.toDisplayString(f),9,MI))),128))],8,LI)),[[l.vModelSelect,l.unref(i).isTerm]])}}),BI={class:"cape-filter-field-enum-one-of-checkbox"},VI=["id","value"],FI=["for"],YI=l.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createElementBlock("ul",BI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("li",{key:f},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-"+f,"onUpdate:modelValue":c[0]||(c[0]=d=>l.unref(i).oneOfTerms=d),value:f,type:"checkbox"},null,8,VI),[[l.vModelCheckbox,l.unref(i).oneOfTerms]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"+f},l.toDisplayString(f),9,FI)]))),128))]))}});function Tp(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function $I(e){return(...t)=>!e(...t)}function UI(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function zI(e){return e.filter(t=>!t.$isLabel)}function bp(e,t){return n=>n.reduce((i,o)=>o[e]&&o[e].length?(i.push({$groupLabel:o[t],$isLabel:!0}),i.concat(o[e])):i,[])}const E0=(...e)=>t=>e.reduce((n,i)=>i(n),t);var HI={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return Tp(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?bp(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter($I(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return E0(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),bp(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return E0(bp(this.groupValues,this.groupLabel),zI)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Tp(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Tp(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(o=>o[this.trackBy]):t[this.groupValues],i=this.internalValue.filter(o=>n.indexOf(this.trackBy?o[this.trackBy]:o)===-1);this.$emit("update:modelValue",i)}else{const n=t[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const i=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,t,n,i){return t?e.filter(o=>UI(i(o,n),t)).sort((o,s)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(o,s):i(o,n).length-i(s,n).length):e},filterGroups(e,t,n,i,o){return s=>s.map(c=>{if(!c[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const f=this.filterOptions(c[n],e,t,o);return f.length?{[i]:c[i],[n]:f}:[]})}}},WI={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(i=>i[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},T0={name:"vue-multiselect",mixins:[HI,WI],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const ZI=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],GI={ref:"tags",class:"multiselect__tags"},jI={class:"multiselect__tags-wrap"},qI=["textContent"],KI=["onKeypress","onMousedown"],XI=["textContent"],JI={class:"multiselect__spinner"},QI=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],eR=["id","aria-multiselectable"],tR={key:0},nR={class:"multiselect__option"},rR=["aria-selected","id","role"],iR=["onClick","onMouseenter","data-select","data-selected","data-deselect"],oR=["data-select","data-deselect","onMouseenter","onMousedown"],aR={class:"multiselect__option"},sR={class:"multiselect__option"};function lR(e,t,n,i,o,s){return l.openBlock(),l.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:l.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":s.isAbove,"multiselect--has-options-group":s.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=c=>e.activate()),onBlur:t[15]||(t[15]=c=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=l.withKeys(l.withModifiers(c=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=l.withKeys(l.withModifiers(c=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=l.withKeys(l.withModifiers(c=>e.addPointerElement(c),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=l.withKeys(c=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[l.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[l.createElementVNode("div",{onMousedown:t[0]||(t[0]=l.withModifiers(c=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),l.renderSlot(e.$slots,"clear",{search:e.search}),l.createElementVNode("div",GI,[l.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:s.visibleValues,isOpen:e.isOpen},()=>[l.withDirectives(l.createElementVNode("div",jI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.visibleValues,(c,f)=>l.renderSlot(e.$slots,"tag",{option:c,search:e.search,remove:e.removeElement},()=>[(l.openBlock(),l.createElementBlock("span",{class:"multiselect__tag",key:f,onMousedown:t[1]||(t[1]=l.withModifiers(()=>{},["prevent"]))},[l.createElementVNode("span",{textContent:l.toDisplayString(e.getOptionLabel(c))},null,8,qI),l.createElementVNode("i",{tabindex:"1",onKeypress:l.withKeys(l.withModifiers(d=>e.removeElement(c),["prevent"]),["enter"]),onMousedown:l.withModifiers(d=>e.removeElement(c),["prevent"]),class:"multiselect__tag-icon"},null,40,KI)],32))])),256))],512),[[l.vShow,s.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?l.renderSlot(e.$slots,"limit",{key:0},()=>[l.createElementVNode("strong",{class:"multiselect__strong",textContent:l.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,XI)]):l.createCommentVNode("v-if",!0)]),l.createVNode(l.Transition,{name:"multiselect__loading"},{default:l.withCtx(()=>[l.renderSlot(e.$slots,"loading",{},()=>[l.withDirectives(l.createElementVNode("div",JI,null,512),[[l.vShow,n.loading]])])]),_:3}),e.searchable?(l.openBlock(),l.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:s.isRequired,style:l.normalizeStyle(s.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=c=>e.updateSearch(c.target.value)),onFocus:t[3]||(t[3]=l.withModifiers(c=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=l.withModifiers(c=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=l.withKeys(c=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=l.withKeys(l.withModifiers(c=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=l.withKeys(l.withModifiers(c=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=l.withKeys(l.withModifiers(c=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=l.withKeys(l.withModifiers(c=>e.addPointerElement(c),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,QI)):l.createCommentVNode("v-if",!0),s.isSingleLabelVisible?(l.openBlock(),l.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=l.withModifiers((...c)=>e.toggle&&e.toggle(...c),["prevent"]))},[l.renderSlot(e.$slots,"singleLabel",{option:s.singleValue},()=>[l.createTextVNode(l.toDisplayString(e.currentOptionLabel),1)])],32)):l.createCommentVNode("v-if",!0),s.isPlaceholderVisible?(l.openBlock(),l.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=l.withModifiers((...c)=>e.toggle&&e.toggle(...c),["prevent"]))},[l.renderSlot(e.$slots,"placeholder",{},()=>[l.createTextVNode(l.toDisplayString(e.placeholder),1)])],32)):l.createCommentVNode("v-if",!0)],512),l.createVNode(l.Transition,{name:"multiselect",persisted:""},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...c)=>e.activate&&e.activate(...c)),tabindex:"-1",onMousedown:t[13]||(t[13]=l.withModifiers(()=>{},["prevent"])),style:l.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[l.createElementVNode("ul",{class:"multiselect__content",style:l.normalizeStyle(s.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[l.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(l.openBlock(),l.createElementBlock("li",tR,[l.createElementVNode("span",nR,[l.renderSlot(e.$slots,"maxElements",{},()=>[l.createTextVNode("Maximum of "+l.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):l.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(e.filteredOptions,(c,f)=>(l.openBlock(),l.createElementBlock("li",{class:"multiselect__element",key:f,"aria-selected":e.isSelected(c),id:e.id+"-"+f,role:c&&(c.$isLabel||c.$isDisabled)?null:"option"},[c&&(c.$isLabel||c.$isDisabled)?l.createCommentVNode("v-if",!0):(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass([e.optionHighlight(f,c),"multiselect__option"]),onClick:l.withModifiers(d=>e.select(c),["stop"]),onMouseenter:l.withModifiers(d=>e.pointerSet(f),["self"]),"data-select":c&&c.isTag?e.tagPlaceholder:s.selectLabelText,"data-selected":s.selectedLabelText,"data-deselect":s.deselectLabelText},[l.renderSlot(e.$slots,"option",{option:c,search:e.search,index:f},()=>[l.createElementVNode("span",null,l.toDisplayString(e.getOptionLabel(c)),1)])],42,iR)),c&&(c.$isLabel||c.$isDisabled)?(l.openBlock(),l.createElementBlock("span",{key:1,"data-select":e.groupSelect&&s.selectGroupLabelText,"data-deselect":e.groupSelect&&s.deselectGroupLabelText,class:l.normalizeClass([e.groupHighlight(f,c),"multiselect__option"]),onMouseenter:l.withModifiers(d=>e.groupSelect&&e.pointerSet(f),["self"]),onMousedown:l.withModifiers(d=>e.selectGroup(c),["prevent"])},[l.renderSlot(e.$slots,"option",{option:c,search:e.search,index:f},()=>[l.createElementVNode("span",null,l.toDisplayString(e.getOptionLabel(c)),1)])],42,oR)):l.createCommentVNode("v-if",!0)],8,rR))),128)):l.createCommentVNode("v-if",!0),l.withDirectives(l.createElementVNode("li",null,[l.createElementVNode("span",aR,[l.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=l.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[l.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),l.withDirectives(l.createElementVNode("li",null,[l.createElementVNode("span",sR,[l.renderSlot(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=l.createTextVNode("List is empty."))])])],512),[[l.vShow,n.showNoOptions&&(e.options.length===0||s.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),l.renderSlot(e.$slots,"afterList")],12,eR)],36),[[l.vShow,e.isOpen]])]),_:3})],42,ZI)}T0.render=lR;const cR=l.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createBlock(l.unref(T0),{id:"filter-multiselect-"+l.unref(o).id,modelValue:l.unref(i).oneOfTerms,"onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).oneOfTerms=f),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:l.unref(o).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),uR={};function fR(e,t){const n=l.resolveComponent("cape-version");return l.openBlock(),l.createElementBlock("p",null,[t[0]||(t[0]=l.createTextVNode(" This website uses pure Javascript to provide interaction with a JSON datafile which contains the records and site configuration. It does not require any database or PHP -- all the searching is done using javascript inside the single page. This toolkit is called ")),t[1]||(t[1]=l.createElementVNode("i",null,"CAPE",-1)),t[2]||(t[2]=l.createTextVNode(". CAPE will be reused for similar projects in future. CAPE was created by the ")),t[3]||(t[3]=l.createElementVNode("a",{href:"https://ras.soton.ac.uk/"},"Research Application Support",-1)),t[4]||(t[4]=l.createTextVNode(" team at the ")),t[5]||(t[5]=l.createElementVNode("a",{href:"https://www.southampton.ac.uk/"},"University of Southampton",-1)),t[6]||(t[6]=l.createTextVNode(", UK. This site uses Cape ")),l.createVNode(n),t[7]||(t[7]=l.createTextVNode(". "))])}const dR=ji(uR,[["render",fR]]),hR={},pR={class:"border border-black p-1 fixed right-1 top-1"};function _R(e,t){return l.openBlock(),l.createElementBlock("div",pR,t[0]||(t[0]=[l.createStaticVNode('<span class="block sm:hidden">&lt;sm</span><span class="hidden sm:block md:hidden">sm</span><span class="hidden md:block lg:hidden">md</span><span class="hidden lg:block xl:hidden">lg</span><span class="hidden xl:block 2xl:hidden">xl</span><span class="hidden 2xl:block">2xl+</span>',6)]))}const mR=ji(hR,[["render",_R]]),vR="3.6.0",gR={class:"cape-plugin-version"},yR=l.defineComponent({__name:"CapeVersion",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("span",gR,"v"+l.toDisplayString(l.unref(vR)),1))}}),SR={class:"cape-content-page"},wR=["href"],ER=["href"],TR={key:0},bR={key:0},NR=["href"],kR=l.defineComponent({__name:"CapeAboutPage",setup(e){const{metadata:t}=nn();return(n,i)=>{var p,_,v,y,g,E,w,T,b,C,M,z,G,oe,R;const o=l.resolveComponent("cape-record-count"),s=l.resolveComponent("cape-download-json-button"),c=l.resolveComponent("cape-download-csv-button"),f=l.resolveComponent("cape-software"),d=l.resolveComponent("cape-fields-table");return l.openBlock(),l.createElementBlock("div",SR,[i[8]||(i[8]=l.createElementVNode("h2",null,"About the data",-1)),l.createElementVNode("p",null,[i[0]||(i[0]=l.createTextVNode(" This dataset has been created and shared with the intention it should be reused. The dataset contains ")),l.createVNode(o),i[1]||(i[1]=l.createTextVNode(" records. The fields in the dataset are described below. "))]),l.createElementVNode("p",null,[i[2]||(i[2]=l.createTextVNode(" This data is copyright ")),l.createElementVNode("a",{href:(_=(p=l.unref(t))==null?void 0:p.copyright)==null?void 0:_.url},l.toDisplayString(((y=(v=l.unref(t))==null?void 0:v.copyright)==null?void 0:y.title)??"MISSING DATA"),9,wR),i[3]||(i[3]=l.createTextVNode(" and may be reused under the ")),l.createElementVNode("a",{href:(E=(g=l.unref(t))==null?void 0:g.license)==null?void 0:E.url},l.toDisplayString(((T=(w=l.unref(t))==null?void 0:w.license)==null?void 0:T.title)??"MISSING DATA"),9,ER),i[4]||(i[4]=l.createTextVNode(" license. "))]),(b=l.unref(t))!=null&&b.creators?(l.openBlock(),l.createElementBlock("p",TR,[i[5]||(i[5]=l.createTextVNode(" This dataset was created by ")),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(t).creators,(F,Q)=>{var A;return l.openBlock(),l.createElementBlock("span",{key:Q},[l.createElementVNode("span",null,l.toDisplayString(F.name),1),Q+1<((A=l.unref(t).creators)==null?void 0:A.length)?(l.openBlock(),l.createElementBlock("span",bR,", ")):l.createCommentVNode("",!0)])}),128)),i[6]||(i[6]=l.createTextVNode(". "))])):l.createCommentVNode("",!0),l.createElementVNode("p",null,[l.createTextVNode(' If using this data, please attribute it as "'+l.toDisplayString(((M=(C=l.unref(t))==null?void 0:C.attribution)==null?void 0:M.title)??"MISSING DATA")+'" with a link to ',1),l.createElementVNode("a",{href:(G=(z=l.unref(t))==null?void 0:z.attribution)==null?void 0:G.url},l.toDisplayString(((R=(oe=l.unref(t))==null?void 0:oe.attribution)==null?void 0:R.url)??"MISSING DATA"),9,NR),i[7]||(i[7]=l.createTextVNode(". "))]),l.createElementVNode("p",null,[l.createVNode(s,{style:{"margin-right":"1rem"}}),l.createVNode(c)]),i[9]||(i[9]=l.createElementVNode("h2",null,"About this software",-1)),l.createVNode(f),i[10]||(i[10]=l.createElementVNode("h2",null,"Schema",-1)),i[11]||(i[11]=l.createElementVNode("p",null," Field types may be text, date, integer or enum. An enum field is short for enumerated, which means a limited set of terms rather than free text. ",-1)),l.createVNode(d)])}}}),CR=l.defineComponent({__name:"CapeSummaryCard",props:{record:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-value"),o=l.resolveComponent("cape-record-link");return l.openBlock(),l.createBlock(o,{class:"cape-summary-card block bg-blue-100 py-2 px-4 my-1",record:t.record},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(i,{"field-value":t.record.record_number},null,8,["field-value"]),n[0]||(n[0]=l.createTextVNode(" - ")),l.createVNode(i,{"field-value":t.record.title},null,8,["field-value"]),n[1]||(n[1]=l.createTextVNode(" - ")),l.createVNode(i,{"field-value":t.record.date},null,8,["field-value"])])]),_:1},8,["record"])}}}),PR={class:"cape-navigation"},DR={class:"cape-navigation-items"},xR={class:"cape-navigation-item"},OR=l.defineComponent({__name:"CapeNavigation",setup(e){const t=nn(),n=l.computed(()=>t.pages);return(i,o)=>{const s=l.resolveComponent("router-link"),c=l.resolveComponent("router-view");return l.openBlock(),l.createElementBlock("div",PR,[l.createElementVNode("nav",null,[l.createElementVNode("ul",DR,[l.createElementVNode("li",xR,[l.createVNode(s,{class:"cape-navigation-link",to:"/"},{default:l.withCtx(()=>o[0]||(o[0]=[l.createTextVNode("Search")])),_:1,__:[0]})]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,f=>(l.openBlock(),l.createElementBlock("li",{class:"cape-navigation-item",key:f.path},[l.createVNode(s,{class:"cape-navigation-link",to:f.path},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(f.label),1)]),_:2},1032,["to"])]))),128))])]),l.createElementVNode("main",null,[l.createVNode(c)])])}}}),IR={class:"cape-record-card bg-blue-100 py-2 px-4"},RR={class:"text-xl border-black border-b mb-4"},LR={class:"border-b mb-4 pb-4 border-b-black"},MR={class:"md:grid md:grid-cols-2 md:gap-4"},AR={class:"border-b mb-4 pb-4 border-b-black"},BR={class:"md:grid md:grid-cols-2 md:gap-4"},VR={class:"md:grid md:grid-cols-2 md:gap-4"},FR={class:"mb-5"},YR=l.defineComponent({__name:"CapeRecordCard",props:{record:{},previousInDataset:{},nextInDataset:{},previousInResults:{},nextInResults:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-previous-result"),o=l.resolveComponent("cape-next-result"),s=l.resolveComponent("cape-previous-record"),c=l.resolveComponent("cape-next-record"),f=l.resolveComponent("cape-labelled-value");return l.openBlock(),l.createElementBlock("div",IR,[l.createElementVNode("h2",RR,"RecordCard Placeholder ID: "+l.toDisplayString(t.record.record_number.value),1),l.createElementVNode("div",LR,[l.createElementVNode("div",MR,[l.createVNode(i,{record:t.record},{before:l.withCtx(()=>n[0]||(n[0]=[l.createTextVNode("← ")])),otherwise:l.withCtx(()=>n[1]||(n[1]=[l.createTextVNode("[start of results]")])),_:1},8,["record"]),l.createVNode(o,{record:t.record,class:"text-right"},{after:l.withCtx(()=>n[2]||(n[2]=[l.createTextVNode(" →")])),otherwise:l.withCtx(()=>n[3]||(n[3]=[l.createTextVNode("[end of results]")])),_:1},8,["record"])])]),l.createElementVNode("div",AR,[l.createElementVNode("div",BR,[l.createVNode(s,{record:t.record},{before:l.withCtx(()=>n[4]||(n[4]=[l.createTextVNode("← ")])),otherwise:l.withCtx(()=>n[5]||(n[5]=[l.createTextVNode("[start of dataset]")])),_:1},8,["record"]),l.createVNode(c,{record:t.record,class:"text-right"},{after:l.withCtx(()=>n[6]||(n[6]=[l.createTextVNode(" →")])),otherwise:l.withCtx(()=>n[7]||(n[7]=[l.createTextVNode("[end of dataset]")])),_:1},8,["record"])])]),l.createElementVNode("div",VR,[l.createElementVNode("ul",FR,[l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.record_number},null,8,["field-value"])]),l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.title},null,8,["field-value"])]),l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.date},null,8,["field-value"])])]),n[8]||(n[8]=l.createElementVNode("div",null," Column 2 ",-1))])])}}}),$R={};function UR(e,t){const n=l.resolveComponent("cape-page-width-indicator"),i=l.resolveComponent("cape-non-prod-warning");return l.openBlock(),l.createElementBlock("header",null,[l.createVNode(n),t[0]||(t[0]=l.createElementVNode("h1",{class:"text-4xl"},[l.createElementVNode("a",{href:"/",id:"service-title"},"CAPE")],-1)),l.createVNode(i)])}const zR=ji($R,[["render",UR]]),HR={class:"mt-10 py-5 px-4 bg-gray-700 text-white flex items-center justify-between"},WR={class:"text-left"},ZR=["href"],GR={class:"text-right"},jR={__name:"CapeFooter",setup(e){const{metadata:t}=nn();return(n,i)=>{var s,c,f,d;const o=l.resolveComponent("cape-version");return l.openBlock(),l.createElementBlock("footer",HR,[l.createElementVNode("div",WR,[i[0]||(i[0]=l.createTextVNode(" © ")),l.createElementVNode("a",{href:(c=(s=l.unref(t))==null?void 0:s.copyright)==null?void 0:c.url},l.toDisplayString(((d=(f=l.unref(t))==null?void 0:f.copyright)==null?void 0:d.title)??"MISSING COPYRIGHT METADATA"),9,ZR)]),i[2]||(i[2]=l.createElementVNode("div",{class:"text-center"},null,-1)),l.createElementVNode("div",GR,[i[1]||(i[1]=l.createTextVNode(" Powered by Cape ")),l.createVNode(o)])])}}},qR={class:"cape-record-label"},KR=l.defineComponent({__name:"CapeRecordLabel",props:{record:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-value");return l.openBlock(),l.createElementBlock("span",qR,[l.createVNode(i,{"field-value":t.record.title},null,8,["field-value"]),n[0]||(n[0]=l.createTextVNode(" # ")),l.createVNode(i,{"field-value":t.record.record_number},null,8,["field-value"])])}}}),XR={class:"cape-filter-controls cape-filter-controls-top"},JR={class:"cape-advanced-search-toggle-control switch switch-sm"},QR={key:0,class:"cape-filter-controls cape-filter-controls-bottom"},eL={class:"cape-advanced-search-toggle-control switch switch-sm"},tL=l.defineComponent({__name:"CapeHomepageLayout",setup(e){const t=Yt(),n=l.computed(()=>t.showAdvanced);return(i,o)=>{const s=l.resolveComponent("cape-intro"),c=l.resolveComponent("cape-advanced-search-toggle"),f=l.resolveComponent("cape-form-reset-button"),d=l.resolveComponent("cape-filters"),p=l.resolveComponent("cape-results");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(s),l.createElementVNode("div",XR,[l.createElementVNode("div",JR,[l.createVNode(c,{id:"cape-advanced-search-toggle-top"}),o[0]||(o[0]=l.createElementVNode("label",{for:"cape-advanced-search-toggle-top"},"Advanced Search",-1))]),l.createVNode(f)]),l.createElementVNode("div",null,[l.createVNode(d)]),n.value?(l.openBlock(),l.createElementBlock("div",QR,[l.createElementVNode("div",eL,[l.createVNode(c,{id:"cape-advanced-search-toggle-bottom"}),o[1]||(o[1]=l.createElementVNode("label",{for:"cape-advanced-search-toggle-bottom"},"Advanced Search",-1))]),l.createVNode(f)])):l.createCommentVNode("",!0),l.createElementVNode("div",null,[l.createVNode(p)])],64)}}}),nL={},rL={class:"cape-intro mb-10"};function iL(e,t){const n=l.resolveComponent("cape-record-count");return l.openBlock(),l.createElementBlock("p",rL,[t[0]||(t[0]=l.createElementVNode("strong",null,"Your intro text goes here.",-1)),t[1]||(t[1]=l.createTextVNode(" This repository contains ")),l.createVNode(n),t[2]||(t[2]=l.createTextVNode(" records. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas facilisis feugiat nunc vel interdum. Duis vehicula congue imperdiet. Vivamus sit amet lacus lectus. Proin nec placerat eros, nec eleifend sapien. Suspendisse in ante placerat, sodales arcu id, ornare odio. (component version) "))])}const oL=ji(nL,[["render",iL]]),aL=l.defineComponent({name:"CapeAboutPage",template:"#templateCapeAbout",computed:{metadata(){return nn().metadata}}}),sL={template:"#templateCapeSummaryCard",props:["record"]},lL={template:"#templateCapeNavigation",computed:{...Vh(nn,["pages"])}},cL={template:"#templateCapeRecordCard",props:["record","previousInDataset","nextInDataset","previousInResults","nextInResults"]},uL={template:"#templateCapeHeader"},fL={template:"#templateCapeFooter"},dL={template:"#templateCapeRecordLabel",props:["record"]},hL={template:"#templateCapeHomepageLayout",computed:{...Vh(Yt,["showAdvanced"]),...Vh(mn,{hasMatches:e=>e.totalCount>0})}},b0={install:function(e,t){e.use(Nk());const n=this.makeComponentMap(t);this.registerComponents(e,n),nn().setOptions(t),this.registerRoutes(e,t.pages,$h);const o=async s=>{const c=await Ep.getPageTitle(s,t);c&&(document.title=c)};zl.add({priority:w0.High,action:o}),$h.afterEach(async(s,c)=>{Zi().onLoaded(async()=>{await zl.execute(s,c)})}),e.use($h)},registerRoutes:function(e,t,n){n.addRoute({name:"root",path:"/",component:e.component("CapeHomePage")}),n.addRoute({name:"record",path:"/record/:id",component:e.component("CapeRecordPage")}),t!==void 0&&l.toRaw(t).forEach(i=>{const o={path:i.path,component:e.component(i.component)};i.title&&(o.meta={title:i.title}),n.addRoute(o)})},registerComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},makeComponentMap(e){const t=this.builtInComponentsMap();if(e.useInlineTemplate&&(t.CapeAboutPage=aL,t.CapeFooter=fL,t.CapeHeader=uL,t.CapeHomepageLayout=hL,t.CapeNavigation=lL,t.CapeRecordCard=cL,t.CapeRecordLabel=dL,t.CapeSummaryCard=sL),e.additionalComponents!==void 0)for(const[n,i]of Object.entries(e.additionalComponents))t[n]=i;return t},builtInComponentsMap(){return{CapeFilterFieldDate:kO,CapeFilterFieldEnum:uO,CapeFilterFieldEnumIsRadio:RI,CapeFilterFieldEnumIsSelect:AI,CapeFilterFieldEnumOneOfCheckbox:YI,CapeFilterFieldEnumOneOfMultiselect:cR,CapeFilterFieldInteger:gO,CapeFilterFieldText:W1,CapeFilterFreeText:K1,CapeAboutPage:kR,CapeFooter:jR,CapeHeader:zR,CapeHomepageLayout:tL,CapeIntro:oL,CapeNavigation:OR,CapeRecordCard:YR,CapeRecordLabel:KR,CapeSummaryCard:CR,CapeAdvancedSearchToggle:aC,CapeFilters:lC,CapeFormResetButton:cC,CapeResults:DC,CapeResultsControls:OO,CapeGoTopResults:IO,CapeExternalLinkValue:LO,CapeResultsCount:kI,CapeResultsInfo:bI,CapeShowAllResultsToggle:yI,CapeSortOrder:oO,CapeDownloadCsvButton:VO,CapeDownloadJsonButton:UO,CapeFieldsTable:WO,CapeFixedNumericValue:gI,CapeLabelledContent:_I,CapeLabelledValue:AC,CapeLinkValue:mI,CapeNextRecord:uI,CapeNextResult:tI,CapePercentageValue:vI,CapePreviousRecord:sI,CapePreviousResult:iI,CapeRecordCount:oC,CapeRecordLink:GO,CapeRecordMap:JO,CapeSingleValue:V1,CapeSoftware:dR,CapeValue:MC,CapeVersion:yR,CapeHomePage:fC,CapeLoadError:pC,CapeLoading:gC,CapeNonProdWarning:TC,CapePageWidthIndicator:mR,CapeRecordPage:kC,CapeRoot:rC}}},pL={};function _L(e,t){const n=l.resolveComponent("CapeHeader"),i=l.resolveComponent("CapeRoot"),o=l.resolveComponent("CapeLoading"),s=l.resolveComponent("CapeFooter");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(n),(l.openBlock(),l.createBlock(l.Suspense,null,{default:l.withCtx(()=>[l.createVNode(i)]),fallback:l.withCtx(()=>[l.createVNode(o)]),_:1})),l.createVNode(s)],64)}const mL=ji(pL,[["render",_L]]),vL=e=>{const t=l.createApp(mL);return t.use(b0,e),t},Li=class Li{static register(t){Li.loggers.push(t)}static clear(){Li.loggers=[]}static debug(t,n){Li.loggers.forEach(i=>i.debug(t,n))}static info(t,n){Li.loggers.forEach(i=>i.info(t,n))}static warn(t,n){Li.loggers.forEach(i=>i.warn(t,n))}static error(t,n){Li.loggers.forEach(i=>i.error(t,n))}};Ke(Li,"loggers",[]);let Hl=Li;var Dn=(e=>(e[e.Debug=3]="Debug",e[e.Info=2]="Info",e[e.Warn=1]="Warn",e[e.Error=0]="Error",e))(Dn||{});class gL{constructor(t){this.loggingLevel=t}debug(t,n){this.loggingLevel>=Dn.Debug&&console.debug(t,n??"")}info(t,n){this.loggingLevel>=Dn.Info&&console.info(t,n??"")}warn(t,n){this.loggingLevel>=Dn.Warn&&console.warn(t,n??"")}error(t,n){this.loggingLevel>=Dn.Error&&console.error(t,n??"")}}const yL={install:function(e,t){const n=new gL(t.loggingLevel);Hl.register(n)}};class SL{constructor(t,n){this.loggingLevel=t,this.appInsights=n}debug(t,n){this.loggingLevel>=Dn.Debug&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Debug}})}info(t,n){this.loggingLevel>=Dn.Info&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Info}})}warn(t,n){this.loggingLevel>=Dn.Warn&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Warn}})}error(t,n){this.loggingLevel>=Dn.Error&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Error}})}}/*! https://github.com/nevware21/ts-utils v0.12.4 */function xn(e,t){return e||t}function xt(e,t){return e[t]}var vn=void 0,qt=null,Np="",ef="function",Wl="object",_i="prototype",tf="__proto__",Yo="undefined",nf="constructor",kp="Symbol",fs="length",rf="name",rn="call",Zl="toString",Cp="getOwnPropertyDescriptor",gn=xn(Object),Pp=xt(gn,_i),N0=xn(String),$o=xt(N0,_i),Gl=xn(Math),k0=xn(Array),of=xt(k0,_i),mi=xt(of,"slice"),C0="_polyfill",P0="__nw21$polytype__";function Ot(e,t){try{return{v:e.apply(this,t)}}catch(n){return{e:n}}}function wL(e,t,n){var i=Ot(e,n);return i.e?t:i.v}var Dp;function af(e){return function(t){return typeof t===e}}function D0(e){var t="[object "+e+"]";return function(n){return!!(n&&EL(n)===t)}}function EL(e){return Pp[Zl].call(e)}function It(e){return typeof e===Yo||e===Yo}function TL(e){return e===vn}function ce(e){return e===qt||It(e)}function xp(e){return e===qt||e===vn}function bL(e){return!!e||e!==vn}function NL(e){return!Dp&&(Dp=["string","number","boolean",Yo,"symbol","bigint"]),e!==Wl&&Dp.indexOf(e)!==-1}var Re=af("string"),Le=af(ef);function On(e){return!e&&ce(e)?!1:!!e&&typeof e===Wl}var $e=xt(k0,"isArray"),kL=D0("Date"),jl=af("number"),x0=af("boolean"),Op=D0("Error");function Ji(e){return!!(e&&e.then&&Le(e.then))}function sf(e){return!(!e||wL(function(){return!(e&&0+e)},!e))}function Ip(){}function CL(){return!1}var yn=xn(N0),PL="[object Error]";function Te(e,t){var n=Np,i=Pp[Zl][rn](e);i===PL&&(e={stack:yn(e.stack),message:yn(e.message),name:yn(e.name)});try{n=JSON.stringify(e,qt,t?typeof t=="number"?t:4:vn),n=(n?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):qt)||yn(e)}catch(o){n=" - "+Te(o,t)}return i+": "+n}function Bn(e){throw new Error(e)}function Ir(e){throw new TypeError(e)}function lf(e){xp(e)&&Ir("Cannot convert undefined or null to object")}function DL(e){Re(e)||Ir("'"+Te(e)+"' is not a string")}function qn(e,t){return!!e&&Pp.hasOwnProperty[rn](e,t)}var xL=xn(xt(gn,Cp),Ip),Qi=xn(xt(gn,"hasOwn"),OL);function OL(e,t){return lf(e),qn(e,t)||!!xL(e,t)}function Xe(e,t,n){if(e&&(On(e)||Le(e))){for(var i in e)if(Qi(e,i)&&t[rn](e,i,e[i])===-1)break}}function Se(e,t,n){if(e)for(var i=e[fs]>>>0,o=0;o<i&&!(o in e&&t[rn](e,e[o],o,e)===-1);o++);}var Uo=cf;function cf(e,t,n){var i=t?t[e]:qt;return function(o){var s=(o?o[e]:qt)||i;if(s||n){var c=arguments;return(s||n).apply(o,s?mi[rn](c,1):c)}Ir('"'+yn(e)+'" not defined for '+Te(o))}}function IL(e){return function(t){return t[e]}}var RL=xn(xt(gn,Cp),Ip),uf={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function LL(e){var t={};if(t[uf.c]=!0,t[uf.e]=!0,e.l){t.get=function(){return e.l.v};var n=RL(e.l,"v");n&&n.set&&(t.set=function(i){e.l.v=i})}return Xe(e,function(i,o){t[uf[i]]=TL(o)?t[uf[i]]:o}),t}var vi=xt(gn,"defineProperty"),ML=xt(gn,"defineProperties");function tt(e,t,n){return vi(e,t,LL(n))}function O0(e,t,n,i,o){var s={};return Xe(e,function(c,f){ff(s,c,t?f:c),ff(s,f,c)}),i?i(s):s}function ff(e,t,n,i){vi(e,t,{value:n,enumerable:!0,writable:!1})}var AL=xn(xt(gn,"isFrozen"),CL),I0=xt(gn,"freeze");function BL(e){return e}function VL(e){return lf(e),e[tf]||qt}var Rp=xt(gn,"assign"),gi=xt(gn,"keys");function R0(e,t){if(($e(e)||On(e)||Le(e))&&!AL(e)){for(var n=0;n<t.length;n++)if(t[n]===e)return e;t.push(e),Xe(e,function(i,o){R0(o,t)}),pr(e)}return e}function ql(e){return I0?R0(e,[]):e}var pr=xn(I0,BL),Lp=xn(xt(gn,"getPrototypeOf"),VL);function FL(e){return O0(e,1,0,pr)}function YL(e){return O0(e,0,0,pr)}function $L(e){var t={};return Xe(e,function(n,i){ff(t,n,i[1]),ff(t,i[0],i[1])}),pr(t)}function UL(e){return $L(e)}var L0=YL({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),M0="__tsUtils$gblCfg",Mp;function A0(){var e;return typeof globalThis!==Yo&&(e=globalThis),!e&&typeof self!==Yo&&(e=self),!e&&typeof window!==Yo&&(e=window),!e&&typeof global!==Yo&&(e=global),e}function df(){if(!Mp){var e=Ot(A0).v||{};Mp=e[M0]=e[M0]||{}}return Mp}var B0=xt(Gl,"min"),Kl=xt(Gl,"max"),V0=Uo("slice",$o),Rr=Uo("substring",$o),eo=cf("substr",$o,zL);function zL(e,t,n){return lf(e),n<0?Np:(t=t||0,t<0&&(t=Kl(t+e[fs],0)),It(n)?V0(e,t):V0(e,t,t+n))}function Ap(e,t){return Rr(e,0,t)}function HL(e,t){return e&&(Ot(function(){e[C0]=!0,e[P0]=t}),Ot(tt,[e,C0,{v:!0,w:!1,e:!1}]),Ot(tt,[e,P0,{v:t,w:!1,e:!1}])),e}var yi=xn(xt(gn,"create"),WL);function WL(e,t){var n=null;function i(){}if(xp(e))n={};else{var o=typeof e;o!==Wl&&o!==ef&&Ir("Prototype must be an Object or function: "+Te(e)),i[_i]=e,Ot(function(){i[tf]=e}),n=new i}return t&&Ot(ML,[n,t]),n}function _r(){return(Date.now||ZL)()}function ZL(){return new Date().getTime()}function zo(e,t,n){return e.apply(t,n)}var $t;function to(){$t=df()}function F0(e,t){var n={};return!$t&&to(),n.b=$t.lzy,vi(n,"v",{configurable:!0,get:function(){var i=zo(e,null,t);return $t.lzy||vi(n,"v",{value:i}),n.b=$t.lzy,i}}),n}var GL=xt(Gl,"random"),jL=F0(function(){for(var e=_r().toString(36).slice(2);e.length<16;)e+=GL().toString(36).slice(2);return e=e.substring(0,16),e}),Y0="_urid",qL="$nw21sym",Bp,KL=0;function XL(){if(!Bp){var e=df();Bp=e.gblSym=e.gblSym||{k:{},s:{}}}return Bp}var hf;function Vp(e){var t="_"+KL+++"_"+jL.v,n=kp+"("+e+")";function i(s,c){tt(o,s,{v:c,e:!1,w:!1})}var o=yi(null);return i("description",yn(e)),i(Zl,function(){return n+qL+t}),i("valueOf",function(){return o}),i("v",n),i("_uid",t),HL(o,"symbol")}function JL(e){var t=XL();if(!Qi(t.k,e)){var n=Vp(e),i=gi(t.s).length;n[Y0]=function(){return i+"_"+n[Zl]()},t.k[e]=n,t.s[n[Y0]()]=yn(e)}return t.k[e]}function QL(e){!hf&&(hf={});var t,n=L0[e];return n&&(t=hf[n]=hf[n]||Vp(kp+"."+n)),t}function Kn(e){return vi({toJSON:function(){return e}},"v",{value:e})}var $0="window",Xl;function ds(e,t){var n;return function(){return!$t&&to(),(!n||$t.lzy)&&(n=Kn(Ot(e,t).v)),n.v}}function Xn(e){return!$t&&to(),(!Xl||e===!1||$t.lzy)&&(Xl=Kn(Ot(A0).v||qt)),Xl.v}function Ct(e,t){var n;if(!Xl||t===!1?n=Xn(t):n=Xl.v,n&&n[e])return n[e];if(e===$0)try{return window}catch{}return qt}function U0(){return!!on()}var on=ds(Ct,["document"]);function pf(){return!!Vn()}var Vn=ds(Ct,[$0]);function eM(){return!!Lr()}var Lr=ds(Ct,["navigator"]);function tM(){return!!z0()}var z0=ds(Ct,["history"]),nM=ds(function(){return!!Ot(function(){return process&&(process.versions||{}).node}).v}),H0=ds(function(){return!!Ot(function(){return self&&self instanceof WorkerGlobalScope}).v}),hs,Fp;function _f(){return hs=Kn(Ot(Ct,[kp]).v),hs}function rM(e){var t=($t.lzy?0:hs)||_f();return t.v?t.v[e]:vn}function iM(){return!!oM()}function oM(){return!$t&&to(),(($t.lzy?0:hs)||_f()).v}function Yp(e,t){var n=L0[e];!$t&&to();var i=($t.lzy?0:hs)||_f();return i.v?i.v[n||e]:QL(e)}function Jl(e,t){!$t&&to();var n=($t.lzy?0:hs)||_f();return n.v?n.v(e):Vp(e)}function $p(e){return!$t&&to(),Fp=($t.lzy?0:Fp)||Kn(Ot(rM,["for"]).v),(Fp.v||JL)(e)}function Up(e){return!!e&&Le(e.next)}function W0(e){return!xp(e)&&Le(e[Yp(3)])}var mf;function zp(e,t,n){if(e&&(Up(e)||(!mf&&(mf=Kn(Yp(3))),e=e[mf.v]?e[mf.v]():qt),Up(e))){var i=vn,o=vn;try{for(var s=0;!(o=e.next()).done&&t[rn](n||e,o.value,s,e)!==-1;)s++}catch(c){i={e:c},e.throw&&(o=qt,e.throw(i))}finally{try{o&&!o.done&&e.return&&e.return(o)}finally{if(i)throw i.e}}}}function ps(e,t){return!It(t)&&e&&($e(t)?zo(e.push,e,t):Up(t)||W0(t)?zp(t,function(n){e.push(n)}):e.push(t)),e}var dn=Uo("indexOf",of),Ql=Uo("map",of);function vf(e,t,n){return((e?e.slice:qt)||mi).apply(e,mi[rn](arguments,1))}var aM=Uo("reduce",of),Hp,Z0=xn(xt(gn,"setPrototypeOf"),sM);function sM(e,t){var n;return!Hp&&(Hp=Kn((n={},n[tf]=[],n instanceof Array))),Hp.v?e[tf]=t:Xe(t,function(i,o){return e[i]=o}),e}function lM(e,t,n){Ot(tt,[t,rf,{v:e,c:!0,e:!1}]),t=Z0(t,n);function i(){this[nf]=t,Ot(tt,[this,rf,{v:e,c:!0,e:!1}])}return t[_i]=n===qt?yi(n):(i[_i]=n[_i],new i),t}function G0(e,t){t&&(e[rf]=t)}function j0(e,t,n){var i=Error,o=i[_i][rf],s=Error.captureStackTrace;return lM(e,function(){var c=this,f=arguments;try{Ot(G0,[i,e]);var d=zo(i,c,mi[rn](f))||c;if(d!==c){var p=Lp(c);p!==Lp(d)&&Z0(d,p)}return s&&s(d,c[nf]),t&&t(d,f),d}finally{Ot(G0,[i,o])}},i)}var Wp;function cM(e){throw Wp||(Wp=j0("UnsupportedError")),new Wp(e)}function uM(e){return function(n){return lf(n),n&&n.replace&&(n=n.replace(e,Np)),n}}var fM=uM(/^\s+|(?=\s)\s+$/g),yt=cf("trim",$o,fM),Fn=xt(Gl,"floor"),Zp,Gp,jp;function Sn(e){if(!e||typeof e!==Wl)return!1;jp||(jp=pf()?Vn():!0);var t=!1;if(e!==jp){Gp||(Zp=Function[_i][Zl],Gp=Zp[rn](gn));try{var n=Lp(e);t=!n,t||(qn(n,nf)&&(n=n[nf]),t=!!(n&&typeof n===ef&&Zp[rn](n)===Gp))}catch{}}return t}function dM(e){return e.value&&X0(e),!0}var q0=[mM,X0,gM,vM];function hM(e,t,n,i){var o;return Se(e,function(s){if(s.k===t)return o=s,-1}),o||(o={k:t,v:t},e.push(o),i(o)),o.v}function qp(e,t,n,i){var o=n.handler,s=n.path?i?n.path.concat(i):n.path:[],c={handler:n.handler,src:n.src,path:s},f=typeof t,d=!1,p=t===qt;p||(t&&f===Wl?d=Sn(t):p=NL(f));var _={type:f,isPrim:p,isPlain:d,value:t,result:t,path:s,origin:n.src,copy:function(v,y){return qp(e,v,y?c:n,y)},copyTo:function(v,y){return K0(e,v,y,c)}};return _.isPrim?o&&o[rn](n,_)?_.result:t:hM(e,t,s,function(v){tt(_,"result",{g:function(){return v.v},s:function(E){v.v=E}});for(var y=0,g=o;!(g||(y<q0.length?q0[y++]:dM))[rn](n,_);)g=qt})}function K0(e,t,n,i){if(!ce(n))for(var o in n)t[o]=qp(e,n[o],i,o);return t}function pM(e,t,n){var i={handler:n,src:t,path:[]};return K0([],e,t,i)}function _M(e,t){var n={handler:t,src:e};return qp([],e,n)}function mM(e){var t=e.value;if($e(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1}function vM(e){var t=e.value;return kL(t)?(e.result=new Date(t.getTime()),!0):!1}function gM(e){return e.type===ef}function X0(e){var t=e.value;if(t&&e.isPlain){var n=e.result={};return e.copyTo(n,t),!0}return!1}function J0(e,t){return Se(t,function(n){pM(e,n)}),e}function Q0(e,t,n,i,o,s,c){return J0(_M(e)||{},mi[rn](arguments))}function yM(e,t,n,i,o,s,c){return J0(e||{},mi[rn](arguments))}var eS=Uo("split",$o);function tS(e,t,n){if(e&&t){var i=eS(t,"."),o=i.pop();Se(i,function(s){ce(e[s])&&(e[s]={}),e=e[s]}),e[o]=n}}var SM=IL(fs),Kp;function Si(){return!$t&&to(),(!Kp||$t.lzy)&&(Kp=Kn(Ot(Ct,["performance"]).v)),Kp.v}var nS=xt(Gl,"round"),wM=xn(xt(gn,Cp),Ip),rS=cf("endsWith",$o,EM);function EM(e,t,n){DL(e);var i=Re(t)?t:yn(t),o=!It(n)&&n<e[fs]?n:e[fs];return Rr(e,o-i[fs],o)===i}var wn=Uo("indexOf",$o),Xp="ref",Jp="unref",Qp="hasRef",TM="enabled";function bM(e,t,n){var i=!0,o=e?t(qt):qt,s;function c(){return i=!1,o&&o[Jp]&&o[Jp](),s}function f(){o&&n(o),o=qt}function d(){return o=t(o),i||c(),s}function p(_){!_&&o&&f(),_&&!o&&d()}return s={cancel:f,refresh:d},s[Qp]=function(){return o&&o[Qp]?o[Qp]():i},s[Xp]=function(){return i=!0,o&&o[Xp]&&o[Xp](),s},s[Jp]=c,s=vi(s,TM,{get:function(){return!!o},set:p}),{h:s,dn:function(){o=qt}}}var NM,kM;function CM(e){var t=Le(e)?e:NM;if(!t){var n=df().tmOut||[];$e(n)&&n.length>0&&Le(n[0])&&(t=n[0])}return t||setTimeout}function PM(e){var t=Le(e)?e:kM;if(!t){var n=df().tmOut||[];$e(n)&&n.length>1&&Le(n[1])&&(t=n[1])}return t||clearTimeout}function iS(e,t,n){var i=$e(t),o=i?t.length:0,s=CM(o>0?t[0]:i?vn:t),c=PM(o>1?t[1]:vn),f=n[0];n[0]=function(){d.dn(),zo(f,vn,mi[rn](arguments))};var d=bM(e,function(p){if(p){if(p.refresh)return p.refresh(),p;zo(c,vn,[p])}return zo(s,vn,n)},function(p){zo(c,vn,[p])});return d.h}function Jn(e,t){return iS(!0,vn,mi[rn](arguments))}function DM(e,t){return iS(!1,vn,mi[rn](arguments))}var gf,yf="constructor",wi="prototype",Sf="function",wf="_dynInstFuncs",e_="_isDynProxy",_s="_dynClass",xM="_dynCls$",t_="_dynInstChk",ec=t_,oS="_dfOpts",aS="_unknown_",n_="__proto__",Ef="_dyn"+n_,sS="__dynProto$Gbl",r_="_dynInstProto",Tf="useBaseInst",i_="setInstFuncs",o_=Object,tc=o_.getPrototypeOf,lS=o_.getOwnPropertyNames,cS=Xn(),a_=cS[sS]||(cS[sS]={o:(gf={},gf[i_]=!0,gf[Tf]=!0,gf),n:1e3});function bf(e){return e&&(e===o_[wi]||e===Array[wi])}function s_(e){return bf(e)||e===Function[wi]}function Ho(e){var t;if(e){if(tc)return tc(e);var n=e[n_]||e[wi]||(e[yf]?e[yf][wi]:null);t=e[Ef]||n,qn(e,Ef)||(delete e[r_],t=e[Ef]=e[r_]||e[Ef],e[r_]=n)}return t}function Nf(e,t){var n=[];if(lS)n=lS(e);else for(var i in e)typeof i=="string"&&qn(e,i)&&n.push(i);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function l_(e,t,n){return t!==yf&&typeof e[t]===Sf&&(n||qn(e,t))&&t!==n_&&t!==wi}function kf(e){Ir("DynamicProto: "+e)}function OM(e){var t=yi(null);return Nf(e,function(n){!t[n]&&l_(e,n,!1)&&(t[n]=e[n])}),t}function c_(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function IM(e,t,n,i){function o(d,p,_){var v=p[_];if(v[e_]&&i){var y=d[wf]||{};y[ec]!==!1&&(v=(y[p[_s]]||{})[_]||v)}return function(){return v.apply(d,arguments)}}var s=yi(null);Nf(n,function(d){s[d]=o(t,n,d)});for(var c=Ho(e),f=[];c&&!s_(c)&&!c_(f,c);)Nf(c,function(d){!s[d]&&l_(c,d,!tc)&&(s[d]=o(t,c,d))}),f.push(c),c=Ho(c);return s}function RM(e,t,n,i){var o=null;if(e&&qn(n,_s)){var s=e[wf]||yi(null);if(o=(s[n[_s]]||yi(null))[t],o||kf("Missing ["+t+"] "+Sf),!o[t_]&&s[ec]!==!1){for(var c=!qn(e,t),f=Ho(e),d=[];c&&f&&!s_(f)&&!c_(d,f);){var p=f[t];if(p){c=p===i;break}d.push(f),f=Ho(f)}try{c&&(e[t]=o),o[t_]=1}catch{s[ec]=!1}}}return o}function LM(e,t,n){var i=t[e];return i===n&&(i=Ho(t)[e]),typeof i!==Sf&&kf("["+e+"] is not a "+Sf),i}function MM(e,t,n,i,o){function s(d,p){var _=function(){var v=RM(this,p,d,_)||LM(p,d,_);return v.apply(this,arguments)};return _[e_]=1,_}if(!bf(e)){var c=n[wf]=n[wf]||yi(null);if(!bf(c)){var f=c[t]=c[t]||yi(null);c[ec]!==!1&&(c[ec]=!!o),bf(f)||Nf(n,function(d){l_(n,d,!1)&&n[d]!==i[d]&&(f[d]=n[d],delete n[d],(!qn(e,d)||e[d]&&!e[d][e_])&&(e[d]=s(e,d)))})}}}function AM(e,t){if(tc){for(var n=[],i=Ho(t);i&&!s_(i)&&!c_(n,i);){if(i===e)return!0;n.push(i),i=Ho(i)}return!1}return!0}function u_(e,t){return qn(e,wi)?e.name||t||aS:((e||{})[yf]||{}).name||t||aS}function St(e,t,n,i){qn(e,wi)||kf("theClass is an invalid class definition.");var o=e[wi];AM(o,t)||kf("["+u_(e)+"] not in hierarchy of ["+u_(t)+"]");var s=null;qn(o,_s)?s=o[_s]:(s=xM+u_(e,"_")+"$"+a_.n,a_.n++,o[_s]=s);var c=St[oS],f=!!c[Tf];f&&i&&i[Tf]!==void 0&&(f=!!i[Tf]);var d=OM(t),p=IM(o,t,d,f);n(t,p);var _=!!tc&&!!c[i_];_&&i&&(_=!!i[i_]),MM(o,s,t,d,_!==!1)}St[oS]=a_.o;var uS="function",fS="object",f_="undefined",Mr="prototype",d_=Object,BM=d_[Mr];(Xn()||{}).Symbol,(Xn()||{}).Reflect;var dS="hasOwnProperty",VM=function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)BM[dS].call(t,o)&&(e[o]=t[o])}return e},En=Rp||VM,h_=function(e,t){return h_=d_.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i[dS](o)&&(n[o]=i[o])},h_(e,t)};function Ei(e,t){typeof t!==uS&&t!==null&&Ir("Class extends value "+String(t)+" is not a constructor or null"),h_(e,t);function n(){this.constructor=e}e[Mr]=t===null?yi(t):(n[Mr]=t[Mr],new n)}function hS(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e}var pS=FL,FM=UL,no=pS({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),ms="toLowerCase",Ve="length",Cf="warnToConsole",nc="throwInternal",Wo="watch",Zo="apply",ot="push",vs="splice",Ut="logger",Go="cancel",rc="initialize",ro="identifier",Pf="removeNotificationListener",Df="addNotificationListener",Ar="isInitialized",xf="getNotifyMgr",ic="getPlugin",jo="name",Tn="processNext",_S="getProcessTelContext",qo="value",gs="enabled",mS="stopPollingInternalLogs",Ko="unload",Of="onComplete",p_="version",vS="loggingLevelConsole",Xo="createNew",Ti="teardown",If="messageId",Jo="message",bi="diagLog",Rf="_doTeardown",oc="update",Br="getNext",ac="setNextPlugin",__="userAgent",ys="split",Qo="replace",io="type",gS="evtName",Ni="status",YM="indexOf",yS="getAllResponseHeaders",m_="isChildEvt",mr="data",Ss="getCtx",Vr="setCtx",SS="itemsReceived",Lf="headers",sc="urlString",ws="timeout",v_="traceFlags",g_="getAttribute",y_;function $M(e,t){y_||(y_=j0("AggregationError",function(i,o){o[Ve]>1&&(i.errors=o[1])}));var n=e;throw Se(t,function(i,o){n+=`
57
57
  `.concat(o," > ").concat(Te(i))}),new y_(n,t||[])}/*!
58
58
  * NevWare21 Solutions LLC - ts-async, 0.5.4
59
59
  * https://github.com/nevware21/ts-async