/*! For license information please see 613.js.LICENSE.txt */
(self.webpackChunkeptheme=self.webpackChunkeptheme||[]).push([[613],{8595:t=>{var e;self,e=function(){return(()=>{"use strict";var t={311:(t,e,i)=>{i.r(e),i.d(e,{default:()=>Ot});var n={};function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},o.apply(this,arguments)}i.r(n),i.d(n,{CREATED:()=>H,DESTROYED:()=>Y,IDLE:()=>U,MOUNTED:()=>q,MOVING:()=>V});var r=Object.keys;function s(t,e){r(t).some((function(i,n){return e(t[i],i,n)}))}function a(t){return r(t).map((function(e){return t[e]}))}function h(t){return"object"==typeof t}function l(t,e){var i=o({},t);return s(e,(function(t,e){h(t)?(h(i[e])||(i[e]={}),i[e]=l(i[e],t)):i[e]=t})),i}function u(t){return Array.isArray(t)?t:[t]}function c(t,e,i){return Math.min(Math.max(t,e>i?i:e),e>i?e:i)}function d(t,e){var i=0;return t.replace(/%s/g,(function(){return u(e)[i++]}))}function f(t){var e=typeof t;return"number"===e&&t>0?parseFloat(t)+"px":"string"===e?t:""}function p(t){return t<10?"0"+t:t}function m(t,e){if("string"==typeof e){var i=y("div",{});T(i,{position:"absolute",width:e}),w(t,i),e=i.clientWidth,x(i)}return+e||0}function g(t,e){return t?t.querySelector(e.split(" ")[0]):null}function v(t,e){return _(t,e)[0]}function _(t,e){return t?a(t.children).filter((function(t){return k(t,e.split(" ")[0])||t.tagName===e})):[]}function y(t,e){var i=document.createElement(t);return s(e,(function(t,e){return C(i,e,t)})),i}function b(t){var e=y("div",{});return e.innerHTML=t,e.firstChild}function x(t){u(t).forEach((function(t){if(t){var e=t.parentElement;e&&e.removeChild(t)}}))}function w(t,e){t&&t.appendChild(e)}function P(t,e){if(t&&e){var i=e.parentElement;i&&i.insertBefore(t,e)}}function T(t,e){t&&s(e,(function(e,i){null!==e&&(t.style[i]=e)}))}function L(t,e,i){t&&u(e).forEach((function(e){e&&t.classList[i?"remove":"add"](e)}))}function E(t,e){L(t,e,!1)}function S(t,e){L(t,e,!0)}function k(t,e){return!!t&&t.classList.contains(e)}function C(t,e,i){t&&t.setAttribute(e,i)}function A(t,e){return t?t.getAttribute(e):""}function O(t,e){u(e).forEach((function(e){u(t).forEach((function(t){return t&&t.removeAttribute(e)}))}))}function M(t){return t.getBoundingClientRect()}var z="slide",I="loop",B="fade";const N=function(t,e){var i,n;return{mount:function(){i=e.Elements.list,t.on("transitionend",(function(t){t.target===i&&n&&n()}),i)},start:function(o,r,s,a,h){var l=t.options,u=e.Controller.edgeIndex,c=l.speed;n=h,t.is(z)&&(0===s&&r>=u||s>=u&&0===r)&&(c=l.rewindSpeed||c),T(i,{transition:"transform "+c+"ms "+l.easing,transform:"translate("+a.x+"px,"+a.y+"px)"})}}},j=function(t,e){var i={mount:function(){n(t.index)},start:function(t,i,o,r,s){var a=e.Elements.track;T(a,{height:f(a.clientHeight)}),n(i),setTimeout((function(){s(),T(a,{height:""})}))}};function n(i){var n=t.options;T(e.Elements.slides[i],{transition:"opacity "+n.speed+"ms "+n.easing})}return i};function Z(t){console.error("[SPLIDE] "+t)}function D(t,e){if(!t)throw new Error(e)}var R="splide",F={active:"is-active",visible:"is-visible",loading:"is-loading"},W={type:"slide",rewind:!1,speed:400,rewindSpeed:0,waitForTransition:!0,width:0,height:0,fixedWidth:0,fixedHeight:0,heightRatio:0,autoWidth:!1,autoHeight:!1,perPage:1,perMove:0,clones:0,start:0,focus:!1,gap:0,padding:0,arrows:!0,arrowPath:"",pagination:!0,autoplay:!1,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,lazyLoad:!1,preloadPages:1,easing:"cubic-bezier(.42,.65,.27,.99)",keyboard:"global",drag:!0,dragAngleThreshold:30,swipeDistanceThreshold:150,flickVelocityThreshold:.6,flickPower:600,flickMaxPages:1,direction:"ltr",cover:!1,accessibility:!0,slideFocus:!0,isNavigation:!1,trimSpace:!0,updateOnMove:!1,throttle:100,destroy:!1,breakpoints:!1,classes:{root:R,slider:R+"__slider",track:R+"__track",list:R+"__list",slide:R+"__slide",container:R+"__slide__container",arrows:R+"__arrows",arrow:R+"__arrow",prev:R+"__arrow--prev",next:R+"__arrow--next",pagination:R+"__pagination",page:R+"__pagination__page",clone:R+"__slide--clone",progress:R+"__progress",bar:R+"__progress__bar",autoplay:R+"__autoplay",play:R+"__play",pause:R+"__pause",spinner:R+"__spinner",sr:R+"__sr"},i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}},H=1,q=2,U=3,V=4,Y=5;function X(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var K=function(){function t(t,e,i){var o;void 0===e&&(e={}),void 0===i&&(i={}),this.root=t instanceof Element?t:document.querySelector(t),D(this.root,"An invalid element/selector was given."),this.Components=null,this.Event=function(){var t=[],e={on:function(e,i,n,o){void 0===n&&(n=null),void 0===o&&(o={}),e.split(" ").forEach((function(e){n&&n.addEventListener(e,i,o),t.push({event:e,handler:i,elm:n,options:o})}))},off:function(e,n){void 0===n&&(n=null),e.split(" ").forEach((function(e){t=t.filter((function(t){return!t||t.event!==e||t.elm!==n||(i(t),!1)}))}))},emit:function(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];t.forEach((function(t){t.elm||t.event.split(".")[0]!==e||t.handler.apply(t,n)}))},destroy:function(){t.forEach(i),t=[]}};function i(t){t.elm&&t.elm.removeEventListener(t.event,t.handler,t.options)}return e}(),this.State=(o=H,{set:function(t){o=t},is:function(t){return t===o}}),this.STATES=n,this._o=l(W,e),this._i=0,this._c=i,this._e={},this._t=null}var e,i,o,r=t.prototype;return r.mount=function(t,e){var i=this;void 0===t&&(t=this._e),void 0===e&&(e=this._t),this.State.set(H),this._e=t,this._t=e,this.Components=function(t,e,i){var n={};return s(e,(function(e,i){n[i]=e(t,n,i.toLowerCase())})),i||(i=t.is(B)?j:N),n.Transition=i(t,n),n}(this,l(this._c,t),e);try{s(this.Components,(function(t,e){var n=t.required;void 0===n||n?t.mount&&t.mount():delete i.Components[e]}))}catch(t){return void Z(t.message)}var n=this.State;return n.set(q),s(this.Components,(function(t){t.mounted&&t.mounted()})),this.emit("mounted"),n.set(U),this.emit("ready"),T(this.root,{visibility:"visible"}),this.on("move drag",(function(){return n.set(V)})).on("moved dragged",(function(){return n.set(U)})),this},r.sync=function(t){return this.sibling=t,this},r.on=function(t,e,i,n){return void 0===i&&(i=null),void 0===n&&(n={}),this.Event.on(t,e,i,n),this},r.off=function(t,e){return void 0===e&&(e=null),this.Event.off(t,e),this},r.emit=function(t){for(var e,i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return(e=this.Event).emit.apply(e,[t].concat(n)),this},r.go=function(t,e){return void 0===e&&(e=this.options.waitForTransition),(this.State.is(U)||this.State.is(V)&&!e)&&this.Components.Controller.go(t,!1),this},r.is=function(t){return t===this._o.type},r.add=function(t,e){return void 0===e&&(e=-1),this.Components.Elements.add(t,e,this.refresh.bind(this)),this},r.remove=function(t){return this.Components.Elements.remove(t),this.refresh(),this},r.refresh=function(){return this.emit("refresh:before").emit("refresh").emit("resize"),this},r.destroy=function(t){var e=this;if(void 0===t&&(t=!0),!this.State.is(H))return a(this.Components).reverse().forEach((function(e){e.destroy&&e.destroy(t)})),this.emit("destroy",t),this.Event.destroy(),this.State.set(Y),this;this.on("ready",(function(){return e.destroy(t)}))},e=t,i=[{key:"index",get:function(){return this._i},set:function(t){this._i=parseInt(t)}},{key:"length",get:function(){return this.Components.Elements.length}},{key:"options",get:function(){return this._o},set:function(t){var e=this.State.is(H);e||this.emit("update"),this._o=l(this._o,t),e||this.emit("updated",this._o)}},{key:"classes",get:function(){return this._o.classes}},{key:"i18n",get:function(){return this._o.i18n}}],i&&X(e.prototype,i),o&&X(e,o),t}();const G=function(t){var e=A(t.root,"data-splide");if(e)try{t.options=JSON.parse(e)}catch(t){Z(t.message)}return{mount:function(){t.State.is(H)&&(t.index=t.options.start)}}};var J="rtl",$="ttb",Q="update.slide";const tt=function(t,e){var i=t.root,n=t.classes,o=[];if(!i.id){window.splide=window.splide||{};var r=window.splide.uid||0;window.splide.uid=++r,i.id="splide"+p(r)}var h={mount:function(){var e=this;this.init(),t.on("refresh",(function(){e.destroy(),e.init()})).on("updated",(function(){S(i,l()),E(i,l())}))},destroy:function(){o.forEach((function(t){t.destroy()})),o=[],S(i,l())},init:function(){var t=this;!function(){h.slider=v(i,n.slider),h.track=g(i,"."+n.track),h.list=v(h.track,n.list),D(h.track&&h.list,"Track or list was not found."),h.slides=_(h.list,n.slide);var t=u(n.arrows);h.arrows={prev:g(t,"."+n.prev),next:g(t,"."+n.next)};var e=u(n.autoplay);h.bar=g(u(n.progress),"."+n.bar),h.play=g(e,"."+n.play),h.pause=g(e,"."+n.pause),h.track.id=h.track.id||i.id+"-track",h.list.id=h.list.id||i.id+"-list"}(),E(i,l()),this.slides.forEach((function(e,i){t.register(e,i,-1)}))},register:function(e,i,n){var r=function(t,e,i,n){var o=t.options.updateOnMove,r="ready.slide updated.slide resized.slide moved.slide"+(o?" move.slide":""),s={slide:n,index:e,realIndex:i,container:v(n,t.classes.container),isClone:i>-1,mount:function(){var s=this;this.isClone||(n.id=t.root.id+"-slide"+p(e+1)),t.on(r,(function(){return s.update()})).on(Q,l).on("click",(function(){return t.emit("click",s)}),n),o&&t.on("move.slide",(function(t){t===i&&h(!0,!1)})),T(n,{display:""}),this.styles=A(n,"style")||""},destroy:function(){t.off(r).off(Q).off("click",n),S(n,a(F)),l(),O(this.container,"style")},update:function(){h(this.isActive(),!1),h(this.isVisible(),!0)},isActive:function(){return t.index===e},isVisible:function(){var e=this.isActive();if(t.is(B)||e)return e;var i=Math.ceil,o=M(t.Components.Elements.track),r=M(n);return t.options.direction===$?o.top<=r.top&&r.bottom<=i(o.bottom):o.left<=r.left&&r.right<=i(o.right)},isWithin:function(i,n){var o=Math.abs(i-e);return t.is(z)||this.isClone||(o=Math.min(o,t.length-o)),o<n}};function h(e,i){var o=i?"visible":"active",r=F[o];e?(E(n,r),t.emit(""+o,s)):k(n,r)&&(S(n,r),t.emit(i?"hidden":"inactive",s))}function l(){C(n,"style",s.styles)}return s}(t,i,n,e);r.mount(),o.push(r)},getSlide:function(t){return o.filter((function(e){return e.index===t}))[0]},getSlides:function(t){return t?o:o.filter((function(t){return!t.isClone}))},getSlidesByPage:function(i){var n=e.Controller.toIndex(i),r=t.options,s=!1!==r.focus?1:r.perPage;return o.filter((function(t){var e=t.index;return n<=e&&e<n+s}))},add:function(t,e,i){if("string"==typeof t&&(t=b(t)),t instanceof Element){var n=this.slides[e];T(t,{display:"none"}),n?(P(t,n),this.slides.splice(e,0,t)):(w(this.list,t),this.slides.push(t)),function(t,e){var i=t.querySelectorAll("img"),n=i.length;if(n){var o=0;s(i,(function(t){t.onload=t.onerror=function(){++o===n&&e()}}))}else e()}(t,(function(){i&&i(t)}))}},remove:function(t){x(this.slides.splice(t,1)[0])},each:function(t){o.forEach(t)},get length(){return this.slides.length},get total(){return o.length}};function l(){var e=n.root,i=t.options;return[e+"--"+i.type,e+"--"+i.direction,i.drag?e+"--draggable":"",i.isNavigation?e+"--nav":"",F.active]}function u(t){return v(i,t)||v(h.slider,t)}return h};var et=Math.floor;const it=function(t,e){var i,n,o={mount:function(){i=t.options,n=t.is(I),t.on("move",(function(e){t.index=e})).on("updated refresh",(function(e){i=e||i,t.index=c(t.index,0,o.edgeIndex)}))},go:function(t,i){var n=this.trim(this.parse(t));e.Track.go(n,this.rewind(n),i)},parse:function(e){var n=t.index,r=String(e).match(/([+\-<>]+)(\d+)?/),s=r?r[1]:"",a=r?parseInt(r[2]):0;switch(s){case"+":n+=a||1;break;case"-":n-=a||1;break;case">":case"<":n=function(t,e,n){if(t>-1)return o.toIndex(t);var r=i.perMove,s=n?-1:1;return r?e+r*s:o.toIndex(o.toPage(e)+s)}(a,n,"<"===s);break;default:n=parseInt(e)}return n},toIndex:function(e){if(r())return e;var n=t.length,o=i.perPage,s=e*o;return n-o<=(s-=(this.pageLength*o-n)*et(s/n))&&s<n&&(s=n-o),s},toPage:function(e){if(r())return e;var n=t.length,o=i.perPage;return et(n-o<=e&&e<n?(n-1)/o:e/o)},trim:function(t){return n||(t=i.rewind?this.rewind(t):c(t,0,this.edgeIndex)),t},rewind:function(t){var e=this.edgeIndex;if(n){for(;t>e;)t-=e+1;for(;t<0;)t+=e+1}else t>e?t=0:t<0&&(t=e);return t},isRtl:function(){return i.direction===J},get pageLength(){var e=t.length;return r()?e:Math.ceil(e/i.perPage)},get edgeIndex(){var e=t.length;return e?r()||i.isNavigation||n?e-1:e-i.perPage:0},get prevIndex(){var e=t.index-1;return(n||i.rewind)&&(e=this.rewind(e)),e>-1?e:-1},get nextIndex(){var e=t.index+1;return(n||i.rewind)&&(e=this.rewind(e)),t.index<e&&e<=this.edgeIndex||0===e?e:-1}};function r(){return!1!==i.focus}return o};var nt=Math.abs;const ot=function(t,e){var i,n,o,r=t.options.direction===$,s=t.is(B),a=t.options.direction===J,h=!1,l=a?1:-1,u={sign:l,mount:function(){n=e.Elements,i=e.Layout,o=n.list},mounted:function(){var e=this;s||(this.jump(0),t.on("mounted resize updated",(function(){e.jump(t.index)})))},go:function(i,n,o){var r=f(i),a=t.index;t.State.is(V)&&h||(h=i!==n,o||t.emit("move",n,a,i),Math.abs(r-this.position)>=1||s?e.Transition.start(i,n,a,this.toCoord(r),(function(){d(i,n,a,o)})):i!==a&&"move"===t.options.trimSpace?e.Controller.go(i+i-a,o):d(i,n,a,o))},jump:function(t){this.translate(f(t))},translate:function(t){T(o,{transform:"translate"+(r?"Y":"X")+"("+t+"px)"})},cancel:function(){t.is(I)?this.shift():this.translate(this.position),T(o,{transition:""})},shift:function(){var e=nt(this.position),i=nt(this.toPosition(0)),n=nt(this.toPosition(t.length)),o=n-i;e<i?e+=o:e>n&&(e-=o),this.translate(l*e)},trim:function(e){return!t.options.trimSpace||t.is(I)?e:c(e,l*(i.totalSize()-i.size-i.gap),0)},toIndex:function(t){var e=this,i=0,o=1/0;return n.getSlides(!0).forEach((function(n){var r=n.index,s=nt(e.toPosition(r)-t);s<o&&(o=s,i=r)})),i},toCoord:function(t){return{x:r?0:t,y:r?t:0}},toPosition:function(t){var e=i.totalSize(t)-i.slideSize(t)-i.gap;return l*(e+this.offset(t))},offset:function(e){var n=t.options.focus,o=i.slideSize(e);return"center"===n?-(i.size-o)/2:-(parseInt(n)||0)*(o+i.gap)},get position(){var t=r?"top":a?"right":"left";return M(o)[t]-(M(n.track)[t]-i.padding[t]*l)}};function d(e,i,n,r){T(o,{transition:""}),h=!1,s||u.jump(i),r||t.emit("moved",i,n,e)}function f(t){return u.trim(u.toPosition(t))}return u},rt=function(t,e){var i=[],n=0,o=e.Elements,r={mount:function(){var e=this;t.is(I)&&(s(),t.on("refresh:before",(function(){e.destroy()})).on("refresh",s).on("resize",(function(){n!==a()&&(e.destroy(),t.refresh())})))},destroy:function(){x(i),i=[]},get clones(){return i},get length(){return i.length}};function s(){r.destroy(),function(t){var e=o.length,n=o.register;if(e){for(var r=o.slides;r.length<t;)r=r.concat(r);r.slice(0,t).forEach((function(t,r){var s=h(t);w(o.list,s),i.push(s),n(s,r+e,r%e)})),r.slice(-t).forEach((function(o,s){var a=h(o);P(a,r[0]),i.push(a),n(a,s-t,(e+s-t%e)%e)}))}}(n=a())}function a(){var e=t.options;if(e.clones)return e.clones;var i=e.autoWidth||e.autoHeight?o.length:e.perPage,n=e.direction===$?"Height":"Width",r=m(t.root,e["fixed"+n]);return r&&(i=Math.ceil(o.track["client"+n]/r)),i*(e.drag?e.flickMaxPages+1:1)}function h(e){var i=e.cloneNode(!0);return E(i,t.classes.clone),O(i,"id"),i}return r};function st(t,e){var i;return function(){i||(i=setTimeout((function(){t(),i=null}),e))}}const at=function(t,e){var i,n,o=e.Elements,s=t.options.direction===$,a=(i={mount:function(){t.on("resize load",st((function(){t.emit("resize")}),t.options.throttle),window).on("resize",l).on("updated refresh",h),h(),this.totalSize=s?this.totalHeight:this.totalWidth,this.slideSize=s?this.slideHeight:this.slideWidth},destroy:function(){O([o.list,o.track],"style")},get size(){return s?this.height:this.width}},n=s?function(t,e){var i,n,o=e.Elements,r=t.root;return{margin:"marginBottom",init:function(){this.resize()},resize:function(){n=t.options,i=o.track,this.gap=m(r,n.gap);var e=n.padding,s=m(r,e.top||e),a=m(r,e.bottom||e);this.padding={top:s,bottom:a},T(i,{paddingTop:f(s),paddingBottom:f(a)})},totalHeight:function(e){void 0===e&&(e=t.length-1);var i=o.getSlide(e);return i?M(i.slide).bottom-M(o.list).top+this.gap:0},slideWidth:function(){return m(r,n.fixedWidth||this.width)},slideHeight:function(t){if(n.autoHeight){var e=o.getSlide(t);return e?e.slide.offsetHeight:0}var i=n.fixedHeight||(this.height+this.gap)/n.perPage-this.gap;return m(r,i)},get width(){return i.clientWidth},get height(){var t=n.height||this.width*n.heightRatio;return D(t,'"height" or "heightRatio" is missing.'),m(r,t)-this.padding.top-this.padding.bottom}}}(t,e):function(t,e){var i,n=e.Elements,o=t.root,r=t.options;return{margin:"margin"+(r.direction===J?"Left":"Right"),height:0,init:function(){this.resize()},resize:function(){r=t.options,i=n.track,this.gap=m(o,r.gap);var e=r.padding,s=m(o,e.left||e),a=m(o,e.right||e);this.padding={left:s,right:a},T(i,{paddingLeft:f(s),paddingRight:f(a)})},totalWidth:function(e){void 0===e&&(e=t.length-1);var i=n.getSlide(e),o=0;if(i){var s=M(i.slide),a=M(n.list);o=r.direction===J?a.right-s.left:s.right-a.left,o+=this.gap}return o},slideWidth:function(t){if(r.autoWidth){var e=n.getSlide(t);return e?e.slide.offsetWidth:0}var i=r.fixedWidth||(this.width+this.gap)/r.perPage-this.gap;return m(o,i)},slideHeight:function(){var t=r.height||r.fixedHeight||this.width*r.heightRatio;return m(o,t)},get width(){return i.clientWidth-this.padding.left-this.padding.right}}}(t,e),r(n).forEach((function(t){i[t]||Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(n,t))})),i);function h(){a.init(),T(t.root,{maxWidth:f(t.options.width)}),o.each((function(t){t.slide.style[a.margin]=f(a.gap)})),l()}function l(){var e=t.options;a.resize(),T(o.track,{height:f(a.height)});var i=e.autoHeight?null:f(a.slideHeight());o.each((function(t){T(t.container,{height:i}),T(t.slide,{width:e.autoWidth?null:f(a.slideWidth(t.index)),height:t.container?null:i})})),t.emit("resized")}return a};var ht=Math.abs;const lt=function(t,e){var i,n,o,r,a=e.Track,h=e.Controller,l=t.options.direction===$,u=l?"y":"x",d={disabled:!1,mount:function(){var i=this,n=e.Elements,o=n.track;t.on("touchstart mousedown",f,o).on("touchmove mousemove",m,o,{passive:!1}).on("touchend touchcancel mouseleave mouseup dragend",g,o).on("mounted refresh",(function(){s(n.list.querySelectorAll("img, a"),(function(e){t.off("dragstart",e).on("dragstart",(function(t){t.preventDefault()}),e,{passive:!1})}))})).on("mounted updated",(function(){i.disabled=!t.options.drag}))}};function f(t){d.disabled||r||p(t)}function p(t){i=a.toCoord(a.position),n=v(t,{}),o=n}function m(e){if(n)if(o=v(e,n),r){if(e.cancelable&&e.preventDefault(),!t.is(B)){var s=i[u]+o.offset[u];a.translate(function(e){if(t.is(z)){var i=a.sign,n=i*a.trim(a.toPosition(0)),o=i*a.trim(a.toPosition(h.edgeIndex));(e*=i)<n?e=n-7*Math.log(n-e):e>o&&(e=o+7*Math.log(e-o)),e*=i}return e}(s))}}else(function(e){var i=e.offset;if(t.State.is(V)&&t.options.waitForTransition)return!1;var n=180*Math.atan(ht(i.y)/ht(i.x))/Math.PI;return l&&(n=90-n),n<t.options.dragAngleThreshold})(o)&&(t.emit("drag",n),r=!0,a.cancel(),p(e))}function g(){n=null,r&&(t.emit("dragged",o),function(i){var n=i.velocity[u],o=ht(n);if(o>0){var r=t.options,s=t.index,l=n<0?-1:1,d=s;if(!t.is(B)){var f=a.position;o>r.flickVelocityThreshold&&ht(i.offset[u])<r.swipeDistanceThreshold&&(f+=l*Math.min(o*r.flickPower,e.Layout.size*(r.flickMaxPages||1))),d=a.toIndex(f)}d===s&&o>.1&&(d=s+l*a.sign),t.is(z)&&(d=c(d,0,h.edgeIndex)),h.go(d,r.isNavigation)}}(o),r=!1)}function v(t,e){var i=t.timeStamp,n=t.touches,o=n?n[0]:t,r=o.clientX,s=o.clientY,a=e.to||{},h=a.x,l=void 0===h?r:h,u=a.y,c={x:r-l,y:s-(void 0===u?s:u)},d=i-(e.time||0);return{to:{x:r,y:s},offset:c,time:i,velocity:{x:c.x/d,y:c.y/d}}}return d},ut=function(t,e){var i=!1;function n(t){i&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}return{required:t.options.drag,mount:function(){t.on("click",n,e.Elements.track,{capture:!0}).on("drag",(function(){i=!0})).on("dragged",(function(){setTimeout((function(){i=!1}))}))}}};var ct=1,dt=2,ft=3;const pt=function(t,e,i){var n,o,r,s=t.classes,a=t.root,h=e.Elements;function l(){var r=e.Controller,s=r.prevIndex,a=r.nextIndex,h=t.length>t.options.perPage||t.is(I);n.disabled=s<0||!h,o.disabled=a<0||!h,t.emit(i+":updated",n,o,s,a)}function u(e){return b('<button class="'+s.arrow+" "+(e?s.prev:s.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg"\tviewBox="0 0 40 40"\twidth="40"\theight="40"><path d="'+(t.options.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}return{required:t.options.arrows,mount:function(){n=h.arrows.prev,o=h.arrows.next,n&&o||!t.options.arrows||(n=u(!0),o=u(!1),r=!0,function(){var e=y("div",{class:s.arrows});w(e,n),w(e,o);var i=h.slider,r="slider"===t.options.arrows&&i?i:a;P(e,r.firstElementChild)}()),n&&o&&t.on("click",(function(){t.go("<")}),n).on("click",(function(){t.go(">")}),o).on("mounted move updated refresh",l),this.arrows={prev:n,next:o}},mounted:function(){t.emit(i+":mounted",n,o)},destroy:function(){O([n,o],"disabled"),r&&x(n.parentElement)}}};var mt="move.page",gt="updated.page refresh.page";const vt=function(t,e,i){var n={},o=e.Elements,r={mount:function(){var e=t.options.pagination;if(e){n=function(){var e=t.options,i=t.classes,n=y("ul",{class:i.pagination}),r=o.getSlides(!1).filter((function(t){return!1!==e.focus||t.index%e.perPage==0})).map((function(e,r){var s=y("li",{}),a=y("button",{class:i.page,type:"button"});return w(s,a),w(n,s),t.on("click",(function(){t.go(">"+r)}),a),{li:s,button:a,page:r,Slides:o.getSlidesByPage(r)}}));return{list:n,items:r}}();var i=o.slider;w("slider"===e&&i?i:t.root,n.list),t.on(mt,s)}t.off(gt).on(gt,(function(){r.destroy(),t.options.pagination&&(r.mount(),r.mounted())}))},mounted:function(){if(t.options.pagination){var e=t.index;t.emit(i+":mounted",n,this.getItem(e)),s(e,-1)}},destroy:function(){x(n.list),n.items&&n.items.forEach((function(e){t.off("click",e.button)})),t.off(mt),n={}},getItem:function(t){return n.items[e.Controller.toPage(t)]},get data(){return n}};function s(e,o){var s=r.getItem(o),a=r.getItem(e),h=F.active;s&&S(s.button,h),a&&E(a.button,h),t.emit(i+":updated",n,s,a)}return r};var _t="data-splide-lazy",yt="data-splide-lazy-srcset",bt="aria-current",xt="aria-controls",wt="aria-label",Pt="aria-hidden",Tt="tabindex",Lt={ltr:{ArrowLeft:"<",ArrowRight:">",Left:"<",Right:">"},rtl:{ArrowLeft:">",ArrowRight:"<",Left:">",Right:"<"},ttb:{ArrowUp:"<",ArrowDown:">",Up:"<",Down:">"}};const Et=function(t,e){var i=t.i18n,n=e.Elements,o=[Pt,Tt,xt,wt,bt,"role"],r={required:t.options.accessibility,mount:function(){t.on("visible",(function(t){s(t.slide,!0)})).on("hidden",(function(t){s(t.slide,!1)})).on("arrows:mounted",a).on("arrows:updated",h).on("pagination:mounted",l).on("pagination:updated",u).on("refresh",(function(){O(e.Clones.clones,o)})),t.options.isNavigation&&t.on("navigation:mounted navigation:updated",c).on("active",(function(t){f(t,!0)})).on("inactive",(function(t){f(t,!1)})),["play","pause"].forEach((function(t){var e=n[t];e&&(p(e)||C(e,"role","button"),C(e,xt,n.track.id),C(e,wt,i[t]))}))},destroy:function(){var t=e.Arrows,i=t?t.arrows:{};O(n.slides.concat([i.prev,i.next,n.play,n.pause]),o)}};function s(e,i){C(e,Pt,!i),t.options.slideFocus&&C(e,Tt,i?0:-1)}function a(t,e){var i=n.track.id;C(t,xt,i),C(e,xt,i)}function h(e,n,o,r){var s=t.index,a=o>-1&&s<o?i.last:i.prev,h=r>-1&&s>r?i.first:i.next;C(e,wt,a),C(n,wt,h)}function l(e,n){n&&C(n.button,bt,!0),e.items.forEach((function(e){var n=t.options,o=d(!1===n.focus&&n.perPage>1?i.pageX:i.slideX,e.page+1),r=e.button,s=e.Slides.map((function(t){return t.slide.id}));C(r,xt,s.join(" ")),C(r,wt,o)}))}function u(t,e,i){e&&O(e.button,bt),i&&C(i.button,bt,!0)}function c(t){n.each((function(e){var n=e.slide,o=e.realIndex;p(n)||C(n,"role","button");var r=o>-1?o:e.index,s=d(i.slideX,r+1),a=t.Components.Elements.getSlide(r);C(n,wt,s),a&&C(n,xt,a.slide.id)}))}function f(t,e){var i=t.slide;e?C(i,bt,!0):O(i,bt)}function p(t){return"BUTTON"===t.tagName}return r};var St="move.sync",kt="mouseup touchend",Ct=[" ","Enter","Spacebar"],At={Options:G,Breakpoints:function(t){var e,i,n=t.options.breakpoints,o=st(s,50),r=[];function s(){var o,s=(o=r.filter((function(t){return t.mql.matches}))[0])?o.point:-1;if(s!==i){i=s;var a=t.State,h=n[s]||e,l=h.destroy;l?(t.options=e,t.destroy("completely"===l)):(a.is(Y)&&t.mount(),t.options=h)}}return{required:n&&matchMedia,mount:function(){r=Object.keys(n).sort((function(t,e){return+t-+e})).map((function(t){return{point:t,mql:matchMedia("(max-width:"+t+"px)")}})),this.destroy(!0),addEventListener("resize",o),e=t.options,s()},destroy:function(t){t&&removeEventListener("resize",o)}}},Controller:it,Elements:tt,Track:ot,Clones:rt,Layout:at,Drag:lt,Click:ut,Autoplay:function(t,e,i){var n,o=[],r=e.Elements,s={required:t.options.autoplay,mount:function(){var e=t.options;r.slides.length>e.perPage&&(n=function(t,e,i){var n,o,r,s=window.requestAnimationFrame,a=!0,h=function h(l){a||(n||(n=l,r&&r<1&&(n-=r*e)),r=(o=l-n)/e,o>=e&&(n=0,r=1,t()),i&&i(r),s(h))};return{pause:function(){a=!0,n=0},play:function(t){n=0,t&&(r=0),a&&(a=!1,s(h))}}}((function(){t.go(">")}),e.interval,(function(e){t.emit(i+":playing",e),r.bar&&T(r.bar,{width:100*e+"%"})})),function(){var e=t.options,i=t.sibling,n=[t.root,i?i.root:null];e.pauseOnHover&&(a(n,"mouseleave",ct,!0),a(n,"mouseenter",ct,!1)),e.pauseOnFocus&&(a(n,"focusout",dt,!0),a(n,"focusin",dt,!1)),r.play&&t.on("click",(function(){s.play(dt),s.play(ft)}),r.play),r.pause&&a([r.pause],"click",ft,!1),t.on("move refresh",(function(){s.play()})).on("destroy",(function(){s.pause()}))}(),this.play())},play:function(e){void 0===e&&(e=0),(o=o.filter((function(t){return t!==e}))).length||(t.emit(i+":play"),n.play(t.options.resetProgress))},pause:function(e){void 0===e&&(e=0),n.pause(),-1===o.indexOf(e)&&o.push(e),1===o.length&&t.emit(i+":pause")}};function a(e,i,n,o){e.forEach((function(e){t.on(i,(function(){s[o?"play":"pause"](n)}),e)}))}return s},Cover:function(t,e){function i(t){e.Elements.each((function(e){var i=v(e.slide,"IMG")||v(e.container,"IMG");i&&i.src&&n(i,t)}))}function n(t,e){T(t.parentElement,{background:e?"":'center/cover no-repeat url("'+t.src+'")'}),T(t,{display:e?"":"none"})}return{required:t.options.cover,mount:function(){t.on("lazyload:loaded",(function(t){n(t,!1)})),t.on("mounted updated refresh",(function(){return i(!1)}))},destroy:function(){i(!0)}}},Arrows:pt,Pagination:vt,LazyLoad:function(t,e,i){var n,o,r=t.options,a="sequential"===r.lazyLoad;function h(){o=[],n=0}function l(e){e=isNaN(e)?t.index:e,(o=o.filter((function(t){return!t.Slide.isWithin(e,r.perPage*(r.preloadPages+1))||(u(t.img,t.Slide),!1)})))[0]||t.off("moved."+i)}function u(e,i){E(i.slide,F.loading);var n=y("span",{class:t.classes.spinner});w(e.parentElement,n),e.onload=function(){d(e,n,i,!1)},e.onerror=function(){d(e,n,i,!0)},C(e,"srcset",A(e,yt)||""),C(e,"src",A(e,_t)||"")}function c(){if(n<o.length){var t=o[n];u(t.img,t.Slide)}n++}function d(e,n,o,r){S(o.slide,F.loading),r||(x(n),T(e,{display:""}),t.emit(i+":loaded",e).emit("resize")),a&&c()}return{required:r.lazyLoad,mount:function(){t.on("mounted refresh",(function(){h(),e.Elements.each((function(t){s(t.slide.querySelectorAll("["+_t+"], ["+yt+"]"),(function(e){e.src||e.srcset||(o.push({img:e,Slide:t}),T(e,{display:"none"}))}))})),a&&c()})),a||t.on("mounted refresh moved."+i,l)},destroy:h}},Keyboard:function(t){var e;return{mount:function(){t.on("mounted updated",(function(){var i=t.options,n=t.root,o=Lt[i.direction],r=i.keyboard;e&&(t.off("keydown",e),O(n,Tt)),r&&("focused"===r?(e=n,C(n,Tt,0)):e=document,t.on("keydown",(function(e){o[e.key]&&t.go(o[e.key])}),e))}))}}},Sync:function(t){var e=t.sibling,i=e&&e.options.isNavigation;function n(){t.on(St,(function(t,i,n){e.off(St).go(e.is(I)?n:t,!1),o()}))}function o(){e.on(St,(function(e,i,o){t.off(St).go(t.is(I)?o:e,!1),n()}))}function r(){e.Components.Elements.each((function(e){var i=e.slide,n=e.index;t.off(kt,i).on(kt,(function(t){t.button&&0!==t.button||s(n)}),i),t.off("keyup",i).on("keyup",(function(t){Ct.indexOf(t.key)>-1&&(t.preventDefault(),s(n))}),i,{passive:!1})}))}function s(i){t.State.is(U)&&e.go(i)}return{required:!!e,mount:function(){n(),o(),i&&(r(),t.on("refresh",(function(){setTimeout((function(){r(),e.emit("navigation:updated",t)}))})))},mounted:function(){i&&e.emit("navigation:mounted",t)}}},A11y:Et},Ot=function(t){var e,i;function n(e,i){return t.call(this,e,i,At)||this}return i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i,n}(K)}},e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={exports:{}};return t[n](o,o.exports,i),o.exports}return i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(311)})()},t.exports=e()},9074:(t,e,i)=>{"use strict";function n(t){return t.keys().map((function(e){return function(t,e){var i=function(t){var e=(t.match(/^(?:\.\/)?(.+)(?:[_-]controller\..+?)$/)||[])[1];if(e)return e.replace(/_/g,"-").replace(/\//g,"--")}(e);if(i)return function(t,e){var i=t.default;if("function"==typeof i)return{identifier:e,controllerConstructor:i}}(t(e),i)}(t,e)})).filter((function(t){return t}))}i.d(e,{X:()=>n})},8533:(t,e,i)=>{"use strict";var n=i(2092).forEach,o=i(9341)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},9341:(t,e,i)=>{"use strict";var n=i(7293);t.exports=function(t,e){var i=[][t];return!!i&&n((function(){i.call(null,e||function(){return 1},1)}))}},3658:(t,e,i)=>{"use strict";var n=i(9781),o=i(3157),r=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(o(t)&&!s(t,"length").writable)throw r("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4362:(t,e,i)=>{var n=i(1589),o=Math.floor,r=function(t,e){var i=t.length,h=o(i/2);return i<8?s(t,e):a(t,r(n(t,0,h),e),r(n(t,h),e),e)},s=function(t,e){for(var i,n,o=t.length,r=1;r<o;){for(n=r,i=t[r];n&&e(t[n-1],i)>0;)t[n]=t[--n];n!==r++&&(t[n]=i)}return t},a=function(t,e,i,n){for(var o=e.length,r=i.length,s=0,a=0;s<o||a<r;)t[s+a]=s<o&&a<r?n(e[s],i[a])<=0?e[s++]:i[a++]:s<o?e[s++]:i[a++];return t};t.exports=r},8709:(t,e,i)=>{"use strict";var n=i(9670),o=i(2140),r=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw r("Incorrect hint");return o(this,t)}},9190:(t,e,i)=>{var n=i(8052);t.exports=function(t,e,i){for(var o in e)n(t,o,e[o],i);return t}},5117:(t,e,i)=>{"use strict";var n=i(6330),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw o("Cannot delete property "+n(e)+" of "+n(t))}},7065:(t,e,i)=>{"use strict";var n=i(1702),o=i(9662),r=i(111),s=i(2597),a=i(206),h=i(4374),l=Function,u=n([].concat),c=n([].join),d={},f=function(t,e,i){if(!s(d,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";d[e]=l("C,a","return new C("+c(n,",")+")")}return d[e](t,i)};t.exports=h?l.bind:function(t){var e=o(this),i=e.prototype,n=a(arguments,1),s=function(){var i=u(n,a(arguments));return this instanceof s?f(e,i.length,i):e.apply(t,i)};return r(i)&&(s.prototype=i),s}},7850:(t,e,i)=>{var n=i(111),o=i(4326),r=i(5112)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[r])?!!e:"RegExp"==o(t))}},3009:(t,e,i)=>{var n=i(7854),o=i(7293),r=i(1702),s=i(1340),a=i(3111).trim,h=i(1361),l=n.parseInt,u=n.Symbol,c=u&&u.iterator,d=/^[+-]?0x/i,f=r(d.exec),p=8!==l(h+"08")||22!==l(h+"0x16")||c&&!o((function(){l(Object(c))}));t.exports=p?function(t,e){var i=a(s(t));return l(i,e>>>0||(f(d,i)?16:10))}:l},1574:(t,e,i)=>{"use strict";var n=i(9781),o=i(1702),r=i(6916),s=i(7293),a=i(1956),h=i(5181),l=i(5296),u=i(7908),c=i(8361),d=Object.assign,f=Object.defineProperty,p=o([].concat);t.exports=!d||s((function(){if(n&&1!==d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),o="abcdefghijklmnopqrst";return t[i]=7,o.split("").forEach((function(t){e[t]=t})),7!=d({},t)[i]||a(d({},e)).join("")!=o}))?function(t,e){for(var i=u(t),o=arguments.length,s=1,d=h.f,f=l.f;o>s;)for(var m,g=c(arguments[s++]),v=d?p(a(g),d(g)):a(g),_=v.length,y=0;_>y;)m=v[y++],n&&!r(f,g,m)||(i[m]=g[m]);return i}:d},2626:(t,e,i)=>{var n=i(3070).f;t.exports=function(t,e,i){i in t||n(t,i,{configurable:!0,get:function(){return e[i]},set:function(t){e[i]=t}})}},4706:(t,e,i)=>{var n=i(6916),o=i(2597),r=i(7976),s=i(7066),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||o(t,"flags")||!r(a,t)?e:n(s,t)}},5143:(t,e,i)=>{var n=i(7293),o=i(5112),r=i(1913),s=o("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,i="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),i+=n+t})),r&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},9554:(t,e,i)=>{"use strict";var n=i(2109),o=i(8533);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},2772:(t,e,i)=>{"use strict";var n=i(2109),o=i(1470),r=i(1318).indexOf,s=i(9341),a=o([].indexOf),h=!!a&&1/a([1],1,-0)<0;n({target:"Array",proto:!0,forced:h||!s("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return h?a(this,t,e)||0:r(this,t,e)}})},561:(t,e,i)=>{"use strict";var n=i(2109),o=i(7908),r=i(1400),s=i(9303),a=i(6244),h=i(3658),l=i(7207),u=i(5417),c=i(6135),d=i(5117),f=i(1194)("splice"),p=Math.max,m=Math.min;n({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var i,n,f,g,v,_,y=o(this),b=a(y),x=r(t,b),w=arguments.length;for(0===w?i=n=0:1===w?(i=0,n=b-x):(i=w-2,n=m(p(s(e),0),b-x)),l(b+i-n),f=u(y,n),g=0;g<n;g++)(v=x+g)in y&&c(f,g,y[v]);if(f.length=n,i<n){for(g=x;g<b-n;g++)_=g+i,(v=g+n)in y?y[_]=y[v]:d(y,_);for(g=b;g>b-n+i;g--)d(y,g-1)}else if(i>n)for(g=b-n;g>x;g--)_=g+i-1,(v=g+n-1)in y?y[_]=y[v]:d(y,_);for(g=0;g<i;g++)y[g+x]=arguments[g+2];return h(y,b-n+i),f}})},6078:(t,e,i)=>{var n=i(2597),o=i(8052),r=i(8709),s=i(5112)("toPrimitive"),a=Date.prototype;n(a,s)||o(a,s,r)},3710:(t,e,i)=>{var n=i(1702),o=i(8052),r=Date.prototype,s="Invalid Date",a="toString",h=n(r[a]),l=n(r.getTime);String(new Date(NaN))!=s&&o(r,a,(function(){var t=l(this);return t==t?h(this):s}))},4812:(t,e,i)=>{var n=i(2109),o=i(7065);n({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},9601:(t,e,i)=>{var n=i(2109),o=i(1574);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},8011:(t,e,i)=>{i(2109)({target:"Object",stat:!0,sham:!i(9781)},{create:i(30)})},3321:(t,e,i)=>{var n=i(2109),o=i(9781),r=i(6048).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==r,sham:!o},{defineProperties:r})},9070:(t,e,i)=>{var n=i(2109),o=i(9781),r=i(3070).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==r,sham:!o},{defineProperty:r})},5003:(t,e,i)=>{var n=i(2109),o=i(7293),r=i(5656),s=i(1236).f,a=i(9781);n({target:"Object",stat:!0,forced:!a||o((function(){s(1)})),sham:!a},{getOwnPropertyDescriptor:function(t,e){return s(r(t),e)}})},9337:(t,e,i)=>{var n=i(2109),o=i(9781),r=i(3887),s=i(5656),a=i(1236),h=i(6135);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,i,n=s(t),o=a.f,l=r(n),u={},c=0;l.length>c;)void 0!==(i=o(n,e=l[c++]))&&h(u,e,i);return u}})},489:(t,e,i)=>{var n=i(2109),o=i(7293),r=i(7908),s=i(9518),a=i(8544);n({target:"Object",stat:!0,forced:o((function(){s(1)})),sham:!a},{getPrototypeOf:function(t){return s(r(t))}})},7941:(t,e,i)=>{var n=i(2109),o=i(7908),r=i(1956);n({target:"Object",stat:!0,forced:i(7293)((function(){r(1)}))},{keys:function(t){return r(o(t))}})},8304:(t,e,i)=>{i(2109)({target:"Object",stat:!0},{setPrototypeOf:i(7674)})},1058:(t,e,i)=>{var n=i(2109),o=i(3009);n({global:!0,forced:parseInt!=o},{parseInt:o})},2419:(t,e,i)=>{var n=i(2109),o=i(5005),r=i(2104),s=i(7065),a=i(9483),h=i(9670),l=i(111),u=i(30),c=i(7293),d=o("Reflect","construct"),f=Object.prototype,p=[].push,m=c((function(){function t(){}return!(d((function(){}),[],t)instanceof t)})),g=!c((function(){d((function(){}))})),v=m||g;n({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){a(t),h(e);var i=arguments.length<3?t:a(arguments[2]);if(g&&!m)return d(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return r(p,n,e),new(r(s,t,n))}var o=i.prototype,c=u(l(o)?o:f),v=r(t,c,e);return l(v)?v:c}})},4603:(t,e,i)=>{var n=i(9781),o=i(7854),r=i(1702),s=i(4705),a=i(9587),h=i(8880),l=i(8006).f,u=i(7976),c=i(7850),d=i(1340),f=i(4706),p=i(2999),m=i(2626),g=i(8052),v=i(7293),_=i(2597),y=i(9909).enforce,b=i(6340),x=i(5112),w=i(9441),P=i(7168),T=x("match"),L=o.RegExp,E=L.prototype,S=o.SyntaxError,k=r(E.exec),C=r("".charAt),A=r("".replace),O=r("".indexOf),M=r("".slice),z=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,B=/a/g,N=new L(I)!==I,j=p.MISSED_STICKY,Z=p.UNSUPPORTED_Y,D=n&&(!N||j||w||P||v((function(){return B[T]=!1,L(I)!=I||L(B)==B||"/a/i"!=L(I,"i")})));if(s("RegExp",D)){for(var R=function(t,e){var i,n,o,r,s,l,p=u(E,this),m=c(t),g=void 0===e,v=[],b=t;if(!p&&m&&g&&t.constructor===R)return t;if((m||u(E,t))&&(t=t.source,g&&(e=f(b))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),b=t,w&&"dotAll"in I&&(n=!!e&&O(e,"s")>-1)&&(e=A(e,/s/g,"")),i=e,j&&"sticky"in I&&(o=!!e&&O(e,"y")>-1)&&Z&&(e=A(e,/y/g,"")),P&&(r=function(t){for(var e,i=t.length,n=0,o="",r=[],s={},a=!1,h=!1,l=0,u="";n<=i;n++){if("\\"===(e=C(t,n)))e+=C(t,++n);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:k(z,M(t,n+1))&&(n+=2,h=!0),o+=e,l++;continue;case">"===e&&h:if(""===u||_(s,u))throw new S("Invalid capture group name");s[u]=!0,r[r.length]=[u,l],h=!1,u="";continue}h?u+=e:o+=e}return[o,r]}(t),t=r[0],v=r[1]),s=a(L(t,e),p?this:E,R),(n||o||v.length)&&(l=y(s),n&&(l.dotAll=!0,l.raw=R(function(t){for(var e,i=t.length,n=0,o="",r=!1;n<=i;n++)"\\"!==(e=C(t,n))?r||"."!==e?("["===e?r=!0:"]"===e&&(r=!1),o+=e):o+="[\\s\\S]":o+=e+C(t,++n);return o}(t),i)),o&&(l.sticky=!0),v.length&&(l.groups=v)),t!==b)try{h(s,"source",""===b?"(?:)":b)}catch(t){}return s},F=l(L),W=0;F.length>W;)m(R,L,F[W++]);E.constructor=R,R.prototype=E,g(o,"RegExp",R,{constructor:!0})}b("RegExp")},9714:(t,e,i)=>{"use strict";var n=i(6530).PROPER,o=i(8052),r=i(9670),s=i(1340),a=i(7293),h=i(4706),l="toString",u=RegExp.prototype[l],c=a((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=n&&u.name!=l;(c||d)&&o(RegExp.prototype,l,(function(){var t=r(this);return"/"+s(t.source)+"/"+s(h(t))}),{unsafe:!0})},4723:(t,e,i)=>{"use strict";var n=i(6916),o=i(7007),r=i(9670),s=i(8554),a=i(7466),h=i(1340),l=i(4488),u=i(8173),c=i(1530),d=i(7651);o("match",(function(t,e,i){return[function(e){var i=l(this),o=s(e)?void 0:u(e,t);return o?n(o,e,i):new RegExp(e)[t](h(i))},function(t){var n=r(this),o=h(t),s=i(e,n,o);if(s.done)return s.value;if(!n.global)return d(n,o);var l=n.unicode;n.lastIndex=0;for(var u,f=[],p=0;null!==(u=d(n,o));){var m=h(u[0]);f[p]=m,""===m&&(n.lastIndex=c(o,a(n.lastIndex),l)),p++}return 0===p?null:f}]}))},6649:(t,e,i)=>{var n=i(6800),o=i(6532);n("toPrimitive"),o()},4747:(t,e,i)=>{var n=i(7854),o=i(8324),r=i(8509),s=i(8533),a=i(8880),h=function(t){if(t&&t.forEach!==s)try{a(t,"forEach",s)}catch(e){t.forEach=s}};for(var l in o)o[l]&&h(n[l]&&n[l].prototype);h(r)},5556:(t,e,i)=>{"use strict";i(6992);var n=i(2109),o=i(7854),r=i(6916),s=i(1702),a=i(9781),h=i(5143),l=i(8052),u=i(9190),c=i(8003),d=i(3061),f=i(9909),p=i(5787),m=i(614),g=i(2597),v=i(9974),_=i(648),y=i(9670),b=i(111),x=i(1340),w=i(30),P=i(9114),T=i(4121),L=i(1246),E=i(8053),S=i(5112),k=i(4362),C=S("iterator"),A="URLSearchParams",O=A+"Iterator",M=f.set,z=f.getterFor(A),I=f.getterFor(O),B=Object.getOwnPropertyDescriptor,N=function(t){if(!a)return o[t];var e=B(o,t);return e&&e.value},j=N("fetch"),Z=N("Request"),D=N("Headers"),R=Z&&Z.prototype,F=D&&D.prototype,W=o.RegExp,H=o.TypeError,q=o.decodeURIComponent,U=o.encodeURIComponent,V=s("".charAt),Y=s([].join),X=s([].push),K=s("".replace),G=s([].shift),J=s([].splice),$=s("".split),Q=s("".slice),tt=/\+/g,et=Array(4),it=function(t){return et[t-1]||(et[t-1]=W("((?:%[\\da-f]{2}){"+t+"})","gi"))},nt=function(t){try{return q(t)}catch(e){return t}},ot=function(t){var e=K(t,tt," "),i=4;try{return q(e)}catch(t){for(;i;)e=K(e,it(i--),nt);return e}},rt=/[!'()~]|%20/g,st={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},at=function(t){return st[t]},ht=function(t){return K(U(t),rt,at)},lt=d((function(t,e){M(this,{type:O,iterator:T(z(t).entries),kind:e})}),"Iterator",(function(){var t=I(this),e=t.kind,i=t.iterator.next(),n=i.value;return i.done||(i.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),i}),!0),ut=function(t){this.entries=[],this.url=null,void 0!==t&&(b(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===V(t,0)?Q(t,1):t:x(t)))};ut.prototype={type:A,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,i,n,o,s,a,h,l=L(t);if(l)for(i=(e=T(t,l)).next;!(n=r(i,e)).done;){if(s=(o=T(y(n.value))).next,(a=r(s,o)).done||(h=r(s,o)).done||!r(s,o).done)throw H("Expected sequence with length 2");X(this.entries,{key:x(a.value),value:x(h.value)})}else for(var u in t)g(t,u)&&X(this.entries,{key:u,value:x(t[u])})},parseQuery:function(t){if(t)for(var e,i,n=$(t,"&"),o=0;o<n.length;)(e=n[o++]).length&&(i=$(e,"="),X(this.entries,{key:ot(G(i)),value:ot(Y(i,"="))}))},serialize:function(){for(var t,e=this.entries,i=[],n=0;n<e.length;)t=e[n++],X(i,ht(t.key)+"="+ht(t.value));return Y(i,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ct=function(){p(this,dt);var t=arguments.length>0?arguments[0]:void 0;M(this,new ut(t))},dt=ct.prototype;if(u(dt,{append:function(t,e){E(arguments.length,2);var i=z(this);X(i.entries,{key:x(t),value:x(e)}),i.updateURL()},delete:function(t){E(arguments.length,1);for(var e=z(this),i=e.entries,n=x(t),o=0;o<i.length;)i[o].key===n?J(i,o,1):o++;e.updateURL()},get:function(t){E(arguments.length,1);for(var e=z(this).entries,i=x(t),n=0;n<e.length;n++)if(e[n].key===i)return e[n].value;return null},getAll:function(t){E(arguments.length,1);for(var e=z(this).entries,i=x(t),n=[],o=0;o<e.length;o++)e[o].key===i&&X(n,e[o].value);return n},has:function(t){E(arguments.length,1);for(var e=z(this).entries,i=x(t),n=0;n<e.length;)if(e[n++].key===i)return!0;return!1},set:function(t,e){E(arguments.length,1);for(var i,n=z(this),o=n.entries,r=!1,s=x(t),a=x(e),h=0;h<o.length;h++)(i=o[h]).key===s&&(r?J(o,h--,1):(r=!0,i.value=a));r||X(o,{key:s,value:a}),n.updateURL()},sort:function(){var t=z(this);k(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,i=z(this).entries,n=v(t,arguments.length>1?arguments[1]:void 0),o=0;o<i.length;)n((e=i[o++]).value,e.key,this)},keys:function(){return new lt(this,"keys")},values:function(){return new lt(this,"values")},entries:function(){return new lt(this,"entries")}},{enumerable:!0}),l(dt,C,dt.entries,{name:"entries"}),l(dt,"toString",(function(){return z(this).serialize()}),{enumerable:!0}),c(ct,A),n({global:!0,constructor:!0,forced:!h},{URLSearchParams:ct}),!h&&m(D)){var ft=s(F.has),pt=s(F.set),mt=function(t){if(b(t)){var e,i=t.body;if(_(i)===A)return e=t.headers?new D(t.headers):new D,ft(e,"content-type")||pt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),w(t,{body:P(0,x(i)),headers:P(0,e)})}return t};if(m(j)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return j(t,arguments.length>1?mt(arguments[1]):{})}}),m(Z)){var gt=function(t){return p(this,R),new Z(t,arguments.length>1?mt(arguments[1]):{})};R.constructor=gt,gt.prototype=R,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:gt})}}t.exports={URLSearchParams:ct,getState:z}},1637:(t,e,i)=>{i(5556)},3377:function(t){t.exports=function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}var o=Date.now();function r(){var t={},e=!0,i=0,n=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],i++);for(var o=function(i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e&&"[object Object]"===Object.prototype.toString.call(i[n])?t[n]=r(!0,t[n],i[n]):t[n]=i[n])};i<n;i++)o(arguments[i]);return t}function s(t,e){if((L(t)||t===window||t===document)&&(t=[t]),S(t)||k(t)||(t=[t]),0!=O(t))if(S(t)&&!k(t))for(var i=t.length,n=0;n<i&&!1!==e.call(t[n],t[n],n,t);n++);else if(k(t))for(var o in t)if(A(t,o)&&!1===e.call(t[o],t[o],o,t))break}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=t[o]=t[o]||[],r={all:n,evt:null,found:null};return e&&i&&O(n)>0&&s(n,(function(t,n){if(t.eventName==e&&t.fn.toString()==i.toString())return r.found=!0,r.evt=n,!1})),r}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.onElement,n=e.withCallback,o=e.avoidDuplicate,r=void 0===o||o,h=e.once,l=void 0!==h&&h,u=e.useCapture,c=void 0!==u&&u,d=arguments.length>2?arguments[2]:void 0,f=i||[];function p(t){P(n)&&n.call(d,t,this),l&&p.destroy()}return T(f)&&(f=document.querySelectorAll(f)),p.destroy=function(){s(f,(function(e){var i=a(e,t,p);i.found&&i.all.splice(i.evt,1),e.removeEventListener&&e.removeEventListener(t,p,c)}))},s(f,(function(e){var i=a(e,t,p);(e.addEventListener&&r&&!i.found||!r)&&(e.addEventListener(t,p,c),i.all.push({eventName:t,fn:p}))})),p}function l(t,e){s(e.split(" "),(function(e){return t.classList.add(e)}))}function u(t,e){s(e.split(" "),(function(e){return t.classList.remove(e)}))}function c(t,e){return t.classList.contains(e)}function d(t,e){for(;t!==document.body;){if(!(t=t.parentElement))return!1;if("function"==typeof t.matches?t.matches(e):t.msMatchesSelector(e))return t}}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||""===e)return!1;if("none"===e)return P(i)&&i(),!1;var n=y(),o=e.split(" ");s(o,(function(e){l(t,"g"+e)})),h(n,{onElement:t,avoidDuplicate:!1,once:!0,withCallback:function(t,e){s(o,(function(t){u(e,"g"+t)})),P(i)&&i()}})}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)return t.style.webkitTransform="",t.style.MozTransform="",t.style.msTransform="",t.style.OTransform="",t.style.transform="",!1;t.style.webkitTransform=e,t.style.MozTransform=e,t.style.msTransform=e,t.style.OTransform=e,t.style.transform=e}function m(t){t.style.display="block"}function g(t){t.style.display="none"}function v(t){var e=document.createDocumentFragment(),i=document.createElement("div");for(i.innerHTML=t;i.firstChild;)e.appendChild(i.firstChild);return e}function _(){return{width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}}function y(){var t,e=document.createElement("fakeelement"),i={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(t in i)if(void 0!==e.style[t])return i[t]}function b(t,e,i,n){if(t())e();else{var o;i||(i=100);var r=setInterval((function(){t()&&(clearInterval(r),o&&clearTimeout(o),e())}),i);n&&(o=setTimeout((function(){clearInterval(r)}),n))}}function x(t,e,i){if(C(t))console.error("Inject assets error");else if(P(e)&&(i=e,e=!1),T(e)&&e in window)P(i)&&i();else{var n;if(-1!==t.indexOf(".css")){if((n=document.querySelectorAll('link[href="'+t+'"]'))&&n.length>0)return void(P(i)&&i());var o=document.getElementsByTagName("head")[0],r=o.querySelectorAll('link[rel="stylesheet"]'),s=document.createElement("link");return s.rel="stylesheet",s.type="text/css",s.href=t,s.media="all",r?o.insertBefore(s,r[0]):o.appendChild(s),void(P(i)&&i())}if((n=document.querySelectorAll('script[src="'+t+'"]'))&&n.length>0){if(P(i)){if(T(e))return b((function(){return void 0!==window[e]}),(function(){i()})),!1;i()}}else{var a=document.createElement("script");a.type="text/javascript",a.src=t,a.onload=function(){if(P(i)){if(T(e))return b((function(){return void 0!==window[e]}),(function(){i()})),!1;i()}},document.body.appendChild(a)}}}function w(){return"navigator"in window&&window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i)}function P(t){return"function"==typeof t}function T(t){return"string"==typeof t}function L(t){return!(!t||!t.nodeType||1!=t.nodeType)}function E(t){return Array.isArray(t)}function S(t){return t&&t.length&&isFinite(t.length)}function k(e){return"object"===t(e)&&null!=e&&!P(e)&&!E(e)}function C(t){return null==t}function A(t,e){return null!==t&&hasOwnProperty.call(t,e)}function O(t){if(k(t)){if(t.keys)return t.keys().length;var e=0;for(var i in t)A(t,i)&&e++;return e}return t.length}function M(t){return!isNaN(parseFloat(t))&&isFinite(t)}function z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,e=document.querySelectorAll(".gbtn[data-taborder]:not(.disabled)");if(!e.length)return!1;if(1==e.length)return e[0];"string"==typeof t&&(t=parseInt(t));var i=[];s(e,(function(t){i.push(t.getAttribute("data-taborder"))}));var n=Math.max.apply(Math,i.map((function(t){return parseInt(t)}))),o=t<0?1:t+1;o>n&&(o="1");var r=i.filter((function(t){return t>=parseInt(o)})),a=r.sort()[0];return document.querySelector('.gbtn[data-taborder="'.concat(a,'"]'))}function I(t){if(t.events.hasOwnProperty("keyboard"))return!1;t.events.keyboard=h("keydown",{onElement:window,withCallback:function(e,i){var n=(e=e||window.event).keyCode;if(9==n){var o=document.querySelector(".gbtn.focused");if(!o){var r=!(!document.activeElement||!document.activeElement.nodeName)&&document.activeElement.nodeName.toLocaleLowerCase();if("input"==r||"textarea"==r||"button"==r)return}e.preventDefault();var s=document.querySelectorAll(".gbtn[data-taborder]");if(!s||s.length<=0)return;if(!o){var a=z();return void(a&&(a.focus(),l(a,"focused")))}var h=z(o.getAttribute("data-taborder"));u(o,"focused"),h&&(h.focus(),l(h,"focused"))}39==n&&t.nextSlide(),37==n&&t.prevSlide(),27==n&&t.close()}})}function B(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function N(t,e){var i=function(t,e){var i=B(t)*B(e);if(0===i)return 0;var n=function(t,e){return t.x*e.x+t.y*e.y}(t,e)/i;return n>1&&(n=1),Math.acos(n)}(t,e);return function(t,e){return t.x*e.y-e.x*t.y}(t,e)>0&&(i*=-1),180*i/Math.PI}var j=function(){function t(i){e(this,t),this.handlers=[],this.el=i}return n(t,[{key:"add",value:function(t){this.handlers.push(t)}},{key:"del",value:function(t){t||(this.handlers=[]);for(var e=this.handlers.length;e>=0;e--)this.handlers[e]===t&&this.handlers.splice(e,1)}},{key:"dispatch",value:function(){for(var t=0,e=this.handlers.length;t<e;t++){var i=this.handlers[t];"function"==typeof i&&i.apply(this.el,arguments)}}}]),t}();function Z(t,e){var i=new j(t);return i.add(e),i}var D=function(){function t(i,n){e(this,t),this.element="string"==typeof i?document.querySelector(i):i,this.start=this.start.bind(this),this.move=this.move.bind(this),this.end=this.end.bind(this),this.cancel=this.cancel.bind(this),this.element.addEventListener("touchstart",this.start,!1),this.element.addEventListener("touchmove",this.move,!1),this.element.addEventListener("touchend",this.end,!1),this.element.addEventListener("touchcancel",this.cancel,!1),this.preV={x:null,y:null},this.pinchStartLen=null,this.zoom=1,this.isDoubleTap=!1;var o=function(){};this.rotate=Z(this.element,n.rotate||o),this.touchStart=Z(this.element,n.touchStart||o),this.multipointStart=Z(this.element,n.multipointStart||o),this.multipointEnd=Z(this.element,n.multipointEnd||o),this.pinch=Z(this.element,n.pinch||o),this.swipe=Z(this.element,n.swipe||o),this.tap=Z(this.element,n.tap||o),this.doubleTap=Z(this.element,n.doubleTap||o),this.longTap=Z(this.element,n.longTap||o),this.singleTap=Z(this.element,n.singleTap||o),this.pressMove=Z(this.element,n.pressMove||o),this.twoFingerPressMove=Z(this.element,n.twoFingerPressMove||o),this.touchMove=Z(this.element,n.touchMove||o),this.touchEnd=Z(this.element,n.touchEnd||o),this.touchCancel=Z(this.element,n.touchCancel||o),this.translateContainer=this.element,this._cancelAllHandler=this.cancelAll.bind(this),window.addEventListener("scroll",this._cancelAllHandler),this.delta=null,this.last=null,this.now=null,this.tapTimeout=null,this.singleTapTimeout=null,this.longTapTimeout=null,this.swipeTimeout=null,this.x1=this.x2=this.y1=this.y2=null,this.preTapPosition={x:null,y:null}}return n(t,[{key:"start",value:function(t){if(t.touches)if(t.target&&t.target.nodeName&&["a","button","input"].indexOf(t.target.nodeName.toLowerCase())>=0)console.log("ignore drag for this touched element",t.target.nodeName.toLowerCase());else{this.now=Date.now(),this.x1=t.touches[0].pageX,this.y1=t.touches[0].pageY,this.delta=this.now-(this.last||this.now),this.touchStart.dispatch(t,this.element),null!==this.preTapPosition.x&&(this.isDoubleTap=this.delta>0&&this.delta<=250&&Math.abs(this.preTapPosition.x-this.x1)<30&&Math.abs(this.preTapPosition.y-this.y1)<30,this.isDoubleTap&&clearTimeout(this.singleTapTimeout)),this.preTapPosition.x=this.x1,this.preTapPosition.y=this.y1,this.last=this.now;var e=this.preV;if(t.touches.length>1){this._cancelLongTap(),this._cancelSingleTap();var i={x:t.touches[1].pageX-this.x1,y:t.touches[1].pageY-this.y1};e.x=i.x,e.y=i.y,this.pinchStartLen=B(e),this.multipointStart.dispatch(t,this.element)}this._preventTap=!1,this.longTapTimeout=setTimeout(function(){this.longTap.dispatch(t,this.element),this._preventTap=!0}.bind(this),750)}}},{key:"move",value:function(t){if(t.touches){var e=this.preV,i=t.touches.length,n=t.touches[0].pageX,o=t.touches[0].pageY;if(this.isDoubleTap=!1,i>1){var r=t.touches[1].pageX,s=t.touches[1].pageY,a={x:t.touches[1].pageX-n,y:t.touches[1].pageY-o};null!==e.x&&(this.pinchStartLen>0&&(t.zoom=B(a)/this.pinchStartLen,this.pinch.dispatch(t,this.element)),t.angle=N(a,e),this.rotate.dispatch(t,this.element)),e.x=a.x,e.y=a.y,null!==this.x2&&null!==this.sx2?(t.deltaX=(n-this.x2+r-this.sx2)/2,t.deltaY=(o-this.y2+s-this.sy2)/2):(t.deltaX=0,t.deltaY=0),this.twoFingerPressMove.dispatch(t,this.element),this.sx2=r,this.sy2=s}else{if(null!==this.x2){t.deltaX=n-this.x2,t.deltaY=o-this.y2;var h=Math.abs(this.x1-this.x2),l=Math.abs(this.y1-this.y2);(h>10||l>10)&&(this._preventTap=!0)}else t.deltaX=0,t.deltaY=0;this.pressMove.dispatch(t,this.element)}this.touchMove.dispatch(t,this.element),this._cancelLongTap(),this.x2=n,this.y2=o,i>1&&t.preventDefault()}}},{key:"end",value:function(t){if(t.changedTouches){this._cancelLongTap();var e=this;t.touches.length<2&&(this.multipointEnd.dispatch(t,this.element),this.sx2=this.sy2=null),this.x2&&Math.abs(this.x1-this.x2)>30||this.y2&&Math.abs(this.y1-this.y2)>30?(t.direction=this._swipeDirection(this.x1,this.x2,this.y1,this.y2),this.swipeTimeout=setTimeout((function(){e.swipe.dispatch(t,e.element)}),0)):(this.tapTimeout=setTimeout((function(){e._preventTap||e.tap.dispatch(t,e.element),e.isDoubleTap&&(e.doubleTap.dispatch(t,e.element),e.isDoubleTap=!1)}),0),e.isDoubleTap||(e.singleTapTimeout=setTimeout((function(){e.singleTap.dispatch(t,e.element)}),250))),this.touchEnd.dispatch(t,this.element),this.preV.x=0,this.preV.y=0,this.zoom=1,this.pinchStartLen=null,this.x1=this.x2=this.y1=this.y2=null}}},{key:"cancelAll",value:function(){this._preventTap=!0,clearTimeout(this.singleTapTimeout),clearTimeout(this.tapTimeout),clearTimeout(this.longTapTimeout),clearTimeout(this.swipeTimeout)}},{key:"cancel",value:function(t){this.cancelAll(),this.touchCancel.dispatch(t,this.element)}},{key:"_cancelLongTap",value:function(){clearTimeout(this.longTapTimeout)}},{key:"_cancelSingleTap",value:function(){clearTimeout(this.singleTapTimeout)}},{key:"_swipeDirection",value:function(t,e,i,n){return Math.abs(t-e)>=Math.abs(i-n)?t-e>0?"Left":"Right":i-n>0?"Up":"Down"}},{key:"on",value:function(t,e){this[t]&&this[t].add(e)}},{key:"off",value:function(t,e){this[t]&&this[t].del(e)}},{key:"destroy",value:function(){return this.singleTapTimeout&&clearTimeout(this.singleTapTimeout),this.tapTimeout&&clearTimeout(this.tapTimeout),this.longTapTimeout&&clearTimeout(this.longTapTimeout),this.swipeTimeout&&clearTimeout(this.swipeTimeout),this.element.removeEventListener("touchstart",this.start),this.element.removeEventListener("touchmove",this.move),this.element.removeEventListener("touchend",this.end),this.element.removeEventListener("touchcancel",this.cancel),this.rotate.del(),this.touchStart.del(),this.multipointStart.del(),this.multipointEnd.del(),this.pinch.del(),this.swipe.del(),this.tap.del(),this.doubleTap.del(),this.longTap.del(),this.singleTap.del(),this.pressMove.del(),this.twoFingerPressMove.del(),this.touchMove.del(),this.touchEnd.del(),this.touchCancel.del(),this.preV=this.pinchStartLen=this.zoom=this.isDoubleTap=this.delta=this.last=this.now=this.tapTimeout=this.singleTapTimeout=this.longTapTimeout=this.swipeTimeout=this.x1=this.x2=this.y1=this.y2=this.preTapPosition=this.rotate=this.touchStart=this.multipointStart=this.multipointEnd=this.pinch=this.swipe=this.tap=this.doubleTap=this.longTap=this.singleTap=this.pressMove=this.touchMove=this.touchEnd=this.touchCancel=this.twoFingerPressMove=null,window.removeEventListener("scroll",this._cancelAllHandler),null}}]),t}();function R(t){var e=function(){var t,e=document.createElement("fakeelement"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(void 0!==e.style[t])return i[t]}(),i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=c(t,"gslide-media")?t:t.querySelector(".gslide-media"),o=d(n,".ginner-container"),r=t.querySelector(".gslide-description");i>769&&(n=o),l(n,"greset"),p(n,"translate3d(0, 0, 0)"),h(e,{onElement:n,once:!0,withCallback:function(t,e){u(n,"greset")}}),n.style.opacity="",r&&(r.style.opacity="")}function F(t){if(t.events.hasOwnProperty("touch"))return!1;var e,i,n,o=_(),r=o.width,s=o.height,a=!1,h=null,f=null,m=null,g=!1,v=1,y=1,b=!1,x=!1,w=null,P=null,T=null,L=null,E=0,S=0,k=!1,C=!1,A={},O={},M=0,z=0,I=document.getElementById("glightbox-slider"),B=document.querySelector(".goverlay"),N=new D(I,{touchStart:function(e){if(a=!0,(c(e.targetTouches[0].target,"ginner-container")||d(e.targetTouches[0].target,".gslide-desc")||"a"==e.targetTouches[0].target.nodeName.toLowerCase())&&(a=!1),d(e.targetTouches[0].target,".gslide-inline")&&!c(e.targetTouches[0].target.parentNode,"gslide-inline")&&(a=!1),a){if(O=e.targetTouches[0],A.pageX=e.targetTouches[0].pageX,A.pageY=e.targetTouches[0].pageY,M=e.targetTouches[0].clientX,z=e.targetTouches[0].clientY,h=t.activeSlide,f=h.querySelector(".gslide-media"),n=h.querySelector(".gslide-inline"),m=null,c(f,"gslide-image")&&(m=f.querySelector("img")),(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)>769&&(f=h.querySelector(".ginner-container")),u(B,"greset"),e.pageX>20&&e.pageX<window.innerWidth-20)return;e.preventDefault()}},touchMove:function(o){if(a&&(O=o.targetTouches[0],!b&&!x)){if(n&&n.offsetHeight>s){var h=A.pageX-O.pageX;if(Math.abs(h)<=13)return!1}g=!0;var l,u=o.targetTouches[0].clientX,c=o.targetTouches[0].clientY,d=M-u,v=z-c;if(Math.abs(d)>Math.abs(v)?(k=!1,C=!0):(C=!1,k=!0),e=O.pageX-A.pageX,E=100*e/r,i=O.pageY-A.pageY,S=100*i/s,k&&m&&(l=1-Math.abs(i)/s,B.style.opacity=l,t.settings.touchFollowAxis&&(E=0)),C&&(l=1-Math.abs(e)/r,f.style.opacity=l,t.settings.touchFollowAxis&&(S=0)),!m)return p(f,"translate3d(".concat(E,"%, 0, 0)"));p(f,"translate3d(".concat(E,"%, ").concat(S,"%, 0)"))}},touchEnd:function(){if(a){if(g=!1,x||b)return T=w,void(L=P);var e=Math.abs(parseInt(S)),i=Math.abs(parseInt(E));if(!(e>29&&m))return e<29&&i<25?(l(B,"greset"),B.style.opacity=1,R(f)):void 0;t.close()}},multipointEnd:function(){setTimeout((function(){b=!1}),50)},multipointStart:function(){b=!0,v=y||1},pinch:function(t){if(!m||g)return!1;b=!0,m.scaleX=m.scaleY=v*t.zoom;var e=v*t.zoom;if(x=!0,e<=1)return x=!1,e=1,L=null,T=null,w=null,P=null,void m.setAttribute("style","");e>4.5&&(e=4.5),m.style.transform="scale3d(".concat(e,", ").concat(e,", 1)"),y=e},pressMove:function(t){if(x&&!b){var e=O.pageX-A.pageX,i=O.pageY-A.pageY;T&&(e+=T),L&&(i+=L),w=e,P=i;var n="translate3d(".concat(e,"px, ").concat(i,"px, 0)");y&&(n+=" scale3d(".concat(y,", ").concat(y,", 1)")),p(m,n)}},swipe:function(e){if(!x)if(b)b=!1;else{if("Left"==e.direction){if(t.index==t.elements.length-1)return R(f);t.nextSlide()}if("Right"==e.direction){if(0==t.index)return R(f);t.prevSlide()}}}});t.events.touch=N}var W=function(){function t(i,n){var o=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(e(this,t),this.img=i,this.slide=n,this.onclose=r,this.img.setZoomEvents)return!1;this.active=!1,this.zoomedIn=!1,this.dragging=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.img.addEventListener("mousedown",(function(t){return o.dragStart(t)}),!1),this.img.addEventListener("mouseup",(function(t){return o.dragEnd(t)}),!1),this.img.addEventListener("mousemove",(function(t){return o.drag(t)}),!1),this.img.addEventListener("click",(function(t){return o.slide.classList.contains("dragging-nav")?(o.zoomOut(),!1):o.zoomedIn?void(o.zoomedIn&&!o.dragging&&o.zoomOut()):o.zoomIn()}),!1),this.img.setZoomEvents=!0}return n(t,[{key:"zoomIn",value:function(){var t=this.widowWidth();if(!(this.zoomedIn||t<=768)){var e=this.img;if(e.setAttribute("data-style",e.getAttribute("style")),e.style.maxWidth=e.naturalWidth+"px",e.style.maxHeight=e.naturalHeight+"px",e.naturalWidth>t){var i=t/2-e.naturalWidth/2;this.setTranslate(this.img.parentNode,i,0)}this.slide.classList.add("zoomed"),this.zoomedIn=!0}}},{key:"zoomOut",value:function(){this.img.parentNode.setAttribute("style",""),this.img.setAttribute("style",this.img.getAttribute("data-style")),this.slide.classList.remove("zoomed"),this.zoomedIn=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.onclose&&"function"==typeof this.onclose&&this.onclose()}},{key:"dragStart",value:function(t){t.preventDefault(),this.zoomedIn?("touchstart"===t.type?(this.initialX=t.touches[0].clientX-this.xOffset,this.initialY=t.touches[0].clientY-this.yOffset):(this.initialX=t.clientX-this.xOffset,this.initialY=t.clientY-this.yOffset),t.target===this.img&&(this.active=!0,this.img.classList.add("dragging"))):this.active=!1}},{key:"dragEnd",value:function(t){var e=this;t.preventDefault(),this.initialX=this.currentX,this.initialY=this.currentY,this.active=!1,setTimeout((function(){e.dragging=!1,e.img.isDragging=!1,e.img.classList.remove("dragging")}),100)}},{key:"drag",value:function(t){this.active&&(t.preventDefault(),"touchmove"===t.type?(this.currentX=t.touches[0].clientX-this.initialX,this.currentY=t.touches[0].clientY-this.initialY):(this.currentX=t.clientX-this.initialX,this.currentY=t.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.img.isDragging=!0,this.dragging=!0,this.setTranslate(this.img,this.currentX,this.currentY))}},{key:"onMove",value:function(t){if(this.zoomedIn){var e=t.clientX-this.img.naturalWidth/2,i=t.clientY-this.img.naturalHeight/2;this.setTranslate(this.img,e,i)}}},{key:"setTranslate",value:function(t,e,i){t.style.transform="translate3d("+e+"px, "+i+"px, 0)"}},{key:"widowWidth",value:function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}}]),t}(),H=function(){function t(){var i=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,t);var o=n.dragEl,r=n.toleranceX,s=void 0===r?40:r,a=n.toleranceY,h=void 0===a?65:a,l=n.slide,u=void 0===l?null:l,c=n.instance,d=void 0===c?null:c;this.el=o,this.active=!1,this.dragging=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.direction=null,this.lastDirection=null,this.toleranceX=s,this.toleranceY=h,this.toleranceReached=!1,this.dragContainer=this.el,this.slide=u,this.instance=d,this.el.addEventListener("mousedown",(function(t){return i.dragStart(t)}),!1),this.el.addEventListener("mouseup",(function(t){return i.dragEnd(t)}),!1),this.el.addEventListener("mousemove",(function(t){return i.drag(t)}),!1)}return n(t,[{key:"dragStart",value:function(t){if(this.slide.classList.contains("zoomed"))this.active=!1;else{"touchstart"===t.type?(this.initialX=t.touches[0].clientX-this.xOffset,this.initialY=t.touches[0].clientY-this.yOffset):(this.initialX=t.clientX-this.xOffset,this.initialY=t.clientY-this.yOffset);var e=t.target.nodeName.toLowerCase();t.target.classList.contains("nodrag")||d(t.target,".nodrag")||-1!==["input","select","textarea","button","a"].indexOf(e)?this.active=!1:(t.preventDefault(),(t.target===this.el||"img"!==e&&d(t.target,".gslide-inline"))&&(this.active=!0,this.el.classList.add("dragging"),this.dragContainer=d(t.target,".ginner-container")))}}},{key:"dragEnd",value:function(t){var e=this;t&&t.preventDefault(),this.initialX=0,this.initialY=0,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.active=!1,this.doSlideChange&&(this.instance.preventOutsideClick=!0,"right"==this.doSlideChange&&this.instance.prevSlide(),"left"==this.doSlideChange&&this.instance.nextSlide()),this.doSlideClose&&this.instance.close(),this.toleranceReached||this.setTranslate(this.dragContainer,0,0,!0),setTimeout((function(){e.instance.preventOutsideClick=!1,e.toleranceReached=!1,e.lastDirection=null,e.dragging=!1,e.el.isDragging=!1,e.el.classList.remove("dragging"),e.slide.classList.remove("dragging-nav"),e.dragContainer.style.transform="",e.dragContainer.style.transition=""}),100)}},{key:"drag",value:function(t){if(this.active){t.preventDefault(),this.slide.classList.add("dragging-nav"),"touchmove"===t.type?(this.currentX=t.touches[0].clientX-this.initialX,this.currentY=t.touches[0].clientY-this.initialY):(this.currentX=t.clientX-this.initialX,this.currentY=t.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.el.isDragging=!0,this.dragging=!0,this.doSlideChange=!1,this.doSlideClose=!1;var e=Math.abs(this.currentX),i=Math.abs(this.currentY);if(e>0&&e>=Math.abs(this.currentY)&&(!this.lastDirection||"x"==this.lastDirection)){this.yOffset=0,this.lastDirection="x",this.setTranslate(this.dragContainer,this.currentX,0);var n=this.shouldChange();if(!this.instance.settings.dragAutoSnap&&n&&(this.doSlideChange=n),this.instance.settings.dragAutoSnap&&n)return this.instance.preventOutsideClick=!0,this.toleranceReached=!0,this.active=!1,this.instance.preventOutsideClick=!0,this.dragEnd(null),"right"==n&&this.instance.prevSlide(),void("left"==n&&this.instance.nextSlide())}if(this.toleranceY>0&&i>0&&i>=e&&(!this.lastDirection||"y"==this.lastDirection)){this.xOffset=0,this.lastDirection="y",this.setTranslate(this.dragContainer,0,this.currentY);var o=this.shouldClose();return!this.instance.settings.dragAutoSnap&&o&&(this.doSlideClose=!0),void(this.instance.settings.dragAutoSnap&&o&&this.instance.close())}}}},{key:"shouldChange",value:function(){var t=!1;if(Math.abs(this.currentX)>=this.toleranceX){var e=this.currentX>0?"right":"left";("left"==e&&this.slide!==this.slide.parentNode.lastChild||"right"==e&&this.slide!==this.slide.parentNode.firstChild)&&(t=e)}return t}},{key:"shouldClose",value:function(){var t=!1;return Math.abs(this.currentY)>=this.toleranceY&&(t=!0),t}},{key:"setTranslate",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.style.transition=n?"all .2s ease":"",t.style.transform="translate3d(".concat(e,"px, ").concat(i,"px, 0)")}}]),t}();function q(t,e,i,n){var o=t.querySelector(".gslide-media"),r=new Image,s="gSlideTitle_"+i,a="gSlideDesc_"+i;r.addEventListener("load",(function(){P(n)&&n()}),!1),r.src=e.href,""!=e.sizes&&""!=e.srcset&&(r.sizes=e.sizes,r.srcset=e.srcset),r.alt="",C(e.alt)||""===e.alt||(r.alt=e.alt),""!==e.title&&r.setAttribute("aria-labelledby",s),""!==e.description&&r.setAttribute("aria-describedby",a),e.hasOwnProperty("_hasCustomWidth")&&e._hasCustomWidth&&(r.style.width=e.width),e.hasOwnProperty("_hasCustomHeight")&&e._hasCustomHeight&&(r.style.height=e.height),o.insertBefore(r,o.firstChild)}function U(t,e,i,n){var o=this,r=t.querySelector(".ginner-container"),s="gvideo"+i,a=t.querySelector(".gslide-media"),h=this.getAllPlayers();l(r,"gvideo-container"),a.insertBefore(v('<div class="gvideo-wrapper"></div>'),a.firstChild);var u=t.querySelector(".gvideo-wrapper");x(this.settings.plyr.css,"Plyr");var c=e.href,d=null==e?void 0:e.videoProvider,f=!1;a.style.maxWidth=e.width,x(this.settings.plyr.js,"Plyr",(function(){if(!d&&c.match(/vimeo\.com\/([0-9]*)/)&&(d="vimeo"),!d&&(c.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||c.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||c.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/))&&(d="youtube"),"local"===d||!d){d="local";var r='<video id="'+s+'" ';r+='style="background:#000; max-width: '.concat(e.width,';" '),r+='preload="metadata" ',r+='x-webkit-airplay="allow" ',r+="playsinline ",r+="controls ",r+='class="gvideo-local">',r+='<source src="'.concat(c,'">'),f=v(r+="</video>")}var a=f||v('<div id="'.concat(s,'" data-plyr-provider="').concat(d,'" data-plyr-embed-id="').concat(c,'"></div>'));l(u,"".concat(d,"-video gvideo")),u.appendChild(a),u.setAttribute("data-id",s),u.setAttribute("data-index",i);var p=A(o.settings.plyr,"config")?o.settings.plyr.config:{},m=new Plyr("#"+s,p);m.on("ready",(function(t){h[s]=t.detail.plyr,P(n)&&n()})),b((function(){return t.querySelector("iframe")&&"true"==t.querySelector("iframe").dataset.ready}),(function(){o.resize(t)})),m.on("enterfullscreen",V),m.on("exitfullscreen",V)}))}function V(t){var e=d(t.target,".gslide-media");"enterfullscreen"===t.type&&l(e,"fullscreen"),"exitfullscreen"===t.type&&u(e,"fullscreen")}function Y(t,e,i,n){var o,r=this,s=t.querySelector(".gslide-media"),a=!(!A(e,"href")||!e.href)&&e.href.split("#").pop().trim(),u=!(!A(e,"content")||!e.content)&&e.content;if(u&&(T(u)&&(o=v('<div class="ginlined-content">'.concat(u,"</div>"))),L(u))){"none"==u.style.display&&(u.style.display="block");var c=document.createElement("div");c.className="ginlined-content",c.appendChild(u),o=c}if(a){var d=document.getElementById(a);if(!d)return!1;var f=d.cloneNode(!0);f.style.height=e.height,f.style.maxWidth=e.width,l(f,"ginlined-content"),o=f}if(!o)return console.error("Unable to append inline slide content",e),!1;s.style.height=e.height,s.style.width=e.width,s.appendChild(o),this.events["inlineclose"+a]=h("click",{onElement:s.querySelectorAll(".gtrigger-close"),withCallback:function(t){t.preventDefault(),r.close()}}),P(n)&&n()}function X(t,e,i,n){var o=t.querySelector(".gslide-media"),r=function(t){var e=t.url,i=t.allow,n=t.callback,o=t.appendTo,r=document.createElement("iframe");return r.className="vimeo-video gvideo",r.src=e,r.style.width="100%",r.style.height="100%",i&&r.setAttribute("allow",i),r.onload=function(){r.onload=null,l(r,"node-ready"),P(n)&&n()},o&&o.appendChild(r),r}({url:e.href,callback:n});o.parentNode.style.maxWidth=e.width,o.parentNode.style.height=e.height,o.appendChild(r)}var K=function(){function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,t),this.defaults={href:"",sizes:"",srcset:"",title:"",type:"",videoProvider:"",description:"",alt:"",descPosition:"bottom",effect:"",width:"",height:"",content:!1,zoomable:!0,draggable:!0},k(i)&&(this.defaults=r(this.defaults,i))}return n(t,[{key:"sourceType",value:function(t){var e=t;return null!==(t=t.toLowerCase()).match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/)?"image":t.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||t.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||t.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)||t.match(/vimeo\.com\/([0-9]*)/)||null!==t.match(/\.(mp4|ogg|webm|mov)/)?"video":null!==t.match(/\.(mp3|wav|wma|aac|ogg)/)?"audio":t.indexOf("#")>-1&&""!==e.split("#").pop().trim()?"inline":t.indexOf("goajax=true")>-1?"ajax":"external"}},{key:"parseConfig",value:function(t,e){var i=this,n=r({descPosition:e.descPosition},this.defaults);if(k(t)&&!L(t)){A(t,"type")||(A(t,"content")&&t.content?t.type="inline":A(t,"href")&&(t.type=this.sourceType(t.href)));var o=r(n,t);return this.setSize(o,e),o}var a="",h=t.getAttribute("data-glightbox"),l=t.nodeName.toLowerCase();if("a"===l&&(a=t.href),"img"===l&&(a=t.src,n.alt=t.alt),n.href=a,s(n,(function(o,r){A(e,r)&&"width"!==r&&(n[r]=e[r]);var s=t.dataset[r];C(s)||(n[r]=i.sanitizeValue(s))})),n.content&&(n.type="inline"),!n.type&&a&&(n.type=this.sourceType(a)),C(h)){if(!n.title&&"a"==l){var u=t.title;C(u)||""===u||(n.title=u)}if(!n.title&&"img"==l){var c=t.alt;C(c)||""===c||(n.title=c)}}else{var d=[];s(n,(function(t,e){d.push(";\\s?"+e)})),d=d.join("\\s?:|"),""!==h.trim()&&s(n,(function(t,e){var o=h,r=new RegExp("s?"+e+"s?:s?(.*?)("+d+"s?:|$)"),s=o.match(r);if(s&&s.length&&s[1]){var a=s[1].trim().replace(/;\s*$/,"");n[e]=i.sanitizeValue(a)}}))}if(n.description&&"."===n.description.substring(0,1)){var f;try{f=document.querySelector(n.description).innerHTML}catch(t){if(!(t instanceof DOMException))throw t}f&&(n.description=f)}if(!n.description){var p=t.querySelector(".glightbox-desc");p&&(n.description=p.innerHTML)}return this.setSize(n,e,t),this.slideConfig=n,n}},{key:"setSize",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="video"==t.type?this.checkSize(e.videosWidth):this.checkSize(e.width),o=this.checkSize(e.height);return t.width=A(t,"width")&&""!==t.width?this.checkSize(t.width):n,t.height=A(t,"height")&&""!==t.height?this.checkSize(t.height):o,i&&"image"==t.type&&(t._hasCustomWidth=!!i.dataset.width,t._hasCustomHeight=!!i.dataset.height),t}},{key:"checkSize",value:function(t){return M(t)?"".concat(t,"px"):t}},{key:"sanitizeValue",value:function(t){return"true"!==t&&"false"!==t?t:"true"===t}}]),t}(),G=function(){function t(i,n,o){e(this,t),this.element=i,this.instance=n,this.index=o}return n(t,[{key:"setContent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(c(e,"loaded"))return!1;var n=this.instance.settings,o=this.slideConfig,r=w();P(n.beforeSlideLoad)&&n.beforeSlideLoad({index:this.index,slide:e,player:!1});var s=o.type,a=o.descPosition,h=e.querySelector(".gslide-media"),u=e.querySelector(".gslide-title"),d=e.querySelector(".gslide-desc"),f=e.querySelector(".gdesc-inner"),p=i,m="gSlideTitle_"+this.index,g="gSlideDesc_"+this.index;if(P(n.afterSlideLoad)&&(p=function(){P(i)&&i(),n.afterSlideLoad({index:t.index,slide:e,player:t.instance.getSlidePlayerInstance(t.index)})}),""==o.title&&""==o.description?f&&f.parentNode.parentNode.removeChild(f.parentNode):(u&&""!==o.title?(u.id=m,u.innerHTML=o.title):u.parentNode.removeChild(u),d&&""!==o.description?(d.id=g,r&&n.moreLength>0?(o.smallDescription=this.slideShortDesc(o.description,n.moreLength,n.moreText),d.innerHTML=o.smallDescription,this.descriptionEvents(d,o)):d.innerHTML=o.description):d.parentNode.removeChild(d),l(h.parentNode,"desc-".concat(a)),l(f.parentNode,"description-".concat(a))),l(h,"gslide-".concat(s)),l(e,"loaded"),"video"!==s){if("external"!==s)return"inline"===s?(Y.apply(this.instance,[e,o,this.index,p]),void(o.draggable&&new H({dragEl:e.querySelector(".gslide-inline"),toleranceX:n.dragToleranceX,toleranceY:n.dragToleranceY,slide:e,instance:this.instance}))):void("image"!==s?P(p)&&p():q(e,o,this.index,(function(){var i=e.querySelector("img");o.draggable&&new H({dragEl:i,toleranceX:n.dragToleranceX,toleranceY:n.dragToleranceY,slide:e,instance:t.instance}),o.zoomable&&i.naturalWidth>i.offsetWidth&&(l(i,"zoomable"),new W(i,e,(function(){t.instance.resize()}))),P(p)&&p()})));X.apply(this,[e,o,this.index,p])}else U.apply(this.instance,[e,o,this.index,p])}},{key:"slideShortDesc",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=document.createElement("div");n.innerHTML=t;var o=i;if((t=n.innerText.trim()).length<=e)return t;var r=t.substr(0,e-1);return o?(n=null,r+'... <a href="#" class="desc-more">'+i+"</a>"):r}},{key:"descriptionEvents",value:function(t,e){var i=this,n=t.querySelector(".desc-more");if(!n)return!1;h("click",{onElement:n,withCallback:function(t,n){t.preventDefault();var o=document.body,r=d(n,".gslide-desc");if(!r)return!1;r.innerHTML=e.description,l(o,"gdesc-open");var s=h("click",{onElement:[o,d(r,".gslide-description")],withCallback:function(t,n){"a"!==t.target.nodeName.toLowerCase()&&(u(o,"gdesc-open"),l(o,"gdesc-closed"),r.innerHTML=e.smallDescription,i.descriptionEvents(r,e),setTimeout((function(){u(o,"gdesc-closed")}),400),s.destroy())}})}})}},{key:"create",value:function(){return v(this.instance.settings.slideHTML)}},{key:"getConfig",value:function(){L(this.element)||this.element.hasOwnProperty("draggable")||(this.element.draggable=this.instance.settings.draggable);var t=new K(this.instance.settings.slideExtraAttributes);return this.slideConfig=t.parseConfig(this.element,this.instance.settings),this.slideConfig}}]),t}(),J=w(),$=null!==w()||void 0!==document.createTouch||"ontouchstart"in window||"onmsgesturechange"in window||navigator.msMaxTouchPoints,Q=document.getElementsByTagName("html")[0],tt={selector:".glightbox",elements:null,skin:"clean",theme:"clean",closeButton:!0,startAt:null,autoplayVideos:!0,autofocusVideos:!0,descPosition:"bottom",width:"900px",height:"506px",videosWidth:"960px",beforeSlideChange:null,afterSlideChange:null,beforeSlideLoad:null,afterSlideLoad:null,slideInserted:null,slideRemoved:null,slideExtraAttributes:null,onOpen:null,onClose:null,loop:!1,zoomable:!0,draggable:!0,dragAutoSnap:!1,dragToleranceX:40,dragToleranceY:65,preload:!0,oneSlidePerOpen:!1,touchNavigation:!0,touchFollowAxis:!0,keyboardNavigation:!0,closeOnOutsideClick:!0,plugins:!1,plyr:{css:"https://cdn.plyr.io/3.6.12/plyr.css",js:"https://cdn.plyr.io/3.6.12/plyr.js",config:{ratio:"16:9",fullscreen:{enabled:!0,iosNative:!0},youtube:{noCookie:!0,rel:0,showinfo:0,iv_load_policy:3},vimeo:{byline:!1,portrait:!1,title:!1,transparent:!1}}},openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",moreText:"See more",moreLength:60,cssEfects:{fade:{in:"fadeIn",out:"fadeOut"},zoom:{in:"zoomIn",out:"zoomOut"},slide:{in:"slideInRight",out:"slideOutLeft"},slideBack:{in:"slideInLeft",out:"slideOutRight"},none:{in:"none",out:"none"}},svg:{close:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve"><g><g><path d="M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306C514.019,27.23,514.019,14.135,505.943,6.058z"/></g></g><g><g><path d="M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z"/></g></g></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"> <g><path d="M360.731,229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1,0s-5.3,13.8,0,19.1l215.5,215.5l-215.5,215.5c-5.3,5.3-5.3,13.8,0,19.1c2.6,2.6,6.1,4,9.5,4c3.4,0,6.9-1.3,9.5-4l225.1-225.1C365.931,242.875,365.931,234.275,360.731,229.075z"/></g></svg>',prev:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"><g><path d="M145.188,238.575l215.5-215.5c5.3-5.3,5.3-13.8,0-19.1s-13.8-5.3-19.1,0l-225.1,225.1c-5.3,5.3-5.3,13.8,0,19.1l225.1,225c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4c5.3-5.3,5.3-13.8,0-19.1L145.188,238.575z"/></g></svg>'},slideHTML:'<div class="gslide">\n    <div class="gslide-inner-content">\n        <div class="ginner-container">\n            <div class="gslide-media">\n            </div>\n            <div class="gslide-description">\n                <div class="gdesc-inner">\n                    <h4 class="gslide-title"></h4>\n                    <div class="gslide-desc"></div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>',lightboxHTML:'<div id="glightbox-body" class="glightbox-container" tabindex="-1" role="dialog" aria-hidden="false">\n    <div class="gloader visible"></div>\n    <div class="goverlay"></div>\n    <div class="gcontainer">\n    <div id="glightbox-slider" class="gslider"></div>\n    <button class="gclose gbtn" aria-label="Close" data-taborder="3">{closeSVG}</button>\n    <button class="gprev gbtn" aria-label="Previous" data-taborder="2">{prevSVG}</button>\n    <button class="gnext gbtn" aria-label="Next" data-taborder="1">{nextSVG}</button>\n</div>\n</div>'},et=function(){function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,t),this.customOptions=i,this.settings=r(tt,i),this.effectsClasses=this.getAnimationClasses(),this.videoPlayers={},this.apiEvents=[],this.fullElementsList=!1}return n(t,[{key:"init",value:function(){var t=this,e=this.getSelector();e&&(this.baseEvents=h("click",{onElement:e,withCallback:function(e,i){e.preventDefault(),t.open(i)}})),this.elements=this.getElements()}},{key:"open",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(0===this.elements.length)return!1;this.activeSlide=null,this.prevActiveSlideIndex=null,this.prevActiveSlide=null;var i=M(e)?e:this.settings.startAt;if(L(t)){var n=t.getAttribute("data-gallery");n&&(this.fullElementsList=this.elements,this.elements=this.getGalleryElements(this.elements,n)),C(i)&&(i=this.getElementIndex(t))<0&&(i=0)}M(i)||(i=0),this.build(),f(this.overlay,"none"===this.settings.openEffect?"none":this.settings.cssEfects.fade.in);var o=document.body,r=window.innerWidth-document.documentElement.clientWidth;if(r>0){var s=document.createElement("style");s.type="text/css",s.className="gcss-styles",s.innerText=".gscrollbar-fixer {margin-right: ".concat(r,"px}"),document.head.appendChild(s),l(o,"gscrollbar-fixer")}l(o,"glightbox-open"),l(Q,"glightbox-open"),J&&(l(document.body,"glightbox-mobile"),this.settings.slideEffect="slide"),this.showSlide(i,!0),1===this.elements.length?(l(this.prevButton,"glightbox-button-hidden"),l(this.nextButton,"glightbox-button-hidden")):(u(this.prevButton,"glightbox-button-hidden"),u(this.nextButton,"glightbox-button-hidden")),this.lightboxOpen=!0,this.trigger("open"),P(this.settings.onOpen)&&this.settings.onOpen(),$&&this.settings.touchNavigation&&F(this),this.settings.keyboardNavigation&&I(this)}},{key:"openAt",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.open(null,t)}},{key:"showSlide",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m(this.loader),this.index=parseInt(e);var n=this.slidesContainer.querySelector(".current");n&&u(n,"current"),this.slideAnimateOut();var o=this.slidesContainer.querySelectorAll(".gslide")[e];if(c(o,"loaded"))this.slideAnimateIn(o,i),g(this.loader);else{m(this.loader);var r=this.elements[e],s={index:this.index,slide:o,slideNode:o,slideConfig:r.slideConfig,slideIndex:this.index,trigger:r.node,player:null};this.trigger("slide_before_load",s),r.instance.setContent(o,(function(){g(t.loader),t.resize(),t.slideAnimateIn(o,i),t.trigger("slide_after_load",s)}))}this.slideDescription=o.querySelector(".gslide-description"),this.slideDescriptionContained=this.slideDescription&&c(this.slideDescription.parentNode,"gslide-media"),this.settings.preload&&(this.preloadSlide(e+1),this.preloadSlide(e-1)),this.updateNavigationClasses(),this.activeSlide=o}},{key:"preloadSlide",value:function(t){var e=this;if(t<0||t>this.elements.length-1)return!1;if(C(this.elements[t]))return!1;var i=this.slidesContainer.querySelectorAll(".gslide")[t];if(c(i,"loaded"))return!1;var n=this.elements[t],o=n.type,r={index:t,slide:i,slideNode:i,slideConfig:n.slideConfig,slideIndex:t,trigger:n.node,player:null};this.trigger("slide_before_load",r),"video"===o||"external"===o?setTimeout((function(){n.instance.setContent(i,(function(){e.trigger("slide_after_load",r)}))}),200):n.instance.setContent(i,(function(){e.trigger("slide_after_load",r)}))}},{key:"prevSlide",value:function(){this.goToSlide(this.index-1)}},{key:"nextSlide",value:function(){this.goToSlide(this.index+1)}},{key:"goToSlide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.prevActiveSlide=this.activeSlide,this.prevActiveSlideIndex=this.index,!this.loop()&&(t<0||t>this.elements.length-1))return!1;t<0?t=this.elements.length-1:t>=this.elements.length&&(t=0),this.showSlide(t)}},{key:"insertSlide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;e<0&&(e=this.elements.length);var i=new G(t,this,e),n=i.getConfig(),o=r({},n),s=i.create(),a=this.elements.length-1;o.index=e,o.node=!1,o.instance=i,o.slideConfig=n,this.elements.splice(e,0,o);var h=null,l=null;if(this.slidesContainer){if(e>a)this.slidesContainer.appendChild(s);else{var u=this.slidesContainer.querySelectorAll(".gslide")[e];this.slidesContainer.insertBefore(s,u)}(this.settings.preload&&0==this.index&&0==e||this.index-1==e||this.index+1==e)&&this.preloadSlide(e),0===this.index&&0===e&&(this.index=1),this.updateNavigationClasses(),h=this.slidesContainer.querySelectorAll(".gslide")[e],l=this.getSlidePlayerInstance(e),o.slideNode=h}this.trigger("slide_inserted",{index:e,slide:h,slideNode:h,slideConfig:n,slideIndex:e,trigger:null,player:l}),P(this.settings.slideInserted)&&this.settings.slideInserted({index:e,slide:h,player:l})}},{key:"removeSlide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(t<0||t>this.elements.length-1)return!1;var e=this.slidesContainer&&this.slidesContainer.querySelectorAll(".gslide")[t];e&&(this.getActiveSlideIndex()==t&&(t==this.elements.length-1?this.prevSlide():this.nextSlide()),e.parentNode.removeChild(e)),this.elements.splice(t,1),this.trigger("slide_removed",t),P(this.settings.slideRemoved)&&this.settings.slideRemoved(t)}},{key:"slideAnimateIn",value:function(t,e){var i=this,n=t.querySelector(".gslide-media"),o=t.querySelector(".gslide-description"),r={index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlide,slideConfig:C(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:C(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},s={index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideConfig:this.elements[this.index].slideConfig,slideIndex:this.index,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)};if(n.offsetWidth>0&&o&&(g(o),o.style.display=""),u(t,this.effectsClasses),e)f(t,this.settings.cssEfects[this.settings.openEffect].in,(function(){i.settings.autoplayVideos&&i.slidePlayerPlay(t),i.trigger("slide_changed",{prev:r,current:s}),P(i.settings.afterSlideChange)&&i.settings.afterSlideChange.apply(i,[r,s])}));else{var a=this.settings.slideEffect,h="none"!==a?this.settings.cssEfects[a].in:a;this.prevActiveSlideIndex>this.index&&"slide"==this.settings.slideEffect&&(h=this.settings.cssEfects.slideBack.in),f(t,h,(function(){i.settings.autoplayVideos&&i.slidePlayerPlay(t),i.trigger("slide_changed",{prev:r,current:s}),P(i.settings.afterSlideChange)&&i.settings.afterSlideChange.apply(i,[r,s])}))}setTimeout((function(){i.resize(t)}),100),l(t,"current")}},{key:"slideAnimateOut",value:function(){if(!this.prevActiveSlide)return!1;var t=this.prevActiveSlide;u(t,this.effectsClasses),l(t,"prev");var e=this.settings.slideEffect,i="none"!==e?this.settings.cssEfects[e].out:e;this.slidePlayerPause(t),this.trigger("slide_before_change",{prev:{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlideIndex,slideConfig:C(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:C(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},current:{index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideIndex:this.index,slideConfig:this.elements[this.index].slideConfig,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)}}),P(this.settings.beforeSlideChange)&&this.settings.beforeSlideChange.apply(this,[{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},{index:this.index,slide:this.activeSlide,player:this.getSlidePlayerInstance(this.index)}]),this.prevActiveSlideIndex>this.index&&"slide"==this.settings.slideEffect&&(i=this.settings.cssEfects.slideBack.out),f(t,i,(function(){var e=t.querySelector(".ginner-container"),i=t.querySelector(".gslide-media"),n=t.querySelector(".gslide-description");e.style.transform="",i.style.transform="",u(i,"greset"),i.style.opacity="",n&&(n.style.opacity=""),u(t,"prev")}))}},{key:"getAllPlayers",value:function(){return this.videoPlayers}},{key:"getSlidePlayerInstance",value:function(t){var e="gvideo"+t,i=this.getAllPlayers();return!(!A(i,e)||!i[e])&&i[e]}},{key:"stopSlideVideo",value:function(t){if(L(t)){var e=t.querySelector(".gvideo-wrapper");e&&(t=e.getAttribute("data-index"))}console.log("stopSlideVideo is deprecated, use slidePlayerPause");var i=this.getSlidePlayerInstance(t);i&&i.playing&&i.pause()}},{key:"slidePlayerPause",value:function(t){if(L(t)){var e=t.querySelector(".gvideo-wrapper");e&&(t=e.getAttribute("data-index"))}var i=this.getSlidePlayerInstance(t);i&&i.playing&&i.pause()}},{key:"playSlideVideo",value:function(t){if(L(t)){var e=t.querySelector(".gvideo-wrapper");e&&(t=e.getAttribute("data-index"))}console.log("playSlideVideo is deprecated, use slidePlayerPlay");var i=this.getSlidePlayerInstance(t);i&&!i.playing&&i.play()}},{key:"slidePlayerPlay",value:function(t){var e;if(!J||null!==(e=this.settings.plyr.config)&&void 0!==e&&e.muted){if(L(t)){var i=t.querySelector(".gvideo-wrapper");i&&(t=i.getAttribute("data-index"))}var n=this.getSlidePlayerInstance(t);n&&!n.playing&&(n.play(),this.settings.autofocusVideos&&n.elements.container.focus())}}},{key:"setElements",value:function(t){var e=this;this.settings.elements=!1;var i=[];t&&t.length&&s(t,(function(t,n){var o=new G(t,e,n),s=o.getConfig(),a=r({},s);a.slideConfig=s,a.instance=o,a.index=n,i.push(a)})),this.elements=i,this.lightboxOpen&&(this.slidesContainer.innerHTML="",this.elements.length&&(s(this.elements,(function(){var t=v(e.settings.slideHTML);e.slidesContainer.appendChild(t)})),this.showSlide(0,!0)))}},{key:"getElementIndex",value:function(t){var e=!1;return s(this.elements,(function(i,n){if(A(i,"node")&&i.node==t)return e=n,!0})),e}},{key:"getElements",value:function(){var t=this,e=[];this.elements=this.elements?this.elements:[],!C(this.settings.elements)&&E(this.settings.elements)&&this.settings.elements.length&&s(this.settings.elements,(function(i,n){var o=new G(i,t,n),s=o.getConfig(),a=r({},s);a.node=!1,a.index=n,a.instance=o,a.slideConfig=s,e.push(a)}));var i=!1;return this.getSelector()&&(i=document.querySelectorAll(this.getSelector())),i?(s(i,(function(i,n){var o=new G(i,t,n),s=o.getConfig(),a=r({},s);a.node=i,a.index=n,a.instance=o,a.slideConfig=s,a.gallery=i.getAttribute("data-gallery"),e.push(a)})),e):e}},{key:"getGalleryElements",value:function(t,e){return t.filter((function(t){return t.gallery==e}))}},{key:"getSelector",value:function(){return!this.settings.elements&&(this.settings.selector&&"data-"==this.settings.selector.substring(0,5)?"*[".concat(this.settings.selector,"]"):this.settings.selector)}},{key:"getActiveSlide",value:function(){return this.slidesContainer.querySelectorAll(".gslide")[this.index]}},{key:"getActiveSlideIndex",value:function(){return this.index}},{key:"getAnimationClasses",value:function(){var t=[];for(var e in this.settings.cssEfects)if(this.settings.cssEfects.hasOwnProperty(e)){var i=this.settings.cssEfects[e];t.push("g".concat(i.in)),t.push("g".concat(i.out))}return t.join(" ")}},{key:"build",value:function(){var t=this;if(this.built)return!1;var e=document.body.childNodes,i=[];s(e,(function(t){t.parentNode==document.body&&"#"!==t.nodeName.charAt(0)&&t.hasAttribute&&!t.hasAttribute("aria-hidden")&&(i.push(t),t.setAttribute("aria-hidden","true"))}));var n=A(this.settings.svg,"next")?this.settings.svg.next:"",o=A(this.settings.svg,"prev")?this.settings.svg.prev:"",r=A(this.settings.svg,"close")?this.settings.svg.close:"",a=this.settings.lightboxHTML;a=v(a=(a=(a=a.replace(/{nextSVG}/g,n)).replace(/{prevSVG}/g,o)).replace(/{closeSVG}/g,r)),document.body.appendChild(a);var u=document.getElementById("glightbox-body");this.modal=u;var f=u.querySelector(".gclose");this.prevButton=u.querySelector(".gprev"),this.nextButton=u.querySelector(".gnext"),this.overlay=u.querySelector(".goverlay"),this.loader=u.querySelector(".gloader"),this.slidesContainer=document.getElementById("glightbox-slider"),this.bodyHiddenChildElms=i,this.events={},l(this.modal,"glightbox-"+this.settings.skin),this.settings.closeButton&&f&&(this.events.close=h("click",{onElement:f,withCallback:function(e,i){e.preventDefault(),t.close()}})),f&&!this.settings.closeButton&&f.parentNode.removeChild(f),this.nextButton&&(this.events.next=h("click",{onElement:this.nextButton,withCallback:function(e,i){e.preventDefault(),t.nextSlide()}})),this.prevButton&&(this.events.prev=h("click",{onElement:this.prevButton,withCallback:function(e,i){e.preventDefault(),t.prevSlide()}})),this.settings.closeOnOutsideClick&&(this.events.outClose=h("click",{onElement:u,withCallback:function(e,i){t.preventOutsideClick||c(document.body,"glightbox-mobile")||d(e.target,".ginner-container")||d(e.target,".gbtn")||c(e.target,"gnext")||c(e.target,"gprev")||t.close()}})),s(this.elements,(function(e,i){t.slidesContainer.appendChild(e.instance.create()),e.slideNode=t.slidesContainer.querySelectorAll(".gslide")[i]})),$&&l(document.body,"glightbox-touch"),this.events.resize=h("resize",{onElement:window,withCallback:function(){t.resize()}}),this.built=!0}},{key:"resize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if((t=t||this.activeSlide)&&!c(t,"zoomed")){var e=_(),i=t.querySelector(".gvideo-wrapper"),n=t.querySelector(".gslide-image"),o=this.slideDescription,r=e.width,s=e.height;if(r<=768?l(document.body,"glightbox-mobile"):u(document.body,"glightbox-mobile"),i||n){var a=!1;if(o&&(c(o,"description-bottom")||c(o,"description-top"))&&!c(o,"gabsolute")&&(a=!0),n)if(r<=768)n.querySelector("img");else if(a){var h=o.offsetHeight,d=n.querySelector("img");d.setAttribute("style","max-height: calc(100vh - ".concat(h,"px)")),o.setAttribute("style","max-width: ".concat(d.offsetWidth,"px;"))}if(i){var f=A(this.settings.plyr.config,"ratio")?this.settings.plyr.config.ratio:"";if(!f){var p=i.clientWidth,m=i.clientHeight,g=p/m;f="".concat(p/g,":").concat(m/g)}var v=f.split(":"),y=this.settings.videosWidth,b=this.settings.videosWidth,x=(b=M(y)||-1!==y.indexOf("px")?parseInt(y):-1!==y.indexOf("vw")?r*parseInt(y)/100:-1!==y.indexOf("vh")?s*parseInt(y)/100:-1!==y.indexOf("%")?r*parseInt(y)/100:parseInt(i.clientWidth))/(parseInt(v[0])/parseInt(v[1]));if(x=Math.floor(x),a&&(s-=o.offsetHeight),b>r||x>s||s<x&&r>b){var w=i.offsetWidth,P=i.offsetHeight,T=s/P,L={width:w*T,height:P*T};i.parentNode.setAttribute("style","max-width: ".concat(L.width,"px")),a&&o.setAttribute("style","max-width: ".concat(L.width,"px;"))}else i.parentNode.style.maxWidth="".concat(y),a&&o.setAttribute("style","max-width: ".concat(y,";"))}}}}},{key:"reload",value:function(){this.init()}},{key:"updateNavigationClasses",value:function(){var t=this.loop();u(this.nextButton,"disabled"),u(this.prevButton,"disabled"),0==this.index&&this.elements.length-1==0?(l(this.prevButton,"disabled"),l(this.nextButton,"disabled")):0!==this.index||t?this.index!==this.elements.length-1||t||l(this.nextButton,"disabled"):l(this.prevButton,"disabled")}},{key:"loop",value:function(){var t=A(this.settings,"loopAtEnd")?this.settings.loopAtEnd:null;return t=A(this.settings,"loop")?this.settings.loop:t}},{key:"close",value:function(){var t=this;if(!this.lightboxOpen){if(this.events){for(var e in this.events)this.events.hasOwnProperty(e)&&this.events[e].destroy();this.events=null}return!1}if(this.closing)return!1;this.closing=!0,this.slidePlayerPause(this.activeSlide),this.fullElementsList&&(this.elements=this.fullElementsList),this.bodyHiddenChildElms.length&&s(this.bodyHiddenChildElms,(function(t){t.removeAttribute("aria-hidden")})),l(this.modal,"glightbox-closing"),f(this.overlay,"none"==this.settings.openEffect?"none":this.settings.cssEfects.fade.out),f(this.activeSlide,this.settings.cssEfects[this.settings.closeEffect].out,(function(){if(t.activeSlide=null,t.prevActiveSlideIndex=null,t.prevActiveSlide=null,t.built=!1,t.events){for(var e in t.events)t.events.hasOwnProperty(e)&&t.events[e].destroy();t.events=null}var i=document.body;u(Q,"glightbox-open"),u(i,"glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"),t.modal.parentNode.removeChild(t.modal),t.trigger("close"),P(t.settings.onClose)&&t.settings.onClose();var n=document.querySelector(".gcss-styles");n&&n.parentNode.removeChild(n),t.lightboxOpen=!1,t.closing=null}))}},{key:"destroy",value:function(){this.close(),this.clearAllEvents(),this.baseEvents&&this.baseEvents.destroy()}},{key:"on",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||!P(e))throw new TypeError("Event name and callback must be defined");this.apiEvents.push({evt:t,once:i,callback:e})}},{key:"once",value:function(t,e){this.on(t,e,!0)}},{key:"trigger",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=[];s(this.apiEvents,(function(e,o){var r=e.evt,s=e.once,a=e.callback;r==t&&(a(i),s&&n.push(o))})),n.length&&s(n,(function(t){return e.apiEvents.splice(t,1)}))}},{key:"clearAllEvents",value:function(){this.apiEvents.splice(0,this.apiEvents.length)}},{key:"version",value:function(){return"3.1.0"}}]),t}();return function(){var t=new et(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return t.init(),t}}()},7090:t=>{!function(e,i){var n=function(t,e,i){"use strict";var n,o;if(function(){var e,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in o=t.lazySizesConfig||t.lazysizesConfig||{},i)e in o||(o[e]=i[e])}(),!e||!e.getElementsByClassName)return{init:function(){},cfg:o,noSupport:!0};var r=e.documentElement,s=t.HTMLPictureElement,a="addEventListener",h="getAttribute",l=t[a].bind(t),u=t.setTimeout,c=t.requestAnimationFrame||u,d=t.requestIdleCallback,f=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],m={},g=Array.prototype.forEach,v=function(t,e){return m[e]||(m[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),m[e].test(t[h]("class")||"")&&m[e]},_=function(t,e){v(t,e)||t.setAttribute("class",(t[h]("class")||"").trim()+" "+e)},y=function(t,e){var i;(i=v(t,e))&&t.setAttribute("class",(t[h]("class")||"").replace(i," "))},b=function(t,e,i){var n=i?a:"removeEventListener";i&&b(t,e),p.forEach((function(i){t[n](i,e)}))},x=function(t,i,o,r,s){var a=e.createEvent("Event");return o||(o={}),o.instance=n,a.initEvent(i,!r,!s),a.detail=o,t.dispatchEvent(a),a},w=function(e,i){var n;!s&&(n=t.picturefill||o.pf)?(i&&i.src&&!e[h]("srcset")&&e.setAttribute("srcset",i.src),n({reevaluate:!0,elements:[e]})):i&&i.src&&(e.src=i.src)},P=function(t,e){return(getComputedStyle(t,null)||{})[e]},T=function(t,e,i){for(i=i||t.offsetWidth;i<o.minSize&&e&&!t._lazysizesWidth;)i=e.offsetWidth,e=e.parentNode;return i},L=(_t=[],yt=[],bt=_t,xt=function(){var t=bt;for(bt=_t.length?yt:_t,gt=!0,vt=!1;t.length;)t.shift()();gt=!1},wt=function(t,i){gt&&!i?t.apply(this,arguments):(bt.push(t),vt||(vt=!0,(e.hidden?u:c)(xt)))},wt._lsFlush=xt,wt),E=function(t,e){return e?function(){L(t)}:function(){var e=this,i=arguments;L((function(){t.apply(e,i)}))}},S=function(t){var e,n=0,r=o.throttleDelay,s=o.ricTimeout,a=function(){e=!1,n=i.now(),t()},h=d&&s>49?function(){d(a,{timeout:s}),s!==o.ricTimeout&&(s=o.ricTimeout)}:E((function(){u(a)}),!0);return function(t){var o;(t=!0===t)&&(s=33),e||(e=!0,(o=r-(i.now()-n))<0&&(o=0),t||o<9?h():u(h,o))}},k=function(t){var e,n,o=99,r=function(){e=null,t()},s=function(){var t=i.now()-n;t<o?u(s,o-t):(d||r)(r)};return function(){n=i.now(),e||(e=u(s,o))}},C=(X=/^img$/i,K=/^iframe$/i,G="onscroll"in t&&!/(gle|ing)bot/.test(navigator.userAgent),J=0,$=0,Q=0,tt=-1,et=function(t){Q--,(!t||Q<0||!t.target)&&(Q=0)},it=function(t){return null==Y&&(Y="hidden"==P(e.body,"visibility")),Y||!("hidden"==P(t.parentNode,"visibility")&&"hidden"==P(t,"visibility"))},nt=function(t,i){var n,o=t,s=it(t);for(H-=i,V+=i,q-=i,U+=i;s&&(o=o.offsetParent)&&o!=e.body&&o!=r;)(s=(P(o,"opacity")||1)>0)&&"visible"!=P(o,"overflow")&&(n=o.getBoundingClientRect(),s=U>n.left&&q<n.right&&V>n.top-1&&H<n.bottom+1);return s},ot=function(){var t,i,s,a,l,u,c,d,f,p,m,g,v=n.elements;if((D=o.loadMode)&&Q<8&&(t=v.length)){for(i=0,tt++;i<t;i++)if(v[i]&&!v[i]._lazyRace)if(!G||n.prematureUnveil&&n.prematureUnveil(v[i]))dt(v[i]);else if((d=v[i][h]("data-expand"))&&(u=1*d)||(u=$),p||(p=!o.expand||o.expand<1?r.clientHeight>500&&r.clientWidth>500?500:370:o.expand,n._defEx=p,m=p*o.expFactor,g=o.hFac,Y=null,$<m&&Q<1&&tt>2&&D>2&&!e.hidden?($=m,tt=0):$=D>1&&tt>1&&Q<6?p:J),f!==u&&(F=innerWidth+u*g,W=innerHeight+u,c=-1*u,f=u),s=v[i].getBoundingClientRect(),(V=s.bottom)>=c&&(H=s.top)<=W&&(U=s.right)>=c*g&&(q=s.left)<=F&&(V||U||q||H)&&(o.loadHidden||it(v[i]))&&(j&&Q<3&&!d&&(D<3||tt<4)||nt(v[i],u))){if(dt(v[i]),l=!0,Q>9)break}else!l&&j&&!a&&Q<4&&tt<4&&D>2&&(N[0]||o.preloadAfterLoad)&&(N[0]||!d&&(V||U||q||H||"auto"!=v[i][h](o.sizesAttr)))&&(a=N[0]||v[i]);a&&!l&&dt(a)}},rt=S(ot),st=function(t){var e=t.target;e._lazyCache?delete e._lazyCache:(et(t),_(e,o.loadedClass),y(e,o.loadingClass),b(e,ht),x(e,"lazyloaded"))},at=E(st),ht=function(t){at({target:t.target})},lt=function(t,e){var i=t.getAttribute("data-load-mode")||o.iframeLoadMode;0==i?t.contentWindow.location.replace(e):1==i&&(t.src=e)},ut=function(t){var e,i=t[h](o.srcsetAttr);(e=o.customMedia[t[h]("data-media")||t[h]("media")])&&t.setAttribute("media",e),i&&t.setAttribute("srcset",i)},ct=E((function(t,e,i,n,r){var s,a,l,c,d,p;(d=x(t,"lazybeforeunveil",e)).defaultPrevented||(n&&(i?_(t,o.autosizesClass):t.setAttribute("sizes",n)),a=t[h](o.srcsetAttr),s=t[h](o.srcAttr),r&&(c=(l=t.parentNode)&&f.test(l.nodeName||"")),p=e.firesLoad||"src"in t&&(a||s||c),d={target:t},_(t,o.loadingClass),p&&(clearTimeout(Z),Z=u(et,2500),b(t,ht,!0)),c&&g.call(l.getElementsByTagName("source"),ut),a?t.setAttribute("srcset",a):s&&!c&&(K.test(t.nodeName)?lt(t,s):t.src=s),r&&(a||c)&&w(t,{src:s})),t._lazyRace&&delete t._lazyRace,y(t,o.lazyClass),L((function(){var e=t.complete&&t.naturalWidth>1;p&&!e||(e&&_(t,o.fastLoadedClass),st(d),t._lazyCache=!0,u((function(){"_lazyCache"in t&&delete t._lazyCache}),9)),"lazy"==t.loading&&Q--}),!0)})),dt=function(t){if(!t._lazyRace){var e,i=X.test(t.nodeName),n=i&&(t[h](o.sizesAttr)||t[h]("sizes")),r="auto"==n;(!r&&j||!i||!t[h]("src")&&!t.srcset||t.complete||v(t,o.errorClass)||!v(t,o.lazyClass))&&(e=x(t,"lazyunveilread").detail,r&&A.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,Q++,ct(t,e,r,n,i))}},ft=k((function(){o.loadMode=3,rt()})),pt=function(){3==o.loadMode&&(o.loadMode=2),ft()},mt=function(){j||(i.now()-R<999?u(mt,999):(j=!0,o.loadMode=3,rt(),l("scroll",pt,!0)))},{_:function(){R=i.now(),n.elements=e.getElementsByClassName(o.lazyClass),N=e.getElementsByClassName(o.lazyClass+" "+o.preloadClass),l("scroll",rt,!0),l("resize",rt,!0),l("pageshow",(function(t){if(t.persisted){var i=e.querySelectorAll("."+o.loadingClass);i.length&&i.forEach&&c((function(){i.forEach((function(t){t.complete&&dt(t)}))}))}})),t.MutationObserver?new MutationObserver(rt).observe(r,{childList:!0,subtree:!0,attributes:!0}):(r[a]("DOMNodeInserted",rt,!0),r[a]("DOMAttrModified",rt,!0),setInterval(rt,999)),l("hashchange",rt,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(t){e[a](t,rt,!0)})),/d$|^c/.test(e.readyState)?mt():(l("load",mt),e[a]("DOMContentLoaded",rt),u(mt,2e4)),n.elements.length?(ot(),L._lsFlush()):rt()},checkElems:rt,unveil:dt,_aLSL:pt}),A=(z=E((function(t,e,i,n){var o,r,s;if(t._lazysizesWidth=n,n+="px",t.setAttribute("sizes",n),f.test(e.nodeName||""))for(r=0,s=(o=e.getElementsByTagName("source")).length;r<s;r++)o[r].setAttribute("sizes",n);i.detail.dataAttr||w(t,i.detail)})),I=function(t,e,i){var n,o=t.parentNode;o&&(i=T(t,o,i),(n=x(t,"lazybeforesizes",{width:i,dataAttr:!!e})).defaultPrevented||(i=n.detail.width)&&i!==t._lazysizesWidth&&z(t,o,n,i))},B=k((function(){var t,e=M.length;if(e)for(t=0;t<e;t++)I(M[t])})),{_:function(){M=e.getElementsByClassName(o.autosizesClass),l("resize",B)},checkElems:B,updateElem:I}),O=function(){!O.i&&e.getElementsByClassName&&(O.i=!0,A._(),C._())};var M,z,I,B;var N,j,Z,D,R,F,W,H,q,U,V,Y,X,K,G,J,$,Q,tt,et,it,nt,ot,rt,st,at,ht,lt,ut,ct,dt,ft,pt,mt;var gt,vt,_t,yt,bt,xt,wt;return u((function(){o.init&&O()})),n={cfg:o,autoSizer:A,loader:C,init:O,uP:w,aC:_,rC:y,hC:v,fire:x,gW:T,rAF:L}}(e,e.document,Date);e.lazySizes=n,t.exports&&(t.exports=n)}("undefined"!=typeof window?window:{})},82:(t,e,i)=>{var n,o,r;!function(s,a){a=a.bind(null,s,s.document),t.exports?a(i(7090)):(o=[i(7090)],void 0===(r="function"==typeof(n=a)?n.apply(e,o):n)||(t.exports=r))}(window,(function(t,e,i){"use strict";var n,o,r={};function s(t,i,n){if(!r[t]){var o=e.createElement(i?"link":"script"),s=e.getElementsByTagName("script")[0];i?(o.rel="stylesheet",o.href=t):(o.onload=function(){o.onerror=null,o.onload=null,n()},o.onerror=o.onload,o.src=t),r[t]=!0,r[o.src||o.href]=!0,s.parentNode.insertBefore(o,s)}}e.addEventListener&&(o=/\(|\)|\s|'/,n=function(t,i){var n=e.createElement("img");n.onload=function(){n.onload=null,n.onerror=null,n=null,i()},n.onerror=n.onload,n.src=t,n&&n.complete&&n.onload&&n.onload()},addEventListener("lazybeforeunveil",(function(t){var e,r,a;if(t.detail.instance==i&&!t.defaultPrevented){var h=t.target;if("none"==h.preload&&(h.preload=h.getAttribute("data-preload")||"auto"),null!=h.getAttribute("data-autoplay"))if(h.getAttribute("data-expand")&&!h.autoplay)try{h.play()}catch(t){}else requestAnimationFrame((function(){h.setAttribute("data-expand","-10"),i.aC(h,i.cfg.lazyClass)}));(e=h.getAttribute("data-link"))&&s(e,!0),(e=h.getAttribute("data-script"))&&(t.detail.firesLoad=!0,s(e,null,(function(){t.detail.firesLoad=!1,i.fire(h,"_lazyloaded",{},!0,!0)}))),(e=h.getAttribute("data-require"))&&(i.cfg.requireJs?i.cfg.requireJs([e]):s(e)),(r=h.getAttribute("data-bg"))&&(t.detail.firesLoad=!0,n(r,(function(){h.style.backgroundImage="url("+(o.test(r)?JSON.stringify(r):r)+")",t.detail.firesLoad=!1,i.fire(h,"_lazyloaded",{},!0,!0)}))),(a=h.getAttribute("data-poster"))&&(t.detail.firesLoad=!0,n(a,(function(){h.poster=a,t.detail.firesLoad=!1,i.fire(h,"_lazyloaded",{},!0,!0)})))}}),!1))}))},5243:function(t,e){!function(t){"use strict";var e="1.9.3";function i(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++)for(e in o=arguments[i])t[e]=o[e];return t}var n=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function o(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var r=0;function s(t){return"_leaflet_id"in t||(t._leaflet_id=++r),t._leaflet_id}function a(t,e,i){var n,o,r,s;return s=function(){n=!1,o&&(r.apply(i,o),o=!1)},r=function(){n?o=arguments:(t.apply(i,arguments),setTimeout(s,e),n=!0)},r}function h(t,e,i){var n=e[1],o=e[0],r=n-o;return t===n&&i?t:((t-o)%r+r)%r+o}function l(){return!1}function u(t,e){if(!1===e)return t;var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function c(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function d(t){return c(t).split(/\s+/)}function f(t,e){for(var i in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),e)t.options[i]=e[i];return t.options}function p(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(t,e){return t.replace(m,(function(t,i){var n=e[i];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(e)),n}))}var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function _(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function w(t){var e=+new Date,i=Math.max(0,16-(e-x));return x=e+i,window.setTimeout(t,i)}var P=window.requestAnimationFrame||b("RequestAnimationFrame")||w,T=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function E(t,e,i){if(!i||P!==w)return P.call(window,o(t,e));t.call(e)}function S(t){t&&T.call(window,t)}var k={__proto__:null,extend:i,create:n,bind:o,get lastId(){return r},stamp:s,throttle:a,wrapNum:h,falseFn:l,formatNum:u,trim:c,splitWords:d,setOptions:f,getParamString:p,template:g,isArray:v,indexOf:_,emptyImageUrl:y,requestFn:P,cancelFn:T,requestAnimFrame:E,cancelAnimFrame:S};function C(){}function A(t){if("undefined"!=typeof L&&L&&L.Mixin){t=v(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}C.extend=function(t){var e=function(){f(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=e.__super__=this.prototype,r=n(o);for(var s in r.constructor=e,e.prototype=r,this)Object.prototype.hasOwnProperty.call(this,s)&&"prototype"!==s&&"__super__"!==s&&(e[s]=this[s]);return t.statics&&i(e,t.statics),t.includes&&(A(t.includes),i.apply(null,[r].concat(t.includes))),i(r,t),delete r.statics,delete r.includes,r.options&&(r.options=o.options?n(o.options):{},i(r.options,t.options)),r._initHooks=[],r.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=r._initHooks.length;t<e;t++)r._initHooks[t].call(this)}},e},C.include=function(t){var e=this.prototype.options;return i(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},C.mergeOptions=function(t){return i(this.prototype.options,t),this},C.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var O={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var o=0,r=(t=d(t)).length;o<r;o++)this._on(t[o],e,i);return this},off:function(t,e,i){if(arguments.length)if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else{t=d(t);for(var o=1===arguments.length,r=0,s=t.length;r<s;r++)o?this._off(t[r]):this._off(t[r],e,i)}else delete this._events;return this},_on:function(t,e,i,n){if("function"==typeof e){if(!1===this._listens(t,e,i)){i===this&&(i=void 0);var o={fn:e,ctx:i};n&&(o.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(o)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,i){var n,o,r;if(this._events&&(n=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var s=this._listens(t,e,i);if(!1!==s){var a=n[s];this._firingCount&&(a.fn=l,this._events[t]=n=n.slice()),n.splice(s,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(o=0,r=n.length;o<r;o++)n[o].fn=l;delete this._events[t]}},fire:function(t,e,n){if(!this.listens(t,n))return this;var o=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var s=0,a=r.length;s<a;s++){var h=r[s],l=h.fn;h.once&&this.off(t,l,h.ctx),l.call(h.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,e,i,n){"string"!=typeof t&&console.warn('"string" type argument expected');var o=e;"function"!=typeof e&&(n=!!e,o=void 0,i=void 0);var r=this._events&&this._events[t];if(r&&r.length&&!1!==this._listens(t,o,i))return!0;if(n)for(var s in this._eventParents)if(this._eventParents[s].listens(t,e,i,n))return!0;return!1},_listens:function(t,e,i){if(!this._events)return!1;var n=this._events[t]||[];if(!e)return!!n.length;i===this&&(i=void 0);for(var o=0,r=n.length;o<r;o++)if(n[o].fn===e&&n[o].ctx===i)return o;return!1},once:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e,!0);else for(var o=0,r=(t=d(t)).length;o<r;o++)this._on(t[o],e,i,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[s(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[s(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),!0)}};O.addEventListener=O.on,O.removeEventListener=O.clearAllEventListeners=O.off,O.addOneTimeEventListener=O.once,O.fireEvent=O.fire,O.hasEventListeners=O.listens;var M=C.extend(O);function z(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var I=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function B(t,e,i){return t instanceof z?t:v(t)?new z(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new z(t.x,t.y):new z(t,e,i)}function N(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function j(t,e){return!t||t instanceof N?t:new N(t,e)}function Z(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function D(t,e){return t instanceof Z?t:new Z(t,e)}function R(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function F(t,e,i){return t instanceof R?t:v(t)&&"object"!=typeof t[0]?3===t.length?new R(t[0],t[1],t[2]):2===t.length?new R(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new R(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new R(t,e,i)}z.prototype={clone:function(){return new z(this.x,this.y)},add:function(t){return this.clone()._add(B(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(B(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 z(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new z(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=I(this.x),this.y=I(this.y),this},distanceTo:function(t){var e=(t=B(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=B(t)).x===this.x&&t.y===this.y},contains:function(t){return t=B(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},N.prototype={extend:function(t){var e,i;if(!t)return this;if(t instanceof z||"number"==typeof t[0]||"x"in t)e=i=B(t);else if(e=(t=j(t)).min,i=t.max,!e||!i)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(i.y,this.max.y)):(this.min=e.clone(),this.max=i.clone()),this},getCenter:function(t){return B((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return B(this.min.x,this.max.y)},getTopRight:function(){return B(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof z?B(t):j(t))instanceof N?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=j(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>=e.x&&n.x<=i.x,s=o.y>=e.y&&n.y<=i.y;return r&&s},overlaps:function(t){t=j(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>e.x&&n.x<i.x,s=o.y>e.y&&n.y<i.y;return r&&s},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t,o=Math.abs(e.y-i.y)*t;return j(B(e.x-n,e.y-o),B(i.x+n,i.y+o))},equals:function(t){return!!t&&(t=j(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},Z.prototype={extend:function(t){var e,i,n=this._southWest,o=this._northEast;if(t instanceof R)e=t,i=t;else{if(!(t instanceof Z))return t?this.extend(F(t)||D(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||o?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),o.lat=Math.max(i.lat,o.lat),o.lng=Math.max(i.lng,o.lng)):(this._southWest=new R(e.lat,e.lng),this._northEast=new R(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new Z(new R(e.lat-n,e.lng-o),new R(i.lat+n,i.lng+o))},getCenter:function(){return new R((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new R(this.getNorth(),this.getWest())},getSouthEast:function(){return new R(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof R||"lat"in t?F(t):D(t);var e,i,n=this._southWest,o=this._northEast;return t instanceof Z?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=D(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&n.lat<=i.lat,s=o.lng>=e.lng&&n.lng<=i.lng;return r&&s},overlaps:function(t){t=D(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&n.lat<i.lat,s=o.lng>e.lng&&n.lng<i.lng;return r&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=D(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},R.prototype={equals:function(t,e){return!!t&&(t=F(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+u(this.lat,t)+", "+u(this.lng,t)+")"},distanceTo:function(t){return q.distance(this,F(t))},wrap:function(){return q.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return D([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new R(this.lat,this.lng,this.alt)}};var W,H={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new N(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?h(t.lng,this.wrapLng,!0):t.lng;return new R(this.wrapLat?h(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,o=e.lng-i.lng;if(0===n&&0===o)return t;var r=t.getSouthWest(),s=t.getNorthEast();return new Z(new R(r.lat-n,r.lng-o),new R(s.lat-n,s.lng-o))}},q=i({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,r=Math.sin((e.lat-t.lat)*i/2),s=Math.sin((e.lng-t.lng)*i/2),a=r*r+Math.cos(n)*Math.cos(o)*s*s,h=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*h}}),U=6378137,V={R:U,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=Math.sin(n*e);return new z(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new R((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(W=U*Math.PI,new N([-W,-W],[W,W]))};function Y(t,e,i,n){if(v(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function X(t,e,i,n){return new Y(t,e,i,n)}Y.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return 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 z((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var K=i({},q,{code:"EPSG:3857",projection:V,transformation:function(){var t=.5/(Math.PI*V.R);return X(t,.5,-t,.5)}()}),G=i({},K,{code:"EPSG:900913"});function J(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $(t,e){var i,n,o,r,s,a,h="";for(i=0,o=t.length;i<o;i++){for(n=0,r=(s=t[i]).length;n<r;n++)h+=(n?"L":"M")+(a=s[n]).x+" "+a.y;h+=e?Zt.svg?"z":"x":""}return h||"M0 0"}var Q,tt=document.documentElement.style,et="ActiveXObject"in window,it=et&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),ot=jt("webkit"),rt=jt("android"),st=jt("android 2")||jt("android 3"),at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ht=rt&&jt("Google")&&at<537&&!("AudioNode"in window),lt=!!window.opera,ut=!nt&&jt("chrome"),ct=jt("gecko")&&!ot&&!lt&&!et,dt=!ut&&jt("safari"),ft=jt("phantom"),pt="OTransition"in tt,mt=0===navigator.platform.indexOf("Win"),gt=et&&"transition"in tt,vt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!st,_t="MozPerspective"in tt,yt=!window.L_DISABLE_3D&&(gt||vt||_t)&&!pt&&!ft,bt="undefined"!=typeof orientation||jt("mobile"),xt=bt&&ot,wt=bt&&vt,Pt=!window.PointerEvent&&window.MSPointerEvent,Tt=!(!window.PointerEvent&&!Pt),Lt="ontouchstart"in window||!!window.TouchEvent,Et=!window.L_NO_TOUCH&&(Lt||Tt),St=bt&&lt,kt=bt&&ct,Ct=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,At=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",l,e),window.removeEventListener("testPassiveEventSupport",l,e)}catch(t){}return t}(),Ot=!!document.createElement("canvas").getContext,Mt=!(!document.createElementNS||!J("svg").createSVGRect),zt=!!Mt&&((Q=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(Q.firstChild&&Q.firstChild.namespaceURI)),It=!Mt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),Bt=0===navigator.platform.indexOf("Mac"),Nt=0===navigator.platform.indexOf("Linux");function jt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Zt={ie:et,ielt9:it,edge:nt,webkit:ot,android:rt,android23:st,androidStock:ht,opera:lt,chrome:ut,gecko:ct,safari:dt,phantom:ft,opera12:pt,win:mt,ie3d:gt,webkit3d:vt,gecko3d:_t,any3d:yt,mobile:bt,mobileWebkit:xt,mobileWebkit3d:wt,msPointer:Pt,pointer:Tt,touch:Et,touchNative:Lt,mobileOpera:St,mobileGecko:kt,retina:Ct,passiveEvents:At,canvas:Ot,svg:Mt,vml:It,inlineSvg:zt,mac:Bt,linux:Nt},Dt=Zt.msPointer?"MSPointerDown":"pointerdown",Rt=Zt.msPointer?"MSPointerMove":"pointermove",Ft=Zt.msPointer?"MSPointerUp":"pointerup",Wt=Zt.msPointer?"MSPointerCancel":"pointercancel",Ht={touchstart:Dt,touchmove:Rt,touchend:Ft,touchcancel:Wt},qt={touchstart:te,touchmove:Qt,touchend:Qt,touchcancel:Qt},Ut={},Vt=!1;function Yt(t,e,i){return"touchstart"===e&&$t(),qt[e]?(i=qt[e].bind(this,i),t.addEventListener(Ht[e],i,!1),i):(console.warn("wrong event specified:",e),l)}function Xt(t,e,i){Ht[e]?t.removeEventListener(Ht[e],i,!1):console.warn("wrong event specified:",e)}function Kt(t){Ut[t.pointerId]=t}function Gt(t){Ut[t.pointerId]&&(Ut[t.pointerId]=t)}function Jt(t){delete Ut[t.pointerId]}function $t(){Vt||(document.addEventListener(Dt,Kt,!0),document.addEventListener(Rt,Gt,!0),document.addEventListener(Ft,Jt,!0),document.addEventListener(Wt,Jt,!0),Vt=!0)}function Qt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Ut)e.touches.push(Ut[i]);e.changedTouches=[e],t(e)}}function te(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ke(e),Qt(t,e)}function ee(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return t=n,n.type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}var ie=200;function ne(t,e){t.addEventListener("dblclick",e);var i,n=0;function o(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var o=Je(t);if(!o.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||o.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var r=Date.now();r-n<=ie?2==++i&&e(ee(t)):i=1,n=r}}}else i=t.detail}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function oe(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var re,se,ae,he,le,ue=Se(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ce=Se(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),de="webkitTransition"===ce||"OTransition"===ce?ce+"End":"transitionend";function fe(t){return"string"==typeof t?document.getElementById(t):t}function pe(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function me(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function ge(t){var e=t.parentNode;e&&e.removeChild(t)}function ve(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function _e(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ye(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function be(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=Te(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function xe(t,e){if(void 0!==t.classList)for(var i=d(e),n=0,o=i.length;n<o;n++)t.classList.add(i[n]);else if(!be(t,e)){var r=Te(t);Pe(t,(r?r+" ":"")+e)}}function we(t,e){void 0!==t.classList?t.classList.remove(e):Pe(t,c((" "+Te(t)+" ").replace(" "+e+" "," ")))}function Pe(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function Te(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function Le(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Ee(t,e)}function Ee(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}function Se(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function ke(t,e,i){var n=e||new z(0,0);t.style[ue]=(Zt.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function Ce(t,e){t._leaflet_pos=e,Zt.any3d?ke(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Ae(t){return t._leaflet_pos||new z(0,0)}if("onselectstart"in document)re=function(){De(window,"selectstart",Ke)},se=function(){Fe(window,"selectstart",Ke)};else{var Oe=Se(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);re=function(){if(Oe){var t=document.documentElement.style;ae=t[Oe],t[Oe]="none"}},se=function(){Oe&&(document.documentElement.style[Oe]=ae,ae=void 0)}}function Me(){De(window,"dragstart",Ke)}function ze(){Fe(window,"dragstart",Ke)}function Ie(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Be(),he=t,le=t.style.outline,t.style.outline="none",De(window,"keydown",Be))}function Be(){he&&(he.style.outline=le,he=void 0,le=void 0,Fe(window,"keydown",Be))}function Ne(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function je(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ze={__proto__:null,TRANSFORM:ue,TRANSITION:ce,TRANSITION_END:de,get:fe,getStyle:pe,create:me,remove:ge,empty:ve,toFront:_e,toBack:ye,hasClass:be,addClass:xe,removeClass:we,setClass:Pe,getClass:Te,setOpacity:Le,testProp:Se,setTransform:ke,setPosition:Ce,getPosition:Ae,get disableTextSelection(){return re},get enableTextSelection(){return se},disableImageDrag:Me,enableImageDrag:ze,preventOutline:Ie,restoreOutline:Be,getSizedParentNode:Ne,getScale:je};function De(t,e,i,n){if(e&&"object"==typeof e)for(var o in e)qe(t,o,e[o],i);else for(var r=0,s=(e=d(e)).length;r<s;r++)qe(t,e[r],i,n);return this}var Re="_leaflet_events";function Fe(t,e,i,n){if(1===arguments.length)We(t),delete t[Re];else if(e&&"object"==typeof e)for(var o in e)Ue(t,o,e[o],i);else if(e=d(e),2===arguments.length)We(t,(function(t){return-1!==_(e,t)}));else for(var r=0,s=e.length;r<s;r++)Ue(t,e[r],i,n);return this}function We(t,e){for(var i in t[Re]){var n=i.split(/\d/)[0];e&&!e(n)||Ue(t,n,null,null,i)}}var He={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function qe(t,e,i,n){var o=e+s(i)+(n?"_"+s(n):"");if(t[Re]&&t[Re][o])return this;var r=function(e){return i.call(n||t,e||window.event)},a=r;!Zt.touchNative&&Zt.pointer&&0===e.indexOf("touch")?r=Yt(t,e,r):Zt.touch&&"dblclick"===e?r=ne(t,r):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(He[e]||e,r,!!Zt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(r=function(e){e=e||window.event,ei(t,e)&&a(e)},t.addEventListener(He[e],r,!1)):t.addEventListener(e,a,!1):t.attachEvent("on"+e,r),t[Re]=t[Re]||{},t[Re][o]=r}function Ue(t,e,i,n,o){o=o||e+s(i)+(n?"_"+s(n):"");var r=t[Re]&&t[Re][o];if(!r)return this;!Zt.touchNative&&Zt.pointer&&0===e.indexOf("touch")?Xt(t,e,r):Zt.touch&&"dblclick"===e?oe(t,r):"removeEventListener"in t?t.removeEventListener(He[e]||e,r,!1):t.detachEvent("on"+e,r),t[Re][o]=null}function Ve(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ye(t){return qe(t,"wheel",Ve),this}function Xe(t){return De(t,"mousedown touchstart dblclick contextmenu",Ve),t._leaflet_disable_click=!0,this}function Ke(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ge(t){return Ke(t),Ve(t),this}function Je(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function $e(t,e){if(!e)return new z(t.clientX,t.clientY);var i=je(e),n=i.boundingClientRect;return new z((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Qe=Zt.linux&&Zt.chrome?window.devicePixelRatio:Zt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function ti(t){return Zt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Qe:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function ei(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}var ii={__proto__:null,on:De,off:Fe,stopPropagation:Ve,disableScrollPropagation:Ye,disableClickPropagation:Xe,preventDefault:Ke,stop:Ge,getPropagationPath:Je,getMousePosition:$e,getWheelDelta:ti,isExternalTarget:ei,addListener:De,removeListener:Fe},ni=M.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Ae(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=E(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),Ce(this._el,i),this.fire("step")},_complete:function(){S(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),oi=M.extend({options:{crs:K,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=f(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(F(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ce&&Zt.any3d&&!Zt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),De(this._proxy,de,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(F(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=i({animate:n.animate},n.zoom),n.pan=i({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,n.pan&&n.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Zt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Zt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),r=(t instanceof z?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),s=this.containerPointToLatLng(o.add(r));return this.setView(s,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():D(t);var i=B(e.paddingTopLeft||e.padding||[0,0]),n=B(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var r=n.subtract(i).divideBy(2),s=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o);return{center:this.unproject(s.add(a).divideBy(2).add(r),o),zoom:o}},fitBounds:function(t,e){if(!(t=D(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=B(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new ni,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){xe(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!Zt.any3d)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),o=this.project(t),r=this.getSize(),s=this._zoom;t=F(t),e=void 0===e?s:e;var a=Math.max(r.x,r.y),h=a*this.getZoomScale(s,e),l=o.distanceTo(n)||1,u=1.42,c=u*u;function d(t){var e=(h*h-a*a+(t?-1:1)*c*c*l*l)/(2*(t?h:a)*c*l),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function f(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return f(t)/p(t)}var g=d(0);function v(t){return a*(p(g)/p(g+u*t))}function _(t){return a*(p(g)*m(g+u*t)-f(g))/c}function y(t){return 1-Math.pow(1-t,1.5)}var b=Date.now(),x=(d(1)-g)/u,w=i.duration?1e3*i.duration:1e3*x*.8;function P(){var i=(Date.now()-b)/w,r=y(i)*x;i<=1?(this._flyToFrame=E(P,this),this._move(this.unproject(n.add(o.subtract(n).multiplyBy(_(r)/l)),s),this.getScaleZoom(a/v(r),s),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,i.noMoveStart),P.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return t=D(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,D(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=B((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=B(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),r=this.project(t),s=this.getPixelBounds(),a=j([s.min.add(i),s.max.subtract(n)]),h=a.getSize();if(!a.contains(r)){this._enforcingBounds=!0;var l=r.subtract(a.getCenter()),u=a.extend(r).getSize().subtract(h);o.x+=l.x<0?-u.x:u.x,o.y+=l.y<0?-u.y:u.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),r=e.divideBy(2).round(),s=n.divideBy(2).round(),a=r.subtract(s);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new R(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(o,n.maxZoom):o)}var r={latlng:e,bounds:i,timestamp:t.timestamp};for(var s in t.coords)"number"==typeof t.coords[s]&&(r[s]=t.coords[s]);this.fire("locationfound",r)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ge(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(S(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ge(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=me("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new Z(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=D(t),i=B(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(i),l=j(this.project(a,n),this.project(s,n)).getSize(),u=Zt.any3d?this.options.zoomSnap:1,c=h.x/l.x,d=h.y/l.y,f=e?Math.max(c,d):Math.min(c,d);return n=this.getScaleZoom(f,n),u&&(n=Math.round(n/(u/100))*(u/100),n=e?Math.ceil(n/u)*u:Math.floor(n/u)*u),Math.max(o,Math.min(r,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new N(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(F(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(B(t),e)},layerPointToLatLng:function(t){var e=B(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(F(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(F(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(D(t))},distance:function(t,e){return this.options.crs.distance(F(t),F(e))},containerPointToLayerPoint:function(t){return B(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return B(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(B(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(F(t)))},mouseEventToContainerPoint:function(t){return $e(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=fe(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");De(e,"scroll",this._onScroll,this),this._containerId=s(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Zt.any3d,xe(t,"leaflet-container"+(Zt.touch?" leaflet-touch":"")+(Zt.retina?" leaflet-retina":"")+(Zt.ielt9?" leaflet-oldie":"")+(Zt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=pe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ce(this._mapPane,new z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(xe(t.markerPane,"leaflet-zoom-hide"),xe(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){Ce(this._mapPane,new z(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return S(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Ce(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[s(this._container)]=this;var e=t?Fe:De;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Zt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){S(this._resizeRequest),this._resizeRequest=E((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],o="mouseout"===e||"mouseover"===e,r=t.target||t.srcElement,a=!1;r;){if((i=this._targets[s(r)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){a=!0;break}if(i&&i.listens(e,!0)){if(o&&!ei(r,t))break;if(n.push(i),o)break}if(r===this._container)break;r=r.parentNode}return n.length||a||o||!this.listens(e,!0)||(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var i=t.type;"mousedown"===i&&Ie(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var o=i({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}var r=this._findEventTargets(t,e);if(n){for(var s=[],a=0;a<n.length;a++)n[a].listens(e,!0)&&s.push(n[a]);r=s.concat(r)}if(r.length){"contextmenu"===e&&Ke(t);var h=r[0],l={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var u=h.getLatLng&&(!h._radius||h._radius<=10);l.containerPoint=u?this.latLngToContainerPoint(h.getLatLng()):this.mouseEventToContainerPoint(t),l.layerPoint=this.containerPointToLayerPoint(l.containerPoint),l.latlng=u?h.getLatLng():this.layerPointToLatLng(l.layerPoint)}for(a=0;a<r.length;a++)if(r[a].fire(e,l,!0),l.originalEvent._stopped||!1===r[a].options.bubblingMouseEvents&&-1!==_(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Ae(this._mapPane)||new z(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return j([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),o=this.getSize().divideBy(2),r=new N(n.subtract(o),n.add(o)),s=this._getBoundsOffset(r,i,e);return Math.abs(s.x)<=1&&Math.abs(s.y)<=1?t:this.unproject(n.add(s),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new N(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=j(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),o=n.min.subtract(t.min),r=n.max.subtract(t.max);return new z(this._rebound(o.x,-r.x),this._rebound(o.y,-r.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Zt.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){we(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=me("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=ue,i=this._proxy.style[e];ke(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ge(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ke(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(o)||(E((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,xe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&we(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function ri(t,e){return new oi(t,e)}var si=C.extend({options:{position:"topright"},initialize:function(t){f(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return xe(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ge(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ai=function(t){return new si(t)};oi.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=me("div",e+"control-container",this._container);function n(n,o){var r=e+n+" "+e+o;t[n+o]=me("div",r,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ge(this._controlCorners[t]);ge(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var hi=si.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in f(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return si.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(s(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){xe(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?(xe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):we(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return we(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=me("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Xe(e),Ye(e);var n=this._section=me("section",t+"-list");i&&(this._map.on("click",this.collapse,this),De(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var o=this._layersLink=me("a",t+"-toggle",e);o.href="#",o.title="Layers",o.setAttribute("role","button"),De(o,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Ke(t),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=me("div",t+"-base",n),this._separator=me("div",t+"-separator",n),this._overlaysList=me("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&s(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(o((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ve(this._baseLayersList),ve(this._overlaysList),this._layerControlInputs=[];var t,e,i,n,o=0;for(i=0;i<this._layers.length;i++)n=this._layers[i],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,o+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(s(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+s(this),n),this._layerControlInputs.push(e),e.layerId=s(t.layer),De(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var r=document.createElement("span");return i.appendChild(r),r.appendChild(e),r.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var r=i.length-1;r>=0;r--)t=i[r],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(r=0;r<o.length;r++)this._map.hasLayer(o[r])&&this._map.removeLayer(o[r]);for(r=0;r<n.length;r++)this._map.hasLayer(n[r])||this._map.addLayer(n[r]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),o=i.length-1;o>=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;De(t,"click",Ke),this.expand(),setTimeout((function(){Fe(t,"click",Ke)}))}}),li=function(t,e,i){return new hi(t,e,i)},ui=si.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=me("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var r=me("a",i,n);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),Xe(r),De(r,"click",Ge),De(r,"click",o,this),De(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";we(this._zoomInButton,e),we(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(xe(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(xe(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});oi.mergeOptions({zoomControl:!0}),oi.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new ui,this.addControl(this.zoomControl))}));var ci=function(t){return new ui(t)},di=si.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=me("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=me("div",e,i)),t.imperial&&(this._iScale=me("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,o=3.2808399*t;o>5280?(e=o/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),fi=function(t){return new di(t)},pi='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',mi=si.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Zt.inlineSvg?pi+" ":"")+"Leaflet</a>"},initialize:function(t){f(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=me("div","leaflet-control-attribution"),Xe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}});oi.mergeOptions({attributionControl:!0}),oi.addInitHook((function(){this.options.attributionControl&&(new mi).addTo(this)}));var gi=function(t){return new mi(t)};si.Layers=hi,si.Zoom=ui,si.Scale=di,si.Attribution=mi,ai.layers=li,ai.zoom=ci,ai.scale=fi,ai.attribution=gi;var vi=C.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});vi.addTo=function(t,e){return t.addHandler(e,this),this};var _i,yi={Events:O},bi=Zt.touch?"touchstart mousedown":"mousedown",xi=M.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){f(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(De(this._dragStartTarget,bi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(xi._dragging===this&&this.finishDrag(!0),Fe(this._dragStartTarget,bi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!be(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)xi._dragging===this&&this.finishDrag();else if(!(xi._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(xi._dragging=this,this._preventOutline&&Ie(this._element),Me(),re(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,i=Ne(this._element);this._startPoint=new z(e.clientX,e.clientY),this._startPos=Ae(this._element),this._parentScale=je(i);var n="mousedown"===t.type;De(document,n?"mousemove":"touchmove",this._onMove,this),De(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new z(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,Ke(t),this._moved||(this.fire("dragstart"),this._moved=!0,xe(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),xe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Ce(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){we(document.body,"leaflet-dragging"),this._lastTarget&&(we(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Fe(document,"mousemove touchmove",this._onMove,this),Fe(document,"mouseup touchend touchcancel",this._onUp,this),ze(),se(),this._moved&&this._moving&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,xi._dragging=!1}});function wi(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=Li(t=Si(t,i),i)}function Pi(t,e,i){return Math.sqrt(Mi(t,e,i,!0))}function Ti(t,e,i){return Mi(t,e,i)}function Li(t,e){var i=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,Ei(t,n,e,0,i-1);var o,r=[];for(o=0;o<i;o++)n[o]&&r.push(t[o]);return r}function Ei(t,e,i,n,o){var r,s,a,h=0;for(s=n+1;s<=o-1;s++)(a=Mi(t[s],t[n],t[o],!0))>h&&(r=s,h=a);h>i&&(e[r]=1,Ei(t,e,i,n,r),Ei(t,e,i,r,o))}function Si(t,e){for(var i=[t[0]],n=1,o=0,r=t.length;n<r;n++)Oi(t[n],t[o])>e&&(i.push(t[n]),o=n);return o<r-1&&i.push(t[r-1]),i}function ki(t,e,i,n,o){var r,s,a,h=n?_i:Ai(t,i),l=Ai(e,i);for(_i=l;;){if(!(h|l))return[t,e];if(h&l)return!1;a=Ai(s=Ci(t,e,r=h||l,i,o),i),r===h?(t=s,h=a):(e=s,l=a)}}function Ci(t,e,i,n,o){var r,s,a=e.x-t.x,h=e.y-t.y,l=n.min,u=n.max;return 8&i?(r=t.x+a*(u.y-t.y)/h,s=u.y):4&i?(r=t.x+a*(l.y-t.y)/h,s=l.y):2&i?(r=u.x,s=t.y+h*(u.x-t.x)/a):1&i&&(r=l.x,s=t.y+h*(l.x-t.x)/a),new z(r,s,o)}function Ai(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function Oi(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Mi(t,e,i,n){var o,r=e.x,s=e.y,a=i.x-r,h=i.y-s,l=a*a+h*h;return l>0&&((o=((t.x-r)*a+(t.y-s)*h)/l)>1?(r=i.x,s=i.y):o>0&&(r+=a*o,s+=h*o)),a=t.x-r,h=t.y-s,n?a*a+h*h:new z(r,s)}function zi(t){return!v(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Ii(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),zi(t)}function Bi(t,e){var i,n,o,r,s,a,h,l;if(!t||0===t.length)throw new Error("latlngs not passed");zi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=[];for(var c in t)u.push(e.project(F(t[c])));var d=u.length;for(i=0,n=0;i<d-1;i++)n+=u[i].distanceTo(u[i+1])/2;if(0===n)l=u[0];else for(i=0,r=0;i<d-1;i++)if(s=u[i],a=u[i+1],(r+=o=s.distanceTo(a))>n){h=(r-n)/o,l=[a.x-h*(a.x-s.x),a.y-h*(a.y-s.y)];break}return e.unproject(B(l))}var Ni={__proto__:null,simplify:wi,pointToSegmentDistance:Pi,closestPointOnSegment:Ti,clipSegment:ki,_getEdgeIntersection:Ci,_getBitCode:Ai,_sqClosestPointOnSegment:Mi,isFlat:zi,_flat:Ii,polylineCenter:Bi};function ji(t,e,i){var n,o,r,s,a,h,l,u,c,d=[1,4,2,8];for(o=0,l=t.length;o<l;o++)t[o]._code=Ai(t[o],e);for(s=0;s<4;s++){for(u=d[s],n=[],o=0,r=(l=t.length)-1;o<l;r=o++)a=t[o],h=t[r],a._code&u?h._code&u||((c=Ci(h,a,u,e,i))._code=Ai(c,e),n.push(c)):(h._code&u&&((c=Ci(h,a,u,e,i))._code=Ai(c,e),n.push(c)),n.push(a));t=n}return t}function Zi(t,e){var i,n,o,r,s,a,h,l,u;if(!t||0===t.length)throw new Error("latlngs not passed");zi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=[];for(var d in t)c.push(e.project(F(t[d])));var f=c.length;for(a=h=l=0,i=0,n=f-1;i<f;n=i++)o=c[i],r=c[n],s=o.y*r.x-r.y*o.x,h+=(o.x+r.x)*s,l+=(o.y+r.y)*s,a+=3*s;return u=0===a?c[0]:[h/a,l/a],e.unproject(B(u))}var Di={__proto__:null,clipPolygon:ji,polygonCenter:Zi},Ri={project:function(t){return new z(t.lng,t.lat)},unproject:function(t){return new R(t.y,t.x)},bounds:new N([-180,-90],[180,90])},Fi={R:6378137,R_MINOR:6356752.314245179,bounds:new N([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),s=r*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-s)/(1+s),r/2);return n=-i*Math.log(Math.max(a,1e-10)),new z(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,o=this.R_MINOR/n,r=Math.sqrt(1-o*o),s=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(s),h=0,l=.1;h<15&&Math.abs(l)>1e-7;h++)e=r*Math.sin(a),e=Math.pow((1-e)/(1+e),r/2),a+=l=Math.PI/2-2*Math.atan(s*e)-a;return new R(a*i,t.x*i/n)}},Wi={__proto__:null,LonLat:Ri,Mercator:Fi,SphericalMercator:V},Hi=i({},q,{code:"EPSG:3395",projection:Fi,transformation:function(){var t=.5/(Math.PI*Fi.R);return X(t,.5,-t,.5)}()}),qi=i({},q,{code:"EPSG:4326",projection:Ri,transformation:X(1/180,1,-1/180,.5)}),Ui=i({},H,{projection:Ri,transformation:X(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});H.Earth=q,H.EPSG3395=Hi,H.EPSG3857=K,H.EPSG900913=G,H.EPSG4326=qi,H.Simple=Ui;var Vi=M.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[s(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[s(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});oi.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=s(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=s(t);return this._layers[e]?(this._loaded&&t.onRemove(this),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 s(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?v(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[s(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=s(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Yi=Vi.extend({initialize:function(t,e){var i,n;if(f(this,e),this._layers={},t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return s(t)}}),Xi=function(t,e){return new Yi(t,e)},Ki=Yi.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Yi.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),Yi.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 Z;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Gi=function(t,e){return new Ki(t,e)},Ji=C.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){f(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(n,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var o=B(n),r=B("shadow"===e&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),r&&(t.style.marginLeft=-r.x+"px",t.style.marginTop=-r.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Zt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function $i(t){return new Ji(t)}var Qi=Ji.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof Qi.imagePath&&(Qi.imagePath=this._detectIconPath()),(this.options.imagePath||Qi.imagePath)+Ji.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var n=e.exec(t);return n&&n[i]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=me("div","leaflet-default-icon-path",document.body),e=pe(t,"background-image")||pe(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var i=document.querySelector('link[href$="leaflet.css"]');return i?i.href.substring(0,i.href.length-"leaflet.css".length-1):""}}),tn=vi.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new xi(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),xe(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&we(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=Ae(e._icon),s=i.getPixelBounds(),a=i.getPixelOrigin(),h=j(s.min._subtract(a).add(o),s.max._subtract(a).subtract(o));if(!h.contains(r)){var l=B((Math.max(h.max.x,r.x)-h.max.x)/(s.max.x-h.max.x)-(Math.min(h.min.x,r.x)-h.min.x)/(s.min.x-h.min.x),(Math.max(h.max.y,r.y)-h.max.y)/(s.max.y-h.max.y)-(Math.min(h.min.y,r.y)-h.min.y)/(s.min.y-h.min.y)).multiplyBy(n);i.panBy(l,{animate:!1}),this._draggable._newPos._add(l),this._draggable._startPos._add(l),Ce(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=E(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(S(this._panRequest),this._panRequest=E(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=Ae(e._icon),o=e._map.layerPointToLatLng(n);i&&Ce(i,n),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){S(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),en=Vi.extend({options:{icon:new Qi,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){f(this,e),this._latlng=F(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=F(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),xe(i,e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&De(i,"focus",this._panOnFocus,this);var o=t.icon.createShadow(this._shadow),r=!1;o!==this._shadow&&(this._removeShadow(),r=!0),o&&(xe(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&r&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Fe(this._icon,"focus",this._panOnFocus,this),ge(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ge(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Ce(this._icon,t),this._shadow&&Ce(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(xe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),tn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new tn(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&Le(this._icon,t),this._shadow&&Le(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,i=e.iconSize?B(e.iconSize):B(0,0),n=e.iconAnchor?B(e.iconAnchor):B(0,0);t.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:i.subtract(n)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function nn(t,e){return new en(t,e)}var on=Vi.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return f(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),rn=on.extend({options:{fill:!0,radius:10},initialize:function(t,e){f(this,e),this._latlng=F(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=F(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return on.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new N(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function sn(t,e){return new rn(t,e)}var an=rn.extend({initialize:function(t,e,n){if("number"==typeof e&&(e=i({},n,{radius:e})),f(this,e),this._latlng=F(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 Z(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:on.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===q.distance){var o=Math.PI/180,r=this._mRadius/q.R/o,s=i.project([e+r,t]),a=i.project([e-r,t]),h=s.add(a).divideBy(2),l=i.unproject(h).lat,u=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(l*o))/(Math.cos(e*o)*Math.cos(l*o)))/o;(isNaN(u)||0===u)&&(u=r/Math.cos(Math.PI/180*e)),this._point=h.subtract(i.getPixelOrigin()),this._radius=isNaN(u)?0:h.x-i.project([l,t-u]).x,this._radiusY=h.y-s.y}else{var c=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(c).x}this._updateBounds()}});function hn(t,e,i){return new an(t,e,i)}var ln=on.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){f(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,i,n=1/0,o=null,r=Mi,s=0,a=this._parts.length;s<a;s++)for(var h=this._parts[s],l=1,u=h.length;l<u;l++){var c=r(t,e=h[l-1],i=h[l],!0);c<n&&(n=c,o=r(t,e,i))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Bi(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=F(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new Z,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return zi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=zi(t),n=0,o=t.length;n<o;n++)i?(e[n]=F(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new N;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new z(t,t);this._rawPxBounds&&(this._pxBounds=new N([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,i){var n,o,r=t[0]instanceof R,s=t.length;if(r){for(o=[],n=0;n<s;n++)o[n]=this._map.latLngToLayerPoint(t[n]),i.extend(o[n]);e.push(o)}else for(n=0;n<s;n++)this._projectLatlngs(t[n],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,i,n,o,r,s,a,h=this._parts;for(e=0,n=0,o=this._rings.length;e<o;e++)for(i=0,r=(a=this._rings[e]).length;i<r-1;i++)(s=ki(a[i],a[i+1],t,i,!0))&&(h[n]=h[n]||[],h[n].push(s[0]),s[1]===a[i+1]&&i!==r-2||(h[n].push(s[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=wi(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,o,r,s,a,h=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,r=this._parts.length;i<r;i++)for(n=0,o=(s=(a=this._parts[i]).length)-1;n<s;o=n++)if((e||0!==n)&&Pi(t,a[o],a[n])<=h)return!0;return!1}});function un(t,e){return new ln(t,e)}ln._flat=Ii;var cn=ln.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Zi(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=ln.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof R&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){ln.prototype._setLatLngs.call(this,t),zi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return zi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new z(e,e);if(t=new N(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,r=this._rings.length;o<r;o++)(n=ji(this._rings[o],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,o,r,s,a,h,l=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(r=0,s=(h=(e=this._parts[o]).length)-1;r<h;s=r++)i=e[r],n=e[s],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(l=!l);return l||ln.prototype._containsPoint.call(this,t,!0)}});function dn(t,e){return new cn(t,e)}var fn=Ki.extend({initialize:function(t,e){f(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=v(t)?t:t.features;if(o){for(e=0,i=o.length;e<i;e++)((n=o[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var r=this.options;if(r.filter&&!r.filter(t))return this;var s=pn(t,r);return s?(s.feature=xn(t),s.defaultOptions=s.options,this.resetStyle(s),r.onEachFeature&&r.onEachFeature(t,s),this.addLayer(s)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=i({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function pn(t,e){var i,n,o,r,s="Feature"===t.type?t.geometry:t,a=s?s.coordinates:null,h=[],l=e&&e.pointToLayer,u=e&&e.coordsToLatLng||gn;if(!a&&!s)return null;switch(s.type){case"Point":return mn(l,t,i=u(a),e);case"MultiPoint":for(o=0,r=a.length;o<r;o++)i=u(a[o]),h.push(mn(l,t,i,e));return new Ki(h);case"LineString":case"MultiLineString":return n=vn(a,"LineString"===s.type?0:1,u),new ln(n,e);case"Polygon":case"MultiPolygon":return n=vn(a,"Polygon"===s.type?1:2,u),new cn(n,e);case"GeometryCollection":for(o=0,r=s.geometries.length;o<r;o++){var c=pn({geometry:s.geometries[o],type:"Feature",properties:t.properties},e);c&&h.push(c)}return new Ki(h);case"FeatureCollection":for(o=0,r=s.features.length;o<r;o++){var d=pn(s.features[o],e);d&&h.push(d)}return new Ki(h);default:throw new Error("Invalid GeoJSON object.")}}function mn(t,e,i,n){return t?t(e,i):new en(i,n&&n.markersInheritOptions&&n)}function gn(t){return new R(t[1],t[0],t[2])}function vn(t,e,i){for(var n,o=[],r=0,s=t.length;r<s;r++)n=e?vn(t[r],e-1,i):(i||gn)(t[r]),o.push(n);return o}function _n(t,e){return void 0!==(t=F(t)).alt?[u(t.lng,e),u(t.lat,e),u(t.alt,e)]:[u(t.lng,e),u(t.lat,e)]}function yn(t,e,i,n){for(var o=[],r=0,s=t.length;r<s;r++)o.push(e?yn(t[r],zi(t[r])?0:e-1,i,n):_n(t[r],n));return!e&&i&&o.push(o[0].slice()),o}function bn(t,e){return t.feature?i({},t.feature,{geometry:e}):xn(e)}function xn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var wn={toGeoJSON:function(t){return bn(this,{type:"Point",coordinates:_n(this.getLatLng(),t)})}};function Pn(t,e){return new fn(t,e)}en.include(wn),an.include(wn),rn.include(wn),ln.include({toGeoJSON:function(t){var e=!zi(this._latlngs);return bn(this,{type:(e?"Multi":"")+"LineString",coordinates:yn(this._latlngs,e?1:0,!1,t)})}}),cn.include({toGeoJSON:function(t){var e=!zi(this._latlngs),i=e&&!zi(this._latlngs[0]),n=yn(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),bn(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),Yi.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)})),bn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(i)n.push(o.geometry);else{var r=xn(o);"FeatureCollection"===r.type?n.push.apply(n,r.features):n.push(r)}}})),i?bn(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var Tn=Pn,Ln=Vi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=D(e),f(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(xe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ge(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&&_e(this._image),this},bringToBack:function(){return this._map&&ye(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=D(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:me("img");xe(e,"leaflet-image-layer"),this._zoomAnimated&&xe(e,"leaflet-zoom-animated"),this.options.className&&xe(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onload=o(this.fire,this,"load"),e.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ke(this._image,i,e)},_reset:function(){var t=this._image,e=new N(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();Ce(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){Le(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),En=function(t,e,i){return new Ln(t,e,i)},Sn=Ln.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:me("video");if(xe(e,"leaflet-image-layer"),this._zoomAnimated&&xe(e,"leaflet-zoom-animated"),this.options.className&&xe(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onloadeddata=o(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],r=0;r<i.length;r++)n.push(i[r].src);this._url=i.length>0?n:[e.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var a=me("source");a.src=this._url[s],e.appendChild(a)}}}});function kn(t,e,i){return new Sn(t,e,i)}var Cn=Ln.extend({_initImage:function(){var t=this._image=this._url;xe(t,"leaflet-image-layer"),this._zoomAnimated&&xe(t,"leaflet-zoom-animated"),this.options.className&&xe(t,this.options.className),t.onselectstart=l,t.onmousemove=l}});function An(t,e,i){return new Cn(t,e,i)}var On=Vi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof R||v(t))?(this._latlng=F(t),f(this,e)):(f(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&Le(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&Le(this._container,1),this.bringToFront(),this.options.interactive&&(xe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(Le(this._container,0),this._removeTimeout=setTimeout(o(ge,void 0,this._container),200)):ge(this._container),this.options.interactive&&(we(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=F(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&&_e(this._container),this},bringToBack:function(){return this._map&&ye(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Ki){e=null;var i=this._source._layers;for(var n in i)if(i[n]._map){e=i[n];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=B(this.options.offset),i=this._getAnchor();this._zoomAnimated?Ce(this._container,t.add(i)):e=e.add(t).add(i);var n=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}});oi.include({_initOverlay:function(t,e,i,n){var o=e;return o instanceof t||(o=new t(n).setContent(e)),i&&o.setLatLng(i),o}}),Vi.include({_initOverlay:function(t,e,i,n){var o=i;return o instanceof t?(f(o,n),o._source=this):(o=e&&!n?e:new t(n,this)).setContent(i),o}});var Mn=On.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,On.prototype.openOn.call(this,t)},onAdd:function(t){On.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof on||this._source.on("preclick",Ve))},onRemove:function(t){On.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof on||this._source.off("preclick",Ve))},getEvents:function(){var t=On.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=me("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=me("div",t+"-content-wrapper",e);if(this._contentNode=me("div",t+"-content",i),Xe(e),Ye(this._contentNode),De(e,"contextmenu",Ve),this._tipContainer=me("div",t+"-tip-container",e),this._tip=me("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=me("a",t+"-close-button",e);n.setAttribute("role","button"),n.setAttribute("aria-label","Close popup"),n.href="#close",n.innerHTML='<span aria-hidden="true">&#215;</span>',De(n,"click",(function(t){Ke(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,o=this.options.maxHeight,r="leaflet-popup-scrolled";o&&n>o?(e.height=o+"px",xe(t,r)):we(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();Ce(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(pe(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new z(this._containerLeft,-i-this._containerBottom);o._add(Ae(this._container));var r=t.layerPointToContainerPoint(o),s=B(this.options.autoPanPadding),a=B(this.options.autoPanPaddingTopLeft||s),h=B(this.options.autoPanPaddingBottomRight||s),l=t.getSize(),u=0,c=0;r.x+n+h.x>l.x&&(u=r.x+n-l.x+h.x),r.x-u-a.x<0&&(u=r.x-a.x),r.y+i+h.y>l.y&&(c=r.y+i-l.y+h.y),r.y-c-a.y<0&&(c=r.y-a.y),(u||c)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([u,c]))}},_getAnchor:function(){return B(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),zn=function(t,e){return new Mn(t,e)};oi.mergeOptions({closePopupOnClick:!0}),oi.include({openPopup:function(t,e,i){return this._initOverlay(Mn,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Vi.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Mn,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 Ki||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ge(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof on?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var In=On.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){On.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){On.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=On.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=me("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+s(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,r=n.latLngToContainerPoint(n.getCenter()),s=n.layerPointToContainerPoint(t),a=this.options.direction,h=o.offsetWidth,l=o.offsetHeight,u=B(this.options.offset),c=this._getAnchor();"top"===a?(e=h/2,i=l):"bottom"===a?(e=h/2,i=0):"center"===a?(e=h/2,i=l/2):"right"===a?(e=0,i=l/2):"left"===a?(e=h,i=l/2):s.x<r.x?(a="right",e=0,i=l/2):(a="left",e=h+2*(u.x+c.x),i=l/2),t=t.subtract(B(e,i,!0)).add(u).add(c),we(o,"leaflet-tooltip-right"),we(o,"leaflet-tooltip-left"),we(o,"leaflet-tooltip-top"),we(o,"leaflet-tooltip-bottom"),xe(o,"leaflet-tooltip-"+a),Ce(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Le(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return B(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Bn=function(t,e){return new In(t,e)};oi.include({openTooltip:function(t,e,i){return this._initOverlay(In,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Vi.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(In,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,i.click=this._openTooltip,this._map?this._addFocusListeners():i.add=this._addFocusListeners),this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Ki||(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=t.getElement();e&&(De(e,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),De(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e=t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0))},_moveTooltip:function(t){var e,i,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),n=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(n)}});var Nn=Ji.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(ve(e),e.appendChild(i.html)):e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var n=B(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function jn(t){return new Nn(t)}Ji.Default=Qi;var Zn=Vi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Zt.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){f(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ge(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(_e(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ye(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=a(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof z?t:new z(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,n=-t(-1/0,1/0),o=0,r=i.length;o<r;o++)e=i[o].style.zIndex,i[o]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Zt.ielt9){Le(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var n in this._tiles){var o=this._tiles[n];if(o.current&&o.loaded){var r=Math.min(1,(t-o.loaded)/200);Le(o.el,r),r<1?e=!0:(o.active?i=!0:this._onOpaqueTile(o),o.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(S(this._fadeFrame),this._fadeFrame=E(this._updateOpacity,this))}},_onOpaqueTile:l,_initContainer:function(){this._container||(this._container=me("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(ge(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=me("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),l(n.el.offsetWidth),this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:l,_onRemoveLevel:l,_onCreateLevel:l,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var n=e.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ge(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,n){var o=Math.floor(t/2),r=Math.floor(e/2),s=i-1,a=new z(+o,+r);a.z=+s;var h=this._tileCoordsToKey(a),l=this._tiles[h];return l&&l.active?(l.retain=!0,!0):(l&&l.loaded&&(l.retain=!0),s>n&&this._retainParent(o,r,s,n))},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var r=2*e;r<2*e+2;r++){var s=new z(o,r);s.z=i+1;var a=this._tileCoordsToKey(s),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),i+1<n&&this._retainChildren(o,r,i+1,n))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var o=Math.round(e);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var r=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!r||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();Zt.any3d?ke(t.el,o,n):Ce(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(2*n);return new N(o.subtract(r),o.add(r))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),r=o.getCenter(),s=[],a=this.options.keepBuffer,h=new N(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var l in this._tiles){var u=this._tiles[l].coords;u.z===this._tileZoom&&h.contains(new z(u.x,u.y))||(this._tiles[l].current=!1)}if(Math.abs(i-this._tileZoom)>1)this._setView(t,i);else{for(var c=o.min.y;c<=o.max.y;c++)for(var d=o.min.x;d<=o.max.x;d++){var f=new z(d,c);if(f.z=this._tileZoom,this._isValidTile(f)){var p=this._tiles[this._tileCoordsToKey(f)];p?p.current=!0:s.push(f)}}if(s.sort((function(t,e){return t.distanceTo(r)-e.distanceTo(r)})),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;d<s.length;d++)this._addTile(s[d],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return D(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i);return[e.unproject(n,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new Z(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new z(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(ge(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){xe(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onmousemove=l,Zt.ielt9&&this.options.opacity<1&&Le(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),r=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(r),this.createTile.length<2&&E(o(this._tileReady,this,t,null,r)),Ce(r,i),this._tiles[n]={el:r,coords:t,current:!0},e.appendChild(r),this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(Le(i.el,0),S(this._fadeFrame),this._fadeFrame=E(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(xe(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Zt.ielt9||!this._map._fadeAnimated?E(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new z(this._wrapX?h(t.x,this._wrapX):t.x,this._wrapY?h(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new N(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Dn(t){return new Zn(t)}var Rn=Zn.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=f(this,e)).detectRetina&&Zt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return De(i,"load",o(this._tileOnLoad,this,e,i)),De(i,"error",o(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:Zt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return g(this._url,i(e,this.options))},_tileOnLoad:function(t,e){Zt.ielt9?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,!e.complete)){e.src=y;var i=this._tiles[t].coords;ge(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",y),Zn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return Zn.prototype._tileReady.call(this,t,e,i)}});function Fn(t,e){return new Rn(t,e)}var Wn=Rn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);var r=(e=f(this,e)).detectRetina&&Zt.retina?2:1,s=this.getTileSize();n.width=s.x*r,n.height=s.y*r,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,Rn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=j(i.project(e[0]),i.project(e[1])),o=n.min,r=n.max,s=(this._wmsVersion>=1.3&&this._crs===qi?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),a=Rn.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});function Hn(t,e){return new Wn(t,e)}Rn.WMS=Wn,Fn.wms=Hn;var qn=Vi.extend({options:{padding:.1},initialize:function(t){f(this,t),s(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&xe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));Zt.any3d?ke(this._container,r,i):Ce(this._container,r)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new N(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Un=qn.extend({options:{tolerance:0},getEvents:function(){var t=qn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){qn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");De(t,"mousemove",this._onMouseMove,this),De(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),De(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){S(this._redrawRequest),delete this._ctx,ge(this._container),Fe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){qn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Zt.retina?2:1;Ce(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Zt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){qn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[s(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[s(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,i,n=t.options.dashArray.split(/[, ]+/),o=[];for(i=0;i<n.length;i++){if(e=Number(n[i]),isNaN(e))return;o.push(e)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||E(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new N,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,o,r,s=t._parts,a=s.length,h=this._ctx;if(a){for(h.beginPath(),i=0;i<a;i++){for(n=0,o=s[i].length;n<o;n++)r=s[i][n],h[n?"lineTo":"moveTo"](r.x,r.y);e&&h.closePath()}this._fillStroke(h,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||n)/n;1!==o&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(e.x,e.y/o,n,0,2*Math.PI,!1),1!==o&&i.restore(),this._fillStroke(i,t)}},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(n)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(i=e);this._fireEvent(!!i&&[i],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(we(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,n,r=this._drawFirst;r;r=r.next)(i=r.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(xe(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(o((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;i&&(i.prev=n,n?n.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;n&&(n.next=i,i?i.prev=n:n&&(this._drawLast=n),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function Vn(t){return Zt.canvas?new Un(t):null}var Yn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Xn={_initContainer:function(){this._container=me("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(qn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Yn("shape");xe(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Yn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ge(e),t.removeInteractiveTarget(e),delete this._layers[s(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=Yn("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=v(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=Yn("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){_e(t._container)},_bringToBack:function(t){ye(t._container)}},Kn=Zt.vml?Yn:J,Gn=qn.extend({_initContainer:function(){this._container=Kn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Kn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ge(this._container),Fe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){qn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),Ce(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Kn("path");t.options.className&&xe(e,t.options.className),t.options.interactive&&xe(e,"leaflet-interactive"),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ge(t._path),t.removeInteractiveTarget(t._path),delete this._layers[s(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,$(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){_e(t._path)},_bringToBack:function(t){ye(t._path)}});function Jn(t){return Zt.svg||Zt.vml?new Gn(t):null}Zt.vml&&Gn.include(Xn),oi.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Vn(t)||Jn(t)}});var $n=cn.extend({initialize:function(t,e){cn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=D(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Qn(t,e){return new $n(t,e)}Gn.create=Kn,Gn.pointsToPath=$,fn.geometryToLayer=pn,fn.coordsToLatLng=gn,fn.coordsToLatLngs=vn,fn.latLngToCoords=_n,fn.latLngsToCoords=yn,fn.getFeature=bn,fn.asFeature=xn,oi.mergeOptions({boxZoom:!0});var to=vi.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){De(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Fe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ge(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),re(),Me(),this._startPoint=this._map.mouseEventToContainerPoint(t),De(document,{contextmenu:Ge,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=me("div","leaflet-zoom-box",this._container),xe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new N(this._point,this._startPoint),i=e.getSize();Ce(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(ge(this._box),we(this._container,"leaflet-crosshair")),se(),ze(),Fe(document,{contextmenu:Ge,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new Z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});oi.addInitHook("addHandler","boxZoom",to),oi.mergeOptions({doubleClickZoom:!0});var eo=vi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});oi.addInitHook("addHandler","doubleClickZoom",eo),oi.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var io=vi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new xi(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))}xe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){we(this._map._container,"leaflet-grab"),we(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=D(this._map.options.maxBounds);this._offsetLimit=j(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,r=(n+e+i)%t-e-i,s=Math.abs(o+i)<Math.abs(r+i)?o:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,s=i.easeLinearity,a=o.multiplyBy(s/r),h=a.distanceTo([0,0]),l=Math.min(i.inertiaMaxSpeed,h),u=a.multiplyBy(l/h),c=l/(i.inertiaDeceleration*s),d=u.multiplyBy(-c/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),E((function(){e.panBy(d,{duration:c,easeLinearity:s,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});oi.addInitHook("addHandler","dragging",io),oi.mergeOptions({keyboard:!0,keyboardPanDelta:80});var no=vi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),De(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Fe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(n,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,i,n=this._panKeys={},o=this.keyCodes;for(e=0,i=o.left.length;e<i;e++)n[o.left[e]]=[-1*t,0];for(e=0,i=o.right.length;e<i;e++)n[o.right[e]]=[t,0];for(e=0,i=o.down.length;e<i;e++)n[o.down[e]]=[0,t];for(e=0,i=o.up.length;e<i;e++)n[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,i,n=this._zoomKeys={},o=this.keyCodes;for(e=0,i=o.zoomIn.length;e<i;e++)n[o.zoomIn[e]]=t;for(e=0,i=o.zoomOut.length;e<i;e++)n[o.zoomOut[e]]=-t},_addHooks:function(){De(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Fe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,n=this._map;if(i in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress)if(e=this._panKeys[i],t.shiftKey&&(e=B(e).multiplyBy(3)),n.options.maxBounds&&(e=n._limitOffset(B(e),n.options.maxBounds)),n.options.worldCopyJump){var o=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(e)));n.panTo(o)}else n.panBy(e)}else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Ge(t)}}});oi.addInitHook("addHandler","keyboard",no),oi.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var oo=vi.extend({addHooks:function(){De(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Fe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=ti(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),n),Ge(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,r=i?Math.ceil(o/i)*i:o,s=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0,this._startTime=null,s&&("center"===t.options.scrollWheelZoom?t.setZoom(e+s):t.setZoomAround(this._lastMousePos,e+s))}});oi.addInitHook("addHandler","scrollWheelZoom",oo);var ro=600;oi.mergeOptions({tapHold:Zt.touchNative&&Zt.safari&&Zt.mobile,tapTolerance:15});var so=vi.extend({addHooks:function(){De(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Fe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new z(e.clientX,e.clientY),this._holdTimeout=setTimeout(o((function(){this._cancel(),this._isTapValid()&&(De(document,"touchend",Ke),De(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),ro),De(document,"touchend touchcancel contextmenu",this._cancel,this),De(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Fe(document,"touchend",Ke),Fe(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Fe(document,"touchend touchcancel contextmenu",this._cancel,this),Fe(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new z(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});oi.addInitHook("addHandler","tapHold",so),oi.mergeOptions({touchZoom:Zt.touch,bounceAtZoomLimits:!0});var ao=vi.extend({addHooks:function(){xe(this._map._container,"leaflet-touch-zoom"),De(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){we(this._map._container,"leaflet-touch-zoom"),Fe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),De(document,"touchmove",this._onTouchMove,this),De(document,"touchend touchcancel",this._onTouchEnd,this),Ke(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),r=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(r,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&r>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===r)return}else{var s=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===r&&0===s.x&&0===s.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),S(this._animRequest);var a=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=E(a,this,!0),Ke(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,S(this._animRequest),Fe(document,"touchmove",this._onTouchMove,this),Fe(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});oi.addInitHook("addHandler","touchZoom",ao),oi.BoxZoom=to,oi.DoubleClickZoom=eo,oi.Drag=io,oi.Keyboard=no,oi.ScrollWheelZoom=oo,oi.TapHold=so,oi.TouchZoom=ao,t.Bounds=N,t.Browser=Zt,t.CRS=H,t.Canvas=Un,t.Circle=an,t.CircleMarker=rn,t.Class=C,t.Control=si,t.DivIcon=Nn,t.DivOverlay=On,t.DomEvent=ii,t.DomUtil=Ze,t.Draggable=xi,t.Evented=M,t.FeatureGroup=Ki,t.GeoJSON=fn,t.GridLayer=Zn,t.Handler=vi,t.Icon=Ji,t.ImageOverlay=Ln,t.LatLng=R,t.LatLngBounds=Z,t.Layer=Vi,t.LayerGroup=Yi,t.LineUtil=Ni,t.Map=oi,t.Marker=en,t.Mixin=yi,t.Path=on,t.Point=z,t.PolyUtil=Di,t.Polygon=cn,t.Polyline=ln,t.Popup=Mn,t.PosAnimation=ni,t.Projection=Wi,t.Rectangle=$n,t.Renderer=qn,t.SVG=Gn,t.SVGOverlay=Cn,t.TileLayer=Rn,t.Tooltip=In,t.Transformation=Y,t.Util=k,t.VideoOverlay=Sn,t.bind=o,t.bounds=j,t.canvas=Vn,t.circle=hn,t.circleMarker=sn,t.control=ai,t.divIcon=jn,t.extend=i,t.featureGroup=Gi,t.geoJSON=Pn,t.geoJson=Tn,t.gridLayer=Dn,t.icon=$i,t.imageOverlay=En,t.latLng=F,t.latLngBounds=D,t.layerGroup=Xi,t.map=ri,t.marker=nn,t.point=B,t.polygon=dn,t.polyline=un,t.popup=zn,t.rectangle=Qn,t.setOptions=f,t.stamp=s,t.svg=Jn,t.svgOverlay=An,t.tileLayer=Fn,t.tooltip=Bn,t.transformation=X,t.version=e,t.videoOverlay=kn;var ho=window.L;t.noConflict=function(){return window.L=ho,this},window.L=t}(e)},6509:(t,e,i)=>{"use strict";i.d(e,{Bb:()=>r,PZ:()=>s,UD:()=>n,ub:()=>o});const n=(t,e)=>{const i=t[e];return"function"==typeof i?i:(...t)=>{}},o=(t,e,i)=>{let n=t;return!0===i?n=`${e.identifier}:${t}`:"string"==typeof i&&(n=`${i}:${t}`),n},r=(t,e,i)=>{const{bubbles:n,cancelable:o,composed:r}=e||{bubbles:!0,cancelable:!0,composed:!0};e&&Object.assign(i,{originalEvent:e});return new CustomEvent(t,{bubbles:n,cancelable:o,composed:r,detail:i})};function s(t){const e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth,o=e.top<=i&&e.top+e.height>=0,r=e.left<=n&&e.left+e.width>=0;return o&&r}},1143:(t,e,i)=>{"use strict";i.d(e,{O:()=>r});var n=i(6509);const o={events:["click","touchend"],onlyVisible:!0,dispatchEvent:!0,eventPrefix:!0},r=(t,e={})=>{const{onlyVisible:i,dispatchEvent:r,events:s,eventPrefix:a}=Object.assign({},o,e),h=o=>{const s=(null==e?void 0:e.element)||t.element;if(!(s.contains(o.target)||!(0,n.PZ)(s)&&i)&&(t.clickOutside&&t.clickOutside(o),r)){const e=(0,n.ub)("click:outside",t,a),i=(0,n.Bb)(e,o,{controller:t});s.dispatchEvent(i)}},l=()=>{null==s||s.forEach((t=>{window.addEventListener(t,h,!1)}))},u=()=>{null==s||s.forEach((t=>{window.removeEventListener(t,h,!1)}))},c=t.disconnect.bind(t);return Object.assign(t,{disconnect(){u(),c()}}),l(),[l,u]}},1047:(t,e,i)=>{"use strict";i.d(e,{N:()=>s});var n=i(7931);class o extends n.Qr{}o.debounces=[];const r=(t,e=200)=>{let i=null;return function(){const n=arguments,o=this,r=()=>t.apply(o,n);i&&clearTimeout(i),i=setTimeout(r,e)}},s=(t,e)=>{var i;null===(i=t.constructor.debounces)||void 0===i||i.forEach((i=>{if("string"==typeof i&&(t[i]=r(t[i],null==e?void 0:e.wait)),"object"==typeof i){const{name:n,wait:o}=i;if(!n)return;t[n]=r(t[n],o||(null==e?void 0:e.wait))}}))}},1573:(t,e,i)=>{"use strict";i.d(e,{I:()=>u});var n=i(6509);const o={debug:!1,logger:console,dispatchEvent:!0,eventPrefix:!0};class r{constructor(t,e={}){var i,n,r;this.log=(t,e)=>{this.debug&&(this.logger.groupCollapsed(`%c${this.controller.identifier} %c#${t}`,"color: #3B82F6","color: unset"),this.logger.log({controllerId:this.controllerId,...e}),this.logger.groupEnd())},this.dispatch=(t,e={})=>{if(this.dispatchEvent){const{event:i,...n}=e,o=this.extendedEvent(t,i||null,n);this.targetElement.dispatchEvent(o),this.log("dispatchEvent",{eventName:o.type,...n})}},this.call=(t,e={})=>{const i=this.controller[t];if("function"==typeof i)return i.call(this.controller,e)},this.extendedEvent=(t,e,i)=>{const{bubbles:n,cancelable:o,composed:r}=e||{bubbles:!0,cancelable:!0,composed:!0};e&&Object.assign(i,{originalEvent:e});return new CustomEvent(this.composeEventName(t),{bubbles:n,cancelable:o,composed:r,detail:i})},this.composeEventName=t=>{let e=t;return!0===this.eventPrefix?e=`${this.controller.identifier}:${t}`:"string"==typeof this.eventPrefix&&(e=`${this.eventPrefix}:${t}`),e},this.debug=null!==(n=null!==(i=null==e?void 0:e.debug)&&void 0!==i?i:t.application.stimulusUseDebug)&&void 0!==n?n:o.debug,this.logger=null!==(r=null==e?void 0:e.logger)&&void 0!==r?r:o.logger,this.controller=t,this.controllerId=t.element.id||t.element.dataset.id,this.targetElement=(null==e?void 0:e.element)||t.element;const{dispatchEvent:s,eventPrefix:a}=Object.assign({},o,e);Object.assign(this,{dispatchEvent:s,eventPrefix:a}),this.controllerInitialize=t.initialize.bind(t),this.controllerConnect=t.connect.bind(t),this.controllerDisconnect=t.disconnect.bind(t)}}const s=!0,a=!0,h=!0;class l extends r{constructor(t,e={}){var i,o,r,l;super(t,e),this.dispatch=(t,e={})=>{const{controller:i,targetElement:o,eventPrefix:r,bubbles:s,cancelable:a,log:h}=this;Object.assign(e,{controller:i});const l=(0,n.ub)(t,this.controller,r),u=new CustomEvent(l,{detail:e,bubbles:s,cancelable:a});return o.dispatchEvent(u),h("dispatch",{eventName:l,detail:e,bubbles:s,cancelable:a}),u},this.targetElement=null!==(i=e.element)&&void 0!==i?i:t.element,this.eventPrefix=null!==(o=e.eventPrefix)&&void 0!==o?o:s,this.bubbles=null!==(r=e.bubbles)&&void 0!==r?r:a,this.cancelable=null!==(l=e.cancelable)&&void 0!==l?l:h,this.enhanceController()}enhanceController(){Object.assign(this.controller,{dispatch:this.dispatch})}}const u=(t,e={})=>new l(t,e)},6310:(t,e,i)=>{"use strict";i.d(e,{w:()=>o});var n=i(6509);const o=t=>{const e=e=>{const{innerWidth:i,innerHeight:o}=window,r={height:o||1/0,width:i||1/0,event:e};(0,n.UD)(t,"windowResize").call(t,r)},i=t.disconnect.bind(t),o=()=>{window.addEventListener("resize",e),e()},r=()=>{window.removeEventListener("resize",e)};return Object.assign(t,{disconnect(){r(),i()}}),o(),[o,r]}},7931:(t,e,i)=>{"use strict";i.d(e,{Mx:()=>J,Qr:()=>st});var n=function(){function t(t,e,i){this.eventTarget=t,this.eventName=e,this.eventOptions=i,this.unorderedBindings=new Set}return t.prototype.connect=function(){this.eventTarget.addEventListener(this.eventName,this,this.eventOptions)},t.prototype.disconnect=function(){this.eventTarget.removeEventListener(this.eventName,this,this.eventOptions)},t.prototype.bindingConnected=function(t){this.unorderedBindings.add(t)},t.prototype.bindingDisconnected=function(t){this.unorderedBindings.delete(t)},t.prototype.handleEvent=function(t){for(var e=function(t){if("immediatePropagationStopped"in t)return t;var e=t.stopImmediatePropagation;return Object.assign(t,{immediatePropagationStopped:!1,stopImmediatePropagation:function(){this.immediatePropagationStopped=!0,e.call(this)}})}(t),i=0,n=this.bindings;i<n.length;i++){var o=n[i];if(e.immediatePropagationStopped)break;o.handleEvent(e)}},Object.defineProperty(t.prototype,"bindings",{get:function(){return Array.from(this.unorderedBindings).sort((function(t,e){var i=t.index,n=e.index;return i<n?-1:i>n?1:0}))},enumerable:!1,configurable:!0}),t}();var o=function(){function t(t){this.application=t,this.eventListenerMaps=new Map,this.started=!1}return t.prototype.start=function(){this.started||(this.started=!0,this.eventListeners.forEach((function(t){return t.connect()})))},t.prototype.stop=function(){this.started&&(this.started=!1,this.eventListeners.forEach((function(t){return t.disconnect()})))},Object.defineProperty(t.prototype,"eventListeners",{get:function(){return Array.from(this.eventListenerMaps.values()).reduce((function(t,e){return t.concat(Array.from(e.values()))}),[])},enumerable:!1,configurable:!0}),t.prototype.bindingConnected=function(t){this.fetchEventListenerForBinding(t).bindingConnected(t)},t.prototype.bindingDisconnected=function(t){this.fetchEventListenerForBinding(t).bindingDisconnected(t)},t.prototype.handleError=function(t,e,i){void 0===i&&(i={}),this.application.handleError(t,"Error "+e,i)},t.prototype.fetchEventListenerForBinding=function(t){var e=t.eventTarget,i=t.eventName,n=t.eventOptions;return this.fetchEventListener(e,i,n)},t.prototype.fetchEventListener=function(t,e,i){var n=this.fetchEventListenerMapForEventTarget(t),o=this.cacheKey(e,i),r=n.get(o);return r||(r=this.createEventListener(t,e,i),n.set(o,r)),r},t.prototype.createEventListener=function(t,e,i){var o=new n(t,e,i);return this.started&&o.connect(),o},t.prototype.fetchEventListenerMapForEventTarget=function(t){var e=this.eventListenerMaps.get(t);return e||(e=new Map,this.eventListenerMaps.set(t,e)),e},t.prototype.cacheKey=function(t,e){var i=[t];return Object.keys(e).sort().forEach((function(t){i.push((e[t]?"":"!")+t)})),i.join(":")},t}(),r=/^((.+?)(@(window|document))?->)?(.+?)(#([^:]+?))(:(.+))?$/;function s(t){return"window"==t?window:"document"==t?document:void 0}var a=function(){function t(t,e,i){this.element=t,this.index=e,this.eventTarget=i.eventTarget||t,this.eventName=i.eventName||function(t){var e=t.tagName.toLowerCase();if(e in h)return h[e](t)}(t)||l("missing event name"),this.eventOptions=i.eventOptions||{},this.identifier=i.identifier||l("missing identifier"),this.methodName=i.methodName||l("missing method name")}return t.forToken=function(t){return new this(t.element,t.index,(e=t.content,{eventTarget:s((n=e.trim().match(r)||[])[4]),eventName:n[2],eventOptions:n[9]?(i=n[9],i.split(":").reduce((function(t,e){var i;return Object.assign(t,((i={})[e.replace(/^!/,"")]=!/^!/.test(e),i))}),{})):{},identifier:n[5],methodName:n[7]}));var e,i,n},t.prototype.toString=function(){var t=this.eventTargetName?"@"+this.eventTargetName:"";return""+this.eventName+t+"->"+this.identifier+"#"+this.methodName},Object.defineProperty(t.prototype,"eventTargetName",{get:function(){return(t=this.eventTarget)==window?"window":t==document?"document":void 0;var t},enumerable:!1,configurable:!0}),t}(),h={a:function(t){return"click"},button:function(t){return"click"},form:function(t){return"submit"},input:function(t){return"submit"==t.getAttribute("type")?"click":"input"},select:function(t){return"change"},textarea:function(t){return"input"}};function l(t){throw new Error(t)}var u=function(){function t(t,e){this.context=t,this.action=e}return Object.defineProperty(t.prototype,"index",{get:function(){return this.action.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eventTarget",{get:function(){return this.action.eventTarget},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eventOptions",{get:function(){return this.action.eventOptions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"identifier",{get:function(){return this.context.identifier},enumerable:!1,configurable:!0}),t.prototype.handleEvent=function(t){this.willBeInvokedByEvent(t)&&this.invokeWithEvent(t)},Object.defineProperty(t.prototype,"eventName",{get:function(){return this.action.eventName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"method",{get:function(){var t=this.controller[this.methodName];if("function"==typeof t)return t;throw new Error('Action "'+this.action+'" references undefined method "'+this.methodName+'"')},enumerable:!1,configurable:!0}),t.prototype.invokeWithEvent=function(t){try{this.method.call(this.controller,t)}catch(n){var e=this,i={identifier:e.identifier,controller:e.controller,element:e.element,index:e.index,event:t};this.context.handleError(n,'invoking action "'+this.action+'"',i)}},t.prototype.willBeInvokedByEvent=function(t){var e=t.target;return this.element===e||(e instanceof Element&&this.element.contains(e)?this.scope.containsElement(e):this.scope.containsElement(this.action.element))},Object.defineProperty(t.prototype,"controller",{get:function(){return this.context.controller},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"methodName",{get:function(){return this.action.methodName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.scope.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scope",{get:function(){return this.context.scope},enumerable:!1,configurable:!0}),t}(),c=function(){function t(t,e){var i=this;this.element=t,this.started=!1,this.delegate=e,this.elements=new Set,this.mutationObserver=new MutationObserver((function(t){return i.processMutations(t)}))}return t.prototype.start=function(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,childList:!0,subtree:!0}),this.refresh())},t.prototype.stop=function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)},t.prototype.refresh=function(){if(this.started){for(var t=new Set(this.matchElementsInTree()),e=0,i=Array.from(this.elements);e<i.length;e++){var n=i[e];t.has(n)||this.removeElement(n)}for(var o=0,r=Array.from(t);o<r.length;o++){n=r[o];this.addElement(n)}}},t.prototype.processMutations=function(t){if(this.started)for(var e=0,i=t;e<i.length;e++){var n=i[e];this.processMutation(n)}},t.prototype.processMutation=function(t){"attributes"==t.type?this.processAttributeChange(t.target,t.attributeName):"childList"==t.type&&(this.processRemovedNodes(t.removedNodes),this.processAddedNodes(t.addedNodes))},t.prototype.processAttributeChange=function(t,e){var i=t;this.elements.has(i)?this.delegate.elementAttributeChanged&&this.matchElement(i)?this.delegate.elementAttributeChanged(i,e):this.removeElement(i):this.matchElement(i)&&this.addElement(i)},t.prototype.processRemovedNodes=function(t){for(var e=0,i=Array.from(t);e<i.length;e++){var n=i[e],o=this.elementFromNode(n);o&&this.processTree(o,this.removeElement)}},t.prototype.processAddedNodes=function(t){for(var e=0,i=Array.from(t);e<i.length;e++){var n=i[e],o=this.elementFromNode(n);o&&this.elementIsActive(o)&&this.processTree(o,this.addElement)}},t.prototype.matchElement=function(t){return this.delegate.matchElement(t)},t.prototype.matchElementsInTree=function(t){return void 0===t&&(t=this.element),this.delegate.matchElementsInTree(t)},t.prototype.processTree=function(t,e){for(var i=0,n=this.matchElementsInTree(t);i<n.length;i++){var o=n[i];e.call(this,o)}},t.prototype.elementFromNode=function(t){if(t.nodeType==Node.ELEMENT_NODE)return t},t.prototype.elementIsActive=function(t){return t.isConnected==this.element.isConnected&&this.element.contains(t)},t.prototype.addElement=function(t){this.elements.has(t)||this.elementIsActive(t)&&(this.elements.add(t),this.delegate.elementMatched&&this.delegate.elementMatched(t))},t.prototype.removeElement=function(t){this.elements.has(t)&&(this.elements.delete(t),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(t))},t}(),d=function(){function t(t,e,i){this.attributeName=e,this.delegate=i,this.elementObserver=new c(t,this)}return Object.defineProperty(t.prototype,"element",{get:function(){return this.elementObserver.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selector",{get:function(){return"["+this.attributeName+"]"},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.elementObserver.start()},t.prototype.stop=function(){this.elementObserver.stop()},t.prototype.refresh=function(){this.elementObserver.refresh()},Object.defineProperty(t.prototype,"started",{get:function(){return this.elementObserver.started},enumerable:!1,configurable:!0}),t.prototype.matchElement=function(t){return t.hasAttribute(this.attributeName)},t.prototype.matchElementsInTree=function(t){var e=this.matchElement(t)?[t]:[],i=Array.from(t.querySelectorAll(this.selector));return e.concat(i)},t.prototype.elementMatched=function(t){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(t,this.attributeName)},t.prototype.elementUnmatched=function(t){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(t,this.attributeName)},t.prototype.elementAttributeChanged=function(t,e){this.delegate.elementAttributeValueChanged&&this.attributeName==e&&this.delegate.elementAttributeValueChanged(t,e)},t}(),f=function(){function t(t,e){var i=this;this.element=t,this.delegate=e,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver((function(t){return i.processMutations(t)}))}return t.prototype.start=function(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0}),this.refresh())},t.prototype.stop=function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)},t.prototype.refresh=function(){if(this.started)for(var t=0,e=this.knownAttributeNames;t<e.length;t++){var i=e[t];this.refreshAttribute(i)}},t.prototype.processMutations=function(t){if(this.started)for(var e=0,i=t;e<i.length;e++){var n=i[e];this.processMutation(n)}},t.prototype.processMutation=function(t){var e=t.attributeName;e&&this.refreshAttribute(e)},t.prototype.refreshAttribute=function(t){var e=this.delegate.getStringMapKeyForAttribute(t);if(null!=e){this.stringMap.has(t)||this.stringMapKeyAdded(e,t);var i=this.element.getAttribute(t);this.stringMap.get(t)!=i&&this.stringMapValueChanged(i,e),null==i?(this.stringMap.delete(t),this.stringMapKeyRemoved(e,t)):this.stringMap.set(t,i)}},t.prototype.stringMapKeyAdded=function(t,e){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(t,e)},t.prototype.stringMapValueChanged=function(t,e){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(t,e)},t.prototype.stringMapKeyRemoved=function(t,e){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(t,e)},Object.defineProperty(t.prototype,"knownAttributeNames",{get:function(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentAttributeNames",{get:function(){return Array.from(this.element.attributes).map((function(t){return t.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"recordedAttributeNames",{get:function(){return Array.from(this.stringMap.keys())},enumerable:!1,configurable:!0}),t}();function p(t,e,i){g(t,e).add(i)}function m(t,e,i){g(t,e).delete(i),function(t,e){var i=t.get(e);null!=i&&0==i.size&&t.delete(e)}(t,e)}function g(t,e){var i=t.get(e);return i||(i=new Set,t.set(e,i)),i}var v,_=function(){function t(){this.valuesByKey=new Map}return Object.defineProperty(t.prototype,"values",{get:function(){return Array.from(this.valuesByKey.values()).reduce((function(t,e){return t.concat(Array.from(e))}),[])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return Array.from(this.valuesByKey.values()).reduce((function(t,e){return t+e.size}),0)},enumerable:!1,configurable:!0}),t.prototype.add=function(t,e){p(this.valuesByKey,t,e)},t.prototype.delete=function(t,e){m(this.valuesByKey,t,e)},t.prototype.has=function(t,e){var i=this.valuesByKey.get(t);return null!=i&&i.has(e)},t.prototype.hasKey=function(t){return this.valuesByKey.has(t)},t.prototype.hasValue=function(t){return Array.from(this.valuesByKey.values()).some((function(e){return e.has(t)}))},t.prototype.getValuesForKey=function(t){var e=this.valuesByKey.get(t);return e?Array.from(e):[]},t.prototype.getKeysForValue=function(t){return Array.from(this.valuesByKey).filter((function(e){e[0];return e[1].has(t)})).map((function(t){var e=t[0];t[1];return e}))},t}(),y=(v=function(t,e){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},v(t,e)},function(t,e){function i(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),b=(function(t){function e(){var e=t.call(this)||this;return e.keysByValue=new Map,e}y(e,t),Object.defineProperty(e.prototype,"values",{get:function(){return Array.from(this.keysByValue.keys())},enumerable:!1,configurable:!0}),e.prototype.add=function(e,i){t.prototype.add.call(this,e,i),p(this.keysByValue,i,e)},e.prototype.delete=function(e,i){t.prototype.delete.call(this,e,i),m(this.keysByValue,i,e)},e.prototype.hasValue=function(t){return this.keysByValue.has(t)},e.prototype.getKeysForValue=function(t){var e=this.keysByValue.get(t);return e?Array.from(e):[]}}(_),function(){function t(t,e,i){this.attributeObserver=new d(t,e,this),this.delegate=i,this.tokensByElement=new _}return Object.defineProperty(t.prototype,"started",{get:function(){return this.attributeObserver.started},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.attributeObserver.start()},t.prototype.stop=function(){this.attributeObserver.stop()},t.prototype.refresh=function(){this.attributeObserver.refresh()},Object.defineProperty(t.prototype,"element",{get:function(){return this.attributeObserver.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributeName",{get:function(){return this.attributeObserver.attributeName},enumerable:!1,configurable:!0}),t.prototype.elementMatchedAttribute=function(t){this.tokensMatched(this.readTokensForElement(t))},t.prototype.elementAttributeValueChanged=function(t){var e=this.refreshTokensForElement(t),i=e[0],n=e[1];this.tokensUnmatched(i),this.tokensMatched(n)},t.prototype.elementUnmatchedAttribute=function(t){this.tokensUnmatched(this.tokensByElement.getValuesForKey(t))},t.prototype.tokensMatched=function(t){var e=this;t.forEach((function(t){return e.tokenMatched(t)}))},t.prototype.tokensUnmatched=function(t){var e=this;t.forEach((function(t){return e.tokenUnmatched(t)}))},t.prototype.tokenMatched=function(t){this.delegate.tokenMatched(t),this.tokensByElement.add(t.element,t)},t.prototype.tokenUnmatched=function(t){this.delegate.tokenUnmatched(t),this.tokensByElement.delete(t.element,t)},t.prototype.refreshTokensForElement=function(t){var e,i,n,o=this.tokensByElement.getValuesForKey(t),r=this.readTokensForElement(t),s=(e=o,i=r,n=Math.max(e.length,i.length),Array.from({length:n},(function(t,n){return[e[n],i[n]]}))).findIndex((function(t){return!function(t,e){return t&&e&&t.index==e.index&&t.content==e.content}(t[0],t[1])}));return-1==s?[[],[]]:[o.slice(s),r.slice(s)]},t.prototype.readTokensForElement=function(t){var e=this.attributeName;return function(t,e,i){return t.trim().split(/\s+/).filter((function(t){return t.length})).map((function(t,n){return{element:e,attributeName:i,content:t,index:n}}))}(t.getAttribute(e)||"",t,e)},t}());var x=function(){function t(t,e,i){this.tokenListObserver=new b(t,e,this),this.delegate=i,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}return Object.defineProperty(t.prototype,"started",{get:function(){return this.tokenListObserver.started},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.tokenListObserver.start()},t.prototype.stop=function(){this.tokenListObserver.stop()},t.prototype.refresh=function(){this.tokenListObserver.refresh()},Object.defineProperty(t.prototype,"element",{get:function(){return this.tokenListObserver.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributeName",{get:function(){return this.tokenListObserver.attributeName},enumerable:!1,configurable:!0}),t.prototype.tokenMatched=function(t){var e=t.element,i=this.fetchParseResultForToken(t).value;i&&(this.fetchValuesByTokenForElement(e).set(t,i),this.delegate.elementMatchedValue(e,i))},t.prototype.tokenUnmatched=function(t){var e=t.element,i=this.fetchParseResultForToken(t).value;i&&(this.fetchValuesByTokenForElement(e).delete(t),this.delegate.elementUnmatchedValue(e,i))},t.prototype.fetchParseResultForToken=function(t){var e=this.parseResultsByToken.get(t);return e||(e=this.parseToken(t),this.parseResultsByToken.set(t,e)),e},t.prototype.fetchValuesByTokenForElement=function(t){var e=this.valuesByTokenByElement.get(t);return e||(e=new Map,this.valuesByTokenByElement.set(t,e)),e},t.prototype.parseToken=function(t){try{return{value:this.delegate.parseValueForToken(t)}}catch(t){return{error:t}}},t}(),w=function(){function t(t,e){this.context=t,this.delegate=e,this.bindingsByAction=new Map}return t.prototype.start=function(){this.valueListObserver||(this.valueListObserver=new x(this.element,this.actionAttribute,this),this.valueListObserver.start())},t.prototype.stop=function(){this.valueListObserver&&(this.valueListObserver.stop(),delete this.valueListObserver,this.disconnectAllActions())},Object.defineProperty(t.prototype,"element",{get:function(){return this.context.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"identifier",{get:function(){return this.context.identifier},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionAttribute",{get:function(){return this.schema.actionAttribute},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return this.context.schema},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bindings",{get:function(){return Array.from(this.bindingsByAction.values())},enumerable:!1,configurable:!0}),t.prototype.connectAction=function(t){var e=new u(this.context,t);this.bindingsByAction.set(t,e),this.delegate.bindingConnected(e)},t.prototype.disconnectAction=function(t){var e=this.bindingsByAction.get(t);e&&(this.bindingsByAction.delete(t),this.delegate.bindingDisconnected(e))},t.prototype.disconnectAllActions=function(){var t=this;this.bindings.forEach((function(e){return t.delegate.bindingDisconnected(e)})),this.bindingsByAction.clear()},t.prototype.parseValueForToken=function(t){var e=a.forToken(t);if(e.identifier==this.identifier)return e},t.prototype.elementMatchedValue=function(t,e){this.connectAction(e)},t.prototype.elementUnmatchedValue=function(t,e){this.disconnectAction(e)},t}(),P=function(){function t(t,e){this.context=t,this.receiver=e,this.stringMapObserver=new f(this.element,this),this.valueDescriptorMap=this.controller.valueDescriptorMap,this.invokeChangedCallbacksForDefaultValues()}return t.prototype.start=function(){this.stringMapObserver.start()},t.prototype.stop=function(){this.stringMapObserver.stop()},Object.defineProperty(t.prototype,"element",{get:function(){return this.context.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"controller",{get:function(){return this.context.controller},enumerable:!1,configurable:!0}),t.prototype.getStringMapKeyForAttribute=function(t){if(t in this.valueDescriptorMap)return this.valueDescriptorMap[t].name},t.prototype.stringMapValueChanged=function(t,e){this.invokeChangedCallbackForValue(e)},t.prototype.invokeChangedCallbacksForDefaultValues=function(){for(var t=0,e=this.valueDescriptors;t<e.length;t++){var i=e[t],n=i.key,o=i.name;null==i.defaultValue||this.controller.data.has(n)||this.invokeChangedCallbackForValue(o)}},t.prototype.invokeChangedCallbackForValue=function(t){var e=t+"Changed",i=this.receiver[e];if("function"==typeof i){var n=this.receiver[t];i.call(this.receiver,n)}},Object.defineProperty(t.prototype,"valueDescriptors",{get:function(){var t=this.valueDescriptorMap;return Object.keys(t).map((function(e){return t[e]}))},enumerable:!1,configurable:!0}),t}(),T=function(){function t(t,e){this.module=t,this.scope=e,this.controller=new t.controllerConstructor(this),this.bindingObserver=new w(this,this.dispatcher),this.valueObserver=new P(this,this.controller);try{this.controller.initialize()}catch(t){this.handleError(t,"initializing controller")}}return t.prototype.connect=function(){this.bindingObserver.start(),this.valueObserver.start();try{this.controller.connect()}catch(t){this.handleError(t,"connecting controller")}},t.prototype.disconnect=function(){try{this.controller.disconnect()}catch(t){this.handleError(t,"disconnecting controller")}this.valueObserver.stop(),this.bindingObserver.stop()},Object.defineProperty(t.prototype,"application",{get:function(){return this.module.application},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"identifier",{get:function(){return this.module.identifier},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return this.application.schema},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dispatcher",{get:function(){return this.application.dispatcher},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.scope.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentElement",{get:function(){return this.element.parentElement},enumerable:!1,configurable:!0}),t.prototype.handleError=function(t,e,i){void 0===i&&(i={});var n=this,o=n.identifier,r=n.controller,s=n.element;i=Object.assign({identifier:o,controller:r,element:s},i),this.application.handleError(t,"Error "+e,i)},t}();function L(t,e){var i=S(t);return Array.from(i.reduce((function(t,i){return function(t,e){var i=t[e];return Array.isArray(i)?i:[]}(i,e).forEach((function(e){return t.add(e)})),t}),new Set))}function E(t,e){return S(t).reduce((function(t,i){return t.push.apply(t,function(t,e){var i=t[e];return i?Object.keys(i).map((function(t){return[t,i[t]]})):[]}(i,e)),t}),[])}function S(t){for(var e=[];t;)e.push(t),t=Object.getPrototypeOf(t);return e.reverse()}var k=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),C=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};function A(t){return function(t,e){var i=M(t),n=function(t,e){return O(e).reduce((function(i,n){var o,r=function(t,e,i){var n=Object.getOwnPropertyDescriptor(t,i);if(!n||!("value"in n)){var o=Object.getOwnPropertyDescriptor(e,i).value;return n&&(o.get=n.get||o.get,o.set=n.set||o.set),o}}(t,e,n);return r&&Object.assign(i,((o={})[n]=r,o)),i}),{})}(t.prototype,e);return Object.defineProperties(i.prototype,n),i}(t,function(t){var e=L(t,"blessings");return e.reduce((function(e,i){var n=i(t);for(var o in n){var r=e[o]||{};e[o]=Object.assign(r,n[o])}return e}),{})}(t))}var O="function"==typeof Object.getOwnPropertySymbols?function(t){return C(Object.getOwnPropertyNames(t),Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,M=function(){function t(t){function e(){var i=this&&this instanceof e?this.constructor:void 0;return Reflect.construct(t,arguments,i)}return e.prototype=Object.create(t.prototype,{constructor:{value:e}}),Reflect.setPrototypeOf(e,t),e}try{return(e=t((function(){this.a.call(this)}))).prototype.a=function(){},new e,t}catch(t){return function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e}(t)}}var e}();var z=function(){function t(t,e){this.application=t,this.definition=function(t){return{identifier:t.identifier,controllerConstructor:A(t.controllerConstructor)}}(e),this.contextsByScope=new WeakMap,this.connectedContexts=new Set}return Object.defineProperty(t.prototype,"identifier",{get:function(){return this.definition.identifier},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"controllerConstructor",{get:function(){return this.definition.controllerConstructor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contexts",{get:function(){return Array.from(this.connectedContexts)},enumerable:!1,configurable:!0}),t.prototype.connectContextForScope=function(t){var e=this.fetchContextForScope(t);this.connectedContexts.add(e),e.connect()},t.prototype.disconnectContextForScope=function(t){var e=this.contextsByScope.get(t);e&&(this.connectedContexts.delete(e),e.disconnect())},t.prototype.fetchContextForScope=function(t){var e=this.contextsByScope.get(t);return e||(e=new T(this,t),this.contextsByScope.set(t,e)),e},t}(),I=function(){function t(t){this.scope=t}return t.prototype.has=function(t){return this.data.has(this.getDataKey(t))},t.prototype.get=function(t){return this.data.get(this.getDataKey(t))},t.prototype.getAttributeName=function(t){return this.data.getAttributeNameForKey(this.getDataKey(t))},t.prototype.getDataKey=function(t){return t+"-class"},Object.defineProperty(t.prototype,"data",{get:function(){return this.scope.data},enumerable:!1,configurable:!0}),t}();function B(t){return t.replace(/(?:[_-])([a-z0-9])/g,(function(t,e){return e.toUpperCase()}))}function N(t){return t.charAt(0).toUpperCase()+t.slice(1)}function j(t){return t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))}var Z=function(){function t(t){this.scope=t}return Object.defineProperty(t.prototype,"element",{get:function(){return this.scope.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"identifier",{get:function(){return this.scope.identifier},enumerable:!1,configurable:!0}),t.prototype.get=function(t){var e=this.getAttributeNameForKey(t);return this.element.getAttribute(e)},t.prototype.set=function(t,e){var i=this.getAttributeNameForKey(t);return this.element.setAttribute(i,e),this.get(t)},t.prototype.has=function(t){var e=this.getAttributeNameForKey(t);return this.element.hasAttribute(e)},t.prototype.delete=function(t){if(this.has(t)){var e=this.getAttributeNameForKey(t);return this.element.removeAttribute(e),!0}return!1},t.prototype.getAttributeNameForKey=function(t){return"data-"+this.identifier+"-"+j(t)},t}(),D=function(){function t(t){this.warnedKeysByObject=new WeakMap,this.logger=t}return t.prototype.warn=function(t,e,i){var n=this.warnedKeysByObject.get(t);n||(n=new Set,this.warnedKeysByObject.set(t,n)),n.has(e)||(n.add(e),this.logger.warn(i,t))},t}();function R(t,e){return"["+t+'~="'+e+'"]'}var F=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n},W=function(){function t(t){this.scope=t}return Object.defineProperty(t.prototype,"element",{get:function(){return this.scope.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"identifier",{get:function(){return this.scope.identifier},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return this.scope.schema},enumerable:!1,configurable:!0}),t.prototype.has=function(t){return null!=this.find(t)},t.prototype.find=function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.reduce((function(e,i){return e||t.findTarget(i)||t.findLegacyTarget(i)}),void 0)},t.prototype.findAll=function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.reduce((function(e,i){return F(e,t.findAllTargets(i),t.findAllLegacyTargets(i))}),[])},t.prototype.findTarget=function(t){var e=this.getSelectorForTargetName(t);return this.scope.findElement(e)},t.prototype.findAllTargets=function(t){var e=this.getSelectorForTargetName(t);return this.scope.findAllElements(e)},t.prototype.getSelectorForTargetName=function(t){return R("data-"+this.identifier+"-target",t)},t.prototype.findLegacyTarget=function(t){var e=this.getLegacySelectorForTargetName(t);return this.deprecate(this.scope.findElement(e),t)},t.prototype.findAllLegacyTargets=function(t){var e=this,i=this.getLegacySelectorForTargetName(t);return this.scope.findAllElements(i).map((function(i){return e.deprecate(i,t)}))},t.prototype.getLegacySelectorForTargetName=function(t){var e=this.identifier+"."+t;return R(this.schema.targetAttribute,e)},t.prototype.deprecate=function(t,e){if(t){var i=this.identifier,n=this.schema.targetAttribute;this.guide.warn(t,"target:"+e,"Please replace "+n+'="'+i+"."+e+'" with data-'+i+'-target="'+e+'". The '+n+" attribute is deprecated and will be removed in a future version of Stimulus.")}return t},Object.defineProperty(t.prototype,"guide",{get:function(){return this.scope.guide},enumerable:!1,configurable:!0}),t}(),H=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n},q=function(){function t(t,e,i,n){var o=this;this.targets=new W(this),this.classes=new I(this),this.data=new Z(this),this.containsElement=function(t){return t.closest(o.controllerSelector)===o.element},this.schema=t,this.element=e,this.identifier=i,this.guide=new D(n)}return t.prototype.findElement=function(t){return this.element.matches(t)?this.element:this.queryElements(t).find(this.containsElement)},t.prototype.findAllElements=function(t){return H(this.element.matches(t)?[this.element]:[],this.queryElements(t).filter(this.containsElement))},t.prototype.queryElements=function(t){return Array.from(this.element.querySelectorAll(t))},Object.defineProperty(t.prototype,"controllerSelector",{get:function(){return R(this.schema.controllerAttribute,this.identifier)},enumerable:!1,configurable:!0}),t}(),U=function(){function t(t,e,i){this.element=t,this.schema=e,this.delegate=i,this.valueListObserver=new x(this.element,this.controllerAttribute,this),this.scopesByIdentifierByElement=new WeakMap,this.scopeReferenceCounts=new WeakMap}return t.prototype.start=function(){this.valueListObserver.start()},t.prototype.stop=function(){this.valueListObserver.stop()},Object.defineProperty(t.prototype,"controllerAttribute",{get:function(){return this.schema.controllerAttribute},enumerable:!1,configurable:!0}),t.prototype.parseValueForToken=function(t){var e=t.element,i=t.content,n=this.fetchScopesByIdentifierForElement(e),o=n.get(i);return o||(o=this.delegate.createScopeForElementAndIdentifier(e,i),n.set(i,o)),o},t.prototype.elementMatchedValue=function(t,e){var i=(this.scopeReferenceCounts.get(e)||0)+1;this.scopeReferenceCounts.set(e,i),1==i&&this.delegate.scopeConnected(e)},t.prototype.elementUnmatchedValue=function(t,e){var i=this.scopeReferenceCounts.get(e);i&&(this.scopeReferenceCounts.set(e,i-1),1==i&&this.delegate.scopeDisconnected(e))},t.prototype.fetchScopesByIdentifierForElement=function(t){var e=this.scopesByIdentifierByElement.get(t);return e||(e=new Map,this.scopesByIdentifierByElement.set(t,e)),e},t}(),V=function(){function t(t){this.application=t,this.scopeObserver=new U(this.element,this.schema,this),this.scopesByIdentifier=new _,this.modulesByIdentifier=new Map}return Object.defineProperty(t.prototype,"element",{get:function(){return this.application.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return this.application.schema},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logger",{get:function(){return this.application.logger},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"controllerAttribute",{get:function(){return this.schema.controllerAttribute},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"modules",{get:function(){return Array.from(this.modulesByIdentifier.values())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contexts",{get:function(){return this.modules.reduce((function(t,e){return t.concat(e.contexts)}),[])},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.scopeObserver.start()},t.prototype.stop=function(){this.scopeObserver.stop()},t.prototype.loadDefinition=function(t){this.unloadIdentifier(t.identifier);var e=new z(this.application,t);this.connectModule(e)},t.prototype.unloadIdentifier=function(t){var e=this.modulesByIdentifier.get(t);e&&this.disconnectModule(e)},t.prototype.getContextForElementAndIdentifier=function(t,e){var i=this.modulesByIdentifier.get(e);if(i)return i.contexts.find((function(e){return e.element==t}))},t.prototype.handleError=function(t,e,i){this.application.handleError(t,e,i)},t.prototype.createScopeForElementAndIdentifier=function(t,e){return new q(this.schema,t,e,this.logger)},t.prototype.scopeConnected=function(t){this.scopesByIdentifier.add(t.identifier,t);var e=this.modulesByIdentifier.get(t.identifier);e&&e.connectContextForScope(t)},t.prototype.scopeDisconnected=function(t){this.scopesByIdentifier.delete(t.identifier,t);var e=this.modulesByIdentifier.get(t.identifier);e&&e.disconnectContextForScope(t)},t.prototype.connectModule=function(t){this.modulesByIdentifier.set(t.identifier,t),this.scopesByIdentifier.getValuesForKey(t.identifier).forEach((function(e){return t.connectContextForScope(e)}))},t.prototype.disconnectModule=function(t){this.modulesByIdentifier.delete(t.identifier),this.scopesByIdentifier.getValuesForKey(t.identifier).forEach((function(e){return t.disconnectContextForScope(e)}))},t}(),Y={controllerAttribute:"data-controller",actionAttribute:"data-action",targetAttribute:"data-target"},X=function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{h(n.next(t))}catch(t){r(t)}}function a(t){try{h(n.throw(t))}catch(t){r(t)}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}h((n=n.apply(t,e||[])).next())}))},K=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},G=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n},J=function(){function t(t,e){void 0===t&&(t=document.documentElement),void 0===e&&(e=Y),this.logger=console,this.element=t,this.schema=e,this.dispatcher=new o(this),this.router=new V(this)}return t.start=function(e,i){var n=new t(e,i);return n.start(),n},t.prototype.start=function(){return X(this,void 0,void 0,(function(){return K(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(t){"loading"==document.readyState?document.addEventListener("DOMContentLoaded",t):t()}))];case 1:return t.sent(),this.dispatcher.start(),this.router.start(),[2]}}))}))},t.prototype.stop=function(){this.dispatcher.stop(),this.router.stop()},t.prototype.register=function(t,e){this.load({identifier:t,controllerConstructor:e})},t.prototype.load=function(t){for(var e=this,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var o=Array.isArray(t)?t:G([t],i);o.forEach((function(t){return e.router.loadDefinition(t)}))},t.prototype.unload=function(t){for(var e=this,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var o=Array.isArray(t)?t:G([t],i);o.forEach((function(t){return e.router.unloadIdentifier(t)}))},Object.defineProperty(t.prototype,"controllers",{get:function(){return this.router.contexts.map((function(t){return t.controller}))},enumerable:!1,configurable:!0}),t.prototype.getControllerForElementAndIdentifier=function(t,e){var i=this.router.getContextForElementAndIdentifier(t,e);return i?i.controller:null},t.prototype.handleError=function(t,e,i){this.logger.error("%s\n\n%o\n\n%o",e,t,i)},t}();function $(t){return L(t,"classes").reduce((function(t,e){return Object.assign(t,((n={})[o=(i=e)+"Class"]={get:function(){var t=this.classes;if(t.has(i))return t.get(i);var e=t.getAttributeName(i);throw new Error('Missing attribute "'+e+'"')}},n["has"+N(o)]={get:function(){return this.classes.has(i)}},n));var i,n,o}),{})}function Q(t){return L(t,"targets").reduce((function(t,e){return Object.assign(t,((n={})[(i=e)+"Target"]={get:function(){var t=this.targets.find(i);if(t)return t;throw new Error('Missing target element "'+this.identifier+"."+i+'"')}},n[i+"Targets"]={get:function(){return this.targets.findAll(i)}},n["has"+N(i)+"Target"]={get:function(){return this.targets.has(i)}},n));var i,n}),{})}function tt(t){var e=E(t,"values"),i={valueDescriptorMap:{get:function(){var t=this;return e.reduce((function(e,i){var n,o=et(i),r=t.data.getAttributeNameForKey(o.key);return Object.assign(e,((n={})[r]=o,n))}),{})}}};return e.reduce((function(t,e){return Object.assign(t,function(t){var e,i=et(t),n=i.type,o=i.key,r=i.name,s=nt[n],a=ot[n]||ot.default;return(e={})[r]={get:function(){var t=this.data.get(o);return null!==t?s(t):i.defaultValue},set:function(t){void 0===t?this.data.delete(o):this.data.set(o,a(t))}},e["has"+N(r)]={get:function(){return this.data.has(o)}},e}(e))}),i)}function et(t){var e=t[0],i=function(t){switch(t){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}throw new Error('Unknown value type constant "'+t+'"')}(t[1]);return function(t,e){var i=j(t)+"-value";return{type:e,key:i,name:B(i),get defaultValue(){return it[e]}}}(e,i)}var it={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},nt={array:function(t){var e=JSON.parse(t);if(!Array.isArray(e))throw new TypeError("Expected array");return e},boolean:function(t){return!("0"==t||"false"==t)},number:function(t){return parseFloat(t)},object:function(t){var e=JSON.parse(t);if(null===e||"object"!=typeof e||Array.isArray(e))throw new TypeError("Expected object");return e},string:function(t){return t}},ot={default:function(t){return""+t},array:rt,object:rt};function rt(t){return JSON.stringify(t)}var st=function(){function t(t){this.context=t}return Object.defineProperty(t.prototype,"application",{get:function(){return this.context.application},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scope",{get:function(){return this.context.scope},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.scope.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"identifier",{get:function(){return this.scope.identifier},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"targets",{get:function(){return this.scope.targets},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classes",{get:function(){return this.scope.classes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.scope.data},enumerable:!1,configurable:!0}),t.prototype.initialize=function(){},t.prototype.connect=function(){},t.prototype.disconnect=function(){},t.blessings=[$,Q,tt],t.targets=[],t.values={},t}()},7147:(t,e,i)=>{"use strict";var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n&&n,o="URLSearchParams"in n,r="Symbol"in n&&"iterator"in Symbol,s="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),a="FormData"in n,h="ArrayBuffer"in n;if(h)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&l.indexOf(Object.prototype.toString.call(t))>-1};function c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function d(t){return"string"!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function m(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function g(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function v(t){var e=new FileReader,i=g(e);return e.readAsArrayBuffer(t),i}function _(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:s&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():h&&s&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=_(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):h&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=_(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var t=m(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=m(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(v)}),this.text=function(){var t,e,i,n=m(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,i=g(e),e.readAsText(t),i;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),n=0;n<e.length;n++)i[n]=String.fromCharCode(e[n]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(t,e){t=c(t),e=d(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},p.prototype.delete=function(t){delete this.map[c(t)]},p.prototype.get=function(t){return t=c(t),this.has(t)?this.map[t]:null},p.prototype.has=function(t){return this.map.hasOwnProperty(c(t))},p.prototype.set=function(t,e){this.map[c(t)]=d(e)},p.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},p.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),f(t)},p.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),f(t)},p.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),f(t)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function x(t,e){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,n,o=(e=e||{}).body;if(t instanceof x){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new p(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new p(e.headers)),this.method=(i=e.method||this.method||"GET",n=i.toUpperCase(),b.indexOf(n)>-1?n:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),n=i.shift().replace(/\+/g," "),o=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function P(t,e){if(!(this instanceof P))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new p(e.headers),this.url=e.url||"",this._initBody(t)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},y.call(x.prototype),y.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},P.error=function(){var t=new P(null,{status:0,statusText:""});return t.type="error",t};var T=[301,302,303,307,308];P.redirect=function(t,e){if(-1===T.indexOf(e))throw new RangeError("Invalid status code");return new P(null,{status:e,headers:{location:t}})};var L=n.DOMException;try{new L}catch(t){(L=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack}).prototype=Object.create(Error.prototype),L.prototype.constructor=L}function E(t,e){return new Promise((function(i,o){var r=new x(t,e);if(r.signal&&r.signal.aborted)return o(new L("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}a.onload=function(){var t,e,n={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new p,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var i=t.split(":"),n=i.shift().trim();if(n){var o=i.join(":").trim();e.append(n,o)}})),e)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;setTimeout((function(){i(new P(o,n))}),0)},a.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){o(new L("Aborted","AbortError"))}),0)},a.open(r.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(r.url),!0),"include"===r.credentials?a.withCredentials=!0:"omit"===r.credentials&&(a.withCredentials=!1),"responseType"in a&&(s?a.responseType="blob":h&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof p?r.headers.forEach((function(t,e){a.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){a.setRequestHeader(t,d(e.headers[t]))})),r.signal&&(r.signal.addEventListener("abort",l),a.onreadystatechange=function(){4===a.readyState&&r.signal.removeEventListener("abort",l)}),a.send(void 0===r._bodyInit?null:r._bodyInit)}))}E.polyfill=!0,n.fetch||(n.fetch=E,n.Headers=p,n.Request=x,n.Response=P)}}]);