PageSourceSearch

https://wam.fi/wp-content/themes/wam-theme/public/build/assets/app-DF8E4eWk.js

js wam.fi collected 2026-10-02 10:02:18 UTC 312,831 bytes, 1 lines download raw bytes

1import{g as ur,$ as U,r as dr}from"./jquery-BZOalPbs.js";import{_ as fr}from"./external-link-icon-DO5bRvuY.js";function pr(){return typeof window.frontendajax<"u"?window.frontendajax:null}async function mr(c){const u=pr();if(!u?.ajaxurl||!u?.nonces?.article_archive_load_more)return;const g=c.closest(".wp-block-sc-article-archive")?.querySelector(".article-archive__grid");if(!g)return;const m=parseInt(c.dataset.page,10)||1,i=parseInt(c.dataset.maxPages,10)||1,s=m+1;if(s>i)return;c.disabled=!0,c.setAttribute("aria-busy","true");const a=new FormData;a.append("action","wam_article_archive_load_more"),a.append("nonce",u.nonces.article_archive_load_more),a.append("page",String(s)),a.append("category",c.dataset.category||"0"),a.append("order_by",c.dataset.orderBy||"date_desc"),u.lang&&a.append("lang",u.lang);try{const p=await(await fetch(u.ajaxurl,{method:"POST",body:a,credentials:"same-origin"})).json(),d=p?.data?.html,_=!!p?.data?.hasMore;if(!p?.success||typeof d!="string"||d===""){c.disabled=!1,c.removeAttribute("aria-busy");return}if(g.insertAdjacentHTML("beforeend",d),c.dataset.page=String(s),!_||s>=i){const y=c.closest(".article-archive__more");y?y.remove():c.remove();return}c.disabled=!1,c.removeAttribute("aria-busy")}catch{c.disabled=!1,c.removeAttribute("aria-busy")}}function rs(){const c=document.querySelectorAll(".article-archive__load-more");c.length&&c.forEach(u=>{u.addEventListener("click",()=>{mr(u)})})}const _r=rs,gr=Object.freeze(Object.defineProperty({__proto__:null,initApp:_r,initArticleArchiveLoadMore:rs},Symbol.toStringTag,{value:"Module"}));var he={exports:{}};var vr=he.exports,Wn;function yr(){return Wn||(Wn=1,(function(c,u){(function(l,g){g(u)})(vr,(function(l){var g="1.9.4";function m(t){var e,n,o,h;for(n=1,o=arguments.length;n<o;n++){h=arguments[n];for(e in h)t[e]=h[e]}return t}var i=Object.create||(function(){function t(){}return function(e){return t.prototype=e,new t}})();function s(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var o=n.call(arguments,2);return function(){return t.apply(e,o.length?o.concat(n.call(arguments)):arguments)}}var a=0;function r(t){return"_leaflet_id"in t||(t._leaflet_id=++a),t._leaflet_id}function p(t,e,n){var o,h,f,v;return v=function(){o=!1,h&&(f.apply(n,h),h=!1)},f=function(){o?h=arguments:(t.apply(n,arguments),setTimeout(v,e),o=!0)},f}function d(t,e,n){var o=e[1],h=e[0],f=o-h;return t===o&&n?t:((t-h)%f+f)%f+h}function _(){return!1}function y(t,e){if(e===!1)return t;var n=Math.pow(10,e===void 0?6:e);return Math.round(t*n)/n}function w(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function b(t){return w(t).split(/\s+/)}function T(t,e){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?i(t.options):{});for(var n in e)t.options[n]=e[n];return t.options}function E(t,e,n){var o=[];for(var h in t)o.push(encodeURIComponent(n?h.toUpperCase():h)+"="+encodeURIComponent(t[h]));return(!e||e.indexOf("?")===-1?"?":"&")+o.join("&")}var M=/\{ *([\w_ -]+) *\}/g;function $(t,e){return t.replace(M,function(n,o){var h=e[o];if(h===void 0)throw new Error("No value provided for variable "+n);return typeof h=="function"&&(h=h(e)),h})}var Z=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function tt(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var G="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function ut(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var Rt=0;function me(t){var e=+new Date,n=Math.max(0,16-(e-Rt));return Rt=e+n,window.setTimeout(t,n)}var Gt=window.requestAnimationFrame||ut("RequestAnimationFrame")||me,zi=window.cancelAnimationFrame||ut("CancelAnimationFrame")||ut("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function it(t,e,n){if(n&&Gt===me)t.call(e);else return Gt.call(window,s(t,e))}function at(t){t&&zi.call(window,t)}var $s={__proto__:null,extend:m,create:i,bind:s,get lastId(){return a},stamp:r,throttle:p,wrapNum:d,falseFn:_,formatNum:y,trim:w,splitWords:b,setOptions:T,getParamString:E,template:$,isArray:Z,indexOf:tt,emptyImageUrl:G,requestFn:Gt,cancelFn:zi,requestAnimFrame:it,cancelAnimFrame:at};function yt(){}yt.extend=function(t){var e=function(){T(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},n=e.__super__=this.prototype,o=i(n);o.constructor=e,e.prototype=o;for(var h in this)Object.prototype.hasOwnProperty.call(this,h)&&h!=="prototype"&&h!=="__super__"&&(e[h]=this[h]);return t.statics&&m(e,t.statics),t.includes&&(Ds(t.includes),m.apply(null,[o].concat(t.includes))),m(o,t),delete o.statics,delete o.includes,o.options&&(o.options=n.options?i(n.options):{},m(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.c
1allInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var f=0,v=o._initHooks.length;f<v;f++)o._initHooks[f].call(this)}},e},yt.include=function(t){var e=this.prototype.options;return m(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},yt.mergeOptions=function(t){return m(this.prototype.options,t),this},yt.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n=typeof t=="function"?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};function Ds(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=Z(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var rt={on:function(t,e,n){if(typeof t=="object")for(var o in t)this._on(o,t[o],e);else{t=b(t);for(var h=0,f=t.length;h<f;h++)this._on(t[h],e,n)}return this},off:function(t,e,n){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var o in t)this._off(o,t[o],e);else{t=b(t);for(var h=arguments.length===1,f=0,v=t.length;f<v;f++)h?this._off(t[f]):this._off(t[f],e,n)}return this},_on:function(t,e,n,o){if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}if(this._listens(t,e,n)===!1){n===this&&(n=void 0);var h={fn:e,ctx:n};o&&(h.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(h)}},_off:function(t,e,n){var o,h,f;if(this._events&&(o=this._events[t],!!o)){if(arguments.length===1){if(this._firingCount)for(h=0,f=o.length;h<f;h++)o[h].fn=_;delete this._events[t];return}if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}var v=this._listens(t,e,n);if(v!==!1){var S=o[v];this._firingCount&&(S.fn=_,this._events[t]=o=o.slice()),o.splice(v,1)}}},fire:function(t,e,n){if(!this.listens(t,n))return this;var o=m({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var h=this._events[t];if(h){this._firingCount=this._firingCount+1||1;for(var f=0,v=h.length;f<v;f++){var S=h[f],k=S.fn;S.once&&this.off(t,k,S.ctx),k.call(S.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,e,n,o){typeof t!="string"&&console.warn('"string" type argument expected');var h=e;typeof e!="function"&&(o=!!e,h=void 0,n=void 0);var f=this._events&&this._events[t];if(f&&f.length&&this._listens(t,h,n)!==!1)return!0;if(o){for(var v in this._eventParents)if(this._eventParents[v].listens(t,e,n,o))return!0}return!1},_listens:function(t,e,n){if(!this._events)return!1;var o=this._events[t]||[];if(!e)return!!o.length;n===this&&(n=void 0);for(var h=0,f=o.length;h<f;h++)if(o[h].fn===e&&o[h].ctx===n)return h;return!1},once:function(t,e,n){if(typeof t=="object")for(var o in t)this._on(o,t[o],e,!0);else{t=b(t);for(var h=0,f=t.length;h<f;h++)this._on(t[h],e,n,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[r(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[r(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,m({layer:t.target,propagatedFrom:t.target},t),!0)}};rt.addEventListener=rt.on,rt.removeEventListener=rt.clearAllEventListeners=rt.off,rt.addOneTimeEventListener=rt.once,rt.fireEvent=rt.fire,rt.hasEventListeners=rt.listens;var Vt=yt.extend(rt);function A(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var Oi=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};A.prototype={clone:function(){return new A(this.x,this.y)},add:function(t){return this.clone()._add(O(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(O(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new A(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new A(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Oi(this.x),this.y=Oi(this.y),this},distanceTo:function(t){t=O(t);var e=t.x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return t=O(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=O(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function O(t,e,n){return t instanceof A?t:Z(t)?new A(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,e,n)}function j(t,e){if(t)for(var n=e?[t,e]:t,o=0,h=n.length;o<h;o++)this.extend(n[o])}j.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof A||typeof t[0]=="number"||"x"in t)e=n=O(t);else if(t=nt(t),e=t.min,n=t.max,!e||!n)return this;return!this.min&&!this.max?(this.min=e.clone(),this.max=n.clone()):(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)),this},getCenter:function(t){return O((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return O(this.min.x,this.max.y)},getTopRight:function(){return O(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return typeof t[0]=="number"||t instanceof A?t=O(t):t=nt(t),t instanceof j?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=nt(t);var e=this.min,n=this.max,o=t.min,h=t.max,f=h.x>=e.x&&o.x<=n.x,v=h.y>=e.y&&o.y<=n.y;return f&&v},overlaps:function(t){t=nt(t);var e=this.min,n=this.max,o=t.min,h=t.max,f=h.x>e.x&&o.x<n.x,v=h.y>e.y&&o.y<n.y;return f&&v},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var e=this.min,n=this.max,o=Math.abs(e.x-n.x)*t,h=Math.abs(e.y-n.y)*t;return nt(O(e.x-o,e.y-h),O(n.x+o,n.y+h))},equals:function(t){return t?(t=nt(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function nt(t,e){return!t||t instanceof j?t:new j(t,e)}function st(t,e){if(t)for(var n=e?[t,e]:t,o=0,h=n.length;o<h;o++)this.extend(n[o])}st.prototype={extend:function(t){var e=this._southWest,n=this._northEast,o,h;if(t instanceof F)o=t,h=t;else if(t instanceof st){if(o=t._southWest,h=t._northEast,!o||!h)return this}else return t?this.extend(D(t)||Y(t)):this;return!e&&!n?(this._southWest=new F(o.lat,o.lng),this._northEast=new F(h.lat,h.lng)):(e.lat=Math.min(o.lat,e.lat),e.lng=Math.min(o.lng,e.lng),n.lat=Math.max(h.lat,n.lat),n.lng=Math.max(h.lng,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,o=Math.abs(e.lat-n.lat)*t,h=Math.abs(e.lng-n.lng)*t;return new st(new F(e.lat-o,e.lng-h),new F(n.lat+o,n.lng+h))},getCenter:function(){return new F((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 F(this.getNorth(),this.getWest())},getSouthEast:function(){return new F(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
1,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){typeof t[0]=="number"||t instanceof F||"lat"in t?t=D(t):t=Y(t);var e=this._southWest,n=this._northEast,o,h;return t instanceof st?(o=t.getSouthWest(),h=t.getNorthEast()):o=h=t,o.lat>=e.lat&&h.lat<=n.lat&&o.lng>=e.lng&&h.lng<=n.lng},intersects:function(t){t=Y(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),h=t.getNorthEast(),f=h.lat>=e.lat&&o.lat<=n.lat,v=h.lng>=e.lng&&o.lng<=n.lng;return f&&v},overlaps:function(t){t=Y(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),h=t.getNorthEast(),f=h.lat>e.lat&&o.lat<n.lat,v=h.lng>e.lng&&o.lng<n.lng;return f&&v},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return t?(t=Y(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function Y(t,e){return t instanceof st?t:new st(t,e)}function F(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,n!==void 0&&(this.alt=+n)}F.prototype={equals:function(t,e){if(!t)return!1;t=D(t);var n=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return n<=(e===void 0?1e-9:e)},toString:function(t){return"LatLng("+y(this.lat,t)+", "+y(this.lng,t)+")"},distanceTo:function(t){return xt.distance(this,D(t))},wrap:function(){return xt.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return Y([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new F(this.lat,this.lng,this.alt)}};function D(t,e,n){return t instanceof F?t:Z(t)&&typeof t[0]!="object"?t.length===3?new F(t[0],t[1],t[2]):t.length===2?new F(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new F(t.lat,"lng"in t?t.lng:t.lon,t.alt):e===void 0?null:new F(t,e,n)}var wt={latLngToPoint:function(t,e){var n=this.projection.project(t),o=this.scale(e);return this.transformation._transform(n,o)},pointToLatLng:function(t,e){var n=this.scale(e),o=this.transformation.untransform(t,n);return this.projection.unproject(o)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t),o=this.transformation.transform(e.min,n),h=this.transformation.transform(e.max,n);return new j(o,h)},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?d(t.lng,this.wrapLng,!0):t.lng,n=this.wrapLat?d(t.lat,this.wrapLat,!0):t.lat,o=t.alt;return new F(n,e,o)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),o=e.lat-n.lat,h=e.lng-n.lng;if(o===0&&h===0)return t;
1var f=t.getSouthWest(),v=t.getNorthEast(),S=new F(f.lat-o,f.lng-h),k=new F(v.lat-o,v.lng-h);return new st(S,k)}},xt=m({},wt,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,o=t.lat*n,h=e.lat*n,f=Math.sin((e.lat-t.lat)*n/2),v=Math.sin((e.lng-t.lng)*n/2),S=f*f+Math.cos(o)*Math.cos(h)*v*v,k=2*Math.atan2(Math.sqrt(S),Math.sqrt(1-S));return this.R*k}}),Ai=6378137,We={R:Ai,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,o=Math.max(Math.min(n,t.lat),-n),h=Math.sin(o*e);return new A(this.R*t.lng*e,this.R*Math.log((1+h)/(1-h))/2)},unproject:function(t){var e=180/Math.PI;return new F((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(function(){var t=Ai*Math.PI;return new j([-t,-t],[t,t])})()};function je(t,e,n,o){if(Z(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=e,this._c=n,this._d=o}je.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new A((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function Yt(t,e,n,o){return new je(t,e,n,o)}var qe=m({},xt,{code:"EPSG:3857",projection:We,transformation:(function(){var t=.5/(Math.PI*We.R);return Yt(t,.5,-t,.5)})()}),Ns=m({},qe,{code:"EPSG:900913"});function Ii(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Bi(t,e){var n="",o,h,f,v,S,k;for(o=0,f=t.length;o<f;o++){for(S=t[o],h=0,v=S.length;h<v;h++)k=S[h],n+=(h?"L":"M")+k.x+" "+k.y;n+=e?P.svg?"z":"x":""}return n||"M0 0"}var Ge=document.documentElement.style,_e="ActiveXObject"in window,Hs=_e&&!document.addEventListener,Ri="msLaunchUri"in navigator&&!("documentMode"in document),Ve=mt("webkit"),Zi=mt("android"),$i=mt("android 2")||mt("android 3"),Fs=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Us=Zi&&mt("Google")&&Fs<537&&!("AudioNode"in window),Ye=!!window.opera,Di=!Ri&&mt("chrome"),Ni=mt("gecko")&&!Ve&&!Ye&&!_e,Ws=!Di&&mt("safari"),Hi=mt("phantom"),Fi="OTransition"in Ge,js=navigator.platform.indexOf("Win")===0,Ui=_e&&"transition"in Ge,Xe="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!$i,Wi="MozPerspective"in Ge,qs=!window.L_DISABLE_3D&&(Ui||Xe||Wi)&&!Fi&&!Hi,Xt=typeof orientation<"u"||mt("mobile"),Gs=Xt&&Ve,Vs=Xt&&Xe,ji=!window.PointerEvent&&window.MSPointerEvent,qi=!!(window.PointerEvent||ji),Gi="ontouchstart"in window||!!window.TouchEvent,Ys=!window.L_NO_TOUCH&&(Gi||qi),Xs=Xt&&Ye,Ks=Xt&&Ni,Js=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Qs=(function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",_,e),window.removeEventListener("testPassiveEventSupport",_,e)}catch{}return t})(),to=(function(){return!!document.createElement("canvas").getContext})(),Ke=!!(document.createElementNS&&Ii("svg").createSVGRect),eo=!!Ke&&(function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),io=!Ke&&(function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&typeof e.adj=="object"}catch{return!1}})(),no=navigator.platform.indexOf("Mac")===0,so=navigator.platform.indexOf("Linux")===0;function mt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var P={ie:_e,ielt9:Hs,edge:Ri,webkit:Ve,android:Zi,android23:$i,androidStock:Us,opera:Ye,chrome:Di,gecko:Ni,safari:Ws,phantom:Hi,opera12:Fi,win:js,ie3d:Ui,webkit3d:Xe,gecko3d:Wi,any3d:qs,mobile:Xt,mobileWebkit:Gs,mobileWebkit3d:Vs,msPointer:ji,pointer:qi,touch:Ys,touchNative:Gi,mobileOpera:Xs,mobileGecko:Ks,retina:Js,passiveEvents:Qs,canvas:to,svg:Ke,vml:io,inlineSvg:eo,mac:no,linux:so},Vi=P.msPointer?"MSPointerDown":"pointerdown",Yi=P.msPointer?"MSPointerMove":"pointermove",Xi=P.msPointer?"MSPointerUp":"pointerup",Ki=P.msPointer?"MSPointerCancel":"pointercancel",Je={touchstart:Vi,touchmove:Yi,touchend:Xi,touchcancel:Ki},Ji={touchstart:co,touchmove:ge,touchend:ge,touchcancel:ge},Zt={},Qi=!1;function oo(t,e,n){return e==="touchstart"&&ho(),Ji[e]?(n=Ji[e].bind(this,n),t.addEventListener(Je[e],n,!1),n):(console.warn("wrong event specified:",e),_)}function ro(t,e,n){if(!Je[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Je[e],n,!1)}function ao(t){Zt[t.pointerId]=t}function lo(t){Zt[t.pointerId]&&(Zt[t.pointerId]=t)}function tn(t){delete Zt[t.pointerId]}function ho(){Qi||(document.addEventListener(Vi,ao,!0),document.addEventListener(Yi,lo,!0),document.addEventListener(Xi,tn,!0),document.addEventListener(Ki,tn,!0),Qi=!0)}function ge(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var n in Zt)e.touches.push(Zt[n]);e.changedTouches=[e],t(e)}}function co(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Q(e),ge(t,e)}function uo(t){var e={},n,o;for(o in t)n=t[o],e[o]=n&&n.bind?n.bind(t):n;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var fo=200;function po(t,e){t.addEventListener("dblclick",e);var n=0,o;function h(f){if(f.detail!==1){o=f.detail;return}if(!(f.pointerType==="mouse"||f.sourceCapabilities&&!f.sourceCapabilities.firesTouchEvents)){var v=rn(f);
1if(!(v.some(function(k){return k instanceof HTMLLabelElement&&k.attributes.for})&&!v.some(function(k){return k instanceof HTMLInputElement||k instanceof HTMLSelectElement}))){var S=Date.now();S-n<=fo?(o++,o===2&&e(uo(f))):o=1,n=S}}}return t.addEventListener("click",h),{dblclick:e,simDblclick:h}}function mo(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var Qe=we(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Kt=we(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),en=Kt==="webkitTransition"||Kt==="OTransition"?Kt+"End":"transitionend";function nn(t){return typeof t=="string"?document.getElementById(t):t}function Jt(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||n==="auto")&&document.defaultView){var o=document.defaultView.getComputedStyle(t,null);n=o?o[e]:null}return n==="auto"?null:n}function H(t,e,n){var o=document.createElement(t);return o.className=e||"",n&&n.appendChild(o),o}function q(t){var e=t.parentNode;e&&e.removeChild(t)}function ve(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function $t(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function Dt(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ti(t,e){if(t.classList!==void 0)return t.classList.contains(e);var n=ye(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function B(t,e){if(t.classList!==void 0)for(var n=b(e),o=0,h=n.length;o<h;o++)t.classList.add(n[o]);else if(!ti(t,e)){var f=ye(t);ei(t,(f?f+" ":"")+e)}}function V(t,e){t.classList!==void 0?t.classList.remove(e):ei(t,w((" "+ye(t)+" ").replace(" "+e+" "," ")))}function ei(t,e){t.className.baseVal===void 0?t.className=e:t.className.baseVal=e}function ye(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function lt(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&_o(t,e)}function _o(t,e){var n=!1,o="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(o)}catch{if(e===1)return}e=Math.round(e*100),n?(n.Enabled=e!==100,n.Opacity=e):t.style.filter+=" progid:"+o+"(opacity="+e+")"}function we(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function Et(t,e,n){var o=e||new A(0,0);t.style[Qe]=(P.ie3d?"translate("+o.x+"px,"+o.y+"px)":"translate3d("+o.x+"px,"+o.y+"px,0)")+(n?" scale("+n+")":"")}function X(t,e){t._leaflet_pos=e,P.any3d?Et(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function zt(t){return t._leaflet_pos||new A(0,0)}var Qt,te,ii;if("onselectstart"in document)Qt=function(){I(window,"selectstart",Q)},te=function(){W(window,"selectstart",Q)};else{var ee=we(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Qt=function(){if(ee){var t=document.documentElement.style;ii=t[ee],t[ee]="none"}},te=function(){ee&&(document.documentElement.style[ee]=ii,ii=void 0)}}function ni(){I(window,"dragstart",Q)}function si(){W(window,"dragstart",Q)}var Le,oi;function ri(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(be(),Le=t,oi=t.style.outlineStyle,t.style.outlineStyle="none",I(window,"keydown",be))}function be(){Le&&(Le.style.outlineStyle=oi,Le=void 0,oi=void 0,W(window,"keydown",be))}function sn(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function ai(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var go={__proto__:null,TRANSFORM:Qe,TRANSITION:Kt,TRANSITION_END:en,get:nn,getStyle:Jt,create:H,remove:q,empty:ve,toFront:$t,toBack:Dt,hasClass:ti,addClass:B,removeClass:V,setClass:ei,getClass:ye,setOpacity:lt,testProp:we,setTransform:Et,setPosition:X,getPosition:zt,get disableTextSelection(){return Qt},get enableTextSelection(){return te},disableImageDrag:ni,enableImageDrag:si,preventOutline:ri,restoreOutline:be,getSizedParentNode:sn,getScale:ai};function I(t,e,n,o){if(e&&typeof e=="object")for(var h in e)hi(t,h,e[h],n);else{e=b(e);for(var f=0,v=e.length;f<v;f++)hi(t,e[f],n,o)}return this}var _t="_leaflet_events";function W(t,e,n,o){if(arguments.length===1)on(t),delete t[_t];else if(e&&typeof e=="object")for(var h in e)ci(t,h,e[h],n);else if(e=b(e),arguments.length===2)on(t,function(S){return tt(e,S)!==-1});else for(var f=0,v=e.length;f<v;f++)ci(t,e[f],n,o);return this}function on(t,e){for(var n in t[_t]){var o=n.split(/\d/)[0];(!e||e(o))&&ci(t,o,null,null,n)}}
1var li={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function hi(t,e,n,o){var h=e+r(n)+(o?"_"+r(o):"");if(t[_t]&&t[_t][h])return this;var f=function(S){return n.call(o||t,S||window.event)},v=f;!P.touchNative&&P.pointer&&e.indexOf("touch")===0?f=oo(t,e,f):P.touch&&e==="dblclick"?f=po(t,f):"addEventListener"in t?e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"?t.addEventListener(li[e]||e,f,P.passiveEvents?{passive:!1}:!1):e==="mouseenter"||e==="mouseleave"?(f=function(S){S=S||window.event,di(t,S)&&v(S)},t.addEventListener(li[e],f,!1)):t.addEventListener(e,v,!1):t.attachEvent("on"+e,f),t[_t]=t[_t]||{},t[_t][h]=f}function ci(t,e,n,o,h){h=h||e+r(n)+(o?"_"+r(o):"");var f=t[_t]&&t[_t][h];if(!f)return this;!P.touchNative&&P.pointer&&e.indexOf("touch")===0?ro(t,e,f):P.touch&&e==="dblclick"?mo(t,f):"removeEventListener"in t?t.removeEventListener(li[e]||e,f,!1):t.detachEvent("on"+e,f),t[_t][h]=null}function Ot(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function ui(t){return hi(t,"wheel",Ot),this}function ie(t){return I(t,"mousedown touchstart dblclick contextmenu",Ot),t._leaflet_disable_click=!0,this}function Q(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function At(t){return Q(t),Ot(t),this}function rn(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function an(t,e){if(!e)return new A(t.clientX,t.clientY);var n=ai(e),o=n.boundingClientRect;return new A((t.clientX-o.left)/n.x-e.clientLeft,(t.clientY-o.top)/n.y-e.clientTop)}var vo=P.linux&&P.chrome?window.devicePixelRatio:P.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function ln(t){return P.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/vo:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function di(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch{return!1}return n!==t}var yo={__proto__:null,on:I,off:W,stopPropagation:Ot,disableScrollPropagation:ui,disableClickPropagation:ie,preventDefault:Q,stop:At,getPropagationPath:rn,getMousePosition:an,getWheelDelta:ln,isExternalTarget:di,addListener:I,removeListener:W},hn=Vt.extend({run:function(t,e,n,o){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=zt(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=it(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=this._duration*1e3;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),X(this._el,n),this.fire("step")},_complete:function(){at(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),N=Vt.extend({options:{crs:qe,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=T(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.zoom!==void 0&&(this._zoom=this._limitZoom(e.zoom)),e.center&&e.zoom!==void 0&&this.setView(D(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Kt&&P.any3d&&!P.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),I(this._proxy,en,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
1,setView:function(t,e,n){if(e=e===void 0?this._zoom:this._limitZoom(e),t=this._limitCenter(D(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&n!==!0){n.animate!==void 0&&(n.zoom=m({animate:n.animate},n.zoom),n.pan=m({animate:n.animate,duration:n.duration},n.pan));var o=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(o)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e,n.pan&&n.pan.noMoveStart),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(P.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(P.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var o=this.getZoomScale(e),h=this.getSize().divideBy(2),f=t instanceof A?t:this.latLngToContainerPoint(t),v=f.subtract(h).multiplyBy(1-1/o),S=this.containerPointToLatLng(h.add(v));return this.setView(S,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():Y(t);var n=O(e.paddingTopLeft||e.padding||[0,0]),o=O(e.paddingBottomRight||e.padding||[0,0]),h=this.getBoundsZoom(t,!1,n.add(o));if(h=typeof e.maxZoom=="number"?Math.min(e.maxZoom,h):h,h===1/0)return{center:t.getCenter(),zoom:h};
1var f=o.subtract(n).divideBy(2),v=this.project(t.getSouthWest(),h),S=this.project(t.getNorthEast(),h),k=this.unproject(v.add(S).divideBy(2).add(f),h);return{center:k,zoom:h}},fitBounds:function(t,e){if(t=Y(t),!t.isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(t=O(t).round(),e=e||{},!t.x&&!t.y)return this.fire("moveend");if(e.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new hn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){B(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(n=n||{},n.animate===!1||!P.any3d)return this.setView(t,e,n);this._stop();var o=this.project(this.getCenter()),h=this.project(t),f=this.getSize(),v=this._zoom;t=D(t),e=e===void 0?v:e;var S=Math.max(f.x,f.y),k=S*this.getZoomScale(v,e),x=h.distanceTo(o)||1,C=1.42,z=C*C;function R(K){var Ie=K?-1:1,ar=K?k:S,lr=k*k-S*S+Ie*z*z*x*x,hr=2*ar*z*x,Si=lr/hr,Un=Math.sqrt(Si*Si+1)-Si,cr=Un<1e-9?-18:Math.log(Un);return cr}function et(K){return(Math.exp(K)-Math.exp(-K))/2}function J(K){return(Math.exp(K)+Math.exp(-K))/2}function ct(K){return et(K)/J(K)}var ot=R(0);function jt(K){return S*(J(ot)/J(ot+C*K))}function nr(K){return S*(J(ot)*ct(ot+C*K)-et(ot))/z}function sr(K){return 1-Math.pow(1-K,1.5)}var or=Date.now(),Hn=(R(1)-ot)/C,rr=n.duration?1e3*n.duration:1e3*Hn*.8;function Fn(){var K=(Date.now()-or)/rr,Ie=sr(K)*Hn;K<=1?(this._flyToFrame=it(Fn,this),this._move(this.unproject(o.add(h.subtract(o).multiplyBy(nr(Ie)/x)),v),this.getScaleZoom(S/jt(Ie),v),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),Fn.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=Y(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),o=this._limitCenter(n,this._zoom,Y(t));return n.equals(o)||this.panTo(o,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var n=O(e.paddingTopLeft||e.padding||[0,0]),o=O(e.paddingBottomRight||e.padding||[0,0]),h=this.project(this.getCenter()),f=this.project(t),v=this.getPixelBounds(),S=nt([v.min.add(n),v.max.subtract(o)]),k=S.getSize();if(!S.contains(f)){this._enforcingBounds=!0;var x=f.subtract(S.getCenter()),C=S.extend(f).getSize().subtract(k);h.x+=x.x<0?-C.x:C.x,h.y+=x.y<0?-C.y:C.y,this.panTo(this.unproject(h),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=m({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),o=e.divideBy(2).round(),h=n.divideBy(2).round(),f=o.subtract(h);return!f.x&&!f.y?this:(t.animate&&t.pan?this.panBy(f):(t.pan&&this._rawPanBy(f),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=m({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=s(this._handleGeolocationResponse,this),n=s(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,n=t.coords.longitude,o=new F(e,n),h=o.toBounds(t.coords.accuracy*2),f=this._locateOptions;if(f.setView){var v=this.getBoundsZoom(h);this.setView(o,f.maxZoom?Math.min(v,f.maxZoom):v)}var S={latlng:o,bounds:h,timestamp:t.timestamp};for(var k in t.coords)typeof t.coords[k]=="number"&&(S[k]=t.coords[k]);this.fire("locationfound",S)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),q(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(at(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)q(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),o=H("div",n,e||this._mapPane);return t&&(this._panes[t]=o),o},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),n=this.unproject(t.getTopRight());return new st(e,n)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZo
1om===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=Y(t),n=O(n||[0,0]);var o=this.getZoom()||0,h=this.getMinZoom(),f=this.getMaxZoom(),v=t.getNorthWest(),S=t.getSouthEast(),k=this.getSize().subtract(n),x=nt(this.project(S,o),this.project(v,o)).getSize(),C=P.any3d?this.options.zoomSnap:1,z=k.x/x.x,R=k.y/x.y,et=e?Math.max(z,R):Math.min(z,R);return o=this.getScaleZoom(et,o),C&&(o=Math.round(o/(C/100))*(C/100),o=e?Math.ceil(o/C)*C:Math.floor(o/C)*C),Math.max(h,Math.min(f,o))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new j(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=e===void 0?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=e===void 0?this._zoom:e;var o=n.zoom(t*n.scale(e));return isNaN(o)?1/0:o},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(D(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(O(t),e)},layerPointToLatLng:function(t){var e=O(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(D(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(D(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(Y(t))},distance:function(t,e){return this.options.crs.distance(D(t),D(e))},containerPointToLayerPoint:function(t){return O(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return O(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(O(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(D(t)))},mouseEventToContainerPoint:function(t){return an(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=nn(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");I(e,"scroll",this._onScroll,this),this._containerId=r(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&P.any3d,B(t,"leaflet-container"+(P.touch?" leaflet-touch":"")+(P.retina?" leaflet-retina":"")+(P.ielt9?" leaflet-oldie":"")+(P.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=Jt(t,"position");e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),X(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(B(t.markerPane,"leaflet-zoom-hide"),B(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){X(this._mapPane,new A(0,0));var o=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var h=this._zoom!==e;this._moveStart(h,n)._move(t,e)._moveEnd(h),this.fire("viewreset"),o&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,o){e===void 0&&(e=this._zoom);var h=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),o?n&&n.pinch&&this.fire("zoom",n):((h||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return at(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){X(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[r(this._container)]=this;var e=t?W:I;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),P.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){at(this._resizeRequest),this._resizeRequest=it(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n=[],o,h=e==="mouseout"||e==="mouseover",f=t.target||t.srcElement,v=!1;f;){if(o=this._targets[r(f)],o&&(e==="click"||e==="preclick")&&this._draggableMoved(o)){v=!0;break}if(o&&o.listens(e,!0)&&(h&&!di(f,t)||(n.push(o),h))||f===this._container)break;f=f.parentNode}return!n.length&&!v&&!h&&this.listens(e,!0)&&(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isCl
1ickDisabled(e))){var n=t.type;n==="mousedown"&&ri(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if(t.type==="click"){var o=m({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}var h=this._findEventTargets(t,e);if(n){for(var f=[],v=0;v<n.length;v++)n[v].listens(e,!0)&&f.push(n[v]);h=f.concat(h)}if(h.length){e==="contextmenu"&&Q(t);var S=h[0],k={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var x=S.getLatLng&&(!S._radius||S._radius<=10);k.containerPoint=x?this.latLngToContainerPoint(S.getLatLng()):this.mouseEventToContainerPoint(t),k.layerPoint=this.containerPointToLayerPoint(k.containerPoint),k.latlng=x?S.getLatLng():this.layerPointToLatLng(k.layerPoint)}for(v=0;v<h.length;v++)if(h[v].fire(e,k,!0),k.originalEvent._stopped||h[v].options.bubblingMouseEvents===!1&&tt(this._mouseEvents,e)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return zt(this._mapPane)||new A(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var n=t&&e!==void 0?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return n.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var o=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(o)},_latLngBoundsToNewLayerBounds:function(t,e,n){var o=this._getNewPixelOrigin(n,e);
1return nt([this.project(t.getSouthWest(),e)._subtract(o),this.project(t.getNorthWest(),e)._subtract(o),this.project(t.getSouthEast(),e)._subtract(o),this.project(t.getNorthEast(),e)._subtract(o)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var o=this.project(t,e),h=this.getSize().divideBy(2),f=new j(o.subtract(h),o.add(h)),v=this._getBoundsOffset(f,n,e);return Math.abs(v.x)<=1&&Math.abs(v.y)<=1?t:this.unproject(o.add(v),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),o=new j(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(o,e))},_getBoundsOffset:function(t,e,n){var o=nt(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),h=o.min.subtract(t.min),f=o.max.subtract(t.max),v=this._rebound(h.x,-f.x),S=this._rebound(h.y,-f.y);return new A(v,S)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),o=P.any3d?this.options.zoomSnap:1;return o&&(t=Math.round(t/o)*o),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){V(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(n)?!1:(this.panBy(n,e),!0)},_createAnimProxy:function(){var t=this._proxy=H("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var n=Qe,o=this._proxy.style[n];Et(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),o===this._proxy.style[n]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){q(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Et(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||n.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(e),h=this._getCenterOffset(t)._divideBy(1-1/o);return n.animate!==!0&&!this.getSize().contains(h)?!1:(it(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,B(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&V(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 wo(t,e){return new N(t,e)}var dt=yt.extend({options:{position:"topright"},initialize:function(t){T(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),o=t._controlCorners[n];return B(e,"leaflet-control"),n.indexOf("bottom")!==-1?o.insertBefore(e,o.firstChild):o.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(q(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ne=function(t){return new dt(t)};N.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this}
vendor: 8,683 bytes, line 1
1,_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=H("div",e+"control-container",this._container);function o(h,f){var v=e+h+" "+e+f;t[h+f]=H("div",v,n)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)q(this._controlCorners[t]);q(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var cn=dt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,o){return n<o?-1:o<n?1:0}},initialize:function(t,e,n){T(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var o in t)this._addLayer(t[o],o);for(o in e)this._addLayer(e[o],o,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return dt.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(r(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){B(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(B(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):V(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return V(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=H("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),ie(e),ui(e);var o=this._section=H("section",t+"-list");n&&(this._map.on("click",this.collapse,this),I(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var h=this._layersLink=H("a",t+"-toggle",e);h.href="#",h.title="Layers",h.setAttribute("role","button"),I(h,{keydown:function(f){f.keyCode===13&&this._expandSafely()},click:function(f){Q(f),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=H("div",t+"-base",o),this._separator=H("div",t+"-separator",o),this._overlaysList=H("div",t+"-overlays",o),e.appendChild(o)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&r(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(s(function(o,h){return this.options.sortFunction(o.layer,h.layer,o.name,h.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ve(this._baseLayersList),ve(this._overlaysList),this._layerControlInputs=[];var t,e,n,o,h=0;for(n=0;n<this._layers.length;n++)o=this._layers[n],this._addItem(o),e=e||o.overlay,t=t||!o.overlay,h+=o.overlay?0:1;return this.options.hideSingleBase&&(t=t&&h>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(r(t.target)),n=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",o=document.createElement("div");return o.innerHTML=n,o.firstChild},_addItem:function(t){var e=document.createElement("label"),n=this._map.hasLayer(t.layer),o;t.overlay?(o=document.createElement("input"),o.type="checkbox",o.className="leaflet-control-layers-selector",o.defaultChecked=n):o=this._createRadioElement("leaflet-base-layers_"+r(this),n),this._layerControlInputs.push(o),o.layerId=r(t.layer),I(o,"click",this._onInputClick,this);var h=document.createElement("span");h.innerHTML=" "+t.name;var f=document.createElement("span");e.appendChild(f),f.appendChild(o),f.appendChild(h);var v=t.overlay?this._overlaysList:this._baseLayersList;return v.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,n,o=[],h=[];this._handlingClick=!0;for(var f=t.length-1;f>=0;f--)e=t[f],n=this._getLayer(e.layerId).layer,e.checked?o.push(n):e.checked||h.push(n);for(f=0;f<h.length;f++)this._map.hasLayer(h[f])&&this._map.removeLayer(h[f]);for(f=0;f<o.length;f++)this._map.hasLayer(o[f])||this._map.addLayer(o[f]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,e,n,o=this._map.getZoom(),h=t.length-1;h>=0;h--)e=t[h],n=this._getLayer(e.layerId).layer,e.disabled=n.options.minZoom!==void 0&&o<n.options.minZoom||n.options.maxZoom!==void 0&&o>n.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,I(t,"click",Q),this.expand();var e=this;setTimeout(function(){W(t,"click",Q),e._preventClick=!1})}}),Lo=function(t,e,n){return new cn(t,e,n)},fi=dt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=H("div",e+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,o,h){var f=H("a",n,o);return f.innerHTML=t,f.href="#",f.title=e,f.setAttribute("role","button"),f.setAttribute("aria-label",e),ie(f),I(f,"click",At),I(f,"click",h,this),I(f,"click",this._refocusOnMap,this),f},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";V(this._zoomInButton,e),V(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(B(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(B(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});N.mergeOptions({zoomControl:!0}),N.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new fi,this.addControl(this.zoomControl))});var bo=function(t){return new fi(t)},un=dt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=H("div",e),o=this.options;return this._addScales(o,e+"-line",n),t.on(o.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=H("div",e,n)),t.imperial&&(this._iScale=H("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)}
1,_updateImperial:function(t){var e=t*3.2808399,n,o,h;e>5280?(n=e/5280,o=this._getRoundNum(n),this._updateScale(this._iScale,o+" mi",o/n)):(h=this._getRoundNum(e),this._updateScale(this._iScale,h+" ft",h/e))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,e*n}}),So=function(t){return new un(t)},ko='<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>',pi=dt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(P.inlineSvg?ko+" ":"")+"Leaflet</a>"},initialize:function(t){T(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=H("div","leaflet-control-attribution"),ie(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});N.mergeOptions({attributionControl:!0}),N.addInitHook(function(){this.options.attributionControl&&new pi().addTo(this)});var To=function(t){return new pi(t)};dt.Layers=cn,dt.Zoom=fi,dt.Scale=un,dt.Attribution=pi,ne.layers=Lo,ne.zoom=bo,ne.scale=So,ne.attribution=To;var gt=yt.extend({initialize:function(t){this._map=t},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}});gt.addTo=function(t,e){return t.addHandler(e,this),this};var xo={Events:rt},dn=P.touch?"touchstart mousedown":"mousedown",Ct=Vt.extend({options:{clickTolerance:3},initialize:function(t,e,n,o){T(this,o),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(I(this._dragStartTarget,dn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ct._dragging===this&&this.finishDrag(!0),W(this._dragStartTarget,dn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ti(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){Ct._dragging===this&&this.finishDrag();return}if(!(Ct._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(Ct._dragging=this,this._preventOutline&&ri(this._element),ni(),Qt(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,n=sn(this._element);this._startPoint=new A(e.clientX,e.clientY),this._startPos=zt(this._element),this._parentScale=ai(n);var o=t.type==="mousedown";I(document,o?"mousemove":"touchmove",this._onMove,this),I(document,o?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,n=new A(e.clientX,e.clientY)._subtract(this._startPoint);!n.x&&!n.y||Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Q(t),this._moved||(this.fire("dragstart"),this._moved=!0,B(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),B(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),X(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){V(document.body,"leaflet-dragging"),this._lastTarget&&(V(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),W(document,"mousemove touchmove",this._onMove,this),W(document,"mouseup touchend touchcancel",this._onUp,this),si(),te();var e=this._moved&&this._moving;this._moving=!1,Ct._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function fn(t,e,n){var o,h=[1,4,2,8],f,v,S,k,x,C,z,R;for(f=0,C=t.length;f<C;f++)t[f]._code=It(t[f],e);for(S=0;S<4;S++){for(z=h[S],o=[],f=0,C=t.length,v=C-1;f<C;v=f++)k=t[f],x=t[v],k._code&z?x._code&z||(R=Se(x,k,z,e,n),R._code=It(R,e),o.push(R)):(x._code&z&&(R=Se(x,k,z,e,n),R._code=It(R,e),o.push(R)),o.push(k));t=o}return t}function pn(t,e){var n,o,h,f,v,S,k,x,C;if(!t||t.length===0)throw new Error("latlngs not passed");ht(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var z=D([0,0]),R=Y(t),et=R.getNorthWest().distanceTo(R.getSouthWest
1())*R.getNorthEast().distanceTo(R.getNorthWest());et<1700&&(z=mi(t));var J=t.length,ct=[];for(n=0;n<J;n++){var ot=D(t[n]);ct.push(e.project(D([ot.lat-z.lat,ot.lng-z.lng])))}for(S=k=x=0,n=0,o=J-1;n<J;o=n++)h=ct[n],f=ct[o],v=h.y*f.x-f.y*h.x,k+=(h.x+f.x)*v,x+=(h.y+f.y)*v,S+=v*3;S===0?C=ct[0]:C=[k/S,x/S];var jt=e.unproject(O(C));return D([jt.lat+z.lat,jt.lng+z.lng])}function mi(t){for(var e=0,n=0,o=0,h=0;h<t.length;h++){var f=D(t[h]);e+=f.lat,n+=f.lng,o++}return D([e/o,n/o])}var Co={__proto__:null,clipPolygon:fn,polygonCenter:pn,centroid:mi};function mn(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=Eo(t,n),t=Mo(t,n),t}function _n(t,e,n){return Math.sqrt(se(t,e,n,!0))}function Po(t,e,n){return se(t,e,n)}function Mo(t,e){var n=t.length,o=typeof Uint8Array<"u"?Uint8Array:Array,h=new o(n);h[0]=h[n-1]=1,_i(t,h,e,0,n-1);var f,v=[];for(f=0;f<n;f++)h[f]&&v.push(t[f]);return v}function _i(t,e,n,o,h){var f=0,v,S,k;for(S=o+1;S<=h-1;S++)k=se(t[S],t[o],t[h],!0),k>f&&(v=S,f=k);f>n&&(e[v]=1,_i(t,e,n,o,v),_i(t,e,n,v,h))}function Eo(t,e){for(var n=[t[0]],o=1,h=0,f=t.length;o<f;o++)zo(t[o],t[h])>e&&(n.push(t[o]),h=o);return h<f-1&&n.push(t[f-1]),n}var gn;function vn(t,e,n,o,h){var f=o?gn:It(t,n),v=It(e,n),S,k,x;for(gn=v;;){if(!(f|v))return[t,e];if(f&v)return!1;S=f||v,k=Se(t,e,S,n,h),x=It(k,n),S===f?(t=k,f=x):(e=k,v=x)}}function Se(t,e,n,o,h){var f=e.x-t.x,v=e.y-t.y,S=o.min,k=o.max,x,C;return n&8?(x=t.x+f*(k.y-t.y)/v,C=k.y):n&4?(x=t.x+f*(S.y-t.y)/v,C=S.y):n&2?(x=k.x,C=t.y+v*(k.x-t.x)/f):n&1&&(x=S.x,C=t.y+v*(S.x-t.x)/f),new A(x,C,h)}function It(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function zo(t,e){var n=e.x-t.x,o=e.y-t.y;return n*n+o*o}function se(t,e,n,o){var h=e.x,f=e.y,v=n.x-h,S=n.y-f,k=v*v+S*S,x;return k>0&&(x=((t.x-h)*v+(t.y-f)*S)/k,x>1?(h=n.x,f=n.y):x>0&&(h+=v*x,f+=S*x)),v=t.x-h,S=t.y-f,o?v*v+S*S:new A(h,f)}function ht(t){return!Z(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function yn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),ht(t)}function wn(t,e){var n,o,h,f,v,S,k,x;if(!t||t.length===0)throw new Error("latlngs not passed");ht(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var C=D([0,0]),z=Y(t),R=z.getNorthWest().distanceTo(z.getSouthWest
1())*z.getNorthEast().distanceTo(z.getNorthWest());R<1700&&(C=mi(t));var et=t.length,J=[];for(n=0;n<et;n++){var ct=D(t[n]);J.push(e.project(D([ct.lat-C.lat,ct.lng-C.lng])))}for(n=0,o=0;n<et-1;n++)o+=J[n].distanceTo(J[n+1])/2;if(o===0)x=J[0];else for(n=0,f=0;n<et-1;n++)if(v=J[n],S=J[n+1],h=v.distanceTo(S),f+=h,f>o){k=(f-o)/h,x=[S.x-k*(S.x-v.x),S.y-k*(S.y-v.y)];break}var ot=e.unproject(O(x));return D([ot.lat+C.lat,ot.lng+C.lng])}var Oo={__proto__:null,simplify:mn,pointToSegmentDistance:_n,closestPointOnSegment:Po,clipSegment:vn,_getEdgeIntersection:Se,_getBitCode:It,_sqClosestPointOnSegment:se,isFlat:ht,_flat:yn,polylineCenter:wn},gi={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new F(t.y,t.x)},bounds:new j([-180,-90],[180,90])},vi={R:6378137,R_MINOR:6356752314245179e-9,bounds:new j([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,n=this.R,o=t.lat*e,h=this.R_MINOR/n,f=Math.sqrt(1-h*h),v=f*Math.sin(o),S=Math.tan(Math.PI/4-o/2)/Math.pow((1-v)/(1+v),f/2);return o=-n*Math.log(Math.max(S,1e-10)),new A(t.lng*e*n,o)},unproject:function(t){for(var e=180/Math.PI,n=this.R,o=this.R_MINOR/n,h=Math.sqrt(1-o*o),f=Math.exp(-t.y/n),v=Math.PI/2-2*Math.atan(f),S=0,k=.1,x;S<15&&Math.abs(k)>1e-7;S++)x=h*Math.sin(v),x=Math.pow((1-x)/(1+x),h/2),k=Math.PI/2-2*Math.atan(f*x)-v,v+=k;return new F(v*e,t.x*e/n)}},Ao={__proto__:null,LonLat:gi,Mercator:vi,SphericalMercator:We},Io=m({},xt,{code:"EPSG:3395",projection:vi,transformation:(function(){var t=.5/(Math.PI*vi.R);return Yt(t,.5,-t,.5)})()}),Ln=m({},xt,{code:"EPSG:4326",projection:gi,transformation:Yt(1/180,1,-1/180,.5)}),Bo=m({},wt,{projection:gi,transformation:Yt(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,o=e.lat-t.lat;return Math.sqrt(n*n+o*o)},infinite:!0});wt.Earth=xt,wt.EPSG3395=Io,wt.EPSG3857=qe,wt.EPSG900913=Ns,wt.EPSG4326=Ln,wt.Simple=Bo;var ft=Vt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});N.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=r(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=r(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return r(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){t=t?Z(t)?t:[t]:[];for(var e=0,n=t.length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[r(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=r(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var o in this._zoomBoundLayers){var h=this._zoomBoundLayers[o].options;t=h.minZoom===void 0?t:Math.min(t,h.minZoom),e=h.maxZoom===void 0?e:Math.max(e,h.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
vendor: 11,388 bytes, line 1
1om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Nt=ft.extend({initialize:function(t,e){T(this,e),this._layers={};var n,o;if(t)for(n=0,o=t.length;n<o;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){var e=typeof t=="number"?t:this.getLayerId(t);return e in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e=Array.prototype.slice.call(arguments,1),n,o;for(n in this._layers)o=this._layers[n],o[t]&&o[t].apply(o,e);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return r(t)}}),Ro=function(t,e){return new Nt(t,e)},Lt=Nt.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Nt.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Nt.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new st;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Zo=function(t,e){return new Lt(t,e)},Ht=yt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){T(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var o=this._createImg(n,e&&e.tagName==="IMG"?e:null);return this._setIconStyles(o,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),o},_setIconStyles:function(t,e){var n=this.options,o=n[e+"Size"];typeof o=="number"&&(o=[o,o]);var h=O(o),f=O(e==="shadow"&&n.shadowAnchor||n.iconAnchor||h&&h.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),f&&(t.style.marginLeft=-f.x+"px",t.style.marginTop=-f.y+"px"),h&&(t.style.width=h.x+"px",t.style.height=h.y+"px")},_createImg:function(t,e){return e=e||document.createElement("img"),e.src=t,e},_getIconUrl:function(t){return P.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function $o(t){return new Ht(t)}var oe=Ht.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return typeof oe.imagePath!="string"&&(oe.imagePath=this._detectIconPath()),(this.options.imagePath||oe.imagePath)+Ht.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(n,o,h){var f=o.exec(n);return f&&f[h]};return t=e(t,/^url\((['"])?(.+)\1\)$/,2),t&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=H("div","leaflet-default-icon-path",document.body),e=Jt(t,"background-image")||Jt(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e),e)return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),bn=gt.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Ct(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),B(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&V(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,o=this._marker.options.autoPanSpeed,h=this._marker.options.autoPanPadding,f=zt(e._icon),v=n.getPixelBounds(),S=n.getPixelOrigin(),k=nt(v.min._subtract(S).add(h),v.max._subtract(S).subtract(h));if(!k.contains(f)){var x=O((Math.max(k.max.x,f.x)-k.max.x)/(v.max.x-k.max.x)-(Math.min(k.min.x,f.x)-k.min.x)/(v.min.x-k.min.x),(Math.max(k.max.y,f.y)-k.max.y)/(v.max.y-k.max.y)-(Math.min(k.min.y,f.y)-k.min.y)/(v.min.y-k.min.y)).multiplyBy(o);n.panBy(x,{animate:!1}),this._draggable._newPos._add(x),this._draggable._startPos._add(x),X(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=it(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(at(this._panRequest),this._panRequest=it(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,o=zt(e._icon),h=e._map.layerPointToLatLng(o);n&&X(n,o),e._latlng=h,t.latlng=h,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){at(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),ke=ft.extend({options:{icon:new oe,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){T(this,e),this._latlng=D(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=D(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),o=!1;n!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(n.title=t.title),n.tagName==="IMG"&&(n.alt=t.alt||"")),B(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&I(n,"focus",this._panOnFocus,this);var h=t.icon.createShadow(this._shadow),f=!1;h!==this._shadow&&(this._removeShadow(),f=!0),h&&(B(h,e),h.alt=""),this._shadow=h,t.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),h&&f&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&W(this._icon,"focus",this._panOnFocus,this),q(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&q(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&X(this._icon,t),this._shadow&&X(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(B(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),bn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new bn(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&lt(this._icon,t),this._shadow&&lt(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?O(e.iconSize):O(0,0),o=e.iconAnchor?O(e.iconAnchor):O(0,0);t.panInside(this._latlng,{paddingTopLeft:o,paddingBottomRight:n.subtract(o)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Do(t,e){return new ke(t,e)}var Pt=ft.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return T(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Te=Pt.extend({options:{fill:!0,radius:10},initialize:function(t,e){T(this,e),this._latlng=D(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=D(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius}
1,setStyle:function(t){var e=t&&t.radius||this._radius;return Pt.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),o=[t+n,e+n];this._pxBounds=new j(this._point.subtract(o),this._point.add(o))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function No(t,e){return new Te(t,e)}var yi=Te.extend({initialize:function(t,e,n){if(typeof e=="number"&&(e=m({},n,{radius:e})),T(this,e),this._latlng=D(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new st(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Pt.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,o=n.options.crs;if(o.distance===xt.distance){var h=Math.PI/180,f=this._mRadius/xt.R/h,v=n.project([e+f,t]),S=n.project([e-f,t]),k=v.add(S).divideBy(2),x=n.unproject(k).lat,C=Math.acos((Math.cos(f*h)-Math.sin(e*h)*Math.sin(x*h))/(Math.cos(e*h)*Math.cos(x*h)))/h;(isNaN(C)||C===0)&&(C=f/Math.cos(Math.PI/180*e)),this._point=k.subtract(n.getPixelOrigin()),this._radius=isNaN(C)?0:k.x-n.project([x,t-C]).x,this._radiusY=k.y-v.y}else{var z=o.unproject(o.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(z).x}this._updateBounds()}});function Ho(t,e,n){return new yi(t,e,n)}var bt=Pt.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){T(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e=1/0,n=null,o=se,h,f,v=0,S=this._parts.length;v<S;v++)for(var k=this._parts[v],x=1,C=k.length;x<C;x++){h=k[x-1],f=k[x];var z=o(t,h,f,!0);z<e&&(e=z,n=o(t,h,f))}return n&&(n.distance=Math.sqrt(e)),n}
1,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return wn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=D(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new st,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return ht(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=ht(t),o=0,h=t.length;o<h;o++)n?(e[o]=D(t[o]),this._bounds.extend(e[o])):e[o]=this._convertLatLngs(t[o]);return e},_project:function(){var t=new j;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new A(t,t);this._rawPxBounds&&(this._pxBounds=new j([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var o=t[0]instanceof F,h=t.length,f,v;if(o){for(v=[],f=0;f<h;f++)v[f]=this._map.latLngToLayerPoint(t[f]),n.extend(v[f]);e.push(v)}else for(f=0;f<h;f++)this._projectLatlngs(t[f],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var e=this._parts,n,o,h,f,v,S,k;for(n=0,h=0,f=this._rings.length;n<f;n++)for(k=this._rings[n],o=0,v=k.length;o<v-1;o++)S=vn(k[o],k[o+1],t,o,!0),S&&(e[h]=e[h]||[],e[h].push(S[0]),(S[1]!==k[o+1]||o===v-2)&&(e[h].push(S[1]),h++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,o=t.length;n<o;n++)t[n]=mn(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,o,h,f,v,S,k=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,f=this._parts.length;n<f;n++)for(S=this._parts[n],o=0,v=S.length,h=v-1;o<v;h=o++)if(!(!e&&o===0)&&_n(t,S[h],S[o])<=k)return!0;return!1}});function Fo(t,e){return new bt(t,e)}bt._flat=yn;var Ft=bt.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
1,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return pn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=bt.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof F&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){bt.prototype._setLatLngs.call(this,t),ht(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return ht(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new A(e,e);if(t=new j(t.min.subtract(n),t.max.add(n)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var o=0,h=this._rings.length,f;o<h;o++)f=fn(this._rings[o],t,!0),f.length&&this._parts.push(f)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e=!1,n,o,h,f,v,S,k,x;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(f=0,k=this._parts.length;f<k;f++)for(n=this._parts[f],v=0,x=n.length,S=x-1;v<x;S=v++)o=n[v],h=n[S],o.y>t.y!=h.y>t.y&&t.x<(h.x-o.x)*(t.y-o.y)/(h.y-o.y)+o.x&&(e=!e);return e||bt.prototype._containsPoint.call(this,t,!0)}});function Uo(t,e){return new Ft(t,e)}var St=Lt.extend({initialize:function(t,e){T(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=Z(t)?t:t.features,n,o,h;if(e){for(n=0,o=e.length;n<o;n++)h=e[n],(h.geometries||h.geometry||h.features||h.coordinates)&&this.addData(h);return this}var f=this.options;if(f.filter&&!f.filter(t))return this;var v=xe(t,f);return v?(v.feature=Me(t),v.defaultOptions=v.options,this.resetStyle(v),f.onEachFeature&&f.onEachFeature(t,v),this.addLayer(v)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=m({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&(typeof e=="function"&&(e=e(t.feature)),t.setStyle(e))}});function xe(t,e){var n=t.type==="Feature"?t.geometry:t,o=n?n.coordinates:null,h=[],f=e&&e.pointToLayer,v=e&&e.coordsToLatLng||wi,S,k,x,C;if(!o&&!n)return null;switch(n.type){case"Point":return S=v(o),Sn(f,t,S,e);case"MultiPoint":for(x=0,C=o.length;x<C;x++)S=v(o[x]),h.push(Sn(f,t,S,e));return new Lt(h);case"LineString":case"MultiLineString":return k=Ce(o,n.type==="LineString"?0:1,v),new bt(k,e);case"Polygon":case"MultiPolygon":return k=Ce(o,n.type==="Polygon"?1:2,v),new Ft(k,e);case"GeometryCollection":for(x=0,C=n.geometries.length;x<C;x++){var z=xe({geometry:n.geometries[x],type:"Feature",properties:t.properties},e);z&&h.push(z)}return new Lt(h);case"FeatureCollection":for(x=0,C=n.features.length;x<C;x++){var R=xe(n.features[x],e);R&&h.push(R)}return new Lt(h);default:throw new Error("Invalid GeoJSON object.")}}function Sn(t,e,n,o){return t?t(e,n):new ke(n,o&&o.markersInheritOptions&&o)}function wi(t){return new F(t[1],t[0],t[2])}function Ce(t,e,n){for(var o=[],h=0,f=t.length,v;h<f;h++)v=e?Ce(t[h],e-1,n):(n||wi)(t[h]),o.push(v);return o}function Li(t,e){return t=D(t),t.alt!==void 0?[y(t.lng,e),y(t.lat,e),y(t.alt,e)]:[y(t.lng,e),y(t.lat,e)]}function Pe(t,e,n,o){for(var h=[],f=0,v=t.length;f<v;f++)h.push(e?Pe(t[f],ht(t[f])?0:e-1,n,o):Li(t[f],o));return!e&&n&&h.length>0&&h.push(h[0].slice()),h}function Ut(t,e){return t.feature?m({},t.feature,{geometry:e}):Me(e)}function Me(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var bi={toGeoJSON:function(t){return Ut(this,{type:"Point",coordinates:Li(this.getLatLng(),t)})}};ke.include(bi),yi.include(bi),Te.include(bi),bt.include({toGeoJSON:function(t){var e=!ht(this._latlngs),n=Pe(this._latlngs,e?1:0,!1,t);return Ut(this,{type:(e?"Multi":"")+"LineString",coordinates:n})}}),Ft.include({toGeoJSON:function(t){var e=!ht(this._latlngs),n=e&&!ht(this._latlngs[0]),o=Pe(this._latlngs,n?2:e?1:0,!0,t);return e||(o=[o]),Ut(this,{type:(n?"Multi":"")+"Polygon",coordinates:o})}}),Nt.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),Ut(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint")return this.toMultiPoint(t);var n=e==="GeometryCollection",o=[];return this.eachLayer(function(h){if(h.toGeoJSON){var f=h.toGeoJSON(t);if(n)o.push(f.geometry);else{var v=Me(f);v.type==="FeatureCollection"?o.push.apply(o,v.features):o.push(v)}}}),n?Ut(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});function kn(t,e){return new St(t,e)}var Wo=kn,Ee=ft.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=Y(e),T(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(B(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){q(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&$t(this._image),this},bringToBack:function(){return this._map&&Dt(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=Y(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",e=this._image=t?this._url:H("img");if(B(e,"leaflet-image-layer"),this._zoomAnimated&&B(e,"leaflet-zoom-animated"),this.options.className&&B(e,this.options.className),e.onselectstart=_,e.onmousemove=_,e.onload=s(this.fire,this,"load"),e.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}e.src=this._url,e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Et(this._image,n,e)},_reset:function(){var t=this._image,e=new j(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();X(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){lt(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 t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),jo=function(t,e,n){return new Ee(t,e,n)},Tn=Ee.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
1ine:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",e=this._image=t?this._url:H("video");if(B(e,"leaflet-image-layer"),this._zoomAnimated&&B(e,"leaflet-zoom-animated"),this.options.className&&B(e,this.options.className),e.onselectstart=_,e.onmousemove=_,e.onloadeddata=s(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),o=[],h=0;h<n.length;h++)o.push(n[h].src);this._url=n.length>0?o:[e.src];return}Z(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var f=0;f<this._url.length;f++){var v=H("source");v.src=this._url[f],e.appendChild(v)}}});function qo(t,e,n){return new Tn(t,e,n)}var xn=Ee.extend({_initImage:function(){var t=this._image=this._url;B(t,"leaflet-image-layer"),this._zoomAnimated&&B(t,"leaflet-zoom-animated"),this.options.className&&B(t,this.options.className),t.onselectstart=_,t.onmousemove=_}});function Go(t,e,n){return new xn(t,e,n)}var vt=ft.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof F||Z(t))?(this._latlng=D(t),T(this,e)):(T(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&lt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&lt(this._container,1),this.bringToFront(),this.options.interactive&&(B(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(lt(this._container,0),this._removeTimeout=setTimeout(s(q,void 0,this._container),200)):q(this._container),this.options.interactive&&(V(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=D(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&$t(this._container),this},bringToBack:function(){return this._map&&Dt(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Lt){e=null;var n=this._source._layers;for(var o in n)if(n[o]._map){e=n[o];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else if(e.getBounds)t=e.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof e=="string")t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=O(this.options.offset),n=this._getAnchor();this._zoomAnimated?X(this._container,t.add(n)):e=e.add(t).add(n);var o=this._containerBottom=-e.y,h=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=o+"px",this._container.style.left=h+"px"}},_getAnchor:function(){return[0,0]}});N.include({_initOverlay:function(t,e,n,o){var h=e;return h instanceof t||(h=new t(o).setContent(e)),n&&h.setLatLng(n),h}}),ft.include({_initOverlay:function(t,e,n,o){var h=n;return h instanceof t?(T(h,o),h._source=this):(h=e&&!o?e:new t(o,this),h.setContent(n)),h}});var ze=vt.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,vt.prototype.openOn.call(this,t)},onAdd:function(t){vt.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Pt||this._source.on("preclick",Ot))},onRemove:function(t){vt.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Pt||this._source.off("preclick",Ot))},getEvents:function(){var t=vt.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&
1(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=H("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=H("div",t+"-content-wrapper",e);if(this._contentNode=H("div",t+"-content",n),ie(e),ui(this._contentNode),I(e,"contextmenu",Ot),this._tipContainer=H("div",t+"-tip-container",e),this._tip=H("div",t+"-tip",this._tipContainer),this.options.closeButton){var o=this._closeButton=H("a",t+"-close-button",e);o.setAttribute("role","button"),o.setAttribute("aria-label","Close popup"),o.href="#close",o.innerHTML='<span aria-hidden="true">&#215;</span>',I(o,"click",function(h){Q(h),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var o=t.offsetHeight,h=this.options.maxHeight,f="leaflet-popup-scrolled";h&&o>h?(e.height=h+"px",B(t,f)):V(t,f),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();X(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,e=parseInt(Jt(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,o=this._containerWidth,h=new A(this._containerLeft,-n-this._containerBottom);h._add(zt(this._container));var f=t.layerPointToContainerPoint(h),v=O(this.options.autoPanPadding),S=O(this.options.autoPanPaddingTopLeft||v),k=O(this.options.autoPanPaddingBottomRight||v),x=t.getSize(),C=0,z=0;f.x+o+k.x>x.x&&(C=f.x+o-x.x+k.x),f.x-C-S.x<0&&(C=f.x-S.x),f.y+n+k.y>x.y&&(z=f.y+n-x.y+k.y),f.y-z-S.y<0&&(z=f.y-S.y),(C||z)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([C,z]))}},_getAnchor:function(){return O(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Vo=function(t,e){return new ze(t,e)};N.mergeOptions({closePopupOnClick:!0}),N.include({openPopup:function(t,e,n){return this._initOverlay(ze,t,e,n).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),ft.include({bindPopup:function(t,e){return this._popup=this._initOverlay(ze,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Lt||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){At(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Pt)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Oe=vt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){vt.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){vt.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=vt.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=H("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+r(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,o=this._map,h=this._container,f=o.latLngToContainerPoint(o.getCenter()),v=o.layerPointToContainerPoint(t),S=this.options.direction,k=h.offsetWidth,x=h.offsetHeight,C=O(this.options.offset),z=this._getAnchor();S==="top"?(e=k/2,n=x):S==="bottom"?(e=k/2,n=0):S==="center"?(e=k/2,n=x/2):S==="right"?(e=0,n=x/2):S==="left"?
1(e=k,n=x/2):v.x<f.x?(S="right",e=0,n=x/2):(S="left",e=k+(C.x+z.x)*2,n=x/2),t=t.subtract(O(e,n,!0)).add(C).add(z),V(h,"leaflet-tooltip-right"),V(h,"leaflet-tooltip-left"),V(h,"leaflet-tooltip-top"),V(h,"leaflet-tooltip-bottom"),B(h,"leaflet-tooltip-"+S),X(h,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&lt(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return O(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Yo=function(t,e){return new Oe(t,e)};N.include({openTooltip:function(t,e,n){return this._initOverlay(Oe,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),ft.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Oe,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(!(!t&&this._tooltipHandlersAdded)){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Lt||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e=typeof t.getElement=="function"&&t.getElement();e&&(I(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),I(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e=typeof t.getElement=="function"&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var e=t.latlng,n,o;this._tooltip.options.sticky&&t.originalEvent&&(n=this._map.mouseEventToContainerPoint(t.originalEvent),o=this._map.containerPointToLayerPoint(n),e=this._map.layerPointToLatLng(o)),this._tooltip.setLatLng(e)}});var Cn=Ht.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&t.tagName==="DIV"?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ve(e),e.appendChild(n.html)):e.innerHTML=n.html!==!1?n.html:"",n.bgPos){var o=O(n.bgPos);e.style.backgroundPosition=-o.x+"px "+-o.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Xo(t){return new Cn(t)}Ht.Default=oe;var re=ft.extend({options:{tileSize:256,opacity:1,updateWhenIdle:P.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){T(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),q(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&($t(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Dt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=p(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof A?t:new A(t,t)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e=this.getPane().children,n=-t(-1/0,1/0),o=0,h=e.length,f;o<h;o++)f=e[o].style.zIndex,e[o]!==this._container&&f&&(n=t(n,+f));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!P.ielt9){lt(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var o in this._tiles){var h=this._tiles[o];if(!(!h.current||!h.loaded)){var f=Math.min(1,(t-h.loaded)/200);lt(h.el,f),f<1?e=!0:(h.active?n=!0:this._onOpaqueTile(h),h.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(at(this._fadeFrame),this._fadeFrame=it(this._updateOpacity,this))}},_onOpaqueTile:_,_initContainer:function(){this._container||(this._container=H("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(t!==void 0){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(q(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var o=this._levels[t],h=this._map;return o||(o=this._levels[t]={},o.el=H("div","leaflet-tile-container leaflet-zoom-animated",this._container),o.el.style.zIndex=e,o.origin=h.project(h.unproject(h.getPixelOrigin()),t).round(),o.zoom=t,this._setZoomTransform(o,h.getCenter(),h.getZoom()),_(o.el.offsetWidth),this._onCreateLevel(o)),this._level=o,o}},_onUpdateLevel:_,_onRemoveLevel:_,_onCreateLevel:_,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)e=this._tiles[t],e.retain=e.current;for(t in this._tiles)if(e=this._tiles[t],e.current&&!e.active){var o=e.coords;this._retainParent(o.x,o.y,o.z,o.z-5)||this._retainChildren(o.x,o.y,o.z,o.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)q(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,o){var h=Math.floor(t/2),f=Math.floor(e/2),v=n-1,S=new A(+h,+f);S.z=+v;var k=this._tileCoordsToKey(S),x=this._tiles[k];return x&&x.active?(x.retain=!0,!0):(x&&x.loaded&&(x.retain=!0),v>o?this._retainParent(h,f,v,o):!1)},_retainChildren:function(t,e,n,o){for(var h=2*t;h<2*t+2;h++)for(var f=2*e;f<2*e+2;f++){var v=new A(h,f);v.z=n+1;var S=this._tileCoordsToKey(v),k=this._tiles[S];if(k&&k.active){k.retain=!0;continue}else k&&k.loaded&&(k.retain=!0);n+1<o&&this._retainChildren(h,f,n+1,o)}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);
1this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return e.minNativeZoom!==void 0&&t<e.minNativeZoom?e.minNativeZoom:e.maxNativeZoom!==void 0&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,o){var h=Math.round(e);this.options.maxZoom!==void 0&&h>this.options.maxZoom||this.options.minZoom!==void 0&&h<this.options.minZoom?h=void 0:h=this._clampZoom(h);var f=this.options.updateWhenZooming&&h!==this._tileZoom;(!o||f)&&(this._tileZoom=h,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),h!==void 0&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var o=this._map.getZoomScale(n,t.zoom),h=t.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(e,n)).round();P.any3d?Et(t.el,h,o):X(t.el,h)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),o=this._tileZoom,h=this._map.getPixelWorldBounds(this._tileZoom);h&&(this._globalTileRange=this._pxBoundsToTileRange(h)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],o).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],o).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],o).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],o).y/n.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),o=e.getZoomScale(n,this._tileZoom),h=e.project(t,this._tileZoom).floor(),f=e.getSize().divideBy(o*2);return new j(h.subtract(f),h.add(f))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(t===void 0&&(t=e.getCenter()),this._tileZoom!==void 0){var o=this._getTiledPixelBounds(t),h=this._pxBoundsToTileRange(o),f=h.getCenter(),v=[],S=this.options.keepBuffer,k=new j(h.getBottomLeft().subtract([S,-S]),h.getTopRight().add([S,-S]));if(!(isFinite(h.min.x)&&isFinite(h.min.y)&&isFinite(h.max.x)&&isFinite(h.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var x in this._tiles){var C=this._tiles[x].coords;(C.z!==this._tileZoom||!k.contains(new A(C.x,C.y)))&&(this._tiles[x].current=!1)}if(Math.abs(n-this._tileZoom)>1){this._setView(t,n);return}for(var z=h.min.y;z<=h.max.y;z++)for(var R=h.min.x;R<=h.max.x;R++){var et=new A(R,z);if(et.z=this._tileZoom,!!this._isValidTile(et)){var J=this._tiles[this._tileCoordsToKey(et)];J?J.current=!0:v.push(et)}}if(v.sort(function(ot,jt){return ot.distanceTo(f)-jt.distanceTo(f)}),v.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var ct=document.createDocumentFragment();for(R=0;R<v.length;R++)this._addTile(v[R],ct);this._level.el.appendChild(ct)}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var o=this._tileCoordsToBounds(t);return Y(this.options.bounds).overlaps(o)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),o=t.scaleBy(n),h=o.add(n),f=e.unproject(o,t.z),v=e.unproject(h,t.z);return[f,v]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new st(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new A(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(q(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){B(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=_,t.onmousemove=_,P.ielt9&&this.options.opacity<1&&lt(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),h=this.createTile(this._wrapCoords(t),s(this._tileReady,this,t));this._initTile(h),this.createTile.length<2&&it(s(this._tileReady,this,t,null,h)),X(h,n),this._tiles[o]={el:h,coords:t,current:!0},e.appendChild(h),this.fire("tileloadstart",{tile:h,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);n=this._tiles[o],n&&(n.loaded=+new Date,this._map._fadeAnimated?(lt(n.el,0),at(this._fadeFrame),this._fadeFrame=it(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(B(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),P.ielt9||!this._map._fadeAnimated?it(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new A(this._wrapX?d(t.x,this._wrapX):t.x,this._wrapY?d(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new j(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Ko(t){return new re(t)}var Wt=re.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,e=T(this,e),e.detectRetina&&P.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return I(n,"load",s(this._tileOnLoad,this,e,n)),I(n,"error",s(this._tileOnError,this,e,n)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(n.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:P.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return $(this._url,m(e,this.options))}
vendor: 6,710 bytes, line 1
1,_tileOnLoad:function(t,e){P.ielt9?setTimeout(s(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var o=this.options.errorTileUrl;o&&e.getAttribute("src")!==o&&(e.src=o),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,n=this.options.zoomReverse,o=this.options.zoomOffset;return n&&(t=e-t),t+o},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=_,e.onerror=_,!e.complete)){e.src=G;var n=this._tiles[t].coords;q(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",G),re.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(!(!this._map||n&&n.getAttribute("src")===G))return re.prototype._tileReady.call(this,t,e,n)}});function Pn(t,e){return new Wt(t,e)}var Mn=Wt.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=m({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);e=T(this,e);var h=e.detectRetina&&P.retina?2:1,f=this.getTileSize();n.width=f.x*h,n.height=f.y*h,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Wt.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,o=nt(n.project(e[0]),n.project(e[1])),h=o.min,f=o.max,v=(this._wmsVersion>=1.3&&this._crs===Ln?[h.y,h.x,f.y,f.x]:[h.x,h.y,f.x,f.y]).join(","),S=Wt.prototype.getTileUrl.call(this,t);return S+E(this.wmsParams,S,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+v},setParams:function(t,e){return m(this.wmsParams,t),e||this.redraw(),this}});function Jo(t,e){return new Mn(t,e)}Wt.WMS=Mn,Pn.wms=Jo;var kt=ft.extend({options:{padding:.1},initialize:function(t){T(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),B(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),o=this._map.getSize().multiplyBy(.5+this.options.padding),h=this._map.project(this._center,e),f=o.multiplyBy(-n).add(h).subtract(this._map._getNewPixelOrigin(t,e));P.any3d?Et(this._container,f,n):X(this._container,f)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new j(n,n.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),En=kt.extend({options:{tolerance:0},getEvents:function(){var t=kt.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){kt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");I(t,"mousemove",this._onMouseMove,this),I(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),I(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){at(this._redrawRequest),delete this._ctx,q(this._container),W(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var e in this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){kt.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),o=P.retina?2:1;X(e,t.min),e.width=o*n.x,e.height=o*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",P.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){kt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[r(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,o=e.prev;n?n.prev=o:this._drawLast=o,o?o.next=n:this._drawFirst=n,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var e=t.options.dashArray.split(/[, ]+/),n=[],o,h;for(h=0;h<e.length;h++){if(o=Number(e[h]),isNaN(o))return;n.push(o)}t.options._dashArray=n}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||it(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new j,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore(
1)},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var o=this._drawFirst;o;o=o.next)t=o.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,o,h,f,v=t._parts,S=v.length,k=this._ctx;if(S){for(k.beginPath(),n=0;n<S;n++){for(o=0,h=v[n].length;o<h;o++)f=v[n][o],k[o?"lineTo":"moveTo"](f.x,f.y);e&&k.closePath()}this._fillStroke(k,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var e=t._point,n=this._ctx,o=Math.max(Math.round(t._radius),1),h=(Math.max(Math.round(t._radiusY),1)||o)/o;h!==1&&(n.save(),n.scale(1,h)),n.beginPath(),n.arc(e.x,e.y/h,o,0,Math.PI*2,!1),h!==1&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&n.weight!==0&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e=this._map.mouseEventToLayerPoint(t),n,o,h=this._drawFirst;h;h=h.next)n=h.layer,n.options.interactive&&n._containsPoint(e)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(n))&&(o=n);this._fireEvent(o?[o]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(V(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,o,h=this._drawFirst;h;h=h.next)n=h.layer,n.options.interactive&&n._containsPoint(e)&&(o=n);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(B(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(s(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,o=e.prev;if(n)n.prev=o;else return;o?o.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t)}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,o=e.prev;if(o)o.next=n;else return;n?n.prev=o:o&&(this._drawLast=o),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t)}}});function zn(t){return P.canvas?new En(t):null}var ae=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),Qo={_initContainer:function(){this._container=H("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(kt.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=ae("shape");B(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=ae("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;q(e),t.removeInteractiveTarget(e),delete this._layers[r(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,o=t.options,h=t._container;h.stroked=!!o.stroke,h.filled=!!o.fill,o.stroke?(e||(e=t._stroke=ae("stroke")),h.appendChild(e),e.weight=o.weight+"px",e.color=o.color,e.opacity=o.opacity,o.dashArray?e.dashStyle=Z(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=o.lineCap.replace("butt","flat"),e.joinstyle=o.lineJoin):e&&(h.removeChild(e),t._stroke=null),o.fill?(n||(n=t._fill=ae("fill")),h.appendChild(n),n.color=o.fillColor||o.color,n.opacity=o.fillOpacity):n&&(h.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),o=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+o+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){$t(t._container)},_bringToBack:function(t){Dt(t._container)}},Ae=P.vml?ae:Ii,le=kt.extend({_initContainer:function(){this._container=Ae("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ae("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){q(this._container),W(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){kt.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),X(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Ae("path");t.options.className&&B(e,t.options.className),t.options.interactive&&B(e,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){q(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Bi(t._parts,e))}
1,_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),o=Math.max(Math.round(t._radiusY),1)||n,h="a"+n+","+o+" 0 1,0 ",f=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+h+n*2+",0 "+h+-n*2+",0 ";this._setPath(t,f)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){$t(t._path)},_bringToBack:function(t){Dt(t._path)}});P.vml&&le.include(Qo);function On(t){return P.svg||P.vml?new le(t):null}N.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var e=this._paneRenderers[t];return e===void 0&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&zn(t)||On(t)}});var An=Ft.extend({initialize:function(t,e){Ft.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))}
vendor: 6,222 bytes, line 1
1,_boundsToLatLngs:function(t){return t=Y(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function tr(t,e){return new An(t,e)}le.create=Ae,le.pointsToPath=Bi,St.geometryToLayer=xe,St.coordsToLatLng=wi,St.coordsToLatLngs=Ce,St.latLngToCoords=Li,St.latLngsToCoords=Pe,St.getFeature=Ut,St.asFeature=Me,N.mergeOptions({boxZoom:!0});var In=gt.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){I(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){W(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){q(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(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Qt(),ni(),this._startPoint=this._map.mouseEventToContainerPoint(t),I(document,{contextmenu:At,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=H("div","leaflet-zoom-box",this._container),B(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new j(this._point,this._startPoint),n=e.getSize();X(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(q(this._box),V(this._container,"leaflet-crosshair")),te(),si(),W(document,{contextmenu:At,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var e=new st(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});N.addInitHook("addHandler","boxZoom",In),N.mergeOptions({doubleClickZoom:!0});var Bn=gt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),o=e.options.zoomDelta,h=t.originalEvent.shiftKey?n-o:n+o;e.options.doubleClickZoom==="center"?e.setZoom(h):e.setZoomAround(t.containerPoint,h)}});N.addInitHook("addHandler","doubleClickZoom",Bn),N.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Rn=gt.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Ct(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}B(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){V(this._map._container,"leaflet-grab"),V(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=Y(this._map.options.maxBounds);this._offsetLimit=nt(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,o=this._draggable._newPos.x,h=(o-e+n)%t+e-n,f=(o+e+n)%t-e-n,v=Math.abs(h+n)<Math.abs(f+n)?h:f;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=v},_onDragEnd:function(t){var e=this._map,n=e.options,o=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),o)e.fire("moveend");else{this._prunePositions(+new Date);var h=this._lastPos.subtract(this._positions[0]),f=(this._lastTime-this._times[0])/1e3,v=n.easeLinearity,S=h.multiplyBy(v/f),k=S.distanceTo([0,0]),x=Math.min(n.inertiaMaxSpeed,k),C=S.multiplyBy(x/k),z=x/(n.inertiaDeceleration*v),R=C.multiplyBy(-z/2).round();!R.x&&!R.y?e.fire("moveend"):(R=e._limitOffset(R,e.options.maxBounds),it(function(){e.panBy(R,{duration:z,easeLinearity:v,noMoveStart:!0,animate:!0})}
1))}}});N.addInitHook("addHandler","dragging",Rn),N.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Zn=gt.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),I(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),W(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,o=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(o,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e=this._panKeys={},n=this.keyCodes,o,h;for(o=0,h=n.left.length;o<h;o++)e[n.left[o]]=[-1*t,0];for(o=0,h=n.right.length;o<h;o++)e[n.right[o]]=[t,0];for(o=0,h=n.down.length;o<h;o++)e[n.down[o]]=[0,t];for(o=0,h=n.up.length;o<h;o++)e[n.up[o]]=[0,-1*t]},_setZoomDelta:function(t){var e=this._zoomKeys={},n=this.keyCodes,o,h;for(o=0,h=n.zoomIn.length;o<h;o++)e[n.zoomIn[o]]=t;for(o=0,h=n.zoomOut.length;o<h;o++)e[n.zoomOut[o]]=-t},_addHooks:function(){I(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){W(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=t.keyCode,n=this._map,o;if(e in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress)if(o=this._panKeys[e],t.shiftKey&&(o=O(o).multiplyBy(3)),n.options.maxBounds&&(o=n._limitOffset(O(o),n.options.maxBounds)),n.options.worldCopyJump){var h=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(o)));n.panTo(h)}else n.panBy(o)}else if(e in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else if(e===27&&n._popup&&n._popup.options.closeOnEscapeKey)n.closePopup();else return;At(t)}}});N.addInitHook("addHandler","keyboard",Zn),N.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var $n=gt.extend({addHooks:function(){I(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){W(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=ln(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),o),At(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var o=this._delta/(this._map.options.wheelPxPerZoomLevel*4),h=4*Math.log(2/(1+Math.exp(-Math.abs(o))))/Math.LN2,f=n?Math.ceil(h/n)*n:h,v=t._limitZoom(e+(this._delta>0?f:-f))-e;this._delta=0,this._startTime=null,v&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+v):t.setZoomAround(this._lastMousePos,e+v))}});N.addInitHook("addHandler","scrollWheelZoom",$n);var er=600;N.mergeOptions({tapHold:P.touchNative&&P.safari&&P.mobile,tapTolerance:15});var Dn=gt.extend({addHooks:function(){I(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){W(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var e=t.touches[0];this._startPos=this._newPos=new A(e.clientX,e.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(I(document,"touchend",Q),I(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),er),I(document,"touchend touchcancel contextmenu",this._cancel,this),I(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){W(document,"touchend",Q),W(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),W(document,"touchend touchcancel contextmenu",this._cancel,this),W(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new A(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});N.addInitHook("addHandler","tapHold",Dn),N.mergeOptions({touchZoom:P.touch,bounceAtZoomLimits:!0});var Nn=gt.extend({addHooks:function(){B(this._map._container,"leaflet-touch-zoom"),I(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){V(this._map._container,"leaflet-touch-zoom"),W(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming)){var n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.touchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(o)._divideBy(2))),this._startDist=n.distanceTo(o),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),I(document,"touchmove",this._onTouchMove,this),I(document,"touchend touchcancel",this._onTouchEnd,this),Q(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),h=n.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(h,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMin
1Zoom()&&h<1||this._zoom>e.getMaxZoom()&&h>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,h===1)return}else{var f=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(h===1&&f.x===0&&f.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(f),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),at(this._animRequest);var v=s(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=it(v,this,!0),Q(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,at(this._animRequest),W(document,"touchmove",this._onTouchMove,this),W(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))}});N.addInitHook("addHandler","touchZoom",Nn),N.BoxZoom=In,N.DoubleClickZoom=Bn,N.Drag=Rn,N.Keyboard=Zn,N.ScrollWheelZoom=$n,N.TapHold=Dn,N.TouchZoom=Nn,l.Bounds=j,l.Browser=P,l.CRS=wt,l.Canvas=En,l.Circle=yi,l.CircleMarker=Te,l.Class=yt,l.Control=dt,l.DivIcon=Cn,l.DivOverlay=vt,l.DomEvent=yo,l.DomUtil=go,l.Draggable=Ct,l.Evented=Vt,l.FeatureGroup=Lt,l.GeoJSON=St,l.GridLayer=re,l.Handler=gt,l.Icon=Ht,l.ImageOverlay=Ee,l.LatLng=F,l.LatLngBounds=st,l.Layer=ft,l.LayerGroup=Nt,l.LineUtil=Oo,l.Map=N,l.Marker=ke,l.Mixin=xo,l.Path=Pt,l.Point=A,l.PolyUtil=Co,l.Polygon=Ft,l.Polyline=bt,l.Popup=ze,l.PosAnimation=hn,l.Projection=Ao,l.Rectangle=An,l.Renderer=kt,l.SVG=le,l.SVGOverlay=xn,l.TileLayer=Wt,l.Tooltip=Oe,l.Transformation=je,l.Util=$s,l.VideoOverlay=Tn,l.bind=s,l.bounds=nt,l.canvas=zn,l.circle=Ho,l.circleMarker=No,l.control=ne,l.divIcon=Xo,l.extend=m,l.featureGroup=Zo,l.geoJSON=kn,l.geoJson=Wo,l.gridLayer=Ko,l.icon=$o,l.imageOverlay=jo,l.latLng=D,l.latLngBounds=Y,l.layerGroup=Ro,l.map=wo,l.marker=Do,l.point=O,l.polygon=Uo,l.polyline=Fo,l.popup=Vo,l.rectangle=tr,l.setOptions=T,l.stamp=r,l.svg=On,l.svgOverlay=Go,l.tileLayer=Pn,l.tooltip=Yo,l.transformation=Yt,l.version=g,l.videoOverlay=qo;var ir=window.L;l.noConflict=function(){return window.L=ir,this},window.L=l}))})(he,he.exports)),he.exports}var wr=yr();const Tt=ur(wr);var Lr="1.3.17";function as(c,u,l){return Math.max(c,Math.min(u,l))}function br(c,u,l){return(1-l)*c+l*u}function Sr(c,u,l,g){return br(c,u,1-Math.exp(-l*g))}function kr(c,u){return(c%u+u)%u}var Tr=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(c){if(!this.isRunning)return;let u=!1;if(this.duration&&this.easing){this.currentTime+=c;const l=as(0,this.currentTime/this.duration,1);u=l>=1;const g=u?1:this.easing(l);this.value=this.from+(this.to-this.from)*g}else this.lerp?(this.value=Sr(this.value,this.to,this.lerp*60,c),Math.round(this.value)===this.to&&(this.value=this.to,u=!0)):(this.value=this.to,u=!0);u&&this.stop(),this.onUpdate?.(this.value,u)}stop(){this.isRunning=!1}fromTo(c,u,{lerp:l,duration:g,easing:m,onStart:i,onUpdate:s}){this.from=this.value=c,this.to=u,this.lerp=l,this.duration=g,this.easing=m,this.currentTime=0,this.isRunning=!0,i?.(),this.onUpdate=s}};function xr(c,u){let l;return function(...g){let m=this;clearTimeout(l),l=setTimeout(()=>{l=void 0,c.apply(m,g)},u)}}var Cr=class{constructor(c,u,{autoResize:l=!0,debounce:g=250}={}){this.wrapper=c,this.content=u,l&&(this.debouncedResize=xr(this.resize,g),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},ls=class{events={};emit(c,...u){let l=this.events[c]||[];for(let g=0,m=l.length;g<m;g++)l[g]?.(...u)}on(c,u){return this.events[c]?.push(u)||(this.events[c]=[u]),()=>{this.events[c]=this.events[c]?.filter(l=>u!==l)}}off(c,u){this.events[c]=this.events[c]?.filter(l=>u!==l)}destroy(){this.events={}}},jn=100/6,Mt={passive:!1},Pr=class{constructor(c,u={wheelMultiplier:1,touchMultiplier:1}){this.element=c,this.options=u,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Mt),this.element.addEventListener("touchstart",this.onTouchStart,Mt),this.element.addEventListener("touchmove",this.onTouchMove,Mt),this.element.addEventListener("touchend",this.onTouchEnd,Mt)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new ls;on(c,u){return this.emitter.on(c,u)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,Mt),this.element.removeEventListener("touchstart",this.onTouchStart,Mt),this.element.removeEventListener("touchmove",this.onTouchMove,Mt),this.element.removeEventListener("touchend",this.onTouchEnd,Mt)}onTouchStart=c=>{const{clientX:u,clientY:l}=c.targetTouches?c.targetTouches[0]:c;this.touchStart.x=u,this.touchStart.y=l,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:c})};onTouchMove=c=>{const{clientX:u,clientY:l}=c.targetTouches?c.targetTouches[0]:c,g=-(u-this.touchStart.x)*this.options.touchMultiplier,m=-(l-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=u,this.touchStart.y=l,this.lastDelta={x:g,y:m},this.emitter.emit("scroll",{deltaX:g,deltaY:m,event:c})};onTouchEnd=c=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:c})};onWheel=c=>{let{deltaX:u,deltaY:l,deltaMode:g}=c;const m=g===1?jn:g===2?this.window.width:1,i=g===1?jn:g===2?this.window.height:1;u*=m,l*=i,u*=this.options.wheelMultiplier,l*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:u,deltaY:l,event:c})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},qn=c=>Math.min(1,1.001-Math.pow(2,-10*c)),Mr=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new Tr;emitter=new ls;dimensions;virtualScroll;constructor({wrapper:c=window,content:u=document.documentElement,eventsTarget:l=c,smoothWheel:g=!0,syncTouch:m=!1,syncTouchLerp:i=.075,touchInertiaExponent:s=1.7,duration:a,easing:r,lerp:p=.1,infinite:d=!1,orientation:_="vertical",gestureOrientation:y=_==="horizontal"?"both":"vertical",touchMultiplier:w=1,wheelMultiplier:b=1,autoResize:T=!0,prevent:E,virtualScroll:M,overscroll:$=!0,autoRaf:Z=!1,anchors:tt=!1,autoToggle:G=!1,allowNestedScroll:ut=!1,__experimental__naiveDimensions:Rt=!1,naiveDimensions:me=Rt,stopInertiaOnNavigate:Gt=!1}={}){window.lenisVersion=Lr,(!c||c===document.documentElement)&&(c=window),typeof a=="number"&&typeof r!="function"?r=qn:typeof r=="function"&&typeof a!="number"&&(a=1),this.options={wrapper:c,content:u,eventsTarget:l,smoothWheel:g,syncTouch:m,syncTouchLerp:i,touchInertiaExponent:s,duration:a,easing:r,lerp:p,infinite:d,gestureOrientation:y,orientation:_,touchMultiplier:w,wheelMultiplier:b,autoResize:T,prevent:E,virtualScroll:M,overscroll:$,autoRaf:Z,anchors:tt,autoToggle:G,allowNestedScroll:ut,naiveDimensions:me,stopInertiaOnNavigate:Gt},this.dimensions=new Cr(c,u,{autoResize:T}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=ne
1w Pr(l,{touchMultiplier:w,wheelMultiplier:b}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0})),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(c,u){return this.emitter.on(c,u)}off(c,u){return this.emitter.off(c,u)}onScrollEnd=c=>{c instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&c.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){const c=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[c]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=c=>{c.propertyName.includes("overflow")&&this.checkOverflow()};setScroll(c){this.isHorizontal?this.options.wrapper.scrollTo({left:c,behavior:"instant"}):this.options.wrapper.scrollTo({top:c,behavior:"instant"})}onClick=c=>{const l=c.composedPath().filter(g=>g instanceof HTMLAnchorElement&&g.getAttribute("href"));if(this.options.anchors){const g=l.find(m=>m.getAttribute("href")?.includes("#"));if(g){const m=g.getAttribute("href");if(m){const i=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,s=`#${m.split("#")[1]}`;this.scrollTo(s,i)}}}this.options.stopInertiaOnNavigate&&l.find(m=>m.host===window.location.host)&&this.reset()};onPointerDown=c=>{c.button===1&&this.reset()};onVirtualScroll=c=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(c)===!1)return;const{deltaX:u,deltaY:l,event:g}=c;if(this.emitter.emit("virtual-scroll",{deltaX:u,deltaY:l,event:g}),g.ctrlKey||g.lenisStopPropagation)return;const m=g.type.includes("touch"),i=g.type.includes("wheel");this.isTouching=g.type==="touchstart"||g.type==="touchmove";const s=u===0&&l===0;if(this.options.syncTouch&&m&&g.type==="touchstart"&&s&&!this.isStopped&&!this.isLocked){this.reset();return}const r=this.options.gestureOrientation==="vertical"&&l===0||this.options.gestureOrientation==="horizontal"&&u===0;if(s||r)return;let p=g.composedPath();p=p.slice(0,p.indexOf(this.rootElement));const d=this.options.prevent;if(p.find(E=>E instanceof HTMLElement&&(typeof d=="function"&&d?.(E)||E.hasAttribute?.("data-lenis-prevent")||m&&E.hasAttribute?.("data-lenis-prevent-touch")||i&&E.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(E,{deltaX:u,deltaY:l}))))return;if(this.isStopped||this.isLocked){g.cancelable&&g.preventDefault();return}if(!(this.options.syncTouch&&m||this.options.smoothWheel&&i)){this.isScrolling="native",this.animate.stop(),g.lenisStopPropagation=!0;return}let y=l;this.options.gestureOrientation==="both"?y=Math.abs(l)>Math.abs(u)?l:u:this.options.gestureOrientation==="horizontal"&&(y=u),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&l>0||this.animatedScroll===this.limit&&l<0))&&(g.lenisStopPropagation=!0),g.cancelable&&g.preventDefault();const w=m&&this.options.syncTouch,T=m&&g.type==="touchend";T&&(y=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+y,{programmatic:!1,...w?{lerp:T?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit
1()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const c=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-c,this.direction=Math.sign(this.animatedScroll-c),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=c=>{const u=c-(this.time||c);this.time=c,this.animate.advance(u*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(c,{offset:u=0,immediate:l=!1,lock:g=!1,programmatic:m=!0,lerp:i=m?this.options.lerp:void 0,duration:s=m?this.options.duration:void 0,easing:a=m?this.options.easing:void 0,onStart:r,onComplete:p,force:d=!1,userData:_}={}){if(!((this.isStopped||this.isLocked)&&!d)){if(typeof c=="string"&&["top","left","start","#"].includes(c))c=0;else if(typeof c=="string"&&["bottom","right","end"].includes(c))c=this.limit;else{let y;if(typeof c=="string"?(y=document.querySelector(c),y||(c==="#top"?c=0:console.warn("Lenis: Target not found",c))):c instanceof HTMLElement&&c?.nodeType&&(y=c),y){if(this.options.wrapper!==window){const b=this.rootElement.getBoundingClientRect();u-=this.isHorizontal?b.left:b.top}const w=y.getBoundingClientRect();c=(this.isHorizontal?w.left:w.top)+this.animatedScroll}}if(typeof c=="number"){if(c+=u,c=Math.round(c),this.options.infinite){if(m){this.targetScroll=this.animatedScroll=this.scroll;const y=c-this.animatedScroll;y>this.limit/2?c=c-this.limit:y<-this.limit/2&&(c=c+this.limit)}}else c=as(0,c,this.limit);if(c===this.targetScroll){r?.(this),p?.(this);return}if(this.userData=_??{},l){this.animatedScroll=this.targetScroll=c,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),p?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}m||(this.targetScroll=c),typeof s=="number"&&typeof a!="function"?a=qn:typeof a=="function"&&typeof s!="number"&&(s=1),this.animate.fromTo(this.animatedScroll,c,{duration:s,easing:a,lerp:i,onStart:()=>{g&&(this.isLocked=!0),this.isScrolling="smooth",r?.(this)},onUpdate:(y,w)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=y-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=y,this.setScroll(this.scroll),m&&(this.targetScroll=y),w||this.emit(),w&&(this.reset(),this.emit(),p?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(c,{deltaX:u,deltaY:l}){const g=Date.now(),m=c._lenis??={};let i,s,a,r,p,d,_,y;const w=this.options.gestureOrientation;if(g-(m.time??0)>2e3){m.time=Date.now();const G=window.getComputedStyle(c);m.computedStyle=G;const ut=G.overflowX,Rt=G.overflowY;if(i=["auto","overlay","scroll"].includes(ut),s=["auto","overlay","scroll"].includes(Rt),m.hasOverflowX=i,m.hasOverflowY=s,!i&&!s||w==="vertical"&&!s||w==="horizontal"&&!i)return!1;p=c.scrollWidth,d=c.scrollHeight,_=c.clientWidth,y=c.clientHeight,a=p>_,r=d>y,m.isScrollableX=a,m.isScrollableY=r,m.scrollWidth=p,m.scrollHeight=d,m.clientWidth=_,m.clientHeight=y}else a=m.isScrollableX,r=m.isScrollableY,i=m.hasOverflowX,s=m.hasOverflowY,p=m.scrollWidth,d=m.scrollHeight,_=m.clientWidth,y=m.clientHeight;if(!i&&!s||!a&&!r||w==="vertical"&&(!s||!r)||w==="horizontal"&&(!i||!a))return!1;let b;if(w==="horizontal")b="x";else if(w==="vertical")b="y";else{const G=u!==0,ut=l!==0;G&&i&&a&&(b="x"),ut&&s&&r&&(b="y")}
1if(!b)return!1;let T,E,M,$,Z;if(b==="x")T=c.scrollLeft,E=p-_,M=u,$=i,Z=a;else if(b==="y")T=c.scrollTop,E=d-y,M=l,$=s,Z=r;else return!1;return(M>0?T<E:T>0)&&$&&Z}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const c=this.options.wrapper;return this.isHorizontal?c.scrollX??c.scrollLeft:c.scrollY??c.scrollTop}get scroll(){return this.options.infinite?kr(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(c){this._isScrolling!==c&&(this._isScrolling=c,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(c){this._isStopped!==c&&(this._isStopped=c,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(c){this._isLocked!==c&&(this._isLocked=c,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let c="lenis";return this.options.autoToggle&&(c+=" lenis-autoToggle"),this.isStopped&&(c+=" lenis-stopped"),this.isLocked&&(c+=" lenis-locked"),this.isScrolling&&(c+=" lenis-scrolling"),this.isScrolling==="smooth"&&(c+=" lenis-smooth"),c}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};function xi(){return xi=Object.assign?Object.assign.bind():function(c){for(var u=1;u<arguments.length;u++){var l=arguments[u];for(var g in l)({}).hasOwnProperty.call(l,g)&&(c[g]=l[g])}return c},xi.apply(null,arguments)}class Gn{constructor({scrollElements:u,rootMargin:l="-1px -1px -1px -1px",root:g=null,IORaf:m}){this.scrollElements=void 0,this.rootMargin=void 0,this.root=void 0,this.IORaf=void 0,this.observer=void 0,this.scrollElements=u,this.rootMargin=l,this.root=g,this.IORaf=m,this._init()}_init(){this.observer=new IntersectionObserver(u=>{u.forEach(l=>{const g=this.scrollElements.find(m=>m.$el===l.target);l.isIntersecting?(g&&(g.isAlreadyIntersected=!0),this._setInview(l)):g&&g.isAlreadyIntersected&&this._setOutOfView(l)})},{root:this.root,rootMargin:this.rootMargin});for(const u of this.scrollElements)this.observe(u.$el)}destroy(){this.observer.disconnect()}observe(u){u&&this.observer.observe(u)}unobserve(u){u&&this.observer.unobserve(u)}_setInview(u){const l=this.scrollElements.find(g=>g.$el===u.target);this.IORaf&&l?.setInteractivityOn(),!this.IORaf&&l?.setInview()}_setOutOfView(u){const l=this.scrollElements.find(g=>g.$el===u.target);this.IORaf&&l?.setInteractivityOff(),!this.IORaf&&l?.setOutOfView(),l!=null&&l.attributes.scrollRepeat||this.IORaf||this.unobserve(u.target)}}function Vn(c,u,l,g,m){return l+((m-c)/(u-c)*(g-l)||0)}function Yn(c,u){return c.reduce((l,g)=>Math.abs(g-u)<Math.abs(l-u)?g:l)}const Xn="--progress";class Er{constructor({$el:u,id:l,subscribeElementUpdateFn:g,unsubscribeElementUpdateFn:m,needRaf:i,scrollOrientation:s,lenisInstance:a}){var r,p,d,_,y;this.$el=void 0,this.id=void 0,this.needRaf=void 0,this.attributes=void 0,this.scrollOrientation=void 0,this.isAlreadyIntersected=void 0,this.intersection=void 0,this.metrics=void 0,this.currentScroll=void 0,this.translateValue=void 0,this.progress=void 0,this.lastProgress=void 0,this.isInview=void 0,this.isInteractive=void 0,this.isInFold=void 0,this.isFirstResize=void 0,this.subscribeElementUpdateFn=void 0,this.unsubscribeElementUpdateFn=void 0,this.lenisInstance=void 0,this.getWindowSize=void 0,this.getMetricsStart=void 0,this.getMetricsSize=void 0,this.startPositionHandlers={start:(w,b,T)=>w-b+T,middle:(w,b,T,E)=>w-b+T+.5*E,end:(w,b,T,E)=>w-b+T+E,fold:()=>0},this.endPositionHandlers={start:(w,b)=>w-b,middle:(w,b,T)=>w-b+.5*T,end:(w,b,T)=>w-b+T},this.$el=u,this.id=l,this.needRaf=i,this.scrollOrientation=s,this.lenisInstance=a,this.subscribeElementUpdateFn=g,this.unsubscribeElementUpdateFn=m,this.attributes={scrollClass:(r=this.$el.dataset.scrollClass)!=null?r:"is-inview",scrollOffset:(
1p=this.$el.dataset.scrollOffset)!=null?p:"0,0",scrollPosition:(d=this.$el.dataset.scrollPosition)!=null?d:"start,end",scrollCssProgress:this.$el.dataset.scrollCssProgress!==void 0,scrollEventProgress:(_=this.$el.dataset.scrollEventProgress)!=null?_:null,scrollSpeed:this.$el.dataset.scrollSpeed!==void 0?parseFloat(this.$el.dataset.scrollSpeed):null,scrollRepeat:this.$el.dataset.scrollRepeat!==void 0,scrollCall:(y=this.$el.dataset.scrollCall)!=null?y:null,scrollIgnoreFold:this.$el.dataset.scrollIgnoreFold!==void 0,scrollEnableTouchSpeed:this.$el.dataset.scrollEnableTouchSpeed!==void 0},this.intersection={start:0,end:0},this.metrics={offsetStart:0,offsetEnd:0,bcr:{}},this.currentScroll=this.lenisInstance.scroll,this.translateValue=0,this.progress=0,this.lastProgress=null,this.isInview=!1,this.isInteractive=!1,this.isAlreadyIntersected=!1,this.isInFold=!1,this.isFirstResize=!0,this.getWindowSize=this.scrollOrientation==="vertical"?()=>this.lenisInstance.dimensions.height:()=>this.lenisInstance.dimensions.width,this.getMetricsStart=this.scrollOrientation==="vertical"?w=>w.top:w=>w.left,this.getMetricsSize=this.scrollOrientation==="vertical"?w=>w.height:w=>w.width,this._init()}_init(){this.needRaf&&this._resize()}onResize({currentScroll:u}){this.currentScroll=u,this._resize()}onRender({currentScroll:u,smooth:l}){const g=this.getWindowSize();if(this.currentScroll=u,this._computeProgress(),this.attributes.scrollSpeed&&!isNaN(this.attributes.scrollSpeed))if(this.attributes.scrollEnableTouchSpeed||l){if(this.isInFold){const m=Math.max(0,this.progress);this.translateValue=m*g*this.attributes.scrollSpeed*-1}else{const m=Vn(0,1,-1,1,this.progress);this.translateValue=m*g*this.attributes.scrollSpeed*-1}this.$el.style.transform=this.scrollOrientation==="vertical"?`translate3d(0, ${this.translateValue}px, 0)`:`translate3d(${this.translateValue}px, 0, 0)`}else this.translateValue&&(this.$el.style.transform="translate3d(0, 0, 0)"),this.translateValue=0}setInview(){if(this.isInview)return;this.isInview=!0,this.$el.classList.add(this.attributes.scrollClass);const u=this._getScrollCallFrom();this.attributes.scrollCall&&this._dispatchCall("enter",u)}setOutOfView(){if(!this.isInview||!this.attributes.scrollRepeat)return;this.isInview=!1,this.$el.classList.remove(this.attributes.scrollClass);const u=this._getScrollCallFrom();this.attributes.scrollCall&&this._dispatchCall("leave",u)}setInteractivityOn(){this.isInteractive||(this.isInteractive=!0,this.subscribeElementUpdateFn(this))}setInteractivityOff(){this.isInteractive&&(this.isInteractive=!1,this.unsubscribeElementUpdateFn(this),this.lastProgress!==null&&this._computeProgress(Yn([0,1],this.lastProgress)))}_resize(){this.metrics.bcr=this.$el.getBoundingClientRect(),this._computeMetrics(),this._computeIntersection(),this.isFirstResize&&(this.isFirstResize=!1,this.isInFold&&this.setInview())}_computeMetrics(){const u=this.getWindowSize(),l=this.getMetricsStart(this.metrics.bcr),g=this.getMetricsSize(this.metrics.bcr);this.metrics.offsetStart=this.currentScroll+l-this.translateValue,this.metrics.offsetEnd=this.metrics.offsetStart+g,this.isInFold=this.metrics.offsetStart<u&&!this.attributes.scrollIgnoreFold}_computeIntersection(){var u,l,g,m,i,s,a,r;const p=this.getWindowSize(),d=this.getMetricsSize(this.metrics.bcr),_=this.attributes.scrollOffset.split(","),y=(u=(l=_[0])==null?void 0:l.trim())!=null?u:"0",w=(g=(m=_[1])==null?void 0:m.trim())!=null?g:"0",b=this.attributes.scrollPosition.split(",");let T=(i=(s=b[0])==null?void 0:s.trim())!=null?i:"start";const E=(a=(r=b[1])==null?void 0:r.trim())!=null?a:"end",M=y.includes("%")?p*parseInt(y.replace("%","").trim())*.01:parseInt(y),$=w.includes("%")?p*parseInt(w.replace("%","").trim())*.01:parseInt(w);this.isInFold&&(T="fold");const Z=this.startPositionHandlers[T];this.intersection.start=Z?Z(this.metrics.offsetStart,p,M,d):this.metrics.offsetStart-p+M;const tt=this.endPositionHandlers[E];if(this.intersection.end=tt?tt(this.metrics.offsetStart,$,d):this.metrics.offsetStart-$+d,this.intersection.end<=this.intersection.start)switch(E){case"start":default:this.intersection.end=this.intersection.start+1;break;case"middle":this.intersection.end=this.intersection.start+.5*d;break;case"end":this.intersection.end=this.intersection.start+d}}_computeProgress(u){const l=u??((g=Vn(this.intersection.start,this.intersection.end,0,1,this.currentScroll))<0?0:g>1?1:g);var g;this.progress=l,l!==this.lastProgress&&(this.lastProgress=l,this.attributes.scrollCssProgress&&this._setCssProgress(l),this.attributes.scrollEventProgress&&this._setCustomEventProgress(l),l>0&&l<1&&this.setInview(),l===0&&this.setOutOfView(),l===1&&this.setOutOfView())}_setCssProgress(u=0){this.$el.style.setProperty(Xn,u.toString())}_setCustomEventProgress(u=0){const l=this.attributes.scrollEventProgress;if(!l)return;const g=new CustomEvent(l,{detail:{target:this.$el,progress:u}});window.dispatchEvent(g)}_getScrollCallFrom(){const u=Yn([this.intersection.start,this.intersection.end],this.currentScroll);return this.intersection.start===u?"start":"end"}destroy(){this.attributes.scrollCssProgress&&this.$el.style.removeProperty(Xn),this.attributes.scrollSpeed&&this.$el.style.removeProperty("transform"),this.isInview&&this.attributes.scrollClass&&this.$el.classList.remove(this.attributes.scrollClass)}_dispatchCall(u,l){const g=this.attributes.scrollCall;if(!g)return;const m=new CustomEvent(g,{detail:{target:this.$el,way:u,from:l}});window.dispatchEvent(m)}}const zr=["scrollOffset","scrollPosition","scrollCssProgress","scrollEventProgress","scrollSpeed"];class Or{constructor({$el:u,triggerRootMargin:l,rafRootMargin:g,scrollOrientation:m,lenisInstance:i}
vendor: 5,516 bytes, line 1
1){this.$scrollContainer=void 0,this.triggerRootMargin=void 0,this.rafRootMargin=void 0,this.scrollElements=void 0,this.triggeredScrollElements=void 0,this.RAFScrollElements=void 0,this.scrollElementsToUpdate=void 0,this.IOTriggerInstance=void 0,this.IORafInstance=void 0,this.scrollOrientation=void 0,this.lenisInstance=void 0,u?(this.$scrollContainer=u,this.lenisInstance=i,this.scrollOrientation=m,this.triggerRootMargin=l??"-1px -1px -1px -1px",this.rafRootMargin=g??"100% 100% 100% 100%",this.scrollElements=[],this.triggeredScrollElements=[],this.RAFScrollElements=[],this.scrollElementsToUpdate=[],this._init()):console.error("Please provide a DOM Element as scrollContainer")}_init(){const u=this.$scrollContainer.querySelectorAll("[data-scroll]"),l=this.toElementArray(u);this._subscribeScrollElements(l);const g=this.lenisInstance.options.wrapper===window?null:this.lenisInstance.options.wrapper;this.IOTriggerInstance=new Gn({scrollElements:[...this.triggeredScrollElements],root:g,rootMargin:this.triggerRootMargin,IORaf:!1}),this.IORafInstance=new Gn({scrollElements:[...this.RAFScrollElements],root:g,rootMargin:this.rafRootMargin,IORaf:!0})}destroy(){this.IOTriggerInstance.destroy(),this.IORafInstance.destroy(),this._unsubscribeAllScrollElements()}onResize({currentScroll:u}){for(const l of this.RAFScrollElements)l.onResize({currentScroll:u})}onRender({currentScroll:u,smooth:l}){for(const g of this.scrollElementsToUpdate)g.onRender({currentScroll:u,smooth:l})}removeScrollElements(u){const l=u.querySelectorAll("[data-scroll]");if(!l.length)return;const g=new Set(Array.from(l));for(let m=0;m<this.triggeredScrollElements.length;m++){const i=this.triggeredScrollElements[m];g.has(i.$el)&&(this.IOTriggerInstance.unobserve(i.$el),this.triggeredScrollElements.splice(m,1))}for(let m=0;m<this.RAFScrollElements.length;m++){const i=this.RAFScrollElements[m];g.has(i.$el)&&(this.IORafInstance.unobserve(i.$el),this.RAFScrollElements.splice(m,1))}l.forEach(m=>{const i=this.scrollElementsToUpdate.find(a=>a.$el===m),s=this.scrollElements.find(a=>a.$el===m);i&&this._unsubscribeElementUpdate(i),s&&(this.scrollElements=this.scrollElements.filter(a=>a.id!=s.id))})}addScrollElements(u){const l=u.querySelectorAll("[data-scroll]"),g=[];this.scrollElements.forEach(s=>{g.push(s.id)});const m=Math.max(...g,0)+1,i=this.toElementArray(l);this._subscribeScrollElements(i,m,!0)}_subscribeScrollElements(u,l=0,g=!1){for(let m=0;m<u.length;m++){const i=u[m],s=this._checkRafNeeded(i),a=new Er({$el:i,id:l+m,scrollOrientation:this.scrollOrientation,lenisInstance:this.lenisInstance,subscribeElementUpdateFn:this._subscribeElementUpdate.bind(this),unsubscribeElementUpdateFn:this._unsubscribeElementUpdate.bind(this),needRaf:s});this.scrollElements.push(a),s?(this.RAFScrollElements.push(a),g&&(this.IORafInstance.scrollElements.push(a),this.IORafInstance.observe(a.$el))):(this.triggeredScrollElements.push(a),g&&(this.IOTriggerInstance.scrollElements.push(a),this.IOTriggerInstance.observe(a.$el)))}}_unsubscribeAllScrollElements(){for(const u of this.scrollElements)u.destroy();this.scrollElements=[],this.RAFScrollElements=[],this.triggeredScrollElements=[],this.scrollElementsToUpdate=[]}_subscribeElementUpdate(u){this.scrollElementsToUpdate.push(u)}_unsubscribeElementUpdate(u){this.scrollElementsToUpdate=this.scrollElementsToUpdate.filter(l=>l.id!=u.id)}toElementArray(u){return Array.from(u)}_checkRafNeeded(u){let l=[...zr];const g=m=>{l=l.filter(i=>i!==m)};if(u.dataset.scrollOffset){if(u.dataset.scrollOffset.split(",").map(m=>m.replace("%","").trim()).join(",")!=="0,0")return!0;g("scrollOffset")}else g("scrollOffset");if(u.dataset.scrollPosition){if(u.dataset.scrollPosition.trim()!=="top,bottom")return!0;g("scrollPosition")}else g("scrollPosition");if(u.dataset.scrollSpeed&&!isNaN(parseFloat(u.dataset.scrollSpeed)))return!0;g("scrollSpeed");for(const m of l)if(m in u.dataset)return!0;return!1}}class Ar{constructor({lenisOptions:u={},triggerRootMargin:l,rafRootMargin:g,autoStart:m=!0,scrollCallback:i=()=>{},initCustomTicker:s,destroyCustomTicker:a}={}){this.rafPlaying=void 0,this.lenisInstance=null,this.coreInstance=null,this.lenisOptions=void 0,this.triggerRootMargin=void 0,this.rafRootMargin=void 0,this.rafInstance=void 0,this.autoStart=void 0,this.isTouchDevice=void 0,this.initCustomTicker=void 0,this.destroyCustomTicker=void 0,this._onRenderBind=void 0,this._onResizeBind=void 0,this._onScrollToBind=void 0,this._originalOnContentResize=void 0,this._originalOnWrapperResize=void 0,window.locomotiveScrollVersion="5.0.0",Object.assign(this,{lenisOptions:u,triggerRootMargin:l,rafRootMargin:g,autoStart:m,scrollCallback:i,initCustomTicker:s,destroyCustomTicker:a}),this._onRenderBind=this._onRender.bind(this),this._onScrollToBind=this._onScrollTo.bind(this),this._onResizeBind=this._onResize.bind(this),this.rafPlaying=!1,this.isTouchDevice="ontouchstart"in window||navigator.maxTouchPoints>0,this._init()}_init(){this.lenisInstance=new Mr(xi({},this.lenisOptions)),this.scrollCallback&&this.lenisInstance.on("scroll",this.scrollCallback),document.documentElement.setAttribute("data-scroll-orientation",this.lenisInstance.options.orientation),requestAnimationFrame(()=>{this.coreInstance=new Or({$el:this.lenisInstance.rootElement,triggerRootMargin:this.triggerRootMargin,rafRootMargin:this.rafRootMargin,scrollOrientation:this.lenisInstance.options.orientation,lenisInstance:this.lenisInstance}),this._bindEvents(),this.initCustomTicker&&!this.destroyCustomTicker?console.warn("init
1CustomTicker callback is declared, but destroyCustomTicker is not. Please pay attention. It could cause trouble."):!this.initCustomTicker&&this.destroyCustomTicker&&console.warn("destroyCustomTicker callback is declared, but initCustomTicker is not. Please pay attention. It could cause trouble."),this.autoStart&&this.start()})}destroy(){var u;this.stop(),this._unbindEvents(),(u=this.lenisInstance)==null||u.destroy(),requestAnimationFrame(()=>{var l;(l=this.coreInstance)==null||l.destroy()})}_bindEvents(){this._bindScrollToEvents(),this.lenisInstance&&(this._originalOnContentResize=this.lenisInstance.dimensions.onContentResize.bind(this.lenisInstance.dimensions),this._originalOnWrapperResize=this.lenisInstance.dimensions.onWrapperResize.bind(this.lenisInstance.dimensions),this.lenisInstance.dimensions.onContentResize=()=>{var u;(u=this._originalOnContentResize)==null||u.call(this),this._onResizeBind()},this.lenisInstance.dimensions.onWrapperResize=()=>{var u;(u=this._originalOnWrapperResize)==null||u.call(this),this._onResizeBind()})}_unbindEvents(){this._unbindScrollToEvents(),this.lenisInstance&&(this._originalOnContentResize&&(this.lenisInstance.dimensions.onContentResize=this._originalOnContentResize),this._originalOnWrapperResize&&(this.lenisInstance.dimensions.onWrapperResize=this._originalOnWrapperResize))}_bindScrollToEvents(u){var l;const g=u||((l=this.lenisInstance)==null?void 0:l.rootElement),m=g?.querySelectorAll("[data-scroll-to]");m?.length&&m.forEach(i=>{i.addEventListener("click",this._onScrollToBind,!1)})}_unbindScrollToEvents(u){var l;const g=u||((l=this.lenisInstance)==null?void 0:l.rootElement),m=g?.querySelectorAll("[data-scroll-to]");m?.length&&m.forEach(i=>{i.removeEventListener("click",this._onScrollToBind,!1)})}_onResize(){var u,l,g;(u=this.coreInstance)==null||u.onResize({currentScroll:(l=(g=this.lenisInstance)==null?void 0:g.scroll)!=null?l:0,smooth:!this.isTouchDevice})}_onRender(){var u,l,g,m;(u=this.lenisInstance)==null||u.raf(Date.now()),(l=this.coreInstance)==null||l.onRender({currentScroll:(g=(m=this.lenisInstance)==null?void 0:m.scroll)!=null?g:0,smooth:!this.isTouchDevice})}_onScrollTo(u){var l,g;u.preventDefault();const m=(l=u.currentTarget)!=null?l:null;if(!m)return;const i=m.getAttribute("data-scroll-to-href")||m.getAttribute("href"),s=m.getAttribute("data-scroll-to-offset")||0,a=m.getAttribute("data-scroll-to-duration")||((g=this.lenisInstance)==null?void 0:g.options.duration);i&&this.scrollTo(i,{offset:typeof s=="string"?parseInt(s):s,duration:typeof a=="string"?parseInt(a):a})}start(){var u;this.rafPlaying||((u=this.lenisInstance)==null||u.start(),this.rafPlaying=!0,this.initCustomTicker?this.initCustomTicker(this._onRenderBind):this._raf())}stop(){var u;this.rafPlaying&&((u=this.lenisInstance)==null||u.stop(),this.rafPlaying=!1,this.destroyCustomTicker?this.destroyCustomTicker(this._onRenderBind):this.rafInstance&&cancelAnimationFrame(this.rafInstance))}removeScrollElements(u){var l;u?(this._unbindScrollToEvents(u),(l=this.coreInstance)==null||l.removeScrollElements(u)):console.error("Please provide a DOM Element as $oldContainer")}addScrollElements(u){var l;u?((l=this.coreInstance)==null||l.addScrollElements(u),requestAnimationFrame(()=>{this._bindScrollToEvents(u)})):console.error("Please provide a DOM Element as $newContainer")}resize(){this._onResizeBind()}scrollTo(u,l){var g;(g=this.lenisInstance)==null||g.scrollTo(u,{offset:l?.offset,lerp:l?.lerp,duration:l?.duration,immediate:l?.immediate,lock:l?.lock,force:l?.force,easing:l?.easing,onComplete:l?.onComplete})}_raf(){this._onRenderBind(),this.rafInstance=requestAnimationFrame(()=>this._raf())}}let pt=null;const Be=new Set,Ir=[".site-header__nav",".nav-primary",".languages-overlay",".search-overlay",".wp-block-table.is-style-responsive-scroll",".slick-slider",".wp-block-sc-exhibition-archive-filters",".wp-block-sc-henkiloarkisto__filters","[data-lenis-prevent]"],Br=["is-nav-open","is-lang-open","is-search-open"];
1function Rr(){document.querySelectorAll(Ir.join(", ")).forEach(c=>{c.setAttribute("data-lenis-prevent","")})}function Zr(){return Br.some(c=>document.body.classList.contains(c))}function $r(){if(document.body.style.position==="fixed")return;const c=window.scrollY||document.documentElement.scrollTop||0;document.body.dataset.scrollY=String(c),document.body.style.position="fixed",document.body.style.top=`-${c}px`,document.body.style.width="100%"}function Dr(){if(document.body.style.position!=="fixed")return;const c=Number.parseInt(document.body.dataset.scrollY||"0",10)||0;document.body.style.position="",document.body.style.top="",document.body.style.width="",delete document.body.dataset.scrollY,window.scrollTo(0,c)}function Re(){const c=Zr();if(document.documentElement.classList.toggle("is-scroll-locked",c),c?$r():Dr(),!!pt){if(c){pt.stop();return}pt.start()}}function Nr(){Re(),new MutationObserver(Re).observe(document.body,{attributes:!0,attributeFilter:["class"]})}function Hr(){Be.forEach(c=>c())}function hs(){return pt!==null}function cs(c){return Be.add(c),()=>{Be.delete(c)}}function us(c,u={}){if(pt){pt.scrollTo(c,u);return}const l=typeof c=="string"?document.querySelector(c):c;if(!l)return;const g=u.offset||0,m=l.getBoundingClientRect().top+window.scrollY+g;window.scrollTo({top:m,behavior:"smooth"})}let Kn=!1;function Fr(){Rr(),Kn||(Nr(),Kn=!0);const c=window.matchMedia("(prefers-reduced-motion: no-preference)");!c.matches||pt||(pt=new Ar({lenisOptions:{lerp:.1,smoothWheel:!0},scrollCallback:Hr}),document.documentElement.classList.add("has-smooth-scroll"),Re(),window.dispatchEvent(new CustomEvent("wam:smooth-scroll:ready")),c.addEventListener("change",u=>{!u.matches&&pt&&(pt.destroy(),pt=null,Be.clear(),document.documentElement.classList.remove("has-smooth-scroll"),Re())}))}var ce={exports:{}},Ur=ce.exports,Jn;function Wr(){return Jn||(Jn=1,(function(c,u){(function(l,g){g(u)})(Ur,function(l){var g=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(i){L.Util.setOptions(this,i),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var s=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,s?this._withAnimation:this._noAnimation),this._markerCluster=s?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(i){if(i instanceof L.LayerGroup)return this.addLayers([i]);if(!i.getLatLng)return this._nonPointGroup.addLayer(i),this.fire("layeradd",{layer:i}),this;if(!this._map)return this._needsClustering.push(i),this.fire("layeradd",{layer:i}),this;if(this.hasLayer(i))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(i,this._maxZoom),this.fire("layeradd",{layer:i}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var s=i,a=this._zoom;if(i.__parent)for(;s.__parent._zoom>=a;)s=s.__parent;return this._currentShownBounds.contains(s.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(i,s):this._animationAddLayerNonAnimated(i,s)),this},removeLayer:function(i){return i instanceof L.LayerGroup?this.removeLayers([i]):i.getLatLng?this._map?i.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(i)),this._removeLayer(i,!0),this.fire("layerremove",{layer:i}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),i.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(i)&&(this._featureGroup.removeLayer(i),i.clusterShow&&i.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,i)&&this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}),this):(this._nonPointGroup.removeLayer(i),this.fire("layerremove",{layer:i}),this)},addLayers:function(i,s){if(!L.Util.isArray(i))return this.addLayer(i);var a=this._featureGroup,r=this._nonPointGroup,p=this.options.chunkedLoading,d=this.options.chunkInterval,_=this.options.chunkProgress,y=i.length,w=0,b=!0,T;if(this._map){var E=new Date().getTime(),M=L.bind(function(){var Z=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();w<y;w++){if(p&&w%200===0){var tt=new Date().getTime()-Z;if(tt>d)break}if(T=i[w],T instanceof L.LayerGroup){b&&(i=i.slice(),b=!1),this._extractNonGroupLayers(T,i),y=i.length;continue}if(!T.getLatLng){r.addLayer(T),s||this.fire("layeradd",{layer:T});continue}if(!this.hasLayer(T)&&(this._addLayer(T,this._maxZoom),s||this.fire("layeradd",{layer:T}),T.__parent&&T.__parent.getChildCount()===2)){var G=T.__parent.getAllChildMarkers(),ut=G[0]===T?G[1]:G[0];a.removeLayer(ut)}}_&&_(w,y,new Date().getTime()-E),w===y?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(
1M,this.options.chunkDelay)},this);M()}else for(var $=this._needsClustering;w<y;w++){if(T=i[w],T instanceof L.LayerGroup){b&&(i=i.slice(),b=!1),this._extractNonGroupLayers(T,i),y=i.length;continue}if(!T.getLatLng){r.addLayer(T);continue}this.hasLayer(T)||$.push(T)}return this},removeLayers:function(i){var s,a,r=i.length,p=this._featureGroup,d=this._nonPointGroup,_=!0;if(!this._map){for(s=0;s<r;s++){if(a=i[s],a instanceof L.LayerGroup){_&&(i=i.slice(),_=!1),this._extractNonGroupLayers(a,i),r=i.length;continue}this._arraySplice(this._needsClustering,a),d.removeLayer(a),this.hasLayer(a)&&this._needsRemoving.push({layer:a,latlng:a._latlng}),this.fire("layerremove",{layer:a})}return this}if(this._unspiderfy){this._unspiderfy();var y=i.slice(),w=r;for(s=0;s<w;s++){if(a=y[s],a instanceof L.LayerGroup){this._extractNonGroupLayers(a,y),w=y.length;continue}this._unspiderfyLayer(a)}}for(s=0;s<r;s++){if(a=i[s],a instanceof L.LayerGroup){_&&(i=i.slice(),_=!1),this._extractNonGroupLayers(a,i),r=i.length;continue}if(!a.__parent){d.removeLayer(a),this.fire("layerremove",{layer:a});continue}this._removeLayer(a,!0,!0),this.fire("layerremove",{layer:a}),p.hasLayer(a)&&(p.removeLayer(a),a.clusterShow&&a.clusterShow())}return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(i){i.off(this._childMarkerEventHandlers,this),delete i.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var i=new L.LatLngBounds;this._topClusterLevel&&i.extend(this._topClusterLevel._bounds);for(var s=this._needsClustering.length-1;s>=0;s--)i.extend(this._needsClustering[s].getLatLng());return i.extend(this._nonPointGroup.getBounds()),i},eachLayer:function(i,s){var a=this._needsClustering.slice(),r=this._needsRemoving,p,d,_;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(a),d=a.length-1;d>=0;d--){for(p=!0,_=r.length-1;_>=0;_--)if(r[_].layer===a[d]){p=!1;break}p&&i.call(s,a[d])}this._nonPointGroup.eachLayer(i,s)},getLayers:function(){var i=[];return this.eachLayer(function(s){i.push(s)}),i},getLayer:function(i){var s=null;return i=parseInt(i,10),this.eachLayer(function(a){L.stamp(a)===i&&(s=a)}),s},hasLayer:function(i){if(!i)return!1;var s,a=this._needsClustering;for(s=a.length-1;s>=0;s--)if(a[s]===i)return!0;for(a=this._needsRemoving,s=a.length-1;s>=0;s--)if(a[s].layer===i)return!1;return!!(i.__parent&&i.__parent._group===this)||this._nonPointGroup.hasLayer(i)},zoomToShowLayer:function(i,s){var a=this._map;typeof s!="function"&&(s=function(){});var r=function(){(a.hasLayer(i)||a.hasLayer(i.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",r,this),this.off("animationend",r,this),a.hasLayer(i)?s():i.__parent._icon&&(this.once("spiderfied",s,this),i.__parent.spiderfy()))};i._icon&&this._map.getBounds().contains(i.getLatLng())?s():i.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(i.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),i.__parent.zoomToBounds())},onAdd:function(i){this._map=i;var s,a,r;if(!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(i),this._nonPointGroup.addTo(i),this._gridClusters||this._generateInitialClusters(),this._maxLat=i.options.crs.projection.MAX_LATITUDE,s=0,a=this._needsRemoving.length;s<a;s++)r=this._needsRemoving[s],r.newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(s=0,a=this._needsRemoving.length;s<a;s++)r=this._needsRemoving[s],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),a=this._needsClustering,this._needsClustering=[],this.addLayers(a,!0)},onRemove:function(i){i.off("zoomend",this._zoomEnd,this),i.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(i){for(var s=i;s&&!s._icon;)s=s.__parent;return s||null},_arraySplice:function(i,s){for(var a=i.length-1;a>=0;a--)if(i[a]===s)return i.splice(a,1),!0},_removeFromGridUnclustered:function(i,s){for(var a=this._map,r=this._gridUnclustered,p=Math.floor(this._map.getMinZoom());s>=p&&r[s].removeObject(i,a.project(i.getLatLng(),s));s--);},_childMarkerDragStart:function(i){i.target.__dragStart=i.target._latlng},_childMarkerMoved:function(i){if(!this._ignoreMove&&!i.target.__dragStart){var s=i.target._popup&&i.target._popup.isOpen();this._moveChild(i.target,i.oldLatLng,i.latlng),s&&i.target.openPopup()}},_moveChild:function(i,s,a){i._latlng=s,this.removeLayer(i),i._latlng=a,this.addLayer(i)},_childMarkerDragEnd:function(i){var s=i.target.__dragStart;delete i.target.__dragStart,s&&this._moveChild(i.target,s,i.target._latlng)},_removeLayer:function(i,s,a){var r=this._gridClusters,p=this._gridUnclustered,d=this._featureGroup,_=this._map,y=Math.floor(this._map.getMinZoom());s&&this._removeFromGridUnclustered(i,this._maxZoom);var w=i.__parent,b=w._markers,T;for(this._arraySplice(b,i);w&&(w._childCount--,w._boundsNeedUpdate=!0,!(w._zoom<y));)s&&w._childCount<=1?(T=w._markers[0]===i?w._markers[1]:w._markers[0],r[w._zoom].removeObject(w,_.project(w._cLatLng,w._zoom)),p[w._zoom].addObject(T,_.project(T.getLatLng(),w._zoom)),this._arraySplice(w.__parent._childClusters,w),w.__parent._markers.push(T),T.__parent=w.__parent,w._icon&&(d.removeLayer(w),a||d.addLayer(T))):w._iconNeedsUpdate=!0,w=w.__parent;delete i.__parent},_isOrIsParent:function(i,s){for(;s;){if(i===s)return!0;s=s.parentNode}return!1},fire:function(i,s,a){if(s&&s.layer instanceof L.MarkerCluster){if(s.originalEvent&&this._isOrIsParent(s.layer._icon,s.originalEvent.relatedTarget))return;i="cluster"+i}L.FeatureGroup.prototype.fire.call(this,i,s,a)},listens:function(i,s){return L.FeatureGroup.prototype.listens.call(this,i,s)||L.FeatureGroup.prototype.listens.call(this,"cluster"+i,s)},_defaultIconCreateFunction:function(i){var s=i.getChildCount(),a=" marker-cluster-";return s<10?a+="small":s<100?a+="medium":a+="large",new L.DivIcon({html:"<div><span>"+s+"</span></div>",className:"marker-cluster"+a,iconSize:new L.Point(40,40)})},_bindEvents:function(){var i=this._map,s=this.options.spiderfyOnMaxZoom,a=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,p=this.options.spiderfyOnEveryZoom;(s||r||p)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),a&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),i.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(i){var s=i.layer,a=s;if(!(i.type==="clusterkeypress"&&i.originalEvent&&i.originalEvent.keyCode!==13)){for(;a._childClusters.length===1;)a=a._childClusters[0];a._zoom===this._maxZoom&&a._childCount===s._childCount&&this.options.spiderfyOnMaxZoom?s.spiderfy():this.options.zoomToBoundsOnClick&&s.zoomToBounds(),this.options.spiderfyOnEveryZoom&&s.spiderfy(),i.originalEvent&&i.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(i){var s=this._map;this._inZoomAnimation||(this._shownPolygon&&s.removeLayer(this._shownPolygon),i.layer.getChildCount()>2&&i.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(i.layer.getConvexHull(),this.options.polygonOptions),s.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var i=this.options.spiderfyOnMaxZoom,s=this.options.showCoverageOnHover,a=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,p=this._map;(i||a||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),s&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),p.off("zoomend",this._hideCoverage,this))}
1,_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var i=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,i),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),i),this._currentShownBounds=i}},_generateInitialClusters:function(){var i=Math.ceil(this._map.getMaxZoom()),s=Math.floor(this._map.getMinZoom()),a=this.options.maxClusterRadius,r=a;typeof a!="function"&&(r=function(){return a}),this.options.disableClusteringAtZoom!==null&&(i=this.options.disableClusteringAtZoom-1),this._maxZoom=i,this._gridClusters={},this._gridUnclustered={};for(var p=i;p>=s;p--)this._gridClusters[p]=new L.DistanceGrid(r(p)),this._gridUnclustered[p]=new L.DistanceGrid(r(p));this._topClusterLevel=new this._markerCluster(this,s-1)},_addLayer:function(i,s){var a=this._gridClusters,r=this._gridUnclustered,p=Math.floor(this._map.getMinZoom()),d,_;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(i),i.on(this._childMarkerEventHandlers,this);s>=p;s--){d=this._map.project(i.getLatLng(),s);var y=a[s].getNearObject(d);if(y){y._addChild(i),i.__parent=y;return}if(y=r[s].getNearObject(d),y){var w=y.__parent;w&&this._removeLayer(y,!1);var b=new this._markerCluster(this,s,y,i);a[s].addObject(b,this._map.project(b._cLatLng,s)),y.__parent=b,i.__parent=b;var T=b;for(_=s-1;_>w._zoom;_--)T=new this._markerCluster(this,_,T),a[_].addObject(T,this._map.project(y.getLatLng(),_));w._addChild(T),this._removeFromGridUnclustered(y,s);return}r[s].addObject(i,d)}this._topClusterLevel._addChild(i),i.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(i){i instanceof L.MarkerCluster&&i._iconNeedsUpdate&&i._updateIcon()})},_enqueue:function(i){this._queue.push(i),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var i=0;i<this._queue.length;i++)this._queue[i].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var i=Math.round(this._map._zoom);this._processQueue(),this._zoom<i&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,i)):this._zoom>i?(this._animationStart(),this._animationZoomOut(this._zoom,i)):this._moveEnd()},_getExpandedVisibleBounds:function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(i){var s=this._maxLat;return s!==void 0&&(i.getNorth()>=s&&(i._northEast.lat=1/0),i.getSouth()<=-s&&(i._southWest.lat=-1/0)),i},_animationAddLayerNonAnimated:function(i,s){if(s===i)this._featureGroup.addLayer(i);else if(s._childCount===2){s._addToMap();var a=s.getAllChildMarkers();this._featureGroup.removeLayer(a[0]),this._featureGroup.removeLayer(a[1])}else s._updateIcon()},_extractNonGroupLayers:function(i,s){var a=i.getLayers(),r=0,p;for(s=s||[];r<a.length;r++){if(p=a[r],p instanceof L.LayerGroup){this._extractNonGroupLayers(p,s);continue}s.push(p)}return s},_overrideMarkerIcon:function(i){var s=i.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[i]}});return s}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(i,s){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),i),this._topClusterLevel._recursivelyAddChildrenToMap(null,s,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(i,s){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),i),this._topClusterLevel._recursivelyAddChildrenToMap(null,s,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(i,s){this._animationAddLayerNonAnimated(i,s)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(i,s){var a=this._getExpandedVisibleBounds(),r=this._featureGroup,p=Math.floor(this._map.getMinZoom()),d;this._ignoreMove=!0,this._topClusterLevel._recursively(a,i,p,function(_){var y=_._latlng,w=_._markers,b;for(a.contains(y)||(y=null),_._isSingleParent()&&i+1===s?(r.removeLayer(_),_._recursivelyAddChildrenToMap(null,s,a)):(_.clusterHide(),_._recursivelyAddChildrenToMap(y,s,a)),d=w.length-1;d>=0;d--)b=w[d],a.contains(b._latlng)||r.removeLayer(b)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(a,s),r.eachLayer(function(_){!(_ instanceof L.MarkerCluster)&&_._icon&&_.clusterShow()}),this._topClusterLevel._recursively(a,i,s,function(_){_._recursivelyRestoreChildPositions(s)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(a,i,p,function(_){r.removeLayer(_),_.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(i,s){this._animationZoomOutSingle(this._topClusterLevel,i-1,s),this._topClusterLevel._recursivelyAddChildrenToMap(null,s,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),i,this._getExpandedVisibleBounds())},_animationAddLayer:function(i,s){var a=this,r=this._featureGroup;r.addLayer(i),s!==i&&(s._childCount>2?(s._updateIcon(),this._forceLayout(),this._animationStart(),i._setPos(this._map.latLngToLayerPoint(s.getLatLng())),i.clusterHide(),this._enqueue(function(){r.removeLayer(i),i.clusterShow(),a._animationEnd()})):(this._forceLayout(),a._animationStart(),a._animationZoomOutSingle(s,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(i,s,a){var r=this._getExpandedVisibleBounds(),p=Math.floor(this._map.getMinZoom());i._recursivelyAnimateChildrenInAndAddSelfToMap(r,p,s+1,a);var d=this;this._forceLayout(),i._recursivelyBecomeVisible(r,a),this._enqueue(function(){if(i._childCount===1){var _=i._markers[0];this._ignoreMove=!0,_.setLatLng(_.getLatLng()),this._ignoreMove=!1,_.clusterShow&&_.clusterShow()}else i._recursively(r,a,p,function(y){y._recursivelyRemoveChildrenFromMap(r,p,s+1)});d._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(i){return new L.MarkerClusterGroup(i)};
vendor: 1,043 bytes, line 1
1var m=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(i,s,a,r){L.Marker.prototype.initialize.call(this,a?a._cLatLng||a.getLatLng():new L.LatLng(0,0),{icon:this,pane:i.options.clusterPane}),this._group=i,this._zoom=s,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,a&&this._addChild(a),r&&this._addChild(r)},getAllChildMarkers:function(i,s){i=i||[];for(var a=this._childClusters.length-1;a>=0;a--)this._childClusters[a].getAllChildMarkers(i,s);for(var r=this._markers.length-1;r>=0;r--)s&&this._markers[r].__dragStart||i.push(this._markers[r]);return i},getChildCount:function(){return this._childCount},zoomToBounds:function(i){for(var s=this._childClusters.slice(),a=this._group._map,r=a.getBoundsZoom(this._bounds),p=this._zoom+1,d=a.getZoom(),_;s.length>0&&r>p;){p++;var y=[];for(_=0;_<s.length;_++)y=y.concat(s[_]._childClusters);s=y}r>p?this._group._map.setView(this._latlng,p):r<=d?this._group._map.setVie
1w(this._latlng,d+1):this._group._map.fitBounds(this._bounds,i)},getBounds:function(){var i=new L.LatLngBounds;return i.extend(this._bounds),i},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(i,s){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(i),i instanceof L.MarkerCluster?(s||(this._childClusters.push(i),i.__parent=this),this._childCount+=i._childCount):(s||this._markers.push(i),this._childCount++),this.__parent&&this.__parent._addChild(i,!0)},_setClusterCenter:function(i){this._cLatLng||(this._cLatLng=i._cLatLng||i._latlng)},_resetBounds:function(){var i=this._bounds;i._southWest&&(i._southWest.lat=1/0,i._southWest.lng=1/0),i._northEast&&(i._northEast.lat=-1/0,i._northEast.lng=-1/0)},_recalculateBounds:function(){var i=this._markers,s=this._childClusters,a=0,r=0,p=this._childCount,d,_,y,w;if(p!==0){for(this._resetBounds(),d=0;d<i.length;d++)y=i[d]._latlng,this._bounds.extend(y),a+=y.lat,r+=y.lng;for(d=0;d<s.length;d++)_=s[d],_._boundsNeedUpdate&&_._recalculateBounds(),this._bounds.extend(_._bounds),y=_._wLatLng,w=_._childCount,a+=y.lat*w,r+=y.lng*w;this._latlng=this._wLatLng=new L.LatLng(a/p,r/p),this._boundsNeedUpdate=!1}},_addToMap:function(i){i&&(this._backupLatlng=this._latlng,this.setLatLng(i)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(i,s,a){this._recursively(i,this._group._map.getMinZoom(),a-1,function(r){var p=r._markers,d,_;for(d=p.length-1;d>=0;d--)_=p[d],_._icon&&(_._setPos(s),_.clusterHide())},function(r){var p=r._childClusters,d,_;for(d=p.length-1;d>=0;d--)_=p[d],_._icon&&(_._setPos(s),_.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(i,s,a,r){this._recursively(i,r,s,function(p){p._recursivelyAnimateChildrenIn(i,p._group._map.latLngToLayerPoint(p.getLatLng()).round(),a),p._isSingleParent()&&a-1===r?(p.clusterShow(),p._recursivelyRemoveChildrenFromMap(i,s,a)):p.clusterHide(),p._addToMap()})},_recursivelyBecomeVisible:function(i,s){this._recursively(i,this._group._map.getMinZoom(),s,null,function(a){a.clusterShow()})},_recursivelyAddChildrenToMap:function(i,s,a){this._recursively(a,this._group._map.getMinZoom()-1,s,function(r){if(s!==r._zoom)for(var p=r._markers.length-1;p>=0;p--){var d=r._markers[p];a.contains(d._latlng)&&(i&&(d._backupLatlng=d.getLatLng(),d.setLatLng(i),d.clusterHide&&d.clusterHide()),r._group._featureGroup.addLayer(d))}},function(r){r._addToMap(i)})},_recursivelyRestoreChildPositions:function(i){for(var s=this._markers.length-1;s>=0;s--){var a=this._markers[s];a._backupLatlng&&(a.setLatLng(a._backupLatlng),delete a._backupLatlng)}if(i-1===this._zoom)for(var r=this._childClusters.length-1;r>=0;r--)this._childClusters[r]._restorePosition();else for(var p=this._childClusters.length-1;p>=0;p--)this._childClusters[p]._recursivelyRestoreChildPositions(i)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(i,s,a,r){var p,d;this._recursively(i,s-1,a-1,function(_){for(d=_._markers.length-1;d>=0;d--)p=_._markers[d],(!r||!r.contains(p._latlng))&&(_._group._featureGroup.removeLayer(p),p.clusterShow&&p.clusterShow())},function(_){for(d=_._childClusters.length-1;d>=0;d--)p=_._childClusters[d],(!r||!r.contains(p._latlng))&&(_._group._featureGroup.removeLayer(p),p.clusterShow&&p.clusterShow())})},_recursively:function(i,s,a,r,p){var d=this._childClusters,_=this._zoom,y,w;if(s<=_&&(r&&r(this),p&&_===a&&p(this)),_<s||_<a)for(y=d.length-1;y>=0;y--)w=d[y],w._boundsNeedUpdate&&w._recalculateBounds(),i.intersects(w._bounds)&&w._recursively(i,s,a,r,p)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var i=this.options.opacity;return this.setOpacity(0),this.options.opacity=i,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(i){this._cellSize=i,this._sqCellSize=i*i,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(i,s){var a=this._getCoord(s.x),r=this._getCoord(s.y),p=this._grid,d=p[r]=p[r]||{},_=d[a]=d[a]||[],y=L.Util.stamp(i);this._objectPoint[y]=s,_.push(i)},updateObject:function(i,s){this.removeObject(i),this.addObject(i,s)},removeObject:function(i,s){var a=this._getCoord(s.x),r=this._getCoord(s.y),p=this._grid,d=p[r]=p[r]||{},_=d[a]=d[a]||[],y,w;for(delete this._objectPoint[L.Util.stamp(i)],y=0,w=_.length;y<w;y++)if(_[y]===i)return _.splice(y,1),w===1&&delete d[a],!0},eachObject:function(i,s){var a,r,p,d,_,y,w,b=this._grid;for(a in b){_=b[a];for(r in _)for(y=_[r],p=0,d=y.length;p<d;p++)w=i.call(s,y[p]),w&&(p--,d--)}},getNearObject:function(i){var s=this._getCoord(i.x),a=this._getCoord(i.y),r,p,d,_,y,w,b,T,E=this._objectPoint,M=this._sqCellSize,$=null;for(r=a-1;r<=a+1;r++)if(_=this._grid[r],_){for(p=s-1;p<=s+1;p++)if(y=_[p],y)for(d=0,w=y.length;d<w;d++)b=y[d],T=this._sqDist(E[L.Util.stamp(b)],i),(T<M||T<=M&&$===null)&&(M=T,$=b)}return $},_getCoord:function(i){var s=Math.floor(i/this._cellSize);return isFinite(s)?s:i},_sqDist:function(i,s){var a=s.x-i.x,r=s.y-i.y;return a*a+r*r}},(function(){L.QuickHull={getDistant:function(i,s){var a=s[1].lat-s[0].lat,r=s[0].lng-s[1].lng;return r*(i.lat-s[0].lat)+a*(i.lng-s[0].lng)},findMostDistantPointFromBaseLine:function(i,s){var a=0,r=null,p=[],d,_,y;for(d=s.length-1;d>=0;d--){if(_=s[d],y=this.getDistant(_,i),y>0)p.push(_);else continue;y>a&&(a=y,r=_)}return{maxPoint:r,newPoints:p}},buildConvexHull:function(i,s){var a=[],r=this.findMostDistantPointFromBaseLine(i,s);return r.maxPoint?(a=a.concat(this.buildConvexHull([i[0],r.maxPoint],r.newPoints)),a=a.concat(this.buildConvexHull([r.maxPoint,i[1]],r.newPoints)),a):[i[0]]},getConvexHull:function(i){var s=!1,a=!1,r=!1,p=!1,d=null,_=null,y=null,w=null,b=null,T=null,E;for(E=i.length-1;E>=0;E--){var M=i[E];(s===!1||M.lat>
vendor: 4,680 bytes, line 1
1s)&&(d=M,s=M.lat),(a===!1||M.lat<a)&&(_=M,a=M.lat),(r===!1||M.lng>r)&&(y=M,r=M.lng),(p===!1||M.lng<p)&&(w=M,p=M.lng)}a!==s?(T=_,b=d):(T=w,b=y);var $=[].concat(this.buildConvexHull([T,b],i),this.buildConvexHull([b,T],i));return $}}})(),L.MarkerCluster.include({getConvexHull:function(){var i=this.getAllChildMarkers(),s=[],a,r;for(r=i.length-1;r>=0;r--)a=i[r].getLatLng(),s.push(a);return L.QuickHull.getConvexHull(s)}}),L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var i=this.getAllChildMarkers(null,!0),s=this._group,a=s._map,r=a.latLngToLayerPoint(this._latlng),p;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?p=this._group.options.spiderfyShapePositions(i.length,r):i.length>=this._circleSpiralSwitchover?p=this._generatePointsSpiral(i.length,r):(r.y+=10,p=this._generatePointsCircle(i.length,r)),this._animationSpiderfy(i,p)}},unspiderfy:function(i){this._group._inZoomAnimation||(this._animationUnspiderfy(i),this._group._spiderfied=null)},_generatePointsCircle:function(i,s){var a=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+i),r=a/this._2PI,p=this._2PI/i,d=[],_,y;for(r=Math.max(r,35),d.length=i,_=0;_<i;_++)y=this._circleStartAngle+_*p,d[_]=new L.Point(s.x+r*Math.cos(y),s.y+r*Math.sin(y))._round();return d},_generatePointsSpiral:function(i,s){var a=this._group.options.spiderfyDistanceMultiplier,r=a*this._spiralLengthStart,p=a*this._spiralFootSeparation,d=a*this._spiralLengthFactor*this._2PI,_=0,y=[],w;for(y.length=i,w=i;w>=0;w--)w<i&&(y[w]=new L.Point(s.x+r*Math.cos(_),s.y+r*Math.sin(_))._round()),_+=p/r+w*5e-4,r+=d/_;return y},_noanimationUnspiderfy:function(){var i=this._group,s=i._map,a=i._featureGroup,r=this.getAllChildMarkers(null,!0),p,d;for(i._ignoreMove=!0,this.setOpacity(1),d=r.length-1;d>=0;d--)p=r[d],a.removeLayer(p),p._preSpiderfyLatlng&&(p.setLatLng(p._preSpiderfyLatlng),delete p._preSpiderfyLatlng),p.setZIndexOffset&&p.setZIndexOffset(0),p._spiderLeg&&(s.removeLayer(p._spiderLeg),delete p._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:r}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(i,s){var a=this._group,r=a._map,p=a._featureGroup,d=this._group.options.spiderLegPolylineOptions,_,y,w,b;for(a._ignoreMove=!0,_=0;_<i.length;_++)b=r.layerPointToLatLng(s[_]),y=i[_],w=new L.Polyline([this._latlng,b],d),r.addLayer(w),y._spiderLeg=w,y._preSpiderfyLatlng=y._latlng,y.setLatLng(b),y.setZIndexOffset&&y.setZIndexOffset(1e6),p.addLayer(y);this.setOpacity(.3),a._ignoreMove=!1,a.fire("spiderfied",{cluster:this,markers:i})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(i,s){var a=this,r=this._group,p=r._map,d=r._featureGroup,_=this._latlng,y=p.latLngToLayerPoint(_),w=L.Path.SVG,b=L.extend({},this._group.options.spiderLegPolylineOptions),T=b.opacity,E,M,$,Z,tt,G;for(T===void 0&&(T=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),w?(b.opacity=0,b.className=(b.className||"")+" leaflet-cluster-spider-leg"):b.opacity=T,r._ignoreMove=!0,E=0;E<i.length;E++)M=i[E],G=p.layerPointToLatLng(s[E]),$=new L.Polyline([_,G],b),p.addLayer($),M._spiderLeg=$,w&&(Z=$._path,tt=Z.getTotalLength()+.1,Z.style.strokeDasharray=tt,Z.style.strokeDashoffset=tt),M.setZIndexOffset&&M.setZIndexOffset(1e6),M.clusterHide&&M.clusterHide(),d.addLayer(M),M._setPos&&M._setPos(y);for(r._forceLayout(),r._animationStart(),E=i.length-1;E>=0;E--)G=p.layerPointToLatLng(s[E]),M=i[E],M._preSpiderfyLatlng=M._latlng,M.setLatLng(G),M.clusterShow&&M.clusterShow(),w&&($=M._spiderLeg,Z=$._path,Z.style.strokeDashoffset=0,$.setStyle({opacity:T}));this.setOpacity(.3),r._ignoreMove=!1,setTimeout(function(){r._animationEnd(),r.fire("spiderfied",{cluster:a,markers:i})},200)},_animationUnspiderfy:function(i){var s=this,a=this._group,r=a._map,p=a._featureGroup,d=i?r._latLngToNewLayerPoint(this._latlng,i.zoom,i.center):r.latLngToLayerPoint(this._latlng),_=this.getAllChildMarkers(null,!0),y=L.Path.SVG,w,b,T,E,M,$;for(a._ignoreMove=!0,a._animationStart(),this.setOpacity(1),b=_.length-1;b>=0;b--)w=_[b],w._preSpiderfyLatlng&&(w.closePopup(),w.setLatLng(w._preSpiderfyLatlng),delete w._preSpiderfyLatlng,$=!0,w._setPos&&(w._setPos(d),$=!1),w.clusterHide&&(w.clusterHide(),$=!1),$&&p.removeLayer(w),y&&(T=w._spiderLeg,E=T._path,M=E.getTotalLength()+.1,E.style.strokeDashoffset=M,T.setStyle({opacity:0}
1)));a._ignoreMove=!1,setTimeout(function(){var Z=0;for(b=_.length-1;b>=0;b--)w=_[b],w._spiderLeg&&Z++;for(b=_.length-1;b>=0;b--)w=_[b],w._spiderLeg&&(w.clusterShow&&w.clusterShow(),w.setZIndexOffset&&w.setZIndexOffset(0),Z>1&&p.removeLayer(w),r.removeLayer(w._spiderLeg),delete w._spiderLeg);a._animationEnd(),a.fire("unspiderfied",{cluster:s,markers:_})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(i){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(i))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(i){this._spiderfied&&this._spiderfied.unspiderfy(i)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(i){i._spiderLeg&&(this._featureGroup.removeLayer(i),i.clusterShow&&i.clusterShow(),i.setZIndexOffset&&i.setZIndexOffset(0),this._map.removeLayer(i._spiderLeg),delete i._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(i){return i?i instanceof L.MarkerClusterGroup?i=i._topClusterLevel.getAllChildMarkers():i instanceof L.LayerGroup?i=i._layers:i instanceof L.MarkerCluster?i=i.getAllChildMarkers():i instanceof L.Marker&&(i=[i]):i=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(i),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(i),this},_flagParentsIconsNeedUpdate:function(i){var s,a;for(s in i)for(a=i[s].__parent;a;)a._iconNeedsUpdate=!0,a=a.__parent},_refreshSingleMarkerModeMarkers:function(i){var s,a;for(s in i)a=i[s],this.hasLayer(a)&&a.setIcon(this._overrideMarkerIcon(a))}}),L.Marker.include({refreshIconOptions:function(i,s){var a=this.options.icon;return L.setOptions(a,i),this.setIcon(a),s&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),l.MarkerClusterGroup=g,l.MarkerCluster=m,Object.defineProperty(l,"__esModule",{value:!0})})})(ce,ce.exports)),ce.exports}Wr();var ue={exports:{}},jr=ue.exports,Qn;function qr(){return Qn||(Qn=1,(function(c,u){(function(l,g){g(u)})(jr,function(l){var g
vendor: 13,084 bytes, line 1
1={ar:{touch:"استخدم إصبعين لتحريك الخريطة",scroll:"‏استخدم ctrl + scroll لتصغير/تكبير الخريطة",scrollMac:"يمكنك استخدام ⌘ + التمرير لتكبير/تصغير الخريطة"},bg:{touch:"Използвайте два пръста, за да преместите картата",scroll:"Задръжте бутона Ctrl натиснат, докато превъртате, за да промените мащаба на картата",scrollMac:"Задръжте бутона ⌘ натиснат, докато превъртате, за да промените мащаба на картата"},bn:{touch:"মানচিত্রটিকে সরাতে দুটি আঙ্গুল ব্যবহার করুন",scroll:"ম্যাপ জুম করতে ctrl + scroll ব্যবহার করুন",scrollMac:"ম্যাপে জুম করতে ⌘ বোতাম টিপে স্ক্রল করুন"},ca:{touch:"Fes servir dos dits per moure el mapa",scroll:"Prem la tecla Control mentre et desplaces per apropar i allunyar el mapa",scrollMac:"Prem la tecla ⌘ mentre et desplaces per apropar i allunyar el mapa"},cs:{touch:"K posunutí mapy použijte dva prsty",scroll:"Velikost zobrazení mapy změňte podržením klávesy Ctrl a posouváním kolečka myši",scrollMac:"Velikost zobrazení mapy změníte podržením klávesy ⌘ a posunutím kolečka myši / touchpadu"},da:{touch:"Brug to fingre til at flytte kortet",scroll:"Brug ctrl + rullefunktionen til at zoome ind og ud på kortet",scrollMac:"Brug ⌘ + rullefunktionen til at zoome ind og ud på kortet"},de:{touch:"Verschieben der Karte mit zwei Fingern",scroll:"Verwende Strg+Scrollen zum Zoomen der Karte",scrollMac:"⌘"},el:{touch:"Χρησιμοποιήστε δύο δάχτυλα για μετακίνηση στον χάρτη",scroll:"Χρησιμοποιήστε το πλήκτρο Ctrl και κύλιση, για να μεγεθύνετε τον χάρτη",scrollMac:"Χρησιμοποιήστε το πλήκτρο ⌘ + κύλιση για εστίαση στον χάρτη"},en:{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},"en-AU":{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},"en-GB":{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},es:{touch:"Para mover el mapa, utiliza dos dedos",scroll:"Mantén pulsada la tecla Ctrl mientras te desplazas para acercar o alejar el mapa",scrollMac:"Mantén pulsada la tecla ⌘ mientras te desplazas para acercar o alejar el mapa"},eu:{touch:"Erabili bi hatz mapa mugitzeko",scroll:"Mapan zooma aplikatzeko, sakatu Ktrl eta egin gora edo behera",scrollMac:"Eduki sakatuta ⌘ eta egin gora eta behera mapa handitu eta txikitzeko"},fa:{touch:"برای حرکت دادن نقشه از دو انگشت استفاده کنید.",scroll:"‏برای بزرگ‌نمایی نقشه از ctrl + scroll استفاده کنید",scrollMac:"برای بزرگ‌نمایی نقشه، از ⌘ + پیمایش استفاده کنید."},fi:{touch:"Siirrä karttaa kahdella sormella.",scroll:"Zoomaa karttaa painamalla Ctrl-painiketta ja vierittämällä.",scrollMac:"Zoomaa karttaa pitämällä painike ⌘ painettuna ja vierittämällä."},fil:{touch:"Gumamit ng dalawang daliri upang iusog ang mapa",scroll:"Gamitin ang ctrl + scroll upang i-zoom ang mapa",scrollMac:"Gamitin ang ⌘ + scroll upang i-zoom ang mapa"},fr:{touch:"Utilisez deux doigts pour déplacer la carte",scroll:"Vous pouvez zoomer sur la carte à l'aide de CTRL+Molette de défilement",scrollMac:"Vous pouvez zoomer sur la carte à l'aide de ⌘+Molette de défilement"},gl:{touch:"Utiliza dous dedos para mover o mapa",scroll:"Preme Ctrl mentres te desprazas para ampliar o mapa",scrollMac:"Preme ⌘ e desprázate para ampliar o mapa"},gu:{touch:"નકશો ખસેડવા બે આંગળીઓનો ઉપયોગ કરો",scroll:"નકશાને ઝૂમ કરવા માટે ctrl + સ્ક્રોલનો ઉપયોગ કરો",scrollMac:"નકશાને ઝૂમ કરવા ⌘ + સ્ક્રોલનો ઉપયોગ કરો"},hi:{touch:"मैप एक जगह से दूसरी जगह ले जाने के लिए दो उंगलियों का इस्तेमाल करें",scroll:"मैप को ज़ूम करने के लिए ctrl + स्क्रोल का उपयोग करें",scrollMac:"मैप को ज़ूम करने के लिए ⌘ + स्क्रोल का उपयोग करें"},hr:{touch:"Pomičite kartu pomoću dva prsta",scroll:"Upotrijebite Ctrl i klizač miša da biste zumirali kartu",scrollMac:"Upotrijebite gumb ⌘ dok se pomičete za zumiranje karte"},hu:{touch:"Két ujjal mozgassa a térképet",scroll:"A térkép a ctrl + görgetés használatával nagyítható",scrollMac:"A térkép a ⌘ + görgetés használatával nagyítható"},id:{touch:"Gunakan dua jari untuk menggerakkan peta",scroll:"Gunakan ctrl + scroll untuk memperbesar atau memperkecil peta",scrollMac:"Gunakan ⌘ + scroll untuk memperbesar atau memperkecil peta"},it:{touch:"Utilizza due dita per spostare la mappa",scroll:"Utilizza CTRL + scorrimento per eseguire lo zoom della mappa",scrollMac:"Utilizza ⌘ + scorrimento per eseguire lo zoom della mappa"},iw:{touch:"הזז את המפה באמצעות שתי אצבעות",scroll:"‏אפשר לשנות את מרחק התצוגה במפה באמצעות מקש ctrl וגלילה",scrollMac:"אפשר לשנות את מרחק התצוגה במפה באמצעות מקש ⌘ וגלילה"},ja:{touch:"地図を移動させるには指 2 本で操作します",scroll:"地図をズームするには、Ctrl キーを押しながらスクロールしてください",scrollMac:"地図をズームするには、⌘ キーを押しながらスクロールしてください"},kn:{touch:"Use two fingers to move the map",scroll:"Use Ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},ko:{touch:"지도를 움직이려면 두 손가락을 사용하세요.",scroll:"지도를 확대/축소하려면 Ctrl을 누른 채 스크롤하세요.",scrollMac:"지도를 확대하려면 ⌘ + 스크롤 사용"},lt:{touch:"Perkelkite žemėlapį dviem pirštais",scroll:"Slinkite nuspaudę klavišą „Ctrl“, kad pakeistumėte žemėlapio mastelį",scrollMac:"Paspauskite klavišą ⌘ ir slinkite, kad priartintumėte žemėlapį"},lv:{touch:"Lai pārvietotu karti, bīdiet to ar diviem pirkstiem",scroll:"Kartes tālummaiņai izmantojiet ctrl + ritināšanu",scrollMac:"Lai veiktu kartes tālummaiņu, izmantojiet ⌘ + ritināšanu"},ml:{touch:"മാപ്പ് നീക്കാൻ രണ്ട് വിരലുകൾ ഉപയോഗിക്കുക",scroll:"കൺട്രോൾ + സ്‌ക്രോൾ ഉപയോഗിച്ച് ‌മാപ്പ് ‌സൂം ചെയ്യുക",scrollMac:"⌘ + സ്‌ക്രോൾ ഉപയോഗിച്ച് ‌മാപ്പ് ‌സൂം ചെയ്യുക"},mr:{touch:"नकाशा हलविण्यासाठी दोन बोटे वापरा",scroll:"नकाशा झूम करण्यासाठी ctrl + scroll वापरा",scrollMac:"नकाशावर झूम करण्यासाठी ⌘ + स्क्रोल वापरा"},nl:{touch:"Gebruik twee vingers om de kaart te verplaatsen",scroll:"Gebruik Ctrl + scrollen om in- en uit te zoomen op de kaart",scrollMac:"Gebruik ⌘ + scrollen om in en uit te zoomen op de kaart"},no:{touch:"Bruk to fingre for å flytte kartet",scroll:"Hold ctrl-tasten inne og rull for å zoome på kartet",scrollMac:"Hold inne ⌘-tasten og rull for å zoome på kartet"},pl:{touch:"Przesuń mapę dwoma palcami",scroll:"Naciśnij CTRL i przewiń, by przybliżyć mapę",scrollMac:"Naciśnij ⌘ i przewiń, by przybliżyć mapę"},pt:{touch:"Use dois dedos para mover o mapa",scroll:"Pressione Ctrl e role a tela simultaneamente para aplicar zoom no mapa",scrollMac:"Use ⌘ e role a tela simultaneamente para aplicar zoom no mapa"},"pt-BR":{touch:"Use dois dedos para mover o mapa",scroll:"Pressione Ctrl e role a tela simultaneamente para aplicar zoom no mapa",scrollMac:"Use ⌘ e role a tela simultaneamente para aplicar zoom no mapa"},"pt-PT":{touch:"Utilize dois dedos para mover o mapa",scroll:"Utilizar ctrl + deslocar para aumentar/diminuir zoom do mapa",scrollMac:"Utilize ⌘ + deslocar para aumentar/diminuir o zoom do mapa"},ro:{touch:"Folosiți două degete pentru a deplasa harta",scroll:"Apăsați tasta ctrl și derulați simultan pentru a mări harta",scrollMac:"Folosiți ⌘ și derulați pentru a mări/micșora harta"},ru:{touch:"Чтобы переместить карту, проведите по ней двумя пальцами",scroll:"Чтобы изменить масштаб, прокручивайте карту, удерживая клавишу Ctrl.",scrollMac:"Чтобы изменить масштаб, нажмите ⌘ + прокрутка"},sk:{touch:"Mapu môžete posunúť dvoma prstami",scroll:"Ak chcete priblížiť mapu, stlačte kláves ctrl a posúvajte",scrollMac:"Ak chcete priblížiť mapu, stlačte kláves ⌘ a posúvajte kolieskom myši"},sl:{touch:"Premaknite zemljevid z dvema prstoma",scroll:"Zemljevid povečate tako, da držite tipko Ctrl in vrtite kolesce na miški",scrollMac:"Uporabite ⌘ + funkcijo pomika, da povečate ali pomanjšate zemljevid"},sr:{touch:"Мапу померајте помоћу два прста",scroll:"Притисните ctrl тастер док померате да бисте зумирали мапу",scrollMac:"Притисните тастер ⌘ док померате да бисте зумирали мапу"},sv:{touch:"Använd två fingrar för att flytta kartan",scroll:"Använd ctrl + rulla för att zooma kartan",scrollMac:"Använd ⌘ + rulla för att zooma på kartan"},ta:{touch:"மேப்பை நகர்த்த இரண்டு விரல்களைப் பயன்படுத்தவும்",scroll:"மேப்பை பெரிதாக்கி/சிறிதாக்கிப் பார்க்க, ctrl பட்டனைப் பிடித்தபடி, மேலே/கீழே ஸ்க்ரால் செய்யவும்",scrollMac:"மேப்பை பெரிதாக்கி/சிறிதாக்கிப் பார்க்க, ⌘ பட்டனைப் பிடித்தபடி, மேலே/கீழே ஸ்க்ரால் செய்யவும்"},te:{touch:"మ్యాప్‌ని తరలించడం కోసం రెండు వేళ్లను ఉపయోగించండి",scroll:"మ్యాప్‌ని జూమ్ చేయడానికి ctrl బటన్‌ను నొక్కి ఉంచి, స్క్రోల్ చేయండి",scrollMac:"మ్యాప్ జూమ్ చేయాలంటే ⌘ + స్క్రోల్ ఉపయోగించండి"},th:{touch:"ใช้ 2 นิ้วเพื่อเลื่อนแผนที่",scroll:"กด Ctrl ค้างไว้ แล้วเลื่อนหน้าจอเพื่อซูมแผนที่",scrollMac:"กด ⌘ แล้วเลื่อนหน้าจอเพื่อซูมแผนที่"},tl:{touch:"Gumamit ng dalawang daliri upang iusog ang mapa",scroll:"Gamitin ang ctrl + scroll upang i-zoom ang mapa",scrollMac:"Gamitin ang ⌘ + scroll upang i-zoom ang mapa"},tr:{touch:"Haritada gezinmek için iki parmağınızı kullanın",scroll:"Haritayı yakınlaştırmak için ctrl + kaydırma kombinasyonunu kullanın",scrollMac:"Haritayı yakınlaştırmak için ⌘ tuşuna basıp ekranı kaydırın"},uk:{touch:"Переміщуйте карту двома пальцями",scroll:"Щоб змінювати масштаб карти, прокручуйте коліщатко миші, утримуючи клавішу Ctrl",scrollMac:"Щоб змінити масштаб карти, використовуйте ⌘ + прокручування"},vi:{touch:"Sử dụng hai ngón tay để di chuyển bản đồ",scroll:"Sử dụng ctrl + cuộn để thu phóng bản đồ",scrollMac:"Sử dụng ⌘ + cuộn để thu phóng bản đồ"},"zh-CN":{touch:"使用双指移动地图",scroll:"按住 Ctrl 并滚动鼠标滚轮才可缩放地图",scrollMac:"按住 ⌘ 并滚动鼠标滚轮才可缩放地图"},"zh-TW":{touch:"同時以兩指移動地圖",scroll:"按住 ctrl 鍵加上捲動滑鼠可以縮放地圖",scrollMac:"按 ⌘ 加上滾動捲軸可以縮放地圖"}};
1L.Map.mergeOptions({gestureHandlingOptions:{text:{},duration:1e3}});var m=!1,i=L.Handler.extend({addHooks:function(){this._handleTouch=this._handleTouch.bind(this),this._setupPluginOptions(),this._setLanguageContent(),this._disableInteractions(),this._map._container.addEventListener("touchstart",this._handleTouch),this._map._container.addEventListener("touchmove",this._handleTouch),this._map._container.addEventListener("touchend",this._handleTouch),this._map._container.addEventListener("touchcancel",this._handleTouch),this._map._container.addEventListener("click",this._handleTouch),L.DomEvent.on(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.on(this._map,"mouseover",this._handleMouseOver,this),L.DomEvent.on(this._map,"mouseout",this._handleMouseOut,this),L.DomEvent.on(this._map,"movestart",this._handleDragging,this),L.DomEvent.on(this._map,"move",this._handleDragging,this),L.DomEvent.on(this._map,"moveend",this._handleDragging,this)},removeHooks:function(){this._enableInteractions(),this._map._container.removeEventListener("touchstart",this._handleTouch),this._map._container.removeEventListener("touchmove",this._handleTouch),this._map._container.removeEventListener("touchend",this._handleTouch),this._map._container.removeEventListener("touchcancel",this._handleTouch),this._map._container.removeEventListener("click",this._handleTouch),L.DomEvent.off(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.off(this._map,"mouseover",this._handleMouseOver,this),L.DomEvent.off(this._map,"mouseout",this._handleMouseOut,this),L.DomEvent.off(this._map,"movestart",this._handleDragging,this),L.DomEvent.off(this._map,"move",this._handleDragging,this),L.DomEvent.off(this._map,"moveend",this._handleDragging,this)},_handleDragging:function(s){s.type=="movestart"||s.type=="move"?m=!0:s.type=="moveend"&&(m=!1)},_disableInteractions:function(){this._map.dragging.disable(),this._map.scrollWheelZoom.disable(),this._map.tap&&this._map.tap.disable()},_enableInteractions:function(){this._map.dragging.enable(),this._map.scrollWheelZoom.enable(),this._map.tap&&this._map.tap.enable()},_setupPluginOptions:function(){this._map.options.gestureHandlingText&&(this._map.options.gestureHandlingOptions.text=this._map.options.gestureHandlingText)},_setLanguageContent:function(){var s;if(this._map.options.gestureHandlingOptions&&this._map.options.gestureHandlingOptions.text&&this._map.options.gestureHandlingOptions.text.touch&&this._map.options.gestureHandlingOptions.text.scroll&&this._map.options.gestureHandlingOptions.text.scrollMac)s=this._map.options.gestureHandlingOptions.text;else{var a=this._getUserLanguage();a||(a="en"),g[a]&&(s=g[a]),s||a.indexOf("-")===-1||(a=a.split("-")[0],s=g[a]),s||(s=g[a="en"])}var r=!1;0<=navigator.platform.toUpperCase().indexOf("MAC")&&(r=!0);var p=s.scroll;r&&(p=s.scrollMac),this._map._container.setAttribute("data-gesture-handling-touch-content",s.touch),this._map._container.setAttribute("data-gesture-handling-scroll-content",p)},_getUserLanguage:function(){return navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage},_handleTouch:function(s){for(var a=["leaflet-control-minimap","leaflet-interactive","leaflet-popup-content","leaflet-popup-content-wrapper","leaflet-popup-close-button","leaflet-control-zoom-in","leaflet-control-zoom-out"],r=!1,p=0;p<a.length;p++)L.DomUtil.hasClass(s.target,a[p])&&(r=!0);r?L.DomUtil.hasClass(s.target,"leaflet-interactive")&&s.type==="touchmove"&&s.touches.length===1?(L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-touch-warning"),this._disableInteractions()):L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-touch-warning"):s.type==="touchmove"||s.type==="touchstart"?s.touches.length===1?(L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-touch-warning"),this._disableInteractions()):(s.preventDefault(),this._enableInteractions(),L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-touch-warning")):L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-touch-warning")},_isScrolling:!1,_handleScroll:function(s){s.metaKey||s.ctrlKey?(s.preventDefault(),L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-scroll-warning"),this._map.scrollWheelZoom.enable()):(L.Dom
1Util.addClass(this._map._container,"leaflet-gesture-handling-scroll-warning"),this._map.scrollWheelZoom.disable(),clearTimeout(this._isScrolling),this._isScrolling=setTimeout(function(){for(var a=document.getElementsByClassName("leaflet-gesture-handling-scroll-warning"),r=0;r<a.length;r++)L.DomUtil.removeClass(a[r],"leaflet-gesture-handling-scroll-warning")},this._map.options.gestureHandlingOptions.duration))},_handleMouseOver:function(s){this._enableInteractions()},_handleMouseOut:function(s){m||this._disableInteractions()}});L.Map.addInitHook("addHandler","gestureHandling",i),l.GestureHandling=i,l.default=i,Object.defineProperty(l,"__esModule",{value:!0})})})(ue,ue.exports)),ue.exports}var Gr=qr();Tt.Map.addInitHook("addHandler","gestureHandling",Gr.GestureHandling);const Vr='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"/></svg>',Bt=c=>String(c).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"),pe=45,de=Math.round(pe/2),ds=()=>Tt.divIcon({className:"artwork-map-divicon",html:`<div class="artwork-map-pin" role="presentation">${Vr}</div>`,iconSize:[pe,pe],iconAnchor:[de,de],popupAnchor:[0,-de]}),Yr=c=>Tt.divIcon({className:"artwork-map-divicon",html:`<div class="artwork-map-cluster" role="presentation"><span class="artwork-map-cluster__count">${c}</span></div>`,iconSize:[pe,pe],iconAnchor:[de,de]}),fs=c=>{const u=l=>{const m=c.getElement()?.querySelector(".artwork-map-pin");m&&m.classList.toggle("artwork-map-pin--open",l)};c.on("popupopen",()=>u(!0)),c.on("popupclose",()=>u(!1))},ps=(c,u="Teoksen sijainti")=>{const l=String(c||"").trim(),g=String(u||"").trim()||"Teoksen sijainti";return l?`${g}: ${l}`:g},ms=(c,u)=>{const l=String(u||"").trim();if(!l)return;const g=()=>{const m=c.getElement();m&&(m.setAttribute("aria-label",l),m.setAttribute("title",l))};c.on("add",g)},_s=c=>{const u=(window.frontendajax?.cartoApiKey||"").trim(),l=u?`?key=${encodeURIComponent(u)}`:"";Tt.tileLayer(`https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png${l}`,{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>',subdomains:"abcd",maxZoom:20}).addTo(c)},Xr=()=>{const c=document.getElementById("artwork-archive-map"),u=document.getElementById("artwork-map-data");if(!c||!u)return null;let l=[];try{l=JSON.parse(u.textContent||"[]")}catch{return null}if(!Array.isArray(l)||l.length===0)return null;const g=l[0],m=Tt.map(c,{gestureHandling:!0});_s(m);const i=Tt.markerClusterGroup({iconCreateFunction:d=>Yr(d.getChildCount()),animateAddingMarkers:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0}),s=ds(),a=Bt(window.artworkArchiveStrings?.explore??"Tutustu teokseen"),r=window.artworkArchiveStrings?.markerPrefix??"Teoksen sijainti";l.forEach(d=>{if(typeof d.lat!="number"||typeof d.lng!="number")return;const _=ps(d.title,r),y=Tt.marker([d.lat,d.lng],{icon:s,title:_});ms(y,_);const w=Bt(d.title),b=d.thumb?`<img src="${Bt(d.thumb)}" alt="" class="artwork-archive__popup-img" loading="lazy" style="object-position:${parseFloat(d.focus_x)||50}% ${parseFloat(d.focus_y)||50}%" />`:"";y.bindPopup(`<div class="artwork-archive__popup">${b}<div class="artwork-archive__popup-title">${w}</div><a class="artwork-archive__popup-link" href="${Bt(d.url)}">${a}</a></div>`),fs(y),i.addLayer(y)}),i.addTo(m);const p=i.getBounds();return p.isValid()?m.fitBounds(p.pad(.12)):m.setView([g.lat,g.lng],13),m},Kr=()=>{const c=document.getElementById("artwork-map");if(!c)return null;const u=parseFloat(c.dataset.lat||""),l=parseFloat(c.dataset.lng||"");if(Number.isNaN(u)||Number.isNaN(l))return null;const g=Tt.map(c,{gestureHandling:!0}
1).setView([u,l],16);_s(g);const m=(c.dataset.title||"").trim(),i=window.artworkSingleMapStrings?.here??"Teoksen sijainti",s=ps(m,i),a=Tt.marker([u,l],{icon:ds(),title:s});ms(a,s);const r=Bt(m),p=(c.dataset.thumb||"").trim(),d=parseFloat(c.dataset.focusX)||50,_=parseFloat(c.dataset.focusY)||50,y=p?`<img src="${Bt(p)}" alt="" class="artwork-archive__popup-img" loading="lazy" style="object-position:${d}% ${_}%" />`:"",w=Bt(i);return a.bindPopup(`<div class="artwork-archive__popup">${y}<div class="artwork-archive__popup-title">${r}</div><p class="artwork-single__map-popup-note">${w}</p></div>`),fs(a),a.addTo(g),g},Jr=()=>{const c=document.getElementById("load-more-artwork-archive-button");if(!c)return;const u=parseInt(c.dataset.max,10)||0,l=parseInt(c.dataset.count,10)||9;let g=l;c.addEventListener("click",()=>{const m=g;g+=l;for(let a=m+1;a<=g;a+=1)document.querySelector(`[data-artwork-postnum="${a}"]`)?.classList.remove("element-hidden");let i;g>=u?(c.hidden=!0,i=u-1):i=m+1;const s=document.querySelector(`[data-artwork-postnum="${i}"]`);s&&us(s,{offset:-50,duration:1.2})})},Qr=()=>{let c=null;const u=document.querySelector("[data-artwork-sort-strip]"),l=document.getElementById("artwork-search-view"),g=document.querySelectorAll("[data-artwork-panel]"),m=document.querySelectorAll("[data-artwork-view-toggle]"),i=a=>{g.forEach(r=>{r.classList.toggle("artwork-archive__panel--hidden",r.dataset.artworkPanel!==a)}),m.forEach(r=>{const p=r.dataset.artworkViewToggle===a;r.classList.toggle("artwork-archive__view-toggle--active",p),r.setAttribute("aria-pressed",p?"true":"false")}),u&&u.classList.toggle("artwork-archive__sort-strip--hidden",a==="map"),l&&(l.value=a==="map"?"map":""),a==="map"&&(c||(c=Xr()),c&&window.setTimeout(()=>c.invalidateSize(),200))},s=new URLSearchParams(window.location.search).get("view")==="map"?"map":"list";i(s),m.forEach(a=>{a.addEventListener("click",()=>{const r=a.dataset.artworkViewToggle;if(!r)return;i(r);const p=a.dataset.artworkViewUrl;p&&window.history.replaceState({},"",p)})})};function gs(){if(document.body.classList.contains("single-artwork")){Kr();return}document.body.classList.contains("post-type-archive-artwork")&&(Jr(),Qr())}const ta=gs,ea=Object.freeze(Object.defineProperty({__proto__:null,initApp:ta,initArtworkArchive:gs},Symbol.toStringTag,{value:"Module"})),vs="is-stuck",ia="is-active",fe="is-past-container",Ne=16,na=48;function ys(){return document.querySelector(".site-header")}function He(){const c=ys();return c?Math.round(c.getBoundingClientRect().height):0}function sa(c){const u=c.getAttribute("href")||"";if(!u.startsWith("#"))return"";try{return decodeURIComponent(u.slice(1))}catch{return u.slice(1)}}function ts(c){return Array.from(c.querySelectorAll(".exhibition-archive-filters__link")).map(u=>{const l=sa(u);if(!l)return null;const g=document.getElementById(l);return g?{link:u,target:g}:null}).filter(Boolean)}function Ci(c,u){c.forEach(l=>{const g=l===u;l.classList.toggle(ia,g),g?l.setAttribute("aria-current","true"):l.removeAttribute("aria-current")})}function oa(c){return He()+Math.round(c.getBoundingClientRect().height)+Ne}function ra(c,u,l,g){if(g)return;if(!u.length){Ci(l,l[0]||null);return}const m=oa(c),i=window.innerHeight+window.scrollY>=document.documentElement.scrollHeight-2;let s=u[0];u.forEach(a=>{a.target.getBoundingClientRect().top<=m+1&&(s=a)}),i&&(s=u[u.length-1]),Ci(l,s.link)}function aa(c){const u=He(),l=Math.round(c.getBoundingClientRect().height);c.style.setProperty("--exhibition-filters-top",`${u}px`),document.documentElement.style.setProperty("--exhibition-anchor-offset",`${u+l+Ne}px`)}function ws(c){return He()+Math.round(c.getBoundingClientRect().height)+Ne}function Ls(c,u){const l=c.closest(".wp-block-sc-henkiloarkisto");if(l){const g=l.querySelector(".henkiloarkisto__section:last-child");if(g)return g.getBoundingClientRect().bottom}return u.length?u[u.length-1].target.getBoundingClientRect().bottom:c.getBoundingClientRect().bottom}function la(c,u,l){return l>0?l:Ls(c,u)+window.scrollY}function ha(c,u,l){return c.classList.contains("is-stuck-fixed")||c.classList.contains(fe)?l:Ls(c,u)+window.scrollY}function bs(c){return c-window.scrollY}function ca(c,u,l){const g=bs(l),m=ws(c);return g-m<c.offsetHeight+Ne}function ua(c,u,l,g){if(!u.length)return c.classList.remove(fe),!1;const m=ws(c),i=bs(g),a=c.classList.contains(fe)?i<=m+na:i<=m;return c.classList.toggle(fe,a),a&&(c.classList.remove("is-stuck-fixed",vs),l.style.height=""),a}function da(c,u,l,g){if(c.classList.contains(fe))return;const m=He(),i=u.getBoundingClientRect().top<=m;if(c.classList.toggle(vs,i),!i){c.classList.remove("is-stuck-fixed"),u.style.height="";return}if(ca(c,l,g)){c.classList.remove("is-stuck-fixed"),u.style.height="";return}const s=c.getBoundingClientRect().top;!c.classList.contains("is-stuck-fixed")&&s<m-2&&(u.style.height=`${c.offsetHeight}px`,c.classList.add("is-stuck-fixed"))}function fa(c){const u=Array.from(c.querySelectorAll(".exhibition-archive-filters__link"));if(!u.length)return;const l=document.createElement("div");l.className="exhibition-archive-filters__sentinel",l.setAttribute("aria-hidden","true"),c.parentNode.insertBefore(l,c),ts(c).forEac
1h(({target:r})=>{r.style.scrollMarginTop="var(--exhibition-anchor-offset, 0px)"});let m=0,i=0;const s=()=>{const r=ts(c);i=la(c,r,i),aa(c),ua(c,r,l,i)||(da(c,l,r,i),i=ha(c,r,i)),ra(c,r,u,Date.now()<m)};c.addEventListener("click",r=>{const p=r.target.closest(".exhibition-archive-filters__link");!p||!c.contains(p)||(Ci(u,p),m=Date.now()+800)}),hs()?cs(s):window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s);const a=ys();a&&typeof ResizeObserver<"u"&&new ResizeObserver(s).observe(a),s(),window.addEventListener("load",s)}const pa=".wp-block-sc-exhibition-archive-filters, .wp-block-sc-henkiloarkisto__filters";function Ss(){const c=document.querySelectorAll(pa);c.length&&c.forEach(fa)}const ma=Ss,_a=Object.freeze(Object.defineProperty({__proto__:null,initApp:ma,initExhibitionArchiveFilters:Ss},Symbol.toStringTag,{value:"Module"}));function ga(){return typeof window.frontendajax<"u"?window.frontendajax:null}async function va(c){const u=ga();if(!u?.ajaxurl||!u?.nonces?.exhibition_archive_past_load_more)return;const g=c.closest(".wp-block-sc-exhibition-archive-past")?.querySelector(".exhibition-archive-past__grid");if(!g)return;const m=parseInt(c.dataset.page,10)||1,i=parseInt(c.dataset.maxPages,10)||1,s=m+1;if(s>i)return;c.disabled=!0,c.setAttribute("aria-busy","true");const a=new FormData;a.append("action","wam_exhibition_archive_past_load_more"),a.append("nonce",u.nonces.exhibition_archive_past_load_more),a.append("page",String(s)),a.append("order_by",c.dataset.orderBy||"date_desc"),u.lang&&a.append("lang",u.lang);try{const p=await(await fetch(u.ajaxurl,{method:"POST",body:a,credentials:"same-origin"})).json(),d=p?.data?.html,_=!!p?.data?.hasMore;if(!p?.success||typeof d!="string"||d===""){c.disabled=!1,c.removeAttribute("aria-busy");return}if(g.insertAdjacentHTML("beforeend",d),c.dataset.page=String(s),!_||s>=i){const y=c.closest(".exhibition-archive-past__more");y?y.remove():c.remove();return}c.disabled=!1,c.removeAttribute("aria-busy")}catch{c.disabled=!1,c.removeAttribute("aria-busy")}}function ks(){const c=document.querySelectorAll(".exhibition-archive-past__load-more");c.length&&c.forEach(u=>{u.addEventListener("click",()=>{va(u)})})}const ya=ks,wa=Object.freeze(Object.defineProperty({__proto__:null,initApp:ya,initExhibitionArchivePastLoadMore:ks},Symbol.toStringTag,{value:"Module"}));function La(){document.querySelectorAll(".front-hero--has-video").forEach(c=>{const u=c.querySelector(".front-hero__video"),l=c.querySelector(".front-hero__toggle");if(!u||!l||l.dataset.frontHeroVideoInit==="true")return;l.dataset.frontHeroVideoInit="true";const g=l.dataset.labelPlay||"",m=l.dataset.labelPause||"",i=p=>{c.classList.toggle("is-paused",p),l.setAttribute("aria-pressed",p?"true":"false"),l.setAttribute("aria-label",p?g:m)},s=()=>{u.pause(),i(!0)},a=()=>{const p=u.play();p&&typeof p.catch=="function"&&p.catch(()=>{i(!0)})};u.addEventListener("play",()=>{i(!1)}),u.addEventListener("pause",()=>{i(!0)}),l.addEventListener("click",p=>{if(p.preventDefault(),p.stopPropagation(),u.paused){a();return}s()}),window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(s(),u.removeAttribute("autoplay"))})}const ba=Object.freeze(Object.defineProperty({__proto__:null,initApp:La},Symbol.toStringTag,{value:"Module"}));function Sa(){document.dispatchEvent(new Event("siili:close-search"))}function Ts(){const c=document.querySelector("[data-language-toggle]"),u=document.querySelector(".languages-overlay"),l=u?.querySelector("[data-language-close]");if(!c||!u)return;const g=()=>u.classList.contains("active"),m=()=>{u.classList.remove("active"),document.body.classList.remove("is-lang-open"),c.setAttribute("aria-expanded","false"),u.setAttribute("inert","")},i=()=>{m(),c.focus()},s=()=>{Sa(),document.dispatchEvent(new Event("siili:close-nav")),u.classList.add("active"),document.body.classList.add("is-lang-open"),c.setAttribute("aria-expanded","true"),u.removeAttribute("inert"),u.querySelector(".languages-list a[href]")?.focus()};u.classList.contains("active")||u.setAttribute("inert",""),c.addEventListener("click",a=>{a.preventDefault(),g()?i():s()}),l?.addEventListener("click",a=>{a.preventDefault(),i()}),document.addEventListener("siili:close-lang",()=>{g()&&m()}),document.addEventListener("mousedown",a=>{g()&&(u.contains(a.target)||c.contains(a.target)||m())}),document.addEventListener("keydown",a=>{a.key!=="Escape"||!g()||(a.preventDefault(),i())}),u.addEventListener("keydown",a=>{if(a.key!=="Tab"||!g())return;const r=Array.from(u.querySelectorAll('a:not([tabindex="-1"]), button:not([tabindex="-1"])')).filter(_=>!_.closest("[inert]")&&_.offsetParent!==null);if(!r.length)return;const p=r[0],d=r[r.length-1];(!a.shiftKey&&document.activeElement===d||a.shiftKey&&document.activeElement===p)&&(a.preventDefault(),i())})}const ka=Ts,Ta=Object.freeze(Object.defineProperty({__proto__:null,initApp:ka,initHeaderLangnav:Ts},Symbol.toStringTag,{value:"Module"}));function Ze(c){return c?.querySelector(".navigation-opener-toggle")??null}function xs(c,u){if(!c)return;c.setAttribute("aria-expanded",u?"true":"false");const l=c.getAttribute(u?"data-close-label":"data-open-label");l&&c.setAttribute("aria-label",l);const g=c.querySelector("[data-navigation-opener-text]"),m=c.getAttribute(u?"data-close-text":"data-open-text");g&&m&&(g.textContent=m)}function xa(){document.dispatchEvent(new Event("siili:close-lang"))}function Ca(){document.dispatchEvent(new Event("siili:close-search"))}function Pi(){const c=document.querySelector(".site-header"),u=c?Math.round(c.getBoundingClientRect().height):0;document.documentElement.style.setProperty("--site-header-height",`${u}px`)}function Pa(c,u){xa(),Ca(),Pi(),U(u).addClass("active"),U(c).addClass("active"),document.body.classList.add("is-nav-open"),xs(Ze(u),!0),c.removeAttribute("inert"),c.querySelector("a, button")?.focus()}function Cs(c){const u=c?.nextElementSibling;return u?.classList.contains("dropdown-menu")?u:null}function Ma(c){return c?.parentElement?.querySelector(":scope > .menu-label-toggle")??null}function Ps(c,u){c?.setAttribute("aria-expanded",u?"true":"false"),Ma(c)?.setAttribute("aria-expanded",u?"true":"false")}function $e(c){c&&(c.classList.remove("active"),Ps(c,!1),Cs(c)?.classList.remove("active"))}function Ms(c=null){document.querySelectorAll(".dropdown-toggle.active").forEach(u=>{u!==c&&$e(u)})}function Ea(c){c&&(Ms(c),c.classList.add("active"),Ps(c,!0),Cs(c)?.classList.add("active"))}function es(c){c&&(c.classList.contains("active")?$e(c):Ea(c))}let Mi=!1;function ki(c){Mi=!0,c(),requestAnimationFrame(()=>{Mi=!1}
1)}function qt(c,u){U(u).removeClass("active"),U(c).removeClass("active"),document.body.classList.remove("is-nav-open"),xs(Ze(u),!1),c.setAttribute("inert",""),Ms()}function za(c,u){U(c).hasClass("active")?qt(c,u):Pa(c,u)}function Es(){const c=document.querySelector(".nav-primary"),u=document.querySelector(".navigation-opener");if(Pi(),window.addEventListener("resize",Pi),c&&!c.classList.contains("active")&&c.setAttribute("inert",""),U(".navigation-opener-toggle").on("click",function(l){l.preventDefault(),c&&u&&za(c,u)}),document.addEventListener("siili:close-nav",()=>{c&&u&&c.classList.contains("active")&&qt(c,u)}),document.addEventListener("mousedown",l=>{!c||!u||!c.classList.contains("active")||c.contains(l.target)||u.contains(l.target)||qt(c,u)}),document.addEventListener("keydown",l=>{if(l.key!=="Escape")return;const g=document.querySelector(".dropdown-toggle.active");if(g){l.preventDefault(),$e(g),g.focus();return}if(!c||!c.classList.contains("active"))return;l.preventDefault();const m=Ze(u);qt(c,u),m?.focus()}),c&&u){const l=Ze(u);c.addEventListener("keydown",g=>{if(g.key!=="Tab"||!c.classList.contains("active"))return;const m=Array.from(c.querySelectorAll('a:not([tabindex="-1"]), button:not([tabindex="-1"])')).filter(a=>!a.closest("[inert]")&&a.offsetParent!==null);if(!m.length)return;const i=m[0],s=m[m.length-1];(!g.shiftKey&&document.activeElement===s||g.shiftKey&&document.activeElement===i)&&(g.preventDefault(),qt(c,u),l?.focus())})}U(".dropdown-toggle").on("mousedown",function(){ki(()=>{})}),U(".dropdown-toggle").on("click keydown",function(l){l.type==="keydown"&&l.key!=="Enter"&&l.key!==" "||(l.preventDefault(),ki(()=>{es(this)}))}),c?.querySelectorAll(".nav > li.item-has-children > a.link, .nav > li.item-has-children > button.menu-label-toggle").forEach(l=>{l.addEventListener("click",g=>{if(l instanceof HTMLAnchorElement){const i=l.getAttribute("href");if(i&&i!=="#"&&i!=="")return}const m=l.parentElement?.querySelector(":scope > .dropdown-toggle");m&&(g.preventDefault(),ki(()=>{es(m)}))})}),document.addEventListener("focusin",l=>{if(Mi)return;const g=l.target;g instanceof Node&&(g.closest(".dropdown-toggle")||document.querySelectorAll(".dropdown-toggle.active").forEach(m=>{m.closest("li")?.contains(g)||$e(m)}))})}const Oa=Es,Aa=Object.freeze(Object.defineProperty({__proto__:null,initApp:Oa,initHeaderNavigation:Es},Symbol.toStringTag,{value:"Module"}));function zs(){const c=document.querySelector("[data-search-toggle]"),u=document.querySelector(".search-overlay"),l=u?.querySelector("[data-search-close]"),g=u?.querySelector("[data-site-header-search-input]");if(!c||!u)return;const m=()=>u.classList.contains("active"),i=()=>{u.classList.remove("active"),document.body.classList.remove("is-search-open"),c.setAttribute("aria-expanded","false"),u.setAttribute("inert","")},s=()=>{i(),c.focus()},a=()=>{document.dispatchEvent(new Event("siili:close-lang")),document.dispatchEvent(new Event("siili:close-nav")),u.classList.add("active"),document.body.classList.add("is-search-open"),c.setAttribute("aria-expanded","true"),u.removeAttribute("inert"),g?.focus()};u.classList.contains("active")||u.setAttribute("inert",""),c.addEventListener("click",r=>{r.preventDefault(),m()?s():a()}),l?.addEventListener("click",r=>{r.preventDefault(),s()}),document.addEventListener("siili:close-search",()=>{m()&&i()}),document.addEventListener("mousedown",r=>{m()&&(u.contains(r.target)||c.contains(r.target)||i())}),document.addEventListener("keydown",r=>{r.key!=="Escape"||!m()||(r.preventDefault(),s())}),u.addEventListener("keydown",r=>{if(r.key!=="Tab"||!m())return;const p=Array.from(u.querySelectorAll('a:not([tabindex="-1"]), button:not([tabindex="-1"]), input:not([tabindex="-1"])')).filter(y=>!y.closest("[inert]")&&y.offsetParent!==null);if(!p.length)return;const d=p[0],_=p[p.length-1];(!r.shiftKey&&document.activeElement===_||r.shiftKey&&document.activeElement===d)&&(r.preventDefault(),s())})}const Ia=zs,Ba=Object.freeze(Object.defineProperty({__proto__:null,initApp:Ia,initHeaderSearch:zs},Symbol.toStringTag,{value:"Module"})),Ra=[".article-card",".article-lift__card",".event-lift__card",".wp-block-sc-article-lift",".wp-block-sc-exhibition-lift",".wp-block-sc-event-lift",".wp-block-sc-news-lift",".wp-block-sc-henkilonosto",".person-card",".search-result-card",".wp-block-gallery",".show-as-slider",".slick-slider",".site-header",".site-footer",".artwork-archive",".artwork-single"],Za=[".page-hero__media",".nayttelyt-hero__media",".front-hero__media"],$a=[".main .wp-block-image.alignwide",".main .wp-block-image.alignfull",".main .wp-block-image.is-content-width",".main .wp-block-cover.alignwide",".main .wp-block-cover.alignfull",".main .wp-block-media-text.alignwide .wp-block-media-text__media",".main .wp-block-media-text.alignfull .wp-block-media-text__media",".main .wp-block-sc-media-image .media-image__media",".main .page-hero__media",".main .nayttelyt-hero__media",".main .front-hero__media"],Da=1.08,Na=1.35;function Ha(c){return Ra.some(u=>c.closest(u))}function Fa(c,u){const l=u+c.height;if(l<=0)return 1;const g=u-c.top;return Math.max(0,Math.min(1,g/l))}function Ua(c){return Za.some(u=>c.matches(u))}function Wa(c,u){if(u.height<=0)return 1;c.dataset.heroMotionStartTop||(c.dataset.heroMotionStartTop=String(u.top));const l=parseFloat(c.dataset.heroMotionStartTop);if(Number.isNaN(l)||l<=0){const i=Math.max(0,-u.top);return Math.max(0,Math.min(1,i/u.height))}const g=l+u.height;if(g<=0)return 1;const m=l-u.top;return Math.max(0,Math.min(1,m/g))}function ja(c,u,l){return Ua(c)?Wa(c,u):Fa(u,l)}function qa(c,u,l){return c+(u-c)*l}function is(c){const u=c.getBoundingClientRect(),l=window.innerHeight;if(u.bottom<0||u.top>l)return!1;const g=ja(c,u,l),m=qa(Na,Da,g);return c.style.setProperty("--image-motion-scale",m.toFixed(4)),!0}function Ga(){const c=window.matchMedia("(prefers-reduced-motion: no-preference)");if(!c.matches)return;const u=[];
1if(document.querySelectorAll($a.join(", ")).forEach(i=>{Ha(i)||i.dataset.imageMotionInit==="true"||(i.dataset.imageMotionInit="true",i.classList.add("image-motion","image-motion--scroll-zoom"),u.push(i),is(i))}),!u.length)return;document.documentElement.classList.add("has-image-motion");let l=!1;const g=()=>{let i=!1;u.forEach(s=>{is(s)&&(i=!0)}),l=!1,!i&&u.every(s=>s.getBoundingClientRect().bottom<0)&&(window.removeEventListener("scroll",m,{passive:!0}),window.removeEventListener("resize",m,{passive:!0}))},m=()=>{l||(l=!0,window.requestAnimationFrame(g))};hs()?cs(g):window.addEventListener("scroll",m,{passive:!0}),window.addEventListener("resize",m,{passive:!0}),c.addEventListener("change",i=>{i.matches||(document.documentElement.classList.remove("has-image-motion"),u.forEach(s=>{s.classList.remove("image-motion","image-motion--scroll-zoom"),s.style.removeProperty("--image-motion-scale"),delete s.dataset.heroMotionStartTop}),window.removeEventListener("scroll",m,{passive:!0}),window.removeEventListener("resize",m,{passive:!0}))})}const Va=Object.freeze(Object.defineProperty({__proto__:null,initApp:Ga},Symbol.toStringTag,{value:"Module"}));function Ya(){return typeof window.frontendajax<"u"?window.frontendajax:null}async function Xa(c){const u=Ya();if(!u?.ajaxurl||!u?.nonces?.search_load_more)return;const g=c.closest(".search-results")?.querySelector(".search-results__list");if(!g)return;const m=parseInt(c.dataset.page,10)||1,i=parseInt(c.dataset.maxPages,10)||1,s=m+1;if(s>i)return;c.disabled=!0,c.setAttribute("aria-busy","true");const a=new FormData;a.append("action","wam_search_load_more"),a.append("nonce",u.nonces.search_load_more),a.append("page",String(s)),a.append("search",c.dataset.search||""),a.append("filter",c.dataset.filter||""),a.append("empty_image_offset",String(g.querySelectorAll(".search-result-card__image-wrap--empty").length)),u.lang&&a.append("lang",u.lang);try{const p=await(await fetch(u.ajaxurl,{method:"POST",body:a,credentials:"same-origin"})).json(),d=p?.data?.html,_=!!p?.data?.hasMore;if(!p?.success||typeof d!="string"||d===""){c.disabled=!1,c.removeAttribute("aria-busy");return}if(g.insertAdjacentHTML("beforeend",d),c.dataset.page=String(s),!_||s>=i){const y=c.closest(".search-results__more");y?y.remove():c.remove();return}c.disabled=!1,c.removeAttribute("aria-busy")}catch{c.disabled=!1,c.removeAttribute("aria-busy")}}function Os(){const c=document.querySelectorAll(".search-results__load-more");c.length&&c.forEach(u=>{u.addEventListener("click",()=>{Xa(u)})})}const Ka=Os,Ja=Object.freeze(Object.defineProperty({__proto__:null,initApp:Ka,initSearchResultsLoadMore:Os},Symbol.toStringTag,{value:"Module"}));async function Qa(c){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(c),!0}catch{}const u=document.createElement("textarea");u.value=c,u.setAttribute("readonly",""),u.style.position="absolute",u.style.left="-9999px",document.body.appendChild(u),u.select();let l=!1;try{l=document.execCommand("copy")}catch{l=!1}return document.body.removeChild(u),l}function tl(c){const u=c.dataset.defaultLabel||c.getAttribute("aria-label")||"",l=c.dataset.copiedLabel||u;!l||l===u||(c.setAttribute("aria-label",l),c.classList.add("is-copied"),window.clearTimeout(c._shareCopyTimeout),c._shareCopyTimeout=window.setTimeout(()=>{u&&c.setAttribute("aria-label",u),c.classList.remove("is-copied")},2e3))}function el(){document.querySelectorAll(".share-links__copy").forEach(c=>{c.dataset.shareCopyInit!=="true"&&(c.dataset.shareCopyInit="true",c.addEventListener("click",async()=>{const u=c.dataset.copyUrl||window.location.href;if(!u)return;await Qa(u)&&tl(c)}))})}const il=Object.freeze(Object.defineProperty({__proto__:null,initApp:el},Symbol.toStringTag,{value:"Module"}));var Ti={exports:{}},ns;function nl(){return ns||(ns=1,(function(c,u){(function(l){c.exports=l(dr())})(function(l){var g,m=window.Slick||{};g=0,(m=function(i,s){var a,r=this;r.defaults={adaptiveHeight:!1,appendArrows:l(i),appendDots:l(i),arrows:!0,arrowsPlacement:null,asNavFor:null,prevArrow:'<button class="slick-prev" type="button"><span class="slick-prev-icon" aria-hidden="true"></span><span class="slick-sr-only">Previous</span></button>',nextArrow:'<button class="slick-next" type="button"><span class="slick-next-icon" aria-hidden="true"></span><span class="slick-sr-only">Next</span></button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(p,d){return l('<button type="button"><span class="slick-dot-icon" aria-hidden="true"></span><span class="slick-sr-only">Go to slide '+(d+1)+"</span></button>")},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,infinite:!0,initialSlide:0,instructionsText:null,lazyLoad:"ondemand",mobileFirst:!1,playIcon:'<span class="slick-play-icon" aria-hidden="true"></span>',pauseIcon:'<span class="slick-pause-icon" aria-hidden="true"></span>',pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,regionLabel:"carousel",respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useAutoplayToggleButton:!0,useCSS:!0,useGroupRole:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},r.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,$instructionsText:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$pauseButton:null,$pauseIcon:null,$playIcon:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
1sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},l.extend(r,r.initials),r.activeBreakpoint=null,r.animType=null,r.animProp=null,r.breakpoints=[],r.breakpointSettings=[],r.cssTransitions=!1,r.focussed=!1,r.interrupted=!1,r.hidden="hidden",r.paused=!0,r.positionProp=null,r.respondTo=null,r.rowCount=1,r.shouldClick=!0,r.$slider=l(i),r.$slidesCache=null,r.transformType=null,r.transitionType=null,r.visibilityChange="visibilitychange",r.windowWidth=0,r.windowTimer=null,a=l(i).data("slick")||{},r.options=l.extend({},r.defaults,s,a),r.currentSlide=r.options.initialSlide,r.originalSettings=r.options,document.mozHidden!==void 0?(r.hidden="mozHidden",r.visibilityChange="mozvisibilitychange"):document.webkitHidden!==void 0&&(r.hidden="webkitHidden",r.visibilityChange="webkitvisibilitychange"),r.autoPlay=l.proxy(r.autoPlay,r),r.autoPlayClear=l.proxy(r.autoPlayClear,r),r.autoPlayIterator=l.proxy(r.autoPlayIterator,r),r.autoPlayToggleHandler=l.proxy(r.autoPlayToggleHandler,r),r.changeSlide=l.proxy(r.changeSlide,r),r.clickHandler=l.proxy(r.clickHandler,r),r.selectHandler=l.proxy(r.selectHandler,r),r.setPosition=l.proxy(r.setPosition,r),r.swipeHandler=l.proxy(r.swipeHandler,r),r.dragHandler=l.proxy(r.dragHandler,r),r.instanceUid=g++,r.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,r.registerBreakpoints(),r.init(!0)}).prototype.addSlide=m.prototype.slickAdd=function(i,s,a){var r=this;if(typeof s=="boolean")a=s,s=null;else if(s<0||s>=r.slideCount)return!1;r.unload(),typeof s=="number"?s===0&&r.$slides.length===0?l(i).appendTo(r.$slideTrack):a?l(i).insertBefore(r.$slides.eq(s)):l(i).insertAfter(r.$slides.eq(s)):a===!0?l(i).prependTo(r.$slideTrack):l(i).appendTo(r.$slideTrack),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slides.each(function(p,d){l(d).attr("data-slick-index",p),l(d).attr("role","group"),l(d).attr("aria-label","slide "+p)}),r.$slidesCache=r.$slides,r.reinit()},m.prototype.animateHeight=function(){var i,s=this;s.options.slidesToShow===1&&s.options.adaptiveHeight===!0&&s.options.vertical===!1&&(i=s.$slides.eq(s.currentSlide).outerHeight(!0),s.$list.animate({height:i},s.options.speed))},m.prototype.animateSlide=function(i,s){var a={},r=this;r.animateHeight(),r.options.rtl===!0&&r.options.vertical===!1&&(i=-i),r.transformsEnabled===!1?r.options.vertical===!1?r.$slideTrack.animate({left:i},r.options.speed,r.options.easing,s):r.$slideTrack.animate({top:i},r.options.speed,r.options.easing,s):r.cssTransitions===!1?(r.options.rtl===!0&&(r.currentLeft=-r.currentLeft),l({animStart:r.currentLeft}).animate({animStart:i},{duration:r.options.speed,easing:r.options.easing,step:function(p){p=Math.ceil(p),r.options.vertical===!1?a[r.animType]="translate("+p+"px, 0px)":a[r.animType]="translate(0px,"+p+"px)",r.$slideTrack.css(a)},complete:function(){s&&s.call()}})):(r.applyTransition(),i=Math.ceil(i),r.options.vertical===!1?a[r.animType]="translate3d("+i+"px, 0px, 0px)":a[r.animType]="translate3d(0px,"+i+"px, 0px)",r.$slideTrack.css(a),s&&setTimeout(function(){r.disableTransition(),s.call()},r.options.speed))},m.prototype.getNavTarget=function(){var i=this.options.asNavFor;return i&&i!==null&&(i=l(i).not(this.$slider)),i},m.prototype.asNavFor=function(i){var s=this.getNavTarget();s!==null&&typeof s=="object"&&s.each(function(){var a=l(this).slick("getSlick");a.unslicked||a.slideHandler(i,!0)})},m.prototype.applyTransition=function(i){var s=this,a={};s.options.fade===!1?a[s.transitionType]=s.transformType+" "+s.options.speed+"ms "+s.options.cssEase:a[s.transitionType]="opacity "+s.options.speed+"ms "+s.options.cssEase,s.options.fade===!1?s.$slideTrack.css(a):s.$slides.eq(i).css(a)},m.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},m.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},m.prototype.autoPlayIterator=function(){var i=this,s=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(i.options.infinite===!1&&(i.direction===1&&i.currentSlide+1===i.slideCount-1?i.direction=0:i.direction===0&&(s=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(s))},m.prototype.autoPlayToggleHandler=function(){var i=this;i.paused?(i.$playIcon.css("display","none"),i.$pauseIcon.css("display","inline"),i.$pauseButton.find(".slick-play-text").attr("style","display: none"),i.$pauseButton.find(".slick-pause-text").removeAttr("style"),i.slickPlay()):(i.$playIcon.css("display","inline"),i.$pauseIcon.css("display","none"),i.$pauseButton.find(".slick-play-text").removeAttr("style"),i.$pauseButton.find(".slick-pause-text").attr("style","display: none"),i.slickPause())},m.prototype.buildArrows=function(){var i=this;if(i.options.arrows===!0)if(i.$prevArrow=l(i.options.prevArrow).addClass("slick-arrow"),i.$nextArrow=l(i.options.nextArrow).addClass("slick-arrow"),i.slideCount>i.options.slidesToShow){if(i.htmlExpr.test(i.options.prevArrow))if(i.options.arrowsPlacement!=null)switch(i.options.arrowsPlacement){case"beforeSlides":case"split":console.log("test"),i.$prevArrow.prependTo(i.options.appendArrows);break;case"afterSlides":i.$prevArrow.appendTo(i.options.appendArrows)}else i.$prevArrow.prependTo(i.options.appendArrows);if(i.htmlExpr.test(i.options.nextArrow))if(i.options.arrowsPlacement!=null)switch(i.options.arrowsPlacement){case"beforeSlides":console.log("test2"),i.$prevArrow.after(i.$nextArrow);break;case"afterSlides":case"split":i.$nextArrow.appendTo(i.options.appendArrows)}else i.$nextArrow.appendTo(i.options.appendArrows);i.options.infinite!==!0&&i.$prevArrow.addClass("slick-disabled").prop("disabled",!0)}else i.$prevArrow.add(i.$nextArrow).addClass("slick-hidden").prop("disabled",!0)},m.prototype.buildDots=function(){var i,s,a=this;if(a.options.dots===!0&&a.slideCount>a.options.slidesToShow){for(a.$slider.addClass("slick-dotted"),s=l("<ul />").addClass(a.options.dotsClass),i=0;i<=a.getDotCount();i+=1)s.append(l("<li />").append(a.options.customPaging.call(this,a,i)));a.$dots=s.appendTo(a.options.appendDots),a.$dots.find("li").first().addClass("slick-active")}},m.prototype.buildOut=function(){var i=this;i.$slides=i.$slider.children(i.options.slide+":not(.slick-cloned)").addClass("slick-slide"),i.slideCount=i.$slides.length,i.$slides.each(function(s,a){l(a).attr("data-slick-index",s).data("originalStyling",l(a).attr("style")||""),i.options.useGroupRole&&l(a).attr("role","group").attr("aria-label","slide "+(s+1))}),i.$slider.addClass("slick-slider"),i.$slider.attr("role","regi
1on"),i.$slider.attr("aria-label",i.options.regionLabel),i.$slideTrack=i.slideCount===0?l('<div class="slick-track"/>').appendTo(i.$slider):i.$slides.wrapAll('<div class="slick-track"/>').parent(),i.$list=i.$slideTrack.wrap('<div class="slick-list"/>').parent(),i.$slideTrack.css("opacity",0),i.options.centerMode!==!0&&i.options.swipeToSlide!==!0||(i.options.slidesToScroll=1),l("img[data-lazy]",i.$slider).not("[src]").addClass("slick-loading"),i.setupInfinite(),i.buildArrows(),i.buildDots(),i.updateDots(),i.setSlideClasses(typeof i.currentSlide=="number"?i.currentSlide:0),i.options.draggable===!0&&i.$list.addClass("draggable"),i.options.autoplay&&i.options.useAutoplayToggleButton&&(i.$pauseIcon=l(i.options.pauseIcon).attr("aria-hidden",!0),i.$playIcon=l(i.options.playIcon).attr("aria-hidden",!0),i.$pauseButton=l('<button type="button" class="slick-autoplay-toggle-button">'),i.$pauseButton.append(i.$pauseIcon),i.$pauseButton.append(i.$playIcon.css("display","none")),i.$pauseButton.append(l('<span class="slick-pause-text slick-sr-only">Pause</span>')),i.$pauseButton.append(l('<span class="slick-play-text slick-sr-only" style="display: none">Play</span>')),i.$pauseButton.prependTo(i.$slider)),i.options.instructionsText!=null&&i.options.instructionsText!=""&&(i.$instructionsText=l('<p class="slick-instructions slick-sr-only">'+i.options.instructionsText+"</p>"),i.$instructionsText.prependTo(i.$slider))},m.prototype.buildRows=function(){var i,s,a,r=this,p=document.createDocumentFragment(),d=r.$slider.children();if(0<r.options.rows){for(a=r.options.slidesPerRow*r.options.rows,s=Math.ceil(d.length/a),i=0;i<s;i++){for(var _=document.createElement("div"),y=0;y<r.options.rows;y++){for(var w=document.createElement("div"),b=0;b<r.options.slidesPerRow;b++){var T=i*a+(y*r.options.slidesPerRow+b);d.get(T)&&w.appendChild(d.get(T))}_.appendChild(w)}p.appendChild(_)}r.$slider.empty().append(p),r.$slider.children().children().children().css({width:100/r.options.slidesPerRow+"%",display:"inline-block"})}},m.prototype.checkResponsive=function(i,s){var a,r,p,d=this,_=!1,y=d.$slider.width(),w=window.innerWidth||l(window).width();if(d.respondTo==="window"?p=w:d.respondTo==="slider"?p=y:d.respondTo==="min"&&(p=Math.min(w,y)),d.options.responsive&&d.options.responsive.length&&d.options.responsive!==null){for(a in r=null,d.breakpoints)d.breakpoints.hasOwnProperty(a)&&(d.originalSettings.mobileFirst===!1?p<d.breakpoints[a]&&(r=d.breakpoints[a]):p>d.breakpoints[a]&&(r=d.breakpoints[a]));r!==null?d.activeBreakpoint!==null&&r===d.activeBreakpoint&&!s||(d.activeBreakpoint=r,d.breakpointSettings[r]==="unslick"?d.unslick(r):(d.options=l.extend({},d.originalSettings,d.breakpointSettings[r]),i===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(i)),_=r):d.activeBreakpoint!==null&&(d.activeBreakpoint=null,d.options=d.originalSettings,i===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(i),_=r),i||_===!1||d.$slider.trigger("breakpoint",[d,_])}},m.prototype.changeSlide=function(i,s){var a,r,p=this,d=l(i.currentTarget);switch(d.is("a")&&i.preventDefault(),d.is("li")||(d=d.closest("li")),a=p.slideCount%p.options.slidesToScroll!=0?0:(p.slideCount-p.currentSlide)%p.options.slidesToScroll,i.data.message){case"previous":r=a==0?p.options.slidesToScroll:p.options.slidesToShow-a,p.slideCount>p.options.slidesToShow&&p.slideHandler(p.currentSlide-r,!1,s);break;case"next":r=a==0?p.options.slidesToScroll:a,p.slideCount>p.options.slidesToShow&&p.slideHandler(p.currentSlide+r,!1,s);break;case"index":var _=i.data.index===0?0:i.data.index||d.index()*p.options.slidesToScroll;p.slideHandler(p.checkNavigable(_),!1,s),d.children().trigger("focus");break;default:return}},m.prototype.checkNavigable=function(i){var s=this.getNavigableIndexes(),a=0;if(i>s[s.length-1])i=s[s.length-1];else for(var r in s){if(i<s[r]){i=a;break}a=s[r]}return i},m.prototype.cleanUpEvents=function(){var i=this;i.options.autoplay&&i.options.useAutoplayToggleButton&&i.$pauseButton.off("click.slick",i.autoPlayToggleHandler),i.options.dots&&i.$dots!==null&&l("li",i.$dots).off("click.slick",i.changeSlide).off("mouseenter.slick",l.proxy(i.interrupt,i,!0)).off("mouseleave.
1slick",l.proxy(i.interrupt,i,!1)),i.$slider.off("focus.slick blur.slick"),i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow&&i.$prevArrow.off("click.slick",i.changeSlide),i.$nextArrow&&i.$nextArrow.off("click.slick",i.changeSlide)),i.$list.off("touchstart.slick mousedown.slick",i.swipeHandler),i.$list.off("touchmove.slick mousemove.slick",i.swipeHandler),i.$list.off("touchend.slick mouseup.slick",i.swipeHandler),i.$list.off("touchcancel.slick mouseleave.slick",i.swipeHandler),i.$list.off("click.slick",i.clickHandler),l(document).off(i.visibilityChange,i.visibility),i.cleanUpSlideEvents(),l(window).off("orientationchange.slick.slick-"+i.instanceUid,i.orientationChange),l(window).off("resize.slick.slick-"+i.instanceUid,i.resize),l("[draggable!=true]",i.$slideTrack).off("dragstart",i.preventDefault),l(window).off("load.slick.slick-"+i.instanceUid,i.setPosition)},m.prototype.cleanUpSlideEvents=function(){var i=this;i.$list.off("mouseenter.slick",l.proxy(i.interrupt,i,!0)),i.$list.off("mouseleave.slick",l.proxy(i.interrupt,i,!1))},m.prototype.cleanUpRows=function(){var i;0<this.options.rows&&((i=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(i))},m.prototype.clickHandler=function(i){this.shouldClick===!1&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},m.prototype.destroy=function(i){var s=this;s.autoPlayClear(),s.touchObject={},s.cleanUpEvents(),l(".slick-cloned",s.$slider).detach(),s.options.autoplay&&s.options.useAutoplayToggleButton&&s.$pauseButton.remove(),s.$dots&&s.$dots.remove(),s.$prevArrow&&s.$prevArrow.length&&(s.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").prop("disabled",!1).css("display",""),s.htmlExpr.test(s.options.prevArrow)&&s.$prevArrow.remove()),s.$nextArrow&&s.$nextArrow.length&&(s.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").prop("disabled",!1).css("display",""),s.htmlExpr.test(s.options.nextArrow)&&s.$nextArrow.remove()),s.$slides&&(s.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){l(this).attr("style",l(this).data("originalStyling"))}),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.detach(),s.$list.detach(),s.$slider.append(s.$slides)),s.cleanUpRows(),s.$slider.removeClass("slick-slider"),s.$slider.removeClass("slick-initialized"),s.$slider.removeClass("slick-dotted"),s.unslicked=!0,i||s.$slider.trigger("destroy",[s])},m.prototype.disableTransition=function(i){var s={};s[this.transitionType]="",this.options.fade===!1?this.$slideTrack.css(s):this.$slides.eq(i).css(s)},m.prototype.fadeSlide=function(i,s){var a=this;a.cssTransitions===!1?(a.$slides.eq(i).css({zIndex:a.options.zIndex}),a.$slides.eq(i).animate({opacity:1},a.options.speed,a.options.easing,s)):(a.applyTransition(i),a.$slides.eq(i).css({opacity:1,zIndex:a.options.zIndex}),s&&setTimeout(function(){a.disableTransition(i),s.call()},a.options.speed))},m.prototype.fadeSlideOut=function(i){var s=this;s.cssTransitions===!1?s.$slides.eq(i).animate({opacity:0,zIndex:s.options.zIndex-2},s.options.speed,s.options.easing):(s.applyTransition(i),s.$slides.eq(i).css({opacity:0,zIndex:s.options.zIndex-2}))},m.prototype.filterSlides=m.prototype.slickFilter=function(i){var s=this;i!==null&&(s.$slidesCache=s.$slides,s.unload(),s.$slideTrack.children(this.options.slide).detach(),s.$slidesCache.filter(i).appendTo(s.$slideTrack),s.reinit())},m.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick","*",function(s){var a=l(this);setTimeout(function(){i.options.pauseOnFocus&&a.is(":focus")&&(i.focussed=!0,i.autoPlay())},0)}).on("blur.slick","*",function(s){l(this),i.options.pauseOnFocus&&(i.focussed=!1,i.autoPlay())})},m.prototype.getCurrent=m.prototype.slickCurrentSlide=function(){return this.currentSlide},m.prototype.getDotCount=function(){var i=this,s=0,a=0,r=0;if(i.options.infinite===!0)if(i.slideCount<=i.options.slidesToShow)++r;else for(;s<i.slideCount;)++r,s=a+i.options.slidesToScroll,a+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(i.options.centerMode===!0)r=i.slideCount;else if(i.options.asNavFor)for(;s<i.slideCount;)++r,s=a+i.options.slidesToScroll,a+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else r=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return r-1},m.prototype.getLeft=function(i){var s,a,r,p,d=this,_=0;return d.slideOffset=0,a=d.$slides.first().outerHeight(!0),d.options.infinite===!0?(d.slideCount>d.options.slidesToShow&&(d.slideOffset=d.slideWidth*d.options.slidesToShow*-1,p=-1,d.options.vertical===!0&&d.options.centerMode===!0&&(d.options.slidesToShow===2?p=-1.5:d.options.slidesToShow===1&&(p=-2)),_=a*d.options.slidesToShow*p),d.slideCount%d.options.slidesToScroll!=0&&i+d.options.slidesToScroll>d.slideCount&&d.slideCount>d.options.slidesToShow&&(_=i>d.slideCount?(d.slideOffset=(d.options.slidesToShow-(i-d.slideCount))*d.slideWidth*-1,(d.options.slidesToShow-(i-d.slideCount))*a*-1):(d.slideOffset=d.slideCount%d.options.slidesToScroll*d.slideWidth*-1,d.slideCount%d.options.slidesToScroll*a*-1))):i+d.options.slidesToShow>d.slideCount&&(d.slideOffset=(i+d.options.slidesToShow-d.slideCount)*d.slideWidth,_=(i+d.options.slidesToShow-d.slideCount)*a),d.slideCount<=d.options.slidesToShow&&(_=d.slideOffset=0),d.options.centerMode===!0&&d.slideCount<=d.options.slidesToShow?d.slideOffset=d.slideWidth*Math.floor(d.options.slidesToShow)/2-d.slideWidth*d.slideCount/2:d.options.centerMode===!0&&d.options.infinite===!0?d.slideOffset+=d.slideWidth*Math.floor(d.options.slidesToShow/2)-d.slideWidth:d.options.centerMode===!0&&(d.slideOffset=0,d.slideOffset+=d.slideWidth*Math.floor(d.options.slidesToShow/2)),s=d.options.vertical===!1?i*d.slideWidth*-1+d.slideOffset:i*a*-1+_,d.options.variableWidth===!0&&(r=d.slideCount<=d.options.slidesToShow||d.options.infinite===!1?d.$slideTrack.children(".slick-slide").eq(i):d.$slideTrack.children(".slick-slide").eq(i+d.options.slidesToShow),s=d.options.rtl===!0?r[0]?-1*(d.$slideTrack.width()-r[0].offsetLeft-r.width()):0:r[0]?-1*r[0].offsetLeft:0,d.options.centerMode===!0&&(r=d.slideCount<=d.options.slidesToShow||d.options.infinite===!1?d.$slideTrack.children(".slick-slide").eq(i):d.$slideTrack.children(".slick-slide").eq(i+d.options.slidesToShow+1),s=d.options.rtl===!0?r[0]?-1*(d.$slideTrack.width()-r[0].offsetLeft-r.width()):0:r[0]?-1*r[0].offsetLeft:0,s+=(d.$list.width()-r.outerWidth())/2)),s},m.prototype.getOption=m.prototype.slickGetOption=function(i){return this.options[i]},m.prototype.getNavigableIndexes=function(){for(var i=this,s=0,a=0,r=[],p=i.options.infinite===!1?i.slideCount:(s=-1*i.options.slidesToScroll,a=-1*i.options.slidesToScroll,2*i.slideCount);s<p;)r.push(s),s=a+i.options.slidesToScroll,a+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;return r},m.prototype.getSlick=function(){return this},m.prototype.getSlideCount=function(){var i,s=this,a=s.options.centerMode===!0?Math.floor(s.$list.width()/2):0,r=-1*s.swipeLeft+a;return s.options.swipeToSlide===!0?(s.$slideTrack.find(".slick-slide").each(function(p,d){var _=l(d).outerWidth(),y=d.offsetLeft;if(s.options.centerMode!==!0&&(y+=_/2),r<y+_)return i=d,!1}),Math.abs(l(i).attr("data-slick-index")-s.currentSlide)||1):s.options.slidesToScroll},m.prototype.goTo=m.prototype.slickGoTo=function(i,s){this.changeSlide({data:{message:"index",index:
1parseInt(i)}},s)},m.prototype.init=function(i){var s=this;l(s.$slider).hasClass("slick-initialized")||(l(s.$slider).addClass("slick-initialized"),s.buildRows(),s.buildOut(),s.setProps(),s.startLoad(),s.loadSlider(),s.initializeEvents(),s.updateArrows(),s.updateDots(),s.checkResponsive(!0),s.focusHandler()),i&&s.$slider.trigger("init",[s]),s.options.autoplay&&(s.paused=!1,s.autoPlay()),s.updateSlideVisibility(),s.options.accessibility!=null&&console.warn("accessibility setting is no longer supported."),s.options.focusOnChange!=null&&console.warn("focusOnChange is no longer supported."),s.options.focusOnSelect!=null&&console.warn("focusOnSelect is no longer supported.")},m.prototype.initArrowEvents=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide))},m.prototype.initDotEvents=function(){var i=this;i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&l("li",i.$dots).on("click.slick",{message:"index"},i.changeSlide),i.options.dots===!0&&i.options.pauseOnDotsHover===!0&&i.slideCount>i.options.slidesToShow&&l("li",i.$dots).on("mouseenter.slick",l.proxy(i.interrupt,i,!0)).on("mouseleave.slick",l.proxy(i.interrupt,i,!1))},m.prototype.initSlideEvents=function(){var i=this;i.options.pauseOnHover&&(i.$list.on("mouseenter.slick",l.proxy(i.interrupt,i,!0)),i.$list.on("mouseleave.slick",l.proxy(i.interrupt,i,!1)))},m.prototype.initializeEvents=function(){var i=this;i.initArrowEvents(),i.initDotEvents(),i.initSlideEvents(),i.options.autoplay&&i.options.useAutoplayToggleButton&&i.$pauseButton.on("click.slick",i.autoPlayToggleHandler),i.$list.on("touchstart.slick mousedown.slick",{action:"start"},i.swipeHandler),i.$list.on("touchmove.slick mousemove.slick",{action:"move"},i.swipeHandler),i.$list.on("touchend.slick mouseup.slick",{action:"end"}
1,i.swipeHandler),i.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},i.swipeHandler),i.$list.on("click.slick",i.clickHandler),l(document).on(i.visibilityChange,l.proxy(i.visibility,i)),l(window).on("orientationchange.slick.slick-"+i.instanceUid,l.proxy(i.orientationChange,i)),l(window).on("resize.slick.slick-"+i.instanceUid,l.proxy(i.resize,i)),l("[draggable!=true]",i.$slideTrack).on("dragstart",i.preventDefault),l(window).on("load.slick.slick-"+i.instanceUid,i.setPosition),l(i.setPosition)},m.prototype.initUI=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},m.prototype.lazyLoad=function(){var i,s,a,r=this;function p(b){l("img[data-lazy]",b).each(function(){var T=l(this),E=l(this).attr("data-lazy"),M=l(this).attr("data-srcset"),$=l(this).attr("data-sizes")||r.$slider.attr("data-sizes"),Z=document.createElement("img");Z.onload=function(){T.animate({opacity:0},100,function(){M&&(T.attr("srcset",M),$&&T.attr("sizes",$)),T.attr("src",E).animate({opacity:1},200,function(){T.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,T,E])})},Z.onerror=function(){T.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,T,E])},Z.src=E})}if(r.options.centerMode===!0?a=r.options.infinite===!0?(s=r.currentSlide+(r.options.slidesToShow/2+1))+r.options.slidesToShow+2:(s=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),r.options.slidesToShow/2+1+2+r.currentSlide):(s=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,a=Math.ceil(s+r.options.slidesToShow),r.options.fade===!0&&(0<s&&s--,a<=r.slideCount&&a++)),i=r.$slider.find(".slick-slide").slice(s,a),r.options.lazyLoad==="anticipated")for(var d=s-1,_=a,y=r.$slider.find(".slick-slide"),w=0;w<r.options.slidesToScroll;
1w++)d<0&&(d=r.slideCount-1),i=(i=i.add(y.eq(d))).add(y.eq(_)),d--,_++;p(i),r.slideCount<=r.options.slidesToShow?p(r.$slider.find(".slick-slide")):r.currentSlide>=r.slideCount-r.options.slidesToShow?p(r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow)):r.currentSlide===0&&p(r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow))},m.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),i.options.lazyLoad==="progressive"&&i.progressiveLazyLoad()},m.prototype.next=m.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},m.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},m.prototype.pause=m.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},m.prototype.play=m.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},m.prototype.postSlide=function(i){var s=this;s.unslicked||(s.$slider.trigger("afterChange",[s,i]),s.animating=!1,s.slideCount>s.options.slidesToShow&&s.setPosition(),s.swipeLeft=null,s.options.autoplay&&s.autoPlay(),s.updateSlideVisibility())},m.prototype.prev=m.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},m.prototype.preventDefault=function(i){i.preventDefault()},m.prototype.progressiveLazyLoad=function(i){i=i||1;var s,a,r,p,d,_=this,y=l("img[data-lazy]",_.$slider);y.length?(s=y.first(),a=s.attr("data-lazy"),r=s.attr("data-srcset"),p=s.attr("data-sizes")||_.$slider.attr("data-sizes"),(d=document.createElement("img")).onload=function(){r&&(s.attr("srcset",r),p&&s.attr("sizes",p)),s.attr("src",a).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),_.options.adaptiveHeight===!0&&_.setPosition(),_.$slider.trigger("lazyLoaded",[_,s,a]),_.progressiveLazyLoad()},d.onerror=function(){i<3?setTimeout(function(){_.progressiveLazyLoad(i+1)},500):(s.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),_.$slider.trigger("lazyLoadError",[_,s,a]),_.progressiveLazyLoad())},d.src=a):_.$slider.trigger("allImagesLoaded",[_])},m.prototype.refresh=function(i){var s,a=this,r=a.slideCount-a.options.slidesToShow;!a.options.infinite&&a.currentSlide>r&&(a.currentSlide=r),a.slideCount<=a.options.slidesToShow&&(a.currentSlide=0),s=a.currentSlide,a.destroy(!0),l.extend(a,a.initials,{currentSlide:s}),a.init(),i||a.changeSlide({data:{message:"index",index:s}},!1)},m.prototype.registerBreakpoints=function(){var i,s,a,r=this,p=r.options.responsive||null;if(l.type(p)==="array"&&p.length){for(i in r.respondTo=r.options.respondTo||"window",p)if(a=r.breakpoints.length-1,p.hasOwnProperty(i)){for(s=p[i].breakpoint;0<=a;)r.breakpoints[a]&&r.breakpoints[a]===s&&r.breakpoints.splice(a,1),a--;r.breakpoints.push(s),r.breakpointSettings[s]=p[i].settings}r.breakpoints.sort(function(d,_){return r.options.mobileFirst?d-_:_-d})}},m.prototype.reinit=function(){var i=this;i.$slides=i.$slideTrack.children(i.options.slide).addClass("slick-slide"),i.slideCount=i.$slides.length,i.currentSlide>=i.slideCount&&i.currentSlide!==0&&(i.currentSlide=i.currentSlide-i.options.slidesToScroll),i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0),i.registerBreakpoints(),i.setProps(),i.setupInfinite(),i.buildArrows(),i.updateArrows(),i.initArrowEvents(),i.buildDots(),i.updateDots(),i.initDotEvents(),i.cleanUpSlideEvents(),i.initSlideEvents(),i.checkResponsive(!1,!0),i.setSlideClasses(typeof i.currentSlide=="number"?i.currentSlide:0),i.setPosition(),i.focusHandler(),i.paused=!i.options.autoplay,i.autoPlay(),i.$slider.trigger("reInit",[i])},m.prototype.resize=function(){var i=this;l(window).width()!==i.windowWidth&&(clearTimeout(i.windowDelay),i.windowDelay=window.setTimeout(function(){i.windowWidth=l(window).width(),i.checkResponsive(),i.unslicked||i.setPosition()},50))},m.prototype.removeSlide=m.prototype.slickRemove=function(i,s,a){var r=this;if(i=typeof i=="boolean"?(s=i)===!0?0:r.slideCount-1:s===!0?--i:i,r.slideCount<1||i<0||i>r.slideCount-1)return!1;r.unload(),a===!0?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(i).remove(),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slidesCache=r.$slides,r.reinit()},m.prototype.setCSS=function(i){var s,a,r=this,p={};r.options.rtl===!0&&(i=-i),s=r.positionProp=="left"?Math.ceil(i)+"px":"0px",a=r.positionProp=="top"?Math.ceil(i)+"px":"0px",p[r.positionProp]=i,r.transformsEnabled===!1||(!(p={})===r.cssTransitions?p[r.animType]="translate("+s+", "+a+")":p[r.animType]="translate3d("+s+", "+a+", 0px)"),r.$slideTrack.css(p)},m.prototype.setDimensions=function(){var i=this;i.options.vertical===!1?i.options.centerMode===!0&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),i.options.centerMode===!0&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),i.options.vertical===!1&&i.options.variableWidth===!1?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):i.options.variableWidth===!0?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var s=i.$slides.first().outerWidth(!0)-i.$slides.first().width();i.options.variableWidth===!1&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-s)},m.prototype.setFade=function(){var i,s=this;s.$slides.each(function(a,r){i=s.slideWidth*a*-1,s.options.rtl===!0?l(r).css({position:"relative",right:i,top:0,zIndex:s.options.zIndex-2,opacity:0}
1):l(r).css({position:"relative",left:i,top:0,zIndex:s.options.zIndex-2,opacity:0})}),s.$slides.eq(s.currentSlide).css({zIndex:s.options.zIndex-1,opacity:1})},m.prototype.setHeight=function(){var i,s=this;s.options.slidesToShow===1&&s.options.adaptiveHeight===!0&&s.options.vertical===!1&&(i=s.$slides.eq(s.currentSlide).outerHeight(!0),s.$list.css("height",i))},m.prototype.setOption=m.prototype.slickSetOption=function(){var i,s,a,r,p,d=this,_=!1;if(l.type(arguments[0])==="object"?(a=arguments[0],_=arguments[1],p="multiple"):l.type(arguments[0])==="string"&&(r=arguments[1],_=arguments[2],(a=arguments[0])==="responsive"&&l.type(arguments[1])==="array"?p="responsive":arguments[1]!==void 0&&(p="single")),p==="single")d.options[a]=r;else if(p==="multiple")l.each(a,function(y,w){d.options[y]=w});else if(p==="responsive")for(s in r)if(l.type(d.options.responsive)!=="array")d.options.responsive=[r[s]];else{for(i=d.options.responsive.length-1;0<=i;)d.options.responsive[i].breakpoint===r[s].breakpoint&&d.options.responsive.splice(i,1),i--;d.options.responsive.push(r[s])}_&&(d.unload(),d.reinit())},m.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),i.options.fade===!1?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},m.prototype.setProps=function(){var i=this,s=document.body.style;i.positionProp=i.options.vertical===!0?"top":"left",i.positionProp==="top"?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),s.WebkitTransition===void 0&&s.MozTransition===void 0&&s.msTransition===void 0||i.options.useCSS===!0&&(i.cssTransitions=!0),i.options.fade&&(typeof i.options.zIndex=="number"?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),s.OTransform!==void 0&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",s.perspectiveProperty===void 0&&s.webkitPerspective===void 0&&(i.animType=!1)),s.MozTransform!==void 0&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",s.perspectiveProperty===void 0&&s.MozPerspective===void 0&&(i.animType=!1)),s.webkitTransform!==void 0&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",s.perspectiveProperty===void 0&&s.webkitPerspective===void 0&&(i.animType=!1)),s.msTransform!==void 0&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",s.msTransform===void 0&&(i.animType=!1)),s.transform!==void 0&&i.animType!==!1&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&i.animType!==null&&i.animType!==!1},m.prototype.setSlideClasses=function(i){var s,a,r,p,d=this,_=d.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true").attr("aria-label",function(){return l(this).attr("aria-label").replace(" (centered)","")});d.$slides.eq(i).addClass("slick-current"),d.options.centerMode===!0?(r=d.options.slidesToShow%2==0?1:0,p=Math.floor(d.options.slidesToShow/2),d.options.infinite===!0&&(p<=i&&i<=d.slideCount-1-p?d.$slides.slice(i-p+r,i+p+1).addClass("slick-active").removeAttr("aria-hidden"):(s=d.options.slidesToShow+i,_.slice(s-p+1+r,s+p+2).addClass("slick-active").removeAttr("aria-hidden")),i===0?_.eq(d.options.slidesToShow+d.slideCount+1).addClass("slick-center").attr("aria-label",function(){return l(this).attr("aria-label")+" (centered)"}):i===d.slideCount-1&&_.eq(d.options.slidesToShow).addClass("slick-center").attr("aria-label",function(){return l(this).attr("aria-label")+" (centered)"})),d.$slides.eq(i).addClass("slick-center").attr("aria-label",function(){return l(this).attr("aria-label")+" (centered)"})):0<=i&&i<=d.slideCount-d.options.slidesToShow?d.$slides.slice(i,i+d.options.slidesToShow).addClass("slick-active").removeAttr("aria-hidden"):_.length<=d.options.slidesToShow?_.addClass("slick-active").removeAttr("aria-hidden"):(a=d.slideCount%d.options.slidesToShow,s=d.options.infinite===!0?d.options.slidesToShow+i:i,d.options.slidesToShow==d.options.slidesToScroll&&d.slideCount-i<d.options.slidesToShow?_.slice(s-(d.options.slidesToShow-a),s+a).addClass("slick-active").removeAttr("aria-hidden"):_.slice(s,s+d.options.slidesToShow).addClass("slick-active").removeAttr("aria-hidden")),d.options.lazyLoad!=="ondemand"&&d.options.lazyLoad!=="anticipated"||d.lazyLoad()},m.prototype.setupInfinite=function(){var i,s,a,r=this;if(r.options.fade===!0&&(r.options.centerMode=!1),r.options.infinite===!0&&r.options.fade===!1&&(s=null,r.slideCount>r.options.slidesToShow)){for(a=r.options.centerMode===!0?r.options.slidesToShow+1:r.options.slidesToShow,i=r.slideCount;i>r.slideCount-a;--i)s=i-1,l(r.$slides[s]).clone(!0).attr("id","").attr("data-slick-index",s-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(i=0;i<a+r.slideCount;i+=1)s=i,l(r.$slides[s]).clone(!0).attr("id","").attr("data-slick-index",s+r.slideCount).appendTo(r.$slideTrack).addClass("slick-cloned");r.$slideTrack.find(".slick-cloned").find("[id]").each(function(){l(this).attr("id","")})}},m.prototype.interrupt=function(i){i||this.autoPlay(),this.interrupted=i},m.prototype.selectHandler=function(i){var s=l(i.target).is(".slick-slide")?l(i.target):l(i.target).parents(".slick-slide"),a=(a=parseInt(s.attr("data-slick-index")))||0;this.slideCount<=this.options.slidesToShow?this.slideHandler(a,!1,!0):this.slideHandler(a)},m.prototype.slideHandler=function(i,s,a){var r,p,d,_,y,w,b=this;if(s=s||!1,!(b.animating===!0&&b.options.waitForAnimate===!0||b.options.fade===!0&&b.currentSlide===i))if(s===!1&&b.asNavFor(i),r=i,y=b.getLeft(r),_=b.getLeft(b.currentSlide),b.currentLeft=b.swipeLeft===null?_:b.swipeLeft,b.options.infinite===!1&&b.options.centerMode===!1&&(i<0||i>b.getDotCount()*b.options.slidesToScroll))b.options.fade===!1&&(r=b.currentSlide,a!==!0&&b.slideCount>b.options.slidesToShow?b.animateSlide(_,function(){b.postSlide(r)}):b.postSlide(r));else if(b.options.infinite===!1&&b.options.centerMode===!0&&(i<0||i>b.slideCount-b.options.slidesToScroll))b.options.fade===!1&&(r=b.currentSlide,a!==!0&&b.slideCount>b.options.slidesToShow?b.animateSlide(_,function(){b.postSlide(r)}):b.postSlide(r));else{if(b.options.autoplay&&clearInterval(b.autoPlayTimer),p=r<0?b.slideCount%b.options.slidesToScroll!=0?b.slideCount-b.slideCount%b.options.slidesToScroll:b.slideCount+r:r>=b.slideCount?b.slideCount%b.options.slidesToScroll!=0?0:r-b.slideCount:r,b.animating=!0,b.$slider.trigger("beforeChange",[b,b.currentSlide,p]),d=b.currentSlide,b.currentSlide=p,b.setSlideClasses(b.currentSlide),b.options.asNavFor&&(w=(w=b.getNavTarget()).slick("getSlick")).slideCount<=w.options.slidesToShow&&w.setSlideClasses(b.currentSlide),b.updateDots(),b.updateArrows(),b.options.fade===!0)return a!==!0?(b.fadeSlideOut(d),b.fadeSlide(p,function(){b.postSlide(p)})):b.postSlide(p),void b.animateHeight();a!==!0&&b.slideCount>b.options.slidesToShow?b.animateSlide(y,function(){b.postSlide(p)}):b.postSlide(p)}},m.prototype.startLoad=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},m.prototype.swipeDirection=function(){var i=this,s=i.touchObject.startX-i.touchObject.curX,a=i.touchObject.startY-i.touchObject.curY,r=Math.atan2(a,s),p=Math.round(180*r/Math.PI);return p<0&&(p=360-Math.abs(p)),p<=45&&0<=p||p<=360&&315<=p?i.options.rtl===!1?"left":"right":135<=p&&p<=225?i.options.rtl===!1?"right":"left":i.options.verticalSwiping===!0?35<=p&&p<=135?"down":"up":"vertical"},m.prototype.swipeEnd=function(i){var s,a,r=this;if(r.dragging=!1,r.swiping=!1,r.scrolling)return r.scrolling=!1;if(r.interrupted=!1,r.shouldClick=!(10<r.touchObject.swipeLength),r.touchObject.curX===void 0)return!1;if(r.touchObject.edgeHit===!0&&r.$slider.trigger("edge",[r,r.swipeDirection()]),r.touchObject.swipeLength>=r.touchObject.minSwipe){switch(a=r.swipeDirection()){case"left":case"down":s=r.options.swipeToSlide?r.checkNavigable(r.currentSlide+r.getSlideCount()):r.currentSlide+r.getSlideCount(),r.currentDirection=0;break;case"right":case"up":s=r.options.swipeToSlide?r.checkNavigable(r.currentSlide-r.getSlideCount()):r.currentSlide-r.getSlideCount(),r.currentDirection=1}a!="vertical"&&(r.slideHandler(s),r.touchObject={},r.$slider.trigger("swipe",[r,a]))}else r.touchObject.startX!==r.touchObject.curX&&(r.slideHandler(r.currentSlide),r.touchObject={})},m.prototype.swipeHandler=function(i){var s=this;if(!(s.options.swipe===!1||"ontouchend"in document&&s.options.swipe===!1||s.options.draggable===!1&&i.type.indexOf("mou
1se")!==-1))switch(s.touchObject.fingerCount=i.originalEvent&&i.originalEvent.touches!==void 0?i.originalEvent.touches.length:1,s.touchObject.minSwipe=s.listWidth/s.options.touchThreshold,s.options.verticalSwiping===!0&&(s.touchObject.minSwipe=s.listHeight/s.options.touchThreshold),i.data.action){case"start":s.swipeStart(i);break;case"move":s.swipeMove(i);break;case"end":s.swipeEnd(i)}},m.prototype.swipeMove=function(i){var s,a,r,p,d,_=this,y=i.originalEvent!==void 0?i.originalEvent.touches:null;return!(!_.dragging||_.scrolling||y&&y.length!==1)&&(s=_.getLeft(_.currentSlide),_.touchObject.curX=y!==void 0?y[0].pageX:i.clientX,_.touchObject.curY=y!==void 0?y[0].pageY:i.clientY,_.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curX-_.touchObject.startX,2))),d=Math.round(Math.sqrt(Math.pow(_.touchObject.curY-_.touchObject.startY,2))),!_.options.verticalSwiping&&!_.swiping&&4<d?!(_.scrolling=!0):(_.options.verticalSwiping===!0&&(_.touchObject.swipeLength=d),a=_.swipeDirection(),i.originalEvent!==void 0&&4<_.touchObject.swipeLength&&(_.swiping=!0,i.preventDefault()),p=(_.options.rtl===!1?1:-1)*(_.touchObject.curX>_.touchObject.startX?1:-1),_.options.verticalSwiping===!0&&(p=_.touchObject.curY>_.touchObject.startY?1:-1),r=_.touchObject.swipeLength,(_.touchObject.edgeHit=!1)===_.options.infinite&&(_.currentSlide===0&&a==="right"||_.currentSlide>=_.getDotCount()&&a==="left")&&(r=_.touchObject.swipeLength*_.options.edgeFriction,_.touchObject.edgeHit=!0),_.options.vertical===!1?_.swipeLeft=s+r*p:_.swipeLeft=s+r*(_.$list.height()/_.listWidth)*p,_.options.verticalSwiping===!0&&(_.swipeLeft=s+r*p),_.options.fade!==!0&&_.options.touchMove!==!1&&(_.animating===!0?(_.swipeLeft=null,!1):void _.setCSS(_.swipeLeft))))},m.prototype.swipeStart=function(i){var s,a=this;if(a.interrupted=!0,a.touchObject.fingerCount!==1||a.slideCount<=a.options.slidesToShow)return!(a.touchObject={});i.originalEvent!==void 0&&i.originalEvent.touches!==void 0&&(s=i.originalEvent.touches[0]),a.touchObject.startX=a.touchObject.curX=s!==void 0?s.pageX:i.clientX,a.touchObject.startY=a.touchObject.curY=s!==void 0?s.pageY:i.clientY,a.dragging=!0},m.prototype.unfilterSlides=m.prototype.slickUnfilter=function(){var i=this;i.$slidesCache!==null&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},m.prototype.unload=function(){var i=this;l(".slick-cloned",i.$slider).remove(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove(),i.$nextArrow&&i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove(),i.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},m.prototype.unslick=function(i){this.$slider.trigger("unslick",[this,i]),this.destroy()},m.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").prop("disabled",!1),i.$nextArrow.removeClass("slick-disabled").prop("disabled",!1),i.currentSlide===0?(i.$prevArrow.addClass("slick-disabled").prop("disabled",!0),i.$nextArrow.removeClass("slick-disabled").prop("disabled",!1)):(i.currentSlide>=i.slideCount-i.options.slidesToShow&&i.options.centerMode===!1||i.currentSlide>=i.slideCount-1&&i.options.centerMode===!0)&&(i.$nextArrow.addClass("slick-disabled").prop("disabled",!0),i.$prevArrow.removeClass("slick-disabled").prop("disabled",!1)))},m.prototype.updateDots=function(){var i=this;i.$dots!==null&&(i.$dots.find("li").removeClass("slick-active").find("button").removeAttr("aria-current").end().end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active").find("button").attr("aria-current",!0).end().end())},m.prototype.updateSlideVisibility=function(){this.$slideTrack.find(".slick-slide").attr("aria-hidden","true").find("a, input, button, select").attr("tabindex","-1"),this.$slideTrack.find(".slick-active").removeAttr("aria-hidden").find("a, input, button, select").removeAttr("tabindex")},m.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},l.fn.slick=function(){for(var i,s=this,a=arguments[0],r=Array.prototype.slice.call(arguments,1
1),p=s.length,d=0;d<p;d++)if(typeof a=="object"||a===void 0?s[d].slick=new m(s[d],a):i=s[d].slick[a].apply(s[d].slick,r),i!==void 0)return i;return s}})})(Ti)),Ti.exports}nl();Fr();const ss=Object.assign({"./utils/article-archive-load-more.js":gr,"./utils/artwork-archive.js":ea,"./utils/exhibition-archive-filters.js":_a,"./utils/exhibition-archive-past-load-more.js":wa,"./utils/external-link-icon.js":fr,"./utils/front-hero-video.js":ba,"./utils/header-langnav.js":Ta,"./utils/header-navigation.js":Aa,"./utils/header-search.js":Ba,"./utils/image-scroll-motion.js":Va,"./utils/search-results-load-more.js":Ja,"./utils/share-links.js":il});for(const c of Object.keys(ss).sort())ss[c]?.initApp?.();function sl(){const c=document.querySelector(".site-header"),u=document.querySelector(".wp-block-sc-exhibition-archive-filters, .wp-block-sc-henkiloarkisto__filters");let l=c?c.getBoundingClientRect().height:window.innerWidth>1280?140:110;return u&&(l+=u.getBoundingClientRect().height),l+16}U('a[href^="#"]').on("click",function(c){if(U(this.hash).length>0){c.preventDefault();const u=this.hash;us(u,{offset:-sl(),duration:1.2,onComplete(){window.location.hash!==u&&history.pushState(null,"",u)}})}});const Fe='<button class="slick-prev slick-arrow" type="button"><span class="slick-sr-only">Edellinen</span></button>',Ue='<button class="slick-next slick-arrow" type="button"><span class="slick-sr-only">Seuraava</span></button>';function ol(){!U(".wp-block-gallery.show-as-slider").length||typeof U.fn.slick!="function"||U(".wp-block-gallery.show-as-slider").each(function(){const c=U(this);if(c.hasClass("slick-initialized")||c.find("figure.wp-block-image").length<2)return;c.slick({variableWidth:!0,arrows:!0,dots:!1,slidesToScroll:1,swipeToSlide:!1,infinite:!0,speed:400,regionLabel:"kuvagalleria "+c.index(),prevArrow:Fe,nextArrow:Ue});const u=()=>{c.hasClass("slick-initialized")&&c.slick("setPosition")};c.find("img").each(function(){this.complete||U(this).one("load",u)}),u()})}ol();const As=".event-lift__item, .news-lift__item";function De(c){c.attr("role","list"),c.find(As).attr("role","listitem")}function Ei(c){c.removeAttr("role"),c.find(As).removeAttr("role")}function Is(c){return c.hasClass("slick-initialized")?c.find(".event-lift__item:not(.slick-cloned)").length:c.children(".event-lift__item").length}function rl(c){return c.hasClass("slick-initialized")?c.find(".news-lift__item:not(.slick-cloned)").length:c.children(".news-lift__item").length}function Bs(){const c=U(".wp-block-sc-event-lift .event-lift__grid");!c.length||typeof U.fn.slick!="function"||c.each(function(){const u=U(this),l=Is(u),g=window.innerWidth<1024&&l>1;g&&!u.hasClass("slick-initialized")?(Ei(u),u.slick({slidesToShow:1,slidesToScroll:1,arrows:!0,dots:!1,infinite:!0,regionLabel:"tapahtumat",prevArrow:Fe,nextArrow:Ue})):!g&&u.hasClass("slick-initialized")&&(u.slick("unslick"),De(u))})}function al(){return window.innerWidth<1024?"compact":"desktop"}function ll(c){return window.innerWidth<1024?c>1:c>3}function Rs(){const c=U(".wp-block-sc-exhibition-archive-upcoming .event-lift__grid");if(!c.length||typeof U.fn.slick!="function")return;const u={slidesToScroll:1,arrows:!0,dots:!1,infinite:!0,regionLabel:"tulevat näyttelyt",prevArrow:Fe,nextArrow:Ue};c.each(function(){const l=U(this),g=Is(l),m=ll(g),i=al();if(l.hasClass("slick-initialized")){if(!m){l.slick("unslick"),De(l),l.removeData("upcoming-slider-mode");return}if(l.data("upcoming-slider-mode")===i)return;l.slick("unslick"),De(l)}m&&(Ei(l),i==="compact"?l.slick({...u,slidesToShow:1}):l.slick({...u,slidesToShow:3,responsive:[{breakpoint:1024,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:1}}]}),l.data("upcoming-slider-mode",i))})}function Zs(){const c=U(".wp-block-sc-news-lift.has-slider .news-lift__grid");!c.length||typeof U.fn.slick!="function"||c.each(function(){const u=U(this),l=rl(u),g=window.innerWidth<1024&&l>1;g&&!u.hasClass("slick-initialized")?(Ei(u),u.slick({slidesToShow:1,slidesToScroll:1,arrows:!0,dots:!1,infinite:!0,regionLabel:"uutiset",prevArrow:Fe,nextArrow:Ue})):!g&&u.hasClass("slick-initialized")&&(u.slick("unslick"),De(u))})}Bs();Rs();Zs();let os;U(window).on("resize",function(){clearTimeout(os),os=setTimeout(function(){Bs(),Rs(),Zs(),U(".wp-block-gallery.show-as-slider.slick-initialized").each(function(){U(this).slick("setPosition")})},150)});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.