diff --git a/404.html b/404.html index d47847f..866b4e5 100644 --- a/404.html +++ b/404.html @@ -14,6 +14,6 @@ - + diff --git a/index.html b/index.html index d47847f..866b4e5 100644 --- a/index.html +++ b/index.html @@ -14,6 +14,6 @@ - + diff --git a/main-PZWIFTZW.js b/main-Z2ICXRUY.js similarity index 99% rename from main-PZWIFTZW.js rename to main-Z2ICXRUY.js index a9230a1..5f5da72 100644 --- a/main-PZWIFTZW.js +++ b/main-Z2ICXRUY.js @@ -34,4 +34,4 @@ ${JSON.stringify(t,null,2)} `,""),Xe.push(St[Pn],It);return Xe},[]):Gt=KE(ot,V).trim(),be=fe(P,"paint","text-opacity",M,z,m,k)}if(Gt&&be&&!ls){ss||(++T,te=b[T],(!te||!te.getText()||te.getFill()||te.getStroke())&&(te=new Tn,b[T]=te),te.setImage(void 0),te.setGeometry(void 0));let tt=AO(P,M,z,"text",m);te.getText()||te.setText($e),$e=te.getText(),(!$e||"getDeclutterMode"in $e&&$e.getDeclutterMode()!==tt)&&($e=new Wa({padding:[2,2,2,2],declutterMode:tt}),te.setText($e));let ot=fe(P,"layout","text-transform",M,z,m,k);ot=="uppercase"?Gt=Array.isArray(Gt)?Gt.map((Ft,ir)=>ir%2?Ft:Ft.toUpperCase()):Gt.toUpperCase():ot=="lowercase"&&(Gt=Array.isArray(Gt)?Gt.map((Ft,ir)=>ir%2?Ft:Ft.toLowerCase()):Gt.toLowerCase());let Xe=Array.isArray(Gt)?Gt:J==2?Ix(Gt,wi):Sx(Gt,vn,nr,wi);$e.setText(Xe),$e.setFont(vn),$e.setRotation(qE(fe(P,"layout","text-rotate",M,z,m,k)));let ht=fe(P,"layout","text-anchor",M,z,m,k),he=ss||J==1?"point":fe(P,"layout","symbol-placement",M,z,m,k),nt;if(he==="line-center"?($e.setPlacement("line"),nt="center"):$e.setPlacement(he),he==="line"&&typeof $e.setRepeat=="function"){let Ft=fe(P,"layout","symbol-spacing",M,z,m,k);$e.setRepeat(Ft*2)}$e.setOverflow(he==="point");let It=fe(P,"paint","text-halo-width",M,z,m,k),St=fe(P,"layout","text-offset",M,z,m,k),Pn=fe(P,"paint","text-translate",M,z,m,k),Gn=0,_n=0;if(he=="point"){nt="center",ht.indexOf("left")!==-1?(nt="left",_n=It):ht.indexOf("right")!==-1&&(nt="right",_n=-It);let Ft=fe(P,"layout","text-rotation-alignment",M,z,m,k);$e.setRotateWithView(Ft=="map")}else $e.setMaxAngle(qE(fe(P,"layout","text-max-angle",M,z,m,k))*Gt.length/Xe.length),$e.setRotateWithView(!1);$e.setTextAlign(nt);let wn="middle";ht.indexOf("bottom")==0?(wn="bottom",Gn=-It-.5*(sn-1)*an):ht.indexOf("top")==0&&(wn="top",Gn=It+.5*(sn-1)*an),$e.setTextBaseline(wn);let Ct=fe(P,"layout","text-justify",M,z,m,k);$e.setJustify(Ct==="auto"?void 0:Ct),$e.setOffsetX(St[0]*an+_n+Pn[0]),$e.setOffsetY(St[1]*an+Gn+Pn[1]),w.setColor(nl(fe(P,"paint","text-color",M,z,m,k),be)),$e.setFill(w);let On=nl(fe(P,"paint","text-halo-color",M,z,m,k),be);if(On&&It>0){_.setColor(On),It*=2;let Ft=.5*an;_.setWidth(It<=Ft?It:Ft),$e.setStroke(_)}else $e.setStroke(void 0);let Hn=fe(P,"layout","text-padding",M,z,m,k),Nn=$e.getPadding();Hn!==Nn[0]&&(Nn[0]=Hn,Nn[1]=Hn,Nn[2]=Hn,Nn[3]=Hn),te.setZIndex(Oi)}}}if(T>-1)return b.length=T+1,vW&&("set"in C?C.set("mapbox-layer",G):C.getProperties()["mapbox-layer"]=G),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 Qg(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 lo=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===Js.d2_details?this.getTitle(e.layer,e):e.layer}selectorBron(e){return this.legendLevel===Js.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 zx={vectorTileUrl:"https://api.pdok.nl/lv/bgt/ogc/v1_0/tiles/NetherlandsRDNewQuad",extension:".pbf",ogcApiRootUrl:{url:"https://api.pdok.nl/lv/bgt/ogc/v1",lokaalIdRegex:/[GPWL]{1}\d{4}\.[a-f0-9]{32}/g}},Ux={vectorTileUrl:"https://api.pdok.nl/lv/bag/ogc/v1_0/tiles/NetherlandsRDNewQuad",extension:".pbf",ogcApiRootUrl:void 0},Gx={vectorTileUrl:"https://api.pdok.nl/kadaster/bestuurlijkegebieden/ogc/v1_0/tiles/NetherlandsRDNewQuad",extension:".pbf",ogcApiRootUrl:void 0},Hx={vectorTileUrl:"https://api.pdok.nl/brt/top10nl/ogc/v1-preprod/tiles/NetherlandsRDNewQuad",extension:".pbf",ogcApiRootUrl:{url:"https://api.pdok.nl/brt/top10nl/ogc/v1-preprod",lokaalIdRegex:/^\d{1,16}$/}};function lN(n){let t=(window.devicePixelRatio>=1.5?.5:1)==.5?"@2x":"";return n+t+".png"}function cN(n){let t=(window.devicePixelRatio>=1.5?.5:1)==.5?"@2x":"";return n+t+".json"}var $x=class extends Uc{constructor(){super()}getType(){return"text"}readFeature(e,t){return this.readFeatureFromText(ey(e),this.adaptOptions(t))}readFeatureFromText(e,t){return se()}readFeatures(e,t){return this.readFeaturesFromText(ey(e),this.adaptOptions(t))}readFeaturesFromText(e,t){return se()}readGeometry(e,t){return this.readGeometryFromText(ey(e),this.adaptOptions(t))}readGeometryFromText(e,t){return se()}readProjection(e){return this.readProjectionFromText(ey(e))}readProjectionFromText(e){return this.dataProjection}writeFeature(e,t){return this.writeFeatureText(e,this.adaptOptions(t))}writeFeatureText(e,t){return se()}writeFeatures(e,t){return this.writeFeaturesText(e,this.adaptOptions(t))}writeFeaturesText(e,t){return se()}writeGeometry(e,t){return this.writeGeometryText(e,this.adaptOptions(t))}writeGeometryText(e,t){return se()}};function ey(n){return typeof n=="string"?n:""}var uN=$x;var wW={POINT:qi,LINESTRING:Zr,POLYGON:Yi,MULTIPOINT:Qo,MULTILINESTRING:Xa,MULTIPOLYGON:Ka},dN="EMPTY",hN="Z",fN="M",bW="ZM",ct={START:0,TEXT:1,LEFT_PAREN:2,RIGHT_PAREN:3,NUMBER:4,COMMA:5,EOF:6},CW={Point:"POINT",LineString:"LINESTRING",Polygon:"POLYGON",MultiPoint:"MULTIPOINT",MultiLineString:"MULTILINESTRING",MultiPolygon:"MULTIPOLYGON",GeometryCollection:"GEOMETRYCOLLECTION",Circle:"CIRCLE"},Wx=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=ct.LEFT_PAREN;else if(e==",")r=ct.COMMA;else if(e==")")r=ct.RIGHT_PAREN;else if(this.isNumeric_(e)||e=="-")r=ct.NUMBER,i=this.readNumber_();else if(this.isAlpha_(e))r=ct.TEXT,i=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(e==="")r=ct.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()}},qx=class{constructor(e){this.lexer_=e,this.token_={position:0,type:ct.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(ct.TEXT)){let i=t.value;i===hN?e="XYZ":i===fN?e="XYM":i===bW&&(e="XYZM"),e!=="XY"&&this.consume_()}return e}parseGeometryCollectionText_(){if(this.match(ct.LEFT_PAREN)){let e=[];do e.push(this.parseGeometry_());while(this.match(ct.COMMA));if(this.match(ct.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(ct.LEFT_PAREN)){let e=this.parsePoint_();if(this.match(ct.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(ct.LEFT_PAREN)){let e=this.parsePointList_();if(this.match(ct.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(ct.LEFT_PAREN)){let e=this.parseLineStringTextList_();if(this.match(ct.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(ct.LEFT_PAREN)){let e;if(this.token_.type==ct.LEFT_PAREN?e=this.parsePointTextList_():e=this.parsePointList_(),this.match(ct.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(ct.LEFT_PAREN)){let e=this.parseLineStringTextList_();if(this.match(ct.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(ct.LEFT_PAREN)){let e=this.parsePolygonTextList_();if(this.match(ct.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+" "+dN:r+"("+i+")"}var yN=Yx;var Kx=function(n){return n.ApplicationGeoJSON="application/geo+json",n.ApplicationJSON="application/json",n.ApplicationVndOgcFgJSON="application/vnd.ogc.fg+json",n.TextHTML="text/html",n}(Kx||{}),ty=(()=>{let e=class e{constructor(i){this.http=i,this.ogcApiUrl=void 0}getCollections(i){return this.http.get(`${i}/collections`).pipe(ge(r=>r.collections))}getItemLinks(i){let r=[];return this.http.get(`${i}/collections`).pipe(ge(o=>(o.collections.forEach(a=>{a.links.filter(c=>c.rel==="items"&&c.type===Kx.ApplicationGeoJSON).forEach(c=>{let u={displayName:a.title,link:c};r.push(u)})}),r)))}getFeaturesById(i,r){let o=new nn().set("lokaal_id",r);return this.checkFeatures(i,o)}existsId(i,r){return this.getItemLinks(i).pipe(ln(o=>o.map(s=>this.getFeaturesById(s,r))),sr(),sv())}checkFeatures(i,r){return this.http.get(i.link.href,{params:r}).pipe(ge(o=>{let s=o;return s.numberReturned>0?{link:s.links.filter(c=>c.rel==="self"&&c.type===Kx.ApplicationGeoJSON)[0],displayName:i.displayName+" "+r.toString().replace("=",": ")}:!1}))}getFeatures(i,r){return this.http.get(i.link.href,{params:r}).pipe(ge(o=>{let s=o;return s.numberReturned>0?s:!1}))}};e.\u0275fac=function(r){return new(r||e)(R(Pa))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var MW="https://api.pdok.nl/bzk/locatieserver/search/v3_1/reverse",_h=function(n){return n.search="search",n.move="move",n}(_h||{}),ea=(()=>{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 Kr({code:"EPSG:28992",extent:[-285401.92,22598.08,595401.92,903401.92]}),this.initialView=new yn({projection:this.rdProjection,center:[155e3,463e3],zoom:13,enableRotation:!1}),this.initialViewLocation={change:_h.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 rr(this,null,function*(){let r=this.initialViewLocation;r.view=i,r.change=_h.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=_h.search,this.messageSource.next(s)}zoomToFeatures(i,r){let o=new nn().set("crs","http://www.opengis.net/def/crs/EPSG/0/28992");this.idlookupService.getFeatures({displayName:r,link:i},o).subscribe(s=>{let a=new Wk({features:new LP().readFeatures(s,{featureProjection:this.rdProjection}),attributions:r}),l=this.initialViewLocation;l.view.fit(a.getExtent()),l.name=r,l.change=_h.search,this.messageSource.next(l)})}wktToCoordinates(i){return new yN().readFeature(i,{dataProjection:"EPSG:28992",featureProjection:"EPSG:28992"}).getGeometry().getCoordinates()}getLocationName(i){return rr(this,null,function*(){let r=new nn().append("X",i[0]).append("Y",i[1]).append("rows",1),o=yield this.http.get(MW,{params:r}).toPromise();return o.response.docs[0].weergavenaam?o.response.docs[0].weergavenaam:""})}};e.\u0275fac=function(r){return new(r||e)(R(Pa),R(ty))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function rl(n){return n!=null&&`${n}`!="false"}function wh(n,e=0){return AW(n)?Number(n):e}function AW(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function tu(n){return Array.isArray(n)?n:[n]}function qt(n){return n==null?"":typeof n=="string"?n:`${n}px`}function is(n){return n instanceof Je?n.nativeElement:n}function _N(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var Qx;try{Qx=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Qx=!1}var Jt=(()=>{let e=class e{constructor(i){this._platformId=i,this.isBrowser=this._platformId?Nu(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||Qx)&&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(si))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var bh;function RW(){if(bh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>bh=!0}))}finally{bh=bh||!1}return bh}function ta(n){return RW()?n:!!n.capture}var ol;function wN(){if(ol==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return ol=!1,ol;if("scrollBehavior"in document.documentElement.style)ol=!0;else{let n=Element.prototype.scrollTo;n?ol=!/\{\s*\[native code\]\s*\}/.test(n.toString()):ol=!1}}return ol}var Zx;function kW(){if(Zx==null){let n=typeof document<"u"?document.head:null;Zx=!!(n&&(n.createShadowRoot||n.attachShadow))}return Zx}function bN(n){if(kW()){let e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function kr(n){return n.composedPath?n.composedPath()[0]:n.target}function Ch(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var PW=(()=>{let e=class e{create(i){return typeof MutationObserver>"u"?null:new MutationObserver(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var CN=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=Ue({providers:[PW]});let n=e;return n})();var EN=new Set,sl,OW=(()=>{let e=class e{constructor(i,r){this._platform=i,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):FW}matchMedia(i){return(this._platform.WEBKIT||this._platform.BLINK)&&NW(i,this._nonce),this._matchMedia(i)}};e.\u0275fac=function(r){return new(r||e)(R(Jt),R(Mu,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function NW(n,e){if(!EN.has(n))try{sl||(sl=document.createElement("style"),e&&sl.setAttribute("nonce",e),sl.setAttribute("type","text/css"),document.head.appendChild(sl)),sl.sheet&&(sl.sheet.insertRule(`@media ${n} {body{ }}`,0),EN.add(n))}catch(t){console.error(t)}}function FW(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var DN=(()=>{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 xN(tu(i)).some(o=>this._registerQuery(o).mql.matches)}observe(i){let o=xN(tu(i)).map(a=>this._registerQuery(a).observable),s=pa(o);return s=cs(s.pipe(ar(1)),s.pipe(hu(1),cf(0))),s.pipe(ge(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 Le(a=>{let l=c=>this._zone.run(()=>a.next(c));return r.addListener(l),()=>{r.removeListener(l)}}).pipe(Il(r),ge(({matches:a})=>({query:i,matches:a})),cn(this._destroySubject)),mql:r};return this._queries.set(i,s),s}};e.\u0275fac=function(r){return new(r||e)(R(OW),R(me))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function xN(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}var MN=" ";function LW(n,e,t){let i=sy(n,e);t=t.trim(),!i.some(r=>r.trim()===t)&&(i.push(t),n.setAttribute(e,i.join(MN)))}function VW(n,e,t){let i=sy(n,e);t=t.trim();let r=i.filter(o=>o!==t);r.length?n.setAttribute(e,r.join(MN)):n.removeAttribute(e)}function sy(n,e){return n.getAttribute(e)?.match(/\S+/g)??[]}var AN="cdk-describedby-message",iy="cdk-describedby-host",tD=0,RN=(()=>{let e=class e{constructor(i,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${tD++}`,this._document=i,this._id=j($l)+"-"+tD++}describe(i,r,o){if(!this._canBeDescribed(i,r))return;let s=Jx(r,o);typeof r!="string"?(IN(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=Jx(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(`[${iy}="${this._id}"]`);for(let r=0;ro.indexOf(AN)!=0);i.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(i,r){let o=this._messageRegistry.get(r);LW(i,"aria-describedby",o.messageElement.id),i.setAttribute(iy,this._id),o.referenceCount++}_removeMessageReference(i,r){let o=this._messageRegistry.get(r);o.referenceCount--,VW(i,"aria-describedby",o.messageElement.id),i.removeAttribute(iy)}_isElementDescribedByMessage(i,r){let o=sy(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(Me),R(Jt))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Jx(n,e){return typeof n=="string"?`${e||""}/${n}`:n}function IN(n,e){n.id||(n.id=`${AN}-${e}-${tD++}`)}function nD(n){return n.buttons===0||n.detail===0}function iD(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 jW=new ee("cdk-input-modality-detector-options"),BW={ignoreKeys:[18,17,224,91,16]},kN=650,iu=ta({passive:!0,capture:!0}),zW=(()=>{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=kr(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(iD(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=kr(a)},this._options=$($({},BW),s),this.modalityDetected=this._modality.pipe(hu(1)),this.modalityChanged=this.modalityDetected.pipe(uf()),i.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,iu),o.addEventListener("mousedown",this._onMousedown,iu),o.addEventListener("touchstart",this._onTouchstart,iu)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,iu),document.removeEventListener("mousedown",this._onMousedown,iu),document.removeEventListener("touchstart",this._onTouchstart,iu))}};e.\u0275fac=function(r){return new(r||e)(R(Jt),R(me),R(Me),R(jW,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var oy=function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n}(oy||{}),UW=new ee("cdk-focus-monitor-default-options"),ry=ta({passive:!0,capture:!0}),ay=(()=>{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=kr(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||oy.IMMEDIATE}monitor(i,r=!1){let o=is(i);if(!this._platform.isBrowser||o.nodeType!==1)return de();let s=bN(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=is(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=is(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===oy.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===oy.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?kN:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(i,r){let o=this._elementInfo.get(r),s=kr(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,ry),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,ry)}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(cn(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,ry),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ry),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=j(DN).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return al.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 al.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return al.BLACK_ON_WHITE}return al.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let i=this._document.body.classList;i.remove(eD,SN,TN),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===al.BLACK_ON_WHITE?i.add(eD,SN):r===al.WHITE_ON_BLACK&&i.add(eD,TN)}}};e.\u0275fac=function(r){return new(r||e)(R(Jt),R(Me))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),PN=(()=>{let e=class e{constructor(i){i._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(r){return new(r||e)(R(rD))},e.\u0275mod=Ge({type:e}),e.\u0275inj=Ue({imports:[CN]});let n=e;return n})();var GW=new ee("cdk-dir-doc",{providedIn:"root",factory:HW});function HW(){return j(Me)}var $W=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function WW(n){let e=n?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?$W.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var ly=(()=>{let e=class e{constructor(i){if(this.value="ltr",this.change=new Ce,i){let r=i.body?i.body.dir:null,o=i.documentElement?i.documentElement.dir:null;this.value=WW(r||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(R(GW,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var na=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=Ue({});let n=e;return n})();var qW=20,Eh=(()=>{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=qW){return this._platform.isBrowser?new Le(r=>{this._globalSubscription||this._addGlobalListener();let o=i>0?this._scrolled.pipe(af(i)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):de()}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=is(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 du(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(me),R(Jt),R(Me,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var YW=20,uy=(()=>{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=YW){return i>0?this._change.pipe(af(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(me),R(Me,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var cy=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=Ue({});let n=e;return n})(),sD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=Ue({imports:[na,cy,na,cy]});let n=e;return n})();var xh=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}},Dh=class extends xh{constructor(e,t,i,r,o){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}},dy=class extends xh{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()}},aD=class extends xh{constructor(e){super(),this.element=e instanceof Je?e.nativeElement:e}},lD=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof Dh)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof dy)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof aD)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 hy=class extends lD{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||wt.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 FN=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=Ue({});let n=e;return n})();var LN=wN(),cD=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"),LN&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),LN&&(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 uD=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}},fy=class{enable(){}disable(){}attach(){}};function dD(n,e){return e.some(t=>{let i=n.bottomt.bottom,o=n.rightt.right;return i||r||o||s})}function VN(n,e){return e.some(t=>{let i=n.topt.bottom,o=n.leftt.right;return i||r||o||s})}var hD=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();dD(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}},KW=(()=>{let e=class e{constructor(i,r,o,s){this._scrollDispatcher=i,this._viewportRuler=r,this._ngZone=o,this.noop=()=>new fy,this.close=a=>new uD(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new cD(this._viewportRuler,this._document),this.reposition=a=>new hD(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}};e.\u0275fac=function(r){return new(r||e)(R(Eh),R(uy),R(me),R(Me))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),fD=class{constructor(e){if(this.scrollStrategy=new fy,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 pD=class{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}};var HN=(()=>{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(Me))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ZW=(()=>{let e=class e extends HN{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(Me),R(me,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),QW=(()=>{let e=class e extends HN{constructor(i,r,o){super(i),this._platform=r,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=kr(s)},this._clickListener=s=>{let a=kr(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(jN(d.overlayElement,a)||jN(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(Me),R(Jt),R(me,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function jN(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 $N=(()=>{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||Ch()){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=Kl(()=>i0(()=>{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(),bo(()=>{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=$($({},this._config),e),this._updateElementSize()}setDirection(e){this._config=mt($({},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=tu(t||[]).filter(o=>!!o);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(cn(ov(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)}},BN="cdk-overlay-connected-position-bounding-box",JW=/([A-Za-z%]+)$/,gD=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=yt.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(BN),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&&ll(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(BN),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=UN(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=zN(this._overlayRef.getConfig().minHeight),a=zN(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=UN(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,ll(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ll(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ll(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();ll(i,this._getExactOverlayY(t,e,u)),ll(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="")),ll(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:VN(e,i),isOriginOutsideView:dD(e,i),isOverlayClipped:VN(t,i),isOverlayOutsideView:dD(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&&tu(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 Je)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 ll(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function zN(n){if(typeof n!="number"&&n!=null){let[e,t]=n.split(JW);return!t||t==="px"?parseFloat(e):null}return n||null}function UN(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 eq(n,e){return n===e?!0:n.isOriginClipped===e.isOriginClipped&&n.isOriginOutsideView===e.isOriginOutsideView&&n.isOverlayClipped===e.isOverlayClipped&&n.isOverlayOutsideView===e.isOverlayOutsideView}var GN="cdk-global-overlay-wrapper",yD=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(GN),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(GN),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},tq=(()=>{let e=class e{constructor(i,r,o,s){this._viewportRuler=i,this._document=r,this._platform=o,this._overlayContainer=s}global(){return new yD}flexibleConnectedTo(i){return new gD(i,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(r){return new(r||e)(R(uy),R(Me),R(Jt),R($N))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),nq=0,ia=(()=>{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 fD(i);return a.direction=a.direction||this._directionality.value,new mD(s,r,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(un))}position(){return this._positionBuilder}_createPaneElement(i){let r=this._document.createElement("div");return r.id=`cdk-overlay-${nq++}`,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(Ui)),new hy(i,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(r){return new(r||e)(R(KW),R($N),R(hr),R(tq),R(ZW),R(wt),R(me),R(Me),R(ly),R(xs),R(QW),R(pr,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var iq=new ee("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=j(ia);return()=>n.scrollStrategies.reposition()}});function rq(n){return()=>n.scrollStrategies.reposition()}var oq={provide:iq,deps:[ia],useFactory:rq},WN=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=Ue({providers:[ia,oq],imports:[na,FN,sD,sD]});let n=e;return n})();var We=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}(We||{}),co="*";function qN(n,e=null){return{type:We.Sequence,steps:n,options:e}}function vD(n){return{type:We.Style,styles:n,offset:null}}var ra=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}},Ih=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}},py="!";var aq=["mat-internal-form-field",""],lq=["*"];function cq(){return!0}var uq=new ee("mat-sanity-checks",{providedIn:"root",factory:cq}),rs=(()=>{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 Ch()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[i]}};e.\u0275fac=function(r){return new(r||e)(R(rD),R(uq,8),R(Me))},e.\u0275mod=Ge({type:e}),e.\u0275inj=Ue({imports:[na,na]});let n=e;return n})();var er=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}(er||{}),_D=class{constructor(e,t,i,r=!1){this._renderer=e,this.element=t,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=er.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},YN=ta({passive:!0,capture:!0}),wD=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let t=kr(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,YN)})}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,YN)))}},XN={enterDuration:225,exitDuration:150},dq=800,KN=ta({passive:!0,capture:!0}),ZN=["mousedown","touchstart"],QN=["mouseup","mouseleave","touchend","touchcancel"],Sh=class Sh{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=is(i))}fadeInRipple(e,t,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=$($({},XN),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);let s=i.radius||hq(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 _D(this,u,i,p);u.style.transform="scale3d(1, 1, 1)",y.state=er.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===er.FADING_OUT||e.state===er.HIDDEN)return;let t=e.element,i=$($({},XN),e.config.animation);t.style.transitionDuration=`${i.exitDuration}ms`,t.style.opacity="0",e.state=er.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=is(e);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,ZN.forEach(i=>{Sh._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(()=>{QN.forEach(t=>{this._triggerElement.addEventListener(t,this,KN)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===er.FADING_IN?this._startFadeOutTransition(e):e.state===er.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let t=e===this._mostRecentTransientRipple,{persistent:i}=e.config;e.state=er.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=er.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=nD(e),i=this._lastTouchStartEvent&&Date.now(){let t=e.state===er.VISIBLE||e.config.terminateOnPointerUp&&e.state===er.FADING_IN;!e.config.persistent&&t&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(ZN.forEach(t=>Sh._eventManager.removeHandler(t,e,this)),this._pointerUpEventsRegistered&&(QN.forEach(t=>e.removeEventListener(t,this,KN)),this._pointerUpEventsRegistered=!1))}};Sh._eventManager=new wD;var bD=Sh;function hq(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 fq=new ee("mat-ripple-global-options"),JN=(()=>{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 bD(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:$($($({},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,$($({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,$($({},this.rippleConfig),i))}};e.\u0275fac=function(r){return new(r||e)(Q(Je),Q(me),Q(Jt),Q(fq,8),Q(pr,8))},e.\u0275dir=kt({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){r&2&&jn("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 eF=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Qe({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&&jn("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[mr],attrs:aq,ngContentSelectors:lq,decls:1,vars:0,template:function(r,o){r&1&&(ku(),Pu(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 mq=["tooltip"],iF=20;var rF=new ee("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let n=j(ia);return()=>n.scrollStrategies.reposition({scrollThrottle:iF})}});function gq(n){return()=>n.scrollStrategies.reposition({scrollThrottle:iF})}var yq={provide:rF,deps:[ia],useFactory:gq};function vq(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var _q=new ee("mat-tooltip-default-options",{providedIn:"root",factory:vq});var tF="tooltip-panel",nF=ta({passive:!0}),wq=8,bq=8,Cq=24,Eq=200,ru=(()=>{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=rl(i),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(i){this._disabled=rl(i),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(i){this._showDelay=wh(i)}get hideDelay(){return this._hideDelay}set hideDelay(i){this._hideDelay=wh(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=xq,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Ke,this._injector=j(wt),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(cn(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=wq}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(cn(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,nF)}),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 Dh(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(cn(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 Je)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(cn(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}-${tF}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(cn(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(cn(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(cn(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!_N(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($($({},o.main),s.main)),this._addOffset($($({},o.fallback),s.fallback))])}_addOffset(i){let r=bq,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(),bo(()=>{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}-${tF}-`;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,nF)})}_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)(Q(ia),Q(Je),Q(Eh),Q(Vn),Q(me),Q(Jt),Q(RN),Q(ay),Q(rF),Q(ly),Q(_q,8),Q(Me))},e.\u0275dir=kt({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(r,o){r&2&&jn("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})(),xq=(()=>{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>Cq&&i.width>=Eq}_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)(Q(tn),Q(Je),Q(pr,8))},e.\u0275cmp=Qe({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(r,o){if(r&1&&Cn(mq,7),r&2){let s;dn(s=hn())&&(o._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,o){r&1&&ie("mouseleave",function(a){return o._handleMouseLeave(a)}),r&2&&xt("zoom",o.isVisible()?1:null)},standalone:!0,features:[mr],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=Re();S(0,"div",1,0),ie("animationend",function(l){return X(s),K(o._handleAnimationEnd(l))}),S(2,"div",2),Z(3),x()()}r&2&&(jn("mdc-tooltip--multiline",o._isMultiline),O("ngClass",o.tooltipClass),A(3),Pt(o.message))},dependencies:[_M],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 oF=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=Ue({providers:[yq],imports:[PN,Ql,WN,rs,rs,cy]});let n=e;return n})();var sF=new ee("");var aF=new ee("");var Dq={"[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"},cwe=mt($({},Dq),{"[class.ng-submitted]":"isSubmitted"});var Iq=["switch"],Sq=["*"];function Tq(n,e){n&1&&(S(0,"div",10),ap(),S(1,"svg",12),Te(2,"path",13),x(),S(3,"svg",14),Te(4,"path",15),x()())}var Mq=new ee("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),Aq={provide:sF,useExisting:xu(()=>oa),multi:!0},my=class{constructor(e,t){this.source=e,this.checked=t}},Rq=0,oa=(()=>{let e=class e{_createChangeEvent(i){return new my(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 Ce,this.toggleChange=new Ce,this.tabIndex=parseInt(s)||0,this.color=a.color||"accent",this._noopAnimations=l==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++Rq}`,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 my(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};e.\u0275fac=function(r){return new(r||e)(Q(Je),Q(ay),Q(tn),dp("tabindex"),Q(Mq),Q(pr,8))},e.\u0275cmp=Qe({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(r,o){if(r&1&&Cn(Iq,5),r&2){let s;dn(s=hn())&&(o._switchElement=s.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(r,o){r&2&&(Cp("id",o.id),$r("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Eo(o.color?"mat-"+o.color:""),jn("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",Gi],color:"color",disabled:[2,"disabled","disabled",Gi],disableRipple:[2,"disableRipple","disableRipple",Gi],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:g0(i)],checked:[2,"checked","checked",Gi],hideIcon:[2,"hideIcon","hideIcon",Gi]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[Yl([Aq,{provide:aF,useExisting:e,multi:!0}]),Co,oi,mr],ngContentSelectors:Sq,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=Re();ku(),S(0,"div",1)(1,"button",2,0),ie("click",function(){return X(s),K(o._handleClick())}),Te(3,"div",3),S(4,"div",4)(5,"div",5)(6,"div",6),Te(7,"div",7),x(),S(8,"div",8),Te(9,"div",9),x(),_e(10,Tq,5,0,"div",10),x()()(),S(11,"label",11),ie("click",function(l){return X(s),K(l.stopPropagation())}),Pu(12),x()()}if(r&2){let s=ql(2);O("labelPosition",o.labelPosition),A(),jn("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(),l0(o.hideIcon?-1:10),A(),O("for",o.buttonId),$r("id",o._labelId)}},dependencies:[JN,eF],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 lF=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=Ue({imports:[oa,rs,rs]});let n=e;return n})();var cF=(()=>{let e=class e{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(i){this._vertical=rl(i)}get inset(){return this._inset}set inset(i){this._inset=rl(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Qe({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"),jn("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[mr],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})(),uF=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=Ue({imports:[rs,rs]});let n=e;return n})();var sa=(()=>{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=Qe({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&&(S(0,"div",0)(1,"a",1),Z(2),x()()),r&2&&(A(),Es("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})();var Pq=["mview"];function Oq(n,e){if(n&1&&(S(0,"div")(1,"div",2),Z(2,"OGC API Feature:"),x(),Te(3,"app-feature-view",3,0)(5,"app-showlink",4),x()),n&2){let t=L();A(5),O("url",t.ogcApiUrl)}}var dF=(()=>{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)(Q(tn))},e.\u0275cmp=Qe({type:e,selectors:[["app-ogcmap"]],viewQuery:function(r,o){if(r&1&&Cn(Pq,5),r&2){let s;dn(s=hn())&&(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&&_e(0,Oq,6,1,"div",1),r&2&&O("ngIf",o.ogcApiUrl)},dependencies:[ai,sa],styles:[".featureMapCaption[_ngcontent-%COMP%]{text-align:left;font-weight:700}"],changeDetection:0});let n=e;return n})();function Fq(n,e){if(n&1&&(S(0,"td"),Te(1,"app-showlink",10),x()),n&2){let t=L().$implicit;A(),O("url",t.value)}}function Lq(n,e){if(n&1&&Z(0),n&2){let t=L().$implicit;En("",t.value," ")}}function Vq(n,e){if(n&1&&(S(0,"tr")(1,"td"),Z(2),x(),_e(3,Fq,2,1,"td",9)(4,Lq,1,1,"ng-template",null,0,K1),x()),n&2){let t=e.$implicit,i=ql(5),r=L(2);A(2),Pt(t.title),A(),O("ngIf",r.isLink(t))("ngIfElse",i)}}function jq(n,e){if(n&1&&(S(0,"div")(1,"table",3)(2,"caption",4),Z(3," Object Informatie: "),x(),S(4,"thead")(5,"th",5),Z(6,"Veld"),x(),S(7,"th",6),Z(8,"Waarde"),x()(),S(9,"tbody")(10,"tr")(11,"td"),Z(12,"Kleur"),x(),Te(13,"td",7),x(),_e(14,Vq,6,3,"tr",2),x()(),Te(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 Bq=[0,0,0,0],hF=(()=>{let e=class e{constructor(i){this.cd=i,this.features=[],this.styleFunction={},this.fillColor=Bq}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=zq(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":Qg(r(i,o))}:{"background-color":"white"}}};e.\u0275fac=function(r){return new(r||e)(Q(tn))},e.\u0275cmp=Qe({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&&(S(0,"div",1),_e(1,jq,17,3,"div",2),x()),r&2&&(A(),O("ngForOf",o.getFeatures()))},dependencies:[Wr,ai,Lp,cF,sa,dF],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 zq(n,e,t,i){return n+"/collections/"+e+"/items?crs=http%3A%2F%2Fwww.opengis.net%2Fdef%2Fcrs%2FEPSG%2F0%2F28992&"+t+"="+i}var Gq=["mapCanvas"],Hq=["downloadLink"],$q="#FFFFFF",fF=(()=>{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=$q,this.mapContext.fillRect(0,0,o,s),this.mapContext.drawImage(i,0,0))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Qe({type:e,selectors:[["app-mapexport"]],viewQuery:function(r,o){if(r&1&&(Cn(Gq,5),Cn(Hq,5)),r&2){let s;dn(s=hn())&&(o.mapCanvas=s.first),dn(s=hn())&&(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=Re();S(0,"button",2),ie("click",function(){return X(s),K(o.downloadMap())}),Z(1,` Kaart downloaden `),x(),S(2,"div",3)(3,"a",null,0),Z(5,"download"),x(),Te(6,"canvas",null,1),x()}},styles:[".canvasHidden[_ngcontent-%COMP%]{display:none}"]});let n=e;return n})();var qq=["lview"];function Yq(n,e){if(n&1){let t=Re();S(0,"div",15),ie("click",function(){let r=X(t).$implicit,o=L(2);return K(o.onSelectLevel(r.value))}),S(1,"button",16)(2,"span"),Z(3),x()()()}if(n&2){let t=e.$implicit,i=L(2);A(),O("disabled",i.disEnabledLevel(t)),A(2),Pt(t.value)}}function Xq(n,e){if(n&1){let t=Re();wp(0),S(1,"div",18),Z(2),x(),S(3,"div",19)(4,"input",20),xp("colorPickerChange",function(r){X(t);let o=L().$implicit;return d0(o.value.rbgString,r)||(o.value.rbgString=r),K(r)}),ie("colorPickerChange",function(){X(t);let r=L().$implicit,o=L(3);return K(o.onColorChange(r))}),x()(),bp()}if(n&2){let t=L().$implicit;A(),O("ngStyle",t.value.textcolorRbgString()),A(),En(" ",t.value.sampleText," "),A(2),xt("background",t.value.rbgString),Ep("colorPicker",t.value.rbgString),O("cpOutputFormat","rgba")("cpAlphaChannel","enabled")("cpSaveClickOutside",!0)}}function Kq(n,e){if(n&1){let t=Re();S(0,"tr")(1,"td")(2,"input",17),ie("change",function(r){let o=X(t).$implicit,s=L(3);return K(s.onCheckboxChange(r,o))}),x(),Z(3),_e(4,Xq,5,8,"ng-container",5),x()()}if(n&2){let t=e.$implicit;A(2),O("checked",t.value.show),A(),En(" ",t.key," "),A(),O("ngIf",t.value.show)}}function Zq(n,e){if(n&1){let t=Re();S(0,"tr")(1,"td"),Z(2,"labels"),x(),S(3,"td")(4,"input",17),ie("change",function(r){X(t);let o=L(2);return K(o.onCheckboxLabelsChange(r))}),x()(),S(5,"td"),_e(6,Kq,5,3,"tr",14),Ta(7,"keyvalue"),x()()}if(n&2){let t=L(2);A(4),O("checked",t.colorArrayChecked(!0)),A(2),O("ngForOf",Xl(7,2,t.getItems(!0)))}}function Qq(n,e){if(n&1){let t=Re();S(0,"div")(1,"div",19)(2,"input",20),xp("colorPickerChange",function(r){X(t);let o=L().$implicit;return d0(o.value.rbgString,r)||(o.value.rbgString=r),K(r)}),ie("colorPickerChange",function(){X(t);let r=L().$implicit,o=L(2);return K(o.onColorChange(r))}),x()()()}if(n&2){let t=L().$implicit;A(2),xt("background",t.value.rbgString),Ep("colorPicker",t.value.rbgString),O("cpOutputFormat","rgba")("cpAlphaChannel","enabled")("cpSaveClickOutside",!0)}}function Jq(n,e){if(n&1){let t=Re();S(0,"tr")(1,"td"),Z(2),x(),S(3,"td")(4,"input",17),ie("change",function(r){let o=X(t).$implicit,s=L(2);return K(s.onCheckboxChange(r,o))}),x()(),S(5,"td"),_e(6,Qq,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 e6(n,e){if(n&1){let t=Re();S(0,"table")(1,"caption",6),Z(2," Legenda Aanpassen "),x(),S(3,"thead")(4,"th",7),Z(5,"Waarde"),x(),S(6,"th",7),Z(7,"Tonen"),x(),S(8,"th",8),Z(9,"Visualisatie"),x()(),S(10,"tbody")(11,"tr")(12,"td"),Z(13,"alle waarden"),x(),S(14,"td")(15,"input",9),ie("change",function(r){X(t);let o=L();return K(o.onCheckboxAllChange(r))}),x()(),S(16,"td")(17,"div",10)(18,"div",11)(19,"button",12),ie("click",function(){X(t);let r=L();return K(r.NewColorMap())}),Z(20," Reset Legenda "),x()(),_e(21,Yq,4,2,"div",13),Ta(22,"keyvalue"),x()()(),_e(23,Zq,8,4,"tr",5)(24,Jq,7,3,"tr",14),Ta(25,"keyvalue"),x()()}if(n&2){let t=L();A(21),O("ngForOf",Xl(22,3,t.detaillevel)),A(2),O("ngIf",t.hasTextlabels()),A(),O("ngForOf",Y1(25,5,t.getItems(!1),t.valueAscOrder))}}var pF=(()=>{let e=class e{get isShowStyler(){return this._isShowStyler}set isShowStyler(i){this._isShowStyler=i,this._isShowStyler||this.changeUrl()}constructor(){this.StyleUrl="",this.detaillevel=Js,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 lo(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=Qe({type:e,selectors:[["app-mapstyler"]],viewQuery:function(r,o){if(r&1&&Cn(qq,5),r&2){let s;dn(s=hn())&&(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=Re();S(0,"div",1)(1,"mat-slide-toggle",2),ie("click",function(){return X(s),K(o.toggleShowStdLegend())}),Z(2,"Visualisatie aanpassen"),x(),S(3,"div",3),Te(4,"app-legend-view",4,0),x(),_e(6,e6,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:[Wr,ai,Lp,XM,ru,oa,CM],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 mF=(()=>{let e=class e{get isDemoVisualisatieRotate(){return Ao.demoVisualisatieRotate}set isDemoVisualisatieRotate(i){Ao.demoVisualisatieRotate=i}get isDemoLocatieRotate(){return Ao.demoLocatieRotate}set isDemoLocatieRotate(i){Ao.demoLocatieRotate=i}get isPreviewFeature(){return Ao.previewFeature}set isPreviewFeature(i){Ao.previewFeature=i}constructor(i){this.locationService=i,this.visEmit=new Ce,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=>{})}DemoPreviewFeaturesToggle(){this.isPreviewFeature=!this.isPreviewFeature}DemoRandomLocationToggle(){this.isDemoLocatieRotate=!this.isDemoLocatieRotate,this.isDemoLocatieRotate?(this.demotextLocatie=this.demotextLocatieUit,this.gotoRandomLocation()):this.demotextLocatie=this.demotextLocatieAan}DemogotoStartLocationOnMap(){this.visEmit.emit(ae.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(ae.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 yn({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(UA(ae)),setTimeout(()=>{this.repeating_style_function()},Math.round(Math.random()*4e3)))}};e.\u0275fac=function(r){return new(r||e)(Q(ea))},e.\u0275cmp=Qe({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&&(S(0,"div",0)(1,"h3"),Z(2,"Vectortile Demo Viewer"),x(),Z(3," Deze viewer is gemaakt om BGT vectortiles te demonstreren "),S(4,"div")(5,"button",1),ie("click",function(){return o.DemogotoStartLocationOnMap()}),Z(6," Reset (einde demo) "),x()(),S(7,"div")(8,"mat-slide-toggle",2),ie("click",function(){return o.DemoRandomLocationToggle()}),Z(9),x(),S(10,"mat-slide-toggle",2),ie("click",function(){return o.DemoVisualisationToggle()}),Z(11),x(),S(12,"mat-slide-toggle",3),ie("click",function(){return o.DemoPreviewFeaturesToggle()}),Z(13,"Toon preview features "),x()()()),r&2&&(A(8),Es("aria-label",o.demotextLocatie),O("matTooltip",o.demotextLocatie)("matTooltipPosition","left")("checked",o.isDemoLocatieRotate),A(),En("",o.demotextLocatie," "),A(),Es("aria-label",o.demotextVisualisatie),O("matTooltip",o.demotextVisualisatie)("matTooltipPosition","left")("checked",o.isDemoVisualisatieRotate),A(),En("",o.demotextVisualisatie," "),A(),O("matTooltip","preview features")("matTooltipPosition","left")("checked",o.isPreviewFeature))},dependencies:[ru,oa],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 i6(n,e){if(n&1&&(S(0,"div")(1,"div"),Te(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 r6(n,e){if(n&1&&(S(0,"div"),_e(1,i6,3,4,"div",5),x()),n&2){let t=L();A(),O("ngIf",t.showselectedFeatures())}}function o6(n,e){if(n&1&&(S(0,"div"),Te(1,"app-mapstyler",8),x()),n&2){let t=L(2);A(),O("Layer",t.CurrentVectorTileLayer)("ColorMap",t.colorMap)("StyleUrl",t.getShowStyleUrl())}}function s6(n,e){if(n&1&&(S(0,"div"),_e(1,o6,2,3,"div",5),x()),n&2){let t=L();A(),O("ngIf",t.isShowLegend)}}function a6(n,e){if(n&1){let t=Re();S(0,"div",9)(1,"div",10)(2,"div",11)(3,"app-demobox",12),ie("visEmit",function(r){X(t);let o=L();return K(o.visualisationChange(r))}),x(),S(4,"table")(5,"caption",13),Z(6," Technische informatie: "),x(),S(7,"thead")(8,"th",14),Z(9,"Veld"),x(),S(10,"th",15),Z(11,"Waarde"),x()(),S(12,"tbody")(13,"tr")(14,"td"),Z(15,"Huidige Zoomlevel"),x(),S(16,"td"),Z(17),x()(),S(18,"tr")(19,"td"),Z(20,"Pixel Ratio scherm"),x(),S(21,"td"),Z(22),x()(),S(23,"tr")(24,"td"),Z(25,"Vectortile api"),x(),S(26,"td"),Te(27,"app-showlink",16),x()(),S(28,"tr")(29,"td"),Z(30,"Style api"),x(),S(31,"td"),Te(32,"app-showlink",16),x()()()(),Te(33,"app-mapexport",17),x()()()}if(n&2){let t=L();A(17),Pt(t.getZoomLevel()),A(5),Pt(t.getDevicePixelRatio()),A(5),O("url",t.getShowTileUrl()),A(5),O("url",t.getShowStyleUrl()),A(),O("map",t.map1)}}var gF=(()=>{let e=class e{set visualisation(i){this.SelectedVisualisation=i,this.colorMap.setSelector(Js.d1_layer)}viewRD(i){return new yn({projection:this.rdProjection,center:[155e3,463e3],zoom:i,minZoom:i,enableRotation:!1})}constructor(i,r){this.router=i,this.locationService=r,this.titelEmit=new Ce,this.SelectedVisualisation=ae.BGTachtergrond,this.colorMap=new Jg(Js.d1_layer),this.showUrl="",this.zoom=13,this.vectorTileLayerRD=new lO({renderMode:"hybrid",declutter:!0,useInterimTilesOnError:!1}),this.CurrentVectorTileLayer=this.vectorTileLayerRD,this.rdProjection=new Kr({code:"EPSG:28992",extent:[-285401.92,22598.08,595401.92,903401.92]}),this.map1=new vg({layers:[this.vectorTileLayerRD],target:"map1",view:this.viewRD(this.zoom)}),this.resolutions=[],this.matrixIds=[],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 vg({layers:[this.vectorTileLayerRD],target:"map1",view:this.viewRD(this.zoom)}),this.map1.addInteraction(new PP),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":""})}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 Tc}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=qe(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()}changeStyleJson(){let i=13;switch(this.SelectedVisualisation){case ae.BESTUURBlanko:case ae.BESTUURWithLabels:case ae.BESTUURstd:i=3;break;case ae.Top10nlBlanco:case ae.Top10nlKleurrijk:case ae.Top10nlStandaard:case ae.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=dd(this.SelectedVisualisation);if(s.source=="bag"&&(this.setTileSource(this.rdProjection,this.vectorTileLayerRD,Ux,12),this.showUrl=Ux.vectorTileUrl),s.source=="bgt"&&(this.setTileSource(this.rdProjection,this.vectorTileLayerRD,zx,12),this.showUrl=zx.vectorTileUrl),s.source=="bestuurlijkegebieden"&&(this.setTileSource(this.rdProjection,this.vectorTileLayerRD,Gx,2),this.showUrl=Gx.vectorTileUrl),s.source=="top10nl"&&(this.setTileSource(this.rdProjection,this.vectorTileLayerRD,Hx,11),this.showUrl=Hx.vectorTileUrl),s.url)fetch(s.url).then(a=>{a.json().then(l=>{l.sprite?fetch(cN(l.sprite)).then(c=>{c.json().then(u=>{let d=lN(l.sprite);this.stfunction=Bx(r,l,s.source,o,u,d),r.setStyle(this.doStyle.bind(this))})}):(this.stfunction=Bx(r,l,s.source,o),r.setStyle(this.doStyle.bind(this)))})});else switch(this.SelectedVisualisation){case ae.BESTUURBlanko:case ae.Bagblanko:case ae.BGTzerodefaultA_blanco:case ae.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 ae.Top10nlStandaard:case ae.BGTstandaard:case ae.BGTachtergrond:case ae.Bagstd:case ae.BagCompleet:case ae.BESTUURWithLabels:case ae.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 lo(l,i,!0,s);return c&&(u.rbgString=Qg(c),this.colorMap.set(l,u)),c}}break}case ae.BagKleurrijk_tegels:case ae.Top10nlTegels:case ae.BGTzerodefaultB_tegels:return new lo("default zero",i,!1,!1).showfreshstyle(s);case ae.BGTzerodefaultC_Bron:{let l=this.colorMap.selectorBron(o),c;if(this.colorMap.has(l))c=this.colorMap.get(l);else{let u=new lo(l,i,!1,!1);this.colorMap.set(l,u),c=u}return c.showfreshstyle(s)}case ae.Bagkleurrijk:case ae.Top10nlKleurrijk:case ae.BGTzerodefaultD_kleur:{let l=o.layer,c=a(o,l);if(this.colorMap.has(l))return this.colorMap.get(l)?.showfreshstyle(c);{let u=new lo(l,i,!1,c);return this.colorMap.set(l,u),u.showfreshstyle(c)}}case ae.Bagblanko:case ae.BGTzerodefaultA_blanco:case ae.Top10nlBlanco:case ae.BESTUURBlanko:return new lo("default zero",i,!1,!1).showfreshstyle(s);default:Mw(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 cO({format:new WP,projection:i,tileGrid:new Ja({extent:i.getExtent(),resolutions:this.resolutions,tileSize:[256,256],origin:zn(i.getExtent())}),url:this.getVectorTileUrl(r),cacheSize:0})}getVectorTileUrl(i){return`${i.vectorTileUrl}/{z}/{y}/{x}${i.extension}`}getShowTileUrl(){return this.showUrl}getShowStyleUrl(){let i=dd(this.SelectedVisualisation).url;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")}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 Sn({color:"rgb(51, 153, 204, 0.8)",width:1.25}),o=new Wo({stroke:r,radius:5});return[new Tn({image:o,fill:i,stroke:r})]}getOgcUrl(){return this.ogcUrl?.url}};e.\u0275fac=function(r){return new(r||e)(Q(_r),Q(ea))},e.\u0275cmp=Qe({type:e,selectors:[["app-olmap"]],inputs:{visualisation:"visualisation"},outputs:{titelEmit:"titelEmit"},features:[oi],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"],[1,"techcaption"],["id","Veld"],["id","Waarde"],[3,"url"],[3,"map"]],template:function(r,o){r&1&&(S(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-slide-toggle",3),ie("click",function(){return o.toggleShowDetails()}),Z(4,"Objectinformatie"),x(),S(5,"mat-slide-toggle",4),ie("click",function(){return o.toggleShowLegend()}),Z(6,"Legenda"),x(),S(7,"mat-slide-toggle",3),ie("click",function(){return o.toggleShowDemo()}),Z(8,"Demo Menu"),x()(),S(9,"div"),_e(10,r6,2,1,"div",5)(11,s6,2,1,"div",5)(12,a6,34,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))},dependencies:[ai,ru,oa,hF,fF,pF,mF,sa],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;max-height:70vh}.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 gy=class{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};var yF=new ee("basePath");var cl=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 DD=(()=>{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 gr,this.configuration=new cl,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 gy}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 nn({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 ka);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 nn({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 ka);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 nn({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 ka);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(Pa),R(yF,8),R(cl,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function u6(n,e){if(n&1){let t=Re();S(0,"div",5),ie("click",function(){let r=X(t).$implicit,o=L(2);return K(o.onSelectSearch(r))}),S(1,"button",6)(2,"span"),Z(3),x()()()}if(n&2){let t=e.$implicit;A(3),Pt(t.weergavenaam)}}function d6(n,e){if(n&1){let t=Re();S(0,"div",5),ie("click",function(){let r=X(t).$implicit,o=L(2);return K(o.onSelectSearchID(r))}),S(1,"button",6)(2,"span"),Z(3),x()()()}if(n&2){let t=e.$implicit;A(3),Pt(t.displayName)}}function h6(n,e){if(n&1&&(S(0,"div"),_e(1,u6,4,1,"div",4),Ta(2,"async"),_e(3,d6,4,1,"div",4),Ta(4,"async"),x()),n&2){let t=L();A(),O("ngForOf",t.getNames(Xl(2,2,t.$suggest))),A(2),O("ngForOf",t.getids(Xl(4,4,t.$ids)))}}var vF=(()=>{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>0){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)(Q(DD),Q(ea),Q(ty))},e.\u0275cmp=Qe({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=Re();S(0,"div",1)(1,"div")(2,"input",2,0),ie("keyup",function(){X(s);let l=ql(3);return K(o.onSearchKey(l.value))}),x(),_e(4,h6,5,6,"div",3),x()()}r&2&&(A(2),O("value",o.searchLocation),A(2),O("ngIf",o.searchListVisible))},dependencies:[Wr,ai,bM],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 _F="https://www.kaartenvannederland.nl/",wF=(()=>{let e=class e{constructor(i){this.locationService=i,this.kaartenNLUrl=_F,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 nn().append("geometry.x",this.xy[0]).append("geometry.y",this.xy[1]).append("zoomlevel",r);this.kaartenNLUrl=_F+"#?"+o.toString()})}};e.\u0275fac=function(r){return new(r||e)(Q(ea))},e.\u0275cmp=Qe({type:e,selectors:[["app-location"]],decls:8,vars:4,consts:[[1,"locationbox"],[1,".locitem"],["target","_blank",3,"href"]],template:function(r,o){r&1&&(S(0,"div",0)(1,"div",1),Z(2),x(),S(3,"div",1),Z(4),x(),S(5,"div",1)(6,"a",2),Z(7,"BGT Kaarten van Nederland"),x()()()),r&2&&(A(2),u0(" RD [x=",o.xy[0].toFixed(0),", y=",o.xy[1].toFixed(0),"] "),A(2),En(" ",o.location.name," "),A(2),Es("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})();function bF(n){return new W(3e3,!1)}function f6(){return new W(3100,!1)}function p6(){return new W(3101,!1)}function m6(n){return new W(3001,!1)}function g6(n){return new W(3003,!1)}function y6(n){return new W(3004,!1)}function v6(n,e){return new W(3005,!1)}function _6(){return new W(3006,!1)}function w6(){return new W(3007,!1)}function b6(n,e){return new W(3008,!1)}function C6(n){return new W(3002,!1)}function E6(n,e,t,i,r){return new W(3010,!1)}function x6(){return new W(3011,!1)}function D6(){return new W(3012,!1)}function I6(){return new W(3200,!1)}function S6(){return new W(3202,!1)}function T6(){return new W(3013,!1)}function M6(n){return new W(3014,!1)}function A6(n){return new W(3015,!1)}function R6(n){return new W(3016,!1)}function k6(n,e){return new W(3404,!1)}function P6(n){return new W(3502,!1)}function O6(n){return new W(3503,!1)}function N6(){return new W(3300,!1)}function F6(n){return new W(3504,!1)}function L6(n){return new W(3301,!1)}function V6(n,e){return new W(3302,!1)}function j6(n){return new W(3303,!1)}function B6(n,e){return new W(3400,!1)}function z6(n){return new W(3401,!1)}function U6(n){return new W(3402,!1)}function G6(n,e){return new W(3505,!1)}function aa(n){switch(n.length){case 0:return new ra;case 1:return n[0];default:return new Ih(n)}}function NF(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 py:y=t.get(f);break;case co: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 P6(r);return o}function YD(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&ID(t,"start",n)));break;case"done":n.onDone(()=>i(t&&ID(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&ID(t,"destroy",n)));break}}function ID(n,e,t){let i=t.totalTime,r=!!t.disabled,o=XD(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 XD(n,e,t,i,r="",o=0,s){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Pi(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function CF(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var H6=typeof document>"u"?null:document.documentElement;function KD(n){let e=n.parentNode||n.host||null;return e===H6?null:e}function $6(n){return n.substring(1,6)=="ebkit"}var ul=null,EF=!1;function W6(n){ul||(ul=q6()||{},EF=ul.style?"WebkitAppearance"in ul.style:!1);let e=!0;return ul.style&&!$6(n)&&(e=n in ul.style,!e&&EF&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in ul.style)),e}function q6(){return typeof document<"u"?document.body:null}function FF(n,e){for(;e;){if(e===n)return!0;e=KD(e)}return!1}function LF(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var ZD=(()=>{let e=class e{validateStyleProperty(i){return W6(i)}containsElement(i,r){return FF(i,r)}getParentElement(i){return KD(i)}query(i,r,o){return LF(i,r,o)}computeStyle(i,r,o){return o||""}animate(i,r,o,s,a,l=[],c){return new ra(o,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac});let n=e;return n})(),tI=class tI{};tI.NOOP=new ZD;var fl=tI,pl=class{};var Y6=1e3,VF="{{",X6="}}",jF="ng-enter",kD="ng-leave",yy="ng-trigger",Cy=".ng-trigger",xF="ng-animating",PD=".ng-animating";function os(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:OD(parseFloat(e[1]),e[2])}function OD(n,e){switch(e){case"s":return n*Y6;default:return n}}function Ey(n,e,t){return n.hasOwnProperty("duration")?n:K6(n,e,t)}function K6(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(bF(n)),{duration:0,delay:0,easing:""};r=OD(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=OD(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(f6()),a=!0),o<0&&(e.push(p6()),a=!0),a&&e.splice(l,0,bF(n))}return{duration:r,delay:o,easing:s}}function Z6(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function uo(n,e,t){e.forEach((i,r)=>{let o=QD(r);t&&!t.has(r)&&t.set(r,n.style[o]),n.style[o]=i})}function hl(n,e){e.forEach((t,i)=>{let r=QD(i);n.style[r]=""})}function Th(n){return Array.isArray(n)?n.length==1?n[0]:qN(n):n}function Q6(n,e,t){let i=e.params||{},r=BF(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(m6(o))})}var ND=new RegExp(`${VF}\\s*(.+?)\\s*${X6}`,"g");function BF(n){let e=[];if(typeof n=="string"){let t;for(;t=ND.exec(n);)e.push(t[1]);ND.lastIndex=0}return e}function Ah(n,e,t){let i=`${n}`,r=i.replace(ND,(o,s)=>{let a=e[s];return a==null&&(t.push(g6(s)),a=""),a.toString()});return r==i?n:r}var J6=/-+([a-z0-9])/g;function QD(n){return n.replace(J6,(...e)=>e[1].toUpperCase())}function eY(n,e){return n===0||e===0}function tY(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,JD(n,a)))}}return e}function ki(n,e,t){switch(e.type){case We.Trigger:return n.visitTrigger(e,t);case We.State:return n.visitState(e,t);case We.Transition:return n.visitTransition(e,t);case We.Sequence:return n.visitSequence(e,t);case We.Group:return n.visitGroup(e,t);case We.Animate:return n.visitAnimate(e,t);case We.Keyframes:return n.visitKeyframes(e,t);case We.Style:return n.visitStyle(e,t);case We.Reference:return n.visitReference(e,t);case We.AnimateChild:return n.visitAnimateChild(e,t);case We.AnimateRef:return n.visitAnimateRef(e,t);case We.Query:return n.visitQuery(e,t);case We.Stagger:return n.visitStagger(e,t);default:throw y6(e.type)}}function JD(n,e){return window.getComputedStyle(n)[e]}var nY=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"]),xy=class extends pl{normalizePropertyName(e,t){return QD(e)}normalizeStyleValue(e,t,i,r){let o="",s=i.toString().trim();if(nY.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(v6(e,i))}return s+o}};var Dy="*";function iY(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>rY(i,t,e)):t.push(n),t}function rY(n,e,t){if(n[0]==":"){let l=oY(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(A6(n)),e;let r=i[1],o=i[2],s=i[3];e.push(DF(r,s));let a=r==Dy&&s==Dy;o[0]=="<"&&!a&&e.push(DF(s,r))}function oY(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 vy=new Set(["true","1"]),_y=new Set(["false","0"]);function DF(n,e){let t=vy.has(n)||_y.has(n),i=vy.has(e)||_y.has(e);return(r,o)=>{let s=n==Dy||n==r,a=e==Dy||e==o;return!s&&t&&typeof r=="boolean"&&(s=r?vy.has(n):_y.has(n)),!a&&i&&typeof o=="boolean"&&(a=o?vy.has(e):_y.has(e)),s&&a}}var zF=":self",sY=new RegExp(`s*${zF}s*,?`,"g");function UF(n,e,t,i){return new FD(n).build(e,t,i)}var IF="",FD=class{constructor(e){this._driver=e}build(e,t,i){let r=new LD(t);return this._resetContextStyleTimingState(r),ki(this,Th(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=IF,e.collectedStyles=new Map,e.collectedStyles.set(IF,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(_6()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==We.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==We.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,s.push(l)}else t.errors.push(w6())}),{type:We.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=>{BF(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&t.errors.push(b6(e.name,[...o.values()]))}return{type:We.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=ki(this,Th(e.animation),t),r=iY(e.expr,t.errors);return{type:We.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:dl(e.options)}}visitSequence(e,t){return{type:We.Sequence,steps:e.steps.map(i=>ki(this,i,t)),options:dl(e.options)}}visitGroup(e,t){let i=t.currentTime,r=0,o=e.steps.map(s=>{t.currentTime=i;let a=ki(this,s,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:We.Group,steps:o,options:dl(e.options)}}visitAnimate(e,t){let i=uY(e.timings,t.errors);t.currentAnimateTimings=i;let r,o=e.styles?e.styles:vD({});if(o.type==We.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=vD(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(s,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:We.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===co?i.push(a):t.errors.push(C6(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(VF)>=0){o=!0;break}}}),{type:We.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(E6(l,u.startTime,u.endTime,o,r)),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),t.options&&Q6(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:We.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(x6()),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:cY(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:We.Reference,animation:ki(this,Th(e.animation),t),options:dl(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:We.AnimateChild,options:dl(e.options)}}visitAnimateRef(e,t){return{type:We.AnimateRef,animation:this.visitReference(e.animation,t),options:dl(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[o,s]=aY(e.selector);t.currentQuerySelector=i.length?i+" "+o:o,Pi(t.collectedStyles,t.currentQuerySelector,new Map);let a=ki(this,Th(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:We.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:dl(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(T6());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ey(e.timings,t.errors,!0);return{type:We.Stagger,animation:ki(this,Th(e.animation),t),timings:i,options:null}}};function aY(n){let e=!!n.split(/\s*,\s*/).find(t=>t==zF);return e&&(n=n.replace(sY,"")),n=n.replace(/@\*/g,Cy).replace(/@\w+/g,t=>Cy+"-"+t.slice(1)).replace(/:animating/g,PD),[n,e]}function lY(n){return n?$({},n):null}var LD=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 cY(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 uY(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let o=Ey(n,e).duration;return SD(o,0,"")}let t=n;if(t.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=SD(0,0,"");return o.dynamic=!0,o.strValue=t,o}let r=Ey(t,e);return SD(r.duration,r.delay,r.easing)}function dl(n){return n?(n=$({},n),n.params&&(n.params=lY(n.params))):n={},n}function SD(n,e,t){return{duration:n,delay:e,easing:t}}function eI(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 Rh=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()}},dY=1,hY=":enter",fY=new RegExp(hY,"g"),pY=":leave",mY=new RegExp(pY,"g");function GF(n,e,t,i,r,o=new Map,s=new Map,a,l,c=[]){return new VD().buildKeyframes(n,e,t,i,r,o,s,a,l,c)}var VD=class{buildKeyframes(e,t,i,r,o,s,a,l,c,u=[]){c=c||new Rh;let d=new jD(e,t,c,r,o,u,[]);d.options=l;let h=l.delay?os(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),ki(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()):[eI(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:os(Ah(o,r?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(e,t,i){let o=t.currentTimeline.currentTime,s=i.duration!=null?os(i.duration):null,a=i.delay!=null?os(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),ki(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==We.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Iy);let s=os(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>ki(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?os(e.options.delay):0;e.steps.forEach(s=>{let a=t.createSubContext(e.options);o&&a.delayNextStep(o),ki(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?Ah(i,t.params,t.errors):i;return Ey(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==We.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?os(r.delay):0;o&&(t.previousNode.type===We.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Iy);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),ki(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;ki(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}},Iy={},jD=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=Iy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Sy(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=os(i.duration)),i.delay!=null&&(r.delay=os(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]=Ah(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=Iy,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 BD(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(fY,"."+this._enterClassName),e=e.replace(mY,"."+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(M6(t)),a}},Sy=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+=dY,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||co),this._currentKeyframe.set(t,co);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);let o=r&&r.params||{},s=gY(e,this._globalTimelineStyles);for(let[a,l]of s){let c=Ah(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??co),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===py?e.add(d):u===co&&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 eI(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},BD=class extends Sy{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",SF(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",SF(p/s)),o.push(h)}i=s,t=0,r="",e=o}return eI(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}};function SF(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function gY(n,e){let t=new Map,i;return n.forEach(r=>{if(r==="*"){i??=e.keys();for(let o of i)t.set(o,co)}else for(let[o,s]of r)t.set(o,s)}),t}function TF(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 TD={},Ty=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return yY(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||TD,f=a&&a.params||TD,p=this.buildStyles(i,f,d),y=l&&l.params||TD,m=this.buildStyles(r,y,d),g=new Set,v=new Map,_=new Map,w=r==="void",b={params:HF(y,h),delay:this.ast.options?.delay},E=u?[]:GF(e,t,this.ast.animation,o,s,p,m,b,c,d),C=0;return E.forEach(D=>{C=Math.max(D.duration+D.delay,C)}),d.length?TF(t,this._triggerName,i,r,w,p,m,[],[],v,_,C,d):(E.forEach(D=>{let I=D.element,V=Pi(v,I,new Set);D.preStyleProps.forEach(M=>V.add(M));let B=Pi(_,I,new Set);D.postStyleProps.forEach(M=>B.add(M)),I!==t&&g.add(I)}),TF(t,this._triggerName,i,r,w,p,m,E,[...g.values()],v,_,C))}};function yY(n,e,t,i,r){return n.some(o=>o(e,t,i,r))}function HF(n,e){let t=$({},e);return Object.entries(n).forEach(([i,r])=>{r!=null&&(t[i]=r)}),t}var zD=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,r=HF(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Ah(s,r,t));let l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),i.set(a,s)})}),i}};function vY(n,e,t){return new UD(n,e,t)}var UD=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 zD(r.style,o,i))}),MF(this.states,"true","1"),MF(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Ty(e,r,this.states))}),this.fallbackTransition=_Y(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 _Y(n,e,t){let i=[(s,a)=>!0],r={type:We.Sequence,steps:[],options:null},o={type:We.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Ty(n,o,e)}function MF(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 wY=new Rh,GD=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=UF(this._driver,t,i,r);if(i.length)throw O6(i);r.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,t,i){let r=e.element,o=NF(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=GF(this._driver,t,o,jF,kD,new Map,new Map,i,wY,r),s.forEach(u=>{let d=Pi(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(N6()),s=[]),r.length)throw F6(r);a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,co))})});let l=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=aa(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 L6(e);return t}listen(e,t,i,r){let o=XD(t,"","","");return YD(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}}},AF="ng-animate-queued",bY=".ng-animate-queued",MD="ng-animate-disabled",CY=".ng-animate-disabled",EY="ng-star-inserted",xY=".ng-star-inserted",DY=[],$F={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},IY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Pr="__ng_removed",kh=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=TY(r),i){let o=e,{value:s}=o,a=Ny(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])})}}},Mh="void",AD=new kh(Mh),HD=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,tr(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw V6(i,t);if(i==null||i.length==0)throw j6(t);if(!MY(i))throw B6(i,t);let o=Pi(this._elementListeners,e,[]),s={name:t,phase:i,callback:r};o.push(s);let a=Pi(this._engine.statesByElement,e,new Map);return a.has(t)||(tr(e,yy),tr(e,yy+"-"+t),a.set(t,AD)),()=>{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 z6(e);return t}trigger(e,t,i,r=!0){let o=this._getTrigger(t),s=new Ph(this.id,t,e),a=this._engine.statesByElement.get(e);a||(tr(e,yy),tr(e,yy+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new kh(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=AD),!(c.value===Mh)&&l.value===c.value){if(!kY(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(()=>{hl(e,m),uo(e,g)})}return}let h=Pi(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||(tr(e,AF),s.onStart(()=>{ou(e,AF)})),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,Cy,!0);i.forEach(r=>{if(r[Pr])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,Mh,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,s),i&&aa(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)||AD,u=new kh(Mh),d=new Ph(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[Pr];(!o||o===$F)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){tr(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=XD(o,i.triggerName,i.fromState.value,i.toState.value);l._data=e,YD(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)}},$D=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 HD(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(wy(t)){let o=this._fetchNamespace(e);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!wy(t))return;let o=t[Pr];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),tr(e,MD)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ou(e,MD))}removeNode(e,t,i){if(wy(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[Pr]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,t,i,r,o){return wy(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,Cy,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,PD,!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 aa(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[Pr];if(t&&t.setForRemoval){if(e[Pr]=$F,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(MD)&&this.markElementAsDisabled(e,!1),this.driver.query(e,CY,!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?aa(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw U6(e)}_flushAnimations(e,t){let i=new Rh,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 G=this.driver.query(T,bY,!0);for(let U=0;U{let U=jF+y++;p.set(G,U),T.forEach(re=>tr(re,U))});let m=[],g=new Set,v=new Set;for(let T=0;Tg.add(re)):v.add(G))}let _=new Map,w=PF(h,Array.from(g));w.forEach((T,G)=>{let U=kD+y++;_.set(G,U),T.forEach(re=>tr(re,U))}),e.push(()=>{f.forEach((T,G)=>{let U=p.get(G);T.forEach(re=>ou(re,U))}),w.forEach((T,G)=>{let U=_.get(G);T.forEach(re=>ou(re,U))}),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(U=>{let re=U.player,ne=U.element;if(b.push(re),this.collectedEnterElements.length){let be=ne[Pr];if(be&&be.setForMove){if(be.previousTriggersValues&&be.previousTriggersValues.has(U.triggerName)){let Dt=be.previousTriggersValues.get(U.triggerName),rt=this.statesByElement.get(U.element);if(rt&&rt.has(U.triggerName)){let ut=rt.get(U.triggerName);ut.value=Dt,rt.set(U.triggerName,ut)}}re.destroy();return}}let P=!d||!this.driver.containsElement(d,ne),ue=_.get(ne),Ae=p.get(ne),F=this._buildInstruction(U,i,Ae,ue,P);if(F.errors&&F.errors.length){E.push(F);return}if(P){re.onStart(()=>hl(ne,F.fromStyles)),re.onDestroy(()=>uo(ne,F.toStyles)),r.push(re);return}if(U.isFallbackTransition){re.onStart(()=>hl(ne,F.fromStyles)),re.onDestroy(()=>uo(ne,F.toStyles)),r.push(re);return}let zt=[];F.timelines.forEach(be=>{be.stretchStartingKeyframe=!0,this.disabledNodes.has(be.element)||zt.push(be)}),F.timelines=zt,i.append(ne,F.timelines);let it={instruction:F,player:re,element:ne};s.push(it),F.queriedElements.forEach(be=>Pi(a,be,[]).push(re)),F.preStyleProps.forEach((be,Dt)=>{if(be.size){let rt=l.get(Dt);rt||l.set(Dt,rt=new Set),be.forEach((ut,te)=>rt.add(te))}}),F.postStyleProps.forEach((be,Dt)=>{let rt=c.get(Dt);rt||c.set(Dt,rt=new Set),be.forEach((ut,te)=>rt.add(te))})});if(E.length){let T=[];E.forEach(G=>{T.push(G6(G.triggerName,G.errors))}),b.forEach(G=>G.destroy()),this.reportError(T)}let C=new Map,D=new Map;s.forEach(T=>{let G=T.element;i.has(G)&&(D.set(G,G),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,C))}),r.forEach(T=>{let G=T.element;this._getPreviousPlayers(G,!1,T.namespaceId,T.triggerName,null).forEach(re=>{Pi(C,G,[]).push(re),re.destroy()})});let I=m.filter(T=>OF(T,l,c)),V=new Map;kF(V,this.driver,v,c,co).forEach(T=>{OF(T,l,c)&&I.push(T)});let M=new Map;f.forEach((T,G)=>{kF(M,this.driver,new Set(T),l,py)}),I.forEach(T=>{let G=V.get(T),U=M.get(T);V.set(T,new Map([...G?.entries()??[],...U?.entries()??[]]))});let J=[],z=[],k={};s.forEach(T=>{let{element:G,player:U,instruction:re}=T;if(i.has(G)){if(u.has(G)){U.onDestroy(()=>uo(G,re.toStyles)),U.disabled=!0,U.overrideTotalTime(re.totalTime),r.push(U);return}let ne=k;if(D.size>1){let ue=G,Ae=[];for(;ue=ue.parentNode;){let F=D.get(ue);if(F){ne=F;break}Ae.push(ue)}Ae.forEach(F=>D.set(F,ne))}let P=this._buildAnimation(U.namespaceId,re,C,o,M,V);if(U.setRealPlayer(P),ne===k)J.push(U);else{let ue=this.playersByElement.get(ne);ue&&ue.length&&(U.parentPlayer=aa(ue)),r.push(U)}}else hl(G,re.fromStyles),U.onDestroy(()=>uo(G,re.toStyles)),z.push(U),u.has(G)&&r.push(U)}),z.forEach(T=>{let G=o.get(T.element);if(G&&G.length){let U=aa(G);T.setRealPlayer(U)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T!P.destroyed);ne.length?AY(this,G,ne):this.processLeaveNode(G)}return m.length=0,J.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();let G=this.players.indexOf(T);this.players.splice(G,1)}),T.play()}),J}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==Mh;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=Pi(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)})}hl(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[Pr];if(m&&m.removedBeforeQueried)return new ra(p.duration,p.delay);let g=y!==l,v=RY((i.get(y)||DY).map(C=>C.getRealPlayer())).filter(C=>{let D=C;return D.element?D.element===y:!1}),_=o.get(y),w=s.get(y),b=NF(this._normalizer,p.keyframes,_,w),E=this._buildPlayer(p,b,v);if(p.subTimeline&&r&&d.add(y),g){let C=new Ph(e,a,y);C.setRealPlayer(E),c.push(C)}return E});c.forEach(p=>{Pi(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>SY(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>tr(p,xF));let f=aa(h);return f.onDestroy(()=>{u.forEach(p=>ou(p,xF)),uo(l,t.toStyles)}),d.forEach(p=>{Pi(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 ra(e.duration,e.delay)}},Ph=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new ra,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=>YD(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){Pi(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 SY(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 TY(n){return n??null}function wy(n){return n&&n.nodeType===1}function MY(n){return n=="start"||n=="done"}function RF(n,e){let t=n.style.display;return n.style.display=e??"none",t}function kF(n,e,t,i,r){let o=[];t.forEach(l=>o.push(RF(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[Pr]=IY,s.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>RF(l,o[a++])),s}function PF(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 tr(n,e){n.classList?.add(e)}function ou(n,e){n.classList?.remove(e)}function AY(n,e,t){aa(t).onDone(()=>n.processLeaveNode(e))}function RY(n){let e=[];return WF(n,e),e}function WF(n,e){for(let t=0;tr.add(o)):e.set(n,i),t.delete(n),!0}var au=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new $D(e.body,t,i),this._timelineEngine=new GD(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=UF(this._driver,o,l,c);if(l.length)throw k6(r,l);c.length&&void 0,a=vY(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]=CF(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]=CF(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 PY(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=RD(e[0]),e.length>1&&(i=RD(e[e.length-1]))):e instanceof Map&&(t=RD(e)),t||i?new WD(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&&uo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(uo(this._element,this._initialStyles),this._endStyles&&(uo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(su.initialStylesByElement.delete(this._element),this._startStyles&&(hl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(hl(this._element,this._endStyles),this._endStyles=null),uo(this._element,this._initialStyles),this._state=3)}};su.initialStylesByElement=new WeakMap;var WD=su;function RD(n){let e=null;return n.forEach((t,i)=>{OY(i)&&(e=e||new Map,e.set(i,t))}),e}function OY(n){return n==="display"||n==="position"}var My=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:JD(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Ay=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return FF(e,t)}getParentElement(e){return KD(e)}query(e,t,i){return LF(e,t,i)}computeStyle(e,t,i){return JD(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 My);eY(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,y)=>c.set(y,p))});let d=Z6(t).map(f=>new Map(f));d=tY(e,d,c);let h=PY(e,d);return new My(e,d,l,h)}};var by="@",qF="@.disabled",Ry=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)==by&&t==qF?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)}},qD=class extends Ry{constructor(e,t,i,r,o){super(t,i,r,o),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==by?t.charAt(1)=="."&&t==qF?(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)==by){let r=NY(e),o=t.slice(1),s="";return o.charAt(0)!=by&&([o,s]=FY(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 NY(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function FY(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var ky=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 Ry(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 qD(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 VY=(()=>{let e=class e extends au{constructor(i,r,o){super(i,r,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(R(Me),R(fl),R(pl))},e.\u0275prov=H({token:e,factory:e.\u0275fac});let n=e;return n})();function jY(){return new xy}function BY(n,e,t){return new ky(n,e,t)}var XF=[{provide:pl,useFactory:jY},{provide:au,useClass:VY},{provide:_s,useFactory:BY,deps:[Hp,au,me]}],YF=[{provide:fl,useFactory:()=>new Ay},{provide:pr,useValue:"BrowserAnimations"},...XF],zY=[{provide:fl,useClass:ZD},{provide:pr,useValue:"NoopAnimations"},...XF],KF=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?zY:YF}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=Ue({providers:YF,imports:[Wp]});let n=e;return n})();var ZF=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ge({type:e,bootstrap:[Rw]}),e.\u0275inj=Ue({providers:[LM(VM())],imports:[Wp,BA,KM,KF,oF,uF,lF]});let n=e;return n})();W1(Rw,[Wr,ai,ww,gF,vF,wF,sa],[]);Yr.production&&void 0;$M().bootstrapModule(ZF).catch(n=>console.error(n)); +`],encapsulation:2});let n=e;return n})();var gy=class{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};var yF=new ee("basePath");var cl=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 DD=(()=>{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 gr,this.configuration=new cl,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 gy}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 nn({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 ka);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 nn({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 ka);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 nn({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 ka);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(Pa),R(yF,8),R(cl,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function u6(n,e){if(n&1){let t=Re();S(0,"div",5),ie("click",function(){let r=X(t).$implicit,o=L(2);return K(o.onSelectSearch(r))}),S(1,"button",6)(2,"span"),Z(3),x()()()}if(n&2){let t=e.$implicit;A(3),Pt(t.weergavenaam)}}function d6(n,e){if(n&1){let t=Re();S(0,"div",5),ie("click",function(){let r=X(t).$implicit,o=L(2);return K(o.onSelectSearchID(r))}),S(1,"button",6)(2,"span"),Z(3),x()()()}if(n&2){let t=e.$implicit;A(3),Pt(t.displayName)}}function h6(n,e){if(n&1&&(S(0,"div"),_e(1,u6,4,1,"div",4),Ta(2,"async"),_e(3,d6,4,1,"div",4),Ta(4,"async"),x()),n&2){let t=L();A(),O("ngForOf",t.getNames(Xl(2,2,t.$suggest))),A(2),O("ngForOf",t.getids(Xl(4,4,t.$ids)))}}var vF=(()=>{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)(Q(DD),Q(ea),Q(ty))},e.\u0275cmp=Qe({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=Re();S(0,"div",1)(1,"div")(2,"input",2,0),ie("keyup",function(){X(s);let l=ql(3);return K(o.onSearchKey(l.value))}),x(),_e(4,h6,5,6,"div",3),x()()}r&2&&(A(2),O("value",o.searchLocation),A(2),O("ngIf",o.searchListVisible))},dependencies:[Wr,ai,bM],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 _F="https://www.kaartenvannederland.nl/",wF=(()=>{let e=class e{constructor(i){this.locationService=i,this.kaartenNLUrl=_F,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 nn().append("geometry.x",this.xy[0]).append("geometry.y",this.xy[1]).append("zoomlevel",r);this.kaartenNLUrl=_F+"#?"+o.toString()})}};e.\u0275fac=function(r){return new(r||e)(Q(ea))},e.\u0275cmp=Qe({type:e,selectors:[["app-location"]],decls:8,vars:4,consts:[[1,"locationbox"],[1,".locitem"],["target","_blank",3,"href"]],template:function(r,o){r&1&&(S(0,"div",0)(1,"div",1),Z(2),x(),S(3,"div",1),Z(4),x(),S(5,"div",1)(6,"a",2),Z(7,"BGT Kaarten van Nederland"),x()()()),r&2&&(A(2),u0(" RD [x=",o.xy[0].toFixed(0),", y=",o.xy[1].toFixed(0),"] "),A(2),En(" ",o.location.name," "),A(2),Es("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})();function bF(n){return new W(3e3,!1)}function f6(){return new W(3100,!1)}function p6(){return new W(3101,!1)}function m6(n){return new W(3001,!1)}function g6(n){return new W(3003,!1)}function y6(n){return new W(3004,!1)}function v6(n,e){return new W(3005,!1)}function _6(){return new W(3006,!1)}function w6(){return new W(3007,!1)}function b6(n,e){return new W(3008,!1)}function C6(n){return new W(3002,!1)}function E6(n,e,t,i,r){return new W(3010,!1)}function x6(){return new W(3011,!1)}function D6(){return new W(3012,!1)}function I6(){return new W(3200,!1)}function S6(){return new W(3202,!1)}function T6(){return new W(3013,!1)}function M6(n){return new W(3014,!1)}function A6(n){return new W(3015,!1)}function R6(n){return new W(3016,!1)}function k6(n,e){return new W(3404,!1)}function P6(n){return new W(3502,!1)}function O6(n){return new W(3503,!1)}function N6(){return new W(3300,!1)}function F6(n){return new W(3504,!1)}function L6(n){return new W(3301,!1)}function V6(n,e){return new W(3302,!1)}function j6(n){return new W(3303,!1)}function B6(n,e){return new W(3400,!1)}function z6(n){return new W(3401,!1)}function U6(n){return new W(3402,!1)}function G6(n,e){return new W(3505,!1)}function aa(n){switch(n.length){case 0:return new ra;case 1:return n[0];default:return new Ih(n)}}function NF(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 py:y=t.get(f);break;case co: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 P6(r);return o}function YD(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&ID(t,"start",n)));break;case"done":n.onDone(()=>i(t&&ID(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&ID(t,"destroy",n)));break}}function ID(n,e,t){let i=t.totalTime,r=!!t.disabled,o=XD(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 XD(n,e,t,i,r="",o=0,s){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Pi(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function CF(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var H6=typeof document>"u"?null:document.documentElement;function KD(n){let e=n.parentNode||n.host||null;return e===H6?null:e}function $6(n){return n.substring(1,6)=="ebkit"}var ul=null,EF=!1;function W6(n){ul||(ul=q6()||{},EF=ul.style?"WebkitAppearance"in ul.style:!1);let e=!0;return ul.style&&!$6(n)&&(e=n in ul.style,!e&&EF&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in ul.style)),e}function q6(){return typeof document<"u"?document.body:null}function FF(n,e){for(;e;){if(e===n)return!0;e=KD(e)}return!1}function LF(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var ZD=(()=>{let e=class e{validateStyleProperty(i){return W6(i)}containsElement(i,r){return FF(i,r)}getParentElement(i){return KD(i)}query(i,r,o){return LF(i,r,o)}computeStyle(i,r,o){return o||""}animate(i,r,o,s,a,l=[],c){return new ra(o,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac});let n=e;return n})(),tI=class tI{};tI.NOOP=new ZD;var fl=tI,pl=class{};var Y6=1e3,VF="{{",X6="}}",jF="ng-enter",kD="ng-leave",yy="ng-trigger",Cy=".ng-trigger",xF="ng-animating",PD=".ng-animating";function os(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:OD(parseFloat(e[1]),e[2])}function OD(n,e){switch(e){case"s":return n*Y6;default:return n}}function Ey(n,e,t){return n.hasOwnProperty("duration")?n:K6(n,e,t)}function K6(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(bF(n)),{duration:0,delay:0,easing:""};r=OD(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=OD(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(f6()),a=!0),o<0&&(e.push(p6()),a=!0),a&&e.splice(l,0,bF(n))}return{duration:r,delay:o,easing:s}}function Z6(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function uo(n,e,t){e.forEach((i,r)=>{let o=QD(r);t&&!t.has(r)&&t.set(r,n.style[o]),n.style[o]=i})}function hl(n,e){e.forEach((t,i)=>{let r=QD(i);n.style[r]=""})}function Th(n){return Array.isArray(n)?n.length==1?n[0]:qN(n):n}function Q6(n,e,t){let i=e.params||{},r=BF(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(m6(o))})}var ND=new RegExp(`${VF}\\s*(.+?)\\s*${X6}`,"g");function BF(n){let e=[];if(typeof n=="string"){let t;for(;t=ND.exec(n);)e.push(t[1]);ND.lastIndex=0}return e}function Ah(n,e,t){let i=`${n}`,r=i.replace(ND,(o,s)=>{let a=e[s];return a==null&&(t.push(g6(s)),a=""),a.toString()});return r==i?n:r}var J6=/-+([a-z0-9])/g;function QD(n){return n.replace(J6,(...e)=>e[1].toUpperCase())}function eY(n,e){return n===0||e===0}function tY(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,JD(n,a)))}}return e}function ki(n,e,t){switch(e.type){case We.Trigger:return n.visitTrigger(e,t);case We.State:return n.visitState(e,t);case We.Transition:return n.visitTransition(e,t);case We.Sequence:return n.visitSequence(e,t);case We.Group:return n.visitGroup(e,t);case We.Animate:return n.visitAnimate(e,t);case We.Keyframes:return n.visitKeyframes(e,t);case We.Style:return n.visitStyle(e,t);case We.Reference:return n.visitReference(e,t);case We.AnimateChild:return n.visitAnimateChild(e,t);case We.AnimateRef:return n.visitAnimateRef(e,t);case We.Query:return n.visitQuery(e,t);case We.Stagger:return n.visitStagger(e,t);default:throw y6(e.type)}}function JD(n,e){return window.getComputedStyle(n)[e]}var nY=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"]),xy=class extends pl{normalizePropertyName(e,t){return QD(e)}normalizeStyleValue(e,t,i,r){let o="",s=i.toString().trim();if(nY.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(v6(e,i))}return s+o}};var Dy="*";function iY(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>rY(i,t,e)):t.push(n),t}function rY(n,e,t){if(n[0]==":"){let l=oY(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(A6(n)),e;let r=i[1],o=i[2],s=i[3];e.push(DF(r,s));let a=r==Dy&&s==Dy;o[0]=="<"&&!a&&e.push(DF(s,r))}function oY(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 vy=new Set(["true","1"]),_y=new Set(["false","0"]);function DF(n,e){let t=vy.has(n)||_y.has(n),i=vy.has(e)||_y.has(e);return(r,o)=>{let s=n==Dy||n==r,a=e==Dy||e==o;return!s&&t&&typeof r=="boolean"&&(s=r?vy.has(n):_y.has(n)),!a&&i&&typeof o=="boolean"&&(a=o?vy.has(e):_y.has(e)),s&&a}}var zF=":self",sY=new RegExp(`s*${zF}s*,?`,"g");function UF(n,e,t,i){return new FD(n).build(e,t,i)}var IF="",FD=class{constructor(e){this._driver=e}build(e,t,i){let r=new LD(t);return this._resetContextStyleTimingState(r),ki(this,Th(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=IF,e.collectedStyles=new Map,e.collectedStyles.set(IF,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(_6()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==We.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==We.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,s.push(l)}else t.errors.push(w6())}),{type:We.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=>{BF(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&t.errors.push(b6(e.name,[...o.values()]))}return{type:We.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=ki(this,Th(e.animation),t),r=iY(e.expr,t.errors);return{type:We.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:dl(e.options)}}visitSequence(e,t){return{type:We.Sequence,steps:e.steps.map(i=>ki(this,i,t)),options:dl(e.options)}}visitGroup(e,t){let i=t.currentTime,r=0,o=e.steps.map(s=>{t.currentTime=i;let a=ki(this,s,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:We.Group,steps:o,options:dl(e.options)}}visitAnimate(e,t){let i=uY(e.timings,t.errors);t.currentAnimateTimings=i;let r,o=e.styles?e.styles:vD({});if(o.type==We.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=vD(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(s,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:We.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===co?i.push(a):t.errors.push(C6(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(VF)>=0){o=!0;break}}}),{type:We.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(E6(l,u.startTime,u.endTime,o,r)),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),t.options&&Q6(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:We.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(x6()),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:cY(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:We.Reference,animation:ki(this,Th(e.animation),t),options:dl(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:We.AnimateChild,options:dl(e.options)}}visitAnimateRef(e,t){return{type:We.AnimateRef,animation:this.visitReference(e.animation,t),options:dl(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[o,s]=aY(e.selector);t.currentQuerySelector=i.length?i+" "+o:o,Pi(t.collectedStyles,t.currentQuerySelector,new Map);let a=ki(this,Th(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:We.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:dl(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(T6());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ey(e.timings,t.errors,!0);return{type:We.Stagger,animation:ki(this,Th(e.animation),t),timings:i,options:null}}};function aY(n){let e=!!n.split(/\s*,\s*/).find(t=>t==zF);return e&&(n=n.replace(sY,"")),n=n.replace(/@\*/g,Cy).replace(/@\w+/g,t=>Cy+"-"+t.slice(1)).replace(/:animating/g,PD),[n,e]}function lY(n){return n?$({},n):null}var LD=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 cY(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 uY(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let o=Ey(n,e).duration;return SD(o,0,"")}let t=n;if(t.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=SD(0,0,"");return o.dynamic=!0,o.strValue=t,o}let r=Ey(t,e);return SD(r.duration,r.delay,r.easing)}function dl(n){return n?(n=$({},n),n.params&&(n.params=lY(n.params))):n={},n}function SD(n,e,t){return{duration:n,delay:e,easing:t}}function eI(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 Rh=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()}},dY=1,hY=":enter",fY=new RegExp(hY,"g"),pY=":leave",mY=new RegExp(pY,"g");function GF(n,e,t,i,r,o=new Map,s=new Map,a,l,c=[]){return new VD().buildKeyframes(n,e,t,i,r,o,s,a,l,c)}var VD=class{buildKeyframes(e,t,i,r,o,s,a,l,c,u=[]){c=c||new Rh;let d=new jD(e,t,c,r,o,u,[]);d.options=l;let h=l.delay?os(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),ki(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()):[eI(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:os(Ah(o,r?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(e,t,i){let o=t.currentTimeline.currentTime,s=i.duration!=null?os(i.duration):null,a=i.delay!=null?os(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),ki(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==We.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Iy);let s=os(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>ki(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?os(e.options.delay):0;e.steps.forEach(s=>{let a=t.createSubContext(e.options);o&&a.delayNextStep(o),ki(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?Ah(i,t.params,t.errors):i;return Ey(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==We.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?os(r.delay):0;o&&(t.previousNode.type===We.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Iy);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),ki(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;ki(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}},Iy={},jD=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=Iy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Sy(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=os(i.duration)),i.delay!=null&&(r.delay=os(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]=Ah(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=Iy,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 BD(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(fY,"."+this._enterClassName),e=e.replace(mY,"."+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(M6(t)),a}},Sy=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+=dY,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||co),this._currentKeyframe.set(t,co);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);let o=r&&r.params||{},s=gY(e,this._globalTimelineStyles);for(let[a,l]of s){let c=Ah(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??co),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===py?e.add(d):u===co&&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 eI(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},BD=class extends Sy{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",SF(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",SF(p/s)),o.push(h)}i=s,t=0,r="",e=o}return eI(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}};function SF(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function gY(n,e){let t=new Map,i;return n.forEach(r=>{if(r==="*"){i??=e.keys();for(let o of i)t.set(o,co)}else for(let[o,s]of r)t.set(o,s)}),t}function TF(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 TD={},Ty=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return yY(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||TD,f=a&&a.params||TD,p=this.buildStyles(i,f,d),y=l&&l.params||TD,m=this.buildStyles(r,y,d),g=new Set,v=new Map,_=new Map,w=r==="void",b={params:HF(y,h),delay:this.ast.options?.delay},E=u?[]:GF(e,t,this.ast.animation,o,s,p,m,b,c,d),C=0;return E.forEach(D=>{C=Math.max(D.duration+D.delay,C)}),d.length?TF(t,this._triggerName,i,r,w,p,m,[],[],v,_,C,d):(E.forEach(D=>{let I=D.element,V=Pi(v,I,new Set);D.preStyleProps.forEach(M=>V.add(M));let B=Pi(_,I,new Set);D.postStyleProps.forEach(M=>B.add(M)),I!==t&&g.add(I)}),TF(t,this._triggerName,i,r,w,p,m,E,[...g.values()],v,_,C))}};function yY(n,e,t,i,r){return n.some(o=>o(e,t,i,r))}function HF(n,e){let t=$({},e);return Object.entries(n).forEach(([i,r])=>{r!=null&&(t[i]=r)}),t}var zD=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,r=HF(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Ah(s,r,t));let l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),i.set(a,s)})}),i}};function vY(n,e,t){return new UD(n,e,t)}var UD=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 zD(r.style,o,i))}),MF(this.states,"true","1"),MF(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Ty(e,r,this.states))}),this.fallbackTransition=_Y(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 _Y(n,e,t){let i=[(s,a)=>!0],r={type:We.Sequence,steps:[],options:null},o={type:We.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Ty(n,o,e)}function MF(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 wY=new Rh,GD=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=UF(this._driver,t,i,r);if(i.length)throw O6(i);r.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,t,i){let r=e.element,o=NF(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=GF(this._driver,t,o,jF,kD,new Map,new Map,i,wY,r),s.forEach(u=>{let d=Pi(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(N6()),s=[]),r.length)throw F6(r);a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,co))})});let l=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=aa(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 L6(e);return t}listen(e,t,i,r){let o=XD(t,"","","");return YD(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}}},AF="ng-animate-queued",bY=".ng-animate-queued",MD="ng-animate-disabled",CY=".ng-animate-disabled",EY="ng-star-inserted",xY=".ng-star-inserted",DY=[],$F={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},IY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Pr="__ng_removed",kh=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=TY(r),i){let o=e,{value:s}=o,a=Ny(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])})}}},Mh="void",AD=new kh(Mh),HD=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,tr(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw V6(i,t);if(i==null||i.length==0)throw j6(t);if(!MY(i))throw B6(i,t);let o=Pi(this._elementListeners,e,[]),s={name:t,phase:i,callback:r};o.push(s);let a=Pi(this._engine.statesByElement,e,new Map);return a.has(t)||(tr(e,yy),tr(e,yy+"-"+t),a.set(t,AD)),()=>{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 z6(e);return t}trigger(e,t,i,r=!0){let o=this._getTrigger(t),s=new Ph(this.id,t,e),a=this._engine.statesByElement.get(e);a||(tr(e,yy),tr(e,yy+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new kh(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=AD),!(c.value===Mh)&&l.value===c.value){if(!kY(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(()=>{hl(e,m),uo(e,g)})}return}let h=Pi(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||(tr(e,AF),s.onStart(()=>{ou(e,AF)})),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,Cy,!0);i.forEach(r=>{if(r[Pr])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,Mh,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,s),i&&aa(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)||AD,u=new kh(Mh),d=new Ph(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[Pr];(!o||o===$F)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){tr(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=XD(o,i.triggerName,i.fromState.value,i.toState.value);l._data=e,YD(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)}},$D=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 HD(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(wy(t)){let o=this._fetchNamespace(e);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!wy(t))return;let o=t[Pr];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),tr(e,MD)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ou(e,MD))}removeNode(e,t,i){if(wy(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[Pr]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,t,i,r,o){return wy(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,Cy,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,PD,!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 aa(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[Pr];if(t&&t.setForRemoval){if(e[Pr]=$F,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(MD)&&this.markElementAsDisabled(e,!1),this.driver.query(e,CY,!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?aa(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw U6(e)}_flushAnimations(e,t){let i=new Rh,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 G=this.driver.query(T,bY,!0);for(let U=0;U{let U=jF+y++;p.set(G,U),T.forEach(re=>tr(re,U))});let m=[],g=new Set,v=new Set;for(let T=0;Tg.add(re)):v.add(G))}let _=new Map,w=PF(h,Array.from(g));w.forEach((T,G)=>{let U=kD+y++;_.set(G,U),T.forEach(re=>tr(re,U))}),e.push(()=>{f.forEach((T,G)=>{let U=p.get(G);T.forEach(re=>ou(re,U))}),w.forEach((T,G)=>{let U=_.get(G);T.forEach(re=>ou(re,U))}),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(U=>{let re=U.player,ne=U.element;if(b.push(re),this.collectedEnterElements.length){let be=ne[Pr];if(be&&be.setForMove){if(be.previousTriggersValues&&be.previousTriggersValues.has(U.triggerName)){let Dt=be.previousTriggersValues.get(U.triggerName),rt=this.statesByElement.get(U.element);if(rt&&rt.has(U.triggerName)){let ut=rt.get(U.triggerName);ut.value=Dt,rt.set(U.triggerName,ut)}}re.destroy();return}}let P=!d||!this.driver.containsElement(d,ne),ue=_.get(ne),Ae=p.get(ne),F=this._buildInstruction(U,i,Ae,ue,P);if(F.errors&&F.errors.length){E.push(F);return}if(P){re.onStart(()=>hl(ne,F.fromStyles)),re.onDestroy(()=>uo(ne,F.toStyles)),r.push(re);return}if(U.isFallbackTransition){re.onStart(()=>hl(ne,F.fromStyles)),re.onDestroy(()=>uo(ne,F.toStyles)),r.push(re);return}let zt=[];F.timelines.forEach(be=>{be.stretchStartingKeyframe=!0,this.disabledNodes.has(be.element)||zt.push(be)}),F.timelines=zt,i.append(ne,F.timelines);let it={instruction:F,player:re,element:ne};s.push(it),F.queriedElements.forEach(be=>Pi(a,be,[]).push(re)),F.preStyleProps.forEach((be,Dt)=>{if(be.size){let rt=l.get(Dt);rt||l.set(Dt,rt=new Set),be.forEach((ut,te)=>rt.add(te))}}),F.postStyleProps.forEach((be,Dt)=>{let rt=c.get(Dt);rt||c.set(Dt,rt=new Set),be.forEach((ut,te)=>rt.add(te))})});if(E.length){let T=[];E.forEach(G=>{T.push(G6(G.triggerName,G.errors))}),b.forEach(G=>G.destroy()),this.reportError(T)}let C=new Map,D=new Map;s.forEach(T=>{let G=T.element;i.has(G)&&(D.set(G,G),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,C))}),r.forEach(T=>{let G=T.element;this._getPreviousPlayers(G,!1,T.namespaceId,T.triggerName,null).forEach(re=>{Pi(C,G,[]).push(re),re.destroy()})});let I=m.filter(T=>OF(T,l,c)),V=new Map;kF(V,this.driver,v,c,co).forEach(T=>{OF(T,l,c)&&I.push(T)});let M=new Map;f.forEach((T,G)=>{kF(M,this.driver,new Set(T),l,py)}),I.forEach(T=>{let G=V.get(T),U=M.get(T);V.set(T,new Map([...G?.entries()??[],...U?.entries()??[]]))});let J=[],z=[],k={};s.forEach(T=>{let{element:G,player:U,instruction:re}=T;if(i.has(G)){if(u.has(G)){U.onDestroy(()=>uo(G,re.toStyles)),U.disabled=!0,U.overrideTotalTime(re.totalTime),r.push(U);return}let ne=k;if(D.size>1){let ue=G,Ae=[];for(;ue=ue.parentNode;){let F=D.get(ue);if(F){ne=F;break}Ae.push(ue)}Ae.forEach(F=>D.set(F,ne))}let P=this._buildAnimation(U.namespaceId,re,C,o,M,V);if(U.setRealPlayer(P),ne===k)J.push(U);else{let ue=this.playersByElement.get(ne);ue&&ue.length&&(U.parentPlayer=aa(ue)),r.push(U)}}else hl(G,re.fromStyles),U.onDestroy(()=>uo(G,re.toStyles)),z.push(U),u.has(G)&&r.push(U)}),z.forEach(T=>{let G=o.get(T.element);if(G&&G.length){let U=aa(G);T.setRealPlayer(U)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T!P.destroyed);ne.length?AY(this,G,ne):this.processLeaveNode(G)}return m.length=0,J.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();let G=this.players.indexOf(T);this.players.splice(G,1)}),T.play()}),J}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==Mh;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=Pi(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)})}hl(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[Pr];if(m&&m.removedBeforeQueried)return new ra(p.duration,p.delay);let g=y!==l,v=RY((i.get(y)||DY).map(C=>C.getRealPlayer())).filter(C=>{let D=C;return D.element?D.element===y:!1}),_=o.get(y),w=s.get(y),b=NF(this._normalizer,p.keyframes,_,w),E=this._buildPlayer(p,b,v);if(p.subTimeline&&r&&d.add(y),g){let C=new Ph(e,a,y);C.setRealPlayer(E),c.push(C)}return E});c.forEach(p=>{Pi(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>SY(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>tr(p,xF));let f=aa(h);return f.onDestroy(()=>{u.forEach(p=>ou(p,xF)),uo(l,t.toStyles)}),d.forEach(p=>{Pi(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 ra(e.duration,e.delay)}},Ph=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new ra,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=>YD(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){Pi(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 SY(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 TY(n){return n??null}function wy(n){return n&&n.nodeType===1}function MY(n){return n=="start"||n=="done"}function RF(n,e){let t=n.style.display;return n.style.display=e??"none",t}function kF(n,e,t,i,r){let o=[];t.forEach(l=>o.push(RF(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[Pr]=IY,s.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>RF(l,o[a++])),s}function PF(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 tr(n,e){n.classList?.add(e)}function ou(n,e){n.classList?.remove(e)}function AY(n,e,t){aa(t).onDone(()=>n.processLeaveNode(e))}function RY(n){let e=[];return WF(n,e),e}function WF(n,e){for(let t=0;tr.add(o)):e.set(n,i),t.delete(n),!0}var au=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new $D(e.body,t,i),this._timelineEngine=new GD(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=UF(this._driver,o,l,c);if(l.length)throw k6(r,l);c.length&&void 0,a=vY(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]=CF(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]=CF(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 PY(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=RD(e[0]),e.length>1&&(i=RD(e[e.length-1]))):e instanceof Map&&(t=RD(e)),t||i?new WD(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&&uo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(uo(this._element,this._initialStyles),this._endStyles&&(uo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(su.initialStylesByElement.delete(this._element),this._startStyles&&(hl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(hl(this._element,this._endStyles),this._endStyles=null),uo(this._element,this._initialStyles),this._state=3)}};su.initialStylesByElement=new WeakMap;var WD=su;function RD(n){let e=null;return n.forEach((t,i)=>{OY(i)&&(e=e||new Map,e.set(i,t))}),e}function OY(n){return n==="display"||n==="position"}var My=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:JD(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Ay=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return FF(e,t)}getParentElement(e){return KD(e)}query(e,t,i){return LF(e,t,i)}computeStyle(e,t,i){return JD(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 My);eY(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,y)=>c.set(y,p))});let d=Z6(t).map(f=>new Map(f));d=tY(e,d,c);let h=PY(e,d);return new My(e,d,l,h)}};var by="@",qF="@.disabled",Ry=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)==by&&t==qF?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)}},qD=class extends Ry{constructor(e,t,i,r,o){super(t,i,r,o),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==by?t.charAt(1)=="."&&t==qF?(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)==by){let r=NY(e),o=t.slice(1),s="";return o.charAt(0)!=by&&([o,s]=FY(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 NY(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function FY(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var ky=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 Ry(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 qD(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 VY=(()=>{let e=class e extends au{constructor(i,r,o){super(i,r,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(R(Me),R(fl),R(pl))},e.\u0275prov=H({token:e,factory:e.\u0275fac});let n=e;return n})();function jY(){return new xy}function BY(n,e,t){return new ky(n,e,t)}var XF=[{provide:pl,useFactory:jY},{provide:au,useClass:VY},{provide:_s,useFactory:BY,deps:[Hp,au,me]}],YF=[{provide:fl,useFactory:()=>new Ay},{provide:pr,useValue:"BrowserAnimations"},...XF],zY=[{provide:fl,useClass:ZD},{provide:pr,useValue:"NoopAnimations"},...XF],KF=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?zY:YF}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=Ue({providers:YF,imports:[Wp]});let n=e;return n})();var ZF=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ge({type:e,bootstrap:[Rw]}),e.\u0275inj=Ue({providers:[LM(VM())],imports:[Wp,BA,KM,KF,oF,uF,lF]});let n=e;return n})();W1(Rw,[Wr,ai,ww,gF,vF,wF,sa],[]);Yr.production&&void 0;$M().bootstrapModule(ZF).catch(n=>console.error(n));