1import{a as H,l as L$1,n as E,r as F$2}from"./chunk-BMoWPUdu.js";import{u as h$1}from"./chunk-DYx1__wt.js";import{I as Wt$1,P as Vr$1,T as P$1,U as _$1,Y as fn$1,_t as un$1,a as B,d as En$3,gt as tt$2,l as Cn$2,o as Bn$1,ot as mr$2,p as Hr$1,r as A,st as no$2,t as $r$1,yt as vr$1}from"./chunk-BxdDLxXK.js";import{$ as Mh$1,$n as tI,$t as bP,A as I$1,At as Vh$1,B as KI,Bn as pD,Cn as hE,Cr as yE,Ct as Tv,D as Gl$1,Dn as jh$1,Dr as z$1,Dt as VE,E as Gg,En as jP,Er as yv,Et as V$1,F as JD,Fn as mp$1,Ft as Xa$2,G as Lh$1,Gn as ql$2,Gt as _D,H as Kp$1,Hn as pp$1,Ht as Zd$2,I as JE,In as mr$3,It as Xf,J as M,Jn as re$1,Jt as _h$1,K as Lp$1,L as JI,Ln as nC,Lt as Xp$1,M as Ie$1,Mn as lp$1,Mt as Wm,N as Iv,Nn as mE,Nt as Wr$1,O as Gm,On as kD,Or as zI,Ot as VP,P as J,Pn as mo$2,Pt as XD,Q as Me$2,Qn as tC,Qt as ap$1,S as FP,Sn as hD,Sr as yD,St as Tp$1,Tn as jE,Tt as Ur,U as LE,Un as pu$1,V as Kf,Vn as pi,Vt as Ys$2,W as Le,Wn as qe$2,Wt as _$2,X as MP,Yn as rp$1,Yt as _n$1,Z as Mc$2,Zt as an$1,_ as Dc$1,_n as fu$2,_r as xD,_t as SP,an as cp$1,ar as um,b as ED,bn as go$3,br as xh$1,bt as TP,c as At$2,cn as eC,cr as uy,ct as Oh$1,d as Bh,dn as ec$2,dr as wE,dt as Pf,en as bc,er as ti$2,et as Mn$2,f as Bm,fn as ei$1,fr as wP,g as DD,gn as fp$1,gr as wp$1,gt as SD,h as Cv,hn as fD,hr as wn$2,ht as Rh$1,i as Aa$2,in as bn$1,ir as ue,it as Ng,j as ID,jn as kp$1,jt as Vv,k as Hh$1,kn as kE,kr as zf,kt as Ve$1,l as B$1,ln as eD,lr as vE,lt as Om,m as Cn$3,mn as ep$1,mr as wi$2,mt as RP,n as $m,nn as bg,nr as uD,nt as ND,o as Al$1,on as de$1,or as up$1,ot as OD,p as CD,pn as el$2,pr as wh$1,pt as RE,q as Lt$2,qn as rI,qt as _P,r as AP,rn as bh$1,rr as uE,rt as Nc$2,s as An$2,sn as du$2,sr as ur$2,st as Oc$2,t as $h$1,tn as be$1,tr as tp$1,tt as N,u as BP,un as eE,ur as vp$1,ut as PP,vn as gE,vr as xP,vt as Sh$1,w as GP,wn as ir$3,wr as yp$1,wt as Um,x as FE,xn as gp$1,xr as xt$3,xt as Th$1,y as Ds$1,yn as gn$2,yr as xc$1,yt as TD,z as Js$2,zn as or$3,zt as Y$1}from"./chunk-B9WKgNTA.js";import{F as lt$3,I as mt$1,c as J$1,z as q}from"./chunk-4ABPNTGR.js";import{c as S,k as wt$2}from"./chunk-C_VLHCvd.js";import{t as u}from"./chunk-HMLrdDbv.js";import{t as s}from"./chunk-DT4GCOFO.js";import{i as w$2}from"./chunk-DsCDt05B.js";
1import{$ as el$3,C as Ko$2,Ct as we$1,Dt as zm,E as Ll$1,Et as zY,F as PY,H as UY,I as QM,K as Zr$2,N as OY,O as Mi$1,P as Ob,Q as eL,R as RY,S as Ki$2,St as vv,U as Um$1,V as TY,X as ca$3,Y as bg$1,_t as rn$1,at as jY,b as Ie$2,c as D$1,ct as kY,et as gr$1,g as GY,gt as rL,h as GL,ht as qt$1,i as AY,it as ii$2,j as Nu$2,lt as kb,mt as oi$1,n as $r$2,o as Al$2,ot as jd$2,pt as nl$2,q as _i$1,s as Ba$2,t as $i$2,tt as gu$2,u as DY,ut as la$3,vt as sx,wt as xE,x as JM,xt as un$2,y as Id$2,z as Re$1}from"./chunk-CEn00JeF.js";import"./chunk-CmJ3QS4f.js";import{Fa as MZ,Nl as X,Wv as rk,sy as se$1,xa as Lx}from"./chunk-Cu5Yjzej.js";import{C as xs$1,_ as ku$2,a as Fo$3,d as Rs$1,f as St$3,h as Za$2,l as Os$1,n as Bs$1,p as Ts$1,t as Bh$1,v as ms,x as us,y as ri$2}from"./chunk-2QLAl2do.js";var d=null;function P(t){d=t;let r=Object.keys(t.defs),e=r.length,o,a;for(o=0;o<e;++o){let s=r[o];if(!Cn$2(s)){let n=t.defs(s),f=n.units;!f&&n.projName===`longlat`&&(f=`degrees`),fn$1(new _$1({code:s,axisOrientation:n.axis,metersPerUnit:n.to_meter,units:f}))}}for(o=0;o<e;++o){let s=r[o],n=Cn$2(s);for(a=0;a<e;++a){let f=r[a],u=Cn$2(f);if(!B(s,f))if(t.defs[s]===t.defs[f])Bn$1([n,u]);else{let i=t(s,f);Hr$1(n,u,no$2(n,u,i.forward),no$2(u,n,i.inverse))}}}}var Mt$2={production:!0,mapName:`VdkMap`,terugmeldingApiUrlV2:`https://api.kadaster.nl/tms/v2`,pdokBagWfsUrl:`https://service.pdok.nl/lv/bag/wfs/v2_0?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&count=2&outputFormat=json&srsName=EPSG:4326`,terugmeldingApiKeyV2:`l7d42b2434eb0b4f91b43de53da28cfbe9`,nieuwsberichtUrl:`https://api.kadaster.nl/tms/nieuws/vdk`,enable3DView:`true`,piwikScript:`piwik-script-prod.js`,maxZoomlevel:16,layerPrefix:`geojson-`,filterEnquete:`false`,e2eMock3dLayers:!1,e2eMockOnlyTerrain3dLayers:!1};function $r(t){t(`EPSG:4326`,`+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees`),t(`EPSG:4269`,`+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees`),t(`EPSG:3857`,`+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs`);for(var i=1;i<=60;++i)t(`EPSG:`+(32600+i),`+proj=utm +zone=`+i+` +datum=WGS84 +units=m`),t(`EPSG:`+(32700+i),`+proj=utm +zone=`+i+` +south +datum=WGS84 +units=m`);t(`EPSG:5041`,`+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m`),t(`EPSG:5042`,`+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m`),t.WGS84=t[`EPSG:4326`],t[`EPSG:3785`]=t[`EPSG:3857`],t.GOOGLE=t[`EPSG:3857`],t[`EPSG:900913`]=t[`EPSG:3857`],t[`EPSG:102113`]=t[`EPSG:3857`]}var St$2=1;var bt=2;var Ot$1=3;var Qr$1=4;var Re=5;var Ms=6378137;var Xr$1=6356752.314;var Ss=.0066943799901413165;var te=484813681109536e-20;var m=Math.PI/2;var Jr$1=.16666666666666666;var Zr$1=.04722222222222222;var Yr$1=.022156084656084655;var p=1e-10;var D=.017453292519943295;var k=57.29577951308232;var w$1=Math.PI/4;var Qt=Math.PI*2;var L=3.14159265359;var nt={};nt.greenwich=0;nt.lisbon=-9.131906111111;nt.paris=2.337229166667;nt.bogota=-74.080916666667;nt.madrid=-3.687938888889;nt.rome=12.452333333333;nt.bern=7.439583333333;nt.jakarta=106.807719444444;nt.ferro=-17.666666666667;nt.brussels=4.367975;nt.stockholm=18.058277777778;nt.athens=23.7163375;nt.oslo=10.722916666667;var tn=nt;var en={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}};var sn=/[\s_\-\/\(\)]/g;function ft(t,i){if(t[i])return t[i];for(var e=Object.keys(t),s=i.toLowerCase().replace(sn,``),r=-1,n,o;++r<e.length;)if(n=e[r],o=n.toLowerCase().replace(sn,``),o===s)return t[n]}function Fe(t){var i={},e=t.split(`+`).map(function(a){return a.trim()}).filter(function(a){return a}).reduce(function(a,h){var l=h.split(`=`);return l.push(!0),a[l[0].toLowerCase()]=l[1],a},{}),s,r,n,o={proj:`projName`,datum:`datumCode`,rf:function(a){i.rf=parseFloat(a)},lat_0:function(a){i.lat0=a*D},lat_1:function(a){i.lat1=a*D},lat_2:function(a){i.lat2=a*D},lat_ts:function(a){i.lat_ts=a*D},lon_0:function(a){i.long0=a*D},lon_wrap:function(a){i.long_wrap=parseFloat(a)*D},lon_1:function(a){i.long1=a*D},lon_2:function(a){i.long2=a*D}
vendor: 6,085 bytes, line 1
1,alpha:function(a){i.alpha=parseFloat(a)*D},gamma:function(a){i.rectified_grid_angle=parseFloat(a)*D},lonc:function(a){i.longc=a*D},x_0:function(a){i.x0=parseFloat(a)},y_0:function(a){i.y0=parseFloat(a)},k_0:function(a){i.k0=parseFloat(a)},k:function(a){i.k0=parseFloat(a)},a:function(a){i.a=parseFloat(a)},b:function(a){i.b=parseFloat(a)},r:function(a){i.a=i.b=parseFloat(a)},r_a:function(){i.R_A=!0},zone:function(a){i.zone=parseInt(a,10)},south:function(){i.utmSouth=!0},towgs84:function(a){i.datum_params=a.split(`,`).map(function(h){return parseFloat(h)})},to_meter:function(a){i.to_meter=parseFloat(a)},units:function(a){i.units=a;var h=ft(en,a);h&&(i.to_meter=h.to_meter)},from_greenwich:function(a){i.from_greenwich=a*D},pm:function(a){i.from_greenwich=(ft(tn,a)||parseFloat(a))*D},nadgrids:function(a){a===`@null`?i.datumCode=`none`:i.nadgrids=a},axis:function(a){var h=`ewnsud`;a.length===3&&h.indexOf(a.substr(0,1))!==-1&&h.indexOf(a.substr(1,1))!==-1&&h.indexOf(a.substr(2,1))!==-1&&(i.axis=a)},approx:function(){i.approx=!0},over:function(){i.over=!0}};for(s in e)r=e[s],s in o?(n=o[s],typeof n==`function`?n(r):i[n]=r):i[s]=r;return typeof i.datumCode==`string`&&i.datumCode!==`WGS84`&&(i.datumCode=i.datumCode.toLowerCase()),i.projStr=t,i}var bs=class{static getId(i){let e=i.find(s=>Array.isArray(s)&&s[0]===`ID`);return e&&e.length>=3?{authority:e[1],code:parseInt(e[2],10)}:null}static convertUnit(i,e=`unit`){if(!i||i.length<3)return{type:e,name:`unknown`,conversion_factor:null};let s=i[1],r=parseFloat(i[2])||null,n=i.find(a=>Array.isArray(a)&&a[0]===`ID`);return{type:e,name:s,conversion_factor:r,id:n?{authority:n[1],code:parseInt(n[2],10)}:null}}static convertAxis(i){let e=i[1]||`Unknown`,s,r=e.match(/^\((.)\)$/);if(r){let l=r[1].toUpperCase();if(l===`E`)s=`east`;else if(l===`N`)s=`north`;else if(l===`U`)s=`up`;else if(i[2])s=i[2];else throw new Error(`Unknown axis abbreviation: ${l}`)}else s=i[2]||`unknown`;let n=i.find(l=>Array.isArray(l)&&l[0]===`ORDER`),o=n?parseInt(n[1],10):null,a=i.find(l=>Array.isArray(l)&&(l[0]===`LENGTHUNIT`||l[0]===`ANGLEUNIT`||l[0]===`SCALEUNIT`)),h=this.convertUnit(a);return{name:e,direction:s,unit:h,order:o}}static extractAxes(i){return i.filter(e=>Array.isArray(e)&&e[0]===`AXIS`).map(e=>this.convertAxis(e)).sort((e,s)=>(e.order||0)-(s.order||0))}static convert(i,e={}){switch(i[0]){case`PROJCRS`:e.type=`ProjectedCRS`,e.name=i[1],e.base_crs=i.find(c=>Array.isArray(c)&&c[0]===`BASEGEOGCRS`)?this.convert(i.find(c=>Array.isArray(c)&&c[0]===`BASEGEOGCRS`)):null,e.conversion=i.find(c=>Array.isArray(c)&&c[0]===`CONVERSION`)?this.convert(i.find(c=>Array.isArray(c)&&c[0]===`CONVERSION`)):null;let s=i.find(c=>Array.isArray(c)&&c[0]===`CS`);s&&(e.coordinate_system={subtype:s[1],axis:this.extractAxes(i)});let r=i.find(c=>Array.isArray(c)&&c[0]===`LENGTHUNIT`);if(r){let c=this.convertUnit(r);e.coordinate_system.unit=c}e.id=this.getId(i);break;case`BASEGEOGCRS`:case`GEOGCRS`:case`GEODCRS`:e.type=i[0]===`GEODCRS`?`GeodeticCRS`:`GeographicCRS`,e.name=i[1];let n=i.find(c=>Array.isArray(c)&&(c[0]===`DATUM`||c[0]===`ENSEMBLE`));if(n){let c=this.convert(n);n[0]===`ENSEMBLE`?e.datum_ensemble=c:e.datum=c;let v=i.find(y=>Array.isArray(y)&&y[0]===`PRIMEM`);v&&v[1]!==`Greenwich`&&(c.prime_meridian={name:v[1],longitude:parseFloat(v[2])})}let o=i.find(c=>Array.isArray(c)&&c[0]===`CS`);e.coordinate_system={subtype:o?o[1]:`ellipsoidal`,axis:this.extractAxes(i)},e.id=this.getId(i);break;case`DATUM`:e.type=`GeodeticReferenceFrame`,e.name=i[1],e.ellipsoid=i.find(c=>Array.isArray(c)&&c[0]===`ELLIPSOID`)?this.convert(i.find(c=>Array.isArray(c)&&c[0]===`ELLIPSOID`)):null;break;case`ENSEMBLE`:e.type=`DatumEnsemble`,e.name=i[1],e.members=i.filter(c=>Array.isArray(c)&&c[0]===`MEMBER`).map(c=>({type:`DatumEnsembleMember`,name:c[1],id:this.getId(c)}));let a=i.find(c=>Array.isArray(c)&&c[0]===`ENSEMBLEACCURACY`);a&&(e.accuracy=parseFloat(a[1]));let h=i.find(c=>Array.isArray(c)&&c[0]===`ELLIPSOID`);h&&(e.ellipsoid=this.convert(h)),e.id=this.getId(i);break;case`ELLIPSOID`:e.type=`Ellipsoid`,e.name=i[1],e.semi_major_axis=parseFloat(i[2]),e.inverse_flattening=parseFloat(i[3]);i.find(c=>Array.isArray(c)&&c[0]===`LENGTHUNIT`)&&this.convert(i.find(c=>Array.isArray(c)&&c[0]===`LENGTHUNIT`),e);break;case`CONVERSION`:e.type=`Conversion`,e.name=i[1],e.method=i.find(c=>Array.isArray(c)&&c[0]===`METHOD`)?this.convert(i.find(c=>Array.isArray(c)&&c[0]===`METHOD`)):null,e.parameters=i.filter(c=>Array.isArray(c)&&c[0]===`PARAMETER`).map(c=>this.convert(c));break;case`METHOD`:e.type=`Method`,e.name=i[1],e.id=this.getId(i);break;case`PARAMETER`:e.type=`Parameter`,e.name=i[1],e.value=parseFloat(i[2]),e.unit=this.convertUnit(i.find(c=>Array.isArray(c)&&(c[0]===`LENGTHUNIT`||c[0]===`ANGLEUNIT`||c[0]===`SCALEUNIT`))),e.id=this.getId(i);break;case`BOUNDCRS`:e.type=`BoundCRS`;let d=i.find(c=>Array.isArray(c)&&c[0]===`SOURCECRS`);if(d){let c=d.find(v=>Array.isArray(v));e.source_crs=c?this.convert(c):null}let u=i.find(c=>Array.isArray(c)&&c[0]===`TARGETCRS`);if(u){let c=u.find(v=>Array.isArray(v));e.target_crs=c?this.convert(c):null}let f=i.find(c=>Array.isArray(c)&&c[0]===`ABRIDGEDTRANSFORMATION`);f?e.transformation=this.convert(f):e.transformation=null;break;case`ABRIDGEDTRANSFORMATION`:if(e.type=`Transformation`,e.name=i[1],e.method=i.find(c=>Array.isArray(c)&&c[0]===`METHOD`)?this.convert(i.find(c=>Array.isArray(c)&&c[0]===`METHOD`)):null,e.parameters=i.filter(c=>Array.isArray(c)&&(c[0]===`PARAMETER`||c[0]===`PARAMETERFILE`)).map(c=>{if(c[0]===`PARAMETER`)return this.convert(c);if(c[0]===`PARAMETERFILE`)return{name:c[1],value:c[2],id:{authority:`EPSG`,code:8656}}}),e.parameters.length===7){let c=e.parameters[6];c.name===`Scale difference`&&(c.value=Math.round((c.value-1)*0xe8d4a51000)/1e6)}e.id=this.getId(i);break;case`AXIS`:e.coordinate_system||(e.coordinate_system={type:`unspecified`,axis:[]}),e.coordinate_system.axis.push(this.convertAxis(i));break;case`LENGTHUNIT`:let g=this.convertUnit(i,`LinearUnit`);e.coordinate_system&&e.coordinate_system.axis&&e.coordinate_system.axis.forEach(c=>{c.unit||(c.unit=g)}
vendor: 5,258 bytes, line 1
1),g.conversion_factor&&g.conversion_factor!==1&&e.semi_major_axis&&(e.semi_major_axis={value:e.semi_major_axis,unit:g});break;default:e.keyword=i[0];break}return e}};var rn=bs;function nn(t){return rn.convert(t)}function an(t){let i=t.toUpperCase();return i.includes(`PROJCRS`)||i.includes(`GEOGCRS`)||i.includes(`BOUNDCRS`)||i.includes(`VERTCRS`)||i.includes(`LENGTHUNIT`)||i.includes(`ANGLEUNIT`)||i.includes(`SCALEUNIT`)?`WKT2`:(i.includes(`PROJCS`)||i.includes(`GEOGCS`)||i.includes(`LOCAL_CS`)||i.includes(`VERT_CS`)||i.includes(`UNIT`),`WKT1`)}var on=To$2;var ke=1;var hn$1=2;var ln=3;var xi$1=4;var cn=5;var xs=-1;var Go$1=/\s/;var Oo$2=/[A-Za-z]/;var Lo$2=/[A-Za-z84_]/;var Ei$1=/[,\]]/;var un=/[\d\.E\-\+]/;function Lt$1(t){if(typeof t!=`string`)throw new Error(`not a string`);this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=ke}Lt$1.prototype.readCharicter=function(){var t=this.text[this.place++];if(this.state!==xi$1)for(;Go$1.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case ke:return this.neutral(t);case hn$1:return this.keyword(t);case xi$1:return this.quoted(t);case cn:return this.afterquote(t);case ln:return this.number(t);case xs:return}};Lt$1.prototype.afterquote=function(t){if(t===`"`){this.word+=`"`,this.state=xi$1;return}if(Ei$1.test(t)){this.word=this.word.trim(),this.afterItem(t);return}throw new Error(`havn't handled "`+t+`" in afterquote yet, index `+this.place)};Lt$1.prototype.afterItem=function(t){if(t===`,`){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=ke;return}if(t===`]`){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=ke,this.currentObject=this.stack.pop(),this.currentObject||(this.state=xs);return}};Lt$1.prototype.number=function(t){if(un.test(t)){this.word+=t;return}if(Ei$1.test(t)){this.word=parseFloat(this.word),this.afterItem(t);return}throw new Error(`havn't handled "`+t+`" in number yet, index `+this.place)};Lt$1.prototype.quoted=function(t){if(t===`"`){this.state=cn;return}this.word+=t};Lt$1.prototype.keyword=function(t){if(Lo$2.test(t)){this.word+=t;return}if(t===`[`){var i=[];i.push(this.word),this.level++,this.root===null?this.root=i:this.currentObject.push(i),this.stack.push(this.currentObject),this.currentObject=i,this.state=ke;return}if(Ei$1.test(t)){this.afterItem(t);return}throw new Error(`havn't handled "`+t+`" in keyword yet, index `+this.place)};Lt$1.prototype.neutral=function(t){if(Oo$2.test(t)){this.word=t,this.state=hn$1;return}if(t===`"`){this.word=``,this.state=xi$1;return}if(un.test(t)){this.word=t,this.state=ln;return}if(Ei$1.test(t)){this.afterItem(t);return}throw new Error(`havn't handled "`+t+`" in neutral yet, index `+this.place)};Lt$1.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(this.state===xs)return this.root;throw new Error(`unable to parse string "`+this.text+`". State is `+this.state)};function To$2(t){return new Lt$1(t).output()}function Es(t,i,e){Array.isArray(i)&&(e.unshift(i),i=null);var s=i?{}:t,r=e.reduce(function(n,o){return ee(o,n),n},s);i&&(t[i]=r)}function ee(t,i){if(!Array.isArray(t)){i[t]=!0;return}var e=t.shift();if(e===`PARAMETER`&&(e=t.shift()),t.length===1){if(Array.isArray(t[0])){i[e]={},ee(t[0],i[e]);return}i[e]=t[0];return}if(!t.length){i[e]=!0;return}if(e===`TOWGS84`){i[e]=t;return}if(e===`AXIS`){e in i||(i[e]=[]),i[e].push(t);return}Array.isArray(e)||(i[e]={});var s;switch(e){case`UNIT`:case`PRIMEM`:case`VERT_DATUM`:i[e]={name:t[0].toLowerCase(),convert:t[1]},t.length===3&&ee(t[2],i[e]);return;case`SPHEROID`:case`ELLIPSOID`:i[e]={name:t[0],a:t[1],rf:t[2]},t.length===4&&ee(t[3],i[e]);return;case`EDATUM`:case`ENGINEERINGDATUM`:case`LOCAL_DATUM`:case`DATUM`:case`VERT_CS`:case`VERTCRS`:case`VERTICALCRS`:t[0]=[`name`,t[0]],Es(i,e,t);return;case`COMPD_CS`:case`COMPOUNDCRS`:case`FITTED_CS`:case`PROJECTEDCRS`:case`PROJCRS`:case`GEOGCS`:case`GEOCCS`:case`PROJCS`:case`LOCAL_CS`:case`GEODCRS`:case`GEODETICCRS`:case`GEODETICDATUM`:case`ENGCRS`:case`ENGINEERINGCRS`:t[0]=[`name`,t[0]],Es(i,e,t),i[e].type=e;return;default:for(s=-1;++s<t.length;)if(!Array.isArray(t[s]))return ee(t,i[e]);return Es(i,e,t)}}var Vo$1=.017453292519943295;function mt(t){return t*Vo$1}function Ci$1(t){let i=(t.projName||``).toLowerCase().replace(/_/g,` `);t.long0===void 0&&t.longc!==void 0&&(t.long0=t.longc),!t.lat_ts&&t.lat1&&(i===`stereographic south pole`||i===`polar stereographic (variant b)`)?(t.lat0=mt(t.lat1>0?90:-90),t.lat_ts=t.lat1,delete t.lat1):!t.lat_ts&&t.lat0&&(i===`polar stereographic`||i===`polar stereographic (variant a)`)&&(t.lat_ts=t.lat0,t.lat0=mt(t.lat0>0?90:-90),delete t.lat1)}function dn(t){let i={units:null,to_meter:void 0};return typeof t==`string`?(i.units=t.toLowerCase(),i.units===`metre`&&(i.units=`meter`),i.units===`meter`&&(i.to_meter=1)):t&&t.name&&(i.units=t.name.toLowerCase(),i.units===`metre`&&(i.units=`meter`),i.to_meter=t.conversion_factor),i}function fn(t){return typeof t==`object`?t.value*t.unit.conversion_factor:t}function mn(t,i){t.ellipsoid.radius?(i.a=t.ellipsoid.radius,i.rf=0):(i.a=fn(t.ellipsoid.semi_major_axis),t.ellipsoid.inverse_flattening!==void 0?i.rf
vendor: 4,503 bytes, line 1
1=t.ellipsoid.inverse_flattening:t.ellipsoid.semi_major_axis!==void 0&&t.ellipsoid.semi_minor_axis!==void 0&&(i.rf=i.a/(i.a-fn(t.ellipsoid.semi_minor_axis))))}function je(t,i={}){return!t||typeof t!=`object`?t:t.type===`BoundCRS`?(je(t.source_crs,i),t.transformation&&(t.transformation.method&&t.transformation.method.name===`NTv2`?i.nadgrids=t.transformation.parameters[0].value:i.datum_params=t.transformation.parameters.map(e=>e.value)),i):(Object.keys(t).forEach(e=>{let s=t[e];if(s!==null)switch(e){case`name`:if(i.srsCode)break;i.name=s,i.srsCode=s;break;case`type`:s===`GeographicCRS`?i.projName=`longlat`:s===`GeodeticCRS`?t.coordinate_system&&t.coordinate_system.subtype===`Cartesian`?i.projName=`geocent`:i.projName=`longlat`:s===`ProjectedCRS`&&t.conversion&&t.conversion.method&&(i.projName=t.conversion.method.name);break;case`datum`:case`datum_ensemble`:s.ellipsoid&&(i.ellps=s.ellipsoid.name,mn(s,i)),s.prime_meridian&&(i.from_greenwich=s.prime_meridian.longitude*Math.PI/180);break;case`ellipsoid`:i.ellps=s.name,mn(s,i);break;case`prime_meridian`:i.long0=(s.longitude||0)*Math.PI/180;break;case`coordinate_system`:if(s.axis){let r={east:`e`,north:`n`,west:`w`,south:`s`,up:`u`,down:`d`,geocentricx:`e`,geocentricy:`n`,geocentricz:`u`},n=s.axis.map(o=>r[o.direction.toLowerCase()]);if(n.every(Boolean)&&(i.axis=n.join(``),i.axis.length===2&&(i.axis+=`u`)),s.unit){let{units:o,to_meter:a}=dn(s.unit);i.units=o,i.to_meter=a}else if(s.axis[0]&&s.axis[0].unit){let{units:o,to_meter:a}=dn(s.axis[0].unit);i.units=o,i.to_meter=a}}break;case`id`:s.authority&&s.code&&(i.title=s.authority+`:`+s.code);break;case`conversion`:s.method&&s.method.name&&(i.projName=s.method.name),s.parameters&&s.parameters.forEach(r=>{let n=r.name.toLowerCase().replace(/\s+/g,`_`),o=r.value;r.unit&&r.unit.conversion_factor?i[n]=o*r.unit.conversion_factor:r.unit===`degree`?i[n]=o*Math.PI/180:i[n]=o});break;case`unit`:s.name&&(i.units=s.name.toLowerCase(),i.units===`metre`&&(i.units=`meter`)),s.conversion_factor&&(i.to_meter=s.conversion_factor);break;case`base_crs`:je(s,i),i.datumCode=s.id?s.id.authority+`_`+s.id.code:s.name;break;default:break}}),i.latitude_of_false_origin!==void 0&&(i.lat0=i.latitude_of_false_origin),i.longitude_of_false_origin!==void 0&&(i.long0=i.longitude_of_false_origin),i.latitude_of_standard_parallel!==void 0&&(i.lat0=i.latitude_of_standard_parallel,i.lat1=i.latitude_of_standard_parallel),i.latitude_of_1st_standard_parallel!==void 0&&(i.lat1=i.latitude_of_1st_standard_parallel),i.latitude_of_2nd_standard_parallel!==void 0&&(i.lat2=i.latitude_of_2nd_standard_parallel),i.latitude_of_projection_centre!==void 0&&(i.lat0=i.latitude_of_projection_centre),i.longitude_of_projection_centre!==void 0&&(i.longc=i.longitude_of_projection_centre),i.easting_at_false_origin!==void 0&&(i.x0=i.easting_at_false_origin),i.northing_at_false_origin!==void 0&&(i.y0=i.northing_at_false_origin),i.latitude_of_natural_origin!==void 0&&(i.lat0=i.latitude_of_natural_origin),i.longitude_of_natural_origin!==void 0&&(i.long0=i.longitude_of_natural_origin),i.longitude_of_origin!==void 0&&(i.long0=i.longitude_of_origin),i.false_easting!==void 0&&(i.x0=i.false_easting),i.easting_at_projection_centre&&(i.x0=i.easting_at_projection_centre),i.false_northing!==void 0&&(i.y0=i.false_northing),i.northing_at_projection_centre&&(i.y0=i.northing_at_projection_centre),i.standard_parallel_1!==void 0&&(i.lat1=i.standard_parallel_1),i.standard_parallel_2!==void 0&&(i.lat2=i.standard_parallel_2),i.scale_factor_at_natural_origin!==void 0&&(i.k0=i.scale_factor_at_natural_origin),i.scale_factor_at_projection_centre!==void 0&&(i.k0=i.scale_factor_at_projection_centre),i.scale_factor_on_pseudo_standard_parallel!==void 0&&(i.k0=i.scale_factor_on_pseudo_standard_parallel),i.azimuth!==void 0&&(i.alpha=i.azimuth),i.azimuth_at_projection_centre!==void 0&&(i.alpha=i.azimuth_at_projection_centre),i.angle_from_rectified_to_skew_grid&&(i.rectified_grid_angle=i.angle_from_rectified_to_skew_grid),Ci$1(i),i)}var Ro$2=[`PROJECTEDCRS`,`PROJCRS`,`GEOGCS`,`GEOCCS`,`PROJCS`,`LOCAL_CS`,`GEODCRS`,`GEODETICCRS`,`GEODETICDATUM`,`ENGCRS`,`ENGINEERINGCRS`];function Fo$2(t,i){var e=i[0],s=i[1];!(e in t)&&s in t&&(t[e]=t[s],i.length===3&&(t[e]=i[2](t[e])))}function gn$1(t){for(var i=Object.keys(t),e=0,s=i.length;e<s;++e){var r=i[e];Ro$2.indexOf(r)!==-1&&ko$2(t[r]),typeof t[r]==`object`&&gn$1(t[r])}}function ko$2(t){if(t.AUTHORITY){var i=Object.keys(t.AUTHORITY)[0];i&&i in t.AUTHORITY&&(t.title=i+`:`+t.AUTHORITY[i])}
vendor: 6,855 bytes, line 1
1if(t.type===`GEOGCS`?t.projName=`longlat`:t.type===`LOCAL_CS`?(t.projName=`identity`,t.local=!0):typeof t.PROJECTION==`object`?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var e=``,s=0,r=t.AXIS.length;s<r;++s){var n=[t.AXIS[s][0].toLowerCase(),t.AXIS[s][1].toLowerCase()];n[0].indexOf(`north`)!==-1||(n[0]===`y`||n[0]===`lat`)&&n[1]===`north`?e+=`n`:n[0].indexOf(`south`)!==-1||(n[0]===`y`||n[0]===`lat`)&&n[1]===`south`?e+=`s`:n[0].indexOf(`east`)!==-1||(n[0]===`x`||n[0]===`lon`)&&n[1]===`east`?e+=`e`:(n[0].indexOf(`west`)!==-1||(n[0]===`x`||n[0]===`lon`)&&n[1]===`west`)&&(e+=`w`)}e.length===2&&(e+=`u`),e.length===3&&(t.axis=e)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),t.units===`metre`&&(t.units=`meter`),t.UNIT.convert&&(t.type===`GEOGCS`?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var o=t.GEOGCS;t.type===`GEOGCS`&&(o=t),o&&(o.PRIMEM&&o.PRIMEM.convert&&(t.from_greenwich=mt(o.PRIMEM.convert)),o.DATUM?t.datumCode=o.DATUM.name.toLowerCase():t.datumCode=o.name.toLowerCase(),t.datumCode.slice(0,2)===`d_`&&(t.datumCode=t.datumCode.slice(2)),t.datumCode===`new_zealand_1949`&&(t.datumCode=`nzgd49`),(t.datumCode===`wgs_1984`||t.datumCode===`world_geodetic_system_1984`)&&(t.PROJECTION===`Mercator_Auxiliary_Sphere`&&(t.sphere=!0),t.datumCode=`wgs84`),t.datumCode===`belge_1972`&&(t.datumCode=`rnb72`),o.DATUM&&o.DATUM.SPHEROID&&(t.ellps=o.DATUM.SPHEROID.name.replace(`_19`,``).replace(/[Cc]larke\_18/,`clrk`),t.ellps.toLowerCase().slice(0,13)===`international`&&(t.ellps=`intl`),t.a=o.DATUM.SPHEROID.a,t.rf=parseFloat(o.DATUM.SPHEROID.rf)),o.DATUM&&o.DATUM.TOWGS84&&(t.datum_params=o.DATUM.TOWGS84),~t.datumCode.indexOf(`osgb_1936`)&&(t.datumCode=`osgb36`),~t.datumCode.indexOf(`osni_1952`)&&(t.datumCode=`osni52`),(~t.datumCode.indexOf(`tm65`)||~t.datumCode.indexOf(`geodetic_datum_of_1965`))&&(t.datumCode=`ire65`),t.datumCode===`ch1903+`&&(t.datumCode=`ch1903`),~t.datumCode.indexOf(`israel`)&&(t.datumCode=`isr93`)),t.b&&!isFinite(t.b)&&(t.b=t.a),t.rectified_grid_angle&&(t.rectified_grid_angle=mt(t.rectified_grid_angle));function a(d){return d*(t.to_meter||1)}var h=function(d){return Fo$2(t,d)};[[`standard_parallel_1`,`Standard_Parallel_1`],[`standard_parallel_1`,`Latitude of 1st standard parallel`],[`standard_parallel_2`,`Standard_Parallel_2`],[`standard_parallel_2`,`Latitude of 2nd standard parallel`],[`false_easting`,`False_Easting`],[`false_easting`,`False easting`],[`false-easting`,`Easting at false origin`],[`false_northing`,`False_Northing`],[`false_northing`,`False northing`],[`false_northing`,`Northing at false origin`],[`central_meridian`,`Central_Meridian`],[`central_meridian`,`Longitude of natural origin`],[`central_meridian`,`Longitude of false origin`],[`latitude_of_origin`,`Latitude_Of_Origin`],[`latitude_of_origin`,`Central_Parallel`],[`latitude_of_origin`,`Latitude of natural origin`],[`latitude_of_origin`,`Latitude of false origin`],[`scale_factor`,`Scale_Factor`],[`k0`,`scale_factor`],[`latitude_of_center`,`Latitude_Of_Center`],[`latitude_of_center`,`Latitude_of_center`],[`lat0`,`latitude_of_center`,mt],[`longitude_of_center`,`Longitude_Of_Center`],[`longitude_of_center`,`Longitude_of_center`],[`longc`,`longitude_of_center`,mt],[`x0`,`false_easting`,a],[`y0`,`false_northing`,a],[`long0`,`central_meridian`,mt],[`lat0`,`latitude_of_origin`,mt],[`lat0`,`standard_parallel_1`,mt],[`lat1`,`standard_parallel_1`,mt],[`lat2`,`standard_parallel_2`,mt],[`azimuth`,`Azimuth`],[`alpha`,`azimuth`,mt],[`srsCode`,`name`]].forEach(h),Ci$1(t)}function de(t){if(typeof t==`object`)return je(t);let i=an(t);var e=on(t);if(i===`WKT2`)return je(nn(e));var s=e[0],r={};return ee(e,r),gn$1(r),r[s]}function at(t){var i=this;if(arguments.length===2){var e=arguments[1];typeof e==`string`?e.charAt(0)===`+`?at[t]=Fe(arguments[1]):at[t]=de(arguments[1]):e&&typeof e==`object`&&!(`projName`in e)?at[t]=de(arguments[1]):(at[t]=e,e||delete at[t])}else if(arguments.length===1){if(Array.isArray(t))return t.map(function(s){return Array.isArray(s)?at.apply(i,s):at(s)});if(typeof t==`string`){if(t in at)return at[t]}else`EPSG`in t?at[`EPSG:`+t.EPSG]=t:`ESRI`in t?at[`ESRI:`+t.ESRI]=t:`IAU2000`in t?at[`IAU2000:`+t.IAU2000]=t:console.log(t);return}}$r(at);var fe=at;function jo$2(t){return typeof t==`string`}function Uo$1(t){return t in fe}function Bo$1(t){return t.indexOf(`+`)!==0&&t.indexOf(`[`)!==-1||typeof t==`object`&&!(`srsCode`in t)}var _n=[`3857`,`900913`,`3785`,`102113`];function qo$1(t){if(t.title)return t.title.toLowerCase().indexOf(`epsg:`)===0&&_n.indexOf(t.title.substr(5))>-1;var i=ft(t,`authority`);if(i){var e=ft(i,`epsg`);return e&&_n.indexOf(e)>-1}}function Ho$1(t){var i=ft(t,`extension`);if(i)return ft(i,`proj4`)}function Wo$1(t){return t[0]===`+`}function zo$2(t){let i;if(jo$2(t))if(Uo$1(t))i=fe[t];else if(Bo$1(t)){i=de(t);var e=Ho$1(i);e&&(i=Fe(e))}else Wo$1(t)&&(i=Fe(t));else`projName`in t?i=t:i=de(t);return i&&qo$1(i)?fe[`EPSG:3857`]:i}var pn=zo$2;function Cs(t,i){t=t||{};var e,s;if(!i)return t;for(s in i)e=i[s],e!==void 0&&(t[s]=e);return t}function Y(t,i,e){var s=t*i;return e/Math.sqrt(1-s*s)}function At$1(t){return t<0?-1:1}function _(t,i){return i||Math.abs(t)<=L?t:t-At$1(t)*Qt}function it(t,i,e){var s=t*e,r=.5*t;return s=Math.pow((1-s)/(1+s),r),Math.tan(.5*(m-i))/s}function Tt$2(t,i){for(var e=.5*t,s,r,n=m-2*Math.atan(i),o=0;o<=15;o++)if(s=t*Math.sin(n),r=m-2*Math.atan(i*Math.pow((1-s)/(1+s),e))-n,n+=r,Math.abs(r)<=1e-10)return n;return-9999}function Ko$1(){var t=this.b/this.a;this.es=1-t*t,`x0`in this||(this.x0=0),`y0`in this||(this.y0=0),this.long0=this.long0||0,this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=Y(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function $o$1(t){var i=t.x,e=t.y;if(e*k>90&&e*k<-90&&i*k>180&&i*k<-180)return null;var s,r;if(Math.abs(Math.abs(e)-m)<=p)return null;if(this.sphere)s=this.x0+this.a*this.k0*_(i-this.long0,this.over),r=this.y0+this.a*this.k0*Math.log(Math.tan(w$1+.5*e));else{var n=Math.sin(e),o=it(this.e,e,n);s=this.x0+this.a*this.k0*_(i-this.long0,this.over),r=this.y0-this.a*this.k0*Math.log(o)}return t.x=s,t.y=r,t}function Qo$1(t){var i=t.x-this.x0,e=t.y-this.y0,s,r;if(this.sphere)r=m-2*Math.atan(Math.exp(-e/(this.a*this.k0)));else{var n=Math.exp(-e/(this.a*this.k0));if(r=Tt$2(this.e,n),r===-9999)return null}return s=_(this.long0+i/(this.a*this.k0),this.over),t.x=s,t.y=r,t}var vn$1={init:Ko$1,forward:$o$1,inverse:Qo$1,names:[`Mercator`,`Popular Visualisation Pseudo Mercator`,`Mercator_1SP`,`Mercator_Auxiliary_Sphere`,`Mercator_Variant_A`,`merc`]};function Jo$1(){}function yn$1(t){return t}var ws=[`longlat`,`identity`];var Zo$1=[vn$1,{init:Jo$1,forward:yn$1,inverse:yn$1,names:ws}];var ie$1={};var me=[];function Sn$1(t,i){var e=me.length;
1return t.names?(me[e]=t,t.names.forEach(function(s){ie$1[s.toLowerCase()]=e}),this):(console.log(i),!0)}function Ps(t){return t.replace(/[-\(\)\s]+/g,` `).trim().replace(/ /g,`_`)}function Yo$1(t){if(!t)return!1;var i=t.toLowerCase();if(typeof ie$1[i]<`u`&&me[ie$1[i]]||(i=Ps(i),i in ie$1&&me[ie$1[i]]))return me[ie$1[i]]}function th(){Zo$1.forEach(Sn$1)}var bn={start:th,add:Sn$1,get:Yo$1};var As={MERIT:{a:6378137,rf:298.257,ellipseName:`MERIT 1983`},SGS85:{a:6378136,rf:298.257,ellipseName:`Soviet Geodetic System 85`},GRS80:{a:6378137,rf:298.257222101,ellipseName:`GRS 1980(IUGG, 1980)`},IAU76:{a:6378140,rf:298.257,ellipseName:`IAU 1976`},airy:{a:6377563.396,b:6356256.91,ellipseName:`Airy 1830`},APL4:{a:6378137,rf:298.25,ellipseName:`Appl. Physics. 1965`},NWL9D:{a:6378145,rf:298.25,ellipseName:`Naval Weapons Lab., 1965`},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:`Modified Airy`},andrae:{a:6377104.43,rf:300,ellipseName:`Andrae 1876 (Den., Iclnd.)`},aust_SA:{a:6378160,rf:298.25,ellipseName:`Australian Natl & S. Amer. 1969`},GRS67:{a:6378160,rf:298.247167427,ellipseName:`GRS 67(IUGG 1967)`},bessel:{a:6377397.155,rf:299.1528128,ellipseName:`Bessel 1841`},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:`Bessel 1841 (Namibia)`},clrk66:{a:6378206.4,b:6356583.8,ellipseName:`Clarke 1866`},clrk80:{a:6378249.145,rf:293.4663,ellipseName:`Clarke 1880 mod.`},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:`Clarke 1880 (IGN)`},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:`Clarke 1858`},CPM:{a:6375738.7,rf:334.29,ellipseName:`Comm. des Poids et Mesures 1799`},delmbr:{a:6376428,rf:311.5,ellipseName:`Delambre 1810 (Belgium)`},engelis:{a:6378136.05,rf:298.2566,ellipseName:`Engelis 1985`},evrst30:{a:6377276.345,rf:300.8017,ellipseName:`Everest 1830`},evrst48:{a:6377304.063,rf:300.8017,ellipseName:`Everest 1948`},evrst56:{a:6377301.243,rf:300.8017,ellipseName:`Everest 1956`},evrst69:{a:6377295.664,rf:300.8017,ellipseName:`Everest 1969`},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:`Everest (Sabah & Sarawak)`},fschr60:{a:6378166,rf:298.3,ellipseName:`Fischer (Mercury Datum) 1960`},fschr60m:{a:6378155,rf:298.3,ellipseName:`Fischer 1960`},fschr68:{a:6378150,rf:298.3,ellipseName:`Fischer 1968`},helmert:{a:6378200,rf:298.3,ellipseName:`Helmert 1906`},hough:{a:6378270,rf:297,ellipseName:`Hough`},intl:{a:6378388,rf:297,ellipseName:`International 1909 (Hayford)`},kaula:{a:6378163,rf:298.24,ellipseName:`Kaula 1961`},lerch:{a:6378139,rf:298.257,ellipseName:`Lerch 1979`},mprts:{a:6397300,rf:191,ellipseName:`Maupertius 1738`},new_intl:{a:6378157.5,b:6356772.2,ellipseName:`New International 1967`},plessis:{a:6376523,b:6355863,ellipseName:`Plessis 1817 (France)`},krass:{a:6378245,rf:298.3,ellipseName:`Krassovsky, 1942`},SEasia:{a:6378155,b:6356773.3205,ellipseName:`Southeast Asia`},walbeck:{a:6376896,b:6355834.8467,ellipseName:`Walbeck`},WGS60:{a:6378165,rf:298.3,ellipseName:`WGS 60`},WGS66:{a:6378145,rf:298.25,ellipseName:`WGS 66`},WGS7:{a:6378135,rf:298.26,ellipseName:`WGS 72`},WGS84:{a:6378137,rf:298.257223563,ellipseName:`WGS 84`},sphere:{a:6370997,b:6370997,ellipseName:`Normal Sphere (r=6370997)`}};var ih=As.WGS84;function xn$1(t,i,e,s){var r=t*t,n=i*i,o=(r-n)/r,a=0;s?(t*=1-o*(Jr$1+o*(Zr$1+o*Yr$1)),r=t*t,o=0):a=Math.sqrt(o);var h=(r-n)/n;return{es:o,e:a,ep2:h}}function En$2(t,i,e,s,r){if(!t){var n=ft(As,s);n||(n=ih),t=n.a,i=n.b,e=n.rf}return e&&!i&&(i=(1-1/e)*t),(e===0||Math.abs(t-i)<p)&&(r=!0,i=t),{a:t,b:i,rf:e,sphere:r}}var Pi$1={wgs84:{towgs84:`0,0,0`,ellipse:`WGS84`,datumName:`WGS84`},ch1903:{towgs84:`674.374,15.056,405.346`,ellipse:`bessel`,datumName:`swiss`},ggrs87:{towgs84:`-199.87,74.79,246.62`,ellipse:`GRS80`,datumName:`Greek_Geodetic_Reference_System_1987`},nad83:{towgs84:`0,0,0`,ellipse:`GRS80`,datumName:`North_American_Datum_1983`},nad27:{nadgrids:`@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat`,ellipse:`clrk66`,datumName:`North_American_Datum_1927`},potsdam:{towgs84:`598.1,73.7,418.2,0.202,0.045,-2.455,6.7`,ellipse:`bessel`,datumName:`Potsdam Rauenberg 1950 DHDN`},carthage:{towgs84:`-263.0,6.0,431.0`,ellipse:`clrk80ign
vendor: 19,709 bytes, line 1
1`,datumName:`Carthage 1934 Tunisia`},hermannskogel:{towgs84:`577.326,90.129,463.919,5.137,1.474,5.297,2.4232`,ellipse:`bessel`,datumName:`Hermannskogel`},mgi:{towgs84:`577.326,90.129,463.919,5.137,1.474,5.297,2.4232`,ellipse:`bessel`,datumName:`Militar-Geographische Institut`},osni52:{towgs84:`482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15`,ellipse:`airy`,datumName:`Irish National`},ire65:{towgs84:`482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15`,ellipse:`mod_airy`,datumName:`Ireland 1965`},rassadiran:{towgs84:`-133.63,-157.5,-158.62`,ellipse:`intl`,datumName:`Rassadiran`},nzgd49:{towgs84:`59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993`,ellipse:`intl`,datumName:`New Zealand Geodetic Datum 1949`},osgb36:{towgs84:`446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894`,ellipse:`airy`,datumName:`Ordnance Survey of Great Britain 1936`},s_jtsk:{towgs84:`589,76,480`,ellipse:`bessel`,datumName:`S-JTSK (Ferro)`},beduaram:{towgs84:`-106,-87,188`,ellipse:`clrk80`,datumName:`Beduaram`},gunung_segara:{towgs84:`-403,684,41`,ellipse:`bessel`,datumName:`Gunung Segara Jakarta`},rnb72:{towgs84:`106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1`,ellipse:`intl`,datumName:`Reseau National Belge 1972`},EPSG_5451:{towgs84:`6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649`},IGNF_LURESG:{towgs84:`-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43`},EPSG_4614:{towgs84:`-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065`},EPSG_4615:{towgs84:`-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748`},ESRI_37241:{towgs84:`-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031`},ESRI_37249:{towgs84:`-440.296,58.548,296.265,1.128,10.202,4.559,-0.438`},ESRI_37245:{towgs84:`-511.151,-181.269,139.609,1.05,2.703,1.798,3.071`},EPSG_4178:{towgs84:`24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01`},EPSG_4622:{towgs84:`-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984`},EPSG_4625:{towgs84:`126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227`},EPSG_5252:{towgs84:`0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439`},EPSG_4314:{towgs84:`597.1,71.4,412.1,0.894,0.068,-1.563,7.58`},EPSG_4282:{towgs84:`-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166`},EPSG_4231:{towgs84:`-83.11,-97.38,-117.22,0.005693,-0.044698,0.044285,0.1218`},EPSG_4274:{towgs84:`-230.994,102.591,25.199,0.633,-0.239,0.9,1.95`},EPSG_4134:{towgs84:`-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006`},EPSG_4254:{towgs84:`18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013`},EPSG_4159:{towgs84:`-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175`},EPSG_4687:{towgs84:`0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093`},EPSG_4227:{towgs84:`-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225`},EPSG_4746:{towgs84:`599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46`},EPSG_4745:{towgs84:`612.4,77,440.2,-0.054,0.057,-2.797,2.55`},EPSG_6311:{towgs84:`8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926`},EPSG_4289:{towgs84:`565.7381,50.4018,465.2904,-0.395026,0.330772,-1.876073,4.07244`},EPSG_4230:{towgs84:`-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4`},EPSG_4154:{towgs84:`-123.02,-158.95,-168.47`},EPSG_4156:{towgs84:`570.8,85.7,462.8,4.998,1.587,5.261,3.56`},EPSG_4299:{towgs84:`482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15`},EPSG_4179:{towgs84:`33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84`},EPSG_4313:{towgs84:`-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747`},EPSG_4194:{towgs84:`163.511,127.533,-159.789`},EPSG_4195:{towgs84:`105,326,-102.5`},EPSG_4196:{towgs84:`-45,417,-3.5`},EPSG_4611:{towgs84:`-162.619,-276.959,-161.764,0.067753,-2.243648,-1.158828,-1.094246`},EPSG_4633:{towgs84:`137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824`},EPSG_4641:{towgs84:`-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993`},EPSG_4643:{towgs84:`-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002`},EPSG_4300:{towgs84:`482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15`},EPSG_4188:{towgs84:`482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15`},EPSG_4660:{towgs84:`982.6087,552.753,-540.873,6.681627,-31.611492,-19.848161,16.805`},EPSG_4662:{towgs84:`97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259`},EPSG_3906:{towgs84:`577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664`},EPSG_4307:{towgs84:`-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547`},EPSG_6892:{towgs84:`-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686`},EPSG_4690:{towgs84:`221.597,152.441,176.523,2.403,1.3893,0.884,11.4648`},EPSG_4691:{towgs84:`218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817`},EPSG_4629:{towgs84:`72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653`},EPSG_4630:{towgs84:`165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111`},EPSG_4692:{towgs84:`217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093`},EPSG_9333:{towgs84:`0,0,0,-0.008393,0.000749,-0.010276,0`},EPSG_9059:{towgs84:`0,0,0`},EPSG_4312:{towgs84:`601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887`},EPSG_4123:{towgs84:`-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496`},EPSG_4309:{towgs84:`-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365`},ESRI_104106:{towgs84:`-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058`},EPSG_4281:{towgs84:`-219.247,-73.802,269.529`},EPSG_4322:{towgs84:`0,0,4.5`},EPSG_4324:{towgs84:`0,0,1.9`},EPSG_4284:{towgs84:`43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549`},EPSG_4277:{towgs84:`446.448,-125.157,542.06,0.15,0.247,0.842,-20.489`},EPSG_4207:{towgs84:`-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46`},EPSG_4688:{towgs84:`347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647`},EPSG_4689:{towgs84:`410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218`},EPSG_4720:{towgs84:`0,0,4.5`},EPSG_4273:{towgs84:`278.3,93,474.5,7.889,0.05,-6.61,6.21`},EPSG_4240:{towgs84:`204.64,834.74,293.8`},EPSG_4817:{towgs84:`278.3,93,474.5,7.889,0.05,-6.61,6.21`},ESRI_104131:{towgs84:`426.62,142.62,460.09,4.98,4.49,-12.42,-17.1`},EPSG_4265:{towgs84:`-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68`},EPSG_4263:{towgs84:`-111.92,-87.85,114.5,1.875,0.202,0.219,0.032`},EPSG_4298:{towgs84:`-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536`},EPSG_4270:{towgs84:`-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424`},EPSG_4229:{towgs84:`-121.8,98.1,-10.7`},EPSG_4220:{towgs84:`-55.5,-348,-229.2`},EPSG_4214:{towgs84:`12.646,-155.176,-80.863`},EPSG_4232:{towgs84:`-345,3,223`},EPSG_4238:{towgs84:`-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037`},EPSG_4168:{towgs84:`-170,33,326`},EPSG_4131:{towgs84:`199,931,318.9`},EPSG_4152:{towgs84:`-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0`},EPSG_5228:{towgs84:`572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378`},EPSG_8351:{towgs84:`485.021,169.465,483.839,7.786342,4.397554,4.102655,0`},EPSG_4683:{towgs84:`-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06`},EPSG_4133:{towgs84:`0,0,0`},EPSG_7373:{towgs84:`0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693`},EPSG_9075:{towgs84:`-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0`},EPSG_9072:{towgs84:`-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0`},EPSG_9294:{towgs84:`1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388`},EPSG_4212:{towgs84:`-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492`},EPSG_4191:{towgs84:`-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703`},EPSG_4237:{towgs84:`52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191`},EPSG_4740:{towgs84:`-1.08,-0.27,-0.9`},EPSG_4124:{towgs84:`419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496`},EPSG_5681:{towgs84:`584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922`},EPSG_4141:{towgs84:`23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262`},EPSG_4204:{towgs84:`-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194`},EPSG_4319:{towgs84:`226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798`},EPSG_4200:{towgs84:`24.82,-131.21,-82.66`},EPSG_4130:{towgs84:`0,0,0`},EPSG_4127:{towgs84:`-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359`},EPSG_4149:{towgs84:`674.374,15.056,405.346`},EPSG_4617:{towgs84:`-0.991,1.9072,0.5129,0.02579,0.00965,0.01166,0`},EPSG_4663:{towgs84:`-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485`},EPSG_4664:{towgs84:`-211.939,137.626,58.3,-0.089,0.251,0.079,0.384`},EPSG_4665:{towgs84:`-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048`},EPSG_4666:{towgs84:`631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43`},EPSG_4756:{towgs84:`-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188`},EPSG_4723:{towgs84:`-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925`},EPSG_4726:{towgs84:`8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081`},EPSG_4267:{towgs84:`-8.0,160.0,176.0`},EPSG_5365:{towgs84:`-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693`},EPSG_4218:{towgs84:`304.5,306.5,-318.1`},EPSG_4242:{towgs84:`-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95`},EPSG_4216:{towgs84:`-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289`},ESRI_104105:{towgs84:`631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43`},ESRI_104129:{towgs84:`0,0,0`},EPSG_4673:{towgs84:`174.05,-25.49,112.57`},EPSG_4202:{towgs84:`-124,-60,154`},EPSG_4203:{towgs84:`-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191`},EPSG_3819:{towgs84:`595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408`},EPSG_8694:{towgs84:`-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169`},EPSG_4145:{towgs84:`275.57,676.78,229.6`},EPSG_4283:{towgs84:`0.06155,-0.01087,-0.04019,0.039492,0.032722,0.032898,-0.009994`},EPSG_4317:{towgs84:`2.3287,-147.0425,-92.0802,-0.309248,0.324822,0.497299,5.689063`},EPSG_4272:{towgs84:`59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993`},EPSG_4248:{towgs84:`-307.7,265.3,-363.5`},EPSG_5561:{towgs84:`24,-121,-76`},EPSG_5233:{towgs84:`-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338`},ESRI_104130:{towgs84:`-86,-98,-119`},ESRI_104102:{towgs84:`682,-203,480`},ESRI_37207:{towgs84:`7,-10,-26`},EPSG_4675:{towgs84:`59.935,118.4,-10.871`},ESRI_104109:{towgs84:`-89.121,-348.182,260.871`},ESRI_104112:{towgs84:`-185.583,-230.096,281.361`},ESRI_104113:{towgs84:`25.1,-275.6,222.6`},IGNF_WGS72G:{towgs84:`0,12,6`},IGNF_NTFG:{towgs84:`-168,-60,320`},IGNF_EFATE57G:{towgs84:`-127,-769,472`},IGNF_PGP50G:{towgs84:`324.8,153.6,172.1`},IGNF_REUN47G:{towgs84:`94,-948,-1262`},IGNF_CSG67G:{towgs84:`-186,230,110`},IGNF_GUAD48G:{towgs84:`-467,-16,-300`},IGNF_TAHI51G:{towgs84:`162,117,154`},IGNF_TAHAAG:{towgs84:`65,342,77`},IGNF_NUKU72G:{towgs84:`84,274,65`},IGNF_PETRELS72G:{towgs84:`365,194,166`},IGNF_WALL78G:{towgs84:`253,-133,-127`},IGNF_MAYO50G:{towgs84:`-382,-59,-262`},IGNF_TANNAG:{towgs84:`-139,-967,436`},IGNF_IGN72G:{towgs84:`-13,-348,292`},IGNF_ATIGG:{towgs84:`1118,23,66`},IGNF_FANGA84G:{towgs84:`150.57,158.33,118.32`},IGNF_RUSAT84G:{towgs84:`202.13,174.6,-15.74`},IGNF_KAUE70G:{towgs84:`126.74,300.1,-75.49`},IGNF_MOP90G:{towgs84:`-10.8,-1.8,12.77`},IGNF_MHPF67G:{towgs84:`338.08,212.58,-296.17`},IGNF_TAHI79G:{towgs84:`160.61,116.05,153.69`},IGNF_ANAA92G:{towgs84:`1.5,3.84,4.81`},IGNF_MARQUI72G:{towgs84:`330.91,-13.92,58.56`},IGNF_APAT86G:{towgs84:`143.6,197.82,74.05`},IGNF_TUBU69G:{towgs84:`237.17,171.61,-77.84`},IGNF_STPM50G:{towgs84:`11.363,424.148,373.13`},EPSG_4150:{towgs84:`674.374,15.056,405.346`},EPSG_4754:{towgs84:`-208.4058,-109.8777,-2.5764`},ESRI_104101:{towgs84:`372.87,149.23,585.29`},EPSG_4693:{towgs84:`0,-0.15,0.68`},EPSG_6207:{towgs84:`293.17,726.18,245.36`},EPSG_4153:{towgs84:`-133.63,-157.5,-158.62`},EPSG_4132:{towgs84:`-241.54,-163.64,396.06`},EPSG_4221:{towgs84:`-154.5,150.7,100.4`},EPSG_4266:{towgs84:`-80.7,-132.5,41.1`},EPSG_4193:{towgs84:`-70.9,-151.8,-41.4`},EPSG_5340:{towgs84:`-0.41,0.46,-0.35`},EPSG_4246:{towgs84:`-294.7,-200.1,525.5`},EPSG_4318:{towgs84:`-3.2,-5.7,2.8`},EPSG_4121:{towgs84:`-199.87,74.79,246.62`},EPSG_4223:{towgs84:`-260.1,5.5,432.2`},EPSG_4158:{towgs84:`-0.465,372.095,171.736`},EPSG_4285:{towgs84:`-128.16,-282.42,21.93`},EPSG_4613:{towgs84:`-404.78,685.68,45.47`},EPSG_4607:{towgs84:`195.671,332.517,274.607`},EPSG_4475:{towgs84:`-381.788,-57.501,-256.673`},EPSG_4208:{towgs84:`-157.84,308.54,-146.6`},EPSG_4743:{towgs84:`70.995,-335.916,262.898`},EPSG_4710:{towgs84:`-323.65,551.39,-491.22`},EPSG_7881:{towgs84:`-0.077,0.079,0.086`},EPSG_4682:{towgs84:`283.729,735.942,261.143`},EPSG_4739:{towgs84:`-156,-271,-189`},EPSG_4679:{towgs84:`-80.01,253.26,291.19`},EPSG_4750:{towgs84:`-56.263,16.136,-22.856`},EPSG_4644:{towgs84:`-10.18,-350.43,291.37`},EPSG_4695:{towgs84:`-103.746,-9.614,-255.95`},EPSG_4292:{towgs84:`-355,21,72`},EPSG_4302:{towgs84:`-61.702,284.488,472.052`},EPSG_4143:{towgs84:`-124.76,53,466.79`},EPSG_4606:{towgs84:`-153,153,307`},EPSG_4699:{towgs84:`-770.1,158.4,-498.2`},EPSG_4247:{towgs84:`-273.5,110.6,-357.9`},EPSG_4160:{towgs84:`8.88,184.86,106.69`},EPSG_4161:{towgs84:`-233.43,6.65,173.64`},EPSG_9251:{towgs84:`-9.5,122.9,138.2`},EPSG_9253:{towgs84:`-78.1,101.6,133.3`},EPSG_4297:{towgs84:`-198.383,-240.517,-107.909`},EPSG_4269:{towgs84:`0,0,0`},EPSG_4301:{towgs84:`-147,506,687`},EPSG_4618:{towgs84:`-59,-11,-52`},EPSG_4612:{towgs84:`0,0,0`},EPSG_4678:{towgs84:`44.585,-131.212,-39.544`},EPSG_4250:{towgs84:`-130,29,364`},EPSG_4144:{towgs84:`214,804,268`},EPSG_4147:{towgs84:`-17.51,-108.32,-62.39`},EPSG_4259:{towgs84:`-254.1,-5.36,-100.29`},EPSG_4164:{towgs84:`-76,-138,67`},EPSG_4211:{towgs84:`-378.873,676.002,-46.255`},EPSG_4182:{towgs84:`-422.651,-172.995,84.02`},EPSG_4224:{towgs84:`-143.87,243.37,-33.52`},EPSG_4225:{towgs84:`-205.57,168.77,-4.12`},EPSG_5527:{towgs84:`-67.35,3.88,-38.22`},EPSG_4752:{towgs84:`98,390,-22`},EPSG_4310:{towgs84:`-30,190,89`},EPSG_9248:{towgs84:`-192.26,65.72,132.08`},EPSG_4680:{towgs84:`124.5,-63.5,-281`},EPSG_4701:{towgs84:`-79.9,-158,-168.9`},EPSG_4706:{towgs84:`-146.21,112.63,4.05`},EPSG_4805:{towgs84:`682,-203,480`},EPSG_4201:{towgs84:`-165,-11,206`},EPSG_4210:{towgs84:`-157,-2,-299`},EPSG_4183:{towgs84:`-104,167,-38`},EPSG_4139:{towgs84:`11,72,-101`},EPSG_4668:{towgs84:`-86,-98,-119`},EPSG_4717:{towgs84:`-2,151,181`},EPSG_4732:{towgs84:`102,52,-38`},EPSG_4280:{towgs84:`-377,681,-50`},EPSG_4209:{towgs84:`-138,-105,-289`},EPSG_4261:{towgs84:`31,146,47`},EPSG_4658:{towgs84:`-73,46,-86`},EPSG_4721:{towgs84:`265.025,384.929,-194.046`},EPSG_4222:{towgs84:`-136,-108,-292`},EPSG_4601:{towgs84:`-255,-15,71`},EPSG_4602:{towgs84:`725,685,536`},EPSG_4603:{towgs84:`72,213.7,93`},EPSG_4605:{towgs84:`9,183,236`},EPSG_4621:{towgs84:`137,248,-430`},EPSG_4657:{towgs84:`-28,199,5`},EPSG_4316:{towgs84:`103.25,-100.4,-307.19`},EPSG_4642:{towgs84:`-13,-348,292`},EPSG_4698:{towgs84:`145,-187,103`},EPSG_4192:{towgs84:`-206.1,-174.7,-87.7`},EPSG_4311:{towgs84:`-265,120,-358`},EPSG_4135:{towgs84:`58,-283,-182`},ESRI_104138:{towgs84:`198,-226,-347`},EPSG_4245:{towgs84:`-11,851,5`},EPSG_4142:{towgs84:`-125,53,467`},EPSG_4213:{towgs84:`-106,-87,188`},EPSG_4253:{towgs84:`-133,-77,-51`},EPSG_4129:{towgs84:`-132,-110,-335`},EPSG_4713:{towgs84:`-77,-128,142`},EPSG_4239:{towgs84:`217,823,299`},EPSG_4146:{towgs84:`295,736,257`},EPSG_4155:{towgs84:`-83,37,124`},EPSG_4165:{towgs84:`-173,253,27`},EPSG_4672:{towgs84:`175,-38,113`},EPSG_4236:{towgs84:`-637,-549,-203`},EPSG_4251:{towgs84:`-90,40,88`},EPSG_4271:{towgs84:`-2,374,172`},EPSG_4175:{towgs84:`-88,4,101`},EPSG_4716:{towgs84:`298,-304,-375`},EPSG_4315:{towgs84:`-23,259,-9`},EPSG_4744:{towgs84:`-242.2,-144.9,370.3`},EPSG_4244:{towgs84:`-97,787,86`},EPSG_4293:{towgs84:`616,97,-251`},EPSG_4714:{towgs84:`-127,-769,472`},EPSG_4736:{towgs84:`260,12,-147`},EPSG_6883:{towgs84:`-235,-110,393`},EPSG_6894:{towgs84:`-63,176,185`},EPSG_4205:{towgs84:`-43,-163,45`},EPSG_4256:{towgs84:`41,-220,-134`},EPSG_4262:{towgs84:`639,405,60`},EPSG_4604:{towgs84:`174,359,365`},EPSG_4169:{towgs84:`-115,118,426`},EPSG_4620:{towgs84:`-106,-129,165`},EPSG_4184:{towgs84:`-203,141,53`},EPSG_4616:{towgs84:`-289,-124,60`},EPSG_9403:{towgs84:`-307,-92,127`},EPSG_4684:{towgs84:`-133,-321,50`},EPSG_4708:{towgs84:`-491,-22,435`},EPSG_4707:{towgs84:`114,-116,-333`},EPSG_4709:{towgs84:`145,75,-272`},EPSG_4712:{towgs84:`-205,107,53`},EPSG_4711:{towgs84:`124,-234,-25`},EPSG_4718:{towgs84:`230,-199,-752`},EPSG_4719:{towgs84:`211,147,111`},EPSG_4724:{towgs84:`208,-435,-229`},EPSG_4725:{towgs84:`189,-79,-202`},EPSG_4735:{towgs84:`647,1777,-1124`},EPSG_4722:{towgs84:`-794,119,-298`},EPSG_4728:{towgs84:`-307,-92,127`},EPSG_4734:{towgs84:`-632,438,-609`},EPSG_4727:{towgs84:`912,-58,1227`},EPSG_4729:{towgs84:`185,165,42`},EPSG_4730:{towgs84:`170,42,84`},EPSG_4733:{towgs84:`276,-57,149`},ESRI_37218:{towgs84:`230,-199,-752`},ESRI_37240:{towgs84:`-7,215,225`},ESRI_37221:{towgs84:`252,-209,-751`},ESRI_4305:{towgs84:`-123,-206,219`},ESRI_104139:{towgs84:`-73,-247,227`},EPSG_4748:{towgs84:`51,391,-36`},EPSG_4219:{towgs84:`-384,664,-48`},EPSG_4255:{towgs84:`-333,-222,114`},EPSG_4257:{towgs84:`-587.8,519.75,145.76`},EPSG_4646:{towgs84:`-963,510,-359`},EPSG_6881:{towgs84:`-24,-203,268`},EPSG_6882:{towgs84:`-183,-15,273`},EPSG_4715:{towgs84:`-104,-129,239`},IGNF_RGF93GDD:{towgs84:`0,0,0`},IGNF_RGM04GDD:{towgs84:`0,0,0`},IGNF_RGSPM06GDD:{towgs84:`0,0,0`},IGNF_RGTAAF07GDD:{towgs84:`0,0,0`},IGNF_RGFG95GDD:{towgs84:`0,0,0`},IGNF_RGNCG:{towgs84:`0,0,0`},IGNF_RGPFGDD:{towgs84:`0,0,0`},IGNF_ETRS89G:{towgs84:`0,0,0`},IGNF_RGR92GDD:{towgs84:`0,0,0`},EPSG_4173:{towgs84:`0,0,0`},EPSG_4180:{towgs84:`0,0,0`},EPSG_4619:{towgs84:`0,0,0`},EPSG_4667:{towgs84:`0,0,0`},EPSG_4075:{towgs84:`0,0,0`},EPSG_6706:{towgs84:`0,0,0`},EPSG_7798:{towgs84:`0,0,0`},EPSG_4661:{towgs84:`0,0,0`},EPSG_4669:{towgs84:`0,0,0`},EPSG_8685:{towgs84:`0,0,0`},EPSG_4151:{towgs84:`0,0,0`},EPSG_9702:{towgs84:`0,0,0`},EPSG_4758:{towgs84:`0,0,0`},EPSG_4761:{towgs84:`0,0,0`},EPSG_4765:{towgs84:`0,0,0`},EPSG_8997:{towgs84:`0,0,0`},EPSG_4023:{towgs84:`0,0,0`},EPSG_4670:{towgs84:`0,0,0`},EPSG_4694:{towgs84:`0,0,0`},EPSG_4148:{towgs84:`0,0,0`},EPSG_4163:{towgs84:`0,0,0`},EPSG_4167:{towgs84:`0,0,0`},EPSG_4189:{towgs84:`0,0,0`},EPSG_4190:{towgs84:`0,0,0`},EPSG_4176:{towgs84:`0,0,0`},EPSG_4659:{towgs84:`0,0,0`},EPSG_3824:{towgs84:`0,0,0`},EPSG_3889:{towgs84:`0,0,0`},EPSG_4046:{towgs84:`0,0,0`},EPSG_4081:{towgs84:`0,0,0`},EPSG_4558:{towgs84:`0,0,0`},EPSG_4483:{towgs84:`0,0,0`},EPSG_5013:{towgs84:`0,0,0`},EPSG_5264:{towgs84:`0,0,0`},EPSG_5324:{towgs84:`0,0,0`},EPSG_5354:{towgs84:`0,0,0`},EPSG_5371:{towgs84:`0,0,0`},EPSG_5373:{towgs84:`0,0,0`},EPSG_5381:{towgs84:`0,0,0`},EPSG_5393:{towgs84:`0,0,0`},EPSG_5489:{towgs84:`0,0,0`},EPSG_5593:{towgs84:`0,0,0`},EPSG_6135:{towgs84:`0,0,0`},EPSG_6365:{towgs84:`0,0,0`},EPSG_5246:{towgs84:`0,0,0`},EPSG_7886:{towgs84:`0,0,0`},EPSG_8431:{towgs84:`0,0,0`},EPSG_8427:{towgs84:`0,0,0`},EPSG_8699:{towgs84:`0,0,0`},EPSG_8818:{towgs84:`0,0,0`},EPSG_4757:{towgs84:`0,0,0`},EPSG_9140:{towgs84:`0,0,0`},EPSG_8086:{towgs84:`0,0,0`},EPSG_4686:{towgs84:`0,0,0`},EPSG_4737:{towgs84:`0,0,0`},EPSG_4702:{towgs84:`0,0,0`},EPSG_4747:{towgs84:`0,0,0`},EPSG_4749:{towgs84:`0,0,0`},EPSG_4674:{towgs84:`0,0,0`},EPSG_4755:{towgs84:`0,0,0`},EPSG_4759:{towgs84:`0,0,0`},EPSG_4762:{towgs84:`0,0,0`},EPSG_4763:{towgs84:`0,0,0`},EPSG_4764:{towgs84:`0,0,0`},EPSG_4166:{towgs84:`0,0,0`},EPSG_4170:{towgs84:`0,0,0`},EPSG_5546:{towgs84:`0,0,0`},EPSG_7844:{towgs84:`0,0,0`},EPSG_4818:{towgs84:`589,76,480`},EPSG_10328:{towgs84:`0,0,0`},EPSG_9782:{towgs84:`0,0,0`},EPSG_9777:{towgs84:`0,0,0`},EPSG_10690:{towgs84:`0,0,0`},EPSG_10639:{towgs84:`0,0,0`},EPSG_10739:{towgs84:`0,0,0`},EPSG_7686:{towgs84:`0,0,0`},EPSG_8900:{towgs84:`0,0,0`},EPSG_5886:{towgs84:`0,0,0`},EPSG_7683:{towgs84:`0,0,0`},EPSG_6668:{towgs84:`0,0,0`},EPSG_20046:{towgs84:`0,0,0`},EPSG_10299:{towgs84:`0,0,0`},EPSG_10310:{towgs84:`0,0,0`},EPSG_10475:{towgs84:`0,0,0`},EPSG_4742:{towgs84:`0,0,0`},EPSG_10671:{towgs84:`0,0,0`},EPSG_10762:{towgs84:`0,0,0`},EPSG_10725:{towgs84:`0,0,0`},EPSG_10791:{towgs84:`0,0,0`},EPSG_10800:{towgs84:`0,0,0`},EPSG_10305:{towgs84:`0,0,0`},EPSG_10941:{towgs84:`0,0,0`},EPSG_10968:{towgs84:`0,0,0`},EPSG_10875:{towgs84:`0,0,0`},EPSG_6318:{towgs84:`0,0,0`},EPSG_10910:{towgs84:`0,0,0`}};for(
1Cn$1 in Pi$1)wi$1=Pi$1[Cn$1],wi$1.datumName&&(Pi$1[wi$1.datumName]=wi$1);var wi$1;var Cn$1;var wn$1=Pi$1;function sh(t,i,e,s,r,n,o){var a={};return a.datum_type=Re,i&&(a.datum_type=Qr$1,a.datum_params=i.map(parseFloat),(a.datum_params[0]!==0||a.datum_params[1]!==0||a.datum_params[2]!==0)&&(a.datum_type=St$2),a.datum_params.length>3&&(a.datum_params[3]!==0||a.datum_params[4]!==0||a.datum_params[5]!==0||a.datum_params[6]!==0)&&(a.datum_type=bt,a.datum_params[3]*=te,a.datum_params[4]*=te,a.datum_params[5]*=te,a.datum_params[6]=a.datum_params[6]/1e6+1)),o&&(a.datum_type=Ot$1,a.grids=o),a.a=e,a.b=s,a.es=r,a.ep2=n,a}var Pn$1=sh;var Ds={};function Ns(t,i,e){return i instanceof ArrayBuffer?rh(t,i,e):{ready:nh$1(t,i)}}function rh(t,i,e){var s=!0;e!==void 0&&e.includeErrorFields===!1&&(s=!1);var r=new DataView(i),n=oh(r),o=hh(r,n),h={header:o,subgrids:lh(r,o,n,s)};return Ds[t]=h,h}function nh$1(t,i){return L$1(this,null,function*(){for(var e=[],s=yield i.getImageCount(),r=s-1;r>=0;r--){var n=yield i.getImage(r),a=yield n.readRasters(),h=[n.getWidth(),n.getHeight()],l=n.getBoundingBox().map(An$1),d=typeof n.fileDirectory.getValue==`function`?n.fileDirectory.getValue(`ModelPixelScale`):n.fileDirectory.ModelPixelScale,u=[d[0],d[1]].map(An$1),f=l[0]+(h[0]-1)*u[0],g=l[3]-(h[1]-1)*u[1],c=a[0],v=a[1],y=[];for(let x=h[1]-1;x>=0;x--)for(let C=h[0]-1;C>=0;C--){var M=x*h[0]+C;y.push([-Xt(v[M]),Xt(c[M])])}e.push({del:u,lim:h,ll:[-f,g],cvs:y})}var S={header:{nSubgrids:s},subgrids:e};return Ds[t]=S,S})}function In$2(t){if(t===void 0)return null;return t.split(`,`).map(ah)}function ah(t){if(t.length===0)return null;var i=t[0]===`@`;return i&&(t=t.slice(1)),t===`null`?{name:`null`,mandatory:!i,grid:null,isNull:!0}:{name:t,mandatory:!i,grid:Ds[t]||null,isNull:!1}}function An$1(t){return t*Math.PI/180}function Xt(t){return t/3600*Math.PI/180}function oh(t){var i=t.getInt32(8,!1);return i===11?!1:(i=t.getInt32(8,!0),i!==11&&console.warn(`Failed to detect nadgrid endian-ness, defaulting to little-endian`),!0)}function hh(t,i){return{nFields:t.getInt32(8,i),nSubgridFields:t.getInt32(24,i),nSubgrids:t.getInt32(40,i),shiftType:Is(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,i),fromSemiMinorAxis:t.getFloat64(136,i),toSemiMajorAxis:t.getFloat64(152,i),toSemiMinorAxis:t.getFloat64(168,i)}}function Is(t,i,e){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(i,e)))}function lh(t,i,e,s){for(var r=176,n=[],o=0;o<i.nSubgrids;o++){var a=uh(t,r,e),h=dh(t,r,a,e,s),l=Math.round(1+(a.upperLongitude-a.lowerLongitude)/a.longitudeInterval),d=Math.round(1+(a.upperLatitude-a.lowerLatitude)/a.latitudeInterval);n.push({ll:[Xt(a.lowerLongitude),Xt(a.lowerLatitude)],del:[Xt(a.longitudeInterval),Xt(a.latitudeInterval)],lim:[l,d],count:a.gridNodeCount,cvs:ch(h)});var u=16;s===!1&&(u=8),r+=176+a.gridNodeCount*u}return n}
vendor: 73,399 bytes, lines 1-4
1function ch(t){return t.map(function(i){return[Xt(i.longitudeShift),Xt(i.latitudeShift)]})}function uh(t,i,e){return{name:Is(t,i+8,i+16).trim(),parent:Is(t,i+24,i+24+8).trim(),lowerLatitude:t.getFloat64(i+72,e),upperLatitude:t.getFloat64(i+88,e),lowerLongitude:t.getFloat64(i+104,e),upperLongitude:t.getFloat64(i+120,e),latitudeInterval:t.getFloat64(i+136,e),longitudeInterval:t.getFloat64(i+152,e),gridNodeCount:t.getInt32(i+168,e)}}function dh(t,i,e,s,r){var n=i+176,o=16;r===!1&&(o=8);for(var a=[],h=0;h<e.gridNodeCount;h++){var l={latitudeShift:t.getFloat32(n+h*o,s),longitudeShift:t.getFloat32(n+h*o+4,s)};r!==!1&&(l.latitudeAccuracy=t.getFloat32(n+h*o+8,s),l.longitudeAccuracy=t.getFloat32(n+h*o+12,s)),a.push(l)}return a}function ge(t,i){if(!(this instanceof ge))return new ge(t);this.forward=null,this.inverse=null,this.init=null,this.name,this.axis,this.names=null,this.title,i=i||function(l){if(l)throw l};var e=pn(t);if(typeof e!=`object`){i(`Could not parse to valid json: `+t);return}var s=ge.projections.get(e.projName);if(!s){i(`Could not get projection name from: `+t);return}if(e.datumCode&&e.datumCode!==`none`){var r=ft(wn$1,e.datumCode);r&&(e.datum_params=e.datum_params||(r.towgs84?r.towgs84.split(`,`):null),e.ellps=r.ellipse,e.datumName=r.datumName?r.datumName:e.datumCode)}e.axis=e.axis||`enu`,e.ellps=e.ellps||`wgs84`,e.lat1=e.lat1||e.lat0;var n=En$2(e.a,e.b,e.rf,e.ellps,e.sphere),o=xn$1(n.a,n.b,n.rf,e.R_A),a=In$2(e.nadgrids),h=e.datum||Pn$1(e.datumCode,e.datum_params,n.a,n.b,o.es,o.ep2,a);Cs(this,e),Cs(this,s),this.a=n.a,this.b=n.b,this.rf=n.rf,this.sphere=n.sphere,this.es=o.es,this.e=o.e,this.ep2=o.ep2,this.datum=h,`init`in this&&typeof this.init==`function`&&this.init(),this.k0||(this.k0=1),i(null,this)}ge.projections=bn;ge.projections.start();var xt$2=ge;function Dn$1(t,i){return t.datum_type!==i.datum_type||t.a!==i.a||Math.abs(t.es-i.es)>5e-11?!1:t.datum_type===St$2?t.datum_params[0]===i.datum_params[0]&&t.datum_params[1]===i.datum_params[1]&&t.datum_params[2]===i.datum_params[2]:t.datum_type===bt?t.datum_params[0]===i.datum_params[0]&&t.datum_params[1]===i.datum_params[1]&&t.datum_params[2]===i.datum_params[2]&&t.datum_params[3]===i.datum_params[3]&&t.datum_params[4]===i.datum_params[4]&&t.datum_params[5]===i.datum_params[5]&&t.datum_params[6]===i.datum_params[6]:!0}function Ai(t,i,e){var s=t.x,r=t.y,n=t.z?t.z:0,o,a,h,l;if(r<-m&&r>-1.001*m)r=-m;else if(r>m&&r<1.001*m)r=m;else{if(r<-m)return{x:-Infinity,y:-Infinity,z:t.z};if(r>m)return{x:Infinity,y:Infinity,z:t.z}}return s>Math.PI&&(s-=2*Math.PI),a=Math.sin(r),l=Math.cos(r),h=a*a,o=e/Math.sqrt(1-i*h),{x:(o+n)*l*Math.cos(s),y:(o+n)*l*Math.sin(s),z:(o*(1-i)+n)*a}}function Ii$1(t,i,e,s){var r=1e-12,n=r*r,o=30,a,h,l,d,u,f,g,c,v,y,M,S,x,C=t.x,P=t.y,A=t.z?t.z:0,O,K,U;if(a=Math.sqrt(C*C+P*P),h=Math.sqrt(C*C+P*P+A*A),a/e<r){if(O=0,h/e<r)return K=m,U=-s,{x:t.x,y:t.y,z:t.z}}else O=Math.atan2(P,C);l=A/h,d=a/h,u=1/Math.sqrt(1-i*(2-i)*d*d),c=d*(1-i)*u,v=l*u,x=0;do x++,g=e/Math.sqrt(1-i*v*v),U=a*c+A*v-g*(1-i*v*v),f=i*g/(g+U),u=1/Math.sqrt(1-f*(2-f)*d*d),y=d*(1-f)*u,M=l*u,S=M*c-y*v,c=y,v=M;while(S*S>n&&x<o);return K=Math.atan(M/Math.abs(y)),{x:O,y:K,z:U}}function Nn$1(t,i,e){if(i===St$2)return{x:t.x+e[0],y:t.y+e[1],z:t.z+e[2]};if(i===bt){var s=e[0],r=e[1],n=e[2],o=e[3],a=e[4],h=e[5],l=e[6];return{x:l*(t.x-h*t.y+a*t.z)+s,y:l*(h*t.x+t.y-o*t.z)+r,z:l*(-a*t.x+o*t.y+t.z)+n}}}function Gn$1(t,i,e){if(i===St$2)return{x:t.x-e[0],y:t.y-e[1],z:t.z-e[2]};if(i===bt){var s=e[0],r=e[1],n=e[2],o=e[3],a=e[4],h=e[5],l=e[6],d=(t.x-s)/l,u=(t.y-r)/l,f=(t.z-n)/l;return{x:d+h*u-a*f,y:-h*d+u+o*f,z:a*d-o*u+f}}}function Di(t){return t===St$2||t===bt}function Tn$2(t,i,e){if(Dn$1(t,i)||t.datum_type===Re||i.datum_type===Re)return e;var s=t.a,r=t.es;if(t.datum_type===Ot$1){if(On$1(t,!1,e)!==0)return;s=Ms,r=Ss}var o=i.a,a=i.b,h=i.es;if(i.datum_type===Ot$1&&(o=Ms,a=Xr$1,h=Ss),r===h&&s===o&&!Di(t.datum_type)&&!Di(i.datum_type))return e;if(e=Ai(e,r,s),Di(t.datum_type)&&(e=Nn$1(e,t.datum_type,t.datum_params)),Di(i.datum_type)&&(e=Gn$1(e,i.datum_type,i.datum_params)),e=Ii$1(e,h,o,a),i.datum_type===Ot$1){if(On$1(i,!0,e)!==0)return}return e}function On$1(t,i,e){if(t.grids===null||t.grids.length===0)return console.log(`Grid shift grids not found`),-1;var s={x:-e.x,y:e.y},r={x:NaN,y:NaN},n=[];t:for(var o=0;o<t.grids.length;o++){var a=t.grids[o];if(n.push(a.name),a.isNull){r=s;break}if(a.grid===null){if(a.mandatory)return console.log(`Unable to find mandatory grid '`+a.name+`'`),-1;continue}for(var h=a.grid.subgrids,l=0,d=h.length;l<d;l++){var u=h[l],f=(Math.abs(u.del[1])+Math.abs(u.del[0]))/1e4,g=u.ll[0]-f,c=u.ll[1]-f,v=u.ll[0]+(u.lim[0]-1)*u.del[0]+f,y=u.ll[1]+(u.lim[1]-1)*u.del[1]+f;if(!(c>s.y||g>s.x||y<s.y||v<s.x)&&(r=fh(s,i,u),!isNaN(r.x)))break t}}return isNaN(r.x)?(console.log(`Failed to find a grid shift table for location '`+-s.x*k+` `+s.y*k+` tried: '`+n+`'`),-1):(e.x=-r.x,e.y=r.y,0)}function fh(t,i,e){var s={x:NaN,y:NaN};if(isNaN(t.x))return s;var r={x:t.x,y:t.y};r.x-=e.ll[0],r.y-=e.ll[1],r.x=_(r.x-Math.PI)+Math.PI;var n=Ln$1(r,e);if(i){if(isNaN(n.x))return s;n.x=r.x-n.x,n.y=r.y-n.y;var o=9,a=1e-12,h,l;do{if(l=Ln$1(n,e),isNaN(l.x)){console.log(`Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.`);break}h={x:r.x-(l.x+n.x),y:r.y-(l.y+n.y)},n.x+=h.x,n.y+=h.y}while(o--&&Math.abs(h.x)>a&&Math.abs(h.y)>a);if(o<0)return console.log(`Inverse grid shift iterator failed to converge.`),s;s.x=_(n.x+e.ll[0]),s.y=n.y+e.ll[1]}else isNaN(n.x)||(s.x=t.x+n.x,s.y=t.y+n.y);return s}function Ln$1(t,i){var e={x:t.x/i.del[0],y:t.y/i.del[1]},s={x:Math.floor(e.x),y:Math.floor(e.y)},r={x:e.x-1*s.x,y:e.y-1*s.y},n={x:NaN,y:NaN},o;if(s.x<0||s.x>=i.lim[0]||s.y<0||s.y>=i.lim[1])return n;o=s.y*i.lim[0]+s.x;var a={x:i.cvs[o][0],y:i.cvs[o][1]};o++;var h={x:i.cvs[o][0],y:i.cvs[o][1]};o+=i.lim[0];var l={x:i.cvs[o][0],y:i.cvs[o][1]};o--;var d={x:i.cvs[o][0],y:i.cvs[o][1]},u=r.x*r.y,f=r.x*(1-r.y),g=(1-r.x)*(1-r.y),c=(1-r.x)*r.y;return n.x=g*a.x+f*h.x+c*d.x+u*l.x,n.y=g*a.y+f*h.y+c*d.y+u*l.y,n}var se=[`x`,`y`,`z`];function Vn$1(t,i){let e={};for(let s=0,r=t.axis.length;s<r;s++){if(s===2&&i.z===void 0)continue;let n=i[se[s]];switch(t.axis[s]){case`e`:e.x=n;break;case`w`:e.x=-n;break;case`n`:e.y=n;break;case`s`:e.y=-n;break;case`u`:e.z=n;break;case`d`:e.z=-n;break;default:return null}}return e}function Rn$1(t,i){let e={};for(let s=0,r=t.axis.length;s<r;s++)if(!(s===2&&i.z===void 0))switch(t.axis[s]){case`e`:e[se[s]]=i.x;break;case`w`:e[se[s]]=-i.x;break;case`n`:e[se[s]]=i.y;break;case`s`:e[se[s]]=-i.y;break;case`u`:e[se[s]]=i.z;break;case`d`:e[se[s]]=-i.z;break;default:return null}return e}function _e(t){var i={x:t[0],y:t[1]};return t.length>2&&(i.z=t[2]),t.length>3&&(i.m=t[3]),i}function kn$2(t){Fn$1(t.x),Fn$1(t.y)}function Fn$1(t){if(typeof Number.isFinite==`function`){if(Number.isFinite(t))return;throw new TypeError(`coordinates must be finite numbers`)}if(typeof t!=`number`||t!==t||!isFinite(t))throw new TypeError(`coordinates must be finite numbers`)}function mh(t,i){return(t.datum.datum_type===St$2||t.datum.datum_type===bt||t.datum.datum_type===Ot$1)&&i.datumCode!==`WGS84`||(i.datum.datum_type===St$2||i.datum.datum_type===bt||i.datum.datum_type===Ot$1)&&t.datumCode!==`WGS84`}function Ue$1(t,i,e,s){var r,n=e.z!==void 0;if(kn$2(e),t.datum&&i.datum&&mh(t,i)&&(r=new xt$2(`WGS84`),e=Ue$1(t,r,e,s),t=r),s&&t.axis!==`enu`&&(e=Vn$1(t,e)),t.projName===`longlat`)e={x:e.x*D,y:e.y*D,z:e.z||0};else if(t.to_meter&&(e={x:e.x*t.to_meter,y:e.y*t.to_meter,z:e.z||0}),e=t.inverse(e),!e)return;if(t.from_greenwich&&(e.x+=t.from_greenwich),e=Tn$2(t.datum,i.datum,e),!!e)return e=e,i.from_greenwich&&(e={x:e.x-i.from_greenwich,y:e.y,z:e.z||0}),i.projName===`longlat`?(i.long_wrap!==void 0&&(e.x=i.long_wrap+_(e.x-i.long_wrap)),e={x:e.x*k,y:e.y*k,z:e.z||0}):(e=i.forward(e),i.to_meter&&(e={x:e.x/i.to_meter,y:e.y/i.to_meter,z:e.z||0})),s&&i.axis!==`enu`?Rn$1(i,e):(e&&!n&&i.projName!==`geocent`&&delete e.z,e)}function Gs(t,i,e,s){var r;return Array.isArray(e)?r=_e(e):r={x:e.x,y:e.y,z:e.z,m:e.m},Ue$1(t,i,r,s)}var jn$1=xt$2(`WGS84`);function Os(t,i,e,s){var r,n,o;return Array.isArray(e)?(r=Ue$1(t,i,_e(e),s)||{x:NaN,y:NaN},e.length>2?(n=typeof t.name<`u`&&t.name===`geocent`||typeof i.name<`u`&&i.name===`geocent`,n?typeof r.z==`number`?[r.x,r.y,r.z].concat(e.slice(3)):[r.x,r.y,e[2]].concat(e.slice(3)):s&&typeof r.z==`number`?[r.x,r.y,r.z].concat(e.slice(3)):[r.x,r.y].concat(e.slice(2))):[r.x,r.y]):(r=Ue$1(t,i,{x:e.x,y:e.y,z:e.z,m:e.m},s)||{x:NaN,y:NaN},o=Object.keys(e),o.length===2||(n=typeof t.name<`u`&&t.name===`geocent`||typeof i.name<`u`&&i.name===`geocent`,o.forEach(function(a){a===`x`||a===`y`||a===`z`&&(n||s)||(r[a]=e[a])})),r)}function Ni(t){return t instanceof xt$2?t:typeof t==`object`&&`oProj`in t?t.oProj:xt$2(t)}function gh(t,i,e){var s,r,n=!1,o;return typeof i>`u`?(r=Ni(t),s=jn$1,n=!0):(typeof i.x<`u`||Array.isArray(i))&&(e=i,r=Ni(t),s=jn$1,n=!0),s||(s=Ni(t)),r||(r=Ni(i)),e?Os(s,r,e):(o={forward:function(a,h){return Os(s,r,a,h)},inverse:function(a,h){return Os(r,s,a,h)}},n&&(o.oProj=r),o)}var Un$1=gh;var Bn=6;var Hn$1=`AJSAJS`;var Wn$1=`AFAFAF`;var pe$1=65;var ot=73;var pt$1=79;var Be$1=86;var qe$1=90;var zn$1={forward:Ts,inverse:_h,toPoint:Vs};function Ts(t,i){return i=i||5,yh(ph({lat:t[1],lon:t[0]}),i)}function _h(t){var i=Rs($n$1(t.toUpperCase()));return i.lat&&i.lon?[i.lon,i.lat,i.lon,i.lat]:[i.left,i.bottom,i.right,i.top]}function Vs(t){var i=Rs($n$1(t.toUpperCase()));return i.lat&&i.lon?[i.lon,i.lat]:[(i.left+i.right)/2,(i.top+i.bottom)/2]}function Ls(t){return t*(Math.PI/180)}function qn$1(t){return 180*(t/Math.PI)}function ph(t){var i=t.lat,e=t.lon,s=6378137,r=.00669438,n=.9996,o,a,h,l,d,u,f,g=Ls(i),c=Ls(e),v,y=Math.floor((e+180)/6)+1;e===180&&(y=60),i>=56&&i<64&&e>=3&&e<12&&(y=32),i>=72&&i<84&&(e>=0&&e<9?y=31:e>=9&&e<21?y=33:e>=21&&e<33?y=35:e>=33&&e<42&&(y=37)),o=(y-1)*6-180+3,v=Ls(o),a=r/(1-r),h=s/Math.sqrt(1-r*Math.sin(g)*Math.sin(g)),l=Math.tan(g)*Math.tan(g),d=a*Math.cos(g)*Math.cos(g),u=Math.cos(g)*(c-v),f=s*((1-r/4-3*r*r/64-5*r*r*r/256)*g-(3*r/8+3*r*r/32+45*r*r*r/1024)*Math.sin(2*g)+(15*r*r/256+45*r*r*r/1024)*Math.sin(4*g)-35*r*r*r/3072*Math.sin(6*g));var M=n*h*(u+(1-l+d)*u*u*u/6+(5-18*l+l*l+72*d-58*a)*u*u*u*u*u/120)+5e5,S=n*(f+h*Math.tan(g)*(u*u/2+(5-l+9*d+4*d*d)*u*u*u*u/24+(61-58*l+l*l+600*d-330*a)*u*u*u*u*u*u/720));return i<0&&(S+=1e7),{northing:Math.round(S),easting:Math.round(M),zoneNumber:y,zoneLetter:vh(i)}}function Rs(t){var i=t.northing,e=t.easting,s=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var n=.9996,o=6378137,a=.00669438,h,l=(1-Math.sqrt(1-a))/(1+Math.sqrt(1-a)),d,u,f,g,c,v,y,M,S,x=e-5e5,C=i;s<`N`&&(C-=1e7),y=(r-1)*6-180+3,h=a/(1-a),v=C/n,M=v/(o*(1-a/4-3*a*a/64-5*a*a*a/256)),S=M+(3*l/2-27*l*l*l/32)*Math.sin(2*M)+(21*l*l/16-55*l*l*l*l/32)*Math.sin(4*M)+151*l*l*l/96*Math.sin(6*M),d=o/Math.sqrt(1-a*Math.sin(S)*Math.sin(S)),u=Math.tan(S)*Math.tan(S),f=h*Math.cos(S)*Math.cos(S),g=o*(1-a)/Math.pow(1-a*Math.sin(S)*Math.sin(S),1.5),c=x/(d*n);var P=S-d*Math.tan(S)/g*(c*c/2-(5+3*u+10*f-4*f*f-9*h)*c*c*c*c/24+(61+90*u+298*f+45*u*u-252*h-3*f*f)*c*c*c*c*c*c/720);P=qn$1(P);var A=(c-(1+2*u+f)*c*c*c/6+(5-2*f+28*u-3*f*f+8*h+24*u*u)*c*c*c*c*c/120)/Math.cos(S);A=y+qn$1(A);var O;if(t.accuracy){var K=Rs({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});O={top:K.lat,right:K.lon,bottom:P,left:A}}else O={lat:P,lon:A};return O}function vh(t){var i=`Z`;return 84>=t&&t>=72?i=`X`:72>t&&t>=64?i=`W`:64>t&&t>=56?i=`V`:56>t&&t>=48?i=`U`:48>t&&t>=40?i=`T`:40>t&&t>=32?i=`S`:32>t&&t>=24?i=`R`:24>t&&t>=16?i=`Q`:16>t&&t>=8?i=`P`:8>t&&t>=0?i=`N`:0>t&&t>=-8?i=`M`:-8>t&&t>=-16?i=`L`:-16>t&&t>=-24?i=`K`:-24>t&&t>=-32?i=`J`:-32>t&&t>=-40?i=`H`:-40>t&&t>=-48?i=`G`:-48>t&&t>=-56?i=`F`:-56>t&&t>=-64?i=`E`:-64>t&&t>=-72?i=`D`:-72>t&&t>=-80&&(i=`C`),i}function yh(t,i){var e=`00000`+t.easting,s=`00000`+t.northing;return t.zoneNumber+t.zoneLetter+Mh(t.easting,t.northing,t.zoneNumber)+e.substr(e.length-5,i)+s.substr(s.length-5,i)}function Mh(t,i,e){var s=Kn$1(e);return Sh(Math.floor(t/1e5),Math.floor(i/1e5)%20,s)}function Kn$1(t){var i=t%Bn;return i===0&&(i=Bn),i}function Sh(t,i,e){var s=e-1,r=Hn$1.charCodeAt(s),n=Wn$1.charCodeAt(s),o=r+t-1,a=n+i,h=!1;o>qe$1&&(o=o-qe$1+pe$1-1,h=!0),(o===ot||r<ot&&o>ot||(o>ot||r<ot)&&h)&&o++,(o===pt$1||r<pt$1&&o>pt$1||(o>pt$1||r<pt$1)&&h)&&(o++,o===ot&&o++),o>qe$1&&(o=o-qe$1+pe$1-1),a>Be$1?(a=a-Be$1+pe$1-1,h=!0):h=!1,(a===ot||n<ot&&a>ot||(a>ot||n<ot)&&h)&&a++,(a===pt$1||n<pt$1&&a>pt$1||(a>pt$1||n<pt$1)&&h)&&(a++,a===ot&&a++),a>Be$1&&(a=a-Be$1+pe$1-1);return String.fromCharCode(o)+String.fromCharCode(a)}function $n$1(t){if(t&&t.length===0)throw`MGRSPoint coverting from nothing`;for(var i=t.length,e=null,s=``,r,n=0;!/[A-Z]/.test(r=t.charAt(n));){if(n>=2)throw`MGRSPoint bad conversion from: `+t;s+=r,n++}var o=parseInt(s,10);if(n===0||n+3>i)throw`MGRSPoint bad conversion from: `+t;var a=t.charAt(n++);if(a<=`A`||a===`B`||a===`Y`||a>=`Z`||a===`I`||a===`O`)throw`MGRSPoint zone letter `+a+` not handled: `+t;e=t.substring(n,n+=2);for(var h=Kn$1(o),l=bh(e.charAt(0),h),d=xh(e.charAt(1),h);d<Eh(a);)d+=2e6;var u=i-n;if(u%2!==0)throw`MGRSPoint has to have an even number 2of digits after the zone letter and two 100km letters - front 3half for easting meters, second half for 4northing meters`+t;var f=u/2,g=0,c=0,v,y,M,S,x;return f>0&&(v=1e5/Math.pow(10,f),y=t.substring(n,n+f),g=parseFloat(y)*v,M=t.substring(n+f),c=parseFloat(M)*v),S=g+l,x=c+d,{easting:S,northing:x,zoneLetter:a,zoneNumber:o,accuracy:v}}function bh(t,i){for(var e=Hn$1.charCodeAt(i-1),s=1e5,r=!1;e!==t.charCodeAt(0);){if(e++,e===ot&&e++,e===pt$1&&e++,e>qe$1){if(r)throw`Bad character: `+t;e=pe$1,r=!0}s+=1e5}return s}function xh(t,i){if(t>`V`)throw`MGRSPoint given invalid Northing `+t;for(var e=Wn$1.charCodeAt(i-1),s=0,r=!1;e!==t.charCodeAt(0);){if(e++,e===ot&&e++,e===pt$1&&e++,e>Be$1){if(r)throw`Bad character: `+t;e=pe$1,r=!0}s+=1e5}return s}function Eh(t){var i;switch(t){case`C`:i=11e5;break;case`D`:i=2e6;break;case`E`:i=28e5;break;case`F`:i=37e5;break;case`G`:i=46e5;break;case`H`:i=55e5;break;case`J`:i=64e5;break;case`K`:i=73e5;break;case`L`:i=82e5;break;case`M`:i=91e5;break;case`N`:i=0;break;case`P`:i=8e5;break;case`Q`:i=17e5;break;case`R`:i=26e5;break;case`S`:i=35e5;break;case`T`:i=44e5;break;case`U`:i=53e5;break;case`V`:i=62e5;break;case`W`:i=7e6;break;case`X`:i=79e5;break;default:i=-1}if(i>=0)return i;throw`Invalid zone letter: `+t}function ve(t,i,e){if(!(this instanceof ve))return new ve(t,i,e);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if(typeof t==`object`)this.x=t.x,this.y=t.y,this.z=t.z||0;else if(typeof t==`string`&&typeof i>`u`){var s=t.split(`,`);this.x=parseFloat(s[0]),this.y=parseFloat(s[1]),this.z=parseFloat(s[2])||0}else this.x=t,this.y=i,this.z=e||0;console.warn(`proj4.Point will be removed in version 3, use proj4.toPoint`)}ve.fromMGRS=function(t){return new ve(Vs(t))};ve.prototype.toMGRS=function(t){return Ts([this.x,this.y],t)};var Qn$2=ve;var Ch=1;var wh=.25;var Xn$2=.046875;var Jn$2=.01953125;var Zn$1=.01068115234375;var Ph=.75;var Ah=.46875;var Ih=.013020833333333334;var Dh=.007120768229166667;var Nh=.3645833333333333;var Gh=.005696614583333333;var Oh=.3076171875;function ye$1(t){var i=[];i[0]=Ch-t*(wh+t*(Xn$2+t*(Jn$2+t*Zn$1))),i[1]=t*(Ph-t*(Xn$2+t*(Jn$2+t*Zn$1)));var e=t*t;return i[2]=e*(Ah-t*(Ih+t*Dh)),e*=t,i[3]=e*(Nh-t*Gh),i[4]=e*t*Oh,i}function It$1(t,i,e,s){return e*=i,i*=i,s[0]*t-e*(s[1]+i*(s[2]+i*(s[3]+i*s[4])))}var Lh=20;function Me$1(t,i,e){for(var s=1/(1-i),r=t,n=Lh;n;--n){var o=Math.sin(r),a=1-i*o*o;if(a=(It$1(r,o,Math.cos(r),e)-t)*(a*Math.sqrt(a))*s,r-=a,Math.abs(a)<p)return r}return r}function Th(){this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.es&&(this.en=ye$1(this.es),this.ml0=It$1(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function Vh(t){var i=t.x,e=t.y,s=_(i-this.long0,this.over),r,n,o,a=Math.sin(e),h=Math.cos(e);if(this.es){var d=h*s,u=Math.pow(d,2),f=this.ep2*Math.pow(h,2),g=Math.pow(f,2),v=Math.pow(Math.abs(h)>p?Math.tan(e):0,2),y=Math.pow(v,2);r=1-this.es*Math.pow(a,2),d=d/Math.sqrt(r);var M=It$1(e,a,h,this.en);n=this.a*(this.k0*d*(1+u/6*(1-v+f+u/20*(5-18*v+y+14*f-58*v*f+u/42*(61+179*y-y*v-479*v)))))+this.x0,o=this.a*(this.k0*(M-this.ml0+a*s*d/2*(1+u/12*(5-v+9*f+4*g+u/30*(61+y-58*v+270*f-330*v*f+u/56*(1385+543*y-y*v-3111*v))))))+this.y0}else{var l=h*Math.sin(s);if(Math.abs(Math.abs(l)-1)<p)return 93;if(n=.5*this.a*this.k0*Math.log((1+l)/(1-l))+this.x0,o=h*Math.cos(s)/Math.sqrt(1-Math.pow(l,2)),l=Math.abs(o),l>=1){if(l-1>p)return 93;o=0}else o=Math.acos(o);e<0&&(o=-o),o=this.a*this.k0*(o-this.lat0)+this.y0}return t.x=n,t.y=o,t}function Rh(t){var i,e,s,r,n=(t.x-this.x0)*(1/this.a),o=(t.y-this.y0)*(1/this.a);if(this.es)if(i=this.ml0+o/this.k0,e=Me$1(i,this.es,this.en),Math.abs(e)<m){var u=Math.sin(e),f=Math.cos(e),g=Math.abs(f)>p?Math.tan(e):0,c=this.ep2*Math.pow(f,2),v=Math.pow(c,2),y=Math.pow(g,2),M=Math.pow(y,2);i=1-this.es*Math.pow(u,2);var S=n*Math.sqrt(i)/this.k0,x=Math.pow(S,2);i=i*g,s=e-i*x/(1-this.es)*.5*(1-x/12*(5+3*y-9*c*y+c-4*v-x/30*(61+90*y-252*c*y+45*M+46*c-x/56*(1385+3633*y+4095*M+1574*M*y)))),r=_(this.long0+S*(1-x/6*(1+2*y+c-x/20*(5+28*y+24*M+8*c*y+6*c-x/42*(61+662*y+1320*M+720*M*y))))/f,this.over)}else s=m*At$1(o),r=0;else{var a=Math.exp(n/this.k0),h=.5*(a-1/a),l=this.lat0+o/this.k0,d=Math.cos(l);i=Math.sqrt((1-Math.pow(d,2))/(1+Math.pow(h,2))),s=Math.asin(i),o<0&&(s=-s),h===0&&d===0?r=0:r=_(Math.atan2(h,d)+this.long0,this.over)}return t.x=r,t.y=s,t}var Se={init:Th,forward:Vh,inverse:Rh,names:[`Fast_Transverse_Mercator`,`Fast Transverse Mercator`]};function Gi$1(t){var i=Math.exp(t);return i=(i-1/i)/2,i}function F$1(t,i){t=Math.abs(t),i=Math.abs(i);var e=Math.max(t,i),s=Math.min(t,i)/(e||1);return e*Math.sqrt(1+Math.pow(s,2))}function Yn$1(t){var i=1+t,e=i-1;return e===0?t:t*Math.log(i)/e}function ta$2(t){var i=Math.abs(t);return i=Yn$1(i*(1+i/(F$1(1,i)+1))),t<0?-i:i}function Oi(t,i){for(var e=2*Math.cos(2*i),s=t.length-1,r=t[s],n=0,o;--s>=0;)o=-n+e*r+t[s],n=r,r=o;return i+o*Math.sin(2*i)}function ea$2(t,i){for(var e=2*Math.cos(i),s=t.length-1,r=t[s],n=0,o;--s>=0;)o=-n+e*r+t[s],n=r,r=o;return Math.sin(i)*o}function ia$2(t){var i=Math.exp(t);return i=(i+1/i)/2,i}function Fs(t,i,e){for(var s=Math.sin(i),r=Math.cos(i),n=Gi$1(e),o=ia$2(e),a=2*r*o,h=-2*s*n,l=t.length-1,d=t[l],u=0,f=0,g=0,c,v;--l>=0;)c=f,v=u,f=d,u=g,d=-c+a*f-h*u+t[l],g=-v+h*f+a*u;return a=s*o,h=r*n,[a*d-h*g,a*g+h*d]}function kh(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error(`Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.`);this.approx&&(Se.init.apply(this),this.forward=Se.forward,this.inverse=Se.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.k0=this.k0!==void 0?this.k0:1,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),i=t/(2-t),e=i;this.cgb[0]=i*(2+i*(-2/3+i*(-2+i*(116/45+i*(26/45+i*(-2854/675)))))),this.cbg[0]=i*(-2+i*(2/3+i*(4/3+i*(-82/45+i*(32/45+i*(4642/4725)))))),e=e*i,this.cgb[1]=e*(7/3+i*(-8/5+i*(-227/45+i*(2704/315+i*(2323/945))))),this.cbg[1]=e*(5/3+i*(-16/15+i*(-13/9+i*(904/315+i*(-1522/945))))),e=e*i,this.cgb[2]=e*(56/15+i*(-136/35+i*(-1262/105+i*(73814/2835)))),this.cbg[2]=e*(-26/15+i*(34/21+i*(8/5+i*(-12686/2835)))),e=e*i,this.cgb[3]=e*(4279/630+i*(-332/35+i*(-399572/14175))),this.cbg[3]=e*(1237/630+i*(-12/5+i*(-24832/14175))),e=e*i,this.cgb[4]=e*(4174/315+i*(-144838/6237)),this.cbg[4]=e*(-734/315+i*(109598/31185)),e=e*i,this.cgb[5]=e*(601676/22275),this.cbg[5]=e*(444337/155925),e=Math.pow(i,2),this.Qn=this.k0/(1+i)*(1+e*(1/4+e*(1/64+e/256))),this.utg[0]=i*(-.5+i*(2/3+i*(-37/96+i*(1/360+i*(81/512+i*(-96199/604800)))))),this.gtu[0]=i*(.5+i*(-2/3+i*(5/16+i*(41/180+i*(-127/288+i*(7891/37800)))))),this.utg[1]=e*(-1/48+i*(-1/15+i*(437/1440+i*(-46/105+i*(1118711/3870720))))),this.gtu[1]=e*(13/48+i*(-3/5+i*(557/1440+i*(281/630+i*(-1983433/1935360))))),e=e*i,this.utg[2]=e*(-17/480+i*(37/840+i*(209/4480+i*(-5569/90720)))),this.gtu[2]=e*(61/240+i*(-103/140+i*(15061/26880+i*(167603/181440)))),e=e*i,this.utg[3]=e*(-4397/161280+i*(11/504+i*(830251/7257600))),this.gtu[3]=e*(49561/161280+i*(-179/168+i*(6601661/7257600))),e=e*i,this.utg[4]=e*(-4583/161280+i*(108847/3991680)),this.gtu[4]=e*(34729/80640+i*(-3418889/1995840)),e=e*i,this.utg[5]=e*(-20648693/638668800),this.gtu[5]=e*(212378941/319334400);var s=Oi(this.cbg,this.lat0);this.Zb=-this.Qn*(s+ea$2(this.gtu,2*s))}function jh(t){var i=_(t.x-this.long0,this.over),e=t.y;e=Oi(this.cbg,e);var s=Math.sin(e),r=Math.cos(e),n=Math.sin(i),o=Math.cos(i);e=Math.atan2(s,o*r),i=Math.atan2(n*r,F$1(s,r*o)),i=ta$2(Math.tan(i));var a=Fs(this.gtu,2*e,2*i);e=e+a[0],i=i+a[1];var h,l;return Math.abs(i)<=2.623395162778?(h=this.a*(this.Qn*i)+this.x0,l=this.a*(this.Qn*e+this.Zb)+this.y0):(h=Infinity,l=Infinity),t.x=h,t.y=l,t}function Uh(t){var i=(t.x-this.x0)*(1/this.a),e=(t.y-this.y0)*(1/this.a);e=(e-this.Zb)/this.Qn,i=i/this.Qn;var s,r;if(Math.abs(i)<=2.623395162778){var n=Fs(this.utg,2*e,2*i);e=e+n[0],i=i+n[1],i=Math.atan(Gi$1(i));var o=Math.sin(e),a=Math.cos(e),h=Math.sin(i),l=Math.cos(i);e=Math.atan2(o*l,F$1(h,l*a)),i=Math.atan2(h,l*a),s=_(i+this.long0,this.over),r=Oi(this.cgb,e)}else s=Infinity,r=Infinity;return t.x=s,t.y=r,t}var be={init:kh,forward:jh,inverse:Uh,names:[`Extended_Transverse_Mercator`,`Extended Transverse Mercator`,`etmerc`,`Transverse_Mercator`,`Transverse Mercator`,`Gauss Kruger`,`Gauss_Kruger`,`tmerc`]};function sa$2(t,i){if(t===void 0){if(t=Math.floor((_(i)+Math.PI)*30/Math.PI)+1,t<0)return 0;if(t>60)return 60}return t}var qh=`etmerc`;function Hh(){var t=sa$2(this.zone,this.long0);if(t===void 0)throw new Error(`unknown utm zone`);this.lat0=0,this.long0=(6*Math.abs(t)-183)*D,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,be.init.apply(this),this.forward=be.forward,this.inverse=be.inverse}var ra$2={init:Hh,names:[`Universal Transverse Mercator System`,`utm`],dependsOn:qh};function Li$1(t,i){return Math.pow((1-t)/(1+t),i)}var zh=20;function Kh(){var t=Math.sin(this.lat0),i=Math.cos(this.lat0);i*=i,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*i*i/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+w$1)/(Math.pow(Math.tan(.5*this.lat0+w$1),this.C)*Li$1(this.e*t,this.ratexp))}function $h(t){var i=t.x,e=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*e+w$1),this.C)*Li$1(this.e*Math.sin(e),this.ratexp))-m,t.x=this.C*i,t}function Qh(t){for(var i=1e-14,e=t.x/this.C,s=t.y,r=Math.pow(Math.tan(.5*s+w$1)/this.K,1/this.C),n=zh;n>0&&(s=2*Math.atan(r*Li$1(this.e*Math.sin(t.y),-.5*this.e))-m,!(Math.abs(s-t.y)<i));--n)t.y=s;return n?(t.x=e,t.y=s,t):null}var Ti$1={init:Kh,forward:$h,inverse:Qh,names:[`gauss`]};function Jh(){Ti$1.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title=`Oblique Stereographic Alternative`))}function Zh(t){var i,e,s,r;return t.x=_(t.x-this.long0,this.over),Ti$1.forward.apply(this,[t]),i=Math.sin(t.y),e=Math.cos(t.y),s=Math.cos(t.x),r=this.k0*this.R2/(1+this.sinc0*i+this.cosc0*e*s),t.x=r*e*Math.sin(t.x),t.y=r*(this.cosc0*i-this.sinc0*e*s),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function Yh(t){var i,e,s,r,n;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,n=F$1(t.x,t.y)){var o=2*Math.atan2(n,this.R2);i=Math.sin(o),e=Math.cos(o),r=Math.asin(e*this.sinc0+t.y*i*this.cosc0/n),s=Math.atan2(t.x*i,n*this.cosc0*e-t.y*this.sinc0*i)}else r=this.phic0,s=0;return t.x=s,t.y=r,Ti$1.inverse.apply(this,[t]),t.x=_(t.x+this.long0,this.over),t}var na$2={init:Jh,forward:Zh,inverse:Yh,names:[`Stereographic_North_Pole`,`Oblique_Stereographic`,`sterea`,`Oblique Stereographic Alternative`,`Double_Stereographic`]};function ks(t,i,e){return i*=e,Math.tan(.5*(m+t))*Math.pow((1-i)/(1+i),.5*e)}function el$1(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=p&&(this.k0=.5*(1+At$1(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=p&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=p&&Math.abs(Math.cos(this.lat_ts))>p&&(this.k0=.5*this.cons*Y(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/it(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Y(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(ks(this.lat0,this.sinlat0,this.e))-m,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function il$1(t){var i=t.x,e=t.y,s=Math.sin(e),r=Math.cos(e),n,o,a,h,l,d,u=_(i-this.long0,this.over);return Math.abs(Math.abs(i-this.long0)-Math.PI)<=p&&Math.abs(e+this.lat0)<=p?(t.x=NaN,t.y=NaN,t):this.sphere?(n=2*this.k0/(1+this.sinlat0*s+this.coslat0*r*Math.cos(u)),t.x=this.a*n*r*Math.sin(u)+this.x0,t.y=this.a*n*(this.coslat0*s-this.sinlat0*r*Math.cos(u))+this.y0,t):(o=2*Math.atan(ks(e,s,this.e))-m,h=Math.cos(o),a=Math.sin(o),Math.abs(this.coslat0)<=p?(l=it(this.e,e*this.con,this.con*s),d=2*this.a*this.k0*l/this.cons,t.x=this.x0+d*Math.sin(i-this.long0),t.y=this.y0-this.con*d*Math.cos(i-this.long0),t):(Math.abs(this.sinlat0)<p?(n=2*this.a*this.k0/(1+h*Math.cos(u)),t.y=n*a):(n=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*a+this.cosX0*h*Math.cos(u))),t.y=n*(this.cosX0*a-this.sinX0*h*Math.cos(u))+this.y0),t.x=n*h*Math.sin(u)+this.x0,t))}function sl(t){t.x-=this.x0,t.y-=this.y0;var i,e,s,r,n,o=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var a=2*Math.atan(o/(2*this.a*this.k0));return i=this.long0,e=this.lat0,o<=p?(t.x=i,t.y=e,t):(e=Math.asin(Math.cos(a)*this.sinlat0+t.y*Math.sin(a)*this.coslat0/o),Math.abs(this.coslat0)<p?this.lat0>0?i=_(this.long0+Math.atan2(t.x,-1*t.y),this.over):i=_(this.long0+Math.atan2(t.x,t.y),this.over):i=_(this.long0+Math.atan2(t.x*Math.sin(a),o*this.coslat0*Math.cos(a)-t.y*this.sinlat0*Math.sin(a)),this.over),t.x=i,t.y=e,t)}else if(Math.abs(this.coslat0)<=p){if(o<=p)return e=this.lat0,i=this.long0,t.x=i,t.y=e,t;t.x*=this.con,t.y*=this.con,s=o*this.cons/(2*this.a*this.k0),e=this.con*Tt$2(this.e,s),i=this.con*_(this.con*this.long0+Math.atan2(t.x,-1*t.y),this.over)}else r=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),i=this.long0,o<=p?n=this.X0:(n=Math.asin(Math.cos(r)*this.sinX0+t.y*Math.sin(r)*this.cosX0/o),i=_(this.long0+Math.atan2(t.x*Math.sin(r),o*this.cosX0*Math.cos(r)-t.y*this.sinX0*Math.sin(r)),this.over)),e=-1*Tt$2(this.e,Math.tan(.5*(m+n)));return t.x=i,t.y=e,t}var aa$2={init:el$1,forward:il$1,inverse:sl,names:[`stere`,`Stereographic_South_Pole`,`Polar_Stereographic_variant_A`,`Polar_Stereographic_variant_B`,`Polar_Stereographic`],ssfn_:ks};function nl$1(){this.k0||(this.k0=1);var t=this.lat0;this.lambda0=this.long0;var i=Math.sin(t),e=this.a,r=1/this.rf,n=2*r-Math.pow(r,2),o=this.e=Math.sqrt(n);this.R=this.k0*e*Math.sqrt(1-n)/(1-n*Math.pow(i,2)),this.alpha=Math.sqrt(1+n/(1-n)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(i/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),h=Math.log(Math.tan(Math.PI/4+t/2)),l=Math.log((1+o*i)/(1-o*i));this.K=a-this.alpha*h+this.alpha*o/2*l}function al$1(t){var i=Math.log(Math.tan(Math.PI/4-t.y/2)),e=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),s=-this.alpha*(i+e)+this.K,r=2*(Math.atan(Math.exp(s))-Math.PI/4),n=this.alpha*(t.x-this.lambda0),o=Math.atan(Math.sin(n)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(n))),a=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*Math.cos(n));return t.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,t.x=this.R*o+this.x0,t}function ol$1(t){for(var i=t.x-this.x0,e=t.y-this.y0,s=i/this.R,r=2*(Math.atan(Math.exp(e/this.R))-Math.PI/4),n=Math.asin(Math.cos(this.b0)*Math.sin(r)+Math.sin(this.b0)*Math.cos(r)*Math.cos(s)),o=Math.atan(Math.sin(s)/(Math.cos(this.b0)*Math.cos(s)-Math.sin(this.b0)*Math.tan(r))),a=this.lambda0+o/this.alpha,h=0,l=n,d=-1e3,u=0;Math.abs(l-d)>1e-7;){if(++u>20)return;h=1/this.alpha*(Math.log(Math.tan(Math.PI/4+n/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),d=l,l=2*Math.atan(Math.exp(h))-Math.PI/2}return t.x=a,t.y=l,t}var oa$2={init:nl$1,forward:al$1,inverse:ol$1,names:[`somerc`]};var xe=1e-7;function ll$1(t){var i=[`Hotine_Oblique_Mercator`,`Hotine_Oblique_Mercator_variant_A`,`Hotine_Oblique_Mercator_Azimuth_Natural_Origin`],e=typeof t.projName==`object`?Object.keys(t.projName)[0]:t.projName;return`no_uoff`in t||`no_off`in t||i.indexOf(e)!==-1||i.indexOf(Ps(e))!==-1}function cl$1(){var t,i,e,s,r,n,o,a,h,l,d=0,u,f=0,g=0,c=0,v=0,y=0,M=0;this.k0||(this.k0=1),this.no_off=ll$1(this),this.no_rot=`no_rot`in this;var S=!1;`alpha`in this&&(S=!0);var x=!1;if(`rectified_grid_angle`in this&&(x=!0),S&&(M=this.alpha),x&&(d=this.rectified_grid_angle,S||(M=0,S=!0)),S||x)f=this.longc;else if(g=this.long1,v=this.lat1,c=this.long2,y=this.lat2,Math.abs(v-y)<=xe||(t=Math.abs(v))<=xe||Math.abs(t-m)<=xe||Math.abs(Math.abs(this.lat0)-m)<=xe||Math.abs(Math.abs(y)-m)<=xe)throw new Error;var C=1-this.es;i=Math.sqrt(C),Math.abs(this.lat0)>p?(a=Math.sin(this.lat0),e=Math.cos(this.lat0),t=1-this.es*a*a,this.B=e*e,this.B=Math.sqrt(1+this.es*this.B*this.B/C),this.A=this.B*this.k0*i/t,s=this.B*i/(e*Math.sqrt(t)),r=s*s-1,r<=0?r=0:(r=Math.sqrt(r),this.lat0<0&&(r=-r)),this.E=r+=s,this.E*=Math.pow(it(this.e,this.lat0,a),this.B)):(this.B=1/i,this.A=this.k0,this.E=s=r=1),S||x?(S?(u=Math.asin(Math.sin(M)/s),x||(d=M)):(u=d,M=Math.asin(s*Math.sin(u))),this.lam0=f-Math.asin(.5*(r-1/r)*Math.tan(u))/this.B):(n=Math.pow(it(this.e,v,Math.sin(v)),this.B),o=Math.pow(it(this.e,y,Math.sin(y)),this.B),r=this.E/n,h=(o-n)/(o+n),l=this.E*this.E,l=(l-o*n)/(l+o*n),t=g-c,t<-Math.PI?c-=Qt:t>Math.PI&&(c+=Qt),this.lam0=_(.5*(g+c)-Math.atan(l*Math.tan(.5*this.B*(g-c))/h)/this.B,this.over),u=Math.atan(2*Math.sin(this.B*_(g-this.lam0,this.over))/(r-1/r)),d=M=Math.asin(s*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(d),this.cosrot=Math.cos(d),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(s*s-1)/Math.cos(M))),this.lat0<0&&(this.u_0=-this.u_0)),r=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(w$1-r)),this.v_pole_s=this.ArB*Math.log(Math.tan(w$1+r))}function ul$1(t){var i={},e,s,r,n,o,a,h,l;if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-m)>p){if(o=this.E/Math.pow(it(this.e,t.y,Math.sin(t.y)),this.B),a=1/o,e=.5*(o-a),s=.5*(o+a),n=Math.sin(this.B*t.x),r=(e*this.singam-n*this.cosgam)/s,Math.abs(Math.abs(r)-1)<p)throw new Error;l=.5*this.ArB*Math.log((1-r)/(1+r)),a=Math.cos(this.B*t.x),Math.abs(a)<xe?h=this.A*t.x:h=this.ArB*Math.atan2(e*this.cosgam+n*this.singam,a)}else l=t.y>0?this.v_pole_n:this.v_pole_s,h=this.ArB*t.y;return this.no_rot?(i.x=h,i.y=l):(h-=this.u_0,i.x=l*this.cosrot+h*this.sinrot,i.y=h*this.cosrot-l*this.sinrot),i.x=this.a*i.x+this.x0,i.y=this.a*i.y+this.y0,i}function dl$1(t){var i,e,s,r,n,o,a,h={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(e=t.y,i=t.x):(e=t.x*this.cosrot-t.y*this.sinrot,i=t.y*this.cosrot+t.x*this.sinrot+this.u_0),s=Math.exp(-this.BrA*e),r=.5*(s-1/s),n=.5*(s+1/s),o=Math.sin(this.BrA*i),a=(o*this.cosgam+r*this.singam)/n,Math.abs(Math.abs(a)-1)<p)h.x=0,h.y=a<0?-m:m;else{if(h.y=this.E/Math.sqrt((1+a)/(1-a)),h.y=Tt$2(this.e,Math.pow(h.y,1/this.B)),h.y===Infinity)throw new Error;h.x=-this.rB*Math.atan2(r*this.cosgam-o*this.singam,Math.cos(this.BrA*i))}return h.x+=this.lam0,h}var ha$2={init:cl$1,forward:ul$1,inverse:dl$1,names:[`Hotine_Oblique_Mercator`,`Hotine Oblique Mercator`,`Hotine_Oblique_Mercator_variant_A`,`Hotine_Oblique_Mercator_Variant_B`,`Hotine_Oblique_Mercator_Azimuth_Natural_Origin`,`Hotine_Oblique_Mercator_Two_Point_Natural_Origin`,`Hotine_Oblique_Mercator_Azimuth_Center`,`Oblique_Mercator`,`omerc`]};function ml$1(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,!(Math.abs(this.lat1+this.lat2)<p)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var i=Math.sin(this.lat1),e=Math.cos(this.lat1),s=Y(this.e,i,e),r=it(this.e,this.lat1,i),n=Math.sin(this.lat2),o=Math.cos(this.lat2),a=Y(this.e,n,o),h=it(this.e,this.lat2,n),l=it(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>p?this.ns=Math.log(s/a)/Math.log(r/h):this.ns=i,isNaN(this.ns)&&(this.ns=i),this.f0=s/(this.ns*Math.pow(r,this.ns)),this.rh=Math.abs(Math.abs(this.lat0)-m)<p?0:this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title=`Lambert Conformal Conic`)}}function gl$1(t){var i=t.x,e=t.y;Math.abs(2*Math.abs(e)-Math.PI)<=p&&(e=At$1(e)*(m-2*p));var s=Math.abs(Math.abs(e)-m),r,n;if(s>p)r=it(this.e,e,Math.sin(e)),n=this.a*this.f0*Math.pow(r,this.ns);else{if(s=e*this.ns,s<=0)return null;n=0}var o=this.ns*_(i-this.long0,this.over);return t.x=this.k0*(n*Math.sin(o))+this.x0,t.y=this.k0*(this.rh-n*Math.cos(o))+this.y0,t}function _l(t){var i,e,s,r,n,o=(t.x-this.x0)/this.k0,a=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(i=Math.sqrt(o*o+a*a),e=1):(i=-Math.sqrt(o*o+a*a),e=-1);var h=0;if(i!==0&&(h=Math.atan2(e*o,e*a)),i!==0||this.ns>0){if(e=1/this.ns,s=Math.pow(i/(this.a*this.f0),e),r=Tt$2(this.e,s),r===-9999)return null}else r=-m;return n=_(h/this.ns+this.long0,this.over),t.x=n,t.y=r,t}var la$2={init:ml$1,forward:gl$1,inverse:_l,names:[`Lambert Tangential Conformal Conic Projection`,`Lambert_Conformal_Conic`,`Lambert_Conformal_Conic_1SP`,`Lambert_Conformal_Conic_2SP`,`lcc`,`Lambert Conic Conformal (1SP)`,`Lambert Conic Conformal (2SP)`]};function vl$1(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function yl$1(t){var i,e,s,r,n,o,a,h=t.x,l=t.y,d=_(h-this.long0,this.over);return i=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),e=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/i)-this.s45),s=-d*this.alfa,r=Math.asin(Math.cos(this.ad)*Math.sin(e)+Math.sin(this.ad)*Math.cos(e)*Math.cos(s)),n=Math.asin(Math.cos(e)*Math.sin(s)/Math.cos(r)),o=this.n*n,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(r/2+this.s45),this.n),t.y=a*Math.cos(o)/1,t.x=a*Math.sin(o)/1,this.czech||(t.y*=-1,t.x*=-1),t}function Ml(t){var i,e,s,r,n,o,a,h,l=t.x;t.x=t.y,t.y=l,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),n=Math.atan2(t.y,t.x),r=n/Math.sin(this.s0),s=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),i=Math.asin(Math.cos(this.ad)*Math.sin(s)-Math.sin(this.ad)*Math.cos(s)*Math.cos(r)),e=Math.asin(Math.cos(s)*Math.sin(r)/Math.cos(i)),t.x=this.long0-e/this.alfa,a=i,h=0;var d=0;do t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(i/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-t.y)<1e-10&&(h=1),a=t.y,d+=1;while(h===0&&d<15);return d>=15?null:t}var ca$2={init:vl$1,forward:yl$1,inverse:Ml,names:[`Krovak`,`Krovak Modified`,`Krovak (North Orientated)`,`Krovak Modified (North Orientated)`,`krovak`]};function j(t,i,e,s,r){return t*r-i*Math.sin(2*r)+e*Math.sin(4*r)-s*Math.sin(6*r)}function Vt$2(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function Rt$1(t){return .375*t*(1+.25*t*(1+.46875*t))}function Ft$2(t){return .05859375*t*t*(1+.75*t)}function kt$2(t){return t*t*t*(35/3072)}function He$1(t,i,e){var s=i*e;return t/Math.sqrt(1-s*s)}function ht(t){return Math.abs(t)<m?t:t-At$1(t)*Math.PI}function re(t,i,e,s,r){var n=t/i,o;for(var a=0;a<15;a++)if(o=(t-(i*n-e*Math.sin(2*n)+s*Math.sin(4*n)-r*Math.sin(6*n)))/(i-2*e*Math.cos(2*n)+4*s*Math.cos(4*n)-6*r*Math.cos(6*n)),n+=o,Math.abs(o)<=1e-10)return n;return NaN}function bl$1(){this.sphere||(this.e0=Vt$2(this.es),this.e1=Rt$1(this.es),this.e2=Ft$2(this.es),this.e3=kt$2(this.es),this.ml0=this.a*j(this.e0,this.e1,this.e2,this.e3,this.lat0))}function xl(t){var i,e,s=t.x,r=t.y;if(s=_(s-this.long0,this.over),this.sphere)i=this.a*Math.asin(Math.cos(r)*Math.sin(s)),e=this.a*(Math.atan2(Math.tan(r),Math.cos(s))-this.lat0);else{var n=Math.sin(r),o=Math.cos(r),a=He$1(this.a,this.e,n),h=Math.tan(r)*Math.tan(r),l=s*Math.cos(r),d=l*l,u=this.es*o*o/(1-this.es),f=this.a*j(this.e0,this.e1,this.e2,this.e3,r);i=a*l*(1-d*h*(1/6-(8-h+8*u)*d/120)),e=f-this.ml0+a*n/o*d*(.5+(5-h+6*u)*d/24)}return t.x=i+this.x0,t.y=e+this.y0,t}function El$1(t){t.x-=this.x0,t.y-=this.y0;var i=t.x/this.a,e=t.y/this.a,s,r;if(this.sphere){var n=e+this.lat0;s=Math.asin(Math.sin(n)*Math.cos(i)),r=Math.atan2(Math.tan(i),Math.cos(n))}else{var a=re(this.ml0/this.a+e,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(a)-m)<=p)return t.x=this.long0,t.y=m,e<0&&(t.y*=-1),t;var h=He$1(this.a,this.e,Math.sin(a)),l=h*h*h/this.a/this.a*(1-this.es),d=Math.pow(Math.tan(a),2),u=i*this.a/h,f=u*u;s=a-h*Math.tan(a)/l*u*u*(.5-(1+3*d)*u*u/24),r=u*(1-f*(d/3+(1+3*d)*d*f/15))/Math.cos(a)}return t.x=_(r+this.long0,this.over),t.y=ht(s),t}var ua$2={init:bl$1,forward:xl,inverse:El$1,names:[`Cassini`,`Cassini_Soldner`,`cass`]};function lt$2(t,i){var e;return t>1e-7?(e=t*i,(1-t*t)*(i/(1-e*e)-.5/t*Math.log((1-e)/(1+e)))):2*i}var wl=.3333333333333333;var Pl=.17222222222222222;var Al=.10257936507936508;var Il=.06388888888888888;var Dl$1=.0664021164021164;var Nl$1=.016415012942191543;function We$1(t){var i,e=[];return e[0]=t*wl,i=t*t,e[0]+=i*Pl,e[1]=i*Il,i*=t,e[0]+=i*Al,e[1]+=i*Dl$1,e[2]=i*Nl$1,e}function ze(t,i){var e=t+t;return t+i[0]*Math.sin(e)+i[1]*Math.sin(e+e)+i[2]*Math.sin(e+e+e)}var js=1;var Us=2;var Bs=3;var Vi$1=4;function Gl(){var t=Math.abs(this.lat0);if(Math.abs(t-m)<p?this.mode=this.lat0<0?js:Us:Math.abs(t)<p?this.mode=Bs:this.mode=Vi$1,this.es>0){var i;switch(this.qp=lt$2(this.e,1),this.mmf=.5/(1-this.es),this.apa=We$1(this.es),this.mode){case Us:this.dd=1;break;case js:this.dd=1;break;case Bs:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case Vi$1:this.rq=Math.sqrt(.5*this.qp),i=Math.sin(this.lat0),this.sinb1=lt$2(this.e,i)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*i*i)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===Vi$1&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Ol(t){var i,e,s,r,n,o,a,h,l,d,u=t.x,f=t.y;if(u=_(u-this.long0,this.over),this.sphere){if(n=Math.sin(f),d=Math.cos(f),s=Math.cos(u),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e=this.mode===this.EQUIT?1+d*s:1+this.sinph0*n+this.cosph0*d*s,e<=p)return null;e=Math.sqrt(2/e),i=e*d*Math.sin(u),e*=this.mode===this.EQUIT?n:this.cosph0*n-this.sinph0*d*s}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(s=-s),Math.abs(f+this.lat0)<p)return null;e=w$1-f*.5,e=2*(this.mode===this.S_POLE?Math.cos(e):Math.sin(e)),i=e*Math.sin(u),e*=s}}else{switch(a=0,h=0,l=0,s=Math.cos(u),r=Math.sin(u),n=Math.sin(f),o=lt$2(this.e,n),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(a=o/this.qp,h=Math.sqrt(1-a*a)),this.mode){case this.OBLIQ:l=1+this.sinb1*a+this.cosb1*h*s;break;case this.EQUIT:l=1+h*s;break;case this.N_POLE:l=m+f,o=this.qp-o;break;case this.S_POLE:l=f-m,o=this.qp+o;break}if(Math.abs(l)<p)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:l=Math.sqrt(2/l),this.mode===this.OBLIQ?e=this.ymf*l*(this.cosb1*a-this.sinb1*h*s):e=(l=Math.sqrt(2/(1+h*s)))*a*this.ymf,i=this.xmf*l*h*r;break;case this.N_POLE:case this.S_POLE:o>=0?(i=(l=Math.sqrt(o))*r,e=s*(this.mode===this.S_POLE?l:-l)):i=e=0;break}}return t.x=this.a*i+this.x0,t.y=this.a*e+this.y0,t}function Ll(t){t.x-=this.x0,t.y-=this.y0;var i=t.x/this.a,e=t.y/this.a,s,r,n,o,a,h,l;if(this.sphere){var d=0,u,f=0;if(u=Math.sqrt(i*i+e*e),r=u*.5,r>1)return null;switch(r=2*Math.asin(r),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(f=Math.sin(r),d=Math.cos(r)),this.mode){case this.EQUIT:r=Math.abs(u)<=p?0:Math.asin(e*f/u),i*=f,e=d*u;break;case this.OBLIQ:r=Math.abs(u)<=p?this.lat0:Math.asin(d*this.sinph0+e*f*this.cosph0/u),i*=f*this.cosph0,e=(d-Math.sin(r)*this.sinph0)*u;break;case this.N_POLE:e=-e,r=m-r;break;case this.S_POLE:r-=m;break}s=e===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(i,e)}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(i/=this.dd,e*=this.dd,h=Math.sqrt(i*i+e*e),h<p)return t.x=this.long0,t.y=this.lat0,t;o=2*Math.asin(.5*h/this.rq),n=Math.cos(o),i*=o=Math.sin(o),this.mode===this.OBLIQ?(l=n*this.sinb1+e*o*this.cosb1/h,a=this.qp*l,e=h*this.cosb1*n-e*this.sinb1*o):(l=e*o/h,a=this.qp*l,e=h*n)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(e=-e),a=i*i+e*e,!a)return t.x=this.long0,t.y=this.lat0,t;l=1-a/this.qp,this.mode===this.S_POLE&&(l=-l)}s=Math.atan2(i,e),r=ze(Math.asin(l),this.apa)}return t.x=_(this.long0+s,this.over),t.y=r,t}var da$2={init:Gl,forward:Ol,inverse:Ll,names:[`Lambert Azimuthal Equal Area`,`Lambert_Azimuthal_Equal_Area`,`laea`],S_POLE:js,N_POLE:Us,EQUIT:Bs,OBLIQ:Vi$1};function ct$1(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}function Vl$1(){Math.abs(this.lat1+this.lat2)<p||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=Y(this.e3,this.sin_po,this.cos_po),this.qs1=lt$2(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=Y(this.e3,this.sin_po,this.cos_po),this.qs2=lt$2(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=lt$2(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>p?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function Rl$1(t){var i=t.x,e=t.y;this.sin_phi=Math.sin(e),this.cos_phi=Math.cos(e);var s=lt$2(this.e3,this.sin_phi),r=this.a*Math.sqrt(this.c-this.ns0*s)/this.ns0,n=this.ns0*_(i-this.long0,this.over),o=r*Math.sin(n)+this.x0,a=this.rh-r*Math.cos(n)+this.y0;return t.x=o,t.y=a,t}function Fl$1(t){var i,e,s,r,n,o;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),s=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),s=-1),r=0,i!==0&&(r=Math.atan2(s*t.x,s*t.y)),s=i*this.ns0/this.a,this.sphere?o=Math.asin((this.c-s*s)/(2*this.ns0)):(e=(this.c-s*s)/this.ns0,o=this.phi1z(this.e3,e)),n=_(r/this.ns0+this.long0,this.over),t.x=n,t.y=o,t}function kl$1(t,i){var e,s,r,n,o,a=ct$1(.5*i);if(t<p)return a;for(var h=t*t,l=1;l<=25;l++)if(e=Math.sin(a),s=Math.cos(a),r=t*e,n=1-r*r,o=.5*n*n/s*(i/(1-h)-e/n+.5/t*Math.log((1-r)/(1+r))),a=a+o,Math.abs(o)<=1e-7)return a;return null}var fa$2={init:Vl$1,forward:Rl$1,inverse:Fl$1,names:[`Albers_Conic_Equal_Area`,`Albers_Equal_Area`,`Albers`,`aea`],phi1z:kl$1};function Ul$1(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function Bl$1(t){var i,e,s,r,n,o,a,h,l=t.x,d=t.y;return s=_(l-this.long0,this.over),i=Math.sin(d),e=Math.cos(d),r=Math.cos(s),o=this.sin_p14*i+this.cos_p14*e*r,n=1,o>0||Math.abs(o)<=p?(a=this.x0+this.a*n*e*Math.sin(s)/o,h=this.y0+this.a*n*(this.cos_p14*i-this.sin_p14*e*r)/o):(a=this.x0+this.infinity_dist*e*Math.sin(s),h=this.y0+this.infinity_dist*(this.cos_p14*i-this.sin_p14*e*r)),t.x=a,t.y=h,t}function ql$1(t){var i,e,s,r,n,o;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(i=Math.sqrt(t.x*t.x+t.y*t.y))?(r=Math.atan2(i,this.rc),e=Math.sin(r),s=Math.cos(r),o=ct$1(s*this.sin_p14+t.y*e*this.cos_p14/i),n=Math.atan2(t.x*e,i*this.cos_p14*s-t.y*this.sin_p14*e),n=_(this.long0+n,this.over)):(o=this.phic0,n=0),t.x=n,t.y=o,t}var ma$2={init:Ul$1,forward:Bl$1,inverse:ql$1,names:[`gnom`]};function ga$1(t,i){var e=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(i)-e)<1e-6)return i<0?-1*m:m;for(var s=Math.asin(.5*i),r,n,o,a,h=0;h<30;h++)if(n=Math.sin(s),o=Math.cos(s),a=t*n,r=Math.pow(1-a*a,2)/(2*o)*(i/(1-t*t)-n/(1-a*a)+.5/t*Math.log((1-a)/(1+a))),s+=r,Math.abs(r)<=1e-10)return s;return NaN}function Wl$1(){this.sphere||(this.k0=Y(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function zl(t){var i=t.x,e=t.y,s,r,n=_(i-this.long0,this.over);if(this.sphere)s=this.x0+this.a*n*Math.cos(this.lat_ts),r=this.y0+this.a*Math.sin(e)/Math.cos(this.lat_ts);else{var o=lt$2(this.e,Math.sin(e));s=this.x0+this.a*this.k0*n,r=this.y0+this.a*o*.5/this.k0}return t.x=s,t.y=r,t}function Kl$1(t){t.x-=this.x0,t.y-=this.y0;var i,e;return this.sphere?(i=_(this.long0+t.x/this.a/Math.cos(this.lat_ts),this.over),e=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(e=ga$1(this.e,2*t.y*this.k0/this.a),i=_(this.long0+t.x/(this.a*this.k0),this.over)),t.x=i,t.y=e,t}var _a$1={init:Wl$1,forward:zl,inverse:Kl$1,names:[`cea`]};function Ql(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||`Equidistant Cylindrical (Plate Carre)`,this.rc=Math.cos(this.lat_ts)}function Xl$1(t){var i=t.x,e=t.y,s=_(i-this.long0,this.over),r=ht(e-this.lat0);return t.x=this.x0+this.a*s*this.rc,t.y=this.y0+this.a*r,t}function Jl(t){var i=t.x,e=t.y;return t.x=_(this.long0+(i-this.x0)/(this.a*this.rc),this.over),t.y=ht(this.lat0+(e-this.y0)/this.a),t}var pa$2={init:Ql,forward:Xl$1,inverse:Jl,names:[`Equirectangular`,`Equidistant_Cylindrical`,`Equidistant_Cylindrical_Spherical`,`eqc`]};var va$1=20;function Yl$1(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Vt$2(this.es),this.e1=Rt$1(this.es),this.e2=Ft$2(this.es),this.e3=kt$2(this.es),this.ml0=this.a*j(this.e0,this.e1,this.e2,this.e3,this.lat0)}function tc(t){var i=t.x,e=t.y,s,r,n,o=_(i-this.long0,this.over);if(n=o*Math.sin(e),this.sphere)Math.abs(e)<=p?(s=this.a*o,r=-1*this.a*this.lat0):(s=this.a*Math.sin(n)/Math.tan(e),r=this.a*(ht(e-this.lat0)+(1-Math.cos(n))/Math.tan(e)));else if(Math.abs(e)<=p)s=this.a*o,r=-1*this.ml0;else{var a=He$1(this.a,this.e,Math.sin(e))/Math.tan(e);s=a*Math.sin(n),r=this.a*j(this.e0,this.e1,this.e2,this.e3,e)-this.ml0+a*(1-Math.cos(n))}return t.x=s+this.x0,t.y=r+this.y0,t}function ec$1(t){var i,e,s,r,n,o,a,h,l;if(s=t.x-this.x0,r=t.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)<=p)i=_(s/this.a+this.long0,this.over),e=0;else{o=this.lat0+r/this.a,a=s*s/this.a/this.a+o*o,h=o;var d;for(n=va$1;n;--n)if(d=Math.tan(h),l=-1*(o*(h*d+1)-h-.5*(h*h+a)*d)/((h-o)/d-1),h+=l,Math.abs(l)<=p){e=h;break}i=_(this.long0+Math.asin(s*Math.tan(h)/this.a)/Math.sin(e),this.over)}else if(Math.abs(r+this.ml0)<=p)e=0,i=_(this.long0+s/this.a,this.over);else{o=(this.ml0+r)/this.a,a=s*s/this.a/this.a+o*o,h=o;var u,f,g,c,v;for(n=va$1;n;--n)if(v=this.e*Math.sin(h),u=Math.sqrt(1-v*v)*Math.tan(h),f=this.a*j(this.e0,this.e1,this.e2,this.e3,h),g=this.e0-2*this.e1*Math.cos(2*h)+4*this.e2*Math.cos(4*h)-6*this.e3*Math.cos(6*h),c=f/this.a,l=(o*(u*c+1)-c-.5*u*(c*c+a))/(this.es*Math.sin(2*h)*(c*c+a-2*o*c)/(4*u)+(o-c)*(u*g-2/Math.sin(2*h))-g),h-=l,Math.abs(l)<=p){e=h;break}u=Math.sqrt(1-this.es*Math.pow(Math.sin(e),2))*Math.tan(e),i=_(this.long0+Math.asin(s*u/this.a)/Math.sin(e),this.over)}return t.x=i,t.y=e,t}var ya$1={init:Yl$1,forward:tc,inverse:ec$1,names:[`Polyconic`,`American_Polyconic`,`poly`]};var sc$1=1;function rc(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function nc$1(t){var i,e=t.x,r=t.y-this.lat0,n=e-this.long0,o=r/te*1e-5,a=n,h=1,l=0;for(i=1;i<=10;i++)h=h*o,l=l+this.A[i]*h;var d=l,u=a,f=1,g=0,c,v,y=0,M=0;for(i=1;i<=6;i++)c=f*d-g*u,v=g*d+f*u,f=c,g=v,y=y+this.B_re[i]*f-this.B_im[i]*g,M=M+this.B_im[i]*f+this.B_re[i]*g;return t.x=M*this.a+this.x0,t.y=y*this.a+this.y0,t}function ac$1(t){var i,e=t.x,s=t.y,r=e-this.x0,o=(s-this.y0)/this.a,a=r/this.a,h=1,l=0,d,u,f=0,g=0;for(i=1;i<=6;i++)d=h*o-l*a,u=l*o+h*a,h=d,l=u,f=f+this.C_re[i]*h-this.C_im[i]*l,g=g+this.C_im[i]*h+this.C_re[i]*l;for(var c=0;c<this.iterations;c++){var v=f,y=g,M,S,x=o,C=a;for(i=2;i<=6;i++)M=v*f-y*g,S=y*f+v*g,v=M,y=S,x=x+(i-1)*(this.B_re[i]*v-this.B_im[i]*y),C=C+(i-1)*(this.B_im[i]*v+this.B_re[i]*y);v=1,y=0;var P=this.B_re[1],A=this.B_im[1];for(i=2;i<=6;i++)M=v*f-y*g,S=y*f+v*g,v=M,y=S,P=P+i*(this.B_re[i]*v-this.B_im[i]*y),A=A+i*(this.B_im[i]*v+this.B_re[i]*y);var O=P*P+A*A;f=(x*P+C*A)/O,g=(C*P-x*A)/O}var K=f,U=g,qt=1,gt=0;for(i=1;i<=9;i++)qt=qt*K,gt=gt+this.D[i]*qt;var oe=this.lat0+gt*te*1e5;return t.x=this.long0+U,t.y=oe,t}var Ma$1={init:rc,forward:nc$1,inverse:ac$1,names:[`New_Zealand_Map_Grid`,`nzmg`],iterations:sc$1};function hc$1(){}function lc$1(t){var i=t.x,e=t.y,s=_(i-this.long0,this.over),r=this.x0+this.a*s,n=this.y0+this.a*Math.log(Math.tan(Math.PI/4+e/2.5))*1.25;return t.x=r,t.y=n,t}function cc$1(t){t.x-=this.x0,t.y-=this.y0;var i=_(this.long0+t.x/this.a,this.over),e=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=i,t.y=e,t}var Sa$1={init:hc$1,forward:lc$1,inverse:cc$1,names:[`Miller_Cylindrical`,`mill`]};var dc$1=20;function fc$1(){this.long0=this.long0||0,this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=ye$1(this.es)}function qs(t){var i,e,s=t.x,r=t.y;if(s=_(s-this.long0,this.over),this.sphere){if(!this.m)r=this.n!==1?Math.asin(this.n*Math.sin(r)):r;else for(var n=this.n*Math.sin(r),o=dc$1;o;--o){var a=(this.m*r+Math.sin(r)-n)/(this.m+Math.cos(r));if(r-=a,Math.abs(a)<p)break}i=this.a*this.C_x*s*(this.m+Math.cos(r)),e=this.a*this.C_y*r}else{var h=Math.sin(r),l=Math.cos(r);e=this.a*It$1(r,h,l,this.en),i=this.a*s*l/Math.sqrt(1-this.es*h*h)}return t.x=i,t.y=e,t}function Hs$1(t){var i,e,s,r;return t.x-=this.x0,s=t.x/this.a,t.y-=this.y0,i=t.y/this.a,this.sphere?(i/=this.C_y,s=s/(this.C_x*(this.m+Math.cos(i))),this.m?i=ct$1((this.m*i+Math.sin(i))/this.n):this.n!==1&&(i=ct$1(Math.sin(i)/this.n)),s=_(s+this.long0,this.over),i=ht(i)):(i=Me$1(t.y/this.a,this.es,this.en),r=Math.abs(i),r<m?(r=Math.sin(i),e=this.long0+t.x*Math.sqrt(1-this.es*r*r)/(this.a*Math.cos(i)),s=_(e,this.over)):r-p<m&&(s=this.long0)),t.x=s,t.y=i,t}var ba$1={init:fc$1,forward:qs,inverse:Hs$1,names:[`Sinusoidal`,`sinu`]};function gc$1(){this.sphere=!0,this.b=this.a,this.m=1,this.n=2.5707963267948966,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)}var xa$1={init:gc$1,forward:qs,inverse:Hs$1,names:[`Eckert_VI`,`eck6`]};function yc$1(){this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0}function Mc$1(t){for(var i=t.x,e=t.y,s=_(i-this.long0,this.over),r=e,n=Math.PI*Math.sin(e);;){var o=-(r+Math.sin(r)-n)/(1+Math.cos(r));if(r+=o,Math.abs(o)<p)break}r/=2,Math.PI/2-Math.abs(e)<p&&(s=0);var a=.900316316158*this.a*s*Math.cos(r)+this.x0,h=1.4142135623731*this.a*Math.sin(r)+this.y0;return t.x=a,t.y=h,t}function Sc$1(t){var i,e;t.x-=this.x0,t.y-=this.y0,e=t.y/(1.4142135623731*this.a),Math.abs(e)>.999999999999&&(e=.999999999999),i=Math.asin(e);var s=_(this.long0+t.x/(.900316316158*this.a*Math.cos(i)),this.over);s<-Math.PI&&(s=-Math.PI),s>Math.PI&&(s=Math.PI),e=(2*i+Math.sin(2*i))/Math.PI,Math.abs(e)>1&&(e=1);var r=Math.asin(e);return t.x=s,t.y=r,t}var Ea$1={init:yc$1,forward:Mc$1,inverse:Sc$1,names:[`Mollweide`,`moll`]};function xc(){Math.abs(this.lat1+this.lat2)<p||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Vt$2(this.es),this.e1=Rt$1(this.es),this.e2=Ft$2(this.es),this.e3=kt$2(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=Y(this.e,this.sin_phi,this.cos_phi),this.ml1=j(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<p?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=Y(this.e,this.sin_phi,this.cos_phi),this.ml2=j(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=j(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function Ec$1(t){var i=t.x,e=t.y,s;if(this.sphere)s=this.a*(this.g-e);else{var r=j(this.e0,this.e1,this.e2,this.e3,e);s=this.a*(this.g-r)}var n=this.ns*_(i-this.long0,this.over),o=this.x0+s*Math.sin(n),a=this.y0+this.rh-s*Math.cos(n);return t.x=o,t.y=a,t}function Cc$1(t){t.x-=this.x0,t.y=this.rh-t.y+this.y0;var i,e,s,r;this.ns>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),i=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),i=-1);var n=0;if(e!==0&&(n=Math.atan2(i*t.x,i*t.y)),this.sphere)return r=_(this.long0+n/this.ns,this.over),s=ht(this.g-e/this.a),t.x=r,t.y=s,t;return s=re(this.g-e/this.a,this.e0,this.e1,this.e2,this.e3),r=_(this.long0+n/this.ns,this.over),t.x=r,t.y=s,t}var Ca$1={init:xc,forward:Ec$1,inverse:Cc$1,names:[`Equidistant_Conic`,`eqdc`]};function Pc$1(){this.R=this.a}function Ac$1(t){var i=t.x,e=t.y,s=_(i-this.long0,this.over),r,n;if(Math.abs(e)<=p)return r=this.x0+this.R*s,n=this.y0,t.x=r,t.y=n,t;var o=ct$1(2*Math.abs(e/Math.PI));if(Math.abs(s)<=p||Math.abs(Math.abs(e)-m)<=p)return r=this.x0,e>=0?n=this.y0+Math.PI*this.R*Math.tan(.5*o):n=this.y0+Math.PI*this.R*-Math.tan(.5*o),t.x=r,t.y=n,t;var a=.5*Math.abs(Math.PI/s-s/Math.PI),h=a*a,l=Math.sin(o),d=Math.cos(o),u=d/(l+d-1),f=u*u,g=u*(2/l-1),c=g*g,v=Math.PI*this.R*(a*(u-c)+Math.sqrt(h*(u-c)*(u-c)-(c+h)*(f-c)))/(c+h);s<0&&(v=-v),r=this.x0+v;var y=h+u;return v=Math.PI*this.R*(g*y-a*Math.sqrt((c+h)*(h+1)-y*y))/(c+h),e>=0?n=this.y0+v:n=this.y0-v,t.x=r,t.y=n,t}function Ic$1(t){var i,e,s,r,n,o,a,h,l,d,u,f,g;return t.x-=this.x0,t.y-=this.y0,u=Math.PI*this.R,s=t.x/u,r=t.y/u,n=s*s+r*r,o=-Math.abs(r)*(1+n),a=o-2*r*r+s*s,h=-2*o+1+2*r*r+n*n,g=r*r/h+(2*a*a*a/h/h/h-9*o*a/h/h)/27,l=(o-a*a/3/h)/h,d=2*Math.sqrt(-l/3),u=3*g/l/d,Math.abs(u)>1&&(u>=0?u=1:u=-1),f=Math.acos(u)/3,t.y>=0?e=(-d*Math.cos(f+Math.PI/3)-a/3/h)*Math.PI:e=-(-d*Math.cos(f+Math.PI/3)-a/3/h)*Math.PI,Math.abs(s)<p?i=this.long0:i=_(this.long0+Math.PI*(n-1+Math.sqrt(1+2*(s*s-r*r)+n*n))/2/s,this.over),t.x=i,t.y=e,t}var wa$1={init:Pc$1,forward:Ac$1,inverse:Ic$1,names:[`Van_der_Grinten_I`,`VanDerGrinten`,`Van_der_Grinten`,`vandg`]};function Pa$1(t,i,e,s,r,n){let o=s-i,a=Math.atan((1-n)*Math.tan(t)),h=Math.atan((1-n)*Math.tan(e)),l=Math.sin(a),d=Math.cos(a),u=Math.sin(h),f=Math.cos(h),g=o,c,v=100,y,M,S,x,C,P,A,O,K,U,qt,gt,oe,he;do{if(y=Math.sin(g),M=Math.cos(g),S=Math.sqrt(f*y*(f*y)+(d*u-l*f*M)*(d*u-l*f*M)),S===0)return{azi1:0,s12:0};x=l*u+d*f*M,C=Math.atan2(S,x),P=d*f*y/S,A=1-P*P,O=A!==0?x-2*l*u/A:0,K=n/16*A*(4+n*(4-3*A)),c=g,g=o+(1-K)*n*P*(C+K*S*(O+K*x*(-1+2*O*O)))}while(Math.abs(g-c)>1e-12&&--v>0);return v===0?{azi1:NaN,s12:NaN}:(U=A*(r*r-r*(1-n)*(r*(1-n)))/(r*(1-n)*(r*(1-n))),qt=1+U/16384*(4096+U*(-768+U*(320-175*U))),gt=U/1024*(256+U*(-128+U*(74-47*U))),oe=gt*S*(O+gt/4*(x*(-1+2*O*O)-gt/6*O*(-3+4*S*S)*(-3+4*O*O))),he=r*(1-n)*qt*(C-oe),{azi1:Math.atan2(f*y,d*u-l*f*M),s12:he})}function Aa$1(t,i,e,s,r,n){let o=Math.atan((1-n)*Math.tan(t)),a=Math.sin(o),h=Math.cos(o),l=Math.sin(e),d=Math.cos(e),u=Math.atan2(a,h*d),f=h*l,g=1-f*f,c=g*(r*r-r*(1-n)*(r*(1-n)))/(r*(1-n)*(r*(1-n))),v=1+c/16384*(4096+c*(-768+c*(320-175*c))),y=c/1024*(256+c*(-128+c*(74-47*c))),M=s/(r*(1-n)*v),S,x=100,C,P,A,O;do C=Math.cos(2*u+M),P=Math.sin(M),A=Math.cos(M),O=y*P*(C+y/4*(A*(-1+2*C*C)-y/6*C*(-3+4*P*P)*(-3+4*C*C))),S=M,M=s/(r*(1-n)*v)+O;while(Math.abs(M-S)>1e-12&&--x>0);if(x===0)return{lat2:NaN,lon2:NaN};let K=a*P-h*A*d,U=Math.atan2(a*A+h*P*d,(1-n)*Math.sqrt(f*f+K*K)),qt=Math.atan2(P*l,h*A-a*P*d),gt=n/16*g*(4+n*(4-3*g));return{lat2:U,lon2:i+(qt-(1-gt)*n*f*(M+gt*P*(C+gt*A*(-1+2*C*C))))}}function Nc$1(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.f=this.es/(1+Math.sqrt(1-this.es))}function Gc$1(t){var i=t.x,e=t.y,s=Math.sin(t.y),r=Math.cos(t.y),n=_(i-this.long0,this.over),o,a,h,l,d,u,f,g,c,v,y;return this.sphere?Math.abs(this.sin_p12-1)<=p?(t.x=this.x0+this.a*(m-e)*Math.sin(n),t.y=this.y0-this.a*(m-e)*Math.cos(n),t):Math.abs(this.sin_p12+1)<=p?(t.x=this.x0+this.a*(m+e)*Math.sin(n),t.y=this.y0+this.a*(m+e)*Math.cos(n),t):(c=this.sin_p12*s+this.cos_p12*r*Math.cos(n),f=Math.acos(c),g=f?f/Math.sin(f):1,t.x=this.x0+this.a*g*r*Math.sin(n),t.y=this.y0+this.a*g*(this.cos_p12*s-this.sin_p12*r*Math.cos(n)),t):(o=Vt$2(this.es),a=Rt$1(this.es),h=Ft$2(this.es),l=kt$2(this.es),Math.abs(this.sin_p12-1)<=p?(d=this.a*j(o,a,h,l,m),u=this.a*j(o,a,h,l,e),t.x=this.x0+(d-u)*Math.sin(n),t.y=this.y0-(d-u)*Math.cos(n),t):Math.abs(this.sin_p12+1)<=p?(d=this.a*j(o,a,h,l,m),u=this.a*j(o,a,h,l,e),t.x=this.x0+(d+u)*Math.sin(n),t.y=this.y0+(d+u)*Math.cos(n),t):Math.abs(i)<p&&Math.abs(e-this.lat0)<p?(t.x=this.x0,t.y=this.y0,t):(v=Pa$1(this.lat0,this.long0,e,i,this.a,this.f),y=v.azi1,t.x=this.x0+v.s12*Math.sin(y),t.y=this.y0+v.s12*Math.cos(y),t))}function Oc$1(t){t.x-=this.x0,t.y-=this.y0;var i,e,s,r,n,o,a,h,l,d,u,f,g,c,v,y;return this.sphere?(i=Math.sqrt(t.x*t.x+t.y*t.y),i>2*m*this.a?void 0:(e=i/this.a,s=Math.sin(e),r=Math.cos(e),n=this.long0,Math.abs(i)<=p?o=this.lat0:(o=ct$1(r*this.sin_p12+t.y*s*this.cos_p12/i),a=Math.abs(this.lat0)-m,Math.abs(a)<=p?this.lat0>=0?n=_(this.long0+Math.atan2(t.x,-t.y),this.over):n=_(this.long0-Math.atan2(-t.x,t.y),this.over):n=_(this.long0+Math.atan2(t.x*s,i*this.cos_p12*r-t.y*this.sin_p12*s),this.over)),t.x=n,t.y=o,t)):(h=Vt$2(this.es),l=Rt$1(this.es),d=Ft$2(this.es),u=kt$2(this.es),Math.abs(this.sin_p12-1)<=p?(f=this.a*j(h,l,d,u,m),i=Math.sqrt(t.x*t.x+t.y*t.y),g=f-i,o=re(g/this.a,h,l,d,u),n=_(this.long0+Math.atan2(t.x,-1*t.y),this.over),t.x=n,t.y=o,t):Math.abs(this.sin_p12+1)<=p?(f=this.a*j(h,l,d,u,m),i=Math.sqrt(t.x*t.x+t.y*t.y),g=i-f,o=re(g/this.a,h,l,d,u),n=_(this.long0+Math.atan2(t.x,t.y),this.over),t.x=n,t.y=o,t):(c=Math.atan2(t.x,t.y),v=Math.sqrt(t.x*t.x+t.y*t.y),y=Aa$1(this.lat0,this.long0,c,v,this.a,this.f),t.x=y.lon2,t.y=y.lat2,t))}var Ia$1={init:Nc$1,forward:Gc$1,inverse:Oc$1,names:[`Azimuthal_Equidistant`,`aeqd`]};function Tc$1(){this.sin_p14=Math.sin(this.lat0||0),this.cos_p14=Math.cos(this.lat0||0)}function Vc$1(t){var i,e,s,r,n,o,a,h,l=t.x,d=t.y;return s=_(l-(this.long0||0),this.over),i=Math.sin(d),e=Math.cos(d),r=Math.cos(s),o=this.sin_p14*i+this.cos_p14*e*r,n=1,(o>0||Math.abs(o)<=p)&&(a=this.a*n*e*Math.sin(s),h=(this.y0||0)+this.a*n*(this.cos_p14*i-this.sin_p14*e*r)),t.x=a,t.y=h,t}function Rc$1(t){var i,e,s,r,n,o,a,h,l;return t.x-=this.x0||0,t.y-=this.y0||0,i=Math.sqrt(t.x*t.x+t.y*t.y),e=ct$1(i/this.a),s=Math.sin(e),r=Math.cos(e),h=this.long0||0,l=this.lat0||0,o=h,Math.abs(i)<=p?(a=l,t.x=o,t.y=a,t):(a=ct$1(r*this.sin_p14+t.y*s*this.cos_p14/i),n=Math.abs(l)-m,Math.abs(n)<=p?(l>=0?o=_(h+Math.atan2(t.x,-t.y),this.over):o=_(h-Math.atan2(-t.x,t.y),this.over),t.x=o,t.y=a,t):(o=_(h+Math.atan2(t.x*s,i*this.cos_p14*r-t.y*this.sin_p14*s),this.over),t.x=o,t.y=a,t))}var Da$1={init:Tc$1,forward:Vc$1,inverse:Rc$1,names:[`ortho`]};var T$1={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6};var I={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function kc$1(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||`Quadrilateralized Spherical Cube`,this.lat0>=m-w$1/2?this.face=T$1.TOP:this.lat0<=-(m-w$1/2)?this.face=T$1.BOTTOM:Math.abs(this.long0)<=w$1?this.face=T$1.FRONT:Math.abs(this.long0)<=m+w$1?this.face=this.long0>0?T$1.RIGHT:T$1.LEFT:this.face=T$1.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function jc$1(t){var i={x:0,y:0},e,s,r,n,o,a,h={value:0};if(t.x-=this.long0,this.es!==0?e=Math.atan(this.one_minus_f_squared*Math.tan(t.y)):e=t.y,s=t.x,this.face===T$1.TOP)n=m-e,s>=w$1&&s<=m+w$1?(h.value=I.AREA_0,r=s-m):s>m+w$1||s<=-(m+w$1)?(h.value=I.AREA_1,r=s>0?s-L:s+L):s>-(m+w$1)&&s<=-w$1?(h.value=I.AREA_2,r=s+m):(h.value=I.AREA_3,r=s);else if(this.face===T$1.BOTTOM)n=m+e,s>=w$1&&s<=m+w$1?(h.value=I.AREA_0,r=-s+m):s<w$1&&s>=-w$1?(h.value=I.AREA_1,r=-s):s<-w$1&&s>=-(m+w$1)?(h.value=I.AREA_2,r=-s-m):(h.value=I.AREA_3,r=s>0?-s+L:-s-L);else{var l,d,u,f,g,c,v;this.face===T$1.RIGHT?s=Ee$1(s,+m):this.face===T$1.BACK?s=Ee$1(s,+L):this.face===T$1.LEFT&&(s=Ee$1(s,-m)),f=Math.sin(e),g=Math.cos(e),c=Math.sin(s),v=Math.cos(s),l=g*v,d=g*c,u=f,this.face===T$1.FRONT?(n=Math.acos(l),r=Ri$1(n,u,d,h)):this.face===T$1.RIGHT?(n=Math.acos(d),r=Ri$1(n,u,-l,h)):this.face===T$1.BACK?(n=Math.acos(-l),r=Ri$1(n,u,-d,h)):this.face===T$1.LEFT?(n=Math.acos(-d),r=Ri$1(n,u,l,h)):(n=r=0,h.value=I.AREA_0)}return a=Math.atan(12/L*(r+Math.acos(Math.sin(r)*Math.cos(w$1))-m)),o=Math.sqrt((1-Math.cos(n))/(Math.cos(a)*Math.cos(a))/(1-Math.cos(Math.atan(1/Math.cos(r))))),h.value===I.AREA_1?a+=m:h.value===I.AREA_2?a+=L:h.value===I.AREA_3&&(a+=1.5*L),i.x=o*Math.cos(a),i.y=o*Math.sin(a),i.x=i.x*this.a+this.x0,i.y=i.y*this.a+this.y0,t.x=i.x,t.y=i.y,t}function Uc$1(t){var i={lam:0,phi:0},e,s,r,n,o,a,h,l,d,u={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,s=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?u.value=I.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(u.value=I.AREA_1,e-=m):t.x<0&&-t.x>=Math.abs(t.y)?(u.value=I.AREA_2,e=e<0?e+L:e-L):(u.value=I.AREA_3,e+=m),d=L/12*Math.tan(e),o=Math.sin(d)/(Math.cos(d)-1/Math.sqrt(2)),a=Math.atan(o),r=Math.cos(e),n=Math.tan(s),h=1-r*r*n*n*(1-Math.cos(Math.atan(1/Math.cos(a)))),h<-1?h=-1:h>1&&(h=1),this.face===T$1.TOP)l=Math.acos(h),i.phi=m-l,u.value===I.AREA_0?i.lam=a+m:u.value===I.AREA_1?i.lam=a<0?a+L:a-L:u.value===I.AREA_2?i.lam=a-m:i.lam=a;else if(this.face===T$1.BOTTOM)l=Math.acos(h),i.phi=l-m,u.value===I.AREA_0?i.lam=-a+m:u.value===I.AREA_1?i.lam=-a:u.value===I.AREA_2?i.lam=-a-m:i.lam=a<0?-a-L:-a+L;else{var f=h,g,c;d=f*f,d>=1?c=0:c=Math.sqrt(1-d)*Math.sin(a),d+=c*c,d>=1?g=0:g=Math.sqrt(1-d),u.value===I.AREA_1?(d=g,g=-c,c=d):u.value===I.AREA_2?(g=-g,c=-c):u.value===I.AREA_3&&(d=g,g=c,c=-d),this.face===T$1.RIGHT?(d=f,f=-g,g=d):this.face===T$1.BACK?(f=-f,g=-g):this.face===T$1.LEFT&&(d=f,f=g,g=-d),i.phi=Math.acos(-c)-m,i.lam=Math.atan2(g,f),this.face===T$1.RIGHT?i.lam=Ee$1(i.lam,-m):this.face===T$1.BACK?i.lam=Ee$1(i.lam,-L):this.face===T$1.LEFT&&(i.lam=Ee$1(i.lam,+m))}if(this.es!==0){var v=i.phi<0?1:0,y=Math.tan(i.phi),M=this.b/Math.sqrt(y*y+this.one_minus_f_squared);i.phi=Math.atan(Math.sqrt(this.a*this.a-M*M)/(this.one_minus_f*M)),v&&(i.phi=-i.phi)}return i.lam+=this.long0,t.x=i.lam,t.y=i.phi,t}function Ri$1(t,i,e,s){var r;return t<p?(s.value=I.AREA_0,r=0):(r=Math.atan2(i,e),Math.abs(r)<=w$1?s.value=I.AREA_0:r>w$1&&r<=m+w$1?(s.value=I.AREA_1,r-=m):r>m+w$1||r<=-(m+w$1)?(s.value=I.AREA_2,r=r>=0?r-L:r+L):(s.value=I.AREA_3,r+=m)),r}function Ee$1(t,i){var e=t+i;return e<-L?e+=Qt:e>+L&&(e-=Qt),e}var Na$1={init:kc$1,forward:jc$1,inverse:Uc$1,names:[`Quadrilateralized Spherical Cube`,`Quadrilateralized_Spherical_Cube`,`qsc`]};var Ws$1=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]];var Ke$2=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,422642e-15],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]];var Ga$1=.8487;var Oa$1=1.3523;var La$1=k/5;var qc$1=1/La$1;var Ce=18;var Fi$1=function(t,i){return t[0]+i*(t[1]+i*(t[2]+i*t[3]))};var Hc$1=function(t,i){return t[1]+i*(2*t[2]+i*3*t[3])};function Wc$1(t,i,e,s){for(var r=i;s;--s){var n=t(r);if(r-=n,Math.abs(n)<e)break}return r}function zc$1(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||`Robinson`}function Kc$1(t){var i=_(t.x-this.long0,this.over),e=Math.abs(t.y),s=Math.floor(e*La$1);s<0?s=0:s>=Ce&&(s=Ce-1),e=k*(e-qc$1*s);var r={x:Fi$1(Ws$1[s],e)*i,y:Fi$1(Ke$2[s],e)};return t.y<0&&(r.y=-r.y),r.x=r.x*this.a*Ga$1+this.x0,r.y=r.y*this.a*Oa$1+this.y0,r}function $c$1(t){var i={x:(t.x-this.x0)/(this.a*Ga$1),y:Math.abs(t.y-this.y0)/(this.a*Oa$1)};if(i.y>=1)i.x/=Ws$1[Ce][0],i.y=t.y<0?-m:m;else{var e=Math.floor(i.y*Ce);for(e<0?e=0:e>=Ce&&(e=Ce-1);;)if(Ke$2[e][0]>i.y)--e;else if(Ke$2[e+1][0]<=i.y)++e;else break;var s=Ke$2[e],r=5*(i.y-s[0])/(Ke$2[e+1][0]-s[0]);r=Wc$1(function(n){return(Fi$1(s,n)-i.y)/Hc$1(s,n)},r,p,100),i.x/=Fi$1(Ws$1[e],r),i.y=(5*e+r)*D,t.y<0&&(i.y=-i.y)}return i.x=_(i.x+this.long0,this.over),i}var Ta$1={init:zc$1,forward:Kc$1,inverse:$c$1,names:[`Robinson`,`robin`]};function Xc$1(){this.name=`geocent`}function Jc$1(t){return Ai(t,this.es,this.a)}function Zc$1(t){return Ii$1(t,this.es,this.a,this.b)}var Va$1={init:Xc$1,forward:Jc$1,inverse:Zc$1,names:[`Geocentric`,`geocentric`,`geocent`,`Geocent`]};var tt$1={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3};var $e$2={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function tu$1(){if(Object.keys($e$2).forEach(function(e){if(typeof this[e]>`u`)this[e]=$e$2[e].def;else{if($e$2[e].num&&isNaN(this[e]))throw new Error(`Invalid parameter value, must be numeric `+e+` = `+this[e]);$e$2[e].num&&(this[e]=parseFloat(this[e]))}$e$2[e].degrees&&(this[e]=this[e]*D)}.bind(this)),Math.abs(Math.abs(this.lat0)-m)<p?this.mode=this.lat0<0?tt$1.S_POLE:tt$1.N_POLE:Math.abs(this.lat0)<p?this.mode=tt$1.EQUIT:(this.mode=tt$1.OBLIQ,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error(`Invalid height`);this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,i=this.azi;this.cg=Math.cos(i),this.sg=Math.sin(i),this.cw=Math.cos(t),this.sw=Math.sin(t)}function eu$1(t){t.x-=this.long0;var i=Math.sin(t.y),e=Math.cos(t.y),s=Math.cos(t.x),r,n;switch(this.mode){case tt$1.OBLIQ:n=this.sinph0*i+this.cosph0*e*s;break;case tt$1.EQUIT:n=e*s;break;case tt$1.S_POLE:n=-i;break;case tt$1.N_POLE:n=i;break}switch(n=this.pn1/(this.p-n),r=n*e*Math.sin(t.x),this.mode){case tt$1.OBLIQ:n*=this.cosph0*i-this.sinph0*e*s;break;case tt$1.EQUIT:n*=i;break;case tt$1.N_POLE:n*=-(e*s);break;case tt$1.S_POLE:n*=e*s;break}var o,a;return o=n*this.cg+r*this.sg,a=1/(o*this.sw*this.h1+this.cw),r=(r*this.cg-n*this.sg)*this.cw*a,n=o*a,t.x=r*this.a,t.y=n*this.a,t}function iu(t){t.x/=this.a,t.y/=this.a;var i={x:t.x,y:t.y},e,s,r=1/(this.pn1-t.y*this.sw);e=this.pn1*t.x*r,s=this.pn1*t.y*this.cw*r,t.x=e*this.cg+s*this.sg,t.y=s*this.cg-e*this.sg;var n=F$1(t.x,t.y);if(Math.abs(n)<p)i.x=0,i.y=t.y;else{var o,a;switch(a=1-n*n*this.pfact,a=(this.p-Math.sqrt(a))/(this.pn1/n+n/this.pn1),o=Math.sqrt(1-a*a),this.mode){case tt$1.OBLIQ:i.y=Math.asin(o*this.sinph0+t.y*a*this.cosph0/n),t.y=(o-this.sinph0*Math.sin(i.y))*n,t.x*=a*this.cosph0;break;case tt$1.EQUIT:i.y=Math.asin(t.y*a/n),t.y=o*n,t.x*=a;break;case tt$1.N_POLE:i.y=Math.asin(o),t.y=-t.y;break;case tt$1.S_POLE:i.y=-Math.asin(o);break}i.x=Math.atan2(t.x,t.y)}return t.x=i.x+this.long0,t.y=i.y,t}var Ra$1={init:tu$1,forward:eu$1,inverse:iu,names:[`Tilted_Perspective`,`tpers`]};function ru$1(){if(this.flip_axis=this.sweep===`x`?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var t=1-this.es,i=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=i,this.shape=`ellipse`}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape=`sphere`;this.title||(this.title=`Geostationary Satellite View`)}function nu$1(t){var i=t.x,e=t.y,s,r,n,o;if(i=i-this.long0,this.shape===`ellipse`){e=Math.atan(this.radius_p2*Math.tan(e));var a=this.radius_p/F$1(this.radius_p*Math.cos(e),Math.sin(e));if(r=a*Math.cos(i)*Math.cos(e),n=a*Math.sin(i)*Math.cos(e),o=a*Math.sin(e),(this.radius_g-r)*r-n*n-o*o*this.radius_p_inv2<0)return t.x=NaN,t.y=NaN,t;s=this.radius_g-r,this.flip_axis?(t.x=this.radius_g_1*Math.atan(n/F$1(o,s)),t.y=this.radius_g_1*Math.atan(o/s)):(t.x=this.radius_g_1*Math.atan(n/s),t.y=this.radius_g_1*Math.atan(o/F$1(n,s)))}else this.shape===`sphere`&&(s=Math.cos(e),r=Math.cos(i)*s,n=Math.sin(i)*s,o=Math.sin(e),s=this.radius_g-r,this.flip_axis?(t.x=this.radius_g_1*Math.atan(n/F$1(o,s)),t.y=this.radius_g_1*Math.atan(o/s)):(t.x=this.radius_g_1*Math.atan(n/s),t.y=this.radius_g_1*Math.atan(o/F$1(n,s))));return t.x=t.x*this.a,t.y=t.y*this.a,t}function au(t){var i=-1,e=0,s=0,r,n,o,a;if(t.x=t.x/this.a,t.y=t.y/this.a,this.shape===`ellipse`){this.flip_axis?(s=Math.tan(t.y/this.radius_g_1),e=Math.tan(t.x/this.radius_g_1)*F$1(1,s)):(e=Math.tan(t.x/this.radius_g_1),s=Math.tan(t.y/this.radius_g_1)*F$1(1,e));var h=s/this.radius_p;if(r=e*e+h*h+i*i,n=2*this.radius_g*i,o=n*n-4*r*this.C,o<0)return t.x=NaN,t.y=NaN,t;a=(-n-Math.sqrt(o))/(2*r),i=this.radius_g+a*i,e*=a,s*=a,t.x=Math.atan2(e,i),t.y=Math.atan(s*Math.cos(t.x)/i),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if(this.shape===`sphere`){if(this.flip_axis?(s=Math.tan(t.y/this.radius_g_1),e=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+s*s)):(e=Math.tan(t.x/this.radius_g_1),s=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+e*e)),r=e*e+s*s+i*i,n=2*this.radius_g*i,o=n*n-4*r*this.C,o<0)return t.x=NaN,t.y=NaN,t;a=(-n-Math.sqrt(o))/(2*r),i=this.radius_g+a*i,e*=a,s*=a,t.x=Math.atan2(e,i),t.y=Math.atan(s*Math.cos(t.x)/i)}return t.x=t.x+this.long0,t}var Fa$1={init:ru$1,forward:nu$1,inverse:au,names:[`Geostationary Satellite View`,`Geostationary_Satellite`,`geos`]};var Qe$2=1.340264;var Xe$2=-.081106;var Je$1=893e-6;var Ze$1=.003796;var ki$1=Math.sqrt(3)/2;function hu$1(){this.long0=this.long0!==void 0?this.long0:0,this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.es!==0&&(this.apa=We$1(this.es),this.qp=lt$2(this.e,1),this.rqda=Math.sqrt(.5*this.qp))}function lu(t){var i=_(t.x-this.long0,this.over),e=t.y,s=Math.sin(e);this.es!==0&&(s=lt$2(this.e,s)/this.qp);var r=Math.asin(ki$1*s),n=r*r,o=n*n*n;return t.x=i*Math.cos(r)/(ki$1*(Qe$2+3*Xe$2*n+o*(7*Je$1+9*Ze$1*n))),t.y=r*(Qe$2+Xe$2*n+o*(Je$1+Ze$1*n)),this.es!==0&&(t.x*=this.rqda,t.y*=this.rqda),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function cu$1(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,this.es!==0&&(t.x/=this.rqda,t.y/=this.rqda);var i=1e-9,e=12,s=t.y,r,n,o,a,h,l;for(l=0;l<e&&(r=s*s,n=r*r*r,o=s*(Qe$2+Xe$2*r+n*(Je$1+Ze$1*r))-t.y,a=Qe$2+3*Xe$2*r+n*(7*Je$1+9*Ze$1*r),s-=h=o/
4a,!(Math.abs(h)<i));++l);return r=s*s,n=r*r*r,t.x=ki$1*t.x*(Qe$2+3*Xe$2*r+n*(7*Je$1+9*Ze$1*r))/Math.cos(s),t.y=Math.asin(Math.sin(s)/ki$1),this.es!==0&&(t.y=ze(t.y,this.apa)),t.x=_(t.x+this.long0,this.over),t}var ka$1={init:hu$1,forward:lu,inverse:cu$1,names:[`eqearth`,`Equal Earth`,`Equal_Earth`]};var Ye$2=1e-10;function du$1(){var t;if(this.phi1=this.lat1,Math.abs(this.phi1)<Ye$2)throw new Error;this.es?(this.en=ye$1(this.es),this.m1=It$1(this.phi1,this.am1=Math.sin(this.phi1),t=Math.cos(this.phi1),this.en),this.am1=t/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=mu$1,this.forward=fu$1):(Math.abs(this.phi1)+Ye$2>=m?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=_u$1,this.forward=gu$1)}function fu$1(t){var i=_(t.x-(this.long0||0),this.over),e=t.y,s,r,n;return s=this.am1+this.m1-It$1(e,r=Math.sin(e),n=Math.cos(e),this.en),r=n*i/(s*Math.sqrt(1-this.es*r*r)),t.x=s*Math.sin(r),t.y=this.am1-s*Math.cos(r),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function mu$1(t){t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var i,e,s,r;if(e=F$1(t.x,t.y=this.am1-t.y),r=Me$1(this.am1+this.m1-e,this.es,this.en),(i=Math.abs(r))<m)i=Math.sin(r),s=e*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*i*i)/Math.cos(r);else if(Math.abs(i-m)<=Ye$2)s=0;else throw new Error;return t.x=_(s+(this.long0||0),this.over),t.y=ht(r),t}function gu$1(t){var i=_(t.x-(this.long0||0),this.over),e=t.y,s,r;return r=this.cphi1+this.phi1-e,Math.abs(r)>Ye$2?(t.x=r*Math.sin(s=i*Math.cos(e)/r),t.y=this.cphi1-r*Math.cos(s)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function _u$1(t){t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var i,e,s=F$1(t.x,t.y=this.cphi1-t.y);if(e=this.cphi1+this.phi1-s,Math.abs(e)>m)throw new Error;return Math.abs(Math.abs(e)-m)<=Ye$2?i=0:i=s*Math.atan2(t.x,t.y)/Math.cos(e),t.x=_(i+(this.long0||0),this.over),t.y=ht(e),t}var ja$1={init:du$1,names:[`bonne`,`Bonne (Werner lat_1=90)`]};var Ua$1={OBLIQUE:{forward:bu$1,inverse:Eu$1},TRANSVERSE:{forward:xu$1,inverse:Cu$1}};var ji$1={ROTATE:{o_alpha:`oAlpha`,o_lon_c:`oLongC`,o_lat_c:`oLatC`},NEW_POLE:{o_lat_p:`oLatP`,o_lon_p:`oLongP`},NEW_EQUATOR:{o_lon_1:`oLong1`,o_lat_1:`oLat1`,o_lon_2:`oLong2`,o_lat_2:`oLat2`}};function vu$1(){if(this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.title=this.title||`General Oblique Transformation`,this.isIdentity=ws.includes(this.o_proj),!this.o_proj)throw new Error(`Missing parameter: o_proj`);if(this.o_proj===`ob_tran`)throw new Error(`Invalid value for o_proj: `+this.o_proj);let i=xt$2(this.projStr.replace(`+proj=ob_tran`,``).replace(`+o_proj=`,`+proj=`).trim());if(!i)throw new Error(`Invalid parameter: o_proj. Unknown projection `+this.o_proj);i.long0=0,this.obliqueProjection=i;let e,s=Object.keys(ji$1),r=a=>{if(typeof this[a]>`u`)return;let h=parseFloat(this[a])*D;if(isNaN(h))throw new Error(`Invalid value for `+a+`: `+this[a]);return h};for(let a=0;a<s.length;a++){let l=ji$1[s[a]],d=Object.entries(l);if(d.some(([f])=>typeof this[f]<`u`)){e=l;for(let f=0;f<d.length;f++){let[g,c]=d[f],v=r(g);if(typeof v>`u`)throw new Error(`Missing parameter: `+g+`.`);this[c]=v}break}}if(!e)throw new Error(`No valid parameters provided for ob_tran projection.`);let{lamp:n,phip:o}=Su$1(this,e);this.lamp=n,Math.abs(o)>p?(this.cphip=Math.cos(o),this.sphip=Math.sin(o),this.projectionType=Ua$1.OBLIQUE):this.projectionType=Ua$1.TRANSVERSE}function yu$1(t){return this.projectionType.forward(this,t)}function Mu$1(t){return this.projectionType.inverse(this,t)}function Su$1(t,i){let e,s;if(i===ji$1.ROTATE){let r=t.oLongC,n=t.oLatC,o=t.oAlpha;if(Math.abs(Math.abs(n)-m)<=p)throw new Error(`Invalid value for o_lat_c: `+t.o_lat_c+` should be < 90°`);s=r+Math.atan2(-1*Math.cos(o),-1*Math.sin(o)*Math.sin(n)),e=Math.asin(Math.cos(n)*Math.sin(o))}else if(i===ji$1.NEW_POLE)s=t.oLongP,e=t.oLatP;else{let r=t.oLong1,n=t.oLat1,o=t.oLong2,a=t.oLat2,h=Math.abs(n);
4if(Math.abs(n)>m-p)throw new Error(`Invalid value for o_lat_1: `+t.o_lat_1+` should be < 90°`);if(Math.abs(a)>m-p)throw new Error(`Invalid value for o_lat_2: `+t.o_lat_2+` should be < 90°`);if(Math.abs(n-a)<p)throw new Error(`Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2`);if(h<p)throw new Error(`Invalid value for o_lat_1: o_lat_1 should be different from zero`);s=Math.atan2(Math.cos(n)*Math.sin(a)*Math.cos(r)-Math.sin(n)*Math.cos(a)*Math.cos(o),Math.sin(n)*Math.cos(a)*Math.sin(o)-Math.cos(n)*Math.sin(a)*Math.sin(r)),e=Math.atan(-1*Math.cos(s-r)/Math.tan(n))}return{lamp:s,phip:e}}function bu$1(t,i){let{x:e,y:s}=i;e=_(e-t.long0,t.over);let r=Math.cos(e),n=Math.sin(s),o=Math.cos(s);i.x=_(Math.atan2(o*Math.sin(e),t.sphip*o*r+t.cphip*n)+t.lamp),i.y=Math.asin(t.sphip*n-t.cphip*o*r);let a=t.obliqueProjection.forward(i);return t.isIdentity&&(a.x*=k,a.y*=k),a}function xu$1(t,i){let{x:e,y:s}=i;e=_(e-t.long0,t.over);let r=Math.cos(s),n=Math.cos(e);i.x=_(Math.atan2(r*Math.sin(e),Math.sin(s))+t.lamp),i.y=Math.asin(-1*r*n);let o=t.obliqueProjection.forward(i);return t.isIdentity&&(o.x*=k,o.y*=k),o}function Eu$1(t,i){t.isIdentity&&(i.x*=D,i.y*=D);let{x:s,y:r}=t.obliqueProjection.inverse(i);if(s<Number.MAX_VALUE){s-=t.lamp;let n=Math.cos(s),o=Math.sin(r),a=Math.cos(r);i.x=Math.atan2(a*Math.sin(s),t.sphip*a*n-t.cphip*o),i.y=Math.asin(t.sphip*o+t.cphip*a*n)}return i.x=_(i.x+t.long0),i}function Cu$1(t,i){t.isIdentity&&(i.x*=D,i.y*=D);let{x:s,y:r}=t.obliqueProjection.inverse(i);if(s<Number.MAX_VALUE){let n=Math.cos(r);s-=t.lamp,i.x=Math.atan2(n*Math.sin(s),-1*Math.sin(r)),i.y=Math.asin(n*Math.cos(s))}return i.x=_(i.x+t.long0),i}var Ba$1={init:vu$1,forward:yu$1,inverse:Mu$1,names:[`General Oblique Transformation`,`General_Oblique_Transformation`,`ob_tran`]};function qa$1(t){t.Proj.projections.add(Se),t.Proj.projections.add(be),t.Proj.projections.add(ra$2),t.Proj.projections.add(na$2),t.Proj.projections.add(aa$2),t.Proj.projections.add(oa$2),t.Proj.projections.add(ha$2),t.Proj.projections.add(la$2),t.Proj.projections.add(ca$2),t.Proj.projections.add(ua$2),t.Proj.projections.add(da$2),t.Proj.projections.add(fa$2),t.Proj.projections.add(ma$2),t.Proj.projections.add(_a$1),t.Proj.projections.add(pa$2),t.Proj.projections.add(ya$1),t.Proj.projections.add(Ma$1),t.Proj.projections.add(Sa$1),t.Proj.projections.add(ba$1),t.Proj.projections.add(xa$1),t.Proj.projections.add(Ea$1),t.Proj.projections.add(Ca$1),t.Proj.projections.add(wa$1),t.Proj.projections.add(Ia$1),t.Proj.projections.add(Da$1),t.Proj.projections.add(Na$1),t.Proj.projections.add(Ta$1),t.Proj.projections.add(Va$1),t.Proj.projections.add(Ra$1),t.Proj.projections.add(Fa$1),t.Proj.projections.add(ka$1),t.Proj.projections.add(ja$1),t.Proj.projections.add(Ba$1)}var Ha$1=Object.assign(Un$1,{defaultDatum:`WGS84`,Proj:xt$2,WGS84:new xt$2(`WGS84`),Point:Qn$2,toPoint:_e,defs:fe,nadgrid:Ns,transform:Gs,mgrs:zn$1,version:`__VERSION__`});qa$1(Ha$1);var zs=Ha$1;var Ja$1=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,s){this._renderer=e,this._elementRef=s}setProperty(e,s){this._renderer.setProperty(this._elementRef.nativeElement,e,s)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty(`disabled`,e)}static ɵfac=function(s){return new(s||t)(mr$3(Aa$2),mr$3(ur$2))};static ɵdir=KI({type:t})}return t})();var Za$1=(()=>{class t extends Ja$1{static ɵfac=(()=>{let e;return function(r){return(e||(e=um(t)))(r||t)}})();static ɵdir=KI({type:t,features:[Kf]})}return t})();var ni$1=new _$2(``);var Au$1={provide:ni$1,useExisting:go$3(()=>Iu$1),multi:!0};var Iu$1=(()=>{class t extends Za$1{writeValue(e){this.setProperty(`checked`,e)}static ɵfac=(()=>{let e;return function(r){return(e||(e=um(t)))(r||t)}})();static ɵdir=KI({type:t,selectors:[[`input`,`type`,`checkbox`,`formControlName`,``,3,`ngNoCva`,``],[`input`,`type`,`checkbox`,`formControl`,``,3,`ngNoCva`,``],[`input`,`type`,`checkbox`,`ngModel`,``,3,`ngNoCva`,``]],hostBindings:function(s,r){s&1&&gp$1(`change`,function(o){return r.onChange(o.target.checked)})(`blur`,function(){return r.onTouched()})},standalone:!1,features:[yD([Au$1]),Kf]})}return t})();var Du$1={provide:ni$1,useExisting:go$3(()=>Ya$1),multi:!0};function Nu$1(){let t=Oc$2()?Oc$2().getUserAgent():``;return/android (\d+)/.test(t.toLowerCase())}var Gu$1=new _$2(``);var Ya$1=(()=>{class t extends Ja$1{_compositionMode;_composing=!1;constructor(e,s,r){super(e,s),this._compositionMode=r,this._compositionMode??=!Nu$1()}writeValue(e){let s=e??``;this.setProperty(`value`,s)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static ɵfac=function(s){return new(s||t)(mr$3(Aa$2),mr$3(ur$2),mr$3(Gu$1,8))};static ɵdir=KI({type:t,selectors:[[`input`,`formControlName`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`formControlName`,``,3,`ngNoCva`,``],[`input`,`formControl`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`formControl`,``,3,`ngNoCva`,``],[`input`,`ngModel`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`ngModel`,``,3,`ngNoCva`,``],[``,`ngDefaultControl`,``]],hostBindings:function(s,r){s&1&&gp$1(`input`,function(o){return r._handleInput(o.target.value)})(`blur`,function(){return r.onTouched()})(`compositionstart`,function(){return r._compositionStart()})(`compositionend`,function(o){return r._compositionEnd(o.target.value)})},standalone:!1,features:[yD([Du$1]),Kf]})}return t})();function Js$1(t){return t==null||Zs$1(t)===0}function Zs$1(t){return t==null?null:Array.isArray(t)||typeof t==`string`?t.length:t instanceof Set?t.size:null}var Ys$1=new _$2(``);var to$2=new _$2(``);var Ou$1=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;var Ks$1=class{static min(i){return Lu$1(i)}static max(i){return Tu$1(i)}static required(i){return eo$1(i)}static requiredTrue(i){return Vu$1(i)}static email(i){return Ru$1(i)}static minLength(i){return Fu$1(i)}static maxLength(i){return ku$1(i)}static pattern(i){return ju$1(i)}static nullValidator(i){return Bi$1()}static compose(i){return oo$2(i)}static composeAsync(i){return lo$2(i)}};function Lu$1(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e<t?{min:{min:t,actual:i.value}}:null}}function Tu$1(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function eo$1(t){return Js$1(t.value)?{required:!0}:null}function Vu$1(t){return t.value===!0?null:{required:!0}}function Ru$1(t){return Js$1(t.value)||Ou$1.test(t.value)?null:{email:!0}}function Fu$1(t){return i=>{let e=i.value?.length??Zs$1(i.value);return e===null||e===0?null:e<t?{minlength:{requiredLength:t,actualLength:e}}:null}}function ku$1(t){return i=>{let e=i.value?.length??Zs$1(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function ju$1(t){if(!t)return Bi$1;let i,e;return typeof t==`string`?(e=``,t.charAt(0)!==`^`&&(e+=`^`),e+=t,t.charAt(t.length-1)!==`$`&&(e+=`$`),i=new RegExp(e)):(e=t.toString(),i=t),s=>
4{if(Js$1(s.value))return null;let r=s.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Bi$1(t){return null}function io$2(t){return t!=null}function so$2(t){return Dc$1(t)?be$1(t):t}function ro$2(t){let i={};return t.forEach(e=>{i=e!=null?E(E({},i),e):i}),Object.keys(i).length===0?null:i}function no$1(t,i){return i.map(e=>e(t))}function Uu$1(t){return!t.validate}function ao$2(t){return t.map(i=>Uu$1(i)?i:e=>i.validate(e))}function oo$2(t){if(!t)return null;let i=t.filter(io$2);return i.length==0?null:function(e){return ro$2(no$1(e,i))}}function ho$2(t){return t!=null?oo$2(ao$2(t)):null}function lo$2(t){if(!t)return null;let i=t.filter(io$2);return i.length==0?null:function(e){return Th$1(no$1(e,i).map(so$2)).pipe(qe$2(ro$2))}}function co$2(t){return t!=null?lo$2(ao$2(t)):null}function Wa$1(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function uo$2(t){return t._rawValidators}function fo$2(t){return t._rawAsyncValidators}function $s(t){return t?Array.isArray(t)?t:[t]:[]}function qi$1(t,i){return Array.isArray(t)?t.includes(i):t===i}function za$1(t,i){let e=$s(i);return $s(t).forEach(r=>{qi$1(e,r)||e.push(r)}),e}function Ka$1(t,i){return $s(i).filter(e=>!qi$1(t,e))}var Hi$1=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=ho$2(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=co$2(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}};var ri$1=class extends Hi$1{name;get formDirective(){return null}get path(){return null}};var ti$1=`VALID`;var Ui$1=`INVALID`;var we=`PENDING`;var ei=`DISABLED`;var Jt=class{};var Wi$1=class extends Jt{value;source;constructor(i,e){super(),this.value=i,this.source=e}};var ii$1=class extends Jt{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}};var si$1=class extends Jt{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}};var Pe=class extends Jt{status;source;constructor(i,e){super(),this.status=i,this.source=e}};var Qs$1=class extends Jt{source;constructor(i){super(),this.source=i}};var Ae=class extends Jt{source;constructor(i){super(),this.source=i}};function mo$1(t){return(Ji$1(t)?t.validators:t)||null}function Bu$1(t){return Array.isArray(t)?ho$2(t):t||null}function go$2(t,i){return(Ji$1(i)?i.asyncValidators:t)||null}function qu$1(t){return Array.isArray(t)?co$2(t):t||null}function Ji$1(t){return t!=null&&!Array.isArray(t)&&typeof t==`object`}function Hu$1(t,i,e){let s=t.controls;if(!(i?Object.keys(s):s).length)throw new N(1e3,``);if(!_o$2(s,e))throw new N(1001,``)}function Wu$1(t,i,e){t._forEachChild((s,r)=>{if(e[r]===void 0)throw new N(-1002,``)})}var zi$1=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_hasRequired=Ys$2(!1);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i,this._updateHasRequiredValidator()}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return kD(this.statusReactive)}
4set status(i){kD(()=>this.statusReactive.set(i))}_status=OD(()=>this.statusReactive());statusReactive=Ys$2(void 0);get valid(){return this.status===ti$1}get invalid(){return this.status===Ui$1}get pending(){return this.status===we}get disabled(){return this.status===ei}get enabled(){return this.status!==ei}errors;get pristine(){return kD(this.pristineReactive)}set pristine(i){kD(()=>this.pristineReactive.set(i))}_pristine=OD(()=>this.pristineReactive());pristineReactive=Ys$2(!0);get dirty(){return!this.pristine}get touched(){return kD(this.touchedReactive)}set touched(i){kD(()=>this.touchedReactive.set(i))}_touched=OD(()=>this.touchedReactive());touchedReactive=Ys$2(!1);get untouched(){return!this.touched}_events=new Y$1;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:`change`}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(za$1(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(za$1(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(Ka$1(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(Ka$1(i,this._rawAsyncValidators))}hasValidator(i){return qi$1(this._rawValidators,i)}hasAsyncValidator(i){return qi$1(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let s=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(F$2(E({},i),{sourceControl:s})),e&&i.emitEvent!==!1&&this._events.next(new si$1(!0,s))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let s=i.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:s})}),i.onlySelf||this._parent?._updateTouched(i,s),e&&i.emitEvent!==!1&&this._events.next(new si$1(!1,s))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let s=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(F$2(E({},i),{sourceControl:s})),e&&i.emitEvent!==!1&&this._events.next(new ii$1(!1,s))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let s=i.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,s),e&&i.emitEvent!==!1&&this._events.next(new ii$1(!0,s))}markAsPending(i={}){this.status=we;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Pe(this.status,e)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(F$2(E({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=ei,this.errors=null,this._forEachChild(r=>{r.disable(F$2(E({},i),{onlySelf:!0}))}),this._updateValue();let s=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Wi$1(this.value,s)),this._events.next(new Pe(this.status,s)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(F$2(E({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=ti$1,this._forEachChild(s=>{s.enable(F$2(E({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(F$2(E({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(s=>s(!1))}_updateAncestors(i,e){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}
4){if(this._setInitialStatus(),this._updateValue(),this.enabled){let s=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ti$1||this.status===we)&&this._runAsyncValidator(s,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Wi$1(this.value,e)),this._events.next(new Pe(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(F$2(E({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ei:ti$1}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=we,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let s=so$2(this.asyncValidator(this));this._asyncValidationSubscription=s.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(`.`)),e.length===0)?null:e.reduce((s,r)=>s&&s._find(r),this)}getError(i,e){let s=e?this.get(e):this;return s?.errors?s.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,s){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||s)&&this._events.next(new Pe(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,s)}_initObservables(){this.valueChanges=new Le,this.statusChanges=new Le}_calculateStatus(){return this._allControlsDisabled()?ei:this.errors?Ui$1:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(we)?we:this._anyControlsHaveStatus(Ui$1)?Ui$1:ti$1}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let s=!this._anyControlsDirty(),r=this.pristine!==s;this.pristine=s,i.onlySelf||this._parent?._updatePristine(i,e),r&&this._events.next(new ii$1(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new si$1(this.touched,e)),i.onlySelf||this._parent?._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Ji$1(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=Bu$1(this._rawValidators),this._updateHasRequiredValidator()}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=qu$1(this._rawAsyncValidators)}_updateHasRequiredValidator(){kD(()=>this._hasRequired.set(this.hasValidator(Ks$1.required)))}};function _o$2(t,i){return Object.hasOwn(t,i)}function zu$1(t){return t.tagName===`INPUT`||t.tagName===`SELECT`||t.tagName===`TEXTAREA`}function Ku$1(t,i,e,s){switch(e){case`name`:t.setAttribute(i,e,s);break;case`disabled`:case`readonly`:case`required`:s?t.setAttribute(i,e,``):t.removeAttribute(i,e);break;case`max`:case`min`:case`minLength`:case`maxLength`:s!==void 0?t.setAttribute(i,e,s.toString()):t.removeAttribute(i,e);break}}var Xs$1=class{kind;context;control;message;constructor({kind:i,context:e,control:s}){this.kind=i,this.context=e,this.control=s}};var $u$1=(()=>{class t{_validator=Bi$1;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let s=this.normalizeInput(e[this.inputName].
4currentValue);this._enabled=this.enabled(s),this._validator=this._enabled?this.createValidator(s):Bi$1,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static ɵfac=function(s){return new(s||t)};static ɵdir=KI({type:t,features:[Gg]})}return t})();var Qu$1={provide:Ys$1,useExisting:go$3(()=>po$2),multi:!0};var po$2=(()=>{class t extends $u$1{required;inputName=`required`;normalizeInput=xP;createValidator=e=>eo$1;enabled(e){return e}static ɵfac=(()=>{let e;return function(r){return(e||(e=um(t)))(r||t)}})();static ɵdir=KI({type:t,selectors:[[``,`required`,``,`formControlName`,``,3,`type`,`checkbox`],[``,`required`,``,`formControl`,``,3,`type`,`checkbox`],[``,`required`,``,`ngModel`,``,3,`type`,`checkbox`]],hostVars:1,hostBindings:function(s,r){s&2&&ap$1(`required`,r._enabled?``:null)},inputs:{required:`required`},standalone:!1,features:[yD([Qu$1]),Kf]})}return t})();var Xu$1=new _$2(``);var tr$1=new _$2(``,{factory:()=>er$2});var er$2=`always`;function Ju$1(t,i,e=er$2){ir$2(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e===`always`)&&i.valueAccessor.setDisabledState?.(t.disabled),Yu$1(t,i),ed$1(t,i),td$1(t,i),Zu$1(t,i)}function Ki$1(t,i,e=!0){let s=()=>{};i?.valueAccessor?.registerOnChange(s),i?.valueAccessor?.registerOnTouched(s),Qi$1(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function $i$1(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function Zu$1(t,i){if(i.valueAccessor.setDisabledState){let e=s=>{i.valueAccessor.setDisabledState(s)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ir$2(t,i){let e=uo$2(t);i.validator!==null?t.setValidators(Wa$1(e,i.validator)):typeof e==`function`&&t.setValidators([e]);let s=fo$2(t);i.asyncValidator!==null?t.setAsyncValidators(Wa$1(s,i.asyncValidator)):typeof s==`function`&&t.setAsyncValidators([s]);let r=()=>t.updateValueAndValidity();$i$1(i._rawValidators,r),$i$1(i._rawAsyncValidators,r)}function Qi$1(t,i){let e=!1;if(t!==null){if(i.validator!==null){let r=uo$2(t);if(Array.isArray(r)&&r.length>0){let n=r.filter(o=>o!==i.validator);n.length!==r.length&&(e=!0,t.setValidators(n))}}if(i.asyncValidator!==null){let r=fo$2(t);if(Array.isArray(r)&&r.length>0){let n=r.filter(o=>o!==i.asyncValidator);n.length!==r.length&&(e=!0,t.setAsyncValidators(n))}}}let s=()=>{};return $i$1(i._rawValidators,s),$i$1(i._rawAsyncValidators,s),e}function Yu$1(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn===`change`&&vo$2(t,i)})}function td$1(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn===`blur`&&t._pendingChange&&vo$2(t,i),t.updateOn!==`submit`&&t.markAsTouched()})}function vo$2(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ed$1(t,i){let e=(s,r)=>{i.valueAccessor.writeValue(s),r&&i.viewToModelUpdate(s)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function id$1(t,i){ir$2(t,i)}function sd$1(t,i){return Qi$1(t,i)}function rd$1(t,i){if(!Object.hasOwn(t,`model`))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function nd$1(t){return Object.getPrototypeOf(t.constructor)===Za$1}function ad$1(t,i){t._syncPendingControls(),i.forEach(e=>{let s=e.control;s.updateOn===`submit`&&s._pendingChange&&(e.viewToModelUpdate(s._pendingValue),s._pendingChange=!1)})}function od$1(t,i){if(!i)return null;let e,s,r;return i.forEach(n=>{n.constructor===Ya$1?e=n:nd$1(n)?s=n:r=n}),r||s||e||null}function hd$1(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var ld$1={provide:Xu$1,useFactory:()=>{let t=I$1(Ie,{self:!0});return{setParseErrors:i=>{t.setParseErrorSource(i)},set onReset(i){t.onReset=i}}}};var Ie=class extends Hi$1{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(i){this.userOnReset=i,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(e=>{e instanceof Ae&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=od$1(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(i,e,s){super(),this.injector=i,this.renderer=e,this.rawValueAccessors=s,this.injector?.get(Ie$1)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let i=this.injector?.get(MP);if(!this.control||!i)return;let e=i.markForCheck.bind(i);this.subscription=new V$1,this.subscription.add(this.control.valueChanges.subscribe(e)),this.subscription.add(this.control.statusChanges.subscribe(e)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(s=>{s instanceof Ae&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(i){!i.nativeElement.hasAttribute?.(`ngNoCva`)&&(this.rawValueAccessors&&this.rawValueAccessors.length>
40||this.valueAccessor!==null)||!i.customControl||(this.isCustomControlBased=!0,i.listenToCustomControlModel(r=>{this.control?.setValue(r,{emitModelToViewChange:!1}),this.control?.markAsDirty(),this.viewToModelUpdate(r)}),i.listenToCustomControlOutput(`touch`,()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=zu$1(i.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(r=>r instanceof po$2))}ngControlUpdate(i,e){if(!this.isCustomControlBased)return;let s=this.control,r=this.customControlBindings;Object.is(r.value,s.value)||(r.value=s.value,i.setCustomControlModelInput(s.value)),this.bindControlProperty(i,r,`touched`,s.touched),this.bindControlProperty(i,r,`dirty`,s.dirty),this.bindControlProperty(i,r,`valid`,s.valid),this.bindControlProperty(i,r,`invalid`,s.invalid),this.bindControlProperty(i,r,`pending`,s.pending),this.bindControlProperty(i,r,`disabled`,s.disabled),this.shouldBindRequired&&this.bindControlProperty(i,r,`required`,this.isRequired);let n=s.errors;if(r.errors!==n){r.errors=n;let o=this._convertErrors(n);i.setInputOnDirectives(`errors`,o)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(i,e,s,r){if(e[s]===r)return;e[s]=r;let n=i.setInputOnDirectives(s,r);this.isNativeFormElement&&!n&&(s===`disabled`||s===`required`)&&this.renderer&&Ku$1(this.renderer,i.nativeElement,s,r)}_convertErrors(i){if(i===null)return[];let e=this.control;return Object.entries(i).map(([s,r])=>new Xs$1({context:r,kind:s,control:e}))}setParseErrorSource(i){if(i===void 0)return;let e=null,s=OD(()=>{let r=i();return r.length===0?null:r.reduce((n,o)=>(n[o.kind]=o,n),{})});this.parseErrorsValidator=(()=>e).bind(this),pu$1(()=>{e=s(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(i){this.parseErrorsValidator&&(i?.removeValidators(this.parseErrorsValidator),i?.updateValueAndValidity({emitEvent:!1}))}};var Xi$1=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var $1=(()=>{class t extends Xi$1{constructor(e){super(e)}static ɵfac=function(s){return new(s||t)(mr$3(Ie,2))};static ɵdir=KI({type:t,selectors:[[``,`formControlName`,``],[``,`ngModel`,``],[``,`formControl`,``]],hostVars:14,hostBindings:function(s,r){s&2&&wp$1(`ng-untouched`,r.isUntouched)(`ng-touched`,r.isTouched)(`ng-pristine`,r.isPristine)(`ng-dirty`,r.isDirty)(`ng-valid`,r.isValid)(`ng-invalid`,r.isInvalid)(`ng-pending`,r.isPending)},standalone:!1,features:[Kf]})}return t})();var Q1=(()=>{class t extends Xi$1{constructor(e){super(e)}static ɵfac=function(s){return new(s||t)(mr$3(ri$1,10))};static ɵdir=KI({type:t,selectors:[[``,`formGroupName`,``],[``,`formArrayName`,``],[``,`ngModelGroup`,``],[``,`formGroup`,``],[``,`formArray`,``],[`form`,3,`ngNoForm`,``],[``,`ngForm`,``]],hostVars:16,hostBindings:function(s,r){s&2&&wp$1(`ng-untouched`,r.isUntouched)(`ng-touched`,r.isTouched)(`ng-pristine`,r.isPristine)(`ng-dirty`,r.isDirty)(`ng-valid`,r.isValid)(`ng-invalid`,r.isInvalid)(`ng-pending`,r.isPending)(`ng-submitted`,r.isSubmitted)},standalone:!1,features:[Kf]})}return t})();var $a$1=class extends zi$1{constructor(i,e,s){super(mo$1(e),go$2(s,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this._find(i)||(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,s={}
vendor: 4,525 bytes, line 4
4){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:s.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){let s=this._find(i);s&&s._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,s={}){let r=this._find(i);r&&r._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:s.emitEvent}),this._onCollectionChange()}contains(i){return this._find(i)?.enabled===!0}setValue(i,e={}){kD(()=>{Wu$1(this,!0,i),Object.keys(i).forEach(s=>{Hu$1(this,!0,s),this.controls[s].setValue(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)})}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(s=>{let r=this._find(s);r&&r.patchValue(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((s,r)=>{s.reset(i?i[r]:null,F$2(E({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Ae(this))}getRawValue(){return this._reduceChildren({},(i,e,s)=>(i[s]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,s)=>s._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let s=this.controls[e];s&&i(s,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,s]of Object.entries(this.controls))if(this.contains(e)&&i(s))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,s,r)=>((s.enabled||this.disabled)&&(e[r]=s.value),e))}_reduceChildren(i,e){let s=i;return this._forEachChild((r,n)=>{s=e(s,r,n)}),s}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return _o$2(this.controls,i)?this.controls[i]:null}};function Qa$1(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function Xa$1(t){return typeof t==`object`&&t!==null&&Object.keys(t).length===2&&`value`in t&&`disabled`in t}var cd=class extends zi$1{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,s){super(mo$1(e),go$2(s,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ji$1(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Xa$1(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){kD(()=>{this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(s=>s(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)})}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Ae(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){Qa$1(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){Qa$1(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn===`submit`&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){Xa$1(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var ud$1=t=>t instanceof cd;var dd$1=(()=>{class t extends ri$1{callSetDisabledState;get submitted(){return kD(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=OD(()=>this._submittedReactive());_submittedReactive=Ys$2(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,s,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(s)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),Object.hasOwn(e,`form`)&&(this._updateV
4alidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Qi$1(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let s=this.form.get(e.path);return e._setupWithForm(s,this.callSetDisabledState),s.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),s}getControl(e){return this.form.get(e.path)}removeControl(e){Ki$1(e.control||null,e,!1),hd$1(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,s){this.form.get(e.path).setValue(s)}onReset(){this.resetForm()}resetForm(e=void 0,s={}){this.form.reset(e,s),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,ad$1(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Qs$1(this.control)),e?.target?.method===`dialog`}_updateDomValue(){this.directives.forEach(e=>{let s=e.control,r=this.form.get(e.path);s!==r&&(Ki$1(s||null,e),ud$1(r)&&e._setupWithForm(r,this.callSetDisabledState))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let s=this.form.get(e.path);id$1(s,e),s.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let s=this.form?.get(e.path);s&&sd$1(s,e)&&s.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){ir$2(this.form,this),this._oldForm&&Qi$1(this._oldForm,this)}_checkFormPresent(){this.form}static ɵfac=function(s){return new(s||t)(mr$3(Ys$1,10),mr$3(to$2,10),mr$3(tr$1,8))};static ɵdir=KI({type:t,features:[Kf,Gg]})}return t})();var fd$1={provide:ri$1,useExisting:go$3(()=>md$1)};var md$1=(()=>{class t extends dd$1{form=null;ngSubmit=new Le;get control(){return this.form}static ɵfac=(()=>{let e;return function(r){return(e||(e=um(t)))(r||t)}})();static ɵdir=KI({type:t,selectors:[[``,`formGroup`,``]],hostBindings:function(s,r){s&1&&gp$1(`submit`,function(o){return r.onSubmit(o)})(`reset`,function(){return r.onReset()})},inputs:{form:[0,`formGroup`,`form`]},outputs:{ngSubmit:`ngSubmit`},exportAs:[`ngForm`],standalone:!1,features:[yD([fd$1]),Kf]})}return t})();var J1=(()=>{class t{static ɵfac=function(s){return new(s||t)};static ɵdir=KI({type:t,selectors:[[`form`,3,`ngNoForm`,``,3,`ngNativeValidate`,``]],hostAttrs:[`novalidate`,``],standalone:!1})}return t})();var yo$1=new _$2(``);var gd$1={provide:Ie,useExisting:go$3(()=>_d$1)};var _d$1=(()=>{class t extends Ie{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new Le;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,s,r,n,o,a,h){super(h,a,r),this._ngModelWarningConfig=n,this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(s)}ngOnChanges(e){if(this._isControlChanged(e)){let s=e.form.previousValue;s&&(Ki$1(s,this,!1),this.removeParseErrorsValidator(s)),this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Ju$1(this.form,this,this.callSetDisabledState)),this.form.updateValueAndValidity({emitEvent:!1})}rd$1(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ki$1(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return Object.hasOwn(e,`form`)}ɵngControlCreate(e){super.ngControlCreate(e)}ɵngControlUpdate(e){super.ngControlUpdate(e,!0)}static ɵfac=function(s){return new(s||t)(mr$3(Ys$1,10),mr$3(to$2,10),mr$3(ni$1,10),mr$3(yo$1,8),mr$3(tr$1,8),mr$3(Aa$2,8),mr$3(Me$2,8))};static ɵdir=KI({type:t,selectors:[[``,`formControl`,``]],inputs:{form:[0,`formControl`,`form`],isDisabled:[0,`disabled`,`isDisabled`],model:[0,`ngModel`,`model`]},outputs:{update:`ngModelChange`},exportAs:[`ngForm`],standalone:!1,features:[yD([gd$1,ld$1]),Kf,Gg,eE(null)]})}return t})();var pd$1=(()=>{class t{static ɵfac=function(s){return new(s||t)};static ɵmod=zf({type:t});static ɵinj=mo$2({})}return t})();var Z1=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:yo$1,useValue:e.warnOnNgModelWithFormControl??`always`},{provide:tr$1,useValue:e.callSetDisabledState??er$2}]}}static ɵfac=function(s){return new(s||t)};static ɵmod=zf({type:t});static ɵinj=mo$2({imports:[pd$1]})}return t})();var Mo$2=new Map;var ai$1=class t{_appId=I$1(du$2);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,e=!1){this._appId!==`ng`&&(i+=this._appId);let s=Mo$2.get(i);return s===void 0?s=0:s++,Mo$2.set(i,s),`${i}
4${e?t._infix+`-`:``}${s}`}static ɵfac=function(e){return new(e||t)};static ɵprov=Lt$2({token:t,factory:t.ɵfac})};var vd$1=new _$2(`cdk-dir-doc`,{providedIn:`root`,factory:()=>I$1(an$1)});var yd=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Md$1(t){let i=t?.toLowerCase()||``;return i===`auto`&&typeof navigator<`u`&&navigator?.language?yd.test(navigator.language)?`rtl`:`ltr`:i===`rtl`?`rtl`:`ltr`}var So$2=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Ys$2(`ltr`);change=new Le;constructor(){let e=I$1(vd$1,{optional:!0});if(e){let s=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(Md$1(s||r||`ltr`))}}ngOnDestroy(){this.change.complete()}static ɵfac=function(s){return new(s||t)};static ɵprov=Lt$2({token:t,factory:t.ɵfac})}return t})();var bd=200;var Zi$1=class{_letterKeyStream=new Y$1;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Y$1;selectedItem=this._selectedItem;constructor(i,e){let s=typeof e?.debounceInterval==`number`?e.debounceInterval:bd;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(s)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe($h$1(e=>this._pressedLetters.push(e)),Lh$1(i),Ur(()=>this._pressedLetters.length>0),qe$2(()=>this._pressedLetters.join(``).toLocaleUpperCase())).subscribe(e=>{for(let s=1;s<this._items.length+1;s++){let r=(this._selectedItemIndex+s)%this._items.length,n=this._items[r];if(!this._skipPredicateFn?.(n)&&n.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(n);break}}this._pressedLetters=[]})}};function jt$2(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Yi$1=class{_items;_activeItemIndex=Ys$2(-1);_activeItem=Ys$2(null);_wrap=!1;_typeaheadSubscription=V$1.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof ei$1?this._itemChangesSubscription=i.changes.subscribe(s=>this._itemsChanged(s.toArray())):Js$2(i)&&(this._effectRef=pu$1(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new Y$1;change=new Y$1;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new Zi$1(e,{debounceInterval:typeof i==`number`?i:void 0,skipPredicate:s=>this._skipPredicateFn(s)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(s=>{this.setActiveItem(s)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,r=[`altKey`,`ctrlKey`,`metaKey`,`shiftKey`].every(n=>!i[n]||this._allowedModifierKeys.indexOf(n)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal===`rtl`?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal===`rtl`?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let n=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(n>0?n:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let n=this._activeItemIndex()+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(n<o?n:o-1,-1);break}else return;default:(r||jt$2(i,`shiftKey`))&&this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault()}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){let e=this._getItemsArray(),s=typeof i==`number`?i:e.indexOf(i),r=e[s];this._activeItem.set(r??null),this._activeItemIndex.set(s),this._typeahead?.setCurrentSelectedItemIndex(s)}
4destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){let e=this._getItemsArray();for(let s=1;s<=e.length;s++){let r=(this._activeItemIndex()+i*s+e.length)%e.length,n=e[r];if(!this._skipPredicateFn(n)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex()+i,i)}_setActiveItemByIndex(i,e){let s=this._getItemsArray();if(s[i]){for(;this._skipPredicateFn(s[i]);)if(i+=e,!s[i])return;this.setActiveItem(i)}}_getItemsArray(){return Js$2(this._items)?this._items():this._items instanceof ei$1?this._items.toArray():this._items}_itemsChanged(i){this._typeahead?.setItems(i);let e=this._activeItem();if(e){let s=i.indexOf(e);s>-1&&s!==this._activeItemIndex()&&(this._activeItemIndex.set(s),this._typeahead?.setCurrentSelectedItemIndex(s))}}};var ts=class extends Yi$1{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var es=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new Y$1;bulk={select:i=>this._select(i),deselect:i=>this._deselect(i),setSelection:i=>this._setSelection(i)};constructor(i=!1,e,s=!0,r){this._multiple=i,this._emitChanges=s,this.compareWith=r,e&&e.length&&(i?e.forEach(n=>this._markSelected(n)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){return this._select(i)}deselect(...i){return this._deselect(i)}setSelection(...i){return this._setSelection(i)}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}isMultipleSelection(){return this._multiple}_select(i){this._verifyValueAssignment(i),i.forEach(s=>this._markSelected(s));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}_deselect(i){this._verifyValueAssignment(i),i.forEach(s=>this._unmarkSelected(s));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}_setSelection(i){this._verifyValueAssignment(i);let e=this.selected,s=new Set(i.map(n=>this._getConcreteValue(n)));i.forEach(n=>this._markSelected(n)),e.filter(n=>!s.has(this._getConcreteValue(n,s))).forEach(n=>this._unmarkSelected(n));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let s of e)if(this.compareWith(i,s))return s;return i}else return i}};var sr$2;try{sr$2=typeof Intl<`u`&&Intl.v8BreakIterator}catch(t){sr$2=!1}var Eo$2=(()=>{class t{_platformId=I$1(bg);isBrowser=this._platformId?ku$2(this._platformId):typeof document==`object`&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);
4TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||sr$2)&&typeof CSS<`u`&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!(`MSStream`in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;static ɵfac=function(s){return new(s||t)};static ɵprov=Lt$2({token:t,factory:t.ɵfac})}return t})();function Co$2(t){return Array.isArray(t)?t:[t]}var rr$1=class extends es{multiple;constructor(i=!1,e,s=!0,r){super(!0,e,s,r),this.multiple=i}isMultipleSelection(){return this.multiple}select(...i){return this.multiple?super.select(...i):super.setSelection(...i)}};var is=(()=>{class t{get id(){return this._id||this._generatedId}set id(e){this._id=e}_id;_generatedId=I$1(ai$1).getId(`cdk-option-`);value;typeaheadLabel=null;get disabled(){return this.listbox.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Ys$2(!1);get enabledTabIndex(){return this._enabledTabIndex()===void 0?this.listbox.enabledTabIndex:this._enabledTabIndex()}set enabledTabIndex(e){this._enabledTabIndex.set(e)}_enabledTabIndex=Ys$2(void 0);element=I$1(ur$2).nativeElement;listbox=I$1(nr$1);destroyed=new Y$1;_clicked=new Y$1;ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}isSelected(){return this.listbox.isSelected(this)}isActive(){return this.listbox.isActive(this)}toggle(){this.listbox.toggle(this)}select(){this.listbox.select(this)}deselect(){this.listbox.deselect(this)}focus(){this.element.focus()}getLabel(){return(this.typeaheadLabel??this.element.textContent?.trim())||``}setActiveStyles(){this.listbox.useActiveDescendant&&this.element.scrollIntoView({block:`nearest`,inline:`nearest`})}setInactiveStyles(){}_handleFocus(){this.listbox.useActiveDescendant&&(this.listbox._setActiveOption(this),this.listbox.focus())}_getTabIndex(){return this.listbox.useActiveDescendant||this.disabled?-1:this.isActive()?this.enabledTabIndex:-1}static ɵfac=function(s){return new(s||t)};static ɵdir=KI({type:t,selectors:[[``,`cdkOption`,``]],hostAttrs:[`role`,`option`,1,`cdk-option`],hostVars:6,hostBindings:function(s,r){s&1&&gp$1(`click`,function(o){return r._clicked.next(o)})(`focus`,function(){return r._handleFocus()}),s&2&&(pp$1(`id`,r.id),ap$1(`aria-selected`,r.isSelected())(`tabindex`,r._getTabIndex())(`aria-disabled`,r.disabled),wp$1(`cdk-option-active`,r.isActive()))},inputs:{id:`id`,value:[0,`cdkOption`,`value`],typeaheadLabel:[0,`cdkOptionTypeaheadLabel`,`typeaheadLabel`],disabled:[2,`cdkOptionDisabled`,`disabled`,xP],enabledTabIndex:[2,`tabindex`,`enabledTabIndex`,e=>e==null?void 0:AP(e)]},exportAs:[`cdkOption`]})}return t})();var nr$1=(()=>{class t{_cleanupWindowBlur;get id(){return this._id||this._generatedId}set id(e){this._id=e}_id;_generatedId=I$1(ai$1).getId(`cdk-listbox-`);get enabledTabIndex(){return this._enabledTabIndex()===void 0?0:this._enabledTabIndex()}set enabledTabIndex(e){this._enabledTabIndex.set(e)}_enabledTabIndex=Ys$2(void 0);get value(){return this._invalid?[]:this.selectionModel.selected}set value(e){this._setSelection(e)}get multiple(){return this.selectionModel.multiple}set multiple(e){this.selectionModel.multiple=e,this.options&&this._updateInternalValue()}get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Ys$2(!1);get useActiveDescendant(){return this._useActiveDescendant()}set useActiveDescendant(e){this._useActiveDescendant.set(e)}_useActiveDescendant=Ys$2(!1);get orientation(){return this._orientation}set orientation(e){this._orientation=e===`horizontal`?`horizontal`:`vertical`,e===`horizontal`?this.listKeyManager?.withHorizontalOrientation(this._dir?.value||`ltr`):this.listKeyManager?.withVerticalOrientation()}_orientation=`vertical`;get compareWith(){return this.selectionModel.compareWith}set compareWith(e){this.selectionModel.compareWith=e}get navigationWrapDisabled(){return this._navigationWrapDisabled}set navigationWrapDisabled(e){this._navigationWrapDisabled=e,this.listKeyManager?.withWrap(!this._navigationWrapDisabled)}_navigationWrapDisabled=!1;get navigateDisabledOptions(){return this._navigateDisabledOptions}set navigateDisabledOptions(e){this._navigateDisabledOptions=e,this.listKeyManager?.skipPredicate(this._navigateDisabledOptions?this._skipNonePredicate:this._skipDisabledPredicate)}_navigateDisabledOptions=!1;valueChange=new Y$1;options;selectionModel=new rr$1;listKeyManager;destroyed=new Y$1;element=I$1(ur$2).nativeElement;ngZone=I$1(B$1);changeDetectorRef=I$1(MP);_invalid=!1;_lastTriggered=null;_onTouched=()=>{};_onChange=()=>{};_optionClicked=Rh$1(()=>this.options.changes.pipe(Hh$1(this.options),_h$1(e=>wh$1(...e.map(s=>s._clicked.pipe(qe$2(r=>({option:s,event:r}))))))));_dir=I$1(So$2,{optional:!0});_isBrowser=I$1(Eo$2).isBrowser;_skipDisabledPredicate=e=>e.disabled;_skipNonePredicate=()=>!1;_hasFocus=!1;_previousActiveOption=null;
4constructor(){if(this._isBrowser){let e=I$1(Aa$2);this._cleanupWindowBlur=this.ngZone.runOutsideAngular(()=>e.listen(`window`,`blur`,()=>{this.element.contains(document.activeElement)&&this._previousActiveOption&&(this._setActiveOption(this._previousActiveOption),this._previousActiveOption=null)}))}}ngAfterContentInit(){this._initKeyManager(),wh$1(this.selectionModel.changed,this.options.changes).pipe(Hh$1(null),Bh(this.destroyed)).subscribe(()=>this._updateInternalValue()),this._optionClicked.pipe(Ur(({option:e})=>!e.disabled),Bh(this.destroyed)).subscribe(({option:e,event:s})=>this._handleOptionClicked(e,s))}ngOnDestroy(){this._cleanupWindowBlur?.(),this.listKeyManager?.destroy(),this.destroyed.next(),this.destroyed.complete()}toggle(e){this.toggleValue(e.value)}toggleValue(e){this._invalid&&this.selectionModel.clear(!1),this.selectionModel.toggle(e)}select(e){this.selectValue(e.value)}selectValue(e){this._invalid&&this.selectionModel.clear(!1),this.selectionModel.select(e)}deselect(e){this.deselectValue(e.value)}deselectValue(e){this._invalid&&this.selectionModel.clear(!1),this.selectionModel.deselect(e)}setAllSelected(e){e?(this._invalid&&this.selectionModel.clear(!1),this.selectionModel.select(...this.options.map(s=>s.value))):this.selectionModel.clear()}isSelected(e){return this.isValueSelected(e.value)}isActive(e){return this.listKeyManager?.activeItem===e}isValueSelected(e){return this._invalid?!1:this.selectionModel.isSelected(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}writeValue(e){this._setSelection(e),this._verifyOptionValues()}setDisabledState(e){this.disabled=e,this.changeDetectorRef.markForCheck()}focus(){this.element.focus()}triggerOption(e){e&&!e.disabled&&(this._lastTriggered=e,(this.multiple?this.selectionModel.toggle(e.value):this.selectionModel.select(e.value))&&(this._onChange(this.value),this.valueChange.next({value:this.value,listbox:this,option:e})))}triggerRange(e,s,r,n){if(this.disabled||e&&e.disabled)return;this._lastTriggered=e;let o=this.compareWith??Object.is,a=[...this.options].slice(Math.max(0,Math.min(s,r)),Math.min(this.options.length,Math.max(s,r)+1)).filter(d=>!d.disabled).map(d=>d.value),h=[...this.value];for(let d of a){let u=h.findIndex(f=>o(f,d));n&&u===-1?h.push(d):!n&&u!==-1&&h.splice(u,1)}this.selectionModel.setSelection(...h)&&(this._onChange(this.value),this.valueChange.next({value:this.value,listbox:this,option:e}))}_setActiveOption(e){this.listKeyManager.setActiveItem(e)}_handleFocus(){this.useActiveDescendant||(this.selectionModel.selected.length>0?this._setNextFocusToSelectedOption():this.listKeyManager.setNextItemActive(),this._focusActiveOption())}_handleKeydown(e){if(this.disabled)return;let{keyCode:s}=e,r=this.listKeyManager.activeItemIndex,n=[`ctrlKey`,`metaKey`];if(this.multiple&&s===65&&jt$2(e,...n)){this.triggerRange(null,0,this.options.length-1,this.options.length!==this.value.length),e.preventDefault();return}if(this.multiple&&(s===32||s===13)&&jt$2(e,`shiftKey`)){this.listKeyManager.activeItem&&this.listKeyManager.activeItemIndex!=null&&this.triggerRange(this.listKeyManager.activeItem,this._getLastTriggeredIndex()??this.listKeyManager.activeItemIndex,this.listKeyManager.activeItemIndex,!this.listKeyManager.activeItem.isSelected()),e.preventDefault();return}if(this.multiple&&s===36&&jt$2(e,...n)&&jt$2(e,`shiftKey`)){let a=this.listKeyManager.activeItem;if(a){let h=this.listKeyManager.activeItemIndex;this.listKeyManager.setFirstItemActive(),this.triggerRange(a,h,this.listKeyManager.activeItemIndex,!a.isSelected())}e.preventDefault();return}if(this.multiple&&s===35&&jt$2(e,...n)&&jt$2(e,`shiftKey`)){let a=this.listKeyManager.activeItem;if(a){let h=this.listKeyManager.activeItemIndex;this.listKeyManager.setLastItemActive(),this.triggerRange(a,h,this.listKeyManager.activeItemIndex,!a.isSelected())}e.preventDefault();return}if(s===32||s===13){this.triggerOption(this.listKeyManager.activeItem),e.preventDefault();return}let o=s===38||s===40||s===37||s===39||s===36||s===35;this.listKeyManager.onKeydown(e),o&&e.shiftKey&&r!==this.listKeyManager.activeItemIndex&&this.triggerOption(this.listKeyManager.activeItem)}_handleFocusIn(){this._hasFocus=!0}_handleFocusOut(e){this._previousActiveOption=this.listKeyManager.activeItem;let s=e.relatedTarget;this.element!==s&&!this.element.contains(s)&&(this._onTouched(),this._hasFocus=!1,this._setNextFocusToSelectedOption())}
4_getAriaActiveDescendant(){return this.useActiveDescendant?this.listKeyManager?.activeItem?.id:null}_getTabIndex(){return this.disabled?-1:this.useActiveDescendant||!this.listKeyManager.activeItem?this.enabledTabIndex:-1}_initKeyManager(){this.listKeyManager=new ts(this.options).withWrap(!this._navigationWrapDisabled).withTypeAhead().withHomeAndEnd().withAllowedModifierKeys([`shiftKey`]).skipPredicate(this._navigateDisabledOptions?this._skipNonePredicate:this._skipDisabledPredicate),this.orientation===`vertical`?this.listKeyManager.withVerticalOrientation():this.listKeyManager.withHorizontalOrientation(this._dir?.value||`ltr`),this.selectionModel.selected.length&&Promise.resolve().then(()=>this._setNextFocusToSelectedOption()),this.listKeyManager.change.subscribe(()=>this._focusActiveOption()),this.options.changes.pipe(Bh(this.destroyed)).subscribe(()=>{let e=this.listKeyManager.activeItem;e&&!this.options.find(s=>s===e)&&(this.listKeyManager.setActiveItem(-1),this.changeDetectorRef.markForCheck())})}_focusActiveOption(){this.useActiveDescendant||this.listKeyManager.activeItem?.focus(),this.changeDetectorRef.markForCheck()}_setSelection(e){this._invalid&&this.selectionModel.clear(!1),this.selectionModel.setSelection(...this._coerceValue(e)),this._hasFocus||this._setNextFocusToSelectedOption()}_setNextFocusToSelectedOption(){let e=this.options?.find(s=>s.isSelected());e&&this.listKeyManager.updateActiveItem(e)}_updateInternalValue(){let e=new Map;this.selectionModel.sort((r,n)=>
4{return this._getIndexForValue(e,r)-this._getIndexForValue(e,n)});let s=this.selectionModel.selected;this._invalid=!this.multiple&&s.length>1||!!this._getInvalidOptionValues(s).length,this.changeDetectorRef.markForCheck()}_getIndexForValue(e,s){let r=this.compareWith||Object.is;if(!e.has(s)){let n=-1;for(let o=0;o<this.options.length;o++)if(r(s,this.options.get(o).value)){n=o;break}e.set(s,n)}return e.get(s)}_handleOptionClicked(e,s){s.preventDefault(),this.listKeyManager.setActiveItem(e),s.shiftKey&&this.multiple?this.triggerRange(e,this._getLastTriggeredIndex()??this.listKeyManager.activeItemIndex,this.listKeyManager.activeItemIndex,!e.isSelected()):this.triggerOption(e)}_verifyNoOptionValueCollisions(){this.options.changes.pipe(Hh$1(this.options),Bh(this.destroyed)).subscribe(()=>{let e=this.compareWith??Object.is;for(let s=0;s<this.options.length;s++){let r=this.options.get(s),n=null;for(let o=s+1;o<this.options.length;o++){let a=this.options.get(o);if(e(r.value,a.value)){n=a;break}}if(n){this.compareWith?console.warn(`Found multiple CdkOption representing the same value under the given compareWith function`,{option1:r.element,option2:n.element,compareWith:this.compareWith}):console.warn(`Found multiple CdkOption with the same value`,{option1:r.element,option2:n.element});return}}})}_verifyOptionValues(){this.options}_coerceValue(e){return e==null?[]:Co$2(e)}_getInvalidOptionValues(e){let s=this.compareWith||Object.is,r=(this.options||[]).map(n=>n.value);return e.filter(n=>!r.some(o=>s(n,o)))}_getLastTriggeredIndex(){let e=this.options.toArray().indexOf(this._lastTriggered);return e===-1?null:e}static ɵfac=function(s){return new(s||t)};static ɵdir=KI({type:t,selectors:[[``,`cdkListbox`,``]],contentQueries:function(s,r,n){if(s&1&&vp$1(n,is,5),s&2){let o;FE(o=jE())&&(r.options=o)}},hostAttrs:[`role`,`listbox`,1,`cdk-listbox`],hostVars:6,hostBindings:function(s,r){s&1&&gp$1(`focus`,function(){return r._handleFocus()})(`keydown`,function(o){return r._handleKeydown(o)})(`focusout`,function(o){return r._handleFocusOut(o)})(`focusin`,function(){return r._handleFocusIn()}),s&2&&(pp$1(`id`,r.id),ap$1(`tabindex`,r._getTabIndex())(`aria-disabled`,r.disabled)(`aria-multiselectable`,r.multiple)(`aria-activedescendant`,r._getAriaActiveDescendant())(`aria-orientation`,r.orientation))},inputs:{id:`id`,enabledTabIndex:[0,`tabindex`,`enabledTabIndex`],value:[0,`cdkListboxValue`,`value`],multiple:[2,`cdkListboxMultiple`,`multiple`,xP],disabled:[2,`cdkListboxDisabled`,`disabled`,xP],useActiveDescendant:[2,`cdkListboxUseActiveDescendant`,`useActiveDescendant`,xP],orientation:[0,`cdkListboxOrientation`,`orientation`],compareWith:[0,`cdkListboxCompareWith`,`compareWith`],navigationWrapDisabled:[2,`cdkListboxNavigationWrapDisabled`,`navigationWrapDisabled`,xP],navigateDisabledOptions:[2,`cdkListboxNavigatesDisabledOptions`,`navigateDisabledOptions`,xP]},outputs:{valueChange:`cdkListboxValueChange`},exportAs:[`cdkListbox`],features:[yD([{provide:ni$1,useExisting:go$3(()=>t),multi:!0}])]})}return t})();var Id$1=[`input`];var Dd$1=()=>({id:`current-location`});function Nd$1(t,i){if(t&1&&(pi(0,`label`),uD(1),bc()),t&2){let e=RE(2);ap$1(`id`,e.elementIds.searchLabelId)(`for`,e.elementIds.searchInputId),uy(),kp$1(e.searchLocationOptions.labelText)}}function Gd$1(t,i){if(t&1&&lp$1(0,`span`,8),t&2)cp$1(`ngClass`,RE(3).searchLocationOptions.searchCurrentLocation.loadIcon)}function Od$1(t,i){if(t&1&&(pi(0,`div`,3)(1,`span`,10),uD(2,`Locatie laden`),bc(),hE(3,Gd$1,1,1,`span`,8),bc()),t&2){let e=RE(2);uy(3),gE(e.searchLocationOptions?.searchCurrentLocation?.loadIcon?3:-1)}}function Ld$1(t,i){if(t&1){let e=wE();pi(0,`button`,11),gp$1(`click`,function(){Gl$1(e);return ql$2(RE(2).clearSearchTerm())}),lp$1(1,`span`,8),bc()}if(t&2){let e=RE(2);uy(),cp$1(`ngClass`,e.clsClearButton)}}function Td$1(t,i){if(t&1&&lp$1(0,`span`,8),t&2)cp$1(`ngClass`,RE(4).searchLocationOptions.searchCurrentLocation.loadIcon)}function Vd$1(t,i){if(t&1&&hE(0,Td$1,1,1,`span`,8),t&2)gE(RE(3).searchLocationOptions?.searchCurrentLocation?.loadIcon?0:-1)}function Rd$1(t,i){if(t&1&&lp$1(0,`span`,8),t&2)cp$1(`ngClass`,RE(3).searchLocationOptions.searchCurrentLocation.icon)}function Fd$1(t,i){if(t&1){let e=wE();pi(0,`button`,12),gp$1(`click`,function(){Gl$1(e);return ql$2(RE(2).processCurrentLocation())}),hE(1,Vd$1,1,1)(2,Rd$1,1,1,`span`,8),bc()}if(t&2){let e=RE(2);uy(),gE(e.loadCurrentLocation()?1:e.searchLocationOptions?.searchCurrentLocation?.icon?2:-1)}}function kd$1(t,i){if(t&1&&lp$1(0,`span`,8),t&2)cp$1(`ngClass`,RE(4).searchLocationOptions.searchCurrentLocation.icon)}
4function jd$1(t,i){if(t&1){let e=wE();pi(0,`li`,16),gp$1(`keydown`,function(r){Gl$1(e);return ql$2(RE(3).onListKeydown(r))})(`keyup`,function(r){Gl$1(e);return ql$2(RE(3).onListKeyup(r))}),hE(1,kd$1,1,1,`span`,8),uD(2),bc()}if(t&2){let e=RE(3);cp$1(`cdkOption`,ID(5,Dd$1)),ap$1(`id`,e.elementIds.suggestionListId+`-current-location`)(`aria-live`,`off`),uy(),gE(e.searchLocationOptions?.searchCurrentLocation?.icon?1:-1),uy(),xc$1(` `,e.searchLocationOptions?.searchCurrentLocation?.label??`Gebruik mijn locatie`,` `)}}function Ud$1(t,i){if(t&1&&(pi(0,`span`,18),uD(1),bc()),t&2){let e=RE().$implicit,s=RE(4);uy(),kp$1(s.collectionIdTranslations?.has(e.properties.collection_id)?s.collectionIdTranslations.get(e.properties.collection_id):e.properties.collection_id)}}function Bd$1(t,i){if(t&1){let e=wE();pi(0,`li`,16),gp$1(`keydown`,function(r){Gl$1(e);return ql$2(RE(4).onListKeydown(r))})(`keyup`,function(r){Gl$1(e);return ql$2(RE(4).onListKeyup(r))}),lp$1(1,`span`,17),hE(2,Ud$1,2,1,`span`,18),bc()}if(t&2){let e=i.$implicit,s=i.$index,r=RE(4);cp$1(`cdkOption`,e),ap$1(`id`,r.elementIds.suggestionListId+`-`+s)(`aria-live`,s===0?`polite`:`off`)(`aria-labelledby`,r.elementIds.suggestionListId+`-label-`+s),uy(),cp$1(`innerHTML`,e.properties.highlight,yv),ap$1(`id`,r.elementIds.suggestionListId+`-label-`+s),uy(),gE(r.searchLocationOptions?.hideCollectionId!==!0&&e.properties?.collection_id?2:-1)}}function qd$1(t,i){if(t&1&&vE(0,Bd$1,3,7,`li`,14,mE),t&2)yE(RE(3).suggestions())}function Hd$1(t,i){t&1&&(pi(0,`li`,15),uD(1,`Geen resultaat gevonden`),bc())}function Wd$1(t,i){if(t&1){let e=wE();pi(0,`ul`,13),gp$1(`cdkListboxValueChange`,function(r){Gl$1(e);return ql$2(RE(2).handleCdkListboxEvent(r))})(`keydown`,function(r){Gl$1(e);return ql$2(RE(2).onListKeydown(r))})(`keyup`,function(r){Gl$1(e);return ql$2(RE(2).onListKeyup(r))}),hE(1,jd$1,3,6,`li`,14),hE(2,qd$1,2,0),hE(3,Hd$1,2,0,`li`,15),bc()}if(t&2){let e=RE(2);cp$1(`id`,e.elementIds.suggestionListId??``),ap$1(`tabindex`,e.hasFocusableSuggestions()?`0`:`-1`)(`aria-labelledby`,e.searchLocationOptions?.labelText?e.elementIds.searchLabelId:void 0),uy(),gE(e.showCurrentLocation()&&e.searchLocationOptions?.searchCurrentLocation?.type===e.searchCurrentLocationTypes.SELECT?1:-1),uy(),gE(e.showSuggestions()?2:-1),uy(),gE(e.noSuggestionsFound()?3:-1)}}function zd$1(t,i){if(t&1){let e=wE();pi(0,`div`,0),hE(1,Nd$1,2,3,`label`),pi(2,`div`,2),hE(3,Od$1,4,1,`div`,3),pi(4,`input`,4),gp$1(`keyup`,function(r){Gl$1(e);return ql$2(RE().onInputUp(r))})(`keyup.enter`,function(){Gl$1(e);return ql$2(RE().searchOnEnter())})(`paste`,function(r){Gl$1(e);return ql$2(RE().onPaste(r))})(`focus`,function(){Gl$1(e);return ql$2(RE().onInputFocus())}),bc(),pi(5,`div`,5),hE(6,Ld$1,2,1,`button`,6),hE(7,Fd$1,3,1,`button`,1),pi(8,`button`,7),gp$1(`click`,function(){Gl$1(e);return ql$2(RE().searchOnEnter())}),lp$1(9,`span`,8),bc()()(),hE(10,Wd$1,4,6,`ul`,9),bc()}if(t&2){let e=RE();uy(),gE(e.searchLocationOptions?.labelText?1:-1),uy(2),gE(e.loadCurrentLocation()?3:-1),uy(),Tp$1(`display`,e.loadCurrentLocation()?`none`:`block`),cp$1(`placeholder`,fD(e.searchLocationOptions?.placeholderTextAndAriaLabel??`Voer locatie in`))(`value`,e.inputValue()),ap$1(`id`,e.elementIds.searchInputId)(`aria-controls`,e.elementIds.suggestionListId)(`aria-label`,(e.searchLocationOptions==null?null:e.searchLocationOptions.labelText)===void 0?e.searchLocationOptions?.placeholderTextAndAriaLabel??`Voer locatie in`:null)(`aria-expanded`,e.showSuggestions()||e.showCurrentLocation()&&e.searchLocationOptions?.searchCurrentLocation?.type===e.searchCurrentLocationTypes.SELECT?`true`:`false`),uy(2),gE(e.inputValue()&&e.inputValue().length>0?6:-1),uy(),gE(e.searchLocationOptions?.searchCurrentLocation?.type===e.searchCurrentLocationTypes.BUTTON?7:-1),uy(),ap$1(`id`,e.elementIds.searchButtonId),uy(),cp$1(`ngClass`,e.clsSearchButton),uy(),gE(e.hasFocusableSuggestions()?10:-1)}}function Kd$1(t,i){if(t&1&&lp$1(0,`span`,8),t&2)cp$1(`ngClass`,RE(3).searchLocationOptions.searchCurrentLocation.loadIcon)}function $d$1(t,i){if(t&1&&hE(0,Kd$1,1,1,`span`,8),t&2)gE(RE(2).searchLocationOptions?.searchCurrentLocation?.loadIcon?0:-1)}function Qd$1(t,i){if(t&1&&lp$1(0,`span`,8),t&2)cp$1(`ngClass`,RE(2).searchLocationOptions.searchCurrentLocation.icon)}function Xd$1(t,i){if(t&1){let e=wE();pi(0,`button`,12),gp$1(`click`,function(){Gl$1(e);return ql$2(RE().processCurrentLocation())}),hE(1,$d$1,1,1)(2,Qd$1,1,1,`span`,8),bc()}if(t&2){let e=RE();uy(),gE(e.loadCurrentLocation()?1:e.searchLocationOptions?.searchCurrentLocation?.icon?2:-1)}}var Ut$1=(function(t){return t.RESULT_INVALIDATED=`resultInvalidated`,t.SEARCH_RESULT=`searchResult`,t.SEARCH_LO
4CATION_RESULT=`searchLocationResult`,t.NO_SUGGESTIONS=`noSuggestions`,t.SEARCH_RESULT_ERROR=`searchResultError`,t.SEARCH_LOCATION_RESULT_ERROR=`searchLocationResultError`,t.SEARCH_SUGGESTION_ERROR=`searchSuggestionError`,t})(Ut$1||{});var Bt$2=class{constructor(i,e,s){this.type=i,this.message=e,this.value=s}};var or$2=class{constructor(i){this.searchInputId=i.searchInputId||`ggcSearchInput`,this.searchButtonId=i.searchButtonId||`ggcSearchButton`,this.suggestionListId=i.suggestionListId||`ggcSuggestionList`,this.searchLabelId=i.searchLabelId||`ggcSearchLabel`}};var ss=(function(t){return t.SELECT=`select`,t.BUTTON=`button`,t})(ss||{});var Jd$1=(()=>{class t{search(e){return Sh$1([])}static{this.ɵfac=function(s){return new(s||t)}}static{this.ɵprov=z$1({token:t,factory:t.ɵfac,providedIn:`root`})}}return t})();var wo$2=(()=>{class t{constructor(){this.injector=I$1(Me$2)}loadCesiumModule(){return this.cesiumModulePromise??=import(`./chunk-BX9axHgV.js`).catch(e=>{throw console.debug(`Autoconnect ggc-dataset-tree met ggc-map-3d is niet gelukt: ${e}`,e),e}),this.cesiumModulePromise}loadMapModule(){return this.mapModulePromise??=import(`./chunk-XbFFWXtq.js`).catch(e=>{throw console.debug(`Autoconnect ggc-search-location met ggc-map is niet gelukt: ${e}`,e),e}),this.mapModulePromise}getGgcLocationService(){return L$1(this,null,function*(){try{if(!this.ggcCesiumLocationService){let e=yield this.loadCesiumModule();this.ggcCesiumLocationService=this.injector.get(e.GgcLocationService)}return this.ggcCesiumLocationService}catch(e){console.debug(`Autoconnect ggc-search-location met ggc-map-3d is niet gelukt (GgcLocationService): ${e}`,e);return}})}getMapService(){return L$1(this,null,function*(){try{if(!this.mapService){let e=yield this.loadMapModule();this.mapService=this.injector.get(e.GgcMapService)}return this.mapService}catch(e){console.debug(`Autoconnect ggc-search-location met ggc-map is niet gelukt (GgcMapService): ${e}`,e);return}})}static{this.ɵfac=function(s){return new(s||t)}}static{this.ɵprov=z$1({token:t,factory:t.ɵfac,providedIn:`root`})}}return t})();var ar$2=zs;var Zd$1=(()=>{class t{constructor(){this.GEOLOCATION_LAYER_ID=`geolocation`,this.connectService=I$1(wo$2),this.locationEventsMap=new Kp$1(()=>new Y$1),this.geolocations=new Map,this.subscriptions=new Map,this.currentLocation=new Y$1,this.geolocationPositionError=new Y$1,ar$2.defs(`EPSG:28992`,jP),this.tryRegisterProj4()}tryRegisterProj4(){import(`./chunk-BT6lQEGF.js`).then(e=>{e.register(ar$2)}).catch(()=>{console.debug(`proj4 van OpenLayers niet beschikbaar`)})}getLocationEventsObservable(e=PP){return this.locationEventsMap.getOrCreateObservable(e)}getLocation(){return L$1(this,arguments,function*(e=!1,s=PP){let r=yield this.connectService.getMapService();r&&r.getMap(s)&&(yield this.setGeolocationLayerStyle(r,s)),e?this.geolocations.has(s)||this.geolocations.set(s,navigator.geolocation.watchPosition(n=>this.processPositionSuccess(s,n),n=>{this.stopTrackLocation(s),this.geolocationPositionError.next(n)})):navigator.geolocation.getCurrentPosition(n=>this.processPositionSuccess(s,n),n=>{this.stopTrackLocation(s),this.geolocationPositionError.next(n)})})}getGeolocationPositionErrorSubject(){return this.geolocationPositionError}stopTrackLocation(e=PP){this.geolocations.has(e)&&(navigator.geolocation.clearWatch(this.geolocations.get(e)),this.geolocations.delete(e)),this.subscriptions.has(e)&&(this.subscriptions.get(e).unsubscribe(),this.subscriptions.delete(e))}processPositionSuccess(e,s){let r=ar$2(`EPSG:28992`,[s.coords.longitude,s.coords.latitude]);this.locationEventsMap.getOrCreateSubject(e).next(r),this.currentLocation.next(r)}loadOpenLayers(){return L$1(this,null,function*(){return{Fill:(yield import(`./chunk-DpAEhHt0.js`)).default,Stroke:(yield import(`./chunk-CjO0CAvv.js`)).default,Style:(yield import(`./chunk-CLkCvjhO.js`)).default,CircleStyle:(yield import(`./chunk-BAIaskTe.js`)).default}})}setGeolocationLayerStyle(e,s){return L$1(this,null,function*(){let{Fill:r,Stroke:n,Style:o,CircleStyle:a}=yield this.loadOpenLayers(),h=new o({fill:new r({color:`rgba(0, 115, 149, 0.5)`}),stroke:new n({color:`#007395`,width:5}
4),image:new a({radius:7,fill:new r({color:`rgba(0, 115, 149, 0.5)`}),stroke:new n({color:`#007395`,width:5})})});e.getExtraLayer(this.GEOLOCATION_LAYER_ID,s)?.setStyle(h)})}static{this.ɵfac=function(s){return new(s||t)}}static{this.ɵprov=z$1({token:t,factory:t.ɵfac,providedIn:`root`})}}return t})();var Yd$1=(()=>{class t{constructor(){this.collectionsLoadedSubject=new Mn$2(1),this.collectionsLoaded$=this.collectionsLoadedSubject.asObservable(),this.httpClient=I$1(Zr$2),this.additionalSuggestionSourceService=I$1(Jd$1),this.baseUrl=`https://api.pdok.nl/kadaster/location-api/v1/`,this.debounceTime=400,this.minQueryLength=2,this.numberOfSuggestions=10,this.httpClient.get(`${this.baseUrl}collections?f=json`).subscribe(e=>{this.pdokLocationApiResult=e,this.setDefaultCollections(),this.collectionsLoadedSubject.next(e)})}setDefaultCollections(){this.pdokLocationApiResult?.collections?.length>0&&(this.usedCollections=this.pdokLocationApiResult.collections.map(e=>({id:e.id,version:e.version,relevance:.5})))}getCollections(){return this.pdokLocationApiResult}setCustomCollections(e){let s=e.filter(r=>r.id&&r.version&&r.relevance);s.length>0&&(this.usedCollections=[...s])}setMinQueryLength(e){e>0&&(this.minQueryLength=e)}setNumberOfSuggestions(e){e>=1&&e<=50&&(this.numberOfSuggestions=e)}searchOnTermChange(e,s=!1){return e.pipe(Lh$1(this.debounceTime),bh$1(),_h$1(r=>r.length>=this.minQueryLength?this.search(r,s):Sh$1(null)))}search(e,s=!1){return Th$1([this.additionalSuggestionSourceService.search(e),this.httpClient.get(`${this.baseUrl}search?q=${e}&${this.usedCollections.map(r=>`${r.id}[version]=${r.version??1}&${r.id}[relevance]=${r.relevance??1}`).join(`&`)}&limit=${this.numberOfSuggestions}&crs=http://www.opengis.net/def/crs/EPSG/0/28992`).pipe(Vh$1({count:3,delay:()=>An$2(500)}))]).pipe(qe$2(([r,n])=>{let o=r.map(a=>({id:a.id,type:a.type,properties:{display_name:a.display_name,highlight:a.display_name,collection_id:a.collection}}));return n.features||(n.features=[]),n.numberReturned+=o.length,s?n.features.unshift(...o):n.features.push(...o),n}))}item(e){return e?.properties?.href?this.httpClient.get(e.properties.href).pipe(Vh$1({count:3,delay:()=>An$2(500)})):Sh$1(null)}static{this.ɵfac=function(s){return new(s||t)}}static{this.ɵprov=z$1({token:t,factory:t.ɵfac,providedIn:`root`})}}return t})();var ly=(()=>
4{class t{search(e){let s=(e??``).replace(/^RD-coördinaten:\s*/i,``).trim(),r=/^\s*(\d{1,6}(?:[.,]\d{1,3})?)\D+(\d{1,6}(?:[.,]\d{1,3})?)\s*$/.exec(s);if(!r)return Sh$1([]);let n=r[1].replace(`,`,`.`),o=r[2].replace(`,`,`.`),a=Number(n),h=Number(o);if(!Number.isFinite(a)||!Number.isFinite(h))return Sh$1([]);if(!(a>=0&&a<=3e5)||!(h>=3e5&&h<=6e5))return Sh$1([]);return Sh$1([{id:`${n}, ${o}`,display_name:`RD-co\xF6rdinaten: ${n} ${o}`,type:`rd`,collection:`coordinate`}])}static{this.ɵfac=function(s){return new(s||t)}}static{this.ɵprov=z$1({token:t,factory:t.ɵfac,providedIn:`root`})}}return t})();var De$1=`btn-form-icon`;var Ne$1=zs;var cy=(()=>{class t{get classClearButton(){return this._classClearButton}set classClearButton(e){this._classClearButton=e,this.clsClearButton=e+` `+De$1}get searchTerm(){return this.inputValue()}set searchTerm(e){this.inputValue.set(e.trim())}get classSearchButton(){return this._classSearchButton}set classSearchButton(e){this._classSearchButton=e,this.clsSearchButton=e+` `+De$1}constructor(){this.events=new Le,this.inputValue=Ys$2(``),this.suggestions=Ys$2([]),this.showSuggestions=Ys$2(!1),this.showCurrentLocation=Ys$2(!1),this.loadCurrentLocation=Ys$2(!1),this.inputCurrentLocation=Ys$2(!1),this.noSuggestionsFound=Ys$2(!1),this.searchCurrentLocationTypes=ss,this.hasSearch=OD(()=>!this.searchLocationOptions?.hideSearch),this.hasLocation=OD(()=>this.searchLocationOptions?.searchCurrentLocation!==void 0),this.suggestionsLength=OD(()=>this.suggestions().length),this.hasFocusableSuggestions=OD(()=>this.showSuggestions()&&(this.suggestionsLength()>0||this.showCurrentLocation()&&this.searchLocationOptions?.searchCurrentLocation?.type===ss.SELECT||this.noSuggestionsFound())),this.pdokLocationApiService=I$1(Yd$1),this.searchLocationService=I$1(Zd$1),this.connectService=I$1(wo$2),this.elRef=I$1(ur$2),this._classSearchButton=`fas fa-search`,this._classClearButton=`fas fa-times`,this.hasInitialSearchterm=!1,this.searchTerm$=new bn$1(``),this.viewerType=OD(()=>this.searchLocationOptions?.viewerType??tC.TWEE_D),this.clsSearchButton=`${this._classSearchButton} ${De$1}`,this.clsClearButton=`${this._classClearButton} ${De$1}`}ngOnInit(){if(this.searchLocationOptions?.minQueryLength>0&&this.pdokLocationApiService.setMinQueryLength(this.searchLocationOptions.minQueryLength),this.searchLocationOptions?.numberOfSuggestions>0&&this.pdokLocationApiService.setNumberOfSuggestions(this.searchLocationOptions.numberOfSuggestions),this.searchLocationOptions?.elementIds?this.elementIds=this.searchLocationOptions.elementIds:this.elementIds=new or$2({}),this.pdokLocationApiService.searchOnTermChange(this.searchTerm$,this.searchLocationOptions?.alternativeSuggestionsFirst).subscribe({next:e=>{this.processSuggestionsResult(e)},error:e=>{this.processError(e,Ut$1.SEARCH_SUGGESTION_ERROR)}}),this.searchLocationOptions?.initialResult&&this.searchLocationOptions.initialResult.subscribe(e=>{e.properties.display_name&&(this.inputValue.set(e.properties.display_name),this.result=e)}),this.searchLocationOptions?.initialSearchTerm){let e=this.searchLocationOptions.initialSearchTerm.trim();e&&(this.hasInitialSearchterm=!0,this.inputValue.set(e),this.searchTerm$.next(e))}this.searchTerm&&(this.searchLocationOptions?.triggerSearch===void 0||this.searchLocationOptions.triggerSearch)&&(this.hasInitialSearchterm=!0,this.searchTerm$.next(this.inputValue())),this.searchLocationOptions?.hideCollectionId!==!0&&(this.collectionIdTranslations=new Map([]),this.searchLocationOptions?.collectionIdTranslations&&(this.collectionIdTranslations=new Map([...this.collectionIdTranslations,...this.searchLocationOptions.collectionIdTranslations]))),this.clsSearchButton=this._classSearchButton+` `+De$1,this.clsClearButton=this._classClearButton+` `+De$1}clearSearchTerm(){return L$1(this,null,function*(){this.inputValue.set(``),this.inputCurrentLocation.set(!1),this.searchTerm$.next(this.inputValue()),this.resetSuggestionsAndResult(),this.searchLocationOptions?.markResult&&(this.viewerType()===tC.TWEE_D?(yield this.connectService.getMapService())?.clearHighlightLayer(this.searchLocationOptions?.mapIndex):(yield this.connectService.getGgcLocationService())?.removeLocationMark())})}onInputUp(e){switch(e.key){case`Esc`:case`Escape`:this.input.nativeElement.value=``,this.clearSearchTerm();break;case`ArrowDown`:(this.suggestions().length>0||this.showCurrentLocation()&&this.searchLocationOptions?.searchCurrentLocation?.type===ss.SELECT)&&this.listOptions?.get(0)&&this.setFocusOnTopSuggestion();break;default:this.searchForSuggestions(e.target.value)}}onPaste(e){let s=e.clipboardData?.getData(`text`);s&&setTimeout(()=>{this.searchForSuggestions(s)},100)}onListKeydown(e){switch(e.key){case`ArrowUp`:this.listOptions?.last.isActive()&&this.setFocusOnInputTextbox();break;case`ArrowDown`:case`Home`:case`End`:e.preventDefault();break}}onListKeyup(e){if(e.isComposing||e.altKey||e.ctrlKey||e.metaKey)return;let s=!0;switch(e.key){case`ArrowDown`:case`ArrowUp`:case`End`:case`Home`:case`Enter`:break;case`Esc`:case`Escape`:this.resetSuggestionsAndResult(),this.setFocusOnInputTextbox();break;default:e.key.length===1&&(this.input.nativeElement.value+=e.key,this.setFocusOnInputTextbox(),this.searchForSuggestions(this.input.nativeElement.value)),s=!1}s&&(e.preventDefault(),this.scrollIntoViewIfNeeded(this.input.nativeElement))}setFocusOnTopSuggestion(){this.listOptions.get(0).focus()}setFocusOnInputTextbox(){this.input.nativeElement.focus()}processSuggestionsResult(e){this.resetSuggestionsAndResult(!1),e&&e.numberReturned>-1&&(this.showSuggestions.set(!0),this.onInputFocus(),this.searchLocationOptions?.numberOfSuggestions===void 0?this.suggestions.set(e.features):this.suggestions.set(e.features.slice(0,this.searchLocationOptions.numberOfSuggestions)),e.numberReturned>0?(this.noSuggestionsFound.set(!1),this.checkAndSearchInitialSearchterm()):this.noSuggestionsFound.set(!0),this.hasInitialSearchterm&&(this.hasInitialSearchterm=!1))}resetSuggestionsAndResult(e=!0){this.result&&this.events.emit(new Bt$2(Ut$1.RESULT_INVALIDATED,`Het vorige zoekresultaat is niet meer geldig`)),this.suggestions.set([]),this.noSuggestionsFound.set(!1),this.result=void 0,this.showSuggestions.set(!1),e&&this.showCurrentLocation.set(!1)}searchForSuggestions(e){this.searchTerm$.next(e),this.inputValue.set(e)}searchOnEnter(){this.inputCurrentLocation()?this.processCurrentLocation():this.result?this.events.emit(new Bt$2(Ut$1.SEARCH_RESULT,`Er is een nieuw zoekresultaat`,this.result)):this.suggestionsLength()>0?this.processPdokLocationApiSearchFeatureResult(this.suggestions()[0]):this.events.emit(new Bt$2(Ut$1.NO_SUGGESTIONS,`Er is geen zoeksuggestie gevonden`))}
4checkAndSearchInitialSearchterm(){this.hasInitialSearchterm&&this.suggestionsLength()===1&&this.processPdokLocationApiSearchFeatureResult(this.suggestions()[0])}processPdokLocationApiSearchFeatureResult(e){return L$1(this,null,function*(){this.inputValue.set(e.properties.display_name),this.inputCurrentLocation.set(!1),this.result=E({},e),this.events.emit(new Bt$2(Ut$1.SEARCH_RESULT,`Er is een nieuw zoekresultaat`,this.result)),this.showSuggestions.set(!1),this.showCurrentLocation.set(!1),this.processZoomToResult(e),this.processMarkResult(e)})}processZoomToResult(e){return L$1(this,null,function*(){if(this.searchLocationOptions?.zoomToResult)switch(this.viewerType()){case tC.TWEE_D:{let s=yield this.connectService.getMapService();if(s){let r=yield this.loadFormatType();Array.isArray(e)?s.zoomToGeometryWithZoomOptions(JSON.stringify({type:`Point`,coordinates:e}),{mapIndex:this.searchLocationOptions?.mapIndex,fitOptions:{padding:[50,50,50,50]}},r.GEOJSON):e.bbox?s.zoomToExtent(e.bbox,{mapIndex:this.searchLocationOptions?.mapIndex,fitOptions:{padding:[50,50,50,50]}}):e.geometry&&s.zoomToGeometryWithZoomOptions(JSON.stringify(e.geometry),{mapIndex:this.searchLocationOptions?.mapIndex,fitOptions:{padding:[50,50,50,50]}},r.GEOJSON)}break}case tC.DRIE_D:{let s=yield this.connectService.getGgcLocationService();if(s){if(Array.isArray(e)){let r=Ne$1(`EPSG:28992`,`EPSG:4326`,e);s.zoomToCurrentLocation({longitude:r[0],latitude:r[1]})}else if(e.bbox)s.zoomToBBox(this.transformBoundingBox(e.bbox));else if(e.geometry){let r=Ne$1(`EPSG:28992`,`EPSG:4326`,e.geometry.coordinates);s.zoomToCurrentLocation({longitude:r[0],latitude:r[1]})}}break}}})}transformBoundingBox(e){let[s,r,n,o]=e,a=Ne$1(`EPSG:28992`,`EPSG:4326`,[s,r]),h=Ne$1(`EPSG:28992`,`EPSG:4326`,[n,o]);return[a[0],a[1],h[0],h[1]]}processMarkResult(e){return L$1(this,null,function*(){if(this.searchLocationOptions?.markResult)switch(this.viewerType()){case tC.TWEE_D:{let s=yield this.connectService.getMapService();if(s){let r=yield this.loadFormatType();Array.isArray(e)?s.markFeature(JSON.stringify({type:`Point`,coordinates:e}),this.searchLocationOptions?.mapIndex,r.GEOJSON):e?.properties?.href&&this.pdokLocationApiService.item(e).pipe(Wr$1(1)).subscribe(n=>{n?.geometry&&s.markFeature(JSON.stringify(n.geometry),this.searchLocationOptions?.mapIndex,r.GEOJSON)})}}break;case tC.DRIE_D:{let s=yield this.connectService.getGgcLocationService();if(s){if(Array.isArray(e)){let r=Ne$1(`EPSG:28992`,`EPSG:4326`,e);s.addLocationMark({longitude:r[0],latitude:r[1]})}else if(e.bbox){let r=this.transformBoundingBox(e.bbox),n=(r[0]+r[2])/2,o=(r[1]+r[3])/2;s.addLocationMark({longitude:n,latitude:o})}else if(e.geometry){let r=Ne$1(`EPSG:28992`,`EPSG:4326`,e.geometry.coordinates);s.addLocationMark({longitude:r[0],latitude:r[1]})}}break}}})}processError(e,s){let r;e.error instanceof ErrorEvent?r=e.message?e.message:e.toString():r=`${e.status} - ${e.statusText||``} - ${e.message}`,this.events.emit(new Bt$2(s,`Er is een fout opgetreden bij het benaderen van de locatieserver: `+r+`. Herlaad de pagina om het opnieuw te proberen.`,e))}scrollIntoViewIfNeeded(e){e.getBoundingClientRect().bottom>window.innerHeight&&e.scrollIntoView(!1),e.getBoundingClientRect().top<0&&e.scrollIntoView()}handleCdkListboxEvent(e){let s=e.value;s[0].id===`current-location`?this.processCurrentLocation():this.processPdokLocationApiSearchFeatureResult(s[0])}onInputFocus(){this.showSuggestions.set(!0),this.searchLocationOptions?.searchCurrentLocation&&this.showCurrentLocation.set(!0)}closeShowCurrentLocationOnPageClickEvent(e){!this.elRef.nativeElement.contains(e.target)&&(this.showSuggestions()||this.showCurrentLocation())&&(this.showSuggestions.set(!1),this.showCurrentLocation.set(!1))}processCurrentLocation(){this.showCurrentLocation.set(!1),this.showSuggestions.set(!1),this.noSuggestionsFound.set(!1),this.result=Ut$1.SEARCH_LOCATION_RESULT,this.searchLocationService.getLocationEventsObservable(this.searchLocationOptions?.mapIndex).pipe(jh$1()).subscribe(e=>{this.inputValue.set(`Uw locatie`),this.inputCurrentLocation.set(!0),this.loadCurrentLocation.set(!1),this.showCurrentLocation.set(!1),this.events.emit(new Bt$2(Ut$1.SEARCH_LO
4CATION_RESULT,`Er is een nieuw locatie zoekresultaat`,e)),this.processZoomToResult(e),this.processMarkResult(e)}),this.searchLocationService.getGeolocationPositionErrorSubject().pipe(jh$1()).subscribe(e=>{this.events.emit(new Bt$2(Ut$1.SEARCH_LOCATION_RESULT_ERROR,`Er is iets fout gegaan bij het ophalen van de locatie`,e))}),this.loadCurrentLocation.set(!0),this.searchLocationService.getLocation(!1,this.searchLocationOptions?.mapIndex)}loadFormatType(){return L$1(this,null,function*(){if(!this.formatTypeCache){let e=yield import(`./chunk-XbFFWXtq.js`);this.formatTypeCache=e.FormatType}return this.formatTypeCache})}static{this.ɵfac=function(s){return new(s||t)}}static{this.ɵcmp=zI({type:t,selectors:[[`ggc-search-location`]],viewQuery:function(s,r){if(s&1&&yp$1(Id$1,7)(is,5),s&2){let n;FE(n=jE())&&(r.input=n.first),FE(n=jE())&&(r.listOptions=n)}},hostBindings:function(s,r){s&1&&gp$1(`click`,function(o){return r.closeShowCurrentLocationOnPageClickEvent(o)},Tv)},inputs:{searchLocationOptions:`searchLocationOptions`,classClearButton:`classClearButton`,searchTerm:`searchTerm`,classSearchButton:`classSearchButton`},outputs:{events:`events`},decls:2,vars:1,consts:[[1,`form-group`,`form-group-ggc-search-suggestions`],[`aria-label`,`Selecteer huidige locatie`,`type`,`button`,1,`btn`,`btn-form`],[`aria-haspopup`,`listbox`,1,`input-group`],[1,`form-control`],[`role`,`combobox`,`aria-autocomplete`,`list`,`autocomplete`,`off`,1,`form-control`,3,`keyup`,`keyup.enter`,`paste`,`focus`,`value`,`placeholder`],[1,`input-group-append`],[`aria-label`,`Zoekterm wissen`,`id`,`clear`,`type`,`button`,1,`btn`,`btn-form`],[`aria-label`,`Zoeken`,`type`,`button`,1,`btn`,`btn-form`,3,`click`],[`aria-hidden`,`true`,3,`ngClass`],[`cdkListbox`,``,`cdkListboxUseActiveDescendant`,`true`,`role`,`listbox`,1,`list-group`,`list-group-ggc-search-suggestions`,3,`id`],[1,`font-italic`],[`aria-label`,`Zoekterm wissen`,`id`,`clear`,`type`,`button`,1,`btn`,`btn-form`,3,`click`],[`aria-label`,`Selecteer huidige locatie`,`type`,`button`,1,`btn`,`btn-form`,3,`click`],[`cdkListbox`,``,`cdkListboxUseActiveDescendant`,`true`,`role`,`listbox`,1,`list-group`,`list-group-ggc-search-suggestions`,3,`cdkListboxValueChange`,`keydown`,`keyup`,`id`],[`role`,`option`,`aria-selected`,`false`,`tabindex`,`0`,1,`list-group-item`,`px-2`,3,`cdkOption`],[1,`list-group-item`],[`role`,`option`,`aria-selected`,`false`,`tabindex`,`0`,1,`list-group-item`,`px-2`,3,`keydown`,`keyup`,`cdkOption`],[3,`innerHTML`],[1,`collectionType`]],template:function(s,r){s&1&&hE(0,zd$1,11,16,`div`,0)(1,Xd$1,3,1,`button`,1),s&2&&gE(r.hasSearch()?0:r.hasLocation()?1:-1)},dependencies:[ri$2,nr$1,is],styles:[`.list-group-item:hover{cursor:pointer}.list-group:focus .cdk-option-active{outline:2px solid black;z-index:1000}.list-group .btn{align-items:center;display:inline-flex;text-align:center}.form-control .fa-spin{margin-left:5px}span.collectionType{float:right;color:#696969;font-size:.8em;font-weight:700;text-transform:uppercase;margin-top:.2rem} 5`],encapsulation:2})}}return t})();var Po$2=(()=>{class t{constructor(){this.alertingSubject=new Y$1,this.alertingObservable=this.alertingSubject.asObservable(),this.alertingPopupSubject=ne
5w Y$1,this.alertingPopupObservable=this.alertingPopupSubject.asObservable(),this.alerts=[],this.alertPopups=[]}addAlert(e){this.alerts.findIndex(s=>s.tekst===e.tekst)===-1&&(this.alerts.push(e),this.alertingSubject.next(e))}addAlertPopup(e){this.alertPopups.findIndex(s=>s.tekst===e.tekst)===-1&&(this.alertPopups.push(e),this.alertingPopupSubject.next(e))}getAlertingObservable(){return this.alertingObservable}getAlertingPopupObservable(){return this.alertingPopupObservable}removeAlertFromArray(e){let s=this.alerts.findIndex(r=>r===e);s>-1&&this.alerts.splice(s,1)}removeAlertPopupFromArray(e){let s=this.alertPopups.findIndex(r=>r===e);s>-1&&this.alertPopups.splice(s,1)}static{this.ɵfac=function(s){return new(s||t)}}static{this.ɵprov=z$1({token:t,factory:t.ɵfac,providedIn:`root`})}}return t})();var ae$1=(function(t){return t.SUCCESS=`success`,t.FAILURE=`failure`,t})(ae$1||{});var ne$2=class{constructor(i,e,s){this.tekst=i,this.type=e,s?this.titel=s:this.titel=e===ae$1.SUCCESS?`Bevestiging`:``}};var ut$1=(function(t){return t.TweeD=`2D`,t.DrieD=`3D`,t})(ut$1||{});var Ao$2={mobileMaxWidthPx:767.98,desktopMinWidthPx:768,mobileQuery:`(max-width: 767.98px)`,desktopQuery:`(min-width: 768px)`};var Do$2=(()=>{class t{constructor(){this.vdkState=new bn$1(this.createDefaultState()),this.vdkStateObservable=this.vdkState.asObservable(),this.currentPrimaryState=Ys$2(`info`),this.faqItem=new bn$1(null),this.secondaryPanelState=new bn$1(`closed`),this.tertiaryPanelState=new bn$1(`closed`),this.primaryPanelSize=new bn$1(`normal`),this.injector=I$1(Me$2)}createDefaultState(){return{hidePrimaryPanel:!0,state:`info`}}computePrimaryState(e){return window.matchMedia(Ao$2.desktopQuery).matches||e===`info`?`normal`:e===`report_2d_draw_point`?`minimized`:`maximized`}getCurrentState(){return this.vdkState.getValue().state}hidePrimaryPanel(e){let s={hidePrimaryPanel:e,state:this.vdkState.getValue().state};this.vdkState.next(s),e?this.injector.get(Io$2).removeMeldingsnummerFromParams():this.primaryPanelSize.next(`normal`)}updatePrimaryState(e,s){let r={state:e,data:s,hidePrimaryPanel:this.vdkState.getValue().hidePrimaryPanel};r.hidePrimaryPanel||(this.secondaryPanelState.next(`closed`),this.primaryPanelSize.next(this.computePrimaryState(e))),this.vdkState.next(r),this.currentPrimaryState.set(e)}openFaqItem(e){this.tertiaryPanelState.next(`faq`),this.faqItem.next(e)}static{this.ɵfac=function(s){return new(s||t)}}static{this.ɵprov=z$1({token:t,factory:t.ɵfac,providedIn:`root`})}}return t})();var rs=class{constructor(i,e){this.geometry=i??void 0,this.zoom=e??void 0}};var ns=(()=>{class t{constructor(){this.stateService=I$1(Do$2),this.ggcCrsConfigService=I$1(Al$2),this.activeMode=new bn$1(ut$1.TweeD),this.cameraHeight=new bn$1(0),this.enable3DView=Mt$2.enable3DView;let e=this.ggcCrsConfigService.getRdNewCrsConfig();this.projection2D=new _$1({code:e.projectionCode,extent:e.extent,units:e.units,getPointResolution(s){return s}}),this.projection3D=new _$1({code:`EPSG:4326`})}setMode(e){if(this.isModesAvailable()&&this.activeMode.getValue()!==e)switch(this.activeMode.next(e),this.stateService.hidePrimaryPanel(!0),this.stateService.secondaryPanelState.next(`closed`),this.stateService.tertiaryPanelState.next(`closed`),this.activeMode.getValue()){case ut$1.TweeD:this.last3DPosition?.lookAtPosition?this.default2DOptions=new rs(this.transform3dLonLatTo2dCoordinate(this.last3DPosition.lookAtPosition.lon,this.last3DPosition.lookAtPosition.lat),this.convertRangeToZoom(this.last3DPosition.range)):this.default2DOptions=void 0;break;case ut$1.DrieD:if(this.last2DPosition?.geometry&&this.last2DPosition?.zoom!==void 0){let s=un$1(this.last2DPosition.geometry,this.projection2D,this.projection3D);this.default3DOptions={lookAtPosition:{lat:s[1],lon:s[0]},range:this.convertZoomToRange(this.last2DPosition.zoom)}}this.terrainProvider===void 0&&this.setTerrainProvider();break}}setLast2DPosition(e){this.last2DPosition=e}setLast3DPosition(e){e.lookAtPosition&&(this.last3DPosition=e)}setDefault3DPosition(e){e.lookAtPosition&&(this.default3DOptions=e)}getDefault2DOptions(){return this.default2DOptions}getDefault3DOptions(){return this.default3DOptions}isModesAvailable(){return this.enable3DView==`true`}convertRangeToZoom(e){return e?Math.log(6e5/e)/Math.log(2)+3:0}convertZoomToRange(e){return 146*2**(15-e)}setCameraHeight(e){e!==void 0&&this.cameraHeight.next(e)}transform3dLonLatTo2dCoordinate(e,s){return un$1([e,s],this.projection3D,this.projection2D)}transform2dCoordinateTo3dLonLat(e){return un$1(e,this.projection2D,this.projection3D)}getZCoordinate(e,s){return L$1(this,null,function*(){if(this.terrainProvider||(yield this.setTerrainProvider()),!this.terrainProvider)return 0;let r=se$1.fromDegrees(s,e);return(yield rk(this.terrainProvider,[r]))[0].height||0})}setTerrainProvider(){return L$1(this,null,function*(){this.terrainProvider=yield Lx.fromUrl(`https://api.pdok.nl/kadaster/3d-basisvoorziening/ogc/v1/collections/digitaalterreinmodel/quantized-mesh`)})}static{this.ɵfac=function(s){return new(s||t)}}static{this.ɵprov=z$1({token:t,factory:t.ɵfac,providedIn:`root`})}}return t})();var No$2=(()=>{class t{constructor(){this.ggcMapService=I$1(rL),this.modeService=I$1(ns),this.featureMap=new Map,this.terugmeldingen=new Map,this.terugmeldingenFeaturesEntities=new Map,this.mode=ut$1.TweeD,this.terugmeldingen3DB=new Map,this.modeService.activeMode.subscribe(e=>this.mode=e)}static matchQuery(e,s){return e.getProperties().meldingsNummerVolledig?e.getProperties().meldingsNummerVolledig.toLowerCase().startsWith(s):!1}addToMap(e,s,r){let n=`terugmelding-${r}-${s}`;this.featureMap.set(n,{feature:e,layer:r})}getTerugmeldingen(){return this.featureMap.size===0&&[this.ggcMapService.getLayer(`terugmeldingen-bgt`,Mt$2.mapName),this.ggcMapService.getLayer(`terugmeldingen-brt`,Mt$2.mapName)].forEac
5h((e,s)=>{let r=[];if(e.getSource()instanceof gu$2){let n=e.getSource();if(n instanceof gu$2){let o=n.getSource();o&&(r=o.getFeatures())}}else{let n=e.getSource();n&&(r=n.getFeatures())}r.forEach((n,o)=>{this.addToMap(n,o,Mt$2.layerPrefix+s),n.getProperties().meldingsNummerVolledig&&(this.terugmeldingen.set(n.getProperties().meldingsNummerVolledig,n.getProperties()),this.terugmeldingenFeaturesEntities.set(n.getProperties().meldingsNummerVolledig,n))})}),this.featureMap}getTerugmeldingFeature(e){if(this.featureMap.size===0&&this.getTerugmeldingen(),!this.featureMap.has(e))throw new Error(`unknown id`);let s=this.featureMap.get(e);if(!s)throw new Error(`unknown id`);return s.feature}getTerugmeldingFeatureEntity(e){if(this.terugmeldingenFeaturesEntities.size===0&&this.getTerugmeldingen(),!(this.terugmeldingenFeaturesEntities.size===0||!this.terugmeldingenFeaturesEntities.has(e)))return this.terugmeldingenFeaturesEntities.get(e)}getTerugmelding3DBCoordinate(e){let s=this.terugmeldingen3DB.get(e);if(!s)throw new Error(`unknown id`);return s}getTerugmelding3DBCoordinateOrUndefined(e){return this.terugmeldingen3DB.get(e)}getTerugmeldingByMeldingsnummer(e){return this.terugmeldingen.size===0&&this.getTerugmeldingen(),this.terugmeldingen.has(e)?this.terugmeldingen.get(e):null}search(e){if(this.mode===ut$1.TweeD){let s=e.toLowerCase();return!s.startsWith(`brt`)&&!s.startsWith(`bgt`)?Sh$1([]):Sh$1(Array.from(this.getTerugmeldingen().entries()).filter(([r,n])=>t.matchQuery(n.feature,s)).map(([r,n])=>{let o=n.feature.getProperties().meldingsNummerVolledig.substring(0,3)==`BGT`?`terugmeldingen-bgt`:`terugmeldingen-brt`;return{display_name:n.feature.getProperties().meldingsNummerVolledig,id:r+``,type:o,collection:`terugmelding`}}))}else if(this.mode===ut$1.DrieD){let s=e.toLowerCase();return!s.startsWith(`3db`)||this.terugmeldingen3DB.size===0?Sh$1([]):Sh$1(Array.from(this.terugmeldingen3DB.keys()).filter(r=>r.toLowerCase().includes(s)).map(r=>({display_name:r,id:r,type:`3db-terugmeldingen`,collection:`terugmelding`})))}return Sh$1([])}add3DBTerugmeldingIfNotExists(e){return L$1(this,null,function*(){let s=yield import(`./chunk-CWyhfw-c.js`),r=e.properties,n=r?.meldingsNummerVolledig?.toString();if(n&&!this.terugmeldingen3DB.has(n)){let o=e.position?.getValue(s.JulianDate.now());if(!o)return;this.terugmeldingen3DB.set(n,o),this.terugmeldingen.set(n,r??{}),this.terugmeldingenFeaturesEntities.set(n,e)}})}static{this.ɵfac=function(s){return new(s||t)}}static{this.ɵprov=z$1({token:t,factory:t.ɵfac,providedIn:`root`})}}return t})();var Io$2=(()=>{class t{constructor(){this.ggcMapService=I$1(rL),this.ggcSharedLayerService=I$1(us),this.ggcLayerService=I$1(GL),this.alertingService=I$1(Po$2),this.modeService=I$1(ns),this.terugmeldingSearchService=I$1(No$2),this.ggcSelectionService=I$1(AY),this.ggcSelectionService3D=I$1(Bh$1),this.setCameraOptions=new Y$1,this.parametersSubject=new Y$1,this.parametersObservable=this.parametersSubject.asObservable(),this.paramNameZoom=`zoomlevel`,this.paramNameGeomX=`geometry.x`,this.paramNameGeomY=`geometry.y`,this.paramNameMeldingsnummer=`meldingsnummer`,this.brtLoaded=!1,this.bgtLoaded=!1,this.max3DMeldingsnummerLookupAttempts=40,this.lookupRetryDelayMs=250,this.meldingsnummerRequestCounter=0}getObservable(){return this.parametersObservable}removeMeldingsnummerFromParams(){this.currentParams=this.currentParams?.delete(this.paramNameMeldingsnummer)}setInitialPath(e){this.initialParams=this.getParamsFromPath(e),this.currentParams=this.initialParams,this.defineMode(this.initialParams),this.initialParams&&this.has3DMeldingsnummerParam(this.initialParams)&&this.handleMeldingsnummer(this.initialParams),this.ggcMapService.getLayerChangedObservable().subscribe(s=>{s.eventTrigger===XD.LAYER_LOADED&&(s.layerId===`terugmeldingen-brt`?this.brtLoaded=!0:s.layerId===`terugmeldingen-bgt`&&(this.bgtLoaded=!0),this.brtLoaded&&this.bgtLoaded&&this.currentParams&&this.handleMeldingsnummer(this.currentParams))}),this.initialParams&&this.has3DMeldingsnummerParam(this.initialParams)&&this.ggcSharedLayerService.getLayerChangedObservable().subscribe(s=>{s.eventTrigger===XD.LAYER_ADDED&&s.layerId===`3db-terugmeldingen`&&this.currentParam
5s&&this.handleMeldingsnummer(this.currentParams)})}onPathUpdated(e){let s=this.getParamsFromPath(e);if(s){this.currentParams=s;let r=this.defineMode(s);this.getCurrentMeldingsnummer()&&this.currentParams?this.handleMeldingsnummer(this.currentParams):r==ut$1.TweeD&&!this.mapViewStateEqualsParams(this.currentParams)?this.zoomToLocationFromParams2D(this.currentParams):r==ut$1.DrieD&&this.hasValid3DPositionParams(this.currentParams)&&this.zoomToLocationFromParams3D(this.currentParams)}}onMapViewStateUpdated(e){this.mapViewState=e;let s=this.initialParams;if(s)this.mapViewStateEqualsParams(s)||this.zoomToLocationFromParams2D(s),this.currentParams=s,this.initialParams=void 0;else{let r=this.currentParams;if(!this.mapViewStateEqualsParams(r)){let n=E({"geometry.x":``+this.roundNumber(this.mapViewState.center[0]),"geometry.y":``+this.roundNumber(this.mapViewState.center[1]),zoomlevel:this.roundNumber(this.mapViewState.zoom).toString()},this.getCurrentMeldingsnummer()===void 0?{}:{meldingsnummer:this.getCurrentMeldingsnummer()}),o=this.getCurrentMeldingsnummer();o&&(n[this.paramNameMeldingsnummer]=o);let a=new gr$1({fromObject:n});this.currentParams=a,this.parametersSubject.next(a.toString())}}}viewUpdated(e){let s=this.initialParams;if(s)this.hasValid3DPositionParams(s)&&this.zoomToLocationFromParams3D(s),this.currentParams=s,this.currentParams&&this.handleMeldingsnummer(this.currentParams),this.initialParams=void 0;else{let r=this.getCurrentMeldingsnummer(),o=new gr$1({fromObject:E({lon:e.cameraPosition.lon.toFixed(5),lat:e.cameraPosition.lat.toFixed(5),alt:e.cameraPosition.alt?.toFixed(5)??``,heading:e.orientation.heading?.toFixed(0)??``,pitch:e.orientation.pitch?.toFixed(0)??``,roll:e.orientation.roll?.toFixed(0)??``},r&&{meldingsnummer:r})});this.currentParams=o,this.parametersSubject.next(o.toString())}}getParamsFromPath(e){let s=e.split(`?`);if(s.length>1){let r=new gr$1({fromString:s[1]});return this.checkValidParams(r)?r:void 0}}checkValidParams(e){return e.get(this.paramNameGeomX)!==null&&!Number.isNaN(Number(e.get(this.paramNameGeomX)))&&e.get(this.paramNameGeomY)!==null&&!Number.isNaN(Number(e.get(this.paramNameGeomY)))&&e.get(this.paramNameZoom)!==null&&!Number.isNaN(Number(e.get(this.paramNameZoom)))||this.modeService.isModesAvailable()&&e.get(`lat`)!==null&&!Number.isNaN(Number(e.get(`lat`)))&&e.get(`lon`)!==null&&!Number.isNaN(Number(e.get(`lon`)))||e.get(this.paramNameMeldingsnummer)!==null?!0:(this.alertingService.addAlert(new ne$2(`Pagina niet gevonden.`,ae$1.FAILURE)),!1)}mapViewStateEqualsParams(e){return!e||!this.mapViewState?!1:this.mapViewState.zoom.toString()===e.get(this.paramNameZoom)&&this.mapViewState.center[0].toString()===e.get(this.paramNameGeomX)&&this.mapViewState.center[1].toString()===e.get(this.paramNameGeomY)}zoomToLocationFromParams2D(e){if(!e)return;let s=Number(e.get(this.paramNameZoom));this.ggcMapService.zoomToCoordinate([Number(e.get(this.paramNameGeomX)),Number(e.get(this.paramNameGeomY))],Mt$2.mapName,s)}hasValid3DOrientationParams(e){return!Number.isNaN(Number(e.get(`alt`)))&&!Number.isNaN(Number(e.get(`heading`)))&&!Number.isNaN(Number(e.get(`pitch`)))&&!Number.isNaN(Number(e.get(`roll`)))}zoomToLocationFromParams3D(e){this.hasValid3DOrientationParams(e)?e.get(`range`)&&!Number.isNaN(Number(e.get(`range`)))?this.setCameraOptions.next({lookAtPosition:{lat:this.getParamNumber(e,`lat`),lon:this.getParamNumber(e,`lon`)},orientation:this.getOrientation(e),range:this.getParamNumber(e,`range`)}):this.setCameraOptions.next({cameraPosition:{lat:this.getParamNumber(e,`lat`),lon:this.getParamNumber(e,`lon`),alt:this.getParamNumber(e,`alt`)},orientation:this.getOrientation(e)}):this.setCameraOptions.next({cameraPosition:{lat:this.getParamNumber(e,`lat`),lon:this.getParamNumber(e,`lon`)}})}getParamNumber(e,s){return Number(e.get(s)??0)}getOrientation(e){return{heading:this.getParamNumber(e,`heading`),pitch:this.getParamNumber(e,`pitch`),roll:this.getParamNumber(e,`roll`)}}defineMode(e){let s=ut$1.TweeD;if(e&&this.modeService.isModesAvailable()){let r=e.get(this.paramNameMeldingsnummer);if((this.hasValid3DPositionParams(e)&&!this.has2DMeldingsnummerParam(e)||r?.startsWith(`3DB`))&&(s=ut$1.DrieD,this.initialParams?.get(`range`)!=null)){let n=this.initialParams;this.modeService.setDefault3DPosition({lookAtPosition:{lat:Number(n.get(`lat`)),lon:Number(n.get(`lon`))},orientation:{heading:Number(n.get(`heading`)),pitch:Number(n.get(`pitch`)),roll:Number(n.get(`roll`))},range:Number(n.get(`range`))}),this.initialParams=void 0}}return this.modeService.isModesAvailable()&&this.modeService.activeMode.getValue()!==s&&this.modeService.setMode(s),s}roundNumber(e){return Math.round(e*100)/100}
5getCurrentMeldingsnummer(){return this.currentParams?.get(this.paramNameMeldingsnummer)?.trim()||void 0}hasActive3DMeldingsnummerParam(){return this.has3DMeldingsnummerParam(this.currentParams)||this.has3DMeldingsnummerParam(this.initialParams)}hasValid3DPositionParams(e){return e?e.get(`lat`)!==null&&!Number.isNaN(Number(e.get(`lat`)))&&e.get(`lon`)!==null&&!Number.isNaN(Number(e.get(`lon`))):!1}handleMeldingsnummer(e){let s=e?.get(this.paramNameMeldingsnummer);if(s)if(s.startsWith(`BGT`)||s.startsWith(`BRT`))this.handle2DMeldingsnummer(e,s);else if(this.is3DMeldingsnummer(s)){if(this.active3DMeldingsnummerRequest===s)return;this.active3DMeldingsnummerRequest=s;let r=++this.meldingsnummerRequestCounter;this.handle3DMeldingsnummer(s,r)}else this.alertingService.addAlertPopup(new ne$2(`Deze melding is afgerond. U kunt de melding niet meer bekijken op Verbeter de Kaart.`,ae$1.FAILURE,`Melding `+s+` is niet meer beschikbaar`))}handle2DMeldingsnummer(e,s){let r=this.terugmeldingSearchService.getTerugmeldingFeatureEntity(s);if(r){let n=r.getProperties(),o=e.get(this.paramNameZoom)??`0`,a=``;if(n.registratie===`BRT`?(a=`terugmeldingen-brt`,o=this.bepaalBrtZoomlevel(n)):n.registratie===`BGT`&&(a=`terugmeldingen-bgt`,o=this.bepaalBgtZoomlevel()),!a)return;let h=r.getGeometry().getCoordinates(),l=h[0],d=h[1];if(l===void 0||d===void 0)return;let u=e.set(this.paramNameGeomX,l);u=u.set(this.paramNameGeomY,d),u=u.set(this.paramNameZoom,o),this.zoomToLocationFromParams2D(u),this.ggcSelectionService.setSelection([r],Mt$2.mapName,a)}else this.alertingService.addAlertPopup(new ne$2(`Deze melding is afgerond. U kunt de melding niet meer bekijken op Verbeter de Kaart.`,ae$1.FAILURE,`Melding `+s+` is niet meer beschikbaar`))}bepaalBgtZoomlevel(){let e=this.ggcLayerService.getLayer(`bgt-standaard`,Mt$2.mapName);return e?(TY(e.getMaxResolution())+.01).toString():`0`}bepaalBrtZoomlevel(e){let s=e.product,r=typeof s==`string`?s.toLowerCase():``,n=this.ggcLayerService.getLayer(r,Mt$2.mapName);return n?(TY(n.getMaxResolution())+.01).toString():`0`}handle3DMeldingsnummer(e,s){return L$1(this,null,function*(){try{let r=yield this.find3DTerugmeldingCoordinate(e,s);if(!r||s!==this.meldingsnummerRequestCounter)return;let n=X.WGS84.cartesianToCartographic(r),o={lon:h$1(n.longitude),lat:h$1(n.latitude)};this.modeService.setDefault3DPosition({lookAtPosition:o}),this.setCameraOptions.next({lookAtPosition:o});let a=this.terugmeldingSearchService.getTerugmeldingFeatureEntity(e);a&&this.ggcSelectionService3D.setSelection(a,`select-click`)}finally{this.active3DMeldingsnummerRequest===e&&(this.active3DMeldingsnummerRequest=void 0)}})}find3DTerugmeldingCoordinate(e,s){return L$1(this,null,function*(){for(let r=0;r<this.max3DMeldingsnummerLookupAttempts;r++){if(s!==this.meldingsnummerRequestCounter)return;let n=this.terugmeldingSearchService.getTerugmelding3DBCoordinateOrUndefined(e);if(n)return n;yield new Promise(o=>{setTimeout(o,this.lookupRetryDelayMs)})}this.alertingService.addAlertPopup(new ne$2(`Deze melding is afgerond. U kunt de melding niet meer bekijken op Verbeter de Kaart.`,ae$1.FAILURE,`Melding `+e+` is niet meer beschikbaar`))})}has3DMeldingsnummerParam(e){return this.is3DMeldingsnummer(e?.get(this.paramNameMeldingsnummer))}has2DMeldingsnummerParam(e){return this.is2DMeldingsnummer(e?.get(this.paramNameMeldingsnummer))}is3DMeldingsnummer(e){return e?.startsWith(`3DB`)??!1}is2DMeldingsnummer(e){return(e?.startsWith(`BGT`)||e?.startsWith(`BRT`))??!1}static{this.ɵfac=function(s){return new(s||t)}}static{this.ɵprov=z$1({token:t,factory:t.ɵfac,providedIn:`root`})}}return t})();var Jn$1=class{_doc;constructor(t){this._doc=t}manager};var Br$1=(()=>{class n extends Jn$1{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,o,i){return e.addEventListener(r,o,i),()=>this.removeEventListener(e,r,o,i)}removeEventListener(e,r,o,i){return e.removeEventListener(r,o,i)}static ɵfac=function(r){return new(r||n)(re$1(an$1))};static ɵprov=z$1({token:n,factory:n.ɵfac})}return n})();var Hr=new _$2(``);var hi=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(a=>{a.manager=this});let o=e.filter(a=>!(a instanceof Br$1));this._plugins=o.slice().reverse();let i=e.find(a=>a instanceof Br$1);i&&this._plugins.push(i)}addEventListener(e,r,o,i){return this._findPluginFor(r).addEventListener(e,r,o,i)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(i=>i.supports(e)),!r)throw new N(-5101,!1);return this._eventNameToPlugin.set(e,r),r}static ɵfac=function(r){return new(r||n)(re$1(Hr),re$1(B$1))};static ɵprov=z$1({token:n,factory:n.ɵfac})}return n})();var di=`ng-app-id`;function Hs(n){for(let t of n)t.remove()}function Ws(n,t){let e=t.createElement(`style`);return e.textContent=n,e}function cu(n,t,e,r){let o=n.head?.querySelectorAll(`style[${di}="${t}"],link[${di}="${t}"]`);if(!o||o.length===0)return!1;for(let i of o)i.removeAttribute(di),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf(`/`)+1),{usage:0,elements:[i]}):i.textContent&&e.set(i.textContent,{usage:0,elements:[i]});return!0}function mi(n,t){let e=t.createElement(`link`);return e.setAttribute(`rel`,`stylesheet`),e.setAttribute(`href`,n),e}var gi=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,r,o,i={}){this.doc=e,this.appId=r,this.nonce=o,cu(e,r,this.inline,this.external)&&this.hosts.add(e.head)}addStyles(e,r){for(let o of e)this.addUsage(o,this.inline,Ws);r?.forEach(o=>this.addUsage(o,this.external,mi))}removeStyles(e,r){for(let o of e)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,r,o){let i=r.get(e);i?i.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,r){let o=r.get(e);o&&(o.usage--,o.usage<=0&&(Hs(o.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Hs(e);this.hosts.clear()}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(e,Ws(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(e,mi(r,this.doc)))}}removeHost(e){this.hosts.delete(e);for(let r of[...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===e?i.remove():o.push(i);r.elements=o}}
5addElement(e,r){return this.nonce&&r.setAttribute(`nonce`,this.nonce),e.appendChild(r)}static ɵfac=function(r){return new(r||n)(re$1(an$1),re$1(du$2),re$1(Ng,8),re$1(bg))};static ɵprov=z$1({token:n,factory:n.ɵfac})}return n})();var fi={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`,math:`http://www.w3.org/1998/Math/MathML`};var yi=/%COMP%/g;var Ks=`%COMP%`;var uu=`_nghost-${Ks}`;var pu=`_ngcontent-${Ks}`;var du=!0;var fu=new _$2(``,{factory:()=>du});var mu=new _$2(``);function hu(n){return pu.replace(yi,n)}function gu(n){return uu.replace(yi,n)}function Ys(n,t){return t.map(e=>e.replace(yi,n))}var bi=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(e,r,o,i,a,s,l=null,c=null,u=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=c,this.cssVarNamespace=u??``,this.defaultRenderer=new Xn$1(e,a,s,this.tracingService,this.cssVarNamespace)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,r);return o instanceof qr?o.applyToHost(e):o instanceof Qn$1&&o.applyStyles(),o}getOrCreateRenderer(e,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,p=this.tracingService;switch(r.encapsulation){case xt$3.Emulated:i=new qr(l,c,r,this.appId,u,a,s,p,this.cssVarNamespace);break;case xt$3.ShadowDom:return new Gr(l,e,r,a,s,this.nonce,p,this.cssVarNamespace,c);case xt$3.ExperimentalIsolatedShadowDom:return new Gr(l,e,r,a,s,this.nonce,p,this.cssVarNamespace);default:i=new Qn$1(l,c,r,u,a,s,p,this.cssVarNamespace);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static ɵfac=function(r){return new(r||n)(re$1(hi),re$1(Pf),re$1(du$2),re$1(fu),re$1(an$1),re$1(B$1),re$1(Ng),re$1(Cn$3,8),re$1(mu,8))};static ɵprov=z$1({token:n,factory:n.ɵfac})}return n})();var Xn$1=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,e,r,o,i=``){this.eventManager=t,this.doc=e,this.ngZone=r,this.tracingService=o,this.cssVarNamespace=i}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(fi[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(Zs(t)?t.content:t).appendChild(e)}insertBefore(t,e,r){if(t){let o=Zs(t)?t.content:t;if(r!=null&&r.parentNode!==o)throw new N(-5106,!1);o.insertBefore(e,r)}}removeChild(t,e){e.remove()}selectRootElement(t,e){let r=typeof t==`string`?this.doc.querySelector(t):t;if(!r)throw new N(-5104,!1);return e||(r.textContent=``),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,o){if(o){e=o+`:`+e;let i=fi[o];i?t.setAttributeNS(i,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){let o=fi[r];o?t.removeAttributeNS(o,e):t.removeAttribute(`${r}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,r,o){let i=e.startsWith(`--`);i&&(e=e.replace(`%NS%`,this.cssVarNamespace)),i||o&(ti$2.DashCase|ti$2.Important)?t.style.setProperty(e,r,o&ti$2.Important?`important`:``):t.style[e]=r}removeStyle(t,e,r){let o=e.startsWith(`--`);o&&(e=e.replace(`%NS%`,this.cssVarNamespace)),o||r&ti$2.DashCase?t.style.removeProperty(e):t.style[e]=``}setProperty(t,e,r){t!=null&&(t[e]=r)}setValue(t,e){t.nodeValue=e}listen(t,e,r,o){if(typeof t==`string`&&(t=Oc$2().getGlobalEventTarget(this.doc,t),!t))throw new N(-5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,e,i)),this.eventManager.addEventListener(t,e,i,o)}decoratePreventDefault(t){return e=>{if(e===`__ngUnwrap__`)return t;t(e)===!1&&e.preventDefault()}}};function Zs(n){return n.tagName===`TEMPLATE`&&n.content!==void 0}var Gr=class extends Xn$1{hostEl;sharedStylesHost;shadowRoot;constructor(t,e,r,o,i,a,s,l,c){super(t,o,i,s,l),this.hostEl=e,this.sharedStylesHost=c,this.shadowRoot=e.attachShadow({mode:`open`}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=Ys(r.id,u).map(f=>f.replace(/%NS%/g,l));for(let f of u){let m=document.createElement(`style`);a&&m.setAttribute(`nonce`,a),m.textContent=f,this.shadowRoot.appendChild(m)}let p=r.getExternalStyles?.();if(p)for(let f of p){let m=mi(f,o);a&&m.setAttribute(`nonce`,a),this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,r){return super.insertBefore(this.nodeOrShadowRoot(t),e,r)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}};var Qn$1=class extends Xn$1{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,r,o,i,a,s,l,c){super(t,i,a,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let u=r.styles,p=c?Ys(c,u):u;this.styles=p.map(f=>f.replace(/%NS%/g,l)),this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&gn$2.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}};var qr=class extends Qn$1{contentAttr;hostAttr;constructor(t,e,r,o,i,a,s,l,c){let u=o+`-`+r.id;super(t,e,r,i,a,s,l,c,u),this.contentAttr=hu(u),this.hostAttr=gu(u)}
5applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,``)}createElement(t,e){let r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,``),r}};var Wr=class n extends Xp$1{supportsDOMEvents=!0;static makeCurrent(){GP(new n)}onAndCancel(t,e,r,o){return t.addEventListener(e,r,o),()=>{t.removeEventListener(e,r,o)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.remove()}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument(`fakeTitle`)}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e===`window`?window:e===`document`?t:e===`body`?t.body:null}getBaseHref(t){let e=yu();return e==null?null:bu(e)}resetBaseElement(){er$1=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return BP(document.cookie,t)}};var er$1=null;function yu(){return er$1=er$1||document.head.querySelector(`base`),er$1?er$1.getAttribute(`href`):null}function bu(n){return new URL(n,document.baseURI).pathname}var Zr=class{addToWindow(t){de$1.getAngularTestability=(r,o=!0)=>{let i=t.findTestabilityInTree(r,o);if(i==null)throw new N(5103,!1);return i},de$1.getAllAngularTestabilities=()=>t.getAllTestabilities(),de$1.getAllAngularRootElements=()=>t.getAllRootElements();let e=r=>{let o=de$1.getAllAngularTestabilities(),i=o.length,a=function(){i--,i==0&&r()};o.forEach(s=>{s.whenStable(a)})};de$1.frameworkStabilizers||(de$1.frameworkStabilizers=[]),de$1.frameworkStabilizers.push(e)}findTestabilityInTree(t,e,r){if(e==null)return null;return t.getTestability(e)??(r?Oc$2().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}};var Js=[`alt`,`control`,`meta`,`shift`];var vu={"\b":`Backspace`," ":`Tab`,"�":`Delete`,"\x1B":`Escape`,Del:`Delete`,Esc:`Escape`,Left:`ArrowLeft`,Right:`ArrowRight`,Up:`ArrowUp`,Down:`ArrowDown`,Menu:`ContextMenu`,Scroll:`ScrollLock`,Win:`OS`};var _u={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};var Xs=(()=>{class n extends Jn$1{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,r,o,i){let a=n.parseEventName(r),s=n.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Oc$2().onAndCancel(e,a.domEventName,s,i))}static parseEventName(e){let r=e.toLowerCase().split(`.`),o=r.shift();if(r.length===0||!(o===`keydown`||o===`keyup`))return null;let i=n._normalizeKey(r.pop()),a=``,s=r.indexOf(`code`);if(s>
5-1&&(r.splice(s,1),a=`code.`),Js.forEach(c=>{let u=r.indexOf(c);u>-1&&(r.splice(u,1),a+=c+`.`)}),a+=i,r.length!=0||i.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,r){let o=vu[e.key]||e.key,i=``;return r.indexOf(`code.`)>-1&&(o=e.code,i=`code.`),o==null||!o?!1:(o=o.toLowerCase(),o===` `?o=`space`:o===`.`&&(o=`dot`),Js.forEach(a=>{if(a!==o){let s=_u[a];s(e)&&(i+=a+`.`)}}),i+=o,i===r)}static eventCallback(e,r,o){return i=>{n.matchEventFullKeyCode(i,e)&&o.runGuarded(()=>r(i))}}static _normalizeKey(e){return e===`esc`?`escape`:e}static ɵfac=function(r){return new(r||n)(re$1(an$1))};static ɵprov=z$1({token:n,factory:n.ɵfac})}return n})();function xu(n,t,e){return L$1(this,null,function*(){return SP(E({rootComponent:n},wu(t,e)))})}function wu(n,t){return{platformRef:t?.platformRef,appProviders:[...Qs,...n?.providers??[]],platformProviders:Eu}}function Cu(){Wr.makeCurrent()}function Su(){return new Ve$1}function Tu(){return Om(document),document}var Eu=[{provide:bg,useValue:Rs$1},{provide:fu$2,useValue:Cu,multi:!0},{provide:an$1,useFactory:Tu}];var Mu=[{provide:tp$1,useClass:Zr},{provide:ep$1,useClass:uE,deps:[B$1,rp$1,tp$1]},{provide:uE,useClass:uE,deps:[B$1,rp$1,tp$1]}];var Qs=[{provide:Ds$1,useValue:`root`},{provide:Ve$1,useFactory:Su},{provide:Hr,useClass:Br$1,multi:!0},{provide:Hr,useClass:Xs,multi:!0},bi,{provide:Pf,useClass:gi},{provide:gi,useExisting:Pf},hi,{provide:ir$3,useExisting:bi},[]];var ku=(()=>{class n{constructor(){}static ɵfac=function(r){return new(r||n)};static ɵmod=zf({type:n});static ɵinj=mo$2({providers:[...Qs,...Mu],imports:[Os$1,bP]})}return n})();var vi=(()=>{class n{static ɵfac=function(r){return new(r||n)};static ɵprov=z$1({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=re$1(Iu),o},providedIn:`root`})}return n})();var Iu=(()=>{class n extends vi{_doc=I$1(an$1);sanitize(e,r){if(r==null)return null;switch(e){case J.NONE:return r;case J.HTML:return Xa$2(r,`HTML`)?At$2(r):Zd$2(this._doc,String(r)).toString();case J.STYLE:return Xa$2(r,`Style`)?At$2(r):r;case J.SCRIPT:if(Xa$2(r,`Script`))return At$2(r);throw new N(5200,!1);case J.URL:return Xa$2(r,`URL`)?At$2(r):ec$2(String(r));case J.RESOURCE_URL:if(Xa$2(r,`ResourceURL`))return At$2(r);throw new N(-5201,!1);default:throw new N(5202,!1)}}bypassSecurityTrustHtml(e){return Bm(e)}bypassSecurityTrustStyle(e){return $m(e)}bypassSecurityTrustScript(e){return Um(e)}bypassSecurityTrustUrl(e){return Wm(e)}bypassSecurityTrustResourceUrl(e){return Gm(e)}static ɵfac=function(r){return new(r||n)};static ɵprov=Lt$2({token:n,factory:n.ɵfac})}return n})();var el=(()=>{class n{constructor(){this.httpClient=I$1(Zr$2)}getPointFromBagPandId(e){return this.httpClient.get(`${Mt$2.pdokBagWfsUrl}&typeName=bag:pand&filter=<Filter><PropertyIsEqualTo><PropertyName>identificatie</PropertyName><Literal>${e}</Literal></PropertyIsEqualTo></Filter>`,{headers:{"Content-Type":`application/x-www-form-urlencoded; charset=UTF-8`}}).pipe(qe$2(r=>{if(Array.isArray(r.features)&&r.features.length===1)try{return tt$2(new _i$1().readGeometry(r.features[0].geometry).getExtent())}catch(o){}return null}),el$2(()=>Sh$1(null)))}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵprov=z$1({token:n,factory:n.ɵfac,providedIn:`root`})}}return n})();var tl=(()=>{class n{constructor(){this.stateService=I$1(Do$2),this.ggcDrawService=I$1(PY),this.ggcMapService=I$1(rL),this.ggcSelectionService=I$1(AY),this.pdokService=I$1(el),this.modeService=I$1(ns),this.alertingService=I$1(Po$2),this.injector=I$1(Me$2),this.mapName=Mt$2.mapName,this.alertOutside=`Kies een plek in Nederland.`,this.mode=ut$1.TweeD,this.clusterLayerId=`terugmeldingen-bgt`,this.activeSelectionSubject=ne
5w Y$1,this.selectedSearchResult=new bn$1(null),this.layerName=`melding`,this.customDrawStyle=e=>{let r={};r.Point=[new w$2({image:new $i$2({width:27,height:40,anchor:[.5,1],src:`assets/icons/terugmelding/melden.svg`})})];let o=e.getGeometry();return o?r[o.getType()]??[]:[]},this.modeService.activeMode.subscribe(e=>{this.mode=e,e===ut$1.TweeD&&this.init2D()})}init2D(){this.subscribeSelectionService()}handleSelectionServiceEvents(e){let r=this.stateService.getCurrentState();if(e.type===eC.SELECTIONSERVICE_MAPCLICKED||e.type===eC.SELECTIONSERVICE_CLEARSELECTION){if(![`report_2d`,`report_2d_draw_point`,`report_2d_done`,`report_3d`,`report_3d_done`].includes(r)){this.ggcDrawService.clearLayer(this.layerName,e.mapIndex),this.clearHighlightAndSelectionLayers(),this.stateService.hidePrimaryPanel(!0);let o=this.stateService.getCurrentState()===`legend`?`info`:this.stateService.getCurrentState();this.stateService.updatePrimaryState(o,e)}}else if(e.type===eC.SELECTIONSERVICE_SELECTIONUPDATED){let o=e.value,i=o.featureCollectionForLayers;if(this.ggcMapService.clearSelectionLayer(e.mapIndex),this.ggcMapService.clearHighlightLayer(e.mapIndex),r===`info`||r===`report_2d_done`){let a=i.some(c=>c.features.length>0),s=i.some(c=>c.layerId===this.clusterLayerId?OY(c):!1),l=this.ggcMapService.isMaxZoomlevel(this.mapName);if(a&&(!s||s&&l))this.stateService.hidePrimaryPanel(!1),this.stateService.updatePrimaryState(`info`,e);else{if(s&&!l){let c=o.featureCollectionForLayers[0],u=c?.features[0];if(c&&u&&c.layerId===this.clusterLayerId){let p=u.getGeometry();
5if(!(p instanceof Re$1))return;let f=p.getCoordinates();this.ggcMapService.getMap(this.mapName).getView().adjustZoom(1,f)}}this.stateService.hidePrimaryPanel(!0)}}}}handleVdkModus(e){return L$1(this,null,function*(){switch(this.activeSelectionSubscription?.unsubscribe(),e.state){case`report_2d_draw`:yield this.clearDrawLayer(),this.drawSubscription?.unsubscribe(),this.moveSubscription?.unsubscribe(),this.clearHighlightAndSelectionLayers(),this.ggcDrawService.startDraw(this.layerName,JD.POINT,{},this.mapName),this.drawSubscription=this.ggcDrawService.getDrawEventsObservable(this.mapName).pipe(Ur(r=>r.type===zm.DRAWEND)).subscribe(r=>{let o=r.event.feature.getGeometry();if(!(o instanceof Re$1))return;let i=o.getCoordinates();this.pointInsideNetherlands(i)?(this.ggcDrawService.stopDraw(this.mapName),this.stateService.updatePrimaryState(`report_2d_draw_point`,{point:i,label:`Plek op de kaart`})):(setTimeout(()=>this.ggcDrawService.clearLayer(this.layerName,this.mapName),100),this.alertingService.addAlert(new ne$2(this.alertOutside,ae$1.FAILURE)))});break;case`report_2d_draw_point`:{let r=e.data,o=r.point;if(!o)return;if(this.pointInsideNetherlands(new Re$1(o).getCoordinates())||this.alertingService.addAlert(new ne$2(this.alertOutside,ae$1.FAILURE)),this.moveSubscription===void 0||this.moveSubscription.closed){if(yield this.clearDrawLayer(),this.drawSubscription?.unsubscribe(),this.ggcDrawService.getFeaturesFromLayer(this.layerName,this.mapName).length===0){let i=r.point;i&&this.ggcDrawService.addFeatureToLayer(this.layerName,new Ie$2(new Re$1(i)),this.mapName)}this.ggcDrawService.startMove(this.layerName,this.mapName),this.moveSubscription=this.ggcDrawService.getModifyEventsObservable(this.mapName).pipe(Ur(i=>i.type===Um$1.MOVEEND)).subscribe(i=>{let a=i.event.coordinate;this.pointInsideNetherlands(new Re$1(a).getCoordinates())?this.stateService.updatePrimaryState(`report_2d_draw_point`,{point:a,label:`Plek op de kaart`}):(this.alertingService.addAlert(new ne$2(this.alertOutside,ae$1.FAILURE)),this.stateService.updatePrimaryState(`report_2d_draw`))})}else if(e.data?.label===`Uw locatie`){let i=this.ggcDrawService.getFeaturesFromLayer(this.layerName,this.mapName);if(i.length>0){let a=i[0].getGeometry();if(a instanceof Re$1&&a.getCoordinates().length===2){let s=r.point;s&&a.setCoordinates(s)}}}break}case`report_2d`:this.ggcDrawService.stopDraw(this.mapName),this.ggcDrawService.stopMove(this.mapName),this.moveSubscription?.unsubscribe();break;case`report_2d_done`:yield this.clearDrawLayer();break;case`report_3d_draw`:{let{Cartesian3:r,Color:o}=yield import(`./chunk-CWyhfw-c.js`);this.clearActiveSelection(e.hidePrimaryPanel);let{GgcDrawingService:i,DrawingType:a}=yield import(`./chunk-BX9axHgV.js`),s=this.injector.get(i);s.removeAllDrawings(),this.activeSelectionSubscription=this.activeSelectionSubject.subscribe(l=>{let c=Za$2(l.feature)[0];l.layerId===`3d-buildings`&&l.feature&&(l.feature.color=o.BLUE,this.activeSelection=l),this.getPoint(l,c).subscribe(u=>L$1(this,null,function*(){if(this.pointInsideNetherlands(this.modeService.transform3dLonLatTo2dCoordinate(u[0],u[1]))){if(c){let m=c.objectid;typeof m==`string`&&(c.objectId=m,delete c.objectid)}setTimeout(()=>s.addDrawing(a.Svg,r.fromDegrees(u[0],u[1],u[2])));let p,f;l.layerId===`3d-buildings`?(p=`Gebouw op de kaart`,f=`Gebouwen`):l.layerId===`3d-terrain`||!l.layerName?(p=`Terrein op de kaart`,f=`Terreinen`):(p=l.layerName,f=l.layerName),this.stateService.updatePrimaryState(`report_3d`,F$2(E({},c),{point:u,label:p,objectType:f}))}else setTimeout(()=>this.stateService.updatePrimaryState(`report_3d_draw`),100),this.alertingService.addAlert(new ne$2(this.alertOutside,ae$1.FAILURE))}))});break}case`report_3d_done`:case`info`:if(yield this.clearDrawLayer(),this.ggcDrawService.stopMove(this.mapName),this.drawSubscription?.unsubscribe(),this.moveSubscription?.unsubscribe(),this.clearActiveSelection(e.hidePrimaryPanel),this.mode===ut$1.DrieD){let{GgcDrawingService:r}=yield import(`./chunk-BX9axHgV.js`);this.injector.get(r).removeAllDrawings()}break}})}zoomNextLevel(e){this.ggcMapService.getMap(this.mapName).getView().adjustZoom(1,e.getGeometry().getCoordinates())}clearDrawLayer(){return L$1(this,null,function*(){switch(this.mode){case ut$1.TweeD:this.ggcDrawService.clearLayer(this.layerName,this.mapName),this.ggcDrawService.stopDraw(this.mapName);break;case ut$1.DrieD:{let{GgcDrawingService:e}=yield import(`./chunk-BX9axHgV.js`);this.injector.get(e).removeAllDrawings();break}}})}clearActiveSelection(e){this.activeSelection&&e&&(this.activeSelection=void 0)}clearHighlightAndSelectionLayers(){this.ggcMapService.clearHighlightLayer(this.mapName),this.ggcMapService.clearSelectionLayer(this.mapName)}subscribeSelectionService(){this.unsubscribeSelectionService(),this.ggcSelectionService.startSelect({style:null},this.mapName),this.selectionSubscription=this.ggcSelectionService.getObservable(this.mapName).subscribe(this.handleSelectionServiceEvents.bind(this)),this.vdkStateSubscription=this.stateService.vdkStateObservable.subscribe(this.handleVdkModus.bind(this));let e={finishDrawStyle:this.customDrawStyle,drawingDrawStyle:this.customDrawStyle};this.ggcDrawService.setDrawStyle(this.layerName,e,this.mapName)}unsubscribeSelectionService(){this.selectionSubscription?.unsubscribe(),this.vdkStateSubscription?.unsubscribe()}getPoint(e,r){let o=e.location??[0,0,0],i=o[0]??0,l=[o[1]??0,i,o[2]??0];if(r&&typeof r.bagpandid==`string`&&r.bagpandid.length===16){let c=r.bagpandid;return this.pdokService.getPointFromBagPandId(c).pipe(qe$2(u=>u?[u[0],u[1],o[2]??0]:l))}return Sh$1(l)}pointInsideNetherlands(e){return Wt$1([-84006,289e3,3e5,866615],e)}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵprov=z$1({token:n,factory:n.ɵfac,providedIn:`root`})}}return n})();var Kr=(()=>{class n{constructor(){this.modeService=I$1(ns),this.currentMode=ut$1.TweeD,window.dataLayer||(window.dataLayer=[]),this.modeService.activeMode.subscribe(e=>{this.currentMode=e})}pushCustomEvent(e,r,o,i,a){this.pushEvent({event:e,event_category:r,event_action:o,event_name:i,event_dimension:this.currentMode,search_type:a})}pushFormSubmitEvent(e,r,o){this.pushEvent({event:`interaction`,event_category:`engagement`,event_action:e,event_name:r,event_dimension:this.currentMode,mail_save:o})}pushFileUploadError(e,r){this.pushEvent({event:`interaction`,event_category:`performance`,event_action:`message_error`,event_name:e,event_dimension:this.currentMode,event_variable:r})}pushEvent(e){window.dataLayer.push(e)}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵprov=z$1({token:n,factory:n.ɵfac,providedIn:`root`})}}return n})();function nh(n,t=0){return Au(n)?Number(n):arguments.length===2?t:0}function Au(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}var Yr=new WeakMap;var nl=(()=>{class n{_appRef;_injector=I$1(Me$2);_environmentInjector=I$1(ue);load(e){let r=this._appRef=this._appRef||this._injector.get(wn$2),o=Yr.get(r);o||(o={loaders:new Set,refs:[]},Yr.set(r,o),r.onDestroy(()=>
5{Yr.get(r)?.refs.forEach(i=>i.destroy()),Yr.delete(r)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(RP(e,{environmentInjector:this._environmentInjector})))}static ɵfac=function(r){return new(r||n)};static ɵprov=Lt$2({token:n,factory:n.ɵfac})}return n})();var rl=(()=>{class n{static ɵfac=function(r){return new(r||n)};static ɵcmp=zI({type:n,selectors:[[`ng-component`]],exportAs:[`cdkVisuallyHidden`],decls:0,vars:0,template:function(r,o){},styles:[`.cdk-visually-hidden { 6 border: 0; 7 clip: rect(0 0 0 0); 8 height: 1px; 9 margin: -1px; 10 overflow: hidden; 11 padding: 0; 12 position: absolute; 13 width: 1px; 14 white-space: nowrap; 15 outline: 0; 16 -webkit-appearance: none; 17 -moz-appearance: none; 18 left: 0; 19} 20[dir=rtl] .cdk-visually-hidden { 21 left: auto; 22 right: 0; 23} 24`],encapsulation:2})}return n})();var Lu=(()=>{class n{_platform=I$1(Eo$2);isDisabled(e){return e.hasAttribute(`disabled`)}isVisible(e){return Ou(e)&&getComputedStyle(e).visibility===`visible`}isTabbable(e){if(!this._platform.isBrowser)return!1;let r=Du(Vu(e));if(r&&(ol(r)===-1||!this.isVisible(r)))return!1;let o=e.nodeName.toLowerCase(),i=ol(e);return e.hasAttribute(`contenteditable`)?i!==-1:o===`iframe`||o===`object`||this._platform.WEBKIT&&this._platform.IOS&&!ju(e)?!1:o===`audio`?e.hasAttribute(`controls`)?i!==-1:!1:o===`video`?i===-1?!1:i!==null?!0:this._platform.FIREFOX||e.hasAttribute(`controls`):e.tabIndex>=0}isFocusable(e,r){return $u(e)&&!this.isDisabled(e)&&(r?.ignoreVisibility||this.isVisible(e))}static ɵfac=function(r){return new(r||n)};static ɵprov=Lt$2({token:n,factory:n.ɵfac})}return n})();function Du(n){try{return n.frameElement}catch(t){return null}}function Ou(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects==`function`&&n.getClientRects().length)}function Nu(n){let t=n.nodeName.toLowerCase();return t===`input`||t===`select`||t===`button`||t===`textarea`}function Pu(n){return Fu(n)&&n.type==`hidden`}function Ru(n){return zu(n)&&n.hasAttribute(`href`)}function Fu(n){return n.nodeName.toLowerCase()==`input`}function zu(n){return n.nodeName.toLowerCase()==`a`}function il(n){if(!n.hasAttribute(`tabindex`)||n.tabIndex===void 0)return!1;let t=n.getAttribute(`tabindex`);return!!(t&&!isNaN(parseInt(t,10)))}function ol(n){if(!il(n))return null;let t=parseInt(n.getAttribute(`tabindex`)||``,10);return isNaN(t)?-1:t}function ju(n){let t=n.nodeName.toLowerCase(),e=t===`input`&&n.type;return e===`text`||e===`password`||t===`select`||t===`textarea`}function $u(n){return Pu(n)?!1:Nu(n)||Ru(n)||n.hasAttribute(`contenteditable`)||il(n)}function Vu(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var _i=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>{!this.focusLastTabbableElement()&&this._checker.isFocusable(this._element)&&this._element.focus()};endAnchorListener=()=>{!this.focusFirstTabbableElement()&&this._checker.isFocusable(this._element)&&this._element.focus()};get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_enabled=!0;constructor(t,e,r,o,i=!1,a){this._element=t,this._checker=e,this._ngZone=r,this._document=o,this._injector=a,i||this.attachAnchors()}destroy(){let t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener(`focus`,this.startAnchorListener),t.remove()),e&&(e.removeEventListener(`focus`,this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener(`focus`,this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener(`focus`,this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return t==`start`?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){let e=this._element.querySelector(`[cdk-focus-initial], [cdkFocusInitial]`);if(e){if(!this._checker.isFocusable(e)){let r=this._getFirstTabbableElement(e);return r?.focus(t),!!r}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){let e=this._getRegionBoundary(`start`);return e&&e.focus(t),!!e}focusLastTabbableElement(t){let e=this._getRegionBoundary(`end`);return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children;for(let r=0;r<e.length;r++){let o=e[r].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[r]):null;if(o)return o}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children;for(let r=e.length-1;r>=0;r--){let o=e[r].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[r]):null;if(o)return o}return null}_createAnchor(){let t=this._document.createElement(`div`);return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add(`cdk-visually-hidden`),t.classList.add(`cdk-focus-trap-anchor`),t.setAttribute(`aria-hidden`,`true`),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute(`tabindex`,`0`):e.removeAttribute(`tabindex`)}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){Vv(t,{injector:this._injector})}};var xi=(()=>{class n{_checker=I$1(Lu);_ngZone=I$1(B$1);_document=I$1(an$1);_injector=I$1(Me$2);constructor(){I$1(nl).load(rl)}create(e,r=!1){return new _i(e,this._checker,this._ngZone,this._document,r,this._injector)}static ɵfac=function(r){return new(r||n)};static ɵprov=Lt$2({token:n,factory:n.ɵfac})}return n})();function Uu(n,t){if(n&1){let e=wE();pi(0,`button`,3),gp$1(`click`,function(){Gl$1(e);return ql$2(RE().openFakeFilter())}),lp$1(1,`span`,4),pi(2,`span`,5),uD(3,`Filters`),bc(),pi(4,`span`,6),uD(5,`Filters`),bc()()}}var al=(()=>{class n{set showCurrentLocationButton(e){this.searchLocationOptions=F$2(E({},this.searchLocationOptions),{searchCurrentLocation:E(E({},this.searchLocationOptions.searchCurrentLocation),e&&{type:ss.BUTTON})})}constructor(){this.ggcMapService=I$1(rL),this.stateService=I$1(Do$2),this.terugmeldingSearchService=I$1(No$2),this.modeService=I$1(ns),this.mapModusService=I$1(tl),this.eventTrackerService=I$1(Kr),this.searchElementIds=new or$2({searchLabelId:`ggcSearchInputId`,searchInputId:`ggcSearchInputId`,searchButtonId:`ggcSearchButtonId`,suggestionListId:`ggcSuggestionListId`}),this.mapIndex=Mt$2.mapName,this.filterEnquete=Mt$2.filterEnquete===`true`,this.searchLocationOptions={placeholderTextAndAriaLabel:`Zoek op adres, melding, RD-punt`,elementIds:this.searchElementIds,mapIndex:this.mapIndex,zoomToResult:!0,markResult:!0,numberOfSuggestions:5,searchCurrentLocation:{icon:`fal fa-crosshairs`,type:ss.BUTTON}},this.openFilter=TP(),this.pdokLocationApiService=I$1(Yd$1),this.modeService.activeMode.subscribe(e=>this.mode=e),this.stateService.vdkStateObservable.subscribe(e=>this.primaryPanelState=e.state)}ngOnInit(){this.pdokLocationApiService.collectionsLoaded$.pipe(Wr$1(1)).subscribe(e=>{let r=new Map([[`adres`,.1],[`gemeentegebied`,.9],[`provinciegebied`,1],[`woonplaats`,.5]]);this.pdokLocationApiService.setCustomCollections(e.collections.filter(o=>Array.from(r.keys()).includes(o.id)).map(o=>({id:o.id,version:o.version,relevance:r.get(o.id)??.5})))})}handleSearchEvent(e){if([`info`,`legend`].includes(this.primaryPanelState)&&this.stateService.hidePrimaryPanel(!0),e.type===Ut$1.RESULT_INVALIDATED)this.mapModusService.selectedSearchResult.next(null);else if(e.type===Ut$1.SEARCH_RESULT)if(this.eventTrackerService.pushCustomEvent(`interaction`,`content`,`search_location`,`zoek_adres`,`zoek_adres`),e.value?.properties?.collection_id===`terugmelding`){let r=e.value.id,o=e.value.type,i=this.ggcMapService.getLayer(o,Mt$2.mapName),s=this.terugmeldingSearchService.getTerugmeldingFeature
24(r).getGeometry();if(!s)return;this.ggcMapService.getMap(Mt$2.mapName).getView().fit(s.getExtent(),{minResolution:i.getMinResolution()}),this.mapModusService.selectedSearchResult.next(e)}else if(e.value?.properties?.collection_id===`coordinate`&&e.value?.id){let o=new Re$1(e.value.id.split(`,`).map(s=>Number(s))),i=[new Ie$2(o)];i[0].setStyle(new w$2({image:new wt$2({fill:new u({color:`#007EA9`}),stroke:new s({color:`#FFFFFF`,width:4}),radius:5})})),this.ggcMapService.clearHighlightLayer(Mt$2.mapName),this.ggcMapService.addFeaturesToHighlightLayer(i,Mt$2.mapName);let a=o.getExtent();this.ggcMapService.getMap(Mt$2.mapName).getView().fit(a,{maxZoom:12}),this.mapModusService.selectedSearchResult.next(e)}else this.mapModusService.selectedSearchResult.next(e);else e.type===Ut$1.SEARCH_LOCATION_RESULT&&this.eventTrackerService.pushCustomEvent(`interaction`,`content`,`search_location`,`gebruik_mijn_locatie`,`zoek_adres`)}openFakeFilter(){this.openFilter.emit()}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵcmp=zI({type:n,selectors:[[`vdk-search`]],inputs:{showCurrentLocationButton:`showCurrentLocationButton`},outputs:{openFilter:`openFilter`},decls:3,vars:4,consts:[[1,`d-flex`],[1,`w-100`,3,`events`,`searchLocationOptions`,`classSearchButton`,`classClearButton`],[`type`,`button`,`title`,`Filters`,1,`btn`,`btn-with-icon`,`fake-filter`],[`type`,`button`,`title`,`Filters`,1,`btn`,`btn-with-icon`,`fake-filter`,3,`click`],[`aria-hidden`,`true`,1,`fal`,`fa-filter`],[1,`d-none`,`d-lg-block`,`btn-text`],[1,`sr-only`,`d-lg-none`]],template:function(r,o){r&1&&(pi(0,`div`,0)(1,`ggc-search-location`,1),gp$1(`events`,function(a){return o.handleSearchEvent(a)}),bc(),hE(2,Uu,6,0,`button`,2),bc()),r&2&&(uy(),cp$1(`searchLocationOptions`,o.searchLocationOptions)(`classSearchButton`,`fal fa-search`)(`classClearButton`,`fal fa-times`),uy(),gE(o.filterEnquete?2:-1))},dependencies:[cy],styles:[`[_nghost-%COMP%]:not(.mobile){position:absolute;top:0;left:8px;margin-top:1em;z-index:var(--%NS%z-panel-overlay)}@media(min-width:576px)and (orientation:landscape),(min-width:768px){[_nghost-%COMP%]:not(.mobile){width:clamp(320px,38%,min(620px,100%))}}@media(max-width:767.98px){[_nghost-%COMP%]{right:1em}}.fake-filter[_ngcontent-%COMP%]{height:44px;margin-left:8px}`],changeDetection:1})}}return n})();var Jr
vendor: 21,161 bytes, line 24
24={$version:8,$root:{version:{required:!0,type:`enum`,values:[8]},name:{type:`string`},metadata:{type:`*`},center:{type:`array`,value:`number`,length:2},centerAltitude:{type:`number`},zoom:{type:`number`},bearing:{type:`number`,default:0,period:360,units:`degrees`},pitch:{type:`number`,default:0,units:`degrees`},roll:{type:`number`,default:0,units:`degrees`},state:{type:`state`,default:{}},light:{type:`light`},sky:{type:`sky`},projection:{type:`projection`},terrain:{type:`terrain`},sources:{required:!0,type:`sources`},sprite:{type:`sprite`},glyphs:{type:`string`},"font-faces":{type:`fontFaces`},transition:{type:`transition`},layers:{required:!0,type:`array`,value:`layer`}},sources:{"*":{type:`source`}},source:[`source_vector`,`source_raster`,`source_raster_dem`,`source_geojson`,`source_video`,`source_image`],source_vector:{type:{required:!0,type:`enum`,values:{vector:{}}},url:{type:`string`},tiles:{type:`array`,value:`string`},bounds:{type:`array`,value:`number`,length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:`enum`,values:{xyz:{},tms:{}},default:`xyz`},minzoom:{type:`number`,default:0},maxzoom:{type:`number`,default:22},attribution:{type:`string`},promoteId:{type:`promoteId`},volatile:{type:`boolean`,default:!1},encoding:{type:`enum`,values:{mvt:{},mlt:{}},default:`mvt`},"*":{type:`*`}},source_raster:{type:{required:!0,type:`enum`,values:{raster:{}}},url:{type:`string`},tiles:{type:`array`,value:`string`},bounds:{type:`array`,value:`number`,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:`number`,default:0},maxzoom:{type:`number`,default:22},tileSize:{type:`number`,default:512,units:`pixels`},scheme:{type:`enum`,values:{xyz:{},tms:{}},default:`xyz`},attribution:{type:`string`},volatile:{type:`boolean`,default:!1},"*":{type:`*`}},source_raster_dem:{type:{required:!0,type:`enum`,values:{"raster-dem":{}}},url:{type:`string`},tiles:{type:`array`,value:`string`},bounds:{type:`array`,value:`number`,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:`number`,default:0},maxzoom:{type:`number`,default:22},tileSize:{type:`number`,default:512,units:`pixels`},attribution:{type:`string`},encoding:{type:`enum`,values:{terrarium:{},mapbox:{},custom:{}},default:`mapbox`},redFactor:{type:`number`,default:1},blueFactor:{type:`number`,default:1},greenFactor:{type:`number`,default:1},baseShift:{type:`number`,default:0},volatile:{type:`boolean`,default:!1},"*":{type:`*`}},source_geojson:{type:{required:!0,type:`enum`,values:{geojson:{}}},data:{required:!0,type:`*`},maxzoom:{type:`number`,default:18},attribution:{type:`string`},buffer:{type:`number`,default:128,maximum:512,minimum:0},filter:{type:`filter`},tolerance:{type:`number`,default:.375},cluster:{type:`boolean`,default:!1},clusterRadius:{type:`number`,default:50,minimum:0},clusterMaxZoom:{type:`number`},clusterMinPoints:{type:`number`},clusterProperties:{type:`*`},lineMetrics:{type:`boolean`,default:!1},generateId:{type:`boolean`,default:!1},promoteId:{type:`promoteId`}},source_video:{type:{required:!0,type:`enum`,values:{video:{}}},urls:{required:!0,type:`array`,value:`string`},coordinates:{required:!0,type:`array`,length:4,value:{type:`array`,length:2,value:`number`}}},source_image:{type:{required:!0,type:`enum`,values:{image:{}}},url:{type:`string`},coordinates:{required:!0,type:`array`,length:4,value:{type:`array`,length:2,value:`number`}}},layer:{id:{type:`string`,required:!0},type:{type:`enum`,values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},background:{}},required:!0},metadata:{type:`*`},source:{type:`string`},"source-layer":{type:`string`},minzoom:{type:`number`,minimum:0,maximum:24},maxzoom:{type:`number`,minimum:0,maximum:24},filter:{type:`filter`},layout:{type:`layout`},paint:{type:`paint`}},layout:[`layout_fill`,`layout_line`,`layout_circle`,`layout_heatmap`,`layout_fill-extrusion`,`layout_symbol`,`layout_raster`,`layout_hillshade`,`layout_color-relief`,`layout_background`],layout_background:{visibility:{type:`enum`,values:{visible:{},none:{}},default:`visible`,expression:{interpolated:!1,parameters:[`global-state`]},"property-type":`data-constant`}},layout_fill:{"fill-sort-key":{type:`number`,expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},visibility:{type:`enum`,values:{visible:{},none:{}},default:`visible`,expression:{interpolated:!1,parameters:[`global-state`]},"property-type":`data-constant`}},layout_circle:{"circle-sort-key":{type:`number`,expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},visibility:{type:`enum`,values:{visible:{},none:{}},default:`visible`,expression:{interpolated:!1,parameters:[`global-state`]},"property-type":`data-constant`}},layout_heatmap:{visibility:{type:`enum`,values:{visible:{},none:{}},default:`visible`,expression:{interpolated:!1,parameters:[`global-state`]},"property-type":`data-constant`}},"layout_fill-extrusion":{visibility:{type:`enum`,values:{visible:{},none:{}},default:`visible`,expression:{interpolated:!1,parameters:[`global-state`]},"property-type":`data-constant`},"fill-extrusion-rounded-corner-distance":{type:`number`,default:0,minimum:0,units:`meters`,"property-type":`constant`}},layout_line:{"line-cap":{type:`enum`,values:{butt:{},round:{},square:{}},default:`butt`,expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"line-join":{type:`enum`,values:{bevel:{},round:{},miter:{}},default:`miter`,expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"line-miter-limit":{type:`number`,default:2,requires:[{"line-join":`miter`}],expression:{interpolated:!0,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"line-round-limit":{type:`number`,default:1.05,requires:[{"line-join":`round`}],expression:{interpolated:!0,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"line-sort-key":{type:`number`,expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},visibility:{type:`enum`,values:{visible:{},none:{}},default:`visible`,expression:{interpolated:!1,parameters:[`global-state`]},"property-type":`data-constant`}},layout_symbol:{"symbol-placement":{type:`enum`,values:{point:{},line:{},"line-center":{}},default:`point`,expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"symbol-spacing":{type:`number`,default:250,minimum:1,units:`pixels`,requires:[{"symbol-placement":`line`}],expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"symbol-avoid-edges":{type:`boolean`,default:!1,expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"symbol-sort-key":{type:`number`,expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"symbol-z-order":{type:`enum`,values:{auto:{},"viewport-y":{},source:{}},default:`auto`,expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"icon-allow-overlap":{type:`boolean`,default:!1,requires:[`icon-image`,{"!":`icon-overlap`}],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"icon-overlap":{type:`enum`,values:{never:{},always:{},cooperative:{}},requires:[`icon-image`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"icon-ignore-placement":{type:`boolean`,default:!1,requires:[`icon-image`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"icon-optional":{type:`boolean`,default:!1,requires:[`icon-image`,`text-field`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"icon-rotation-alignment":{type:`enum`,values:{map:{},viewport:{},auto:{}},default:`auto`,requires:[`icon-image`],expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"icon-size":{type:`number`,default:1,minimum:0,units:`factor of the original icon size`,requires:[`icon-image`],expression:{interpolated:!0,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"icon-text-fit":{type:`enum`,values:{none:{},width:{},height:{},both:{}},default:`none`,requires:[`icon-image`,`text-field`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"icon-text-fit-padding":{type:`array`,value:`number`,length:4,default:[0,0,0,0],units:`pixels`,requires:[`icon-image`,`text-field`,{"icon-text-fit":[`both`,`width`,`height`]}],expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"icon-image":{type:`resolvedImage`,tokens:!0,expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"icon-rotate":{type:`number`,default:0,period:360,units:`degrees`,requires:[`icon-image`],expression:{interpolated:!0,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"icon-padding":{type:`padding`,default:[2],units:`pixels`,requires:[`icon-image`],expression:{interpolated:!0,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"icon-keep-upright":{type:`boolean`,default:!1,requires:[`icon-image`,{"icon-rotation-alignment":`map`},{"symbol-placement":[`line`,`line-center`]}],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"icon-offset":{type:`array`,value:`number`,length:2,default:[0,0],requires:[`icon-image`],expression:{interpolated:!0,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"icon-anchor":{type:`enum`,values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:`center`,requires:[`icon-image`],expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"icon-pitch-alignment":{type:`enum`,values:{map:{},viewport:{},auto:{}},default:`auto`,requires:[`icon-image`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"text-pitch-alignment":{type:`enum`,values:{map:{},viewport:{},auto:{}},default:`auto`,requires:[`text-field`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"text-rotation-alignment":{type:`enum`,values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:`auto`,requires:[`text-field`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"text-field":{type:`formatted`,default:``,tokens:!0,expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"text-font":{type:`array`,value:`string`,default:[`Open Sans Regular`,`Arial Unicode MS Regular`],requires:[`text-field`],expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"text-size":{type:`number`,default:16,minimum:0,units:`pixels`,requires:[`text-field`],expression:{interpolated:!0,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"text-max-width":{type:`number`,default:10,minimum:0,units:`ems`,requires:[`text-field`],expression:{interpolated:!0,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"text-line-height":{type:`number`,default:1.2,units:`ems`,requires:[`text-field`],expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"text-letter-spacing":{type:`number`,default:0,units:`ems`,requires:[`text-field`],expression:{interpolated:!0,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"text-justify":{type:`enum`,values:{auto:{},left:{},center:{},right:{}},default:`center`,requires:[`text-field`],expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"text-radial-offset":{type:`number`,units:`ems`,default:0,requires:[`text-field`],"property-type":`data-driven`,expression:{interpolated:!0,parameters:[`zoom`,`feature`]}},"text-variable-anchor":{type:`array`,value:`enum`,values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:[`text-field`,{"symbol-placement":[`point`]}],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"text-variable-anchor-offset":{type:`variableAnchorOffsetCollection`,requires:[`text-field`,{"symbol-placement":[`point`]}],expression:{interpolated:!0,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"text-anchor":{type:`enum`,values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:`center`,requires:[`text-field`,{"!":`text-variable-anchor`}],expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"text-max-angle":{type:`number`,default:45,units:`degrees`,requires:[`text-field`,{"symbol-placement":[`line`,`line-center`]}],expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"text-writing-mode":{type:`array`,value:`enum`,values:{horizontal:{},vertical:{}},requires:[`text-field`,{"symbol-placement":[`point`]}],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"text-rotate":{type:`number`,default:0,period:360,units:`degrees`,requires:[`text-field`],expression:{interpolated:!0,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"text-padding":{type:`number`,default:2,minimum:0,units:`pixels`,requires:[`text-field`],expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"text-keep-upright":{type:`boolean`,default:!0,requires:[`text-field`,{"text-rotation-alignment":`map`},{"symbol-placement":[`line`,`line-center`]}],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"text-transform":{type:`enum`,values:{none:{},uppercase:{},lowercase:{}},default:`none`,requires:[`text-field`],expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"text-offset":{type:`array`,value:`number`,units:`ems`,length:2,default:[0,0],requires:[`text-field`,{"!":`text-radial-offset`}],expression:{interpolated:!0,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"text-allow-overlap":{type:`boolean`,default:!1,requires:[`text-field`,{"!":`text-overlap`}],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"text-overlap":{type:`enum`,values:{never:{},always:{},cooperative:{}},requires:[`text-field`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"text-ignore-placement":{type:`boolean`,default:!1,requires:[`text-field`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"text-optional":{type:`boolean`,default:!1,requires:[`text-field`,`icon-image`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"symbol-height-offset":{type:`number`,default:0,units:`meters`,requires:[{"symbol-placement":[`point`]}],expression:{interpolated:!0,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},"symbol-height-anchor":{type:`enum`,values:{ground:{},absolute:{}},default:`ground`,requires:[`symbol-height-offset`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},visibility:{type:`enum`,values:{visible:{},none:{}},default:`visible`,expression:{interpolated:!1,parameters:[`global-state`]},"property-type":`data-constant`}},layout_raster:{visibility:{type:`enum`,values:{visible:{},none:{}},default:`visible`,expression:{interpolated:!1,parameters:[`global-state`]},"property-type":`data-constant`}},layout_hillshade:{visibility:{type:`enum`,values:{visible:{},none:{}},default:`visible`,expression:{interpolated:!1,parameters:[`global-state`]},"property-type":`data-constant`}},"layout_color-relief":{visibility:{type:`enum`,values:{visible:{},none:{}},default:`visible`,expression:{interpolated:!1,parameters:[`global-state`]},"property-type":`data-constant`}},filter:{type:`boolean`,expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`data-driven`},filter_operator:{type:`enum`,values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:`enum`,values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:`expression`},stops:{type:`array`,value:`function_stop`},base:{type:`number`,default:1,minimum:0},property:{type:`string`,default:`$zoom`},type:{type:`enum`,values:{identity:{},exponential:{},interval:{},categorical:{}},default:`exponential`},colorSpace:{type:`enum`,values:{rgb:{},lab:{},hcl:{}},default:`rgb`},default:{type:`*`,required:!1}},function_stop:{type:`array`,minimum:0,maximum:24,value:[`number`,`color`],length:2},expression:{type:`array`,value:`expression_name`,minimum:1},light:{anchor:{type:`enum`,default:`viewport`,values:{map:{},viewport:{}},"property-type":`data-constant`,transition:!1,expression:{interpolated:!1,parameters:[`zoom`]}},position:{type:`array`,default:[1.15,210,30],length:3,value:`number`,"property-type":`data-constant`,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]}},color:{type:`color`,"property-type":`data-constant`,default:`#ffffff`,expression:{interpolated:!0,parameters:[`zoom`]},transition:!0},intensity:{type:`number`,"property-type":`data-constant`,default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[`zoom`]},transition:!0}},sky:{"sky-color":{type:`color`,"property-type":`data-constant`,default:`#88C6FC`,expression:{interpolated:!0,parameters:[`zoom`]},transition:!0},"horizon-color":{type:`color`,"property-type":`data-constant`,default:`#ffffff`,expression:{interpolated:!0,parameters:[`zoom`]},transition:!0},"fog-color":{type:`color`,"property-type":`data-constant`,default:`#ffffff`,expression:{interpolated:!0,parameters:[`zoom`]},transition:!0},"fog-ground-blend":{type:`number`,"property-type":`data-constant`,default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[`zoom`]},transition:!0},"horizon-fog-blend":{type:`number`,"property-type":`data-constant`,default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[`zoom`]},transition:!0},"sky-horizon-blend":{type:`number`,"property-type":`data-constant`,default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[`zoom`]},transition:!0},"atmosphere-blend":{type:`number`,"property-type":`data-constant`,default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[`zoom`]},transition:!0}},terrain:{source:{type:`string`,required:!0},exaggeration:{type:`number`,minimum:0,default:1}},projection:{type:{type:`projectionDefinition`,default:`mercator`,"property-type":`data-constant`,transition:!1,expression:{interpolated:!0,parameters:[`zoom`]}}},paint:[`paint_fill`,`paint_line`,`paint_circle`,`paint_heatmap`,`paint_fill-extrusion`,`paint_symbol`,`paint_raster`,`paint_hillshade`,`paint_color-relief`,`paint_background`],paint_fill:{"fill-antialias":{type:`boolean`,default:!0,expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"fill-opacity":{type:`number`,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"fill-layer-opacity":{type:`number`,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`,`global-state`]},"property-type":`data-constant`},"fill-color":{type:`color`,default:`#000000`,transition:!0,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"fill-outline-color":{type:`color`,transition:!0,requires:[{"!":`fill-pattern`},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"fill-translate":{type:`array`,value:`number`,length:2,default:[0,0],transition:!0,units:`pixels`,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"fill-translate-anchor":{type:`enum`,values:{map:{},viewport:{}},default:`map`,requires:[`fill-translate`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"fill-pattern":{type:`resolvedImage`,transition:!0,expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`cross-faded-data-driven`}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:`number`,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"fill-extrusion-color":{type:`color`,default:`#000000`,transition:!0,requires:[{"!":`fill-extrusion-pattern`}],expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"fill-extrusion-translate":{type:`array`,value:`number`,length:2,default:[0,0],transition:!0,units:`pixels`,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"fill-extrusion-translate-anchor":{type:`enum`,values:{map:{},viewport:{}},default:`map`,requires:[`fill-extrusion-translate`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"fill-extrusion-pattern":{type:`resolvedImage`,transition:!0,expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`cross-faded-data-driven`},"fill-extrusion-height":{type:`number`,default:0,
vendor: 897 bytes, line 24
24minimum:0,units:`meters`,transition:!0,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"fill-extrusion-base":{type:`number`,default:0,minimum:0,units:`meters`,transition:!0,requires:[`fill-extrusion-height`],expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"fill-extrusion-vertical-gradient":{type:`boolean`,default:!0,transition:!1,expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`}},paint_line:{"line-opacity":{type:`number`,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"line-layer-opacity":{type:`number`,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`,`global-state`]},"property-type":`data-constant
vendor: 12,723 bytes, line 24
24`},"line-color":{type:`color`,default:`#000000`,transition:!0,requires:[{"!":`line-pattern`}],expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"line-translate":{type:`array`,value:`number`,length:2,default:[0,0],transition:!0,units:`pixels`,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"line-translate-anchor":{type:`enum`,values:{map:{},viewport:{}},default:`map`,requires:[`line-translate`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"line-width":{type:`number`,default:1,minimum:0,transition:!0,units:`pixels`,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"line-gap-width":{type:`number`,default:0,minimum:0,transition:!0,units:`pixels`,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"line-offset":{type:`number`,default:0,transition:!0,units:`pixels`,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"line-blur":{type:`number`,default:0,minimum:0,transition:!0,units:`pixels`,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"line-dasharray":{type:`array`,value:`number`,minimum:0,transition:!0,units:`line widths`,requires:[{"!":`line-pattern`}],expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`cross-faded-data-driven`},"line-pattern":{type:`resolvedImage`,transition:!0,expression:{interpolated:!1,parameters:[`zoom`,`feature`]},"property-type":`cross-faded-data-driven`},"line-gradient":{type:`color`,transition:!1,requires:[{"!":`line-dasharray`},{"!":`line-pattern`},{source:`geojson`,has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:[`line-progress`]},"property-type":`color-ramp`}},paint_circle:{"circle-radius":{type:`number`,default:5,minimum:0,transition:!0,units:`pixels`,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"circle-color":{type:`color`,default:`#000000`,transition:!0,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"circle-blur":{type:`number`,default:0,transition:!0,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"circle-opacity":{type:`number`,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"circle-translate":{type:`array`,value:`number`,length:2,default:[0,0],transition:!0,units:`pixels`,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"circle-translate-anchor":{type:`enum`,values:{map:{},viewport:{}},default:`map`,requires:[`circle-translate`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"circle-pitch-scale":{type:`enum`,values:{map:{},viewport:{}},default:`map`,expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"circle-pitch-alignment":{type:`enum`,values:{map:{},viewport:{}},default:`viewport`,expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"circle-stroke-width":{type:`number`,default:0,minimum:0,transition:!0,units:`pixels`,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"circle-stroke-color":{type:`color`,default:`#000000`,transition:!0,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"circle-stroke-opacity":{type:`number`,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`}},paint_heatmap:{"heatmap-radius":{type:`number`,default:30,minimum:1,transition:!0,units:`pixels`,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"heatmap-weight":{type:`number`,default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"heatmap-intensity":{type:`number`,default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"heatmap-color":{type:`color`,default:[`interpolate`,[`linear`],[`heatmap-density`],0,`rgba(0, 0, 255, 0)`,.1,`royalblue`,.3,`cyan`,.5,`lime`,.7,`yellow`,1,`red`],transition:!1,expression:{interpolated:!0,parameters:[`heatmap-density`]},"property-type":`color-ramp`},"heatmap-opacity":{type:`number`,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`}},paint_symbol:{"icon-opacity":{type:`number`,default:1,minimum:0,maximum:1,transition:!0,requires:[`icon-image`],expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"icon-color":{type:`color`,default:`#000000`,transition:!0,requires:[`icon-image`],expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"icon-halo-color":{type:`color`,default:`rgba(0, 0, 0, 0)`,transition:!0,requires:[`icon-image`],expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"icon-halo-width":{type:`number`,default:0,minimum:0,transition:!0,units:`pixels`,requires:[`icon-image`],expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"icon-halo-blur":{type:`number`,default:0,minimum:0,transition:!0,units:`pixels`,requires:[`icon-image`],expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"icon-translate":{type:`array`,value:`number`,length:2,default:[0,0],transition:!0,units:`pixels`,requires:[`icon-image`],expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"icon-translate-anchor":{type:`enum`,values:{map:{},viewport:{}},default:`map`,requires:[`icon-image`,`icon-translate`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"text-opacity":{type:`number`,default:1,minimum:0,maximum:1,transition:!0,requires:[`text-field`],expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"text-color":{type:`color`,default:`#000000`,transition:!0,overridable:!0,requires:[`text-field`],expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"text-halo-color":{type:`color`,default:`rgba(0, 0, 0, 0)`,transition:!0,requires:[`text-field`],expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"text-halo-width":{type:`number`,default:0,minimum:0,transition:!0,units:`pixels`,requires:[`text-field`],expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"text-halo-blur":{type:`number`,default:0,minimum:0,transition:!0,units:`pixels`,requires:[`text-field`],expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"text-translate":{type:`array`,value:`number`,length:2,default:[0,0],transition:!0,units:`pixels`,requires:[`text-field`],expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"text-translate-anchor":{type:`enum`,values:{map:{},viewport:{}},default:`map`,requires:[`text-field`,`text-translate`],expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`}},paint_raster:{"raster-opacity":{type:`number`,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"raster-hue-rotate":{type:`number`,default:0,period:360,transition:!0,units:`degrees`,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"raster-brightness-min":{type:`number`,default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"raster-brightness-max":{type:`number`,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"raster-saturation":{type:`number`,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"raster-contrast":{type:`number`,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},resampling:{type:`enum`,values:{linear:{},nearest:{}},default:`linear`,expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"raster-resampling":{type:`enum`,values:{linear:{},nearest:{}},default:`linear`,expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"raster-fade-duration":{type:`number`,default:300,minimum:0,transition:!1,units:`milliseconds`,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`}},paint_hillshade:{"hillshade-illumination-direction":{type:`numberArray`,default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"hillshade-illumination-altitude":{type:`numberArray`,default:45,minimum:0,maximum:90,transition:!1,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"hillshade-illumination-anchor":{type:`enum`,values:{map:{},viewport:{}},default:`viewport`,expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"hillshade-exaggeration":{type:`number`,default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"hillshade-shadow-color":{type:`colorArray`,default:`#000000`,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"hillshade-highlight-color":{type:`colorArray`,default:`#FFFFFF`,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"hillshade-accent-color":{type:`color`,default:`#000000`,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"hillshade-method":{type:`enum`,values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:`standard`,expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},resampling:{type:`enum`,values:{linear:{},nearest:{}},default:`linear`,expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`}},"paint_color-relief":{"color-relief-opacity":{type:`number`,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"color-relief-color":{type:`color`,transition:!1,expression:{interpolated:!0,parameters:[`elevation`]},"property-type":`color-ramp`},resampling:{type:`enum`,values:{linear:{},nearest:{}},default:`linear`,expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`}},paint_background:{"background-color":{type:`color`,default:`#000000`,transition:!0,requires:[{"!":`background-pattern`}],expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"background-pattern":{type:`resolvedImage`,transition:!0,expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`cross-faded`},"background-opacity":{type:`number`,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`}},transition:{duration:{type:`number`,default:300,minimum:0,units:`milliseconds`},delay:{type:`number`,default:0,minimum:0,units:`milliseconds`}},"property-type":{"data-driven":{type:`property-type`},"cross-faded":{type:`property-type`},"cross-faded-data-driven":{type:`property-type`},"color-ramp":{type:`property-type`},"data-constant":{type:`property-type`},constant:{type:`property-type`}},promoteId:{"*":{type:`string`}},interpolation:{type:`array`,value:`interpolation_name`,minimum:1},interpolation_name:{type:`enum`,values:{linear:{syntax:{overloads:[{parameters:[],"output-type":`interpolation`}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:[`base`],"output-type":`interpolation`}],parameters:[{name:`base`,type:`number literal`}]}},"cubic-bezier":{syntax:{overloads:[{parameters:[`x1`,`y1`,`x2`,`y2`],"output-type":`interpolation`}],parameters:[{name:`x1`,type:`number literal`},{name:`y1`,type:`number literal`},{name:`x2`,type:`number literal`},{name:`y2`,type:`number literal`}]}}}}};
24var ll=[`type`,`source`,`source-layer`,`minzoom`,`maxzoom`,`filter`,`layout`];function Bu(n,t){let e={};for(let r in n)r!==`ref`&&(e[r]=n[r]);return ll.forEach(r=>{r in t&&(e[r]=t[r])}),e}function wi(n){n=n.slice();let t=Object.create(null);for(let e=0;e<n.length;e++)t[n[e].id]=n[e];for(let e=0;e<n.length;e++)`ref`in n[e]&&(n[e]=Bu(n[e],t[n[e].ref]));return n}var Rt={kind:`null`};var h={kind:`number`};var x={kind:`string`};var T={kind:`boolean`};var ye={kind:`color`};var Ft$1={kind:`projectionDefinition`};var $e$1={kind:`object`};var v={kind:`value`};var cl={kind:`error`};var wt$1={kind:`collator`};var zt={kind:`formatted`};var jt$1={kind:`padding`};var Ct={kind:`colorArray`};var $t={kind:`numberArray`};var st={kind:`resolvedImage`};var Vt$1={kind:`variableAnchorOffsetCollection`};function ne$1(n,t){return{kind:`array`,itemType:n,N:t}}function V(n){if(n.kind===`array`){let t=V(n.itemType);return typeof n.N==`number`?`array<${t}, ${n.N}>`:n.itemType.kind===`value`?`array`:`array<${t}>`}else return n.kind}var Gu=[Rt,h,x,T,ye,Ft$1,zt,$e$1,ne$1(v),jt$1,$t,Ct,st,Vt$1];function xt$1(n,t){if(t.kind===`error`)return null;if(n.kind===`array`){if(t.kind===`array`&&(t.N===0&&t.itemType.kind===`value`||!xt$1(n.itemType,t.itemType))&&(typeof n.N!=`number`||n.N===t.N))return null}else{if(n.kind===t.kind)return null;if(n.kind===`value`){for(let e of Gu)if(!xt$1(e,t))return null}}return`Expected ${V(n)} but found ${V(t)} instead.`}function hn(n,t){return t.some(e=>e.kind===n.kind)}function Ke$1(n,t){return t.some(e=>e===`null`?n===null:e===`array`?Array.isArray(n):e===`object`?n&&!Array.isArray(n)&&typeof n==`object`:e===typeof n)}function lt$1(n,t){return n.kind===`array`&&t.kind===`array`?n.itemType.kind===t.itemType.kind&&typeof n.N==`number`:n.kind===t.kind}var ul=.13793103448275862;var gn=6/29;var pl=3*gn*gn;var qu=gn*gn*gn;var Hu=Math.PI/180;var Wu=180/Math.PI;function dl(n){return n=n%360,n<0&&(n+=360),n}function Mi([n,t,e,r]){n=Ci(n),t=Ci(t),e=Ci(e);let o,i,a=Si((.2225045*n+.7168786*t+.0606169*e)/1);n===t&&t===e?o=i=a:(o=Si((.4360747*n+.3850649*t+.1430804*e)/.96422),i=Si((.0139322*n+.0971045*t+.7141733*e)/.82521));let s=116*a-16;return[s<0?0:s,500*(o-a),200*(a-i),r]}function Ci(n){return n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Si(n){return n>qu?Math.pow(n,1/3):n/pl+ul}function ki([n,t,e,r]){let o=(n+16)/116,i=isNaN(t)?o:o+t/500,a=isNaN(e)?o:o-e/200;return o=1*Ei(o),i=.96422*Ei(i),a=.82521*Ei(a),[Ti(3.1338561*i-1.6168667*o-.4906146*a),Ti(-.9787684*i+1.9161415*o+.033454*a),Ti(.0719453*i-.2289914*o+1.4052427*a),r]}function Ti(n){return n=n<=.00304?12.92*n:1.055*Math.pow(n,1/2.4)-.055,n<0?0:n>1?1:n}function Ei(n){return n>gn?n*n*n:pl*(n-ul)}function fl(n){let[t,e,r,o]=Mi(n),i=Math.sqrt(e*e+r*r);return[Math.round(i*1e4)?dl(Math.atan2(r,e)*Wu):NaN,i,t,o]}function ml([n,t,e,r]){return n=isNaN(n)?0:n*Hu,ki([e,Math.cos(n)*t,Math.sin(n)*t,r])}function hl([n,t,e,r]){n=dl(n),t/=100,e/=100;function o(i){let a=(i+n/30)%12,s=t*Math.min(e,1-e);return e-s*Math.max(-1,Math.min(a-3,9-a,1))}return[o(0),o(8),o(4),r]}var Zu=Object.hasOwn||function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};function Xr(n,t){return Zu(n,t)?n[t]:void 0}function bl(n){if(n=n.toLowerCase().trim(),n===`transparent`)return[0,0,0,0];let t=Xr(Ku,n);if(t){let[r,o,i]=t;return[r/255,o/255,i/255,1]}if(n.startsWith(`#`)&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(n)){let r=n.length<6?1:2,o=1;return[Qr(n.slice(o,o+=r)),Qr(n.slice(o,o+=r)),Qr(n.slice(o,o+=r)),Qr(n.slice(o,o+r)||`ff`)]}if(n.startsWith(`rgb`)){let r=n.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(r){let[o,i,a,s,l,c,u,p,f,m,d,_]=r,I=[s||` `,u||` `,m].join(``);if(I===` `||I===` /`||I===`,,`||I===`,,,`){let M=[a,c,f].join(``),X=M===`%%%`?100:M===``?255:0;if(X){let N=[yn(+i/X,0,1),yn(+l/X,0,1),yn(+p/X,0,1),d?gl(+d,_):1];if(yl(N))return N}}return}}let e=n.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(e){let[r,o,i,a,s,l,c,u,p]=e,f=[i||` `,s||` `,c].join(``);if(f===` `||f===` /`||f===`,,`||f===`,,,`){let m=[+o,yn(+a,0,100),yn(+l,0,100),u?gl(+u,p):1];if(yl(m))return hl(m)}}}function Qr(n){return parseInt(n.padEnd(2,n),16)/255}function gl(n,t){return yn(t?n/100:n,0,1)}function yn(n,t,e){return Math.min(Math.max(t,n),e)}function yl(n){return!n.some(Number.isNaN)}var Ku={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
vendor: 4,408 bytes, line 24
24ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};function Ve(n,t,e){return n+e*(t-n)}function Ye$1(n,t,e){return n.map((r,o)=>Ve(r,t[o],e))}var F=class Je{constructor(t,e,r,o=1,i=!0){this.r=t,this.g=e,this.b=r,this.a=o,i||(this.r*=o,this.g*=o,this.b*=o,o||this.overwriteGetter(`rgb`,[t,e,r,o]))}static{this.black=new Je(0,0,0,1)}static{this.white=new Je(1,1,1,1)}static{this.transparent=new Je(0,0,0,0)}static{this.red=new Je(1,0,0,1)}static parse(t){if(t instanceof Je)return t;if(typeof t!=`string`)return;let e=bl(t);if(e)return new Je(...e,!1)}get rgb(){let{r:t,g:e,b:r,a:o}=this,i=o||Infinity;return this.overwriteGetter(`rgb`,[t/i,e/i,r/i,o])}get hcl(){return this.overwriteGetter(`hcl`,fl(this.rgb))}get lab(){return this.overwriteGetter(`lab`,Mi(this.rgb))}overwriteGetter(t,e){return Object.defineProperty(this,t,{value:e}),e}toString(){let[t,e,r,o]=this.rgb;return`rgba(${[t,e,r].map(i=>Math.round(i*255)).join(`,`)},${o})`}static interpolate(t,e,r,o=`rgb`){switch(o){case`rgb`:{let[i,a,s,l]=Ye$1(t.rgb,e.rgb,r);return new Je(i,a,s,l,!1)}case`hcl`:{let[i,a,s,l]=t.hcl,[c,u,p,f]=e.hcl,m,d;if(!isNaN(i)&&!isNaN(c)){let N=c-i;c>i&&N>180?N-=360:c<i&&i-c>180&&(N+=360),m=i+r*N}else isNaN(i)?isNaN(c)?m=NaN:(m=c,(s===1||s===0)&&(d=u)):(m=i,(p===1||p===0)&&(d=a));let[_,I,M,X]=ml([m,d??Ve(a,u,r),Ve(s,p,r),Ve(l,f,r)]);return new Je(_,I,M,X,!1)}case`lab`:{let[i,a,s,l]=ki(Ye$1(t.lab,e.lab,r));return new Je(i,a,s,l,!1)}}}};var vl=[`bottom`,`center`,`top`];var to$1=class{constructor(n,t,e,r,o,i){this.text=n,this.image=t,this.scale=e,this.fontStack=r,this.textColor=o,this.verticalAlign=i}};var St$1=class eo{constructor(t){this.sections=t}static fromString(t){return new eo([new to$1(t,null,null,null,null,null)])}isEmpty(){return this.sections.length===0?!0:!this.sections.some(t=>t.text.length!==0||t.image&&t.image.name.length!==0)}static factory(t){return t instanceof eo?t:eo.fromString(t)}toString(){return this.sections.length===0?``:this.sections.map(t=>t.text).join(``)}};var Ue=class tr{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof tr)return t;if(typeof t==`number`)return new tr([t,t,t,t]);if(Array.isArray(t)&&!(t.length<1||t.length>4)){for(let e of t)if(typeof e!=`number`)return;switch(t.length){case 1:t=[t[0],t[0],t[0],t[0]];break;case 2:t=[t[0],t[1],t[0],t[1]];break;case 3:t=[t[0],t[1],t[2],t[1]]}return new tr(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,e,r){return new tr(Ye$1(t.values,e.values,r))}};var Be=class nr{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof nr)return t;if(typeof t==`number`)return new nr([t]);if(Array.isArray(t)){for(let e of t)if(typeof e!=`number`)return;return new nr(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,e,r){return new nr(Ye$1(t.values,e.values,r))}};var Ee=class rr{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof rr)return t;if(typeof t==`string`){let r=F.parse(t);return r?new rr([r]):void 0}if(!Array.isArray(t))return;let e=[];for(let r of t){if(typeof r!=`string`)return;let o=F.parse(r);if(!o)return;e.push(o)}return new rr(e)}toString(){return JSON.stringify(this.values)}static interpolate(t,e,r,o=`rgb`){let i=[];if(t.values.length!=e.values.length)throw new Error(`colorArray: Arrays have mismatched length (${t.values.length} vs. ${e.values.length}), cannot interpolate.`);for(let a=0;a<t.values.length;a++)i.push(F.interpolate(t.values[a],e.values[a],r,o));return new rr(i)}};
24var O=class extends Error{constructor(n,t){super(n),this.name=`RuntimeError`,this.path=t}toJSON(){return this.message}};var Yu=new Set([`center`,`left`,`right`,`top`,`bottom`,`top-left`,`top-right`,`bottom-left`,`bottom-right`]);var Ge=class no{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof no)return t;if(!(!Array.isArray(t)||t.length<1||t.length%2!==0)){for(let e=0;e<t.length;e+=2){let r=t[e],o=t[e+1];if(typeof r!=`string`||!Yu.has(r)||!Array.isArray(o)||o.length!==2||typeof o[0]!=`number`||typeof o[1]!=`number`)return}return new no(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,e,r,o){let i=t.values,a=e.values;if(i.length!==a.length)throw new O(`Cannot interpolate values of different length. from: ${t.toString()}, to: ${e.toString()}`,o);let s=[];for(let l=0;l<i.length;l+=2){if(i[l]!==a[l])throw new O(`Cannot interpolate values containing mismatched anchors. from[${l}]: ${i[l]}, to[${l}]: ${a[l]}`,o);s.push(i[l]);let[c,u]=i[l+1],[p,f]=a[l+1];s.push([Ve(c,p,r),Ve(u,f,r)])}return new no(s)}};var Xe$1=class _l{constructor(t){this.name=t.name,this.available=t.available}toString(){return this.name}static fromString(t){return t?new _l({name:t,available:!1}):null}};var Qe$1=class bn{constructor(t,e,r){this.from=t,this.to=e,this.transition=r}toString(){return this.from===this.to&&this.transition===1?this.from:JSON.stringify([this.from,this.to,this.transition])}static interpolate(t,e,r){return new bn(t,e,r)}static parse(t){if(t instanceof bn)return t;if(Array.isArray(t)&&t.length===3&&typeof t[0]==`string`&&typeof t[1]==`string`&&typeof t[2]==`number`)return new bn(t[0],t[1],t[2]);if(typeof t==`object`&&typeof t.from==`string`&&typeof t.to==`string`&&typeof t.transition==`number`)return new bn(t.from,t.to,t.transition);if(typeof t==`string`)return new bn(t,t,1)}};var or$1=class{constructor(n,t,e){n?this.sensitivity=t?`variant`:`case`:this.sensitivity=t?`accent`:`base`,this.locale=e,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:`search`})}compare(n,t){return this.collator.compare(n,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}};
vendor: 34,596 bytes, line 24
24function ro$1(n,t,e,r){return typeof n==`number`&&n>=0&&n<=255&&typeof t==`number`&&t>=0&&t<=255&&typeof e==`number`&&e>=0&&e<=255?typeof r>`u`||typeof r==`number`&&r>=0&&r<=1?null:`Invalid rgba value [${[n,t,e,r].join(`, `)}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof r==`number`?[n,t,e,r]:[n,t,e]).join(`, `)}]: 'r', 'g', and 'b' must be between 0 and 255.`}function et(n){if(n===null||typeof n==`string`||typeof n==`boolean`||typeof n==`number`||n instanceof Qe$1||n instanceof F||n instanceof or$1||n instanceof St$1||n instanceof Ue||n instanceof Be||n instanceof Ee||n instanceof Ge||n instanceof Xe$1)return!0;if(Array.isArray(n)){for(let t of n)if(!et(t))return!1;return!0}else if(typeof n==`object`){for(let t in n)if(!et(n[t]))return!1;return!0}else return!1}function z(n){if(n===null)return Rt;if(typeof n==`string`)return x;if(typeof n==`boolean`)return T;if(typeof n==`number`)return h;if(n instanceof F)return ye;if(n instanceof Qe$1)return Ft$1;if(n instanceof or$1)return wt$1;if(n instanceof St$1)return zt;if(n instanceof Ue)return jt$1;if(n instanceof Be)return $t;if(n instanceof Ee)return Ct;if(n instanceof Ge)return Vt$1;if(n instanceof Xe$1)return st;if(Array.isArray(n)){let t=n.length,e;for(let r of n){let o=z(r);if(!e)e=o;else{if(e===o)continue;e=v;break}}return ne$1(e||v,t)}else return $e$1}function Tt$1(n){let t=typeof n;return n===null?``:t===`string`||t===`number`||t===`boolean`?String(n):n instanceof F||n instanceof Qe$1||n instanceof St$1||n instanceof Ue||n instanceof Be||n instanceof Ee||n instanceof Ge||n instanceof Xe$1?n.toString():JSON.stringify(n)}var ct=class xl{constructor(t,e){this.type=t,this.value=e}static parse(t,e){if(t.length!==2)return e.error(`'literal' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!et(t[1]))return e.error(`invalid value of type "${typeof t[1]}"`);let r=t[1],o=z(r),i=e.expectedType;return o.kind===`array`&&o.N===0&&i&&i.kind===`array`&&(typeof i.N!=`number`||i.N===0)&&(o=i),new xl(o,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}};var Ju=[`Unknown`,`Point`,`LineString`,`Polygon`];var oo$1=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache=new Map,this.availableImages=null,this.canonical=null}id(){return this.feature&&`id`in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type==`number`?Ju[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&`geometry`in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(n){let t=this._parseColorCache.get(n);return t||(t=F.parse(n),this._parseColorCache.set(n,t)),t}};function io$1(n,t,e){let r=n.length-1,o=0,i=r,a=0,s,l;for(;o<=i;)if(a=Math.floor((o+i)/2),s=n[a],l=n[a+1],s<=t){if(a===r||t<l)return a;o=a+1}else if(s>t)i=a-1;else throw new O(`Input is not a number.`,e);return 0}var ao$1=class wl{constructor(t,e,r,o){this.type=t,this.input=e,this.key=o,this.labels=[],this.outputs=[];for(let[i,a]of r)this.labels.push(i),this.outputs.push(a)}static parse(t,e){if(t.length-1<4)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!==0)return e.error(`Expected an even number of arguments.`);let r=e.parse(t[1],1,h);if(!r)return null;let o=[],i=null;e.expectedType&&e.expectedType.kind!==`value`&&(i=e.expectedType);for(let a=1;a<t.length;a+=2){let s=a===1?-Infinity:t[a],l=t[a+1],c=a,u=a+1;if(typeof s!=`number`)return e.error(`Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.`,c);if(o.length&&o[o.length-1][0]>=s)return e.error(`Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.`,c);let p=e.parse(l,u,i);if(!p)return null;i=i||p.type,o.push([s,p])}return new wl(i,r,o,e.key)}evaluate(t){let e=this.labels,r=this.outputs;if(e.length===1)return r[0].evaluate(t);let o=this.input.evaluate(t);if(o<=e[0])return r[0].evaluate(t);let i=e.length;return o>=e[i-1]?r[i-1].evaluate(t):r[io$1(e,o,this.key)].evaluate(t)}eachChild(t){t(this.input);for(let e of this.outputs)t(e)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};function Cl(n,t,e,r){let o=3*n,i=3*(e-n)-o,a=1-o-i,s=3*t,l=3*(r-t)-s,c=1-s-l;return function(p,f=1e-6){if(p<=0)return 0;if(p>=1)return 1;let m=p;for(let I=0;I<8;I++){let M=((a*m+i)*m+o)*m-p;if(Math.abs(M)<f)return((c*m+l)*m+s)*m;let X=(3*a*m+2*i)*m+o;if(Math.abs(X)<1e-6)break;m-=M/X}let d=0,_=1;m=p;for(let I=0;I<20;I++){let M=((a*m+i)*m+o)*m;if(Math.abs(M-p)<f)break;p>M?d=m:_=m,m=(d+_)*.5}return((c*m+l)*m+s)*m}}var ut=class Ai{constructor(t,e,r,o,i,a){this.type=t,this.operator=e,this.interpolation=r,this.input=o,this.key=a,this.labels=[],this.outputs=[];for(let[s,l]of i)this.labels.push(s),this.outputs.push(l)}static interpolationFactor(t,e,r,o){let i=0;if(t.name===`exponential`)i=Ii(e,t.base,r,o);else if(t.name===`linear`)i=Ii(e,1,r,o);else if(t.name===`cubic-bezier`){let a=t.controlPoints;i=Cl(a[0],a[1],a[2],a[3])(Ii(e,1,r,o))}return i}static parse(t,e){let[r,o,i,...a]=t;if(!Array.isArray(o)||o.length===0)return e.error(`Expected an interpolation type expression.`,1);if(o[0]===`linear`)o={name:`linear`};else if(o[0]===`exponential`){let c=o[1];if(typeof c!=`number`)return e.error(`Exponential interpolation requires a numeric base.`,1,1);o={name:`exponential`,base:c}}else if(o[0]===`cubic-bezier`){let c=o.slice(1);if(c.length!==4||c.some(u=>typeof u!=`number`||u<0||u>1))return e.error(`Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.`,1);o={name:`cubic-bezier`,controlPoints:c}}else return e.error(`Unknown interpolation type ${String(o[0])}`,1,0);if(t.length-1<4)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!==0)return e.error(`Expected an even number of arguments.`);if(i=e.parse(i,2,h),!i)return null;let s=[],l=null;(r===`interpolate-hcl`||r===`interpolate-lab`)&&e.expectedType!=Ct?l=ye:e.expectedType&&e.expectedType.kind!==`value`&&(l=e.expectedType);for(let c=0;c<a.length;c+=2){let u=a[c],p=a[c+1],f=c+3,m=c+4;if(typeof u!=`number`)return e.error(`Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.`,f);if(s.length&&s[s.length-1][0]>=u)return e.error(`Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.`,f);let d=e.parse(p,m,l);if(!d)return null;l=l||d.type,s.push([u,d])}return!lt$1(l,h)&&!lt$1(l,Ft$1)&&!lt$1(l,ye)&&!lt$1(l,jt$1)&&!lt$1(l,$t)&&!lt$1(l,Ct)&&!lt$1(l,Vt$1)&&!lt$1(l,ne$1(h))?e.error(`Type ${V(l)} is not interpolatable.`):new Ai(l,r,o,i,s,e.key)}evaluate(t){let e=this.labels,r=this.outputs;if(e.length===1)return r[0].evaluate(t);let o=this.input.evaluate(t);if(o<=e[0])return r[0].evaluate(t);let i=e.length;if(o>=e[i-1])return r[i-1].evaluate(t);let a=io$1(e,o,this.key),s=e[a],l=e[a+1],c=Ai.interpolationFactor(this.interpolation,o,s,l),u=r[a].evaluate(t),p=r[a+1].evaluate(t);switch(this.operator){case`interpolate`:switch(this.type.kind){case`number`:return Ve(u,p,c);case`color`:return F.interpolate(u,p,c);case`padding`:return Ue.interpolate(u,p,c);case`colorArray`:return Ee.interpolate(u,p,c);case`numberArray`:return Be.interpolate(u,p,c);case`variableAnchorOffsetCollection`:return Ge.interpolate(u,p,c,this.key);case`array`:return Ye$1(u,p,c);case`projectionDefinition`:return Qe$1.interpolate(u,p,c)}case`interpolate-hcl`:switch(this.type.kind){case`color`:return F.interpolate(u,p,c,`hcl`);case`colorArray`:return Ee.interpolate(u,p,c,`hcl`)}case`interpolate-lab`:switch(this.type.kind){case`color`:return F.interpolate(u,p,c,`lab`);case`colorArray`:return Ee.interpolate(u,p,c,`lab`)}}}eachChild(t){t(this.input);for(let e of this.outputs)t(e)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};function Ii(n,t,e,r){let o=r-e,i=n-e;return o===0?0:t===1?i/o:(Math.pow(t,i)-1)/(Math.pow(t,o)-1)}F.interpolate,Ue.interpolate,Be.interpolate,Ee.interpolate,Ge.interpolate;var Sl=class Tl{constructor(t){this.type=zt,this.sections=t}static parse(t,e){if(t.length<2)return e.error(`Expected at least one argument.`);let r=t[1];if(!Array.isArray(r)&&typeof r==`object`)return e.error(`First argument must be an image or text section.`);let o=[],i=!1;for(let a=1;a<=t.length-1;++a){let s=t[a];if(i&&typeof s==`object`&&!Array.isArray(s)){i=!1;let l=null;if(s[`font-scale`]&&(l=e.parse(s[`font-scale`],1,h),!l))return null;let c=null;if(s[`text-font`]&&(c=e.parse(s[`text-font`],1,ne$1(x)),!c))return null;let u=null;if(s[`text-color`]&&(u=e.parse(s[`text-color`],1,ye),!u))return null;let p=null;if(s[`vertical-align`]){if(typeof s[`vertical-align`]==`string`&&!vl.includes(s[`vertical-align`]))return e.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${s[`vertical-align`]}' instead.`);if(p=e.parse(s[`vertical-align`],1,x),!p)return null}let f=o[o.length-1];f.scale=l,f.font=c,f.textColor=u,f.verticalAlign=p}else{let l=e.parse(t[a],1,v);if(!l)return null;let c=l.type.kind;if(c!==`string`&&c!==`value`&&c!==`null`&&c!==`resolvedImage`)return e.error(`Formatted text type must be 'string', 'value', 'image' or 'null'.`);i=!0,o.push({content:l,scale:null,font:null,textColor:null,verticalAlign:null})}}return new Tl(o)}evaluate(t){let e=r=>{let o=r.content.evaluate(t);return z(o)===st?new to$1(``,o,null,null,null,r.verticalAlign?r.verticalAlign.evaluate(t):null):new to$1(Tt$1(o),null,r.scale?r.scale.evaluate(t):null,r.font?r.font.evaluate(t).join(`,`):null,r.textColor?r.textColor.evaluate(t):null,r.verticalAlign?r.verticalAlign.evaluate(t):null)};return new St$1(this.sections.map(e))}eachChild(t){for(let e of this.sections)t(e.content),e.scale&&t(e.scale),e.font&&t(e.font),e.textColor&&t(e.textColor),e.verticalAlign&&t(e.verticalAlign)}outputDefined(){return!1}};function Li(n,t,e=0,r=n.length-1,o=Xu){for(;r>e;){if(r-e>600){let l=r-e+1,c=t-e+1,u=Math.log(l),p=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*p*(l-p)/l)*(c-l/2<0?-1:1);Li(n,t,Math.max(e,Math.floor(t-c*p/l+f)),Math.min(r,Math.floor(t+(l-c)*p/l+f)),o)}let i=n[t],a=e,s=r;for(ir$1(n,e,t),o(n[r],i)>0&&ir$1(n,e,r);a<s;){for(ir$1(n,a,s),a++,s--;o(n[a],i)<0;)a++;for(;o(n[s],i)>0;)s--}o(n[e],i)===0?ir$1(n,e,s):(s++,ir$1(n,s,r)),s<=t&&(e=s+1),t<=s&&(r=s-1)}}function ir$1(n,t,e){let r=n[t];n[t]=n[e],n[e]=r}function Xu(n,t){return n<t?-1:n>t?1:0}function El(n,t){if(n.length<=1)return[n];let e=[],r,o;for(let i of n){let a=ep(i);a!==0&&(i.area=Math.abs(a),o===void 0&&(o=a<0),o===a<0?(r&&e.push(r),r=[i]):r.push(i))}if(r&&e.push(r),t>1)for(let i=0;i<e.length;i++)e[i].length<=t||(Li(e[i],t,1,e[i].length-1,Qu),e[i]=e[i].slice(0,t));return e}function Qu(n,t){return t.area-n.area}function ep(n){let t=0;for(let e=0,r=n.length,o=r-1,i,a;e<r;o=e++)i=n[e],a=n[o],t+=(a.x-i.x)*(i.y+a.y);return t}var so$1={string:x,number:h,boolean:T,object:$e$1};var Me=class Ml{constructor(t,e,r){this.type=t,this.args=e,this.key=r}static parse(t,e){if(t.length<2)return e.error(`Expected at least one argument.`);let r=1,o,i=t[0];if(i===`array`){let s;if(t.length>2){let c=t[1];if(typeof c!=`string`||!(c in so$1)||c===`object`)return e.error(`The item type argument of "array" must be one of string, number, boolean`,1);s=so$1[c],r++}else s=v;let l;if(t.length>3){if(t[2]!==null&&(typeof t[2]!=`number`||t[2]<0||t[2]!==Math.floor(t[2])))return e.error(`The length argument to "array" must be a positive integer literal`,2);l=t[2],r++}o=ne$1(s,l)}else{if(!so$1[i])throw new Error(`Types doesn't contain name = ${i}`);o=so$1[i]}let a=[];for(;r<t.length;r++){let s=e.parse(t[r],r,v);if(!s)return null;a.push(s)}return new Ml(o,a,e.key)}evaluate(t){for(let e=0;e<this.args.length;e++){let r=this.args[e].evaluate(t);if(xt$1(this.type,z(r))){if(e===this.args.length-1)throw new O(`Expected value to be of type ${V(this.type)}, but found ${V(z(r))} instead.`,this.key)}else return r}throw new Error}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};var kl={"to-boolean":T,"to-color":ye,"to-number":h,"to-string":x};var pt=class Il{constructor(t,e,r){this.type=t,this.args=e,this.key=r}static parse(t,e){if(t.length<2)return e.error(`Expected at least one argument.`);let r=t[0];if(!kl[r])throw new Error(`Can't parse ${r} as it is not part of the known types`);if((r===`to-boolean`||r===`to-string`)&&t.length!==2)return e.error(`Expected one argument.`);let o=kl[r],i=[];for(let a=1;a<t.length;a++){let s=e.parse(t[a],a,v);if(!s)return null;i.push(s)}return new Il(o,i,e.key)}evaluate(t){switch(this.type.kind){case`boolean`:return!!this.args[0].evaluate(t);case`color`:{let e,r;for(let o of this.args){if(e=o.evaluate(t),r=null,e instanceof F)return e;if(typeof e==`string`){let i=t.parseColor(e);if(i)return i}else if(Array.isArray(e)&&(e.length<3||e.length>4?r=`Invalid rgba value ${JSON.stringify(e)}: expected an array containing either three or four numeric values.`:r=ro$1(e[0],e[1],e[2],e[3]),!r))return new F(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new O(r||`Could not parse color from value '${typeof e==`string`?e:JSON.stringify(e)}'`,this.key)}case`padding`:{let e;for(let r of this.args){e=r.evaluate(t);let o=Ue.parse(e);if(o)return o}throw new O(`Could not parse padding from value '${typeof e==`string`?e:JSON.stringify(e)}'`,this.key)}case`numberArray`:{let e;for(let r of this.args){e=r.evaluate(t);let o=Be.parse(e);if(o)return o}throw new O(`Could not parse numberArray from value '${typeof e==`string`?e:JSON.stringify(e)}'`,this.key)}case`colorArray`:{let e;for(let r of this.args){e=r.evaluate(t);let o=Ee.parse(e);if(o)return o}throw new O(`Could not parse colorArray from value '${typeof e==`string`?e:JSON.stringify(e)}'`,this.key)}case`variableAnchorOffsetCollection`:{let e;for(let r of this.args){e=r.evaluate(t);let o=Ge.parse(e);if(o)return o}throw new O(`Could not parse variableAnchorOffsetCollection from value '${typeof e==`string`?e:JSON.stringify(e)}'`,this.key)}case`number`:{let e=null;for(let r of this.args){if(e=r.evaluate(t),e===null)return 0;let o=Number(e);if(!isNaN(o))return o}throw new O(`Could not convert ${JSON.stringify(e)} to number.`,this.key)}case`formatted`:return St$1.fromString(Tt$1(this.args[0].evaluate(t)));case`resolvedImage`:return Xe$1.fromString(Tt$1(this.args[0].evaluate(t)));case`projectionDefinition`:{let e=this.args[0].evaluate(t);if(Qe$1.parse(e))return e;throw new O(`Could not parse projectionDefinition from value '${typeof e==`string`?e:JSON.stringify(e)}'`,this.key)}default:return Tt$1(this.args[0].evaluate(t))}}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};var lo$1=class Al{constructor(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(let e of this.bindings)t(e[1]);t(this.result)}static parse(t,e){if(t.length<4)return e.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);let r=[];for(let i=1;i<t.length-1;i+=2){let a=t[i];if(typeof a!=`string`)return e.error(`Expected string, but found ${typeof a} instead.`,i);if(/[^a-zA-Z0-9_]/.test(a))return e.error(`Variable names must contain only alphanumeric characters or '_'.`,i);let s=e.parse(t[i+1],i+1);if(!s)return null;r.push([a,s])}let o=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return o?new Al(r,o):null}outputDefined(){return this.result.outputDefined()}};var co$1=class Ll{constructor(t,e){this.type=e.type,this.name=t,this.boundExpression=e}static parse(t,e){if(t.length!==2||typeof t[1]!=`string`)return e.error(`'var' expression requires exactly one string literal argument.`);let r=t[1];return e.scope.has(r)?new Ll(r,e.scope.get(r)):e.error(`Unknown variable "${r}". Make sure "${r}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(t){return this.boundExpression.evaluate(t)}eachChild(){}outputDefined(){return!1}};var Dl=class Ol{constructor(t,e,r,o){this.type=t,this.index=e,this.input=r,this.key=o}static parse(t,e){if(t.length!==3)return e.error(`Expected 2 arguments, but found ${t.length-1} instead.`);let r=e.parse(t[1],1,h),o=e.parse(t[2],2,ne$1(e.expectedType||v));if(!r||!o)return null;let i=o.type;return new Ol(i.itemType,r,o,e.key)}evaluate(t){let e=this.index.evaluate(t),r=this.input.evaluate(t);if(e<0)throw new O(`Array index out of bounds: ${e} < 0.`,this.key);if(e>=r.length)throw new O(`Array index out of bounds: ${e} > ${r.length-1}.`,this.key);if(e!==Math.floor(e))throw new O(`Array index must be an integer, but found ${e} instead.`,this.key);return r[e]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}};var Nl=class Pl{constructor(t,e,r){this.needle=t,this.haystack=e,this.key=r,this.type=T}static parse(t,e){if(t.length!==3)return e.error(`Expected 2 arguments, but found ${t.length-1} instead.`);let r=e.parse(t[1],1,v),o=e.parse(t[2],2,v);return!r||!o?null:hn(r.type,[T,x,h,Rt,v])?new Pl(r,o,e.key):e.error(`Expected first argument to be of type boolean, string, number or null, but found ${V(r.type)} instead`)}evaluate(t){let e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Ke$1(e,[`boolean`,`string`,`number`,`null`]))throw new O(`Expected first argument to be of type boolean, string, number or null, but found ${V(z(e))} instead.`,this.key);if(!Ke$1(r,[`string`,`array`]))throw new O(`Expected second argument to be of type array or string, but found ${V(z(r))} instead.`,this.key);return r.indexOf(e)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}};var Rl=class Di{constructor(t,e,r,o){this.needle=t,this.haystack=e,this.key=r,this.fromIndex=o,this.type=h}static parse(t,e){if(t.length<=2||t.length>=5)return e.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let r=e.parse(t[1],1,v),o=e.parse(t[2],2,v);if(!r||!o)return null;if(!hn(r.type,[T,x,h,Rt,v]))return e.error(`Expected first argument to be of type boolean, string, number or null, but found ${V(r.type)} instead`);if(t.length===4){let i=e.parse(t[3],3,h);return i?new Di(r,o,e.key,i):null}else return new Di(r,o,e.key)}evaluate(t){let e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Ke$1(e,[`boolean`,`string`,`number`,`null`]))throw new O(`Expected first argument to be of type boolean, string, number or null, but found ${V(z(e))} instead.`,this.key);let o;if(this.fromIndex&&(o=this.fromIndex.evaluate(t)),Ke$1(r,[`string`])){let i=r.indexOf(e,o);return i===-1?-1:[...r.slice(0,i)].length}else{if(Ke$1(r,[`array`]))return r.indexOf(e,o);throw new O(`Expected second argument to be of type array or string, but found ${V(z(r))} instead.`,this.key)}}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}};var Fl=class zl{constructor(t,e,r,o,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=o,this.outputs=i,this.otherwise=a}static parse(t,e){if(t.length<5)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!==1)return e.error(`Expected an even number of arguments.`);let r,o;e.expectedType&&e.expectedType.kind!==`value`&&(o=e.expectedType);let i={},a=[];for(let c=2;c<t.length-1;c+=2){let u=t[c],p=t[c+1];Array.isArray(u)||(u=[u]);let f=e.concat(c);if(u.length===0)return f.error(`Expected at least one branch label.`);for(let d of u){if(typeof d!=`number`&&typeof d!=`string`)return f.error(`Branch labels must be numbers or strings.`);if(typeof d==`number`&&Math.abs(d)>Number.MAX_SAFE_INTEGER)return f.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof d==`number`&&Math.floor(d)!==d)return f.error(`Numeric branch labels must be integer values.`);if(!r)r=z(d);else if(f.checkSubtype(r,z(d)))return null;if(typeof i[String(d)]<`u`)return f.error(`Branch labels must be unique.`);i[String(d)]=a.length}let m=e.parse(p,c,o);if(!m)return null;o=o||m.type,a.push(m)}let s=e.parse(t[1],1,v);if(!s)return null;let l=e.parse(t[t.length-1],t.length-1,o);return!l||s.type.kind!==`value`&&e.concat(1).checkSubtype(r,s.type)?null:new zl(r,o,s,i,a,l)}evaluate(t){let e=this.input.evaluate(t);return(z(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}};var jl=class $l{constructor(t,e,r){this.type=t,this.branches=e,this.otherwise=r}static parse(t,e){if(t.length<4)return e.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!==0)return e.error(`Expected an odd number of arguments.`);let r;e.expectedType&&e.expectedType.kind!==`value`&&(r=e.expectedType);let o=[];for(let a=1;a<t.length-1;a+=2){let s=e.parse(t[a],a,T);if(!s)return null;let l=e.parse(t[a+1],a+1,r);if(!l)return null;o.push([s,l]),r=r||l.type}let i=e.parse(t[t.length-1],t.length-1,r);if(!i)return null;if(!r)throw new Error(`Can't infer output type`);return new $l(r,o,i)}evaluate(t){for(let[e,r]of this.branches)if(e.evaluate(t))return r.evaluate(t);return this.otherwise.evaluate(t)}eachChild(t){for(let[e,r]of this.branches)t(e),t(r);t(this.otherwise)}outputDefined(){return this.branches.every(([t,e])=>e.outputDefined())&&this.otherwise.outputDefined()}};var Vl=class Oi{constructor(t,e,r,o,i){this.type=t,this.input=e,this.beginIndex=r,this.key=o,this.endIndex=i}static parse(t,e){if(t.length<=2||t.length>=5)return e.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let r=e.parse(t[1],1,v),o=e.parse(t[2],2,h);if(!r||!o)return null;if(!hn(r.type,[ne$1(v),x,v]))return e.error(`Expected first argument to be of type array or string, but found ${V(r.type)} instead`);if(t.length===4){let i=e.parse(t[3],3,h);return i?new Oi(r.type,r,o,e.key,i):null}else return new Oi(r.type,r,o,e.key)}evaluate(t){let e=this.input.evaluate(t),r=this.beginIndex.evaluate(t),o;if(this.endIndex&&(o=this.endIndex.evaluate(t)),Ke$1(e,[`string`]))return[...e].slice(r,o).join(``);if(Ke$1(e,[`array`]))return e.slice(r,o);throw new O(`Expected first argument to be of type array or string, but found ${V(z(e))} instead.`,this.key)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}};var uo$1=class Ni{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error(`Expected at least one argument.`);let r=null,o=e.expectedType;o&&o.kind!==`value`&&(r=o);let i=[];for(let a of t.slice(1)){let s=e.parse(a,1+i.length,r,void 0,{typeAnnotation:`omit`});if(!s)return null;r=r||s.type,i.push(s)}if(!r)throw new Error(`No output type`);return o&&i.some(a=>xt$1(o,a.type))?new Ni(v,i):new Ni(r,i)}evaluate(t){let e=null,r=0,o;for(let i of this.args)if(r++,e=i.evaluate(t),e&&e instanceof Xe$1&&!e.available&&(o||(o=e.name),e=null,r===this.args.length&&(e=o)),e!==null)break;return e}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};function Ul(n,t){return n===`==`||n===`!=`?t.kind===`boolean`||t.kind===`string`||t.kind===`number`||t.kind===`null`||t.kind===`value`:t.kind===`string`||t.kind===`number`||t.kind===`value`}function tp(n,t,e){return t===e}function np(n,t,e){return t!==e}function rp(n,t,e){return t<e}function op(n,t,e){return t>e}function ip(n,t,e){return t<=e}function ap(n,t,e){return t>=e}function Bl(n,t,e,r){return r.compare(t,e)===0}function sp(n,t,e,r){return!Bl(n,t,e,r)}function lp(n,t,e,r){return r.compare(t,e)<0}function cp(n,t,e,r){return r.compare(t,e)>0}function up(n,t,e,r){return r.compare(t,e)<=0}function pp(n,t,e,r){return r.compare(t,e)>=0}function vn(n,t,e){let r=n!==`==`&&n!==`!=`;return class Gl{constructor(i,a,s,l){this.lhs=i,this.rhs=a,this.key=s,this.collator=l,this.type=T,this.hasUntypedArgument=i.type.kind===`value`||a.type.kind===`value`}static parse(i,a){if(i.length!==3&&i.length!==4)return a.error(`Expected two or three arguments.`);let s=i[0],l=a.parse(i[1],1,v);if(!l)return null;if(!Ul(s,l.type))return a.concat(1).error(`"${s}" comparisons are not supported for type '${V(l.type)}'.`);let c=a.parse(i[2],2,v);if(!c)return null;if(!Ul(s,c.type))return a.concat(2).error(`"${s}" comparisons are not supported for type '${V(c.type)}'.`);if(l.type.kind!==c.type.kind&&l.type.kind!==`value`&&c.type.kind!==`value`)return a.error(`Cannot compare types '${V(l.type)}' and '${V(c.type)}'.`);r&&(l.type.kind===`value`&&c.type.kind!==`value`?l=new Me(c.type,[l],a.key):l.type.kind!==`value`&&c.type.kind===`value`&&(c=new Me(l.type,[c],a.key)));let u=null;if(i.length===4){if(l.type.kind!==`string`&&c.type.kind!==`string`&&l.type.kind!==`value`&&c.type.kind!==`value`)return a.error(`Cannot use collator to compare non-string types.`);if(u=a.parse(i[3],3,wt$1),!u)return null}return new Gl(l,c,a.key,u)}evaluate(i){let a=this.lhs.evaluate(i),s=this.rhs.evaluate(i);if(r&&this.hasUntypedArgument){let l=z(a),c=z(s);if(l.kind!==c.kind||!(l.kind===`string`||l.kind===`number`))throw new O(`Expected arguments for "${n}" to be (string, string) or (number, number), but found (${l.kind}, ${c.kind}) instead.`,this.key)}if(this.collator&&!r&&this.hasUntypedArgument){let l=z(a),c=z(s);if(l.kind!==`string`||c.kind!==`string`)return t(i,a,s)}return this.collator?e(i,a,s,this.collator.evaluate(i)):t(i,a,s)}eachChild(i){i(this.lhs),i(this.rhs),this.collator&&i(this.collator)}outputDefined(){return!0}}}var ql=vn(`==`,tp,Bl);var Hl=vn(`!=`,np,sp);var Wl=vn(`<`,rp,lp);var Zl=vn(`>`,op,cp);var Kl=vn(`<=`,ip,up);var Yl=vn(`>=`,ap,pp);var po$1=class Jl{constructor(t,e,r){this.type=wt$1,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e}static parse(t,e){if(t.length!==2)return e.error(`Expected one argument.`);let r=t[1];if(typeof r!=`object`||Array.isArray(r))return e.error(`Collator options argument must be an object.`);let o=e.parse(r[`case-sensitive`]===void 0?!1:r[`case-sensitive`],1,T);if(!o)return null;let i=e.parse(r[`diacritic-sensitive`]===void 0?!1:r[`diacritic-sensitive`],1,T);if(!i)return null;let a=null;return r.locale&&(a=e.parse(r.locale,1,x),!a)?null:new Jl(o,i,a)}evaluate(t){return new or$1(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}};var Xl=class Ql{constructor(t,e,r,o,i,a){this.type=x,this.number=t,this.locale=e,this.currency=r,this.unit=o,this.minFractionDigits=i,this.maxFractionDigits=a}static parse(t,e){if(t.length!==3)return e.error(`Expected two arguments.`);let r=e.parse(t[1],1,h);if(!r)return null;let o=t[2];if(typeof o!=`object`||Array.isArray(o))return e.error(`NumberFormat options argument must be an object.`);let i=null;if(o.locale&&(i=e.parse(o.locale,1,x),!i))return null;let a=null;if(o.currency&&(a=e.parse(o.currency,1,x),!a))return null;let s=null;if(o.unit&&(s=e.parse(o.unit,1,x),!s))return null;if(a&&s)return e.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(o[`min-fraction-digits`]&&(l=e.parse(o[`min-fraction-digits`],1,h),!l))return null;let c=null;return o[`max-fraction-digits`]&&(c=e.parse(o[`max-fraction-digits`],1,h),!c)?null:new Ql(r,i,a,s,l,c)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?`currency`:this.unit?`unit`:`decimal`,currency:this.currency?this.currency.evaluate(t):void 0,unit:this.unit?this.unit.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.unit&&t(this.unit),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}};var ec=class tc{constructor(t){this.type=st,this.input=t}static parse(t,e){if(t.length!==2)return e.error(`Expected two arguments.`);let r=e.parse(t[1],1,x);return r?new tc(r):e.error(`No image name provided.`)}evaluate(t){let e=this.input.evaluate(t),r=Xe$1.fromString(e);return r&&t.availableImages&&(r.available=t.availableImages.indexOf(e)>-1),r}eachChild(t){t(this.input)}outputDefined(){return!1}};var nc=class rc{constructor(t,e){this.input=t,this.key=e,this.type=h}static parse(t,e){if(t.length!==2)return e.error(`Expected 1 argument, but found ${t.length-1} instead.`);let r=e.parse(t[1],1);return r?r.type.kind!==`array`&&r.type.kind!==`string`&&r.type.kind!==`value`?e.error(`Expected argument of type string or array, but found ${V(r.type)} instead.`):new rc(r,e.key):null}evaluate(t){let e=this.input.evaluate(t);if(typeof e==`string`)return[...e].length;if(Array.isArray(e))return e.length;throw new O(`Expected value to be of type string or array, but found ${V(z(e))} instead.`,this.key)}eachChild(t){t(this.input)}outputDefined(){return!1}};function ic(n,t){let e=dp(n[0]),r=mp(n[1]),o=Math.pow(2,t.z);return[Math.round(e*o*8192),Math.round(r*o*8192)]}function fo$1(n,t){let e=Math.pow(2,t.z),r=(n[0]/8192+t.x)/e,o=(n[1]/8192+t.y)/e;return[fp(r),hp(o)]}function dp(n){return(180+n)/360}function fp(n){return n*360-180}function mp(n){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n*Math.PI/360)))/360}function hp(n){return 360/Math.PI*Math.atan(Math.exp((180-n*360)*Math.PI/180))-90}function Ut(n,t){n[0]=Math.min(n[0],t[0]),n[1]=Math.min(n[1],t[1]),n[2]=Math.max(n[2],t[0]),n[3]=Math.max(n[3],t[1])}function Bt$1(n,t){return!(n[0]<=t[0]||n[2]>=t[2]||n[1]<=t[1]||n[3]>=t[3])}function gp(n,t,e){return t[1]>n[1]!=e[1]>n[1]&&n[0]<(e[0]-t[0])*(n[1]-t[1])/(e[1]-t[1])+t[0]}function yp(n,t,e){let r=n[0]-t[0],o=n[1]-t[1],i=n[0]-e[0],a=n[1]-e[1];return r*a-i*o===0&&r*i<=0&&o*a<=0}function ar$1(n,t,e,r){let o=[t[0]-n[0],t[1]-n[1]];return vp([r[0]-e[0],r[1]-e[1]],o)===0?!1:!!(oc(n,t,e,r)&&oc(e,r,n,t))}function bp(n,t,e){for(let r of e)for(let o=0;o<r.length-1;++o)if(ar$1(n,t,r[o],r[o+1]))return!0;return!1}function Et$1(n,t,e=!1){let r=!1;for(let o of t)for(let i=0;i<o.length-1;i++){if(yp(n,o[i],o[i+1]))return e;gp(n,o[i],o[i+1])&&(r=!r)}return r}function ac(n,t){for(let e of t)if(Et$1(n,e))return!0;return!1}function Pi(n,t){for(let e of n)if(!Et$1(e,t))return!1;for(let e=0;e<n.length-1;++e)if(bp(n[e],n[e+1],t))return!1;return!0}function sc(n,t){for(let e of t)if(Pi(n,e))return!0;return!1}function vp(n,t){return n[0]*t[1]-n[1]*t[0]}function oc(n,t,e,r){let o=n[0]-e[0],i=n[1]-e[1],a=t[0]-e[0],s=t[1]-e[1],l=r[0]-e[0],c=r[1]-e[1],u=o*c-l*i,p=a*c-l*s;return u>0&&p<0||u<0&&p>0}function Ri(n,t,e){let r=[];for(let o=0;o<n.length;o++){let i=[];for(let a=0;a<n[o].length;a++){let s=ic(n[o][a],e);Ut(t,s),i.push(s)}r.push(i)}return r}function uc(n,t,e){let r=[];for(let o=0;o<n.length;o++){let i=Ri(n[o],t,e);r.push(i)}return r}function pc(n,t,e,r){if(n[0]<e[0]||n[0]>e[2]){let o=r*.5,i=n[0]-e[0]>o?-r:e[0]-n[0]>o?r:0;i===0&&(i=n[0]-e[2]>o?-r:e[2]-n[0]>o?r:0),n[0]+=i}Ut(t,n)}function _p(n){n[0]=n[1]=Infinity,n[2]=n[3]=-Infinity}function lc(n,t,e,r){let o=Math.pow(2,r.z)*8192,i=[r.x*8192,r.y*8192],a=[];for(let s of n)for(let l of s){let c=[l.x+i[0],l.y+i[1]];pc(c,t,e,o),a.push(c)}return a}function cc(n,t,e,r){let o=Math.pow(2,r.z)*8192,i=[r.x*8192,r.y*8192],a=[];for(let s of n){let l=[];for(let c of s){let u=[c.x+i[0],c.y+i[1]];Ut(t,u),l.push(u)}a.push(l)}if(t[2]-t[0]<=o/2){_p(t);for(let s of a)for(let l of s)pc(l,t,e,o)}return a}function xp(n,t){let e=[Infinity,Infinity,-Infinity,-Infinity],r=[Infinity,Infinity,-Infinity,-Infinity],o=n.canonicalID();if(t.type===`Polygon`){let i=Ri(t.coordinates,r,o),a=lc(n.geometry(),e,r,o);if(!Bt$1(e,r))return!1;for(let s of a)if(!Et$1(s,i))return!1}if(t.type===`MultiPolygon`){let i=uc(t.coordinates,r,o),a=lc(n.geometry(),e,r,o);if(!Bt$1(e,r))return!1;for(let s of a)if(!ac(s,i))return!1}return!0}function wp(n,t){let e=[Infinity,Infinity,-Infinity,-Infinity],r=[Infinity,Infinity,-Infinity,-Infinity],o=n.canonicalID();if(t.type===`Polygon`){let i=Ri(t.coordinates,r,o),a=cc(n.geometry(),e,r,o);if(!Bt$1(e,r))return!1;for(let s of a)if(!Pi(s,i))return!1}if(t.type===`MultiPolygon`){let i=uc(t.coordinates,r,o),a=cc(n.geometry(),e,r,o);if(!Bt$1(e,r))return!1;for(let s of a)if(!sc(s,i))return!1}return!0}var sr$1=class mo{constructor(t,e){this.type=T,this.geojson=t,this.geometries=e}static parse(t,e){if(t.length!==2)return e.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(et(t[1])){let r=t[1];if(r.type===`FeatureCollection`){let o=[];for(let i of r.features){let{type:a,coordinates:s}=i.geometry;a===`Polygon`&&o.push(s),a===`MultiPolygon`&&o.push(...s)}if(o.length)return new mo(r,{type:`MultiPolygon`,coordinates:o})}else if(r.type===`Feature`){let o=r.geometry.type;if(o===`Polygon`||o===`MultiPolygon`)return new mo(r,r.geometry)}else if(r.type===`Polygon`||r.type===`MultiPolygon`)return new mo(r,r)}return e.error(`'within' expression requires valid geojson object that contains polygon geometry type.`)}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()===`Point`)return xp(t,this.geometries);if(t.geometryType()===`LineString`)return wp(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}};var Fi=class{constructor(n=[],t=(e,r)=>e<r?-1:e>r?1:0){if(this.data=n,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(n){this.data.push(n),this._up(this.length++)}pop(){if(this.length===0)return;let n=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),n}peek(){return this.data[0]}_up(n){let{data:t,compare:e}=this,r=t[n];for(;n>0;){let o=n-1>>1,i=t[o];if(e(r,i)>=0)break;t[n]=i,n=o}t[n]=r}_down(n){let{data:t,compare:e}=this,r=this.length>>1,o=t[n];for(;n<r;){let i=(n<<1)+1,a=i+1;if(a<this.length&&e(t[a],t[i])<0&&(i=a),e(t[i],o)>=0)break;t[n]=t[i],n=i}t[n]=o}};var Cp=.0066943799901413165;var dc=Math.PI/180;var ho$1=class{constructor(n){let t=dc*6378.137*1e3,e=Math.cos(n*dc),r=1/(1-Cp*(1-e*e)),o=Math.sqrt(r);this.kx=t*o*e,this.ky=t*o*r*.9933056200098587}distance(n,t){let e=this.wrap(n[0]-t[0])*this.kx,r=(n[1]-t[1])*this.ky;return Math.sqrt(e*e+r*r)}pointOnLine(n,t){let e=Infinity,r,o,i,a;for(let s=0;s<n.length-1;s++){let l=n[s][0],c=n[s][1],u=this.wrap(n[s+1][0]-l)*this.kx,p=(n[s+1][
vendor: 3,358 bytes, line 24
241]-c)*this.ky,f=0;(u!==0||p!==0)&&(f=(this.wrap(t[0]-l)*this.kx*u+(t[1]-c)*this.ky*p)/(u*u+p*p),f>1?(l=n[s+1][0],c=n[s+1][1]):f>0&&(l+=u/this.kx*f,c+=p/this.ky*f)),u=this.wrap(t[0]-l)*this.kx,p=(t[1]-c)*this.ky;let m=u*u+p*p;m<e&&(e=m,r=l,o=c,i=s,a=f)}return{point:[r,o],index:i,t:Math.max(0,Math.min(1,a))}}wrap(n){for(;n<-180;)n+=360;for(;n>180;)n-=360;return n}};var ji=100;var $i=50;function gc(n,t){return t[0]-n[0]}function bo$1(n){return n[1]-n[0]+1}function dt(n,t){return n[1]>=n[0]&&n[1]<t}function Vi(n,t){if(n[0]>n[1])return[null,null];let e=bo$1(n);if(t){if(e===2)return[n,null];let o=Math.floor(e/2);return[[n[0],n[0]+o],[n[0]+o,n[1]]]}if(e===1)return[n,null];let r=Math.floor(e/2)-1;return[[n[0],n[0]+r],[n[0]+r+1,n[1]]]}function Ui(n,t){if(!dt(t,n.length))return[Infinity,Infinity,-Infinity,-Infinity];let e=[Infinity,Infinity,-Infinity,-Infinity];for(let r=t[0];r<=t[1];++r)Ut(e,n[r]);return e}function Bi(n){let t=[Infinity,Infinity,-Infinity,-Infinity];for(let e of n)for(let r of e)Ut(t,r);return t}function fc(n){return n[0]!==-Infinity&&n[1]!==-Infinity&&n[2]!==Infinity&&n[3]!==Infinity}function Gi(n,t,e){if(!fc(n)||!fc(t))return NaN;let r=0,o=0;return n[2]<t[0]&&(r=t[0]-n[2]),n[0]>t[2]&&(r=n[0]-t[2]),n[1]>t[3]&&(o=n[1]-t[3]),n[3]<t[1]&&(o=t[1]-n[3]),e.distance([0,0],[r,o])}function Gt(n,t,e){let r=e.pointOnLine(t,n);return e.distance(n,r.point)}function qi(n,t,e,r,o){let i=Math.min(Gt(n,[e,r],o),Gt(t,[e,r],o)),a=Math.min(Gt(e,[n,t],o),Gt(r,[n,t],o));return Math.min(i,a)}function Sp(n,t,e,r,o){if(!(dt(t,n.length)&&dt(r,e.length)))return Infinity;let i=Infinity;for(let a=t[0];a<t[1];++a){let s=n[a],l=n[a+1];for(let c=r[0];c<r[1];++c){let u=e[c],p=e[c+1];if(ar$1(s,l,u,p))return 0;i=Math.min(i,qi(s,l,u,p,o))}}return i}function Tp(n,t,e,r,o){if(!(dt(t,n.length)&&dt(r,e.length)))return NaN;let i=Infinity;for(let a=t[0];a<=t[1];++a)for(let s=r[0];s<=r[1];++s)if(i=Math.min(i,o.distance(n[a],e[s])),i===0)return i;return i}function Ep(n,t,e){if(Et$1(n,t,!0))return 0;let r=Infinity;for(let o of t){let i=o[0],a=o[o.length-1];if(i!==a&&(r=Math.min(r,Gt(n,[a,i],e)),r===0))return r;let s=e.pointOnLine(o,n);if(r=Math.min(r,e.distance(n,s.point)),r===0)return r}return r}function Mp(n,t,e,r){if(!dt(t,n.length))return NaN;for(let i=t[0];i<=t[1];++i)if(Et$1(n[i],e,!0))return 0;let o=Infinity;for(let i=t[0];i<t[1];++i){let a=n[i],s=n[i+1];for(let l of e)for(let c=0,u=l.length,p=u-1;c<u;p=c++){let f=l[p],m=l[c];if(ar$1(a,s,f,m))return 0;o=Math.min(o,qi(a,s,f,m,r))}}return o}function mc(n,t){for(let e of n)for(let r of e)if(Et$1(r,t,!0))return!0;return!1}function kp(n,t,e,r=Infinity){let o=Bi(n),i=Bi(t);if(r!==Infinity&&Gi(o,i,e)>=r)return r;if(Bt$1(o,i)){if(mc(n,t))return 0}else if(mc(t,n))return 0;let a=Infinity;for(let s of n)for(let l=0,c=s.length,u=c-1;l<c;u=l++){let p=s[u],f=s[l];for(let m of t)for(let d=0,_=m.length,I=_-1;d<_;I=d++){let M=m[I],X=m[d];if(ar$1(p,f,M,X))return 0;a=Math.min(a,qi(p,f,M,X,e))}}return a}function hc(n,t,e,r,o,i){if(!i)return;let a=Gi(Ui(r,i),o,e);a<t&&n.push([a,i,[0,0]])}function go$1(n,t,e,r,o,i,a){if(!i||!a)return;let s=Gi(Ui(r,i),Ui(o,a),e);s<t&&n.push([s,i,a])}function vo$1(n,t,e,r,o=Infinity){let i=Math.min(r.distance(n[0],e[0][0]),o);if(i===0)return i;let a=new Fi([[0,[0,n.length-1],[0,0]]],gc),s=Bi(e);for(;a.length>0;){let l=a.pop();if(l[0]>=i)continue;let c=l[1],u=t?$i:ji;
vendor: 11,484 bytes, line 24
24if(bo$1(c)<=u){if(!dt(c,n.length))return NaN;if(t){let p=Mp(n,c,e,r);if(isNaN(p)||p===0)return p;i=Math.min(i,p)}else for(let p=c[0];p<=c[1];++p){let f=Ep(n[p],e,r);if(i=Math.min(i,f),i===0)return 0}}else{let p=Vi(c,t);hc(a,i,r,n,s,p[0]),hc(a,i,r,n,s,p[1])}}return i}function _o$1(n,t,e,r,o,i=Infinity){let a=Math.min(i,o.distance(n[0],e[0]));if(a===0)return a;let s=new Fi([[0,[0,n.length-1],[0,e.length-1]]],gc);for(;s.length>0;){let l=s.pop();if(l[0]>=a)continue;let c=l[1],u=l[2],p=t?$i:ji,f=r?$i:ji;if(bo$1(c)<=p&&bo$1(u)<=f){if(!dt(c,n.length)&&dt(u,e.length))return NaN;let m;if(t&&r)m=Sp(n,c,e,u,o),a=Math.min(a,m);else if(t&&!r){let d=n.slice(c[0],c[1]+1);for(let _=u[0];_<=u[1];++_)if(m=Gt(e[_],d,o),a=Math.min(a,m),a===0)return a}else if(!t&&r){let d=e.slice(u[0],u[1]+1);for(let _=c[0];_<=c[1];++_)if(m=Gt(n[_],d,o),a=Math.min(a,m),a===0)return a}else m=Tp(n,c,e,u,o),a=Math.min(a,m)}else{let m=Vi(c,t),d=Vi(u,r);go$1(s,a,o,n,e,m[0],d[0]),go$1(s,a,o,n,e,m[0],d[1]),go$1(s,a,o,n,e,m[1],d[0]),go$1(s,a,o,n,e,m[1],d[1])}}return a}function Ip(n,t){let e=n.geometry(),r=e.flat().map(a=>fo$1([a.x,a.y],n.canonical));if(e.length===0)return NaN;let o=new ho$1(r[0][1]),i=Infinity;for(let a of t){switch(a.type){case`Point`:i=Math.min(i,_o$1(r,!1,[a.coordinates],!1,o,i));break;case`LineString`:i=Math.min(i,_o$1(r,!1,a.coordinates,!0,o,i));break;case`Polygon`:i=Math.min(i,vo$1(r,!1,a.coordinates,o,i))}if(i===0)return i}return i}function Ap(n,t){let e=n.geometry(),r=e.flat().map(a=>fo$1([a.x,a.y],n.canonical));if(e.length===0)return NaN;let o=new ho$1(r[0][1]),i=Infinity;for(let a of t){switch(a.type){case`Point`:i=Math.min(i,_o$1(r,!0,[a.coordinates],!1,o,i));break;case`LineString`:i=Math.min(i,_o$1(r,!0,a.coordinates,!0,o,i));break;case`Polygon`:i=Math.min(i,vo$1(r,!0,a.coordinates,o,i))}if(i===0)return i}return i}function Lp(n,t){let e=n.geometry();if(e.length===0||e[0].length===0)return NaN;let r=El(e,0).map(a=>a.map(s=>s.map(l=>fo$1([l.x,l.y],n.canonical)))),o=new ho$1(r[0][0][0][1]),i=Infinity;for(let a of t)for(let s of r){switch(a.type){case`Point`:i=Math.min(i,vo$1([a.coordinates],!1,s,o,i));break;case`LineString`:i=Math.min(i,vo$1(a.coordinates,!0,s,o,i));break;case`Polygon`:i=Math.min(i,kp(s,a.coordinates,o,i))}if(i===0)return i}return i}function zi(n){return n.type===`MultiPolygon`?n.coordinates.map(t=>({type:`Polygon`,coordinates:t})):n.type===`MultiLineString`?n.coordinates.map(t=>({type:`LineString`,coordinates:t})):n.type===`MultiPoint`?n.coordinates.map(t=>({type:`Point`,coordinates:t})):[n]}var lr$1=class yo{constructor(t,e){this.type=h,this.geojson=t,this.geometries=e}static parse(t,e){if(t.length!==2)return e.error(`'distance' expression requires exactly one argument, but found ${t.length-1} instead.`);if(et(t[1])){let r=t[1];if(r.type===`FeatureCollection`)return new yo(r,r.features.map(o=>zi(o.geometry)).flat());if(r.type===`Feature`)return new yo(r,zi(r.geometry));if(`type`in r&&`coordinates`in r)return new yo(r,zi(r))}return e.error(`'distance' expression requires valid geojson object that contains polygon geometry type.`)}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()===`Point`)return Ip(t,this.geometries);if(t.geometryType()===`LineString`)return Ap(t,this.geometries);if(t.geometryType()===`Polygon`)return Lp(t,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}};var yc=class bc{constructor(t){let e=null;for(let r of t)if(!e)e=r.type;else{if(e===r.type)continue;e=v;break}this.type=ne$1(e??v,t.length),this.arr=t}static parse(t,e){if(t.length!==2)return e.error(`'semiliteral' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!et(t[1]))return e.error(`invalid value of type "${typeof t[1]}"`);let r=t[1],o=z(r);if(o.kind===`array`){let i=r.map(a=>e.parse(a,null,v));return new bc(i)}else return new ct(o,r)}evaluate(t){return this.arr.map(e=>e.evaluate(t))}eachChild(t){this.arr.forEach(t)}outputDefined(){return this.arr.every(t=>t.outputDefined())}};var xn=class vc{constructor(t){this.key=t,this.type=v}static parse(t,e){if(t.length!==2)return e.error(`Expected 1 argument, but found ${t.length-1} instead.`);let r=t[1];return r==null?e.error(`Global state property must be defined.`):typeof r!=`string`?e.error(`Global state property must be string, but found ${typeof t[1]} instead.`):new vc(r)}evaluate(t){let e=t.globals?.globalState;return!e||Object.keys(e).length===0?null:Xr(e,this.key)??null}eachChild(){}outputDefined(){return!1}};var Mt$1={"==":ql,"!=":Hl,">":Zl,"<":Wl,">=":Yl,"<=":Kl,array:Me,at:Dl,boolean:Me,case:jl,coalesce:uo$1,collator:po$1,format:Sl,image:ec,in:Nl,"index-of":Rl,interpolate:ut,"interpolate-hcl":ut,"interpolate-lab":ut,length:nc,let:lo$1,literal:ct,match:Fl,number:Me,"number-format":Xl,object:Me,semiliteral:yc,slice:Vl,step:ao$1,string:Me,"to-boolean":pt,"to-color":pt,"to-number":pt,"to-string":pt,var:co$1,within:sr$1,distance:lr$1,"global-state":xn};var Ne=class extends Error{constructor(n,t){super(t),this.message=t,this.key=n}};var _c=class xc{constructor(t,e=[]){this.parent=t,this.bindings={};for(let[r,o]of e)this.bindings[r]=o}concat(t){return new xc(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(`${t} not found in scope.`)}has(t){return this.bindings[t]?!0:this.parent?this.parent.has(t):!1}};var xo$1=class wc{constructor(t,e,r=[],o,i=new _c,a=[]){this.registry=t,this.path=r,this.key=r.map(s=>`[${s}]`).join(``),this.scope=i,this.errors=a,this.expectedType=o,this._isConstant=e}parse(t,e,r,o,i={}){return e?this.concat(e,r,o)._parse(t,i):this._parse(t,i)}_parse(t,e){(t===null||typeof t==`string`||typeof t==`boolean`||typeof t==`number`)&&(t=[`literal`,t]);let r=this.key;function o(i,a,s){return s===`assert`?new Me(a,[i],r):s===`coerce`?new pt(a,[i],r):i}if(Array.isArray(t)){if(t.length===0)return this.error(`Expected an array with at least one element. If you wanted a literal array, use ["literal", []].`);let i=t[0];if(typeof i!=`string`)return this.error(`Expression name must be a string, but found ${typeof i} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let a=this.registry[i];if(a){let s=a.parse(t,this);if(!s)return null;if(this.expectedType){let l=this.expectedType,c=s.type;if((l.kind===`string`||l.kind===`number`||l.kind===`boolean`||l.kind===`object`||l.kind===`array`)&&c.kind===`value`)s=o(s,l,e.typeAnnotation||`assert`);else if(l.kind===`projectionDefinition`&&[`string`,`array`,`value`].includes(c.kind)||[`color`,`formatted`,`resolvedImage`].includes(l.kind)&&[`value`,`string`].includes(c.kind)||[`padding`,`numberArray`].includes(l.kind)&&[`value`,`number`,`array`].includes(c.kind)||l.kind===`colorArray`&&[`value`,`string`,`array`].includes(c.kind)||l.kind===`variableAnchorOffsetCollection`&&[`value`,`array`].includes(c.kind))s=o(s,l,e.typeAnnotation||`coerce`);else if(this.checkSubtype(l,c))return null}if(!(s instanceof ct)&&s.type.kind!==`resolvedImage`&&this._isConstant(s)){let l=new oo$1;try{s=new ct(s.type,s.evaluate(l))}catch(c){return this.error(c.message),null}}return s}return this.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0)}else return typeof t>`u`?this.error(`'undefined' value invalid. Use null instead.`):typeof t==`object`?this.error(`Bare objects invalid. Use ["literal", {...}] instead.`):this.error(`Expected an array, but found ${typeof t} instead.`)}concat(t,e,r){let o=typeof t==`number`?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new wc(this.registry,this._isConstant,o,e||null,i,this.errors)}error(t,...e){let r=`${this.key}${e.map(o=>`[${o}]`).join(``)}`;this.errors.push(new Ne(r,t))}checkSubtype(t,e){let r=xt$1(t,e);return r&&this.error(r),r}};var qe=class cr{constructor(t,e,r,o,i){this.name=t,this.type=e,this._evaluate=r,this.args=o,this.key=i}evaluate(t){return this._evaluate(t,this.args,this.key)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}static parse(t,e){let r=t[0],o=cr.definitions[r];if(!o)return e.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0);let i=Array.isArray(o)?o[0]:o.type,a=Array.isArray(o)?[[o[1],o[2]]]:o.overloads,s=a.filter(([c])=>!Array.isArray(c)||c.length===t.length-1),l=null;for(let[c,u]of s){l=new xo$1(e.registry,ur$1,e.path,null,e.scope);let p=[],f=!1;for(let m=1;m<t.length;m++){let d=t[m],_=Array.isArray(c)?c[m-1]:c.type,I=l.parse(d,1+p.length,_);if(!I){f=!0;break}p.push(I)}if(!f){if(Array.isArray(c)&&c.length!==p.length){l.error(`Expected ${c.length} arguments, but found ${p.length} instead.`);continue}for(let m=0;m<p.length;m++){let d=Array.isArray(c)?c[m]:c.type,_=p[m];l.concat(m+1).checkSubtype(d,_.type)}if(l.errors.length===0)return new cr(r,i,u,p,e.key)}}if(s.length===1)e.errors.push(...l.errors);else{let c=(s.length?s:a).map(([p])=>Op(p)).join(` | `),u=[];for(let p=1;p<t.length;p++){let f=e.parse(t[p],1+u.length);if(!f)return null;u.push(V(f.type))}e.error(`Expected arguments of type ${c}, but found (${u.join(`, `)}) instead.`)}return null}static register(t,e){cr.definitions=e;for(let r in e)t[r]=cr}};function Cc(n,[t,e,r,o],i){t=t.evaluate(n),e=e.evaluate(n),r=r.evaluate(n);let a=o?o.evaluate(n):1,s=ro$1(t,e,r,a);if(s)throw new O(s,i);return new F(t/255,e/255,r/255,a,!1)}function Sc(n,t){return n in t&&t[n]!==void 0}function Hi(n,t){let e=t[n];return typeof e>`u`?null:e}function Dp(n,t,e,r){for(;e<=r;){let o=e+r>>1;if(t[o]===n)return!0;t[o]>n?r=o-1:e=o+1}return!1}function qt(n){return{type:n}}qe.register(Mt$1,{error:[cl,[x],(n,[t],e)=>{throw new O(t.evaluate(n),e)}],typeof:[x,[v],(n,[t])=>V(z(t.evaluate(n)))],"to-rgba":[ne$1(h,4),[ye],(n,[t])=>{let[e,r,o,i]=t.evaluate(n).rgb;return[e*255,r*255,o*255,i]}],rgb:[ye,[h,h,h],Cc],rgba:[ye,[h,h,h,h],Cc],has:{type:T,overloads:[[[x],(n,[t])=>Sc(t.evaluate(n),n.properties())],[[x,$e$1],(n,[t,e])=>Sc(t.evaluate(n),e.evaluate(n))]]},get:{type:v,overloads:[[[x],(n,[t])=>Hi(t.evaluate(n),n.properties())],[[x,$e$1],(n,[t,e])=>Hi(t.evaluate(n),e.evaluate(n))]]},"feature-state":[v,[x],(n,[t])=>Hi(t.evaluate(n),n.featureState||{})],properties:[$e$1,[],n=>n.properties()],"geometry-type":[x,[],n=>n.geometryType()],id:[v,[],n=>n.id()],zoom:[h,[],n=>n.globals.zoom],"heatmap-density":[h,[],n=>n.globals.heatmapDensity||0],elevation:[h,[],n=>n.globals.elevation||0],"line-progress":[h,[],n=>n.globals.lineProgress||0],accumulated:[v,[],n=>n.globals.accumulated===void 0?null:n.globals.accumulated],"+":[h,qt(h),(n,t)=>{let e=0;for(let r of t)e+=r.evaluate(n);return e}],"*":[h,qt(h),(n,t)=>{let e=1;for(let r of t)e*=r.evaluate(n);return e}],"-":{type:h,overloads:[[[h,h],(n,[t,e])=>t.evaluate(n)-e.evaluate(n)],[[h],(n,[t])=>-t.evaluate(n)]]},"/":[h,[h,h],(n,[t,e])=>t.evaluate(n)/e.evaluate(n)],"%":[h,[h,h],(n,[t,e])=>t.evaluate(n)%e.evaluate(n)],ln2:[h,[],()=>Math.LN2],pi:[h,[],()=>Math.PI],e:[h,[],()=>Math.E],"^":[h,[h,h],(n,[t,e])=>Math.pow(t.evaluate(n),e.evaluate(n))],sqrt:[h,[h],(n,[t])=>Math.sqrt(t.evaluate(n))],log10:[h,[h],(n,[t])=>Math.log(t.evaluate(n))/Math.LN10],ln:[h,[h],(n,[t])=>Math.log(t.evaluate(n))],log2:[h,[h],(n,[t])=>Math.log(t.evaluate(n))/Math.LN2],sin:[h,[h],(n,[t])=>Math.sin(t.evaluate(n))],cos:[h,[h],(n,[t])=>Math.cos(t.evaluate(n))],tan:[h,[h],(n,[t])=>Math.tan(t.evaluate(n))],asin:[h,[h],(n,[t])=>Math.asin(t.evaluate(n))],acos:[h,[h],(n,[t])=>Math.acos(t.evaluate(n))],atan:[h,[h],(n,[t])=>Math.atan(t.evaluate(n))],min:[h,qt(h),(n,t)=>
24Math.min(...t.map(e=>e.evaluate(n)))],max:[h,qt(h),(n,t)=>Math.max(...t.map(e=>e.evaluate(n)))],abs:[h,[h],(n,[t])=>Math.abs(t.evaluate(n))],round:[h,[h],(n,[t])=>{let e=t.evaluate(n);return e<0?-Math.round(-e):Math.round(e)}],floor:[h,[h],(n,[t])=>Math.floor(t.evaluate(n))],ceil:[h,[h],(n,[t])=>Math.ceil(t.evaluate(n))],"filter-==":[T,[x,v],(n,[t,e])=>n.properties()[t.value]===e.value],"filter-id-==":[T,[v],(n,[t])=>n.id()===t.value],"filter-type-==":[T,[x],(n,[t])=>n.geometryType()===t.value],"filter-<":[T,[x,v],(n,[t,e])=>{let r=n.properties()[t.value],o=e.value;return typeof r==typeof o&&r<o}],"filter-id-<":[T,[v],(n,[t])=>{let e=n.id(),r=t.value;return typeof e==typeof r&&e<r}],"filter->":[T,[x,v],(n,[t,e])=>{let r=n.properties()[t.value],o=e.value;return typeof r==typeof o&&r>o}],"filter-id->":[T,[v],(n,[t])=>{let e=n.id(),r=t.value;return typeof e==typeof r&&e>r}],"filter-<=":[T,[x,v],(n,[t,e])=>{let r=n.properties()[t.value],o=e.value;return typeof r==typeof o&&r<=o}],"filter-id-<=":[T,[v],(n,[t])=>{let e=n.id(),r=t.value;return typeof e==typeof r&&e<=r}],"filter->=":[T,[x,v],(n,[t,e])=>{let r=n.properties()[t.value],o=e.value;return typeof r==typeof o&&r>=o}],"filter-id->=":[T,[v],(n,[t])=>{let e=n.id(),r=t.value;return typeof e==typeof r&&e>=r}],"filter-has":[T,[v],(n,[t])=>{let e=t.value,r=n.properties();return e in r&&r[e]!==void 0}],"filter-has-id":[T,[],n=>n.id()!==null&&n.id()!==void 0],"filter-type-in":[T,[ne$1(x)],(n,[t])=>t.value.indexOf(n.geometryType())>=0],"filter-id-in":[T,[ne$1(v)],(n,[t])=>t.value.indexOf(n.id())>=0],"filter-in-small":[T,[x,ne$1(v)],(n,[t,e])=>e.value.indexOf(n.properties()[t.value])>=0],"filter-in-large":[T,[x,ne$1(v)],(n,[t,e])=>Dp(n.properties()[t.value],e.value,0,e.value.length-1)],all:{type:T,overloads:[[[T,T],(n,[t,e])=>t.evaluate(n)&&e.evaluate(n)],[qt(T),(n,t)=>{for(let e of t)if(!e.evaluate(n))return!1;return!0}]]},any:{type:T,overloads:[[[T,T],(n,[t,e])=>t.evaluate(n)||e.evaluate(n)],[qt(T),(n,t)=>{for(let e of t)if(e.evaluate(n))return!0;return!1}]]},"!":[T,[T],(n,[t])=>!t.evaluate(n)],"is-supported-script":[T,[x],(n,[t])=>{let e=n.globals&&n.globals.isSupportedScript;return e?e(t.evaluate(n)):!0}],upcase:[x,[x],(n,[t])=>t.evaluate(n).toUpperCase()],downcase:[x,[x],(n,[t])=>t.evaluate(n).toLowerCase()],concat:[x,qt(v),(n,t)=>t.map(e=>Tt$1(e.evaluate(n))).join(``)],split:[ne$1(x),[x,x],(n,[t,e])=>t.evaluate(n).split(e.evaluate(n))],join:[x,[ne$1(x),x],(n,[t,e])=>t.evaluate(n).join(e.evaluate(n))],"resolved-locale":[x,[wt$1],(n,[t])=>t.evaluate(n).resolvedLocale()]});function Op(n){return Array.isArray(n)?`(${n.map(V).join(`, `)})`:`(${V(n.type)}...)`}function ur$1(n){if(n instanceof co$1)return ur$1(n.boundExpression);if(n instanceof qe&&n.name===`error`)return!1;if(n instanceof po$1)return!1;if(n instanceof sr$1)return!1;if(n instanceof lr$1)return!1;if(n instanceof xn)return!1;let t=n instanceof pt||n instanceof Me,e=!0;return n.eachChild(r=>{t?e=e&&ur$1(r):e=e&&r instanceof ct}),e?wo$1(n)&&So$1(n,[`zoom`,`heatmap-density`,`elevation`,`line-progress`,`accumulated`,`is-supported-script`]):!1}function wo$1(n){if(n instanceof qe){if(n.name===`get`&&n.args.length===1)return!1;if(n.name===`feature-state`)return!1;if(n.name===`has`&&n.args.length===1)return!1;if(n.name===`properties`||n.name===`geometry-type`||n.name===`id`)return!1;if(/^filter-/.test(n.name))return!1}if(n instanceof sr$1||n instanceof lr$1)return!1;let t=!0;return n.eachChild(e=>{t&&!wo$1(e)&&(t=!1)}),t}function Co$1(n){if(n instanceof qe&&n.name===`feature-state`)return!1;let t=!0;return n.eachChild(e=>{t&&!Co$1(e)&&(t=!1)}),t}function So$1(n,t){if(n instanceof qe&&t.indexOf(n.name)>=0)return!1;let e=!0;return n.eachChild(r=>{e&&!So$1(r,t)&&(e=!1)}),e}function Tc(n){return n[`property-type`]===`data-driven`||n[`property-type`]===`cross-faded-data-driven`}function Ec(n){return!!n.expression&&n.expression.parameters.indexOf(`zoom`)>-1}function Mc(n){return!!n.expression&&n.expression.interpolated}function Ht(n){return typeof n==`object`&&n!==null&&!Array.isArray(n)&&z(n)===$e$1}function To$1(n){return{result:`success`,value:n}}function Wt(n){return{result:`error`,value:n}}var kc=class{constructor(n,t,e,r){this.expression=n,this._warningHistory={},this._evaluator=new oo$1,this._defaultValue=e?zp(e):null,this._enumValues=e&&e.type===`enum`?e.values:null,this._globalState=r,this._rootKey=t}evaluateWithoutErrorHandling(n,t,e,r,o,i){return this._globalState&&(n=wn(n,this._globalState)),this._evaluator.globals=n,this._evaluator.feature=t,this._evaluator.featureState=e,this._evaluator.canonical=r,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=i,this.expression.evaluate(this._evaluator)}evaluate(n,t,e,r,o,i){this._globalState&&(n=wn(n,this._globalState)),this._evaluator.globals=n,this._evaluator.feature=t||null,this._evaluator.featureState=e||null,this._evaluator.canonical=r,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=i||null;try{let a=this.expression.evaluate(this._evaluator);if(a==null||typeof a==`number`&&a!==a)return this._defaultValue;if(this._enumValues&&!(a in this._enumValues))throw new O(`Expected value to be one of ${Object.keys(this._enumValues).map(s=>JSON.stringify(s)).join(`, `)}, but found ${JSON.stringify(a)} instead.`,``);return a}catch(a){let s=a instanceof O?a.path:``,l=`${s}|${a.message}`;return this._warningHistory[l]||(this._warningHistory[l]=!0,typeof console<`u`&&console.warn(Pp(this._rootKey,s,a.message,this._defaultValue))),this._defaultValue}}};function Pp(n,t,e,r){return`${n}${t}: ${e}${r==null?``:` Falling back to ${String(r)}.`}`}
vendor: 7,764 bytes, line 24
24function Rp(n){if(!n)throw new Error(`rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".`)}function Cn(n){return Array.isArray(n)&&n.length>0&&typeof n[0]==`string`&&n[0]in Mt$1}function Mo$1(n,t,e,r){Rp(t);let o=new xo$1(Mt$1,ur$1,[],e?Fp(e):void 0),i=o.parse(n,void 0,void 0,void 0,e&&e.type===`string`?{typeAnnotation:`coerce`}:void 0);return i?To$1(new kc(i,t,e,r)):Wt(o.errors)}var Wi=class{constructor(n,t,e){this.kind=n,this._styleExpression=t,this.isStateDependent=n!==`constant`&&!Co$1(t.expression),this.globalStateRefs=pr$1(t.expression),this._globalState=e}evaluateWithoutErrorHandling(n,t,e,r,o,i){return this._globalState&&(n=wn(n,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(n,t,e,r,o,i)}evaluate(n,t,e,r,o,i){return this._globalState&&(n=wn(n,this._globalState)),this._styleExpression.evaluate(n,t,e,r,o,i)}};var Zi=class{constructor(n,t,e,r,o){this.kind=n,this.zoomStops=e,this._styleExpression=t,this.isStateDependent=n!==`camera`&&!Co$1(t.expression),this.globalStateRefs=pr$1(t.expression),this.interpolationType=r,this._globalState=o}evaluateWithoutErrorHandling(n,t,e,r,o,i){return this._globalState&&(n=wn(n,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(n,t,e,r,o,i)}evaluate(n,t,e,r,o,i){return this._globalState&&(n=wn(n,this._globalState)),this._styleExpression.evaluate(n,t,e,r,o,i)}interpolationFactor(n,t,e){return this.interpolationType?ut.interpolationFactor(this.interpolationType,n,t,e):0}};function ko$1(n,t,e,r){let o=Mo$1(n,t,e,r);if(o.result===`error`)return o;let i=o.value.expression,a=wo$1(i);if(!a&&!Tc(e))return Wt([new Ne(``,`data expressions not supported`)]);let s=So$1(i,[`zoom`]);if(!s&&!Ec(e))return Wt([new Ne(``,`zoom expressions not supported`)]);let l=Eo$1(i);if(!l&&!s)return Wt([new Ne(``,`"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.`)]);if(l instanceof Ne)return Wt([l]);if(l instanceof ut&&!Mc(e))return Wt([new Ne(``,`"interpolate" expressions cannot be used with this property`)]);if(!l)return To$1(a?new Wi(`constant`,o.value,r):new Wi(`source`,o.value,r));let c=l instanceof ut?l.interpolation:void 0;return To$1(a?new Zi(`camera`,o.value,l.labels,c,r):new Zi(`composite`,o.value,l.labels,c,r))}function Eo$1(n){let t=null;if(n instanceof lo$1)t=Eo$1(n.result);else if(n instanceof uo$1){for(let e of n.args)if(t=Eo$1(e),t)break}else(n instanceof ao$1||n instanceof ut)&&n.input instanceof qe&&n.input.name===`zoom`&&(t=n);return t instanceof Ne||n.eachChild(e=>{let r=Eo$1(e);r instanceof Ne?t=r:!t&&r?t=new Ne(``,`"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.`):t&&r&&t!==r&&(t=new Ne(``,`Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.`))}),t}function pr$1(n,t=new Set){return n instanceof xn&&t.add(n.key),n.eachChild(e=>{pr$1(e,t)}),t}function Fp(n){let t={color:ye,string:x,number:h,enum:x,boolean:T,formatted:zt,padding:jt$1,numberArray:$t,colorArray:Ct,projectionDefinition:Ft$1,resolvedImage:st,variableAnchorOffsetCollection:Vt$1};return n.type===`array`?ne$1(t[n.value]||v,n.length):t[n.type]}function zp(n){if(n.type===`color`&&Ht(n.default))return new F(0,0,0,0);switch(n.type){case`color`:return F.parse(n.default)||null;case`padding`:return Ue.parse(n.default)||null;case`numberArray`:return Be.parse(n.default)||null;case`colorArray`:return Ee.parse(n.default)||null;case`variableAnchorOffsetCollection`:return Ge.parse(n.default)||null;case`projectionDefinition`:return Qe$1.parse(n.default)||null;default:return n.default===void 0?null:n.default}}function wn(n,t){let{zoom:e,heatmapDensity:r,elevation:o,lineProgress:i,isSupportedScript:a,accumulated:s}=n??{};return{zoom:e,heatmapDensity:r,elevation:o,lineProgress:i,isSupportedScript:a,accumulated:s,globalState:t}}function jp(n){let t=!1;for(let e of n){let r=Dc(e);if(r===`expression`)return`expression`;r===`legacy`&&(t=!0)}return t?`legacy`:`neutral`}function Dc(n){if(typeof n==`boolean`)return`neutral`;if(!Array.isArray(n)||n.length===0)return`legacy`;switch(n[0]){case`has`:return n.length<2||n[1]===`$id`||n[1]===`$type`?`legacy`:n.length===2?`neutral`:`expression`;case`in`:return n.length>=3&&(typeof n[1]!=`string`||Array.isArray(n[2]))?`expression`:`legacy`;case`!in`:case`!has`:return`legacy`;case`==`:case`!=`:case`>`:case`>=`:case`<`:case`<=`:return n.length!==3||Array.isArray(n[1])||Array.isArray(n[2])?`expression`:`legacy`;case`none`:return`legacy`;case`any`:case`all`:return jp(n.slice(1));default:return`expression`}}function Ji(n){return Dc(n)!==`legacy`}function Ic(n){return n===`$type`?[`geometry-type`]:n===`$id`?[`id`]:[`get`,n]}function $p(n){switch(n[0]){case`==`:case`!=`:case`<`:case`<=`:case`>`:case`>=`:return n.length!==3||typeof n[1]!=`string`?null:[n[0],Ic(n[1]),n[2]];case`in`:case`!in`:{if(n.length<2||typeof n[1]!=`string`)return null;let t=[`in`,Ic(n[1]),[`literal`,n.slice(2)]];return n[0]===`!in`?[`!`,t]:t}case`has`:case`!has`:{if(n.length!==2||typeof n[1]!=`string`||n[1]===`$type`||n[1]===`$id`)return null;let t=[`has`,n[1]];return n[0]===`!has`?[`!`,t]:t}default:return null}}function Vp(n){if((n[0]===`<`||n[0]===`<=`||n[0]===`>`||n[0]===`>=`)&&n[1]===`$type`)return`"$type" cannot be use with operator "${n[0]}"`;let t=$p(n);return t?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(n)} with ${JSON.stringify(t)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(n)} to expression syntax.`}function Ki(n,t,e){let r=e[n];return Array.isArray(r)?Ji(r)?Oc(r,t.concat(n)):{path:t.concat(n),legacyFilter:r}:null}function Oc(n,t=[]){if(!Array.isArray(n)||n.length<1)return null;switch(n[0]){case`all`:case`any`:case`none`:for(let e=1;e<n.length;e++){let r=Ki(e,t,n);if(r)return r}break;case`!`:{let e=Ki(1,t,n);if(e)return e;break}case`case`:for(let e=1;e<n.length-1;e+=2){let r=Ki(e,t,n);if(r)return r}}return null}function Up(n,t){let e=Oc(n);if(!e||typeof console>`u`)return;let r=e.path.map(o=>`[${o}]`).join(``);console.warn(`${t}${r}: ${Vp(e.legacyFilter)}`)}var Bp={type:`boolean`,default:!1,transition:!1,"property-type":`data-driven`,expression:{interpolated:!1,parameters:[`zoom`,`feature`]}};function Xi(n,t,e){if(n==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Ji(n)?Up(n,t):n=Ao$1(n);let r=Mo$1(n,t,Bp,e);if(r.result===`error`)throw new Error(r.value.map(o=>`${o.key}: ${o.message}`).join(`, `));return{filter:(o,i,a)=>r.value.evaluate(o,i,{},a),needGeometry:Nc(n),getGlobalStateRefs:()=>pr$1(r.value.expression)}}function Gp(n,t){return n<t?-1:n>t?1:0}function Nc(n){if(!Array.isArray(n))return!1;if(n[0]===`within`||n[0]===`distance`)return!0;for(let t=1;t<n.length;t++)if(Nc(n[t]))return!0;return!1}function Ao$1(n){if(!n)return!0;let t=n[0];return n.length<=1?t!==`any`:t===`==`?Yi(n[1],n[2],`==`):t===`!=`?Io$1(Yi(n[1],n[2],`==`)):t===`<`||t===`>`||t===`<=`||t===`>=`?Yi(n[1],n[2],t):t===`any`?qp(n.slice(1)):t===`all`?[`all`].concat(n.slice(1).map(Ao$1)):t===`none`?[`all`].concat(n.slice(1).map(Ao$1).map(Io$1)):t===`in`?Ac(n[1],n.slice(2)):t===`!in`?Io$1(Ac(n[1],n.slice(2))):t===`has`?Lc(n[1]):t===`!has`?Io$1(Lc(n[1])):!0}function Yi(n,t,e){switch(n){case`$type`:return[`filter-type-${e}`,t];case`$id`:return[`filter-id-${e}`,t];default:return[`filter-${e}`,n,t]}}function qp(n){return[`any`].concat(n.map(Ao$1))}function Ac(n,t){if(t.length===0)return!1;switch(n){case`$type`:return[`filter-type-in`,[`literal`,t]];case`$id`:return[`filter-id-in`,[`literal`,t]];default:return t.length>200&&!t.some(e=>typeof e!=typeof t[0])?[`filter-in-large`,n,[`literal`,t.sort(Gp)]]:[`filter-in-small`,
24n,[`literal`,t]]}}function Lc(n){switch(n){case`$type`:return!0;case`$id`:return[`filter-has-id`];default:return[`filter-has`,n]}}function Io$1(n){return[`!`,n]}function dr$1(n){return typeof n==`object`?[`literal`,n]:n}function Lo$1(n,t){let e=n.stops;if(!e)return Hp(n,t);let r=e&&typeof e[0][0]==`object`,o=r||n.property!==void 0,i=r||!o;return e=e.map(a=>!o&&t.tokens&&typeof a[1]==`string`?[a[0],Yp(a[1])]:[a[0],dr$1(a[1])]),r?Wp(n,t,e):i?Kp(n,t,e):Qi(n,t,e)}function Hp(n,t){let e=[`get`,n.property];if(n.default===void 0)return t.type===`string`?[`string`,e]:e;if(t.type===`enum`)return[`match`,e,Object.keys(t.values),e,n.default];{let r=[t.type===`color`?`to-color`:t.type,e,dr$1(n.default)];return t.type===`array`&&r.splice(1,0,t.value,t.length||null),r}}function ea$1(n){switch(n.colorSpace){case`hcl`:return`interpolate-hcl`;case`lab`:return`interpolate-lab`;default:return`interpolate`}}function Wp(n,t,e){let r={},o={},i=[];for(let a=0;a<e.length;a++){let s=e[a],l=s[0].zoom;r[l]===void 0&&(r[l]={zoom:l,type:n.type,property:n.property,default:n.default},o[l]=[],i.push(l)),o[l].push([s[0].value,s[1]])}if(na$1({},t)===`exponential`){let a=[ea$1(n),[`linear`],[`zoom`]];for(let s of i)Sn(a,s,Qi(r[s],t,o[s]),!1);return a}else{let a=[`step`,[`zoom`]];for(let s of i)Sn(a,s,Qi(r[s],t,o[s]),!0);return ta$1(a),a}}function Zp(n,t){if(n!==void 0)return n;if(t!==void 0)return t}function Pc(n,t){let e=dr$1(Zp(n.default,t.default));return e===void 0&&t.type===`resolvedImage`?``:e}function Qi(n,t,e){let r=na$1(n,t),o=[`get`,n.property];if(r===`categorical`&&typeof e[0][0]==`boolean`){let i=[`case`];for(let a of e)i.push([`==`,o,a[0]],a[1]);return i.push(Pc(n,t)),i}else if(r===`categorical`){let i=[`match`,o];for(let a of e)Sn(i,a[0],a[1],!1);return i.push(Pc(n,t)),i}else if(r===`interval`){let i=[`step`,[`number`,o]];for(let a of e)Sn(i,a[0],a[1],!0);return ta$1(i),n.default===void 0?i:[`case`,[`==`,[`typeof`,o],`number`],i,dr$1(n.default)]}else if(r===`exponential`){let i=n.base!==void 0?n.base:1,a=[ea$1(n),i===1?[`linear`]:[`exponential`,i],[`number`,o]];for(let s of e)Sn(a,s[0],s[1],!1);return n.default===void 0?a:[`case`,[`==`,[`typeof`,o],`number`],a,dr$1(n.default)]}else throw new Error(`Unknown property function type ${r}`)}function Kp(n,t,e,r=[`zoom`]){let o=na$1(n,t),i,a=!1;if(o===`interval`)i=[`step`,r],a=!0;else if(o===`exponential`){let s=n.base!==void 0?n.base:1;i=[ea$1(n),s===1?[`linear`]:[`exponential`,s],r]}else throw new Error(`Unknown zoom function type "${o}"`);for(let s of e)Sn(i,s[0],s[1],a);return ta$1(i),i}function ta$1(n){n[0]===`step`&&n.length===3&&(n.push(0),n.push(n[3]))}function Sn(n,t,e,r){n.length>3&&t===n[n.length-2]||(r&&n.length===2||n.push(t),n.push(e))}function na$1(n,t){return n.type?n.type:t.expression.interpolated?`exponential`:`interval`}function Yp(n){let t=[`concat`],e=/{([^{}]+)}/g,r=0;for(let o=e.exec(n);o!==null;o=e.exec(n)){let i=n.slice(r,e.lastIndex-o[0].length);r=e.lastIndex,i.length>0&&t.push(i),t.push([`get`,o[1]])}if(t.length===1)return n;if(r<n.length)t.push(n.slice(r));else if(t.length===2)return[`to-string`,t[1]];return t}function Rc(n,t){let e=t[0].evaluate(n),r=t[1].evaluate(n),o=t[2].evaluate(n),i=t[3]?t[3].evaluate(n):1;return F.parse(`hsla(${e}, ${r}%, ${o}%, ${i})`)}function Jp(n){let t=n[0]/255,e=n[1]/255,r=n[2]/255,o=n[3],i=Math.max(t,e,r),a=Math.min(t,e,r),s=(i+a)/2,l,c;if(i===a)l=0,c=0;else{let u=i-a;switch(c=s>.5?u/(2-i-a):u/(i+a),i){case t:l=(e-r)/u+(e<r?6:0);break;case e:l=(r-t)/u+2;break;case r:l=(t-e)/u+4;break;default:l=0}l/=6}return[l*360,c*100,s*100,o]}function fr$1(n){if(Array.isArray(n)){if(n.length===0)return n;let t=n[0];if(t===`literal`)return n;if(t===`image`&&n.length===3&&typeof n[2]==`object`&&n[2]!==null&&!Array.isArray(n[2]))return[`image-config`,fr$1(n[1]),[`literal`,n[2]]];let e=n.length;for(let r=1;r<e;++r){let o=n[r],i=fr$1(o);if(i!==o){let a=[t];for(let s=1;s<r;++s)a.push(n[s]);a.push(i);for(let s=r+1;s<e;++s)a.push(fr$1(n[s]));return a}}}return n}var mr$1={};var tt={zoom:0,distanceFromCenter:0};qe.register(Mt$1,F$2(E({},qe.definitions),{pitch:[{kind:`number`},[],n=>tt.pitch||0],"distance-from-center":[{kind:`number`},[],n=>tt.distanceFromCenter||0],"to-hsla":[{kind:`array`,itemType:{kind:`number`},N:4},[{kind:`string`}
24],(n,[t])=>Jp(lt$3(t.evaluate(n)))],hsl:[{kind:`color`},[{kind:`number`},{kind:`number`},{kind:`number`}],Rc],hsla:[{kind:`color`},[{kind:`number`},{kind:`number`},{kind:`number`},{kind:`number`}],Rc],"image-config":[{kind:`value`},[{kind:`string`},{kind:`value`}],(n,[t,e])=>t.evaluate(n)],"measure-light":[{kind:`number`},[{kind:`value`}],()=>1],config:[{kind:`value`},[{kind:`string`}],(n,[t])=>{let e=mr$1[t.evaluate(n)];return e===void 0?{}:e}]}));var zc=`https://api.mapbox.com`;function ra$1(n){return n.indexOf(`mapbox://`)!==0?``:n.slice(9)}function jc(n,t,e){if(typeof n==`string`)return[{id:`default`,url:Fc(n,t,e)}];for(let r of n)r.url=Fc(r.url,t,e);return n}function Fc(n,t,e){let r=ra$1(n);if(!t||!r)return decodeURI(new URL(n,e).href);if(r.indexOf(`sprites/`)!==0)throw new Error(`unexpected sprites url: ${n}`);return`${zc}/styles/v1/${r.slice(8)}/sprite?access_token=${t}`}function Do$1(n,t){let e=ra$1(n);if(!e||!t)return decodeURI(new URL(n,location.href).href);if(e.indexOf(`styles/`)!==0)throw new Error(`unexpected style url: ${n}`);return`${zc}/styles/v1/${e.slice(7)}?&access_token=${t}`}var Xp=[`a`,`b`,`c`,`d`];function Tn$1(n,t,e,r){let o=new URL(n,r||location.href),i=ra$1(n);if(!i)return t?(o.searchParams.has(e)||o.searchParams.set(e,t),[decodeURI(o.href)]):[decodeURI(o.href)];if(i===`mapbox.satellite`)return[`https://api.mapbox.com/v4/${i}/{z}/{x}/{y}${window.devicePixelRatio>=1.5?`@2x`:``}.webp?access_token=${t}`];return Xp.map(a=>`https://${a}.tiles.mapbox.com/v4/${i}/{z}/{x}/{y}.vector.pbf?access_token=${t}`)}var Mn$1=Object.freeze({});var $c={};var Vc={};var Qp=0;function oa$1(n){return n.id||(n.id=Qp++),n.id}function ia$1(n,t){return oa$1(n)+`.`+mt$1(t)}function aa$1(n){let t=$c[n.id];return t||(t={},$c[oa$1(n)]=t),t}function sa$1(n){let t=Vc[n.id];return t||(t={},Vc[oa$1(n)]=t),t}function Oo$1(n){return n*Math.PI/180}var kn$1=(function(){let n=[];for(let t=78271.51696402048;n.length<=24;t/=2)n.push(t);return n})();function In$1(n,t){if(typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof OffscreenCanvas<`u`)return new OffscreenCanvas(n,t);let e=document.createElement(`canvas`);return e.width=n,e.height=t,e}function No$1(n,t){let e=0,r=t.length;for(;e<r;++e)if(t[e]<n&&e+1<r){let i=t[e]/t[e+1];return e+Math.log(t[e]/n)/Math.log(i)}return r-1}function Bc(n,t){let e=Math.floor(n),r=Math.pow(2,n-e);return t[e]/r}var En$1={};function Zt(n,t,e={},r){if(t in En$1)return r&&(r.url=En$1[t][0].url),En$1[t][1];let o=e.transformRequest&&e.transformRequest(t,n)||t,i=function(l){return delete En$1[t],Promise.reject(new Error(`Error fetching source `+t))},a=function(l){return delete En$1[t],l.ok?l.json():Promise.reject(new Error(`Error fetching source `+t))},s=J$1(()=>o).then(l=>l instanceof Response?(r&&(r.url=l.url),a(l)):(l instanceof Request||(l=new Request(l)),l.headers.get(`Accept`)||l.headers.set(`Accept`,`application/json`),r&&(r.url=l.url),fetch(l).then(a).catch(i))).catch(i);return En$1[t]=[o,s],s}function Gc(n,t){if(typeof n==`string`)if(n.trim().startsWith(`{`))try{let e=JSON.parse(n);return Promise.resolve(e)}catch(e){return Promise.reject(e)}else return n=Do$1(n,t.accessToken),Zt(`Style`,n,t);else return Promise.resolve(n)}var Uc={};function qc(n,t,e={}){let r=[t,JSON.stringify(n)].toString(),o=Uc[r];if(!o||e.transformRequest){let i;e.transformRequest&&(i=(s,l)=>{let c=e.transformRequest&&e.transformRequest(l,`Tiles`)||l;if(s instanceof nl$2)s.setLoader((u,p,f)=>{let m=function(d){d.arrayBuffer().then(_=>{let M=s.getFormat().readFeatures(_,{extent:u,featureProjection:f});s.setFeatures(M)})};J$1(()=>c).then(d=>{if(d instanceof Response)return m(d);fetch(d).then(m).catch(_=>s.setState(D$1.ERROR))}).catch(d=>s.setState(D$1.ERROR))});else{let u=s.getImage();J$1(()=>c).then(p=>{if(typeof p==`string`){u.src=p;return}let f=m=>m.blob().then(d=>{let _=URL.createObjectURL(d);u.addEventListener(`load`,()=>URL.revokeObjectURL(_)),u.addEventListener(`error`,()=>URL.revokeObjectURL(_)),u.src=_});if(p instanceof Response)return f(p);fetch(p).then(f).catch(m=>s.setState(D$1.ERROR))}).catch(p=>s.setState(D$1.ERROR))}});let a=n.url;if(a&&!n.tiles){let s=Tn$1(a,e.accessToken,e.accessTokenParam||`access_token`,t||location.href);if(a.startsWith(`mapbox://`))o=Promise.resolve({tileJson:Object.assign({},n,{url:void 0,tiles:s}),tileLoadFunction:i});else{let l={};o=Zt(`Source`,s[0],e,l).then(function(c){return c.tiles=c.tiles.map(function(u){return c.scheme===`tms`&&(u=u.replace(`{y}`,`{-y}`)),Tn$1(u,e.accessToken,e.accessTokenParam||`access_token`,l.url)[0]}),Promise.resolve({tileJson:c,tileLoadFunction:i})})}}else n.tiles?(n=Object.assign({},n,{tiles:n.tiles.map(function(s){return n.scheme===`tms`&&(s=s.replace(`{y}`,`{-y}`)),Tn$1(s,e.accessToken,e.accessTokenParam||`access_token`,t||location.href)[0]})}),o=Promise.resolve({tileJson:Object.assign({},n),tileLoadFunction:i})):o=Promise.reject(new Error("source has no `tiles` nor `url`"));Uc[r]=o}return o}function la$1(n,t,e,r){let o=[2*e*t.pixelRatio+t.width,2*e*t.pixelRatio+t.height],i=In$1(o[0],o[1]),a=i.getContext(`2d`);a.drawImage(n,t.x,t.y,t.width,t.height,e*t.pixelRatio,e*t.pixelRatio,t.width,t.height);let s=a.getImageData(0,0,o[0],o[1]);a.globalCompositeOperation=`destination-over`,a.fillStyle=`rgba(${r.r*255},${r.g*255},${r.b*255},${r.a})`;let l=s.data;for(let c=0,u=s.width;c<u;++c)for(let p=0,f=s.height;p<f;++p)l[(p*u+c)*4+3]>0&&a.arc(c,p,e*t.pixelRatio,0,2*Math.PI);return a.fill(),i}function ed(n,t,e){let r=Math.max(0,Math.min(1,(e-n)/(t-n)));return r*r*(3-2*r)}function ca$1(n,t,e){let r=In$1(t.width,t.height),o=r.getContext(`2d`);o.drawImage(n,t.x,t.y,t.width,t.height,0,0,t.width,t.height);let i=o.getImageData(0,0,t.width,t.height),a=i.data;for(let s=0,l=i.width;s<l;++s)for(let c=0,u=i.height;c<u;++c){let p=(c*l+s)*4,_=ed(.65,.85,a[p+3]/255);_>0?(a[p+0]=Math.round(255*e.r*_),a[p+1]=Math.round(255*e.g*_),a[p+2]=Math.round(255*e.b*_),a[p+3]=Math.round(255*_)):a[p+3]=0}return o.putImageData(i,0,0),r}var td=Array(256).join(`â`);function Ro$1(n,t){if(t>=.05){let e=``,r=n.split(` 25`),o=td.slice(0,Math.round(t/.1));for(let i=0,a=r.length;i<a;++i)i>0&&(e+=` 26`),e+=r[i].split(``).join(o);return e}return n}var ua$1;function Wc(){return ua$1||(ua$1=In$1(1,1).getContext(`2d`)),ua$1}
26function nd(n,t){if(/\d+ \d+/.test(n)){let[e,r]=n.split(` `).map(Number);return e<=t&&t<=r}return n==t}function Kt(n,t){return Wc().measureText(n).width+(n.length-1)*t}var Po$1={};S.on(`propertychange`,()=>{for(let n in Po$1)delete Po$1[n]});function Fo$1(n,t,e,r){if(n.indexOf(` 27`)!==-1){let a=n.split(` 28`),s=[];for(let l=0,c=a.length;l<c;++l)s.push(Fo$1(a[l],t,e,r));return s.join(` 29`)}let o=e+`,`+t+`,`+n+`,`+r,i=Po$1[o];if(!i){let a=n.split(` `);if(a.length>1){let s=Wc();s.font=t;let c=s.measureText(`M`).width*e,u=``,p=[];for(let f=0,m=a.length;f<m;++f){let d=a[f],_=u+(u?` `:``)+d;Kt(_,r)<=c?u=_:(u&&p.push(u),u=d)}u&&p.push(u);for(let f=0,m=p.length;f<m&&m>1;++f){let d=p[f];if(Kt(d,r)<c*.35){let _=f>0?Kt(p[f-1],r):Infinity,I=f<m-1?Kt(p[f+1],r):Infinity;p.splice(f,1),m-=1,_<I?(p[f-1]+=` `+d,f-=1):p[f]=d+` `+p[f]}}for(let f=0,m=p.length-1;f<m;++f){let d=p[f],_=p[f+1];if(Kt(d,r)>c*.7&&Kt(_,r)<c*.6){let I=d.split(` `),M=I.pop();Kt(M,r)<c*.2&&(p[f]=I.join(` `),p[f+1]=M+` `+_),m-=1}}i=p.join(` 30`)}else i=n;i=Ro$1(i,r),Po$1[o]=i}return i}var rd=[`Arial`,`Courier New`,`Times New Roman`,`Verdana`,`sans-serif`,`serif`,`monospace`,`cursive`,`fantasy`];var Hc={};function Zc(n,t=`https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css`){if(q)return n;let e;for(let r=0,o=n.length;r<o;++r){let i=n[r];if(i in Hc)continue;Hc[i]=!0;let s=Ll$1(i,16).split(` `);e||(e=[]),e.push([s.slice(3).join(` `).replace(/"/g,``),s[1],s[0]])}return e&&L$1(null,null,function*(){yield document.fonts.ready;for(let r=0,o=e.length;r<o;++r){let i=e[r],a=i[0];if(rd.includes(a))continue;let s=i[1],l=i[2];if(!(yield document.fonts.load(`${l} ${s} 16px "${a}"`)).some(u=>u.family.replace(/^['"]|['"]$/g,``).toLowerCase()===a.toLowerCase()&&nd(u.weight,s)&&u.style===l)){let u=t.replace(`{font-family}`,a.replace(/ /g,`-`).toLowerCase()).replace(`{Font+Family}`,a.replace(/ /g,`+`)).replace(`{fontweight}`,s).replace(`{-fontstyle}`,l.replace(`normal`,``).replace(/(.+)/,`-$1`)).replace(`{fontstyle}`,l);if(!document.querySelector(`link[href="`+u+`"]`)){let p=document.createElement(`link`);p.href=u,p.rel=`stylesheet`,document.head.appendChild(p)}}}}),n}var od={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3};var id={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]};var Kc=function(n,t,e){let r=ko$1(n,t,e);if(r.result===`error`){let o=fr$1(n);o!==n&&(r=ko$1(o,t,e))}if(r.result===`error`){let o=r.value[0];return console.error(`Error parsing expression:`,n,o.key,o.message),{evaluate:()=>e.default}}return r.value};var zo$1;var pa$1;function w(n,t,e,r,o,i){let a=n.id;o||(o={},console.warn(`No functionCache provided to getValue()`)),o[a]||(o[a]={});let s=o[a];if(!s[e]){let l=(n[t]||Mn$1)[e],c=`layers[${a}].${t}.${e}`,u=Jr[`${t}_${n.type}`]&&Jr[`${t}_${n.type}`][e];l===void 0&&u&&(l=u.default);let p=Cn(l);if(!p&&Ht(l)&&(l=Lo$1(l,u),p=!0),p){let f=Kc(l,c,u);s[e]=f.evaluate.bind(f)}else{let f=u?u.type:typeof l;(f===`color`||f===`colorArray`)&&(l=F.parse(l));let m=!1;if(f===`array`)for(let d=0;d<l.length;++d){let _=l[d];if(Cn(_)||Ht(_)){m=!0;break}}if(m){let d=Object.assign({},u,{type:u.value}),_=[];for(let I=0;I<l.length;++I){let M=l[I];if(!Cn(M)&&Ht(M)&&(M=Lo$1(M,d)),Cn(M)){let X=Kc(M,`${c}[${I}]`,d);_.push(X.evaluate.bind(X))}else _.push(function(){return M})}s[e]=function(I,M,X){let N=[];for(let B=0;B<_.length;++B)N[B]=_[B](I,M,X);return N}}else s[e]=function(){return l}}}return s[e](tt,r,i)}function Yc(n,t,e,r){return w(n,`layout`,`${e}-allow-overlap`,t,r)?w(n,`layout`,`${e}-ignore-placement`,t,r)?`none`:`obstacle`:`declutter`}function ad(n,t,e,r){if(r||console.warn(`No filterCache provided to evaluateFilter()`),!(n in r))try{r[n]=Xi(t,`layers[${n}].filter`).filter}catch(o){console.warn(`Filter will evaluate to false: `+o.message),r[n]=function(){return!1}}return r[n](tt,e)}var sd=!1;function kt$1(n,t){if(n){if(!sd&&(n.a===0||t===0))return;let e=n.a;return t=t===void 0?1:t,e===0?`transparent`:`rgba(`+Math.round(n.r*255/e)+`,`+Math.round(n.g*255/e)+`,`+Math.round(n.b*255/e)+`,`+e*t+`)`}return n}var ld=/\{[^{}}]*\}/g;
30function da$1(n,t){return n.replace(ld,function(e){return t[e.slice(1,-1)]||``})}function Jc(n,t){let e=n.split(`:`)[0];return e===n&&(e=`default`),t[e]}var Xc={};function fa$1(n,t,e,r=kn$1,o=void 0,i=void 0,a=void 0,s$1=void 0){if(typeof t==`string`&&(t=JSON.parse(t)),t.schema)for(let N in t.schema){let B=t.schema[N];`default`in B&&(mr$1[N]=B.default)}if(t.version!=8)throw new Error(`glStyle version 8 required.`);Xc[ia$1(t,n)]=Array.from(arguments);let l={};(typeof i==`string`||i instanceof Request||i instanceof Response||i instanceof Promise)&&(i={default:i});for(let N in i){let B=i[N];J$1(()=>B).then(P=>L$1(null,null,function*(){let J;if(typeof Image<`u`){let k=new Image;if(typeof P==`string`)k.crossOrigin=`anonymous`,k.src=P;else{let L;P instanceof Request?L=yield fetch(P):P instanceof Response&&(L=P);let q=yield L.blob();J=URL.createObjectURL(q),k.src=J}k.addEventListener(`load`,function L(){k.removeEventListener(`load`,L),l[N]={image:k,size:[k.width,k.height]},n.changed(),J&&URL.revokeObjectURL(J)}),k.addEventListener(`error`,function L(){URL.revokeObjectURL(J),k.removeEventListener(`error`,L)})}else if(typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope){let k=self;k.postMessage({action:`loadImage`,src:P}),k.addEventListener(`message`,function(q){q.data.action===`imageLoaded`&&q.data.src===P&&(l[N]={image:q.data.image,size:[q.data.image.width,q.data.image.height]})})}}))}let c=wi(t.layers),u$1={},p=[],f={},m={},d=aa$1(t),_=sa$1(t),I;for(let N=0,B=c.length;N<B;++N){let P=c[N],J=P.id;if(typeof e==`string`&&P.source==e||Array.isArray(e)&&e.indexOf(J)!==-1){let k=P[`source-layer`];if(I){if(P.source!==I)throw new Error(`Layer "${J}" does not use source "${I}`)}else{I=P.source;let q=t.sources[I];if(!q)throw new Error(`Source "${I}
30" is not defined`);let _e=q.type;if(_e!==`vector`&&_e!==`geojson`)throw new Error(`Source "${I}" is not of type "vector" or "geojson", but "${_e}"`)}let L=u$1[k];L||(L=[],u$1[k]=L),L.push({layer:P,index:N}),p.push(J)}}let M=[],X=function(N,B,P){let J=n.getSource?.()?.format_?.layerName_??`mvt:layer`,k=N.getProperties(),L=u$1[k[J]];if(!L)return;let q=r.indexOf(B);q==-1&&(q=No$1(B,r)),tt.zoom=q,tt.distanceFromCenter=0;let _e=N.getGeometry(),se=od[_e.getType()],Yt=n.get(`map`);if(Yt&&Yt instanceof Ba$2&&se===1){let Jt=Yt.getSize();if(Jt)tt.distanceFromCenter=mr$2(Yt.getView().getCenter(),tt$2(_e.getExtent()))/B/Jt[1]}let C={id:N.getId(),properties:k,type:se},S=n.get(`mapbox-featurestate`)[N.getId()],ce=-1;for(let Jt=0,Vo=L.length;Jt<Vo;++Jt){let hr=L[Jt],g=hr.layer,ga=g.id;if(P!==void 0&&P!==ga)continue;let Uo=g.layout||Mn$1,Xt=g.paint||Mn$1;if(w(g,`layout`,`visibility`,C,d,S)===`none`||`minzoom`in g&&q<g.minzoom||`maxzoom`in g&&q>=g.maxzoom)continue;let ya=g.filter;if(!ya||ad(ga,ya,C,_)){let ke,nt,gr,Ie,we,y,Qt=hr.index;if(se==3&&(g.type==`fill`||g.type==`fill-extrusion`)){if(nt=w(g,`paint`,g.type+`-opacity`,C,d,S),g.type+`-pattern`in Xt){let Q=w(g,`paint`,g.type+`-pattern`,C,d,S);if(Q){let W=typeof Q==`string`?da$1(Q,k):Q.toString(),U=Jc(W,l);if(o&&o[W]&&U){++ce,y=M[ce],(!y||!y.getFill()||y.getStroke()||y.getText())&&(y=new w$2({fill:new u}),M[ce]=y),gr=y.getFill(),y.setZIndex(Qt);let Z=W+`.`+nt,pe=m[Z];if(!pe){let re=o[W],ue=In$1(re.width,re.height),K=ue.getContext(`2d`);K.globalAlpha=nt,K.drawImage(U.image,re.x,re.y,re.width,re.height,0,0,re.width,re.height),pe=K.createPattern(ue,`repeat`),m[Z]=pe}gr.setColor(pe)}}}else if(ke=kt$1(w(g,`paint`,g.type+`-color`,C,d,S),nt),g.type+`-outline-color`in Xt&&(we=kt$1(w(g,`paint`,g.type+`-outline-color`,C,d,S),nt)),we||(we=ke),ke||we){if(++ce,y=M[ce],(!y||ke&&!y.getFill()||!ke&&y.getFill()||we&&!y.getStroke()||!we&&y.getStroke()||y.getText())&&(y=new w$2({fill:ke?new u:void 0,stroke:we?new s:void 0}),M[ce]=y),ke&&(gr=y.getFill(),gr.setColor(ke)),g.type===`fill-extrusion`){let Q=w(g,`paint`,`fill-extrusion-height`,C,d,S);if(Q>0){let W=Math.max(.1,.9-Math.min(Q,225)/280);if(we&&we!==`transparent`){let U=F.parse(we);we=`rgba(${Math.round(U.r*255*W)},${Math.round(U.g*255*W)},${Math.round(U.b*255*W)},${U.a})`}}}we&&(Ie=y.getStroke(),Ie.setColor(we),Ie.setWidth(.5)),y.setZIndex(Qt)}}if(se!=1&&g.type==`line`){`line-pattern`in Xt?ke=void 0:ke=kt$1(w(g,`paint`,`line-color`,C,d,S),w(g,`paint`,`line-opacity`,C,d,S));let Q=w(g,`paint`,`line-width`,C,d,S);ke&&Q>0&&(++ce,y=M[ce],(!y||!y.getStroke()||y.getFill()||y.getText())&&(y=new w$2({stroke:new s}),M[ce]=y),Ie=y.getStroke(),Ie.setLineCap(w(g,`layout`,`line-cap`,C,d,S)),Ie.setLineJoin(w(g,`layout`,`line-join`,C,d,S)),Ie.setMiterLimit(w(g,`layout`,`line-miter-limit`,C,d,S)),Ie.setColor(ke),Ie.setWidth(Q),Ie.setLineDash(Xt[`line-dasharray`]?w(g,`paint`,`line-dasharray`,C,d,S).map(function(W){return W*Q}):null),typeof Ie.setOffset==`function`&&Ie.setOffset(w(g,`paint`,`line-offset`,C,d,S)),y.setZIndex(Qt))}let yr=!1,R=null,ba=0,en,be,Bo;if((se==1||se==2)&&`icon-image`in Uo){let Q=w(g,`layout`,`icon-image`,C,d,S);if(Q){en=typeof Q==`string`?da$1(Q,k):Q.toString();let W,U=s$1?s$1(n,en):void 0,Z=Jc(en,l);if(o&&o[en]&&Z||U){let pe=w(g,`layout`,`symbol-placement`,C,d,S),re=w(g,`layout`,`icon-rotation-alignment`,C,d,S),ue=re===`auto`?pe!==`point`:re===`map`;if(se==2){let K=N.getGeometry();if(K.getFlatMidpoint||K.getFlatMidpoints){let oe=K.getExtent();if(Math.sqrt(Math.max(Math.pow((oe[2]-oe[0])/B,2),Math.pow((oe[3]-oe[1])/B,2)))>150){let Ce=K.getType()===`MultiLineString`?K.getFlatMidpoints():K.getFlatMidpoint();if(pa$1||(zo$1=[NaN,NaN],pa$1=new qt$1(`Point`,zo$1,[],2,{},void 0)),W=pa$1,zo$1[0]=Ce[0],zo$1[1]=Ce[1],pe===`line`&&ue){let Ae=K.getStride(),Pe=K.getFlatCoordinates();for(let ve=0,mt=Pe.length-Ae;ve<mt;ve+=Ae){let H=Pe[ve],xe=Pe[ve+1],ie=Pe[ve+Ae],Le=Pe[ve+Ae+1],qo=Math.min(H,ie),iu=Math.max(H,ie),Ho=Ce[0],au=Ce[1],su=(Le-xe)*(Ho-H)-(ie-H)*(au-xe);if(Math.abs(su)<.001&&Ho<=iu&&Ho>=qo){ba=Math.atan2(xe-Le,ie-H);break}}}}}}if(se!==2||W){let K=w(g,`layout`,`icon-size`,C,d,S),oe=Xt[`icon-color`]!==void 0?w(g,`paint`,`icon-color`,C,d,S):null;if(!oe||oe.a!==0){let We=w(g,`paint`,`icon-halo-color`,C,d,S),Ce=w(g,`paint`,`icon-halo-width`,C,d,S),Ae=`${en}.${K}.${Ce}.${We}.${ue}`;if(oe!==null&&(Ae+=`.${oe}`),be=f[Ae],!be){let Pe=Yc(g,C,`icon`,d),ve;`icon-offset`in Uo&&(ve=w(g,`layout`,`icon-offset`,C,d,S).slice(0),ve[0]*=K,ve[1]*=-K);let mt=oe?[oe.r*255,oe.g*255,oe.b*255,oe.a]:void 0;if(U){let H={color:mt,rotateWithView:ue,displacement:ve,declutterMode:Pe,scale:K};typeof U==`string`?H.src=U:(H.img=U,H.imgSize=[U.width,U.height]),be=new $i$2(H)}else{let H=o[en],xe,ie,Le;if(Ce)H.sdf?(xe=la$1(ca$1(Z.image,H,oe||[0,0,0,1]),{x:0,y:0,width:H.width,height:H.height,pixelRatio:H.pixelRatio},Ce,We),mt=void 0):xe=la$1(Z.image,H,Ce,We);else{if(H.sdf&&!Z.unSDFed)Z.image=ca$1(Z.image,{x:0,y:0,width:Z.size[0],height:Z.size[1]},{r:1,g:1,b:1,a:1}),Z.unSDFed=!0;xe=Z.image,ie=[H.width,H.height],Le=[H.x,H.y]}be=new $i$2({color:mt,img:xe,imgSize:Z.size,size:ie,offset:Le,rotateWithView:ue,scale:K/H.pixelRatio,displacement:ve,declutterMode:Pe})}f[Ae]=be}}be&&(++ce,y=M[ce],(!y||!y.getImage()||y.getFill()||y.getStroke())&&(y=new w$2,M[ce]=y),y.setGeometry(W),be.setRotation(ba+Oo$1(w(g,`layout`,`icon-rotate`,C,d,S))),be.setOpacity(w(g,`paint`,`icon-opacity`,C,d,S)),be.setAnchor(id[w(g,`layout`,`icon-anchor`,C,d,S)]),y.setImage(be),R=y.getText(),y.setText(void 0),y.setZIndex(Qt),yr=!0,Bo=!1)}else Bo=!0}}}if(se==1&&g.type===`circle`){++ce,y=M[ce],(!y||!y.getImage()||y.getFill()||y.getStroke())&&(y=new w$2,M[ce]=y);let Q=`circle-radius`in Xt?w(g,`paint`,`circle-radius`,C,d,S):5,W=kt$1(w(g,`paint`,`circle-stroke-color`,C,d,S),w(g,`paint`,`circle-stroke-opacity`,C,d,S)),U=w(g,`paint`,`circle-translate`,C,d,S),Z=kt$1(w(g,`paint`,`circle-color`,C,d,S),w(g,`paint`,`circle-opacity`,C,d,S)),pe=w(g,`paint`,`circle-stroke-width`,C,d,S),re=Q+`.`+W+`.`+Z+`.`+pe+`.`+U[0]+`.`+U[1];be=f[re],be||(be=new wt$2({radius:Q,displacement:[U[0],-U[1]],stroke:W&&pe>0?new s({width:pe,color:W}):void 0,fill:Z?new u({color:Z}):void 0,declutterMode:`none`}),f[re]=be),y.setImage(be),R=y.getText(),y.setText(void 0),y.setGeometry(void 0),y.setZIndex(Qt),yr=!0}let me,An,Ln,ft,Dn,Go;if(`text-field`in Uo){ft=Math.round(w(g,`layout`,`text-size`,C,d,S));let Q=w(g,`layout`,`text-font`,C,d,S);Ln=w(g,`layout`,`text-line-height`,C,d,S),An=Ll$1(a?a(Q,t.metadata?t.metadata[`ol:webfonts`]:void 0):Q,ft,Ln),An.includes(`sans-serif`)||(An+=`,s
30ans-serif`),Dn=w(g,`layout`,`text-letter-spacing`,C,d,S),Go=w(g,`layout`,`text-max-width`,C,d,S);let W=w(g,`layout`,`text-field`,C,d,S);typeof W==`object`&&W.sections?W.sections.length===1?me=W.toString():me=W.sections.reduce((U,Z,pe)=>{let re=Z.fontStack?Z.fontStack.split(`,`):Q,ue=Ll$1(a?a(re):re,ft*(Z.scale||1),Ln),K=Z.text;if(K===` 31`)return U.push(` 32`,``),U;if(se==2)return U.push(Ro$1(K,Dn),ue),U;K=Fo$1(K,ue,Go,Dn).split(` 33`);for(let oe=0,We=K.length;oe<We;++oe)oe>0&&U.push(` 34`,``),U.push(K[oe],ue);return U},[]):me=da$1(W,k).trim(),nt=w(g,`paint`,`text-opacity`,C,d,S)}if(me&&nt&&!Bo){yr||(++ce,y=M[ce],(!y||!y.getText()||y.getFill()||y.getStroke())&&(y=new w$2,M[ce]=y),y.setImage(void 0),y.setGeometry(void 0));let Q=Yc(g,C,`text`,d);y.getText()||y.setText(R),R=y.getText(),(!R||`getDeclutterMode`in R&&R.getDeclutterMode()!==Q)&&(R=new $r$2({padding:[2,2,2,2],declutterMode:Q}),y.setText(R));let W=w(g,`layout`,`text-transform`,C,d,S);W==`uppercase`?me=Array.isArray(me)?me.map((ie,Le)=>Le%2?ie:ie.toUpperCase()):me.toUpperCase():W==`lowercase`&&(me=Array.isArray(me)?me.map((ie,Le)=>Le%2?ie:ie.toLowerCase()):me.toLowerCase());let U=Array.isArray(me)?me:se==2?Ro$1(me,Dn):Fo$1(me,An,Go,Dn);if(R.setText(U),R.setFont(An),R.setRotation(Oo$1(w(g,`layout`,`text-rotate`,C,d,S))),typeof R.setKeepUpright==`function`){let ie=w(g,`layout`,`text-keep-upright`,C,d,S);R.setKeepUpright(ie)}let Z=w(g,`layout`,`text-anchor`,C,d,S),pe=yr||se==1?`point`:w(g,`layout`,`symbol-placement`,C,d,S),re;if(pe===`line-center`?(R.setPlacement(`line`),re=`center`):R.setPlacement(pe),pe===`line`&&typeof R.setRepeat==`function`){let ie=w(g,`layout`,`symbol-spacing`,C,d,S);R.setRepeat(ie*2)}R.setOverflow(pe===`point`);let ue=w(g,`paint`,`text-halo-width`,C,d,S),K=w(g,`layout`,`text-offset`,C,d,S),oe=w(g,`paint`,`text-translate`,C,d,S),We=0,Ce=0;if(pe==`point`){re=`center`,Z.indexOf(`left`)!==-1?(re=`left`,Ce=ue):Z.indexOf(`right`)!==-1&&(re=`right`,Ce=-ue);let ie=w(g,`layout`,`text-rotation-alignment`,C,d,S);R.setRotateWithView(ie==`map`)}else R.setMaxAngle(Oo$1(w(g,`layout`,`text-max-angle`,C,d,S))*me.length/U.length),R.setRotateWithView(!1);R.setTextAlign(re);let Ae=`middle`;Z.indexOf(`bottom`)==0?(Ae=`bottom`,We=-ue-.5*(Ln-1)*ft):Z.indexOf(`top`)==0&&(Ae=`top`,We=ue+.5*(Ln-1)*ft),R.setTextBaseline(Ae);let Pe=w(g,`layout`,`text-justify`,C,d,S);R.setJustify(Pe===`auto`?void 0:Pe),R.setOffsetX(K[0]*ft+Ce+oe[0]),R.setOffsetY(K[1]*ft+We+oe[1]);let ve=R.getFill()||new u;ve.setColor(kt$1(w(g,`paint`,`text-color`,C,d,S),nt)),R.setFill(ve);let mt=kt$1(w(g,`paint`,`text-halo-color`,C,d,S),nt);if(mt&&ue>0){let ie=R.getStroke()||new s;ie.setColor(mt),ue*=2;let Le=.5*ft;ie.setWidth(ue<=Le?ue:Le),R.setStroke(ie)}else R.setStroke(void 0);let H=w(g,`layout`,`text-padding`,C,d,S),xe=R.getPadding();H!==xe[0]&&(xe[0]=H,xe[1]=H,xe[2]=H,xe[3]=H),y.setZIndex(Qt)}}}if(ce>-1)return M.length=ce+1,M};return n.setStyle(X),n.set(`mapbox-layers`,p),n.set(`mapbox-source`,I),n.set(`mapbox-featurestate`,n.get(`mapbox-featurestate`)||{}),X}F.parse(`#000000`);F.parse(`#FFFFFF`);F.parse(`#000000`);function ud(n,t=512){return n.getExtent()?Ko$2({extent:n.getExtent(),tileSize:t,maxZoom:22}).getResolutions():kn$1}function pd(n,t){return t.accessToken||(t=Object.assign({},t),new URL(n).searchParams.forEach((r,o)=>{t.accessToken=r,t.accessTokenParam=o})),t}function jo$1(n,t,e=``,r={},o=void 0){let i,a,s,l,c=!0;return typeof e!=`string`&&!Array.isArray(e)?(s=e,l=s.source||s.layers,r=s):l=e,typeof r==`string`?(i=r,s={}):(i=r.styleUrl,s=r),s.updateSource===!1&&(c=!1),o||(o=s.resolutions),!i&&typeof t==`string`&&!t.trim().startsWith(`{`)&&(i=t),i&&(i=i.startsWith(`data:`)?location.href:Do$1(i,s.accessToken),s=pd(i,s)),new Promise(function(u,p){Gc(t,s).then(function(f){if(f.version!=8)return p(new Error(`glStyle version 8 required.`));if(!(n instanceof Mi$1||n instanceof la$3))return p(new Error(`Can only apply to VectorLayer or VectorTileLayer`));let m=n instanceof la$3?`vector`:`geojson`;if(l?Array.isArray(l)?a=f.layers.find(function(B){return B.id===l[0]}).source:a=l:(a=f.layers.find(function(B){return B.source&&f.sources[B.source].type===m}).source,l=a),!a)return p(new Error(`No ${m} source found in the glStyle.`));function d(){if(!c)return Promise.resolve();if(n instanceof la$3)return md(f.sources[a],i,s).then(function(k){let L=n.getSource();L?k!==L&&(L.setTileUrlFunction(k.getTileUrlFunction()),typeof L.setUrls==`function`&&typeof k.getUrls==`function`&&L.setUrls(k.getUrls()),L.format_||(L.format_=k.format_),L.getAttributions()||L.setAttributions(k.getAttributions()),L.getTileLoadFunction()===bg$1&&L.setTileLoadFunction(k.getTileLoadFunction()),$r$1(L.getProjection(),k.getProjection())&&(L.tileGrid=k.getTileGrid())):n.setSource(k);let q=n.getSource().getTileGrid();!isFinite(n.getMaxResolution())&&!isFinite(n.getMinZoom())&&q.getMinZoom()>0&&n.setMaxResolution(Bc(Math.max(0,q.getMinZoom()-1e-12),q.getResolutions()))});let B=f.sources[a],P=n.getSource();(!P||P.get(`mapbox-source`)!==B)&&(P=gd(B,i,s));let J=n.getSource();return J?P!==J&&(J.getAttributions()||J.setAttributions(P.getAttributions()),J.format_||(J.format_=P.getFormat()),J.url_=P.getUrl()):n.setSource(P),Promise.resolve()}let _,I,M={},X={};
34function N(){if(!I&&(!f.sprite||M)){if(s.projection&&!o){let k=P$1(s.projection).getUnits();k!==`m`&&(o=kn$1.map(L=>L/A[k]))}let B,P=n.getSource();P instanceof Nu$2&&P.format_ instanceof el$3&&(B=P.format_.layerName_),I=fa$1(n,f,l,o,M,X,(J,k=s.webfonts)=>Zc(J,k),s.getImage,B),n.getStyle()?d().then(u).catch(p):p(new Error(`Nothing to show for source [${a}]`))}else I?(n.setStyle(I),d().then(u).catch(p)):p(new Error(`Something went wrong trying to apply style.`))}if(f.sprite){let B=jc(f.sprite,s.accessToken,i||location.href);_=q?1:window.devicePixelRatio>=1.5?.5:1;let P=_==.5?`@2x`:``;Promise.all(B.map(function(J){let k=new URL(J.url),L=k.origin+k.pathname+P+`.json`+k.search;return new Promise(function(q,_e){Zt(`Sprite`,L,s).then(q).catch(function(se){L=k.origin+k.pathname+`.json`+k.search,Zt(`Sprite`,L,s).then(q).catch(_e)})}).then(function(q){q===void 0&&p(new Error(`No sprites found.`));let _e;if(_e=k.origin+k.pathname+P+`.png`+k.search,s.transformRequest){let se=s.transformRequest(_e,`SpriteImage`)||_e;(se instanceof Request||se instanceof Promise)&&(_e=se)}X[J.id]=_e;for(let se in q){let Yt=J.id=="default"?se:`${J.id}:${se}`;M[Yt]=q[se]}}).catch(function(q){p(new Error(`Sprites cannot be loaded: ${L}: ${q.message}`))})})).then(N).catch(p)}else N()}).catch(p)})}function dd(n,t){let e=n.bounds;if(e){let r=Vr$1([e[0],e[1]],t),o=Vr$1([e[2],e[3]],t);return[r[0],r[1],o[0],o[1]]}return P$1(t).getExtent()}function fd(n,t,e){let r=new vv({tileJSON:t,tileSize:n.tileSize||t.tileSize||512}),o=r.getTileJSON(),i=r.getTileGrid(),a=P$1(e.projection||`EPSG:3857`),s=dd(o,a),l=a.getExtent(),c=o.minzoom||0,u=o.maxzoom||22,p={attributions:r.getAttributions(),projection:a,tileGrid:new un$2({origin:l?En$3(l):i.getOrigin(0),extent:s||i.getExtent(),minZoom:c,resolutions:ud(a,t.tileSize).slice(0,u+1),tileSize:i.getTileSize(0)})};return Array.isArray(o.tiles)?p.urls=o.tiles:p.url=o.tiles,p}function md(n,t,e){return new Promise(function(r,o){qc(n,t,e).then(function({tileJson:i,tileLoadFunction:a}){let s=fd(n,i,e);s.tileLoadFunction=a,s.format=new el$3({layerName:`mvt:layer`});let l=new Nu$2(s);l.set(`mapbox-source`,n),r(l)}).catch(o)})}function hd(n){return`{bbox-${(n?n.getCode():`EPSG:3857`).toLowerCase().replace(/[^a-z0-9]/g,`-`)}}`}function gd(n,t,e){let r=e.projection?new _i$1({dataProjection:e.projection}):new _i$1,o=n.data,i={};if(typeof o==`string`){let[s]=Tn$1(o,e.accessToken,e.accessTokenParam||`access_token`,t||location.href);if(/\{bbox-[0-9a-z-]+\}/.test(s)){let c=(p,f,m)=>{let d=hd(m);return s.replace(d,`${p.join(`,`)}`)},u=new oi$1({attributions:n.attribution,format:r,loader:(p,f,m,d,_)=>{Zt(`GeoJSON`,typeof c==`function`?c(p,f,m):c,e).then(M=>{let X=u.getFormat().readFeatures(M,{featureProjection:m});u.addFeatures(X),d(X)}).catch(M=>{u.removeLoadedExtent(p),_()})},strategy:sx});return u.set(`mapbox-source`,n),u}let l=new oi$1({attributions:n.attribution,format:r,url:s,loader:(c,u,p,f,m)=>{Zt(`GeoJSON`,s,e).then(d=>{let _=l.getFormat().readFeatures(d,{featureProjection:p});l.addFeatures(_),f(_)}).catch(d=>{l.removeLoadedExtent(c),m()})}});return l}i.features=r.readFeatures(o,{featureProjection:vr$1()||`EPSG:3857`});let a=new oi$1(Object.assign({attributions:n.attribution,format:r},i));return a.set(`mapbox-source`,n),a}function vd(n,t){if(n&1&&(Nc$2(0,`li`,0),up$1(1,`img`,1),Nc$2(2,`span`,2),uD(3),Mc$2()()),n&2){let e=t.$implicit;uy(),pp$1(`src`,e.imageUrl,Iv)(`alt`,e.iconDescription??``),uy(2),kp$1(e.text)}}function _d(n,t){if(n&1&&up$1(0,`div`,0),n&2)pp$1(`innerHTML`,RE().svgContent(),yv)}function xd(n,t){if(n&1&&(Nc$2(0,`div`,1),up$1(1,`img`,2),Mc$2()),n&2){let e=RE();uy(),pp$1(`src`,e.legend.legendUrl,Iv)(`alt`,e.layerName)}}function wd(n,t){if(n&1&&(pi(0,`li`,1),lp$1(1,`ggc-mapbox-legend-item`,2),pi(2,`div`,3),uD(3),bc()()),n&2){let e=t.$implicit,r=RE(2);uy(),cp$1(`item`,e)(`mapboxStyle`,r.mapboxStyle),uy(2),kp$1(e.title)}}function Cd(n,t){if(n&1&&(pi(0,`ul`,0),vE(1,wd,4,3,`li`,1,mE),bc()),n&2){let e=RE();uy(),yE(e.legendItems)}}function Sd(n,t){if(n&1&&(Nc$2(0,`span`,0),uD(1),Mc$2()),n&2){let e=RE(2);uy(),xc$1(` `,e.emptyLegendMessage,` `)}}function Td(n,t){n&1&&(Nc$2(0,`span`,0),uD(1,` Geen legenda beschikbaar `),Mc$2())}function Ed(n,t){if(n&1&&hE(0,Sd,2,1,`span`,0)(1,Td,2,0,`span`,0),n&2)gE(RE().emptyLegendMessage?0:1)}var Md=n=>({layerLegend:n});function kd(n,t){n&1&&(pi(0,`span`),uD(1,`Geen datasets geselecteerd!`),bc())}function Id(n,t){if(n&1){let e=wE();pi(0,`button`,6),gp$1(`click`,function(){Gl$1(e);let o=RE(3).$implicit;return ql$2(RE(2).toggleLegendInternal(o))})(`keyup`,function(o){Gl$1(e);let i=RE(3).$implicit;return ql$2(RE(2).toggleLegendInternal(i,o))}),lp$1(1,`span`)(2,`span`),uD(3),bc()}if(n&2){let e=RE(3),r=e.$implicit,o=e.$index,i=RE(2);ap$1(`aria-expanded`,r.expanded||!1)(`aria-controls`,`ggc-legend-`+o),uy(),eD(pD(`ggc-dl-dataset-toggle-collapsed `,i.iconCollapsed)),uy(),eD(pD(`ggc-dl-dataset-toggle-expanded `,i.iconExpanded)),uy(),xc$1(` `,r.name,` `)}}function Ad(n,t){if(n&1&&(pi(0,`span`,5),uD(1),bc()),n&2){let e=RE(3).$implicit;uy(),xc$1(` `,e.name,` `)}}function Ld(n,t){if(n&1&&hE(0,Id,4,9,`button`,5)(1,Ad,2,1,`span`,5),n&2)gE(RE(4).collapsable?0:1)}function Dd(n,t){n&1&&fp$1(0)}function Od(n,t){if(n&1&&Xf(0,Dd,1,0,`ng-container`,7),n&2){let e=RE().$implicit;RE(5);cp$1(`ngTemplateOutlet`,VE(4))(`ngTemplateOutletContext`,ED(2,Md,e))}}function Nd(n,t){if(n&1&&hE(0,Od,1,4,`ng-container`),n&2){let e=t.$implicit,r=RE(5);gE(e.layerEnabled||r.alwaysEnableLegends?0:-1)}}function Pd(n,t){if(n&1&&(pi(0,`div`,4),vE(1,Nd,1,1,null,null,mE),bc()),n&2){let e=RE(2),r=e.$implicit,o=e.$index;cp$1(`id`,pD(`ggc-legend-`,o)),uy(),yE(r.layerLegends)}}function Rd(n,t){n&1&&lp$1(0,`p`)}function Fd(n,t){if(n&1&&(pi(0,`div`,3),hE(1,Ld,2,1),hE(2,Pd,3,2,`div`,4),hE(3,Rd,1,0,`p`),bc()),n&2){let e=RE(),r=e.$implicit,o=e.$index,i=e.$count,a=RE(2);wp$1(`ggc-dl-dataset-expanded`,!a.collapsable||r.expanded),uy(),gE(a.showLegendsName?1:-1),uy(),gE(!a.collapsable||a.collapsable&&r.expanded?2:-1),uy(),gE(o!==i-1?3:-1)}}function zd(n,t){if(n&1&&hE(0,Fd,4,5,`div`,2),n&2){let e=t.$implicit,r=RE(2);gE(r.legendIsEnabled(e)||r.alwaysEnableLegends?0:-1)}}
34function jd(n,t){if(n&1&&vE(0,zd,1,1,null,null,mE),n&2)yE(RE().legends)}function $d(n,t){if(n&1&&lp$1(0,`ggc-legend-url`,8),n&2){let e=RE().layerLegend;cp$1(`legend`,e.legend)(`layerName`,e.layerName)}}function Vd(n,t){if(n&1&&lp$1(0,`ggc-legend-icon`,9),n&2){let e=RE().layerLegend;cp$1(`icons`,e.legend)}}function Ud(n,t){if(n&1&&lp$1(0,`ggc-legend-mapbox`),n&2){let e=RE().layerLegend;JE(e.legend)}}function Bd(n,t){if(n&1&&lp$1(0,`ggc-legend-empty`,11),n&2){let e=RE().layerLegend,r=RE();cp$1(`legend`,e.legend)(`showEmptyLegendMessage`,r.showEmptyLegendMessage)(`emptyLegendMessage`,r.emptyLegendMessage)}}function Gd(n,t){if(n&1&&hE(0,$d,1,2,`ggc-legend-url`,8)(1,Vd,1,1,`ggc-legend-icon`,9)(2,Ud,1,2,`ggc-legend-mapbox`,10)(3,Bd,1,3,`ggc-legend-empty`,11),n&2){let e=t.layerLegend,r=RE();gE(r.isLegendUrl(e.legend)?0:r.isIconListArray(e.legend)?1:r.isVectorTileStyle(e.legend)?2:3)}}var qd=(()=>{class n{constructor(){this.expandAll$=new Mn$2}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵprov=z$1({token:n,factory:n.ɵfac,providedIn:`root`})}}return n})();var Hd=(()=>{class n{static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵcmp=zI({type:n,selectors:[[`ggc-legend-icon`]],inputs:{icons:`icons`},decls:3,vars:0,consts:[[1,`ggc-dl-iconlist-item`],[1,`ggc-dl-iconlist-image`,3,`src`,`alt`],[1,`ggc-dl-iconlist-text`]],template:function(r,o){r&1&&(Nc$2(0,`ul`),vE(1,vd,4,3,`li`,0,mE),Mc$2()),r&2&&(uy(),yE(o.icons))},styles:[`.ggc-dl-iconlist[_ngcontent-%COMP%]{margin:3px}.ggc-dl-iconlist-image[_ngcontent-%COMP%]{margin:2px 0}.ggc-dl-iconlist-text[_ngcontent-%COMP%]{margin-left:10px;display:inline-block}ul[_ngcontent-%COMP%]{list-style:none;padding-left:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:none}`]})}}return n})();var Wd=(()=>{class n{constructor(){this.isSvg=OD(()=>this.legend?.legendUrl&&/\.svg(?:\?.*)?$/i.test(this.legend.legendUrl)),this.svgContent=Ys$2(``),this.httpClient=I$1(Zr$2),this.sanitizer=I$1(vi),pu$1(()=>{this.svgContent.set(``);let e=this.legend.legendUrl;!e||!this.isSvg()||this.httpClient.get(e,{responseType:`text`}).subscribe(r=>{let o=MZ.sanitize(r,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_ATTR:[`role`]});this.svgContent.set(this.sanitizer.bypassSecurityTrustHtml(o))})})}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵcmp=zI({type:n,selectors:[[`ggc-legend-url`]],inputs:{legend:`legend`,layerName:`layerName`},decls:2,vars:1,consts:[[3,`innerHTML`],[1,`ggc-dl-legend-img`],[3,`src`,`alt`]],template:function(r,o){r&1&&hE(0,_d,1,1,`div`,0)(1,xd,2,2,`div`,1),r&2&&gE(o.isSvg()&&o.svgContent()?0:1)},encapsulation:2})}}return n})();var He=(function(n){return n.Circle=`circle`,n.Fill=`fill`,n.Line=`line`,n.Raster=`raster`,n.Symbol=`symbol`,n})(He||{});function Zd(n){throw new Error(`ERROR! Reached forbidden guard function with unexpected value: ${JSON.stringify(n)}`)}var Qc=(()=>{class n{constructor(){this.http=I$1(Zr$2)}getMapboxStyle(e){return this.http.get(e)}getLayersids(e){let r=[];for(let o of e.layers)r.push(o.id);return r}removeRasterLayers(e){return e.layers=e.layers.filter(r=>r.type!==He.Raster),e}isPatternWithStops(e){return e?e.stops!==void 0:!1}isPatternWithMatch(e){return!e||typeof e==`string`?!1:e&&e.length>0&&e[0]===`match`}getItems(e,r){let o=[];for(let i of e.layers){let a=Kd({},i.filter),s=i[`source-layer`],l;switch(i.type){case He.Fill:l=i.paint[`fill-color`]||i.paint[`fill-pattern`];break;case He.Line:l=i.paint[`line-color`];break;case He.Circle:l=i.paint[`circle-color`];break;case He.Symbol:i.paint?.[`text-color`]&&(l=i.paint[`text-color`]);break}this.handlePattern(l,o,i)||(a=this.addTextLabels(i,a),r&&!o.some(u=>u.title===s)&&o.push(this.generateItem(s,i,a)))}return o}handlePattern(e,r,o){let i={};if(this.isPatternWithStops(e))e.stops.forEach(a=>{i={},i[``+e.property]=a[0];let s=a[0];return r.push(this.generateItem(s,o,i)),!0});else{if(this.isPatternWithMatch(e))return this.domatch(e,o,i,r),!0;console.warn(`Invalid paint pattern detected:`,e)}return!1}domatch(e,r,o,i){if(e.length<3){console.warn(`Invalid match pattern:`,e);return}let a=e[1].slice(1),s=``,l=0;for(let c of e)l<2?console.warn(`skip`,c):c.startsWith(`#`)?(o={},o=this.addTextLabels(r,o),s!==``&&(o[a]=s,i.some(u=>u.title===s)||i.push(this.generateItem(s,r,o)),s=``)):s=c+``,l++}addTextLabels(e,r){if(e.layout?.[`text-field`]&&typeof e.layout[`text-field`]==`string`){let o=e.layout[`text-field`].trim().replace(`{`,``).replace(`}`,``);r[``+o]=o.substring(0,6),r.size=`1`}return r}generateItem(e,r,o){return{name:r.id,title:e,geoType:r.type,style:[],sourceLayer:r[`source-layer`],feature:void 0,properties:o}}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵprov=z$1({token:n,factory:n.ɵfac,providedIn:`root`})}}return n})();function Kd(n,t){function e(r){if(Array.isArray(r)){let o=r[0],i=r.slice(1);if(o===`all`||o===`any`)i.forEach(e);else if(typeof r[1]==`string`){let a=r[1];typeof r[2]==`string`||typeof r[2]==`number`?n[a]=r[2]:console.warn(`Unexpected filter value type for key "${a}":`,r[2])}else console.warn(`Unexpected filter key type:`,r[1])}}return e(t),n}var Yd=(()=>{class n{constructor(){this.mapboxStyleService=I$1(Qc),this.elementRef=I$1(ur$2),this.itemLeft=10,this.itemRight=50,this._itemHeight=20,this._itemWidth=50}get itemHeight(){return this._itemHeight}get itemWidth(){return this._itemWidth}ngOnInit(){this.extent=[0,0,this.itemWidth,this.itemHeight],this.projection=new _$1({code:`pixel-map`,units:`pixels`,extent:this.extent}),this.vectorSource=new Nu$2({format:new el$3,projection:this.projection}),this.vectorLayer=new la$3({source:this.vectorSource}),this.map=new Ba$2({controls:[],interactions:[],layers:[this.vectorLayer],view:new ii$2({projection:this.projection,center:tt$2(this.extent),zoom:2,minZoom:2,maxZoom:2})});let e=this.newFeature(this.item);this.vectorLayer.getSource()?.setTileLoadFunction(i=>{let a=i;a.setLoader(()=>{let s=[];s.push(e),a.setFeatures(s)})});let r=[];r.push(1);let o=this.mapboxStyleService.getLayersids(this.mapboxStyle);jo$1(this.vectorLayer,this.mapboxStyle,o,void 0,r).then(()=>{this.vectorLayer.getSource()?.refresh();let i=this.elementRef.nativeElement.querySelector(`[id='itemmap']`);this.map.setTarget(i)}).catch(i=>{console.warn(`error loading legend style: `+i)})}newFeature(e){switch(e.geoType){case He.Fill:{let r=Id$2(this.extent);r.scale(.05,.05);let o=new Ie$2({geometry:r,layer:e.sourceLayer});return o.setProperties(e.properties),o}case He.Circle:case He.Raster:case He.Symbol:{let r=new Ie$2({geometry:new Re$1(tt$2(this.extent)),layer:e.sourceLayer});return r.setProperties(e.properties),r}case He.Line:{let r=this.itemHeight/2,o=new Ie$2({geometry:new we$1([[this.itemLeft,r],[this.itemRight,r]]),layer:e.sourceLayer});return o.setProperties(e.properties),o}default:Zd(e.geoType)}}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵcmp=zI({type:n,selectors:[[`ggc-mapbox-legend-item`]],inputs:{item:`item`,mapboxStyle:`mapboxStyle`},decls:1,vars:5,consts:[[`aria-hidden`,`true`,`id`,`itemmap`,1,`legenditem`]],template:function(r,o){r&1&&up$1(0,`div`,0),r&2&&(Tp$1(`width`,o.itemWidth,`px`)(`height`,o.itemHeight,`px`),ap$1(`role`,`img`))},encapsulation:2})}}return n})();var Jd=(()=>{class n{constructor(){this.legendItems=[],this.mapboxStyleService=I$1(Qc)}set style(e){this.styleUrl=e.url,this.generateLegend()}generateLegend(){this.styleUrl?this.mapboxStyleService.getMapboxStyle(this.styleUrl).subscribe(e=>{this.mapboxStyle=this.mapboxStyleService.removeRasterLayers(e),this.legendItems=this.mapboxStyleService.getItems(this.mapboxStyle,!0),this.legendItems=this.legendItems.slice().sort((r,o)=>String(r.title).localeCompare(String(o.title)))}):console.warn(`no style url supplied`)}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵcmp=zI({type:n,selectors:[[`ggc-legend-mapbox`]],inputs:{style:`style`},decls:1,vars:1,consts:[[1,`ggc-dl-mapbox-legendContainer`],[1,`ggc-dl-mapbox-legend-item`],[3,`item`,`mapboxStyle`],[1,`ggc-dl-mapbox-legend-text`]],template:function(r,o){r&1&&hE(0,Cd,3,0,`ul`,0),r&2&&gE(o.legendItems.length>0?0:-1)},dependencies:[Yd],styles:[`.ggc-dl-mapbox-legendContainer[_ngcontent-%COMP%]{display:flex;flex:0 1 auto;flex-wrap:wrap;flex-direction:column;justify-content:flex-start;align-items:flex-start;max-height:100%;padding:5px;margin:5px;min-height:0}.ggc-dl-mapbox-legend-item[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;flex-direction:row;align-items:center;flex:0 1 auto}.ggc-dl-mapbox-legend-text[_ngcontent-%COMP%]{margin-left:1rem}.ggc-dl-mapbox-legend-group-title[_ngcontent-%COMP%]{font-weight:700;margin:0}.legend-index-0[_ngcontent-%COMP%]{font-size:1.2rem;line-height:1.5rem;margin:1rem 0 0}.legend-index-1[_ngcontent-%COMP%]{font-size:1.1rem}.legend-index-2[_ngcontent-%COMP%]{font-size:1rem}.legend-index-3[_ngcontent-%COMP%], .legend-index-4[_ngcontent-%COMP%], .legend-index-5[_ngcontent-%COMP%]{font-size:.8rem}ul[_ngcontent-%COMP%]{list-style:none;margin-left:1rem;padding-inline-start:0}.ggc-dl-mapbox-legendContainer[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:none}`]})}}return n})();var Xd=(()=>{class n{static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵcmp=zI({type:n,selectors:[[`ggc-legend-empty`]],inputs:{showEmptyLegendMessage:`showEmptyLegendMessage`,emptyLegendMessage:`emptyLegendMessage`,legend:`legend`},decls:1,vars:1,consts:[[1,`ggc-dl-empty-legend-message`]],template:function(r,o){r&1&&hE(0,Ed,2,1),r&2&&gE(o.showEmptyLegendMessage?0:-1)},encapsulation:2})}}return n})();var Qd=(()=>{class n{constructor(){this.injector=I$1(Me$2)}
34loadCesiumModule(){return this.cesiumModulePromise??=import(`./chunk-BX9axHgV.js`).catch(e=>{throw e}),this.cesiumModulePromise}loadMapModule(){return this.mapModulePromise??=import(`./chunk-XbFFWXtq.js`).catch(e=>{throw e}),this.mapModulePromise}getGgcCesiumSharedLayerService(){return L$1(this,null,function*(){try{if(!this.ggcCesiumSharedLayerService){let e=yield this.loadCesiumModule();this.ggcCesiumSharedLayerService=this.injector.get(e.GgcSharedLayerService)}return this.ggcCesiumSharedLayerService}catch(e){return}})}getGgcOLLayerService(){return L$1(this,null,function*(){try{if(!this.ggcOLLayerService){let e=yield this.loadMapModule();this.ggcOLLayerService=this.injector.get(e.GgcLayerService)}return this.ggcOLLayerService}catch(e){return}})}getGgcOLMapEventsService(){return L$1(this,null,function*(){try{if(!this.ggcOLMapEventsService){let e=yield this.loadMapModule();this.ggcOLMapEventsService=this.injector.get(e.GgcMapEventsService)}return this.ggcOLMapEventsService}catch(e){return}})}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵprov=z$1({token:n,factory:n.ɵfac,providedIn:`root`})}}return n})();var ef=(()=>{class n{constructor(){this.connectService=I$1(Qd)}getLegendAddedObservable(){return L$1(this,null,function*(){return wh$1((yield this.connectService.getGgcOLLayerService())?.getLegendAddedObservable()??Sh$1(),(yield this.connectService.getGgcCesiumSharedLayerService())?.getLegendAddedObservable()??Sh$1())})}getLegendRemovedObservable(){return L$1(this,null,function*(){return wh$1((yield this.connectService.getGgcOLLayerService())?.getLegendRemovedObservable()??Sh$1(),(yield this.connectService.getGgcCesiumSharedLayerService())?.getLegendRemovedObservable()??Sh$1())})}getZoomendObservableForMap(e){return L$1(this,null,function*(){return(yield this.connectService.getGgcOLMapEventsService())?.getZoomendObservableForMap(e)??_n$1})}getCurrentActiveLegends(e){return L$1(this,null,function*(){let r=(yield this.connectService.getGgcOLLayerService())?.getCurrentActiveLegends(e)??[],o=(yield this.connectService.getGgcCesiumSharedLayerService())?.getCurrentActiveLegends()??[];return r.concat(o)})}getEnabled(e,r){return L$1(this,null,function*(){let o=(yield this.connectService.getGgcCesiumSharedLayerService())?.getEnabled(e)??!0,i=(yield this.connectService.getGgcOLLayerService())?.getEnabled(e,r)??!0;return o&&i})}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵprov=z$1({token:n,factory:n.ɵfac,providedIn:`root`})}}return n})();var eu=(()=>{class n{constructor(){this.collapsable=!1,this.defaultExpanded=!0,this.iconCollapsed=`fas fa-angle-right`,this.iconExpanded=`fas fa-angle-down`,this.showLegendsName=!0,this.showEmptyLegendMessage=!1,this.alwaysEnableLegends=!1,this.legendsChange=new Le,this.emptyLegendMessage=`Geen legenda beschikbaar`,this.autoConnect=!0,this._legends=Ys$2([]),this.coreLegendService=I$1(qd),this.legendMapConnectService=I$1(ef),this._mapIndex=PP,this._viewerType=tC.TWEE_D}get legends(){return this._legends()}set legends(e){e&&this._legends.set(e)}get mapIndex(){return this._mapIndex}set mapIndex(e){this.viewerType===tC.TWEE_D&&(this._mapIndex=e)}get viewerType(){return this._viewerType}set viewerType(e){this._viewerType=e,this.viewerType===tC.DRIE_D&&(this._mapIndex=`_DEFAULT_CESIUM_`)}ngOnInit(){this.coreLegendService.expandAll$.subscribe(e=>{this.toggleAllLegends(e)}),this.autoConnect&&this.initialise()}addLegend(e){return L$1(this,null,function*(){if(!this.isLegendUrl(e.legend)&&!this.isIconListArray(e.legend)&&!this.isVectorTileStyle(e.legend)&&!this.showEmptyLegendMessage)return;if(this.layerLegendEnabledCallback){let i=yield this.layerLegendEnabledCallback({layerLegend:e,mapIndex:this.mapIndex,viewerType:this.viewerType});if(typeof i==`boolean`&&!i)return}let r={name:e.serviceTitle??e.layerTitle??``,expanded:this.defaultExpanded,layerLegends:[e]},o=this._legends().findIndex(i=>i.name==r.name);o>=0?(this._legends().at(o)?.layerLegends?.unshift(e),this._legends().at(o)?.layerLegends?.sort(this.sortLayerLegends)):this._legends().unshift(r),this._legends().sort(this.sortDatasetLegends),this._legends.set([...this._legends()])})}removeLegend(e){let r=[];for(let o of this._legends()){let i=[];for(let a of o.layerLegends??[])a.layerId!=e&&i.push(a);i.length>0&&(o.layerLegends=i,r.push(o))}this._legends.set(r)}toggleLegend(e){this.collapsable?this.toggleLegendInternal(e):console.warn(`Set DatasetLegendComponent.collapsable = true om legends in of uit te klappen.`)}
34toggleLegendInternal(e,r=void 0){this.collapsable&&(!r||r.key===`Enter`)&&(e.expanded=!e.expanded,this.legendsChange.emit(this._legends()))}isIconListArray(e){return Array.isArray(e)&&e.length>0&&`imageUrl`in e[0]}isLegendUrl(e){return typeof e==`object`&&e!==null&&`legendUrl`in e&&e.legendUrl!==``}isVectorTileStyle(e){return typeof e==`object`&&e!==null&&`name`in e&&`url`in e}legendIsEnabled(e){for(let r of e.layerLegends??[])if(r.layerEnabled)return!0;return!1}sortLayerLegends(e,r){let o=e?.legendIndex??0;return(r?.legendIndex??0)-o}sortDatasetLegends(e,r){let o=e.layerLegends?.[0]?.legendIndex??0;return(r.layerLegends?.[0]?.legendIndex??0)-o}toggleAllLegends(e){if(this._legends()!=null&&Array.isArray(this._legends())&&this.mapIndex===e.mapIndex){for(let r of this._legends())r.expanded=e.expanded;this._legends.update(r=>[...r])}}initialise(){return L$1(this,null,function*(){yield this.subscribeToZoomendObservable(),yield this.subscribeToLegendAddedObservable(),yield this.subscribeToLegendRemovedObservable(),yield this.applyCurrentActiveLegends()})}subscribeToZoomendObservable(){return L$1(this,null,function*(){(yield this.legendMapConnectService.getZoomendObservableForMap(this.mapIndex)).subscribe(()=>L$1(this,null,function*(){yield this.updateEnabledLayerLegends()}))})}subscribeToLegendAddedObservable(){return L$1(this,null,function*(){(yield this.legendMapConnectService.getLegendAddedObservable()).subscribe(r=>{this.mapIndex==r.mapIndex&&r.legend&&this.addLegend(r.legend)})})}subscribeToLegendRemovedObservable(){return L$1(this,null,function*(){(yield this.legendMapConnectService.getLegendRemovedObservable()).subscribe(r=>{this.mapIndex==r.mapIndex&&this.removeLegend(r.layerId)})})}applyCurrentActiveLegends(){return L$1(this,null,function*(){(yield this.legendMapConnectService.getCurrentActiveLegends(this.mapIndex)).forEach(r=>{this.addLegend(r)})})}updateEnabledLayerLegends(){return L$1(this,null,function*(){for(let e of this._legends())for(let r of e.layerLegends??[])r.layerEnabled=yield this.legendMapConnectService.getEnabled(r.layerId,this.mapIndex);this._legends.update(e=>[...e])})}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵcmp=zI({type:n,selectors:[[`ggc-legend`]],inputs:{collapsable:`collapsable`,defaultExpanded:`defaultExpanded`,iconCollapsed:`iconCollapsed`,iconExpanded:`iconExpanded`,showLegendsName:`showLegendsName`,showEmptyLegendMessage:`showEmptyLegendMessage`,alwaysEnableLegends:`alwaysEnableLegends`,emptyLegendMessage:`emptyLegendMessage`,layerLegendEnabledCallback:`layerLegendEnabledCallback`,autoConnect:`autoConnect`,legends:`legends`,mapIndex:`mapIndex`,viewerType:`viewerType`},outputs:{legendsChange:`legendsChange`},decls:5,vars:1,consts:[[`layerLegendtemplate`,``],[1,`ggc-dl-active`],[1,`ggc-dl-dataset`,3,`ggc-dl-dataset-expanded`],[1,`ggc-dl-dataset`],[3,`id`],[1,`ggc-dl-dataset-name`],[1,`ggc-dl-dataset-name`,3,`click`,`keyup`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`],[3,`legend`,`layerName`],[3,`icons`],[3,`style`],[3,`legend`,`showEmptyLegendMessage`,`emptyLegendMessage`]],template:function(r,o){r&1&&(pi(0,`div`,1),hE(1,kd,2,0,`span`)(2,jd,2,0),bc(),Xf(3,Gd,4,1,`ng-template`,null,0,xD)),r&2&&(uy(),gE(!o.legends||o.legends.length===0?1:2))},dependencies:[Hd,Wd,Ts$1,Jd,Xd],styles:[`button.ggc-dl-dataset-name[_ngcontent-%COMP%]{background:none;color:inherit;border:none;font:inherit;cursor:pointer}.ggc-dl-dataset-name[_ngcontent-%COMP%]{font-weight:700}.ggc-dl-dataset-name[aria-expanded=true][_ngcontent-%COMP%] > .ggc-dl-dataset-toggle-collapsed[_ngcontent-%COMP%]{display:none}.ggc-dl-dataset-name[aria-expanded=false][_ngcontent-%COMP%] > .ggc-dl-dataset-toggle-expanded[_ngcontent-%COMP%]{display:none}`]})}}return n})();function tu(n){n||(n=I$1(Ie$1));let t=new M(e=>{if(n.destroyed){e.next();return}return n.onDestroy(e.next.bind(e))});return e=>e.pipe(Bh(t))}function tf(n,t){if(n&1&&lp$1(0,`ggc-legend`,0),n&2)cp$1(`mapIndex`,RE().mapIndex)}function nf(n,t){if(n&1&&lp$1(0,`ggc-legend`,1),n&2)cp$1(`viewerType`,RE().viewerType)}var nu=(()=>{class n{constructor(){this.mapIndex=null,this.viewerType=null,this.ViewerType=tC,this.modeService=I$1(ns),this.destroyRef=I$1(Ie$1)}ngOnInit(){this.modeService.activeMode.pipe(tu(this.destroyRef)).subscribe(e=>{e===ut$1.TweeD?(this.mapIndex=Mt$2.mapName,this.viewerType=null):(this.mapIndex=null,this.viewerType=tC.DRIE_D)})}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵcmp=zI({type:n,selectors:[[`vdk-legend`]],decls:3,vars:1,consts:[[3,`mapIndex`],[3,`viewerType`]],template:function(r,o){r&1&&(pi(0,`div`),hE(1,tf,1,1,`ggc-legend`,0)(2,
34nf,1,1,`ggc-legend`,1),bc()),r&2&&(uy(),gE(o.mapIndex?1:o.viewerType?2:-1))},dependencies:[eu],styles:[`[_nghost-%COMP%] > div[_ngcontent-%COMP%]{margin:2px;padding:2px}ggc-legend[_ngcontent-%COMP%] ul{margin:0}`],changeDetection:1})}}return n})();var rf=n=>({active:n});var of=[`toolbarItemTemplate`];var af=[`toolbarItem`];var ru=[`*`];var sf=(n,t)=>({active:n,"d-sm-none":t});function lf(n,t){if(n&1&&lp$1(0,`span`,4),n&2)cp$1(`ngClass`,RE().icon)}function cf(n,t){if(n&1&&(pi(0,`span`),uD(1),bc()),n&2){let e=RE();uy(),kp$1(e.label)}}function uf(n,t){if(n&1&&lp$1(0,`img`,5),n&2)cp$1(`src`,RE().svg,Iv)}function pf(n,t){if(n&1&&(pi(0,`div`,8)(1,`div`,9)(2,`div`,10),LE(3),bc()()()),n&2){let e=RE();uy(2),cp$1(`ngClass`,DD(3,sf,e._active,!e._active))(`id`,e.id),ap$1(`aria-labelledby`,e.id+`-btn`)}}function df(n,t){n&1&&fp$1(0)}var ff=(()=>{class n{constructor(){this.injector=I$1(Me$2)}loadMapModule(){return this.modulePromise??=import(`./chunk-XbFFWXtq.js`).catch(e=>{throw console.debug(`Autoconnect ggc-toolbar met ggc-map is niet gelukt: ${e}`),e}),this.modulePromise}getMapService(){return L$1(this,null,function*(){try{if(!this.mapService){let e=yield this.loadMapModule();this.mapService=this.injector.get(e.GgcMapService)}return this.mapService}catch(e){console.debug(`getMapService mislukt:`,e);return}})}getDrawService(){return L$1(this,null,function*(){try{if(!this.drawService){let e=yield this.loadMapModule();this.drawService=this.injector.get(e.GgcDrawService)}return this.drawService}catch(e){console.debug(`getDrawService mislukt:`,e);return}})}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵprov=z$1({token:n,factory:n.ɵfac,providedIn:`root`})}}return n})();var ma$1=(()=>{class n{constructor(){this.activeChanged=new Le,this.id=Math.random().toString(36).substring(2),this._active=!1}onClick(){this.clickCallback?this.clickCallback():this.handleClick()}handleClick(){this._active=!this._active,this.activeChanged.emit({toolbarItemComponent:this,active:this._active})}set active(e){this._active=e}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵcmp=zI({type:n,selectors:[[`ggc-toolbar-item`]],viewQuery:function(r,o){if(r&1&&yp$1(of,5)(af,5),r&2){let i;FE(i=jE())&&(o.toolbarItemTemplate=i.first),FE(i=jE())&&(o.toolbarItem=i.first)}},inputs:{activeId:`activeId`,icon:`icon`,title:`title`,label:`label`,svg:`svg`,clickCallback:`clickCallback`},outputs:{activeChanged:`activeChanged`},ngContentSelectors:ru,decls:10,vars:9,consts:[[`toolbarItem`,``],[`toolbarItemTemplate`,``],[`role`,`presentation`,1,`ggc-toolbar-item`,3,`ngClass`],[`role`,`tab`,1,`btn`,`btn-tools-sm`,3,`click`,`id`,`title`],[`aria-hidden`,`true`,1,`btn-tools-sm-icon`,3,`ngClass`],[`height`,`30`,`alt`,`icon`,3,`src`],[1,`sr-only`,`visually-hidden`],[1,`ggc-toolbar-item-content`],[1,`card-body`,`card-body-tools`,`ggc-toolbar-content`],[1,`tab-content`],[`role`,`tabpanel`,1,`tab-pane`,3,`ngClass`,`id`]],template:function(r,o){r&1&&(kE(),pi(0,`div`,2,0)(2,`button`,3),gp$1(`click`,function(){return o.onClick()}),hE(3,lf,1,1,`span`,4),hE(4,cf,2,1,`span`),hE(5,uf,1,1,`img`,5),pi(6,`span`,6),uD(7),bc()()(),Xf(8,pf,4,6,`ng-template`,7,1,xD)),r&2&&(cp$1(`ngClass`,ED(7,rf,o._active)),uy(2),cp$1(`id`,o.id+`-btn`)(`title`,o.title),uy(),gE(o.icon?.length>0?3:-1),uy(),gE(o.label?.length>0?4:-1),uy(),gE(o.svg?.length>0?5:-1),uy(2),kp$1(o.title))},dependencies:[ri$2],styles:[`.ggc-toolbar-content[_ngcontent-%COMP%]:has(>div.tab-content>div:empty){display:none}`]})}}return n})();var ha$1=(()=>{class n{constructor(){this.activeToolbarItem=new bn$1(null)}setActiveToolbarItem(e){this.activeToolbarItem.next(e)}getActiveToolbarItemObservable(){return this.activeToolbarItem}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵprov=z$1({token:n,factory:n.ɵfac,providedIn:`root`})}}return n})();var ou=(()=>{class n{constructor(){this.mapIndex=PP,this.connectService=I$1(ff),this.toolbarService=I$1(ha$1),this.cdr=I$1(MP),this.toolbarService.getActiveToolbarItemObservable().subscribe(e=>{e===null&&this.children&&this.children.forEach(r=>r.active=!1)})}ngOnInit(){this.init()}init(){return L$1(this,null,function*(){let e=yield this.connectService.getMapService();e&&(this.map=e.getMap(this.mapIndex))})}
34ngAfterViewInit(){this.children.forEach(e=>{e.activeChanged.subscribe(r=>{r.active?(this.toolbarContentTemplate=r.toolbarItemComponent.toolbarItemTemplate,this.cdr.detectChanges(),this.inactivateOtherChildren(r.toolbarItemComponent),this.toolbarService.setActiveToolbarItem(r.toolbarItemComponent.activeId)):(this.toolbarContentTemplate=void 0,this.toolbarService.setActiveToolbarItem(null))})})}inactivateOtherChildren(e){this.children.filter(r=>r!==e).forEach(r=>r.active=!1)}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵcmp=zI({type:n,selectors:[[`ggc-toolbar`]],contentQueries:function(r,o,i){if(r&1&&vp$1(i,ma$1,4),r&2){let a;FE(a=jE())&&(o.children=a)}},inputs:{mapIndex:`mapIndex`},ngContentSelectors:ru,decls:6,vars:1,consts:[[`aria-label`,`kaart-tools`,1,`ggc-toolbar-items`],[1,`card`,`card-tools`],[1,`card-header`],[`role`,`tablist`,1,`nav`,`nav-tabs`],[4,`ngTemplateOutlet`]],template:function(r,o){r&1&&(kE(),pi(0,`section`,0)(1,`div`,1)(2,`div`,2)(3,`div`,3),LE(4),bc()(),Xf(5,df,1,0,`ng-container`,4),bc()()),r&2&&(uy(5),cp$1(`ngTemplateOutlet`,o.toolbarContentTemplate))},dependencies:[Ts$1],styles:[`.ggc-toolbar-items[_ngcontent-%COMP%]{display:inline-block}`]})}}return n})();var mf=[`legendToolbarItem`];var hf=[`closeButton`];var gf=[`dynamicCesiumSearchContainer`];function yf(n,t){n&1&&lp$1(0,`ggc-toolbar-item`,6)}function bf(n,t){if(n&1&&lp$1(0,`ggc-toolbar-item`,8),n&2){let e=RE(3);cp$1(`clickCallback`,e.goToCurrentLocation.bind(e))}}function vf(n,t){if(n&1&&lp$1(0,`ggc-toolbar-item`,9),n&2){let e=RE(4);cp$1(`clickCallback`,e.setMode.bind(e,e.modes.TweeD))(`svg`,`assets/icons/2d.svg`)}}function _f(n,t){if(n&1&&lp$1(0,`ggc-toolbar-item`,10),n&2){let e=RE(4);cp$1(`clickCallback`,e.setMode.bind(e,e.modes.DrieD))(`svg`,`assets/icons/3d.svg`)}}function xf(n,t){if(n&1&&lp$1(0,`ggc-toolbar-item`,11),n&2)cp$1(`clickCallback`,RE(4).openFakeFilter())}function wf(n,t){if(n&1&&(hE(0,vf,1,2,`ggc-toolbar-item`,9)(1,_f,1,2,`ggc-toolbar-item`,10),hE(2,xf,1,1,`ggc-toolbar-item`,11)),n&2){let e,r=RE(3);gE((e=r.mode)===r.modes.DrieD?0:e===r.modes.TweeD?1:-1),uy(2),gE(r.filterEnquete?2:-1)}}function Cf(n,t){if(n&1&&(pi(0,`div`,5)(1,`ggc-toolbar`),hE(2,yf,1,0,`ggc-toolbar-item`,6),lp$1(3,`ggc-toolbar-item`,7,0),hE(5,bf,1,1,`ggc-toolbar-item`,8),hE(6,wf,3,2),bc()()),n&2){let e=RE(2);wp$1(`legend-only-toolbar`,!e.volledigeToolbaarZichtbaar),uy(2),gE(e.volledigeToolbaarZichtbaar?2:-1),uy(),cp$1(`svg`,`assets/icons/legend.svg`)(`clickCallback`,e.showLegend.bind(e))(`label`,e.volledigeToolbaarZichtbaar?``:`Legenda`),uy(2),gE(e.volledigeToolbaarZichtbaar?5:-1),uy(),gE(e.modesAvailable&&e.volledigeToolbaarZichtbaar?6:-1)}}function Sf(n,t){if(n&1&&hE(0,Cf,7,8,`div`,4),n&2){let e=t,r=RE();gE(r.activeToolbarItem===null&&e!==`maximized`&&(!r.panelOpen||e===`minimized`)?0:-1)}}function Tf(n,t){n&1&&lp$1(0,`vdk-search`,17),n&2&&cp$1(`showCurrentLocationButton`,!1)}function Ef(n,t){}function Mf(n,t){if(n&1&&(pi(0,`span`,16),uD(1,`Locatie zoeken`),bc(),hE(2,Tf,1,1,`vdk-search`,17),Xf(3,Ef,0,0,`ng-template`,18,2,xD)),n&2){let e=RE(2);uy(2),gE(e.mode===e.modes.TweeD?2:-1)}}function kf(n,t){n&1&&(pi(0,`span`,16),uD(1,`Legenda`),bc(),lp$1(2,`vdk-legend`,18))}function If(n,t){if(n&1){let e=wE();pi(0,`div`,12),gp$1(`click`,function(o){Gl$1(e);return ql$2(RE().clickBackgroundModal(o))})(`keydown.escape`,function(o){Gl$1(e);return ql$2(RE().clickBackgroundModal(o))}),pi(1,`div`,13)(2,`button`,14,1),gp$1(`click`,function(){Gl$1(e);return ql$2(RE().closeModal())}),lp$1(4,`span`,15),bc(),pi(5,`div`),hE(6,Mf,5,1)(7,kf,3,0),bc()()()}if(n&2){let e,r=RE();uy(6),gE((e=r.activeToolbarItem)===`search`?6:e===`legend`?7:-1)}}var Wx=(()=>{class n{handleKeydown(e){e instanceof KeyboardEvent&&e.key===`Escape`&&this.closeModal()}constructor(){this.elRef=I$1(ur$2),this.focusTrapFactory=I$1(xi),this.ggcMapService=I$1(rL),this.modeService=I$1(ns),this.ggcToolbarService=I$1(ha$1),this.ggcLocationService=I$1(Zd$1),this.eventTrackerService=I$1(Kr),this.stateService=I$1(Do$2),this.injector=I$1(Me$2),this.mapName=Mt$2.mapName,this.modes=ut$1,this.volledigeToolbaarZichtbaar=!0,this.disableButtonState=!1,this.disableButtonHeight=!1,this.hideButton=!1,this.panelOpen=!1,this.filterEnquete=Mt$2.filterEnquete===`true`,this.activeToolbarItem=null,this.modalToolbarItems=[`search`,`legend`],this.modesAvailable=!1,this.isTemplateAvailable=!1,this.cameraOptions=new Le,this.openFilter=TP(),this.ggcToolbarService.getActiveToolbarItemOb
34servable().subscribe(e=>{this.activeToolbarItem=e&&this.modalToolbarItems.includes(e)?e:null,this.activeToolbarItem?(this.focusTrap=this.focusTrapFactory.create(this.elRef.nativeElement),this.focusTrap.focusInitialElement()):this.focusTrap?.destroy(),setTimeout(()=>{this.closeButton?.nativeElement?.focus()},200)}),this.modeService.activeMode.subscribe(e=>L$1(this,null,function*(){this.mode=e,this.setButtonDisabled()})),this.modesAvailable=this.modeService.isModesAvailable(),this.stateService.vdkStateObservable.subscribe(e=>{this.volledigeToolbaarZichtbaar=![`report_2d_draw`,`report_2d_draw_point`,`report_3d_draw`,`report_2d`,`report_3d`].includes(e.state),this.disableButtonState=!this.volledigeToolbaarZichtbaar,this.panelOpen=!e.hidePrimaryPanel,this.setButtonDisabled()}),this.modeService.cameraHeight.subscribe(e=>{this.disableButtonHeight=e>1500,this.setButtonDisabled()}),this.ggcLocationService.getLocationEventsObservable(this.mapName).subscribe(e=>{this.ggcMapService.zoomToGeometryWithZoomOptions(JSON.stringify({type:`Point`,coordinates:e}),{mapIndex:this.mapName,fitOptions:{padding:[50,50,50,50]}},ca$3.GEOJSON),this.ggcMapService.markFeature(JSON.stringify({type:`Point`,coordinates:e}),this.mapName,ca$3.GEOJSON)}),this.ggcLocationService.getLocationEventsObservable(`cesium-mapIndex`).subscribe(e=>L$1(this,null,function*(){let r=zs(`EPSG:28992`,`EPSG:4326`,e),o={longitude:r[0],latitude:r[1]},{GgcLocationService:i}=yield import(`./chunk-BX9axHgV.js`),a=this.injector.get(i);yield a.zoomToCurrentLocation(o),a.addLocationMark(o)}))}ngOnInit(){this.panelSize$=this.stateService.primaryPanelSize}goToCurrentLocation(){return L$1(this,null,function*(){switch(this.mode){case ut$1.TweeD:yield this.ggcLocationService.getLocation(!1,this.mapName);break;case ut$1.DrieD:this.injector.get(Zd$1).getLocation(!1,`cesium-mapIndex`);break}})}clickBackgroundModal(e){e instanceof MouseEvent?e.target?.id===`mobileModal`&&this.closeModal():this.closeModal()}closeModal(){this.ggcToolbarService.setActiveToolbarItem(null)}showLegend(){this.eventTrackerService.pushCustomEvent(`interaction`,`behavior`,`icon_click`,`legenda`),this.legendToolbarItem.handleClick()}openFakeFilter(){return()=>this.openFilter.emit()}setMode(e){return L$1(this,null,function*(){if(this.mode==ut$1.TweeD){let r=this.ggcMapService.getMap(this.mapName).getView();this.modeService.setLast2DPosition(new rs(r.getCenterInternal(),r.getZoom()))}else if(this.mode==ut$1.DrieD){let{GgcViewerService:r}=yield import(`./chunk-BX9axHgV.js`),i=this.injector.get(r).getCurrentCameraValues();i&&this.modeService.setLast3DPosition(i)}this.modeService.setMode(e),this.eventTrackerService.pushCustomEvent(`interaction`,`behavior`,`icon_click`,`select_mode`)})}ngAfterViewChecked(){this.afterViewChecked()}afterViewChecked(){return L$1(this,null,function*(){this.activeToolbarItem===`search`&&!this.isTemplateAvailable&&this.container?(this.isTemplateAvailable=!0,yield this.initCesiumSearchContainer()):this.activeToolbarItem!==`search`&&this.isTemplateAvailable&&(this.isTemplateAvailable=!1)})}ngOnDestroy(){this.focusTrap?.destroy()}setButtonDisabled(){this.hideButton=this.disableButtonState||this.disableButtonHeight&&this.mode===ut$1.DrieD}initCesiumSearchContainer(){return L$1(this,null,function*(){if(this.mode==ut$1.DrieD&&this.activeToolbarItem===`search`){let e=this.container;if(!e)return;let{CesiumSearchComponent:r}=yield import(`./chunk-DK1fo7C0.js`),o=e.createComponent(r,{injector:this.injector});o.location.nativeElement.classList.add(`mobile`),o.instance.cameraOptions.subscribe(a=>this.cameraOptions.emit(a)),o.instance.showCurrentLocationButton=!1}else this.container&&this.container.clear()})}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵcmp=zI({type:n,selectors:[[`vdk-mobile-toolbar`]],viewQuery:function(r,o){if(r&1&&yp$1(mf,5)(hf,5)(gf,5,wi$2),r&2){let i;FE(i=jE())&&(o.legendToolbarItem=i.first),FE(i=jE())&&(o.closeButton=i.first),FE(i=jE())&&(o.container=i.first)}},hostBindings:function(r,o){r&1&&gp$1(`keydown.escape`,function(a){return o.handleKeydown(a)})},outputs:{cameraOptions:`cameraOptions`,openFilter:`openFilter`},decls:3,vars:4,consts:[[`legendToolbarItem`,``],[`closeButton`,``],[`dynamicCesiumSearchContainer`,``],[`id`,`mobileModal`,1,`d-lg-none`,`d-flex`],[`id`,`mobileToolbar`,1,`d-lg-none`,`d-block`,3,`legend-only-toolbar`],[`id`,`mobileToolbar`,1,`d-lg-none`,`d-block`],[`id`,`toolbar-mobile-search`,`activeId`,`search`,`icon`,`fal fa-search`,`title`,`Zoek adres, melding, RD-punt`,`data-cy`,`search-toolbar`],[`id`,`toolbar-mobile-legend`,`activeId`,`legend`,`title`,`Betekenis van symbolen`,`data-cy`,`legenda-mobile`,3,`svg`,`clickCallback`,`label`],[`icon`,`fal fa-crosshairs`,`title`,`Ga naar mijn locatie`,3,`clickCallback`],[`id`,`toolbar-mobile-mode`,`title`,`2D modus`,3,`clickCallback`,`svg`],[`id`,`toolbar-mobile-mode`,`title`,`3D modus`,3,`clickCallback`,`svg`],[`activeId`,`filter`,`icon`,`fal fa-filter`,`title`,`Filters`,3,`clickCallback`],[`id`,`mobileModal`,1,`d-lg-none`,`d-flex`,3,`click`,`keydown.escape`],[`id`,`mobileModalContent`],[`type`,`button`,`aria-controls`,`mobileModal`,`aria-label`,`sluiten`,1,`close`,`close-button`,3,`click`],[`aria-hidden`,`true`,1,`fal`,`fa-times`,`close-icon`],[1,`h4`],[1,`mobile`,3,`showCurrentLocationButton`],[1,`mobile`]],template:function(r,o){if(r&1&&(hE(0,Sf,1,1),ND(1,`async`),hE(2,If,8,1,`div`,3)),r&2){let i;gE((i=_D(1,2,o.panelSize$))?0:-1,i),uy(2),gE(o.activeToolbarItem!==null?2:-1)}},dependencies:[ou,ma$1,al,nu,Bs$1],styles:[`#mobileToolbar[_ngcontent-%COMP%] ggc-search-location #ggcSuggestionListId:focus-visible, #mobileToolbar[_ngcontent-%COMP%] ggc-cesium-search #ggcSuggestionListId:focus-visible{box-sizing:border-box;border:.1875rem solid #008dc9;border-radius:.3rem;box-shadow:0 .0625rem .375rem #008dc9;color:#00387d}#mobileToolbar[_ngcontent-%COMP%]{background-color:#f2f5f9;position:fixed;top:calc(var(--%NS%header-basic-height, 3.5rem) + var(--%NS%install-banner-height, 0px));left:0;right:0;width:100%;z-index:var(--%NS%z-mobile-toolbar)}#mobileToolbar[_ngcontent-%COMP%] ggc-toolbar-item[_ngcontent-%COMP%] .btn-tools-sm{border:0;border-radius:0;cursor:pointer;display:flex;pointer-events:auto;font-size:1.5rem;width:44px}#mobileToolbar[_ngcontent-%COMP%] ggc-toolbar-item[_ngcontent-%COMP%] .btn-tools-sm:focus, #mobileToolbar[_ngcontent-%COMP%] ggc-toolbar-item[_ngcontent-%COMP%] .btn-tools-sm:active, #mobileToolbar[_ngcontent-%COMP%] ggc-toolbar-item[_ngcontent-%COMP%] .btn-tools-sm:hover{border:solid 2px black;background-color:#f2f5f9;margin:0}#mobileToolbar[_ngcontent-%COMP%] ggc-toolbar-item[_ngcontent-%COMP%] .btn-tools-sm .btn-tools-sm-icon{font-size:1.5rem}#mobileToolbar[_ngcontent-%COMP%] ggc-toolbar-item[_ngcontent-%COMP%] .btn-tools-sm img{height:30px}#mobileToolbar[_ngcontent-%COMP%] #toolbar-mobile-legend .btn-tools-sm img{width:24px;height:18px}#mobileToolbar[_ngcontent-%COMP%] #toolbar-mobile-mode .btn-tools-sm img{display:block;width:26px!important;height:22px!important;padding:0;flex-shrink:0}#mobileToolbar.legend-only-toolbar[_ngcontent-%COMP%] ggc-toolbar[_ngcontent-%COMP%] .card-tools .card-header{padding:0}#mobileToolbar.legend-only-toolbar[_ngcontent-%COMP%] ggc-toolbar-item[_ngcontent-%COMP%] .btn-tools-sm{display:inline-flex;flex-direction:row-reverse;align-items:center;width:auto;min-width:unset;height:32px;min-height:32px;padding:0 8px;box-sizing:border-box;gap:6px;white-space:nowrap}#mobileToolbar.legend-only-toolbar[_ngcontent-%COMP%] ggc-toolbar-item[_ngcontent-%COMP%] .btn-tools-sm>span:not(.sr-only):not(.btn-tools-sm-icon){padding-left:8px;font-family:Open Sans,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:22px}#mobileToolbar.legend-only-toolbar[_ngcontent-%COMP%] ggc-toolbar-item[_ngcontent-%COMP%] .btn-tools-sm img{width:24px;height:24px;flex:0 0 24px;display:block}ggc-toolbar[_ngcontent-%COMP%] .card-tools .card-header{border:0;margin:0}ggc-toolbar[_ngcontent-%COMP%] .card .card-header, ggc-toolbar[_ngcontent-%COMP%] .card .card-footer{background-color:#f2f5f9!important}#mobileModal[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:#0000004d;display:flex;justify-content:center;align-items:center;z-index:var(--%NS%z-mobile-modal);margin-top:45px;max-height:calc(100vh - 45px)}#mobileModalContent[_ngcontent-%COMP%]{background:#fff;padding:10px 20px 20px;border-radius:8px;box-shadow:0 4px 6px #0000001a;overflow-y:auto;max-height:85vh;width:90%}#mobileModalContent[_ngcontent-%COMP%] vdk-search input, #mobileModalContent[_ngcontent-%COMP%] vdk-search ul.list-group-ggc-search-suggestions, #mobileModalContent[_ngcontent-%COMP%] vdk-search .btn-form-icon, #mobileModalContent[_ngcontent-%COMP%] vdk-cesium-search input, #mobileModalContent[_ngcontent-%COMP%] vdk-cesium-search ul.list-group-ggc-search-suggestions, #mobileModalContent[_ngcontent-%COMP%] vdk-cesium-search .btn-form-icon{font-size:12px}#mobileModalContent[_ngcontent-%COMP%] vdk-search .btn-form, #mobileModalContent[_ngcontent-%COMP%] vdk-cesium-search .btn-form{max-width:30px;padding:15px}#mobileModalContent[_ngcontent-%COMP%] vdk-search ggc-search-location .list-group-ggc-search-suggestions, #mobileModalContent[_ngcontent-%COMP%] vdk-cesium-search ggc-search-location .list-group-ggc-search-suggestions{position:relative}#mobileModalContent[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-top:40px}#mobileModalContent[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{position:fixed;right:7%;padding:8px 10px;margin:2px}#mobileModalContent[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]:focus, #mobileModalContent[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]:active, #mobileModalContent[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]:hover{border:solid 2px black;margin:0}`],changeDetection:1})}}return n})();var kn=(()=>{class i{constructor(){this.terugmeldingSearchService=I$1(No$2),this.coordinateSearchService=I$1(ly),this.stateService=I$1(Do$2),this.meldenActief=!1,this.stateService.vdkStateObservable.subscribe(e=>{this.meldenActief=[`report_2d_draw`,`report_2d_draw_point`,`report_3d_draw`,`report_2d`,`report_3d`].includes(e.state)})}search(e){return this.meldenActief?Th$1([this.coordinateSearchService.search(e)]).pipe(qe$2(([t])=>[...t])):Th$1([this.terugmeldingSearchService.search(e),this.coordinateSearchService.search(e)]).pipe(qe$2(([t,n])=>[...t,...n]))}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵprov=z$1({token:i,factory:i.ɵfac,providedIn:`root`})}}return i})();function no(i,a){if(i&1){let e=wE();pi(0,`figure`,0)(1,`button`,2),gp$1(`click`,function(){let n=Gl$1(e).$implicit;return ql$2(RE().closeAlert(n))}),lp$1(2,`span`,3),bc(),pi(3,`figcaption`,4),uD(4),bc(),pi(5,`p`),uD(6),bc()()}
34if(i&2){let e=a.$implicit,t=RE();cp$1(`ngClass`,e.type===t.alertType.SUCCESS?`alert-success`:`alert-warning`),uy(4),kp$1(e.titel),uy(2),kp$1(e.tekst)}}function oo(i,a){if(i&1){let e=wE();pi(0,`div`,1)(1,`figure`,5)(2,`button`,6),gp$1(`click`,function(){let n=Gl$1(e).$implicit;return ql$2(RE().closeAlertDialog(n))}),lp$1(3,`span`,3),bc(),pi(4,`figcaption`,4),uD(5),bc(),pi(6,`p`),uD(7),bc(),pi(8,`button`,7),gp$1(`click`,function(){let n=Gl$1(e).$implicit;return ql$2(RE().closeAlertDialog(n))}),pi(9,`span`,8),uD(10,`Ga naar Verbeter de Kaart`),bc()()()()}if(i&2){let e=a.$implicit;uy(5),kp$1(e.titel),uy(2),kp$1(e.tekst)}}var Tn=(()=>{class i{constructor(){this.alertingService=I$1(Po$2),this.alerts=[],this.alertPopups=[],this.alertType=ae$1}ngOnInit(){this.alertingService.getAlertingObservable().subscribe(t=>{this.alerts.push(t)}),this.alertingService.getAlertingPopupObservable().subscribe(t=>{this.alertPopups.push(t)})}closeAlert(e){this.removeAlertFromArray(e),this.alertingService.removeAlertFromArray(e)}removeAlertFromArray(e){let t=this.alerts.findIndex(n=>n===e);t>-1&&this.alerts.splice(t,1)}closeAlertDialog(e){this.removeAlertPopupFromArray(e),this.alertingService.removeAlertPopupFromArray(e)}removeAlertPopupFromArray(e){let t=this.alertPopups.findIndex(n=>n===e);t>-1&&this.alertPopups.splice(t,1)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-alerting`]],decls:4,vars:0,consts:[[1,`alert`,`alert-dismissible`,`alert-fadein`,3,`ngClass`],[`role`,`alert`,1,`alert-dialog-overlay`],[`id`,`alert-close`,`data-dismiss`,`alert`,`aria-label`,`Sluit deze melding`,1,`close`,3,`click`],[`aria-hidden`,`true`,1,`fal`,`fa-times`,`alert-close-icon`],[1,`alert-heading`],[1,`alert`,`alert-danger`,`alert-dismissible`,`mb-3`],[`data-dismiss`,`alert`,`aria-label`,`Sluit deze melding`,1,`close`,3,`click`],[1,`btn`,`btn-danger`,`mt-2`,3,`click`],[1,`btn-text`]],template:function(t,n){t&1&&(vE(0,no,7,3,`figure`,0,mE),vE(2,oo,11,2,`div`,1,mE)),t&2&&(yE(n.alerts),uy(2),yE(n.alertPopups))},dependencies:[ri$2],styles:[`figure.alert-fadein[_ngcontent-%COMP%]{width:320px;margin:30px;visibility:visible;position:relative;animation:_ngcontent-%COMP%_fadein 1s}@media(max-width:767.98px){figure.alert-fadein[_ngcontent-%COMP%]{margin:10px;max-width:94vw}figure.alert-fadein[_ngcontent-%COMP%] p[_ngcontent-%COMP%], figure.alert-fadein[_ngcontent-%COMP%] .alert-heading[_ngcontent-%COMP%]{font-size:18px!important;line-height:1rem}}.alert-dialog-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:var(--%NS%z-dialog-overlay)}.alert-dialog-overlay[_ngcontent-%COMP%] figure[_ngcontent-%COMP%]{max-width:534px}@keyframes _ngcontent-%COMP%_fadein{0%{top:-50px;opacity:0}to{top:0;opacity:1}}@keyframes _ngcontent-%COMP%_fadeout{0%{top:0;opacity:1}to{top:-50px;opacity:0}}`],changeDetection:1})}}return i})();var En=(()=>{class i{static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵmod=zf({type:i})}static{this.ɵinj=mo$2({providers:[Po$2],imports:[Os$1]})}}return i})();var ao=[`closeButton`];var ro=[`*`];var so=(i,a,e,t)=>({"panel-open":i,"panel-absolute":a,"panel-left":e,"panel-right":t});function lo(i,a){if(i&1){let e=wE();pi(0,`div`,5)(1,`h2`,7),uD(2),bc(),pi(3,`button`,8,0),gp$1(`click`,function(){Gl$1(e);return ql$2(RE().close())}),lp$1(5,`span`,9),bc()()}if(i&2){let e=RE();uy(),cp$1(`id`,e.id+`-label`),uy(),kp$1(e.title),uy(),ap$1(`aria-expanded`,e.open)(`aria-controls`,e.id)(`aria-label`,e.title+` sluiten`)}}var xt=(()=>{class i{constructor(){this.id=`panel`,this.title=``,this._open=!1,this.location=`left`,this.absolute=!1,this.focusClose=!0,this.closePanel=new Le}get open(){return this._open}set open(e){this._open=e,e&&this.focusClose&&setTimeout(()=>{this.closeButton.nativeElement.focus()},200)}close(){this.closePanel.emit()}handleKeydown(e){e instanceof KeyboardEvent&&e.key===`Escape`&&this.close()}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-panel`]],viewQuery:function(t,n){if(t&1&&yp$1(ao,5),t&2){let o;FE(o=jE())&&(n.closeButton=o.first)}},hostBindings:function(t,n){t&1&&gp$1(`keydown.escape`,function(p){return n.handleKeydown(p)})}
34,inputs:{open:`open`,id:`id`,title:`title`,location:`location`,absolute:`absolute`,focusClose:`focusClose`},outputs:{closePanel:`closePanel`},ngContentSelectors:ro,decls:7,vars:9,consts:[[`closeButton`,``],[`tabindex`,`-1`,1,`panel`,3,`id`,`ngClass`],[1,`panel-container`],[`id`,`secondary-panel`,1,`card`,`card-fixed-body`,`h-100`],[1,`d-flex`,`flex-column`,`h-100`],[`id`,`panel-header`,1,`card-header`,`justify-content-between`,`d-flex`],[1,`card-body`,`d-flex`,`flex-column`],[1,`h4`,`my-2`,3,`id`],[`type`,`button`,`id`,`closeButton`,1,`close`,3,`click`],[`aria-hidden`,`true`,1,`fal`,`fa-times`,`close-icon`]],template:function(t,n){t&1&&(kE(),pi(0,`aside`,1)(1,`div`,2)(2,`article`,3)(3,`div`,4),hE(4,lo,6,5,`div`,5),pi(5,`div`,6),LE(6),bc()()()()()),t&2&&(cp$1(`id`,n.id)(`ngClass`,TD(4,so,n.open,n.absolute,n.location===`left`,n.location===`right`)),ap$1(`aria-labelledby`,n.title.length>0?n.id+`-label`:null),uy(4),gE(n.title.length>0?4:-1))},dependencies:[ri$2],styles:[`button[_ngcontent-%COMP%]{padding:4px 6px 2px}button[_ngcontent-%COMP%]:focus, button[_ngcontent-%COMP%]:hover, button[_ngcontent-%COMP%]:active{border:2px solid #000000;padding:2px 4px 0}.card[_ngcontent-%COMP%]{padding:1px}.card[_ngcontent-%COMP%]:focus{border:2px solid #000000;padding:0}aside.panel-right[_ngcontent-%COMP%]{z-index:var(--%NS%z-panel-right-aside)}#panel-header[_ngcontent-%COMP%]{background-color:#fff;padding:.75rem}`],changeDetection:1})}}return i})();function co(i,a){if(i&1){let e=wE();Nc$2(0,`div`,2)(1,`button`,8),mp$1(`click`,function(){let n=Gl$1(e),o=n.$implicit,p=n.$index,k=RE().$index;return ql$2(RE().logFaqOpenEvent(o.question,`collapse`+k+`-`+p))}),uD(2),up$1(3,`span`,9)(4,`span`,10),Mc$2()(),Nc$2(5,`div`,11),up$1(6,`div`,12),Mc$2()}if(i&2){let e=a.$implicit,t=a.$index,n=RE().$index,o=RE();pp$1(`id`,hD(`heading`,n,`-`,t)),uy(),ap$1(`data-target`,hD(`#collapse`,n,`-`,t))(`aria-controls`,hD(`collapse`,n,`-`,t)),uy(),xc$1(` `,e.question,` `),uy(3),ap$1(`aria-labelledby`,hD(`heading`,n,`-`,t))(`data-parent`,pD(`#accordion`,n)),pp$1(`id`,hD(`collapse`,n,`-`,t)),ap$1(`data-faq`,e.question),uy(),pp$1(`innerHTML`,o.parseHtml(e.answer),yv)}}function mo(i,a){if(i&1&&(Nc$2(0,`div`,1)(1,`div`,2)(2,`button`,3),uD(3),up$1(4,`span`,4)(5,`span`,5),Mc$2()(),Nc$2(6,`div`,6)(7,`div`,7),vE(8,co,7,20,null,null,mE),Mc$2()()()),i&2){let e=a.$implicit,t=a.$index;uy(),pp$1(`id`,pD(`heading`,t)),uy(),ap$1(`data-target`,pD(`#collapse`,t))(`aria-controls`,pD(`collapse`,t)),uy(),xc$1(` `,e.group,` `),uy(3),ap$1(`aria-labelledby`,pD(`heading`,t)),pp$1(`id`,pD(`collapse`,t)),uy(),pp$1(`id`,pD(`accordion`,t)),uy(),yE(e.items)}}var Mn=(()=>{class i{constructor(){this.httpClient=I$1(Zr$2),this.alertingService=I$1(Po$2),this.stateService=I$1(Do$2),this.sanitizer=I$1(vi),this.eventTrackerService=I$1(Kr),this.faqData=[]}ngOnInit(){this.httpClient.get(`././assets/faq.json`).pipe(Mh$1(1)).subscribe({next:e=>{this.faqData=e,setTimeout(()=>{this.faqItemSubscription=this.stateService.faqItem.subscribe(t=>{t&&(this.openFaqItem(t,!1),this.stateService.faqItem.next(null))})},500)},error:()=>{this.alertingService.addAlert({type:ae$1.FAILURE,tekst:`Er is iets fout gegaan bij het laden van Vraag en antwoord.`})}})}ngAfterViewInit(){$(`body`).on(`click`,`span[data-faq]`,e=>{let t=$(e.target).text();t&&this.openFaqItem(t)}),$(`body`).on(`hidden.bs.collapse`,`#accordion div.collapse`,e=>{$(e.target).find(`div.collapse`).collapse(`hide`)})}ngOnDestroy(){this.faqItemSubscription&&this.faqItemSubscription.unsubscribe(),$(`body`).off(`click`,`span[data-faq]`).off(`hidden.bs.collapse`)}parseHtml(e){return this.sanitizer.bypassSecurityTrustHtml(e)}openFaqItem(e,t=!0){if(!e)return;t&&this.logFaqOpenEvent(e);let n=$(`div[data-faq='${e}']`);n?.length&&(n.closest(`div[data-parent='#accordion']`).collapse(`show`),n.collapse(`show`))}logFaqOpenEvent(e,t){t&&document.getElementById(t)?.classList.contains(`show`)||this.eventTrackerService.pushCustomEvent(`interaction`,`experience`,`accordion_open`,e)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-faq`]],decls:3,vars:0,consts:[[`id`,`accordion`,1,`accordion`,`accordion-faq`],[1,`card`,`card-accordion`],[`role`,`heading`,`aria-level`,`3`,1,`card-header`,`card-accordion-header`,3,`id`],[`data-toggle`,`collapse`,`aria-expanded`,`false`,`data-cy`,`faq-collapse-group`,1,`btn`,`btn-link`,`collapsed`,`card-accordion-button`,`font-weight-bold`],[`aria-hidden`,`true`,`aria-label`,`Sluit groep`,1,`fal`,`fa-times`,`accordion-icon`,`accordion-icon-opened`],[`aria-hidden`,`true`,`aria-label`,`Open groep`,1,`fal`,`fa-plus`,`accordion-icon`,`accordion-icon-closed`],[`data-parent`,`#accordion`,`role`,`region`,1,`collapse`,3,`id`],[3,`id`],[`data-toggle`,`collapse`,`aria-expanded`,`false`,`data-cy`,`faq-collapse-item`,1,`btn`,`btn-link`,`collapsed`,`card-accordion-button`,`pl-5`,3,`click`],[`aria-hidden`,`true`,`aria-label`,`Sluit vraag`,1,`fal`,`fa-times`,`accordion-icon`,`accordion-icon-opened`],[`aria-hidden`,`true`,`aria-label`,`Open vraag`,1,`fal`,`fa-plus`,`accordion-icon`,`accordion-icon-closed`],[`role`,`region`,1,`collapse`,3,`id`],[1,`card-body`,`card-accordion-body`,3,`innerHTML`]],template:function(t,n){t&1&&(Nc$2(0,`div`,0),vE(1,mo,10,13,`div`,1,mE),Mc$2()),t&2&&(uy(),yE(n.faqData))},styles:[`.accordion-faq[_ngcontent-%COMP%]{margin:-.5rem}@media(min-width:992px){.accordion-faq[_ngcontent-%COMP%]{margin:-.75rem -1.25rem}} h3{font-size:1.25rem!important;margin-top:1rem;margin-bottom:0} p{margin-bottom:0}`],changeDetection:1})}}return i})();var $e=(()=>{class i{constructor(){this.installPrompt=null,this.canInstallPwa=Ys$2(!1),this.isIOsPlatform=Ys$2(!1),this.isSafariBrowser=Ys$2(!1),this.pwaInstalled=Ys$2(!1),window.addEventListener(`beforeinstallprompt`,n=>{n.preventDefault(),this.installPrompt=n,this.canInstallPwa.set(!0)}),window.addEventListener(`appinstalled`,()=>{this.installPrompt=null,this.canInstallPwa.set(!1)});let e=navigator.userAgent;this.isIOsPlatform.set(!!/iPhone|iPad|iPod/.exec(e));let t=window.matchMedia(`(display-mode: standalone)`).matches;this.pwaInstalled.set(t),this.isSafariBrowser.set(/Safari/.test(e)&&/Version\//.test(e)&&!/Chrome/.test(e))}promptInstall(){return L$1(this,null,function*(){this.installPrompt&&(yield this.installPrompt.prompt(),this.installPrompt=null,this.canInstallPwa.set(!1))})}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵprov=z$1({token:i,factory:i.ɵfac,providedIn:`root`})}}return i})();function po(i,a){i&1&&(Nc$2(0,`ol`,1)(1,`li`),uD(2,` Tik in uw browser op Instellingen `),up$1(3,`img`,5),Mc$2(),Nc$2(4,`li`),uD(5,` Tik in uw browser op Delen `),up$1(6,`img`,6),Mc$2(),Nc$2(7,`li`),uD(8,` Kies de optie Zet op beginscherm `),up$1(9,`img`,7),Mc$2(),Nc$2(10,`li`),uD(11,`Tik op de knop Voeg toe`),Mc$2(),Nc$2(12,`li`),uD(13,`Verbeter de Kaart is toegevoegd aan uw beginscherm`),Mc$2()())}function uo(i,a){i&1&&(Nc$2(0,`ol`,2)(1,`li`),uD(2,` Tik in de adresbalk op Delen `),up$1(3,`img`,6),Mc$2(),Nc$2(4,`li`),uD(5,` Tik op de knop Toon meer `),up$1(6,`img`,8),Mc$2(),Nc$2(7,`li`),uD(8,` Kies de optie Zet op beginscherm `),up$1(9,`img`,7),Mc$2(),Nc$2(10,`li`),uD(11,`Tik op de knop Voeg toe`),Mc$2(),Nc$2(12,`li`),uD(13,`Verbeter de Kaart is toegevoegd aan uw beginscherm`),Mc$2()())}var Pn=(()=>{class i{constructor(){this.closePanel=new Le,this.pwaInstallService=I$1($e),this.isSafariBrowser=this.pwaInstallService.isSafariBrowser}onGereed(){this.closePanel.emit()}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-install-pwa`]],outputs:{closePanel:`closePanel`}
34,decls:8,vars:2,consts:[[`data-cy`,`install-pwa-instructions`],[`data-cy`,`install-pwa-safari`,1,`ol-highlighted`],[`data-cy`,`install-pwa-not-safari`,1,`ol-highlighted`],[1,`d-flex`,`justify-content-center`],[1,`btn`,`btn-primary`,`header-basic-btn-primary`,`text-nowrap`,3,`click`],[`src`,`assets/icons/pwa/instellingen.svg`,`alt`,`Instellingen icoon`,1,`pwa-icon`],[`src`,`assets/icons/pwa/delen.svg`,`alt`,`Delen icoon`,1,`pwa-icon`],[`src`,`../../../assets/icons/pwa/toevoegen-ios.svg`,`alt`,`Toevoegen icoon`,1,`pwa-icon`],[`src`,`assets/icons/pwa/dropdown.svg`,`alt`,`Dropdown icoon`,1,`pwa-icon`]],template:function(t,n){t&1&&(Nc$2(0,`div`,0)(1,`p`),uD(2,`Zo meldt u sneller verbeteringen op de kaart.`),Mc$2(),hE(3,po,14,0,`ol`,1),hE(4,uo,14,0,`ol`,2),Nc$2(5,`div`,3)(6,`button`,4),mp$1(`click`,function(){return n.onGereed()}),uD(7,` Gereed `),Mc$2()()()),t&2&&(uy(3),gE(n.isSafariBrowser()?3:-1),uy(),gE(n.isSafariBrowser()?-1:4))},styles:[`.pwa-icon[_ngcontent-%COMP%]{margin-left:5px}button[_ngcontent-%COMP%]{display:block;width:100%}`],changeDetection:1})}}return i})();function go(i,a){i&1&&lp$1(0,`vdk-faq`)}function ho(i,a){if(i&1){let e=wE();pi(0,`vdk-install-pwa`,1),gp$1(`closePanel`,function(){Gl$1(e);return ql$2(RE().closePanel())}),bc()}}var In=(()=>{class i{constructor(){this.stateService=I$1(Do$2),this.elRef=I$1(ur$2),this.focusTrapFactory=I$1(xi),this.tertiaryPanel$=this.stateService.tertiaryPanelState,this.tertiaryPanelTitle$=this.tertiaryPanel$.pipe(qe$2(e=>e===`faq`?`Vraag en antwoord`:`Voeg verbeter de Kaart toe aan uw beginscherm`)),this.tertiaryPanel$.subscribe(e=>{e===`closed`?this.focusTrap?.destroy():setTimeout(()=>{this.focusTrap=this.focusTrapFactory.create(this.elRef.nativeElement),this.focusTrap.focusInitialElement()},500)})}closePanel(){this.stateService.tertiaryPanelState.next(`closed`)}ngOnDestroy(){this.focusTrap?.destroy()}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-tertiary-panel`]],decls:7,vars:15,consts:[[`id`,`panel-3`,3,`closePanel`,`absolute`,`location`,`title`,`open`,`focusClose`],[3,`closePanel`]],template:function(t,n){t&1&&(pi(0,`vdk-panel`,0),ND(1,`async`),ND(2,`async`),gp$1(`closePanel`,function(){return n.closePanel()}),hE(3,go,1,0,`vdk-faq`),ND(4,`async`),hE(5,ho,1,0,`vdk-install-pwa`),ND(6,`async`),bc()),t&2&&(cp$1(`absolute`,!0)(`location`,`right`)(`title`,_D(1,7,n.tertiaryPanelTitle$)||``)(`open`,_D(2,9,n.tertiaryPanel$)!==`closed`)(`focusClose`,!1),uy(3),gE(_D(4,11,n.tertiaryPanel$)===`faq`?3:-1),uy(2),gE(_D(6,13,n.tertiaryPanel$)===`install_pwa`?5:-1))},dependencies:[xt,Mn,Pn,Bs$1],encapsulation:2,changeDetection:1})}}return i})();function fo(i,a){i&1&&lp$1(0,`vdk-legend`)}var St=(()=>{class i{constructor(){this.stateService=I$1(Do$2),this.secondaryPanelState$=this.stateService.secondaryPanelState,this.secondaryPanelStateTitle$=this.secondaryPanelState$.pipe(qe$2(e=>e===`legend`?`Legenda`:``))}closePanel(){this.stateService.secondaryPanelState.next(`closed`)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-secondary-panel`]],decls:5,vars:10,consts:[[`id`,`panel-2`,3,`closePanel`,`absolute`,`title`,`open`]],template:function(t,n){t&1&&(pi(0,`vdk-panel`,0),ND(1,`async`),ND(2,`async`),gp$1(`closePanel`,function(){return n.closePanel()}),hE(3,fo,1,0,`vdk-legend`),ND(4,`async`),bc()),t&2&&(cp$1(`absolute`,!0)(`title`,_D(1,4,n.secondaryPanelStateTitle$)||``)(`open`,_D(2,6,n.secondaryPanelState$)!==`closed`),uy(3),gE(_D(4,8,n.secondaryPanelState$)===`legend`?3:-1))},dependencies:[xt,nu,Bs$1],encapsulation:2,changeDetection:1})}}return i})();var wt=(i,a,e)=>({$implicit:i,value:a,properties:e});function _o(i,a){if(i&1&&uD(0),i&2){let e=RE(2).$implicit;kp$1(e)}}function vo(i,a){if(i&1&&uD(0),i&2){let e=RE(2).$implicit;kp$1(RE(2).displayFeature[e])}}function bo(i,a){if(i&1&&(pi(0,`dt`,6),fp$1(1,7),Xf(2,_o,1,1,`ng-template`,null,0,xD),bc(),pi(4,`dd`,8),fp$1(5,7),Xf(6,vo,1,1,`ng-template`,null,1,xD),bc()),i&2){let e=VE(3),t=VE(7),n=RE().$implicit,o=RE(2);uy(),cp$1(`ngTemplateOutlet`,o.headerValueTemplates().get(n)?o.headerValueTemplates().get(n):e)(`ngTemplateOutletContext`,CD(4,wt,n,o.displayFeature[n],o.displayFeature)),uy(4),cp$1(`ngTemplateOutlet`,o.contentValueTemplates().get(n)?o.contentValueTemplates().get(n):t)(`ngTemplateOutletContext`,CD(8,wt,n,o.displayFeature[n],o.displayFeature))}}function Co(i,a){if(i&1&&hE(0,bo,8,12),i&2){let e=a.$implicit,t=
34RE(2);gE(!t.headerValueTemplates().has(e)||t.headerValueTemplates().get(e)?0:-1)}}function yo(i,a){if(i&1&&(pi(0,`dl`,4),vE(1,Co,1,1,null,null,mE),ND(3,`featureinfokeys`),bc()),i&2){let e=RE();uy(),yE(_D(3,0,e.objectKeys))}}function xo(i,a){if(i&1&&uD(0),i&2){let e=RE(2).$implicit;kp$1(e)}}function So(i,a){if(i&1&&uD(0),i&2){let e=RE(2).$implicit;kp$1(RE(2).displayFeature[e])}}function wo(i,a){if(i&1&&(pi(0,`tr`)(1,`td`),fp$1(2,7),Xf(3,xo,1,1,`ng-template`,null,2,xD),bc(),pi(5,`td`),fp$1(6,14),Xf(7,So,1,1,`ng-template`,null,3,xD),bc()()),i&2){let e=VE(4),t=VE(8),n=RE().$implicit,o=RE(2);uy(2),cp$1(`ngTemplateOutlet`,o.headerValueTemplates().has(n)?o.headerValueTemplates().get(n):e)(`ngTemplateOutletContext`,CD(4,wt,n,o.displayFeature[n],o.displayFeature)),uy(4),cp$1(`ngTemplateOutlet`,o.contentValueTemplates().get(n)?o.contentValueTemplates().get(n):t)(`ngTemplateOutletContext`,CD(8,wt,n,o.displayFeature[n],o.displayFeature))}}function ko(i,a){if(i&1&&hE(0,wo,9,12,`tr`),i&2){let e=a.$implicit,t=RE(2);gE(!t.headerValueTemplates().has(e)||t.headerValueTemplates().get(e)?0:-1)}}function To(i,a){if(i&1&&(pi(0,`table`,5)(1,`caption`,9),uD(2,` Presentatie van feature data in tabelvorm `),bc(),pi(3,`thead`,10)(4,`tr`)(5,`th`,11),uD(6,`Naam`),bc(),pi(7,`th`,12),uD(8,`Waarde`),bc()()(),pi(9,`tbody`,13),vE(10,ko,1,1,null,null,mE),ND(12,`featureinfokeys`),bc()()),i&2){let e=RE();uy(10),yE(_D(12,0,e.objectKeys))}}var Fn=[`*`];function Eo(i,a){if(i&1){let e=wE();pi(0,`nav`,1)(1,`ul`,3)(2,`li`,4)(3,`button`,5),gp$1(`click`,function(){Gl$1(e);return ql$2(RE(2).goToPreviousFeature())}),uD(4),bc()(),pi(5,`li`,6),uD(6),bc(),pi(7,`li`,7)(8,`button`,8),gp$1(`click`,function(){Gl$1(e);return ql$2(RE(2).goToNextFeature())}),uD(9),bc()()()()}if(i&2){let e=RE(2);uy(3),cp$1(`disabled`,!e.hasPreviousFeature()),uy(),xc$1(` `,e.pagerPrevious,` `),uy(2),Lp$1(` `,e.currentFeatureIndex()+1,` van `,e.displayFeaturesProperties?e.displayFeaturesProperties.length:``,` `),uy(2),cp$1(`disabled`,!e.hasNextFeature()),uy(),xc$1(` `,e.pagerNext,` `)}}function Mo(i,a){if(i&1&&(hE(0,Eo,10,6,`nav`,1),lp$1(1,`ggc-feature-info-display`,2)),i&2){let e=RE();gE(e.pagerIsHidden()?-1:0),uy(),cp$1(`type`,e.featureInfoDisplayType)(`hideEmptyFields`,e.hideEmptyFields)(`currentFeature`,e.currentFeature())(`headerValueTemplates`,e.customHeaderValueTemplates)(`contentValueTemplates`,e.customValueTemplates)(`hideEmptyFieldWithKeys`,e.hideEmptyFieldWithKeys)}}function Po(i,a){if(i&1&&(pi(0,`span`,0),uD(1),bc()),i&2){let e=RE();uy(),kp$1(e.emptyInfo)}}var Io=(i,a)=>({active:i,inactive:a});var Fo=(i,a)=>({layerTitle:i,active:a});function Oo(i,a){if(i&1&&uD(0),i&2){let e=RE().$implicit;kp$1(e.layerTitle)}}function Do(i,a){if(i&1){let e=wE();pi(0,`button`,4),gp$1(`click`,function(){let n=Gl$1(e).$implicit,o=RE(2);return ql$2(o.featureInfoCollectionArrayInternal().length>1?o.onTabClicked(n.layerId):null)}),fp$1(1,5),Xf(2,Oo,1,1,`ng-template`,null,0,xD),bc()}if(i&2){let e=a.$implicit,t=VE(3),n=RE(2);cp$1(`id`,`tab-`+e.layerId)(`ngClass`,DD(6,Io,e.layerId===n.selectedTab(),e.layerId!==n.selectedTab())),ap$1(`aria-controls`,`tabpanel-`+e.layerTitle)(`aria-selected`,e.layerId===n.selectedTab()),uy(),cp$1(`ngTemplateOutlet`,n.tabComponent?n.tabComponent:t)(`ngTemplateOutletContext`,DD(9,Fo,e.layerTitle,e.layerId===n.selectedTab()))}}function Ao(i,a){if(i&1&&(pi(0,`div`,1),vE(1,Do,4,12,`button`,3,mE),bc()),i&2){let e=RE();ap$1(`aria-labelledby`,e.ariaLabelledBy?e.ariaLabelledBy:null)(`aria-label`,e.ariaLabelledBy?null:e.ariaLabel),uy(),yE(e.featureInfoCollectionArrayInternal())}}var Ke=(function(i){return i.SELECTEDOBJECT=`selectedObject`,i.SELECTEDTAB=`selectedTab`,i})(Ke||{});var We=class{constructor(a,e,t){this.type=a,this.message=e,this.value=t}};var kt=class{constructor(a,e,t,n){this.layerName=a,this.features=e,this.layerTitle=t,this.layerId=n}};var Tt=class{constructor(a){this.customFeatureInfoOptions=a}getCustomAttributeName(){return this.customFeatureInfoOptions.customAttributeName}getCustomAttributeValueFunction(){return this.customFeatureInfoOptions.customAttributeValueFunction}};var Qe=class{constructor(a){this.hideUnorderedAttributes=!0,this.layerName=a.layerName,this.layerId=a.layerId,this.tabIndex=a.tabIndex,this.attributeOrder=a.attributeOrder,a.hideUnorderedAttributes!==void 0&&(this.hideUnorderedAttributes=a.hideUnorderedAttributes),this.excludeAttributes=a.excludeAttributes}};var Ze=(function(i){return i.TABLE=`table-view`,i.LIST=`list-view`,i})(Ze||{});var Te=(function(i){return i.HEADER=`header`,i.CONTENT=`content`,i.HIDE=`hide`,i.HIDE_IF_EMPTY=`hide if empty`,i})(Te||{});var Et=(()=>{class i{constructor(){this.templateRef=I$1(or$3),this.templateType=Te.CONTENT}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵdir=KI({type:i,selectors:[[``,`ggcTemplateKey`,``]],inputs:{ggcTemplateKey:`ggcTemplateKey`,templateType:`templateType`}})}}return i})();var lt=(()=>
34{class i{setConfig(e){this.sortFilterConfigs=e}setCustomFeatureInfo(e){this.customFeatureInfo=e}setSortTabFunction(e){this.sortTabFunction=e}sortTabs(e){e.sort(this.sortTabFunction.bind(this))}filterAndSortAttributes(e,t){let n=this.sortFilterConfigs?this.sortFilterConfigs.find(p=>p.layerId===e):void 0;if(!n&&!this.customFeatureInfo)return t;let o=[];return t.forEach(p=>{let k=Object.keys(p);n&&(k=this.excludeAttributes(n,k),k=this.sortAttributes(n,k),k=this.checkUnsortedAttributes(n,k));let P={};k.forEach(le=>{P[this.replaceName(le)]=p[le]}),o.push(P)}),o}checkForCustomValues(e,t){if(!this.customFeatureInfo)return e;let n=E({},e);return this.customFeatureInfo.forEach((o,p)=>{if(o){let k=o.getCustomAttributeValueFunction();if(k){let P=this.findMatchToReplace(p,t);P||(P=this.findMatchToReplace(o.getCustomAttributeName(),t)),P&&this.replaceValue(P,k,e,n)}}}),n}excludeAttributes(e,t){return e.excludeAttributes&&(t=t.filter(n=>(e.excludeAttributes?e.excludeAttributes.indexOf(n):-1)<0)),t}sortAttributes(e,t){return e.attributeOrder&&t.sort((n,o)=>{let p=e.attributeOrder?e.attributeOrder.indexOf(n):-1,k=e.attributeOrder?e.attributeOrder.indexOf(o):-1;return p===-1?1:k===-1?-1:p-k}),t}checkUnsortedAttributes(e,t){return e.attributeOrder&&e.hideUnorderedAttributes&&(t=t.filter(n=>(e.attributeOrder?e.attributeOrder.indexOf(n):-1)>=0)),t}replaceName(e){if(this.customFeatureInfo){let t=this.customFeatureInfo.get(e);if(t)return t.getCustomAttributeName()??e}return e}replaceValue(e,t,n,o){let p=n[e];try{o[e]=t(p)}catch(k){o[e]=n[e],console.warn(k)}}findMatchToReplace(e,t){return t.find(n=>n===e)}sortTabFunction(e,t){if(this.sortFilterConfigs){let n=this.sortFilterConfigs.find(P=>P.layerId===e.layerId&&!!P.tabIndex),o=this.sortFilterConfigs.find(P=>P.layerId===t.layerId&&!!P.tabIndex),p=n?n.tabIndex:void 0,k=o?o.tabIndex:void 0;if(p&&k)return p-k;if(!p&&k)return 1;if(p&&!k)return-1}return 0}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵprov=z$1({token:i,factory:i.ɵfac,providedIn:`root`})}}return i})();var ti=class{static objectKeys(a,e,t){if(!a)return[];let n=Object.keys(a);if(e){let o=[];return n.forEach(p=>{a[p]!==null&&a[p]!==``&&o.push(p)}),o}else if(Array.isArray(t))return n.filter(o=>!t.includes(o)||a[o]!==null&&a[o]!==``);return n}};var Vo=(()=>{class i{constructor(){this.keysNotReturn=`geometry`}transform(e){return e.filter(t=>t!==this.keysNotReturn)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵpipe=JI({name:`featureinfokeys`,type:i,pure:!0})}}return i})();var No=(()=>{class i{constructor(){this.type=wP(Ze.TABLE),this.currentFeature=wP(null),this.hideEmptyFields=wP(!1),this.headerValueTemplates=wP(new Map),this.contentValueTemplates=wP(new Map),this.hideEmptyFieldWithKeys=wP([]),this.featureInfoDisplayTypeEnum=Ze,this.featureInfoConfigService=I$1(lt)}ngOnInit(){this.prepareForDisplay()}ngOnChanges(e){e.currentFeature&&!e.currentFeature.firstChange&&this.prepareForDisplay();let t=globalThis.document;t&&setTimeout(()=>{t.querySelectorAll(`table.ggc-fi-table tr`).forEach(function(n){n.style.display=``;let o=n.querySelectorAll(`td`);o.length>0&&Array.from(o).every(k=>k?.textContent?.trim()?.length===0)&&(n.style.display=`none`)})},50)}prepareForDisplay(){this.objectKeys=ti.objectKeys(this.currentFeature(),this.hideEmptyFields(),this.hideEmptyFieldWithKeys()),this.displayFeature=this.featureInfoConfigService.checkForCustomValues(this.currentFeature(),this.objectKeys)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`ggc-feature-info-display`]],inputs:{type:[1,`type`],currentFeature:[1,`currentFeature`],hideEmptyFields:[1,`hideEmptyFields`],headerValueTemplates:[1,`headerValueTemplates`],contentValueTemplates:[1,`contentValueTemplates`],hideEmptyFieldWithKeys:[1,`hideEmptyFieldWithKeys`]},features:[Gg],decls:2,vars:1,consts:[[`defaultValueTemplateHeaderList`,``],[`defaultValueTemplateList`,``],[`defaultValueTemplateHeaderTable`,``],[`defaultValueTemplateTable`,``],[1,`ggc-fi-list-item`],[1,`ggc-fi-table`,`table`],[1,`ggc-fi-list-title`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[1,`ggc-fi-list-content`],[1,`sr-only`,`visually-hidden`],[1,`ggc-fi-thead`],[`scope`,`col`,1,`ggc-fi-col-first`],[`scope`,`col`,1,`ggc-fi-col-second`],[1,`ggc-fi-tbody`],[1,`ggc-fi-list-content`,3,`ngTemplateOutlet`,`ngTemplateOutletContext`]],template:function(t,n){if(t&1&&hE(0,yo,4,2,`dl`,4)(1,To,13,2,`table`,5),t&2){let o;gE((o=n.type())===n.featureInfoDisplayTypeEnum.LIST?0:o===n.featureInfoDisplayTypeEnum.TABLE?1:-1)}},dependencies:[Ts$1,Vo],styles:[`dt[_ngcontent-%COMP%], dd[_ngcontent-%COMP%]{white-space:pre-line}[_ngcontent-%COMP%]:is(dt,dd):empty{display:none}`]})}}return i})();var Lo=(()=>{class i{constructor(){this.injector=I$1(Me$2)}getMapService(){return L$1(this,null,function*(){try{if(!this.mapService){let e=yield this.loadMapModule();this.mapService=this.injector.get(e.GgcMapService)}return this.mapService}catch(e){return}})}getMapSelectionService(){return L$1(this,null,function*(){try{if(!this.mapSelectionService){let e=yield this.loadMapModule();this.mapSelectionService=this.injector.get(e.GgcSelectionService)}return this.mapSelectionService}catch(e){return}})}getCesiumSelectionService(){return L$1(this,null,function*(){try{if(!this.cesiumSelectionService){let e=yield this.loadCesiumModule(
34);this.cesiumSelectionService=this.injector.get(e.GgcSelectionService)}return this.cesiumSelectionService}catch(e){return}})}loadMapModule(){return this.mapModulePromise??=import(`./chunk-XbFFWXtq.js`).catch(e=>{throw e}),this.mapModulePromise}loadCesiumModule(){return this.cesiumModulePromise??=import(`./chunk-BX9axHgV.js`).catch(e=>{throw e}),this.cesiumModulePromise}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵprov=z$1({token:i,factory:i.ɵfac,providedIn:`root`})}}return i})();var On=(()=>{class i{constructor(){this.connectService=I$1(Lo)}showHighlight(e,t,n){n==tC.TWEE_D&&this.clearHighlightLayer(n,t).then(()=>this.addFeaturesToHighlightLayer([e],t))}getObservableForMapSelection(e,t=PP,n){return e==tC.TWEE_D?this.connectService.getMapSelectionService().then(o=>o?.getObservable(t,n)??Sh$1()):this.connectService.getCesiumSelectionService().then(o=>o?.getFeatureCollectionForCoordinateObservable(n)??Sh$1())}getCurrentFeatureCollectionForMapSelection(e,t=PP,n){return e==tC.TWEE_D?this.connectService.getMapSelectionService().then(o=>o?.getCurrentFeatureCollection(t,n)):this.connectService.getCesiumSelectionService().then(o=>o?.getCurrentFeatureCollection(n))}startSelect(e,t,n){n==tC.TWEE_D?this.connectService.getMapSelectionService().then(o=>{o?.startSelect(e,t)}):n==tC.DRIE_D&&this.connectService.getCesiumSelectionService().then(o=>{o?.addSelection()})}clearHighlightLayer(e,t=PP){return e==tC.TWEE_D&&this.connectService.getMapService().then(n=>{n?.clearHighlightLayer(t)}),Promise.resolve()}addFeaturesToHighlightLayer(e,t=PP){return this.connectService.getMapService().then(n=>{n?.addFeaturesToHighlightLayer(e,t)})}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵprov=z$1({token:i,factory:i.ɵfac,providedIn:`root`})}}return i})();var Dn=(()=>{class i{constructor(){this.eventSubject=new Y$1,this.events$=this.eventSubject.asObservable()}emit(e){this.eventSubject.next(e)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵprov=z$1({token:i,factory:i.ɵfac,providedIn:`root`})}}return i})();var An=(()=>{class i{constructor(){this.mapIndex=PP,this.selectIndex=void 0,this.showEmptyMessage=!0,this.featureInfoDisplayType=Ze.TABLE,this.pagerPrevious=`<`,this.pagerNext=`>`,this.hideEmptyFields=!1,this.autoConnect=!0,this.autoStartSelect=!0,this.viewerType=tC.TWEE_D,this.events=new Le,this.customHeaderValueTemplates=new Map,this.customValueTemplates=new Map,this.hideEmptyFieldWithKeys=[],this.pagerIsHidden=Ys$2(!1),this.currentFeatureIndex=Ys$2(0),this.currentFeature=Ys$2(null),this.emptyInfo=`Geen informatie beschikbaar`,this.featureInfoMapConnectService=I$1(On),this.hasTabs=!0,this.eventService=I$1(Dn),this.featureInfoConfigService=I$1(lt),this.elementRef=I$1(ur$2),this._hidePagerWithOneFeature=!1}set hidePagerWithOneFeature(e){this._hidePagerWithOneFeature=e,this.handleFeatureInfoChanges()}get hidePagerWithOneFeature(){return this._hidePagerWithOneFeature}get featureInfoCollection(){return this._featureInfoCollection}set featureInfoCollection(e){this._featureInfoCollection=e,this.handleFeatureInfoChanges()}get customAttributeNamesAndValues(){return this._customAttributeNamesAndValues}set customAttributeNamesAndValues(e){this._customAttributeNamesAndValues=e,this.handleFeatureInfoChanges()}set featureInfoEvent(e){e&&this.handleFeatureInfoEvent(e)}ngOnInit(){this.autoConnect&&(this.subscribeToMapSelection(this.mapIndex,this.selectIndex),this.subscription=this.eventService.events$.subscribe(e=>this.handleFeatureInfoEvent(e)))}ngAfterViewInit(){let e=this.elementRef.nativeElement.closest(`ggc-feature-info-tabs`);this.hasTabs=!!e,this.autoConnect&&this.autoStartSelect&&this.featureInfoMapConnectService.startSelect({style:null},this.mapIndex,this.viewerType)}
34ngAfterContentInit(){this.templates.forEach(e=>{(Array.isArray(e.ggcTemplateKey)?e.ggcTemplateKey:[e.ggcTemplateKey]).forEach(t=>{switch(e.templateType){case Te.HEADER:this.customHeaderValueTemplates.set(t,e.templateRef);break;case Te.CONTENT:this.customValueTemplates.set(t,e.templateRef);break;case Te.HIDE:this.customHeaderValueTemplates.set(t,null);break;case Te.HIDE_IF_EMPTY:this.hideEmptyFieldWithKeys.includes(t)||this.hideEmptyFieldWithKeys.push(t);break}})})}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.subscriptionSelection&&this.subscriptionSelection.unsubscribe()}goToPreviousFeature(){this.hasPreviousFeature()&&(this.currentFeatureIndex.set(this.currentFeatureIndex()-1),this.setCurrentFeature())}goToNextFeature(){this.hasNextFeature()&&(this.currentFeatureIndex.set(this.currentFeatureIndex()+1),this.setCurrentFeature())}hasNextFeature(){let e=this.displayFeaturesProperties?this.displayFeaturesProperties.length:-1;return e>0?this.currentFeatureIndex()<e-1:!1}hasPreviousFeature(){return this.displayFeaturesProperties&&this.displayFeaturesProperties.length>1?this.currentFeatureIndex()>0:!1}getPropertiesFromFeatures(e){let t=[];return e.forEach(n=>{let o;n instanceof Ie$2?o=n.getProperties():o=E({},n),delete o[VP],t.push(o)}),t}hidePager(){return this.hidePagerWithOneFeature&&(this.displayFeaturesProperties==null||this.displayFeaturesProperties.length===1)}handleFeatureInfoEvent(e){if(e.type===Ke.SELECTEDTAB){let t=e.value;t?this.featureInfoCollection=new kt(void 0,this.featureCollectionIsClustered(t)?kY(t.features):t.features,t.layerTitle,t.layerId):this.featureInfoCollection=void 0}}featureCollectionIsClustered(e){return e.features.some(t=>typeof t?.get==`function`&&t.get(`features`))}setCurrentFeature(){this.currentFeature.set(this.displayFeaturesProperties?this.displayFeaturesProperties[this.currentFeatureIndex()]:null);let e=this.featureInfoCollection?this.featureInfoCollection.features[this.currentFeatureIndex()]:void 0,t=new We(Ke.SELECTEDOBJECT,`Het huidige weergegeven object.`,e);this.highlightFeature(e),this.events.next(t)}highlightFeature(e){this.featureInfoMapConnectService.showHighlight(e,this.mapIndex,this.viewerType)}handleFeatureInfoChanges(){if(this.featureInfoCollection){this.customAttributeNamesAndValues&&this.featureInfoConfigService.setCustomFeatureInfo(this.customAttributeNamesAndValues);let e=this.getPropertiesFromFeatures(this.featureInfoCollection.features);this.displayFeaturesProperties=this.featureInfoConfigService.filterAndSortAttributes(this.featureInfoCollection.layerId,e)}else this.displayFeaturesProperties=void 0;this.displayFeaturesProperties&&this.displayFeaturesProperties.length>0?(this.currentFeatureIndex.set(0),this.setCurrentFeature()):(this.currentFeatureIndex.set(-1),this.currentFeature.set(null),this.events.next(new We(Ke.SELECTEDOBJECT,`Het huidige weergegeven object.`,void 0))),this.pagerIsHidden.set(this.hidePager())}subscribeToMapSelection(e,t){this.featureInfoMapConnectService.getCurrentFeatureCollectionForMapSelection(this.viewerType,e,t).then(n=>{this.handleNewFeatureCollectionForCoordinate(n,e)}),this.featureInfoMapConnectService.getObservableForMapSelection(this.viewerType,e,t).then(n=>{this.hasTabs||(this.subscriptionSelection=n.subscribe(o=>{o.type===eC.SELECTIONSERVICE_SELECTIONUPDATED&&this.handleNewFeatureCollectionForCoordinate(o.value,e)}))})}handleNewFeatureCollectionForCoordinate(e,t){let n=e?.featureCollectionForLayers;if(!n||n.length===0){this.featureInfoMapConnectService.clearHighlightLayer(this.viewerType,t),this.featureInfoCollection=void 0;return}this.createNewFeatureCollection(n)}createNewFeatureCollection(e){this.featureInfoCollection=new kt(void 0,e.flatMap(t=>this.featureCollectionIsClustered(t)?kY(t.features):t.features??[]),e.map(t=>t.layerTitle).filter(t=>t&&t.trim().length>0).join(`, `),e.map(t=>t.layerId).filter(t=>t&&t.trim().length>0).join(`, `))}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`ggc-feature-info`]],contentQueries:function(t,n,o){if(t&1&&vp$1(o,Et,4),t&2){let p;FE(p=jE())&&(n.templates=p)}},inputs:{mapIndex:`mapIndex`,selectIndex:`selectIndex`,showEmptyMessage:`showEmptyMessage`,featureInfoDisplayType:`featureInfoDisplayType`,pagerPrevious:`pagerPrevious`,pagerNext:`pagerNext`,hideEmptyFields:`hideEmptyFields`,autoConnect:`autoConnect`,autoStart
34Select:`autoStartSelect`,viewerType:`viewerType`,hidePagerWithOneFeature:`hidePagerWithOneFeature`,featureInfoCollection:`featureInfoCollection`,customAttributeNamesAndValues:`customAttributeNamesAndValues`,featureInfoEvent:`featureInfoEvent`},outputs:{events:`events`},ngContentSelectors:Fn,decls:3,vars:2,consts:[[1,`ggc-fi-empty`],[`aria-label`,`Navigatie door objecten`],[3,`type`,`hideEmptyFields`,`currentFeature`,`headerValueTemplates`,`contentValueTemplates`,`hideEmptyFieldWithKeys`],[1,`pagination`,`ggc-fi-pager`],[1,`ggc-fi-pager-previous`],[`title`,`Vorige`,`aria-label`,`Vorige`,1,`btn`,`btn-sm`,3,`click`,`disabled`],[1,`ggc-fi-pager-value`],[1,`ggc-fi-pager-next`],[`title`,`Volgende`,`aria-label`,`Volgende`,1,`btn`,`btn-sm`,3,`click`,`disabled`]],template:function(t,n){t&1&&(kE(),hE(0,Mo,2,7),hE(1,Po,2,1,`span`,0),LE(2)),t&2&&(gE(n.currentFeature()?0:-1),uy(),gE(n.showEmptyMessage&&!n.currentFeature()?1:-1))},dependencies:[No],styles:[`.ggc-fi-pager[_ngcontent-%COMP%]{margin:10px 10px 0}`]})}}return i})();var Vn=(()=>{class i{constructor(){this.mapIndex=PP,this.selectIndex=void 0,this.showEmptyTabs=!1,this.ariaLabel=`feature-info`,this.autoConnect=!0,this.viewerType=tC.TWEE_D,this.events=new Le,this.featureInfoCollectionArrayInternal=Ys$2([]),this.selectedTab=Ys$2(void 0),this.featureInfoMapConnectService=I$1(On),this.selectedTabFeatureInfo=Ys$2(void 0),this.lastSelectedTabOnClick=Ys$2(void 0),this.featureInfoConfigService=I$1(lt),this.eventService=I$1(Dn)}ngAfterContentInit(){this.tabTemplate&&(this.tabComponent=this.tabTemplate.templateRef)}ngOnInit(){this.autoConnect?this.subscribeToMapSelection(this.mapIndex):this.onDataUpdate()}ngOnChanges(e){e.featureInfoCollectionArray&&this.onDataUpdate()}ngOnDestroy(){this.subscriptionSelection?.unsubscribe()}onTabClicked(e){this.lastSelectedTabOnClick.set(e),this.setActiveTab(e)}onDataUpdate(){if(this.featureInfoCollectionArrayInternal.set(this.featureInfoCollectionArray?[...this.featureInfoCollectionArray]:[]),this.checkShowEmptyTabs(),this.featureInfoCollectionArrayInternal().length===0){let e=new We(Ke.SELECTEDTAB,`Het huidige weergegeven tabblad.`,void 0);this.featureInfoMapConnectService.clearHighlightLayer(this.viewerType,this.mapIndex),this.eventService.emit(e),this.events.emit(e)}else this.featureInfoConfigService.sortTabs(this.featureInfoCollectionArrayInternal()),this.setActiveTab(this.lastSelectedTabOnClick())}setActiveTab(e){let t=this.featureInfoCollectionArrayInternal().findIndex(o=>o.layerId===e);t===-1&&(t=0),this.selectedTabFeatureInfo.set(this.featureInfoCollectionArrayInternal()[t]),this.selectedTab.set(this.selectedTabFeatureInfo()?.layerId);let n=new We(Ke.SELECTEDTAB,`Het huidige weergegeven tabblad.`,this.selectedTabFeatureInfo());this.eventService.emit(n),this.events.emit(n)}checkShowEmptyTabs(){this.showEmptyTabs||this.featureInfoCollectionArrayInternal.set(this.featureInfoCollectionArrayInternal().filter(e=>e.features.length>0))}subscribeToMapSelection(e){this.featureInfoMapConnectService.getCurrentFeatureCollectionForMapSelection(this.viewerType,e,this.selectIndex).then(t=>{this.setFeatureInfoCollectionArray(t?.featureCollectionForLayers)}),this.featureInfoMapConnectService.getObservableForMapSelection(this.viewerType,e,this.selectIndex).then(t=>{this.subscriptionSelection=t.subscribe(n=>{n.type===eC.SELECTIONSERVICE_SELECTIONUPDATED&&this.setFeatureInfoCollectionArray(n.value.featureCollectionForLayers)})})}setFeatureInfoCollectionArray(e){this.featureInfoCollectionArray=e,this.onDataUpdate()}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`ggc-feature-info-tabs`]],contentQueries:function(t,n,o){if(t&1&&vp$1(o,Et,4),t&2){let p;FE(p=jE())&&(n.tabTemplate=p.first)}},inputs:{mapIndex:`mapIndex`,selectIndex:`selectIndex`,featureInfoCollectionArray:`featureInfoCollectionArray`,showEmptyTabs:`showEmptyTabs`,ariaLabelledBy:`ariaLabelledBy`,ariaLabel:`ariaLabel`,autoConnect:`autoConnect`,viewerType:`viewerType`},outputs:{events:`events`},features:[Gg],ngContentSelectors:Fn,decls:3,vars:3,consts:[[`defaultValueTemplate`,``],[`role`,`tablist`,1,`ggc-fi-tab`],[`role`,`tabpanel`,`tabIndex`,`0`,1,`ggc-fi-tab-content`],[`role`,`tab`,3,`id`,`ngClass`],[`role`,`tab`,3,`click`,`id`,`ngClass`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`]],template:function(t,n){t&1&&(kE(),hE(0,Ao,3,2,`div`,1),pi(1,`div`,2),LE(2),bc()),t&2&&(gE(n.featureInfoCollectionArrayInternal()&&n.featureInfoCollectionArrayInternal().length>0?0:-1),uy(),ap$1(`id`,`tabpanel-`+n.selectedTab())(`aria-labelledby`,n.featureInfoCollectionArrayInternal()&&n.featureInfoCollectionArrayInternal().length>0?`tab-`+n.selectedTab():null))},dependencies:[ri$2,Ts$1],styles:[`.ggc-fi-tab[_ngcontent-%COMP%]{background-color:var(--%NS%white, white);border-bottom:1px solid var(--%NS%gray-18, #ccc);margin:0;overflow:hidden}.ggc-fi-tab[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--%NS%gray-01, #f1f1f1);border-bottom:none;border-left:none;border-top:1px solid var(--%NS%white, white);border-right:1px solid var(--%NS%white, white);padding:4px 14px;transition:.4s}.ggc-fi-tab[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--%NS%gray-18, #ddd)}.ggc-fi-tab[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--%NS%primary, #007395);color:var(--%NS%white, white);cursor:default}.ggc-fi-tab[_ngcontent-%COMP%] button.inactive[_ngcontent-%COMP%]{color:var(--%NS%gray-43, #888)}`]})}}return i})();function Bo(i,a){if(i&1&&uD(0),i&2){let e=a.value;xc$1(` Melding `,e,` `)}}function jo(i,a){if(i&1&&uD(0),i&2){let e=RE(2).properties;xc$1(` over `,e.objectType,` `)}}function Ro(i,a){if(i&1&&uD(0),i&2){let e=RE(2).properties;xc$1(` met kenmerk `,e.objectId,` `)}}function zo(i,a){if(i&1&&(pi(0,`div`),uD(1,` Melding `),hE(2,jo,1,1),hE(3,Ro,1,1),bc()),i&2){let e=RE().properties;uy(2),gE(e.objectType?2:-1),uy(),gE(e.objectId?3:-1)}}function Ho(i,a){if(i&1&&(hE(0,zo,4,2,`div`),pi(1,`div`),uD(2),bc()),i&2){let e=a.properties;gE(e.objectType||e.objectId?0:-1),uy(2),kp$1(e.omschrijving)}}function Uo(i,a){}function Go(i,a){i&1&&uD(0,` Gemeld op `)}
34function qo(i,a){if(i&1&&(pi(0,`div`),uD(1),ND(2,`date`),bc()),i&2){let e=RE().properties;uy(),xc$1(` Meldingsdatum: `,SD(2,1,e.tijdstipRegistratie,`dd-MM-yyyy HH:mm`),` `)}}function $o(i,a){if(i&1&&(pi(0,`div`),uD(1),bc(),hE(2,qo,3,4,`div`)),i&2){let e=a.value,t=a.properties,n=RE();uy(),kp$1(n.getName(e,t.product)),uy(),gE(t.tijdstipRegistratie?2:-1)}}function Ko(i,a){if(i&1&&(uD(0),ND(1,`date`)),i&2){let e=RE(2),t=e.value,n=e.properties;Lp$1(` Status: `,t,` gemeld op `,SD(1,2,n.tijdstipRegistratie,`dd-MM-yyyy HH:mm`),` `)}}function Wo(i,a){if(i&1&&(uD(0),ND(1,`date`)),i&2){let e=RE(2),t=e.value,n=e.properties;Lp$1(` Status: `,t,` sinds `,SD(1,2,n.tijdstipStatusWijziging,`dd-MM-yyyy HH:mm`),` `)}}function Qo(i,a){if(i&1&&(hE(0,Ko,2,5),hE(1,Wo,2,5)),i&2){let e=RE().value;gE(e.toLocaleLowerCase()===`nieuw`?0:-1),uy(),gE(e.toLocaleLowerCase()!==`nieuw`?1:-1)}}function Zo(i,a){if(i&1&&uD(0),i&2){let e=RE().value;xc$1(` Status: `,e,` `)}}function Yo(i,a){if(i&1&&(hE(0,Qo,2,2),hE(1,Zo,1,1)),i&2){let e=a.properties;gE(e.tijdstipRegistratie?0:-1),uy(),gE(e.tijdstipRegistratie===void 0?1:-1)}}function Jo(i,a){if(i&1&&(pi(0,`div`),uD(1),bc()),i&2){let e=RE(2).properties,t=RE();uy(),xc$1(` Doorgestuurd naar `,t.getNameRegistratieFromMeldingsnummerVolledig(e.doorgestuurdNaar),`. `)}}function Xo(i,a){if(i&1&&(pi(0,`a`,9),uD(1,` BAG Viewer`),lp$1(2,`span`,10),bc()),i&2){let e=RE(4).properties;cp$1(`href`,RE().getLocatieLink(e.doorgestuurdNaar),Iv)}}function ea(i,a){if(i&1&&(uD(0,` Bekijk de nieuwe melding in de `),hE(1,Xo,3,1,`a`,9),uD(2,` . `)),i&2){let e=RE(3).properties;uy(),gE(e.doorgestuurdNaar?1:-1)}}function ta(i,a){if(i&1&&(pi(0,`a`,9),uD(1,` VerbeterdeLuchtvaartkaart.nl`),lp$1(2,`span`,10),bc()),i&2){let e=RE(4).properties;cp$1(`href`,RE().getLocatieLink(e.doorgestuurdNaar),Iv)}}function ia(i,a){if(i&1&&(uD(0,` Bekijk de nieuwe melding op `),hE(1,ta,3,1,`a`,9),uD(2,` . `)),i&2){let e=RE(3).properties;uy(),gE(e.doorgestuurdNaar?1:-1)}}function na(i,a){if(i&1&&(pi(0,`a`,9),uD(1,`Bekijk de nieuwe melding`),lp$1(2,`span`,10),bc()),i&2){let e=RE(4).properties;cp$1(`href`,RE().getLocatieLink(e.doorgestuurdNaar),Iv)}}function oa(i,a){if(i&1&&hE(0,na,3,1,`a`,9),i&2){let e=RE(3).properties;gE(e.doorgestuurdNaar?0:-1)}}function aa(i,a){if(i&1&&(hE(0,ea,3,1),hE(1,ia,3,1),hE(2,oa,1,1)),i&2){let e=RE(2).properties;gE(e.registratie===`BAG`?0:-1),uy(),gE(e.registratie===`AERO`?1:-1),uy(),gE(e.registratie!==`BAG`&&e.registratie!==`AERO`?2:-1)}}function ra(i,a){if(i&1&&(hE(0,Jo,2,1,`div`),pi(1,`div`),uD(2),bc(),hE(3,aa,3,3)),i&2){let e=RE().properties;gE(e.doorgestuurdNaar?0:-1),uy(2),xc$1(` De nieuwe melding vindt u met nummer `,e.doorgestuurdNaar,`. `),uy(),gE(e.doorgestuurdNaar?3:-1)}}function sa(i,a){if(i&1&&uD(0),i&2){let e=RE().properties;xc$1(` Uw melding wordt behandeld door bronhouder `,e.bronhoudernaam,`. `)}}function la(i,a){if(i&1&&(hE(0,ra,4,3),hE(1,sa,1,1)),i&2){let e=a.value;gE(e.toLocaleLowerCase()===`doorgestuurd`?0:-1),uy(),gE(e.toLocaleLowerCase()!==`doorgestuurd`?1:-1)}}function ca(i,a){}function da(i,a){}function ma(i,a){}function pa(i,a){}function ua(i,a){}function ga(i,a){}function ha(i,a){}var Nn=(()=>{class i{get event(){return this._event}set event(e){this._event=e,e&&this.handleSelectionServiceEvents(e)}constructor(){this.eventTrackerService=I$1(Kr),this.terugmeldingSearchService=I$1(No$2),this.stateService=I$1(Do$2),this.className=`d-flex flex-column h-100`,this.featureInfoDisplay=Ze.LIST,this.types=Te,this.viewerType=tC.TWEE_D,this.selectIndex=void 0,this.mapName=Mt$2.mapName;let e=I$1(lt),t=[`meldingsNummerVolledig`,`registratie`,`tijdstipRegistratie`,`status`,`omschrijving`,`bronhoudernaam`,`toelichting`,`doorgestuurdNaar`,`objectType`,`objectId`,`product`,`tijdstipStatusWijziging`];e.setConfig([new Qe({layerId:`terugmeldingen-bgt`,attributeOrder:t}),new Qe({layerId:`terugmeldingen-brt`,attributeOrder:t}),new Qe({layerId:`3db-terugmeldingen`,attributeOrder:t})]),this.setCustomAttributeNamesAndValues()}handleSelectionServiceEvents(e){e&&e?.type===eC.SELECTIONSERVICE_SELECTIONUPDATED&&this.eventTrackerService.pushCustomEvent(`interaction`,`behavior`,`icon_click`,`feature_details`)}setCustomAttributeNamesAndValues(){let e=new Tt({customAttributeName:`Toelichting bronhouder`}),t=new Map;t.set(`toelichting`,e),this.customAttributeNamesAndValues=t}getName(e,t){if(t)switch(t){case`TOP1000`:return`Topografische kaart van Nederland, schaal 1 : 1.000.000 (Basisregistratie Topografie: BRT, TOP1000)`;case`TOP500`:return`Topografische kaart van Nederland, schaal 1 : 500.000 (Basisregistratie Topografie: BRT, TOP500)`;case`TOP250`:return`Topografische kaart van Nederland, schaal 1 : 250.000 (Basisregistratie Topografie: BRT, TOP250)`;case`TOP100`:return`Topografische kaart van Nederland, schaal 1 : 100.000 (Basisregistratie Topografie: BRT, TOP100)`;case`TOP50`:return`Topografische kaart van Nederland, schaal 1 : 50.000 (Basisregistratie Topografie: BRT, TOP50)`;case`TOP25`:return`Topografische kaart van Nederland, schaal 1 : 25.000 (Basisregistratie Topografie: BRT, TOP25)`;case`TOP10`:return`Topografische kaart van Nederland, schaal 1 : 10.000 (
34Basisregistratie Topografie: BRT, TOP10)`;default:}return this.getNameRegistratie(e)}getNameRegistratie(e){switch(e){case`BRT`:return`Basisregistratie Topografie (BRT)`;case`BGT`:return`Basisregistratie Grootschalige Topografie (BGT)`;case`3DB`:return`3D Basisvoorziening (3DB)`;default:return e}}getNameRegistratieFromMeldingsnummerVolledig(e){let t=e.replaceAll(/\d/g,``);return this.getNameRegistratie(t)}getLocatieLink(e){let t=this.terugmeldingSearchService.getTerugmeldingByMeldingsnummer(e);return t?.locatieLink?t?.locatieLink:null}openQuestion(e){e&&this.stateService.openFaqItem(e)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-feature-info`]],hostVars:1,hostBindings:function(t,n){t&2&&pp$1(`className`,n.className)},inputs:{event:`event`,viewerType:`viewerType`,selectIndex:`selectIndex`},decls:29,vars:42,consts:[[1,`card-header`,`justify-content-between`,`d-flex`],[`id`,`primary-panel-label`,1,`h4`,`mt-0`],[1,`card-body`,`d-flex`,`flex-column`],[3,`showEmptyTabs`,`ariaLabel`,`mapIndex`,`viewerType`,`selectIndex`],[3,`viewerType`,`featureInfoDisplayType`,`hidePagerWithOneFeature`,`showEmptyMessage`,`customAttributeNamesAndValues`,`hideEmptyFields`,`mapIndex`,`autoStartSelect`,`selectIndex`],[3,`ggcTemplateKey`,`templateType`],[1,`mt-1`,`mb-2`],[1,`m-0`],[`data-faq`,``,3,`click`,`keydown.enter`],[`target`,`_blank`,3,`href`],[`aria-hidden`,`true`,1,`fal`,`fa-external-link`,`icon-suffix`]],template:function(t,n){t&1&&(pi(0,`div`,0)(1,`h2`,1),uD(2,`Details`),bc()(),pi(3,`div`,2)(4,`ggc-feature-info-tabs`,3)(5,`ggc-feature-info`,4),Xf(6,Bo,1,1,`ng-template`,5)(7,Ho,3,2,`ng-template`,5)(8,Uo,0,0,`ng-template`,5)(9,Go,1,0,`ng-template`,5)(10,$o,3,2,`ng-template`,5)(11,Yo,2,2,`ng-template`,5)(12,la,2,2,`ng-template`,5)(13,ca,0,0,`ng-template`,5)(14,da,0,0,`ng-template`,5)(15,ma,0,0,`ng-template`,5)(16,pa,0,0,`ng-template`,5)(17,ua,0,0,`ng-template`,5)(18,ga,0,0,`ng-template`,5)(19,ha,0,0,`ng-template`,5),lp$1(20,`hr`),pi(21,`h3`,6),uD(22,`Meer weten?`),bc(),pi(23,`p`,7),uD(24,`Lees ook:`),bc(),pi(25,`ul`)(26,`li`)(27,`span`,8),gp$1(`click`,function(){return n.openQuestion(`Wat is een bronhouder?`)})(`keydown.enter`,function(){return n.openQuestion(`Wat is een bronhouder?`)}),uD(28,`Wat is een bronhouder?`),bc()()()()()()),t&2&&(uy(4),cp$1(`showEmptyTabs`,!1)(`ariaLabel`,`Detail terugmelding`)(`mapIndex`,n.mapName)(`viewerType`,n.viewerType)(`selectIndex`,n.selectIndex),uy(),cp$1(`viewerType`,n.viewerType)(`featureInfoDisplayType`,n.featureInfoDisplay)(`hidePagerWithOneFeature`,!0)(`showEmptyMessage`,!1)(`customAttributeNamesAndValues`,n.customAttributeNamesAndValues)(`hideEmptyFields`,!0)(`mapIndex`,n.mapName)(`autoStart
34Select`,!1)(`selectIndex`,n.selectIndex),uy(),cp$1(`ggcTemplateKey`,`meldingsNummerVolledig`)(`templateType`,n.types.HEADER),uy(),cp$1(`ggcTemplateKey`,`meldingsNummerVolledig`)(`templateType`,n.types.CONTENT),uy(),cp$1(`ggcTemplateKey`,`omschrijving`)(`templateType`,n.types.HIDE),uy(),cp$1(`ggcTemplateKey`,`registratie`)(`templateType`,n.types.HEADER),uy(),cp$1(`ggcTemplateKey`,`registratie`)(`templateType`,n.types.CONTENT),uy(),cp$1(`ggcTemplateKey`,`status`)(`templateType`,n.types.HEADER),uy(),cp$1(`ggcTemplateKey`,`status`)(`templateType`,n.types.CONTENT),uy(),cp$1(`ggcTemplateKey`,`bronhoudernaam`)(`templateType`,n.types.HIDE),uy(),cp$1(`ggcTemplateKey`,`doorgestuurdNaar`)(`templateType`,n.types.HIDE),uy(),cp$1(`ggcTemplateKey`,`objectId`)(`templateType`,n.types.HIDE),uy(),cp$1(`ggcTemplateKey`,`objectType`)(`templateType`,n.types.HIDE),uy(),cp$1(`ggcTemplateKey`,`tijdstipRegistratie`)(`templateType`,n.types.HIDE),uy(),cp$1(`ggcTemplateKey`,`product`)(`templateType`,n.types.HIDE),uy(),cp$1(`ggcTemplateKey`,`tijdstipStatusWijziging`)(`templateType`,n.types.HIDE))},dependencies:[Vn,An,Et,xs$1],styles:[`ggc-feature-info-tabs[_ngcontent-%COMP%] .ggc-fi-list-title{font-weight:600}ggc-feature-info-tabs[_ngcontent-%COMP%] .ggc-fi-list-item{font-weight:300}.card-body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden}ggc-feature-info-tabs[_ngcontent-%COMP%]{display:block;flex:1 1 auto;min-height:0}ggc-feature-info-tabs[_ngcontent-%COMP%] .ggc-fi-tab-content{height:auto;overflow:visible}ggc-feature-info-tabs[_ngcontent-%COMP%] .ggc-fi-tab>button{overflow:hidden;text-overflow:ellipsis;max-width:140px;white-space:nowrap}h3[_ngcontent-%COMP%]{font-size:1.25rem}`],changeDetection:1})}}return i})();var W=(function(i){return i.SELECT_LOCATION=`Selecteer locatie`,i.FEEDBACK=`Feedback`,i.EMAIL=`Email`,i.CONFIRMATION=`Bevestiging`,i})(W||{});var Ye=(()=>{class i{constructor(){this.stateService=I$1(Do$2),this.modeService=I$1(ns),this.layerService=I$1(GL),this.mapService=I$1(rL),this.mapEventsService=I$1(RY),this.eventTrackerService=I$1(Kr),this.modeService.activeMode.subscribe(e=>{this.mode=e})}clickMeldenButton(){this.eventTrackerService.pushCustomEvent(`interaction`,`behavior`,`button_click`,`melden`),this.eventTrackerService.pushCustomEvent(`funnel`,`funnel`,`step_1`,`melding`),this.stateService.hidePrimaryPanel(!1),this.stateService.updatePrimaryState(this.mode==ut$1.TweeD?`report_2d_draw`:`report_3d_draw`),this.scrollMainContainerToTop()}scrollMainContainerToTop(){let e=()=>{let t=document.querySelector(`main.container-panel-application`);t&&t.scrollTo({top:0,behavior:`auto`})};requestAnimationFrame(()=>{e(),requestAnimationFrame(e)})}getActiveLayerIdObservable(){return this.mapEventsService.getZoomendObservableForMap(Mt$2.mapName).pipe(qe$2(()=>this.getActiveLayerId()))}getActiveLayerId(){let e=this.mapService.getMap(Mt$2.mapName).getView().getResolution();if(e==null)return;let t=this.layerService.getLayerConfigs(Mt$2.mapName);if(!t)return;let n=[];if(t.forEach(k=>{k.layers.forEach(P=>{if(P.minResolution===void 0||P.maxResolution===void 0)return;e>=P.minResolution&&e<=P.maxResolution&&P.visible&&n.push(P)})}),n.length===0)return;let o=n.find(k=>k.layerId===`bgt-standaard`);return n.find(k=>k.layerId===`bgt-iconen`)&&o?o.layerId:n[0].layerId}reload2DTerugmeldingen(){this.layerService.reloadLayer(`terugmeldingen-bgt`,Mt$2.mapName),this.layerService.reloadLayer(`terugmeldingen-brt`,Mt$2.mapName)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵprov=z$1({token:i,factory:i.ɵfac,providedIn:`root`})}}return i})();var pe=(function(i){return i.ON_SUBMIT=`onSubmit`,i.MELDING_SUCCESSFUL=`meldingSuccessful`,i.MELDING_FAILED=`meldingFailed`,i})(pe||{});var Mt=class{constructor(a,e,t,n){this.registratie=a,this.registratieNaam=e,this.meldingsnummer=t,this.bestanden=n}};var De=class{constructor(a,e,t,n){this.type=a,this.message=e,this.value=t,this.meldingProperties=n}};var Pt=class{constructor(a,e,t){this.features=new Array,this.type=`FeatureCollection`,this.convertToFeatureCollection(a,e,t)}convertToFeatureCollection(a,e,t){let n={type:`Feature`},k=a,{point:o}=k,p=H(k,[`point`]);if(n.geometry={type:`Point`,coordinates:o??[0,0]},n.properties=E(E({},p),e),t.length>0){let P=[];t.forEach(le=>{P.push({naam:le.name})}),n.properties.bijlagen=P}this.features.push(n)}};var Ln=(()=>{class i{constructor(){this.httpClient=I$1(Zr$2)}doPost(e,t,n){let o=new Ki$2({apikey:n.apiKey});n.crs&&(o=o.append(`Content-Crs`,n.crs));let p=new FormData,k=new Blob([JSON.stringify(e)],{type:`application/json`});p.append(`melding`,k);for(let P of t)p.append(`files`,P);return this.httpClient.post(n.terugmeldingAPI,p,{headers:o,observe:`response`}).pipe(qe$2(P=>{let le,ct=P.headers.get(`Location`);if(ct!==null){let di=ct.split(`/`);le=di[di.length-1]}return le}))}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵprov=z$1({token:i,factory:i.ɵfac,providedIn:`root`})}}return i})();var It=(()=>{class i{constructor(){this.apiV2Service=I$1(Ln),this.mapFeedbackServiceSubject=ne
34w Y$1,this.mapFeedbackServiceObservable=this.mapFeedbackServiceSubject.asObservable(),this._localStorage=localStorage}getObservable(){return this.mapFeedbackServiceObservable}sendFeedback(e,t,n,o,p=!1){let k=new Pt(e,t,o);this.apiV2Service.doPost(k,o,n).subscribe({next:P=>{let le=this.getMeldingsnummerVolledig(e.registratie,P);this.mapFeedbackServiceSubject.next(new De(pe.MELDING_SUCCESSFUL,`Gelukt! We hebben uw melding ontvangen.`,le,new Mt(e.registratie??``,this.getName(e.registratie),le,o.map(ct=>ct.name))))},error:P=>{this.mapFeedbackServiceSubject.next(new De(pe.MELDING_FAILED,this.createErrorMessage(P)))}}),p&&t.email?this.setEmailLocalStorage(t.email):this.deleteEmailLocalStorage()}setEmailLocalStorage(e){this._localStorage.setItem(`tms-email`,e)}deleteEmailLocalStorage(){this._localStorage.removeItem(`tms-email`)}getEmailLocalStorage(){return this._localStorage.getItem(`tms-email`)??null}createErrorMessage(e){return e.status===400||e.status===406?e.error.reden:e.status===401||e.status===406?e.message:`Er is iets fout gegaan bij het versturen van de melding. Probeer het later opnieuw.`}getMeldingsnummerVolledig(e,t){return!e||!t?``:`${e}${t.padStart(8,`0`)}`}getName(e){if(!e)return``;switch(e){case`BRT`:return`Basisregistratie Topografie (BRT)`;case`BAG`:return`Basisregistratie Adressen en Gebouwen (BAG)`;case`BGT`:return`Basisregistratie Grootschalige Topografie (BGT)`;case`AERO`:return`Terugmeldingen luchtvaartobstakels (AERO)`;case`3DB`:return`3D Basisvoorziening (3DB)`;case`KLIC`:return`Kabels en Leidingen Informatie Centrum (KLIC)`;default:return e}}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵprov=z$1({token:i,factory:i.ɵfac,providedIn:`root`})}}return i})();var Je=class{constructor(){this.omschrijvingValidationErrors=new Map,this.emailValidationErrors=new Map,this.omschrijvingValidationErrors.set(`required`,`U hebt geen verbetering ingevuld. Beschrijf uw verbetering.`),this.omschrijvingValidationErrors.set(`minlength`,`U hebt een te korte beschrijving ingevuld. Vul een beschrijving in met minimaal 5 tekens.`),this.omschrijvingValidationErrors.set(`maxlength`,`U hebt een te lange beschrijving ingevuld. Vul een beschrijving in met maximaal 2000 tekens.`),this.emailValidationErrors.set(`email`,`U hebt geen gelding e-mailadres ingevuld. Vul een geldig e-mailadres in.`),this.emailValidationErrors.set(`required`,`Let op: dit veld moet ingevuld zijn.`),this.emailValidationErrors.set(`maxlength`,`Let op: het e-mailadres mag maximaal 100 tekens lang zijn.`)}handleValidationErrors(a,e){let t=Object.keys(a);return e===`email`?this.pushValidationError(t,this.emailValidationErrors):this.pushValidationError(t,this.omschrijvingValidationErrors)}pushValidationError(a,e){let t=[];for(let n of a){let o=e.get(n);o!=null&&t.push(o)}return t}};var fa=i=>({"is-invalid":i});function _a(i,a){if(i&1&&(pi(0,`div`,4),uD(1),bc()),i&2){let e=a.$implicit;uy(),xc$1(` `,e,` `)}}var Ft=(()=>{class i{constructor(){this.emailValidationErrorsNotificaties=[],this._formControlEmail=new cd(null,{updateOn:`blur`}),this._formControlRemember=new cd(!1),this.mapFeedbackService=I$1(It),this.validationErrorHandler=new Je,this.validators=[Ks$1.maxLength(100),Ks$1.email],this._formControlEmail.setValidators(this.validators),this._formControlEmail.valueChanges.pipe(tu()).subscribe(()=>{let e=this._formControlEmail.errors;this.emailValidationErrorsNotificaties=e?this.validationErrorHandler.handleValidationErrors(e,`email`):[]})}get emailIsInvalid(){return this.emailValidationErrorsNotificaties.length>0}get formControlEmail(){return this._formControlEmail}get formControlRemember(){return this._formControlRemember}ngOnInit(){let e=this.mapFeedbackService.getEmailLocalStorage();e!==null&&e?.length>0&&(this._formControlEmail.setValue(e),this._formControlRemember=new cd(!0))}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-feedback-email`]],decls:13,vars:6,consts:[[1,`form-group`,`ggc-mf-email`],[`id`,`ggc-email-label`,`for`,`email`,1,`ggc-mf-email-input-label`],[1,`ggc-email-label-extra`],[`id`,`email`,`data-container`,`body`,`data-placement`,`top`,`type`,`email`,`autocomplete`,`email`,`placeholder`,`Bijvoorbeeld [email protected]`,1,`form-control`,`ggc-mf-email-input`,3,`ngClass`,`formControl`],[`aria-describedby`,`ggc-email-label`,`role`,`alert`,1,`ggc-mf-email-validation-notification`,`invalid-feedback`],[1,`custom-control`,`custom-checkbox`],[`type`,`checkbox`,`id`,`bewaar-gegevens`,1,`custom-control-input`,3,`formControl`],[`for`,`bewaar-gegevens`,1,`custom-control-label`]],template:function(t,n){t&1&&(pi(0,`div`,0)(1,`label`,1),uD(2,`E-mailadres `),pi(3,`span`,2),uD(4,` (Niet verplicht)`),bc()(),lp$1(5,`input`,3),tI(),vE(6,_a,2,1,`div`,4,mE),bc(),pi(8,`div`,0)(9,`div`,5),lp$1(10,`input`,6),tI(),pi(11,`label`,7),uD(12,` Onthoud mijn e-mailadres voor een volgende melding. `),bc()()()),t&2&&(uy(5),cp$1(`ngClass`,ED(4,fa,n._formControlEmail.invalid&&n._formControlEmail.touched))(`formControl`,n._formControlEmail),ap$1(`aria-invalid`,n.emailIsInvalid),rI(),uy(),yE(n.emailValidationErrorsNotificaties),uy(4),cp$1(`formControl`,n._formControlRemember),rI())},dependencies:[Z1,Ya$1,Iu$1,$1,_d$1,ri$2],encapsulation:2,changeDetection:1})}}return i})();var va=(()=>
34{class i{static ɵfac=function(t){return new(t||i)};static ɵcmp=zI({type:i,selectors:[[`ng-component`]],hostAttrs:[`cdk-text-field-style-loader`,``],decls:0,vars:0,template:function(t,n){},styles:[`textarea.cdk-textarea-autosize { 35 resize: none; 36} 37 38textarea.cdk-textarea-autosize-measuring { 39 padding: 2px 0 !important; 40 box-sizing: content-box !important; 41 height: auto !important; 42 overflow: hidden !important; 43} 44 45textarea.cdk-textarea-autosize-measuring-firefox { 46 padding: 2px 0 !important; 47 box-sizing: content-box !important; 48 height: 0 !important; 49} 50 51@keyframes cdk-text-field-autofill-start { /*!*/ } 52@keyframes cdk-text-field-autofill-end { /*!*/ } 53.cdk-text-field-autofill-monitored:-webkit-autofill { 54 animation: cdk-text-field-autofill-start 0s 1ms; 55} 56 57.cdk-text-field-autofill-monitored:not(:-webkit-autofill) { 58 animation: cdk-text-field-autofill-end 0s 1ms; 59} 60`],encapsulation:2})}return i})();var jn=(()=>{class i{_elementRef=I$1(ur$2);_platform=I$1(Eo$2);_ngZone=I$1(B$1);_renderer=I$1(Aa$2);_resizeEvents=new Y$1;_previousValue;_initialHeight;_destroyed=new Y$1;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=nh(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=nh(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute(`placeholder`,e):this._textareaElement.removeAttribute(`placeholder`),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=I$1(an$1);_hasFocus=!1;_isViewInited=!1;constructor(){I$1(nl).load(va),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){let e=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){let e=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen(`window`,`resize`,()=>this._resizeEvents.next()),this._renderer.listen(this._textareaElement,`focus`,this._handleFocusEvent),this._renderer.listen(this._textareaElement,`blur`,this._handleFocusEvent)],this._resizeEvents.pipe(Oh$1(16)).subscribe(()=>{this._cachedLineHeight=this._cachedPlaceholderHeight=void 0,this.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e()),this._resizeEvents.complete(),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1),t=e.style;e.rows=1,t.position=`absolute`,t.visibility=`hidden`,t.border=`none`,t.padding=`0`,t.height=``,t.minHeight=``,t.maxHeight=``,t.top=t.bottom=t.left=t.right=`auto`,t.overflow=`hidden`,this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,t=e.style.marginBottom||``,n=this._platform.FIREFOX,o=this._hasFocus,p=n?`cdk-textarea-autosize-measuring-firefox`:`cdk-textarea-autosize-measuring`;o&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(p);let k=e.scrollHeight-4;return e.classList.remove(p),o&&(e.style.marginBottom=t),k}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||this._cachedPlaceholderHeight!=null)return;if(!this.placeholder){this._cachedPlaceholderHeight=0;return}let e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}_handleFocusEvent=e=>{this._hasFocus=e.type===`focus`};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;let t=this._elementRef.nativeElement,n=t.value;if(!e&&this._minRows===this._previousMinRows&&n===this._previousValue)return;let o=this._measureScrollHeight(),p=Math.max(o,this._cachedPlaceholderHeight||0);t.style.height=`${p}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<`u`?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=n,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:t,selectionEnd:n}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,n)}static ɵfac=function(t){return new(t||i)};static ɵdir=KI({type:i,selectors:[[`textarea`,`cdkTextareaAutosize`,``]],hostAttrs:[`rows`,`1`,1,`cdk-textarea-autosize`],hostBindings:function(t,n){t&1&&gp$1(`input`,function(){return n._noopInputHandler()})},inputs:{minRows:[0,`cdkAutosizeMinRows`,`minRows`],maxRows:[0,`cdkAutosizeMaxRows`,`maxRows`],enabled:[2,`cdkTextareaAutosize`,`enabled`,xP],placeholder:`placeholder`},exportAs:[`cdkTextareaAutosize`]})}return i})();var ba=i=>({"is-invalid":i});function Ca(i,a){if(i&1&&(pi(0,`div`,2),uD(1),bc()),i&2){let e=a.$implicit;uy(),xc$1(` `,e,` `)}}var Ot=(()=>{class i{get omschrijvingIsInvalid(){return this.omschrijvingValidationErrorsNotificaties.length>0}constructor(){this._formControl=new cd(``,[Ks$1.required,i.customMinLengthCheck,Ks$1.maxLength(2e3)]),this.omschrijvingValidationErrorsNotificaties=[],this.validationErrorHandler=new Je,xh$1([this._formControl.valueChanges,this._formControl.statusChanges]).pipe(tu()).subscribe(()=>{let e=this._formControl.errors;this.omschrijvingValidationErrorsNotificaties=e?this.validationErrorHandler.handleValidationErrors(e,`omschrijving`):[]})}static customMinLengthCheck(e){let t=(e.value||``).replaceAll(/\s+/g,``);return t.length<1||t.length>=5?null:{minlength:!0}}get formControl(){return this._formControl}onBlur(){this._formControl.updateValueAndValidity()}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-feedback-omschrijving`]],decls:4,vars:5,consts:[[1,`form-group`,`ggc-mf-textarea`],[`cdkTextareaAutosize`,``,`cdkAutosizeMinRows`,`4`,`cdkAutosizeMaxRows`,`10`,`id`,`omschrijving`,`placeholder`,`Beschrijf uw verbetering. Bijvoorbeeld: Gebouw weghalen, want het is gesloopt.`,`data-container`,`body`,`data-html`,`true`,`required`,``,1,`form-control`,`ggc-mf-textarea-box`,3,`blur`,`ngClass`,`formControl`],[`aria-describedby`,`ggc-omschrijving-label`,`role`,`alert`,1,`ggc-mf-textarea-validation-notification`,`invalid-feedback`]],template:function(t,n){t&1&&(pi(0,`div`,0)(1,`textarea`,1),gp$1(`blur`,function(){return n.onBlur()}),bc(),tI(),vE(2,Ca,2,1,`div`,2,mE),bc()),t&2&&(uy(),cp$1(`ngClass`,ED(3,ba,n._formControl.invalid&&n._formControl.touched))(`formControl`,n._formControl),ap$1(`aria-invalid`,n.omschrijvingIsInvalid),rI(),uy(),yE(n.omschrijvingValidationErrorsNotificaties))},dependencies:[jn,Z1,Ya$1,$1,po$2,_d$1,ri$2],encapsulation:2,changeDetection:1})}}return i})();var Rn={mimeTypes:{value:[`image/jpeg`,`image/png`,`image/gif`,`image/bmp`,`application/pdf`,`application/gpkg`,`application/msword`,`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,`application/vnd.oasis.opendocument.text`,`application/vnd.ms-excel`,`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,`application/vnd.oasis.opendocument.spreadsheet`,`application/vnd.ms-powerpoint`,`application/vnd.openxmlformats-officedocument.presentationml.presentation`,`application/vnd.oasis.opendocument.presentation`],message:`Dit bestandstype wordt niet ondersteund. De volgende bestandstypen zijn toegestaan: bmp, doc, docx, gif, gpkg, jpeg, jpg, odt, odp, ods, pdf, png, ppt, pptx, xls en xlsx.`,loggingMessage:`bestandstype_niet_ondersteund`},aantalBijlagen:{value:5,message:`U kunt maximaal 5 bestanden toevoegen bij een melding.`,loggingMessage:`teveel_bijlagen`},minAantalChars:{value:1,message:`De bestandsnaam zonder extensie moet minstens 1 teken hebben.`,loggingMessage:`te_korte_bestandsnaam`},maxAantalChars:{value:100,message:`De complete bestandsnaam mag maximaal 100 tekens lang zijn.`,loggingMessage:`te_lange_bestandsnaam`},maxMBTotalSize:{value:20,message:`De bestanden moeten samen kleiner dan 20 MB zijn.`,loggingMessage:`te_grote_bestanden`},notUnique:{value:0,message:`Er is al een bestand met deze naam.`,loggingMessage:`dubbele_bestandsnamen`}};var Dt=class{constructor(){this.restricties=E({},Rn),this.failedValidations=[]}validate(a,e){return this.validateFile(a,e,1).map(t=>t.userMessage)}validateFile(a,e,t){return this.failedValidations=[],this.checkMaxAantalBijlagen(e,t)?this.failedValidations:(this.checkMimeTypeBijlage(a),this.checkUniqueBijlage(e,a),this.checkMaxSizeMBBijlagen(e,a),this.checkMinCharBijlage(a),this.checkMaxCharBijlage(a),this.failedValidations)}checkMaxAantalBijlagen(a,e){return a.length>=this.restricties.aantalBijlagen.value?(this.failedValidations.push({userMe
60ssage:this.restricties.aantalBijlagen.message,loggingMessage:this.restricties.aantalBijlagen.loggingMessage,value:e.toString()}),!0):!1}checkMimeTypeBijlage(a){if(a.type?.length>0)this.restricties.mimeTypes.value.includes(a.type)||this.failedValidations.push({userMessage:this.restricties.mimeTypes.message,loggingMessage:this.restricties.mimeTypes.loggingMessage,value:a.type});else if(a.name?.length>0){let e=a.name.split(`.`)[a.name.split(`.`).length-1];(e.length===0||!this.restricties.mimeTypes.value.map(t=>t.replace(`image/`,``).replace(`application/`,``)).includes(e))&&this.failedValidations.push({userMessage:this.restricties.mimeTypes.message,loggingMessage:this.restricties.mimeTypes.loggingMessage,value:e})}else this.failedValidations.push({userMessage:this.restricties.mimeTypes.message,loggingMessage:this.restricties.mimeTypes.loggingMessage,value:`empty filename`})}checkUniqueBijlage(a,e){a.findIndex(t=>t.name===e.name)>-1&&this.failedValidations.push({userMessage:this.restricties.notUnique.message,loggingMessage:this.restricties.notUnique.loggingMessage})}checkMaxSizeMBBijlagen(a,e){let t=0;for(let p of a)t+=p.size/1e6;let n=e.size/1e6,o=t+n;o>this.restricties.maxMBTotalSize.value&&this.failedValidations.push({userMessage:this.restricties.maxMBTotalSize.message,loggingMessage:this.restricties.maxMBTotalSize.loggingMessage,value:o.toString()+` MB`})}checkMinCharBijlage(a){let e=this.lengthMinusExtension(a.name);e<this.restricties.minAantalChars.value&&this.failedValidations.push({userMessage:this.restricties.minAantalChars.message,loggingMessage:this.restricties.minAantalChars.loggingMessage,value:e.toString()})}lengthMinusExtension(a){let e=a.lastIndexOf(`.`);return e===-1?0:e}checkMaxCharBijlage(a){a.name.length>this.restricties.maxAantalChars.value&&this.failedValidations.push({userMessage:this.restricties.maxAantalChars.message,loggingMessage:this.restricties.maxAantalChars.loggingMessage,value:a.name.length.toString()})}};var zn=(()=>{class i{constructor(){this.fileDropped=new Le,this.borderOpenStyle=`1px dashed #406a9e`,this.border=this.borderOpenStyle,this.borderClosedStyle=`1px solid black`}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.border=this.borderClosedStyle}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.border=this.borderOpenStyle}onDrop(e){e.preventDefault(),e.stopPropagation(),this.border=this.borderOpenStyle,this.fileDropped.next(e)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵdir=KI({type:i,selectors:[[``,`vdkDragAndDrop`,``]],hostVars:2,hostBindings:function(t,n){t&1&&gp$1(`dragover`,function(p){return n.onDragOver(p)})(`dragleave`,function(p){return n.onDragLeave(p)})(`drop`,function(p){return n.onDrop(p)}),t&2&&Tp$1(`border`,n.border)},outputs:{fileDropped:`fileDropped`}})}}return i})();var Xe=(function(i){return i.UPLOAD_FAILED=`uploadFailed`,i.UPLOAD_SUCCESS=`uploadSuccess`,i})(Xe||{});var ya=[`fileInput`];function xa(i,a){if(i&1){let e=wE();pi(0,`div`,6),uD(1),pi(2,`button`,9),gp$1(`click`,function(){let n=Gl$1(e).$implicit;return ql$2(RE().removeErrorNotification(n))}),pi(3,`span`,10),uD(4,`Ã`),bc()()()}if(i&2){let e=a.$implicit;uy(),xc$1(` `,e,` `)}}function Sa(i,a){if(i&1){let e=wE();pi(0,`li`,8)(1,`span`,11),uD(2),bc(),pi(3,`button`,12),gp$1(`click`,function(){let n=Gl$1(e).$implicit;return ql$2(RE().removeFile(n.name))}),pi(4,`span`,10),uD(5,`Ã`),bc()()()}if(i&2){let e=a.$implicit;uy(2),kp$1(e.name)}}var At=(()=>{class i{constructor(){this.restrictiesErrorEventEmitter=new Le,this.uploadFileEvent=TP(),this._currentFiles=[],this.errorNotifications=[],this.fileValidator=new Dt}onFileAdded(e){let t=`dataTransfer`in e?i.transformDragEvent(e):i.transformChangeEvent(e);this.errorNotifications=[];let n=this._currentFiles.length+t.length;for(let o=0;o<t.length;o++){let p=t.item(o);p!==null&&this.validateFile(p,n)}`dataTransfer`in e||this.clearfileInput()}validateFile(e,t=1){let n=this.fileValidator.validateFile(e,this._currentFiles,t);if(n.length==0)this._currentFiles.push(e),this.uploadFileEvent.emit({type:Xe.UPLOAD_SUCCESS});else{this.errorNotifications.push(...n.map(p=>p.userMessage));let o=n.map(p=>({message:p.loggingMessage,value:p.value}));this.uploadFileEvent.emit({type:Xe.UPLOAD_FAILED,fileUploadMessages:o})}}static transformChangeEvent(e){let t=e.target;return t.files?t.files:new FileList}static transformDragEvent(e){return e.dataTransfer?e.dataTransfer.files:new FileList}removeFile(e){this._currentFiles=this._currentFiles.filter(t=>t.name!==e)}removeErrorNotification(e){this.errorNotifications=this.errorNotifications.filter(t=>t!==e)}clearfileInput(){this.fileInput.nativeElement.value=null}get currentFiles(){return this._currentFiles}clickFileInput(e){e.preventDefault(),this.fileInput.nativeElement.click()}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-file-upload`]],viewQuery:function(t,n){if(t&1&&yp$1(ya,5),t&2){let o;FE(o=jE())&&(n.fileInput=o.first)}},outputs:{restrictiesErrorEventEmitter:`restrictiesErrorEventEmitter`,uploadFileEvent:`uploadFileEvent`},decls:14,vars:0,consts:[[`fileInput`,``],[`vdkDragAndDrop`,``,1,`dropfilecontainer`,3,`fileDropped`],[1,`dragdrop`],[`for`,`files`,`tabindex`,`0`,`href`,`#`,1,`cho
60ose-file`,3,`click`,`keydown.enter`],[`type`,`file`,`hidden`,``,`id`,`files`,`multiple`,``,3,`change`],[1,`addfiles`],[`role`,`alert`,1,`alert`,`alert-danger`],[1,`list-group`],[1,`list-group-item`],[`aria-label`,`Sluiten`,1,`btn`,`btn-light`,`float-right`,`right`,3,`click`],[`aria-hidden`,`true`],[1,`fileName`],[`aria-label`,`Verwijderen bijlage`,1,`btn`,`btn-light`,`right`,3,`click`]],template:function(t,n){t&1&&(pi(0,`div`,1),gp$1(`fileDropped`,function(p){return n.onFileAdded(p)}),pi(1,`p`,2),uD(2,`Sleep uw bestanden in dit vak of`),bc(),pi(3,`a`,3),gp$1(`click`,function(p){return n.clickFileInput(p)})(`keydown.enter`,function(p){return n.clickFileInput(p)}),uD(4,`kies een bestand`),bc(),pi(5,`input`,4,0),gp$1(`change`,function(p){return n.onFileAdded(p)}),bc(),pi(7,`p`,5),uD(8,`Voeg maximaal 5 bestanden toe.`),bc()(),vE(9,xa,5,1,`div`,6,mE),pi(11,`ul`,7),vE(12,Sa,6,1,`li`,8,mE),bc()),t&2&&(uy(9),yE(n.errorNotifications),uy(3),yE(n.currentFiles))},dependencies:[zn],styles:[`.dropfilecontainer[_ngcontent-%COMP%]{text-align:center;position:relative;margin:0 auto;border-radius:4px}.list-group[_ngcontent-%COMP%]{margin-bottom:0}button.btn.btn-light.right[_ngcontent-%COMP%]{float:right;padding:0 10px;margin-left:10px}p.dragdrop[_ngcontent-%COMP%], p.addfiles[_ngcontent-%COMP%]{font-size:1rem;padding:5px;text-align:left;margin:0}@media only screen and (max-width:767px){p.dragdrop[_ngcontent-%COMP%]{display:none}}p.addfiles[_ngcontent-%COMP%]{font-weight:700}div.alert.alert-danger[_ngcontent-%COMP%]{margin:15px 0}label.choose-file[_ngcontent-%COMP%]{margin-top:20px;text-decoration:underline;cursor:pointer}.choose-file[_ngcontent-%COMP%]{font-size:1rem;padding:5px;text-align:left;display:block}.choose-file[_ngcontent-%COMP%]:before{font-family:"Font Awesome 5 Pro",serif;content:"\\f574";font-weight:300;margin-right:8px;font-size:1.5rem}input[type=file].hidden[_ngcontent-%COMP%]{color:transparent}.alert[_ngcontent-%COMP%]:before{line-height:unset}.alert.alert-danger[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px}.alert.alert-danger[_ngcontent-%COMP%]:before{flex-shrink:0;margin-top:2px}.alert.alert-danger[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(button){flex:1}.alert.alert-danger[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:auto;flex-shrink:0}.alert[_ngcontent-%COMP%]{padding-top:20px}.alert[_ngcontent-%COMP%]:before{position:unset}`],changeDetection:1})}}return i})();var wa=[`*`];var ii=(()=>{class i{constructor(){this.events=new Le,this._terugmeldingForm=new $a$1({}),this.disableButton=!1,this._submitDisabled$=new bn$1(!0),this.subscriptions=[],this.mapFeedbackService=I$1(It)}ngOnInit(){this.updateForm(),this.subscriptions.push(this.mapFeedbackService.getObservable().subscribe(e=>{this.events.emit(e),this.updateSendButton(e)}),this._terugmeldingForm.valueChanges.subscribe(()=>{this._submitDisabled$.next(this.disableButton||!this._terugmeldingForm.valid)}))}onSubmit(){if(this.submitDisabled$.getValue())return;let e={omschrijving:this._terugmeldingForm.value.omschrijving,email:this._terugmeldingForm.value.email};this.events.emit(new De(pe.ON_SUBMIT,`Terugmelding verzonden`)),this.mapFeedbackService.sendFeedback(this.mapFeedbackProperties,e,this.mapFeedbackConfig,this.fileUploadComponent?this.fileUploadComponent.currentFiles:[],this._terugmeldingForm.value.remember),this.disableButton=!0,this._submitDisabled$.next(!0)}get submitDisabled$(){return this._submitDisabled$}get terugmeldingForm(){return this._terugmeldingForm}updateForm(){this._terugmeldingForm=new $a$1({email:this.feedbackEmailComponent.formControlEmail,remember:this.feedbackEmailComponent.formControlRemember,omschrijving:this._feedbackOmschrijvingComponent.formControl})}updateSendButton(e){(e.type===pe.MELDING_FAILED||e.type===pe.MELDING_SUCCESSFUL)&&(this.disableButton=!1,this._submitDisabled$.next(this.disableButton||!this._terugmeldingForm.valid))}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-map-feedback-form`]],contentQueries:function(t,n,o){if(t&1&&vp$1(o,At,7)(o,Ft,7)(o,Ot,7),t&2){let p;FE(p=jE())&&(n.fileUploadComponent=p.first),FE(p=jE())&&(n.feedbackEmailComponent=p.first),FE(p=jE())&&(n._feedbackOmschrijvingComponent=p.first)}},inputs:{mapFeedbackConfig:`mapFeedbackConfig`,mapFeedbackProperties:`mapFeedbackProperties`},outputs:{events:`events`},ngContentSelectors:wa,decls:2,vars:1,consts:[[3,`submit`,`formGroup`]],template:function(t,n){t&1&&(kE(),pi(0,`form`,0),gp$1(`submit`,function(){return n.onSubmit()}),LE(1),bc()),t&2&&cp$1(`formGroup`,n._terugmeldingForm)},dependencies:[Z1,J1,Q1,md$1],encapsulation:2,changeDetection:1})}}return i})();var ni=(function(i){return i.Epsg28992=`https://www.opengis.net/def/crs/EPSG/0/28992`,i.Epsg7415=`https://www.opengis.net/def/crs/EPSG/0/7415`,i.Epsg4326=`https://www.opengis.net/def/crs/EPSG/0/4326`,i.Epsg4979=`https://www.opengis.net/def/crs/EPSG/0/4979`,i})(ni||{});var ka=(i,a,e)=>[i,a,e];function Ta(i,a){i&1&&uD(0,` Nieuwe melding `)}function Ea(i,a){i&1&&uD(0,` Nieuwe melding `)}function Ma(i,a){i&1&&uD(0,` Vul uw e-mailadres in `)}function Pa(i,a){i&1&&uD(0,` Bedankt voor uw melding `)}function Ia(i,a){i&1&&(pi(0,`figure`,17)(1,`p`),uD(2,` U hebt geen locatie gek
60ozen. Kies een locatie om een verbetering te melden. `),bc()())}function Fa(i,a){if(i&1&&(pi(0,`h3`,21),uD(1,`Gekozen locatie`),bc(),pi(2,`div`,22)(3,`div`,23),uD(4),bc()()),i&2){let e=RE(3);uy(4),xc$1(` `,e.selectedLabel,` `)}}function Oa(i,a){if(i&1){let e=wE();pi(0,`div`,16),hE(1,Ia,3,0,`figure`,17),bc(),pi(2,`div`,7),uD(3,`Waar wilt u een verbetering melden?`),bc(),pi(4,`div`),uD(5,`U kunt op 3 manieren een verbetering melden:`),bc(),pi(6,`ul`)(7,`li`),uD(8,`Klik op de kaart op de plek waar u wilt melden`),bc(),pi(9,`li`),uD(10,`Zoek op adres via de zoekbalk`),bc(),pi(11,`li`),uD(12,`Gebruik uw eigen locatie`),bc()(),pi(13,`ggc-search-location`,18),gp$1(`events`,function(n){Gl$1(e);return ql$2(RE(2).handleSearchEvent(n))}),bc(),hE(14,Fa,5,1),pi(15,`figure`,19)(16,`p`),uD(17,` Komt u er niet uit? Lees dan meer over `),pi(18,`button`,20),gp$1(`click`,function(){Gl$1(e);return ql$2(RE(2).openQuestion(`Hoe meld ik een verbetering?`,`verbetering_melden`))})(`keydown.enter`,function(){Gl$1(e);return ql$2(RE(2).openQuestion(`Hoe meld ik een verbetering?`,`verbetering_melden`))}),uD(19,` verbeteringen melden`),bc(),uD(20,`. `),bc()()}if(i&2){let e=RE(2);uy(),gE(e.geenLocatieGekozenFoutmelding?1:-1),uy(12),cp$1(`searchLocationOptions`,e.searchLocationOptions)(`classSearchButton`,`fal fa-search`)(`classClearButton`,`fal fa-times`),uy(),gE(e.selectedLabel?14:-1)}}function Da(i,a){if(i&1){let e=wE();pi(0,`h3`,21),uD(1,`Gekozen locatie`),bc(),pi(2,`div`,22)(3,`div`,23)(4,`div`,27)(5,`div`,28),uD(6),bc(),pi(7,`div`,29)(8,`a`,30),gp$1(`click`,function(n){Gl$1(e);return ql$2(RE(3).otherLocation(n))}),uD(9,`Kies een andere locatie`),bc()()()()()}if(i&2){let e=RE(3);uy(6),xc$1(` `,e.selectedLabel,` `)}}function Aa(i,a){i&1&&(pi(0,`div`,26)(1,`figure`,24)(2,`p`,31),uD(3,` Soms missen er delen van het terrein. En soms hebben gebouwen nog weinig details. We werken hard aan een nieuwe versie van de 3D-kaart.`),lp$1(4,`br`),uD(5,`Ziet u iets wat nog niet klopt? Laat het ons dan weten. `),bc()()())}function Va(i,a){if(i&1&&(pi(0,`div`),uD(1),bc(),hE(2,Da,10,1),lp$1(3,`hr`),pi(4,`div`)(5,`h3`,21),uD(6,`Uw melding`),bc(),pi(7,`figure`,24)(8,`p`,25),uD(9,` Iedereen kan uw melding zien. Vul daarom geen persoonlijke gegevens in zoals uw naam, adres, e-mailadres of telefoonnummer. `),bc()()(),hE(10,Aa,6,0,`div`,26)),i&2){let e=RE(2);uy(),kp$1(e.mode===e.modes.TweeD?e.introText:e.introText3D),uy(),gE(e.selectedLabel?2:-1),uy(8),gE(e.mode===e.modes.DrieD?10:-1)}}function Na(i,a){if(i&1&&(pi(0,`li`,45),lp$1(1,`span`,46),pi(2,`span`),uD(3),bc()()),i&2){let e=a.$implicit;uy(3),kp$1(e)}}function La(i,a){if(i&1&&(pi(0,`div`,33),uD(1,`Bijlage`),bc(),pi(2,`div`,43)(3,`ul`,44),vE(4,Na,4,1,`li`,45,mE),bc()()),i&2){let e=RE(3);uy(4),yE(e.bestanden)}}function Ba(i,a){if(i&1&&(pi(0,`div`,33),uD(1,`E-mailadres`),bc(),pi(2,`div`),uD(3),bc()),i&2){let e=RE(3);uy(3),xc$1(` `,e.email,` `)}}function ja(i,a){if(i&1&&(pi(0,`figure`,32)(1,`div`),uD(2),bc()(),pi(3,`div`,33),uD(4,`Meldingsnummer`),bc(),pi(5,`div`),uD(6),bc(),pi(7,`div`,33),uD(8,`Gemeld op`),bc(),pi(9,`div`),uD(10),bc(),pi(11,`div`,34)(12,`button`,35)(13,`span`),uD(14,`Bekijk uw ingevulde gegevens`),bc(),lp$1(15,`span`,36)(16,`span`,37),bc(),pi(17,`div`,38)(18,`div`,33),uD(19,` Wat kunnen we hier op de kaart verbeteren? `),bc(),pi(20,`div`)(21,`p`,39),uD(22,`(Openbaar)`),bc(),uD(23),bc(),hE(24,La,6,0),hE(25,Ba,4,1),bc()(),lp$1(26,`hr`),pi(27,`h3`,40),uD(28,`Wat gebeurt er nu?`),bc(),pi(29,`ol`,41)(30,`li`)(31,`span`),uD(32),bc()(),pi(33,`li`),lp$1(34,`span`,42),bc(),pi(35,`li`)(36,`span`),uD(37),bc()()()),i&2){let e=RE(2);uy(2),xc$1(` `,e.successMessage??`Gelukt! We hebben uw melding ontvangen.`,` `),uy(4),kp$1(e.meldingsnummer),uy(4),kp$1(e.selectedRegistratie),uy(13),kp$1(e.omschrijving??`-`),uy(),gE(e.bestanden?.length?24:-1),uy(),gE(e.email?25:-1),uy(7),kp$1(e.stepText1),uy(2),cp$1(`innerHTML`,e.stepText2Html,yv),uy(3),kp$1(e.stepText3)}}function Ra(i,a){if(i&1){let e=wE();pi(0,`div`),uD(1,` Om uw melding goed te behandelen, hebben wij uw e-mailadres nodig. Wij gebruiken uw e-mailadres alleen om u op de hoogte te houden over uw melding en om u een vraag te stellen als dat nodig is. Het is niet te zien voor anderen. `),bc(),pi(2,`div`)(3,`span`,47),gp$1(`click`,function(){Gl$1(e);return ql$2(RE(2).openQuestion(`Wat gebeurt er met mijn e-mailadres?`,`gebruik_emailadres`))})(`keydown.enter`,function(){Gl$1(e);return ql$2(RE(2).openQuestion(`Wat gebeurt er met mijn e-mailadres?`,`gebruik_emailadres`))}),uD(4,`Wat gebeurt er met mijn e-mailadres?`),bc()()}}function za(i,a){if(i&1){let e=wE();pi(0,`button`,50),gp$1(`click`,function(){Gl$1(e);return ql$2(RE(3).goToPreviousStep())}),pi(1,`span`,51),uD(2),bc()()}if(i&2){let e=RE(3);uy(2),kp$1(e.step===e.steps.CONFIRMATION?`Nieuwe melding`:`Vorige`)}}function Ha(i,a){if(i&1){let e=wE();pi(0,`button`,52),gp$1(`click`,function(){Gl$1(e);return ql$2(RE(3).goToNextStep())}),pi(1,`span`,51),uD(2,`Volgende`),bc()()}}function Ua(i,a){if(i&1&&(hE(0,za,3,1,`button`,48),hE(1,Ha,3,0,`button`,49)),i&2){let e=RE(2);gE(e.step!==e.steps.SELECT_LOCATION?0:-1),uy(),gE(e.step!==e.steps.CONFIRMATION?1:-1)}}function Ga(i,a){if(i&1){let e=wE();pi(0,`button`,50),gp$1(`click`,function(){Gl$1(e);return ql$2(RE(2).goToPreviousStep())}),pi(1,`span`,51),uD(2,`Vorige`),bc()(),pi(3,`button`,53),uD(4,` Verstuur melding `),bc()}}function qa(i,a){if(i&1){let e=wE();pi(0,`vdk-map-feedback-form`,3),gp$1(`events`,function(n){Gl$1(e);return ql$2(RE().handleEvent(n))}
60),pi(1,`div`,4),hE(2,Oa,21,5)(3,Va,11,3)(4,ja,38,9),pi(5,`div`,5)(6,`label`,6)(7,`div`,7),uD(8,` Wat kunnen we hier op de kaart verbeteren? `),bc(),pi(9,`div`,8),uD(10,`Leg ook uit waarom.`),bc()(),pi(11,`vdk-feedback-omschrijving`,9),gp$1(`keyup`,function(n){Gl$1(e);return ql$2(RE().omschrijvingChanged(n))}),bc(),pi(12,`label`,10)(13,`span`,7),uD(14,`Voeg een bijlage toe`),bc(),pi(15,`span`,11),uD(16,`(Niet verplicht)`),bc()(),pi(17,`vdk-file-upload`,12),gp$1(`uploadFileEvent`,function(n){Gl$1(e);return ql$2(RE().logUploadFileEvent(n))}),bc()(),hE(18,Ra,5,0),pi(19,`vdk-feedback-email`,13),gp$1(`keyup`,function(){Gl$1(e);return ql$2(RE().updateEmailVeld())}),bc()(),pi(20,`div`,14)(21,`div`,15),hE(22,Ua,2,2)(23,Ga,5,0),bc()()()}if(i&2){let e=RE();cp$1(`mapFeedbackProperties`,e.feedbackProperties)(`mapFeedbackConfig`,e.mode===e.modes.TweeD?e.feedbackConfigMap2D:e.feedbackConfigMap3D),uy(2),gE(e.step===e.steps.SELECT_LOCATION?2:e.step===e.steps.FEEDBACK?3:e.step===e.steps.CONFIRMATION?4:-1),uy(3),cp$1(`hidden`,e.step!==e.steps.FEEDBACK),uy(13),gE(e.step===e.steps.EMAIL?18:-1),uy(),cp$1(`hidden`,e.step!==e.steps.EMAIL),uy(3),gE(CD(7,ka,e.steps.SELECT_LOCATION,e.steps.FEEDBACK,e.steps.CONFIRMATION).includes(e.step)?22:e.step===e.steps.EMAIL?23:-1)}}var Vt=(()=>{class i{constructor(){this.stateService=I$1(Do$2),this.ggcMapService=I$1(rL),this.alertingService=I$1(Po$2),this.modeService=I$1(ns),this.eventTrackerService=I$1(Kr),this.meldenService=I$1(Ye),this.mapModusService=I$1(tl),this.layerService=I$1(GL),this.sharedLayerService=I$1(us),this.locationParamsService=I$1(Io$2),this.closeTmsPanel=new Le,this.openCancelDialog=new Le,this.openPreviousDialog=new Le,this.viewLoaded=!1,this.feedbackConfigMap2D={terugmeldingAPI:`${Mt$2.terugmeldingApiUrlV2}/terugmeldingen`,apiKey:Mt$2.terugmeldingApiKeyV2},this.feedbackConfigMap3D={terugmeldingAPI:`${Mt$2.terugmeldingApiUrlV2}/terugmeldingen`,apiKey:Mt$2.terugmeldingApiKeyV2,crs:ni.Epsg4979},this.introText=``,this.introText3D=``,this.layerId=``,this.piwikSearchState=void 0,this.destroyRef=I$1(Ie$1),this.lastState=void 0,this.modes=ut$1,this.steps=W,this.step=W.SELECT_LOCATION,this.initialResult=new Le,this.omschrijvingValid=!1,this.geenLocatieGekozenFoutmelding=!1,this.stepText1=``,this.stepText2Html=``,this.stepText3=``,this.searchElementIds=new or$2({searchLabelId:`ggcSearchInputId`,searchInputId:`ggcSearchInputId`,searchButtonId:`ggcSearchButtonId`,suggestionListId:`ggcSuggestionListId`}),this.searchLocationOptions={labelText:`Zoek op adres of gebruik uw eigen locatie`,placeholderTextAndAriaLabel:`Zoek op adres of gebruik uw eigen locatie`,triggerSearch:!1,searchCurrentLocation:{type:ss.SELECT,icon:`fal fa-crosshairs`},elementIds:this.searchElementIds,mapIndex:Mt$2.mapName,zoomToResult:!0,viewerType:tC.TWEE_D},this.verbeterdeKaartUrl=`https://www.verbeterdekaart.nl`,this.verbeterdeKaartLink=`<a href="${this.verbeterdeKaartUrl}" target="_blank" rel="noopener noreferrer">verbeterdekaart.nl</a>`,this.replaceMeldingsnummerLink=(e,t)=>e.replaceAll(`{meldingnummer}`,t).replaceAll(`verbeterdekaart.nl`,this.verbeterdeKaartLink),this.modeService.activeMode.subscribe(e=>{this.mode=e,this.searchLocationOptions=F$2(E({},this.searchLocationOptions),{viewerType:e==ut$1.TweeD?tC.TWEE_D:tC.DRIE_D})}),this.mode=this.modeService.activeMode.getValue(),this.format=new jd$2}ngOnInit(){this.feedbackProperties=this.createMapFeedbackProperties({}),this.stateService.vdkStateObservable.pipe(tu(this.destroyRef)).subscribe(e=>{let t=e.data;this.point=t?.point,this.selectedLabel=t?.label,[`report_2d`,`report_3d`].includes(e.state)&&e.data&&(this.feedbackProperties=this.createMapFeedbackProperties(e.data),this.updateRegistratieAndProduct(this.layerId)),[`report_2d_draw`,`report_3d_draw`].includes(e.state)?(this.step=W.SELECT_LOCATION,this.point=void 0,this.selectedLabel=void 0,this.geenLocatieGekozenFoutmelding=!1,this.successMessage=void 0,this.omschrijving=void 0,this.email=void 0):e.state===`report_3d`&&(this.step=W.FEEDBACK,this.logZoekAdresMelding(),this.eventTrackerService.pushCustomEvent(`funnel`,`funnel`,`step_2`,`melding`)),e.state===`report_2d_draw_point`&&this.lastState===`report_2d`&&(this.feedbackProperties.bron=void 0,setTimeout(()=>{this.feedbackProperties=this.createMapFeedbackProperties(e.data),this.updateRegistratieAndProduct(this.layerId)},1)),this.trackPiwikEvent(),this.lastState=e.state}),this.meldenService.getActiveLayerIdObservable().subscribe(e=>{this.feedbackProperties&&e&&(this.layerId=e,this.updateRegistratieAndProduct(e))})}ngAfterViewInit(){setTimeout(()=>{this.viewLoaded=!0;let e=this.mapModusService.selectedSearchResult.getValue();if(e!==null){let t=e;t.type===`searchLocationResult`?(this.initialResult.next(t.value),this.handleSearchEvent({type:Ut$1.SEARCH_LO
60CATION_RESULT,value:t.value})):(this.initialResult.next(t.value),this.handleSearchEvent({type:Ut$1.SEARCH_RESULT,value:t})),this.mapModusService.selectedSearchResult.next(null)}},500)}handleEvent(e){let t=localStorage.getItem(`tms-email`)?`mailadres_opgeslagen`:`mailadres_niet_opgeslagen`;e.type===pe.MELDING_SUCCESSFUL&&(this.eventTrackerService.pushFormSubmitEvent(`form_submit`,this.email?`true`:`false`,t),this.step=W.CONFIRMATION,this.successMessage=Array.isArray(e.message)?e.message.join(`- `):e.message,this.stateService.updatePrimaryState(`report_2d_done`,{label:this.selectedLabel,point:this.point}),e.meldingProperties&&(this.selectedRegistratie=e.meldingProperties.registratieNaam,this.meldingsnummer=e.meldingProperties.meldingsnummer,this.bestanden=e.meldingProperties.bestanden,this.setStepTexts(e.meldingProperties.registratie,this.email)),this.mode==ut$1.DrieD?this.sharedLayerService.reloadLayer(`3db-terugmeldingen`):this.meldenService.reload2DTerugmeldingen(),this.piwikSearchState=void 0),e.type===pe.MELDING_FAILED&&(this.alertingService.addAlert(new ne$2(e.message,ae$1.FAILURE)),this.eventTrackerService.pushFormSubmitEvent(`form_submit_failure`,this.email?`true`:`false`,t),this.piwikSearchState=void 0),this.scrollMainContainerToTop()}createMapFeedbackProperties(e){let t=e.point;return E({bron:`Verbeter de kaart`,registratie:null,point:t},e)}updateRegistratieAndProduct(e){if(this.mode==ut$1.DrieD)this.feedbackProperties.registratie=`3DB`,this.feedbackProperties.product=null,this.introText3D=`U maakt een nieuwe melding voor 3D ${this.feedbackProperties.objectType??`Terrein`}.`;else if(e.includes(`bgt`))this.introText=`U maakt een nieuwe melding voor Basisregistratie Grootschalige Topografie (BGT).`,this.feedbackProperties.registratie=`BGT`,this.feedbackProperties.product=null;else{let t=this.layerService.getTitle(e,Mt$2.mapName)??``;this.introText=`U maakt een nieuwe melding op ${t} voor Basisregistratie Topografie (BRT).`,this.feedbackProperties.registratie=`BRT`,this.feedbackProperties.product=t}}openQuestion(e,t){e&&(this.eventTrackerService.pushCustomEvent(`interaction`,`content`,`click_intern`,t),this.stateService.openFaqItem(e))}nextDisabled(){switch(this.step){case W.SELECT_LOCATION:return this.geenLocatieGekozenFoutmelding=!this.selectedLabel,!this.selectedLabel;case W.FEEDBACK:return this.omschrijvingValid||(this.mapFeedbackComponent.terugmeldingForm.markAllAsTouched(),this.mapFeedbackComponent.terugmeldingForm.get(`omschrijving`)?.updateValueAndValidity({emitEvent:!0})),!this.omschrijvingValid}return!1}goToPreviousStep(){switch(this.step){case W.FEEDBACK:this.openPreviousDialog.emit(),this.closeTmsPanel.pipe(Wr$1(1)).subscribe(()=>{this.eventTrackerService.pushCustomEvent(`funnel`,`funnel`,`step_1`,`melding`),this.step=W.SELECT_LOCATION,this.mode===ut$1.TweeD?this.stateService.updatePrimaryState(`report_2d_draw`):this.mode===ut$1.DrieD&&this.stateService.updatePrimaryState(`report_3d_draw`),document.getElementById(`closePrimaryPanel`)?.focus()});break;case W.EMAIL:this.step=W.FEEDBACK,document.getElementById(`closePrimaryPanel`)?.focus(),this.logZoekAdresMelding(),this.eventTrackerService.pushCustomEvent(`funnel`,`funnel`,`step_2`,`melding`);break;case W.CONFIRMATION:if(this.point&&this.point.length>=2){let t=new Re$1([this.point[0],this.point[1]]).getExtent();this.ggcMapService.getMap(Mt$2.mapName).getView().fit(t,{maxZoom:12})}this.meldenService.clickMeldenButton();break}document.querySelector(`.card h2`)?.scrollIntoView({behavior:`smooth`,block:`start`})}goToNextStep(){if(!this.nextDisabled()){switch(this.step){case W.SELECT_LOCATION:this.selectedLabel&&(this.step=W.FEEDBACK,this.stateService.updatePrimaryState(this.mode===ut$1.DrieD?`report_3d`:`report_2d`,{point:this.point,label:this.selectedLabel})),this.logZoekAdresMelding(),this.eventTrackerService.pushCustomEvent(`funnel`,`funnel`,`step_2`,`melding`);break;case W.FEEDBACK:this.step=W.EMAIL,this.updateOmschrijvingVeld(),this.updateEmailVeld(),document.getElementById(`closePrimaryPanel`)?.focus(),this.eventTrackerService.pushCustomEvent(`funnel`,`funnel`,`step_3`,`melding`);break;case W.CONFIRMATION:this.step=W.SELECT_LOCATION;break}this.scrollMainContainerToTop()}}handleSearchEvent(e){return L$1(this,null,function*(){if(e.type===Ut$1.RESULT_INVALIDATED)this.stateService.updatePrimaryState(this.mode===ut$1.DrieD?`report_3d_draw`:`report_2d_draw`);
60else if(e.type===Ut$1.SEARCH_RESULT||e.type===Ut$1.SEARCH_LOCATION_RESULT){if(e.type===Ut$1.SEARCH_RESULT&&e.value?.properties?.collection_id===`coordinate`&&e.value||e.type===Ut$1.SEARCH_LOCATION_RESULT){let t=e.type===Ut$1.SEARCH_LOCATION_RESULT?e.value:e.value?.id?e.value.id.split(`,`).map(o=>Number(o)):void 0;if(!t)return;let n=new Re$1(t);if(this.ggcMapService.clearHighlightLayer(Mt$2.mapName),this.mode===ut$1.TweeD){let o=n.getExtent();this.ggcMapService.getMap(Mt$2.mapName).getView().fit(o,{maxZoom:12}),this.stateService.updatePrimaryState(`report_2d_draw_point`,{point:t,label:e.type===Ut$1.SEARCH_LOCATION_RESULT?`Uw locatie`:e.value.properties.display_name})}else if(this.mode===ut$1.DrieD){let o=this.modeService.transform2dCoordinateTo3dLonLat(t),p=yield this.modeService.getZCoordinate(o[1],o[0]);this.locationParamsService.setCameraOptions.next({lookAtPosition:{lat:o[1],lon:o[0]}}),this.mapModusService.activeSelectionSubject.next({location:[o[1],o[0],p],layerName:e.type===Ut$1.SEARCH_LOCATION_RESULT?`Uw locatie`:e.value.properties.display_name})}}else if(e.value){if(this.mode===ut$1.TweeD)this.stateService.updatePrimaryState(`report_2d_draw_point`,{point:e.value.geometry.coordinates,label:e.value.properties.display_name});else if(this.mode===ut$1.DrieD){if(e.value.bbox)return;let t=e.value?.geometry?.coordinates;if(t){let n=this.modeService.transform2dCoordinateTo3dLonLat(t),o=yield this.modeService.getZCoordinate(n[1],n[0]);this.mapModusService.activeSelectionSubject.next({location:[n[1],n[0],o],layerName:e.value.properties.display_name})}}}}})}otherLocation(e){e.preventDefault(),this.eventTrackerService.pushCustomEvent(`interaction`,`content`,`click_intern`,`kies_andere_locatie`),this.goToPreviousStep()}omschrijvingChanged(e){let t=e.target;this.omschrijvingValid=t.classList.contains(`ng-valid`)}updateOmschrijvingVeld(){let e=document.getElementById(`omschrijving`);e&&(this.omschrijving=e.value??void 0)}updateEmailVeld(){let e=document.getElementById(`email`);if(e){let t=new cd(e.value,[Ks$1.email]);this.email=t.valid?e.value:void 0}}scrollMainContainerToTop(){let e=()=>{let t=document.querySelector(`main.container-panel-application`);t&&t.scrollTo({top:0,behavior:`auto`})};requestAnimationFrame(()=>{e(),requestAnimationFrame(e)})}trackPiwikEvent(){this.selectedLabel===`Uw locatie`?this.piwikSearchState=`MY_LOCATION`:this.selectedLabel===`Plek op de kaart`||this.selectedLabel===`Terrein op de kaart`?this.piwikSearchState=`CLICK_LOCATION`:this.selectedLabel&&(this.piwikSearchState=`SEARCH_LOCATION`)}logUploadFileEvent(e){e.type===Xe.UPLOAD_SUCCESS?this.eventTrackerService.pushCustomEvent(`interaction`,`behavior`,`button_click`,`kies_een_bestand`):(e.fileUploadMessages??[]).forEach(t=>{this.eventTrackerService.pushFileUploadError(t.message,t.value)})}logZoekAdresMelding(){let e=``;switch(this.piwikSearchState){case`MY_LOCATION`:e=`gebruik_mijn_locatie`;break;case`CLICK_LOCATION`:e=`klik_op_kaart`;break;case`SEARCH_LOCATION`:e=`zoek_adres`;break}this.eventTrackerService.pushCustomEvent(`interaction`,`content`,`search_location`,e,`zoek_adres_melding`)}setStepTexts(e,t){let n=t!==void 0&&t.trim()!==``,o=this.meldingsnummer??`[nummer]`;e===`3DB`?this.set3dbTeksten(n,o):e===`BGT`?this.setBgtTeksten(n,o):this.setBrtTeksten(n,o)}setBrtTeksten(e,t){this.stepText1=`We nemen uw melding binnen 5 werkdagen in behandeling.`;let n=e?`De bronhouder onderzoekt nu uw melding. U ontvangt hierover updates via e-mail. Of zoek op verbeterdekaart.nl op meldingsnummer {meldingnummer} om de status van uw melding te volgen.`:`De bronhouder onderzoekt uw melding. Zoek op meldingsnummer {meldingnummer} om de status van uw melding te volgen via verbeterdekaart.nl.`;this.stepText2Html=this.replaceMeldingsnummerLink(n,t),this.stepText3=e?`U ontvangt binnen 2 jaar de uitslag van het onderzoek via e-mail. Als de bronhouder uw melding goedkeurt, dan wordt de kaart aangepast.`:`Als de bronhouder uw melding goedkeurt, dan wordt de kaart aangepast.`}setBgtTeksten(e,t){this.stepText1=`We nemen uw melding binnen 5 werkdagen in behandeling.`;let n=e?`De bronhouder onderzoekt nu uw melding. U ontvangt hierover updates via e-mail. Of zoek op verbeterdekaart.nl op meldingsnummer {meldingnummer} om de status van uw melding te volgen.`:`De bronhouder onderzoekt uw melding. Zoek op meldingsnummer {meldingnummer} om de status van uw melding te volgen via verbeterdekaart.nl.`;this.stepText2Html=this.replaceMeldingsnummerLink(n,t),this.stepText3=e?`U ontvangt binnen 18 maanden de uitslag van het onderzoek via e-mail. Als de bronhouder uw melding goedkeurt, dan wordt de kaart aangepast.`:`Als de bronhouder uw melding goedkeurt, dan wordt de kaart aangepast.`}set3dbTeksten(e,t){this.stepText1=`We nemen uw melding in behandeling.`;let n=e?`De bronhouder onderzoekt nu uw melding. U ontvangt hierover updates via e-mail. Of zoek op verbeterdekaart.nl op meldingsnummer {meldingnummer} om de status van uw melding te volgen.`:`De bronhouder onderzoekt uw melding. Zoek op meldingsnummer {meldingnummer} om de status van uw melding te volgen via verbeterdekaart.nl.`;this.stepText2Html=this.replaceMeldingsnummerLink(n,t),this.stepText3=e?`U ontvangt de uitslag van het onderzoek via e-mail. Als de bronhouder uw melding goedkeurt, dan wordt de kaart aangepast.`:`Als de bronhouder uw melding goedkeurt, dan wordt de kaart aangepast.`}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-map-feedback`]],viewQuery:function(t,n){if(t&1&&yp$1(ii,5),t&2){let o;FE(o=jE())&&(n.mapFeedbackComponent=o.first)}},inputs:{closeTmsPanel:`closeTmsPanel`},outputs:{openCancelDialog:`openCancelDialog`,openPreviousDialog:`openPreviousDialog`},decls:7,vars:2,consts:[[1,`card-header`,`justify-content-between`,`d-flex`],[`id`,`primary-panel-label`,1,`h2`,`m-0`],[3,`mapFeedbackProperties`,`mapFeedbackConfig`],[3,`events`,`mapFeedbackProperties`,`mapFeedbackConfig`],[`aria-labelledby`,`primary-panel-label`,1,`card-body`],[1,`form-group`,`mt-2`,3,`hidden`],[`for`,`omschrijving`],[1,`font-weight-bold`],[1,`text-muted`,`small`],[3,`keyup`],[`for`,`files`],[1,`text-muted`,`ml-1`],[3,`uploadFileEvent`],[3,`keyup`,`hidden`],[1,`card-footer`],[1,`d-md-flex`,`mt-1`,`mb-1`,`mobile-flex`],[`aria-live`,`polite`],[1,`alert`,`alert-danger`,`uitroepteken`],[1,`w-100`,3,`events`,`searchLocationOptions`,`classSearchButton`,`classClearButton`],[1,`alert`,`alert-info`],[`type`,`button`,`data-faq`,``,1,`btn`,`btn-link`,`p-0`,`align-baseline`,3,`click`,`keydown.enter`],[1,`h4`],[1,`card`],[1,`card-body`],[`title`,`Zie Veelgestelde vragen voor meer informatie`,1,`alert`,`alert-warning`],[`id`,`viewer-privacy-waarschuwing`],[1,`mt-3`],[1,`row`],[1,`col-6`],[1,`col-6`,`text-right`],[`href`,`#`,3,`click`],[`id`,`3D-viewer-waarschuwing`],[1,`alert`,`alert-success`],[1,`font-weight-bold`,`mt-3`],[`id`,`accordion`,1,`mt-3`],[`type`,`button`,`data-toggle`,`collapse`,`data-target`,`#feature-info-detail
60s`,`aria-expanded`,`false`,`aria-controls`,`feature-info-details`,1,`btn`,`btn-link`,`p-0`,`d-inline-flex`,`align-items-center`,`text-left`,`card-accordion-button`,`collapsed`,`expand-details`],[`aria-hidden`,`true`,`aria-label`,`Sluit groep`,1,`fal`,`fa-chevron-up`,`accordion-icon`,`accordion-icon-opened`],[`aria-hidden`,`true`,`aria-label`,`Open groep`,1,`fal`,`fa-chevron-down`,`accordion-icon`,`accordion-icon-closed`],[`id`,`feature-info-details`,1,`collapse`,`mt-2`],[1,`text-muted`,`mb-0`],[1,`h4`,`mb-3`],[1,`ol-highlighted`],[3,`innerHTML`],[1,`mt-2`,`p-3`,`bijlage-border`],[1,`mb-0`,`list-unstyled`],[1,`d-flex`,`align-items-start`],[`aria-hidden`,`true`,1,`fal`,`fa-file-alt`,`mr-1`,`d-inline-flex`,`align-items-center`,`justify-content-center`,`bijlage-icoon`],[`data-faq`,``,3,`click`,`keydown.enter`],[`type`,`button`,1,`btn`,`btn-secondary`,`header-basic-btn-primary`,`text-nowrap`,`mobile-full-width`],[`type`,`button`,`data-cy`,`volgende`,1,`btn`,`btn-primary`,`header-basic-btn-primary`,`text-nowrap`,`mobile-full-width`],[`type`,`button`,1,`btn`,`btn-secondary`,`header-basic-btn-primary`,`text-nowrap`,`mobile-full-width`,3,`click`],[1,`btn-text`],[`type`,`button`,`data-cy`,`volgende`,1,`btn`,`btn-primary`,`header-basic-btn-primary`,`text-nowrap`,`mobile-full-width`,3,`click`],[`type`,`submit`,`id`,`verzenden`,1,`btn`,`btn-primary`,`ggc-mf-send-btn`,`mobile-full-width`]],template:function(t,n){if(t&1&&(pi(0,`div`,0)(1,`h2`,1),hE(2,Ta,1,0)(3,Ea,1,0)(4,Ma,1,0)(5,Pa,1,0),bc()(),hE(6,qa,24,11,`vdk-map-feedback-form`,2)),t&2){let o;uy(2),gE((o=n.step)===n.steps.SELECT_LOCATION?2:o===n.steps.FEEDBACK?3:o===n.steps.EMAIL?4:o===n.steps.CONFIRMATION?5:-1),uy(4),gE(n.feedbackProperties.bron!==void 0?6:-1)}},dependencies:[ii,Ot,At,Ft,cy],styles:[`[_nghost-%COMP%]{display:flex;flex:1 1 0;flex-direction:column;height:100%}.invalid-feedback-aero[_ngcontent-%COMP%]{display:block}.alert-info[_ngcontent-%COMP%]{margin-top:24px}vdk-map-feedback-form[_ngcontent-%COMP%] {max-height:100%;overflow-y:auto;display:flex;flex:1 1 0;flex-direction:column;height:100%}@media(min-width:768px){vdk-map-feedback-form[_ngcontent-%COMP%] form{display:flex;flex:1 1 0;flex-direction:column;height:100%}}@media(max-width:767.98px){vdk-map-feedback-form[_ngcontent-%COMP%] {overflow:visible;flex:none;height:auto;max-height:none}vdk-map-feedback-form[_ngcontent-%COMP%] .card-body{height:unset;overflow:visible}vdk-map-feedback-form[_ngcontent-%COMP%] .card-footer{min-height:75px}}.fas.small[_ngcontent-%COMP%]{font-weight:300}.btn.btn-link[_ngcontent-%COMP%]{text-decoration:underline}@media(max-width:767.98px){.btn.btn-link[_ngcontent-%COMP%]{font-size:.875rem}} ggc-search label{font-weight:700} .card .card-header, .card .card-footer{background-color:#fff;border:none} .card .card-footer button{margin-right:5px;overflow:hidden} label.ggc-mf-email-input-label{font-weight:600;padding-top:24px} label.ggc-mf-email-input-label .ggc-email-label-extra{font-weight:400;font-size:.8rem}a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus, a[_ngcontent-%COMP%]:active, vdk-file-upload[_ngcontent-%COMP%] a:hover, vdk-file-upload[_ngcontent-%COMP%] a:focus, vdk-file-upload[_ngcontent-%COMP%] a:active, vdk-map-feedback-form[_ngcontent-%COMP%] a:hover, vdk-map-feedback-form[_ngcontent-%COMP%] a:focus, vdk-map-feedback-form[_ngcontent-%COMP%] a:active{border:2px solid #000000}.alert[_ngcontent-%COMP%]{padding-top:20px;padding-left:20px}.alert[_ngcontent-%COMP%]:before{position:unset}figure.alert-warning[_ngcontent-%COMP%], figure.alert-info[_ngcontent-%COMP%], .alert-danger[_ngcontent-%COMP%], figure.alert-success[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px}figure.alert-warning[_ngcontent-%COMP%]:before, figure.alert-info[_ngcontent-%COMP%]:before, .alert-danger[_ngcontent-%COMP%]:before, figure.alert-success[_ngcontent-%COMP%]:before{display:inline-block;flex-shrink:0;margin-top:2px}.uitroepteken[_ngcontent-%COMP%]:before{content:"\\f06a";font-weight:300}@media(max-width:767.98px){.mobile-full-width[_ngcontent-%COMP%]{width:100%;justify-content:center;margin-bottom:8px}.mobile-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse}}.bijlage-border[_ngcontent-%COMP%]{border:1px solid #BFCDDF;border-radius:4px}.bijlage-icoon[_ngcontent-%COMP%]{color:#406a9e;width:24px;height:24px}.expand-details[_ngcontent-%COMP%]{width:unset!important}`],changeDetection:1})}}return i})();var $a=[`closeButton`];function Ka(i,a){if(i&1&&lp$1(0,`vdk-feature-info`,6),i&2){let e=RE();cp$1(`event`,e.selectionEvent)(`viewerType`,e.viewerType)(`selectIndex`,e.featureInfoSelectIndex)}}function Wa(i,a){if(i&1){let e=wE();pi(0,`vdk-map-feedback`,8),gp$1(`openCancelDialog`,function(){Gl$1(e);return ql$2(RE().openCancelDialog.emit())})(`openPreviousDialog`,function(){Gl$1(e);return ql$2(RE().openPreviousDialog.emit())}),bc()}if(i&2)cp$1(`closeTmsPanel`,RE().closeTmsPanel)}var Nt=(()=>{class i{get hidePanel(){return this._hidePanel}set hidePanel(e){e?this.hostClasses.delete(`panel-open`):this.hostClasses.add(`panel-open`),this.updateClassNameFromHostClasses(),this._hidePanel=e}handleKeydown(e){e instanceof KeyboardEvent&&e.key===`Escape`&&this.closePanel()}ngOnInit(){this.mobileBreakpoint.addEventListener(`change`,this.onMobileBreakpointChange)}ngOnDestroy(){this.mobileBreakpoint.removeEventListener(`change`,this.onMobileBreakpointChange),this.resizeNotifyTimer!==null&&(clearTimeout(this.resizeNotifyTimer),this.resizeNotifyTimer=null)}constructor(){this.stateService=I$1(Do$2),this.ggcSelectionService=I$1(AY),this.modeService=I$1(ns),this.injector=I$1(Me$2),this.eventTrackerService=I$1(Kr),this.mobileBreakpoint=globalThis.matchMedia(Ao$2.mobileQuery),this.lastState=null,this.resizeNotifyTimer=null,this.onMobileBreakpointChange=e=>{e.matches?this.updatePrimaryPanelSizeForMobile():this.updatePrimaryPanelSizeForDesktop()},this.closeTmsPanel=new Le,this.openCancelDialog=new Le,this.openPreviousDialog=new Le,this._hidePanel=!0,this.mode=ut$1.TweeD,this.viewerType=tC.TWEE_D,this.featureInfoSelectIndex=void 0,this.show
60Feedback=!1,this.state=`info`,this.vdkFeedbackMapStatussen=[`report_2d`,`report_2d_draw`,`report_2d_draw_point`,`report_2d_done`,`report_3d`,`report_3d_draw`,`report_3d_done`],this.className=`panel panel-left`,this.hostClasses=new Set([`panel`,`panel-left`]),this.bindModeSubscription(),this.bindPrimaryPanelSizeSubscription(),this.bindVdkStateSubscription()}bindModeSubscription(){this.modeService.activeMode.subscribe(e=>{this.mode=e,this.viewerType=e===ut$1.TweeD?tC.TWEE_D:tC.DRIE_D,this.featureInfoSelectIndex=e===ut$1.TweeD?void 0:`select-click`})}bindPrimaryPanelSizeSubscription(){this.stateService.primaryPanelSize.subscribe(e=>{this.hostClasses.delete(`panel-maximized`),this.hostClasses.delete(`panel-minimized`),e===`maximized`?this.hostClasses.add(`panel-maximized`):e===`minimized`&&this.hostClasses.add(`panel-minimized`),this.updateClassNameFromHostClasses()})}bindVdkStateSubscription(){this.stateService.vdkStateObservable.subscribe(e=>{this.resizeInterval(),this.hostClasses.delete(`panel-open`),this.hidePanel!==e.hidePrimaryPanel&&this.resizeInterval(),this.hidePanel=e.hidePrimaryPanel,e.hidePrimaryPanel||(this.hostClasses.add(`panel-open`),this.lastState!==e.state&&e.state!==`report_2d_draw_point`&&(Vv(()=>{setTimeout(()=>{this.closeButton?.nativeElement?.focus({preventScroll:!0})},200)},{injector:this.injector}),this.lastState=e.state)),this.updateClassNameFromHostClasses(),e.state===`info`&&(this.selectionEvent=e.data),this.state=e.state,this.showFeedback=this.vdkFeedbackMapStatussen.includes(this.state)})}closePanel(){this.state!==`info`&&this.eventTrackerService.pushCustomEvent(`interaction`,`behavior`,`button_click`,`cancel_melden`),[`report_2d`,`report_3d`].includes(this.state)?(this.openCancelDialog.emit(),this.closeTmsPanel.pipe(Wr$1(1)).subscribe(()=>{this.doClosePanel()})):this.doClosePanel()}updatePrimaryPanelSizeForMobile(){this.hidePanel||this.stateService.primaryPanelSize.next(`maximized`)}updatePrimaryPanelSizeForDesktop(){this.stateService.primaryPanelSize.next(`normal`)}doClosePanel(){return L$1(this,null,function*(){switch(this.stateService.updatePrimaryState(`info`),this.injector.get(Io$2).removeMeldingsnummerFromParams(),this.mode){case ut$1.TweeD:this.ggcSelectionService.clearSelection(Mt$2.mapName);break;case ut$1.DrieD:{let{GgcSelectionService:e}=yield import(`./chunk-BX9axHgV.js`);this.injector.get(e).clearAllSelections();break}}this.resizeInterval(),this.hostClasses.delete(`panel-minimized`),this.hostClasses.delete(`panel-maximized`),this.updateClassNameFromHostClasses(),this.selectionEvent=void 0})}resizeInterval(){this.notifyMapResize()}notifyMapResize(){globalThis.dispatchEvent(new Event(`resize`)),this.resizeNotifyTimer!==null&&clearTimeout(this.resizeNotifyTimer),this.resizeNotifyTimer=globalThis.setTimeout(()=>{globalThis.dispatchEvent(new Event(`resize`)),this.resizeNotifyTimer=null},180)}updateClassNameFromHostClasses(){this.className=Array.from(this.hostClasses.values()).join(` `),this.resizeInterval()}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-primary-panel`]],viewQuery:function(t,n){if(t&1&&yp$1($a,7),t&2){let o;FE(o=jE())&&(n.closeButton=o.first)}},hostVars:1,hostBindings:function(t,n){t&1&&gp$1(`keydown.escape`,function(p){return n.handleKeydown(p)}),t&2&&pp$1(`className`,n.className)},inputs:{closeTmsPanel:`closeTmsPanel`},outputs:{openCancelDialog:`openCancelDialog`,openPreviousDialog:`openPreviousDialog`},decls:8,vars:3,consts:[[`closeButton`,``],[1,`panel-container`],[1,`card`,`card-fixed-body`,`h-100`],[1,`d-flex`,`flex-column`,`h-100`],[`type`,`button`,`aria-controls`,`primary-panel`,`aria-label`,`sluiten`,`id`,`closePrimaryPanel`,1,`close`,`close-absolute`,3,`click`],[`aria-hidden`,`true`,1,`fal`,`fa-times`,`close-icon`],[3,`event`,`viewerType`,`selectIndex`],[3,`closeTmsPanel`],[3,`openCancelDialog`,`openPreviousDialog`,`closeTmsPanel`]],template:function(t,n){t&1&&(pi(0,`div`,1)(1,`article`,2)(2,`div`,3)(3,`button`,4,0),gp$1(`click`,function(){return n.closePanel()}),lp$1(5,`span`,5),bc(),hE(6,Ka,1,3,`vdk-feature-info`,6),hE(7,Wa,1,1,`vdk-map-feedback`,7),bc()()()),t&2&&(uy(3),ap$1(`aria-expanded`,!n.hidePanel),uy(3),gE(n.state===`info`&&!n.hidePanel?6:-1),uy(),gE(n.show
60Feedback?7:-1))},dependencies:[Nn,Vt],styles:[`.close-absolute[_ngcontent-%COMP%]{position:absolute;z-index:var(--%NS%z-primary-panel-close);right:.5rem;top:.5rem;padding:2px 4px 0;margin:2px}@media(min-width:768px){.close-absolute[_ngcontent-%COMP%]{top:.75rem}}.close-absolute[_ngcontent-%COMP%]:focus, .close-absolute[_ngcontent-%COMP%]:active, .close-absolute[_ngcontent-%COMP%]:hover{border:solid 2px black;margin:0}@media(max-width:767.98px){.panel-container[_ngcontent-%COMP%]{padding:0;font-size:.875rem;height:auto;overflow:visible}.panel-container[_ngcontent-%COMP%] > .card[_ngcontent-%COMP%]{height:auto!important;background-color:#fff;overflow:visible}article[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:auto!important;overflow:visible}vdk-map-feedback[_ngcontent-%COMP%]{display:block;height:auto}vdk-map-feedback[_ngcontent-%COMP%] vdk-map-feedback-form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;height:auto;max-height:none;overflow:visible}vdk-map-feedback[_ngcontent-%COMP%] .card-body{height:auto;overflow:visible}.panel-container[_ngcontent-%COMP%]:has(vdk-feature-info), .panel-container[_ngcontent-%COMP%]:has(vdk-feature-info) > .card[_ngcontent-%COMP%], article[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:has(>vdk-feature-info){height:100%;overflow:hidden}article[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:has(>vdk-feature-info){min-height:0}vdk-feature-info[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;min-height:0}}@media(min-width:768px){[_nghost-%COMP%]{height:100%!important}}`],changeDetection:1})}}return i})();function Qa(i,a){if(i&1){let e=wE();Nc$2(0,`figure`,1)(1,`button`,3),mp$1(`click`,function(){Gl$1(e);return ql$2(RE(2).closeDialog(!1))}),up$1(2,`span`,4),Mc$2(),Nc$2(3,`figcaption`,5),uD(4,` De beschrijving en bijlagen worden niet bewaard `),Mc$2(),Nc$2(5,`p`),uD(6,` Kiest u een andere locatie? Uw beschrijving en bijlagen worden niet bewaard. Deze moet u bij de andere locatie opnieuw toevoegen. `),Mc$2(),Nc$2(7,`button`,6),mp$1(`click`,function(){Gl$1(e);return ql$2(RE(2).closeDialog(!1))}),Nc$2(8,`span`,7),uD(9,`Behoud locatie`),Mc$2()(),Nc$2(10,`button`,8),mp$1(`click`,function(){Gl$1(e);return ql$2(RE(2).closeDialog(!0))}),Nc$2(11,`span`,7),uD(12,`Kies andere locatie`),Mc$2()()()}}function Za(i,a){if(i&1){let e=wE();Nc$2(0,`div`,2)(1,`h2`,9),uD(2,`Annuleer nieuwe melding`),Mc$2(),Nc$2(3,`p`),uD(4,`Wilt u uw nieuwe melding annuleren?`),Mc$2(),Nc$2(5,`div`,10)(6,`button`,11),mp$1(`click`,function(){Gl$1(e);return ql$2(RE(2).closeDialog(!0))}),uD(7,` Annuleer melding `),Mc$2(),Nc$2(8,`button`,12),mp$1(`click`,function(){Gl$1(e);return ql$2(RE(2).closeDialog(!1))}),uD(9,` Doorgaan met melden `),Mc$2()()()}}function Ya(i,a){if(i&1&&(Nc$2(0,`div`,0),hE(1,Qa,13,0,`figure`,1)(2,Za,10,0,`div`,2),Mc$2()),i&2){let e=RE();uy(),gE(e.toonVorigeStapMelding?1:2)}}var oi=(()=>{class i{constructor(){this.isOpen=!1,this.toonVorigeStapMelding=!1,this.elRef=I$1(ur$2),this.focusTrapFactory=I$1(xi),this.confirmed=new Le}openCancelMelding(){this.toonVorigeStapMelding=!1,this.isOpen=!0,setTimeout(()=>{this.focusTrap=this.focusTrapFactory.create(this.elRef.nativeElement),this.focusTrap.focusInitialElement()},200)}openVorigeStap(){this.toonVorigeStapMelding=!0,this.isOpen=!0,setTimeout(()=>{this.focusTrap=this.focusTrapFactory.create(this.elRef.nativeElement),this.focusTrap.focusInitialElement()},200)}closeDialog(e){this.isOpen=!1,this.focusTrap?.destroy(),this.confirmed.emit(e)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-cancel-terugmelding`]],outputs:{confirmed:`confirmed`},decls:1,vars:1,consts:[[`role`,`alert`,1,`confirmation-dialog-overlay`],[1,`alert`,`alert-warning`,`alert-dismissible`],[1,`confirmation-dialog`],[`data-dismiss`,`alert`,`aria-label`,`Sluit deze melding`,1,`close`,3,`click`],[`aria-hidden`,`true`,1,`fal`,`fa-times`,`alert-close-icon`],[1,`alert-heading`],[1,`btn`,`btn-outline-warning`,`mr-3`,`mt-2`,3,`click`],[1,`btn-text`],[1,`btn`,`btn-warning`,`mt-2`,3,`click`],[1,`mt-3`],[1,`confirmation-dialog-actions`],[1,`btn`,`btn-primary`,3,`click`],[1,`btn`,`btn-secondary`,3,`click`]],template:function(t,n){t&1&&hE(0,Ya,3,1,`div`,0),t&2&&gE(n.isOpen?0:-1)},styles:[`.confirmation-dialog-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:var(--%NS%z-dialog-overlay);overflow:auto}.confirmation-dialog-overlay[_ngcontent-%COMP%] figure[_ngcontent-%COMP%]{max-width:534px;margin:auto}.confirmation-dialog[_ngcontent-%COMP%]{background:#fff;padding:20px;border-radius:8px;box-shadow:0 4px 6px #0000001a;text-align:center}.confirmation-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:10px}.close[_ngcontent-%COMP%]:focus-within{border:2px solid black}`],changeDetection:1})}}return i})();var Hn=(()=>
60{class i{static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵmod=zf({type:i})}static{this.ɵinj=mo$2({imports:[eu,St,Nt,nu,Vt]})}}return i})();var Un=(()=>{class i{constructor(){this.NIEUWSBERICHT_IDS=`nieuwsbericht_ids`}hasId(e){return(window.localStorage.getItem(this.NIEUWSBERICHT_IDS)||``).split(`,`).includes(e.toString(10))}addIdsToStorage(e){let t=window.localStorage.getItem(this.NIEUWSBERICHT_IDS),n=t?t.split(`,`):[];n=[...n,...e.map(o=>o.toString(10))],window.localStorage.setItem(this.NIEUWSBERICHT_IDS,n.join(`,`))}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵprov=z$1({token:i,factory:i.ɵfac,providedIn:`root`})}}return i})();var Ja=[`closeButton`];function Xa(i,a){if(i&1&&(Nc$2(0,`h3`,9),uD(1),Mc$2()),i&2){let e=RE().$implicit;uy(),kp$1(e.title)}}function er(i,a){i&1&&up$1(0,`hr`)}function tr(i,a){if(i&1){let e=wE();hE(0,Xa,2,1,`h3`,9),up$1(1,`p`,10),Nc$2(2,`div`,11)(3,`input`,12),mp$1(`change`,function(n){let o=Gl$1(e).$implicit;return ql$2(RE(2).toggleDoNotShowAgain(o.id,n.target.checked))}),Mc$2(),Nc$2(4,`label`,13),uD(5,` Dit nieuwsbericht niet meer tonen `),Mc$2()(),hE(6,er,1,0,`hr`)}if(i&2){let e=a.$implicit,t=a.$index,n=a.$count;gE(RE(2).nieuwsberichten.length>1?0:-1),uy(),pp$1(`innerHTML`,e.body,yv),uy(2),pp$1(`id`,`forms-checkbox-`+t),uy(),pp$1(`htmlFor`,`forms-checkbox-`+t),uy(2),gE(t!==n-1?6:-1)}}function ir(i,a){if(i&1){let e=wE();Nc$2(0,`div`,4)(1,`h2`,5),uD(2),Mc$2(),Nc$2(3,`button`,6,0),mp$1(`click`,function(){Gl$1(e);return ql$2(RE().close())}),up$1(5,`span`,7),Mc$2()(),Nc$2(6,`div`,8),vE(7,tr,7,5,null,null,mE),Mc$2()}if(i&2){let e=RE();uy(2),kp$1(e.title),uy(5),yE(e.nieuwsberichten)}}var Gn=(()=>{class i{constructor(){this.newsService=I$1(Lt),this.closeEvent=new Le,this.nieuwsberichten=[]}get title(){return this.nieuwsberichten.length===1?this.nieuwsberichten[0].title:`Nieuwsberichten`}ngOnInit(){this.jqueryModal=$(`#newsModal`),this.jqueryModal.modal(`show`),this.jqueryModal.on(`hide.bs.modal`,()=>this.closeEvent.emit()),this.jqueryModal.on(`shown.bs.modal`,()=>{this.closeButton?.nativeElement&&setTimeout(()=>{this.closeButton.nativeElement.focus()},100)})}close(){this.jqueryModal.modal(`hide`),this.closeEvent.emit(),document.getElementById(`ggcSearchInputId`)?.focus()}toggleDoNotShowAgain(e,t){this.newsService.toggleDoNotShowAgain(e,t)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-nieuwsbericht`]],viewQuery:function(t,n){if(t&1&&yp$1(Ja,5),t&2){let o;FE(o=jE())&&(n.closeButton=o.first)}},outputs:{closeEvent:`closeEvent`},decls:4,vars:1,consts:[[`closeButton`,``],[`id`,`newsModal`,`tabindex`,`-1`,`aria-labelledby`,`NewsModalLabel`,`aria-hidden`,`true`,1,`modal`,`fade`],[1,`modal-dialog`],[1,`modal-content`],[1,`modal-header`],[`aria-label`,`Modal titel`,1,`h4`,`modal-title`],[`id`,`nieuwsbericht-close`,`type`,`button`,`data-dismiss`,`modal`,`aria-label`,`Sluit dit venster`,1,`close`,3,`click`],[`aria-hidden`,`true`,1,`fal`,`fa-times`,`close-icon`],[1,`modal-body`],[`aria-label`,`Modal titel`,1,`h5`],[3,`innerHTML`],[1,`custom-control`,`custom-checkbox`,`vdk-checkbox`],[`type`,`checkbox`,`name`,`toggle-nieuwsbericht`,1,`custom-control-input`,3,`change`,`id`],[1,`custom-control-label`,3,`for`]],template:function(t,n){t&1&&(Nc$2(0,`div`,1)(1,`div`,2)(2,`div`,3),hE(3,ir,9,1),Mc$2()()()),t&2&&(uy(3),gE(n.nieuwsberichten.length>0?3:-1))},styles:[`.vdk-checkbox[_ngcontent-%COMP%]{padding-left:2.75rem}.close[_ngcontent-%COMP%]:focus, .close[_ngcontent-%COMP%]:hover, .close[_ngcontent-%COMP%]:active{border:2px solid #000000}`],changeDetection:1})}}return i})();var Lt=(()=>{class i{constructor(){this.httpClient=I$1(Zr$2),this.alertingService=I$1(Po$2),this.localStorageService=I$1(Un),this.foutmelding=`Er is iets fout gegaan bij het laden van deze pagina. Probeer het later opnieuw.`,this.doNotShowAgain=[]}openNewsDialog(e){this.getNieuwsberichten().pipe(_h$1(t=>{let n=t.filter(o=>!this.localStorageService.hasId(o.id)).sort((o,p)=>(o.dateRange?.startDate??``).localeCompare(p.dateRange?.startDate??``));return n.length>0?(this.componentRef=e.createComponent(Gn),this.componentRef.instance.nieuwsberichten=n,this.componentRef.instance.closeEvent.
60subscribe(()=>this.closeModal()),Sh$1(``)):Sh$1(`not opened`)})).subscribe({error:()=>{this.alertingService.addAlert(new ne$2(this.foutmelding,ae$1.FAILURE))}})}getNieuwsberichten(){return this.httpClient.get(Mt$2.nieuwsberichtUrl)}hideNieuwsberichten(){this.doNotShowAgain.length>0&&this.localStorageService.addIdsToStorage(this.doNotShowAgain)}toggleDoNotShowAgain(e,t){t?this.doNotShowAgain.push(e):this.doNotShowAgain=this.doNotShowAgain.filter(n=>n!==e)}closeModal(){this.componentRef&&(this.componentRef.destroy(),this.hideNieuwsberichten())}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵprov=z$1({token:i,factory:i.ɵfac,providedIn:`root`})}}return i})();var qn=(()=>{class i{constructor(){}loadPiwikScript(){let e=document.getElementById(`piwik-script`);e&&(e.src=`./assets/piwik-script/`+Mt$2.piwikScript,e.async=!0)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵprov=z$1({token:i,factory:i.ɵfac,providedIn:`root`})}}return i})();var $n=(()=>{class i{loadSurveyScript(){if(Mt$2.filterEnquete!==`true`||!document.body||document.getElementById(`survalyzer-script`))return;let t=document.createElement(`script`);t.id=`survalyzer-script`,t.src=`https://files.survalyzer.eu/public/dependency/embedded/release/survalyzer-survey.js`,t.async=!0,document.body.appendChild(t)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵprov=z$1({token:i,factory:i.ɵfac,providedIn:`root`})}}return i})();var nr=[`faqButton`];var Bt=(()=>{class i{constructor(){this.stateService=I$1(Do$2),this.modeService=I$1(ns),this.eventTrackerService=I$1(Kr),this.meldenService=I$1(Ye),this.elRef=I$1(ur$2),this.focusTrapFactory=I$1(xi),this.disableButtonState=!1,this.disableButtonHeight=!1,this.disableButton=!1,this.className=`header-basic d-block`,this.changeMode=new Le,this.stateService.vdkStateObservable.subscribe(e=>{this.disableButtonState=[`report_2d_draw`,`report_2d_draw_point`,`report_3d_draw`,`report_2d`,`report_3d`].includes(e.state),this.setButtonDisabled()}),this.modeService.cameraHeight.subscribe(e=>{this.disableButtonHeight=e>1500,this.setButtonDisabled()}),this.modeService.activeMode.subscribe(e=>{this.mode=e,this.setButtonDisabled()}),this.stateService.tertiaryPanelState.subscribe(e=>{e===`closed`&&this.state===`faq`&&this.faqButton.nativeElement?.focus(),this.state=e})}report(){this.meldenService.clickMeldenButton()}openFaq(e){this.stateService.tertiaryPanelState.next(`faq`),this.eventTrackerService.pushCustomEvent(`interaction`,`behavior`,`icon_click`,`vraag_en_antwoord`)}openInstallPWA(e){this.stateService.tertiaryPanelState.next(`install_pwa`)}setButtonDisabled(){this.disableButton=this.disableButtonState||this.disableButtonHeight&&this.mode===ut$1.DrieD}logHomeEvent(){this.eventTrackerService.pushCustomEvent(`interaction`,`behavior`,`icon_click`,`home`)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-header`]],viewQuery:function(t,n){if(t&1&&yp$1(nr,5),t&2){let o;FE(o=jE())&&(n.faqButton=o.first)}},hostVars:1,hostBindings:function(t,n){t&2&&pp$1(`className`,n.className)},outputs:{changeMode:`changeMode`},decls:21,vars:2,consts:[[`faqButton`,``],[`aria-label`,`Hoofdnavigatie desktop`,`role`,`navigation`,1,`navbar`,`navbar-expand`],[1,`container-fluid`,`container-fluid-application`,`h-100`],[`type`,`button`,`data-toggle`,`collapse`,`data-target`,`#header-basic-menu-container`,`aria-controls`,`header-basic-menu-container`,`aria-haspopup`,`true`,`aria-expanded`,`false`,`aria-label`,`Open het mobiele menu`,`tabindex`,`0`,`data-cy`,`mobile-menu`,1,`header-basic-header-btn`,`header-basic-menu-toggler`,`collapsed`,`js-navbar-toggler-dropdown`],[`aria-hidden`,`true`,1,`fal`,`fa-bars`,`text-primary`],[`id`,`home-button`],[`href`,`/`,1,`text-decoration-none`,3,`click`],[1,`header-basic-header-logo-wrapper`],[`srcset`,`assets/kadaster-logo.svg`,`media`,`(max-width: 991.98px)`],[`src`,`assets/kadaster_logo.png`,`alt`,`Logo Kadaster - ga naar Verbeter de Kaart`,1,`header-basic-header-logo`],[1,`d-flex`,`h-100`],[`data-cy`,`melding-maken`,1,`btn`,`btn-primary`,`header-basic-btn-primary`,`text-nowrap`,3,`click`,`disabled`,`title`],[`src`,`assets/icons/melden.svg`,`aria-hidden`,`true`,`height`,`22`,`width`,`22`,`alt`,`Melden icoon`,1,`btn-text`],[1,`btn-text`],[1,`header-basic-header-right`,`d-none`,`d-lg-flex`,`align-items-center`],[`data-cy`,`faq`,1,`btn`,`btn-secondary`,`header-basic-btn`,`d-block`,`text-nowrap`,3,`click`],[`aria-hidden`,`true`,1,`fal`,`fa-info-circle`,`pr-1`]],template:function(t,n){t&1&&(Nc$2(0,`nav`,1)(1,`div`,2)(2,`button`,3),up$1(3,`span`,4),Mc$2(),Nc$2(4,`h1`,5)(5,`a`,6),mp$1(`click`,function(){return n.logHomeEvent()}),Nc$2(6,`picture`,7),up$1(7,`source`,8)(8,`img`,9),Mc$2(),uD(9,` Verbeter de kaart `),Mc$2()(),Nc$2(10,`div`,10)(11,`button`,11),mp$1(`click`,function(){return n.report()}),up$1(12,`img`,12),Nc$2(13,`span`,13),uD(14,`Melden`),Mc$2()(),Nc$2(15,`div`,14)(16,`button`,15,0),mp$1(`click`,function(){return n.openFaq()}),up$1(18,`span`,16),Nc$2(19,`span`),uD(20,`Vraag en antwoord`),Mc$2()()()()()()),t&2&&(uy(11),pp$1(`disabled`,n.disableButton)(`title`,n.disableButton?n.disableButtonHeight?`Zoom in om een melding te maken`:``:`Maak een melding`))},styles:[`.container-fluid[_ngcontent-%COMP%]{padding:8px}.header-basic-header-logo-wrapper[_ngcontent-%COMP%]{display:inline-flex;align-items:center}.header-basic-header-logo[_ngcontent-%COMP%]{margin:8px;display:block;width:auto}.container-fluid-application[_ngcontent-%COMP%]{display:flex;align-items:center}.navbar[_ngcontent-%COMP%] > .container-fluid.container-fluid-application[_ngcontent-%COMP%]{justify-content:flex-start}.container-fluid-application[_ngcontent-%COMP%] > .d-flex.h-100[_ngcontent-%COMP%]{margin-left:auto}.btn-group-toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:1.25rem;cursor:pointer;box-shadow:none!important}.btn-inverted-primary[_ngcontent-%COMP%]{border:1px solid #406a9e}#home-button[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;padding-right:8px;margin:2px;font-size:16px;font-weight:600;font-family:Open Sans,Arial,sans-serif}#home-button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;padding:2px}#home-button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus, #home-button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, #home-button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active{border:2px solid #000000;padding:0}@media(max-width:991.98px){#home-button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:15px}}.header-basic-header-btn[_ngcontent-%COMP%]{width:24px}.header-basic-menu-toggler[_ngcontent-%COMP%]{padding:2px}.header-basic-menu-toggler[_ngcontent-%COMP%]:focus, .header-basic-menu-toggler[_ngcontent-%COMP%]:hover, .header-basic-menu-toggler[_ngcontent-%COMP%]:active{border:2px solid #000000;padding:0}.header-basic-btn[_ngcontent-%COMP%]:hover{color:#406a9e}@media(max-width:991.98px){.navbar[_ngcontent-%COMP%]{height:3.5rem}.btn-primary[_ngcontent-%COMP%]{padding:11px 12px}.btn-primary[_ngcontent-%COMP%] .btn-text[_ngcontent-%COMP%]{font-size:1rem}.btn-primary[_ngcontent-%COMP%]{width:104px;
60height:46px;margin-right:0}}.btn[_ngcontent-%COMP%]:disabled:not(.btn-link):disabled{background-color:#929292}`],changeDetection:1})}}return i})();var jt=[{label:`contact`,href:`https://www.kadaster.nl/-/contact-terugmelden`},{label:`API`,href:`https://www.pdok.nl/restful-api/-/article/bgt-terugmeldingen`},{label:`privacy`,href:`https://www.kadaster.nl/privacy`},{label:`toegankelijkheid`,href:`/toegankelijkheid`},{label:`cookies`,href:`https://www.kadaster.nl/cookieverklaring`},{label:`kadaster.nl`,href:`https://www.kadaster.nl`}];var or=[`closeButton`];function ar(i,a){if(i&1){let e=wE();Nc$2(0,`li`)(1,`a`,9),mp$1(`click`,function(n){Gl$1(e);return ql$2(RE().openInstallPWA(n))}),up$1(2,`span`,10),Nc$2(3,`span`,7),uD(4,`Voeg toe aan uw beginscherm`),Mc$2()()()}}function rr(i,a){if(i&1){let e=wE();Nc$2(0,`li`)(1,`a`,11),mp$1(`click`,function(n){Gl$1(e);return ql$2(RE().openInstallPWA(n))}),up$1(2,`span`,10),Nc$2(3,`span`,7),uD(4,`Voeg toe aan uw beginscherm`),Mc$2()()()}}function sr(i,a){if(i&1&&(Nc$2(0,`li`)(1,`a`,12),up$1(2,`span`,13),Nc$2(3,`span`,7),uD(4),Mc$2(),Nc$2(5,`span`,14),uD(6,`(opent een nieuwe pagina)`),Mc$2()()()),i&2){let e=a.$implicit;uy(),pp$1(`href`,e.href,Iv),uy(3),kp$1(e.label)}}var Kn=(()=>{class i extends Bt{constructor(){super(...arguments),this.pwaInstallService=I$1($e),this.canInstall=this.pwaInstallService.canInstallPwa,this.isiOSPlatform=this.pwaInstallService.isIOsPlatform,this.pwaInstalled=this.pwaInstallService.pwaInstalled,this.links=jt}ngAfterViewInit(){$(`#header-basic-menu-container`).on(`shown.bs.collapse`,()=>{$(`#closeMobileMenu`)[0]?.focus(),this.focusTrap=this.focusTrapFactory.create(this.elRef.nativeElement),this.focusTrap.focusInitialElement()}).on(`hide.bs.collapse`,()=>{this.focusTrap?.destroy()})}handleKeydown(e){e instanceof KeyboardEvent&&e.key===`Escape`&&this.closeButton.nativeElement.click()}openFaq(e){e.preventDefault(),this.closeButton.nativeElement.click(),this.focusTrap?.destroy(),super.openFaq()}openInstallPWA(e){e.preventDefault(),this.eventTrackerService.pushCustomEvent(`interaction`,`behavior`,`icon_click`,`voeg_toe_aan_uw_beginscherm`),this.pwaInstalled()||(this.canInstall()?this.pwaInstallService.promptInstall():this.isiOSPlatform()&&(this.closeButton.nativeElement.click(),this.focusTrap?.destroy(),super.openInstallPWA()))}ngOnDestroy(){this.focusTrap?.destroy()}static{this.ɵfac=(()=>{let e;return function(n){return(e||(e=um(i)))(n||i)}})()}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-menu-mobile`]],viewQuery:function(t,n){if(t&1&&yp$1(or,7,ur$2),t&2){let o;FE(o=jE())&&(n.closeButton=o.first)}},hostBindings:function(t,n){t&1&&gp$1(`keydown.escape`,function(p){return n.handleKeydown(p)})},features:[Kf],decls:15,vars:2,consts:[[`closeButton`,``],[`id`,`header-basic-menu-container`,`aria-label`,`Hoofdnavigatie mobiel`,1,`navbar`,`navbar-header-basic`,`navbar-collapse`,`js-header-basic-navbar`,`collapse`,`navbar-mobile-only`],[`type`,`button`,`data-toggle`,`collapse`,`data-target`,`#header-basic-menu-container`,`aria-label`,`Menu sluiten`,`aria-expanded`,`false`,`aria-controls`,`header-basic-menu-container`,`tabindex`,`0`,`id`,`closeMobileMenu`,1,`navbar-toggler`,`close`,`js-header-basic-navbar-close`],[`aria-hidden`,`true`,1,`fal`,`fa-times`,`close-icon`],[1,`navbar-nav`,`navbar-nav-header-basic`],[`href`,`#`,`data-cy`,`faq-mobile`,1,`dropdown-page-link`,3,`click`],[`aria-hidden`,`true`,1,`fal`,`fa-question-circle`],[1,`dropdown-page-link-text`],[1,`header-basic-menu-backdrop`,`js-header-basic-menu-backdrop`],[`href`,`#`,`data-cy`,`install-pwa-android`,1,`dropdown-page-link`,3,`click`],[`aria-hidden`,`true`,1,`fal`,`fa-arrow-to-bottom`],[`href`,`#`,`data-cy`,`install-pwa-ios`,1,`dropdown-page-link`,3,`click`],[`target`,`_blank`,1,`dropdown-page-link`,3,`href`],[`aria-hidden`,`true`,1,`fal`,`fa-external-link`],[1,`sr-only`]],template:function(t,n){t&1&&(Nc$2(0,`nav`,1)(1,`button`,2,0),up$1(3,`span`,3),Mc$2(),Nc$2(4,`ul`,4)(5,`li`)(6,`a`,5),mp$1(`click`,function(p){return n.openFaq(p)}),up$1(7,`span`,6),Nc$2(8,`span`,7),uD(9,`Vraag en antwoord`),Mc$2()()(),hE(10,ar,5,0,`li`),hE(11,rr,5,0,`li`),vE(12,sr,7,2,`li`,null,mE),Mc$2(),up$1(14,`div`,8),Mc$2()),t&2&&(uy(10),gE(n.canInstall()&&!n.pwaInstalled()?10:-1),uy(),gE(n.isiOSPlatform()&&!n.pwaInstalled()?11:-1),uy(),yE(n.links))},styles:[`button[_ngcontent-%COMP%]{padding:2px}button[_ngcontent-%COMP%]:focus, button[_ngcontent-%COMP%]:hover, button[_ngcontent-%COMP%]:active{border:2px solid #000000;padding:0}a[_ngcontent-%COMP%]:focus, a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:active{border:2px solid #000000}.navbar-nav[_ngcontent-%COMP%]{max-height:100vh!important;overflow:auto!important}`],changeDetection:1})}}return i})();var ie=27;var ne=40;var oe=.5;var ae=1;var lr=new w$2({image:new $i$2({width:ie,height:ne,src:`assets/icons/terugmelding/nieuw.svg`,anchor:[oe,ae]})});var cr=new w$2({image:new $i$2({width:ie,height:ne,src:`assets/icons/terugmelding/geselecteerd/nieuw-geselecteerd.svg`,anchor:[oe,ae]})});var dr=new w$2({image:new $i$2({width:ie,height:ne,src:`assets/icons/terugmelding/in_onderzoek.svg`,anchor:[oe,ae]})});var mr=new w$2({image:new $i$2({width:ie,height:ne,src:`assets/icons/terugmelding/geselecteerd/in_onderzoek-geselecteerd.svg`,anchor:[oe,ae]})});var pr=new w$2({image:new $i$2({width:ie,height:ne,src:`assets/icons/terugmelding/goedgekeurd.svg`,anchor:[oe,ae]})});var ur=new w$2({image:new $i$2({width:ie,height:ne,src:`assets/icons/terugmelding/geselecteerd/goedgekeurd-geselecteerd.svg`,anchor:[oe,ae]})});var gr=new w$2({image:new $i$2({width:ie,height:ne,src:`assets/icons/terugmelding/geparkeerd.svg`,anchor:[oe,ae]})});var hr=new w$2({image:new $i$2({width:ie,height:ne,src:`assets/icons/terugmelding/geselecteerd/geparkeerd-geselecteerd.svg`,anchor:[oe,ae]})});var fr=new w$2({image:new $i$2({width:ie,height:ne,src:`assets/icons/terugmelding/do
60orgestuurd.svg`,anchor:[oe,ae]})});var _r=new w$2({image:new $i$2({width:ie,height:ne,src:`assets/icons/terugmelding/geselecteerd/doorgestuurd-geselecteerd.svg`,anchor:[oe,ae]})});var vr=new w$2({image:new $i$2({width:ie,height:ne,src:`assets/icons/terugmelding/afgewezen.svg`,anchor:[oe,ae]})});var br=new w$2({image:new $i$2({width:ie,height:ne,src:`assets/icons/terugmelding/geselecteerd/afgewezen-geselecteerd.svg`,anchor:[oe,ae]})});var Cr=new w$2({image:new $i$2({width:ie,height:ne,src:`assets/icons/terugmelding/afgerond.svg`,anchor:[oe,ae]})});var yr=new w$2({image:new $i$2({width:ie,height:ne,src:`assets/icons/terugmelding/geselecteerd/afgerond-geselecteerd.svg`,anchor:[oe,ae]})});var xr=new w$2({fill:new u({color:`rgba(0, 115, 149, 0.5)`}),stroke:new s({color:`#007395`,width:5}),image:new wt$2({radius:7,fill:new u({color:`rgba(0, 115, 149, 0.5)`}),stroke:new s({color:`#007395`,width:5})})});var ai=i=>{switch(i.get(`statusCode`)){case`NIEUW`:return lr;case`IN_ONDERZOEK`:return dr;case`AFGEROND`:return Cr;case`GEPARKEERD`:return gr;case`DOORGESTUURD`:return fr;case`AFGEWEZEN`:return vr;case`GOEDGEKEURD`:return pr}};var Qn=i=>{switch(i.get(`statusCode`)){case`NIEUW`:return cr;case`IN_ONDERZOEK`:return mr;case`AFGEROND`:return yr;case`GEPARKEERD`:return hr;case`DOORGESTUURD`:return _r;case`AFGEWEZEN`:return br;case`GOEDGEKEURD`:return ur;default:return xr}};var Wn=new w$2({image:new wt$2({radius:16.67,stroke:new s({width:2,color:`#00387D`}),fill:new u({color:`#FFFFFF`})}),text:new $r$2({text:`-1`,font:`600 16px Open Sans`,textAlign:`center`,fill:new u({color:`#00387D`})})});var Zn=i=>{let a=i.get(`features`);return a.length===1?ai(a[0]):(Wn.getText()?.setText(a.length.toString()),Wn)};var Yn=i=>i===`terugmeldingen-bgt`?Zn:ai;var Jn=[{type:nC.GEOJSON,url:`${Mt$2.terugmeldingApiUrlV2}/terugmeldingen?registratie=BGT`,customHeaders:[[`apikey`,Mt$2.terugmeldingApiKeyV2]],title:`Terugmeldingen`,layers:[{zIndex:6,minResolution:.0525,maxResolution:3440.64,clusterDistance:45,layerId:`terugmeldingen-bgt`,visible:!0,title:`BGT melding`,legendIndex:2,getFeatureInfoOnSingleclick:!0,styleLike:Yn(`terugmeldingen-bgt`),activeLegend:[{imageUrl:`./assets/icons/terugmelding/nieuw.svg`,text:`Nieuwe melding`,iconDescription:`nieuwe melding`},{imageUrl:`./assets/icons/terugmelding/in_onderzoek.svg`,text:`Melding in onderzoek`,iconDescription:`melding in onderzoek`},{imageUrl:`./assets/icons/terugmelding/geparkeerd.svg`,text:`Melding wacht op informatie`,iconDescription:`melding wacht op informatie`},{imageUrl:`./assets/icons/terugmelding/doorgestuurd.svg`,text:`Melding doorgestuurd`,iconDescription:`melding doorgestuurd`},{imageUrl:`./assets/icons/terugmelding/goedgekeurd.svg`,text:`Goedgekeurd en ingepland`,iconDescription:`goedgekeured en ingepland`},{imageUrl:`./assets/icons/terugmelding/afgerond.svg`,text:`Afgerond met aanpassing`,iconDescription:`afgerond met aanpassing`},{imageUrl:`./assets/icons/terugmelding/afgewezen.svg`,text:`Afgerond zonder aanpassing`,iconDescription:`afgerond zonder aanpassing`}]}]},{type:nC.GEOJSON,url:`${Mt$2.terugmeldingApiUrlV2}/terugmeldingen?registratie=BRT`,customHeaders:[[`apikey`,Mt$2.terugmeldingApiKeyV2]],title:`Terugmeldingen`,layers:[{zIndex:5,minResolution:.841,maxResolution:3440.64,layerId:`terugmeldingen-brt`,styleLike:Yn(`terugmeldingen-brt`),visible:!0,title:`BRT melding`,getFeatureInfoOnSingleclick:!0}]}];function kr(i,a){i&1&&lp$1(0,`vdk-search`,0)}var ri=(()=>{class i{constructor(){this.locationParamsService=I$1(Io$2),this.ggcMapService=I$1(rL),this.httpClient=I$1(Zr$2),this.modeService=I$1(ns),this.stateService=I$1(Do$2),this.mapName=Mt$2.mapName,this.maxZoomlevel=Mt$2.maxZoomlevel,this.loadingDone=new Le,this.changeMouseCursorOnHover=!0,this.showSearch=!0}ngOnInit(){this.httpClient.get(`assets/services2d.json`).subscribe(e=>{let t=e;t.push(...Jn),this.mapConfig=t}),this.vdkMap=this.ggcMapService.getMap(this.mapName),this.pointerMoveEvents=this.vdkMap.on([`pointermove`],e=>this.changeMouseCursorWhenHoverOverIconOrCluster(e)),this.stateService.vdkStateObservable.subscribe(e=>{this.changeMouseCursorOnHover=![`report_draw`,`report`].includes(e.state),this.showSearch=![`report_2d_draw`,`report_2d_draw_point`,`report_2d`].includes(e.state)})}ngAfterViewInit(){this.loadingDone.emit(),setTimeout(()=>{document.getElementById(`ggcSearchInputId`)?.focus()})}onWindowResize(){this.shouldIgnoreResizeDuringPinchZoom()||this.updateMapSize()}onOrientationChange(){this.updateMapSize()}
60shouldIgnoreResizeDuringPinchZoom(){let e=window.visualViewport;return e?Math.abs(e.scale-1)>.01:!1}updateMapSize(){this.vdkMap&&this.vdkMap.updateSize()}handleMapEvent(e){if(e.type===eC.ZOOMENDLOCATION)this.locationParamsService.onMapViewStateUpdated(e.value);else if(e.type===eC.MAPINITIALIZED){this.ggcMapService.changeHighlightLayerStyle(Qn,Mt$2.mapName),this.vdkMap.updateSize();let t=this.modeService.getDefault2DOptions();if(t&&t.geometry){let n=t.geometry,o=t.zoom;if(o===void 0)return;this.ggcMapService.zoomToCoordinate([n[0],n[1]],Mt$2.mapName,o)}}}changeMouseCursorWhenHoverOverIconOrCluster(e){if(this.changeMouseCursorOnHover&&!e.dragging){let t=this.vdkMap.getEventPixel(e.originalEvent),n=this.vdkMap.hasFeatureAtPixel(t);this.vdkMap.getTargetElement().style.cursor=n?`pointer`:``}}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-map-viewer`]],viewQuery:function(t,n){if(t&1&&yp$1(al,5)(Wx,5),t&2){let o;FE(o=jE())&&(n.searchComponent=o.first),FE(o=jE())&&(n.mobileToolbarComponent=o.first)}},hostBindings:function(t,n){t&1&&gp$1(`resize`,function(){return n.onWindowResize()},Cv)(`orientationchange`,function(){return n.onOrientationChange()},Cv)},outputs:{loadingDone:`loadingDone`},decls:3,vars:6,consts:[[1,`d-lg-block`,`d-none`],[3,`events`,`mapIndex`,`webServices`,`maxZoomlevel`,`minZoomlevel`,`mapTabIndex`]],template:function(t,n){t&1&&(hE(0,kr,1,0,`vdk-search`,0),lp$1(1,`vdk-mobile-toolbar`),pi(2,`ggc-map`,1),gp$1(`events`,function(p){return n.handleMapEvent(p)}),bc()),t&2&&(gE(n.showSearch?0:-1),uy(2),cp$1(`mapIndex`,n.mapName)(`webServices`,n.mapConfig)(`maxZoomlevel`,n.maxZoomlevel)(`minZoomlevel`,3)(`mapTabIndex`,0))},dependencies:[al,Wx,DY],styles:[`vdk-mobile-toolbar[_ngcontent-%COMP%]{display:block}@media(max-width:991.98px){vdk-mobile-toolbar[_ngcontent-%COMP%]{min-height:0}}@media(max-width:991.98px){vdk-mobile-toolbar[_ngcontent-%COMP%]:has(#mobileToolbar){min-height:48px}}@media(max-width:1199.98px){vdk-mobile-toolbar[_ngcontent-%COMP%]:has(#mobileToolbar) + ggc-map[_ngcontent-%COMP%]{scroll-padding-top:48px}}@media(max-width:991.98px){vdk-mobile-toolbar[_ngcontent-%COMP%]:has(#mobileToolbar) + ggc-map[_ngcontent-%COMP%] .ggc-ol-map{top:48px;height:calc(100% - 48px)}}@media(max-width:991.98px){vdk-mobile-toolbar[_ngcontent-%COMP%]:has(#mobileToolbar.legend-only-toolbar){min-height:32px}}@media(max-width:1199.98px){vdk-mobile-toolbar[_ngcontent-%COMP%]:has(#mobileToolbar.legend-only-toolbar) + ggc-map[_ngcontent-%COMP%]{scroll-padding-top:32px}}@media(max-width:1199.98px){vdk-mobile-toolbar[_ngcontent-%COMP%]:has(#mobileToolbar.legend-only-toolbar) + ggc-map[_ngcontent-%COMP%] .ggc-ol-map{top:32px;height:calc(100% - 32px)}}ggc-map[_ngcontent-%COMP%] .ggc-ol-map:focus-visible{border:4px solid #000000}ggc-map[_ngcontent-%COMP%] .ol-control button{background-color:#fff;color:#406a9e;font-size:32px}@media(max-width:767.98px){ggc-map[_ngcontent-%COMP%] .ol-control button{font-size:24px;max-height:40px;max-width:40px}ggc-map[_ngcontent-%COMP%] .ol-control button:focus, ggc-map[_ngcontent-%COMP%] .ol-control button:active, ggc-map[_ngcontent-%COMP%] .ol-control button:hover{padding:0}}`],changeDetection:1})}}return i})();var Xn=(()=>{class i{constructor(){this.meldenService=I$1(Ye),this.layerService=I$1(GL),this.mapEventsService=I$1(RY),this.className=`w-100 d-flex align-items-center`,this.layerTextView=Ys$2(``),this.mapName=Mt$2.mapName,this.meldenService.getActiveLayerIdObservable().subscribe(e=>{let t=this.layerService.getTitle(e??``,Mt$2.mapName)??``;this.layerTextView.set(t)})}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-map-footer`]],hostVars:1,hostBindings:function(t,n){t&2&&pp$1(`className`,n.className)},decls:15,vars:5,consts:[[`aria-label`,`kaart footer`,1,`container-fluid`],[1,`row`,`p-md-2`,`col-xs-0`],[1,`col`,`text-center`],[3,`mapIndex`],[1,`d-none`,`d-md-inline`],[`id`,`attribution`,1,`attribution`],[1,`kaartInfo`],[1,`kaartInfo-label`],[1,`kaartInfo-value`]],template:function(t,n){t&1&&(pi(0,`nav`,0)(1,`div`,1)(2,`div`,2)(3,`ggc-map-details-container`),lp$1(4,`ggc-scale-line`,3)(5,`ggc-scale-denominator`,3),pi(6,`div`,4),lp$1(7,`ggc-mouse-position`,3),bc(),lp$1(8,`ggc-loader`,3)(9,`div`,5),pi(10,`div`,6)(11,`span`,7),uD(12,`Kaart:`),bc(),pi(13,`span`,8),uD(14),bc()()()()()()),t&2&&(uy(4),cp$1(`mapIndex`,n.mapName),uy(),cp$1(`mapIndex`,n.mapName),uy(2),cp$1(`mapIndex`,n.mapName),uy(),cp$1(`mapIndex`,n.mapName),uy(6),kp$1(n.layerTextView()))},dependencies:[xE,UY,zY,jY,GY],styles:[`ggc-map-details-container[_ngcontent-%COMP%]{display:block;width:100%}ggc-map-details-container[_ngcontent-%COMP%] .ggc-map-details-container{display:flex;align-items:center;gap:.5rem;width:100%}ggc-mouse-position[_ngcontent-%COMP%] .ggc-mouse-position, ggc-scale-line[_ngcontent-%COMP%] .ggc-scale-line, ggc-scale-denominator[_ngcontent-%COMP%] .ggc-scale-denominator{float:none;display:inline-block;margin-right:0}@media(max-width:350px){ggc-mouse-position[_ngcontent-%COMP%] .ggc-mouse-position, ggc-scale-line[_ngcontent-%COMP%] .ggc-scale-line, ggc-scale-denominator[_ngcontent-%COMP%] .ggc-scale-denominator{margin-right:0}}.kaartInfo[_ngcontent-%COMP%]{margin-left:auto;padding-right:.5rem;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:baseline;column-gap:.25rem;text-align:right;line-height:1.1;max-width:100%}.kaartInfo-label[_ngcontent-%COMP%], .kaartInfo-value[_ngcontent-%COMP%]{white-space:nowrap}@media(max-width:767.98px){.text-center[_ngcontent-%COMP%]{padding:0}}ggc-scale-line[_ngcontent-%COMP%] .ol-scale-line-inner{font-size:small}.attribution[_ngcontent-%COMP%]{display:none}`],changeDetection:1})}}return i})();var Tr=[`hideMapButton`];var Er=[`dynamicCesiumContainer`];var Mr=i=>({"d-none":i});function Pr(i,a){if(i&1){let e=wE();pi(0,`vdk-map-viewer`,12),gp$1(`loadingDone`,function(){Gl$1(e);let n=RE();return ql$2(n.loading=!1)}),bc()}}function Ir(i,a){}function Fr(i,a){if(i&1){let e=wE();pi(0,`div`,8)(1,`div`,13)(2,`button`,14),gp$1(`click`,function(){Gl$1(e);let n=RE();return ql$2(n.setMode(n.modes.TweeD))}),pi(3,`span`,15),uD(4,`2D`),bc()(),pi(5,`button`,14),gp$1(`click`,function(){Gl$1(e);let n=RE();return ql$2(n.setMode(n.modes.DrieD))}),pi(6,`span`,15),uD(7,`3D`),bc()()()()}if(i&2){let e=RE();uy(2),eD(pD(`btn `,e.mode===e.modes.TweeD?`btn-primary`:`btn-inverted-primary`)),cp$1(`disabled`,e.loading||e.modeDisabled),ap$1(`aria-current`,e.mode===e.modes.TweeD),uy(3),eD(pD(`btn `,e.mode===e.modes.DrieD?`btn-primary`:`btn-inverted-primary`)),cp$1(`disabled`,e.loading||e.modeDisabled),ap$1(`aria-current`,e.mode===e.modes.DrieD)}}function Or(i,a){i&1&&(pi(0,`footer`,11),lp$1(1,`vdk-map-footer`),bc())}var si=(()=>{class i{get searchComponent(){return this.mapViewerComponent?.searchComponent}get mobileToolbarComponent(){return this.mapViewerComponent?.mobileToolbarComponent}constructor(){this.mapModusService=I$1(tl),this.stateService=I$1(Do$2),this.ggcMapService=I$1(rL),this.modeService=I$1(ns),this.eventTrackerService=I$1(Kr),this.injector=I$1(Me$2),this.mapName=Mt$2.mapName,this.modes=ut$1,this.loading=!0,this.modeDisabled=!1,this.modesAvailable=!1,this.cesiumLoaded=!1,this.mapModusService.subscribeSelectionService(),this.modeService.activeMode.subscribe(e=>L$1(this,null,function*(){if(this.mode=e,this.loading=!0,this.cesiumLoaded=!0,this.mode==ut$1.DrieD){let{CesiumViewerComponent:t}=yield import(`./chunk-B_efQv0b.js`);this.container?.createComponent(t,{injector:this.injector})?.instance.loadingDone.subscribe(()=>this.loading=!1)}else this.container&&this.container.clear()}
60)),this.stateService.vdkStateObservable.subscribe(e=>{this.modeDisabled=[`report_2d`,`report_2d_draw`,`report_2d_draw_point`,`report_3d`,`report_3d_draw`].includes(e.state)}),this.modesAvailable=this.modeService.isModesAvailable()}ngOnInit(){this.hidePrimaryPanel$=this.stateService.vdkStateObservable.pipe(qe$2(e=>e.hidePrimaryPanel)),this.panelSize$=this.stateService.primaryPanelSize}ngAfterViewInit(){let e=this.ggcMapService.getMap(this.mapName);if(!e||typeof e.getControls!=`function`)return;let t=[...e.getControls().getArray().sort(n=>n instanceof rn$1?-1:1)];t.forEach(n=>e.removeControl(n)),t.forEach(n=>e.addControl(n))}maximizePrimaryPanel(e){e.currentTarget?.blur(),this.stateService.primaryPanelSize.next(`maximized`),Vv(()=>{document.querySelector(`#primary-panel .card h2`)?.scrollIntoView({behavior:`auto`,block:`start`})},{injector:this.injector}),this.scrollMainContainerToTop()}showLegend(){this.eventTrackerService.pushCustomEvent(`interaction`,`behavior`,`icon_click`,`legenda`),this.stateService.secondaryPanelState.next(`legend`)}ngOnDestroy(){this.stateService.hidePrimaryPanel(!0),this.mapModusService.unsubscribeSelectionService()}scrollMainContainerToTop(){let e=()=>{let t=document.querySelector(`main.container-panel-application`);t&&t.scrollTo({top:0,behavior:`auto`})};requestAnimationFrame(()=>{e(),requestAnimationFrame(e)})}setMode(e){return L$1(this,null,function*(){switch(this.mode){case ut$1.TweeD:{let t=this.ggcMapService.getMap(this.mapName).getView(),n=t.getCenterInternal(),o=t.getZoom();if(!n||o===void 0)break;this.modeService.setLast2DPosition(new rs(n,o));break}case ut$1.DrieD:{let{GgcViewerService:t}=yield import(`./chunk-BX9axHgV.js`),o=this.injector.get(t).getCurrentCameraValues();o&&this.modeService.setLast3DPosition(o);break}}this.modeService.setMode(e),this.eventTrackerService.pushCustomEvent(`interaction`,`behavior`,`icon_click`,`select_mode`)})}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-main`]],viewQuery:function(t,n){if(t&1&&yp$1(Tr,7,ur$2)(Er,5,wi$2)(ri,5),t&2){let o;FE(o=jE())&&(n.hideMapButton=o.first),FE(o=jE())&&(n.container=o.first),FE(o=jE())&&(n.mapViewerComponent=o.first)}},decls:20,vars:12,consts:[[`dynamicCesiumContainer`,``],[1,`panel-application-footer`],[1,`d-flex`],[1,`p-2`,`d-lg-block`,`d-none`],[`type`,`button`,`data-cy`,`legenda`,`title`,`Betekenis van symbolen`,1,`btn`,`btn-with-icon`,3,`click`],[`aria-hidden`,`true`,1,`fal`,`fa-list`],[1,`d-none`,`d-lg-block`,`btn-text`],[1,`sr-only`,`d-lg-none`],[1,`p-2`,`d-none`,`d-lg-inline-block`],[1,`p-2`,`d-md-none`,`js-panel-controls`,3,`ngClass`],[`type`,`button`,`aria-label`,`Melding maximaliseren`,`title`,`Melding maximaliseren`,`data-cy`,`melding-tonen`,1,`btn`,`btn-secondary`,`mt-1`,`p-1`,3,`click`],[1,`footer-app`],[3,`loadingDone`],[1,`btn`,`btn-group`,`btn-group-toggle`,`p-0`],[`type`,`button`,3,`click`,`disabled`],[1,`btn-text`]],template:function(t,n){t&1&&(hE(0,Pr,1,0,`vdk-map-viewer`),Xf(1,Ir,0,0,`ng-template`,null,0,xD),pi(3,`div`,1)(4,`div`,2)(5,`div`,3)(6,`button`,4),gp$1(`click`,function(){return n.showLegend()}),lp$1(7,`span`,5),pi(8,`span`,6),uD(9,`Legenda`),bc(),pi(10,`span`,7),uD(11,`Legenda`),bc()()(),hE(12,Fr,8,10,`div`,8),pi(13,`div`,9),ND(14,`async`),ND(15,`async`),pi(16,`button`,10),gp$1(`click`,function(p){return n.maximizePrimaryPanel(p)}),pi(17,`span`),uD(18,`Bekijk de melding`),bc()()()(),hE(19,Or,2,0,`footer`,11),bc()),t&2&&(gE(n.mode===n.modes.TweeD?0:-1),uy(12),gE(n.modesAvailable?12:-1),uy(),wp$1(`mode-3d`,n.mode===n.modes.DrieD),cp$1(`ngClass`,ED(10,Mr,_D(14,6,n.hidePrimaryPanel$)||_D(15,8,n.panelSize$)!==`minimized`)),uy(6),gE(n.mode===n.modes.TweeD?19:-1))},dependencies:[ri,ri$2,Xn,Bs$1],styles:[`[_nghost-%COMP%]{display:block;flex-direction:column;height:100%;width:100%}.panel-application-footer[_ngcontent-%COMP%]{pointer-events:none}.panel-application-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{pointer-events:auto}.panel-application-footer[_ngcontent-%COMP%] .js-panel-controls[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:inline-flex;height:46px;padding:11px 12px!important;justify-content:center;gap:4px;font-size:16px;font-weight:600}.btn-inverted-primary[_ngcontent-%COMP%]{border:1px solid #406a9e}@media(max-width:767.98px){.panel-application-footer[_ngcontent-%COMP%]{position:fixed;right:0;bottom:0;left:0;z-index:var(--%NS%z-static-sticky-footer)}.btn-group-toggle[_ngcontent-%COMP%] .btn-text[_ngcontent-%COMP%]{font-size:small}.footer-app[_ngcontent-%COMP%]{min-height:2rem}}@media(max-width:767.98px){.btn-with-icon[_ngcontent-%COMP%]{font-size:18px;height:3rem;width:3rem;max-height:24px;max-width:24px;padding:2px}.btn-with-icon[_ngcontent-%COMP%]:focus, .btn-with-icon[_ngcontent-%COMP%]:active, .btn-with-icon[_ngcontent-%COMP%]:hover{padding:2px!important}.btn-with-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px!important}}@media(max-width:767.98px){footer[_ngcontent-%COMP%]{background-color:#ffffffbf}
60.js-panel-controls[_ngcontent-%COMP%]{display:flex;position:fixed;bottom:32px;z-index:var(--%NS%z-panel-overlay-button)}.mode-3d[_ngcontent-%COMP%]{bottom:0}}.btn[_ngcontent-%COMP%]:disabled:not(.btn-link):disabled{background-color:#929292}`],changeDetection:1})}}return i})();function Dr(i,a){if(i&1&&(Nc$2(0,`li`,3)(1,`a`,4),uD(2),up$1(3,`span`,5),Nc$2(4,`span`,6),uD(5,`(opent een nieuwe pagina)`),Mc$2()()()),i&2){let e=a.$implicit;uy(),pp$1(`href`,e.href,Iv),uy(),kp$1(e.label)}}var eo=(()=>{class i{constructor(){this.className=`w-100 d-flex`,this.links=jt}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-footer`]],hostVars:1,hostBindings:function(t,n){t&2&&pp$1(`className`,n.className)},decls:5,vars:0,consts:[[1,`footer-light`,`container-fluid`,`m-0`,`d-flex`,`align-items-center`],[`aria-label`,`footer`,1,`container`],[1,`list-unstyled`,`row`,`footer-row`,`footer-bar`,`no-gutters-lg`],[1,`col-6`,`col-lg-2`,`footer-bar-item`],[`target`,`_blank`,`rel`,`noopener noreferrer nofollow`,1,`text-lg-center`,`footer-link`,3,`href`],[`aria-hidden`,`true`,1,`fal`,`fa-external-link`,`icon-suffix`],[1,`sr-only`]],template:function(t,n){t&1&&(Nc$2(0,`div`,0)(1,`nav`,1)(2,`ul`,2),vE(3,Dr,6,2,`li`,3,mE),Mc$2()()()),t&2&&(uy(3),yE(n.links))},encapsulation:2,changeDetection:1})}}return i})();function Ar(i,a){if(i&1){let e=wE();Nc$2(0,`div`,0)(1,`figure`,1)(2,`button`,2),mp$1(`click`,function(){Gl$1(e);return ql$2(RE().closeDialog())}),up$1(3,`span`,3),Mc$2(),up$1(4,`survalyzer-survey`,4),Mc$2()()}}var li=(()=>{class i{constructor(){this.isOpen=Ys$2(!1),this.elRef=I$1(ur$2),this.focusTrapFactory=I$1(xi),this.eventTrackerService=I$1(Kr)}openEnquete(){this.isOpen.set(!0),this.eventTrackerService.pushCustomEvent(`interaction`,`behavior`,`icon_click`,`fake_filter`),setTimeout(()=>{this.focusTrap=this.focusTrapFactory.create(this.elRef.nativeElement),this.focusTrap.focusInitialElement()},200)}closeDialog(){this.isOpen.set(!1),this.focusTrap?.destroy()}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-enquete`]],decls:1,vars:1,consts:[[`role`,`alert`,1,`confirmation-dialog-overlay`],[1,`alert`,`alert-dismissible`,`mb-3`,`confirmation-dialog`],[`data-dismiss`,`alert`,`aria-label`,`Sluit deze melding`,1,`close`,3,`click`],[`aria-hidden`,`true`,1,`fal`,`fa-times`,`alert-close-icon`],[`surveyhash`,`neukcncfqd`,`language`,`nl`,`tenant`,`kadaster`]],template:function(t,n){t&1&&hE(0,Ar,5,0,`div`,0),t&2&&gE(n.isOpen()?0:-1)},styles:[`survalyzer-survey[_ngcontent-%COMP%]::part(header){display:none!important}.confirmation-dialog-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:9999;overflow-y:auto;padding:1rem}.confirmation-dialog-overlay[_ngcontent-%COMP%] figure[_ngcontent-%COMP%]{max-width:700px;max-height:840px;height:80vh}.confirmation-dialog[_ngcontent-%COMP%]{position:relative;background:#fff;padding:20px 20px 0!important;border-radius:8px;box-shadow:0 4px 6px #0000001a;text-align:center;width:80vw;max-width:100%;max-height:80vh;overflow-y:auto;overflow-x:hidden}.confirmation-dialog[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{position:sticky;top:0;z-index:2;background:#fff}.confirmation-dialog[_ngcontent-%COMP%] survalyzer-survey[_ngcontent-%COMP%]{display:block;margin-bottom:-100px}.confirmation-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:10px}.close[_ngcontent-%COMP%]:focus-within{border:2px solid black}.confirmation-dialog[_ngcontent-%COMP%] survalyzer-survey[_ngcontent-%COMP%] .rt-container .rt-element .rt-qelement{padding-bottom:0}.confirmation-dialog[_ngcontent-%COMP%] survalyzer-survey[_ngcontent-%COMP%] .rt-control
60s-container{margin-top:1rem!important}`],changeDetection:1})}}return i})();var Vr=[`newsModal`];function Nr(i,a){if(i&1){let e=wE();pi(0,`a`,14),gp$1(`click`,function(n){Gl$1(e);return ql$2(RE(2).openInstallPWA(n))}),uD(1,` Voeg Verbeter de Kaart toe aan uw beginscherm `),bc()}}function Lr(i,a){if(i&1){let e=wE();pi(0,`a`,15),gp$1(`click`,function(n){Gl$1(e);return ql$2(RE(2).openInstallPWA(n))}),uD(1,` Voeg Verbeter de Kaart toe aan uw beginscherm `),bc()}}function Br(i,a){if(i&1){let e=wE();pi(0,`div`,3)(1,`button`,10),gp$1(`click`,function(){Gl$1(e);return ql$2(RE().close())}),lp$1(2,`span`,11),bc(),hE(3,Nr,2,0,`a`,12),hE(4,Lr,2,0,`a`,13),bc()}if(i&2){let e=RE();uy(3),gE(e.canInstallPwa()?3:-1),uy(),gE(e.isiOSPlatform()?4:-1)}}function jr(i,a){if(i&1){let e=wE();pi(0,`div`,5)(1,`button`,16),gp$1(`click`,function(n){Gl$1(e);return ql$2(RE().minimizePrimaryPanel(n))}),pi(2,`span`),uD(3,`Bekijk de kaart`),bc()()()}}function Rr(i,a){i&1&&lp$1(0,`vdk-secondary-panel`)}function zr(i,a){i&1&&lp$1(0,`vdk-tertiary-panel`)}var to=zs;var io=(()=>{class i{get hasInstallBanner(){return this.showInstallPwaBanner}constructor(){this.location=I$1(Fo$3),this.locationParamsService=I$1(Io$2),this.mapModusService=I$1(tl),this.newsService=I$1(Lt),this.stateService=I$1(Do$2),this.modeService=I$1(ns),this.piwikScriptLoader=I$1(qn),this.survalyzerScriptLoader=I$1($n),this.eventTrackerService=I$1(Kr),this.pwaInstallService=I$1($e),this.hasFinishedTerugmeldingState=Ys$2(!1),this.canInstallPwa=this.pwaInstallService.canInstallPwa,this.isiOSPlatform=this.pwaInstallService.isIOsPlatform,this.pwaInstalled=this.pwaInstallService.pwaInstalled,this.isDismissed=Ys$2(localStorage.getItem(`pwa-install-message-dismissed`)===`true`),this.className=`w-100 h-100 d-flex flex-column`,this.title=`verbeter-de-kaart`,this.closePanel=new Le,this.panelMinimized$=this.stateService.primaryPanelSize.pipe(qe$2(e=>e===`minimized`)),this.primaryPanelOpen$=this.stateService.vdkStateObservable.pipe(qe$2(e=>!e.hidePrimaryPanel)),this.secondaryPanelOpen$=this.stateService.secondaryPanelState.pipe(qe$2(e=>e!==`closed`)),this.tertiaryPanelOpen$=this.stateService.tertiaryPanelState.pipe(qe$2(e=>e!==`closed`)),this.mapModusService.init2D(),this.locationParamsService.getObservable().subscribe(this.handleLocationEvent.bind(this)),this.location.subscribe(()=>{this.locationParamsService.onPathUpdated(this.location.path())}),this.locationParamsService.setInitialPath(this.location.path()),this.modeService.activeMode.subscribe(e=>this.mode=e),this.piwikScriptLoader.loadPiwikScript(),this.survalyzerScriptLoader.loadSurveyScript(),to.defs(`EPSG:28992`,jP),P(to),pu$1(()=>{let e=this.stateService.currentPrimaryState();(e===`report_2d_done`||e===`report_3d_done`)&&this.hasFinishedTerugmeldingState.set(!0)})}ngAfterViewInit(){this.newsService.openNewsDialog(this.newsModal);let e=()=>this.enqueteRef.openEnquete();this.mainComponent.searchComponent?.openFilter.subscribe(e),this.mainComponent.mobileToolbarComponent?.openFilter.subscribe(e)}handleLocationEvent(e){this.location.go(``,e)}minimizePrimaryPanel(e){e.preventDefault(),this.stateService.primaryPanelSize.next(`minimized`)}cancelTerugmelding(){this.dialogRef.openCancelMelding(),this.dialogRef.confirmed.subscribe(e=>{e&&this.closePanel.emit()})}previousTerugmelding(){this.dialogRef.openVorigeStap(),this.dialogRef.confirmed.subscribe(e=>{e&&this.closePanel.emit()})}openInstallPWA(e){e.preventDefault(),this.eventTrackerService.pushCustomEvent(`interaction`,`behavior`,`icon_click`,`voeg_verbeter_de_kaart_toe_aan_uw_beginscherm`),this.pwaInstalled()||(this.canInstallPwa()?this.pwaInstallService.promptInstall():this.isiOSPlatform()&&this.stateService.tertiaryPanelState.next(`install_pwa`))}close(){localStorage.setItem(`pwa-install-message-dismissed`,`true`),this.isDismissed.set(!0)}get showInstallPwaBanner(){let e=this.stateService.currentPrimaryState(),t=e.startsWith(`report_`)&&!e.endsWith(`_done`);return this.hasFinishedTerugmeldingState()&&!t&&!this.isDismissed()&&!this.pwaInstalled()&&(this.canInstallPwa()||this.isiOSPlatform())}get showBekijkKaartButton(){let e=this.stateService.currentPrimaryState();return e===`info`||e.startsWith(`report_`)}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=zI({type:i,selectors:[[`vdk-root`]],viewQuery:function(t,n){if(t&1&&yp$1(Vr,7,wi$2)(oi,5)(li,5)(si,5),t&2){let o;FE(o=jE())&&(n.newsModal=o.first),FE(o=jE())&&(n.dialogRef=o.first),FE(o=jE())&&(n.enqueteRef=o.first),FE(o=jE())&&(n.mainComponent=o.first)}},hostVars:3,hostBindings:function(t,n){t&2&&(pp$1(`className`,n.className),wp$1(`has-install-banner`,n.hasInstallBanner))},features:[yD([Fo$3,{provide:St$3,useClass:ms}])],decls:25,vars:19,consts:[[`newsModal`,``],[`role`,`banner`,1,`myk-header`],[`aria-label`,`PWA installeren`,1,`d-lg-none`],[1,`alert`,`alert-info`],[`role`,`main`,1,`container-panel-application`],[1,`panel-overlay`,`panel-overlay-map`,`text-center`],[`id`,`primary-panel`,3,`openCancelDialog`,`openPreviousDialog`,`closeTmsPanel`],[1,`container-fluid`,`panel-application`],[1,`alerting`],[1,`footer-app`],[`type`,`button`,`aria-label`,`Sluit banner PWA installeren`,1,`close`,3,`click`],[`aria-hidden`,`true`,1,`fal`,`fa-times`,`close-icon`],[`href`,`#`,`data-cy`,`install-pwa-banner-android`],[`href`,`#`,`data-cy`,`install-pwa-banner-ios`],[`href`,`#`,`data-cy`,`install-pwa-banner-android`,3,`click`],[`href`,`#`,`data-cy`,`install-pwa-banner-ios`,3,`click`],[`type`,`button`,`aria-label`,`Bekijk de kaart`,`title`,`Bekijk de kaart`,`data-cy`,`kaart-tonen`,1,`btn`,`btn-secondary`,3,`click`]],template:function(t,n){t&1&&(lp$1(0,`vdk-cancel-terugmelding`)(1,`vdk-enquete`),pi(2,`header`,1),lp$1(3,`vdk-header`)(4,`vdk-menu-mobile`),bc(),pi(5,`aside`,2),hE(6,Br,5,2,`div`,3),bc(),pi(7,`main`,4),ND(8,`async`),ND(9,`async`),hE(10,jr,4,0,`div`,5),ND(11,`async`),ND(12,`async`),pi(13,`vdk-primary-panel`,6),gp$1(`openCancelDialog`,function(){return n.cancelTerugmelding()})(`openPreviousDialog`,function(){return n.previousTerugmelding()}),bc(),pi(14,`div`,7),lp$1(15,`vdk-main`),bc(),lp$1(16,`vdk-alerting`,8),hE(17,Rr,1,0,`vdk-secondary-panel`),ND(18,`async`),hE(19,zr,1,0,`vdk-tertiary-panel`),ND(20,`async`),bc(),pi(21,`footer`,9),lp$1(22,`vdk-footer`),bc(),lp$1(23,`div`,null,0)),t&2&&(uy(6),gE(n.showInstallPwaBanner?6:-1),uy(),wp$1(`map-blocked`,_D(8,7,n.primaryPanelOpen$)&&n.showBekijkKaartButton&&!_D(9,9,n.panelMinimized$)),uy(3),gE(_D(11,11,n.primaryPanelOpen$)&&!_D(12,13,n.panelMinimized$)&&n.showBekijkKaartButton?10:-1),uy(3),cp$1(`closeTmsPanel`,n.closePanel),uy(4),gE(_D(18,15,n.secondaryPanelOpen$)?17:-1),uy(2),gE(_D(20,17,n.tertiaryPanelOpen$)?19
60:-1))},dependencies:[oi,Bt,Kn,Nt,si,St,In,Tn,eo,li,Bs$1],styles:[`[_nghost-%COMP%]{--%NS%install-banner-height: 0px}.has-install-banner[_nghost-%COMP%]{--%NS%install-banner-height: 58px}@media(max-width:767.98px){vdk-tertiary-panel[_ngcontent-%COMP%]:has(vdk-links){display:none}}vdk-tertiary-panel[_ngcontent-%COMP%] a{padding-right:2px;padding-left:2px;margin:2px}vdk-tertiary-panel[_ngcontent-%COMP%] a:focus, vdk-tertiary-panel[_ngcontent-%COMP%] a:hover, vdk-tertiary-panel[_ngcontent-%COMP%] a:active{border:2px solid #000000;margin:0}vdk-footer[_ngcontent-%COMP%] .footer-link{margin:2px}vdk-footer[_ngcontent-%COMP%] .footer-link:focus, vdk-footer[_ngcontent-%COMP%] .footer-link:hover, vdk-footer[_ngcontent-%COMP%] .footer-link:active{border:2px solid #000000;margin:0 0 0 6px}.alerting[_ngcontent-%COMP%]{position:absolute;top:0;right:0;z-index:var(--%NS%z-alerting)}a[_ngcontent-%COMP%]{margin:0 1.5rem 0 1rem}a[_ngcontent-%COMP%]:focus, a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:active{border:2px solid #000000}.container-panel-application[_ngcontent-%COMP%] .panel-open.panel-minimized[_ngcontent-%COMP%]{--%NS%panel-min-size: 0px;--%NS%panel-max-size: 0px}.container-panel-application[_ngcontent-%COMP%] .panel-open.panel-maximized[_ngcontent-%COMP%]{--%NS%panel-min-size: calc(100vh - 640px) }@media(min-width:768px){.container-panel-application[_ngcontent-%COMP%] .panel-open.panel-maximized[_ngcontent-%COMP%]{margin-top:32px}}.container-panel-application[_ngcontent-%COMP%] .panel-overlay[_ngcontent-%COMP%]{position:relative;z-index:var(--%NS%z-panel-overlay);justify-content:left;background:transparent;width:133px;top:8px}.container-panel-application[_ngcontent-%COMP%] .panel-overlay[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:8px;height:46px;padding:11px;justify-content:center;gap:4px;font-size:16px;font-weight:600}@media(max-width:767.98px){.panel-minimized[_ngcontent-%COMP%]{display:none}vdk-footer[_ngcontent-%COMP%]{background-color:#fff}main.container-panel-application[_ngcontent-%COMP%]{overflow-y:auto}.container-panel-application[_ngcontent-%COMP%]{flex-direction:column-reverse}.container-panel-application[_ngcontent-%COMP%] .panel-open.panel-maximized[_ngcontent-%COMP%]{--%NS%panel-min-size: calc( 100dvh - var(--%NS%header-basic-height, 3.5rem) - 62px );--%NS%panel-max-size: calc( 100dvh - var(--%NS%header-basic-height, 3.5rem) - 62px );flex-direction:column}.container-panel-application.map-blocked[_ngcontent-%COMP%]{flex-grow:0;height:auto;overflow-y:auto;flex-direction:column}.container-panel-application.map-blocked[_ngcontent-%COMP%] .panel.panel-open[_ngcontent-%COMP%]{flex:0 0 auto;max-height:none;overflow:visible}.container-panel-application.map-blocked[_ngcontent-%COMP%] > .container-fluid.panel-application[_ngcontent-%COMP%]{position:relative;flex:0 0 auto;height:62px;min-height:62px;order:0;pointer-events:none}.container-panel-application.map-blocked[_ngcontent-%COMP%] > .panel.panel-open[_ngcontent-%COMP%]{order:1}.container-panel-application.map-blocked[_ngcontent-%COMP%] .panel-overlay-map[_ngcontent-%COMP%]{max-height:64px;position:absolute;inset:0;width:100%;display:flex;align-items:center;justify-content:flex-start;background-color:#ffffff47;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);pointer-events:none}.container-panel-application.map-blocked[_ngcontent-%COMP%] .panel-overlay-map[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{pointer-events:auto;margin-left:8px}.container-panel-application[_ngcontent-%COMP%] .panel-overlay-minimized[_ngcontent-%COMP%]{position:fixed;left:8px;bottom:calc(var(--%NS%footer-height, 28px) + 8px);z-index:var(--%NS%z-panel-floating-overlay)}}.alert[_ngcontent-%COMP%]{display:flex;align-items:center;padding:12px;background-color:#e6ebf2}.alert[_ngcontent-%COMP%]:before{font-size:24px;position:relative;top:0}.alert-info[_ngcontent-%COMP%]:before{content:"\\f33d";color:#00387d}@media(min-width:768px){.alert-info[_ngcontent-%COMP%]:before{margin-right:1rem}}aside[aria-label="PWA installeren"][_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{height:58px;font-size:14px;overflow:hidden}aside[aria-label="PWA installeren"][_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:14px;overflow:hidden}.close[_ngcontent-%COMP%]{position:absolute;display:flex;justify-content:center;align-items:center;top:12px;right:12px;width:1.5rem;height:1.5rem;opacity:1;font-size:1.5rem;color:#00387d}@media(min-width:992px){vdk-primary-panel.panel-open[_ngcontent-%COMP%]{padding-bottom:44px;background-color:unset}}`],changeDetection:1})}}return i})();function ci(i){let a=document.createElement(`div`);return a.innerHTML=i,a.firstChild}Mt$2.production;xu(io,{providers:[_P(),Al$1(ku,En,Hn),{provide:`TERUGMELDING_API_KEY_V2`,useValue:Mt$2.terugmeldingApiKeyV2},{provide:`TERUGMELDING_API_URL_V2`,useValue:`${Mt$2.terugmeldingApiUrlV2}/terugmeldingen`},{provide:Jd$1,useClass:kn},{provide:JM,useFactory:()=>({className:`map-control`,zoomInLabel:ci(`<span class="fal fa-plus" aria-hidden="true"></span>`),zoomOutLabel:ci(`<span class="fal fa-minus" aria-hidden="true"></span>`),zoomInTipLabel:`Zoom in`,zoomOutTipLabel:`Zoom uit`})},{provide:QM,useFactory:()=>({className:`map-control`,autoHide:!0,tipLabel:`Stel oriëntatie opnieuw in`,label:ci(`<span class="ol-compass"><span class="fal fa-compass" aria-hidden="true"></span></span>`)})},{provide:eL,useFactory:()=>({collapsible:!1,target:`attribution`})},Ob(kb())]}).catch(i=>console.error(i));
60export{Mt$2 as a,Yd$1 as c,cy as d,ne$2 as f,P as g,ss as h,Io$2 as i,Zd$1 as l,or$2 as m,tl as n,No$2 as o,ns as p,Do$2 as r,Po$2 as s,Wx as t,ae$1 as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.