diff --git a/404.html b/404.html index cc70f50..731ccc7 100644 --- a/404.html +++ b/404.html @@ -14,6 +14,6 @@ - + diff --git a/index.html b/index.html index cc70f50..731ccc7 100644 --- a/index.html +++ b/index.html @@ -14,6 +14,6 @@ - + diff --git a/main-UL5UEAR6.js b/main-VJYTXL4U.js similarity index 99% rename from main-UL5UEAR6.js rename to main-VJYTXL4U.js index dd6fa2b..657cb0d 100644 --- a/main-UL5UEAR6.js +++ b/main-VJYTXL4U.js @@ -32,6 +32,6 @@ ${JSON.stringify(t,null,2)} `,""),et;if(te==2){et.push(wD(At,Ci),Mt);return}At=bD(At,Mt,or,Ci).split(` `);for(let Ln=0,$n=At.length;Ln<$n;++Ln)Ln>0&&et.push(` `,""),et.push(At[Ln],Mt);return et},[]):Gt=Hx(at,V).trim(),Ee=ge(P,"paint","text-opacity",M,G,m,k)}if(Gt&&Ee&&!_s){ys||(++T,ne=b[T],(!ne||!ne.getText()||ne.getFill()||ne.getStroke())&&(ne=new kn,b[T]=ne),ne.setImage(void 0),ne.setGeometry(void 0));let nt=zN(P,M,G,"text",m);ne.getText()||ne.setText(We),We=ne.getText(),(!We||"getDeclutterMode"in We&&We.getDeclutterMode()!==nt)&&(We=new sl({padding:[2,2,2,2],declutterMode:nt}),ne.setText(We));let at=ge(P,"layout","text-transform",M,G,m,k);at=="uppercase"?Gt=Array.isArray(Gt)?Gt.map((Ft,sr)=>sr%2?Ft:Ft.toUpperCase()):Gt.toUpperCase():at=="lowercase"&&(Gt=Array.isArray(Gt)?Gt.map((Ft,sr)=>sr%2?Ft:Ft.toLowerCase()):Gt.toLowerCase());let et=Array.isArray(Gt)?Gt:te==2?wD(Gt,Ci):bD(Gt,wn,or,Ci);We.setText(et),We.setFont(wn),We.setRotation(zx(ge(P,"layout","text-rotate",M,G,m,k)));let mt=ge(P,"layout","text-anchor",M,G,m,k),pe=ys||te==1?"point":ge(P,"layout","symbol-placement",M,G,m,k),it;if(pe==="line-center"?(We.setPlacement("line"),it="center"):We.setPlacement(pe),pe==="line"&&typeof We.setRepeat=="function"){let Ft=ge(P,"layout","symbol-spacing",M,G,m,k);We.setRepeat(Ft*2)}We.setOverflow(pe==="point");let Mt=ge(P,"paint","text-halo-width",M,G,m,k),At=ge(P,"layout","text-offset",M,G,m,k),Ln=ge(P,"paint","text-translate",M,G,m,k),$n=0,bn=0;if(pe=="point"){it="center",mt.indexOf("left")!==-1?(it="left",bn=Mt):mt.indexOf("right")!==-1&&(it="right",bn=-Mt);let Ft=ge(P,"layout","text-rotation-alignment",M,G,m,k);We.setRotateWithView(Ft=="map")}else We.setMaxAngle(zx(ge(P,"layout","text-max-angle",M,G,m,k))*Gt.length/et.length),We.setRotateWithView(!1);We.setTextAlign(it);let Cn="middle";mt.indexOf("bottom")==0?(Cn="bottom",$n=-Mt-.5*(ln-1)*cn):mt.indexOf("top")==0&&(Cn="top",$n=Mt+.5*(ln-1)*cn),We.setTextBaseline(Cn);let St=ge(P,"layout","text-justify",M,G,m,k);We.setJustify(St==="auto"?void 0:St),We.setOffsetX(At[0]*cn+bn+Ln[0]),We.setOffsetY(At[1]*cn+$n+Ln[1]),w.setColor(gl(ge(P,"paint","text-color",M,G,m,k),Ee)),We.setFill(w);let Vn=gl(ge(P,"paint","text-halo-color",M,G,m,k),Ee);if(Vn&&Mt>0){_.setColor(Vn),Mt*=2;let Ft=.5*cn;_.setWidth(Mt<=Ft?Mt:Ft),We.setStroke(_)}else We.setStroke(void 0);let Wn=ge(P,"layout","text-padding",M,G,m,k),jn=We.getPadding();Wn!==jn[0]&&(jn[0]=Wn,jn[1]=Wn,jn[2]=Wn,jn[3]=Wn),ne.setZIndex(Li)}}}if(T>-1)return b.length=T+1,o6&&("set"in C?C.set("mapbox-layer",W):C.getProperties()["mapbox-layer"]=W),b};return n.setStyle(E),n.set("mapbox-source",v),n.set("mapbox-layers",f),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),E}function Oy(n){let e="'#000000";if(n instanceof Array)for(let t of n){let i=t.getFill();if(i)i.getColor()&&(e=i.getColor());else if(typeof t.getImage()=="function"){let r=t.getImage();if(typeof r.getFill()=="function"){let o=r.getFill();o&&o.getColor()&&(e=o.getColor())}}}else{let t=n;t&&(e=t.fill_.color_)}return e instanceof CanvasPattern,e}var yo=class{isText(){return this.annotation!==!1}get sampleText(){return this.annotation===!1?"":this.annotation.text}get rbgString(){return this._rbgString}set rbgString(e){let t=this.parse_rgb_string(e);this.r=t[0],this.g=t[1],this.b=t[2],t.length===4?this.a=t[3]:this.a=1,this._rbgString=this.makerbgString()}setRbg(e,t,i){this.r=e,this.b=t,this.g=i}get show(){return this._show}set show(e){this._show=e,this._show?this.a=1:this.a=0}constructor(e,t,i,r){this.type="",this._rbgString="",this._show=!0,this.mapbox=i,this.legendfeature=t,this.type=this.legendfeature.type_;let o=.7;switch(this.type){case"Point":{this.r=Math.round(Math.random()*255),this.g=Math.round(Math.random()*255),this.b=Math.round(Math.random()*255),this.a=o;break}case"Polygon":{this.r=Math.round(Math.random()*255),this.g=Math.round(Math.random()*255),this.b=Math.round(Math.random()*255),this.a=o,this._rbgString=this.makerbgString();break}case"LineString":{this.r=0,this.g=0,this.b=0,this.a=o;break}default:{console.log(this.type+" not supported"),this.r=0,this.g=0,this.b=0,this.a=o;break}}this.label=e,this.annotation=r}decimalHashString(e){let t=0;for(let i=0;it[1].isText()===e).sort())}setShowAll(e){this.items.forEach(t=>{t.show=e})}setShowAllText(e){this.items.forEach(t=>{t.isText()&&(t.show=e)})}hasText(){return[...this.items.values()].filter(e=>e.isText()).length>0}selector(e){return this.legendLevel===ma.d2_details?this.getTitle(e.layer,e):e.layer}selectorBron(e){return this.legendLevel===ma.d2_details?this.getTitle(e.layer,e)+" (bronhouder: "+e.bronhouder+")":e.bronhouder}getTitle(e,t){let i="";return i=r(i,"type"),i=r(i,"plus_type"),i=r(i,"functie"),i=r(i,"fysiek_voorkomen"),i=r(i,"status"),i===""&&(i=e),i.trim();function r(o,s){return t[s]?o+" "+t[s]:i}}};var ND={vectorTileUrl:"https://api.pdok.nl/lv/bgt/ogc/v1/tiles/NetherlandsRDNewQuad",extension:".pbf",xyzTemplate:"/{z}/{y}/{x}",ogcApiRootUrl:{url:"https://api.pdok.nl/lv/bgt/ogc/v1",lokaalIdRegex:/[GPWL]{1}\d{4}\.[a-f0-9]{32}/g}},FD={vectorTileUrl:"https://api.pdok.nl/lv/bag/ogc/v1_0/tiles/NetherlandsRDNewQuad",extension:".pbf",xyzTemplate:"/{z}/{y}/{x}",ogcApiRootUrl:void 0},LD={vectorTileUrl:"https://api.pdok.nl/kadaster/bestuurlijkegebieden/ogc/v1_0/tiles/NetherlandsRDNewQuad",extension:".pbf",xyzTemplate:"/{z}/{y}/{x}",ogcApiRootUrl:void 0},VD={vectorTileUrl:"https://api.pdok.nl/brt/top10nl/ogc/v1/tiles/NetherlandsRDNewQuad",extension:".pbf",xyzTemplate:"/{z}/{y}/{x}",ogcApiRootUrl:{url:"https://api.pdok.nl/brt/top10nl/ogc/v1",lokaalIdRegex:/^\d{1,16}$/}};function _F(n){let t=(window.devicePixelRatio>=1.5?.5:1)==.5?"@2x":"";return n+t+".png"}function wF(n){let t=(window.devicePixelRatio>=1.5?.5:1)==.5?"@2x":"";return n+t+".json"}var jD=class extends gN{constructor(e){e=e||{};let t=e.projection!==void 0?e.projection:"EPSG:3857",i=e.tileGrid!==void 0?e.tileGrid:cy({extent:au(t),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,opaque:e.opaque,projection:t,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.gutter_=e.gutter!==void 0?e.gutter:0}getGutter(){return this.gutter_}},bF=jD;var BD=class extends bF{constructor(e){e=e||{},super({opaque:!1,projection:e.projection,tileGrid:e.tileGrid,wrapX:e.wrapX!==void 0?e.wrapX:!0,zDirection:e.zDirection,url:e.template||"z:{z} x:{x} y:{y}",tileLoadFunction:(t,i)=>{let r=t.getTileCoord()[0],o=xt(this.tileGrid.getTileSize(r)),s=vt(o[0],o[1]);s.strokeStyle="grey",s.strokeRect(.5,.5,o[0]+.5,o[1]+.5),s.fillStyle="grey",s.strokeStyle="white",s.textAlign="center",s.textBaseline="middle",s.font="24px sans-serif",s.lineWidth=4,s.strokeText(i,o[0]/2,o[1]/2,o[0]),s.fillText(i,o[0]/2,o[1]/2,o[0]),t.setImage(s.canvas)}})}},zD=BD;var UD=class extends iu{constructor(){super()}getType(){return"text"}readFeature(e,t){return this.readFeatureFromText(Fy(e),this.adaptOptions(t))}readFeatureFromText(e,t){return ae()}readFeatures(e,t){return this.readFeaturesFromText(Fy(e),this.adaptOptions(t))}readFeaturesFromText(e,t){return ae()}readGeometry(e,t){return this.readGeometryFromText(Fy(e),this.adaptOptions(t))}readGeometryFromText(e,t){return ae()}readProjection(e){return this.readProjectionFromText(Fy(e))}readProjectionFromText(e){return this.dataProjection}writeFeature(e,t){return this.writeFeatureText(e,this.adaptOptions(t))}writeFeatureText(e,t){return ae()}writeFeatures(e,t){return this.writeFeaturesText(e,this.adaptOptions(t))}writeFeaturesText(e,t){return ae()}writeGeometry(e,t){return this.writeGeometryText(e,this.adaptOptions(t))}writeGeometryText(e,t){return ae()}};function Fy(n){return typeof n=="string"?n:""}var CF=UD;var a6={POINT:Ki,LINESTRING:io,POLYGON:Zi,MULTIPOINT:cs,MULTILINESTRING:ul,MULTIPOLYGON:dl},EF="EMPTY",xF="Z",DF="M",l6="ZM",dt={START:0,TEXT:1,LEFT_PAREN:2,RIGHT_PAREN:3,NUMBER:4,COMMA:5,EOF:6},c6={Point:"POINT",LineString:"LINESTRING",Polygon:"POLYGON",MultiPoint:"MULTIPOINT",MultiLineString:"MULTILINESTRING",MultiPolygon:"MULTIPOLYGON",GeometryCollection:"GEOMETRYCOLLECTION",Circle:"CIRCLE"},GD=class{constructor(e){this.wkt=e,this.index_=-1}isAlpha_(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}isNumeric_(e,t){return t=t!==void 0?t:!1,e>="0"&&e<="9"||e=="."&&!t}isWhiteSpace_(e){return e==" "||e==" "||e=="\r"||e==` -`}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){let e=this.nextChar_(),t=this.index_,i=e,r;if(e=="(")r=dt.LEFT_PAREN;else if(e==",")r=dt.COMMA;else if(e==")")r=dt.RIGHT_PAREN;else if(this.isNumeric_(e)||e=="-")r=dt.NUMBER,i=this.readNumber_();else if(this.isAlpha_(e))r=dt.TEXT,i=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(e==="")r=dt.EOF;else throw new Error("Unexpected character: "+e)}return{position:t,value:i,type:r}}readNumber_(){let e,t=this.index_,i=!1,r=!1;do e=="."?i=!0:(e=="e"||e=="E")&&(r=!0),e=this.nextChar_();while(this.isNumeric_(e,i)||!r&&(e=="e"||e=="E")||r&&(e=="-"||e=="+"));return parseFloat(this.wkt.substring(t,this.index_--))}readText_(){let e,t=this.index_;do e=this.nextChar_();while(this.isAlpha_(e));return this.wkt.substring(t,this.index_--).toUpperCase()}},HD=class{constructor(e){this.lexer_=e,this.token_={position:0,type:dt.START},this.layout_="XY"}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(e){return this.token_.type==e}match(e){let t=this.isTokenType(e);return t&&this.consume_(),t}parse(){return this.consume_(),this.parseGeometry_()}parseGeometryLayout_(){let e="XY",t=this.token_;if(this.isTokenType(dt.TEXT)){let i=t.value;i===xF?e="XYZ":i===DF?e="XYM":i===l6&&(e="XYZM"),e!=="XY"&&this.consume_()}return e}parseGeometryCollectionText_(){if(this.match(dt.LEFT_PAREN)){let e=[];do e.push(this.parseGeometry_());while(this.match(dt.COMMA));if(this.match(dt.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(dt.LEFT_PAREN)){let e=this.parsePoint_();if(this.match(dt.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(dt.LEFT_PAREN)){let e=this.parsePointList_();if(this.match(dt.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(dt.LEFT_PAREN)){let e=this.parseLineStringTextList_();if(this.match(dt.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(dt.LEFT_PAREN)){let e;if(this.token_.type==dt.LEFT_PAREN?e=this.parsePointTextList_():e=this.parsePointList_(),this.match(dt.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(dt.LEFT_PAREN)){let e=this.parseLineStringTextList_();if(this.match(dt.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(dt.LEFT_PAREN)){let e=this.parsePolygonTextList_();if(this.match(dt.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parsePoint_(){let e=[],t=this.layout_.length;for(let i=0;i0&&(r+=" "+o)}return i.length===0?r+" "+EF:r+"("+i+")"}var MF=$D;var qD=function(n){return n.ApplicationGeoJSON="application/geo+json",n.ApplicationJSON="application/json",n.ApplicationVndOgcFgJSON="application/vnd.ogc.fg+json",n.TextHTML="text/html",n}(qD||{}),Ly=(()=>{let e=class e{constructor(i){this.http=i,this.ogcApiUrl=void 0}getCollections(i){return this.http.get(`${i}/collections`).pipe(me(r=>r.collections))}getItemLinks(i){let r=[];return this.http.get(`${i}/collections`).pipe(me(o=>(o.collections.forEach(a=>{a.links.filter(c=>c.rel==="items"&&c.type===qD.ApplicationGeoJSON).forEach(c=>{let u={displayName:a.title,link:c};r.push(u)})}),r)))}getFeaturesById(i,r){let o=new on().set("lokaal_id",r);return this.checkFeatures(i,o)}existsId(i,r){return this.getItemLinks(i).pipe(un(o=>o.map(s=>this.getFeaturesById(s,r))),cr(),Jv())}checkFeatures(i,r){return this.http.get(i.link.href,{params:r}).pipe(me(o=>{let s=o;return s.numberReturned>0?{link:s.links.filter(c=>c.rel==="self"&&c.type===qD.ApplicationGeoJSON)[0],displayName:i.displayName+" "+r.toString().replace("=",": ")}:!1}))}getFeatures(i,r){return this.http.get(i.link.href,{params:r}).pipe(me(o=>{let s=o;return s.numberReturned>0?s:!1}))}};e.\u0275fac=function(r){return new(r||e)(R(qa))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var g6="https://api.pdok.nl/bzk/locatieserver/search/v3_1/reverse",Vh=function(n){return n.search="search",n.move="move",n}(Vh||{}),ga=(()=>{let e=class e{get OgcAPI(){return this._OgcAPI}set OgcAPI(i){this._OgcAPI=i}constructor(i,r){this.http=i,this.idlookupService=r,this.rdProjection=new no({code:"EPSG:28992",extent:[-285401.92,22598.08,595401.92,903401.92]}),this.initialView=new _n({projection:this.rdProjection,center:[155e3,463e3],zoom:13,enableRotation:!1}),this.initialViewLocation={change:Vh.move,view:this.initialView,name:""},this.messageSource=new Ht(this.initialViewLocation),this.currentLocation=this.messageSource.asObservable(),this._OgcAPI=void 0,this.changeLocation(this.initialViewLocation)}changeLocation(i){this.messageSource.next(i)}changeView(i){return ar(this,null,function*(){let r=this.initialViewLocation;r.view=i,r.change=Vh.move,r.name=yield this.getLocationName(i.getCenter()),this.messageSource.next(r)})}zoomto(i,r){let o=this.wktToCoordinates(i),s=this.initialViewLocation;s.view.setCenter(o),s.name=r,s.change=Vh.search,this.messageSource.next(s)}zoomToFeatures(i,r){let o=new on().set("crs","http://www.opengis.net/def/crs/EPSG/0/28992");this.idlookupService.getFeatures({displayName:r,link:i},o).subscribe(s=>{let a=new aO({features:new KO().readFeatures(s,{featureProjection:this.rdProjection}),attributions:r}),l=this.initialViewLocation;l.view.fit(a.getExtent()),l.name=r,l.change=Vh.search,this.messageSource.next(l)})}wktToCoordinates(i){return new MF().readFeature(i,{dataProjection:"EPSG:28992",featureProjection:"EPSG:28992"}).getGeometry().getCoordinates()}getLocationName(i){return ar(this,null,function*(){let r=new on().append("X",i[0]).append("Y",i[1]).append("rows",1),o=yield this.http.get(g6,{params:r}).toPromise();return o.response.docs[0].weergavenaam?o.response.docs[0].weergavenaam:""})}};e.\u0275fac=function(r){return new(r||e)(R(qa),R(Ly))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function y6(n,e){if(n&1&&(D(0,"div")(1,"div"),be(2,"app-objectinfo",7),x()()),n&2){let t=L(2);A(2),O("features",t.selectedFeatures)("resolution",t.viewRD(t.zoom).getResolution())("styleFunction",t.CurrentVectorTileLayer.getStyleFunction())("ogcurl",t.getOgcUrl())}}function v6(n,e){if(n&1&&(D(0,"div"),we(1,y6,3,4,"div",5),x()),n&2){let t=L();A(),O("ngIf",t.showselectedFeatures())}}function _6(n,e){if(n&1&&(D(0,"div"),be(1,"app-mapstyler",8),x()),n&2){let t=L(2);A(),O("Layer",t.CurrentVectorTileLayer)("ColorMap",t.colorMap)("StyleUrl",t.getShowStyleUrl())}}function w6(n,e){if(n&1&&(D(0,"div"),we(1,_6,2,3,"div",5),x()),n&2){let t=L();A(),O("ngIf",t.isShowLegend)}}function b6(n,e){if(n&1){let t=Ne();D(0,"div",9)(1,"div",10)(2,"div",11)(3,"app-demobox",12),ee("visEmit",function(r){K(t);let o=L();return Z(o.visualisationChange(r))}),x(),be(4,"app-mapexport",13),D(5,"table")(6,"caption",14),Y(7," Technische informatie: "),x(),D(8,"thead")(9,"th",15),Y(10,"Veld"),x(),D(11,"th",16),Y(12,"Waarde"),x()(),D(13,"tbody")(14,"tr")(15,"td"),Y(16,"Huidige Zoomlevel"),x(),D(17,"td"),Y(18),x()(),D(19,"tr")(20,"td"),Y(21,"Pixel Ratio scherm"),x(),D(22,"td"),Y(23),x()(),D(24,"tr")(25,"td"),Y(26,"Vectortile api"),x(),D(27,"td"),be(28,"app-showlink",17),x()(),D(29,"tr")(30,"td"),Y(31,"Style api"),x(),D(32,"td"),be(33,"app-showlink",17),x()()()(),D(34,"app-custom-tile",18),ee("visEmit",function(r){K(t);let o=L();return Z(o.visualisationChange(r))})("gridEmit",function(r){K(t);let o=L();return Z(o.visualisationRefresh(r))}),x()()()()}if(n&2){let t=L();A(4),O("map",t.map1),A(14),Pt(t.getZoomLevel()),A(5),Pt(t.getDevicePixelRatio()),A(5),O("url",t.getShowTileUrl()),A(5),O("url",t.getShowStyleUrl())}}var jy=(()=>{let e=class e{get tileurlCustomZoom(){let i=this.localStorageService.get("customUrlMinZoom");if(i){let r=parseInt(i,10);if(!isNaN(r))return r}return 0}get tileurlCustom(){let i=this.localStorageService.get("customUrl"),r=this.localStorageService.get("customUrlExtension");r||(r=".pbf");let o=this.localStorageService.get("customUrlxyzTemplate");if(o||(o="/{z}/{y}/{x}"),i)return{vectorTileUrl:i,xyzTemplate:o,extension:r,ogcApiRootUrl:void 0}}set tileurlCustom(i){this.localStorageService.set({key:"customUrl",value:i?.vectorTileUrl})}set visualisation(i){this.SelectedVisualisation=i,this.colorMap.setSelector(ma.d1_layer)}viewRD(i){return new _n({projection:this.rdProjection,center:[155e3,463e3],zoom:i,minZoom:i,enableRotation:!1})}constructor(i,r,o){this.router=i,this.locationService=r,this.localStorageService=o,this.titelEmit=new de,this.SelectedVisualisation=re.BGTachtergrond,this.colorMap=new Ny(ma.d1_layer),this.showUrl="",this.zoom=13,this.vectorTileLayerRD=new _N({renderMode:"hybrid",declutter:!0,useInterimTilesOnError:!1}),this.CurrentVectorTileLayer=this.vectorTileLayerRD,this.rdProjection=new no({code:"EPSG:28992",extent:[-285401.92,22598.08,595401.92,903401.92]}),this.resolutions=[],this.matrixIds=[],this.map1=new Zg({layers:[this.vectorTileLayerRD],target:"map1",view:this.viewRD(this.zoom)}),this.selectedFeatures=[],this.isShowDetails=!1,this.isShowLegend=!1,this.isShowDemo=!1,this.detailsupdate=!0}ngOnInit(){this.locationService.currentLocation.subscribe(i=>{this.currentlocation=i;let r=this.map1.getView();i.view&&r.setCenter(i.view.getCenter())}),this.calcMatrixAndResolutions(this.rdProjection),this.map1=new Zg({layers:[this.vectorTileLayerRD],target:"map1",view:this.viewRD(this.zoom)}),this.map1.addInteraction(new WO),this.map1.on(["moveend"],()=>{this.locationService.changeView(this.map1.getView())}),this.map1.on(["click","pointermove"],i=>{let r=!1,o=i;this.detailsupdate&&(this.selectedFeatures=[],this.map1.forEachFeatureAtPixel(o.pixel,s=>{s&&(r=!0,this.selectedFeatures.push(s))})),i.type=="click"&&(this.detailsupdate=!this.detailsupdate),this.map1.getTargetElement().style.cursor=r&&this.detailsupdate?"pointer":""}),this.debuglayer()}ngOnChanges(){this.changeStyleJson()}toggleShowDetails(){this.isShowDetails=!this.isShowDetails,this.detailsupdate=this.isShowDetails}toggleShowLegend(){this.isShowLegend=!this.isShowLegend}toggleShowDemo(){this.isShowDemo=!this.isShowDemo}hasLegend(){return this.colorMap.items.size>0}getZoomLevel(){return this.map1.getView().getZoom()?.toFixed(1)}getDevicePixelRatio(){return Uc}getResolutionsVt(i=9){return this.getMatrixIdsVt(i).map(r=>3440.64/2**r)}getMatrixIdsVt(i=9){return Array(i+1).fill(null).map((r,o)=>o)}calcMatrixAndResolutions(i){let o=Xe(i.getExtent())/256;for(let s=0;s<=15;s++)this.matrixIds[s]=s.toString(),this.resolutions[s]=o/Math.pow(2,s)}getFillColor(i,r,o){let s=r.getStyleFunction(),a=o.getResolution(),l=s(i,a),c="";if(l instanceof Array){let u=l[l.length-1].getFill();u&&(c=u.getColor())}else c=l.fill_.color_;return c instanceof CanvasPattern,c}visualisationChange(i){this.SelectedVisualisation=i,this.changeStyleJson()}visualisationRefresh(i){this.changeStyleJson()}changeStyleJson(){this.debuglayer();let i=13;switch(this.SelectedVisualisation){case re.BESTUURBlanko:case re.BESTUURWithLabels:case re.BESTUURstd:i=3;break;case re.Custom1Blanko:i=this.tileurlCustomZoom;break;case re.Top10nlBlanco:case re.Top10nlKleurrijk:case re.Top10nlStandaard:case re.Top10nlTegels:i=10;break;default:break}this.calcMatrixAndResolutions(this.rdProjection),this.map1.setView(this.viewRD(i)),this.titelEmit.emit(this.SelectedVisualisation);let r=this.vectorTileLayerRD,o=this.resolutions;this.map1.setView(this.viewRD(i)),r.setVisible(!0);let s=kd(this.SelectedVisualisation);if(this.tileurlCustom&&s.source=="custom"&&(this.setTileSource(this.rdProjection,this.vectorTileLayerRD,this.tileurlCustom,2),this.showUrl=this.tileurlCustom.vectorTileUrl),s.source=="bag"&&(this.setTileSource(this.rdProjection,this.vectorTileLayerRD,FD,12),this.showUrl=FD.vectorTileUrl),s.source=="bgt"&&(this.setTileSource(this.rdProjection,this.vectorTileLayerRD,ND,12),this.showUrl=ND.vectorTileUrl),s.source=="bestuurlijkegebieden"&&(this.setTileSource(this.rdProjection,this.vectorTileLayerRD,LD,2),this.showUrl=LD.vectorTileUrl),s.source=="top10nl"&&(this.setTileSource(this.rdProjection,this.vectorTileLayerRD,VD,11),this.showUrl=VD.vectorTileUrl),s.styleUrl)fetch(s.styleUrl).then(a=>{a.json().then(l=>{l.sprite?fetch(wF(l.sprite)).then(c=>{c.json().then(u=>{let d=_F(l.sprite);this.stfunction=OD(r,l,s.source,o,u,d),r.setStyle(this.doStyle.bind(this))})}):(this.stfunction=OD(r,l,s.source,o),r.setStyle(this.doStyle.bind(this)))})});else switch(this.SelectedVisualisation){case re.Custom1Blanko:case re.BESTUURBlanko:case re.Bagblanko:case re.BGTzerodefaultA_blanco:case re.Top10nlBlanco:r.setStyle(this.GetBlancoDefaultStyle());break;default:r.setStyle(this.doStyle.bind(this));break}}toBraile(i){return{text:i.text.toUpperCase().split("").map(r=>"\u2800\u2801\u2802\u2803\u2804\u2805\u2806\u2807\u2808\u2809\u280A\u280B\u280C\u280D\u280E\u280F\u2810\u2811\u2812\u2813\u2814\u2815\u2816\u2817\u2818\u2819\u281A\u281B\u281C\u281D\u281E\u281F\u2820\u2821\u2822\u2823\u2824\u2825\u2826\u2827\u2828\u2829\u282A\u282B\u282C\u282D\u282E\u282F\u2830\u2831\u2832\u2833\u2834\u2835\u2836\u2837\u2838\u2839\u283A\u283B\u283C\u283D\u283E\u283F"[` A1B'K2L@CIF/MSP"E3H9O6R^DJG>NTQ,*5<-U8V.%[$+X!&;:4\\0Z7(_?W]#Y)=`.indexOf(r)]).join(""),font:"bold 40px Courier New",rotation:i.rotation,backgroundfill:new Zt({color:"white"})}}doStyle(i,r){let o=i.getProperties(),s=a(o,o.layer);switch(this.SelectedVisualisation){case re.Top10nlStandaard:case re.BGTstandaard:case re.BGTachtergrond:case re.Bagstd:case re.BagCompleet:case re.BESTUURWithLabels:case re.BESTUURstd:{let l=this.colorMap.selector(o);if(this.stfunction){let c=this.stfunction(i,r);if(this.colorMap.has(l)){let u=this.colorMap.get(l);if(u?.show)return u.showfreshstyle(s,c)}else{let u=new yo(l,i,!0,s);return c&&(u.rbgString=Oy(c),this.colorMap.set(l,u)),c}}break}case re.BagKleurrijk_tegels:case re.Top10nlTegels:case re.BGTzerodefaultB_tegels:case re.Custom1Tegels:return new yo("default zero",i,!1,!1).showfreshstyle(s);case re.BGTzerodefaultC_Bron:{let l=this.colorMap.selectorBron(o),c;if(this.colorMap.has(l))c=this.colorMap.get(l);else{let u=new yo(l,i,!1,!1);this.colorMap.set(l,u),c=u}return c.showfreshstyle(s)}case re.Bagkleurrijk:case re.Top10nlKleurrijk:case re.BGTzerodefaultD_kleur:case re.Custom1Kleurrijk:{let l=o.layer,c=a(o,l);if(this.colorMap.has(l))return this.colorMap.get(l)?.showfreshstyle(c);{let u=new yo(l,i,!1,c);return this.colorMap.set(l,u),u.showfreshstyle(c)}}case re.Bagblanko:case re.Custom1Blanko:case re.BGTzerodefaultA_blanco:case re.Top10nlBlanco:case re.BESTUURBlanko:return new yo("default zero",i,!1,!1).showfreshstyle(s);default:bb(this.SelectedVisualisation)}function a(l,c){let u="";if(c==="pand_nummeraanduiding"&&(u=l.tekst),c==="openbareruimtelabel"&&(u=l.openbareruimtenaam),u!==""){let h=(360-l.hoek)*Math.PI/180;return{text:u,rotation:h,font:"",backgroundfill:new Zt({color:"white"})}}else return!1}}getVectorTileSource(i,r,o){return this.resolutions=this.getResolutionsVt(o),new wN({format:new oN,projection:i,tileGrid:new da({extent:i.getExtent(),resolutions:this.resolutions,tileSize:[256,256],origin:Mn(i.getExtent())}),url:this.getVectorTileUrl(r),cacheSize:0})}getVectorTileUrl(i){return`${i.vectorTileUrl}${i.xyzTemplate}${i.extension}`}getShowTileUrl(){return this.showUrl}getShowStyleUrl(){let i=kd(this.SelectedVisualisation).styleUrl;return i||""}setTileSource(i,r,o,s){let a=this.getVectorTileSource(i,o,s);this.ogcUrl=o.ogcApiRootUrl,this.ogcUrl&&(this.locationService.OgcAPI=this.ogcUrl),r.setVisible(!1),r.setSource(a),r.setVisible(!0),r.set("renderMode","hybrid"),this.debuglayer()}debuglayer(){let i=new Ex({source:new zD({projection:this.rdProjection,tileGrid:new da({extent:this.rdProjection.getExtent(),resolutions:this.resolutions,tileSize:[256,256],origin:Mn(this.rdProjection.getExtent())})})});this.localStorageService.getBoolean("showDebugLayer")?this.map1.setLayers([this.vectorTileLayerRD,i]):this.map1.setLayers([this.vectorTileLayerRD]),this.map1.changed()}showselectedFeatures(){return this.selectedFeatures.length>0}NewColorMap(){this.colorMap.clear(),this.vectorTileLayerRD.getSource().refresh()}ApplyColorMap(){this.vectorTileLayerRD.getSource().refresh()}GetBlancoDefaultStyle(){let i=new Zt({color:"rgba(255,255,255,0.05)"}),r=new Rn({color:"rgb(51, 153, 204, 0.8)",width:1.25}),o=new is({stroke:r,radius:5});return[new kn({image:o,fill:i,stroke:r})]}getOgcUrl(){return this.ogcUrl?.url}};e.\u0275fac=function(r){return new(r||e)(U(Er),U(ga),U(Hs))},e.\u0275cmp=Je({type:e,selectors:[["app-olmap"]],inputs:{visualisation:"visualisation"},outputs:{titelEmit:"titelEmit"},features:[xn],decls:13,vars:9,consts:[["id","map1",1,"map-container"],[1,"toprightpanel"],[1,"topbuttons"],["labelPosition","before","aria-label","Toon object informatie",1,"check",3,"click","matTooltip","checked"],["labelPosition","before","aria-label","Toon Legenda",1,"check",3,"click","matTooltip","checked"],[4,"ngIf"],["class","row container-fluid",4,"ngIf"],[3,"features","resolution","styleFunction","ogcurl"],[3,"Layer","ColorMap","StyleUrl"],[1,"row","container-fluid"],[1,"infotextbox"],[1,"demobox"],[3,"visEmit"],[3,"map"],[1,"techcaption"],["id","Veld"],["id","Waarde"],[3,"url"],[3,"visEmit","gridEmit"]],template:function(r,o){r&1&&(D(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-slide-toggle",3),ee("click",function(){return o.toggleShowDetails()}),Y(4,"Objectinformatie"),x(),D(5,"mat-slide-toggle",4),ee("click",function(){return o.toggleShowLegend()}),Y(6,"Legenda"),x(),D(7,"mat-slide-toggle",3),ee("click",function(){return o.toggleShowDemo()}),Y(8,"Demo Menu"),x()(),D(9,"div"),we(10,v6,2,1,"div",5)(11,w6,2,1,"div",5)(12,b6,35,5,"div",6),x()()()),r&2&&(A(3),O("matTooltip",o.isShowDetails?"Objectinformatie verbergen":"Objectinformatie tonen")("checked",o.isShowDetails),A(2),O("matTooltip",o.hasLegend()?"Legenda tonen":"Legenda verbergen")("checked",o.isShowLegend),A(2),O("matTooltip",o.isShowDemo?"Demo menu verbergen":"Demo menu tonen")("checked",o.isShowDemo),A(3),O("ngIf",o.isShowDetails),A(),O("ngIf",o.hasLegend()),A(),O("ngIf",o.isShowDemo))},styles:[`#map1{z-index:1;height:var(--mapheight, 99vh);width:var --mapwidth,98vw;margin:0 auto}.toprightpanel{position:absolute;left:var(--buttonbarleft, 63vw);width:var(--buttonbarwidth, 36vw);height:var(--buttonxheight, 98vh);top:var(--buttontop, 1vh);z-index:4}.topbuttons{display:flex;min-height:var(--buttonheight, 1vh)}.topbutton{flex:1;min-height:var(--buttonheight, 1vh);height:var(--buttonheight, 1vh);font-size:var(--fontsize, 2.5vh);font-family:var(--font-family, "Roboto");margin-top:.5vh;margin-left:.5vw;margin-right:.2vw}.button-area{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.button-area button{margin-right:.2vw;margin-top:.2vh;margin-bottom:.2vh}.infotextbox{text-align:left;background-color:#fff;margin-top:1em;margin-bottom:1em;margin-right:1em;display:flex;flex-direction:column;font-family:var(--font-family, "Roboto");font-size:var(--fontsize, 2.5vh)}.demobox{margin:1em;flex:1;overflow-y:scroll;max-height:80vh}.demobox button{width:80%;margin-left:1vw;text-align:left;margin-right:1vw;margin-top:1vh;margin-bottom:1vh}.leftbutton{float:right;text-align:right;margin-right:16vw}.colorpick{z-index:3}.techcaption{text-align:left;font-weight:700}.check{top:var(--buttontop, .5vh);font-size:var(--fontsize, 1vh);font-family:var(--font-family, "Roboto");flex:1;min-height:var(--buttonheight, 1vh);height:var(--buttonheight, 1vh);width:100%;text-align:center;margin-top:.5vh;margin-left:.5vw;margin-right:.2vw;background-color:#f5f5f5}.legend-view{background-color:#f5f5f5}.mdc-switch__track{background-color:#92bfd5}.cdk-overlay-container{text-shadow:-13px 3px 50px #fff540}.mdc-switch{max-width:3em}.mdc-form-field{min-height:var(--buttonheight, 1vh);font-family:var(--font-family, "Roboto");font-size:var(--fontsize, 1vh)} +`}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){let e=this.nextChar_(),t=this.index_,i=e,r;if(e=="(")r=dt.LEFT_PAREN;else if(e==",")r=dt.COMMA;else if(e==")")r=dt.RIGHT_PAREN;else if(this.isNumeric_(e)||e=="-")r=dt.NUMBER,i=this.readNumber_();else if(this.isAlpha_(e))r=dt.TEXT,i=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(e==="")r=dt.EOF;else throw new Error("Unexpected character: "+e)}return{position:t,value:i,type:r}}readNumber_(){let e,t=this.index_,i=!1,r=!1;do e=="."?i=!0:(e=="e"||e=="E")&&(r=!0),e=this.nextChar_();while(this.isNumeric_(e,i)||!r&&(e=="e"||e=="E")||r&&(e=="-"||e=="+"));return parseFloat(this.wkt.substring(t,this.index_--))}readText_(){let e,t=this.index_;do e=this.nextChar_();while(this.isAlpha_(e));return this.wkt.substring(t,this.index_--).toUpperCase()}},HD=class{constructor(e){this.lexer_=e,this.token_={position:0,type:dt.START},this.layout_="XY"}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(e){return this.token_.type==e}match(e){let t=this.isTokenType(e);return t&&this.consume_(),t}parse(){return this.consume_(),this.parseGeometry_()}parseGeometryLayout_(){let e="XY",t=this.token_;if(this.isTokenType(dt.TEXT)){let i=t.value;i===xF?e="XYZ":i===DF?e="XYM":i===l6&&(e="XYZM"),e!=="XY"&&this.consume_()}return e}parseGeometryCollectionText_(){if(this.match(dt.LEFT_PAREN)){let e=[];do e.push(this.parseGeometry_());while(this.match(dt.COMMA));if(this.match(dt.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(dt.LEFT_PAREN)){let e=this.parsePoint_();if(this.match(dt.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(dt.LEFT_PAREN)){let e=this.parsePointList_();if(this.match(dt.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(dt.LEFT_PAREN)){let e=this.parseLineStringTextList_();if(this.match(dt.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(dt.LEFT_PAREN)){let e;if(this.token_.type==dt.LEFT_PAREN?e=this.parsePointTextList_():e=this.parsePointList_(),this.match(dt.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(dt.LEFT_PAREN)){let e=this.parseLineStringTextList_();if(this.match(dt.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(dt.LEFT_PAREN)){let e=this.parsePolygonTextList_();if(this.match(dt.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parsePoint_(){let e=[],t=this.layout_.length;for(let i=0;i0&&(r+=" "+o)}return i.length===0?r+" "+EF:r+"("+i+")"}var MF=$D;var qD=function(n){return n.ApplicationGeoJSON="application/geo+json",n.ApplicationJSON="application/json",n.ApplicationVndOgcFgJSON="application/vnd.ogc.fg+json",n.TextHTML="text/html",n}(qD||{}),Ly=(()=>{let e=class e{constructor(i){this.http=i,this.ogcApiUrl=void 0}getCollections(i){return this.http.get(`${i}/collections`).pipe(me(r=>r.collections))}getItemLinks(i){let r=[];return this.http.get(`${i}/collections`).pipe(me(o=>(o.collections.forEach(a=>{a.links.filter(c=>c.rel==="items"&&c.type===qD.ApplicationGeoJSON).forEach(c=>{let u={displayName:a.title,link:c};r.push(u)})}),r)))}getFeaturesById(i,r){let o=new on().set("lokaal_id",r);return this.checkFeatures(i,o)}existsId(i,r){return this.getItemLinks(i).pipe(un(o=>o.map(s=>this.getFeaturesById(s,r))),cr(),Jv())}checkFeatures(i,r){return this.http.get(i.link.href,{params:r}).pipe(me(o=>{let s=o;return s.numberReturned>0?{link:s.links.filter(c=>c.rel==="self"&&c.type===qD.ApplicationGeoJSON)[0],displayName:i.displayName+" "+r.toString().replace("=",": ")}:!1}))}getFeatures(i,r){return this.http.get(i.link.href,{params:r}).pipe(me(o=>{let s=o;return s.numberReturned>0?s:!1}))}};e.\u0275fac=function(r){return new(r||e)(R(qa))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var g6="https://api.pdok.nl/bzk/locatieserver/search/v3_1/reverse",Vh=function(n){return n.search="search",n.move="move",n}(Vh||{}),ga=(()=>{let e=class e{get OgcAPI(){return this._OgcAPI}set OgcAPI(i){this._OgcAPI=i}constructor(i,r){this.http=i,this.idlookupService=r,this.rdProjection=new no({code:"EPSG:28992",extent:[-285401.92,22598.08,595401.92,903401.92]}),this.initialView=new _n({projection:this.rdProjection,center:[155e3,463e3],zoom:13,enableRotation:!1}),this.initialViewLocation={change:Vh.move,view:this.initialView,name:""},this.messageSource=new Ht(this.initialViewLocation),this.currentLocation=this.messageSource.asObservable(),this._OgcAPI=void 0,this.changeLocation(this.initialViewLocation)}changeLocation(i){this.messageSource.next(i)}changeView(i){return ar(this,null,function*(){let r=this.initialViewLocation;r.view=i,r.change=Vh.move,r.name=yield this.getLocationName(i.getCenter()),this.messageSource.next(r)})}zoomto(i,r){let o=this.wktToCoordinates(i),s=this.initialViewLocation;s.view.setCenter(o),s.name=r,s.change=Vh.search,this.messageSource.next(s)}zoomToFeatures(i,r){let o=new on().set("crs","http://www.opengis.net/def/crs/EPSG/0/28992");this.idlookupService.getFeatures({displayName:r,link:i},o).subscribe(s=>{let a=new aO({features:new KO().readFeatures(s,{featureProjection:this.rdProjection}),attributions:r}),l=this.initialViewLocation;l.view.fit(a.getExtent()),l.name=r,l.change=Vh.search,this.messageSource.next(l)})}wktToCoordinates(i){return new MF().readFeature(i,{dataProjection:"EPSG:28992",featureProjection:"EPSG:28992"}).getGeometry().getCoordinates()}getLocationName(i){return ar(this,null,function*(){let r=new on().append("X",i[0]).append("Y",i[1]).append("rows",1),o=yield this.http.get(g6,{params:r}).toPromise();return o.response.docs[0].weergavenaam?o.response.docs[0].weergavenaam:""})}};e.\u0275fac=function(r){return new(r||e)(R(qa),R(Ly))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function y6(n,e){if(n&1&&(D(0,"div")(1,"div"),be(2,"app-objectinfo",7),x()()),n&2){let t=L(2);A(2),O("features",t.selectedFeatures)("resolution",t.viewRD(t.zoom).getResolution())("styleFunction",t.CurrentVectorTileLayer.getStyleFunction())("ogcurl",t.getOgcUrl())}}function v6(n,e){if(n&1&&(D(0,"div"),we(1,y6,3,4,"div",5),x()),n&2){let t=L();A(),O("ngIf",t.showselectedFeatures())}}function _6(n,e){if(n&1&&(D(0,"div"),be(1,"app-mapstyler",8),x()),n&2){let t=L(2);A(),O("Layer",t.CurrentVectorTileLayer)("ColorMap",t.colorMap)("StyleUrl",t.getShowStyleUrl())}}function w6(n,e){if(n&1&&(D(0,"div"),we(1,_6,2,3,"div",5),x()),n&2){let t=L();A(),O("ngIf",t.isShowLegend)}}function b6(n,e){if(n&1){let t=Ne();D(0,"div",9)(1,"div",10)(2,"div",11)(3,"app-demobox",12),ee("visEmit",function(r){K(t);let o=L();return Z(o.visualisationChange(r))}),x(),be(4,"app-mapexport",13),D(5,"table")(6,"caption",14),Y(7," Technische informatie: "),x(),D(8,"thead")(9,"th",15),Y(10,"Veld"),x(),D(11,"th",16),Y(12,"Waarde"),x()(),D(13,"tbody")(14,"tr")(15,"td"),Y(16,"Huidige Zoomlevel"),x(),D(17,"td"),Y(18),x()(),D(19,"tr")(20,"td"),Y(21,"Pixel Ratio scherm"),x(),D(22,"td"),Y(23),x()(),D(24,"tr")(25,"td"),Y(26,"Vectortile api"),x(),D(27,"td"),be(28,"app-showlink",17),x()(),D(29,"tr")(30,"td"),Y(31,"Style api"),x(),D(32,"td"),be(33,"app-showlink",17),x()()()(),D(34,"app-custom-tile",18),ee("visEmit",function(r){K(t);let o=L();return Z(o.visualisationChange(r))})("gridEmit",function(r){K(t);let o=L();return Z(o.visualisationRefresh(r))}),x()()()()}if(n&2){let t=L();A(4),O("map",t.map1),A(14),Pt(t.getZoomLevel()),A(5),Pt(t.getDevicePixelRatio()),A(5),O("url",t.getShowTileUrl()),A(5),O("url",t.getShowStyleUrl())}}var jy=(()=>{let e=class e{get tileurlCustomZoom(){let i=this.localStorageService.get("customUrlMinZoom");if(i){let r=parseInt(i,10);if(!isNaN(r))return r}return 0}get tileurlCustom(){let i=this.localStorageService.get("customUrl"),r=this.localStorageService.get("customUrlExtension");r||(r=".pbf");let o=this.localStorageService.get("customUrlxyzTemplate");if(o||(o="/{z}/{y}/{x}"),i)return{vectorTileUrl:i,xyzTemplate:o,extension:r,ogcApiRootUrl:void 0}}set tileurlCustom(i){this.localStorageService.set({key:"customUrl",value:i?.vectorTileUrl})}set visualisation(i){this.SelectedVisualisation=i,this.colorMap.setSelector(ma.d1_layer)}viewRD(i){return new _n({projection:this.rdProjection,center:[155e3,463e3],zoom:i,minZoom:i,enableRotation:!1})}constructor(i,r,o){this.router=i,this.locationService=r,this.localStorageService=o,this.titelEmit=new de,this.SelectedVisualisation=re.BGTachtergrond,this.colorMap=new Ny(ma.d1_layer),this.showUrl="",this.zoom=13,this.vectorTileLayerRD=new _N({renderMode:"hybrid",declutter:!0,useInterimTilesOnError:!1}),this.CurrentVectorTileLayer=this.vectorTileLayerRD,this.rdProjection=new no({code:"EPSG:28992",extent:[-285401.92,22598.08,595401.92,903401.92]}),this.resolutions=[],this.matrixIds=[],this.map1=new Zg({layers:[this.vectorTileLayerRD],target:"map1",view:this.viewRD(this.zoom)}),this.selectedFeatures=[],this.isShowDetails=!1,this.isShowLegend=!1,this.isShowDemo=!1,this.detailsupdate=!0}ngOnInit(){this.locationService.currentLocation.subscribe(i=>{this.currentlocation=i;let r=this.map1.getView();i.view&&r.setCenter(i.view.getCenter())}),this.calcMatrixAndResolutions(this.rdProjection),this.map1=new Zg({layers:[this.vectorTileLayerRD],target:"map1",view:this.viewRD(this.zoom)}),this.map1.addInteraction(new WO),this.map1.on(["moveend"],()=>{this.locationService.changeView(this.map1.getView())}),this.map1.on(["click","pointermove"],i=>{let r=!1,o=i;this.detailsupdate&&(this.selectedFeatures=[],this.map1.forEachFeatureAtPixel(o.pixel,s=>{s&&(r=!0,this.selectedFeatures.push(s))})),i.type=="click"&&(this.detailsupdate=!this.detailsupdate),this.map1.getTargetElement().style.cursor=r&&this.detailsupdate?"pointer":""}),this.debuglayer()}ngOnChanges(){this.changeStyleJson()}toggleShowDetails(){this.isShowDetails=!this.isShowDetails,this.detailsupdate=this.isShowDetails}toggleShowLegend(){this.isShowLegend=!this.isShowLegend}toggleShowDemo(){this.isShowDemo=!this.isShowDemo}hasLegend(){return this.colorMap.items.size>0}getZoomLevel(){return this.map1.getView().getZoom()?.toFixed(1)}getDevicePixelRatio(){return Uc}getResolutionsVt(i=9){return this.getMatrixIdsVt(i).map(r=>3440.64/2**r)}getMatrixIdsVt(i=9){return Array(i+1).fill(null).map((r,o)=>o)}calcMatrixAndResolutions(i){let o=Xe(i.getExtent())/256;for(let s=0;s<=15;s++)this.matrixIds[s]=s.toString(),this.resolutions[s]=o/Math.pow(2,s)}getFillColor(i,r,o){let s=r.getStyleFunction(),a=o.getResolution(),l=s(i,a),c="";if(l instanceof Array){let u=l[l.length-1].getFill();u&&(c=u.getColor())}else c=l.fill_.color_;return c instanceof CanvasPattern,c}visualisationChange(i){this.SelectedVisualisation=i,this.changeStyleJson()}visualisationRefresh(i){this.changeStyleJson()}changeStyleJson(){this.debuglayer();let i=13;switch(this.SelectedVisualisation){case re.BESTUURBlanko:case re.BESTUURWithLabels:case re.BESTUURstd:i=3;break;case re.Custom1Blanko:i=this.tileurlCustomZoom;break;case re.Top10nlBlanco:case re.Top10nlKleurrijk:case re.Top10nlStandaard:case re.Top10nlTegels:i=9.05;break;default:break}this.calcMatrixAndResolutions(this.rdProjection),this.map1.setView(this.viewRD(i)),this.titelEmit.emit(this.SelectedVisualisation);let r=this.vectorTileLayerRD,o=this.resolutions;this.map1.setView(this.viewRD(i)),r.setVisible(!0);let s=kd(this.SelectedVisualisation);if(this.tileurlCustom&&s.source=="custom"&&(this.setTileSource(this.rdProjection,this.vectorTileLayerRD,this.tileurlCustom,2),this.showUrl=this.tileurlCustom.vectorTileUrl),s.source=="bag"&&(this.setTileSource(this.rdProjection,this.vectorTileLayerRD,FD,12),this.showUrl=FD.vectorTileUrl),s.source=="bgt"&&(this.setTileSource(this.rdProjection,this.vectorTileLayerRD,ND,12),this.showUrl=ND.vectorTileUrl),s.source=="bestuurlijkegebieden"&&(this.setTileSource(this.rdProjection,this.vectorTileLayerRD,LD,2),this.showUrl=LD.vectorTileUrl),s.source=="top10nl"&&(this.setTileSource(this.rdProjection,this.vectorTileLayerRD,VD,11),this.showUrl=VD.vectorTileUrl),s.styleUrl)fetch(s.styleUrl).then(a=>{a.json().then(l=>{l.sprite?fetch(wF(l.sprite)).then(c=>{c.json().then(u=>{let d=_F(l.sprite);this.stfunction=OD(r,l,s.source,o,u,d),r.setStyle(this.doStyle.bind(this))})}):(this.stfunction=OD(r,l,s.source,o),r.setStyle(this.doStyle.bind(this)))})});else switch(this.SelectedVisualisation){case re.Custom1Blanko:case re.BESTUURBlanko:case re.Bagblanko:case re.BGTzerodefaultA_blanco:case re.Top10nlBlanco:r.setStyle(this.GetBlancoDefaultStyle());break;default:r.setStyle(this.doStyle.bind(this));break}}toBraile(i){return{text:i.text.toUpperCase().split("").map(r=>"\u2800\u2801\u2802\u2803\u2804\u2805\u2806\u2807\u2808\u2809\u280A\u280B\u280C\u280D\u280E\u280F\u2810\u2811\u2812\u2813\u2814\u2815\u2816\u2817\u2818\u2819\u281A\u281B\u281C\u281D\u281E\u281F\u2820\u2821\u2822\u2823\u2824\u2825\u2826\u2827\u2828\u2829\u282A\u282B\u282C\u282D\u282E\u282F\u2830\u2831\u2832\u2833\u2834\u2835\u2836\u2837\u2838\u2839\u283A\u283B\u283C\u283D\u283E\u283F"[` A1B'K2L@CIF/MSP"E3H9O6R^DJG>NTQ,*5<-U8V.%[$+X!&;:4\\0Z7(_?W]#Y)=`.indexOf(r)]).join(""),font:"bold 40px Courier New",rotation:i.rotation,backgroundfill:new Zt({color:"white"})}}doStyle(i,r){let o=i.getProperties(),s=a(o,o.layer);switch(this.SelectedVisualisation){case re.Top10nlStandaard:case re.BGTstandaard:case re.BGTachtergrond:case re.Bagstd:case re.BagCompleet:case re.BESTUURWithLabels:case re.BESTUURstd:{let l=this.colorMap.selector(o);if(this.stfunction){let c=this.stfunction(i,r);if(this.colorMap.has(l)){let u=this.colorMap.get(l);if(u?.show)return u.showfreshstyle(s,c)}else{let u=new yo(l,i,!0,s);return c&&(u.rbgString=Oy(c),this.colorMap.set(l,u)),c}}break}case re.BagKleurrijk_tegels:case re.Top10nlTegels:case re.BGTzerodefaultB_tegels:case re.Custom1Tegels:return new yo("default zero",i,!1,!1).showfreshstyle(s);case re.BGTzerodefaultC_Bron:{let l=this.colorMap.selectorBron(o),c;if(this.colorMap.has(l))c=this.colorMap.get(l);else{let u=new yo(l,i,!1,!1);this.colorMap.set(l,u),c=u}return c.showfreshstyle(s)}case re.Bagkleurrijk:case re.Top10nlKleurrijk:case re.BGTzerodefaultD_kleur:case re.Custom1Kleurrijk:{let l=o.layer,c=a(o,l);if(this.colorMap.has(l))return this.colorMap.get(l)?.showfreshstyle(c);{let u=new yo(l,i,!1,c);return this.colorMap.set(l,u),u.showfreshstyle(c)}}case re.Bagblanko:case re.Custom1Blanko:case re.BGTzerodefaultA_blanco:case re.Top10nlBlanco:case re.BESTUURBlanko:return new yo("default zero",i,!1,!1).showfreshstyle(s);default:bb(this.SelectedVisualisation)}function a(l,c){let u="";if(c==="pand_nummeraanduiding"&&(u=l.tekst),c==="openbareruimtelabel"&&(u=l.openbareruimtenaam),u!==""){let h=(360-l.hoek)*Math.PI/180;return{text:u,rotation:h,font:"",backgroundfill:new Zt({color:"white"})}}else return!1}}getVectorTileSource(i,r,o){return this.resolutions=this.getResolutionsVt(o),new wN({format:new oN,projection:i,tileGrid:new da({extent:i.getExtent(),resolutions:this.resolutions,tileSize:[256,256],origin:Mn(i.getExtent())}),url:this.getVectorTileUrl(r),cacheSize:0})}getVectorTileUrl(i){return`${i.vectorTileUrl}${i.xyzTemplate}${i.extension}`}getShowTileUrl(){return this.showUrl}getShowStyleUrl(){let i=kd(this.SelectedVisualisation).styleUrl;return i||""}setTileSource(i,r,o,s){let a=this.getVectorTileSource(i,o,s);this.ogcUrl=o.ogcApiRootUrl,this.ogcUrl&&(this.locationService.OgcAPI=this.ogcUrl),r.setVisible(!1),r.setSource(a),r.setVisible(!0),r.set("renderMode","hybrid"),this.debuglayer()}debuglayer(){let i=new Ex({source:new zD({projection:this.rdProjection,tileGrid:new da({extent:this.rdProjection.getExtent(),resolutions:this.resolutions,tileSize:[256,256],origin:Mn(this.rdProjection.getExtent())})})});this.localStorageService.getBoolean("showDebugLayer")?this.map1.setLayers([this.vectorTileLayerRD,i]):this.map1.setLayers([this.vectorTileLayerRD]),this.map1.changed()}showselectedFeatures(){return this.selectedFeatures.length>0}NewColorMap(){this.colorMap.clear(),this.vectorTileLayerRD.getSource().refresh()}ApplyColorMap(){this.vectorTileLayerRD.getSource().refresh()}GetBlancoDefaultStyle(){let i=new Zt({color:"rgba(255,255,255,0.05)"}),r=new Rn({color:"rgb(51, 153, 204, 0.8)",width:1.25}),o=new is({stroke:r,radius:5});return[new kn({image:o,fill:i,stroke:r})]}getOgcUrl(){return this.ogcUrl?.url}};e.\u0275fac=function(r){return new(r||e)(U(Er),U(ga),U(Hs))},e.\u0275cmp=Je({type:e,selectors:[["app-olmap"]],inputs:{visualisation:"visualisation"},outputs:{titelEmit:"titelEmit"},features:[xn],decls:13,vars:9,consts:[["id","map1",1,"map-container"],[1,"toprightpanel"],[1,"topbuttons"],["labelPosition","before","aria-label","Toon object informatie",1,"check",3,"click","matTooltip","checked"],["labelPosition","before","aria-label","Toon Legenda",1,"check",3,"click","matTooltip","checked"],[4,"ngIf"],["class","row container-fluid",4,"ngIf"],[3,"features","resolution","styleFunction","ogcurl"],[3,"Layer","ColorMap","StyleUrl"],[1,"row","container-fluid"],[1,"infotextbox"],[1,"demobox"],[3,"visEmit"],[3,"map"],[1,"techcaption"],["id","Veld"],["id","Waarde"],[3,"url"],[3,"visEmit","gridEmit"]],template:function(r,o){r&1&&(D(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-slide-toggle",3),ee("click",function(){return o.toggleShowDetails()}),Y(4,"Objectinformatie"),x(),D(5,"mat-slide-toggle",4),ee("click",function(){return o.toggleShowLegend()}),Y(6,"Legenda"),x(),D(7,"mat-slide-toggle",3),ee("click",function(){return o.toggleShowDemo()}),Y(8,"Demo Menu"),x()(),D(9,"div"),we(10,v6,2,1,"div",5)(11,w6,2,1,"div",5)(12,b6,35,5,"div",6),x()()()),r&2&&(A(3),O("matTooltip",o.isShowDetails?"Objectinformatie verbergen":"Objectinformatie tonen")("checked",o.isShowDetails),A(2),O("matTooltip",o.hasLegend()?"Legenda tonen":"Legenda verbergen")("checked",o.isShowLegend),A(2),O("matTooltip",o.isShowDemo?"Demo menu verbergen":"Demo menu tonen")("checked",o.isShowDemo),A(3),O("ngIf",o.isShowDetails),A(),O("ngIf",o.hasLegend()),A(),O("ngIf",o.isShowDemo))},styles:[`#map1{z-index:1;height:var(--mapheight, 99vh);width:var --mapwidth,98vw;margin:0 auto}.toprightpanel{position:absolute;left:var(--buttonbarleft, 63vw);width:var(--buttonbarwidth, 36vw);height:var(--buttonxheight, 98vh);top:var(--buttontop, 1vh);z-index:4}.topbuttons{display:flex;min-height:var(--buttonheight, 1vh)}.topbutton{flex:1;min-height:var(--buttonheight, 1vh);height:var(--buttonheight, 1vh);font-size:var(--fontsize, 2.5vh);font-family:var(--font-family, "Roboto");margin-top:.5vh;margin-left:.5vw;margin-right:.2vw}.button-area{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.button-area button{margin-right:.2vw;margin-top:.2vh;margin-bottom:.2vh}.infotextbox{text-align:left;background-color:#fff;margin-top:1em;margin-bottom:1em;margin-right:1em;display:flex;flex-direction:column;font-family:var(--font-family, "Roboto");font-size:var(--fontsize, 2.5vh)}.demobox{margin:1em;flex:1;overflow-y:scroll;max-height:80vh}.demobox button{width:80%;margin-left:1vw;text-align:left;margin-right:1vw;margin-top:1vh;margin-bottom:1vh}.leftbutton{float:right;text-align:right;margin-right:16vw}.colorpick{z-index:3}.techcaption{text-align:left;font-weight:700}.check{top:var(--buttontop, .5vh);font-size:var(--fontsize, 1vh);font-family:var(--font-family, "Roboto");flex:1;min-height:var(--buttonheight, 1vh);height:var(--buttonheight, 1vh);width:100%;text-align:center;margin-top:.5vh;margin-left:.5vw;margin-right:.2vw;background-color:#f5f5f5}.legend-view{background-color:#f5f5f5}.mdc-switch__track{background-color:#92bfd5}.cdk-overlay-container{text-shadow:-13px 3px 50px #fff540}.mdc-switch{max-width:3em}.mdc-form-field{min-height:var(--buttonheight, 1vh);font-family:var(--font-family, "Roboto");font-size:var(--fontsize, 1vh)} `],encapsulation:2});let n=e;return n})();var By=class{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};var RF=new J("basePath");var vl=class{constructor(e={}){this.apiKeys=e.apiKeys,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.withCredentials=e.withCredentials,this.encoder=e.encoder,e.credentials?this.credentials=e.credentials:this.credentials={}}selectHeaderContentType(e){if(e.length===0)return;let t=e.find(i=>this.isJsonMime(i));return t===void 0?e[0]:t}selectHeaderAccept(e){if(e.length===0)return;let t=e.find(i=>this.isJsonMime(i));return t===void 0?e[0]:t}isJsonMime(e){let t=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return e!==null&&(t.test(e)||e.toLowerCase()==="application/json-patch+json")}lookupCredential(e){let t=this.credentials[e];return typeof t=="function"?t():t}};var YD=(()=>{let e=class e{constructor(i,r,o){this.httpClient=i,this.basePath="https://api.pdok.nl/bzk/locatieserver/search/v3_1",this.defaultHeaders=new wr,this.configuration=new vl,o&&(this.configuration=o),typeof this.configuration.basePath!="string"&&(typeof r!="string"&&(r=this.basePath),this.configuration.basePath=r),this.encoder=this.configuration.encoder||new By}addToHttpParams(i,r,o){return typeof r=="object"&&!(r instanceof Date)?i=this.addToHttpParamsRecursive(i,r):i=this.addToHttpParamsRecursive(i,r,o),i}addToHttpParamsRecursive(i,r,o){if(r==null)return i;if(typeof r=="object")if(Array.isArray(r))r.forEach(s=>i=this.addToHttpParamsRecursive(i,s,o));else if(r instanceof Date)if(o!=null)i=i.append(o,r.toISOString().substr(0,10));else throw Error("key may not be null if value is Date");else Object.keys(r).forEach(s=>i=this.addToHttpParamsRecursive(i,r[s],o!=null?`${o}.${s}`:s));else if(o!=null)i=i.append(o,r);else throw Error("key may not be null if value is not object or array");return i}freeGet(i,r,o,s,a,l,c,u,d,h,f,p="body",y=!1,m){let g=new on({encoder:this.encoder});i!=null&&(g=this.addToHttpParams(g,i,"q")),r!=null&&(g=this.addToHttpParams(g,r,"fl")),o!=null&&(g=this.addToHttpParams(g,o,"sort")),s!=null&&(g=this.addToHttpParams(g,s,"df")),a!=null&&(g=this.addToHttpParams(g,a,"rows")),l!=null&&(g=this.addToHttpParams(g,l,"start")),c!=null&&(g=this.addToHttpParams(g,c,"wt")),u!=null&&(g=this.addToHttpParams(g,u,"indent")),d!=null&&(g=this.addToHttpParams(g,d,"lat")),h!=null&&(g=this.addToHttpParams(g,h,"lon")),f!=null&&(g=this.addToHttpParams(g,f,"fq"));let v=this.defaultHeaders,_=m&&m.httpHeaderAccept;if(_===void 0){let E=[];_=this.configuration.selectHeaderAccept(E)}_!==void 0&&(v=v.set("Accept",_));let w=m&&m.context;w===void 0&&(w=new Wa);let b="json";return _&&(_.startsWith("text")?b="text":this.configuration.isJsonMime(_)?b="json":b="blob"),this.httpClient.get(`${this.configuration.basePath}/free`,{context:w,params:g,responseType:b,withCredentials:this.configuration.withCredentials,headers:v,observe:p,reportProgress:y})}lookupGet(i,r,o,s,a,l,c,u,d="body",h=!1,f){if(i==null)throw new Error("Required parameter id was null or undefined when calling lookupGet.");let p=new on({encoder:this.encoder});i!=null&&(p=this.addToHttpParams(p,i,"id")),r!=null&&(p=this.addToHttpParams(p,r,"rows")),o!=null&&(p=this.addToHttpParams(p,o,"start")),s!=null&&(p=this.addToHttpParams(p,s,"wt")),a!=null&&(p=this.addToHttpParams(p,a,"indent")),l!=null&&(p=this.addToHttpParams(p,l,"lat")),c!=null&&(p=this.addToHttpParams(p,c,"lon")),u!=null&&(p=this.addToHttpParams(p,u,"fq"));let y=this.defaultHeaders,m=f&&f.httpHeaderAccept;if(m===void 0){let _=[];m=this.configuration.selectHeaderAccept(_)}m!==void 0&&(y=y.set("Accept",m));let g=f&&f.context;g===void 0&&(g=new Wa);let v="json";return m&&(m.startsWith("text")?v="text":this.configuration.isJsonMime(m)?v="json":v="blob"),this.httpClient.get(`${this.configuration.basePath}/lookup`,{context:g,params:p,responseType:v,withCredentials:this.configuration.withCredentials,headers:y,observe:d,reportProgress:h})}suggestGet(i,r,o,s,a,l,c,u,d,h,f,p,y="body",m=!1,g){let v=new on({encoder:this.encoder});i!=null&&(v=this.addToHttpParams(v,i,"q")),r!=null&&(v=this.addToHttpParams(v,r,"fl")),o!=null&&(v=this.addToHttpParams(v,o,"sort")),s!=null&&(v=this.addToHttpParams(v,s,"qf")),a!=null&&(v=this.addToHttpParams(v,a,"bq")),l!=null&&(v=this.addToHttpParams(v,l,"rows")),c!=null&&(v=this.addToHttpParams(v,c,"start")),u!=null&&(v=this.addToHttpParams(v,u,"wt")),d!=null&&(v=this.addToHttpParams(v,d,"indent")),h!=null&&(v=this.addToHttpParams(v,h,"lat")),f!=null&&(v=this.addToHttpParams(v,f,"lon")),p!=null&&(v=this.addToHttpParams(v,p,"fq"));let _=this.defaultHeaders,w=g&&g.httpHeaderAccept;if(w===void 0){let C=[];w=this.configuration.selectHeaderAccept(C)}w!==void 0&&(_=_.set("Accept",w));let b=g&&g.context;b===void 0&&(b=new Wa);let E="json";return w&&(w.startsWith("text")?E="text":this.configuration.isJsonMime(w)?E="json":E="blob"),this.httpClient.get(`${this.configuration.basePath}/suggest`,{context:b,params:v,responseType:E,withCredentials:this.configuration.withCredentials,headers:_,observe:y,reportProgress:m})}};e.\u0275fac=function(r){return new(r||e)(R(qa),R(RF,8),R(vl,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function D6(n,e){if(n&1){let t=Ne();D(0,"div",5),ee("click",function(){let r=K(t).$implicit,o=L(2);return Z(o.onSelectSearch(r))}),D(1,"button",6)(2,"span"),Y(3),x()()()}if(n&2){let t=e.$implicit;A(3),Pt(t.weergavenaam)}}function S6(n,e){if(n&1){let t=Ne();D(0,"div",5),ee("click",function(){let r=K(t).$implicit,o=L(2);return Z(o.onSelectSearchID(r))}),D(1,"button",6)(2,"span"),Y(3),x()()()}if(n&2){let t=e.$implicit;A(3),Pt(t.displayName)}}function I6(n,e){if(n&1&&(D(0,"div"),we(1,D6,4,1,"div",4),Ha(2,"async"),we(3,S6,4,1,"div",4),Ha(4,"async"),x()),n&2){let t=L();A(),O("ngForOf",t.getNames(uc(2,2,t.$suggest))),A(2),O("ngForOf",t.getids(uc(4,4,t.$ids)))}}var kF=(()=>{let e=class e{constructor(i,r,o){this.pdokLocationService=i,this.locationService=r,this.idlookupService=o,this.searchListVisible=!1,this.searchLocation=""}ngOnInit(){}onSearchKey(i){let r=this.locationService.OgcAPI;if(r){let o=this.findTokens(i,r.lokaalIdRegex);if(o.length>6){let s=o[0];this.$ids=this.idlookupService.existsId(r.url,s)}}i.length>2&&(this.$suggest=this.pdokLocationService.suggestGet(i,"weergavenaam centroide_rd",void 0,void 0,void 0,7)),this.searchListVisible=!0}findTokens(i,r){return i.match(r)||[]}onSelectSearch(i){this.locationService.zoomto(i.centroide_rd,i.weergavenaam),this.searchListVisible=!1,this.searchLocation=i.weergavenaam}onSelectSearchID(i){if(i)this.locationService.zoomToFeatures(i.link,i.displayName),this.searchListVisible=!1,this.searchLocation=i.displayName;else throw Error("Wrong call for selectid")}getNames(i){if(i)return i.response.docs}getids(i){if(i)return i.filter(r=>typeof r!="boolean")}};e.\u0275fac=function(r){return new(r||e)(U(YD),U(ga),U(Ly))},e.\u0275cmp=Je({type:e,selectors:[["app-search"]],decls:5,vars:2,consts:[["searchbox",""],[1,"searchPanel"],["autoComplete","off","type","text","placeholder","Voer Locatie in","title","Voer Locatie in","list","locatie-auto-complete",1,"searchBox",3,"keyup","value"],[4,"ngIf"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],[1,"selectbutton"]],template:function(r,o){if(r&1){let s=Ne();D(0,"div",1)(1,"div")(2,"input",2,0),ee("keyup",function(){K(s);let l=cc(3);return Z(o.onSearchKey(l.value))}),x(),we(4,I6,5,6,"div",3),x()()}r&2&&(A(2),O("value",o.searchLocation),A(2),O("ngIf",o.searchListVisible))},dependencies:[Qr,ci,FA],styles:['.searchPanel[_ngcontent-%COMP%]{position:absolute;left:var(--searchleft, 5vw);width:var(--searchwidth, 30vw);top:var(--searchtop, 14vh);z-index:4}.searchBox[_ngcontent-%COMP%]{height:calc(var(--buttonheight, 1vh) *.5);font-size:var(--fontsize, 1vh);font-family:var(--fontfamily, "Roboto");background-color:#f5f5f5;width:var(--searchwidth, 20vw)}.selectbutton[_ngcontent-%COMP%]{min-height:var(--buttonheight, 1vh);font-size:var(--fontsize, 1vh);font-family:var(--font-family, "Roboto");width:var(--searchwidth, 20vw);margin-top:.5vh}']});let n=e;return n})();var PF="https://www.kaartenvannederland.nl/",OF=(()=>{let e=class e{constructor(i){this.locationService=i,this.kaartenNLUrl=PF,this.location=this.locationService.initialViewLocation}ngOnInit(){this.locationService.currentLocation.subscribe(i=>{this.location=i,this.xy=this.location.view.getCenter();var r=this.location.view.getZoom();let o=new on().append("geometry.x",this.xy[0]).append("geometry.y",this.xy[1]).append("zoomlevel",r);this.kaartenNLUrl=PF+"#?"+o.toString()})}};e.\u0275fac=function(r){return new(r||e)(U(ga))},e.\u0275cmp=Je({type:e,selectors:[["app-location"]],decls:8,vars:4,consts:[[1,"locationbox"],[1,".locitem"],["target","_blank",3,"href"]],template:function(r,o){r&1&&(D(0,"div",0)(1,"div",1),Y(2),x(),D(3,"div",1),Y(4),x(),D(5,"div",1)(6,"a",2),Y(7,"BGT Kaarten van Nederland"),x()()()),r&2&&(A(2),nw(" RD [x=",o.xy[0].toFixed(0),", y=",o.xy[1].toFixed(0),"] "),A(2),Sn(" ",o.location.name," "),A(2),Ls("href",o.kaartenNLUrl,Hp))},styles:[".locationbox[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;flex-direction:row;justify-content:space-between;align-items:stretch;width:50vw}.locitem[_ngcontent-%COMP%]{flex-basis:auto}"]});let n=e;return n})();var ya=(()=>{let e=class e{constructor(){this.url="https://www.pdok.nl"}openurl(){window.open(this.url,"_blank")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Je({type:e,selectors:[["app-showlink"]],inputs:{url:"url"},decls:3,vars:2,consts:[[1,"showlink"],["target","_blank",3,"href"]],template:function(r,o){r&1&&(D(0,"div",0)(1,"a",1),Y(2),x()()),r&2&&(A(),Ls("href",o.url,Hp),A(),Pt(o.url))},styles:[".showlink[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word;-ms-hyphens:auto;-moz-hyphens:auto;-webkit-hyphens:auto;hyphens:auto}"]});let n=e;return n})();function A6(n,e){if(n&1){let t=Ne();D(0,"div",14),ee("click",function(){let r=K(t).$implicit,o=L(2);return Z(o.onSelect(r.visualisatie))}),D(1,"button",15)(2,"span"),Y(3),x()()()}if(n&2){let t=e.$implicit;A(3),Pt(t.title)}}function R6(n,e){if(n&1&&(D(0,"div",12)(1,"div"),we(2,A6,4,1,"div",13),x()()),n&2){let t=L();A(2),O("ngForOf",t.visualisatie)}}var _l={demoVisualisatieRotate:!1,demoLocatieRotate:!1,previewFeature:!1},NF=(()=>{let e=class e{constructor(i){this.router=i,this.enumFromValue=(r,o,s=`${r} not in enum`)=>{let a=Object.keys(o).find(l=>o[l]===r);if(!a)throw new Error(s);return o[a]},this.visualisatie=Cb(),this.currentVis=re.BGTachtergrond,this.isShow=!1}ngOnInit(){}toggleShow(){this.isShow=!this.isShow,this.visualisatie=Cb()}receiveTitle(i){this.currentVis=i,this.styleurl=kd(this.currentVis).styleUrl}onSelect(i){this.currentVis=i,this.isShow=!1}};e.\u0275fac=function(r){return new(r||e)(U(Er))},e.\u0275cmp=Je({type:e,selectors:[["app-root"]],decls:19,vars:4,consts:[[1,"app-container"],[1,"head"],["alt","PDOK","src","assets/images/logo-pdok.svg",1,"logo"],[1,"vispanel"],["mat-button","",1,"visbutton",3,"click"],["id","divshow",4,"ngIf"],[1,"maparea",3,"titelEmit","visualisation"],[1,"foot"],[1,"stylelink"],[3,"url"],[1,"gitlink"],["href","https://github.com/PDOK/vectortile-demo-viewer","target","_blank","rel","noopener noreferrer"],["id","divshow"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["mat-button","",1,"lbutton"]],template:function(r,o){r&1&&(D(0,"div")(1,"div",0)(2,"div",1),be(3,"img",2),x(),D(4,"div"),be(5,"app-search"),x(),D(6,"div",3)(7,"button",4),ee("click",function(){return o.toggleShow()}),Y(8),x(),we(9,R6,3,1,"div",5),x(),D(10,"app-olmap",6),ee("titelEmit",function(a){return o.receiveTitle(a)}),x(),D(11,"div",7),be(12,"app-location"),D(13,"div",8),be(14,"app-showlink",9),x(),D(15,"div",10)(16,"a",11),Y(17,"Code on Github"),x()()()()(),be(18,"router-outlet")),r&2&&(A(8),Sn(" ",o.currentVis," "),A(),O("ngIf",o.isShow),A(),O("visualisation",o.currentVis),A(4),O("url",o.styleurl))},dependencies:[Qr,ci,hb,jy,kF,OF,ya],styles:[".head[_ngcontent-%COMP%]{position:absolute;background-color:var(--pdokblauw, #1a1e4f);height:var(--headerheight, 4em);display:flex;justify-content:left;align-items:center;z-index:3;top:var(--headertop, .5vh);right:var(--headerright, .5vh);width:var(--headerwidth, 99vw)}.logo[_ngcontent-%COMP%]{width:10vw;margin:1%}.app-container[_ngcontent-%COMP%]{height:100%;width:100%}.vispanel[_ngcontent-%COMP%]{position:absolute;background-color:transparant;left:var(--visselectleft, 45vw);width:var(--visselectwidth, 20vw);top:var(--buttontop, .5vh);z-index:4;overflow-wrap:break-word}.visbutton[_ngcontent-%COMP%]{min-height:var(--buttonheight, 1vh);height:var(--buttonheight, 1vh);width:var(--buttonwidth, 20vw);margin-top:.5vh;flex:1}.lbutton[_ngcontent-%COMP%]{min-height:calc(var(--buttonheight, 1vh) * .5);height:calc(var(--buttonheight, 1vh) * .5);width:var(--buttonwidth, 20vw);margin-top:.5vh;flex:1;text-align:left}.foot[_ngcontent-%COMP%]{position:absolute;background-color:#dedfe7;height:var(--footerheight, 3vh);display:flex;justify-content:left;align-items:left;z-index:5;top:var(--footertop, 96.5vh);right:var(--headerright, .5vh);width:var(--headerwidth, 99vw)}.gitlink[_ngcontent-%COMP%]{position:absolute;right:var(--headerright, .5vh);z-index:8}.stylelink[_ngcontent-%COMP%]{margin-left:4vw}"]});let n=e;return n})();function wl(n){return n!=null&&`${n}`!="false"}function jh(n,e=0){return k6(n)?Number(n):e}function k6(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function yu(n){return Array.isArray(n)?n:[n]}function qt(n){return n==null?"":typeof n=="string"?n:`${n}px`}function ps(n){return n instanceof Ze?n.nativeElement:n}var ZD;try{ZD=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ZD=!1}var Jt=(()=>{let e=class e{constructor(i){this._platformId=i,this.isBrowser=this._platformId?nd(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||ZD)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(r){return new(r||e)(R(li))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Bh;function P6(){if(Bh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Bh=!0}))}finally{Bh=Bh||!1}return Bh}function va(n){return P6()?n:!!n.capture}var bl;function FF(){if(bl==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return bl=!1,bl;if("scrollBehavior"in document.documentElement.style)bl=!0;else{let n=Element.prototype.scrollTo;n?bl=!/\{\s*\[native code\]\s*\}/.test(n.toString()):bl=!1}}return bl}var KD;function O6(){if(KD==null){let n=typeof document<"u"?document.head:null;KD=!!(n&&(n.createShadowRoot||n.attachShadow))}return KD}function LF(n){if(O6()){let e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Lr(n){return n.composedPath?n.composedPath()[0]:n.target}function zh(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function VF(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var N6=(()=>{let e=class e{create(i){return typeof MutationObserver>"u"?null:new MutationObserver(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var jF=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({providers:[N6]});let n=e;return n})();var BF=new Set,Cl,F6=(()=>{let e=class e{constructor(i,r){this._platform=i,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):V6}matchMedia(i){return(this._platform.WEBKIT||this._platform.BLINK)&&L6(i,this._nonce),this._matchMedia(i)}};e.\u0275fac=function(r){return new(r||e)(R(Jt),R(Xu,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function L6(n,e){if(!BF.has(n))try{Cl||(Cl=document.createElement("style"),e&&Cl.setAttribute("nonce",e),Cl.setAttribute("type","text/css"),document.head.appendChild(Cl)),Cl.sheet&&(Cl.sheet.insertRule(`@media ${n} {body{ }}`,0),BF.add(n))}catch(t){console.error(t)}}function V6(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var UF=(()=>{let e=class e{constructor(i,r){this._mediaMatcher=i,this._zone=r,this._queries=new Map,this._destroySubject=new Ke}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(i){return zF(yu(i)).some(o=>this._registerQuery(o).mql.matches)}observe(i){let o=zF(yu(i)).map(a=>this._registerQuery(a).observable),s=Aa(o);return s=ws(s.pipe(ur(1)),s.pipe(Ou(1),Bf(0))),s.pipe(me(a=>{let l={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:u})=>{l.matches=l.matches||c,l.breakpoints[u]=c}),l}))}_registerQuery(i){if(this._queries.has(i))return this._queries.get(i);let r=this._mediaMatcher.matchMedia(i),s={observable:new Oe(a=>{let l=c=>this._zone.run(()=>a.next(c));return r.addListener(l),()=>{r.removeListener(l)}}).pipe(Ul(r),me(({matches:a})=>({query:i,matches:a})),dn(this._destroySubject)),mql:r};return this._queries.set(i,s),s}};e.\u0275fac=function(r){return new(r||e)(R(F6),R(ve))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function zF(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}var WF=" ";function j6(n,e,t){let i=Hy(n,e);t=t.trim(),!i.some(r=>r.trim()===t)&&(i.push(t),n.setAttribute(e,i.join(WF)))}function B6(n,e,t){let i=Hy(n,e);t=t.trim();let r=i.filter(o=>o!==t);r.length?n.setAttribute(e,r.join(WF)):n.removeAttribute(e)}function Hy(n,e){return n.getAttribute(e)?.match(/\S+/g)??[]}var qF="cdk-describedby-message",zy="cdk-describedby-host",eS=0,YF=(()=>{let e=class e{constructor(i,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${eS++}`,this._document=i,this._id=B(ac)+"-"+eS++}describe(i,r,o){if(!this._canBeDescribed(i,r))return;let s=QD(r,o);typeof r!="string"?(GF(r,this._id),this._messageRegistry.set(s,{messageElement:r,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(r,o),this._isElementDescribedByMessage(i,s)||this._addMessageReference(i,s)}removeDescription(i,r,o){if(!r||!this._isElementNode(i))return;let s=QD(r,o);if(this._isElementDescribedByMessage(i,s)&&this._removeMessageReference(i,s),typeof r=="string"){let a=this._messageRegistry.get(s);a&&a.referenceCount===0&&this._deleteMessageElement(s)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let i=this._document.querySelectorAll(`[${zy}="${this._id}"]`);for(let r=0;ro.indexOf(qF)!=0);i.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(i,r){let o=this._messageRegistry.get(r);j6(i,"aria-describedby",o.messageElement.id),i.setAttribute(zy,this._id),o.referenceCount++}_removeMessageReference(i,r){let o=this._messageRegistry.get(r);o.referenceCount--,B6(i,"aria-describedby",o.messageElement.id),i.removeAttribute(zy)}_isElementDescribedByMessage(i,r){let o=Hy(i,"aria-describedby"),s=this._messageRegistry.get(r),a=s&&s.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(i,r){if(!this._isElementNode(i))return!1;if(r&&typeof r=="object")return!0;let o=r==null?"":`${r}`.trim(),s=i.getAttribute("aria-label");return o?!s||s.trim()!==o:!1}_isElementNode(i){return i.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(r){return new(r||e)(R(ke),R(Jt))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function QD(n,e){return typeof n=="string"?`${e||""}/${n}`:n}function GF(n,e){n.id||(n.id=`${qF}-${e}-${eS++}`)}function tS(n){return n.buttons===0||n.detail===0}function nS(n){let e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var z6=new J("cdk-input-modality-detector-options"),U6={ignoreKeys:[18,17,224,91,16]},XF=650,_u=va({passive:!0,capture:!0}),G6=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(i,r,o,s){this._platform=i,this._mostRecentTarget=null,this._modality=new Ht(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Lr(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(nS(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Lr(a)},this._options=j(j({},U6),s),this.modalityDetected=this._modality.pipe(Ou(1)),this.modalityChanged=this.modalityDetected.pipe(zf()),i.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,_u),o.addEventListener("mousedown",this._onMousedown,_u),o.addEventListener("touchstart",this._onTouchstart,_u)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,_u),document.removeEventListener("mousedown",this._onMousedown,_u),document.removeEventListener("touchstart",this._onTouchstart,_u))}};e.\u0275fac=function(r){return new(r||e)(R(Jt),R(ve),R(ke),R(z6,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Gy=function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n}(Gy||{}),H6=new J("cdk-focus-monitor-default-options"),Uy=va({passive:!0,capture:!0}),$y=(()=>{let e=class e{constructor(i,r,o,s,a){this._ngZone=i,this._platform=r,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Ke,this._rootNodeFocusAndBlurListener=l=>{let c=Lr(l);for(let u=c;u;u=u.parentElement)l.type==="focus"?this._onFocus(l,u):this._onBlur(l,u)},this._document=s,this._detectionMode=a?.detectionMode||Gy.IMMEDIATE}monitor(i,r=!1){let o=ps(i);if(!this._platform.isBrowser||o.nodeType!==1)return he();let s=LF(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return r&&(a.checkChildren=!0),a.subject;let l={checkChildren:r,subject:new Ke,rootNode:s};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(i){let r=ps(i),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(i,r,o){let s=ps(i),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([l,c])=>this._originChanged(l,r,c)):(this._setOrigin(r),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((i,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(i){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(i)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:i&&this._isLastInteractionFromInputLabel(i)?"mouse":"program"}_shouldBeAttributedToTouch(i){return this._detectionMode===Gy.EVENTUAL||!!i?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(i,r){i.classList.toggle("cdk-focused",!!r),i.classList.toggle("cdk-touch-focused",r==="touch"),i.classList.toggle("cdk-keyboard-focused",r==="keyboard"),i.classList.toggle("cdk-mouse-focused",r==="mouse"),i.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(i,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=i,this._originFromTouchInteraction=i==="touch"&&r,this._detectionMode===Gy.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?XF:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(i,r){let o=this._elementInfo.get(r),s=Lr(i);!o||!o.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),o)}_onBlur(i,r){let o=this._elementInfo.get(r);!o||o.checkChildren&&i.relatedTarget instanceof Node&&r.contains(i.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(i,r){i.subject.observers.length&&this._ngZone.run(()=>i.subject.next(r))}_registerGlobalListeners(i){if(!this._platform.isBrowser)return;let r=i.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Uy),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Uy)}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(dn(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(i){let r=i.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Uy),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Uy),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(i,r,o){this._setClasses(i,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(i){let r=[];return this._elementInfo.forEach((o,s)=>{(s===i||o.checkChildren&&s.contains(i))&&r.push([s,o])}),r}_isLastInteractionFromInputLabel(i){let{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!r||r===i||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA"||i.disabled)return!1;let s=i.labels;if(s){for(let a=0;a{let e=class e{constructor(i,r){this._platform=i,this._document=r,this._breakpointSubscription=B(UF).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return El.NONE;let i=this._document.createElement("div");i.style.backgroundColor="rgb(1,2,3)",i.style.position="absolute",this._document.body.appendChild(i);let r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(i):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(i.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return El.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return El.BLACK_ON_WHITE}return El.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let i=this._document.body.classList;i.remove(JD,HF,$F),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===El.BLACK_ON_WHITE?i.add(JD,HF):r===El.WHITE_ON_BLACK&&i.add(JD,$F)}}};e.\u0275fac=function(r){return new(r||e)(R(Jt),R(ke))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),KF=(()=>{let e=class e{constructor(i){i._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(r){return new(r||e)(R(iS))},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({imports:[jF]});let n=e;return n})();var $6=new J("cdk-dir-doc",{providedIn:"root",factory:W6});function W6(){return B(ke)}var q6=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Y6(n){let e=n?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?q6.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Wy=(()=>{let e=class e{constructor(i){if(this.value="ltr",this.change=new de,i){let r=i.body?i.body.dir:null,o=i.documentElement?i.documentElement.dir:null;this.value=Y6(r||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(R($6,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var _a=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({});let n=e;return n})();var X6=["mat-internal-form-field",""],K6=["*"];function Z6(){return!0}var Q6=new J("mat-sanity-checks",{providedIn:"root",factory:Z6}),ms=(()=>{let e=class e{constructor(i,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,i._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(i){return zh()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[i]}};e.\u0275fac=function(r){return new(r||e)(R(iS),R(Q6,8),R(ke))},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({imports:[_a,_a]});let n=e;return n})();var ir=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(ir||{}),oS=class{constructor(e,t,i,r=!1){this._renderer=e,this.element=t,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=ir.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},QF=va({passive:!0,capture:!0}),sS=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let t=Lr(e);t&&this._events.get(e.type)?.forEach((i,r)=>{(r===t||r.contains(t))&&i.forEach(o=>o.handleEvent(e))})}}addHandler(e,t,i,r){let o=this._events.get(t);if(o){let s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(t,new Map([[i,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,QF)})}removeHandler(e,t,i){let r=this._events.get(e);if(!r)return;let o=r.get(t);o&&(o.delete(i),o.size===0&&r.delete(t),r.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,QF)))}},JF={enterDuration:225,exitDuration:150},J6=800,eL=va({passive:!0,capture:!0}),tL=["mousedown","touchstart"],nL=["mouseup","mouseleave","touchend","touchcancel"],Uh=class Uh{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ps(i))}fadeInRipple(e,t,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=j(j({},JF),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);let s=i.radius||eY(e,t,r),a=e-r.left,l=t-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${a-s}px`,u.style.top=`${l-s}px`,u.style.height=`${s*2}px`,u.style.width=`${s*2}px`,i.color!=null&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);let d=window.getComputedStyle(u),h=d.transitionProperty,f=d.transitionDuration,p=h==="none"||f==="0s"||f==="0s, 0s"||r.width===0&&r.height===0,y=new oS(this,u,i,p);u.style.transform="scale3d(1, 1, 1)",y.state=ir.FADING_IN,i.persistent||(this._mostRecentTransientRipple=y);let m=null;return!p&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let g=()=>{m&&(m.fallbackTimer=null),clearTimeout(_),this._finishRippleTransition(y)},v=()=>this._destroyRipple(y),_=setTimeout(v,c+100);u.addEventListener("transitionend",g),u.addEventListener("transitioncancel",v),m={onTransitionEnd:g,onTransitionCancel:v,fallbackTimer:_}}),this._activeRipples.set(y,m),(p||!c)&&this._finishRippleTransition(y),y}fadeOutRipple(e){if(e.state===ir.FADING_OUT||e.state===ir.HIDDEN)return;let t=e.element,i=j(j({},JF),e.config.animation);t.style.transitionDuration=`${i.exitDuration}ms`,t.style.opacity="0",e.state=ir.FADING_OUT,(e._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let t=ps(e);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,tL.forEach(i=>{Uh._eventManager.addHandler(this._ngZone,i,t,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{nL.forEach(t=>{this._triggerElement.addEventListener(t,this,eL)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===ir.FADING_IN?this._startFadeOutTransition(e):e.state===ir.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let t=e===this._mostRecentTransientRipple,{persistent:i}=e.config;e.state=ir.VISIBLE,!i&&(!t||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let t=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=ir.HIDDEN,t!==null&&(e.element.removeEventListener("transitionend",t.onTransitionEnd),e.element.removeEventListener("transitioncancel",t.onTransitionCancel),t.fallbackTimer!==null&&clearTimeout(t.fallbackTimer)),e.element.remove()}_onMousedown(e){let t=tS(e),i=this._lastTouchStartEvent&&Date.now(){let t=e.state===ir.VISIBLE||e.config.terminateOnPointerUp&&e.state===ir.FADING_IN;!e.config.persistent&&t&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(tL.forEach(t=>Uh._eventManager.removeHandler(t,e,this)),this._pointerUpEventsRegistered&&(nL.forEach(t=>e.removeEventListener(t,this,eL)),this._pointerUpEventsRegistered=!1))}};Uh._eventManager=new sS;var aS=Uh;function eY(n,e,t){let i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}var tY=new J("mat-ripple-global-options"),iL=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){i&&this.fadeOutAllNonPersistent(),this._disabled=i,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(i){this._trigger=i,this._setupTriggerEventsIfEnabled()}constructor(i,r,o,s,a){this._elementRef=i,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new aS(this,r,i,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:j(j(j({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(i,r=0,o){return typeof i=="number"?this._rippleRenderer.fadeInRipple(i,r,j(j({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,j(j({},this.rippleConfig),i))}};e.\u0275fac=function(r){return new(r||e)(U(Ze),U(ve),U(Jt),U(tY,8),U(yr,8))},e.\u0275dir=rt({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){r&2&&nn("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let n=e;return n})();var rL=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Je({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(r,o){r&2&&nn("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[Di],attrs:X6,ngContentSelectors:K6,decls:1,vars:0,template:function(r,o){r&1&&(Qu(),Ju(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0});let n=e;return n})();var oL=(()=>{let e=class e{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(i){this._vertical=wl(i)}get inset(){return this._inset}set inset(i){this._inset=wl(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Je({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(r,o){r&2&&(_r("aria-orientation",o.vertical?"vertical":"horizontal"),nn("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[Di],decls:0,vars:0,template:function(r,o){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});let n=e;return n})(),sL=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({imports:[ms,ms]});let n=e;return n})();var iY=["mview"];function rY(n,e){if(n&1&&(D(0,"div")(1,"div",2),Y(2,"OGC API Feature:"),x(),be(3,"app-feature-view",3,0)(5,"app-showlink",4),x()),n&2){let t=L();A(5),O("url",t.ogcApiUrl)}}var aL=(()=>{let e=class e{constructor(i){this.cd=i,this.ogcApiUrl=""}ngAfterViewInit(){this.doMap(),this.cd.detectChanges()}doMap(){this.customMap&&this.customMap.nativeElement.setAttribute("items-url",this.ogcApiUrl)}};e.\u0275fac=function(r){return new(r||e)(U(rn))},e.\u0275cmp=Je({type:e,selectors:[["app-ogcmap"]],viewQuery:function(r,o){if(r&1&&Dn(iY,5),r&2){let s;fn(s=pn())&&(o.customMap=s.first)}},inputs:{ogcApiUrl:"ogcApiUrl"},decls:1,vars:1,consts:[["mview",""],[4,"ngIf"],[1,"featureMapCaption"],["projection","http://www.opengis.net/def/crs/EPSG/0/28992","background-map","BRT","show-bounding-box-button","false"],[3,"url"]],template:function(r,o){r&1&&we(0,rY,6,1,"div",1),r&2&&O("ngIf",o.ogcApiUrl)},dependencies:[ci,ya],styles:[".featureMapCaption[_ngcontent-%COMP%]{text-align:left;font-weight:700}"],changeDetection:0});let n=e;return n})();function sY(n,e){if(n&1&&(D(0,"td"),be(1,"app-showlink",10),x()),n&2){let t=L().$implicit;A(),O("url",t.value)}}function aY(n,e){if(n&1&&Y(0),n&2){let t=L().$implicit;Sn("",t.value," ")}}function lY(n,e){if(n&1&&(D(0,"tr")(1,"td"),Y(2),x(),we(3,sY,2,1,"td",9)(4,aY,1,1,"ng-template",null,0,dA),x()),n&2){let t=e.$implicit,i=cc(5),r=L(2);A(2),Pt(t.title),A(),O("ngIf",r.isLink(t))("ngIfElse",i)}}function cY(n,e){if(n&1&&(D(0,"div")(1,"table",3)(2,"caption",4),Y(3," Object Informatie: "),x(),D(4,"thead")(5,"th",5),Y(6,"Veld"),x(),D(7,"th",6),Y(8,"Waarde"),x()(),D(9,"tbody")(10,"tr")(11,"td"),Y(12,"Kleur"),x(),be(13,"td",7),x(),we(14,lY,6,3,"tr",2),x()(),be(15,"app-ogcmap",8)(16,"mat-divider"),x()),n&2){let t=e.$implicit,i=L();A(13),O("ngStyle",i.selectedFillStyle(t)),A(),O("ngForOf",i.getFeatureProperties(t).rows),A(),O("ogcApiUrl",i.getFeatureProperties(t).ogcurl)}}var uY=[0,0,0,0],lL=(()=>{let e=class e{constructor(i){this.cd=i,this.features=[],this.styleFunction={},this.fillColor=uY}getFeatures(){return this.features}isLink(i){return/^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/gm.test(i.value)}getFeatureProperties(i){let r=[],o=i.getProperties(),s="";for(let a in o){let l={title:a,value:o[a]};(a==="lokaal_id"||a==="lokaalid")&&this.ogcurl&&(s=dY(this.ogcurl,o.layer,"lokaal_id",o[a])),r.push(l)}return{rows:r,ogcurl:s}}selectedFillStyle(i){let r=this.styleFunction,o=this.resolution;return o?{"background-color":Oy(r(i,o))}:{"background-color":"white"}}};e.\u0275fac=function(r){return new(r||e)(U(rn))},e.\u0275cmp=Je({type:e,selectors:[["app-objectinfo"]],inputs:{features:"features",resolution:"resolution",styleFunction:"styleFunction",ogcurl:"ogcurl"},decls:2,vars:1,consts:[["elseBlock",""],[1,"objectinfo"],[4,"ngFor","ngForOf"],[1,"featuretable"],[1,"featuretablecaption"],["id","Veld"],["id","Waarde"],[3,"ngStyle"],[3,"ogcApiUrl"],[4,"ngIf","ngIfElse"],[3,"url"]],template:function(r,o){r&1&&(D(0,"div",1),we(1,cY,17,3,"div",2),x()),r&2&&(A(),O("ngForOf",o.getFeatures()))},dependencies:[Qr,ci,mm,oL,ya,aL],styles:['.objectinfo[_ngcontent-%COMP%]{margin-top:1em;margin-bottom:1em;margin-right:1em;background-color:#fff;overflow-y:scroll;max-height:80vh;font-family:var(--font-family, "Roboto")}.featuretable[_ngcontent-%COMP%]{text-align:left}.featuretablecaption[_ngcontent-%COMP%]{text-align:left;font-weight:700}']});let n=e;return n})();function dY(n,e,t,i){return n+"/collections/"+e+"/items?crs=http%3A%2F%2Fwww.opengis.net%2Fdef%2Fcrs%2FEPSG%2F0%2F28992&"+t+"="+i}var hY=["mapCanvas"],fY=["downloadLink"],pY="#FFFFFF",cL=(()=>{let e=class e{constructor(){}downloadMap(){if(this.mapCanvas){this.mapContext=this.mapCanvas.nativeElement.getContext("2d");var i=this;this.map.once("rendercomplete",function(){i.mapCanvas&&i.map.getViewport().querySelectorAll(".ol-layer canvas").forEach(o=>{i.makecanvas(o)}),navigator.msSaveBlob?navigator.msSaveBlob(i.mapCanvas.nativeElement.toBlob(),"map.png"):(i.downloadLink.nativeElement.href=i.mapCanvas.nativeElement.toDataURL("image/png"),i.downloadLink.nativeElement.download="map.png",i.downloadLink.nativeElement.click())}),this.map.renderSync()}}makecanvas(i){let r=this.map.getSize(),o=r[0],s=r[1];this.mapCanvas.nativeElement.width=o,this.mapCanvas.nativeElement.height=s,this.mapContext&&(this.mapContext.fillStyle=pY,this.mapContext.fillRect(0,0,o,s),this.mapContext.drawImage(i,0,0))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Je({type:e,selectors:[["app-mapexport"]],viewQuery:function(r,o){if(r&1&&(Dn(hY,5),Dn(fY,5)),r&2){let s;fn(s=pn())&&(o.mapCanvas=s.first),fn(s=pn())&&(o.downloadLink=s.first)}},inputs:{map:"map"},decls:8,vars:0,consts:[["downloadLink",""],["mapCanvas",""],["type","button","type","download",3,"click"],[1,"canvasHidden"]],template:function(r,o){if(r&1){let s=Ne();D(0,"button",2),ee("click",function(){return K(s),Z(o.downloadMap())}),Y(1,` Kaart downloaden `),x(),D(2,"div",3)(3,"a",null,0),Y(5,"download"),x(),be(6,"canvas",null,1),x()}},styles:[".canvasHidden[_ngcontent-%COMP%]{display:none}"]});let n=e;return n})();var mY=20,Gh=(()=>{let e=class e{constructor(i,r,o){this._ngZone=i,this._platform=r,this._scrolled=new Ke,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(i){this.scrollContainers.has(i)||this.scrollContainers.set(i,i.elementScrolled().subscribe(()=>this._scrolled.next(i)))}deregister(i){let r=this.scrollContainers.get(i);r&&(r.unsubscribe(),this.scrollContainers.delete(i))}scrolled(i=mY){return this._platform.isBrowser?new Oe(r=>{this._globalSubscription||this._addGlobalListener();let o=i>0?this._scrolled.pipe(Vf(i)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):he()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((i,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(i,r){let o=this.getAncestorScrollContainers(i);return this.scrolled(r).pipe($t(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(i){let r=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,i)&&r.push(s)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(i,r){let o=ps(r),s=i.getElementRef().nativeElement;do if(o==s)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let i=this._getWindow();return Pu(i.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(r){return new(r||e)(R(ve),R(Jt),R(ke,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var gY=20,Yy=(()=>{let e=class e{constructor(i,r,o){this._platform=i,this._change=new Ke,this._changeListener=s=>{this._change.next(s)},this._document=o,r.runOutsideAngular(()=>{if(i.isBrowser){let s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let i=this._getWindow();i.removeEventListener("resize",this._changeListener),i.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let i={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),i}getViewportRect(){let i=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:i.top,left:i.left,bottom:i.top+o,right:i.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let i=this._document,r=this._getWindow(),o=i.documentElement,s=o.getBoundingClientRect(),a=-s.top||i.body.scrollTop||r.scrollY||o.scrollTop||0,l=-s.left||i.body.scrollLeft||r.scrollX||o.scrollLeft||0;return{top:a,left:l}}change(i=gY){return i>0?this._change.pipe(Vf(i)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let i=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:i.innerWidth,height:i.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(r){return new(r||e)(R(Jt),R(ve),R(ke,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var qy=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({});let n=e;return n})(),lS=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({imports:[_a,qy,_a,qy]});let n=e;return n})();var Hh=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},$h=class extends Hh{constructor(e,t,i,r,o){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}},Xy=class extends Hh{constructor(e,t,i,r){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},cS=class extends Hh{constructor(e){super(),this.element=e instanceof Ze?e.nativeElement:e}},uS=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof $h)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Xy)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof cS)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Ky=class extends uS{constructor(e,t,i,r,o){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(e){let i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector||Ct.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);r!==-1&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var uL=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({});let n=e;return n})();var dL=FF(),dS=class{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=qt(-this._previousScrollPosition.left),e.style.top=qt(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,i=e.style,r=t.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),dL&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),dL&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}};var hS=class{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe($t(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Zy=class{enable(){}disable(){}attach(){}};function fS(n,e){return e.some(t=>{let i=n.bottomt.bottom,o=n.rightt.right;return i||r||o||s})}function hL(n,e){return e.some(t=>{let i=n.topt.bottom,o=n.leftt.right;return i||r||o||s})}var pS=class{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();fS(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},vY=(()=>{let e=class e{constructor(i,r,o,s){this._scrollDispatcher=i,this._viewportRuler=r,this._ngZone=o,this.noop=()=>new Zy,this.close=a=>new hS(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new dS(this._viewportRuler,this._document),this.reposition=a=>new pS(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}};e.\u0275fac=function(r){return new(r||e)(R(Gh),R(Yy),R(ve),R(ke))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),mS=class{constructor(e){if(this.scrollStrategy=new Zy,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let t=Object.keys(e);for(let i of t)e[i]!==void 0&&(this[i]=e[i])}}};var gS=class{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}};var vL=(()=>{let e=class e{constructor(i){this._attachedOverlays=[],this._document=i}ngOnDestroy(){this.detach()}add(i){this.remove(i),this._attachedOverlays.push(i)}remove(i){let r=this._attachedOverlays.indexOf(i);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(r){return new(r||e)(R(ke))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),_Y=(()=>{let e=class e extends vL{constructor(i,r){super(i),this._ngZone=r,this._keydownListener=o=>{let s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){let l=s[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(o)):l.next(o);break}}}add(i){super.add(i),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(r){return new(r||e)(R(ke),R(ve,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),wY=(()=>{let e=class e extends vL{constructor(i,r,o){super(i),this._platform=r,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Lr(s)},this._clickListener=s=>{let a=Lr(s),l=s.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let c=this._attachedOverlays.slice();for(let u=c.length-1;u>-1;u--){let d=c[u];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(fL(d.overlayElement,a)||fL(d.overlayElement,l))break;let h=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(s)):h.next(s)}}}add(i){if(super.add(i),!this._isAttached){let r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let i=this._document.body;i.removeEventListener("pointerdown",this._pointerDownListener,!0),i.removeEventListener("click",this._clickListener,!0),i.removeEventListener("auxclick",this._clickListener,!0),i.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(i.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(i){i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(r){return new(r||e)(R(ke),R(Jt),R(ve,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function fL(n,e){let t=typeof ShadowRoot<"u"&&ShadowRoot,i=e;for(;i;){if(i===n)return!0;i=t&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var _L=(()=>{let e=class e{constructor(i,r){this._platform=r,this._document=i}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let i="cdk-overlay-container";if(this._platform.isBrowser||zh()){let o=this._document.querySelectorAll(`.${i}[platform="server"], .${i}[platform="test"]`);for(let s=0;sthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new Ke,this._outsidePointerEvents=new Ke,this._renders=new Ke,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=Si(()=>X0(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),Po(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=j(j({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Ge(j({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=qt(this._config.width),e.height=qt(this._config.height),e.minWidth=qt(this._config.minWidth),e.minHeight=qt(this._config.minHeight),e.maxWidth=qt(this._config.maxWidth),e.maxHeight=qt(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,t,i){let r=yu(t||[]).filter(o=>!!o);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(dn(Qv(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},pL="cdk-overlay-connected-position-bounding-box",bY=/([A-Za-z%]+)$/,vS=class{get positions(){return this._preferredPositions}constructor(e,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Ke,this._resizeSubscription=_t.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(pL),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],s;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(u,c,i)){o.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!s||s.overlayFit.visibleAreal&&(l=u,a=c)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&xl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(pL),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r;if(i.originX=="center")r=e.left+e.width/2;else{let s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r=i.originX=="start"?s:a}t.left<0&&(r-=t.left);let o;return i.originY=="center"?o=e.top+e.height/2:o=i.originY=="top"?e.top:e.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(e,t,i){let r;i.overlayX=="center"?r=-t.width/2:i.overlayX==="start"?r=this._isRtl()?-t.width:0:r=this._isRtl()?0:-t.width;let o;return i.overlayY=="center"?o=-t.height/2:o=i.overlayY=="top"?0:-t.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,t,i,r){let o=gL(t),{x:s,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let u=0-s,d=s+o.width-i.width,h=0-a,f=a+o.height-i.height,p=this._subtractOverflows(o.width,u,d),y=this._subtractOverflows(o.height,h,f),m=p*y;return{visibleArea:m,isCompletelyWithinViewport:o.width*o.height===m,fitsInViewportVertically:y===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){let r=i.bottom-t.y,o=i.right-t.x,s=mL(this._overlayRef.getConfig().minHeight),a=mL(this._overlayRef.getConfig().minWidth),l=e.fitsInViewportVertically||s!=null&&s<=r,c=e.fitsInViewportHorizontally||a!=null&&a<=o;return l&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=gL(t),o=this._viewportRect,s=Math.max(e.x+r.width-o.width,0),a=Math.max(e.y+r.height-o.height,0),l=Math.max(o.top-i.top-e.y,0),c=Math.max(o.left-i.left-e.x,0),u=0,d=0;return r.width<=o.width?u=c||-s:u=e.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-p/2)}let l=t.overlayX==="start"&&!r||t.overlayX==="end"&&r,c=t.overlayX==="end"&&!r||t.overlayX==="start"&&r,u,d,h;if(c)h=i.width-e.x+this._viewportMargin*2,u=e.x-this._viewportMargin;else if(l)d=e.x,u=i.right-e.x;else{let f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=f*2,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(e,t){let i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=qt(i.height),r.top=qt(i.top),r.bottom=qt(i.bottom),r.width=qt(i.width),r.left=qt(i.left),r.right=qt(i.right),t.overlayX==="center"?r.alignItems="center":r.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?r.justifyContent="center":r.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=qt(o)),s&&(r.maxWidth=qt(s))}this._lastBoundingBoxSize=i,xl(this._boundingBox.style,r)}_resetBoundingBoxStyles(){xl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){xl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){let u=this._viewportRuler.getViewportScrollPosition();xl(i,this._getExactOverlayY(t,e,u)),xl(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=qt(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=qt(s.maxWidth):o&&(i.maxWidth="")),xl(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;r.bottom=`${s-(o.y+this._overlayRect.height)}px`}else r.top=qt(o.y);return r}_getExactOverlayX(e,t,i){let r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;r.right=`${a-(o.x+this._overlayRect.width)}px`}else r.left=qt(o.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:hL(e,i),isOriginOutsideView:fS(e,i),isOverlayClipped:hL(t,i),isOverlayOutsideView:fS(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&yu(e).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof Ze)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}};function xl(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function mL(n){if(typeof n!="number"&&n!=null){let[e,t]=n.split(bY);return!t||t==="px"?parseFloat(e):null}return n||null}function gL(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}function CY(n,e){return n===e?!0:n.isOriginClipped===e.isOriginClipped&&n.isOriginOutsideView===e.isOriginOutsideView&&n.isOverlayClipped===e.isOverlayClipped&&n.isOverlayOutsideView===e.isOverlayOutsideView}var yL="cdk-global-overlay-wrapper",_S=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(yL),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=(r==="100%"||r==="100vw")&&(!s||s==="100%"||s==="100vw"),c=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),u=this._xPosition,d=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",f="",p="",y="";l?y="flex-start":u==="center"?(y="center",h?p=d:f=d):h?u==="left"||u==="end"?(y="flex-end",f=d):(u==="right"||u==="start")&&(y="flex-start",p=d):u==="left"||u==="start"?(y="flex-start",f=d):(u==="right"||u==="end")&&(y="flex-end",p=d),e.position=this._cssPosition,e.marginLeft=l?"0":f,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":p,t.justifyContent=y,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(yL),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},EY=(()=>{let e=class e{constructor(i,r,o,s){this._viewportRuler=i,this._document=r,this._platform=o,this._overlayContainer=s}global(){return new _S}flexibleConnectedTo(i){return new vS(i,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(r){return new(r||e)(R(Yy),R(ke),R(Jt),R(_L))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),xY=0,wa=(()=>{let e=class e{constructor(i,r,o,s,a,l,c,u,d,h,f,p){this.scrollStrategies=i,this._overlayContainer=r,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=l,this._ngZone=c,this._document=u,this._directionality=d,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=p}create(i){let r=this._createHostElement(),o=this._createPaneElement(r),s=this._createPortalOutlet(o),a=new mS(i);return a.direction=a.direction||this._directionality.value,new yS(s,r,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(hn))}position(){return this._positionBuilder}_createPaneElement(i){let r=this._document.createElement("div");return r.id=`cdk-overlay-${xY++}`,r.classList.add("cdk-overlay-pane"),i.appendChild(r),r}_createHostElement(){let i=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalOutlet(i){return this._appRef||(this._appRef=this._injector.get($i)),new Ky(i,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(r){return new(r||e)(R(vY),R(_L),R(mr),R(EY),R(_Y),R(Ct),R(ve),R(ke),R(Wy),R(js),R(wY),R(yr,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var DY=new J("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=B(wa);return()=>n.scrollStrategies.reposition()}});function SY(n){return()=>n.scrollStrategies.reposition()}var IY={provide:DY,deps:[wa],useFactory:SY},wL=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({providers:[wa,IY],imports:[_a,uL,lS,lS]});let n=e;return n})();var qe=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(qe||{}),vo="*";function bL(n,e=null){return{type:qe.Sequence,steps:n,options:e}}function wS(n){return{type:qe.Style,styles:n,offset:null}}var ba=class{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Wh=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){let e=this.players.reduce((t,i)=>t===null||i.totalTime>t.totalTime?i:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Qy="!";var AY=["tooltip"],xL=20;var DL=new J("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let n=B(wa);return()=>n.scrollStrategies.reposition({scrollThrottle:xL})}});function RY(n){return()=>n.scrollStrategies.reposition({scrollThrottle:xL})}var kY={provide:DL,deps:[wa],useFactory:RY};function PY(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var OY=new J("mat-tooltip-default-options",{providedIn:"root",factory:PY});var CL="tooltip-panel",EL=va({passive:!0}),NY=8,FY=8,LY=24,VY=200,wu=(()=>{let e=class e{get position(){return this._position}set position(i){i!==this._position&&(this._position=i,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(i){this._positionAtOrigin=wl(i),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(i){this._disabled=wl(i),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(i){this._showDelay=jh(i)}get hideDelay(){return this._hideDelay}set hideDelay(i){this._hideDelay=jh(i),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(i){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=i!=null?String(i).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(i){this._tooltipClass=i,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(i,r,o,s,a,l,c,u,d,h,f,p){this._overlay=i,this._elementRef=r,this._scrollDispatcher=o,this._viewContainerRef=s,this._ngZone=a,this._platform=l,this._ariaDescriber=c,this._focusMonitor=u,this._dir=h,this._defaultOptions=f,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=jY,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Ke,this._injector=B(Ct),this._scrollStrategy=d,this._document=p,f&&(this._showDelay=f.showDelay,this._hideDelay=f.hideDelay,f.position&&(this.position=f.position),f.positionAtOrigin&&(this.positionAtOrigin=f.positionAtOrigin),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(dn(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=NY}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(dn(this._destroyed)).subscribe(i=>{i?i==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let i=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([r,o])=>{i.removeEventListener(r,o,EL)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(i,this.message,"tooltip"),this._focusMonitor.stopMonitoring(i)}show(i=this.showDelay,r){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(r);this._detach(),this._portal=this._portal||new $h(this._tooltipComponent,this._viewContainerRef);let s=this._tooltipInstance=o.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(dn(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(i)}hide(i=this.hideDelay){let r=this._tooltipInstance;r&&(r.isVisible()?r.hide(i):(r._cancelPendingAnimations(),this._detach()))}toggle(i){this._isTooltipVisible()?this.hide():this.show(void 0,i)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(i){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!i)&&s._origin instanceof Ze)return this._overlayRef;this._detach()}let r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?i||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return o.positionChanges.pipe(dn(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${CL}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(dn(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(dn(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(dn(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!VF(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(i){let r=i.getConfig().positionStrategy,o=this._getOrigin(),s=this._getOverlayPosition();r.withPositions([this._addOffset(j(j({},o.main),s.main)),this._addOffset(j(j({},o.fallback),s.fallback))])}_addOffset(i){let r=FY,o=!this._dir||this._dir.value=="ltr";return i.originY==="top"?i.offsetY=-r:i.originY==="bottom"?i.offsetY=r:i.originX==="start"?i.offsetX=o?-r:r:i.originX==="end"&&(i.offsetX=o?r:-r),i}_getOrigin(){let i=!this._dir||this._dir.value=="ltr",r=this.position,o;r=="above"||r=="below"?o={originX:"center",originY:r=="above"?"top":"bottom"}:r=="before"||r=="left"&&i||r=="right"&&!i?o={originX:"start",originY:"center"}:(r=="after"||r=="right"&&i||r=="left"&&!i)&&(o={originX:"end",originY:"center"});let{x:s,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:s,originY:a}}}_getOverlayPosition(){let i=!this._dir||this._dir.value=="ltr",r=this.position,o;r=="above"?o={overlayX:"center",overlayY:"bottom"}:r=="below"?o={overlayX:"center",overlayY:"top"}:r=="before"||r=="left"&&i||r=="right"&&!i?o={overlayX:"end",overlayY:"center"}:(r=="after"||r=="right"&&i||r=="left"&&!i)&&(o={overlayX:"start",overlayY:"center"});let{x:s,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:s,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Po(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(i){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=i,this._tooltipInstance._markForCheck())}_invertPosition(i,r){return this.position==="above"||this.position==="below"?r==="top"?r="bottom":r==="bottom"&&(r="top"):i==="end"?i="start":i==="start"&&(i="end"),{x:i,y:r}}_updateCurrentPositionClass(i){let{overlayY:r,originX:o,originY:s}=i,a;if(r==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=r==="bottom"&&s==="top"?"above":"below",a!==this._currentPosition){let l=this._overlayRef;if(l){let c=`${this._cssClassPrefix}-${CL}-`;l.removePanelClass(c+this._currentPosition),l.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",i=>{this._setupPointerExitEventsIfNeeded();let r;i.x!==void 0&&i.y!==void 0&&(r=i),this.show(void 0,r)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",i=>{let r=i.targetTouches?.[0],o=r?{x:r.clientX,y:r.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let s=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),this._defaultOptions.touchLongPressShowDelay??s)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let i=[];if(this._platformSupportsMouseEvents())i.push(["mouseleave",r=>{let o=r.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",r=>this._wheelListener(r)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let r=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};i.push(["touchend",r],["touchcancel",r])}this._addListeners(i),this._passiveListeners.push(...i)}_addListeners(i){i.forEach(([r,o])=>{this._elementRef.nativeElement.addEventListener(r,o,EL)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(i){if(this._isTooltipVisible()){let r=this._document.elementFromPoint(i.clientX,i.clientY),o=this._elementRef.nativeElement;r!==o&&!o.contains(r)&&this.hide()}}_disableNativeGesturesIfNecessary(){let i=this.touchGestures;if(i!=="off"){let r=this._elementRef.nativeElement,o=r.style;(i==="on"||r.nodeName!=="INPUT"&&r.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(i==="on"||!r.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}};e.\u0275fac=function(r){return new(r||e)(U(wa),U(Ze),U(Gh),U(Un),U(ve),U(Jt),U(YF),U($y),U(DL),U(Wy),U(OY,8),U(ke))},e.\u0275dir=rt({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(r,o){r&2&&nn("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let n=e;return n})(),jY=(()=>{let e=class e{constructor(i,r,o){this._changeDetectorRef=i,this._elementRef=r,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Ke,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=o==="NoopAnimations"}show(i){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},i)}hide(i){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},i)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:i}){(!i||!this._triggerElement.contains(i))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let i=this._elementRef.nativeElement.getBoundingClientRect();return i.height>LY&&i.width>=VY}_handleAnimationEnd({animationName:i}){(i===this._showAnimation||i===this._hideAnimation)&&this._finalizeAnimation(i===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(i){i?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(i){let r=this._tooltip.nativeElement,o=this._showAnimation,s=this._hideAnimation;if(r.classList.remove(i?s:o),r.classList.add(i?o:s),this._isVisible!==i&&(this._isVisible=i,this._changeDetectorRef.markForCheck()),i&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(r);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}i&&this._onShow(),this._animationsDisabled&&(r.classList.add("_mat-animation-noopable"),this._finalizeAnimation(i))}};e.\u0275fac=function(r){return new(r||e)(U(rn),U(Ze),U(yr,8))},e.\u0275cmp=Je({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(r,o){if(r&1&&Dn(AY,7),r&2){let s;fn(s=pn())&&(o._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,o){r&1&&ee("mouseleave",function(a){return o._handleMouseLeave(a)}),r&2&&It("zoom",o.isVisible()?1:null)},standalone:!0,features:[Di],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(r,o){if(r&1){let s=Ne();D(0,"div",1,0),ee("animationend",function(l){return K(s),Z(o._handleAnimationEnd(l))}),D(2,"div",2),Y(3),x()()}r&2&&(nn("mdc-tooltip--multiline",o._isMultiline),O("ngClass",o.tooltipClass),A(3),Pt(o.message))},dependencies:[OA],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color);color:var(--mdc-plain-tooltip-supporting-text-color);border-radius:var(--mdc-plain-tooltip-container-shape);font-family:var(--mdc-plain-tooltip-supporting-text-font);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let n=e;return n})();var SL=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({providers:[kY],imports:[KF,hc,wL,ms,ms,qy]});let n=e;return n})();var NL=(()=>{let e=class e{constructor(i,r){this._renderer=i,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(i,r){this._renderer.setProperty(this._elementRef.nativeElement,i,r)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};e.\u0275fac=function(r){return new(r||e)(U(Fs),U(Ze))},e.\u0275dir=rt({type:e});let n=e;return n})(),BY=(()=>{let e=class e extends NL{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ga(e)))(o||e)}})(),e.\u0275dir=rt({type:e,features:[vr]});let n=e;return n})(),av=new J("");var zY={provide:av,useExisting:Ps(()=>lv),multi:!0};function UY(){let n=Zr()?Zr().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var GY=new J(""),lv=(()=>{let e=class e extends NL{constructor(i,r,o){super(i,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!UY())}writeValue(i){let r=i??"";this.setProperty("value",r)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};e.\u0275fac=function(r){return new(r||e)(U(Fs),U(Ze),U(GY,8))},e.\u0275dir=rt({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&ee("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Kr([zY]),vr]});let n=e;return n})();var cv=new J(""),FL=new J("");function LL(n){return n!=null}function VL(n){return Vs(n)?wt(n):n}function jL(n){let e={};return n.forEach(t=>{e=t!=null?j(j({},e),t):e}),Object.keys(e).length===0?null:e}function BL(n,e){return e.map(t=>t(n))}function HY(n){return!n.validate}function zL(n){return n.map(e=>HY(e)?e:t=>e.validate(t))}function $Y(n){if(!n)return null;let e=n.filter(LL);return e.length==0?null:function(t){return jL(BL(t,e))}}function UL(n){return n!=null?$Y(zL(n)):null}function WY(n){if(!n)return null;let e=n.filter(LL);return e.length==0?null:function(t){let i=BL(t,e).map(VL);return Zv(i).pipe(me(jL))}}function GL(n){return n!=null?WY(zL(n)):null}function IL(n,e){return n===null?[e]:Array.isArray(n)?[...n,e]:[n,e]}function HL(n){return n._rawValidators}function $L(n){return n._rawAsyncValidators}function CS(n){return n?Array.isArray(n)?n:[n]:[]}function ev(n,e){return Array.isArray(n)?n.includes(e):n===e}function TL(n,e){let t=CS(e);return CS(n).forEach(r=>{ev(t,r)||t.push(r)}),t}function ML(n,e){return CS(e).filter(t=>!ev(n,t))}var tv=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=UL(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=GL(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},Eu=class extends tv{get formDirective(){return null}get path(){return null}},Zh=class extends tv{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},nv=class{constructor(e){this._cd=e}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}},qY={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},qEe=Ge(j({},qY),{"[class.ng-submitted]":"isSubmitted"}),WL=(()=>{let e=class e extends nv{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(U(Zh,2))},e.\u0275dir=rt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&nn("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[vr]});let n=e;return n})(),qL=(()=>{let e=class e extends nv{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(U(Eu,10))},e.\u0275dir=rt({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&nn("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[vr]});let n=e;return n})();var qh="VALID",Jy="INVALID",bu="PENDING",Yh="DISABLED",Ca=class{},iv=class extends Ca{constructor(e,t){super(),this.value=e,this.source=t}},Xh=class extends Ca{constructor(e,t){super(),this.pristine=e,this.source=t}},Kh=class extends Ca{constructor(e,t){super(),this.touched=e,this.source=t}},Cu=class extends Ca{constructor(e,t){super(),this.status=e,this.source=t}},ES=class extends Ca{constructor(e){super(),this.source=e}},xS=class extends Ca{constructor(e){super(),this.source=e}};function IS(n){return(uv(n)?n.validators:n)||null}function YY(n){return Array.isArray(n)?UL(n):n||null}function TS(n,e){return(uv(e)?e.asyncValidators:n)||null}function XY(n){return Array.isArray(n)?GL(n):n||null}function uv(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function YL(n,e,t){let i=n.controls;if(!(e?Object.keys(i):i).length)throw new q(1e3,"");if(!i[t])throw new q(1001,"")}function XL(n,e,t){n._forEachChild((i,r)=>{if(t[r]===void 0)throw new q(1002,"")})}var xu=class{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=td(()=>this.statusReactive()),this.statusReactive=Zu(void 0),this._pristine=td(()=>this.pristineReactive()),this.pristineReactive=Zu(!0),this._touched=td(()=>this.touchedReactive()),this.touchedReactive=Zu(!1),this._events=new Ke,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Si(this.statusReactive)}set status(e){Si(()=>this.statusReactive.set(e))}get valid(){return this.status===qh}get invalid(){return this.status===Jy}get pending(){return this.status==bu}get disabled(){return this.status===Yh}get enabled(){return this.status!==Yh}get pristine(){return Si(this.pristineReactive)}set pristine(e){Si(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Si(this.touchedReactive)}set touched(e){Si(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(TL(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(TL(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ML(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ML(e,this._rawAsyncValidators))}hasValidator(e){return ev(this._rawValidators,e)}hasAsyncValidator(e){return ev(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(Ge(j({},e),{sourceControl:i})),t&&e.emitEvent!==!1&&this._events.next(new Kh(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),t&&e.emitEvent!==!1&&this._events.next(new Kh(!1,i))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(Ge(j({},e),{sourceControl:i})),t&&e.emitEvent!==!1&&this._events.next(new Xh(!1,i))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),t&&e.emitEvent!==!1&&this._events.next(new Xh(!0,i))}markAsPending(e={}){this.status=bu;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Cu(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(Ge(j({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=Yh,this.errors=null,this._forEachChild(r=>{r.disable(Ge(j({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new iv(this.value,i)),this._events.next(new Cu(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ge(j({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=qh,this._forEachChild(i=>{i.enable(Ge(j({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Ge(j({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===qh||this.status===bu)&&this._runAsyncValidator(i,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new iv(this.value,t)),this._events.next(new Cu(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(Ge(j({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Yh:qh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=bu,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1};let i=VL(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((i,r)=>i&&i._find(r),this)}getError(e,t){let i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new Cu(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,i)}_initObservables(){this.valueChanges=new de,this.statusChanges=new de}_calculateStatus(){return this._allControlsDisabled()?Yh:this.errors?Jy:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(bu)?bu:this._anyControlsHaveStatus(Jy)?Jy:qh}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&this._events.next(new Xh(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new Kh(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){uv(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=YY(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=XY(this._rawAsyncValidators)}},rv=class extends xu{constructor(e,t,i){super(IS(t),TS(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){XL(this,!0,e),Object.keys(e).forEach(i=>{YL(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(i=>{let r=this.controls[i];r&&r.patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,r)=>{i.reset(e?e[r]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>i._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,i]of Object.entries(this.controls))if(this.contains(t)&&e(i))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,i,r)=>((i.enabled||this.disabled)&&(t[r]=i.value),t))}_reduceChildren(e,t){let i=e;return this._forEachChild((r,o)=>{i=t(i,r,o)}),i}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var DS=class extends rv{};var MS=new J("CallSetDisabledState",{providedIn:"root",factory:()=>dv}),dv="always";function KY(n,e){return[...e.path,n]}function AL(n,e,t=dv){AS(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(n.disabled),QY(n,e),e9(n,e),JY(n,e),ZY(n,e)}function RL(n,e,t=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),sv(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function ov(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function ZY(n,e){if(e.valueAccessor.setDisabledState){let t=i=>{e.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}function AS(n,e){let t=HL(n);e.validator!==null?n.setValidators(IL(t,e.validator)):typeof t=="function"&&n.setValidators([t]);let i=$L(n);e.asyncValidator!==null?n.setAsyncValidators(IL(i,e.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();ov(e._rawValidators,r),ov(e._rawAsyncValidators,r)}function sv(n,e){let t=!1;if(n!==null){if(e.validator!==null){let r=HL(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.validator);o.length!==r.length&&(t=!0,n.setValidators(o))}}if(e.asyncValidator!==null){let r=$L(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.asyncValidator);o.length!==r.length&&(t=!0,n.setAsyncValidators(o))}}}let i=()=>{};return ov(e._rawValidators,i),ov(e._rawAsyncValidators,i),t}function QY(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&KL(n,e)})}function JY(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&KL(n,e),n.updateOn!=="submit"&&n.markAsTouched()})}function KL(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function e9(n,e){let t=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}function t9(n,e){n==null,AS(n,e)}function n9(n,e){return sv(n,e)}function i9(n,e){if(!n.hasOwnProperty("model"))return!1;let t=n.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function r9(n){return Object.getPrototypeOf(n.constructor)===BY}function o9(n,e){n._syncPendingControls(),e.forEach(t=>{let i=t.control;i.updateOn==="submit"&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function s9(n,e){if(!e)return null;Array.isArray(e);let t,i,r;return e.forEach(o=>{o.constructor===lv?t=o:r9(o)?i=o:r=o}),r||i||t||null}function a9(n,e){let t=n.indexOf(e);t>-1&&n.splice(t,1)}function kL(n,e){let t=n.indexOf(e);t>-1&&n.splice(t,1)}function PL(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var _o=class extends xu{constructor(e=null,t,i){super(IS(t),TS(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),uv(t)&&(t.nonNullable||t.initialValueIsDefault)&&(PL(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){kL(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){kL(this._onDisabledChange,e)}_forEachChild(e){}_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(e){PL(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var l9=n=>n instanceof _o;var ZL=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=rt({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let n=e;return n})();var QL=new J("");var c9={provide:Eu,useExisting:Ps(()=>RS)},RS=(()=>{let e=class e extends Eu{get submitted(){return Si(this._submittedReactive)}set submitted(i){this._submittedReactive.set(i)}constructor(i,r,o){super(),this.callSetDisabledState=o,this._submitted=td(()=>this._submittedReactive()),this._submittedReactive=Zu(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new de,this._setValidators(i),this._setAsyncValidators(r)}ngOnChanges(i){this._checkFormPresent(),i.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(sv(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(i){let r=this.form.get(i.path);return AL(r,i,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(i),r}getControl(i){return this.form.get(i.path)}removeControl(i){RL(i.control||null,i,!1),a9(this.directives,i)}addFormGroup(i){this._setUpFormContainer(i)}removeFormGroup(i){this._cleanUpFormContainer(i)}getFormGroup(i){return this.form.get(i.path)}addFormArray(i){this._setUpFormContainer(i)}removeFormArray(i){this._cleanUpFormContainer(i)}getFormArray(i){return this.form.get(i.path)}updateModel(i,r){this.form.get(i.path).setValue(r)}onSubmit(i){return this._submittedReactive.set(!0),o9(this.form,this.directives),this.ngSubmit.emit(i),this.form._events.next(new ES(this.control)),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this._submittedReactive.set(!1),this.form._events.next(new xS(this.form))}_updateDomValue(){this.directives.forEach(i=>{let r=i.control,o=this.form.get(i.path);r!==o&&(RL(r||null,i),l9(o)&&(AL(o,i,this.callSetDisabledState),i.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(i){let r=this.form.get(i.path);t9(r,i),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(i){if(this.form){let r=this.form.get(i.path);r&&n9(r,i)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){AS(this.form,this),this._oldForm&&sv(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(U(cv,10),U(FL,10),U(MS,8))},e.\u0275dir=rt({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&ee("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Kr([c9]),vr,xn]});let n=e;return n})();var u9={provide:Zh,useExisting:Ps(()=>kS)},kS=(()=>{let e=class e extends Zh{set isDisabled(i){}constructor(i,r,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new de,this._ngModelWarningSent=!1,this._parent=i,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=s9(this,s)}ngOnChanges(i){this._added||this._setUpControl(),i9(i,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}get path(){return KY(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(U(Eu,13),U(cv,10),U(FL,10),U(av,10),U(QL,8))},e.\u0275dir=rt({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Kr([u9]),vr,xn]});let n=e;return n})();var JL=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({});let n=e;return n})(),SS=class extends xu{constructor(e,t,i){super(IS(t),TS(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,i={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,t={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,i={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),t&&(this.controls.splice(r,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){XL(this,!1,e),e.forEach((i,r)=>{YL(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(e.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,i)=>i._syncPendingControls()?!0:t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function OL(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var e2=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let i=new e;return i.useNonNullable=!0,i}group(i,r=null){let o=this._reduceControls(i),s={};return OL(r)?s=r:r!==null&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new rv(o,s)}record(i,r=null){let o=this._reduceControls(i);return new DS(o,r)}control(i,r,o){let s={};return this.useNonNullable?(OL(r)?s=r:(s.validators=r,s.asyncValidators=o),new _o(i,Ge(j({},s),{nonNullable:!0}))):new _o(i,r,o)}array(i,r,o){let s=i.map(a=>this._createControl(a));return new SS(s,r,o)}_reduceControls(i){let r={};return Object.keys(i).forEach(o=>{r[o]=this._createControl(i[o])}),r}_createControl(i){if(i instanceof _o)return i;if(i instanceof xu)return i;if(Array.isArray(i)){let r=i[0],o=i.length>1?i[1]:null,s=i.length>2?i[2]:null;return this.control(r,o,s)}else return this.control(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var t2=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:MS,useValue:i.callSetDisabledState??dv}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({imports:[JL]});let n=e;return n})(),n2=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:QL,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:MS,useValue:i.callSetDisabledState??dv}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({imports:[JL]});let n=e;return n})();var h9=["switch"],f9=["*"];function p9(n,e){n&1&&(D(0,"div",10),jp(),D(1,"svg",12),be(2,"path",13),x(),D(3,"svg",14),be(4,"path",15),x()())}var m9=new J("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),g9={provide:av,useExisting:Ps(()=>wo),multi:!0},hv=class{constructor(e,t){this.source=e,this.checked=t}},y9=0,wo=(()=>{let e=class e{_createChangeEvent(i){return new hv(this,i)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(i){this._checked=i,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(i,r,o,s,a,l){this._elementRef=i,this._focusMonitor=r,this._changeDetectorRef=o,this.defaults=a,this._onChange=c=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new de,this.toggleChange=new de,this.tabIndex=parseInt(s)||0,this.color=a.color||"accent",this._noopAnimations=l==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++y9}`,this.hideIcon=a.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{i==="keyboard"||i==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):i||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(i){i.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(i){this.checked=!!i}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}validate(i){return this.required&&i.value!==!0?{required:!0}:null}registerOnValidatorChange(i){this._validatorOnChange=i}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new hv(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};e.\u0275fac=function(r){return new(r||e)(U(Ze),U($y),U(rn),Gp("tabindex"),U(m9),U(yr,8))},e.\u0275cmp=Je({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(r,o){if(r&1&&Dn(h9,5),r&2){let s;fn(s=pn())&&(o._switchElement=s.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(r,o){r&2&&(em("id",o.id),_r("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),No(o.color?"mat-"+o.color:""),nn("mat-mdc-slide-toggle-focused",o._focused)("mat-mdc-slide-toggle-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",Wi],color:"color",disabled:[2,"disabled","disabled",Wi],disableRipple:[2,"disableRipple","disableRipple",Wi],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:lw(i)],checked:[2,"checked","checked",Wi],hideIcon:[2,"hideIcon","hideIcon",Wi]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[Kr([g9,{provide:cv,useExisting:e,multi:!0}]),Oo,xn,Di],ngContentSelectors:f9,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(r,o){if(r&1){let s=Ne();Qu(),D(0,"div",1)(1,"button",2,0),ee("click",function(){return K(s),Z(o._handleClick())}),be(3,"div",3),D(4,"div",4)(5,"div",5)(6,"div",6),be(7,"div",7),x(),D(8,"div",8),be(9,"div",9),x(),we(10,p9,5,0,"div",10),x()()(),D(11,"label",11),ee("click",function(l){return K(s),Z(l.stopPropagation())}),Ju(12),x()()}if(r&2){let s=cc(2);O("labelPosition",o.labelPosition),A(),nn("mdc-switch--selected",o.checked)("mdc-switch--unselected",!o.checked)("mdc-switch--checked",o.checked)("mdc-switch--disabled",o.disabled),O("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled),_r("id",o.buttonId)("name",o.name)("aria-label",o.ariaLabel)("aria-labelledby",o._getAriaLabelledBy())("aria-describedby",o.ariaDescribedby)("aria-required",o.required||null)("aria-checked",o.checked),A(8),O("matRippleTrigger",s)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),A(),ew(o.hideIcon?-1:10),A(),O("for",o.buttonId),_r("id",o._labelId)}},dependencies:[iL,rL],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color);font-family:var(--mat-switch-label-text-font);line-height:var(--mat-switch-label-text-line-height);font-size:var(--mat-switch-label-text-size);letter-spacing:var(--mat-switch-label-text-tracking);font-weight:var(--mat-switch-label-text-weight)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0});let n=e;return n})();var i2=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({imports:[wo,ms,ms]});let n=e;return n})();var v9=["lview"];function _9(n,e){if(n&1){let t=Ne();D(0,"div",15),ee("click",function(){let r=K(t).$implicit,o=L(2);return Z(o.onSelectLevel(r.value))}),D(1,"button",16)(2,"span"),Y(3),x()()()}if(n&2){let t=e.$implicit,i=L(2);A(),O("disabled",i.disEnabledLevel(t)),A(2),Pt(t.value)}}function w9(n,e){if(n&1){let t=Ne();Qp(0),D(1,"div",18),Y(2),x(),D(3,"div",19)(4,"input",20),nm("colorPickerChange",function(r){K(t);let o=L().$implicit;return iw(o.value.rbgString,r)||(o.value.rbgString=r),Z(r)}),ee("colorPickerChange",function(){K(t);let r=L().$implicit,o=L(3);return Z(o.onColorChange(r))}),x()(),Jp()}if(n&2){let t=L().$implicit;A(),O("ngStyle",t.value.textcolorRbgString()),A(),Sn(" ",t.value.sampleText," "),A(2),It("background",t.value.rbgString),tm("colorPicker",t.value.rbgString),O("cpOutputFormat","rgba")("cpAlphaChannel","enabled")("cpSaveClickOutside",!0)}}function b9(n,e){if(n&1){let t=Ne();D(0,"tr")(1,"td")(2,"input",17),ee("change",function(r){let o=K(t).$implicit,s=L(3);return Z(s.onCheckboxChange(r,o))}),x(),Y(3),we(4,w9,5,8,"ng-container",5),x()()}if(n&2){let t=e.$implicit;A(2),O("checked",t.value.show),A(),Sn(" ",t.key," "),A(),O("ngIf",t.value.show)}}function C9(n,e){if(n&1){let t=Ne();D(0,"tr")(1,"td"),Y(2,"labels"),x(),D(3,"td")(4,"input",17),ee("change",function(r){K(t);let o=L(2);return Z(o.onCheckboxLabelsChange(r))}),x()(),D(5,"td"),we(6,b9,5,3,"tr",14),Ha(7,"keyvalue"),x()()}if(n&2){let t=L(2);A(4),O("checked",t.colorArrayChecked(!0)),A(2),O("ngForOf",uc(7,2,t.getItems(!0)))}}function E9(n,e){if(n&1){let t=Ne();D(0,"div")(1,"div",19)(2,"input",20),nm("colorPickerChange",function(r){K(t);let o=L().$implicit;return iw(o.value.rbgString,r)||(o.value.rbgString=r),Z(r)}),ee("colorPickerChange",function(){K(t);let r=L().$implicit,o=L(2);return Z(o.onColorChange(r))}),x()()()}if(n&2){let t=L().$implicit;A(2),It("background",t.value.rbgString),tm("colorPicker",t.value.rbgString),O("cpOutputFormat","rgba")("cpAlphaChannel","enabled")("cpSaveClickOutside",!0)}}function x9(n,e){if(n&1){let t=Ne();D(0,"tr")(1,"td"),Y(2),x(),D(3,"td")(4,"input",17),ee("change",function(r){let o=K(t).$implicit,s=L(2);return Z(s.onCheckboxChange(r,o))}),x()(),D(5,"td"),we(6,E9,3,6,"div",5),x()()}if(n&2){let t=e.$implicit;A(2),Pt(t.key),A(2),O("checked",t.value.show),A(2),O("ngIf",t.value.show)}}function D9(n,e){if(n&1){let t=Ne();D(0,"table")(1,"caption",6),Y(2," Legenda Aanpassen "),x(),D(3,"thead")(4,"th",7),Y(5,"Waarde"),x(),D(6,"th",7),Y(7,"Tonen"),x(),D(8,"th",8),Y(9,"Visualisatie"),x()(),D(10,"tbody")(11,"tr")(12,"td"),Y(13,"alle waarden"),x(),D(14,"td")(15,"input",9),ee("change",function(r){K(t);let o=L();return Z(o.onCheckboxAllChange(r))}),x()(),D(16,"td")(17,"div",10)(18,"div",11)(19,"button",12),ee("click",function(){K(t);let r=L();return Z(r.NewColorMap())}),Y(20," Reset Legenda "),x()(),we(21,_9,4,2,"div",13),Ha(22,"keyvalue"),x()()(),we(23,C9,8,4,"tr",5)(24,x9,7,3,"tr",14),Ha(25,"keyvalue"),x()()}if(n&2){let t=L();A(21),O("ngForOf",uc(22,3,t.detaillevel)),A(2),O("ngIf",t.hasTextlabels()),A(),O("ngForOf",cA(25,5,t.getItems(!1),t.valueAscOrder))}}var r2=(()=>{let e=class e{get isShowStyler(){return this._isShowStyler}set isShowStyler(i){this._isShowStyler=i,this._isShowStyler||this.changeUrl()}constructor(){this.StyleUrl="",this.detaillevel=ma,this.valueAscOrder=(i,r)=>i.value.label.toLowerCase().localeCompare(r.value.label.toLowerCase()),this._isShowStyler=!1}ngAfterViewInit(){this.isShowStyler=!1}toggleShowStdLegend(){this.isShowStyler=!this.isShowStyler,this.isShowStyler||this.NewColorMap()}changeUrl(){this.customLegendElement?this.customLegendElement.nativeElement.setAttribute("style-url",this.StyleUrl):console.log("to urly ")}hasTextlabels(){return this.ColorMap.hasText()}onCheckboxAllChange(i){this.ColorMap.setShowAll(i.target.checked),this.refreshlayer()}onSelectLevel(i){this.ColorMap.setSelector(i),this.refreshlayer()}disEnabledLevel(i){return i.value===this.ColorMap.getLegendLevel()}onCheckboxLabelsChange(i){this.ColorMap.setShowAllText(i.target.checked),this.refreshlayer()}NewColorMap(){this.clearColorMap(),this.refreshlayer()}clearColorMap(){this.ColorMap.clear()}getItems(i){return this.ColorMap.getItems(i)}colorArrayChecked(i){let r=this.ColorMap.getItems(i);for(let o of r.keys())if(r.get(o)?.show)return!0;return!1}onCheckboxChange(i,r){let o=r.value,s=new yo(o.label,o.legendfeature,o.mapbox,o.annotation);s.show=i.target.checked,this.ColorMap.has(o.label)&&this.ColorMap.set(o.label,s),this.refreshlayer()}onColorChange(i){i.value.mapbox=!1,this.refreshlayer()}refreshlayer(){this.Layer.getSource()?.refresh()}getTitelItems(){return this.StyleUrl.toLowerCase().includes("top10nl")?"id":"type,plus_type,functie,fysiek_voorkomen,openbareruimtetype"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Je({type:e,selectors:[["app-mapstyler"]],viewQuery:function(r,o){if(r&1&&Dn(v9,5),r&2){let s;fn(s=pn())&&(o.customLegendElement=s.first)}},inputs:{Layer:"Layer",ColorMap:"ColorMap",StyleUrl:"StyleUrl"},decls:7,vars:6,consts:[["lview",""],[1,"scroll"],["labelPosition","before","aria-label","Toon object informatie",1,"check",3,"click","matTooltip","matTooltipPosition","checked"],[1,"legend-view"],["style-url","",3,"hidden","titleItems"],[4,"ngIf"],[1,"legend-table-caption"],["id","Veld"],["id","Waarde"],["type","checkbox","checked","",3,"change"],[1,"legend-button-area"],[1,"legend-button-area-item"],["type","checkbox",3,"click"],["class","legend-button-area-item",3,"click",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"legend-button-area-item",3,"click"],[3,"disabled"],["type","checkbox",3,"change","checked"],[3,"ngStyle"],[1,"colorpick"],[3,"colorPickerChange","colorPicker","cpOutputFormat","cpAlphaChannel","cpSaveClickOutside"]],template:function(r,o){if(r&1){let s=Ne();D(0,"div",1)(1,"mat-slide-toggle",2),ee("click",function(){return K(s),Z(o.toggleShowStdLegend())}),Y(2,"Visualisatie aanpassen"),x(),D(3,"div",3),be(4,"app-legend-view",4,0),x(),we(6,D9,26,8,"table",5),x()}r&2&&(A(),O("matTooltip",o.isShowStyler?"Selecxt om Standaard visualisatie tonen":"Select om zelf de visualisatie aan te passen")("matTooltipPosition","left")("checked",o.isShowStyler),A(3),O("hidden",o.isShowStyler)("titleItems",o.getTitelItems()),A(2),O("ngIf",o.isShowStyler))},dependencies:[Qr,ci,mm,uR,wu,wo,LA],styles:['div.scroll[_ngcontent-%COMP%]{text-align:left;background-color:#fff;margin-top:1em;margin-bottom:1em;margin-right:1em;font-size:var(--fontsize, 2.5vh);font-family:var(--font-family, "Roboto");max-height:80vh;overflow-x:hidden;overflow-y:auto}.legend-table-caption[_ngcontent-%COMP%]{text-align:left;font-weight:700}.legend-button-area[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;flex-direction:row;justify-content:space-between;align-items:stretch;width:15vw}.legend-button-area-item[_ngcontent-%COMP%]{width:20%;height:90%}.switch[_ngcontent-%COMP%]{display:inline-block;height:34px;position:relative;width:60px}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.slider[_ngcontent-%COMP%]{background-color:#ccc;cursor:pointer;inset:0;position:absolute;transition:.4s}.slider[_ngcontent-%COMP%]:before{background-color:#fff;bottom:4px;content:"";height:26px;left:4px;position:absolute;transition:.4s;width:26px}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#66bb6a}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(26px)}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%}']});let n=e;return n})();var o2=(()=>{let e=class e{get isDemoVisualisatieRotate(){return _l.demoVisualisatieRotate}set isDemoVisualisatieRotate(i){_l.demoVisualisatieRotate=i}get isDemoLocatieRotate(){return _l.demoLocatieRotate}set isDemoLocatieRotate(i){_l.demoLocatieRotate=i}get isPreviewFeature(){return _l.previewFeature}set isPreviewFeature(i){_l.previewFeature=i}constructor(i,r){this.locationService=i,this.localStorageService=r,this.visEmit=new de,this.demotextLocatieAan="Willekeurige locatie roulerend",this.demotextLocatieUit="Willekeurige locatie roulerend",this.demotextLocatie=this.demotextLocatieAan,this.demotextVisualisatieAan="Willekeurige visualisatie roulerend",this.demotextVisualisatieUit="Willekeurige visualisatie roulerend",this.demotextVisualisatie=this.demotextVisualisatieAan}ngOnInit(){this.locationService.currentLocation.subscribe(i=>{})}getAllAvailableFonts(){let i=document.fonts;console.log(i);let r=[];return i.forEach(o=>{r.push(o)}),r}DemoPreviewFeaturesToggle(){this.isPreviewFeature=!this.isPreviewFeature}DemoRandomLocationToggle(){this.isDemoLocatieRotate=!this.isDemoLocatieRotate,this.isDemoLocatieRotate?(this.demotextLocatie=this.demotextLocatieUit,this.gotoRandomLocation()):this.demotextLocatie=this.demotextLocatieAan}DemogotoStartLocationOnMap(){this.localStorageService.removeAll(),this.visEmit.emit(re.BGTstandaard),this.isDemoVisualisatieRotate=!1,this.isDemoLocatieRotate=!1;let i=this.locationService.initialView;this.locationService.changeView(i)}DemoVisualisationToggle(){this.isDemoVisualisatieRotate=!this.isDemoVisualisatieRotate,this.isDemoVisualisatieRotate?(this.demotextVisualisatie=this.demotextVisualisatieUit,this.visEmit.emit(re.BGTstandaard),this.repeating_style_function()):this.demotextVisualisatie=this.demotextVisualisatieAan}gotoRandomLocation(){if(this.isDemoLocatieRotate){let i=155e3+Math.round(Math.random()*5e4),r=463e3+Math.round(Math.random()*5e4),o=new _n({projection:this.locationService.rdProjection,center:[i,r],zoom:13,enableRotation:!1});this.locationService.changeView(o),setTimeout(()=>{this.gotoRandomLocation()},8e3)}}repeating_style_function(){this.isDemoVisualisatieRotate&&(this.visEmit.emit(ik(re)),setTimeout(()=>{this.repeating_style_function()},Math.round(Math.random()*4e3)))}};e.\u0275fac=function(r){return new(r||e)(U(ga),U(Hs))},e.\u0275cmp=Je({type:e,selectors:[["app-demobox"]],outputs:{visEmit:"visEmit"},decls:14,vars:13,consts:[[1,"demo"],["type","button",3,"click"],["labelPosition","before",1,"check",3,"click","matTooltip","matTooltipPosition","aria-label","checked"],["labelPosition","before","aria-label","preview features",1,"check",3,"click","matTooltip","matTooltipPosition","checked"]],template:function(r,o){r&1&&(D(0,"div",0)(1,"h3"),Y(2,"Vectortile Demo Viewer"),x(),Y(3," Deze viewer is gemaakt om BGT vectortiles te demonstreren "),D(4,"div")(5,"button",1),ee("click",function(){return o.DemogotoStartLocationOnMap()}),Y(6," Reset (einde demo) "),x()(),D(7,"div")(8,"mat-slide-toggle",2),ee("click",function(){return o.DemoRandomLocationToggle()}),Y(9),x(),D(10,"mat-slide-toggle",2),ee("click",function(){return o.DemoVisualisationToggle()}),Y(11),x(),D(12,"mat-slide-toggle",3),ee("click",function(){return o.DemoPreviewFeaturesToggle()}),Y(13,"Toon preview features "),x()()()),r&2&&(A(8),Ls("aria-label",o.demotextLocatie),O("matTooltip",o.demotextLocatie)("matTooltipPosition","left")("checked",o.isDemoLocatieRotate),A(),Sn("",o.demotextLocatie," "),A(),Ls("aria-label",o.demotextVisualisatie),O("matTooltip",o.demotextVisualisatie)("matTooltipPosition","left")("checked",o.isDemoVisualisatieRotate),A(),Sn("",o.demotextVisualisatie," "),A(),O("matTooltip","preview features")("matTooltipPosition","left")("checked",o.isPreviewFeature))},dependencies:[wu,wo],styles:['.demo[_ngcontent-%COMP%]{background-color:#fff;margin-top:1em;margin-bottom:1em;margin-right:1em;font-size:var(--fontsize, 2.5vh);font-family:var(--font-family, "Roboto");max-height:80vh;overflow-x:hidden;overflow-y:auto}mdc-switch__track[_ngcontent-%COMP%]{width:10px}']});let n=e;return n})();function s2(n){return new q(3e3,!1)}function S9(){return new q(3100,!1)}function I9(){return new q(3101,!1)}function T9(n){return new q(3001,!1)}function M9(n){return new q(3003,!1)}function A9(n){return new q(3004,!1)}function R9(n,e){return new q(3005,!1)}function k9(){return new q(3006,!1)}function P9(){return new q(3007,!1)}function O9(n,e){return new q(3008,!1)}function N9(n){return new q(3002,!1)}function F9(n,e,t,i,r){return new q(3010,!1)}function L9(){return new q(3011,!1)}function V9(){return new q(3012,!1)}function j9(){return new q(3200,!1)}function B9(){return new q(3202,!1)}function z9(){return new q(3013,!1)}function U9(n){return new q(3014,!1)}function G9(n){return new q(3015,!1)}function H9(n){return new q(3016,!1)}function $9(n,e){return new q(3404,!1)}function W9(n){return new q(3502,!1)}function q9(n){return new q(3503,!1)}function Y9(){return new q(3300,!1)}function X9(n){return new q(3504,!1)}function K9(n){return new q(3301,!1)}function Z9(n,e){return new q(3302,!1)}function Q9(n){return new q(3303,!1)}function J9(n,e){return new q(3400,!1)}function eX(n){return new q(3401,!1)}function tX(n){return new q(3402,!1)}function nX(n,e){return new q(3505,!1)}function Ea(n){switch(n.length){case 0:return new ba;case 1:return n[0];default:return new Wh(n)}}function w2(n,e,t=new Map,i=new Map){let r=[],o=[],s=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((h,f)=>{let p=f,y=h;if(f!=="offset")switch(p=n.normalizePropertyName(p,r),y){case Qy:y=t.get(f);break;case vo:y=i.get(f);break;default:y=n.normalizeStyleValue(f,p,y,r);break}d.set(p,y)}),u||o.push(d),a=d,s=c}),r.length)throw W9(r);return o}function nI(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&OS(t,"start",n)));break;case"done":n.onDone(()=>i(t&&OS(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&OS(t,"destroy",n)));break}}function OS(n,e,t){let i=t.totalTime,r=!!t.disabled,o=iI(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,i??n.totalTime,r),s=n._data;return s!=null&&(o._data=s),o}function iI(n,e,t,i,r="",o=0,s){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Fi(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function a2(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var iX=typeof document>"u"?null:document.documentElement;function rI(n){let e=n.parentNode||n.host||null;return e===iX?null:e}function rX(n){return n.substring(1,6)=="ebkit"}var Dl=null,l2=!1;function oX(n){Dl||(Dl=sX()||{},l2=Dl.style?"WebkitAppearance"in Dl.style:!1);let e=!0;return Dl.style&&!rX(n)&&(e=n in Dl.style,!e&&l2&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Dl.style)),e}function sX(){return typeof document<"u"?document.body:null}function b2(n,e){for(;e;){if(e===n)return!0;e=rI(e)}return!1}function C2(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var oI=(()=>{let e=class e{validateStyleProperty(i){return oX(i)}containsElement(i,r){return b2(i,r)}getParentElement(i){return rI(i)}query(i,r,o){return C2(i,r,o)}computeStyle(i,r,o){return o||""}animate(i,r,o,s,a,l=[],c){return new ba(o,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac});let n=e;return n})(),cI=class cI{};cI.NOOP=new oI;var Tl=cI,Ml=class{};var aX=1e3,E2="{{",lX="}}",x2="ng-enter",BS="ng-leave",fv="ng-trigger",vv=".ng-trigger",c2="ng-animating",zS=".ng-animating";function gs(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:US(parseFloat(e[1]),e[2])}function US(n,e){switch(e){case"s":return n*aX;default:return n}}function _v(n,e,t){return n.hasOwnProperty("duration")?n:cX(n,e,t)}function cX(n,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof n=="string"){let a=n.match(i);if(a===null)return e.push(s2(n)),{duration:0,delay:0,easing:""};r=US(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=US(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(S9()),a=!0),o<0&&(e.push(I9()),a=!0),a&&e.splice(l,0,s2(n))}return{duration:r,delay:o,easing:s}}function uX(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function bo(n,e,t){e.forEach((i,r)=>{let o=sI(r);t&&!t.has(r)&&t.set(r,n.style[o]),n.style[o]=i})}function Il(n,e){e.forEach((t,i)=>{let r=sI(i);n.style[r]=""})}function Qh(n){return Array.isArray(n)?n.length==1?n[0]:bL(n):n}function dX(n,e,t){let i=e.params||{},r=D2(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(T9(o))})}var GS=new RegExp(`${E2}\\s*(.+?)\\s*${lX}`,"g");function D2(n){let e=[];if(typeof n=="string"){let t;for(;t=GS.exec(n);)e.push(t[1]);GS.lastIndex=0}return e}function ef(n,e,t){let i=`${n}`,r=i.replace(GS,(o,s)=>{let a=e[s];return a==null&&(t.push(M9(s)),a=""),a.toString()});return r==i?n:r}var hX=/-+([a-z0-9])/g;function sI(n){return n.replace(hX,(...e)=>e[1].toUpperCase())}function fX(n,e){return n===0||e===0}function pX(n,e,t){if(t.size&&e.length){let i=e[0],r=[];if(t.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,aI(n,a)))}}return e}function Ni(n,e,t){switch(e.type){case qe.Trigger:return n.visitTrigger(e,t);case qe.State:return n.visitState(e,t);case qe.Transition:return n.visitTransition(e,t);case qe.Sequence:return n.visitSequence(e,t);case qe.Group:return n.visitGroup(e,t);case qe.Animate:return n.visitAnimate(e,t);case qe.Keyframes:return n.visitKeyframes(e,t);case qe.Style:return n.visitStyle(e,t);case qe.Reference:return n.visitReference(e,t);case qe.AnimateChild:return n.visitAnimateChild(e,t);case qe.AnimateRef:return n.visitAnimateRef(e,t);case qe.Query:return n.visitQuery(e,t);case qe.Stagger:return n.visitStagger(e,t);default:throw A9(e.type)}}function aI(n,e){return window.getComputedStyle(n)[e]}var mX=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),wv=class extends Ml{normalizePropertyName(e,t){return sI(e)}normalizeStyleValue(e,t,i,r){let o="",s=i.toString().trim();if(mX.has(t)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(R9(e,i))}return s+o}};var bv="*";function gX(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>yX(i,t,e)):t.push(n),t}function yX(n,e,t){if(n[0]==":"){let l=vX(n,t);if(typeof l=="function"){e.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(G9(n)),e;let r=i[1],o=i[2],s=i[3];e.push(u2(r,s));let a=r==bv&&s==bv;o[0]=="<"&&!a&&e.push(u2(s,r))}function vX(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}var pv=new Set(["true","1"]),mv=new Set(["false","0"]);function u2(n,e){let t=pv.has(n)||mv.has(n),i=pv.has(e)||mv.has(e);return(r,o)=>{let s=n==bv||n==r,a=e==bv||e==o;return!s&&t&&typeof r=="boolean"&&(s=r?pv.has(n):mv.has(n)),!a&&i&&typeof o=="boolean"&&(a=o?pv.has(e):mv.has(e)),s&&a}}var S2=":self",_X=new RegExp(`s*${S2}s*,?`,"g");function I2(n,e,t,i){return new HS(n).build(e,t,i)}var d2="",HS=class{constructor(e){this._driver=e}build(e,t,i){let r=new $S(t);return this._resetContextStyleTimingState(r),Ni(this,Qh(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=d2,e.collectedStyles=new Map,e.collectedStyles.set(d2,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&t.errors.push(k9()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==qe.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,t))}),l.name=c}else if(a.type==qe.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,s.push(l)}else t.errors.push(P9())}),{type:qe.Trigger,name:e.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){let o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{D2(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&t.errors.push(O9(e.name,[...o.values()]))}return{type:qe.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=Ni(this,Qh(e.animation),t),r=gX(e.expr,t.errors);return{type:qe.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Sl(e.options)}}visitSequence(e,t){return{type:qe.Sequence,steps:e.steps.map(i=>Ni(this,i,t)),options:Sl(e.options)}}visitGroup(e,t){let i=t.currentTime,r=0,o=e.steps.map(s=>{t.currentTime=i;let a=Ni(this,s,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:qe.Group,steps:o,options:Sl(e.options)}}visitAnimate(e,t){let i=EX(e.timings,t.errors);t.currentAnimateTimings=i;let r,o=e.styles?e.styles:wS({});if(o.type==qe.Keyframes)r=this.visitKeyframes(o,t);else{let s=e.styles,a=!1;if(!s){a=!0;let c={};i.easing&&(c.easing=i.easing),s=wS(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(s,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:qe.Animate,timings:i,style:r,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===vo?i.push(a):t.errors.push(N9(a)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(E2)>=0){o=!0;break}}}),{type:qe.Style,styles:i,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l),d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(t.errors.push(F9(l,u.startTime,u.endTime,o,r)),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),t.options&&dX(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:qe.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(L9()),i;let r=1,o=0,s=[],a=!1,l=!1,c=0,u=e.steps.map(g=>{let v=this._makeStyleAst(g,t),_=v.offset!=null?v.offset:CX(v.styles),w=0;return _!=null&&(o++,w=v.offset=_),l=l||w<0||w>1,a=a||w0&&o{let _=h>0?v==f?1:h*v:s[v],w=_*m;t.currentTime=p+y.delay+w,y.duration=w,this._validateStyleAst(g,t),g.offset=_,i.styles.push(g)}),i}visitReference(e,t){return{type:qe.Reference,animation:Ni(this,Qh(e.animation),t),options:Sl(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:qe.AnimateChild,options:Sl(e.options)}}visitAnimateRef(e,t){return{type:qe.AnimateRef,animation:this.visitReference(e.animation,t),options:Sl(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[o,s]=wX(e.selector);t.currentQuerySelector=i.length?i+" "+o:o,Fi(t.collectedStyles,t.currentQuerySelector,new Map);let a=Ni(this,Qh(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:qe.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Sl(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(z9());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:_v(e.timings,t.errors,!0);return{type:qe.Stagger,animation:Ni(this,Qh(e.animation),t),timings:i,options:null}}};function wX(n){let e=!!n.split(/\s*,\s*/).find(t=>t==S2);return e&&(n=n.replace(_X,"")),n=n.replace(/@\*/g,vv).replace(/@\w+/g,t=>vv+"-"+t.slice(1)).replace(/:animating/g,zS),[n,e]}function bX(n){return n?j({},n):null}var $S=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function CX(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function EX(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let o=_v(n,e).duration;return NS(o,0,"")}let t=n;if(t.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=NS(0,0,"");return o.dynamic=!0,o.strValue=t,o}let r=_v(t,e);return NS(r.duration,r.delay,r.easing)}function Sl(n){return n?(n=j({},n),n.params&&(n.params=bX(n.params))):n={},n}function NS(n,e,t){return{duration:n,delay:e,easing:t}}function lI(n,e,t,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}var tf=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},xX=1,DX=":enter",SX=new RegExp(DX,"g"),IX=":leave",TX=new RegExp(IX,"g");function T2(n,e,t,i,r,o=new Map,s=new Map,a,l,c=[]){return new WS().buildKeyframes(n,e,t,i,r,o,s,a,l,c)}var WS=class{buildKeyframes(e,t,i,r,o,s,a,l,c,u=[]){c=c||new tf;let d=new qS(e,t,c,r,o,u,[]);d.options=l;let h=l.delay?gs(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),Ni(this,i,d);let f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let y=f.length-1;y>=0;y--){let m=f[y];if(m.element===t){p=m;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[lI(t,[],[],[],0,h,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let r=t.createSubContext(e.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let r of e){let o=r?.delay;if(o){let s=typeof o=="number"?o:gs(ef(o,r?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(e,t,i){let o=t.currentTimeline.currentTime,s=i.duration!=null?gs(i.duration):null,a=i.delay!=null?gs(i.delay):null;return s!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,t){t.updateOptions(e.options,!0),Ni(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==qe.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Cv);let s=gs(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Ni(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?gs(e.options.delay):0;e.steps.forEach(s=>{let a=t.createSubContext(e.options);o&&a.delayNextStep(o),Ni(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,r=t.params?ef(i,t.params,t.errors):i;return _v(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());let o=e.style;o.type==qe.Keyframes?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(o):i.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,r=t.currentTimeline.duration,o=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+o),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?gs(r.delay):0;o&&(t.previousNode.type===qe.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Cv);let s=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;let d=t.createSubContext(e.options,c);o&&d.delayNextStep(o),c===t.element&&(l=d.currentTimeline),Ni(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let h=d.currentTimeline.currentTime;s=Math.max(s,h)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,r=t.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1),l=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let u=t.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;Ni(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}},Cv={},qS=class n{constructor(e,t,i,r,o,s,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Cv,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ev(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,r=this.options;i.duration!=null&&(r.duration=gs(i.duration)),i.delay!=null&&(r.delay=gs(i.delay));let o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=ef(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){let r=t||this.element,o=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Cv,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},o=new YS(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,o,s){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(SX,"."+this._enterClassName),e=e.replace(TX,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&a.length==0&&s.push(U9(t)),a}},Ev=class n{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=xX,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||vo),this._currentKeyframe.set(t,vo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);let o=r&&r.params||{},s=MX(e,this._globalTimelineStyles);for(let[a,l]of s){let c=ef(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??vo),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===Qy?e.add(d):u===vo&&t.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});let o=[...e.values()],s=[...t.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return lI(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},YS=class extends Ev{constructor(e,t,i,r,o,s,a=!1){super(e,t,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let o=[],s=i+t,a=t/s,l=new Map(e[0]);l.set("offset",0),o.push(l);let c=new Map(e[0]);c.set("offset",h2(a)),o.push(c);let u=e.length-1;for(let d=1;d<=u;d++){let h=new Map(e[d]),f=h.get("offset"),p=t+f*i;h.set("offset",h2(p/s)),o.push(h)}i=s,t=0,r="",e=o}return lI(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}};function h2(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function MX(n,e){let t=new Map,i;return n.forEach(r=>{if(r==="*"){i??=e.keys();for(let o of i)t.set(o,vo)}else for(let[o,s]of r)t.set(o,s)}),t}function f2(n,e,t,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}var FS={},xv=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return AX(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,i):new Map}build(e,t,i,r,o,s,a,l,c,u){let d=[],h=this.ast.options&&this.ast.options.params||FS,f=a&&a.params||FS,p=this.buildStyles(i,f,d),y=l&&l.params||FS,m=this.buildStyles(r,y,d),g=new Set,v=new Map,_=new Map,w=r==="void",b={params:M2(y,h),delay:this.ast.options?.delay},E=u?[]:T2(e,t,this.ast.animation,o,s,p,m,b,c,d),C=0;return E.forEach(S=>{C=Math.max(S.duration+S.delay,C)}),d.length?f2(t,this._triggerName,i,r,w,p,m,[],[],v,_,C,d):(E.forEach(S=>{let I=S.element,V=Fi(v,I,new Set);S.preStyleProps.forEach(M=>V.add(M));let z=Fi(_,I,new Set);S.postStyleProps.forEach(M=>z.add(M)),I!==t&&g.add(I)}),f2(t,this._triggerName,i,r,w,p,m,E,[...g.values()],v,_,C))}};function AX(n,e,t,i,r){return n.some(o=>o(e,t,i,r))}function M2(n,e){let t=j({},e);return Object.entries(n).forEach(([i,r])=>{r!=null&&(t[i]=r)}),t}var XS=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,r=M2(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=ef(s,r,t));let l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),i.set(a,s)})}),i}};function RX(n,e,t){return new KS(n,e,t)}var KS=class{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new XS(r.style,o,i))}),p2(this.states,"true","1"),p2(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new xv(e,r,this.states))}),this.fallbackTransition=kX(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(s=>s.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function kX(n,e,t){let i=[(s,a)=>!0],r={type:qe.Sequence,steps:[],options:null},o={type:qe.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new xv(n,o,e)}function p2(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var PX=new tf,ZS=class{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let i=[],r=[],o=I2(this._driver,t,i,r);if(i.length)throw q9(i);r.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,t,i){let r=e.element,o=w2(this._normalizer,e.keyframes,t,i);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let r=[],o=this._animations.get(e),s,a=new Map;if(o?(s=T2(this._driver,t,o,x2,BS,new Map,new Map,i,PX,r),s.forEach(u=>{let d=Fi(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(Y9()),s=[]),r.length)throw X9(r);a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,vo))})});let l=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=Ea(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw K9(e);return t}listen(e,t,i,r){let o=iI(t,"","","");return nI(this._getPlayer(e),i,o,r),()=>{}}command(e,t,i,r){if(i=="register"){this.register(e,r[0]);return}if(i=="create"){let s=r[0]||{};this.create(e,t,s);return}let o=this._getPlayer(e);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},m2="ng-animate-queued",OX=".ng-animate-queued",LS="ng-animate-disabled",NX=".ng-animate-disabled",FX="ng-star-inserted",LX=".ng-star-inserted",VX=[],A2={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jX={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vr="__ng_removed",nf=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=zX(r),i){let o=e,{value:s}=o,a=Av(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(r=>{i[r]==null&&(i[r]=t[r])})}}},Jh="void",VS=new nf(Jh),QS=class{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,rr(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw Z9(i,t);if(i==null||i.length==0)throw Q9(t);if(!UX(i))throw J9(i,t);let o=Fi(this._elementListeners,e,[]),s={name:t,phase:i,callback:r};o.push(s);let a=Fi(this._engine.statesByElement,e,new Map);return a.has(t)||(rr(e,fv),rr(e,fv+"-"+t),a.set(t,VS)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw eX(e);return t}trigger(e,t,i,r=!0){let o=this._getTrigger(t),s=new rf(this.id,t,e),a=this._engine.statesByElement.get(e);a||(rr(e,fv),rr(e,fv+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new nf(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=VS),!(c.value===Jh)&&l.value===c.value){if(!$X(l.params,c.params)){let y=[],m=o.matchStyles(l.value,l.params,y),g=o.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Il(e,m),bo(e,g)})}return}let h=Fi(this._engine.playersByElement,e,[]);h.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let f=o.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(rr(e,m2),s.onStart(()=>{Du(e,m2)})),s.onDone(()=>{let y=this.players.indexOf(s);y>=0&&this.players.splice(y,1);let m=this._engine.playersByElement.get(e);if(m){let g=m.indexOf(s);g>=0&&m.splice(g,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,vv,!0);i.forEach(r=>{if(r[Vr])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,Jh,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,s),i&&Ea(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let r=new Set;t.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let l=this._triggers.get(s).fallbackTransition,c=i.get(s)||VS,u=new nf(Jh),d=new rf(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{let o=e[Vr];(!o||o===A2)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){rr(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){let l=iI(o,i.triggerName,i.fromState.value,i.toState.value);l._data=e,nI(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{let o=i.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},JS=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new QS(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let r of i.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}}return t}trigger(e,t,i,r){if(gv(t)){let o=this._fetchNamespace(e);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!gv(t))return;let o=t[Vr];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),rr(e,LS)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Du(e,LS))}removeNode(e,t,i){if(gv(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,r,o){this.collectedLeaveElements.push(t),t[Vr]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,t,i,r,o){return gv(t)?this._fetchNamespace(e).listen(t,i,r,o):()=>{}}_buildInstruction(e,t,i,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,o)}destroyInnerAnimations(e){let t=this.driver.query(e,vv,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,zS,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ea(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[Vr];if(t&&t.setForRemoval){if(e[Vr]=A2,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(LS)&&this.markElementAsDisabled(e,!1),this.driver.query(e,NX,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?Ea(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw tX(e)}_flushAnimations(e,t){let i=new tf,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);let W=this.driver.query(T,OX,!0);for(let H=0;H{let H=x2+y++;p.set(W,H),T.forEach(se=>rr(se,H))});let m=[],g=new Set,v=new Set;for(let T=0;Tg.add(se)):v.add(W))}let _=new Map,w=v2(h,Array.from(g));w.forEach((T,W)=>{let H=BS+y++;_.set(W,H),T.forEach(se=>rr(se,H))}),e.push(()=>{f.forEach((T,W)=>{let H=p.get(W);T.forEach(se=>Du(se,H))}),w.forEach((T,W)=>{let H=_.get(W);T.forEach(se=>Du(se,H))}),m.forEach(T=>{this.processLeaveNode(T)})});let b=[],E=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(H=>{let se=H.player,ie=H.element;if(b.push(se),this.collectedEnterElements.length){let Ee=ie[Vr];if(Ee&&Ee.setForMove){if(Ee.previousTriggersValues&&Ee.previousTriggersValues.has(H.triggerName)){let Tt=Ee.previousTriggersValues.get(H.triggerName),st=this.statesByElement.get(H.element);if(st&&st.has(H.triggerName)){let ht=st.get(H.triggerName);ht.value=Tt,st.set(H.triggerName,ht)}}se.destroy();return}}let P=!d||!this.driver.containsElement(d,ie),ue=_.get(ie),Pe=p.get(ie),F=this._buildInstruction(H,i,Pe,ue,P);if(F.errors&&F.errors.length){E.push(F);return}if(P){se.onStart(()=>Il(ie,F.fromStyles)),se.onDestroy(()=>bo(ie,F.toStyles)),r.push(se);return}if(H.isFallbackTransition){se.onStart(()=>Il(ie,F.fromStyles)),se.onDestroy(()=>bo(ie,F.toStyles)),r.push(se);return}let zt=[];F.timelines.forEach(Ee=>{Ee.stretchStartingKeyframe=!0,this.disabledNodes.has(Ee.element)||zt.push(Ee)}),F.timelines=zt,i.append(ie,F.timelines);let ot={instruction:F,player:se,element:ie};s.push(ot),F.queriedElements.forEach(Ee=>Fi(a,Ee,[]).push(se)),F.preStyleProps.forEach((Ee,Tt)=>{if(Ee.size){let st=l.get(Tt);st||l.set(Tt,st=new Set),Ee.forEach((ht,ne)=>st.add(ne))}}),F.postStyleProps.forEach((Ee,Tt)=>{let st=c.get(Tt);st||c.set(Tt,st=new Set),Ee.forEach((ht,ne)=>st.add(ne))})});if(E.length){let T=[];E.forEach(W=>{T.push(nX(W.triggerName,W.errors))}),b.forEach(W=>W.destroy()),this.reportError(T)}let C=new Map,S=new Map;s.forEach(T=>{let W=T.element;i.has(W)&&(S.set(W,W),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,C))}),r.forEach(T=>{let W=T.element;this._getPreviousPlayers(W,!1,T.namespaceId,T.triggerName,null).forEach(se=>{Fi(C,W,[]).push(se),se.destroy()})});let I=m.filter(T=>_2(T,l,c)),V=new Map;y2(V,this.driver,v,c,vo).forEach(T=>{_2(T,l,c)&&I.push(T)});let M=new Map;f.forEach((T,W)=>{y2(M,this.driver,new Set(T),l,Qy)}),I.forEach(T=>{let W=V.get(T),H=M.get(T);V.set(T,new Map([...W?.entries()??[],...H?.entries()??[]]))});let te=[],G=[],k={};s.forEach(T=>{let{element:W,player:H,instruction:se}=T;if(i.has(W)){if(u.has(W)){H.onDestroy(()=>bo(W,se.toStyles)),H.disabled=!0,H.overrideTotalTime(se.totalTime),r.push(H);return}let ie=k;if(S.size>1){let ue=W,Pe=[];for(;ue=ue.parentNode;){let F=S.get(ue);if(F){ie=F;break}Pe.push(ue)}Pe.forEach(F=>S.set(F,ie))}let P=this._buildAnimation(H.namespaceId,se,C,o,M,V);if(H.setRealPlayer(P),ie===k)te.push(H);else{let ue=this.playersByElement.get(ie);ue&&ue.length&&(H.parentPlayer=Ea(ue)),r.push(H)}}else Il(W,se.fromStyles),H.onDestroy(()=>bo(W,se.toStyles)),G.push(H),u.has(W)&&r.push(H)}),G.forEach(T=>{let W=o.get(T.element);if(W&&W.length){let H=Ea(W);T.setRealPlayer(H)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T!P.destroyed);ie.length?GX(this,W,ie):this.processLeaveNode(W)}return m.length=0,te.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();let W=this.players.indexOf(T);this.players.splice(W,1)}),T.play()}),te}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,o){let s=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let l=!o||o==Jh;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(e,t,i){let r=t.triggerName,o=t.element,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(let l of t.timelines){let c=l.element,u=c!==o,d=Fi(i,c,[]);this._getPreviousPlayers(c,u,s,a,t.toState).forEach(f=>{let p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Il(o,t.fromStyles)}_buildAnimation(e,t,i,r,o,s){let a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{let y=p.element;u.add(y);let m=y[Vr];if(m&&m.removedBeforeQueried)return new ba(p.duration,p.delay);let g=y!==l,v=HX((i.get(y)||VX).map(C=>C.getRealPlayer())).filter(C=>{let S=C;return S.element?S.element===y:!1}),_=o.get(y),w=s.get(y),b=w2(this._normalizer,p.keyframes,_,w),E=this._buildPlayer(p,b,v);if(p.subTimeline&&r&&d.add(y),g){let C=new rf(e,a,y);C.setRealPlayer(E),c.push(C)}return E});c.forEach(p=>{Fi(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>BX(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>rr(p,c2));let f=Ea(h);return f.onDestroy(()=>{u.forEach(p=>Du(p,c2)),bo(l,t.toStyles)}),d.forEach(p=>{Fi(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new ba(e.duration,e.delay)}},rf=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new ba,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>nI(e,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Fi(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function BX(n,e,t){let i=n.get(e);if(i){if(i.length){let r=i.indexOf(t);i.splice(r,1)}i.length==0&&n.delete(e)}return i}function zX(n){return n??null}function gv(n){return n&&n.nodeType===1}function UX(n){return n=="start"||n=="done"}function g2(n,e){let t=n.style.display;return n.style.display=e??"none",t}function y2(n,e,t,i,r){let o=[];t.forEach(l=>o.push(g2(l)));let s=[];i.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let h=e.computeStyle(c,d,r);u.set(d,h),(!h||h.length==0)&&(c[Vr]=jX,s.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>g2(l,o[a++])),s}function v2(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,r=new Set(e),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=i:l=s(c),o.set(a,l),l}return e.forEach(a=>{let l=s(a);l!==i&&t.get(l).push(a)}),t}function rr(n,e){n.classList?.add(e)}function Du(n,e){n.classList?.remove(e)}function GX(n,e,t){Ea(t).onDone(()=>n.processLeaveNode(e))}function HX(n){let e=[];return R2(n,e),e}function R2(n,e){for(let t=0;tr.add(o)):e.set(n,i),t.delete(n),!0}var Iu=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new JS(e.body,t,i),this._timelineEngine=new ZS(e.body,t,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,t,i,r,o){let s=e+"-"+r,a=this._triggerCache[s];if(!a){let l=[],c=[],u=I2(this._driver,o,l,c);if(l.length)throw $9(r,l);c.length&&void 0,a=RX(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if(i.charAt(0)=="@"){let[o,s]=a2(i),a=r;this._timelineEngine.command(o,t,s,a)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,o){if(i.charAt(0)=="@"){let[s,a]=a2(i);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(e,t,i,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function WX(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=jS(e[0]),e.length>1&&(i=jS(e[e.length-1]))):e instanceof Map&&(t=jS(e)),t||i?new eI(n,t,i):null}var Su=class Su{constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i,this._state=0;let r=Su.initialStylesByElement.get(e);r||Su.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&bo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(bo(this._element,this._initialStyles),this._endStyles&&(bo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Su.initialStylesByElement.delete(this._element),this._startStyles&&(Il(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Il(this._element,this._endStyles),this._endStyles=null),bo(this._element,this._initialStyles),this._state=3)}};Su.initialStylesByElement=new WeakMap;var eI=Su;function jS(n){let e=null;return n.forEach((t,i)=>{qX(i)&&(e=e||new Map,e.set(i,t))}),e}function qX(n){return n==="display"||n==="position"}var Dv=class{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&e.set(r,this._finished?i:aI(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Sv=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return b2(e,t)}getParentElement(e){return rI(e)}query(e,t,i){return C2(e,t,i)}computeStyle(e,t,i){return aI(e,t)}animate(e,t,i,r,o,s=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};o&&(l.easing=o);let c=new Map,u=s.filter(f=>f instanceof Dv);fX(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,y)=>c.set(y,p))});let d=uX(t).map(f=>new Map(f));d=pX(e,d,c);let h=WX(e,d);return new Dv(e,d,l,h)}};var yv="@",k2="@.disabled",Iv=class{constructor(e,t,i,r){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==yv&&t==k2?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},tI=class extends Iv{constructor(e,t,i,r,o){super(t,i,r,o),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==yv?t.charAt(1)=="."&&t==k2?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if(t.charAt(0)==yv){let r=YX(e),o=t.slice(1),s="";return o.charAt(0)!=yv&&([o,s]=XX(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(e,t,i)}};function YX(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function XX(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var Tv=class{constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,o)=>{let s=o?.parentNode(r);s&&o.removeChild(s,r)}}createRenderer(e,t){let i="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,u=c.get(r);if(!u){let d=()=>c.delete(r);u=new Iv(i,r,this.engine,d),c.set(r,u)}return u}let o=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,e,c.name,c)};return t.data.animation.forEach(a),new tI(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&et(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var ZX=(()=>{let e=class e extends Iu{constructor(i,r,o){super(i,r,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(R(ke),R(Tl),R(Ml))},e.\u0275prov=$({token:e,factory:e.\u0275fac});let n=e;return n})();function QX(){return new wv}function JX(n,e,t){return new Tv(n,e,t)}var O2=[{provide:Ml,useFactory:QX},{provide:Iu,useClass:ZX},{provide:Rs,useFactory:JX,deps:[Cm,Iu,ve]}],P2=[{provide:Tl,useFactory:()=>new Sv},{provide:yr,useValue:"BrowserAnimations"},...O2],eK=[{provide:Tl,useClass:oI},{provide:yr,useValue:"NoopAnimations"},...O2],N2=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?eK:P2}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({providers:P2,imports:[xm]});let n=e;return n})();var Mv=(()=>{let e=class e{constructor(i,r){this.formBuilder=i,this.localStorageService=r,this.visEmit=new de,this.gridEmit=new de,this.customtForm=this.formBuilder.group({customUrl:new _o(this.getLocalStorageValue("customUrl")),customUrlExtension:new _o(this.getLocalStorageValue("customUrlExtension")),customUrlxyzTemplate:new _o(this.getLocalStorageValue("customUrlxyzTemplate")),customUrlMinZoom:new _o(this.getLocalStorageValue("customUrlMinZoom")),showDebugLayer:new _o(this.getLocalStorageValue("showDebugLayer"))})}getLocalStorageValue(i){return this.localStorageService.Exists(i)?this.localStorageService.get(i):""}onSubmit(){let{customUrl:i,customUrlExtension:r,customUrlxyzTemplate:o,customUrlMinZoom:s,showDebugLayer:a}=this.customtForm.value;this.localStorageService.set({key:"customUrl",value:i}),this.localStorageService.set({key:"customUrlExtension",value:r}),this.localStorageService.set({key:"customUrlxyzTemplate",value:o}),this.localStorageService.set({key:"customUrlMinZoom",value:s}),this.localStorageService.set({key:"showDebugLayer",value:a}),console.log(a),this.visEmit.emit(re.Custom1Blanko)}showDebugLayer(){let{customUrl:i,customUrlExtension:r,customUrlxyzTemplate:o,customUrlMinZoom:s,showDebugLayer:a}=this.customtForm.value;console.log(a),this.localStorageService.set({key:"showDebugLayer",value:a}),this.gridEmit.emit()}onReset(){this.localStorageService.removeAll(),this.customtForm.reset(),this.visEmit.emit(re.BGTachtergrond)}};e.\u0275fac=function(r){return new(r||e)(U(e2),U(Hs))},e.\u0275cmp=Je({type:e,selectors:[["app-custom-tile"]],outputs:{visEmit:"visEmit",gridEmit:"gridEmit"},standalone:!0,features:[Di],decls:40,vars:1,consts:[[3,"ngSubmit","formGroup"],["for","showDebugLayer"],["formControlName","showDebugLayer",3,"change"],[1,"techcaption"],["for","customUrlMinZoom"],["type","text","id","customUrlMinZoom","formControlName","customUrlMinZoom"],["for","customUrl"],["type","text","id","customUrl","formControlName","customUrl"],["for","customUrlxyzTemplate"],["type","text","id","customUrlxyzTemplate","formControlName","customUrlxyzTemplate"],["for","customUrlExtension"],["type","text","id","customUrlExtension","formControlName","customUrlExtension"],["type","submit"],["type","reset",3,"click"]],template:function(r,o){r&1&&(D(0,"form",0),ee("ngSubmit",function(){return o.onSubmit()}),D(1,"table")(2,"tr")(3,"td")(4,"label",1),Y(5,"showDebugLayer:"),x()(),D(6,"td")(7,"mat-slide-toggle",2),ee("change",function(){return o.showDebugLayer()}),x()()()(),D(8,"table")(9,"caption",3),Y(10," Aanpasbare Vectortile URL: "),x(),D(11,"tbody")(12,"tr")(13,"td")(14,"label",4),Y(15,"MinZoom:"),x()(),D(16,"td"),be(17,"input",5),x()(),D(18,"tr")(19,"td")(20,"label",6),Y(21,"URL:"),x()(),D(22,"td"),be(23,"input",7),x()(),D(24,"tr")(25,"td")(26,"label",8),Y(27,"xyzTemplate:"),x()(),D(28,"td"),be(29,"input",9),x()(),D(30,"tr")(31,"td")(32,"label",10),Y(33,"extension:"),x()(),D(34,"td"),be(35,"input",11),x()()()(),D(36,"button",12),Y(37,"Aanpassen"),x(),D(38,"button",13),ee("click",function(){return o.onReset()}),Y(39,"Reset"),x()()),r&2&&O("formGroup",o.customtForm)},dependencies:[t2,ZL,lv,WL,qL,n2,RS,kS,wo],styles:["input[_ngcontent-%COMP%], .lefttable[_ngcontent-%COMP%]{width:100%}"]});let n=e;return n})();var F2=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Re({type:e,bootstrap:[NF]}),e.\u0275inj=Ae({providers:[QA(JA())],imports:[xm,nk,dR,N2,SL,sL,i2,Mv]});let n=e;return n})();aA(jy,[ci,wu,wo,Mv,lL,cL,r2,o2,ya],[]);eo.production&&void 0;sR().bootstrapModule(F2).catch(n=>console.error(n));