import{_ as Xt,O as on,P as sn,s as V,t as ot,v as f,x as d,E as T,M as j,$ as tt,D as R,c3 as gr,r as G,aE as Co,Q as vt,aP as Ji,R as Ct,T as Yt,S as Ht,U as Ne,K as st,C as yt,y as F,a4 as vr,z as yr,V as Ve,bk as oe,k as se,q as re,cO as Mt,bK as xe,n as Jt,bz as ae,b as xr,p as Ft,f as ci,e as rn,w as bo,bW as an,c2 as wr,cQ as br,g as Lr,a5 as pi,B as dt,a3 as Xi,cT as Qi,Z as tn,X as Pr,W as Tr,Y as Sr,cG as Cr,A as Mo,c as zo,d4 as Mr,cV as zr}from"./index-73589810.js";import{V as en}from"./VList-ab34f81f.js";import{P as kr}from"./PatternTabs-a24f44c8.js";import{V as Or}from"./VForm-a1eb4a2c.js";import{V as Yi}from"./VTextField-9ffd6268.js";import{V as Ar}from"./VTextarea-2e3a01ff.js";import{V as Er}from"./VFileInput-13488c9e.js";import{a as di}from"./VWindowItem-b988386f.js";import"./ssrBoot-9c41720e.js";import"./VInput-2a0fd27e.js";/* empty css */import"./VField-64438936.js";function Ir(c,h){for(var a=0;al[m]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}const Br={props:{sText:{type:String,default:""}},setup(){return{checkremote:on,spravURL:sn}}},Zr={class:"vertext text-button my-1 pb-13"};function Rr(c,h,a,l,m,y){return V(),ot(R,{"no-gutters":"",class:"h-100"},{default:f(()=>[d(T,{class:"align-self-center flex-grow-0"},{default:f(()=>[j("span",Zr,tt(a.sText),1)]),_:1}),d(T,{class:"w100"},{default:f(()=>[a.sText=="Руководство"?(V(),ot(R,{key:0,"no-gutters":"",class:"text-center text-button py-2"})):(V(),ot(R,{key:1,"no-gutters":"",class:"text-center text-button py-2"})),d(R,{"no-gutters":"",class:"h-100"},{default:f(()=>[gr(c.$slots,"cardboss")]),_:3})]),_:3})]),_:3})}const Dr=Xt(Br,[["render",Rr]]);const Nr={components:{StructureInspectionRow:Dr},setup(){const c=G([]),{smAndDown:h,mdAndDown:a,lgAndDown:l}=Co();return(()=>{Ne.get("api/about_inspection/getstructure/").then(y=>{c.value=y.data})})(),{structures:c,checkremote:on,spravURL:sn,mdAndDown:a,lgAndDown:l,smAndDown:h}}},Vr=j("span",{class:"vertext text-button my-1 pb-8"},"Руководство",-1),Fr=j("span",{class:"vertext text-button my-1 pb-13"},"Структурные подразделения",-1);function Hr(c,h,a,l,m,y){const g=vt("list-user");return V(),ot(R,{"no-gutters":"",class:"h-100 gap"},{default:f(()=>[d(T,{class:"flex-grow-0 d-flex d-sm-none d-lg-none d-xl-flex"},{default:f(()=>[d(R,{"no-gutters":"",class:"flex-column"},{default:f(()=>[d(T,{lg:"4"},{default:f(()=>[Vr]),_:1}),d(T,null,{default:f(()=>[Fr]),_:1})]),_:1})]),_:1}),d(T,{class:"d-flex"},{default:f(()=>[d(R,{"no-gutters":"",class:Ji(l.smAndDown?" flex-column":"")},{default:f(()=>[(V(!0),Ct(Ht,null,Yt(l.structures,x=>(V(),ot(T,{md:l.mdAndDown?"12":"",lg:l.lgAndDown?6:"",class:"w100 flex-column d-flex",key:x.id},{default:f(()=>[d(R,{"no-gutters":"",class:"flex-grow-0"},{default:f(()=>[d(T,{class:"flex-column d-flex"},{default:f(()=>[d(R,{"no-gutters":"",class:"mb-2 mt-1 justify-center d-flex mx-1"},{default:f(()=>[d(st,{class:"flex-column d-flex flex-grow-1",elevation:10},{default:f(()=>[d(yt,{class:"pa-0"},{default:f(()=>[d(T,{lg:"12",class:"pa-0"},{default:f(()=>[d(R,{"no-gutters":""},{default:f(()=>[d(T,{class:"d-flex py-3 justify-center align-center font-weight-medium text-uppercase"},{default:f(()=>[F(tt(x.post),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),d(R,{"no-gutters":""},{default:f(()=>[d(T,{lg:"4",class:"pa-1 heightfoto"},{default:f(()=>[d(g,{author:x,from_which:"top_comment"},null,8,["author"])]),_:2},1024),d(T,{class:"text-center align-self-center font-weight-medium"},{default:f(()=>[F(tt(x.fio),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024),d(R,{"no-gutters":"",class:Ji(l.lgAndDown?"":"gap h-0 overflow-auto")},{default:f(()=>[d(T,{lg:"12"},{default:f(()=>[(V(!0),Ct(Ht,null,Yt(x.deps,v=>(V(),ot(R,{"no-gutters":"",class:"gap mb-1",key:v.id},{default:f(()=>[d(T,{class:"d-flex flex-column"},{default:f(()=>[d(st,{class:"flex-column d-flex flex-grow-1 mx-1",elevation:5},{default:f(()=>[d(yt,{class:"pa-1 pt-3 px-3 flex-column"},{default:f(()=>[d(T,{lg:"12",class:"minh pa-0"},{default:f(()=>[d(R,{"no-gutters":""},{default:f(()=>[d(T,{class:"text-wrap text-center text-body-2 font-weight-medium text-uppercase"},{default:f(()=>[F(tt(v.name),1)]),_:2},1024),d(T,{class:"flex-grow-0"},{default:f(()=>[d(vr,{location:"top"},{activator:f(({props:M})=>[j("span",yr({ref_for:!0},M),[d(Ve,{size:"large",color:"green",icon:"mdi-arrow-top-right"})],16)]),default:f(()=>[d(R,null,{default:f(()=>[d(T,null,{default:f(()=>[F(" Перейти на страницу отдела ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:2},1024)]),_:2},1024),d(R,{"no-gutters":""},{default:f(()=>[d(g,{author:v.chief_deps},null,8,["author"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["class"])]),_:2},1032,["md","lg"]))),128))]),_:1},8,["class"])]),_:1})]),_:1})}const Wr=Xt(Nr,[["render",Hr]]);const Lo=(c,h)=>{for(const a of Object.keys(h))c.on(a,h[a])},ko=c=>{for(const h of Object.keys(c)){const a=c[h];a&&$t(a.cancel)&&a.cancel()}},jr=c=>!c||typeof c.charAt!="function"?c:c.charAt(0).toUpperCase()+c.slice(1),$t=c=>typeof c=="function",le=(c,h,a)=>{for(const l in a){const m="set"+jr(l);c[m]?bo(()=>a[l],(y,g)=>{c[m](y,g)}):h[m]&&bo(()=>a[l],y=>{h[m](y)})}},ue=(c,h,a={})=>{const l={...a};for(const m in c){const y=h[m],g=c[m];y&&(y&&y.custom===!0||g!==void 0&&(l[m]=g))}return l},we=c=>{const h={},a={};for(const l in c)if(l.startsWith("on")&&!l.startsWith("onUpdate")&&l!=="onReady"){const m=l.slice(2).toLocaleLowerCase();h[m]=c[l]}else a[l]=c[l];return{listeners:h,attrs:a}},Ur=async c=>{const h=await Promise.all([Mt(()=>import("./marker-icon-2x-e148f0f7.js"),[]),Mt(()=>import("./marker-icon-d6994ad0.js"),[]),Mt(()=>import("./marker-shadow-a7f70f89.js"),[])]);delete c.Default.prototype._getIconUrl,c.Default.mergeOptions({iconRetinaUrl:h[0].default,iconUrl:h[1].default,shadowUrl:h[2].default})},fi=c=>{const h=G((...l)=>console.warn(`Method ${c} has been invoked without being replaced`)),a=(...l)=>h.value(...l);return a.wrapped=h,Ft(c,a),a},_i=(c,h)=>c.wrapped.value=h,Wt=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||globalThis,zt=c=>{const h=se(c);if(h===void 0)throw new Error(`Attempt to inject ${c.description} before it was provided.`);return h},he=Symbol("useGlobalLeaflet"),He=Symbol("addLayer"),Oo=Symbol("removeLayer"),Ao=Symbol("registerControl"),Gr=Symbol("registerLayerControl"),Eo=Symbol("canSetParentHtml"),Io=Symbol("setParentHtml"),Bo=Symbol("setIcon"),qr=Symbol("bindPopup"),Zo=Symbol("bindTooltip"),Kr=Symbol("unbindPopup"),Ro=Symbol("unbindTooltip"),We={options:{type:Object,default:()=>({}),custom:!0}},je=c=>({options:c.options,methods:{}}),be={...We,pane:{type:String},attribution:{type:String},name:{type:String,custom:!0},layerType:{type:String,custom:!0},visible:{type:Boolean,custom:!0,default:!0}},Do=(c,h,a)=>{const l=zt(He),m=zt(Oo),{options:y,methods:g}=je(c),x=ue(c,be,y),v=()=>l({leafletObject:h.value}),M=()=>m({leafletObject:h.value}),P={...g,setAttribution(S){M(),h.value.options.attribution=S,c.visible&&v()},setName(){M(),c.visible&&v()},setLayerType(){M(),c.visible&&v()},setVisible(S){h.value&&(S?v():M())},bindPopup(S){if(!h.value||!$t(h.value.bindPopup)){console.warn("Attempt to bind popup before bindPopup method available on layer.");return}h.value.bindPopup(S)},bindTooltip(S){if(!h.value||!$t(h.value.bindTooltip)){console.warn("Attempt to bind tooltip before bindTooltip method available on layer.");return}h.value.bindTooltip(S)},unbindTooltip(){h.value&&($t(h.value.closeTooltip)&&h.value.closeTooltip(),$t(h.value.unbindTooltip)&&h.value.unbindTooltip())},unbindPopup(){h.value&&($t(h.value.closePopup)&&h.value.closePopup(),$t(h.value.unbindPopup)&&h.value.unbindPopup())},updateVisibleProp(S){a.emit("update:visible",S)}};return Ft(qr,P.bindPopup),Ft(Zo,P.bindTooltip),Ft(Kr,P.unbindPopup),Ft(Ro,P.unbindTooltip),an(()=>{P.unbindPopup(),P.unbindTooltip(),M()}),{options:x,methods:P}},$r=(c,h)=>{if(c&&h.default)return ae("div",{style:{display:"none"}},h.default())},Yr={...be,interactive:{type:Boolean,default:void 0},bubblingMouseEvents:{type:Boolean,default:void 0}},No={...Yr,stroke:{type:Boolean,default:void 0},color:{type:String},weight:{type:Number},opacity:{type:Number},lineCap:{type:String},lineJoin:{type:String},dashArray:{type:String},dashOffset:{type:String},fill:{type:Boolean,default:void 0},fillColor:{type:String},fillOpacity:{type:Number},fillRule:{type:String},className:{type:String}},Jr={...No,radius:{type:Number},latLng:{type:[Object,Array],required:!0,custom:!0}};({...Jr});const Le={...We,position:{type:String}},Xr=(c,h)=>{const{options:a,methods:l}=je(c),m=ue(c,Le,a),y={...l,setPosition(g){h.value&&h.value.setPosition(g)}};return an(()=>{h.value&&h.value.remove()}),{options:m,methods:y}},Qr=c=>c.default?ae("div",{ref:"root"},c.default()):null;oe({name:"LControl",props:{...Le,disableClickPropagation:{type:Boolean,custom:!0,default:!0},disableScrollPropagation:{type:Boolean,custom:!0,default:!1}},setup(c,h){const a=G(),l=G(),m=se(he),y=zt(Ao),{options:g,methods:x}=Xr(c,a);return re(async()=>{const{Control:v,DomEvent:M}=m?Wt.L:await Mt(()=>import("./leaflet-src.esm-9c358b30.js"),[]),P=v.extend({onAdd(){return l.value}});a.value=xe(new P(g)),le(x,a.value,c),y({leafletObject:a.value}),c.disableClickPropagation&&l.value&&M.disableClickPropagation(l.value),c.disableScrollPropagation&&l.value&&M.disableScrollPropagation(l.value),Jt(()=>h.emit("ready",a.value))}),{root:l,leafletObject:a}},render(){return Qr(this.$slots)}});({...Le});({...Le});({...Le});({...Le});const Vo={...be};({...Vo});({...Vo});const ln={...be,opacity:{type:Number},zIndex:{type:Number},tileSize:{type:[Number,Array,Object]},noWrap:{type:Boolean,default:void 0},minZoom:{type:Number},maxZoom:{type:Number},className:{type:String}},Fo=(c,h,a)=>{const{options:l,methods:m}=Do(c,h,a),y=ue(c,ln,l),g={...m,setTileComponent(){var x;(x=h.value)==null||x.redraw()}};return an(()=>{h.value.off()}),{options:y,methods:g}},ta=(c,h,a,l)=>c.extend({initialize(m){this.tileComponents={},this.on("tileunload",this._unloadTile),a.setOptions(this,m)},createTile(m){const y=this._tileCoordsToKey(m);this.tileComponents[y]=h.create("div");const g=ae({setup:l,props:["coords"]},{coords:m});return wr(g,this.tileComponents[y]),this.tileComponents[y]},_unloadTile(m){const y=this._tileCoordsToKey(m.coords);this.tileComponents[y]&&(this.tileComponents[y].innerHTML="",this.tileComponents[y]=void 0)}});oe({props:{...ln,childRender:{type:Function,required:!0}},setup(c,h){const a=G(),l=G(null),m=G(!1),y=se(he),g=zt(He),{options:x,methods:v}=Fo(c,a,h);return re(async()=>{const{GridLayer:M,DomUtil:P,Util:S}=y?Wt.L:await Mt(()=>import("./leaflet-src.esm-9c358b30.js"),[]),q=ta(M,P,S,c.childRender);a.value=xe(new q(x));const{listeners:H}=we(h.attrs);a.value.on(H),le(v,a.value,c),g({...c,...v,leafletObject:a.value}),m.value=!0,Jt(()=>h.emit("ready",a.value))}),{root:l,ready:m,leafletObject:a}},render(){return this.ready?ae("div",{style:{display:"none"},ref:"root"}):null}});const Po={iconUrl:{type:String},iconRetinaUrl:{type:String},iconSize:{type:[Object,Array]},iconAnchor:{type:[Object,Array]},popupAnchor:{type:[Object,Array]},tooltipAnchor:{type:[Object,Array]},shadowUrl:{type:String},shadowRetinaUrl:{type:String},shadowSize:{type:[Object,Array]},shadowAnchor:{type:[Object,Array]},bgPos:{type:[Object,Array]},className:{type:String}};oe({name:"LIcon",props:{...Po,...We},setup(c,h){const a=G(),l=se(he),m=zt(Eo),y=zt(Io),g=zt(Bo);let x,v,M,P,S;const q=(xt,X,rt)=>{const K=xt&&xt.innerHTML;if(!X){rt&&S&&m()&&y(K);return}const{listeners:kt}=we(h.attrs);S&&v(S,kt);const{options:jt}=je(c),mt=ue(c,Po,jt);K&&(mt.html=K),S=mt.html?M(mt):P(mt),x(S,kt),g(S)},H=()=>{Jt(()=>q(a.value,!0,!1))},lt=()=>{Jt(()=>q(a.value,!1,!0))},N={setIconUrl:H,setIconRetinaUrl:H,setIconSize:H,setIconAnchor:H,setPopupAnchor:H,setTooltipAnchor:H,setShadowUrl:H,setShadowRetinaUrl:H,setShadowAnchor:H,setBgPos:H,setClassName:H,setHtml:H};return re(async()=>{const{DomEvent:xt,divIcon:X,icon:rt}=l?Wt.L:await Mt(()=>import("./leaflet-src.esm-9c358b30.js"),[]);x=xt.on,v=xt.off,M=X,P=rt,le(N,{},c),new MutationObserver(lt).observe(a.value,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),H()}),{root:a}},render(){const c=this.$slots.default?this.$slots.default():void 0;return ae("div",{ref:"root"},c)}});({...be});function Ho(c,h,a){var l,m,y;h===void 0&&(h=50),a===void 0&&(a={});var g=(l=a.isImmediate)!=null&&l,x=(m=a.callback)!=null&&m,v=a.maxWait,M=Date.now(),P=[];function S(){if(v!==void 0){var H=Date.now()-M;if(H+h>=v)return v-H}return h}var q=function(){var H=[].slice.call(arguments),lt=this;return new Promise(function(N,xt){var X=g&&y===void 0;if(y!==void 0&&clearTimeout(y),y=setTimeout(function(){if(y=void 0,M=Date.now(),!g){var K=c.apply(lt,H);x&&x(K),P.forEach(function(kt){return(0,kt.resolve)(K)}),P=[]}},S()),X){var rt=c.apply(lt,H);return x&&x(rt),N(rt)}P.push({resolve:N,reject:xt})})};return q.cancel=function(H){y!==void 0&&clearTimeout(y),P.forEach(function(lt){return(0,lt.reject)(H)}),P=[]},q}const To={...We,center:{type:[Object,Array]},bounds:{type:[Array,Object]},maxBounds:{type:[Array,Object]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},paddingBottomRight:{type:[Object,Array]},paddingTopLeft:{type:Object},padding:{type:Object},worldCopyJump:{type:Boolean,default:void 0},crs:{type:[String,Object]},maxBoundsViscosity:{type:Number},inertia:{type:Boolean,default:void 0},inertiaDeceleration:{type:Number},inertiaMaxSpeed:{type:Number},easeLinearity:{type:Number},zoomAnimation:{type:Boolean,default:void 0},zoomAnimationThreshold:{type:Number},fadeAnimation:{type:Boolean,default:void 0},markerZoomAnimation:{type:Boolean,default:void 0},noBlockingAnimations:{type:Boolean,default:void 0},useGlobalLeaflet:{type:Boolean,default:!0,custom:!0}},ea=oe({inheritAttrs:!1,emits:["ready","update:zoom","update:center","update:bounds"],props:To,setup(c,h){const a=G(),l=xr({ready:!1,layersToAdd:[],layersInControl:[]}),{options:m}=je(c),y=ue(c,To,m),{listeners:g,attrs:x}=we(h.attrs),v=fi(He),M=fi(Oo),P=fi(Ao),S=fi(Gr);Ft(he,c.useGlobalLeaflet);const q=ci(()=>{const X={};return c.noBlockingAnimations&&(X.animate=!1),X}),H=ci(()=>{const X=q.value;return c.padding&&(X.padding=c.padding),c.paddingTopLeft&&(X.paddingTopLeft=c.paddingTopLeft),c.paddingBottomRight&&(X.paddingBottomRight=c.paddingBottomRight),X}),lt={moveend:Ho(X=>{l.leafletRef&&(h.emit("update:zoom",l.leafletRef.getZoom()),h.emit("update:center",l.leafletRef.getCenter()),h.emit("update:bounds",l.leafletRef.getBounds()))}),overlayadd(X){const rt=l.layersInControl.find(K=>K.name===X.name);rt&&rt.updateVisibleProp(!0)},overlayremove(X){const rt=l.layersInControl.find(K=>K.name===X.name);rt&&rt.updateVisibleProp(!1)}};re(async()=>{c.useGlobalLeaflet&&(Wt.L=Wt.L||await Mt(()=>Promise.resolve().then(()=>ga),void 0));const{map:X,CRS:rt,Icon:K,latLngBounds:kt,latLng:jt,stamp:mt}=c.useGlobalLeaflet?Wt.L:await Mt(()=>import("./leaflet-src.esm-9c358b30.js"),[]);try{y.beforeMapMount&&await y.beforeMapMount()}catch(I){console.error(`The following error occurred running the provided beforeMapMount hook ${I.message}`)}await Ur(K);const Ue=typeof y.crs=="string"?rt[y.crs]:y.crs;y.crs=Ue||rt.EPSG3857;const Ut={addLayer(I){I.layerType!==void 0&&(l.layerControl===void 0?l.layersToAdd.push(I):l.layersInControl.find($=>mt($.leafletObject)===mt(I.leafletObject))||(l.layerControl.addLayer(I),l.layersInControl.push(I))),I.visible!==!1&&l.leafletRef.addLayer(I.leafletObject)},removeLayer(I){I.layerType!==void 0&&(l.layerControl===void 0?l.layersToAdd=l.layersToAdd.filter($=>$.name!==I.name):(l.layerControl.removeLayer(I.leafletObject),l.layersInControl=l.layersInControl.filter($=>mt($.leafletObject)!==mt(I.leafletObject)))),l.leafletRef.removeLayer(I.leafletObject)},registerLayerControl(I){l.layerControl=I,l.layersToAdd.forEach($=>{l.layerControl.addLayer($)}),l.layersToAdd=[],P(I)},registerControl(I){l.leafletRef.addControl(I.leafletObject)},setZoom(I){const $=l.leafletRef.getZoom();I!==$&&l.leafletRef.setZoom(I,q.value)},setCrs(I){const $=l.leafletRef.getBounds();l.leafletRef.options.crs=I,l.leafletRef.fitBounds($,{animate:!1,padding:[0,0]})},fitBounds(I){l.leafletRef.fitBounds(I,H.value)},setBounds(I){if(!I)return;const $=kt(I);$.isValid()&&!(l.lastSetBounds||l.leafletRef.getBounds()).equals($,0)&&(l.lastSetBounds=$,l.leafletRef.fitBounds($))},setCenter(I){if(I==null)return;const $=jt(I),ut=l.lastSetCenter||l.leafletRef.getCenter();(ut.lat!==$.lat||ut.lng!==$.lng)&&(l.lastSetCenter=$,l.leafletRef.panTo($,q.value))}};_i(v,Ut.addLayer),_i(M,Ut.removeLayer),_i(P,Ut.registerControl),_i(S,Ut.registerLayerControl),l.leafletRef=xe(X(a.value,y)),le(Ut,l.leafletRef,c),Lo(l.leafletRef,lt),Lo(l.leafletRef,g),l.ready=!0,Jt(()=>h.emit("ready",l.leafletRef))}),rn(()=>{ko(lt),l.leafletRef&&(l.leafletRef.off(),l.leafletRef.remove())});const N=ci(()=>l.leafletRef),xt=ci(()=>l.ready);return{root:a,ready:xt,leafletObject:N,attrs:x}},render({attrs:c}){return c.style||(c.style={}),c.style.width||(c.style.width="100%"),c.style.height||(c.style.height="100%"),ae("div",{...c,ref:"root"},this.ready&&this.$slots.default?this.$slots.default():{})}}),ia=["Symbol(Comment)","Symbol(Text)"],na=["LTooltip","LPopup"],Wo={...be,draggable:{type:Boolean,default:void 0},icon:{type:[Object]},zIndexOffset:{type:Number},latLng:{type:[Object,Array],custom:!0,required:!0}},oa=(c,h,a)=>{const{options:l,methods:m}=Do(c,h,a),y=ue(c,Wo,l),g={...m,setDraggable(x){h.value.dragging&&(x?h.value.dragging.enable():h.value.dragging.disable())},latLngSync(x){a.emit("update:latLng",x.latlng),a.emit("update:lat-lng",x.latlng)},setLatLng(x){if(x!=null&&h.value){const v=h.value.getLatLng();(!v||!v.equals(x))&&h.value.setLatLng(x)}}};return{options:y,methods:g}},sa=(c,h)=>{const a=h.slots.default&&h.slots.default();return a&&a.length&&a.some(ra)};function ra(c){return!(ia.includes(c.type.toString())||na.includes(c.type.name))}const aa=oe({name:"LMarker",props:Wo,setup(c,h){const a=G(),l=G(!1),m=se(he),y=zt(He);Ft(Eo,()=>{var M;return!!((M=a.value)!=null&&M.getElement())}),Ft(Io,M=>{var P,S;const q=$t((P=a.value)==null?void 0:P.getElement)&&((S=a.value)==null?void 0:S.getElement());q&&(q.innerHTML=M)}),Ft(Bo,M=>{var P;return((P=a.value)==null?void 0:P.setIcon)&&a.value.setIcon(M)});const{options:g,methods:x}=oa(c,a,h),v={moveHandler:Ho(x.latLngSync)};return re(async()=>{const{marker:M,divIcon:P}=m?Wt.L:await Mt(()=>import("./leaflet-src.esm-9c358b30.js"),[]);sa(g,h)&&(g.icon=P({className:""})),a.value=xe(M(c.latLng,g));const{listeners:S}=we(h.attrs);a.value.on(S),a.value.on("move",v.moveHandler),le(x,a.value,c),y({...c,...x,leafletObject:a.value}),l.value=!0,Jt(()=>h.emit("ready",a.value))}),rn(()=>ko(v)),{ready:l,leafletObject:a}},render(){return $r(this.ready,this.$slots)}}),la={...No,smoothFactor:{type:Number},noClip:{type:Boolean,default:void 0},latLngs:{type:Array,required:!0,custom:!0}},So={...la},jo={...We,content:{type:String,default:null}},ua=(c,h)=>{const{options:a,methods:l}=je(c),m={...l,setContent(y){h.value&&y!==null&&y!==void 0&&h.value.setContent(y)}};return{options:a,methods:m}},ha=c=>c.default?ae("div",{ref:"root"},c.default()):null;({...jo});({...So,latLngs:{...So.latLngs}});const un={...ln,tms:{type:Boolean,default:void 0},subdomains:{type:[String,Array],validator:c=>typeof c=="string"?!0:Array.isArray(c)?c.every(h=>typeof h=="string"):!1},detectRetina:{type:Boolean,default:void 0},url:{type:String,required:!0,custom:!0}},ca=(c,h,a)=>{const{options:l,methods:m}=Fo(c,h,a),y=ue(c,un,l),g={...m};return{options:y,methods:g}},da=oe({props:un,setup(c,h){const a=G(),l=se(he),m=zt(He),{options:y,methods:g}=ca(c,a,h);return re(async()=>{const{tileLayer:x}=l?Wt.L:await Mt(()=>import("./leaflet-src.esm-9c358b30.js"),[]);a.value=xe(x(c.url,y));const{listeners:v}=we(h.attrs);a.value.on(v),le(g,a.value,c),m({...c,...g,leafletObject:a.value}),Jt(()=>h.emit("ready",a.value))}),{leafletObject:a}},render(){return null}}),fa={...jo},_a=(c,h)=>{const{options:a,methods:l}=ua(c,h),m=zt(Ro);return rn(()=>{m()}),{options:a,methods:l}},pa=oe({name:"LTooltip",props:fa,setup(c,h){const a=G(),l=G(null),m=se(he),y=zt(Zo),{options:g,methods:x}=_a(c,a);return re(async()=>{const{tooltip:v}=m?Wt.L:await Mt(()=>import("./leaflet-src.esm-9c358b30.js"),[]);a.value=xe(v(g)),le(x,a.value,c);const{listeners:M}=we(h.attrs);a.value.on(M),a.value.setContent(c.content||l.value||""),y(a.value),Jt(()=>h.emit("ready",a.value))}),{root:l,leafletObject:a}},render(){return ha(this.$slots)}});({...un});var nn={exports:{}};/* @preserve * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade */(function(c,h){(function(a,l){l(h)})(br,function(a){var l="1.9.4";function m(t){var e,i,n,o;for(i=1,n=arguments.length;i"u"||!L||!L.Mixin)){t=K(t)?t:[t];for(var e=0;e0?Math.floor(t):Math.ceil(t)};k.prototype={clone:function(){return new k(this.x,this.y)},add:function(t){return this.clone()._add(z(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(z(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 k(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new k(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=hn(this.x),this.y=hn(this.y),this},distanceTo:function(t){t=z(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=z(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=z(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+q(this.x)+", "+q(this.y)+")"}};function z(t,e,i){return t instanceof k?t:K(t)?new k(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new k(t.x,t.y):new k(t,e,i)}function Y(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=ft(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,r=o.y>=e.y&&n.y<=i.y;return s&&r},overlaps:function(t){t=ft(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.xe.y&&n.y=e.lat&&o.lat<=i.lat&&n.lng>=e.lng&&o.lng<=i.lng},intersects:function(t){t=et(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,r=o.lng>=e.lng&&n.lng<=i.lng;return s&&r},overlaps:function(t){t=et(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.late.lng&&n.lng1,rs=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",S,e),window.removeEventListener("testPassiveEventSupport",S,e)}catch{}return t}(),as=function(){return!!document.createElement("canvas").getContext}(),Li=!!(document.createElementNS&&dn("svg").createSVGRect),ls=!!Li&&function(){var t=document.createElement("div");return t.innerHTML="",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),us=!Li&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&typeof e.adj=="object"}catch{return!1}}(),hs=navigator.platform.indexOf("Mac")===0,cs=navigator.platform.indexOf("Linux")===0;function Ot(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var b={ie:Ge,ielt9:Ko,edge:_n,webkit:xi,android:pn,android23:mn,androidStock:Yo,opera:wi,chrome:gn,gecko:vn,safari:Jo,phantom:yn,opera12:xn,win:Xo,ie3d:wn,webkit3d:bi,gecko3d:bn,any3d:Qo,mobile:Se,mobileWebkit:ts,mobileWebkit3d:es,msPointer:Ln,pointer:Pn,touch:is,touchNative:Tn,mobileOpera:ns,mobileGecko:os,retina:ss,passiveEvents:rs,canvas:as,svg:Li,vml:us,inlineSvg:ls,mac:hs,linux:cs},Sn=b.msPointer?"MSPointerDown":"pointerdown",Cn=b.msPointer?"MSPointerMove":"pointermove",Mn=b.msPointer?"MSPointerUp":"pointerup",zn=b.msPointer?"MSPointerCancel":"pointercancel",Pi={touchstart:Sn,touchmove:Cn,touchend:Mn,touchcancel:zn},kn={touchstart:gs,touchmove:qe,touchend:qe,touchcancel:qe},ce={},On=!1;function ds(t,e,i){return e==="touchstart"&&ms(),kn[e]?(i=kn[e].bind(this,i),t.addEventListener(Pi[e],i,!1),i):(console.warn("wrong event specified:",e),S)}function fs(t,e,i){if(!Pi[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Pi[e],i,!1)}function _s(t){ce[t.pointerId]=t}function ps(t){ce[t.pointerId]&&(ce[t.pointerId]=t)}function An(t){delete ce[t.pointerId]}function ms(){On||(document.addEventListener(Sn,_s,!0),document.addEventListener(Cn,ps,!0),document.addEventListener(Mn,An,!0),document.addEventListener(zn,An,!0),On=!0)}function qe(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var i in ce)e.touches.push(ce[i]);e.changedTouches=[e],t(e)}}function gs(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&ht(e),qe(t,e)}function vs(t){var e={},i,n;for(n in t)i=t[n],e[n]=i&&i.bind?i.bind(t):i;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var ys=200;function xs(t,e){t.addEventListener("dblclick",e);var i=0,n;function o(s){if(s.detail!==1){n=s.detail;return}if(!(s.pointerType==="mouse"||s.sourceCapabilities&&!s.sourceCapabilities.firesTouchEvents)){var r=Rn(s);if(!(r.some(function(_){return _ instanceof HTMLLabelElement&&_.attributes.for})&&!r.some(function(_){return _ instanceof HTMLInputElement||_ instanceof HTMLSelectElement}))){var u=Date.now();u-i<=ys?(n++,n===2&&e(vs(s))):n=1,i=u}}}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function ws(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var Ti=Ye(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ce=Ye(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),En=Ce==="webkitTransition"||Ce==="OTransition"?Ce+"End":"transitionend";function In(t){return typeof t=="string"?document.getElementById(t):t}function Me(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}function D(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function J(t){var e=t.parentNode;e&&e.removeChild(t)}function Ke(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function de(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function fe(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function Si(t,e){if(t.classList!==void 0)return t.classList.contains(e);var i=$e(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function A(t,e){if(t.classList!==void 0)for(var i=lt(e),n=0,o=i.length;n0?2*window.devicePixelRatio:1;function Nn(t){return b.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Ps:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Di(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch{return!1}return i!==t}var Ts={__proto__:null,on:O,off:U,stopPropagation:ee,disableScrollPropagation:Ri,disableClickPropagation:Ae,preventDefault:ht,stop:ie,getPropagationPath:Rn,getMousePosition:Dn,getWheelDelta:Nn,isExternalTarget:Di,addListener:O,removeListener:U},Vn=Pe.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=te(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=ut(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,et(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var i=z(e.paddingTopLeft||e.padding||[0,0]),n=z(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),s=this.project(t),r=this.getPixelBounds(),u=ft([r.min.add(i),r.max.subtract(n)]),_=u.getSize();if(!u.contains(s)){this._enforcingBounds=!0;var p=s.subtract(u.getCenter()),w=u.extend(s).getSize().subtract(_);o.x+=p.x<0?-w.x:w.x,o.y+=p.y<0?-w.y:w.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=m({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),o=i.divideBy(2).round(),s=n.subtract(o);return!s.x&&!s.y?this:(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(g(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=m({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=g(this._handleGeolocationResponse,this),i=g(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,i=t.coords.longitude,n=new W(e,i),o=n.toBounds(t.coords.accuracy*2),s=this._locateOptions;if(s.setView){var r=this.getBoundsZoom(o);this.setView(n,s.maxZoom?Math.min(r,s.maxZoom):r)}var u={latlng:n,bounds:o,timestamp:t.timestamp};for(var _ in t.coords)typeof t.coords[_]=="number"&&(u[_]=t.coords[_]);this.fire("locationfound",u)}},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{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),J(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(wt(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)J(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=D("div",i,e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new _t(e,i)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=et(t),i=z(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),u=t.getSouthEast(),_=this.getSize().subtract(i),p=ft(this.project(u,n),this.project(r,n)).getSize(),w=b.any3d?this.options.zoomSnap:1,C=_.x/p.x,E=_.y/p.y,ct=e?Math.max(C,E):Math.min(C,E);return n=this.getScaleZoom(ct,n),w&&(n=Math.round(n/(w/100))*(w/100),n=e?Math.ceil(n/w)*w:Math.floor(n/w)*w),Math.max(o,Math.min(s,n))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new k(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 Y(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=e===void 0?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===void 0?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(B(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(z(t),e)},layerPointToLatLng:function(t){var e=z(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(B(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(B(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(et(t))},distance:function(t,e){return this.options.crs.distance(B(t),B(e))},containerPointToLayerPoint:function(t){return z(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return z(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(z(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(B(t)))},mouseEventToContainerPoint:function(t){return Dn(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=In(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");O(e,"scroll",this._onScroll,this),this._containerId=v(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&b.any3d,A(t,"leaflet-container"+(b.touch?" leaflet-touch":"")+(b.retina?" leaflet-retina":"")+(b.ielt9?" leaflet-oldie":"")+(b.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=Me(t,"position");e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),it(this._mapPane,new k(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(A(t.markerPane,"leaflet-zoom-hide"),A(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){it(this._mapPane,new k(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){e===void 0&&(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 wt(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){it(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[v(this._container)]=this;var e=t?U:O;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),b.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){wt(this._resizeRequest),this._resizeRequest=ut(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=e==="mouseout"||e==="mouseover",s=t.target||t.srcElement,r=!1;s;){if(n=this._targets[v(s)],n&&(e==="click"||e==="preclick")&&this._draggableMoved(n)){r=!0;break}if(n&&n.listens(e,!0)&&(o&&!Di(s,t)||(i.push(n),o))||s===this._container)break;s=s.parentNode}return!i.length&&!r&&!o&&this.listens(e,!0)&&(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(e))){var i=t.type;i==="mousedown"&&Ai(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if(t.type==="click"){var n=m({},t);n.type="preclick",this._fireDOMEvent(n,n.type,i)}var o=this._findEventTargets(t,e);if(i){for(var s=[],r=0;r0?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=b.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(){Q(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(i)?!1:(this.panBy(i,e),!0)},_createAnimProxy:function(){var t=this._proxy=D("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var i=Ti,n=this._proxy.style[i];Qt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){J(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Qt(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||i.animate===!1||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 i.animate!==!0&&!this.getSize().contains(o)?!1:(ut(function(){this._moveStart(!0,i.noMoveStart||!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,A(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(g(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Q(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 Ss(t,e){return new Z(t,e)}var Tt=Bt.extend({options:{position:"topright"},initialize:function(t){N(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 A(e,"leaflet-control"),i.indexOf("bottom")!==-1?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(J(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()}}),Ee=function(t){return new Tt(t)};Z.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=D("div",e+"control-container",this._container);function n(o,s){var r=e+o+" "+e+s;t[o+s]=D("div",r,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)J(this._controlCorners[t]);J(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Fn=Tt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i1,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(v(t.target)),i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),n;t.overlay?(n=document.createElement("input"),n.type="checkbox",n.className="leaflet-control-layers-selector",n.defaultChecked=i):n=this._createRadioElement("leaflet-base-layers_"+v(this),i),this._layerControlInputs.push(n),n.layerId=v(t.layer),O(n,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("span");e.appendChild(s),s.appendChild(n),s.appendChild(o);var r=t.overlay?this._overlaysList:this._baseLayersList;return r.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,i,n=[],o=[];this._handlingClick=!0;for(var s=t.length-1;s>=0;s--)e=t[s],i=this._getLayer(e.layerId).layer,e.checked?n.push(i):e.checked||o.push(i);for(s=0;s=0;o--)e=t[o],i=this._getLayer(e.layerId).layer,e.disabled=i.options.minZoom!==void 0&&ni.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,O(t,"click",ht),this.expand();var e=this;setTimeout(function(){U(t,"click",ht),e._preventClick=!1})}}),Cs=function(t,e,i){return new Fn(t,e,i)},Ni=Tt.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=D("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._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var s=D("a",i,n);return s.innerHTML=t,s.href="#",s.title=e,s.setAttribute("role","button"),s.setAttribute("aria-label",e),Ae(s),O(s,"click",ie),O(s,"click",o,this),O(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";Q(this._zoomInButton,e),Q(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(A(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(A(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});Z.mergeOptions({zoomControl:!0}),Z.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ni,this.addControl(this.zoomControl))});var Ms=function(t){return new Ni(t)},Hn=Tt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=D("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=D("div",e,i)),t.imperial&&(this._iScale=D("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=t*3.2808399,i,n,o;e>5280?(i=e/5280,n=this._getRoundNum(i),this._updateScale(this._iScale,n+" mi",n/i)):(o=this._getRoundNum(e),this._updateScale(this._iScale,o+" ft",o/e))},_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 i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1,e*i}}),zs=function(t){return new Hn(t)},ks='',Vi=Tt.extend({options:{position:"bottomright",prefix:''+(b.inlineSvg?ks+" ":"")+"Leaflet"},initialize:function(t){N(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=D("div","leaflet-control-attribution"),Ae(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' ')}}});Z.mergeOptions({attributionControl:!0}),Z.addInitHook(function(){this.options.attributionControl&&new Vi().addTo(this)});var Os=function(t){return new Vi(t)};Tt.Layers=Fn,Tt.Zoom=Ni,Tt.Scale=Hn,Tt.Attribution=Vi,Ee.layers=Cs,Ee.zoom=Ms,Ee.scale=zs,Ee.attribution=Os;var Et=Bt.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Et.addTo=function(t,e){return t.addHandler(e,this),this};var As={Events:gt},Wn=b.touch?"touchstart mousedown":"mousedown",qt=Pe.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){N(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(O(this._dragStartTarget,Wn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(qt._dragging===this&&this.finishDrag(!0),U(this._dragStartTarget,Wn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Si(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){qt._dragging===this&&this.finishDrag();return}if(!(qt._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(qt._dragging=this,this._preventOutline&&Ai(this._element),zi(),ze(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,i=Bn(this._element);this._startPoint=new k(e.clientX,e.clientY),this._startPos=te(this._element),this._parentScale=Ei(i);var n=t.type==="mousedown";O(document,n?"mousemove":"touchmove",this._onMove,this),O(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new k(e.clientX,e.clientY)._subtract(this._startPoint);!i.x&&!i.y||Math.abs(i.x)+Math.abs(i.y)s&&(r=u,s=_);s>i&&(e[r]=1,Hi(t,e,i,n,r),Hi(t,e,i,r,o))}function Zs(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;ne&&(i.push(t[n]),o=n);return oe.max.x&&(i|=2),t.ye.max.y&&(i|=8),i}function Rs(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Ie(t,e,i,n){var o=e.x,s=e.y,r=i.x-o,u=i.y-s,_=r*r+u*u,p;return _>0&&(p=((t.x-o)*r+(t.y-s)*u)/_,p>1?(o=i.x,s=i.y):p>0&&(o+=r*p,s+=u*p)),r=t.x-o,u=t.y-s,n?r*r+u*u:new k(o,s)}function Lt(t){return!K(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function Yn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Lt(t)}function Jn(t,e){var i,n,o,s,r,u,_,p;if(!t||t.length===0)throw new Error("latlngs not passed");Lt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var w=B([0,0]),C=et(t),E=C.getNorthWest().distanceTo(C.getSouthWest())*C.getNorthEast().distanceTo(C.getNorthWest());E<1700&&(w=Fi(t));var ct=t.length,at=[];for(i=0;in){_=(s-n)/o,p=[u.x-_*(u.x-r.x),u.y-_*(u.y-r.y)];break}var pt=e.unproject(z(p));return B([pt.lat+w.lat,pt.lng+w.lng])}var Ds={__proto__:null,simplify:Gn,pointToSegmentDistance:qn,closestPointOnSegment:Is,clipSegment:$n,_getEdgeIntersection:Qe,_getBitCode:ne,_sqClosestPointOnSegment:Ie,isFlat:Lt,_flat:Yn,polylineCenter:Jn},Wi={project:function(t){return new k(t.lng,t.lat)},unproject:function(t){return new W(t.y,t.x)},bounds:new Y([-180,-90],[180,90])},ji={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Y([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,s=Math.sqrt(1-o*o),r=s*Math.sin(n),u=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2);return n=-i*Math.log(Math.max(u,1e-10)),new k(t.lng*e*i,n)},unproject:function(t){for(var e=180/Math.PI,i=this.R,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),s=Math.exp(-t.y/i),r=Math.PI/2-2*Math.atan(s),u=0,_=.1,p;u<15&&Math.abs(_)>1e-7;u++)p=o*Math.sin(r),p=Math.pow((1-p)/(1+p),o/2),_=Math.PI/2-2*Math.atan(s*p)-r,r+=_;return new W(r*e,t.x*e/i)}},Ns={__proto__:null,LonLat:Wi,Mercator:ji,SphericalMercator:mi},Vs=m({},Gt,{code:"EPSG:3395",projection:ji,transformation:function(){var t=.5/(Math.PI*ji.R);return Te(t,.5,-t,.5)}()}),Xn=m({},Gt,{code:"EPSG:4326",projection:Wi,transformation:Te(1/180,1,-1/180,.5)}),Fs=m({},Zt,{projection:Wi,transformation:Te(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});Zt.Earth=Gt,Zt.EPSG3395=Vs,Zt.EPSG3857=vi,Zt.EPSG900913=qo,Zt.EPSG4326=Xn,Zt.Simple=Fs;var St=Pe.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[v(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[v(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})}}});Z.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=v(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=v(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 v(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){t=t?K(t)?t:[t]:[];for(var e=0,i=t.length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&e[0]instanceof W&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){Dt.prototype._setLatLngs.call(this,t),Lt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Lt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new k(e,e);if(t=new Y(t.min.subtract(i),t.max.add(i)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var n=0,o=this._rings.length,s;nt.y!=o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x&&(e=!e);return e||Dt.prototype._containsPoint.call(this,t,!0)}});function $s(t,e){return new me(t,e)}var Nt=Rt.extend({initialize:function(t,e){N(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=K(t)?t:t.features,i,n,o;if(e){for(i=0,n=e.length;i0&&o.push(o[0].slice()),o}function ge(t,e){return t.feature?m({},t.feature,{geometry:e}):si(e)}function si(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Ki={toGeoJSON:function(t){return ge(this,{type:"Point",coordinates:qi(this.getLatLng(),t)})}};ti.include(Ki),Ui.include(Ki),ei.include(Ki),Dt.include({toGeoJSON:function(t){var e=!Lt(this._latlngs),i=oi(this._latlngs,e?1:0,!1,t);return ge(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}}),me.include({toGeoJSON:function(t){var e=!Lt(this._latlngs),i=e&&!Lt(this._latlngs[0]),n=oi(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),ge(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),_e.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),ge(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint")return this.toMultiPoint(t);var i=e==="GeometryCollection",n=[];return this.eachLayer(function(o){if(o.toGeoJSON){var s=o.toGeoJSON(t);if(i)n.push(s.geometry);else{var r=si(s);r.type==="FeatureCollection"?n.push.apply(n,r.features):n.push(r)}}}),i?ge(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});function eo(t,e){return new Nt(t,e)}var Ys=eo,ri=St.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=et(e),N(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(A(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){J(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&&de(this._image),this},bringToBack:function(){return this._map&&fe(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=et(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",e=this._image=t?this._url:D("img");if(A(e,"leaflet-image-layer"),this._zoomAnimated&&A(e,"leaflet-zoom-animated"),this.options.className&&A(e,this.options.className),e.onselectstart=S,e.onmousemove=S,e.onload=g(this.fire,this,"load"),e.onerror=g(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}e.src=this._url,e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Qt(this._image,i,e)},_reset:function(){var t=this._image,e=new Y(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();it(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){bt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Js=function(t,e,i){return new ri(t,e,i)},io=ri.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",e=this._image=t?this._url:D("video");if(A(e,"leaflet-image-layer"),this._zoomAnimated&&A(e,"leaflet-zoom-animated"),this.options.className&&A(e,this.options.className),e.onselectstart=S,e.onmousemove=S,e.onloadeddata=g(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],o=0;o0?n:[e.src];return}K(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;so?(e.height=o+"px",A(t,s)):Q(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();it(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,e=parseInt(Me(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new k(this._containerLeft,-i-this._containerBottom);o._add(te(this._container));var s=t.layerPointToContainerPoint(o),r=z(this.options.autoPanPadding),u=z(this.options.autoPanPaddingTopLeft||r),_=z(this.options.autoPanPaddingBottomRight||r),p=t.getSize(),w=0,C=0;s.x+n+_.x>p.x&&(w=s.x+n-p.x+_.x),s.x-w-u.x<0&&(w=s.x-u.x),s.y+i+_.y>p.y&&(C=s.y+i-p.y+_.y),s.y-C-u.y<0&&(C=s.y-u.y),(w||C)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([w,C]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),tr=function(t,e){return new ai(t,e)};Z.mergeOptions({closePopupOnClick:!0}),Z.include({openPopup:function(t,e,i){return this._initOverlay(ai,t,e,i).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),St.include({bindPopup:function(t,e){return this._popup=this._initOverlay(ai,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 Rt||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){ie(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Kt)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var li=It.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){It.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){It.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=It.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=D("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+v(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,s=n.latLngToContainerPoint(n.getCenter()),r=n.layerPointToContainerPoint(t),u=this.options.direction,_=o.offsetWidth,p=o.offsetHeight,w=z(this.options.offset),C=this._getAnchor();u==="top"?(e=_/2,i=p):u==="bottom"?(e=_/2,i=0):u==="center"?(e=_/2,i=p/2):u==="right"?(e=0,i=p/2):u==="left"?(e=_,i=p/2):r.xthis.options.maxZoom||in?this._retainParent(o,s,r,n):!1)},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var r=new k(o,s);r.z=i+1;var u=this._tileCoordsToKey(r),_=this._tiles[u];if(_&&_.active){_.retain=!0;continue}else _&&_.loaded&&(_.retain=!0);i+1this.options.maxZoom||this.options.minZoom!==void 0&&o1){this._setView(t,i);return}for(var C=o.min.y;C<=o.max.y;C++)for(var E=o.min.x;E<=o.max.x;E++){var ct=new k(E,C);if(ct.z=this._tileZoom,!!this._isValidTile(ct)){var at=this._tiles[this._tileCoordsToKey(ct)];at?at.current=!0:r.push(ct)}}if(r.sort(function(pt,ye){return pt.distanceTo(s)-ye.distanceTo(s)}),r.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Pt=document.createDocumentFragment();for(E=0;Ei.max.x)||!e.wrapLat&&(t.yi.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return et(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),s=e.unproject(n,t.z),r=e.unproject(o,t.z);return[s,r]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new _t(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 k(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(J(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){A(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=S,t.onmousemove=S,b.ielt9&&this.options.opacity<1&&bt(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),g(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&ut(g(this._tileReady,this,t,null,o)),it(o,i),this._tiles[n]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,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&&(i.loaded=+new Date,this._map._fadeAnimated?(bt(i.el,0),wt(this._fadeFrame),this._fadeFrame=ut(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(A(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),b.ielt9||!this._map._fadeAnimated?ut(this._pruneTiles,this):setTimeout(g(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new k(this._wrapX?P(t.x,this._wrapX):t.x,this._wrapY?P(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new Y(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 nr(t){return new Ze(t)}var ve=Ze.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=N(this,e),e.detectRetina&&b.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return O(i,"load",g(this._tileOnLoad,this,e,i)),O(i,"error",g(this._tileOnError,this,e,i)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:b.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return rt(this._url,m(e,this.options))},_tileOnLoad:function(t,e){b.ielt9?setTimeout(g(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,i=this.options.zoomReverse,n=this.options.zoomOffset;return i&&(t=e-t),t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=S,e.onerror=S,!e.complete)){e.src=jt;var i=this._tiles[t].coords;J(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",jt),Ze.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!(!this._map||i&&i.getAttribute("src")===jt))return Ze.prototype._tileReady.call(this,t,e,i)}});function so(t,e){return new ve(t,e)}var ro=ve.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=m({},this.defaultWmsParams);for(var n in e)n in this.options||(i[n]=e[n]);e=N(this,e);var o=e.detectRetina&&b.retina?2:1,s=this.getTileSize();i.width=s.x*o,i.height=s.y*o,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ve.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=ft(i.project(e[0]),i.project(e[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===Xn?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),u=ve.prototype.getTileUrl.call(this,t);return u+xt(this.wmsParams,u,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,e){return m(this.wmsParams,t),e||this.redraw(),this}});function or(t,e){return new ro(t,e)}ve.WMS=ro,so.wms=or;var Vt=St.extend({options:{padding:.1},initialize:function(t){N(this,t),v(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),A(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),s=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));b.any3d?Qt(this._container,s,i):it(this._container,s)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new Y(i,i.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ao=Vt.extend({options:{tolerance:0},getEvents:function(){var t=Vt.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Vt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");O(t,"mousemove",this._onMouseMove,this),O(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),O(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){wt(this._redrawRequest),delete this._ctx,J(this._container),U(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var e in this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Vt.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=b.retina?2:1;it(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",b.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Vt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[v(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[v(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var e=t.options.dashArray.split(/[, ]+/),i=[],n,o;for(o=0;o')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),sr={_initContainer:function(){this._container=D("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Vt.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Re("shape");A(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Re("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[v(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;J(e),t.removeInteractiveTarget(e),delete this._layers[v(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=Re("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=K(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=Re("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,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){de(t._container)},_bringToBack:function(t){fe(t._container)}},ui=b.vml?Re:dn,De=Vt.extend({_initContainer:function(){this._container=ui("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ui("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){J(this._container),U(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Vt.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)),it(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=ui("path");t.options.className&&A(e,t.options.className),t.options.interactive&&A(e,"leaflet-interactive"),this._updateStyle(t),this._layers[v(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){J(t._path),t.removeInteractiveTarget(t._path),delete this._layers[v(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,fn(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||i,o="a"+i+","+n+" 0 1,0 ",s=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+i*2+",0 "+o+-i*2+",0 ";this._setPath(t,s)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){de(t._path)},_bringToBack:function(t){fe(t._path)}});b.vml&&De.include(sr);function uo(t){return b.svg||b.vml?new De(t):null}Z.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var e=this._paneRenderers[t];return e===void 0&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&lo(t)||uo(t)}});var ho=me.extend({initialize:function(t,e){me.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=et(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function rr(t,e){return new ho(t,e)}De.create=ui,De.pointsToPath=fn,Nt.geometryToLayer=ii,Nt.coordsToLatLng=Gi,Nt.coordsToLatLngs=ni,Nt.latLngToCoords=qi,Nt.latLngsToCoords=oi,Nt.getFeature=ge,Nt.asFeature=si,Z.mergeOptions({boxZoom:!0});var co=Et.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(){O(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){U(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){J(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),ze(),zi(),this._startPoint=this._map.mouseEventToContainerPoint(t),O(document,{contextmenu:ie,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=D("div","leaflet-zoom-box",this._container),A(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new Y(this._point,this._startPoint),i=e.getSize();it(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(J(this._box),Q(this._container,"leaflet-crosshair")),ke(),ki(),U(document,{contextmenu:ie,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(g(this._resetState,this),0);var e=new _t(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Z.addInitHook("addHandler","boxZoom",co),Z.mergeOptions({doubleClickZoom:!0});var fo=Et.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;e.options.doubleClickZoom==="center"?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});Z.addInitHook("addHandler","doubleClickZoom",fo),Z.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var _o=Et.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new qt(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))}A(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Q(this._map._container,"leaflet-grab"),Q(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=et(this._map.options.maxBounds);this._offsetLimit=ft(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.xe.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,s=(n+e+i)%t-e-i,r=Math.abs(o+i)0?s:-s))-e;this._delta=0,this._startTime=null,r&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});Z.addInitHook("addHandler","scrollWheelZoom",mo);var ar=600;Z.mergeOptions({tapHold:b.touchNative&&b.safari&&b.mobile,tapTolerance:15});var go=Et.extend({addHooks:function(){O(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){U(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var e=t.touches[0];this._startPos=this._newPos=new k(e.clientX,e.clientY),this._holdTimeout=setTimeout(g(function(){this._cancel(),this._isTapValid()&&(O(document,"touchend",ht),O(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),ar),O(document,"touchend touchcancel contextmenu",this._cancel,this),O(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){U(document,"touchend",ht),U(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),U(document,"touchend touchcancel contextmenu",this._cancel,this),U(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new k(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)}});Z.addInitHook("addHandler","tapHold",go),Z.mergeOptions({touchZoom:b.touch,bounceAtZoomLimits:!0});var vo=Et.extend({addHooks:function(){A(this._map._container,"leaflet-touch-zoom"),O(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Q(this._map._container,"leaflet-touch-zoom"),U(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming)){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.touchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),O(document,"touchmove",this._onTouchMove,this),O(document,"touchend touchcancel",this._onTouchEnd,this),ht(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,o===1)return}else{var s=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(o===1&&s.x===0&&s.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),wt(this._animRequest);var r=g(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=ut(r,this,!0),ht(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,wt(this._animRequest),U(document,"touchmove",this._onTouchMove,this),U(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))}});Z.addInitHook("addHandler","touchZoom",vo),Z.BoxZoom=co,Z.DoubleClickZoom=fo,Z.Drag=_o,Z.Keyboard=po,Z.ScrollWheelZoom=mo,Z.TapHold=go,Z.TouchZoom=vo,a.Bounds=Y,a.Browser=b,a.CRS=Zt,a.Canvas=ao,a.Circle=Ui,a.CircleMarker=ei,a.Class=Bt,a.Control=Tt,a.DivIcon=oo,a.DivOverlay=It,a.DomEvent=Ts,a.DomUtil=Ls,a.Draggable=qt,a.Evented=Pe,a.FeatureGroup=Rt,a.GeoJSON=Nt,a.GridLayer=Ze,a.Handler=Et,a.Icon=pe,a.ImageOverlay=ri,a.LatLng=W,a.LatLngBounds=_t,a.Layer=St,a.LayerGroup=_e,a.LineUtil=Ds,a.Map=Z,a.Marker=ti,a.Mixin=As,a.Path=Kt,a.Point=k,a.PolyUtil=Es,a.Polygon=me,a.Polyline=Dt,a.Popup=ai,a.PosAnimation=Vn,a.Projection=Ns,a.Rectangle=ho,a.Renderer=Vt,a.SVG=De,a.SVGOverlay=no,a.TileLayer=ve,a.Tooltip=li,a.Transformation=gi,a.Util=Uo,a.VideoOverlay=io,a.bind=g,a.bounds=ft,a.canvas=lo,a.circle=qs,a.circleMarker=Gs,a.control=Ee,a.divIcon=ir,a.extend=m,a.featureGroup=Ws,a.geoJSON=eo,a.geoJson=Ys,a.gridLayer=nr,a.icon=js,a.imageOverlay=Js,a.latLng=B,a.latLngBounds=et,a.layerGroup=Hs,a.map=Ss,a.marker=Us,a.point=z,a.polygon=$s,a.polyline=Ks,a.popup=tr,a.rectangle=rr,a.setOptions=N,a.stamp=v,a.svg=uo,a.svgOverlay=Qs,a.tileLayer=so,a.tooltip=er,a.transformation=Te,a.version=l,a.videoOverlay=Xs;var lr=window.L;a.noConflict=function(){return window.L=lr,this},window.L=a})})(nn,nn.exports);var Fe=nn.exports;const ma=Lr(Fe),ga=Ir({__proto__:null,default:ma},[Fe]);const va={components:{LMap:ea,LTileLayer:da,LMarker:aa,LTooltip:pa,L:Fe.L,icon:Fe.icon},setup(){const c=l=>`${pi}media/map_icons/${l}.png`,h={icon_cod:{iconUrl:c("fns"),iconSize:[30,30],iconAnchor:[16,40]},icon_metro:{iconUrl:c("mos_metro"),iconSize:[30,25],iconAnchor:[10,20]},icon_mcd:{iconUrl:c("mcd_d2"),iconSize:[32,18],iconAnchor:[10,20]},icon_bus:{iconUrl:c("bus"),iconSize:[18,18],iconAnchor:[1,1]}},a=G([{coordinate:[55.83451,37.40848],icon:h.icon_cod,tooltip:"МИ ФНС России по ЦОД №2",tooltip_bus:""},{coordinate:[55.83309,37.39933],icon:h.icon_mcd,tooltip:'МЦД D2: пл."Трикотажная"',tooltip_bus:""},{coordinate:[55.82741,37.43715],icon:h.icon_metro,tooltip:'Ст.метро: "Тушинская"',tooltip_bus:""},{coordinate:[55.82705,37.4411],icon:h.icon_mcd,tooltip:'МЦД D2: пл. "Тушинская"',tooltip_bus:""},{coordinate:[55.8496,37.43925],icon:h.icon_metro,tooltip:'Ст.метро: "Сходненская"',tooltip_bus:""},{coordinate:[55.835274,37.411052],icon:h.icon_bus,tooltip:'Остановка: "Налоговый городок"',tooltip_bus:"Автобусы:№368, №с377"},{coordinate:[55.833193,37.400858],icon:h.icon_bus,tooltip:'Остановка:"МЦД Трикотажная"',tooltip_bus:"Автобусы: №26, №368, №с377, №с396"},{coordinate:[55.82524,37.43575],icon:h.icon_bus,tooltip:'Остановка: "метро Тушинская", выход:5 ',tooltip_bus:"Автобусы: №400, №741, №741к, №856, №436, №575"},{coordinate:[55.8501,37.43905],icon:h.icon_bus,tooltip:'Остановка: "метро Сходненская", выход:9',tooltip_bus:"Автобус: №368"},{coordinate:[55.83607,37.40569],icon:h.icon_bus,tooltip:'Остановка "Храм Сергия Радонежского"',tooltip_bus:"Автобусы: №88, №488, №с377, №с396"},{coordinate:[55.83132,37.4034],icon:h.icon_bus,tooltip:'Остановка "МЦД Трикотажная"',tooltip_bus:"Автобусы: №2, №210, №400Т, №741, №741к, №856, №436, №575"}]);return{icons:h,markers:a,icon:Fe.icon,address:{building:"125373, Москва, Походный проезд, двл.3, стр 1",phone:"Телефон: 8(495) 198-53-12"},address_pathes:[{title_path:"От станции МЦД «Трикотажная»,",path:'на автобусе 368, до остановки "Налоговый городок" или пешком (10 минут) до территории Налоговго городка'},{title_path:"От станции метро «Сходненская», выход:9,",path:" 1-й вагон из центра, далее на автобусе № 368"},{title_path:"От станции МЦД «Тушинская»,",path:" проехать одну остановку до станции МЦД «Трикотажная» и далее на автобусе 368 до остановки «Налоговый городок» или пешком(10 минут) до территории Налогового городка"},{title_path:"От станции метро «Тушинская», выход:5,",path:" последний вагон из центра, автобусы №2, №210, №400Т, №741, №741к, №856, №436, №575 до остановки «пл. Трикотажная» или от станции МЦД «Тушинская» проехать одну остановку до станции МЦД «Трикотажная» и далее на автобусе 368 до остановки «Налоговый городок» или пешком(10 минут) до территории Налогового городка"},{title_path:"От остановки автобуса «Храм Сергия Радонежского»",path:" и далее пешком (10 минут) до территории Налоговго городка"}],work_times:[{day:"Понедельник - Четверг",time:"09:00 - 18:00"},{day:"Пятница",time:"09:00 - 16:45"},{day:"Суббота - Воскресенье",time:"Выходной"}],baseURL:pi}}},ya={style:{"max-width":"20%","min-width":"20%","word-wrap":"break-word"}};function xa(c,h,a,l,m,y){const g=vt("l-tile-layer"),x=vt("l-tooltip"),v=vt("l-marker"),M=vt("l-map");return V(),ot(R,{"no-gutters":"",class:"h-100 gap"},{default:f(()=>[d(T,{lg:"5",md:"12",sm:"12",xs:"12",class:"flex-column d-flex"},{default:f(()=>[d(st,{elevation:"5",class:"h-100","min-height":"250"},{default:f(()=>[d(M,{zoom:14,"min-zoom":14,center:l.markers[0].coordinate},{default:f(()=>[d(g,{url:`${l.baseURL}media/Tiles/{z}/{x}/{y}.png`},null,8,["url"]),(V(!0),Ct(Ht,null,Yt(l.markers,P=>(V(),ot(v,{key:P,"lat-lng":P.coordinate,icon:l.icon(P.icon)},{default:f(()=>[d(x,null,{default:f(()=>[j("p",null,tt(P.tooltip),1),j("p",ya,tt(P.tooltip_bus),1)]),_:2},1024)]),_:2},1032,["lat-lng","icon"]))),128))]),_:1},8,["center"])]),_:1})]),_:1}),d(T,{class:"flex-column"},{default:f(()=>[d(R,{"no-gutters":"",class:"h-100 gap flex-column"},{default:f(()=>[d(T,{lg:"3",class:"w100 flex-column"},{default:f(()=>[d(st,{class:"h-100 flex-column d-flex",elevation:"5"},{default:f(()=>[d(dt,{class:"d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"},{default:f(()=>[d(R,null,{default:f(()=>[d(T,{lg:"5",class:"d-flex justify-center"},{default:f(()=>[F("Адрес")]),_:1}),d(T,{lg:"6",class:"d-flex justify-center"},{default:f(()=>[F("Время работы")]),_:1})]),_:1})]),_:1}),d(R,{class:"d-flex justify-center align-center"},{default:f(()=>[d(T,{lg:"4"},{default:f(()=>[d(yt,{class:"text-subtitle-1"},{default:f(()=>[F(tt(l.address.building),1)]),_:1}),d(yt,{class:"text-subtitle-1"},{default:f(()=>[F(tt(l.address.phone),1)]),_:1})]),_:1}),d(T,{lg:"7"},{default:f(()=>[d(en,null,{default:f(()=>[(V(!0),Ct(Ht,null,Yt(l.work_times,P=>(V(),ot(Xi,{key:P},{default:f(()=>[d(R,null,{default:f(()=>[d(T,{lg:"6",class:"text-subtitle-1 d-flex justify-center align-center"},{default:f(()=>[F(tt(P.day),1)]),_:2},1024),d(T,{lg:"6",class:"text-subtitle-1 d-flex justify-center align-center"},{default:f(()=>[F(tt(P.time),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),d(T,null,{default:f(()=>[d(st,{class:"h-100 flex-column d-flex",elevation:"5"},{default:f(()=>[d(dt,{class:"text-h6 d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"},{default:f(()=>[F(" Способ проезда ")]),_:1}),d(yt,{class:"text-subtitle-1"},{default:f(()=>[d(en,{lines:"three"},{default:f(()=>[(V(!0),Ct(Ht,null,Yt(l.address_pathes,P=>(V(),ot(Xi,{key:P},{default:f(()=>[j("strong",null,tt(P.title_path),1),F(tt(P.path),1)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const wa=Xt(va,[["render",xa]]),ba={props:{title:{type:String,default:""},size:{type:Object,default:()=>{}}}},La=j("span",{class:"text-subtitle-1 text-grey"},"Данных нет",-1);function Pa(c,h,a,l,m,y){const g=vt("vue3-autocounter");return V(),ot(st,{class:"flex-grow-1 d-flex flex-column"},{default:f(()=>[d(dt,{class:"text-h6 text-center text-uppercase"},{default:f(()=>[F(tt(a.title),1)]),_:1}),Object.keys(a.size).length>0?(V(),Ct(Ht,{key:0},[d(st,{class:"h-100 flex-column d-flex align-center justify-center text-center elevation-0"},{default:f(()=>[d(g,{class:"text-h2 font-weight-regular pb-2",ref:"counter",startAmount:0,endAmount:a.size.size,duration:2},null,8,["endAmount"])]),_:1}),d(Qi,{class:"text-center"},{default:f(()=>[F("по состоянию на "+tt(new Date(a.size.date_created).toLocaleDateString("ru-RU")),1)]),_:1})],64)):(V(),ot(st,{key:1,class:"h-100 d-flex align-center justify-center text-center"},{default:f(()=>[La]),_:1}))]),_:1})}const Ta=Xt(ba,[["render",Pa]]),Sa={components:{GeneralInformationSize:Ta},setup(){const{lgAndUp:c}=Co(),h=G([]),a=G({factsize:0,date_created:new Date}),l=G({statesize:0,date_created:new Date}),m=G([]),y=()=>{Ne.get("api/accounts/getuser/?userlogin=9966-00-001").then(M=>{h.value=M.data})},g=()=>{Ne.get("api/about_inspection/getfactsize/").then(M=>{a.value=M.data})},x=()=>{Ne.get("api/about_inspection/getstatesize/").then(M=>{l.value=M.data})};return(()=>{Ne.get("api/about_inspection/getinspectiondirections/").then(M=>{m.value=M.data})})(),x(),g(),y(),{userlinks:h,checkremote:on,directionworks:m,getstatesize:l,getfactsize:a,spravURL:sn,baseURL:pi,lgAndUp:c,date_now:new Date().toLocaleDateString("ru-RU"),caCuratorLink:G("https://www.nalog.gov.ru/rn77/about_fts/fts/structure_fts/ca_fns/9515034/")}}},Ca=j("p",{class:"font-weight-medium text-lg-subtitle-1 text-sm-caption"}," создана 01.02.2018 года в соответствии с приказом ФНС России от 27.12.2017 №ММВ-7-4/1102 ",-1),Ma={class:"mt-3"},za=["href"],ka=j("p",null," Государственный советник Российской Федерации 2 класса ",-1);function Oa(c,h,a,l,m,y){const g=vt("general-information-size");return V(),ot(R,{"no-gutters":"",class:"flex-column h-100 gap"},{default:f(()=>[d(T,null,{default:f(()=>[d(R,{"no-gutters":"",class:"flex-column h-100 gap"},{default:f(()=>[d(T,{class:"w100 flex-grow-0"},{default:f(()=>[d(st,{class:"text-center"},{default:f(()=>[d(yt,{class:"font-weight-medium text-lg-h6"},{default:f(()=>[F(" Межрегиональная инспекция Федеральной налоговой службы по централизованной обработке данных №2 "),Ca,j("p",Ma,[j("a",{class:"text-decoration-none",href:l.caCuratorLink},"Работа МИ ФНС России по ЦОД №2 координируется заместителем руководителя ФНС России Будариным Андреем Владимировичем",8,za)])]),_:1})]),_:1})]),_:1}),d(T,{class:"d-flex"},{default:f(()=>[d(R,{"no-gutters":"",class:"gap"},{default:f(()=>[d(T,{lg:"3",class:"flex-column"},{default:f(()=>[d(R,{"no-gutters":"",class:"gap flex-column h-100"},{default:f(()=>[d(T,{class:"w100"},{default:f(()=>[d(st,{class:"h-100"},{default:f(()=>[d(dt,{class:"text-h6 text-uppercase text-center"},{default:f(()=>[F(" Начальник инспекции")]),_:1}),d(tn,{class:"mb-3"}),d(Pr,{src:l.checkremote(`${l.spravURL}${l.userlinks.login}.jpg`),height:"200"},null,8,["src"]),d(dt,{class:"text-h6 text-center"},{default:f(()=>[F(tt(l.userlinks.fio),1)]),_:1}),d(yt,{class:"text-center text-body-2"},{default:f(()=>[ka]),_:1})]),_:1})]),_:1}),d(T,{class:"w100 flex-column d-flex"},{default:f(()=>[d(g,{size:l.getfactsize,title:"Фактическая численнность"},null,8,["size"])]),_:1}),d(T,{class:"w100 flex-column d-flex"},{default:f(()=>[d(g,{size:l.getstatesize,title:"Штатная численность"},null,8,["size"])]),_:1})]),_:1})]),_:1}),d(T,null,{default:f(()=>[d(st,{class:"h-100 flex-column d-flex"},{default:f(()=>[d(dt,{class:"text-h6 text-uppercase text-center"},{default:f(()=>[F(" Основные направления деятельности инспекции ")]),_:1}),d(tn,{class:"pb-3"}),d(R,{"no-gutters":"",class:Ji(["gap",l.lgAndUp?"h-0 overflow-auto":""])},{default:f(()=>[d(T,{class:"flex-column d-flex"},{default:f(()=>[(V(!0),Ct(Ht,null,Yt(l.directionworks,x=>(V(),ot(T,{class:"px-3 py-2 flex-grow-0",key:x.id},{default:f(()=>[d(st,{class:"d-flex",elevation:3},{default:f(()=>[d(T,{class:"d-flex align-center v-col-auto"},{default:f(()=>[d(Tr,{class:"elevation-10 text-teal-darken-4",color:"teal-lighten-5"},{default:f(()=>[d(Ve,{icon:x.icon_name},null,8,["icon"])]),_:2},1024)]),_:2},1024),d(T,{class:"d-flex align-center justify-start text-h6"},{default:f(()=>[F(tt(x.direction_title),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1},8,["class"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const Aa=Xt(Sa,[["render",Oa]]),Ea={props:{idVacations:{type:Number,default:-1}},setup(c){const h=G({fio:"",email:"",tel:"",text:""}),a=Sr().alert,l=v=>!!v||"Поле обязательно",m={fio:[v=>l(v),v=>v.match(/^[а-яА-ЯЁё ]+$/)!==null||"Имя должно содержать русские буквы"],email:[v=>l(v)],tel:[v=>l(v),v=>v.match(/^[[\d-]*\d[\d-]*$/)!==null||"Номер должен содержать цифры"],text:""},y=G(null),g=G(null);return{form:h,file:y,rules:m,submit:()=>{if(g.value.isValid){const v=new FormData;v.append("data",JSON.stringify({...h.value,vacancy_id:c.idVacations})),y.value!==null&&v.append("file",y.value[0]),zo.post("api/about_inspection/postresponsevacancy/",v).then(M=>{a.alert=!0,a.text=M.data,a.color="teal-lighten-4",a.ico="mdi-email-outline"})}},form_vacancies:g}}},Ia=j("span",{class:"text-h4"},"Откликнуться на вакансию",-1);function Ba(c,h,a,l,m,y){return V(),Ct("div",null,[d(yt,{class:"text-center"},{default:f(()=>[Ia]),_:1}),d(yt,{class:"d-flex flex-column pt-0"},{default:f(()=>[d(Or,{ref:"form_vacancies",onSubmit:Cr(l.submit,["prevent"])},{default:f(()=>[d(R,{"no-gutters":"",class:"justify-center"},{default:f(()=>[d(T,{lg:"8"},{default:f(()=>[d(Yi,{modelValue:l.form.fio,"onUpdate:modelValue":h[0]||(h[0]=g=>l.form.fio=g),counter:10,rules:l.rules.fio,label:"Фамилия, имя, отчество"},null,8,["modelValue","rules"]),d(R,{"no-gutters":"",class:"gap"},{default:f(()=>[d(T,null,{default:f(()=>[d(Yi,{modelValue:l.form.email,"onUpdate:modelValue":h[1]||(h[1]=g=>l.form.email=g),rules:l.rules.email,label:"E-mail или почта Lotus"},null,8,["modelValue","rules"])]),_:1}),d(T,null,{default:f(()=>[d(Yi,{modelValue:l.form.tel,"onUpdate:modelValue":h[2]||(h[2]=g=>l.form.tel=g),counter:7,rules:l.rules.tel,label:"Телефон"},null,8,["modelValue","rules"])]),_:1})]),_:1}),d(Ar,{modelValue:l.form.text,"onUpdate:modelValue":h[3]||(h[3]=g=>l.form.text=g),"no-resize":"",rows:"4",label:"Сопроводительное письмо"},null,8,["modelValue"]),d(Er,{label:"Резюме","hide-details":"",modelValue:l.file,"onUpdate:modelValue":h[4]||(h[4]=g=>l.file=g)},null,8,["modelValue"]),d(Mo,{block:"",type:"submit",class:"mt-4 text-none",color:"btn_text"},{default:f(()=>[F(" Отправить ")]),_:1})]),_:1})]),_:1})]),_:1},8,["onSubmit"])]),_:1})])}const Za=Xt(Ea,[["render",Ba]]);const Ra={components:{ResponseVacancies:Za},setup(){const c=Mr();let h=G({name:"",department:{name:""}}),a=G(-1),l=G({});const m=()=>{zo.get("api/about_inspection/getvacancy/").then(x=>{l.value=x.data,h.value=l.value[0],a.value=l.value[0].id})},y=x=>x.replaceAll('src="/media/uploads',`src="${pi}media/uploads`),g=x=>{a.value!=x?(a.value=x,h.value=l.value.find(v=>v.id==x)):(a.value=-1,h.value={name:"",department:{name:""}})};return m(),{vacancy:l,formatText:y,vacancyDescription:h,getIndVacation:g,vacancySelect:a,goTo:c}}},Da={class:"text-h4 text-wrap"},Na={class:"text-h5"},Va=j("span",{class:"text-h6"}," Направление деятельности подразделения ",-1),Fa=j("span",{class:"text-h6"}," Функционал и должностные обязанности ",-1),Ha=["innerHTML"],Wa=j("span",{class:"text-h6"}," Базовые требования к соискателю ",-1),ja=["innerHTML"],Ua=j("br",null,null,-1),Ga=j("span",{class:"text-h5 text-grey"},[F("Для подробного описания вакансии "),j("br"),F(" выберите её из списка слева")],-1),qa=j("br",null,null,-1),Ka=j("span",{class:"text-h5 text-grey"},[F("Сейчас вакансий нет, "),j("br"),F(" загляните позжет")],-1);function $a(c,h,a,l,m,y){const g=vt("response-vacancies");return l.vacancy.length>0?(V(),ot(R,{key:0,"no-gutters":"",class:"h-100 gap"},{default:f(()=>[d(T,{lg:"4",class:"flex-column d-flex"},{default:f(()=>[d(st,{class:"h-100 pa-1 d-flex flex-column rounded-0"},{default:f(()=>[d(dt,{class:"d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"},{default:f(()=>[F(" Вакансии ")]),_:1}),d(R,{"no-gutters":"",class:"h-0 gap overflow-auto"},{default:f(()=>[d(T,null,{default:f(()=>[d(st,{class:"mx-auto h-100"},{default:f(()=>[d(en,{density:"compact",class:"px-0"},{default:f(()=>[(V(!0),Ct(Ht,null,Yt(l.vacancy,x=>(V(),ot(Xi,{key:x.id,value:x,class:"border-b-sm","active-class":"custom-active",color:"teal-darken-3",onClick:v=>l.getIndVacation(x.id)},{default:f(()=>[d(st,{class:"rounded-0 bg-transparent"},{default:f(()=>[d(dt,{class:"text-wrap"},{default:f(()=>[F(tt(x.name),1)]),_:2},1024),d(yt,{class:"pb-2"},{default:f(()=>[d(R,{"no-gutters":"",class:"gap"},{default:f(()=>[d(T,null,{default:f(()=>[F(tt(x.department.name),1)]),_:2},1024),d(T,{class:"flex-grow-0 text-subtitle-1 text-btn_text"},{default:f(()=>[F(" Подробнее ")]),_:1}),d(T,{class:"flex-grow-0 align-self-center pl-2"},{default:f(()=>[d(Ve,{icon:"mdi-arrow-right",color:"btn_text",size:"small"})]),_:1})]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["value","onClick"]))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),d(T,{class:"flex-column d-flex"},{default:f(()=>[d(st,{class:"h-100 pa-1 d-flex flex-column rounded-0"},{default:f(()=>[d(dt,{class:"d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"},{default:f(()=>[F(" Описание ")]),_:1}),d(R,{"no-gutters":"",class:"h-0 gap overflow-auto",id:"goto-container-example"},{default:f(()=>[d(T,null,{default:f(()=>[l.vacancyDescription.name!=""?(V(),ot(st,{key:0,class:"rounded-0 h-100"},{default:f(()=>[d(dt,{class:"mt-4"},{default:f(()=>[j("span",Da,tt(l.vacancyDescription.name),1)]),_:1}),d(dt,{class:"pt-0"},{default:f(()=>[j("span",Na,tt(l.vacancyDescription.department.name),1)]),_:1}),d(dt,null,{default:f(()=>[d(Mo,{type:"submit",class:"text-subtitle-1 font-weight-light",color:"btn_text",elevation:"1",onClick:h[0]||(h[0]=x=>l.goTo("#response",{container:"#goto-container-example"}))},{default:f(()=>[F(" Откликнуться ")]),_:1})]),_:1}),d(dt,{class:"pt-6"},{default:f(()=>[Va]),_:1}),d(yt,{class:"mx-5 my-1"},{default:f(()=>[j("ul",null,[(V(!0),Ct(Ht,null,Yt(l.vacancyDescription.department.department_directions,x=>(V(),Ct("li",{class:"py-1",key:x},tt(x.direction_title),1))),128))])]),_:1}),d(dt,null,{default:f(()=>[Fa]),_:1}),d(yt,{class:"mx-5 my-0 ckeditor_ul"},{default:f(()=>[j("div",{class:"py-1",innerHTML:l.vacancyDescription.functional},null,8,Ha)]),_:1}),d(dt,null,{default:f(()=>[Wa]),_:1}),d(yt,{class:"mx-5 my-0 ckeditor_ul"},{default:f(()=>[j("div",{class:"py-1",innerHTML:l.vacancyDescription.requirements},null,8,ja)]),_:1}),d(tn),d(g,{id:"response",idVacations:l.vacancySelect},null,8,["idVacations"])]),_:1})):(V(),ot(st,{key:1,class:"h-100 pa-1 d-flex align-center justify-center text-center"},{default:f(()=>[d(Qi,null,{default:f(()=>[d(Ve,{icon:"mdi-format-list-bulleted",color:"grey",size:"x-large"}),Ua,Ga]),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})):(V(),ot(R,{key:1,"no-gutters":"",class:"h-100 gap"},{default:f(()=>[d(T,{class:"flex-column d-flex"},{default:f(()=>[d(st,{class:"h-100 pa-1 d-flex align-center justify-center text-center"},{default:f(()=>[d(Qi,null,{default:f(()=>[d(Ve,{icon:"mdi-credit-card-off",size:"x-large",color:"grey"}),qa,Ka]),_:1})]),_:1})]),_:1})]),_:1}))}const Ya=Xt(Ra,[["render",$a]]);const Ja={components:{StructureInspection:Wr,ContactInfo:wa,PatternTabs:kr,GeneralInformation:Aa,OpenVacancies:Ya},setup(){return zr(),{tabs_items:[{title:"Общая информация",value:"mainInfo"},{title:"Структура инспекции",value:"structureInspection"},{title:"Открытые вакансии",value:"openVacancies"},{title:"Контактная информация",value:"contactInfo"}]}}};function Xa(c,h,a,l,m,y){const g=vt("general-information"),x=vt("structure-inspection"),v=vt("open-vacancies"),M=vt("contact-info"),P=vt("pattern-tabs");return V(),ot(P,{tabs:l.tabs_items},{item:f(()=>[d(di,{class:"gap h-100",value:"mainInfo"},{default:f(()=>[d(g)]),_:1}),d(di,{class:"gap h-100",value:"structureInspection"},{default:f(()=>[d(x)]),_:1}),d(di,{class:"gap h-100",value:"openVacancies"},{default:f(()=>[d(v)]),_:1}),d(di,{class:"gap h-100",value:"contactInfo"},{default:f(()=>[d(M)]),_:1})]),_:1},8,["tabs"])}const cl=Xt(Ja,[["render",Xa]]);export{cl as default};