vendor: 16,832 bytes, lines 1-3
1import{ag as ni,e as ye,dx as Ce,j as xt,H as ri,ex as si,dA as Zt,o as qt,i as _t,z as oi,n as ai,a7 as R,I as ui,x as j,G as li,a3 as zt,aB as hi,h as ft,w as ci,k as _e,ey as St,cT as pe,c as dt,ez as fi,dw as di,cR as me}from"./main-BvDl5GqJ.js";/* empty css */import{a as kt}from"./leaflet-src-BalrW-oj.js";import _i from"./Calendar-B_6WBp_y.js";import pi from"./AccountMultiple-BlPDySrT.js";import{_ as ge}from"./GroupCard.vue_vue_type_script_setup_true_lang-DH-dqH-h.js";import{d as ve}from"./debounce-CbWiH0AC.js";import"./AccountGroup-CE5BsXQT.js";import"./Account-fw0T0KHh.js";import"./debounce-BhR48Vzo.js";import"./toNumber-DqIrybwf.js";var Vt={exports:{}};var Le;function mi(){return Le||(Le=1,(function(t){(function(n,r,o,a){var c=["","webkit","Moz","MS","ms","o"],l=r.createElement("div"),f="function",h=Math.round,_=Math.abs,m=Date.now;function y(e,i,s){return setTimeout(Y(e,s),i)}function g(e,i,s){return Array.isArray(e)?(C(e,s[i],s),!0):!1}function C(e,i,s){var u;if(e)if(e.forEach)e.forEach(i,s);else if(e.length!==a)for(u=0;u<e.length;)i.call(s,e[u],u,e),u++;else for(u in e)e.hasOwnProperty(u)&&i.call(s,e[u],u,e)}function P(e,i,s){var u="DEPRECATED METHOD: "+i+` 2`+s+` AT 3`;return function(){var d=new Error("get-stack-trace"),p=d&&d.stack?d.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",v=n.console&&(n.console.warn||n.console.log);return v&&v.call(n.console,u,p),e.apply(this,arguments)}}var M;typeof Object.assign!="function"?M=function(i){if(i===a||i===null)throw new TypeError("Cannot convert undefined or null to object");for(var s=Object(i),u=1;u<arguments.length;u++){var d=arguments[u];if(d!==a&&d!==null)for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p])}return s}:M=Object.assign;var b=P(function(i,s,u){for(var d=Object.keys(s),p=0;p<d.length;)(!u||u&&i[d[p]]===a)&&(i[d[p]]=s[d[p]]),p++;return i},"extend","Use `assign`."),K=P(function(i,s){return b(i,s,!0)},"merge","Use `assign`.");function I(e,i,s){var u=i.prototype,d;d=e.prototype=Object.create(u),d.constructor=e,d._super=u,s&&M(d,s)}function Y(e,i){return function(){return e.apply(i,arguments)}}function T(e,i){return typeof e==f?e.apply(i&&i[0]||a,i):e}function E(e,i){return e===a?i:e}function N(e,i,s){C(F(i),function(u){e.addEventListener(u,s,!1)})}function D(e,i,s){C(F(i),function(u){e.removeEventListener(u,s,!1)})}function S(e,i){for(;e;){if(e==i)return!0;e=e.parentNode}return!1}function O(e,i){return e.indexOf(i)>-1}function F(e){return e.trim().split(/\s+/g)}function it(e,i,s){if(e.indexOf&&!s)return e.indexOf(i);for(var u=0;u<e.length;){if(s&&e[u][s]==i||!s&&e[u]===i)return u;u++}return-1}function pt(e){return Array.prototype.slice.call(e,0)}function Yt(e,i,s){for(var u=[],d=[],p=0;p<e.length;){var v=e[p][i];it(d,v)<0&&u.push(e[p]),d[p]=v,p++}return u=u.sort(function(A,U){return A[i]>U[i]}),u}function mt(e,i){for(var s,u,d=i[0].toUpperCase()+i.slice(1),p=0;p<c.length;){if(s=c[p],u=s?s+d:i,u in e)return u;p++}return a}var Te=1;function Ee(){return Te++}function Wt(e){var i=e.ownerDocument||e;return i.defaultView||i.parentWindow||n}var Me=/mobile|tablet|ip(ad|hone|od)|android/i,Xt="ontouchstart"in n,Pe=mt(n,"PointerEvent")!==a,Ie=Xt&&Me.test(navigator.userAgent),rt="touch",Se="pen",bt="mouse",ke="kinect",Oe=25,w=1,$=2,k=4,G=8,gt=1,st=2,ot=4,at=8,ut=16,z=st|ot,tt=at|ut,jt=z|tt,Qt=["x","y"],vt=["clientX","clientY"];function B(e,i){var s=this;this.manager=e,this.callback=i,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(u){T(e.options.enable,[e])&&s.handler(u)},this.init()}B.prototype={handler:function(){},init:function(){this.evEl&&N(this.element,this.evEl,this.domHandler),this.evTarget&&N(this.target,this.evTarget,this.domHandler),this.evWin&&N(Wt(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&D(this.element,this.evEl,this.domHandler),this.evTarget&&D(this.target,this.evTarget,this.domHandler),this.evWin&&D(Wt(this.element),this.evWin,this.domHandler)}};function xe(e){var i,s=e.options.inputClass;return s?i=s:Pe?i=At:Ie?i=Ct:Xt?i=wt:i=yt,new i(e,be)}function be(e,i,s){var u=s.pointers.length,d=s.changedPointers.length,p=i&w&&u-d===0,v=i&(k|G)&&u-d===0;s.isFirst=!!p,s.isFinal=!!v,p&&(e.session={}),s.eventType=i,Ne(e,s),e.emit("hammer.input",s),e.recognize(s),e.session.prevInput=s}function Ne(e,i){var s=e.session,u=i.pointers,d=u.length;s.firstInput||(s.firstInput=Jt(i)),d>1&&!s.firstMultiple?s.firstMultiple=Jt(i):d===1&&(s.firstMultiple=!1);var p=s.firstInput,v=s.firstMultiple,x=v?v.center:p.center,A=i.center=Kt(u);i.timeStamp=m(),i.deltaTime=i.timeStamp-p.timeStamp,i.angle=Nt(x,A),i.distance=Lt(x,A),Ae(s,i),i.offsetDirection=te(i.deltaX,i.deltaY);var U=$t(i.deltaTime,i.deltaX,i.deltaY);i.overallVelocityX=U.x,i.overallVelocityY=U.y,i.overallVelocity=_(U.x)>_(U.y)?U.x:U.y,i.scale=v?Re(v.pointers,u):1,i.rotation=v?Ue(v.pointers,u):0,i.maxPointers=s.prevInput?i.pointers.length>s.prevInput.maxPointers?i.pointers.length:s.prevInput.maxPointers:i.pointers.length,we(s,i);var q=e.element;S(i.srcEvent.target,q)&&(q=i.srcEvent.target),i.target=q}function Ae(e,i){var s=i.center,u=e.offsetDelta||{},d=e.prevDelta||{},p=e.prevInput||{};(i.eventType===w||p.eventType===k)&&(d=e.prevDelta={x:p.deltaX||0,y:p.deltaY||0},u=e.offsetDelta={x:s.x,y:s.y}),i.deltaX=d.x+(s.x-u.x),i.deltaY=d.y+(s.y-u.y)}function we(e,i){var s=e.lastInterval||i,u=i.timeStamp-s.timeStamp,d,p,v,x;if(i.eventType!=G&&(u>Oe||s.velocity===a)){var A=i.deltaX-s.deltaX,U=i.deltaY-s.deltaY,q=$t(u,A,U);p=q.x,v=q.y,d=_(q.x)>_(q.y)?q.x:q.y,x=te(A,U),e.lastInterval=i}else d=s.velocity,p=s.velocityX,v=s.velocityY,x=s.direction;i.velocity=d,i.velocityX=p,i.velocityY=v,i.direction=x}function Jt(e){for(var i=[],s=0;s<e.pointers.length;)i[s]={clientX:h(e.pointers[s].clientX),clientY:h(e.pointers[s].clientY)},s++;return{timeStamp:m(),pointers:i,center:Kt(i),deltaX:e.deltaX,deltaY:e.deltaY}}function Kt(e){var i=e.length;if(i===1)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var s=0,u=0,d=0;d<i;)s+=e[d].clientX,u+=e[d].clientY,d++;return{x:h(s/i),y:h(u/i)}}function $t(e,i,s){return{x:i/e||0,y:s/e||0}}function te(e,i){return e===i?gt:_(e)>=_(i)?e<0?st:ot:i<0?at:ut}function Lt(e,i,s){s||(s=Qt);var u=i[s[0]]-e[s[0]],d=i[s[1]]-e[s[1]];return Math.sqrt(u*u+d*d)}function Nt(e,i,s){s||(s=Qt);var u=i[s[0]]-e[s[0]],d=i[s[1]]-e[s[1]];return Math.atan2(d,u)*180/Math.PI}function Ue(e,i){return Nt(i[1],i[0],vt)+Nt(e[1],e[0],vt)}function Re(e,i){return Lt(i[0],i[1],vt)/Lt(e[0],e[1],vt)}var Ge={mousedown:w,mousemove:$,mouseup:k},De="mousedown",Be="mousemove mouseup";function yt(){this.evEl=De,this.evWin=Be,this.pressed=!1,B.apply(this,arguments)}I(yt,B,{handler:function(i){var s=Ge[i.type];s&w&&i.button===0&&(this.pressed=!0),s&$&&i.which!==1&&(s=k),this.pressed&&(s&k&&(this.pressed=!1),this.callback(this.manager,s,{pointers:[i],changedPointers:[i],pointerType:bt,srcEvent:i}))}});var He={pointerdown:w,pointermove:$,pointerup:k,pointercancel:G,pointerout:G},Fe={2:rt,3:Se,4:bt,5:ke},ee="pointerdown",ie="pointermove pointerup pointercancel";n.MSPointerEvent&&!n.PointerEvent&&(ee="MSPointerDown",ie="MSPointerMove MSPointerUp MSPointerCancel");function At(){this.evEl=ee,this.evWin=ie,B.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}I(At,B,{handler:function(i){var s=this.store,u=!1,d=i.type.toLowerCase().replace("ms",""),p=He[d],v=Fe[i.pointerType]||i.pointerType,x=v==rt,A=it(s,i.pointerId,"pointerId");p&w&&(i.button===0||x)?A<0&&(s.push(i),A=s.length-1):p&(k|G)&&(u=!0),!(A<0)&&(s[A]=i,this.callback(this.manager,p,{pointers:s,changedPointers:[i],pointerType:v,srcEvent:i}),u&&s.splice(A,1))}});var Ze={touchstart:w,touchmove:$,touchend:k,touchcancel:G},ze="touchstart",Ve="touchstart touchmove touchend touchcancel";function ne(){this.evTarget=ze,this.evWin=Ve,this.started=!1,B.apply(this,arguments)}I(ne,B,{handler:function(i){var s=Ze[i.type];if(s===w&&(this.started=!0),!!this.started){var u=qe.call(this,i,s);s&(k|G)&&u[0].length-u[1].length===0&&(this.started=!1),this.callback(this.manager,s,{pointers:u[0],changedPointers:u[1],pointerType:rt,srcEvent:i})}}});function qe(e,i){var s=pt(e.touches),u=pt(e.changedTouches);return i&(k|G)&&(s=Yt(s.concat(u),"identifier")),[s,u]}var Ye={touchstart:w,touchmove:$,touchend:k,touchcancel:G},We="touchstart touchmove touchend touchcancel";function Ct(){this.evTarget=We,this.targetIds={},B.apply(this,arguments)}I(Ct,B,{handler:function(i){var s=Ye[i.type],u=Xe.call(this,i,s);u&&this.callback(this.manager,s,{pointers:u[0],changedPointers:u[1],pointerType:rt,srcEvent:i})}});function Xe(e,i){var s=pt(e.touches),u=this.targetIds;if(i&(w|$)&&s.length===1)return u[s[0].identifier]=!0,[s,s];var d,p,v=pt(e.changedTouches),x=[],A=this.target;if(p=s.filter(function(U){return S(U.target,A)}),i===w)for(d=0;d<p.length;)u[p[d].identifier]=!0,d++;for(d=0;d<v.length;)u[v[d].identifier]&&x.push(v[d]),i&(k|G)&&delete u[v[d].identifier],d++;if(x.length)return[Yt(p.concat(x),"identifier"),x]}var je=2500,re=25;function wt(){B.apply(this,arguments);var e=Y(this.handler,this);this.touch=new Ct(this.manager,e),this.mouse=new yt(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}I(wt,B,{handler:function(i,s,u){var d=u.pointerType==rt,p=u.pointerType==bt;if(!(p&&u.sourceCapabilities&&u.sourceCapabilities.firesTouchEvents)){if(d)Qe.call(this,s,u);else if(p&&Je.call(this,u))return;this.callback(i,s,u)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Qe(e,i){e&w?(this.primaryTouch=i.changedPointers[0].identifier,se.call(this,i)):e&(k|G)&&se.call(this,i)}function se(e){var i=e.changedPointers[0];if(i.identifier===this.primaryTouch){var s={x:i.clientX,y:i.clientY};this.lastTouches.push(s);var u=this.lastTouches,d=function(){var p=u.indexOf(s);p>-1&&u.splice(p,1)};setTimeout(d,je)}}function Je(e){for(var i=e.srcEvent.clientX,s=e.srcEvent.clientY,u=0;u<this.lastTouches.length;u++){var d=this.lastTouches[u],p=Math.abs(i-d.x),v=Math.abs(s-d.y);if(p<=re&&v<=re)return!0}return!1}var oe=mt(l.style,"touchAction"),ae=oe!==a,ue="compute",le="auto",Ut="manipulation",et="none",lt="pan-x",ht="pan-y",Tt=$e();function Rt(e,i){this.manager=e,this.set(i)}Rt.prototype={set:function(e){e==ue&&(e=this.compute()),ae&&this.manager.element.style&&Tt[e]&&(this.manager.element.style[oe]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return C(this.manager.recognizers,function(i){T(i.options.enable,[i])&&(e=e.concat(i.getTouchAction()))}),Ke(e.join(" "))},preventDefaults:function(e){var i=e.srcEvent,s=e.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var u=this.actions,d=O(u,et)&&!Tt[et],p=O(u,ht)&&!Tt[ht],v=O(u,lt)&&!Tt[lt];if(d){var x=e.pointers.length===1,A=e.distance<2,U=e.deltaTime<250;if(x&&A&&U)return}if(!(v&&p)&&(d||p&&s&z||v&&s&tt))return this.preventSrc(i)},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function Ke(e){if(O(e,et))return et;var i=O(e,lt),s=O(e,ht);return i&&s?et:i||s?i?lt:ht:O(e,Ut)?Ut:le}function $e(){if(!ae)return!1;var e={},i=n.CSS&&n.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(s){e[s]=i?n.CSS.supports("touch-action",s):!0}),e}var Et=1,H=2,nt=4,Q=8,W=Q,ct=16,V=32;function X(e){this.options=M({},this.defaults,e||{}),this.id=Ee(),this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=Et,this.simultaneous={},this.requireFail=[]}X.prototype={defaults:{},set:function(e){return M(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(g(e,"recognizeWith",this))return this;var i=this.simultaneous;return e=Mt(e,this),i[e.id]||(i[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return g(e,"dropRecognizeWith",this)?this:(e=Mt(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(g(e,"requireFailure",this))return this;var i=this.requireFail;return e=Mt(e,this),it(i,e)===-1&&(i.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(g(e,"dropRequireFailure",this))return this;e=Mt(e,this);var i=it(this.requireFail,e);return i>-1&&this.requireFail.splice(i,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var i=this,s=this.state;function u(d){i.manager.emit(d,e)}s<Q&&u(i.options.event+he(s)),u(i.options.event),e.additionalEvent&&u(e.additionalEvent),s>=Q&&u(i.options.event+he(s))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=V},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(V|Et)))return!1;e++}return!0},recognize:function(e){var i=M({},e);if(!T(this.options.enable,[this,i])){this.reset(),this.state=V;return}this.state&(W|ct|V)&&(this.state=Et),this.state=this.process(i),this.state&(H|nt|Q|ct)&&this.tryEmit(i)},process:function(e){},getTouchAction:function(){},reset:function(){}};function he(e){return e&ct?"cancel":e&Q?"end":e&nt?"move":e&H?"start":""}function ce(e){return e==ut?"down":e==at?"up":e==st?"left":e==ot?"right":""}function Mt(e,i){var s=i.manager;return s?s.get(e):e}function Z(){X.apply(this,arguments)}I(Z,X,{defaults:{pointers:1},attrTest:function(e){var i=this.options.pointers;return i===0||e.pointers.length===i},process:function(e){var i=this.state,s=e.eventType,u=i&(H|nt),d=this.attrTest(e);return u&&(s&G||!d)?i|ct:u||d?s&k?i|Q:i&H?i|nt:H:V}});function Pt(){Z.apply(this,arguments),this.pX=null,this.pY=null}I(Pt,Z,{defaults:{event:"pan",threshold:10,pointers:1,direction:jt},getTouchAction:function(){var e=this.options.direction,i=[];return e&z&&i.push(ht),e&tt&&i.push(lt),i},directionTest:function(e){var i=this.options,s=!0,u=e.distance,d=e.direction,p=e.deltaX,v=e.deltaY;return d&i.direction||(i.direction&z?(d=p===0?gt:p<0?st:ot,s=p!=this.pX,u=Math.abs(e.deltaX)):(d=v===0?gt:v<0?at:ut,s=v!=this.pY,u=Math.abs(e.deltaY))),e.direction=d,s&&u>i.threshold&&d&i.direction},attrTest:function(e){return Z.prototype.attrTest.call(this,e)&&(this.state&H||!(this.state&H)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=ce(e.direction);i&&(e.additionalEvent=this.options.event+i),this._super.emit.call(this,e)}});function Gt(){Z.apply(this,arguments)}I(Gt,Z,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[et]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&H)},emit:function(e){if(e.scale!==1){var i=e.scale<1?"in":"out";e.additionalEvent=this.options.event+i}this._super.emit.call(this,e)}});function Dt(){X.apply(this,arguments),this._timer=null,this._input=null}I(Dt,X,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[le]},process:function(e){var i=this.options,s=e.pointers.length===i.pointers,u=e.distance<i.threshold,d=e.deltaTime>i.time;if(this._input=e,!u||!s||e.eventType&(k|G)&&!d)this.reset();else if(e.eventType&w)this.reset(),this._timer=y(function(){this.state=W,this.tryEmit()},i.time,this);else if(e.eventType&k)return W;return V},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===W&&(e&&e.eventType&k?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=m(),this.manager.emit(this.options.event,this._input)))}});function Bt(){Z.apply(this,arguments)}I(Bt,Z,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[et]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&H)}});function Ht(){Z.apply(this,arguments)}I(Ht,Z,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:z|tt,pointers:1},getTouchAction:function(){return Pt.prototype.getTouchAction.call(this)},attrTest:function(e){var i=this.options.direction,s;return i&(z|tt)?s=e.overallVelocity:i&z?s=e.overallVelocityX:i&tt&&(s=e.overallVelocityY),this._super.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&_(s)>this.options.velocity&&e.eventType&k},emit:function(e){var i=ce(e.offsetDirection);i&&this.manager.emit(this.options.event+i,e),this.manager.emit(this.options.event,e)}});function It(){X.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}I(It,X,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ut]},process:function(e){var i=this.options,s=e.pointers.length===i.pointers,u=e.distance<i.threshold,d=e.deltaTime<i.time;if(this.reset(),e.eventType&w&&this.count===0)return this.failTimeout();
3if(u&&d&&s){if(e.eventType!=k)return this.failTimeout();var p=this.pTime?e.timeStamp-this.pTime<i.interval:!0,v=!this.pCenter||Lt(this.pCenter,e.center)<i.posThreshold;this.pTime=e.timeStamp,this.pCenter=e.center,!v||!p?this.count=1:this.count+=1,this._input=e;var x=this.count%i.taps;if(x===0)return this.hasRequireFailures()?(this._timer=y(function(){this.state=W,this.tryEmit()},i.interval,this),H):W}return V},failTimeout:function(){return this._timer=y(function(){this.state=V},this.options.interval,this),V},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==W&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function J(e,i){return i=i||{},i.recognizers=E(i.recognizers,J.defaults.preset),new Ft(e,i)}J.VERSION="2.0.7",J.defaults={domEvents:!1,touchAction:ue,enable:!0,inputTarget:null,inputClass:null,preset:[[Bt,{enable:!1}],[Gt,{enable:!1},["rotate"]],[Ht,{direction:z}],[Pt,{direction:z},["swipe"]],[It],[It,{event:"doubletap",taps:2},["tap"]],[Dt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var ti=1,fe=2;function Ft(e,i){this.options=M({},J.defaults,i||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=xe(this),this.touchAction=new Rt(this,this.options.touchAction),de(this,!0),C(this.options.recognizers,function(s){var u=this.add(new s[0](s[1]));s[2]&&u.recognizeWith(s[2]),s[3]&&u.requireFailure(s[3])},this)}Ft.prototype={set:function(e){return M(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?fe:ti},recognize:function(e){var i=this.session;if(!i.stopped){this.touchAction.preventDefaults(e);var s,u=this.recognizers,d=i.curRecognizer;(!d||d&&d.state&W)&&(d=i.curRecognizer=null);for(var p=0;p<u.length;)s=u[p],i.stopped!==fe&&(!d||s==d||s.canRecognizeWith(d))?s.recognize(e):s.reset(),!d&&s.state&(H|nt|Q)&&(d=i.curRecognizer=s),p++}},get:function(e){if(e instanceof X)return e;for(var i=this.recognizers,s=0;s<i.length;s++)if(i[s].options.event==e)return i[s];return null},add:function(e){if(g(e,"add",this))return this;var i=this.get(e.options.event);return i&&this.remove(i),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(g(e,"remove",this))return this;if(e=this.get(e),e){var i=this.recognizers,s=it(i,e);s!==-1&&(i.splice(s,1),this.touchAction.update())}return this},on:function(e,i){if(e!==a&&i!==a){var s=this.handlers;return C(F(e),function(u){s[u]=s[u]||[],s[u].push(i)}),this}},off:function(e,i){if(e!==a){var s=this.handlers;return C(F(e),function(u){i?s[u]&&s[u].splice(it(s[u],i),1):delete s[u]}),this}},emit:function(e,i){this.options.domEvents&&ei(e,i);var s=this.handlers[e]&&this.handlers[e].slice();if(!(!s||!s.length)){i.type=e,i.preventDefault=function(){i.srcEvent.preventDefault()};for(var u=0;u<s.length;)s[u](i),u++}},destroy:function(){this.element&&de(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function de(e,i){var s=e.element;if(s.style){var u;C(e.options.cssProps,function(d,p){u=mt(s.style,p),i?(e.oldCssProps[u]=s.style[u],s.style[u]=d):s.style[u]=e.oldCssProps[u]||""}),i||(e.oldCssProps={})}}function ei(e,i){var s=r.createEvent("Event");s.initEvent(e,!0,!0),s.gesture=i,i.target.dispatchEvent(s)}M(J,{INPUT_START:w,INPUT_MOVE:$,INPUT_END:k,INPUT_CANCEL:G,STATE_POSSIBLE:Et,STATE_BEGAN:H,STATE_CHANGED:nt,STATE_ENDED:Q,STATE_RECOGNIZED:W,STATE_CANCELLED:ct,STATE_FAILED:V,DIRECTION_NONE:gt,DIRECTION_LEFT:st,DIRECTION_RIGHT:ot,DIRECTION_UP:at,DIRECTION_DOWN:ut,DIRECTION_HORIZONTAL:z,DIRECTION_VERTICAL:tt,DIRECTION_ALL:jt,Manager:Ft,Input:B,TouchAction:Rt,TouchInput:Ct,MouseInput:yt,PointerEventInput:At,TouchMouseInput:wt,SingleTouchInput:ne,Recognizer:X,AttrRecognizer:Z,Tap:It,Pan:Pt,Swipe:Ht,Pinch:Gt,Rotate:Bt,Press:Dt,on:N,off:D,each:C,merge:K,extend:b,assign:M,inherit:I,bindFn:Y,prefixed:mt});var ii=typeof n<"u"?n:typeof self<"u"?self:{};ii.Hammer=J,t.exports?t.exports=J:n[o]=J})(window,document,"Hammer")})(Vt)),Vt.exports}var gi=mi();const Ot=ni(gi),vi=ye({__name:"VueBottomSheet",props:{overlay:{type:Boolean,default:!0},maxWidth:{default:"640px"},maxHeight:{default:"95%"},clickToClose:{type:Boolean,default:!0},effect:{default:"fx-default"},rounded:{type:Boolean,default:!0},swipeAble:{type:Boolean,default:!0},isFullScreen:{type:Boolean,default:!1},overlayColor:{default:"#0000004D"},backgroundScrollable:{type:Boolean,default:!1},backgroundClickable:{type:Boolean,default:!1}},emits:["closed","opened"],setup(t,{expose:n,emit:r}){const o=R(!1),a=R(!1),c=R("auto"),l=ui({pan:null,content:null}),f=R(0),h=R(0),_=R(0),m=R(!1),y=R(0),g=t,C=r,P=R(),M=R(),b=R(),K=()=>{const S=/iPhone/.test(navigator.userAgent)&&!window.MSStream,O=window.screen.width/window.screen.height;return S&&O.toFixed(3)==="0.462"},I=(S,O)=>{if(g.swipeAble){const F=-S.deltaY;O==="content"&&S.type==="panup"||O==="content"&&S.type==="pandown"&&f.value>0?P.value.scrollTop=f.value+F:(S.type==="panup"||S.type==="pandown")&&(m.value=!0,S.deltaY>0&&(h.value=F)),S.isFinal&&(f.value=P.value.scrollTop,m.value=!1,h.value<-30?(a.value=!1,h.value=-_.value-y.value,document.body.style.overflow="",C("closed")):h.value=0)}},Y=()=>new Promise(S=>{if(c.value="auto",y.value=K()?20:0,_.value=M.value.clientHeight,c.value=`${_.value-b.value.clientHeight}px`,M.value.style.maxHeight=g.maxHeight,h.value=g.effect==="fx-slide-from-right"||g.effect==="fx-slide-from-left"?0:-_.value-y.value,!o.value){o.value=!0;const O={recognizers:[[Ot.Pan,{direction:Ot.DIRECTION_VERTICAL}]]};l.pan=new Ot(b.value,O),l.pan?.on("panstart panup pandown panend",F=>{I(F,"pan")}),l.content=new Ot(P.value,O),l.content?.on("panstart panup pandown panend",F=>{I(F,"content")})}setTimeout(()=>{S(void 0)},100)}),T=async()=>{console.debug("open vue bottom sheet"),await Y(),a.value=!0,h.value=0,g.backgroundScrollable||(document.body.style.overflow="hidden"),C("opened")},E=()=>{a.value=!1,h.value=g.effect==="fx-slide-from-right"||g.effect==="fx-slide-from-left"?0:-_.value-y.value,document.body.style.overflow="",C("closed")},N=S=>{g.clickToClose&&(S.target.classList.contains("bottom-sheet__backdrop")||S.target.classList.contains("bottom-sheet"))&&E()};Ce(()=>{l?.pan?.destroy(),l?.content?.destroy()});const D={mousedown:N,touchstart:N};return n({open:T,close:E}),(S,O)=>(j(),xt("div",ri({class:["bottom-sheet",{opened:a.value,closed:a.value===!1,moving:m.value}]},si(D,!0),{ref:"bottomSheet",style:{"pointer-events":t.backgroundClickable&&t.clickToClose===!1?"none":"all"}}),[t.overlay?(j(),xt("div",{key:0,class:"bottom-sheet__backdrop",style:Zt({background:t.overlayColor})},null,4)):qt("",!0),_t("div",{style:Zt([{bottom:h.value+"px",maxWidth:t.maxWidth,maxHeight:t.maxHeight},{height:t.isFullScreen?"100%":"auto"},{"pointer-events":"all"}]),class:ai(["bottom-sheet__card bg-white dark:bg-gray-800",{stripe:y.value,square:!t.rounded},t.effect]),ref_key:"bottomSheetCard",ref:M},[_t("div",{class:"bottom-sheet__pan",ref_key:"pan",ref:b},[...O[0]||(O[0]=[_t("div",{class:"bottom-sheet__bar bg-gray-700 dark:bg-gray-400"},null,-1)])],512),_t("div",{style:Zt({height:c.value}),ref_key:"bottomSheetCardContent",ref:P,class:"bottom-sheet__content"},[oi(S.$slots,"default",{},void 0,!0)],4)],6)],16))}}),Li=li(vi,[["__scopeId","data-v-77e683b2"]]);var yi=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var n=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,n?this._withAnimation:this._noAnimation),this._markerCluster
3=n?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var n=t,r=this._zoom;if(t.__parent)for(;n.__parent._zoom>=r;)n=n.__parent;return this._currentShownBounds.contains(n.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,n):this._animationAddLayerNonAnimated(t,n)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):t.getLatLng?this._map?t.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t}),this):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t}),this)},addLayers:function(t,n){if(!L.Util.isArray(t))return this.addLayer(t);var r=this._featureGroup,o=this._nonPointGroup,a=this.options.chunkedLoading,c=this.options.chunkInterval,l=this.options.chunkProgress,f=t.length,h=0,_=!0,m;if(this._map){var y=new Date().getTime(),g=L.bind(function(){var P=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();h<f;h++){if(a&&h%200===0){var M=new Date().getTime()-P;if(M>c)break}if(m=t[h],m instanceof L.LayerGroup){_&&(t=t.slice(),_=!1),this._extractNonGroupLayers(m,t),f=t.length;continue}if(!m.getLatLng){o.addLayer(m),n||this.fire("layeradd",{layer:m});continue}if(!this.hasLayer(m)&&(this._addLayer(m,this._maxZoom),n||this.fire("layeradd",{layer:m}),m.__parent&&m.__parent.getChildCount()===2)){var b=m.__parent.getAllChildMarkers(),K=b[0]===m?b[1]:b[0];r.removeLayer(K)}}l&&l(h,f,new Date().getTime()-y),h===f?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(g,this.options.chunkDelay)},this);g()}else for(var C=this._needsClustering;h<f;h++){if(m=t[h],m instanceof L.LayerGroup){_&&(t=t.slice(),_=!1),this._extractNonGroupLayers(m,t),f=t.length;continue}if(!m.getLatLng){o.addLayer(m);continue}this.hasLayer(m)||C.push(m)}return this},removeLayers:function(t){var n,r,o=t.length,a=this._featureGroup,c=this._nonPointGroup,l=!0;if(!this._map){for(n=0;n<o;n++){if(r=t[n],r instanceof L.LayerGroup){l&&(t=t.slice(),l=!1),this._extractNonGroupLayers(r,t),o=t.length;continue}this._arraySplice(this._needsClustering,r),c.removeLayer(r),this.hasLayer(r)&&this._needsRemoving.push({layer:r,latlng:r._latlng}),this.fire("layerremove",{layer:r})}return this}if(this._unspiderfy){this._unspiderfy();var f=t.slice(),h=o;for(n=0;n<h;n++){if(r=f[n],r instanceof L.LayerGroup){this._extractNonGroupLayers(r,f),h=f.length;continue}this._unspiderfyLayer(r)}}for(n=0;n<o;n++){if(r=t[n],r instanceof L.LayerGroup){l&&(t=t.slice(),l=!1),this._extractNonGroupLayers(r,t),o=t.length;continue}if(!r.__parent){c.removeLayer(r),this.fire("layerremove",{layer:r});continue}this._removeLayer(r,!0,!0),this.fire("layerremove",{layer:r}),a.hasLayer(r)&&(a.removeLayer(r),r.clusterShow&&r.clusterShow())}return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var n=this._needsClustering.length-1;n>=0;n--)t.extend(this._needsClustering[n].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,n){var r=this._needsClustering.slice(),o=this._needsRemoving,a,c,l;
3for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(r),c=r.length-1;c>=0;c--){for(a=!0,l=o.length-1;l>=0;l--)if(o[l].layer===r[c]){a=!1;break}a&&t.call(n,r[c])}this._nonPointGroup.eachLayer(t,n)},getLayers:function(){var t=[];return this.eachLayer(function(n){t.push(n)}),t},getLayer:function(t){var n=null;return t=parseInt(t,10),this.eachLayer(function(r){L.stamp(r)===t&&(n=r)}),n},hasLayer:function(t){if(!t)return!1;var n,r=this._needsClustering;for(n=r.length-1;n>=0;n--)if(r[n]===t)return!0;for(r=this._needsRemoving,n=r.length-1;n>=0;n--)if(r[n].layer===t)return!1;return!!(t.__parent&&t.__parent._group===this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,n){var r=this._map;typeof n!="function"&&(n=function(){});var o=function(){(r.hasLayer(t)||r.hasLayer(t.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",o,this),this.off("animationend",o,this),r.hasLayer(t)?n():t.__parent._icon&&(this.once("spiderfied",n,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?n():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",o,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",o,this),this.on("animationend",o,this),t.__parent.zoomToBounds())},onAdd:function(t){this._map=t;var n,r,o;if(!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,n=0,r=this._needsRemoving.length;n<r;n++)o=this._needsRemoving[n],o.newlatlng=o.layer._latlng,o.layer._latlng=o.latlng;for(n=0,r=this._needsRemoving.length;n<r;n++)o=this._needsRemoving[n],this._removeLayer(o.layer,!0),o.layer._latlng=o.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),r=this._needsClustering,this._needsClustering=[],this.addLayers(r,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var n=t;n&&!n._icon;)n=n.__parent;return n||null},_arraySplice:function(t,n){for(var r=t.length-1;r>=0;r--)if(t[r]===n)return t.splice(r,1),!0},_removeFromGridUnclustered:function(t,n){for(var r=this._map,o=this._gridUnclustered,a=Math.floor(this._map.getMinZoom());n>=a&&o[n].removeObject(t,r.project(t.getLatLng(),n));n--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var n=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),n&&t.target.openPopup()}},_moveChild:function(t,n,r){t._latlng=n,this.removeLayer(t),t._latlng=r,this.addLayer(t)},_childMarkerDragEnd:function(t){var n=t.target.__dragStart;delete t.target.__dragStart,n&&this._moveChild(t.target,n,t.target._latlng)},_removeLayer:function(t,n,r){var o=this._gridClusters,a=this._gridUnclustered,c=this._featureGroup,l=this._map,f=Math.floor(this._map.getMinZoom());n&&this._removeFromGridUnclustered(t,this._maxZoom);var h=t.__parent,_=h._markers,m;for(this._arraySplice(_,t);h&&(h._childCount--,h._boundsNeedUpdate=!0,!(h._zoom<f));)n&&h._childCount<=1?(m=h._markers[0]===t?h._markers[1]:h._markers[0],o[h._zoom].removeObject(h,l.project(h._cLatLng,h._zoom)),a[h._zoom].addObject(m,l.project(m.getLatLng(),h._zoom)),this._arraySplice(h.__parent._childClusters,h),h.__parent._markers.push(m),m.__parent=h.__parent,h._icon&&(c.removeLayer(h),r||c.addLayer(m))):h._iconNeedsUpdate=!0,h=h.__parent;delete t.__parent},_isOrIsParent:function(t,n){for(;n;){if(t===n)return!0;n=n.parentNode}return!1},fire:function(t,n,r){if(n&&n.layer instanceof L.MarkerCluster){if(n.originalEvent&&this._isOrIsParent(n.layer._icon,n.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,n,r)},listens:function(t,n){return L.FeatureGroup.prototype.listens.call(this,t,n)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,n)},_defaultIconCreateFunction:function(t){var n=t.getChildCount(),r=" marker-cluster-";return n<10?r+="small":n<100?r+="medium":r+="large",new L.DivIcon({html:"<div><span>"+n+"</span></div>",className:"marker-cluster"+r,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,n=this.options.spiderfyOnMaxZoom,r=this.options.showCoverageOnHover,o=this.options.zoomToBoundsOnClick,a=this.options.spiderfyOnEveryZoom;(n||o||a)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),r&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var n=t.layer,r=n;if(!(t.type==="clusterkeypress"&&t.originalEvent&&t.originalEvent.keyCode!==13)){for(;r._childClusters.length===1;)r=r._childClusters[0];r._zoom===this._maxZoom&&r._childCount===n._childCount&&this.options.spiderfyOnMaxZoom?n.spiderfy():this.options.zoomToBoundsOnClick&&n.zoomToBounds(),this.options.spiderfyOnEveryZoom&&n.spiderfy(),t.originalEvent&&t.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(t){var n=this._map;this._inZoomAnimation||(this._shownPolygon&&n.removeLayer(this._shownPolygon),t.layer.getChildCount()>2&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),n.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,n=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,o=this.options.spiderfyOnEveryZoom,a=this._map;(t||r||o)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),n&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),a.off("zoomend",this._hideCoverage,this))}
3,_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),n=Math.floor(this._map.getMinZoom()),r=this.options.maxClusterRadius,o=r;typeof r!="function"&&(o=function(){return r}),this.options.disableClusteringAtZoom!==null&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var a=t;a>=n;a--)this._gridClusters[a]=new L.DistanceGrid(o(a)),this._gridUnclustered[a]=new L.DistanceGrid(o(a));this._topClusterLevel=new this._markerCluster(this,n-1)},_addLayer:function(t,n){var r=this._gridClusters,o=this._gridUnclustered,a=Math.floor(this._map.getMinZoom()),c,l;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);n>=a;n--){c=this._map.project(t.getLatLng(),n);var f=r[n].getNearObject(c);if(f){f._addChild(t),t.__parent=f;return}if(f=o[n].getNearObject(c),f){var h=f.__parent;h&&this._removeLayer(f,!1);var _=new this._markerCluster(this,n,f,t);r[n].addObject(_,this._map.project(_._cLatLng,n)),f.__parent=_,t.__parent=_;var m=_;for(l=n-1;l>h._zoom;l--)m=new this._markerCluster(this,l,m),r[l].addObject(m,this._map.project(f.getLatLng(),l));h._addChild(m),this._removeFromGridUnclustered(f,n);return}o[n].addObject(t,c)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()})},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(t){var n=this._maxLat;return n!==void 0&&(t.getNorth()>=n&&(t._northEast.lat=1/0),t.getSouth()<=-n&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,n){if(n===t)this._featureGroup.addLayer(t);else if(n._childCount===2){n._addToMap();var r=n.getAllChildMarkers();this._featureGroup.removeLayer(r[0]),this._featureGroup.removeLayer(r[1])}else n._updateIcon()},_extractNonGroupLayers:function(t,n){var r=t.getLayers(),o=0,a;for(n=n||[];o<r.length;o++){if(a=r[o],a instanceof L.LayerGroup){this._extractNonGroupLayers(a,n);continue}n.push(a)}return n},_overrideMarkerIcon:function(t){var n=t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}});return n}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))});L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,n){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,n,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,n){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,n,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,n){this._animationAddLayerNonAnimated(t,n)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,n){var r=this._getExpandedVisibleBounds(),o=this._featureGroup,a=Math.floor(this._map.getMinZoom()),c;this._ignoreMove=!0,this._topClusterLevel._recursively(r,t,a,function(l){var f=l._latlng,h=l._markers,_;
3for(r.contains(f)||(f=null),l._isSingleParent()&&t+1===n?(o.removeLayer(l),l._recursivelyAddChildrenToMap(null,n,r)):(l.clusterHide(),l._recursivelyAddChildrenToMap(f,n,r)),c=h.length-1;c>=0;c--)_=h[c],r.contains(_._latlng)||o.removeLayer(_)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,n),o.eachLayer(function(l){!(l instanceof L.MarkerCluster)&&l._icon&&l.clusterShow()}),this._topClusterLevel._recursively(r,t,n,function(l){l._recursivelyRestoreChildPositions(n)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(r,t,a,function(l){o.removeLayer(l),l.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(t,n){this._animationZoomOutSingle(this._topClusterLevel,t-1,n),this._topClusterLevel._recursivelyAddChildrenToMap(null,n,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,n){var r=this,o=this._featureGroup;o.addLayer(t),n!==t&&(n._childCount>2?(n._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(n.getLatLng())),t.clusterHide(),this._enqueue(function(){o.removeLayer(t),t.clusterShow(),r._animationEnd()})):(this._forceLayout(),r._animationStart(),r._animationZoomOutSingle(n,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,n,r){var o=this._getExpandedVisibleBounds(),a=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(o,a,n+1,r);var c=this;this._forceLayout(),t._recursivelyBecomeVisible(o,r),this._enqueue(function(){if(t._childCount===1){var l=t._markers[0];this._ignoreMove=!0,l.setLatLng(l.getLatLng()),this._ignoreMove=!1,l.clusterShow&&l.clusterShow()}else t._recursively(o,r,a,function(f){f._recursivelyRemoveChildrenFromMap(o,a,n+1)});c._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}});L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,n,r,o){L.Marker.prototype.initialize.call(this,r?r._cLatLng||r.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=n,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,r&&this._addChild(r),o&&this._addChild(o)},getAllChildMarkers:function(t,n){t=t||[];for(var r=this._childClusters.length-1;r>=0;r--)this._childClusters[r].getAllChildMarkers(t,n);for(var o=this._markers.length-1;o>=0;o--)n&&this._markers[o].__dragStart||t.push(this._markers[o]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var n=this._childClusters.slice(),r=this._group._map,o=r.getBoundsZoom(this._bounds),a=this._zoom+1,c=r.getZoom(),l;n.length>0&&o>a;){a++;var f=[];for(l=0;l<n.length;l++)f=f.concat(n[l]._childClusters);n=f}o>
3a?this._group._map.setView(this._latlng,a):o<=c?this._group._map.setView(this._latlng,c+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,n){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(n||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(n||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t=this._markers,n=this._childClusters,r=0,o=0,a=this._childCount,c,l,f,h;if(a!==0){for(this._resetBounds(),c=0;c<t.length;c++)f=t[c]._latlng,this._bounds.extend(f),r+=f.lat,o+=f.lng;for(c=0;c<n.length;c++)l=n[c],l._boundsNeedUpdate&&l._recalculateBounds(),this._bounds.extend(l._bounds),f=l._wLatLng,h=l._childCount,r+=f.lat*h,o+=f.lng*h;this._latlng=this._wLatLng=new L.LatLng(r/a,o/a),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,n,r){this._recursively(t,this._group._map.getMinZoom(),r-1,function(o){var a=o._markers,c,l;for(c=a.length-1;c>=0;c--)l=a[c],l._icon&&(l._setPos(n),l.clusterHide())},function(o){var a=o._childClusters,c,l;for(c=a.length-1;c>=0;c--)l=a[c],l._icon&&(l._setPos(n),l.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,n,r,o){this._recursively(t,o,n,function(a){a._recursivelyAnimateChildrenIn(t,a._group._map.latLngToLayerPoint(a.getLatLng()).round(),r),a._isSingleParent()&&r-1===o?(a.clusterShow(),a._recursivelyRemoveChildrenFromMap(t,n,r)):a.clusterHide(),a._addToMap()})},_recursivelyBecomeVisible:function(t,n){this._recursively(t,this._group._map.getMinZoom(),n,null,function(r){r.clusterShow()})},_recursivelyAddChildrenToMap:function(t,n,r){this._recursively(r,this._group._map.getMinZoom()-1,n,function(o){if(n!==o._zoom)for(var a=o._markers.length-1;a>=0;a--){var c=o._markers[a];r.contains(c._latlng)&&(t&&(c._backupLatlng=c.getLatLng(),c.setLatLng(t),c.clusterHide&&c.clusterHide()),o._group._featureGroup.addLayer(c))}},function(o){o._addToMap(t)})},_recursivelyRestoreChildPositions:function(t){for(var n=this._markers.length-1;n>=0;n--){var r=this._markers[n];r._backupLatlng&&(r.setLatLng(r._backupLatlng),delete r._backupLatlng)}if(t-1===this._zoom)for(var o=this._childClusters.length-1;o>=0;o--)this._childClusters[o]._restorePosition();else for(var a=this._childClusters.length-1;a>=0;a--)this._childClusters[a]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,n,r,o){var a,c;this._recursively(t,n-1,r-1,function(l){for(c=l._markers.length-1;c>=0;c--)a=l._markers[c],(!o||!o.contains(a._latlng))&&(l._group._featureGroup.removeLayer(a),a.clusterShow&&a.clusterShow())},function(l){for(c=l._childClusters.length-1;c>=0;c--)a=l._childClusters[c],(!o||!o.contains(a._latlng))&&(l._group._featureGroup.removeLayer(a),a.clusterShow&&a.clusterShow())})},_recursively:function(t,n,r,o,a){var c=this._childClusters,l=this._zoom,f,h;if(n<=l&&(o&&o(this),a&&l===r&&a(this)),l<n||l<r)for(f=c.length-1;f>=0;f--)h=c[f],h._boundsNeedUpdate&&h._recalculateBounds(),t.intersects(h._bounds)&&h._recursively(t,n,r,o,a)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}});L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}};L.DistanceGrid.prototype={addObject:function(t,n){var r=this._getCoord(n.x),o=this._getCoord(n.y),a=this._grid,c=a[o]=a[o]||{},l=c[r]=c[r]||[],f=L.Util.stamp(t);this._objectPoint[f]=n,l.push(t)},updateObject:function(t,n){this.removeObject(t),this.addObject(t,n)},removeObject:function(t,n){var r=this._getCoord(n.x),o=this._getCoord(n.y),a=this._grid,c=a[o]=a[o]||{},l=c[r]=c[r]||[],f,h;for(delete this._objectPoint[L.Util.stamp(t)],f=0,h=l.length;f<h;f++)if(l[f]===t)return l.splice(f,1),h===1&&delete c[r],!0},eachObject:function(t,n){var r,o,a,c,l,f,h,_=this._grid;for(r in _){l=_[r];for(o in l)for(f=l[o],a=0,c=f.length;a<c;a++)h=t.call(n,f[a]),h&&(a--,c--)}},getNearObject:function(t){var n=this._getCoord(t.x),r=this._getCoord(t.y),o,a,c,l,f,h,_,m,y=this._objectPoint,g=this._sqCellSize,C=null;for(o=r-1;o<=r+1;o++)if(l=this._grid[o],l){for(a=n-1;a<=n+1;a++)if(f=l[a],f)for(c=0,h=f.length;c<h;c++)_=f[c],m=this._sqDist(y[L.Util.stamp(_)],t),(m<g||m<=g&&C===null)&&(g=m,C=_)}return C},_getCoord:function(t){var n=Math.floor(t/this._cellSize);return isFinite(n)?n:t},_sqDist:function(t,n){var r=n.x-t.x,o=n.y-t.y;return r*r+o*o}};(function(){L.QuickHull={getDistant:function(t,n){var r=n[1].lat-n[0].lat,o=n[0].lng-n[1].lng;return o*(t.lat-n[0].lat)+r*(t.lng-n[0].lng)},findMostDistantPointFromBaseLine:function(t,n){var r=0,o=null,a=[],c,l,f;for(c=n.length-1;c>=0;
vendor: 5,178 bytes, line 3
3c--){if(l=n[c],f=this.getDistant(l,t),f>0)a.push(l);else continue;f>r&&(r=f,o=l)}return{maxPoint:o,newPoints:a}},buildConvexHull:function(t,n){var r=[],o=this.findMostDistantPointFromBaseLine(t,n);return o.maxPoint?(r=r.concat(this.buildConvexHull([t[0],o.maxPoint],o.newPoints)),r=r.concat(this.buildConvexHull([o.maxPoint,t[1]],o.newPoints)),r):[t[0]]},getConvexHull:function(t){var n=!1,r=!1,o=!1,a=!1,c=null,l=null,f=null,h=null,_=null,m=null,y;for(y=t.length-1;y>=0;y--){var g=t[y];(n===!1||g.lat>n)&&(c=g,n=g.lat),(r===!1||g.lat<r)&&(l=g,r=g.lat),(o===!1||g.lng>o)&&(f=g,o=g.lng),(a===!1||g.lng<a)&&(h=g,a=g.lng)}r!==n?(m=l,_=c):(m=h,_=f);var C=[].concat(this.buildConvexHull([m,_],t),this.buildConvexHull([_,m],t));return C}}})();L.MarkerCluster.include({getConvexHull:function(){var t=this.getAllChildMarkers(),n=[],r,o;for(o=t.length-1;o>=0;o--)r=t[o].getLatLng(),n.push(r);return L.QuickHull.getConvexHull(n)}});L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var t=this.getAllChildMarkers(null,!0),n=this._group,r=n._map,o=r.latLngToLayerPoint(this._latlng),a;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?a=this._group.options.spiderfyShapePositions(t.length,o):t.length>=this._circleSpiralSwitchover?a=this._generatePointsSpiral(t.length,o):(o.y+=10,a=this._generatePointsCircle(t.length,o)),this._animationSpiderfy(t,a)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,n){var r=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t),o=r/this._2PI,a=this._2PI/t,c=[],l,f;for(o=Math.max(o,35),c.length=t,l=0;l<t;l++)f=this._circleStartAngle+l*a,c[l]=new L.Point(n.x+o*Math.cos(f),n.y+o*Math.sin(f))._round();return c},_generatePointsSpiral:function(t,n){var r=this._group.options.spiderfyDistanceMultiplier,o=r*this._spiralLengthStart,a=r*this._spiralFootSeparation,c=r*this._spiralLengthFactor*this._2PI,l=0,f=[],h;for(f.length=t,h=t;h>=0;h--)h<t&&(f[h]=new L.Point(n.x+o*Math.cos(l),n.y+o*Math.sin(l))._round()),l+=a/o+h*5e-4,o+=c/l;return f},_noanimationUnspiderfy:function(){var t=this._group,n=t._map,r=t._featureGroup,o=this.getAllChildMarkers(null,!0),a,c;for(t._ignoreMove=!0,this.setOpacity(1),c=o.length-1;c>=0;c--)a=o[c],r.removeLayer(a),a._preSpiderfyLatlng&&(a.setLatLng(a._preSpiderfyLatlng),delete a._preSpiderfyLatlng),a.setZIndexOffset&&a.setZIndexOffset(0),a._spiderLeg&&(n.removeLayer(a._spiderLeg),delete a._spiderLeg);t.fire("unspiderfied",{cluster:this,markers:o}),t._ignoreMove=!1,t._spiderfied=null}});L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,n){var r=this._group,o=r._map,a=r._featureGroup,c=this._group.options.spiderLegPolylineOptions,l,f,h,_;for(r._ignoreMove=!0,l=0;l<t.length;l++)_=o.layerPointToLatLng(n[l]),f=t[l],h=new L.Polyline([this._latlng,_],c),o.addLayer(h),f._spiderLeg=h,f._preSpiderfyLatlng=f._latlng,f.setLatLng(_),f.setZIndexOffset&&f.setZIndexOffset(1e6),a.addLayer(f);this.setOpacity(.3),r._ignoreMove=!1,r.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}});L.MarkerCluster.include({_animationSpiderfy:function(t,n){var r=this,o=this._group,a=o._map,c=o._featureGroup,l=this._latlng,f=a.latLngToLayerPoint(l),h=L.Path.SVG,_=L.extend({},this._group.options.spiderLegPolylineOptions),m=_.opacity,y,g,C,P,M,b;for(m===void 0&&(m=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),h?(_.opacity=0,_.className=(_.className||"")+" leaflet-cluster-spider-leg"):_.opacity=m,o._ignoreMove=!0,y=0;y<t.length;y++)g=t[y],b=a.layerPointToLatLng(n[y]),C=new L.Polyline([l,b],_),a.addLayer(C),g._spiderLeg=C,h&&(P=C._path,M=P.getTotalLength()+.1,P.style.strokeDasharray=M,P.style.strokeDashoffset=M),g.setZIndexOffset&&g.setZIndexOffset(1e6),g.clusterHide&&g.clusterHide(),c.addLayer(g),g._setPos&&g._setPos(f);for(o._forceLayout(),o._animationStart(),y=t.length-1;y>=0;y--)b=a.layerPointToLatLng(n[y]),g=t[y],g._preSpiderfyLatlng=g._latlng,g.setLatLng(b),g.clusterShow&&g.clusterShow(),h&&(C=g._spiderLeg,P=C._path,P.style.strokeDashoffset=0,C.setStyle({opacity:m}));this.setOpacity(.3),o._ignoreMove=!1,setTimeout(function(){o._animationEnd(),o.fire("spiderfied",{cluster:r,markers:t})},200)},_animationUnspiderfy:function(t){var n=this,r=this._group,o=r._map,a=r._featureGroup,c=t?o._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):o.latLngToLayerPoint(this._latlng),l=this.getAllChildMarkers(null,!0),f=L.Path.SVG,h,_,m,y,g,C;for(r._ignoreMove=!0,r._animationStart(),this.setOpacity(1),_=l.length-1;_>=0;_--)h=l[_],h._preSpiderfyLatlng&&(h.closePopup(),h.setLatLng(h._preSpiderfyLatlng),delete h._preSpiderfyLatlng,C=!0,h._setPos&&(h._setPos(c),C=!1),h.clusterHide&&(h.clusterHide(),C=!1),C&&a.removeLayer(h),f&&(m=h._spiderLeg,y=m._path,g=y.getTotalLength()+.1,y.style.strokeDashoffset=g,m.setStyle({opacity:0}
3)));r._ignoreMove=!1,setTimeout(function(){var P=0;for(_=l.length-1;_>=0;_--)h=l[_],h._spiderLeg&&P++;for(_=l.length-1;_>=0;_--)h=l[_],h._spiderLeg&&(h.clusterShow&&h.clusterShow(),h.setZIndexOffset&&h.setZIndexOffset(0),P>1&&a.removeLayer(h),o.removeLayer(h._spiderLeg),delete h._spiderLeg);r._animationEnd(),r.fire("unspiderfied",{cluster:n,markers:l})},200)}});L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}});L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var n,r;for(n in t)for(r=t[n].__parent;r;)r._iconNeedsUpdate=!0,r=r.__parent},_refreshSingleMarkerModeMarkers:function(t){var n,r;for(n in t)r=t[n],this.hasLayer(r)&&r.setIcon(this._overrideMarkerIcon(r))}});L.Marker.include({refreshIconOptions:function(t,n){var r=this.options.icon;return L.setOptions(r,t),this.setIcon(r),n&&this.__parent&&this.__parent._group.refreshClusters(this),this}});const Ci={class:"relative my-2"},Ti={key:1,class:"absolute hidden md:block bottom-0 md:top-8 right-0 h-48 w-full md:w-80 overflow-y-visible text-white [box-shadow:0 6px 9px 2px rgba(119,119,119,.75)] -my-4 px-2 z-[1100]"},wi=ye({__name:"EventMarkerMap",props:{contentType:{},events:{},groups:{},latitude:{},longitude:{},isLoggedIn:{type:Boolean}},emits:["map-updated"],setup(t,{emit:n}){const r=R(),o=R(),a=R(),c=t,l=n,f=R(null),h=dt(()=>c.events?.elements??[]),_=dt(()=>c.groups?.elements??[]);zt([h,_],m);function m(){if(!r.value||!r.value.getBounds)return;const T=r.value.getBounds(),E=r.value.wrapLatLngBounds(T);if(E.getNorthWest().lat===0||E.getNorthWest().lat===E.getSouthEast().lat)return;const N=r.value.getZoom();l("map-updated",{bounds:E,zoom:N})}Ce(()=>{r.value&&r.value.remove()});const y=dt(()=>c.latitude&&c.longitude?[[c.latitude,c.longitude],12]:[[0,0],3]);zt(y,([T,E])=>{g(T,E)});const g=(T,E)=>{console.debug("setting view to ",T,E),r.value?.setView(T,E)};hi(async()=>{r.value=kt.map("mapMountPoint"),g(...y.value),r.value._onResize(),r.value.on("click",()=>{f.value=null,a.value&&a.value.close()}),o.value=new yi({chunkedLoading:!0}),r.value.on("zoom",ve(m,1e3)),r.value.on("moveend",ve(m,1e3)),kt.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',className:"map-tiles"}).addTo(r.value)});const C=T=>St(T)?"marker-event":"marker-group",P=(T,E)=>{const N=kt.divIcon({html:`<div class="marker-container ${C(T)}"> 4 <div class="pin-icon-container"> 5 <svg width="24" height="24" stroke-width="1.5" viewB
5ox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 6 <path d="M20 10C20 14.4183 12 22 12 22C12 22 4 14.4183 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10Z" stroke="currentColor" stroke-width="1.5"></path> 7 </svg> 8 </div> 9 <div class="element-icon-container text-black"> 10 ${St(T)?b:K} 11 </div> 12 </div>`,iconSize:[50,50],iconAnchor:[25,50]});return kt.marker(E,{icon:N}).on("click",()=>{f.value=T,a.value&&a.value.open()})},M=(T,E={})=>{const N=fi({render(){return di(T,E)}}),D=document.createElement("div");return N.mount(D).$el.outerHTML},b=M(_i),K=M(pi);m();const I=dt(()=>h.value?.reduce((T,E)=>{if(E.physicalAddress?.geom){const[N,D]=E.physicalAddress.geom.split(";");return[...T,P(E,{lng:Number.parseFloat(N),lat:Number.parseFloat(D)})]}return T},[])),Y=dt(()=>_.value?.reduce((T,E)=>{if(E.physicalAddress?.geom){const[N,D]=E.physicalAddress.geom.split(";");return[...T,P(E,{lng:Number.parseFloat(N),lat:Number.parseFloat(D)})]}return T},[]));return zt([o,I,Y],()=>{o.value&&(console.debug("something changed in the search map",o.value,I.value,Y.value),o.value?.clearLayers(),c.contentType!==me.GROUPS&&I.value?.forEach(T=>{console.debug("adding event marker layer to markers"),o.value.addLayer(T)}),c.contentType!==me.EVENTS&&Y.value?.forEach(T=>{console.debug("adding group marker layer to markers"),o.value.addLayer(T)}),r.value?.addLayer(o.value))}),(T,E)=>(j(),xt("div",Ci,[E[0]||(E[0]=_t("div",{style:{height:"70vh"},id:"mapMountPoint"},null,-1)),f.value?(j(),ft(Li,{key:0,ref_key:"myBottomSheet",ref:a,class:"md:hidden","max-height":"70%","background-scrollable":!1},{default:ci(()=>[_e(St)(f.value)?(j(),ft(pe,{key:0,event:f.value,mode:"column",options:{isRemoteEvent:f.value.__typename==="EventResult",isLoggedIn:t.isLoggedIn}},null,8,["event","options"])):(j(),ft(ge,{key:1,group:f.value,mode:"column",isRemoteGroup:f.value.__typename==="GroupResult",isLoggedIn:t.isLoggedIn},null,8,["group","isRemoteGroup","isLoggedIn"]))]),_:1},512)):qt("",!0),f.value?(j(),xt("div",Ti,[_e(St)(f.value)?(j(),ft(pe,{key:0,event:f.value,mode:"column",options:{isRemoteEvent:f.value.__typename==="EventResult",isLoggedIn:t.isLoggedIn}},null,8,["event","options"])):(j(),ft(ge,{key:1,group:f.value,mode:"column",isRemoteGroup:f.value.__typename==="GroupResult",isLoggedIn:t.isLoggedIn},null,8,["group","isRemoteGroup","isLoggedIn"]))])):qt("",!0)]))}});export{wi as default}; 13//# sourceMappingURL=EventMarkerMap-DY63sAg7.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.