var IC=Object.create;var wm=Object.defineProperty;var NC=Object.getOwnPropertyDescriptor;var DC=Object.getOwnPropertyNames;var PC=Object.getPrototypeOf,qC=Object.prototype.hasOwnProperty;var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var LC=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of DC(e))!qC.call(t,s)&&s!==n&&wm(t,s,{get:()=>e[s],enumerable:!(r=NC(e,s))||r.enumerable});return t};var gt=(t,e,n)=>(n=t!=null?IC(PC(t)):{},LC(e||!t||!t.__esModule?wm(n,"default",{value:t,enumerable:!0}):n,t));var Be=d((_$,UE)=>{var gL=UE.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=gL)});var fn=d((k$,HE)=>{var vL={}.hasOwnProperty;HE.exports=function(t,e){return vL.call(t,e)}});var Te=d((I$,jE)=>{jE.exports=function(t){try{return!!t()}catch{return!0}}});var nt=d((N$,WE)=>{WE.exports=!Te()(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})});var Fe=d((D$,GE)=>{var EL=GE.exports={version:"2.6.12"};typeof __e=="number"&&(__e=EL)});var Pe=d((P$,zE)=>{zE.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}});var Ce=d((q$,XE)=>{var wL=Pe();XE.exports=function(t){if(!wL(t))throw TypeError(t+" is not an object!");return t}});var cp=d((L$,YE)=>{var ZE=Pe(),up=Be().document,yL=ZE(up)&&ZE(up.createElement);YE.exports=function(t){return yL?up.createElement(t):{}}});var lp=d((M$,QE)=>{QE.exports=!nt()&&!Te()(function(){return Object.defineProperty(cp()("div"),"a",{get:function(){return 7}}).a!=7})});var br=d((R$,JE)=>{var Ru=Pe();JE.exports=function(t,e){if(!Ru(t))return t;var n,r;if(e&&typeof(n=t.toString)=="function"&&!Ru(r=n.call(t))||typeof(n=t.valueOf)=="function"&&!Ru(r=n.call(t))||!e&&typeof(n=t.toString)=="function"&&!Ru(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}});var Xe=d(ew=>{var KE=Ce(),xL=lp(),SL=br(),bL=Object.defineProperty;ew.f=nt()?Object.defineProperty:function(e,n,r){if(KE(e),n=SL(n,!0),KE(r),xL)try{return bL(e,n,r)}catch{}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[n]=r.value),e}});var ns=d((B$,tw)=>{tw.exports=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}});var Pn=d((F$,nw)=>{var TL=Xe(),CL=ns();nw.exports=nt()?function(t,e,n){return TL.f(t,e,CL(1,n))}:function(t,e,n){return t[e]=n,t}});var ai=d(($$,rw)=>{var AL=0,_L=Math.random();rw.exports=function(t){return"Symbol(".concat(t===void 0?"":t,")_",(++AL+_L).toString(36))}});var Io=d((V$,sw)=>{sw.exports=!1});var No=d((U$,uw)=>{var kL=Fe(),iw=Be(),ow="__core-js_shared__",aw=iw[ow]||(iw[ow]={});(uw.exports=function(t,e){return aw[t]||(aw[t]=e!==void 0?e:{})})("versions",[]).push({version:kL.version,mode:Io()?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})});var lw=d((H$,cw)=>{cw.exports=No()("native-function-to-string",Function.toString)});var Rt=d((j$,fw)=>{var IL=Be(),Ou=Pn(),hw=fn(),hp=ai()("src"),pp=lw(),pw="toString",NL=(""+pp).split(pw);Fe().inspectSource=function(t){return pp.call(t)};(fw.exports=function(t,e,n,r){var s=typeof n=="function";s&&(hw(n,"name")||Ou(n,"name",e)),t[e]!==n&&(s&&(hw(n,hp)||Ou(n,hp,t[e]?""+t[e]:NL.join(String(e)))),t===IL?t[e]=n:r?t[e]?t[e]=n:Ou(t,e,n):(delete t[e],Ou(t,e,n)))})(Function.prototype,pw,function(){return typeof this=="function"&&this[hp]||pp.call(this)})});var Tr=d((W$,dw)=>{dw.exports=function(t){if(typeof t!="function")throw TypeError(t+" is not a function!");return t}});var rs=d((G$,mw)=>{var DL=Tr();mw.exports=function(t,e,n){if(DL(t),e===void 0)return t;switch(n){case 1:return function(r){return t.call(e,r)};case 2:return function(r,s){return t.call(e,r,s)};case 3:return function(r,s,i){return t.call(e,r,s,i)}}return function(){return t.apply(e,arguments)}}});var D=d((z$,vw)=>{var ui=Be(),Bu=Fe(),PL=Pn(),qL=Rt(),gw=rs(),fp="prototype",mt=function(t,e,n){var r=t&mt.F,s=t&mt.G,i=t&mt.S,o=t&mt.P,a=t&mt.B,u=s?ui:i?ui[e]||(ui[e]={}):(ui[e]||{})[fp],c=s?Bu:Bu[e]||(Bu[e]={}),l=c[fp]||(c[fp]={}),p,f,E,y;s&&(n=e);for(p in n)f=!r&&u&&u[p]!==void 0,E=(f?u:n)[p],y=a&&f?gw(E,ui):o&&typeof E=="function"?gw(Function.call,E):E,u&&qL(u,p,E,t&mt.U),c[p]!=E&&PL(c,p,y),o&&l[p]!=E&&(l[p]=E)};ui.core=Bu;mt.F=1;mt.G=2;mt.S=4;mt.P=8;mt.B=16;mt.W=32;mt.U=64;mt.R=128;vw.exports=mt});var is=d((X$,Ew)=>{var ss=ai()("meta"),LL=Pe(),dp=fn(),ML=Xe().f,RL=0,Fu=Object.isExtensible||function(){return!0},OL=!Te()(function(){return Fu(Object.preventExtensions({}))}),mp=function(t){ML(t,ss,{value:{i:"O"+ ++RL,w:{}}})},BL=function(t,e){if(!LL(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!dp(t,ss)){if(!Fu(t))return"F";if(!e)return"E";mp(t)}return t[ss].i},FL=function(t,e){if(!dp(t,ss)){if(!Fu(t))return!0;if(!e)return!1;mp(t)}return t[ss].w},$L=function(t){return OL&&VL.NEED&&Fu(t)&&!dp(t,ss)&&mp(t),t},VL=Ew.exports={KEY:ss,NEED:!1,fastKey:BL,getWeak:FL,onFreeze:$L}});var Me=d((Z$,yw)=>{var gp=No()("wks"),UL=ai(),vp=Be().Symbol,ww=typeof vp=="function",HL=yw.exports=function(t){return gp[t]||(gp[t]=ww&&vp[t]||(ww?vp:UL)("Symbol."+t))};HL.store=gp});var Do=d((Y$,Sw)=>{var jL=Xe().f,WL=fn(),xw=Me()("toStringTag");Sw.exports=function(t,e,n){t&&!WL(t=n?t:t.prototype,xw)&&jL(t,xw,{configurable:!0,value:e})}});var Ep=d(bw=>{bw.f=Me()});var Aw=d((J$,Cw)=>{var GL=Be(),Tw=Fe(),zL=Io(),XL=Ep(),ZL=Xe().f;Cw.exports=function(t){var e=Tw.Symbol||(Tw.Symbol=zL?{}:GL.Symbol||{});t.charAt(0)!="_"&&!(t in e)&&ZL(e,t,{value:XL.f(t)})}});var Cr=d((K$,_w)=>{var YL={}.toString;_w.exports=function(t){return YL.call(t).slice(8,-1)}});var ci=d((e3,kw)=>{var QL=Cr();kw.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return QL(t)=="String"?t.split(""):Object(t)}});var er=d((t3,Iw)=>{Iw.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}});var dn=d((n3,Nw)=>{var JL=ci(),KL=er();Nw.exports=function(t){return JL(KL(t))}});var Ar=d((r3,Dw)=>{var eM=Math.ceil,tM=Math.floor;Dw.exports=function(t){return isNaN(t=+t)?0:(t>0?tM:eM)(t)}});var ot=d((s3,Pw)=>{var nM=Ar(),rM=Math.min;Pw.exports=function(t){return t>0?rM(nM(t),9007199254740991):0}});var li=d((i3,qw)=>{var sM=Ar(),iM=Math.max,oM=Math.min;qw.exports=function(t,e){return t=sM(t),t<0?iM(t+e,0):oM(t,e)}});var wp=d((o3,Lw)=>{var aM=dn(),uM=ot(),cM=li();Lw.exports=function(t){return function(e,n,r){var s=aM(e),i=uM(s.length),o=cM(r,i),a;if(t&&n!=n){for(;i>o;)if(a=s[o++],a!=a)return!0}else for(;i>o;o++)if((t||o in s)&&s[o]===n)return t||o||0;return!t&&-1}}});var $u=d((a3,Rw)=>{var Mw=No()("keys"),lM=ai();Rw.exports=function(t){return Mw[t]||(Mw[t]=lM(t))}});var yp=d((u3,Bw)=>{var Ow=fn(),hM=dn(),pM=wp()(!1),fM=$u()("IE_PROTO");Bw.exports=function(t,e){var n=hM(t),r=0,s=[],i;for(i in n)i!=fM&&Ow(n,i)&&s.push(i);for(;e.length>r;)Ow(n,i=e[r++])&&(~pM(s,i)||s.push(i));return s}});var Vu=d((c3,Fw)=>{Fw.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")});var os=d((l3,$w)=>{var dM=yp(),mM=Vu();$w.exports=Object.keys||function(e){return dM(e,mM)}});var Po=d(Vw=>{Vw.f=Object.getOwnPropertySymbols});var qo=d(Uw=>{Uw.f={}.propertyIsEnumerable});var jw=d((f3,Hw)=>{var gM=os(),vM=Po(),EM=qo();Hw.exports=function(t){var e=gM(t),n=vM.f;if(n)for(var r=n(t),s=EM.f,i=0,o;r.length>i;)s.call(t,o=r[i++])&&e.push(o);return e}});var Uu=d((d3,Ww)=>{var wM=Cr();Ww.exports=Array.isArray||function(e){return wM(e)=="Array"}});var Tt=d((m3,Gw)=>{var yM=er();Gw.exports=function(t){return Object(yM(t))}});var xp=d((g3,zw)=>{var xM=Xe(),SM=Ce(),bM=os();zw.exports=nt()?Object.defineProperties:function(e,n){SM(e);for(var r=bM(n),s=r.length,i=0,o;s>i;)xM.f(e,o=r[i++],n[o]);return e}});var Sp=d((v3,Zw)=>{var Xw=Be().document;Zw.exports=Xw&&Xw.documentElement});var as=d((E3,Qw)=>{var TM=Ce(),CM=xp(),Yw=Vu(),AM=$u()("IE_PROTO"),bp=function(){},Tp="prototype",Hu=function(){var t=cp()("iframe"),e=Yw.length,n="<",r=">",s;for(t.style.display="none",Sp().appendChild(t),t.src="javascript:",s=t.contentWindow.document,s.open(),s.write(n+"script"+r+"document.F=Object"+n+"/script"+r),s.close(),Hu=s.F;e--;)delete Hu[Tp][Yw[e]];return Hu()};Qw.exports=Object.create||function(e,n){var r;return e!==null?(bp[Tp]=TM(e),r=new bp,bp[Tp]=null,r[AM]=e):r=Hu(),n===void 0?r:CM(r,n)}});var hi=d(Jw=>{var _M=yp(),kM=Vu().concat("length","prototype");Jw.f=Object.getOwnPropertyNames||function(e){return _M(e,kM)}});var Cp=d((y3,ty)=>{var IM=dn(),Kw=hi().f,NM={}.toString,ey=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],DM=function(t){try{return Kw(t)}catch{return ey.slice()}};ty.exports.f=function(e){return ey&&NM.call(e)=="[object Window]"?DM(e):Kw(IM(e))}});var tr=d(ry=>{var PM=qo(),qM=ns(),LM=dn(),MM=br(),RM=fn(),OM=lp(),ny=Object.getOwnPropertyDescriptor;ry.f=nt()?ny:function(e,n){if(e=LM(e),n=MM(n,!0),OM)try{return ny(e,n)}catch{}if(RM(e,n))return qM(!PM.f.call(e,n),e[n])}});var Vp=d(()=>{"use strict";var Gu=Be(),Ze=fn(),Dp=nt(),at=D(),sy=Rt(),BM=is().KEY,Op=Te(),Bp=No(),Fp=Do(),FM=ai(),Ro=Me(),$M=Ep(),VM=Aw(),UM=jw(),HM=Uu(),Pp=Ce(),jM=Pe(),WM=Tt(),zu=dn(),$p=br(),qp=ns(),Mo=as(),uy=Cp(),cy=tr(),Xu=Po(),ly=Xe(),GM=os(),hy=cy.f,us=ly.f,py=uy.f,At=Gu.Symbol,Wu=Gu.JSON,ju=Wu&&Wu.stringify,_r="prototype",Ct=Ro("_hidden"),iy=Ro("toPrimitive"),zM={}.propertyIsEnumerable,Lo=Bp("symbol-registry"),nr=Bp("symbols"),Oo=Bp("op-symbols"),Kt=Object[_r],pi=typeof At=="function"&&!!Xu.f,Ap=Gu.QObject,Lp=!Ap||!Ap[_r]||!Ap[_r].findChild,Mp=Dp&&Op(function(){return Mo(us({},"a",{get:function(){return us(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=hy(Kt,e);r&&delete Kt[e],us(t,e,n),r&&t!==Kt&&us(Kt,e,r)}:us,oy=function(t){var e=nr[t]=Mo(At[_r]);return e._k=t,e},Rp=pi&&typeof At.iterator=="symbol"?function(t){return typeof t=="symbol"}:function(t){return t instanceof At},Zu=function(e,n,r){return e===Kt&&Zu(Oo,n,r),Pp(e),n=$p(n,!0),Pp(r),Ze(nr,n)?(r.enumerable?(Ze(e,Ct)&&e[Ct][n]&&(e[Ct][n]=!1),r=Mo(r,{enumerable:qp(0,!1)})):(Ze(e,Ct)||us(e,Ct,qp(1,{})),e[Ct][n]=!0),Mp(e,n,r)):us(e,n,r)},fy=function(e,n){Pp(e);for(var r=UM(n=zu(n)),s=0,i=r.length,o;i>s;)Zu(e,o=r[s++],n[o]);return e},XM=function(e,n){return n===void 0?Mo(e):fy(Mo(e),n)},ay=function(e){var n=zM.call(this,e=$p(e,!0));return this===Kt&&Ze(nr,e)&&!Ze(Oo,e)?!1:n||!Ze(this,e)||!Ze(nr,e)||Ze(this,Ct)&&this[Ct][e]?n:!0},dy=function(e,n){if(e=zu(e),n=$p(n,!0),!(e===Kt&&Ze(nr,n)&&!Ze(Oo,n))){var r=hy(e,n);return r&&Ze(nr,n)&&!(Ze(e,Ct)&&e[Ct][n])&&(r.enumerable=!0),r}},my=function(e){for(var n=py(zu(e)),r=[],s=0,i;n.length>s;)!Ze(nr,i=n[s++])&&i!=Ct&&i!=BM&&r.push(i);return r},gy=function(e){for(var n=e===Kt,r=py(n?Oo:zu(e)),s=[],i=0,o;r.length>i;)Ze(nr,o=r[i++])&&(!n||Ze(Kt,o))&&s.push(nr[o]);return s};pi||(At=function(){if(this instanceof At)throw TypeError("Symbol is not a constructor!");var e=FM(arguments.length>0?arguments[0]:void 0),n=function(r){this===Kt&&n.call(Oo,r),Ze(this,Ct)&&Ze(this[Ct],e)&&(this[Ct][e]=!1),Mp(this,e,qp(1,r))};return Dp&&Lp&&Mp(Kt,e,{configurable:!0,set:n}),oy(e)},sy(At[_r],"toString",function(){return this._k}),cy.f=dy,ly.f=Zu,hi().f=uy.f=my,qo().f=ay,Xu.f=gy,Dp&&!Io()&&sy(Kt,"propertyIsEnumerable",ay,!0),$M.f=function(t){return oy(Ro(t))});at(at.G+at.W+at.F*!pi,{Symbol:At});for(_p="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),kp=0;_p.length>kp;)Ro(_p[kp++]);var _p,kp;for(Ip=GM(Ro.store),Np=0;Ip.length>Np;)VM(Ip[Np++]);var Ip,Np;at(at.S+at.F*!pi,"Symbol",{for:function(t){return Ze(Lo,t+="")?Lo[t]:Lo[t]=At(t)},keyFor:function(e){if(!Rp(e))throw TypeError(e+" is not a symbol!");for(var n in Lo)if(Lo[n]===e)return n},useSetter:function(){Lp=!0},useSimple:function(){Lp=!1}});at(at.S+at.F*!pi,"Object",{create:XM,defineProperty:Zu,defineProperties:fy,getOwnPropertyDescriptor:dy,getOwnPropertyNames:my,getOwnPropertySymbols:gy});var ZM=Op(function(){Xu.f(1)});at(at.S+at.F*ZM,"Object",{getOwnPropertySymbols:function(e){return Xu.f(WM(e))}});Wu&&at(at.S+at.F*(!pi||Op(function(){var t=At();return ju([t])!="[null]"||ju({a:t})!="{}"||ju(Object(t))!="{}"})),"JSON",{stringify:function(e){for(var n=[e],r=1,s,i;arguments.length>r;)n.push(arguments[r++]);if(i=s=n[1],!(!jM(s)&&e===void 0||Rp(e)))return HM(s)||(s=function(o,a){if(typeof i=="function"&&(a=i.call(this,o,a)),!Rp(a))return a}),n[1]=s,ju.apply(Wu,n)}});At[_r][iy]||Pn()(At[_r],iy,At[_r].valueOf);Fp(At,"Symbol");Fp(Math,"Math",!0);Fp(Gu.JSON,"JSON",!0)});var Yu=d((T3,vy)=>{var Up=Cr(),YM=Me()("toStringTag"),QM=Up(function(){return arguments}())=="Arguments",JM=function(t,e){try{return t[e]}catch{}};vy.exports=function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=JM(e=Object(t),YM))=="string"?n:QM?Up(e):(r=Up(e))=="Object"&&typeof e.callee=="function"?"Arguments":r}});var Bo=d(()=>{"use strict";var KM=Yu(),Ey={};Ey[Me()("toStringTag")]="z";Ey+""!="[object z]"&&Rt()(Object.prototype,"toString",function(){return"[object "+KM(this)+"]"},!0)});var yy=d((_3,wy)=>{Vp();Bo();wy.exports=Fe().Symbol});var Sy=d(()=>{var xy=D();xy(xy.S,"Object",{create:as()})});var by=d(()=>{var Hp=D();Hp(Hp.S+Hp.F*!nt(),"Object",{defineProperty:Xe().f})});var Ty=d(()=>{var jp=D();jp(jp.S+jp.F*!nt(),"Object",{defineProperties:xp()})});var mn=d((L3,Cy)=>{var Wp=D(),eR=Fe(),tR=Te();Cy.exports=function(t,e){var n=(eR.Object||{})[t]||Object[t],r={};r[t]=e(n),Wp(Wp.S+Wp.F*tR(function(){n(1)}),"Object",r)}});var Ay=d(()=>{var nR=dn(),rR=tr().f;mn()("getOwnPropertyDescriptor",function(){return function(e,n){return rR(nR(e),n)}})});var cs=d((O3,ky)=>{var sR=fn(),iR=Tt(),_y=$u()("IE_PROTO"),oR=Object.prototype;ky.exports=Object.getPrototypeOf||function(t){return t=iR(t),sR(t,_y)?t[_y]:typeof t.constructor=="function"&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?oR:null}});var Iy=d(()=>{var aR=Tt(),uR=cs();mn()("getPrototypeOf",function(){return function(e){return uR(aR(e))}})});var Ny=d(()=>{var cR=Tt(),lR=os();mn()("keys",function(){return function(e){return lR(cR(e))}})});var Dy=d(()=>{mn()("getOwnPropertyNames",function(){return Cp().f})});var Py=d(()=>{var hR=Pe(),pR=is().onFreeze;mn()("freeze",function(t){return function(n){return t&&hR(n)?t(pR(n)):n}})});var qy=d(()=>{var fR=Pe(),dR=is().onFreeze;mn()("seal",function(t){return function(n){return t&&fR(n)?t(dR(n)):n}})});var Ly=d(()=>{var mR=Pe(),gR=is().onFreeze;mn()("preventExtensions",function(t){return function(n){return t&&mR(n)?t(gR(n)):n}})});var My=d(()=>{var vR=Pe();mn()("isFrozen",function(t){return function(n){return vR(n)?t?t(n):!1:!0}})});var Ry=d(()=>{var ER=Pe();mn()("isSealed",function(t){return function(n){return ER(n)?t?t(n):!1:!0}})});var Oy=d(()=>{var wR=Pe();mn()("isExtensible",function(t){return function(n){return wR(n)?t?t(n):!0:!1}})});var $y=d((n5,Fy)=>{"use strict";var yR=nt(),By=os(),xR=Po(),SR=qo(),bR=Tt(),TR=ci(),Qu=Object.assign;Fy.exports=!Qu||Te()(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(s){e[s]=s}),Qu({},t)[n]!=7||Object.keys(Qu({},e)).join("")!=r})?function(e,n){for(var r=bR(e),s=arguments.length,i=1,o=xR.f,a=SR.f;s>i;)for(var u=TR(arguments[i++]),c=o?By(u).concat(o(u)):By(u),l=c.length,p=0,f;l>p;)f=c[p++],(!yR||a.call(u,f))&&(r[f]=u[f]);return r}:Qu});var Vy=d(()=>{var Gp=D();Gp(Gp.S+Gp.F,"Object",{assign:$y()})});var zp=d((i5,Uy)=>{Uy.exports=Object.is||function(e,n){return e===n?e!==0||1/e===1/n:e!=e&&n!=n}});var jy=d(()=>{var Hy=D();Hy(Hy.S,"Object",{is:zp()})});var Ju=d((u5,Gy)=>{var CR=Pe(),AR=Ce(),Wy=function(t,e){if(AR(t),!CR(e)&&e!==null)throw TypeError(e+": can't set as prototype!")};Gy.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=rs()(Function.call,tr().f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch{e=!0}return function(s,i){return Wy(s,i),e?s.__proto__=i:n(s,i),s}}({},!1):void 0),check:Wy}});var Xy=d(()=>{var zy=D();zy(zy.S,"Object",{setPrototypeOf:Ju().set})});var Yy=d((h5,Zy)=>{Vp();Sy();by();Ty();Ay();Iy();Ny();Dy();Py();qy();Ly();My();Ry();Oy();Vy();jy();Xy();Bo();Zy.exports=Fe().Object});var Jy=d((p5,Qy)=>{Qy.exports=function(t,e,n){var r=n===void 0;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}});var Zp=d((f5,e2)=>{"use strict";var _R=Tr(),kR=Pe(),IR=Jy(),Ky=[].slice,Xp={},NR=function(t,e,n){if(!(e in Xp)){for(var r=[],s=0;s<e;s++)r[s]="a["+s+"]";Xp[e]=Function("F,a","return new F("+r.join(",")+")")}return Xp[e](t,n)};e2.exports=Function.bind||function(e){var n=_R(this),r=Ky.call(arguments,1),s=function(){var i=r.concat(Ky.call(arguments));return this instanceof s?NR(n,i.length,i):IR(n,i,e)};return kR(n.prototype)&&(s.prototype=n.prototype),s}});var n2=d(()=>{var t2=D();t2(t2.P,"Function",{bind:Zp()})});var i2=d(()=>{var DR=Xe().f,r2=Function.prototype,PR=/^\s*function ([^ (]*)/,s2="name";s2 in r2||nt()&&DR(r2,s2,{configurable:!0,get:function(){try{return(""+this).match(PR)[1]}catch{return""}}})});var c2=d(()=>{"use strict";var o2=Pe(),qR=cs(),a2=Me()("hasInstance"),u2=Function.prototype;a2 in u2||Xe().f(u2,a2,{value:function(t){if(typeof this!="function"||!o2(t))return!1;if(!o2(this.prototype))return t instanceof this;for(;t=qR(t);)if(this.prototype===t)return!0;return!1}})});var h2=d((y5,l2)=>{n2();i2();c2();l2.exports=Fe().Function});var Ku=d((x5,p2)=>{p2.exports=` \v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var Fo=d((S5,m2)=>{var Yp=D(),LR=er(),MR=Te(),Qp=Ku(),ec="["+Qp+"]",f2="\u200B\x85",RR=RegExp("^"+ec+ec+"*"),OR=RegExp(ec+ec+"*$"),d2=function(t,e,n){var r={},s=MR(function(){return!!Qp[t]()||f2[t]()!=f2}),i=r[t]=s?e(BR):Qp[t];n&&(r[n]=i),Yp(Yp.P+Yp.F*s,"String",r)},BR=d2.trim=function(t,e){return t=String(LR(t)),e&1&&(t=t.replace(RR,"")),e&2&&(t=t.replace(OR,"")),t};m2.exports=d2});var Jp=d((b5,v2)=>{var tc=Be().parseInt,FR=Fo().trim,g2=Ku(),$R=/^[-+]?0[xX]/;v2.exports=tc(g2+"08")!==8||tc(g2+"0x16")!==22?function(e,n){var r=FR(String(e),3);return tc(r,n>>>0||($R.test(r)?16:10))}:tc});var w2=d(()=>{var Kp=D(),E2=Jp();Kp(Kp.G+Kp.F*(parseInt!=E2),{parseInt:E2})});var x2=d((A5,y2)=>{w2();y2.exports=Fe().parseInt});var tf=d((_5,S2)=>{var ef=Be().parseFloat,VR=Fo().trim;S2.exports=1/ef(Ku()+"-0")!==-1/0?function(e){var n=VR(String(e),3),r=ef(n);return r===0&&n.charAt(0)=="-"?-0:r}:ef});var T2=d(()=>{var nf=D(),b2=tf();nf(nf.G+nf.F*(parseFloat!=b2),{parseFloat:b2})});var A2=d((N5,C2)=>{T2();C2.exports=Fe().parseFloat});var nc=d((D5,k2)=>{var UR=Pe(),_2=Ju().set;k2.exports=function(t,e,n){var r=e.constructor,s;return r!==n&&typeof r=="function"&&(s=r.prototype)!==n.prototype&&UR(s)&&_2&&_2(t,s),t}});var q2=d(()=>{"use strict";var D2=Be(),I2=fn(),P2=Cr(),HR=nc(),jR=br(),WR=Te(),GR=hi().f,zR=tr().f,XR=Xe().f,ZR=Fo().trim,oc="Number",Ot=D2[oc],rc=Ot,ic=Ot.prototype,YR=P2(as()(ic))==oc,QR="trim"in String.prototype,N2=function(t){var e=jR(t,!1);if(typeof e=="string"&&e.length>2){e=QR?e.trim():ZR(e,3);var n=e.charCodeAt(0),r,s,i;if(n===43||n===45){if(r=e.charCodeAt(2),r===88||r===120)return NaN}else if(n===48){switch(e.charCodeAt(1)){case 66:case 98:s=2,i=49;break;case 79:case 111:s=8,i=55;break;default:return+e}for(var o=e.slice(2),a=0,u=o.length,c;a<u;a++)if(c=o.charCodeAt(a),c<48||c>i)return NaN;return parseInt(o,s)}}return+e};if(!Ot(" 0o1")||!Ot("0b1")||Ot("+0x1")){for(Ot=function(e){var n=arguments.length<1?0:e,r=this;return r instanceof Ot&&(YR?WR(function(){ic.valueOf.call(r)}):P2(r)!=oc)?HR(new rc(N2(n)),r,Ot):N2(n)},rf=nt()?GR(rc):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),sc=0;rf.length>sc;sc++)I2(rc,$o=rf[sc])&&!I2(Ot,$o)&&XR(Ot,$o,zR(rc,$o));Ot.prototype=ic,ic.constructor=Ot,Rt()(D2,oc,Ot)}var rf,sc,$o});var sf=d((L5,L2)=>{var JR=Cr();L2.exports=function(t,e){if(typeof t!="number"&&JR(t)!="Number")throw TypeError(e);return+t}});var of=d((M5,M2)=>{"use strict";var KR=Ar(),eO=er();M2.exports=function(e){var n=String(eO(this)),r="",s=KR(e);if(s<0||s==1/0)throw RangeError("Count can't be negative");for(;s>0;(s>>>=1)&&(n+=n))s&1&&(r+=n);return r}});var $2=d(()=>{"use strict";var af=D(),tO=Ar(),nO=sf(),cf=of(),R2=1 .toFixed,F2=Math.floor,mi=[0,0,0,0,0,0],O2="Number.toFixed: incorrect invocation!",ac="0",fi=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*mi[n],mi[n]=r%1e7,r=F2(r/1e7)},uf=function(t){for(var e=6,n=0;--e>=0;)n+=mi[e],mi[e]=F2(n/t),n=n%t*1e7},B2=function(){for(var t=6,e="";--t>=0;)if(e!==""||t===0||mi[t]!==0){var n=String(mi[t]);e=e===""?n:e+cf.call(ac,7-n.length)+n}return e},di=function(t,e,n){return e===0?n:e%2===1?di(t,e-1,n*t):di(t*t,e/2,n)},rO=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e};af(af.P+af.F*(!!R2&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||0xde0b6b3a7640080.toFixed(0)!=="1000000000000000128")||!Te()(function(){R2.call({})})),"Number",{toFixed:function(e){var n=nO(this,O2),r=tO(e),s="",i=ac,o,a,u,c;if(r<0||r>20)throw RangeError(O2);if(n!=n)return"NaN";if(n<=-1e21||n>=1e21)return String(n);if(n<0&&(s="-",n=-n),n>1e-21)if(o=rO(n*di(2,69,1))-69,a=o<0?n*di(2,-o,1):n/di(2,o,1),a*=4503599627370496,o=52-o,o>0){for(fi(0,a),u=r;u>=7;)fi(1e7,0),u-=7;for(fi(di(10,u,1),0),u=o-1;u>=23;)uf(1<<23),u-=23;uf(1<<u),fi(1,1),uf(2),i=B2()}else fi(0,a),fi(1<<-o,0),i=B2()+cf.call(ac,r);return r>0?(c=i.length,i=s+(c<=r?"0."+cf.call(ac,r-c)+i:i.slice(0,c-r)+"."+i.slice(c-r))):i=s+i,i}})});var U2=d(()=>{"use strict";var lf=D(),V2=Te(),sO=sf(),uc=1 .toPrecision;lf(lf.P+lf.F*(V2(function(){return uc.call(1,void 0)!=="1"})||!V2(function(){uc.call({})})),"Number",{toPrecision:function(e){var n=sO(this,"Number#toPrecision: incorrect invocation!");return e===void 0?uc.call(n):uc.call(n,e)}})});var j2=d(()=>{var H2=D();H2(H2.S,"Number",{EPSILON:Math.pow(2,-52)})});var G2=d(()=>{var W2=D(),iO=Be().isFinite;W2(W2.S,"Number",{isFinite:function(e){return typeof e=="number"&&iO(e)}})});var hf=d((j5,z2)=>{var oO=Pe(),aO=Math.floor;z2.exports=function(e){return!oO(e)&&isFinite(e)&&aO(e)===e}});var Z2=d(()=>{var X2=D();X2(X2.S,"Number",{isInteger:hf()})});var Q2=d(()=>{var Y2=D();Y2(Y2.S,"Number",{isNaN:function(e){return e!=e}})});var K2=d(()=>{var J2=D(),uO=hf(),cO=Math.abs;J2(J2.S,"Number",{isSafeInteger:function(e){return uO(e)&&cO(e)<=9007199254740991}})});var tx=d(()=>{var ex=D();ex(ex.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})});var rx=d(()=>{var nx=D();nx(nx.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})});var ix=d(()=>{var pf=D(),sx=tf();pf(pf.S+pf.F*(Number.parseFloat!=sx),"Number",{parseFloat:sx})});var ax=d(()=>{var ff=D(),ox=Jp();ff(ff.S+ff.F*(Number.parseInt!=ox),"Number",{parseInt:ox})});var cx=d((iV,ux)=>{q2();$2();U2();j2();G2();Z2();Q2();K2();tx();rx();ix();ax();ux.exports=Fe().Number});var df=d((oV,lx)=>{lx.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}});var px=d(()=>{var mf=D(),lO=df(),hx=Math.sqrt,gf=Math.acosh;mf(mf.S+mf.F*!(gf&&Math.floor(gf(Number.MAX_VALUE))==710&&gf(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>9490626562425156e-8?Math.log(e)+Math.LN2:lO(e-1+hx(e-1)*hx(e+1))}})});var mx=d(()=>{var vf=D(),fx=Math.asinh;function dx(t){return!isFinite(t=+t)||t==0?t:t<0?-dx(-t):Math.log(t+Math.sqrt(t*t+1))}vf(vf.S+vf.F*!(fx&&1/fx(0)>0),"Math",{asinh:dx})});var vx=d(()=>{var Ef=D(),gx=Math.atanh;Ef(Ef.S+Ef.F*!(gx&&1/gx(-0)<0),"Math",{atanh:function(e){return(e=+e)==0?e:Math.log((1+e)/(1-e))/2}})});var cc=d((fV,Ex)=>{Ex.exports=Math.sign||function(e){return(e=+e)==0||e!=e?e:e<0?-1:1}});var yx=d(()=>{var wx=D(),hO=cc();wx(wx.S,"Math",{cbrt:function(e){return hO(e=+e)*Math.pow(Math.abs(e),1/3)}})});var Sx=d(()=>{var xx=D();xx(xx.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})});var Cx=d(()=>{var bx=D(),Tx=Math.exp;bx(bx.S,"Math",{cosh:function(e){return(Tx(e=+e)+Tx(-e))/2}})});var lc=d((yV,Ax)=>{var Vo=Math.expm1;Ax.exports=!Vo||Vo(10)>22025.465794806718||Vo(10)<22025.465794806718||Vo(-2e-17)!=-2e-17?function(e){return(e=+e)==0?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:Vo});var kx=d(()=>{var wf=D(),_x=lc();wf(wf.S+wf.F*(_x!=Math.expm1),"Math",{expm1:_x})});var Nx=d((bV,Ix)=>{var pO=cc(),pc=Math.pow,xf=pc(2,-52),hc=pc(2,-23),fO=pc(2,127)*(2-hc),yf=pc(2,-126),dO=function(t){return t+1/xf-1/xf};Ix.exports=Math.fround||function(e){var n=Math.abs(e),r=pO(e),s,i;return n<yf?r*dO(n/yf/hc)*yf*hc:(s=(1+hc/xf)*n,i=s-(s-n),i>fO||i!=i?r*(1/0):r*i)}});var Px=d(()=>{var Dx=D();Dx(Dx.S,"Math",{fround:Nx()})});var Lx=d(()=>{var qx=D(),mO=Math.abs;qx(qx.S,"Math",{hypot:function(e,n){for(var r=0,s=0,i=arguments.length,o=0,a,u;s<i;)a=mO(arguments[s++]),o<a?(u=o/a,r=r*u*u+1,o=a):a>0?(u=a/o,r+=u*u):r+=a;return o===1/0?1/0:o*Math.sqrt(r)}})});var Rx=d(()=>{var Sf=D(),Mx=Math.imul;Sf(Sf.S+Sf.F*Te()(function(){return Mx(4294967295,5)!=-5||Mx.length!=2}),"Math",{imul:function(e,n){var r=65535,s=+e,i=+n,o=r&s,a=r&i;return 0|o*a+((r&s>>>16)*a+o*(r&i>>>16)<<16>>>0)}})});var Bx=d(()=>{var Ox=D();Ox(Ox.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})});var $x=d(()=>{var Fx=D();Fx(Fx.S,"Math",{log1p:df()})});var Ux=d(()=>{var Vx=D();Vx(Vx.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})});var jx=d(()=>{var Hx=D();Hx(Hx.S,"Math",{sign:cc()})});var zx=d(()=>{var bf=D(),Wx=lc(),Gx=Math.exp;bf(bf.S+bf.F*Te()(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(Wx(e)-Wx(-e))/2:(Gx(e-1)-Gx(-e-1))*(Math.E/2)}})});var Qx=d(()=>{var Xx=D(),Zx=lc(),Yx=Math.exp;Xx(Xx.S,"Math",{tanh:function(e){var n=Zx(e=+e),r=Zx(-e);return n==1/0?1:r==1/0?-1:(n-r)/(Yx(e)+Yx(-e))}})});var Kx=d(()=>{var Jx=D();Jx(Jx.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})});var tS=d((jV,eS)=>{px();mx();vx();yx();Sx();Cx();kx();Px();Lx();Rx();Bx();$x();Ux();jx();zx();Qx();Kx();eS.exports=Fe().Math});var sS=d(()=>{var Tf=D(),gO=li(),nS=String.fromCharCode,rS=String.fromCodePoint;Tf(Tf.S+Tf.F*(!!rS&&rS.length!=1),"String",{fromCodePoint:function(e){for(var n=[],r=arguments.length,s=0,i;r>s;){if(i=+arguments[s++],gO(i,1114111)!==i)throw RangeError(i+" is not a valid code point");n.push(i<65536?nS(i):nS(((i-=65536)>>10)+55296,i%1024+56320))}return n.join("")}})});var oS=d(()=>{var iS=D(),vO=dn(),EO=ot();iS(iS.S,"String",{raw:function(e){for(var n=vO(e.raw),r=EO(n.length),s=arguments.length,i=[],o=0;r>o;)i.push(String(n[o++])),o<s&&i.push(String(arguments[o]));return i.join("")}})});var aS=d(()=>{"use strict";Fo()("trim",function(t){return function(){return t(this,3)}})});var fc=d((QV,uS)=>{var wO=Ar(),yO=er();uS.exports=function(t){return function(e,n){var r=String(yO(e)),s=wO(n),i=r.length,o,a;return s<0||s>=i?t?"":void 0:(o=r.charCodeAt(s),o<55296||o>56319||s+1===i||(a=r.charCodeAt(s+1))<56320||a>57343?t?r.charAt(s):o:t?r.slice(s,s+2):(o-55296<<10)+(a-56320)+65536)}}});var gi=d((JV,cS)=>{cS.exports={}});var Cf=d((KV,hS)=>{"use strict";var xO=as(),SO=ns(),bO=Do(),lS={};Pn()(lS,Me()("iterator"),function(){return this});hS.exports=function(t,e,n){t.prototype=xO(lS,{next:SO(1,n)}),bO(t,e+" Iterator")}});var mc=d((e4,vS)=>{"use strict";var pS=Io(),Af=D(),TO=Rt(),fS=Pn(),dS=gi(),CO=Cf(),AO=Do(),_O=cs(),Uo=Me()("iterator"),_f=!([].keys&&"next"in[].keys()),kO="@@iterator",mS="keys",dc="values",gS=function(){return this};vS.exports=function(t,e,n,r,s,i,o){CO(n,e,r);var a=function(_){if(!_f&&_ in p)return p[_];switch(_){case mS:return function(){return new n(this,_)};case dc:return function(){return new n(this,_)}}return function(){return new n(this,_)}},u=e+" Iterator",c=s==dc,l=!1,p=t.prototype,f=p[Uo]||p[kO]||s&&p[s],E=f||a(s),y=s?c?a("entries"):E:void 0,I=e=="Array"&&p.entries||f,k,A,C;if(I&&(C=_O(I.call(new t)),C!==Object.prototype&&C.next&&(AO(C,u,!0),!pS&&typeof C[Uo]!="function"&&fS(C,Uo,gS))),c&&f&&f.name!==dc&&(l=!0,E=function(){return f.call(this)}),(!pS||o)&&(_f||l||!p[Uo])&&fS(p,Uo,E),dS[e]=E,dS[u]=gS,s)if(k={values:c?E:a(dc),keys:i?E:a(mS),entries:y},o)for(A in k)A in p||TO(p,A,k[A]);else Af(Af.P+Af.F*(_f||l),e,k);return k}});var Ho=d(()=>{"use strict";var IO=fc()(!0);mc()(String,"String",function(t){this._t=String(t),this._i=0},function(){var t=this._t,e=this._i,n;return e>=t.length?{value:void 0,done:!0}:(n=IO(t,e),this._i+=n.length,{value:n,done:!1})})});var wS=d(()=>{"use strict";var ES=D(),NO=fc()(!1);ES(ES.P,"String",{codePointAt:function(e){return NO(this,e)}})});var gc=d((i4,yS)=>{var DO=Pe(),PO=Cr(),qO=Me()("match");yS.exports=function(t){var e;return DO(t)&&((e=t[qO])!==void 0?!!e:PO(t)=="RegExp")}});var vc=d((o4,xS)=>{var LO=gc(),MO=er();xS.exports=function(t,e,n){if(LO(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(MO(t))}});var Ec=d((a4,SS)=>{var RO=Me()("match");SS.exports=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[RO]=!1,!"/./"[t](e)}catch{}}return!0}});var CS=d(()=>{"use strict";var kf=D(),bS=ot(),OO=vc(),If="endsWith",TS=""[If];kf(kf.P+kf.F*Ec()(If),"String",{endsWith:function(e){var n=OO(this,e,If),r=arguments.length>1?arguments[1]:void 0,s=bS(n.length),i=r===void 0?s:Math.min(bS(r),s),o=String(e);return TS?TS.call(n,o,i):n.slice(i-o.length,i)===o}})});var _S=d(()=>{"use strict";var Nf=D(),BO=vc(),AS="includes";Nf(Nf.P+Nf.F*Ec()(AS),"String",{includes:function(e){return!!~BO(this,e,AS).indexOf(e,arguments.length>1?arguments[1]:void 0)}})});var IS=d(()=>{var kS=D();kS(kS.P,"String",{repeat:of()})});var DS=d(()=>{"use strict";var Df=D(),FO=ot(),$O=vc(),Pf="startsWith",NS=""[Pf];Df(Df.P+Df.F*Ec()(Pf),"String",{startsWith:function(e){var n=$O(this,e,Pf),r=FO(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),s=String(e);return NS?NS.call(n,s,r):n.slice(r,r+s.length)===s}})});var _t=d((g4,PS)=>{var qf=D(),VO=Te(),UO=er(),HO=/"/g,jO=function(t,e,n,r){var s=String(UO(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+String(r).replace(HO,""")+'"'),i+">"+s+"</"+e+">"};PS.exports=function(t,e){var n={};n[t]=e(jO),qf(qf.P+qf.F*VO(function(){var r=""[t]('"');return r!==r.toLowerCase()||r.split('"').length>3}),"String",n)}});var qS=d(()=>{"use strict";_t()("anchor",function(t){return function(n){return t(this,"a","name",n)}})});var LS=d(()=>{"use strict";_t()("big",function(t){return function(){return t(this,"big","","")}})});var MS=d(()=>{"use strict";_t()("blink",function(t){return function(){return t(this,"blink","","")}})});var RS=d(()=>{"use strict";_t()("bold",function(t){return function(){return t(this,"b","","")}})});var OS=d(()=>{"use strict";_t()("fixed",function(t){return function(){return t(this,"tt","","")}})});var BS=d(()=>{"use strict";_t()("fontcolor",function(t){return function(n){return t(this,"font","color",n)}})});var FS=d(()=>{"use strict";_t()("fontsize",function(t){return function(n){return t(this,"font","size",n)}})});var $S=d(()=>{"use strict";_t()("italics",function(t){return function(){return t(this,"i","","")}})});var VS=d(()=>{"use strict";_t()("link",function(t){return function(n){return t(this,"a","href",n)}})});var US=d(()=>{"use strict";_t()("small",function(t){return function(){return t(this,"small","","")}})});var HS=d(()=>{"use strict";_t()("strike",function(t){return function(){return t(this,"strike","","")}})});var jS=d(()=>{"use strict";_t()("sub",function(t){return function(){return t(this,"sub","","")}})});var WS=d(()=>{"use strict";_t()("sup",function(t){return function(){return t(this,"sup","","")}})});var wc=d((H4,GS)=>{"use strict";var WO=fc()(!0);GS.exports=function(t,e,n){return e+(n?WO(t,e).length:1)}});var jo=d((j4,zS)=>{"use strict";var GO=Yu(),zO=RegExp.prototype.exec;zS.exports=function(t,e){var n=t.exec;if(typeof n=="function"){var r=n.call(t,e);if(typeof r!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if(GO(t)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return zO.call(t,e)}});var Wo=d((W4,XS)=>{"use strict";var XO=Ce();XS.exports=function(){var t=XO(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}});var Sc=d((G4,YS)=>{"use strict";var ZO=Wo(),yc=RegExp.prototype.exec,YO=String.prototype.replace,ZS=yc,xc="lastIndex",Lf=function(){var t=/a/,e=/b*/g;return yc.call(t,"a"),yc.call(e,"a"),t[xc]!==0||e[xc]!==0}(),Mf=/()??/.exec("")[1]!==void 0,QO=Lf||Mf;QO&&(ZS=function(e){var n=this,r,s,i,o;return Mf&&(s=new RegExp("^"+n.source+"$(?!\\s)",ZO.call(n))),Lf&&(r=n[xc]),i=yc.call(n,e),Lf&&i&&(n[xc]=n.global?i.index+i[0].length:r),Mf&&i&&i.length>1&&YO.call(i[0],s,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i});YS.exports=ZS});var Rf=d(()=>{"use strict";var QS=Sc();D()({target:"RegExp",proto:!0,forced:QS!==/./.exec},{exec:QS})});var Go=d((Z4,KS)=>{"use strict";Rf();var JO=Rt(),KO=Pn(),Of=Te(),eB=er(),JS=Me(),tB=Sc(),nB=JS("species"),rB=!Of(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"}),sB=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length===2&&n[0]==="a"&&n[1]==="b"}();KS.exports=function(t,e,n){var r=JS(t),s=!Of(function(){var l={};return l[r]=function(){return 7},""[t](l)!=7}),i=s?!Of(function(){var l=!1,p=/a/;return p.exec=function(){return l=!0,null},t==="split"&&(p.constructor={},p.constructor[nB]=function(){return p}),p[r](""),!l}):void 0;if(!s||!i||t==="replace"&&!rB||t==="split"&&!sB){var o=/./[r],a=n(eB,r,""[t],function(p,f,E,y,I){return f.exec===tB?s&&!I?{done:!0,value:o.call(f,E,y)}:{done:!0,value:p.call(E,f,y)}:{done:!1}}),u=a[0],c=a[1];JO(String.prototype,t,u),KO(RegExp.prototype,r,e==2?function(l,p){return c.call(l,this,p)}:function(l){return c.call(l,this)})}}});var Bf=d(()=>{"use strict";var iB=Ce(),oB=ot(),aB=wc(),e0=jo();Go()("match",1,function(t,e,n,r){return[function(i){var o=t(this),a=i?.[e];return a!==void 0?a.call(i,o):new RegExp(i)[e](String(o))},function(s){var i=r(n,s,this);if(i.done)return i.value;var o=iB(s),a=String(this);if(!o.global)return e0(o,a);var u=o.unicode;o.lastIndex=0;for(var c=[],l=0,p;(p=e0(o,a))!==null;){var f=String(p[0]);c[l]=f,f===""&&(o.lastIndex=aB(a,oB(o.lastIndex),u)),l++}return l===0?null:c}]})});var Ff=d(()=>{"use strict";var uB=Ce(),cB=Tt(),lB=ot(),hB=Ar(),pB=wc(),fB=jo(),dB=Math.max,mB=Math.min,gB=Math.floor,vB=/\$([$&`']|\d\d?|<[^>]*>)/g,EB=/\$([$&`']|\d\d?)/g,wB=function(t){return t===void 0?t:String(t)};Go()("replace",2,function(t,e,n,r){return[function(o,a){var u=t(this),c=o?.[e];return c!==void 0?c.call(o,u,a):n.call(String(u),o,a)},function(i,o){var a=r(n,i,this,o);if(a.done)return a.value;var u=uB(i),c=String(this),l=typeof o=="function";l||(o=String(o));var p=u.global;if(p){var f=u.unicode;u.lastIndex=0}for(var E=[];;){var y=fB(u,c);if(y===null||(E.push(y),!p))break;var I=String(y[0]);I===""&&(u.lastIndex=pB(c,lB(u.lastIndex),f))}for(var k="",A=0,C=0;C<E.length;C++){y=E[C];for(var _=String(y[0]),O=dB(mB(hB(y.index),c.length),0),Q=[],de=1;de<y.length;de++)Q.push(wB(y[de]));var fe=y.groups;if(l){var F=[_].concat(Q,O,c);fe!==void 0&&F.push(fe);var Ae=String(o.apply(void 0,F))}else Ae=s(_,c,O,Q,fe,o);O>=A&&(k+=c.slice(A,O)+Ae,A=O+_.length)}return k+c.slice(A)}];function s(i,o,a,u,c,l){var p=a+i.length,f=u.length,E=EB;return c!==void 0&&(c=cB(c),E=vB),n.call(l,E,function(y,I){var k;switch(I.charAt(0)){case"$":return"$";case"&":return i;case"`":return o.slice(0,a);case"'":return o.slice(p);case"<":k=c[I.slice(1,-1)];break;default:var A=+I;if(A===0)return y;if(A>f){var C=gB(A/10);return C===0?y:C<=f?u[C-1]===void 0?I.charAt(1):u[C-1]+I.charAt(1):y}k=u[A-1]}return k===void 0?"":k})}})});var $f=d(()=>{"use strict";var yB=Ce(),t0=zp(),xB=jo();Go()("search",1,function(t,e,n,r){return[function(i){var o=t(this),a=i?.[e];return a!==void 0?a.call(i,o):new RegExp(i)[e](String(o))},function(s){var i=r(n,s,this);if(i.done)return i.value;var o=yB(s),a=String(this),u=o.lastIndex;t0(u,0)||(o.lastIndex=0);var c=xB(o,a);return t0(o.lastIndex,u)||(o.lastIndex=u),c===null?-1:c.index}]})});var s0=d((n9,r0)=>{var n0=Ce(),SB=Tr(),bB=Me()("species");r0.exports=function(t,e){var n=n0(t).constructor,r;return n===void 0||(r=n0(n)[bB])==null?e:SB(r)}});var Hf=d(()=>{"use strict";var TB=gc(),CB=Ce(),AB=s0(),_B=wc(),kB=ot(),i0=jo(),IB=Sc(),NB=Te(),DB=Math.min,PB=[].push,ls="split",en="length",Vf="lastIndex",Uf=4294967295,zo=!NB(function(){RegExp(Uf,"y")});Go()("split",2,function(t,e,n,r){var s;return"abbc"[ls](/(b)*/)[1]=="c"||"test"[ls](/(?:)/,-1)[en]!=4||"ab"[ls](/(?:ab)*/)[en]!=2||"."[ls](/(.?)(.?)/)[en]!=4||"."[ls](/()()/)[en]>1||""[ls](/.?/)[en]?s=function(i,o){var a=String(this);if(i===void 0&&o===0)return[];if(!TB(i))return n.call(a,i,o);for(var u=[],c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),l=0,p=o===void 0?Uf:o>>>0,f=new RegExp(i.source,c+"g"),E,y,I;(E=IB.call(f,a))&&(y=f[Vf],!(y>l&&(u.push(a.slice(l,E.index)),E[en]>1&&E.index<a[en]&&PB.apply(u,E.slice(1)),I=E[0][en],l=y,u[en]>=p)));)f[Vf]===E.index&&f[Vf]++;return l===a[en]?(I||!f.test(""))&&u.push(""):u.push(a.slice(l)),u[en]>p?u.slice(0,p):u}:"0"[ls](void 0,0)[en]?s=function(i,o){return i===void 0&&o===0?[]:n.call(this,i,o)}:s=n,[function(o,a){var u=t(this),c=o?.[e];return c!==void 0?c.call(o,u,a):s.call(String(u),o,a)},function(i,o){var a=r(s,i,this,o,s!==n);if(a.done)return a.value;var u=CB(i),c=String(this),l=AB(u,RegExp),p=u.unicode,f=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(zo?"y":"g"),E=new l(zo?u:"^(?:"+u.source+")",f),y=o===void 0?Uf:o>>>0;if(y===0)return[];if(c.length===0)return i0(E,c)===null?[c]:[];for(var I=0,k=0,A=[];k<c.length;){E.lastIndex=zo?k:0;var C=i0(E,zo?c:c.slice(k)),_;if(C===null||(_=DB(kB(E.lastIndex+(zo?0:k)),c.length))===I)k=_B(c,k,p);else{if(A.push(c.slice(I,k)),A.length===y)return A;for(var O=1;O<=C.length-1;O++)if(A.push(C[O]),A.length===y)return A;k=I=_}}return A.push(c.slice(I)),A}]})});var a0=d((i9,o0)=>{sS();oS();aS();Ho();wS();CS();_S();IS();DS();qS();LS();MS();RS();OS();BS();FS();$S();VS();US();HS();jS();WS();Bf();Ff();$f();Hf();o0.exports=Fe().String});var c0=d(()=>{var u0=D();u0(u0.S,"Date",{now:function(){return new Date().getTime()}})});var l0=d(()=>{"use strict";var jf=D(),qB=Tt(),LB=br();jf(jf.P+jf.F*Te()(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1}),"Date",{toJSON:function(e){var n=qB(this),r=LB(n);return typeof r=="number"&&!isFinite(r)?null:n.toISOString()}})});var f0=d((l9,p0)=>{"use strict";var h0=Te(),MB=Date.prototype.getTime,Wf=Date.prototype.toISOString,vi=function(t){return t>9?t:"0"+t};p0.exports=h0(function(){return Wf.call(new Date(-5e13-1))!="0385-07-25T07:06:39.999Z"})||!h0(function(){Wf.call(new Date(NaN))})?function(){if(!isFinite(MB.call(this)))throw RangeError("Invalid time value");var e=this,n=e.getUTCFullYear(),r=e.getUTCMilliseconds(),s=n<0?"-":n>9999?"+":"";return s+("00000"+Math.abs(n)).slice(s?-6:-4)+"-"+vi(e.getUTCMonth()+1)+"-"+vi(e.getUTCDate())+"T"+vi(e.getUTCHours())+":"+vi(e.getUTCMinutes())+":"+vi(e.getUTCSeconds())+"."+(r>99?r:"0"+vi(r))+"Z"}:Wf});var m0=d(()=>{var Gf=D(),d0=f0();Gf(Gf.P+Gf.F*(Date.prototype.toISOString!==d0),"Date",{toISOString:d0})});var E0=d(()=>{var zf=Date.prototype,g0="Invalid Date",v0="toString",RB=zf[v0],OB=zf.getTime;new Date(NaN)+""!=g0&&Rt()(zf,v0,function(){var e=OB.call(this);return e===e?RB.call(this):g0})});var x0=d((m9,y0)=>{"use strict";var BB=Ce(),FB=br(),w0="number";y0.exports=function(t){if(t!=="string"&&t!==w0&&t!=="default")throw TypeError("Incorrect hint");return FB(BB(this),t!=w0)}});var T0=d(()=>{var S0=Me()("toPrimitive"),b0=Date.prototype;S0 in b0||Pn()(b0,S0,x0())});var A0=d((E9,C0)=>{c0();l0();m0();E0();T0();C0.exports=Date});var k0=d(()=>{var _0=D();_0(_0.S,"Array",{isArray:Uu()})});var Xf=d((x9,N0)=>{var I0=Ce();N0.exports=function(t,e,n,r){try{return r?e(I0(n)[0],n[1]):e(n)}catch(i){var s=t.return;throw s!==void 0&&I0(s.call(t)),i}}});var Zf=d((S9,D0)=>{var $B=gi(),VB=Me()("iterator"),UB=Array.prototype;D0.exports=function(t){return t!==void 0&&($B.Array===t||UB[VB]===t)}});var Yf=d((b9,P0)=>{"use strict";var HB=Xe(),jB=ns();P0.exports=function(t,e,n){e in t?HB.f(t,e,jB(0,n)):t[e]=n}});var Qf=d((T9,q0)=>{var WB=Yu(),GB=Me()("iterator"),zB=gi();q0.exports=Fe().getIteratorMethod=function(t){if(t!=null)return t[GB]||t["@@iterator"]||zB[WB(t)]}});var ed=d((C9,M0)=>{var Kf=Me()("iterator"),L0=!1;try{Jf=[7][Kf](),Jf.return=function(){L0=!0},Array.from(Jf,function(){throw 2})}catch{}var Jf;M0.exports=function(t,e){if(!e&&!L0)return!1;var n=!1;try{var r=[7],s=r[Kf]();s.next=function(){return{done:n=!0}},r[Kf]=function(){return s},t(r)}catch{}return n}});var O0=d(()=>{"use strict";var XB=rs(),td=D(),ZB=Tt(),YB=Xf(),QB=Zf(),JB=ot(),R0=Yf(),KB=Qf();td(td.S+td.F*!ed()(function(t){Array.from(t)}),"Array",{from:function(e){var n=ZB(e),r=typeof this=="function"?this:Array,s=arguments.length,i=s>1?arguments[1]:void 0,o=i!==void 0,a=0,u=KB(n),c,l,p,f;if(o&&(i=XB(i,s>2?arguments[2]:void 0,2)),u!=null&&!(r==Array&&QB(u)))for(f=u.call(n),l=new r;!(p=f.next()).done;a++)R0(l,a,o?YB(f,i,[p.value,a],!0):p.value);else for(c=JB(n.length),l=new r(c);c>a;a++)R0(l,a,o?i(n[a],a):n[a]);return l.length=a,l}})});var B0=d(()=>{"use strict";var nd=D(),e8=Yf();nd(nd.S+nd.F*Te()(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var e=0,n=arguments.length,r=new(typeof this=="function"?this:Array)(n);n>e;)e8(r,e,arguments[e++]);return r.length=n,r}})});var tn=d((N9,F0)=>{"use strict";var t8=Te();F0.exports=function(t,e){return!!t&&t8(function(){e?t.call(null,function(){},1):t.call(null)})}});var V0=d(()=>{"use strict";var rd=D(),n8=dn(),$0=[].join;rd(rd.P+rd.F*(ci()!=Object||!tn()($0)),"Array",{join:function(e){return $0.call(n8(this),e===void 0?",":e)}})});var G0=d(()=>{"use strict";var sd=D(),U0=Sp(),r8=Cr(),H0=li(),j0=ot(),W0=[].slice;sd(sd.P+sd.F*Te()(function(){U0&&W0.call(U0)}),"Array",{slice:function(e,n){var r=j0(this.length),s=r8(this);if(n=n===void 0?r:n,s=="Array")return W0.call(this,e,n);for(var i=H0(e,r),o=H0(n,r),a=j0(o-i),u=new Array(a),c=0;c<a;c++)u[c]=s=="String"?this.charAt(i+c):this[i+c];return u}})});var Y0=d(()=>{"use strict";var id=D(),s8=Tr(),z0=Tt(),X0=Te(),od=[].sort,Z0=[1,2,3];id(id.P+id.F*(X0(function(){Z0.sort(void 0)})||!X0(function(){Z0.sort(null)})||!tn()(od)),"Array",{sort:function(e){return e===void 0?od.call(z0(this)):od.call(z0(this),s8(e))}})});var K0=d((O9,J0)=>{var i8=Pe(),Q0=Uu(),o8=Me()("species");J0.exports=function(t){var e;return Q0(t)&&(e=t.constructor,typeof e=="function"&&(e===Array||Q0(e.prototype))&&(e=void 0),i8(e)&&(e=e[o8],e===null&&(e=void 0))),e===void 0?Array:e}});var tb=d((B9,eb)=>{var a8=K0();eb.exports=function(t,e){return new(a8(t))(e)}});var kr=d((F9,nb)=>{var u8=rs(),c8=ci(),l8=Tt(),h8=ot(),p8=tb();nb.exports=function(t,e){var n=t==1,r=t==2,s=t==3,i=t==4,o=t==6,a=t==5||o,u=e||p8;return function(c,l,p){for(var f=l8(c),E=c8(f),y=u8(l,p,3),I=h8(E.length),k=0,A=n?u(c,I):r?u(c,0):void 0,C,_;I>k;k++)if((a||k in E)&&(C=E[k],_=y(C,k,f),t)){if(n)A[k]=_;else if(_)switch(t){case 3:return!0;case 5:return C;case 6:return k;case 2:A.push(C)}else if(i)return!1}return o?-1:s||i?i:A}}});var rb=d(()=>{"use strict";var ad=D(),f8=kr()(0),d8=tn()([].forEach,!0);ad(ad.P+ad.F*!d8,"Array",{forEach:function(e){return f8(this,e,arguments[1])}})});var sb=d(()=>{"use strict";var ud=D(),m8=kr()(1);ud(ud.P+ud.F*!tn()([].map,!0),"Array",{map:function(e){return m8(this,e,arguments[1])}})});var ib=d(()=>{"use strict";var cd=D(),g8=kr()(2);cd(cd.P+cd.F*!tn()([].filter,!0),"Array",{filter:function(e){return g8(this,e,arguments[1])}})});var ob=d(()=>{"use strict";var ld=D(),v8=kr()(3);ld(ld.P+ld.F*!tn()([].some,!0),"Array",{some:function(e){return v8(this,e,arguments[1])}})});var ab=d(()=>{"use strict";var hd=D(),E8=kr()(4);hd(hd.P+hd.F*!tn()([].every,!0),"Array",{every:function(e){return E8(this,e,arguments[1])}})});var pd=d((Y9,ub)=>{var w8=Tr(),y8=Tt(),x8=ci(),S8=ot();ub.exports=function(t,e,n,r,s){w8(e);var i=y8(t),o=x8(i),a=S8(i.length),u=s?a-1:0,c=s?-1:1;if(n<2)for(;;){if(u in o){r=o[u],u+=c;break}if(u+=c,s?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;s?u>=0:a>u;u+=c)u in o&&(r=e(r,o[u],u,i));return r}});var cb=d(()=>{"use strict";var fd=D(),b8=pd();fd(fd.P+fd.F*!tn()([].reduce,!0),"Array",{reduce:function(e){return b8(this,e,arguments.length,arguments[1],!1)}})});var lb=d(()=>{"use strict";var dd=D(),T8=pd();dd(dd.P+dd.F*!tn()([].reduceRight,!0),"Array",{reduceRight:function(e){return T8(this,e,arguments.length,arguments[1],!0)}})});var pb=d(()=>{"use strict";var md=D(),C8=wp()(!1),gd=[].indexOf,hb=!!gd&&1/[1].indexOf(1,-0)<0;md(md.P+md.F*(hb||!tn()(gd)),"Array",{indexOf:function(e){return hb?gd.apply(this,arguments)||0:C8(this,e,arguments[1])}})});var db=d(()=>{"use strict";var vd=D(),A8=dn(),_8=Ar(),k8=ot(),Ed=[].lastIndexOf,fb=!!Ed&&1/[1].lastIndexOf(1,-0)<0;vd(vd.P+vd.F*(fb||!tn()(Ed)),"Array",{lastIndexOf:function(e){if(fb)return Ed.apply(this,arguments)||0;var n=A8(this),r=k8(n.length),s=r-1;for(arguments.length>1&&(s=Math.min(s,_8(arguments[1]))),s<0&&(s=r+s);s>=0;s--)if(s in n&&n[s]===e)return s||0;return-1}})});var gb=d((iU,mb)=>{"use strict";var I8=Tt(),wd=li(),N8=ot();mb.exports=[].copyWithin||function(e,n){var r=I8(this),s=N8(r.length),i=wd(e,s),o=wd(n,s),a=arguments.length>2?arguments[2]:void 0,u=Math.min((a===void 0?s:wd(a,s))-o,s-i),c=1;for(o<i&&i<o+u&&(c=-1,o+=u-1,i+=u-1);u-- >0;)o in r?r[i]=r[o]:delete r[i],i+=c,o+=c;return r}});var Ei=d((oU,vb)=>{var yd=Me()("unscopables"),xd=Array.prototype;xd[yd]==null&&Pn()(xd,yd,{});vb.exports=function(t){xd[yd][t]=!0}});var wb=d(()=>{var Eb=D();Eb(Eb.P,"Array",{copyWithin:gb()});Ei()("copyWithin")});var Sb=d((cU,xb)=>{"use strict";var D8=Tt(),yb=li(),P8=ot();xb.exports=function(e){for(var n=D8(this),r=P8(n.length),s=arguments.length,i=yb(s>1?arguments[1]:void 0,r),o=s>2?arguments[2]:void 0,a=o===void 0?r:yb(o,r);a>i;)n[i++]=e;return n}});var Tb=d(()=>{var bb=D();bb(bb.P,"Array",{fill:Sb()});Ei()("fill")});var Ab=d(()=>{"use strict";var Sd=D(),q8=kr()(5),bd="find",Cb=!0;bd in[]&&Array(1)[bd](function(){Cb=!1});Sd(Sd.P+Sd.F*Cb,"Array",{find:function(e){return q8(this,e,arguments.length>1?arguments[1]:void 0)}});Ei()(bd)});var kb=d(()=>{"use strict";var Td=D(),L8=kr()(6),Cd="findIndex",_b=!0;Cd in[]&&Array(1)[Cd](function(){_b=!1});Td(Td.P+Td.F*_b,"Array",{findIndex:function(e){return L8(this,e,arguments.length>1?arguments[1]:void 0)}});Ei()(Cd)});var bc=d((gU,Nb)=>{"use strict";var M8=Be(),R8=Xe(),O8=nt(),Ib=Me()("species");Nb.exports=function(t){var e=M8[t];O8&&e&&!e[Ib]&&R8.f(e,Ib,{configurable:!0,get:function(){return this}})}});var Db=d(()=>{bc()("Array")});var Ad=d((wU,Pb)=>{Pb.exports=function(t,e){return{value:e,done:!!t}}});var kd=d((yU,Lb)=>{"use strict";var _d=Ei(),Tc=Ad(),qb=gi(),B8=dn();Lb.exports=mc()(Array,"Array",function(t,e){this._t=B8(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,Tc(1)):e=="keys"?Tc(0,n):e=="values"?Tc(0,t[n]):Tc(0,[n,t[n]])},"values");qb.Arguments=qb.Array;_d("keys");_d("values");_d("entries")});var Rb=d((xU,Mb)=>{Ho();k0();O0();B0();V0();G0();Y0();rb();sb();ib();ob();ab();cb();lb();pb();db();wb();Tb();Ab();kb();Db();kd();Mb.exports=Fe().Array});var $b=d(()=>{var Fb=Be(),F8=nc(),$8=Xe().f,V8=hi().f,U8=gc(),H8=Wo(),ut=Fb.RegExp,Xo=ut,Id=ut.prototype,Zo=/a/g,Nd=/a/g,Ob=new ut(Zo)!==Zo;if(nt()&&(!Ob||Te()(function(){return Nd[Me()("match")]=!1,ut(Zo)!=Zo||ut(Nd)==Nd||ut(Zo,"i")!="/a/i"}))){for(ut=function(e,n){var r=this instanceof ut,s=U8(e),i=n===void 0;return!r&&s&&e.constructor===ut&&i?e:F8(Ob?new Xo(s&&!i?e.source:e,n):Xo((s=e instanceof ut)?e.source:e,s&&i?H8.call(e):n),r?this:Id,ut)},Bb=function(t){t in ut||$8(ut,t,{configurable:!0,get:function(){return Xo[t]},set:function(e){Xo[t]=e}})},Dd=V8(Xo),Pd=0;Dd.length>Pd;)Bb(Dd[Pd++]);Id.constructor=ut,ut.prototype=Id,Rt()(Fb,"RegExp",ut)}var Bb,Dd,Pd;bc()("RegExp")});var qd=d(()=>{nt()&&/./g.flags!="g"&&Xe().f(RegExp.prototype,"flags",{configurable:!0,get:Wo()})});var Ub=d(()=>{"use strict";qd();var j8=Ce(),W8=Wo(),G8=nt(),Md="toString",Ld=/./[Md],Vb=function(t){Rt()(RegExp.prototype,Md,t,!0)};Te()(function(){return Ld.call({source:"a",flags:"b"})!="/a/b"})?Vb(function(){var e=j8(this);return"/".concat(e.source,"/","flags"in e?e.flags:!G8&&e instanceof RegExp?W8.call(e):void 0)}):Ld.name!=Md&&Vb(function(){return Ld.call(this)})});var jb=d((kU,Hb)=>{$b();Rf();Ub();qd();Bf();Ff();$f();Hf();Hb.exports=Fe().RegExp});var Bd=d(()=>{var Wb=kd(),z8=os(),X8=Rt(),Z8=Be(),Gb=Pn(),Jb=gi(),Kb=Me(),zb=Kb("iterator"),Xb=Kb("toStringTag"),Zb=Jb.Array,Yb={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1};for(Rd=z8(Yb),Cc=0;Cc<Rd.length;Cc++)if(Yo=Rd[Cc],Qb=Yb[Yo],Od=Z8[Yo],Ir=Od&&Od.prototype,Ir&&(Ir[zb]||Gb(Ir,zb,Zb),Ir[Xb]||Gb(Ir,Xb,Yo),Jb[Yo]=Zb,Qb))for(Qo in Wb)Ir[Qo]||X8(Ir,Qo,Wb[Qo],!0);var Yo,Qb,Od,Ir,Qo,Rd,Cc});var Fd=d((DU,eT)=>{var Y8=Rt();eT.exports=function(t,e,n){for(var r in e)Y8(t,r,e[r],n);return t}});var $d=d((PU,tT)=>{tT.exports=function(t,e,n,r){if(!(t instanceof e)||r!==void 0&&r in t)throw TypeError(n+": incorrect invocation!");return t}});var Hd=d((Ac,nT)=>{var Q8=rs(),J8=Xf(),K8=Zf(),eF=Ce(),tF=ot(),nF=Qf(),Vd={},Ud={},Ac=nT.exports=function(t,e,n,r,s){var i=s?function(){return t}:nF(t),o=Q8(n,r,e?2:1),a=0,u,c,l,p;if(typeof i!="function")throw TypeError(t+" is not iterable!");if(K8(i)){for(u=tF(t.length);u>a;a++)if(p=e?o(eF(c=t[a])[0],c[1]):o(t[a]),p===Vd||p===Ud)return p}else for(l=i.call(t);!(c=l.next()).done;)if(p=J8(l,o,c.value,e),p===Vd||p===Ud)return p};Ac.BREAK=Vd;Ac.RETURN=Ud});var _c=d((qU,rT)=>{var rF=Pe();rT.exports=function(t,e){if(!rF(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}});var jd=d((LU,oT)=>{"use strict";var sF=Xe().f,iF=as(),oF=Fd(),aF=rs(),uF=$d(),cF=Hd(),lF=mc(),kc=Ad(),hF=bc(),sT=nt(),iT=is().fastKey,wi=_c(),Jo=sT?"_s":"size",Ic=function(t,e){var n=iT(e),r;if(n!=="F")return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};oT.exports={getConstructor:function(t,e,n,r){var s=t(function(i,o){uF(i,s,e,"_i"),i._t=e,i._i=iF(null),i._f=void 0,i._l=void 0,i[Jo]=0,o!=null&&cF(o,n,i[r],i)});return oF(s.prototype,{clear:function(){for(var o=wi(this,e),a=o._i,u=o._f;u;u=u.n)u.r=!0,u.p&&(u.p=u.p.n=void 0),delete a[u.i];o._f=o._l=void 0,o[Jo]=0},delete:function(i){var o=wi(this,e),a=Ic(o,i);if(a){var u=a.n,c=a.p;delete o._i[a.i],a.r=!0,c&&(c.n=u),u&&(u.p=c),o._f==a&&(o._f=u),o._l==a&&(o._l=c),o[Jo]--}return!!a},forEach:function(o){wi(this,e);for(var a=aF(o,arguments.length>1?arguments[1]:void 0,3),u;u=u?u.n:this._f;)for(a(u.v,u.k,this);u&&u.r;)u=u.p},has:function(o){return!!Ic(wi(this,e),o)}}),sT&&sF(s.prototype,"size",{get:function(){return wi(this,e)[Jo]}}),s},def:function(t,e,n){var r=Ic(t,e),s,i;return r?r.v=n:(t._l=r={i:i=iT(e,!0),k:e,v:n,p:s=t._l,n:void 0,r:!1},t._f||(t._f=r),s&&(s.n=r),t[Jo]++,i!=="F"&&(t._i[i]=r)),t},getEntry:Ic,setStrong:function(t,e,n){lF(t,e,function(r,s){this._t=wi(r,e),this._k=s,this._l=void 0},function(){for(var r=this,s=r._k,i=r._l;i&&i.r;)i=i.p;return!r._t||!(r._l=i=i?i.n:r._t._f)?(r._t=void 0,kc(1)):s=="keys"?kc(0,i.k):s=="values"?kc(0,i.v):kc(0,[i.k,i.v])},n?"entries":"values",!n,!0),hF(e)}}});var zd=d((MU,aT)=>{"use strict";var pF=Be(),Nc=D(),fF=Rt(),dF=Fd(),mF=is(),gF=Hd(),vF=$d(),Wd=Pe(),Gd=Te(),EF=ed(),wF=Do(),yF=nc();aT.exports=function(t,e,n,r,s,i){var o=pF[t],a=o,u=s?"set":"add",c=a&&a.prototype,l={},p=function(A){var C=c[A];fF(c,A,A=="delete"?function(_){return i&&!Wd(_)?!1:C.call(this,_===0?0:_)}:A=="has"?function(O){return i&&!Wd(O)?!1:C.call(this,O===0?0:O)}:A=="get"?function(O){return i&&!Wd(O)?void 0:C.call(this,O===0?0:O)}:A=="add"?function(O){return C.call(this,O===0?0:O),this}:function(O,Q){return C.call(this,O===0?0:O,Q),this})};if(typeof a!="function"||!(i||c.forEach&&!Gd(function(){new a().entries().next()})))a=r.getConstructor(e,t,s,u),dF(a.prototype,n),mF.NEED=!0;else{var f=new a,E=f[u](i?{}:-0,1)!=f,y=Gd(function(){f.has(1)}),I=EF(function(A){new a(A)}),k=!i&&Gd(function(){for(var A=new a,C=5;C--;)A[u](C,C);return!A.has(-0)});I||(a=e(function(A,C){vF(A,a,t);var _=yF(new o,A,a);return C!=null&&gF(C,s,_[u],_),_}),a.prototype=c,c.constructor=a),(y||k)&&(p("delete"),p("has"),s&&p("get")),(k||E)&&p(u),i&&c.clear&&delete c.clear}return wF(a,t),l[t]=a,Nc(Nc.G+Nc.W+Nc.F*(a!=o),l),i||r.setStrong(a,t,s),a}});var lT=d((RU,cT)=>{"use strict";var Xd=jd(),uT=_c(),Zd="Map";cT.exports=zd()(Zd,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var n=Xd.getEntry(uT(this,Zd),e);return n&&n.v},set:function(e,n){return Xd.def(uT(this,Zd),e===0?0:e,n)}},Xd,!0)});var pT=d((OU,hT)=>{Bo();Ho();Bd();lT();hT.exports=Fe().Map});var gT=d((BU,mT)=>{"use strict";var fT=jd(),xF=_c(),dT="Set";mT.exports=zd()(dT,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return fT.def(xF(this,dT),e=e===0?0:e,e)}},fT)});var ET=d((FU,vT)=>{Bo();Ho();Bd();gT();vT.exports=Fe().Set});var wT=d(()=>{var Yd=D(),SF=Tr(),bF=Ce(),Qd=(Be().Reflect||{}).apply,TF=Function.apply;Yd(Yd.S+Yd.F*!Te()(function(){Qd(function(){})}),"Reflect",{apply:function(e,n,r){var s=SF(e),i=bF(r);return Qd?Qd(s,n,i):TF.call(s,n,i)}})});var CT=d(()=>{var Jd=D(),CF=as(),yT=Tr(),AF=Ce(),xT=Pe(),TT=Te(),_F=Zp(),Kd=(Be().Reflect||{}).construct,ST=TT(function(){function t(){}return!(Kd(function(){},[],t)instanceof t)}),bT=!TT(function(){Kd(function(){})});Jd(Jd.S+Jd.F*(ST||bT),"Reflect",{construct:function(e,n){yT(e),AF(n);var r=arguments.length<3?e:yT(arguments[2]);if(bT&&!ST)return Kd(e,n,r);if(e==r){switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3])}var s=[null];return s.push.apply(s,n),new(_F.apply(e,s))}var i=r.prototype,o=CF(xT(i)?i:Object.prototype),a=Function.apply.call(e,o,n);return xT(a)?a:o}})});var kT=d(()=>{var AT=Xe(),em=D(),_T=Ce(),kF=br();em(em.S+em.F*Te()(function(){Reflect.defineProperty(AT.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,n,r){_T(e),n=kF(n,!0),_T(r);try{return AT.f(e,n,r),!0}catch{return!1}}})});var NT=d(()=>{var IT=D(),IF=tr().f,NF=Ce();IT(IT.S,"Reflect",{deleteProperty:function(e,n){var r=IF(NF(e),n);return r&&!r.configurable?!1:delete e[n]}})});var qT=d(()=>{"use strict";var DT=D(),DF=Ce(),PT=function(t){this._t=DF(t),this._i=0;var e=this._k=[],n;for(n in t)e.push(n)};Cf()(PT,"Object",function(){var t=this,e=t._k,n;do if(t._i>=e.length)return{value:void 0,done:!0};while(!((n=e[t._i++])in t._t));return{value:n,done:!1}});DT(DT.S,"Reflect",{enumerate:function(e){return new PT(e)}})});var RT=d(()=>{var PF=tr(),qF=cs(),LF=fn(),LT=D(),MF=Pe(),RF=Ce();function MT(t,e){var n=arguments.length<3?t:arguments[2],r,s;if(RF(t)===n)return t[e];if(r=PF.f(t,e))return LF(r,"value")?r.value:r.get!==void 0?r.get.call(n):void 0;if(MF(s=qF(t)))return MT(s,e,n)}LT(LT.S,"Reflect",{get:MT})});var BT=d(()=>{var OF=tr(),OT=D(),BF=Ce();OT(OT.S,"Reflect",{getOwnPropertyDescriptor:function(e,n){return OF.f(BF(e),n)}})});var $T=d(()=>{var FT=D(),FF=cs(),$F=Ce();FT(FT.S,"Reflect",{getPrototypeOf:function(e){return FF($F(e))}})});var UT=d(()=>{var VT=D();VT(VT.S,"Reflect",{has:function(e,n){return n in e}})});var WT=d(()=>{var HT=D(),VF=Ce(),jT=Object.isExtensible;HT(HT.S,"Reflect",{isExtensible:function(e){return VF(e),jT?jT(e):!0}})});var XT=d((oH,zT)=>{var UF=hi(),HF=Po(),jF=Ce(),GT=Be().Reflect;zT.exports=GT&>.ownKeys||function(e){var n=UF.f(jF(e)),r=HF.f;return r?n.concat(r(e)):n}});var YT=d(()=>{var ZT=D();ZT(ZT.S,"Reflect",{ownKeys:XT()})});var KT=d(()=>{var QT=D(),WF=Ce(),JT=Object.preventExtensions;QT(QT.S,"Reflect",{preventExtensions:function(e){WF(e);try{return JT&&JT(e),!0}catch{return!1}}})});var oC=d(()=>{var eC=Xe(),tC=tr(),GF=cs(),zF=fn(),nC=D(),rC=ns(),XF=Ce(),sC=Pe();function iC(t,e,n){var r=arguments.length<4?t:arguments[3],s=tC.f(XF(t),e),i,o;if(!s){if(sC(o=GF(t)))return iC(o,e,n,r);s=rC(0)}if(zF(s,"value")){if(s.writable===!1||!sC(r))return!1;if(i=tC.f(r,e)){if(i.get||i.set||i.writable===!1)return!1;i.value=n,eC.f(r,e,i)}else eC.f(r,e,rC(0,n));return!0}return s.set===void 0?!1:(s.set.call(r,n),!0)}nC(nC.S,"Reflect",{set:iC})});var uC=d(()=>{var aC=D(),tm=Ju();tm&&aC(aC.S,"Reflect",{setPrototypeOf:function(e,n){tm.check(e,n);try{return tm.set(e,n),!0}catch{return!1}}})});var lC=d((mH,cC)=>{wT();CT();kT();NT();qT();RT();BT();$T();UT();WT();YT();KT();oC();uC();cC.exports=Fe().Reflect});var ym=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),Ds=class t{constructor(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}static parse(e){let n=[],r=(u,c)=>{c.notSelectors.length>0&&!c.element&&c.classNames.length==0&&c.attrs.length==0&&(c.element="*"),u.push(c)},s=new t,i,o=s,a=!1;for(ym.lastIndex=0;i=ym.exec(e);){if(i[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,o=new t,s.notSelectors.push(o)}let u=i[2];if(u){let l=i[3];l==="#"?o.addAttribute("id",u.slice(1)):l==="."?o.addClassName(u.slice(1)):o.setElement(u)}let c=i[4];if(c&&o.addAttribute(o.unescapeAttribute(c),i[6]),i[7]&&(a=!1,o=s),i[8]){if(a)throw new Error("Multiple selectors in :not are not supported");r(n,s),s=o=new t}}return r(n,s),n}unescapeAttribute(e){let n="",r=!1;for(let s=0;s<e.length;s++){let i=e.charAt(s);if(i==="\\"){r=!0;continue}if(i==="$"&&!r)throw new Error(`Error in attribute selector "${e}". Unescaped "$" is not supported. Please escape with "\\$".`);r=!1,n+=i}return n}escapeAttribute(e){return e.replace(/\\/g,"\\\\").replace(/\$/g,"\\$")}isElementSelector(){return this.hasElementSelector()&&this.classNames.length==0&&this.attrs.length==0&&this.notSelectors.length===0}hasElementSelector(){return!!this.element}setElement(e=null){this.element=e}getAttrs(){let e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}addAttribute(e,n=""){this.attrs.push(e,n&&n.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach(n=>e+=`.${n}`),this.attrs)for(let n=0;n<this.attrs.length;n+=2){let r=this.escapeAttribute(this.attrs[n]),s=this.attrs[n+1];e+=`[${r}${s?"="+s:""}]`}return this.notSelectors.forEach(n=>e+=`:not(${n})`),e}},ha=class t{constructor(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}static createNotMatcher(e){let n=new t;return n.addSelectables(e,null),n}addSelectables(e,n){let r=null;e.length>1&&(r=new ol(e),this._listContexts.push(r));for(let s=0;s<e.length;s++)this._addSelectable(e[s],n,r)}_addSelectable(e,n,r){let s=this,i=e.element,o=e.classNames,a=e.attrs,u=new al(e,n,r);if(i&&(a.length===0&&o.length===0?this._addTerminal(s._elementMap,i,u):s=this._addPartial(s._elementPartialMap,i)),o)for(let c=0;c<o.length;c++){let l=a.length===0&&c===o.length-1,p=o[c];l?this._addTerminal(s._classMap,p,u):s=this._addPartial(s._classPartialMap,p)}if(a)for(let c=0;c<a.length;c+=2){let l=c===a.length-2,p=a[c],f=a[c+1];if(l){let E=s._attrValueMap,y=E.get(p);y||(y=new Map,E.set(p,y)),this._addTerminal(y,f,u)}else{let E=s._attrValuePartialMap,y=E.get(p);y||(y=new Map,E.set(p,y)),s=this._addPartial(y,f)}}}_addTerminal(e,n,r){let s=e.get(n);s||(s=[],e.set(n,s)),s.push(r)}_addPartial(e,n){let r=e.get(n);return r||(r=new t,e.set(n,r)),r}match(e,n){let r=!1,s=e.element,i=e.classNames,o=e.attrs;for(let a=0;a<this._listContexts.length;a++)this._listContexts[a].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,s,e,n)||r,r=this._matchPartial(this._elementPartialMap,s,e,n)||r,i)for(let a=0;a<i.length;a++){let u=i[a];r=this._matchTerminal(this._classMap,u,e,n)||r,r=this._matchPartial(this._classPartialMap,u,e,n)||r}if(o)for(let a=0;a<o.length;a+=2){let u=o[a],c=o[a+1],l=this._attrValueMap.get(u);c&&(r=this._matchTerminal(l,"",e,n)||r),r=this._matchTerminal(l,c,e,n)||r;let p=this._attrValuePartialMap.get(u);c&&(r=this._matchPartial(p,"",e,n)||r),r=this._matchPartial(p,c,e,n)||r}return r}_matchTerminal(e,n,r,s){if(!e||typeof n!="string")return!1;let i=e.get(n)||[],o=e.get("*");if(o&&(i=i.concat(o)),i.length===0)return!1;let a,u=!1;for(let c=0;c<i.length;c++)a=i[c],u=a.finalize(r,s)||u;return u}_matchPartial(e,n,r,s){if(!e||typeof n!="string")return!1;let i=e.get(n);return i?i.match(r,s):!1}},ol=class{constructor(e){this.selectors=e,this.alreadyMatched=!1}},al=class{constructor(e,n,r){this.selector=e,this.cbContext=n,this.listContext=r,this.notSelectors=e.notSelectors}finalize(e,n){let r=!0;return this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)&&(r=!ha.createNotMatcher(this.notSelectors).match(e,null)),r&&n&&(!this.listContext||!this.listContext.alreadyMatched)&&(this.listContext&&(this.listContext.alreadyMatched=!0),n(this.selector,this.cbContext)),r}};var pr;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(pr||(pr={}));var pa;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(pa||(pa={}));var ys;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(ys||(ys={}));var xm={name:"custom-elements"},Sm={name:"no-errors-schema"};var be;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(be||(be={}));var bm;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(bm||(bm={}));function MC(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return[t.element&&t.element!=="*"?t.element:"",...t.attrs,...e]}function RC(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return t.element?[5,t.element,...t.attrs,...e]:t.attrs.length?[3,...t.attrs,...e]:t.classNames&&t.classNames.length?[9,...t.classNames]:[]}function OC(t){let e=MC(t),n=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(r=>RC(r)):[];return e.concat(...n)}function Oh(t){return t?Ds.parse(t).map(OC):[]}var fa;function BC(t){return UC(VC(t.nodes).join("")+`[${t.meaning}]`)}function FC(t){return t.id||vv(t)}function vv(t){let e=new ul,n=t.nodes.map(r=>r.visit(e,null));return Ev(n.join(""),t.meaning)}var da=class{visitText(e,n){return e.value}visitContainer(e,n){return`[${e.children.map(r=>r.visit(this)).join(", ")}]`}visitIcu(e,n){let r=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.expression}, ${e.type}, ${r.join(", ")}}`}visitTagPlaceholder(e,n){return e.isVoid?`<ph tag name="${e.startName}"/>`:`<ph tag name="${e.startName}">${e.children.map(r=>r.visit(this)).join(", ")}</ph name="${e.closeName}">`}visitPlaceholder(e,n){return e.value?`<ph name="${e.name}">${e.value}</ph>`:`<ph name="${e.name}"/>`}visitIcuPlaceholder(e,n){return`<ph icu name="${e.name}">${e.value.visit(this)}</ph>`}visitBlockPlaceholder(e,n){return`<ph block name="${e.startName}">${e.children.map(r=>r.visit(this)).join(", ")}</ph name="${e.closeName}">`}},$C=new da;function VC(t){return t.map(e=>e.visit($C,null))}var ul=class extends da{visitIcu(e,n){let r=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.type}, ${r.join(", ")}}`}};function UC(t){fa??=new TextEncoder;let e=[...fa.encode(t)],n=WC(e,ma.Big),r=e.length*8,s=new Uint32Array(80),i=1732584193,o=4023233417,a=2562383102,u=271733878,c=3285377520;n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(let l=0;l<n.length;l+=16){let p=i,f=o,E=a,y=u,I=c;for(let k=0;k<80;k++){k<16?s[k]=n[l+k]:s[k]=Oc(s[k-3]^s[k-8]^s[k-14]^s[k-16],1);let A=HC(k,o,a,u),C=A[0],_=A[1],O=[Oc(i,5),C,c,_,s[k]].reduce(fs);c=u,u=a,a=Oc(o,30),o=i,i=O}i=fs(i,p),o=fs(o,f),a=fs(a,E),u=fs(u,y),c=fs(c,I)}return Ti(i)+Ti(o)+Ti(a)+Ti(u)+Ti(c)}function Ti(t){return(t>>>0).toString(16).padStart(8,"0")}function HC(t,e,n,r){return t<20?[e&n|~e&r,1518500249]:t<40?[e^n^r,1859775393]:t<60?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function Tm(t){fa??=new TextEncoder;let e=fa.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=Cm(n,e.length,0),s=Cm(n,e.length,102072);return r==0&&(s==0||s==1)&&(r=r^319790063,s=s^-1801410264),BigInt.asUintN(32,BigInt(r))<<BigInt(32)|BigInt.asUintN(32,BigInt(s))}function Ev(t,e=""){let n=Tm(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=Tm(e)),BigInt.asUintN(63,n).toString()}function Cm(t,e,n){let r=2654435769,s=2654435769,i=0,o=e-12;for(;i<=o;i+=12){r+=t.getUint32(i,!0),s+=t.getUint32(i+4,!0),n+=t.getUint32(i+8,!0);let u=Am(r,s,n);r=u[0],s=u[1],n=u[2]}let a=e-i;return n+=e,a>=4?(r+=t.getUint32(i,!0),i+=4,a>=8?(s+=t.getUint32(i,!0),i+=4,a>=9&&(n+=t.getUint8(i++)<<8),a>=10&&(n+=t.getUint8(i++)<<16),a===11&&(n+=t.getUint8(i++)<<24)):(a>=5&&(s+=t.getUint8(i++)),a>=6&&(s+=t.getUint8(i++)<<8),a===7&&(s+=t.getUint8(i++)<<16))):(a>=1&&(r+=t.getUint8(i++)),a>=2&&(r+=t.getUint8(i++)<<8),a===3&&(r+=t.getUint8(i++)<<16)),Am(r,s,n)[2]}function Am(t,e,n){return t-=e,t-=n,t^=n>>>13,e-=n,e-=t,e^=t<<8,n-=t,n-=e,n^=e>>>13,t-=e,t-=n,t^=n>>>12,e-=n,e-=t,e^=t<<16,n-=t,n-=e,n^=e>>>5,t-=e,t-=n,t^=n>>>3,e-=n,e-=t,e^=t<<10,n-=t,n-=e,n^=e>>>15,[t,e,n]}var ma;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(ma||(ma={}));function fs(t,e){return jC(t,e)[1]}function jC(t,e){let n=(t&65535)+(e&65535),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|n&65535]}function Oc(t,e){return t<<e|t>>>32-e}function WC(t,e){let n=t.length+3>>>2,r=[];for(let s=0;s<n;s++)r[s]=GC(t,s*4,e);return r}function _m(t,e){return e>=t.length?0:t[e]}function GC(t,e,n){let r=0;if(n===ma.Big)for(let s=0;s<4;s++)r+=_m(t,e+s)<<24-8*s;else for(let s=0;s<4;s++)r+=_m(t,e+s)<<8*s;return r}var cl;(function(t){t[t.None=0]="None",t[t.Const=1]="Const"})(cl||(cl={}));var ga=class{constructor(e=cl.None){this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},Cn;(function(t){t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None"})(Cn||(Cn={}));var An=class extends ga{constructor(e,n){super(n),this.name=e}visitType(e,n){return e.visitBuiltinType(this,n)}},zt=class extends ga{constructor(e,n,r=null){super(n),this.value=e,this.typeParams=r}visitType(e,n){return e.visitExpressionType(this,n)}};var Co=new An(Cn.Dynamic),Wt=new An(Cn.Inferred),zC=new An(Cn.Bool),y$=new An(Cn.Int),Bh=new An(Cn.Number),wv=new An(Cn.String),x$=new An(Cn.Function),_n=new An(Cn.None),Ps;(function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"})(Ps||(Ps={}));var B;(function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Identical=2]="Identical",t[t.NotIdentical=3]="NotIdentical",t[t.Minus=4]="Minus",t[t.Plus=5]="Plus",t[t.Divide=6]="Divide",t[t.Multiply=7]="Multiply",t[t.Modulo=8]="Modulo",t[t.And=9]="And",t[t.Or=10]="Or",t[t.BitwiseOr=11]="BitwiseOr",t[t.BitwiseAnd=12]="BitwiseAnd",t[t.Lower=13]="Lower",t[t.LowerEquals=14]="LowerEquals",t[t.Bigger=15]="Bigger",t[t.BiggerEquals=16]="BiggerEquals",t[t.NullishCoalesce=17]="NullishCoalesce"})(B||(B={}));function XC(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function yv(t,e,n){let r=t.length;if(r!==e.length)return!1;for(let s=0;s<r;s++)if(!n(t[s],e[s]))return!1;return!0}function qt(t,e){return yv(t,e,(n,r)=>n.isEquivalent(r))}var ve=class{constructor(e,n){this.type=e||null,this.sourceSpan=n||null}prop(e,n){return new Lt(this,e,null,n)}key(e,n,r){return new Zn(this,e,n,r)}callFn(e,n,r){return new ft(this,e,null,n,r)}instantiate(e,n,r){return new $i(this,e,n,r)}conditional(e,n=null,r){return new Xn(this,e,n,null,r)}equals(e,n){return new he(B.Equals,this,e,null,n)}notEquals(e,n){return new he(B.NotEquals,this,e,null,n)}identical(e,n){return new he(B.Identical,this,e,null,n)}notIdentical(e,n){return new he(B.NotIdentical,this,e,null,n)}minus(e,n){return new he(B.Minus,this,e,null,n)}plus(e,n){return new he(B.Plus,this,e,null,n)}divide(e,n){return new he(B.Divide,this,e,null,n)}multiply(e,n){return new he(B.Multiply,this,e,null,n)}modulo(e,n){return new he(B.Modulo,this,e,null,n)}and(e,n){return new he(B.And,this,e,null,n)}bitwiseOr(e,n,r=!0){return new he(B.BitwiseOr,this,e,null,n,r)}bitwiseAnd(e,n,r=!0){return new he(B.BitwiseAnd,this,e,null,n,r)}or(e,n){return new he(B.Or,this,e,null,n)}lower(e,n){return new he(B.Lower,this,e,null,n)}lowerEquals(e,n){return new he(B.LowerEquals,this,e,null,n)}bigger(e,n){return new he(B.Bigger,this,e,null,n)}biggerEquals(e,n){return new he(B.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(KC,e)}nullishCoalesce(e,n){return new he(B.NullishCoalesce,this,e,null,n)}toStmt(){return new Yt(this,null)}},Xt=class t extends ve{constructor(e,n,r){super(n,r),this.name=e}isEquivalent(e){return e instanceof t&&this.name===e.name}isConstant(){return!1}visitExpression(e,n){return e.visitReadVarExpr(this,n)}clone(){return new t(this.name,this.type,this.sourceSpan)}set(e){return new va(this.name,e,null,this.sourceSpan)}},qs=class t extends ve{constructor(e,n,r){super(n,r),this.expr=e}visitExpression(e,n){return e.visitTypeofExpr(this,n)}isEquivalent(e){return e instanceof t&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},se=class t extends ve{constructor(e,n,r){super(n,r),this.node=e}isEquivalent(e){return e instanceof t&&this.node===e.node}isConstant(){return!1}visitExpression(e,n){return e.visitWrappedNodeExpr(this,n)}clone(){return new t(this.node,this.type,this.sourceSpan)}},va=class t extends ve{constructor(e,n,r,s){super(r||n.type,s),this.name=e,this.value=n}isEquivalent(e){return e instanceof t&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,n){return e.visitWriteVarExpr(this,n)}clone(){return new t(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(e,n){return new st(this.name,this.value,e,n,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(Wt,Ge.Final)}},Fi=class t extends ve{constructor(e,n,r,s,i){super(s||r.type,i),this.receiver=e,this.index=n,this.value=r}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,n){return e.visitWriteKeyExpr(this,n)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}},Ls=class t extends ve{constructor(e,n,r,s,i){super(s||r.type,i),this.receiver=e,this.name=n,this.value=r}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,n){return e.visitWritePropExpr(this,n)}clone(){return new t(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}},ft=class t extends ve{constructor(e,n,r,s,i=!1){super(r,s),this.fn=e,this.args=n,this.pure=i}get receiver(){return this.fn}isEquivalent(e){return e instanceof t&&this.fn.isEquivalent(e.fn)&&qt(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,n){return e.visitInvokeFunctionExpr(this,n)}clone(){return new t(this.fn.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan,this.pure)}},Ea=class t extends ve{constructor(e,n,r,s){super(r,s),this.tag=e,this.template=n}isEquivalent(e){return e instanceof t&&this.tag.isEquivalent(e.tag)&&yv(this.template.elements,e.template.elements,(n,r)=>n.text===r.text)&&qt(this.template.expressions,e.template.expressions)}isConstant(){return!1}visitExpression(e,n){return e.visitTaggedTemplateExpr(this,n)}clone(){return new t(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}},$i=class t extends ve{constructor(e,n,r,s){super(r,s),this.classExpr=e,this.args=n}isEquivalent(e){return e instanceof t&&this.classExpr.isEquivalent(e.classExpr)&&qt(this.args,e.args)}isConstant(){return!1}visitExpression(e,n){return e.visitInstantiateExpr(this,n)}clone(){return new t(this.classExpr.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan)}},tt=class t extends ve{constructor(e,n,r){super(n,r),this.value=e}isEquivalent(e){return e instanceof t&&this.value===e.value}isConstant(){return!0}visitExpression(e,n){return e.visitLiteralExpr(this,n)}clone(){return new t(this.value,this.type,this.sourceSpan)}},ll=class t{constructor(e,n){this.elements=e,this.expressions=n}clone(){return new t(this.elements.map(e=>e.clone()),this.expressions.map(e=>e.clone()))}},hl=class t{constructor(e,n,r){this.text=e,this.sourceSpan=n,this.rawText=r??n?.toString()??pl(ca(e))}clone(){return new t(this.text,this.sourceSpan,this.rawText)}},Or=class{constructor(e,n){this.text=e,this.sourceSpan=n}},ks=class{constructor(e,n,r){this.text=e,this.sourceSpan=n,this.associatedMessage=r}},ZC="|",km="@@",YC="\u241F",wa=class t extends ve{constructor(e,n,r,s,i){super(wv,i),this.metaBlock=e,this.messageParts=n,this.placeHolderNames=r,this.expressions=s}isEquivalent(e){return!1}isConstant(){return!1}visitExpression(e,n){return e.visitLocalizedString(this,n)}clone(){return new t(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map(e=>e.clone()),this.sourceSpan)}serializeI18nHead(){let e=this.metaBlock.description||"";return this.metaBlock.meaning&&(e=`${this.metaBlock.meaning}${ZC}${e}`),this.metaBlock.customId&&(e=`${e}${km}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(n=>{e=`${e}${YC}${n}`}),Im(e,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(e){return this.messageParts[e]?.sourceSpan??this.sourceSpan}getPlaceholderSourceSpan(e){return this.placeHolderNames[e]?.sourceSpan??this.expressions[e]?.sourceSpan??this.sourceSpan}serializeI18nTemplatePart(e){let n=this.placeHolderNames[e-1],r=this.messageParts[e],s=n.text;return n.associatedMessage?.legacyIds.length===0&&(s+=`${km}${Ev(n.associatedMessage.messageString,n.associatedMessage.meaning)}`),Im(s,r.text,this.getMessagePartSourceSpan(e))}},ca=t=>t.replace(/\\/g,"\\\\"),QC=t=>t.replace(/^:/,"\\:"),JC=t=>t.replace(/:/g,"\\:"),pl=t=>t.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function Im(t,e,n){return t===""?{cooked:e,raw:pl(QC(ca(e))),range:n}:{cooked:`:${t}:${e}`,raw:pl(`:${JC(ca(t))}:${ca(e)}`),range:n}}var Hr=class t extends ve{constructor(e,n,r=null,s){super(n,s),this.value=e,this.typeParams=r}isEquivalent(e){return e instanceof t&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName&&this.value.runtime===e.value.runtime}isConstant(){return!1}visitExpression(e,n){return e.visitExternalExpr(this,n)}clone(){return new t(this.value,this.type,this.typeParams,this.sourceSpan)}};var Xn=class t extends ve{constructor(e,n,r=null,s,i){super(s||n.type,i),this.condition=e,this.falseCase=r,this.trueCase=n}isEquivalent(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&XC(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,n){return e.visitConditionalExpr(this,n)}clone(){return new t(this.condition.clone(),this.trueCase.clone(),this.falseCase?.clone(),this.type,this.sourceSpan)}};var Vi=class t extends ve{constructor(e,n){super(zC,n),this.condition=e}isEquivalent(e){return e instanceof t&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,n){return e.visitNotExpr(this,n)}clone(){return new t(this.condition.clone(),this.sourceSpan)}},ze=class t{constructor(e,n=null){this.name=e,this.type=n}isEquivalent(e){return this.name===e.name}clone(){return new t(this.name,this.type)}},Hn=class t extends ve{constructor(e,n,r,s,i){super(r,s),this.params=e,this.statements=n,this.name=i}isEquivalent(e){return(e instanceof t||e instanceof Hi)&&qt(this.params,e.params)&&qt(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,n){return e.visitFunctionExpr(this,n)}toDeclStmt(e,n){return new Hi(e,this.params,this.statements,this.type,n,this.sourceSpan)}clone(){return new t(this.params.map(e=>e.clone()),this.statements,this.type,this.sourceSpan,this.name)}},jr=class t extends ve{constructor(e,n,r,s){super(r,s),this.params=e,this.body=n}isEquivalent(e){return!(e instanceof t)||!qt(this.params,e.params)?!1:this.body instanceof ve&&e.body instanceof ve?this.body.isEquivalent(e.body):Array.isArray(this.body)&&Array.isArray(e.body)?qt(this.body,e.body):!1}isConstant(){return!1}visitExpression(e,n){return e.visitArrowFunctionExpr(this,n)}clone(){return new t(this.params.map(e=>e.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(e,n){return new st(e,this,Wt,n,this.sourceSpan)}},Ms=class t extends ve{constructor(e,n,r,s,i=!0){super(r||Bh,s),this.operator=e,this.expr=n,this.parens=i}isEquivalent(e){return e instanceof t&&this.operator===e.operator&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}visitExpression(e,n){return e.visitUnaryOperatorExpr(this,n)}clone(){return new t(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}},he=class t extends ve{constructor(e,n,r,s,i,o=!0){super(s||n.type,i),this.operator=e,this.rhs=r,this.parens=o,this.lhs=n}isEquivalent(e){return e instanceof t&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)}isConstant(){return!1}visitExpression(e,n){return e.visitBinaryOperatorExpr(this,n)}clone(){return new t(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan,this.parens)}},Lt=class t extends ve{constructor(e,n,r,s){super(r,s),this.receiver=e,this.name=n}get index(){return this.name}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,n){return e.visitReadPropExpr(this,n)}set(e){return new Ls(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},Zn=class t extends ve{constructor(e,n,r,s){super(r,s),this.receiver=e,this.index=n}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)}isConstant(){return!1}visitExpression(e,n){return e.visitReadKeyExpr(this,n)}set(e){return new Fi(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},Zt=class t extends ve{constructor(e,n,r){super(n,r),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof t&&qt(this.entries,e.entries)}visitExpression(e,n){return e.visitLiteralArrayExpr(this,n)}clone(){return new t(this.entries.map(e=>e.clone()),this.type,this.sourceSpan)}},Rs=class t{constructor(e,n,r){this.key=e,this.value=n,this.quoted=r}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}clone(){return new t(this.key,this.value.clone(),this.quoted)}},cn=class t extends ve{constructor(e,n,r){super(n,r),this.entries=e,this.valueType=null,n&&(this.valueType=n.valueType)}isEquivalent(e){return e instanceof t&&qt(this.entries,e.entries)}isConstant(){return this.entries.every(e=>e.value.isConstant())}visitExpression(e,n){return e.visitLiteralMapExpr(this,n)}clone(){let e=this.entries.map(n=>n.clone());return new t(e,this.type,this.sourceSpan)}};var Ui=new tt(null,null,null),KC=new tt(null,Wt,null),Ge;(function(t){t[t.None=0]="None",t[t.Final=1]="Final",t[t.Private=2]="Private",t[t.Exported=4]="Exported",t[t.Static=8]="Static"})(Ge||(Ge={}));var fl=class{constructor(e,n,r){this.text=e,this.multiline=n,this.trailingNewline=r}toString(){return this.multiline?` ${this.text} `:this.text}},ya=class extends fl{constructor(e){super("",!0,!0),this.tags=e}toString(){return sA(this.tags)}},Wr=class{constructor(e=Ge.None,n=null,r){this.modifiers=e,this.sourceSpan=n,this.leadingComments=r}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},st=class t extends Wr{constructor(e,n,r,s,i,o){super(s,i,o),this.name=e,this.value=n,this.type=r||n&&n.type||null}isEquivalent(e){return e instanceof t&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}visitStatement(e,n){return e.visitDeclareVarStmt(this,n)}},Hi=class t extends Wr{constructor(e,n,r,s,i,o,a){super(i,o,a),this.name=e,this.params=n,this.statements=r,this.type=s||null}isEquivalent(e){return e instanceof t&&qt(this.params,e.params)&&qt(this.statements,e.statements)}visitStatement(e,n){return e.visitDeclareFunctionStmt(this,n)}},Yt=class t extends Wr{constructor(e,n,r){super(Ge.None,n,r),this.expr=e}isEquivalent(e){return e instanceof t&&this.expr.isEquivalent(e.expr)}visitStatement(e,n){return e.visitExpressionStmt(this,n)}},wt=class t extends Wr{constructor(e,n=null,r){super(Ge.None,n,r),this.value=e}isEquivalent(e){return e instanceof t&&this.value.isEquivalent(e.value)}visitStatement(e,n){return e.visitReturnStmt(this,n)}},xa=class t extends Wr{constructor(e,n,r=[],s,i){super(Ge.None,s,i),this.condition=e,this.trueCase=n,this.falseCase=r}isEquivalent(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&qt(this.trueCase,e.trueCase)&&qt(this.falseCase,e.falseCase)}visitStatement(e,n){return e.visitIfStmt(this,n)}};function eA(t=[]){return new ya(t)}function te(t,e,n){return new Xt(t,e,n)}function U(t,e=null,n){return new Hr(t,null,e,n)}function et(t,e,n){return new zt(t,e,n)}function _u(t){return new qs(t)}function ge(t,e,n){return new Zt(t,e,n)}function dt(t,e=null){return new cn(t.map(n=>new Rs(n.key,n.value,n.quoted)),e,null)}function tA(t,e){return new Vi(t,e)}function ti(t,e,n,r,s){return new Hn(t,e,n,r,s)}function kn(t,e,n,r){return new jr(t,e,n,r)}function ku(t,e,n,r,s){return new xa(t,e,n,r,s)}function nA(t,e,n,r){return new Ea(t,e,n,r)}function w(t,e,n){return new tt(t,e,n)}function rA(t,e,n,r,s){return new wa(t,e,n,r,s)}function Nm(t){let e="";if(t.tagName&&(e+=` @${t.tagName}`),t.text){if(t.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+t.text.replace(/@/g,"\\@")}return e}function sA(t){if(t.length===0)return"";if(t.length===1&&t[0].tagName&&!t[0].text)return`*${Nm(t[0])} `;let e=`* `;for(let n of t)e+=" *",e+=Nm(n).replace(/\n/g,` * `),e+=` `;return e+=" ",e}var iA="_c",Dm=te("<unknown>"),oA={},aA=50,Sa=class t extends ve{constructor(e){super(e.type),this.resolved=e,this.shared=!1,this.original=e}visitExpression(e,n){return n===oA?this.original.visitExpression(e,n):this.resolved.visitExpression(e,n)}isEquivalent(e){return e instanceof t&&this.resolved.isEquivalent(e.resolved)}isConstant(){return!0}clone(){throw new Error("Not supported.")}fixup(e){this.resolved=e,this.shared=!0}},ba=class{constructor(e=!1){this.isClosureCompilerEnabled=e,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.sharedConstants=new Map,this._claimedNames=new Map,this.nextNameIndex=0}getConstLiteral(e,n){if(e instanceof tt&&!Pm(e)||e instanceof Sa)return e;let r=Is.INSTANCE.keyOf(e),s=this.literals.get(r),i=!1;if(s||(s=new Sa(e),this.literals.set(r,s),i=!0),!i&&!s.shared||i&&n){let o=this.freshName(),a,u;this.isClosureCompilerEnabled&&Pm(e)?(a=te(o).set(new Hn([],[new wt(e)])),u=te(o).callFn([])):(a=te(o).set(e),u=te(o)),this.statements.push(a.toDeclStmt(Wt,Ge.Final)),s.fixup(u)}return s}getSharedConstant(e,n){let r=e.keyOf(n);if(!this.sharedConstants.has(r)){let s=this.freshName();this.sharedConstants.set(r,te(s)),this.statements.push(e.toSharedConstantDeclaration(s,n))}return this.sharedConstants.get(r)}getLiteralFactory(e){if(e instanceof Zt){let n=e.entries.map(s=>s.isConstant()?s:Dm),r=Is.INSTANCE.keyOf(ge(n));return this._getLiteralFactory(r,e.entries,s=>ge(s))}else{let n=dt(e.entries.map(s=>({key:s.key,value:s.value.isConstant()?s.value:Dm,quoted:s.quoted}))),r=Is.INSTANCE.keyOf(n);return this._getLiteralFactory(r,e.entries.map(s=>s.value),s=>dt(s.map((i,o)=>({key:e.entries[o].key,value:i,quoted:e.entries[o].quoted}))))}}getSharedFunctionReference(e,n,r=!0){let s=e instanceof jr;for(let o of this.statements)if(s&&o instanceof st&&o.value?.isEquivalent(e)||!s&&o instanceof Hi&&e instanceof Hn&&e.isEquivalent(o))return te(o.name);let i=r?this.uniqueName(n):n;return this.statements.push(e instanceof Hn?e.toDeclStmt(i,Ge.Final):new st(i,e,Wt,Ge.Final,e.sourceSpan)),te(i)}_getLiteralFactory(e,n,r){let s=this.literalFactories.get(e),i=n.filter(o=>!o.isConstant());if(!s){let o=n.map((l,p)=>l.isConstant()?this.getConstLiteral(l,!0):te(`a${p}`)),a=o.filter(uA).map(l=>new ze(l.name,Co)),u=kn(a,r(o),Wt),c=this.freshName();this.statements.push(te(c).set(u).toDeclStmt(Wt,Ge.Final)),s=te(c),this.literalFactories.set(e,s)}return{literalFactory:s,literalFactoryArguments:i}}uniqueName(e,n=!0){let r=this._claimedNames.get(e)??0,s=r===0&&!n?`${e}`:`${e}${r}`;return this._claimedNames.set(e,r+1),s}freshName(){return this.uniqueName(iA)}},Tu=class Tu{keyOf(e){if(e instanceof tt&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof tt)return String(e.value);if(e instanceof Zt){let n=[];for(let r of e.entries)n.push(this.keyOf(r));return`[${n.join(",")}]`}else if(e instanceof cn){let n=[];for(let r of e.entries){let s=r.key;r.quoted&&(s=`"${s}"`),n.push(s+":"+this.keyOf(r.value))}return`{${n.join(",")}}`}else{if(e instanceof Hr)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof Xt)return`read(${e.name})`;if(e instanceof qs)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};Tu.INSTANCE=new Tu;var Is=Tu;function uA(t){return t instanceof Xt}function Pm(t){return t instanceof tt&&typeof t.value=="string"&&t.value.length>=aA}var v="@angular/core",g=class g{};g.NEW_METHOD="factory",g.TRANSFORM_METHOD="transform",g.PATCH_DEPS="patchedDeps",g.core={name:null,moduleName:v},g.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:v},g.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:v},g.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:v},g.element={name:"\u0275\u0275element",moduleName:v},g.elementStart={name:"\u0275\u0275elementStart",moduleName:v},g.elementEnd={name:"\u0275\u0275elementEnd",moduleName:v},g.advance={name:"\u0275\u0275advance",moduleName:v},g.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:v},g.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:v},g.attribute={name:"\u0275\u0275attribute",moduleName:v},g.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:v},g.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:v},g.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:v},g.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:v},g.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:v},g.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:v},g.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:v},g.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:v},g.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:v},g.classProp={name:"\u0275\u0275classProp",moduleName:v},g.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:v},g.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:v},g.elementContainer={name:"\u0275\u0275elementContainer",moduleName:v},g.styleMap={name:"\u0275\u0275styleMap",moduleName:v},g.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:v},g.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:v},g.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:v},g.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:v},g.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:v},g.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:v},g.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:v},g.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:v},g.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:v},g.classMap={name:"\u0275\u0275classMap",moduleName:v},g.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:v},g.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:v},g.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:v},g.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:v},g.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:v},g.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:v},g.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:v},g.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:v},g.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:v},g.styleProp={name:"\u0275\u0275styleProp",moduleName:v},g.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:v},g.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:v},g.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:v},g.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:v},g.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:v},g.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:v},g.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:v},g.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:v},g.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:v},g.nextContext={name:"\u0275\u0275nextContext",moduleName:v},g.resetView={name:"\u0275\u0275resetView",moduleName:v},g.templateCreate={name:"\u0275\u0275template",moduleName:v},g.defer={name:"\u0275\u0275defer",moduleName:v},g.deferWhen={name:"\u0275\u0275deferWhen",moduleName:v},g.deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:v},g.deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:v},g.deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:v},g.deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:v},g.deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:v},g.deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:v},g.deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:v},g.deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:v},g.deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:v},g.deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:v},g.deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:v},g.deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:v},g.deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:v},g.deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:v},g.conditional={name:"\u0275\u0275conditional",moduleName:v},g.repeater={name:"\u0275\u0275repeater",moduleName:v},g.repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:v},g.repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:v},g.repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:v},g.componentInstance={name:"\u0275\u0275componentInstance",moduleName:v},g.text={name:"\u0275\u0275text",moduleName:v},g.enableBindings={name:"\u0275\u0275enableBindings",moduleName:v},g.disableBindings={name:"\u0275\u0275disableBindings",moduleName:v},g.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:v},g.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:v},g.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:v},g.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:v},g.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:v},g.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:v},g.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:v},g.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:v},g.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:v},g.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:v},g.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:v},g.restoreView={name:"\u0275\u0275restoreView",moduleName:v},g.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:v},g.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:v},g.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:v},g.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:v},g.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:v},g.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:v},g.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:v},g.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:v},g.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:v},g.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:v},g.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:v},g.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:v},g.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:v},g.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:v},g.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:v},g.hostProperty={name:"\u0275\u0275hostProperty",moduleName:v},g.property={name:"\u0275\u0275property",moduleName:v},g.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:v},g.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:v},g.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:v},g.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:v},g.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:v},g.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:v},g.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:v},g.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:v},g.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:v},g.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:v},g.i18n={name:"\u0275\u0275i18n",moduleName:v},g.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:v},g.i18nExp={name:"\u0275\u0275i18nExp",moduleName:v},g.i18nStart={name:"\u0275\u0275i18nStart",moduleName:v},g.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:v},g.i18nApply={name:"\u0275\u0275i18nApply",moduleName:v},g.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:v},g.pipe={name:"\u0275\u0275pipe",moduleName:v},g.projection={name:"\u0275\u0275projection",moduleName:v},g.projectionDef={name:"\u0275\u0275projectionDef",moduleName:v},g.reference={name:"\u0275\u0275reference",moduleName:v},g.inject={name:"\u0275\u0275inject",moduleName:v},g.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:v},g.directiveInject={name:"\u0275\u0275directiveInject",moduleName:v},g.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:v},g.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:v},g.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:v},g.forwardRef={name:"forwardRef",moduleName:v},g.resolveForwardRef={name:"resolveForwardRef",moduleName:v},g.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:v},g.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:v},g.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:v},g.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:v},g.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:v},g.resolveBody={name:"\u0275\u0275resolveBody",moduleName:v},g.getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:v},g.defineComponent={name:"\u0275\u0275defineComponent",moduleName:v},g.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:v},g.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:v},g.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:v},g.ViewEncapsulation={name:"ViewEncapsulation",moduleName:v},g.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:v},g.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:v},g.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:v},g.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:v},g.defineDirective={name:"\u0275\u0275defineDirective",moduleName:v},g.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:v},g.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:v},g.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:v},g.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:v},g.defineInjector={name:"\u0275\u0275defineInjector",moduleName:v},g.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:v},g.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:v},g.ModuleWithProviders={name:"ModuleWithProviders",moduleName:v},g.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:v},g.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:v},g.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:v},g.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:v},g.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:v},g.definePipe={name:"\u0275\u0275definePipe",moduleName:v},g.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:v},g.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:v},g.declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:v},g.setClassMetadata={name:"\u0275setClassMetadata",moduleName:v},g.setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:v},g.setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:v},g.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:v},g.viewQuery={name:"\u0275\u0275viewQuery",moduleName:v},g.loadQuery={name:"\u0275\u0275loadQuery",moduleName:v},g.contentQuery={name:"\u0275\u0275contentQuery",moduleName:v},g.viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:v},g.contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:v},g.queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:v},g.twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:v},g.twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:v},g.twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:v},g.declareLet={name:"\u0275\u0275declareLet",moduleName:v},g.storeLet={name:"\u0275\u0275storeLet",moduleName:v},g.readContextLet={name:"\u0275\u0275readContextLet",moduleName:v},g.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:v},g.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:v},g.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:v},g.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:v},g.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:v},g.HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:v},g.InputTransformsFeatureFeature={name:"\u0275\u0275InputTransformsFeature",moduleName:v},g.listener={name:"\u0275\u0275listener",moduleName:v},g.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:v},g.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:v},g.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:v},g.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:v},g.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:v},g.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:v},g.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:v},g.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:v},g.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:v},g.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:v},g.InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:v},g.UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:v},g.unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:v};var m=g,cA=/-+([a-z0-9])/g;function lA(t){return t.replace(cA,(...e)=>e[1].toUpperCase())}function hA(t,e){return xv(t,":",e)}function pA(t,e){return xv(t,".",e)}function xv(t,e,n){let r=t.indexOf(e);return r==-1?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function fA(t){let e=[];for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);if(r>=55296&&r<=56319&&t.length>n+1){let s=t.charCodeAt(n+1);s>=56320&&s<=57343&&(n++,r=(r-55296<<10)+s-56320+65536)}r<=127?e.push(r):r<=2047?e.push(r>>6&31|192,r&63|128):r<=65535?e.push(r>>12|224,r>>6&63|128,r&63|128):r<=2097151&&e.push(r>>18&7|240,r>>12&63|128,r>>6&63|128,r&63|128)}return e}function Sv(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Sv).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;if(!t.toString)return"object";let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` `);return n===-1?e:e.substring(0,n)}var dl=class{constructor(e){this.full=e;let n=e.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},Ni=globalThis;var dA=3,mA="# sourceMappingURL=data:application/json;base64,",ml=class{constructor(e=null){this.file=e,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}addSource(e,n=null){return this.sourcesContent.has(e)||this.sourcesContent.set(e,n),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(e,n,r,s){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(n!=null&&!this.sourcesContent.has(n))throw new Error(`Unknown source file "${n}"`);if(e==null)throw new Error("The column in the generated code must be provided");if(e<this.lastCol0)throw new Error("Mapping should be added in output order");if(n&&(r==null||s==null))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:n,sourceLine0:r,sourceCol0:s}),this}get currentLine(){return this.lines.slice(-1)[0]}toJSON(){if(!this.hasMappings)return null;let e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach((c,l)=>{e.set(c,l),n.push(c),r.push(this.sourcesContent.get(c)||null)});let s="",i=0,o=0,a=0,u=0;return this.lines.forEach(c=>{i=0,s+=c.map(l=>{let p=ra(l.col0-i);return i=l.col0,l.sourceUrl!=null&&(p+=ra(e.get(l.sourceUrl)-o),o=e.get(l.sourceUrl),p+=ra(l.sourceLine0-a),a=l.sourceLine0,p+=ra(l.sourceCol0-u),u=l.sourceCol0),p}).join(","),s+=";"}),s=s.slice(0,-1),{file:this.file||"",version:dA,sourceRoot:"",sources:n,sourcesContent:r,mappings:s}}toJsComment(){return this.hasMappings?"//"+mA+gA(JSON.stringify(this,null,0)):""}};function gA(t){let e="",n=fA(t);for(let r=0;r<n.length;){let s=n[r++],i=r<n.length?n[r++]:null,o=r<n.length?n[r++]:null;e+=_i(s>>2),e+=_i((s&3)<<4|(i===null?0:i>>4)),e+=i===null?"=":_i((i&15)<<2|(o===null?0:o>>6)),e+=i===null||o===null?"=":_i(o&63)}return e}function ra(t){t=t<0?(-t<<1)+1:t<<1;let e="";do{let n=t&31;t=t>>5,t>0&&(n=n|32),e+=_i(n)}while(t>0);return e}var vA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function _i(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return vA[t]}var EA=/'|\\|\n|\r|\$/g,wA=/^[$A-Z_][0-9A-Z_$]*$/i,gl=" ",Ta=class{constructor(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]}},vl=class t{static createRoot(){return new t(0)}constructor(e){this._indent=e,this._lines=[new Ta(e)]}get _currentLine(){return this._lines[this._lines.length-1]}println(e,n=""){this.print(e||null,n,!0)}lineIsEmpty(){return this._currentLine.parts.length===0}lineLength(){return this._currentLine.indent*gl.length+this._currentLine.partsLength}print(e,n,r=!1){n.length>0&&(this._currentLine.parts.push(n),this._currentLine.partsLength+=n.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),r&&this._lines.push(new Ta(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}toSource(){return this.sourceLines.map(e=>e.parts.length>0?qm(e.indent)+e.parts.join(""):"").join(` `)}toSourceMapGenerator(e,n=0){let r=new ml(e),s=!1,i=()=>{s||(r.addSource(e," ").addMapping(0,e,0,0),s=!0)};for(let o=0;o<n;o++)r.addLine(),i();return this.sourceLines.forEach((o,a)=>{r.addLine();let u=o.srcSpans,c=o.parts,l=o.indent*gl.length,p=0;for(;p<u.length&&!u[p];)l+=c[p].length,p++;for(p<u.length&&a===0&&l===0?s=!0:i();p<u.length;){let f=u[p],E=f.start.file,y=f.start.line,I=f.start.col;for(r.addSource(E.url,E.content).addMapping(l,E.url,y,I),l+=c[p].length,p++;p<u.length&&(f===u[p]||!u[p]);)l+=c[p].length,p++}}),r}spanOf(e,n){let r=this._lines[e];if(r){let s=n-qm(r.indent).length;for(let i=0;i<r.parts.length;i++){let o=r.parts[i];if(o.length>s)return r.srcSpans[i];s-=o.length}}return null}get sourceLines(){return this._lines.length&&this._lines[this._lines.length-1].parts.length===0?this._lines.slice(0,-1):this._lines}},El=class{constructor(e){this._escapeDollarInStrings=e}printLeadingComments(e,n){if(e.leadingComments!==void 0)for(let r of e.leadingComments)r instanceof ya?n.print(e,`/*${r.toString()}*/`,r.trailingNewline):r.multiline?n.print(e,`/* ${r.text} */`,r.trailingNewline):r.text.split(` `).forEach(s=>{n.println(e,`// ${s}`)})}visitExpressionStmt(e,n){return this.printLeadingComments(e,n),e.expr.visitExpression(this,n),n.println(e,";"),null}visitReturnStmt(e,n){return this.printLeadingComments(e,n),n.print(e,"return "),e.value.visitExpression(this,n),n.println(e,";"),null}visitIfStmt(e,n){this.printLeadingComments(e,n),n.print(e,"if ("),e.condition.visitExpression(this,n),n.print(e,") {");let r=e.falseCase!=null&&e.falseCase.length>0;return e.trueCase.length<=1&&!r?(n.print(e," "),this.visitAllStatements(e.trueCase,n),n.removeEmptyLastLine(),n.print(e," ")):(n.println(),n.incIndent(),this.visitAllStatements(e.trueCase,n),n.decIndent(),r&&(n.println(e,"} else {"),n.incIndent(),this.visitAllStatements(e.falseCase,n),n.decIndent())),n.println(e,"}"),null}visitWriteVarExpr(e,n){let r=n.lineIsEmpty();return r||n.print(e,"("),n.print(e,`${e.name} = `),e.value.visitExpression(this,n),r||n.print(e,")"),null}visitWriteKeyExpr(e,n){let r=n.lineIsEmpty();return r||n.print(e,"("),e.receiver.visitExpression(this,n),n.print(e,"["),e.index.visitExpression(this,n),n.print(e,"] = "),e.value.visitExpression(this,n),r||n.print(e,")"),null}visitWritePropExpr(e,n){let r=n.lineIsEmpty();return r||n.print(e,"("),e.receiver.visitExpression(this,n),n.print(e,`.${e.name} = `),e.value.visitExpression(this,n),r||n.print(e,")"),null}visitInvokeFunctionExpr(e,n){let r=e.fn instanceof jr;return r&&n.print(e.fn,"("),e.fn.visitExpression(this,n),r&&n.print(e.fn,")"),n.print(e,"("),this.visitAllExpressions(e.args,n,","),n.print(e,")"),null}visitTaggedTemplateExpr(e,n){e.tag.visitExpression(this,n),n.print(e,"`"+e.template.elements[0].rawText);for(let r=1;r<e.template.elements.length;r++)n.print(e,"${"),e.template.expressions[r-1].visitExpression(this,n),n.print(e,`}${e.template.elements[r].rawText}`);return n.print(e,"`"),null}visitWrappedNodeExpr(e,n){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")}visitTypeofExpr(e,n){n.print(e,"typeof "),e.expr.visitExpression(this,n)}visitReadVarExpr(e,n){return n.print(e,e.name),null}visitInstantiateExpr(e,n){return n.print(e,"new "),e.classExpr.visitExpression(this,n),n.print(e,"("),this.visitAllExpressions(e.args,n,","),n.print(e,")"),null}visitLiteralExpr(e,n){let r=e.value;return typeof r=="string"?n.print(e,Lr(r,this._escapeDollarInStrings)):n.print(e,`${r}`),null}visitLocalizedString(e,n){let r=e.serializeI18nHead();n.print(e,"$localize `"+r.raw);for(let s=1;s<e.messageParts.length;s++)n.print(e,"${"),e.expressions[s-1].visitExpression(this,n),n.print(e,`}${e.serializeI18nTemplatePart(s).raw}`);return n.print(e,"`"),null}visitConditionalExpr(e,n){return n.print(e,"("),e.condition.visitExpression(this,n),n.print(e,"? "),e.trueCase.visitExpression(this,n),n.print(e,": "),e.falseCase.visitExpression(this,n),n.print(e,")"),null}visitDynamicImportExpr(e,n){n.print(e,`import(${e.url})`)}visitNotExpr(e,n){return n.print(e,"!"),e.condition.visitExpression(this,n),null}visitUnaryOperatorExpr(e,n){let r;switch(e.operator){case Ps.Plus:r="+";break;case Ps.Minus:r="-";break;default:throw new Error(`Unknown operator ${e.operator}`)}return e.parens&&n.print(e,"("),n.print(e,r),e.expr.visitExpression(this,n),e.parens&&n.print(e,")"),null}visitBinaryOperatorExpr(e,n){let r;switch(e.operator){case B.Equals:r="==";break;case B.Identical:r="===";break;case B.NotEquals:r="!=";break;case B.NotIdentical:r="!==";break;case B.And:r="&&";break;case B.BitwiseOr:r="|";break;case B.BitwiseAnd:r="&";break;case B.Or:r="||";break;case B.Plus:r="+";break;case B.Minus:r="-";break;case B.Divide:r="/";break;case B.Multiply:r="*";break;case B.Modulo:r="%";break;case B.Lower:r="<";break;case B.LowerEquals:r="<=";break;case B.Bigger:r=">";break;case B.BiggerEquals:r=">=";break;case B.NullishCoalesce:r="??";break;default:throw new Error(`Unknown operator ${e.operator}`)}return e.parens&&n.print(e,"("),e.lhs.visitExpression(this,n),n.print(e,` ${r} `),e.rhs.visitExpression(this,n),e.parens&&n.print(e,")"),null}visitReadPropExpr(e,n){return e.receiver.visitExpression(this,n),n.print(e,"."),n.print(e,e.name),null}visitReadKeyExpr(e,n){return e.receiver.visitExpression(this,n),n.print(e,"["),e.index.visitExpression(this,n),n.print(e,"]"),null}visitLiteralArrayExpr(e,n){return n.print(e,"["),this.visitAllExpressions(e.entries,n,","),n.print(e,"]"),null}visitLiteralMapExpr(e,n){return n.print(e,"{"),this.visitAllObjects(r=>{n.print(e,`${Lr(r.key,this._escapeDollarInStrings,r.quoted)}:`),r.value.visitExpression(this,n)},e.entries,n,","),n.print(e,"}"),null}visitCommaExpr(e,n){return n.print(e,"("),this.visitAllExpressions(e.parts,n,","),n.print(e,")"),null}visitAllExpressions(e,n,r){this.visitAllObjects(s=>s.visitExpression(this,n),e,n,r)}visitAllObjects(e,n,r,s){let i=!1;for(let o=0;o<n.length;o++)o>0&&(r.lineLength()>80?(r.print(null,s,!0),i||(r.incIndent(),r.incIndent(),i=!0)):r.print(null,s,!1)),e(n[o]);i&&(r.decIndent(),r.decIndent())}visitAllStatements(e,n){e.forEach(r=>r.visitStatement(this,n))}};function Lr(t,e,n=!0){if(t==null)return null;let r=t.replace(EA,(...i)=>i[0]=="$"?e?"\\$":"$":i[0]==` `?"\\n":i[0]=="\r"?"\\r":`\\${i[0]}`);return n||!wA.test(r)?`'${r}'`:r}function qm(t){let e="";for(let n=0;n<t;n++)e+=gl;return e}function Iu(t,e){if(e===0)return et(t);let n=[];for(let r=0;r<e;r++)n.push(Co);return et(t,void 0,n)}function yA(t,e){let n=Lr(e,!1,!1);return n!==e?`${t}[${n}]`:`${t}.${e}`}function xA(t){return SA("ngJitMode",t)}function SA(t,e){let n=new Hr({name:t,moduleName:null}),r=new he(B.Identical,new qs(n),w("undefined")),s=new he(B.Or,r,n,void 0,void 0,!0);return new he(B.And,s,e)}function Ue(t){let e=new se(t);return{value:e,type:e}}function Mr(t,e){let n=ge(t.map(r=>r.value));return e?kn([],n):n}function Fh(t,e){return{expression:t,forwardRef:e}}function bA({expression:t,forwardRef:e}){switch(e){case 0:case 1:return t;case 2:return TA(t)}}function TA(t){return U(m.forwardRef).callFn([kn([],t)])}var ji;(function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"})(ji||(ji={}));var xn;(function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"})(xn||(xn={}));function Pr(t){let e=te("__ngFactoryType__"),n=null,r=Mm(t)?e:new he(B.Or,e,t.type.value),s=null;t.deps!==null?t.deps!=="invalid"&&(s=new $i(r,Lm(t.deps,t.target))):(n=te(`\u0275${t.name}_BaseFactory`),s=n.callFn([r]));let i=[],o=null;function a(c){let l=te("__ngConditionalFactory__");i.push(l.set(Ui).toDeclStmt());let p=s!==null?l.set(s).toStmt():U(m.invalidFactory).callFn([]).toStmt();return i.push(ku(e,[p],[l.set(c).toStmt()])),l}if(Mm(t)){let c=Lm(t.delegateDeps,t.target),l=new(t.delegateType===ji.Class?$i:ft)(t.delegate,c);o=a(l)}else IA(t)?o=a(t.expression):o=s;if(o===null)i.push(U(m.invalidFactory).callFn([]).toStmt());else if(n!==null){let c=U(m.getInheritedFactory).callFn([t.type.value]),l=new he(B.Or,n,n.set(c));i.push(new wt(l.callFn([r])))}else i.push(new wt(o));let u=ti([new ze(e.name,Co)],i,Wt,void 0,`${t.name}_Factory`);return n!==null&&(u=kn([],[new st(n.name),new wt(u)]).callFn([],void 0,!0)),{expression:u,statements:[],type:CA(t)}}function CA(t){let e=t.deps!==null&&t.deps!=="invalid"?_A(t.deps):_n;return et(U(m.FactoryDeclaration,[Iu(t.type.type,t.typeArgumentCount),e]))}function Lm(t,e){return t.map((n,r)=>AA(n,e,r))}function AA(t,e,n){if(t.token===null)return U(m.invalidFactoryDep).callFn([w(n)]);if(t.attributeNameType===null){let r=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0)|(e===xn.Pipe?16:0),s=r!==0||t.optional?w(r):null,i=[t.token];s&&i.push(s);let o=NA(e);return U(o).callFn(i)}else return U(m.injectAttribute).callFn([t.token])}function _A(t){let e=!1,n=t.map(r=>{let s=kA(r);return s!==null?(e=!0,s):w(null)});return e?et(ge(n)):_n}function kA(t){let e=[];return t.attributeNameType!==null&&e.push({key:"attribute",value:t.attributeNameType,quoted:!1}),t.optional&&e.push({key:"optional",value:w(!0),quoted:!1}),t.host&&e.push({key:"host",value:w(!0),quoted:!1}),t.self&&e.push({key:"self",value:w(!0),quoted:!1}),t.skipSelf&&e.push({key:"skipSelf",value:w(!0),quoted:!1}),e.length>0?dt(e):null}function Mm(t){return t.delegateType!==void 0}function IA(t){return t.expression!==void 0}function NA(t){switch(t){case xn.Component:case xn.Directive:case xn.Pipe:return m.directiveInject;case xn.NgModule:case xn.Injectable:default:return m.inject}}var Wi=class{constructor(e,n,r,s){this.input=n,this.errLocation=r,this.ctxLocation=s,this.message=`Parser Error: ${e} ${r} [${n}] in ${s}`}},Gr=class{constructor(e,n){this.start=e,this.end=n}toAbsolute(e){return new Nt(e+this.start,e+this.end)}},Le=class{constructor(e,n){this.span=e,this.sourceSpan=n}toString(){return"AST"}},Os=class extends Le{constructor(e,n,r){super(e,n),this.nameSpan=r}},lt=class extends Le{visit(e,n=null){}},jn=class extends Le{visit(e,n=null){return e.visitImplicitReceiver(this,n)}},Br=class extends jn{visit(e,n=null){return e.visitThisReceiver?.(this,n)}},Bs=class extends Le{constructor(e,n,r){super(e,n),this.expressions=r}visit(e,n=null){return e.visitChain(this,n)}},Gi=class extends Le{constructor(e,n,r,s,i){super(e,n),this.condition=r,this.trueExp=s,this.falseExp=i}visit(e,n=null){return e.visitConditional(this,n)}},zr=class extends Os{constructor(e,n,r,s,i){super(e,n,r),this.receiver=s,this.name=i}visit(e,n=null){return e.visitPropertyRead(this,n)}},Ca=class extends Os{constructor(e,n,r,s,i,o){super(e,n,r),this.receiver=s,this.name=i,this.value=o}visit(e,n=null){return e.visitPropertyWrite(this,n)}},Aa=class extends Os{constructor(e,n,r,s,i){super(e,n,r),this.receiver=s,this.name=i}visit(e,n=null){return e.visitSafePropertyRead(this,n)}},Fs=class extends Le{constructor(e,n,r,s){super(e,n),this.receiver=r,this.key=s}visit(e,n=null){return e.visitKeyedRead(this,n)}},_a=class extends Le{constructor(e,n,r,s){super(e,n),this.receiver=r,this.key=s}visit(e,n=null){return e.visitSafeKeyedRead(this,n)}},ka=class extends Le{constructor(e,n,r,s,i){super(e,n),this.receiver=r,this.key=s,this.value=i}visit(e,n=null){return e.visitKeyedWrite(this,n)}},Ia=class extends Os{constructor(e,n,r,s,i,o){super(e,n,o),this.exp=r,this.name=s,this.args=i}visit(e,n=null){return e.visitPipe(this,n)}},Vt=class extends Le{constructor(e,n,r){super(e,n),this.value=r}visit(e,n=null){return e.visitLiteralPrimitive(this,n)}},Na=class extends Le{constructor(e,n,r){super(e,n),this.expressions=r}visit(e,n=null){return e.visitLiteralArray(this,n)}},Da=class extends Le{constructor(e,n,r,s){super(e,n),this.keys=r,this.values=s}visit(e,n=null){return e.visitLiteralMap(this,n)}},Xr=class extends Le{constructor(e,n,r,s){super(e,n),this.strings=r,this.expressions=s}visit(e,n=null){return e.visitInterpolation(this,n)}},$t=class extends Le{constructor(e,n,r,s,i){super(e,n),this.operation=r,this.left=s,this.right=i}visit(e,n=null){return e.visitBinary(this,n)}},zi=class t extends $t{static createMinus(e,n,r){return new t(e,n,"-",r,"-",new Vt(e,n,0),r)}static createPlus(e,n,r){return new t(e,n,"+",r,"-",r,new Vt(e,n,0))}constructor(e,n,r,s,i,o,a){super(e,n,i,o,a),this.operator=r,this.expr=s,this.left=null,this.right=null,this.operation=null}visit(e,n=null){return e.visitUnary!==void 0?e.visitUnary(this,n):e.visitBinary(this,n)}},Xi=class extends Le{constructor(e,n,r){super(e,n),this.expression=r}visit(e,n=null){return e.visitPrefixNot(this,n)}},Zi=class extends Le{constructor(e,n,r){super(e,n),this.expression=r}visit(e,n=null){return e.visitNonNullAssert(this,n)}},Pa=class extends Le{constructor(e,n,r,s,i){super(e,n),this.receiver=r,this.args=s,this.argumentSpan=i}visit(e,n=null){return e.visitCall(this,n)}},qa=class extends Le{constructor(e,n,r,s,i){super(e,n),this.receiver=r,this.args=s,this.argumentSpan=i}visit(e,n=null){return e.visitSafeCall(this,n)}},Nt=class{constructor(e,n){this.start=e,this.end=n}},Ht=class extends Le{constructor(e,n,r,s,i){super(new Gr(0,n===null?0:n.length),new Nt(s,n===null?s:s+n.length)),this.ast=e,this.source=n,this.location=r,this.errors=i}visit(e,n=null){return e.visitASTWithSource?e.visitASTWithSource(this,n):this.ast.visit(e,n)}toString(){return`${this.source} in ${this.location}`}},Yi=class{constructor(e,n,r){this.sourceSpan=e,this.key=n,this.value=r}},wl=class{constructor(e,n,r){this.sourceSpan=e,this.key=n,this.value=r}},La=class{visit(e,n){e.visit(this,n)}visitUnary(e,n){this.visit(e.expr,n)}visitBinary(e,n){this.visit(e.left,n),this.visit(e.right,n)}visitChain(e,n){this.visitAll(e.expressions,n)}visitConditional(e,n){this.visit(e.condition,n),this.visit(e.trueExp,n),this.visit(e.falseExp,n)}visitPipe(e,n){this.visit(e.exp,n),this.visitAll(e.args,n)}visitImplicitReceiver(e,n){}visitThisReceiver(e,n){}visitInterpolation(e,n){this.visitAll(e.expressions,n)}visitKeyedRead(e,n){this.visit(e.receiver,n),this.visit(e.key,n)}visitKeyedWrite(e,n){this.visit(e.receiver,n),this.visit(e.key,n),this.visit(e.value,n)}visitLiteralArray(e,n){this.visitAll(e.expressions,n)}visitLiteralMap(e,n){this.visitAll(e.values,n)}visitLiteralPrimitive(e,n){}visitPrefixNot(e,n){this.visit(e.expression,n)}visitNonNullAssert(e,n){this.visit(e.expression,n)}visitPropertyRead(e,n){this.visit(e.receiver,n)}visitPropertyWrite(e,n){this.visit(e.receiver,n),this.visit(e.value,n)}visitSafePropertyRead(e,n){this.visit(e.receiver,n)}visitSafeKeyedRead(e,n){this.visit(e.receiver,n),this.visit(e.key,n)}visitCall(e,n){this.visit(e.receiver,n),this.visitAll(e.args,n)}visitSafeCall(e,n){this.visit(e.receiver,n),this.visitAll(e.args,n)}visitAll(e,n){for(let r of e)this.visit(r,n)}};var Di=class{constructor(e,n,r,s,i,o){this.name=e,this.expression=n,this.type=r,this.sourceSpan=s,this.keySpan=i,this.valueSpan=o,this.isLiteral=this.type===Rn.LITERAL_ATTR,this.isAnimation=this.type===Rn.ANIMATION}},Rn;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.ANIMATION=2]="ANIMATION",t[t.TWO_WAY=3]="TWO_WAY"})(Rn||(Rn={}));var Dt;(function(t){t[t.Regular=0]="Regular",t[t.Animation=1]="Animation",t[t.TwoWay=2]="TwoWay"})(Dt||(Dt={}));var Ma=class{constructor(e,n,r,s,i,o,a){this.name=e,this.targetOrPhase=n,this.type=r,this.handler=s,this.sourceSpan=i,this.handlerSpan=o,this.keySpan=a}},yl=class{constructor(e,n,r,s,i){this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}},Se;(function(t){t[t.Property=0]="Property",t[t.Attribute=1]="Attribute",t[t.Class=2]="Class",t[t.Style=3]="Style",t[t.Animation=4]="Animation",t[t.TwoWay=5]="TwoWay"})(Se||(Se={}));var Ra=class{constructor(e,n,r,s,i,o,a,u){this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=u}},an;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(an||(an={}));function ln(t,e=!0){if(t[0]!=":")return[null,t];let n=t.indexOf(":",1);if(n===-1){if(e)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,n),t.slice(n+1)]}function Rm(t){return ln(t)[1]==="ng-container"}function xl(t){return ln(t)[1]==="ng-content"}function DA(t){return ln(t)[1]==="ng-template"}function Sl(t){return t===null?null:ln(t)[0]}function bl(t,e){return t?`:${t}:${e}`:e}var $s=class{constructor(e,n){this.value=e,this.sourceSpan=n}visit(e){throw new Error("visit() not implemented for Comment")}},Fn=class{constructor(e,n){this.value=e,this.sourceSpan=n}visit(e){return e.visitText(this)}},Vs=class{constructor(e,n,r){this.value=e,this.sourceSpan=n,this.i18n=r}visit(e){return e.visitBoundText(this)}},Us=class{constructor(e,n,r,s,i,o){this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i,this.i18n=o}visit(e){return e.visitTextAttribute(this)}},Tl=class t{constructor(e,n,r,s,i,o,a,u,c){this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=u,this.i18n=c}static fromBoundElementProperty(e,n){if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${e.name}: ${e.sourceSpan}`);return new t(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,n)}visit(e){return e.visitBoundAttribute(this)}},Cl=class t{constructor(e,n,r,s,i,o,a,u){this.name=e,this.type=n,this.handler=r,this.target=s,this.phase=i,this.sourceSpan=o,this.handlerSpan=a,this.keySpan=u}static fromParsedEvent(e){let n=e.type===Dt.Regular?e.targetOrPhase:null,r=e.type===Dt.Animation?e.targetOrPhase:null;if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${e.name}: ${e.sourceSpan}`);return new t(e.name,e.type,e.handler,n,r,e.sourceSpan,e.handlerSpan,e.keySpan)}visit(e){return e.visitBoundEvent(this)}},Qt=class{constructor(e,n,r,s,i,o,a,u,c,l){this.name=e,this.attributes=n,this.inputs=r,this.outputs=s,this.children=i,this.references=o,this.sourceSpan=a,this.startSourceSpan=u,this.endSourceSpan=c,this.i18n=l}visit(e){return e.visitElement(this)}},Yn=class{constructor(e,n,r,s){this.nameSpan=e,this.sourceSpan=n,this.prefetchSpan=r,this.whenOrOnSourceSpan=s}visit(e){return e.visitDeferredTrigger(this)}},Al=class extends Yn{constructor(e,n,r,s){super(null,n,r,s),this.value=e}},_l=class extends Yn{},kl=class extends Yn{},Oa=class extends Yn{constructor(e,n,r,s,i){super(n,r,s,i),this.reference=e}},Il=class extends Yn{constructor(e,n,r,s,i){super(n,r,s,i),this.delay=e}},Ba=class extends Yn{constructor(e,n,r,s,i){super(n,r,s,i),this.reference=e}},Fa=class extends Yn{constructor(e,n,r,s,i){super(n,r,s,i),this.reference=e}},Jt=class{constructor(e,n,r,s){this.nameSpan=e,this.sourceSpan=n,this.startSourceSpan=r,this.endSourceSpan=s}},Qi=class extends Jt{constructor(e,n,r,s,i,o,a){super(r,s,i,o),this.children=e,this.minimumTime=n,this.i18n=a}visit(e){return e.visitDeferredBlockPlaceholder(this)}},Ji=class extends Jt{constructor(e,n,r,s,i,o,a,u){super(s,i,o,a),this.children=e,this.afterTime=n,this.minimumTime=r,this.i18n=u}visit(e){return e.visitDeferredBlockLoading(this)}},Ki=class extends Jt{constructor(e,n,r,s,i,o){super(n,r,s,i),this.children=e,this.i18n=o}visit(e){return e.visitDeferredBlockError(this)}},Zr=class extends Jt{constructor(e,n,r,s,i,o,a,u,c,l,p,f){super(a,u,l,p),this.children=e,this.placeholder=s,this.loading=i,this.error=o,this.mainBlockSpan=c,this.i18n=f,this.triggers=n,this.prefetchTriggers=r,this.definedTriggers=Object.keys(n),this.definedPrefetchTriggers=Object.keys(r)}visit(e){return e.visitDeferredBlock(this)}visitAll(e){this.visitTriggers(this.definedTriggers,this.triggers,e),this.visitTriggers(this.definedPrefetchTriggers,this.prefetchTriggers,e),Bc(e,this.children);let n=[this.placeholder,this.loading,this.error].filter(r=>r!==null);Bc(e,n)}visitTriggers(e,n,r){Bc(r,e.map(s=>n[s]))}},$a=class extends Jt{constructor(e,n,r,s,i,o,a){super(a,s,i,o),this.expression=e,this.cases=n,this.unknownBlocks=r}visit(e){return e.visitSwitchBlock(this)}},eo=class extends Jt{constructor(e,n,r,s,i,o,a){super(o,r,s,i),this.expression=e,this.children=n,this.i18n=a}visit(e){return e.visitSwitchBlockCase(this)}},Hs=class extends Jt{constructor(e,n,r,s,i,o,a,u,c,l,p,f,E){super(f,u,l,p),this.item=e,this.expression=n,this.trackBy=r,this.trackKeywordSpan=s,this.contextVariables=i,this.children=o,this.empty=a,this.mainBlockSpan=c,this.i18n=E}visit(e){return e.visitForLoopBlock(this)}},to=class extends Jt{constructor(e,n,r,s,i,o){super(i,n,r,s),this.children=e,this.i18n=o}visit(e){return e.visitForLoopBlockEmpty(this)}},Va=class extends Jt{constructor(e,n,r,s,i){super(i,n,r,s),this.branches=e}visit(e){return e.visitIfBlock(this)}},Fr=class extends Jt{constructor(e,n,r,s,i,o,a,u){super(a,s,i,o),this.expression=e,this.children=n,this.expressionAlias=r,this.i18n=u}visit(e){return e.visitIfBlockBranch(this)}},Ua=class{constructor(e,n,r){this.name=e,this.sourceSpan=n,this.nameSpan=r}visit(e){return e.visitUnknownBlock(this)}},no=class{constructor(e,n,r,s,i){this.name=e,this.value=n,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=i}visit(e){return e.visitLetDeclaration(this)}},Pt=class{constructor(e,n,r,s,i,o,a,u,c,l,p,f){this.tagName=e,this.attributes=n,this.inputs=r,this.outputs=s,this.templateAttrs=i,this.children=o,this.references=a,this.variables=u,this.sourceSpan=c,this.startSourceSpan=l,this.endSourceSpan=p,this.i18n=f}visit(e){return e.visitTemplate(this)}},js=class{constructor(e,n,r,s,i){this.selector=e,this.attributes=n,this.children=r,this.sourceSpan=s,this.i18n=i,this.name="ng-content"}visit(e){return e.visitContent(this)}},gr=class{constructor(e,n,r,s,i){this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}visit(e){return e.visitVariable(this)}},ro=class{constructor(e,n,r,s,i){this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}visit(e){return e.visitReference(this)}},Ha=class{constructor(e,n,r,s){this.vars=e,this.placeholders=n,this.sourceSpan=r,this.i18n=s}visit(e){return e.visitIcu(this)}};function Bc(t,e){let n=[];if(t.visit)for(let r of e)t.visit(r)||r.visit(t);else for(let r of e){let s=r.visit(t);s&&n.push(s)}return n}var pt=class{constructor(e,n,r,s,i,o){this.nodes=e,this.placeholders=n,this.placeholderToMessage=r,this.meaning=s,this.description=i,this.customId=o,this.legacyIds=[],this.id=this.customId,this.messageString=PA(this.nodes),e.length?this.sources=[{filePath:e[0].sourceSpan.start.file.url,startLine:e[0].sourceSpan.start.line+1,startCol:e[0].sourceSpan.start.col+1,endLine:e[e.length-1].sourceSpan.end.line+1,endCol:e[0].sourceSpan.start.col+1}]:this.sources=[]}},xs=class{constructor(e,n){this.value=e,this.sourceSpan=n}visit(e,n){return e.visitText(this,n)}},Wn=class{constructor(e,n){this.children=e,this.sourceSpan=n}visit(e,n){return e.visitContainer(this,n)}},ja=class{constructor(e,n,r,s,i){this.expression=e,this.type=n,this.cases=r,this.sourceSpan=s,this.expressionPlaceholder=i}visit(e,n){return e.visitIcu(this,n)}},vr=class{constructor(e,n,r,s,i,o,a,u,c){this.tag=e,this.attrs=n,this.startName=r,this.closeName=s,this.children=i,this.isVoid=o,this.sourceSpan=a,this.startSourceSpan=u,this.endSourceSpan=c}visit(e,n){return e.visitTagPlaceholder(this,n)}},Wa=class{constructor(e,n,r){this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitPlaceholder(this,n)}},Ws=class{constructor(e,n,r){this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitIcuPlaceholder(this,n)}},Er=class{constructor(e,n,r,s,i,o,a,u){this.name=e,this.parameters=n,this.startName=r,this.closeName=s,this.children=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=u}visit(e,n){return e.visitBlockPlaceholder(this,n)}};function PA(t){let e=new Nl;return t.map(r=>r.visit(e)).join("")}var Nl=class{visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){let n=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${n.join(" ")}}`}visitTagPlaceholder(e){let n=e.children.map(r=>r.visit(this)).join("");return`{$${e.startName}}${n}{$${e.closeName}}`}visitPlaceholder(e){return`{$${e.name}}`}visitIcuPlaceholder(e){return`{$${e.name}}`}visitBlockPlaceholder(e){let n=e.children.map(r=>r.visit(this)).join("");return`{$${e.startName}}${n}{$${e.closeName}}`}};var Dl=class{visitTag(e){let n=this._serializeAttributes(e.attrs);if(e.children.length==0)return`<${e.name}${n}/>`;let r=e.children.map(s=>s.visit(this));return`<${e.name}${n}>${r.join("")}</${e.name}>`}visitText(e){return e.value}visitDeclaration(e){return`<?xml${this._serializeAttributes(e.attrs)} ?>`}_serializeAttributes(e){let n=Object.keys(e).map(r=>`${r}="${e[r]}"`).join(" ");return n.length>0?" "+n:""}visitDoctype(e){return`<!DOCTYPE ${e.rootTag} [ ${e.dtd} ]>`}},S$=new Dl;function qA(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var bv="i18n",Pl="i18n-",LA="VAR_";function Tv(t){return t===bv||t.startsWith(Pl)}function MA(t){return t.attrs.some(e=>Tv(e.name))}function Cv(t){return t.nodes[0]}function $h(t={},e){let n={};return t&&Object.keys(t).length&&Object.keys(t).forEach(r=>n[Ao(r,e)]=t[r]),n}function Ao(t,e=!0){let n=qA(t);if(!e)return n;let r=n.split("_");if(r.length===1)return t.toLowerCase();let s;/^\d+$/.test(r[r.length-1])&&(s=r.pop());let i=r.shift().toLowerCase();return r.length&&(i+=r.map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")),s?`${i}_${s}`:i}var RA=/[-.]/,Vh="_t",so="ctx",Uh="rf";function Av(t,e){let n=null;return()=>(n||(t(new st(Vh,void 0,Co)),n=te(e)),n)}function Ss(t){return Array.isArray(t)?ge(t.map(Ss)):w(t,Wt)}function Om(t,e){let n=Object.getOwnPropertyNames(t);return n.length===0?null:dt(n.map(r=>{let s=t[r],i,o,a,u;if(typeof s=="string")i=r,a=r,o=s,u=Ss(o);else{a=r,i=s.classPropertyName,o=s.bindingPropertyName;let c=o!==i,l=s.transformFunction!==null,p=ys.None;if(s.isSignal&&(p|=ys.SignalBased),l&&(p|=ys.HasDecoratorInputTransform),e&&(c||l||p!==ys.None)){let f=[w(p),Ss(o)];(c||l)&&(f.push(Ss(i)),l&&f.push(s.transformFunction)),u=ge(f)}else u=Ss(o)}return{key:a,quoted:RA.test(a),value:u}}))}var wr=class{constructor(){this.values=[]}set(e,n){if(n){let r=this.values.find(s=>s.key===e);r?r.value=n:this.values.push({key:e,value:n,quoted:!1})}}toLiteralMap(){return dt(this.values)}};function OA(t){let e=t instanceof Qt?t.name:"ng-template",n=BA(t),r=new Ds,s=ln(e)[1];return r.setElement(s),Object.getOwnPropertyNames(n).forEach(i=>{let o=ln(i)[1],a=n[i];r.addAttribute(o,a),i.toLowerCase()==="class"&&a.trim().split(/\s+/).forEach(c=>r.addClassName(c))}),r}function BA(t){let e={};return t instanceof Pt&&t.tagName!=="ng-template"?t.templateAttrs.forEach(n=>e[n.name]=""):(t.attributes.forEach(n=>{Tv(n.name)||(e[n.name]=n.value)}),t.inputs.forEach(n=>{(n.type===Se.Property||n.type===Se.TwoWay)&&(e[n.name]="")}),t.outputs.forEach(n=>{e[n.name]=""})),e}function Bm(t,e){let n=null,r={name:t.name,type:t.type,typeArgumentCount:t.typeArgumentCount,deps:[],target:xn.Injectable};if(t.useClass!==void 0){let a=t.useClass.expression.isEquivalent(t.type.value),u;t.deps!==void 0&&(u=t.deps),u!==void 0?n=Pr({...r,delegate:t.useClass.expression,delegateDeps:u,delegateType:ji.Class}):a?n=Pr(r):n={statements:[],expression:Fm(t.type.value,t.useClass.expression,e)}}else t.useFactory!==void 0?t.deps!==void 0?n=Pr({...r,delegate:t.useFactory,delegateDeps:t.deps||[],delegateType:ji.Function}):n={statements:[],expression:kn([],t.useFactory.callFn([]))}:t.useValue!==void 0?n=Pr({...r,expression:t.useValue.expression}):t.useExisting!==void 0?n=Pr({...r,expression:U(m.inject).callFn([t.useExisting.expression])}):n={statements:[],expression:Fm(t.type.value,t.type.value,e)};let s=t.type.value,i=new wr;return i.set("token",s),i.set("factory",n.expression),t.providedIn.expression.value!==null&&i.set("providedIn",bA(t.providedIn)),{expression:U(m.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:FA(t),statements:n.statements}}function FA(t){return new zt(U(m.InjectableDeclaration,[Iu(t.type.type,t.typeArgumentCount)]))}function Fm(t,e,n){if(t.node===e.node)return e.prop("\u0275fac");if(!n)return $m(e);let r=U(m.resolveForwardRef).callFn([e]);return $m(r)}function $m(t){let e=new ze("__ngFactoryType__",Co);return kn([e],t.prop("\u0275fac").callFn([te(e.name)]))}var $A=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function VA(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let n=e[0],r=e[1];$A.forEach(s=>{if(s.test(n)||s.test(r))throw new Error(`['${n}', '${r}'] contains unusable interpolation symbol.`)})}}var Ga=class t{static fromArray(e){return e?(VA("interpolation",e),new t(e[0],e[1])):Sn}constructor(e,n){this.start=e,this.end=n}},Sn=new Ga("{{","}}"),UA=new Set(["switch"]),rt=0,HA=8,Hh=9,$r=10,_v=11,kv=12,jh=13,Iv=32,ql=33,io=34,Nv=35,Wh=36,jA=37,za=38,oo=39,Gn=40,un=41,WA=42,Dv=43,Gt=44,Xa=45,Es=46,On=47,fr=58,kt=59,bs=60,Rr=61,hr=62,Vm=63,Gh=48,GA=55,Pv=57,ni=65,zA=69,XA=70,ZA=88,Nu=90,Ns=91,Pi=92,Ts=93,YA=94,_o=95,Yr=97,QA=98,JA=101,zh=102,qv=110,Lv=114,Mv=116,Rv=117,Ov=118,Bv=120,ko=122,bn=123,Um=124,vt=125,Fv=160;var Fc=64,KA=96;function ao(t){return t>=Hh&&t<=Iv||t==Fv}function yn(t){return Gh<=t&&t<=Pv}function uo(t){return t>=Yr&&t<=ko||t>=ni&&t<=Nu}function e1(t){return t>=Yr&&t<=zh||t>=ni&&t<=XA||yn(t)}function Xh(t){return t===$r||t===jh}function Hm(t){return Gh<=t&&t<=GA}function qi(t){return t===oo||t===io||t===KA}var co=class t{constructor(e,n,r,s){this.file=e,this.offset=n,this.line=r,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let n=this.file.content,r=n.length,s=this.offset,i=this.line,o=this.col;for(;s>0&&e<0;)if(s--,e++,n.charCodeAt(s)==$r){i--;let u=n.substring(0,s-1).lastIndexOf(String.fromCharCode($r));o=u>0?s-u:s}else o--;for(;s<r&&e>0;){let a=n.charCodeAt(s);s++,e--,a==$r?(i++,o=0):o++}return new t(this.file,s,i,o)}getContext(e,n){let r=this.file.content,s=this.offset;if(s!=null){s>r.length-1&&(s=r.length-1);let i=s,o=0,a=0;for(;o<e&&s>0&&(s--,o++,!(r[s]==` `&&++a==n)););for(o=0,a=0;o<e&&i<r.length-1&&(i++,o++,!(r[i]==` `&&++a==n)););return{before:r.substring(s,this.offset),after:r.substring(this.offset,i+1)}}return null}},Za=class{constructor(e,n){this.content=e,this.url=n}},Y=class{constructor(e,n,r=e,s=null){this.start=e,this.end=n,this.fullStart=r,this.details=s}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},$n;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})($n||($n={}));var z=class{constructor(e,n,r=$n.ERROR){this.span=e,this.msg=n,this.level=r}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${$n[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};function t1(t,e,n){let r=`in ${t} ${e} in ${n}`,s=new Za("",r);return new Y(new co(s,-1,-1,-1),new co(s,-1,-1,-1))}var n1=0;function r1(t){if(!t||!t.reference)return null;let e=t.reference;if(e.__anonymousType)return e.__anonymousType;if(e.__forward_ref__)return"__forward_ref__";let n=Sv(e);return n.indexOf("(")>=0?(n=`anonymous_${n1++}`,e.__anonymousType=n):n=Li(n),n}function Li(t){return t.replace(/\W/g,"_")}var jm='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',Ll=class extends El{constructor(){super(!1)}visitWrappedNodeExpr(e,n){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,n){return n.print(e,`var ${e.name}`),e.value&&(n.print(e," = "),e.value.visitExpression(this,n)),n.println(e,";"),null}visitTaggedTemplateExpr(e,n){let r=e.template.elements;return e.tag.visitExpression(this,n),n.print(e,`(${jm}(`),n.print(e,`[${r.map(s=>Lr(s.text,!1)).join(", ")}], `),n.print(e,`[${r.map(s=>Lr(s.rawText,!1)).join(", ")}])`),e.template.expressions.forEach(s=>{n.print(e,", "),s.visitExpression(this,n)}),n.print(e,")"),null}visitFunctionExpr(e,n){return n.print(e,`function${e.name?" "+e.name:""}(`),this._visitParams(e.params,n),n.println(e,") {"),n.incIndent(),this.visitAllStatements(e.statements,n),n.decIndent(),n.print(e,"}"),null}visitArrowFunctionExpr(e,n){if(n.print(e,"("),this._visitParams(e.params,n),n.print(e,") =>"),Array.isArray(e.body))n.println(e,"{"),n.incIndent(),this.visitAllStatements(e.body,n),n.decIndent(),n.print(e,"}");else{let r=e.body instanceof cn;r&&n.print(e,"("),e.body.visitExpression(this,n),r&&n.print(e,")")}return null}visitDeclareFunctionStmt(e,n){return n.print(e,`function ${e.name}(`),this._visitParams(e.params,n),n.println(e,") {"),n.incIndent(),this.visitAllStatements(e.statements,n),n.decIndent(),n.println(e,"}"),null}visitLocalizedString(e,n){n.print(e,`$localize(${jm}(`);let r=[e.serializeI18nHead()];for(let s=1;s<e.messageParts.length;s++)r.push(e.serializeI18nTemplatePart(s));return n.print(e,`[${r.map(s=>Lr(s.cooked,!1)).join(", ")}], `),n.print(e,`[${r.map(s=>Lr(s.raw,!1)).join(", ")}])`),e.expressions.forEach(s=>{n.print(e,", "),s.visitExpression(this,n)}),n.print(e,")"),null}_visitParams(e,n){this.visitAllObjects(r=>n.print(null,r.name),e,n,",")}},sa;function s1(){if(sa===void 0){let t=Ni.trustedTypes;if(sa=null,t)try{sa=t.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch{}}return sa}function i1(t){return s1()?.createScript(t)||t}function Wm(...t){if(!Ni.trustedTypes)return new Function(...t);let e=t.slice(0,-1).join(","),n=t[t.length-1],r=`(function anonymous(${e} ) { ${n} })`,s=Ni.eval(i1(r));return s.bind===void 0?new Function(...t):(s.toString=()=>r,s.bind(Ni))}var Ml=class{evaluateStatements(e,n,r,s){let i=new Rl(r),o=vl.createRoot();return n.length>0&&!o1(n[0])&&(n=[w("use strict").toStmt(),...n]),i.visitAllStatements(n,o),i.createReturnStmt(o),this.evaluateCode(e,o,i.getArgs(),s)}evaluateCode(e,n,r,s){let i=`"use strict";${n.toSource()} //# sourceURL=${e}`,o=[],a=[];for(let c in r)a.push(r[c]),o.push(c);if(s){let c=Wm(...o.concat("return null;")).toString(),l=c.slice(0,c.indexOf("return null;")).split(` `).length-1;i+=` ${n.toSourceMapGenerator(e,l).toJsComment()}`}let u=Wm(...o.concat(i));return this.executeFunction(u,a)}executeFunction(e,n){return e(...n)}},Rl=class extends Ll{constructor(e){super(),this.refResolver=e,this._evalArgNames=[],this._evalArgValues=[],this._evalExportedVars=[]}createReturnStmt(e){new wt(new cn(this._evalExportedVars.map(r=>new Rs(r,te(r),!1)))).visitStatement(this,e)}getArgs(){let e={};for(let n=0;n<this._evalArgNames.length;n++)e[this._evalArgNames[n]]=this._evalArgValues[n];return e}visitExternalExpr(e,n){return this._emitReferenceToExternal(e,this.refResolver.resolveExternalReference(e.value),n),null}visitWrappedNodeExpr(e,n){return this._emitReferenceToExternal(e,e.node,n),null}visitDeclareVarStmt(e,n){return e.hasModifier(Ge.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareVarStmt(e,n)}visitDeclareFunctionStmt(e,n){return e.hasModifier(Ge.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareFunctionStmt(e,n)}_emitReferenceToExternal(e,n,r){let s=this._evalArgValues.indexOf(n);if(s===-1){s=this._evalArgValues.length,this._evalArgValues.push(n);let i=r1({reference:n})||"val";this._evalArgNames.push(`jit_${i}_${s}`)}r.print(e,this._evalArgNames[s])}};function o1(t){return t.isEquivalent(w("use strict").toStmt())}function Gm(t){let e=new wr;t.providers!==null&&e.set("providers",t.providers),t.imports.length>0&&e.set("imports",ge(t.imports));let n=U(m.defineInjector).callFn([e.toLiteralMap()],void 0,!0),r=a1(t);return{expression:n,type:r,statements:[]}}function a1(t){return new zt(U(m.InjectorDeclaration,[new zt(t.type.type)]))}var Ol=class{constructor(e){this.context=e}resolveExternalReference(e){if(e.moduleName!=="@angular/core")throw new Error(`Cannot resolve external reference to ${e.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}},lo;(function(t){t[t.Inline=0]="Inline",t[t.SideEffect=1]="SideEffect",t[t.Omit=2]="Omit"})(lo||(lo={}));var Vn;(function(t){t[t.Global=0]="Global",t[t.Local=1]="Local"})(Vn||(Vn={}));function u1(t){let e=[],n=new wr;if(n.set("type",t.type.value),t.kind===Vn.Global&&t.bootstrap.length>0&&n.set("bootstrap",Mr(t.bootstrap,t.containsForwardDecls)),t.selectorScopeMode===lo.Inline)t.declarations.length>0&&n.set("declarations",Mr(t.declarations,t.containsForwardDecls)),t.imports.length>0&&n.set("imports",Mr(t.imports,t.containsForwardDecls)),t.exports.length>0&&n.set("exports",Mr(t.exports,t.containsForwardDecls));else if(t.selectorScopeMode===lo.SideEffect){let i=h1(t);i!==null&&e.push(i)}t.schemas!==null&&t.schemas.length>0&&n.set("schemas",ge(t.schemas.map(i=>i.value))),t.id!==null&&(n.set("id",t.id),e.push(U(m.registerNgModuleType).callFn([t.type.value,t.id]).toStmt()));let r=U(m.defineNgModule).callFn([n.toLiteralMap()],void 0,!0),s=l1(t);return{expression:r,type:s,statements:e}}function c1(t){let e=new wr;return e.set("type",new se(t.type)),t.bootstrap!==void 0&&e.set("bootstrap",new se(t.bootstrap)),t.declarations!==void 0&&e.set("declarations",new se(t.declarations)),t.imports!==void 0&&e.set("imports",new se(t.imports)),t.exports!==void 0&&e.set("exports",new se(t.exports)),t.schemas!==void 0&&e.set("schemas",new se(t.schemas)),t.id!==void 0&&e.set("id",new se(t.id)),U(m.defineNgModule).callFn([e.toLiteralMap()])}function l1(t){if(t.kind===Vn.Local)return new zt(t.type.value);let{type:e,declarations:n,exports:r,imports:s,includeImportTypes:i,publicDeclarationTypes:o}=t;return new zt(U(m.NgModuleDeclaration,[new zt(e.type),o===null?$c(n):p1(o),i?$c(s):_n,$c(r)]))}function h1(t){let e=new wr;if(t.kind===Vn.Global?t.declarations.length>0&&e.set("declarations",Mr(t.declarations,t.containsForwardDecls)):t.declarationsExpression&&e.set("declarations",t.declarationsExpression),t.kind===Vn.Global?t.imports.length>0&&e.set("imports",Mr(t.imports,t.containsForwardDecls)):t.importsExpression&&e.set("imports",t.importsExpression),t.kind===Vn.Global?t.exports.length>0&&e.set("exports",Mr(t.exports,t.containsForwardDecls)):t.exportsExpression&&e.set("exports",t.exportsExpression),t.kind===Vn.Local&&t.bootstrapExpression&&e.set("bootstrap",t.bootstrapExpression),Object.keys(e.values).length===0)return null;let n=new ft(U(m.setNgModuleScope),[t.type.value,e.toLiteralMap()]),r=xA(n),s=new Hn([],[r.toStmt()]);return new ft(s,[]).toStmt()}function $c(t){let e=t.map(n=>_u(n.type));return t.length>0?et(ge(e)):_n}function p1(t){let e=t.map(n=>_u(n));return t.length>0?et(ge(e)):_n}function zm(t){let e=[];e.push({key:"name",value:w(t.pipeName),quoted:!1}),e.push({key:"type",value:t.type.value,quoted:!1}),e.push({key:"pure",value:w(t.pure),quoted:!1}),t.isStandalone&&e.push({key:"standalone",value:w(!0),quoted:!1});let n=U(m.definePipe).callFn([dt(e)],void 0,!0),r=f1(t);return{expression:n,type:r,statements:[]}}function f1(t){return new zt(U(m.PipeDeclaration,[Iu(t.type.type,t.typeArgumentCount),new zt(new tt(t.pipeName)),new zt(new tt(t.isStandalone))]))}var ho;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(ho||(ho={}));var d1=new Set(["inherit","initial","revert","unset","alternate","alternate-reverse","normal","reverse","backwards","both","forwards","none","paused","running","ease","ease-in","ease-in-out","ease-out","linear","step-start","step-end","end","jump-both","jump-end","jump-none","jump-start","start"]),m1=["@media","@supports","@document","@layer","@container","@scope","@starting-style"],Bl=class{constructor(){this._animationDeclarationKeyframesRe=/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g}shimCssText(e,n,r=""){let s=[];e=e.replace(A1,a=>{if(a.match(_1))s.push(a);else{let u=a.match(C1);s.push((u?.join("")??"")+` `)}return Qh}),e=this._insertDirectives(e);let i=this._scopeCssText(e,n,r),o=0;return i.replace(k1,()=>s[o++])}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_scopeKeyframesRelatedCss(e,n){let r=new Set,s=ia(e,i=>this._scopeLocalKeyframeDeclarations(i,n,r));return ia(s,i=>this._scopeAnimationRule(i,n,r))}_scopeLocalKeyframeDeclarations(e,n,r){return{...e,selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(s,i,o,a,u)=>(r.add(Qm(a,o)),`${i}${o}${n}_${a}${o}${u}`))}}_scopeAnimationKeyframe(e,n,r){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(s,i,o,a,u)=>(a=`${r.has(Qm(a,o))?n+"_":""}${a}`,`${i}${o}${a}${o}${u}`))}_scopeAnimationRule(e,n,r){let s=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g,(i,o,a)=>o+a.replace(this._animationDeclarationKeyframesRe,(u,c,l="",p,f)=>p?`${c}${this._scopeAnimationKeyframe(`${l}${p}${l}`,n,r)}`:d1.has(f)?u:`${c}${this._scopeAnimationKeyframe(f,n,r)}`));return s=s.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(i,o,a)=>`${o}${a.split(",").map(u=>this._scopeAnimationKeyframe(u,n,r)).join(",")}`),{...e,content:s}}_insertPolyfillDirectivesInCssText(e){return e.replace(g1,function(...n){return n[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(v1,(...n)=>{let r=n[0].replace(n[1],"").replace(n[2],"");return n[4]+r})}_scopeCssText(e,n,r){let s=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),n&&(e=this._scopeKeyframesRelatedCss(e,n),e=this._scopeSelectors(e,n,r)),e=e+` `+s,e.trim()}_extractUnscopedRulesFromCssText(e){let n="",r;for(Xm.lastIndex=0;(r=Xm.exec(e))!==null;){let s=r[0].replace(r[2],"").replace(r[1],r[4]);n+=s+` `}return n}_convertColonHost(e){return e.replace(E1,(n,r,s)=>{if(r){let i=[],o=r.split(",").map(a=>a.trim());for(let a of o){if(!a)break;let u=Dr+a.replace(Ya,"")+s;i.push(u)}return i.join(",")}else return Dr+s})}_convertColonHostContext(e){return e.replace(w1,n=>{let r=[[]],s;for(;s=y1.exec(n);){let i=(s[1]??"").trim().split(",").map(a=>a.trim()).filter(a=>a!==""),o=r.length;F1(r,i.length);for(let a=0;a<i.length;a++)for(let u=0;u<o;u++)r[u+a*o].push(i[a]);n=s[2]}return r.map(i=>B1(i,n)).join(", ")})}_convertShadowDOMSelectors(e){return x1.reduce((n,r)=>n.replace(r," "),e)}_scopeSelectors(e,n,r){return ia(e,s=>{let i=s.selector,o=s.content;return s.selector[0]!=="@"?i=this._scopeSelector(s.selector,n,r):m1.some(a=>s.selector.startsWith(a))?o=this._scopeSelectors(s.content,n,r):(s.selector.startsWith("@font-face")||s.selector.startsWith("@page"))&&(o=this._stripScopingSelectors(s.content)),new po(i,o)})}_stripScopingSelectors(e){return ia(e,n=>{let r=n.selector.replace(Ym," ").replace(Zm," ");return new po(r,n.content)})}_scopeSelector(e,n,r){return e.split(/ ?, ?/).map(s=>s.split(Ym)).map(s=>{let[i,...o]=s;return[(u=>this._selectorNeedsScoping(u,n)?this._applySelectorScope(u,n,r):u)(i),...o].join(" ")}).join(", ")}_selectorNeedsScoping(e,n){return!this._makeScopeMatcher(n).test(e)}_makeScopeMatcher(e){let n=/\[/g,r=/\]/g;return e=e.replace(n,"\\[").replace(r,"\\]"),new RegExp("^("+e+")"+S1,"m")}_applySimpleSelectorScope(e,n,r){if(Cs.lastIndex=0,Cs.test(e)){let s=`[${r}]`;return e.replace(Zm,(i,o)=>o.replace(/([^:]*)(:*)(.*)/,(a,u,c,l)=>u+s+c+l)).replace(Cs,s+" ")}return n+" "+e}_applySelectorScope(e,n,r){let s=/\[is=([^\]]*)\]/g;n=n.replace(s,(I,...k)=>k[0]);let i="["+n+"]",o=I=>{let k=I.trim();if(!k)return I;if(I.includes(Dr))k=this._applySimpleSelectorScope(I,n,r);else{let A=I.replace(Cs,"");if(A.length>0){let C=A.match(/([^:]*)(:*)(.*)/);C&&(k=C[1]+i+C[2]+C[3])}}return k},a=new Fl(e);e=a.content();let u="",c=0,l,p=/( |>|\+|~(?!=))\s*/g,E=!e.includes(Dr);for(;(l=p.exec(e))!==null;){let I=l[1],k=e.slice(c,l.index);if(k.match(/__esc-ph-(\d+)__/)&&e[l.index+1]?.match(/[a-fA-F\d]/))continue;E=E||k.includes(Dr);let A=E?o(k):k;u+=`${A} ${I} `,c=p.lastIndex}let y=e.substring(c);return E=E||y.includes(Dr),u+=E?o(y):y,a.restore(u)}_insertPolyfillHostInCssText(e){return e.replace(T1,Zh).replace(b1,Ya)}},Fl=class{constructor(e){this.placeholders=[],this.index=0,e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=e.replace(/(\\.)/g,(n,r)=>{let s=`__esc-ph-${this.index}__`;return this.placeholders.push(r),this.index++,s}),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(n,r,s)=>{let i=`__ph-${this.index}__`;return this.placeholders.push(s),this.index++,r+i})}restore(e){return e.replace(/__(?:ph|esc-ph)-(\d+)__/g,(n,r)=>this.placeholders[+r])}content(){return this._content}_escapeRegexMatches(e,n){return e.replace(n,(r,s)=>{let i=`__ph-${this.index}__`;return this.placeholders.push(s),this.index++,i})}},g1=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,v1=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Xm=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Ya="-shadowcsshost",Zh="-shadowcsscontext",Yh="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",E1=new RegExp(Ya+Yh,"gim"),w1=new RegExp(Zh+Yh,"gim"),y1=new RegExp(Zh+Yh,"im"),Dr=Ya+"-no-combinator",Zm=/-shadowcsshost-no-combinator([^\s]*)/,x1=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Ym=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,S1="([>\\s~+[.,{:][\\s\\S]*)?$",Cs=/-shadowcsshost/gim,b1=/:host/gim,T1=/:host-context/gim,C1=/\r?\n/g,A1=/\/\*[\s\S]*?\*\//g,_1=/\/\*\s*#\s*source(Mapping)?URL=/g,Qh="%COMMENT%",k1=new RegExp(Qh,"g"),Vc="%BLOCK%",I1=new RegExp(`(\\s*(?:${Qh}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),N1=new Map([["{","}"]]),$v="%COMMA_IN_PLACEHOLDER%",Vv="%SEMI_IN_PLACEHOLDER%",Uv="%COLON_IN_PLACEHOLDER%",D1=new RegExp($v,"g"),P1=new RegExp(Vv,"g"),q1=new RegExp(Uv,"g"),po=class{constructor(e,n){this.selector=e,this.content=n}};function ia(t,e){let n=R1(t),r=L1(n,N1,Vc),s=0,i=r.escapedString.replace(I1,(...o)=>{let a=o[2],u="",c=o[4],l="";c&&c.startsWith("{"+Vc)&&(u=r.blocks[s++],c=c.substring(Vc.length+1),l="{");let p=e(new po(a,u));return`${o[1]}${p.selector}${o[3]}${l}${p.content}${c}`});return O1(i)}var $l=class{constructor(e,n){this.escapedString=e,this.blocks=n}};function L1(t,e,n){let r=[],s=[],i=0,o=0,a=-1,u,c;for(let l=0;l<t.length;l++){let p=t[l];p==="\\"?l++:p===c?(i--,i===0&&(s.push(t.substring(a,l)),r.push(n),o=l,a=-1,u=c=void 0)):p===u?i++:i===0&&e.has(p)&&(u=p,c=e.get(p),i=1,a=l+1,r.push(t.substring(o,a)))}return a!==-1?(s.push(t.substring(a)),r.push(n)):r.push(t.substring(o)),new $l(r.join(""),s)}var M1={";":Vv,",":$v,":":Uv};function R1(t){let e=t,n=null;for(let r=0;r<e.length;r++){let s=e[r];if(s==="\\")r++;else if(n!==null)if(s===n)n=null;else{let i=M1[s];i&&(e=`${e.substr(0,r)}${i}${e.substr(r+1)}`,r+=i.length-1)}else(s==="'"||s==='"')&&(n=s)}return e}function O1(t){let e=t.replace(D1,",");return e=e.replace(P1,";"),e=e.replace(q1,":"),e}function Qm(t,e){return e?t.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):t}function B1(t,e){let n=Dr;Cs.lastIndex=0;let r=Cs.test(e);if(t.length===0)return n+e;let s=[t.pop()||""];for(;t.length>0;){let i=s.length,o=t.pop();for(let a=0;a<i;a++){let u=s[a];s[i*2+a]=u+" "+o,s[i+a]=o+" "+u,s[a]=o+u}}return s.map(i=>r?`${i}${e}`:`${i}${n}${e}, ${i} ${n}${e}`).join(",")}function F1(t,e){let n=t.length;for(let r=1;r<e;r++)for(let s=0;s<n;s++)t[s+r*n]=t[s].slice(0)}var h;(function(t){t[t.ListEnd=0]="ListEnd",t[t.Statement=1]="Statement",t[t.Variable=2]="Variable",t[t.ElementStart=3]="ElementStart",t[t.Element=4]="Element",t[t.Template=5]="Template",t[t.ElementEnd=6]="ElementEnd",t[t.ContainerStart=7]="ContainerStart",t[t.Container=8]="Container",t[t.ContainerEnd=9]="ContainerEnd",t[t.DisableBindings=10]="DisableBindings",t[t.Conditional=11]="Conditional",t[t.EnableBindings=12]="EnableBindings",t[t.Text=13]="Text",t[t.Listener=14]="Listener",t[t.InterpolateText=15]="InterpolateText",t[t.Binding=16]="Binding",t[t.Property=17]="Property",t[t.StyleProp=18]="StyleProp",t[t.ClassProp=19]="ClassProp",t[t.StyleMap=20]="StyleMap",t[t.ClassMap=21]="ClassMap",t[t.Advance=22]="Advance",t[t.Pipe=23]="Pipe",t[t.Attribute=24]="Attribute",t[t.ExtractedAttribute=25]="ExtractedAttribute",t[t.Defer=26]="Defer",t[t.DeferOn=27]="DeferOn",t[t.DeferWhen=28]="DeferWhen",t[t.I18nMessage=29]="I18nMessage",t[t.HostProperty=30]="HostProperty",t[t.Namespace=31]="Namespace",t[t.ProjectionDef=32]="ProjectionDef",t[t.Projection=33]="Projection",t[t.RepeaterCreate=34]="RepeaterCreate",t[t.Repeater=35]="Repeater",t[t.TwoWayProperty=36]="TwoWayProperty",t[t.TwoWayListener=37]="TwoWayListener",t[t.DeclareLet=38]="DeclareLet",t[t.StoreLet=39]="StoreLet",t[t.I18nStart=40]="I18nStart",t[t.I18n=41]="I18n",t[t.I18nEnd=42]="I18nEnd",t[t.I18nExpression=43]="I18nExpression",t[t.I18nApply=44]="I18nApply",t[t.IcuStart=45]="IcuStart",t[t.IcuEnd=46]="IcuEnd",t[t.IcuPlaceholder=47]="IcuPlaceholder",t[t.I18nContext=48]="I18nContext",t[t.I18nAttributes=49]="I18nAttributes"})(h||(h={}));var $;(function(t){t[t.LexicalRead=0]="LexicalRead",t[t.Context=1]="Context",t[t.TrackContext=2]="TrackContext",t[t.ReadVariable=3]="ReadVariable",t[t.NextContext=4]="NextContext",t[t.Reference=5]="Reference",t[t.StoreLet=6]="StoreLet",t[t.ContextLetReference=7]="ContextLetReference",t[t.GetCurrentView=8]="GetCurrentView",t[t.RestoreView=9]="RestoreView",t[t.ResetView=10]="ResetView",t[t.PureFunctionExpr=11]="PureFunctionExpr",t[t.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",t[t.PipeBinding=13]="PipeBinding",t[t.PipeBindingVariadic=14]="PipeBindingVariadic",t[t.SafePropertyRead=15]="SafePropertyRead",t[t.SafeKeyedRead=16]="SafeKeyedRead",t[t.SafeInvokeFunction=17]="SafeInvokeFunction",t[t.SafeTernaryExpr=18]="SafeTernaryExpr",t[t.EmptyExpr=19]="EmptyExpr",t[t.AssignTemporaryExpr=20]="AssignTemporaryExpr",t[t.ReadTemporaryExpr=21]="ReadTemporaryExpr",t[t.SlotLiteralExpr=22]="SlotLiteralExpr",t[t.ConditionalCase=23]="ConditionalCase",t[t.ConstCollected=24]="ConstCollected",t[t.TwoWayBindingSet=25]="TwoWayBindingSet"})($||($={}));var It;(function(t){t[t.None=0]="None",t[t.AlwaysInline=1]="AlwaysInline"})(It||(It={}));var He;(function(t){t[t.Context=0]="Context",t[t.Identifier=1]="Identifier",t[t.SavedView=2]="SavedView",t[t.Alias=3]="Alias"})(He||(He={}));var xt;(function(t){t[t.Normal=0]="Normal",t[t.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder"})(xt||(xt={}));var V;(function(t){t[t.Attribute=0]="Attribute",t[t.ClassName=1]="ClassName",t[t.StyleProperty=2]="StyleProperty",t[t.Property=3]="Property",t[t.Template=4]="Template",t[t.I18n=5]="I18n",t[t.Animation=6]="Animation",t[t.TwoWayProperty=7]="TwoWayProperty"})(V||(V={}));var Gs;(function(t){t[t.Creation=0]="Creation",t[t.Postproccessing=1]="Postproccessing"})(Gs||(Gs={}));var Qr;(function(t){t[t.I18nText=0]="I18nText",t[t.I18nAttribute=1]="I18nAttribute"})(Qr||(Qr={}));var me;(function(t){t[t.None=0]="None",t[t.ElementTag=1]="ElementTag",t[t.TemplateTag=2]="TemplateTag",t[t.OpenTag=4]="OpenTag",t[t.CloseTag=8]="CloseTag",t[t.ExpressionIndex=16]="ExpressionIndex"})(me||(me={}));var Ke;(function(t){t[t.HTML=0]="HTML",t[t.SVG=1]="SVG",t[t.Math=2]="Math"})(Ke||(Ke={}));var ke;(function(t){t[t.Idle=0]="Idle",t[t.Immediate=1]="Immediate",t[t.Timer=2]="Timer",t[t.Hover=3]="Hover",t[t.Interaction=4]="Interaction",t[t.Viewport=5]="Viewport"})(ke||(ke={}));var mr;(function(t){t[t.RootI18n=0]="RootI18n",t[t.Icu=1]="Icu",t[t.Attr=2]="Attr"})(mr||(mr={}));var yt;(function(t){t[t.NgTemplate=0]="NgTemplate",t[t.Structural=1]="Structural",t[t.Block=2]="Block"})(yt||(yt={}));var Hv=Symbol("ConsumesSlot"),Jh=Symbol("DependsOnSlotContext"),ri=Symbol("ConsumesVars"),Du=Symbol("UsesVarOffset"),Dn={[Hv]:!0,numSlotsUsed:1},Mt={[Jh]:!0},bt={[ri]:!0};function si(t){return t[Hv]===!0}function Qa(t){return t[Jh]===!0}function Uc(t){return t[ri]===!0}function Jm(t){return t[Du]===!0}function In(t){return{kind:h.Statement,statement:t,...K}}function dr(t,e,n,r){return{kind:h.Variable,xref:t,variable:e,initializer:n,flags:r,...K}}var K={debugListId:null,prev:null,next:null};function $1(t,e,n){return{kind:h.InterpolateText,target:t,interpolation:e,sourceSpan:n,...Mt,...bt,...K}}var Re=class{constructor(e,n,r){if(this.strings=e,this.expressions=n,this.i18nPlaceholders=r,r.length!==0&&r.length!==n.length)throw new Error(`Expected ${n.length} placeholders to match interpolation expression count, but got ${r.length}`)}};function Jr(t,e,n,r,s,i,o,a,u,c,l){return{kind:h.Binding,bindingKind:e,target:t,name:n,expression:r,unit:s,securityContext:i,isTextAttribute:o,isStructuralTemplateAttribute:a,templateKind:u,i18nContext:null,i18nMessage:c,sourceSpan:l,...K}}function V1(t,e,n,r,s,i,o,a,u,c){return{kind:h.Property,target:t,name:e,expression:n,isAnimationTrigger:r,securityContext:s,sanitizer:null,isStructuralTemplateAttribute:i,templateKind:o,i18nContext:a,i18nMessage:u,sourceSpan:c,...Mt,...bt,...K}}function U1(t,e,n,r,s,i,o,a,u){return{kind:h.TwoWayProperty,target:t,name:e,expression:n,securityContext:r,sanitizer:null,isStructuralTemplateAttribute:s,templateKind:i,i18nContext:o,i18nMessage:a,sourceSpan:u,...Mt,...bt,...K}}function H1(t,e,n,r,s){return{kind:h.StyleProp,target:t,name:e,expression:n,unit:r,sourceSpan:s,...Mt,...bt,...K}}function j1(t,e,n,r){return{kind:h.ClassProp,target:t,name:e,expression:n,sourceSpan:r,...Mt,...bt,...K}}function W1(t,e,n){return{kind:h.StyleMap,target:t,expression:e,sourceSpan:n,...Mt,...bt,...K}}function G1(t,e,n){return{kind:h.ClassMap,target:t,expression:e,sourceSpan:n,...Mt,...bt,...K}}function z1(t,e,n,r,s,i,o,a,u,c){return{kind:h.Attribute,target:t,namespace:e,name:n,expression:r,securityContext:s,sanitizer:null,isTextAttribute:i,isStructuralTemplateAttribute:o,templateKind:a,i18nContext:null,i18nMessage:u,sourceSpan:c,...Mt,...bt,...K}}function X1(t,e){return{kind:h.Advance,delta:t,sourceSpan:e,...K}}function jv(t,e,n,r){return{kind:h.Conditional,target:t,test:e,conditions:n,processed:null,sourceSpan:r,contextValue:null,...K,...Mt,...bt}}function Z1(t,e,n,r){return{kind:h.Repeater,target:t,targetSlot:e,collection:n,sourceSpan:r,...K,...Mt}}function Y1(t,e,n,r){return{kind:h.DeferWhen,target:t,expr:e,prefetch:n,sourceSpan:r,...K,...Mt,...bt}}function Wv(t,e,n,r,s,i,o,a,u,c,l){return{kind:h.I18nExpression,context:t,target:e,i18nOwner:n,handle:r,expression:s,icuPlaceholder:i,i18nPlaceholder:o,resolutionTime:a,usage:u,name:c,sourceSpan:l,...K,...bt,...Mt}}function Q1(t,e,n){return{kind:h.I18nApply,owner:t,handle:e,sourceSpan:n,...K}}function J1(t,e,n,r){return{kind:h.StoreLet,target:t,declaredName:e,value:n,sourceSpan:r,...Mt,...bt,...K}}var Km,eg,tg,ng,rg,sg,ig,og;function Nn(t){return t instanceof Ee}var Ee=class extends ve{constructor(e=null){super(null,e)}},Je=class t extends Ee{constructor(e){super(),this.name=e,this.kind=$.LexicalRead}visitExpression(e,n){}isEquivalent(e){return this.name===e.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.name)}},Ja=class t extends Ee{constructor(e,n,r){super(),this.target=e,this.targetSlot=n,this.offset=r,this.kind=$.Reference}visitExpression(){}isEquivalent(e){return e instanceof t&&e.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.target,this.targetSlot,this.offset)}},Cu=class Cu extends Ee{constructor(e,n,r){super(),this.target=e,this.value=n,this.sourceSpan=r,this.kind=$.StoreLet,this[Km]=!0,this[eg]=!0}visitExpression(){}isEquivalent(e){return e instanceof Cu&&e.target===this.target&&e.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(e,n){this.value=R(this.value,e,n)}clone(){return new Cu(this.target,this.value,this.sourceSpan)}};Km=ri,eg=Jh;var fo=Cu,mo=class t extends Ee{constructor(e,n){super(),this.target=e,this.targetSlot=n,this.kind=$.ContextLetReference}visitExpression(){}isEquivalent(e){return e instanceof t&&e.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.target,this.targetSlot)}},Qn=class t extends Ee{constructor(e){super(),this.view=e,this.kind=$.Context}visitExpression(){}isEquivalent(e){return e instanceof t&&e.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},Ka=class t extends Ee{constructor(e){super(),this.view=e,this.kind=$.TrackContext}visitExpression(){}isEquivalent(e){return e instanceof t&&e.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},eu=class t extends Ee{constructor(){super(),this.kind=$.NextContext,this.steps=1}visitExpression(){}isEquivalent(e){return e instanceof t&&e.steps===this.steps}isConstant(){return!1}transformInternalExpressions(){}clone(){let e=new t;return e.steps=this.steps,e}},Vl=class t extends Ee{constructor(){super(),this.kind=$.GetCurrentView}visitExpression(){}isEquivalent(e){return e instanceof t}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t}},tu=class t extends Ee{constructor(e){super(),this.view=e,this.kind=$.RestoreView}visitExpression(e,n){typeof this.view!="number"&&this.view.visitExpression(e,n)}isEquivalent(e){return!(e instanceof t)||typeof e.view!=typeof this.view?!1:typeof this.view=="number"?this.view===e.view:this.view.isEquivalent(e.view)}isConstant(){return!1}transformInternalExpressions(e,n){typeof this.view!="number"&&(this.view=R(this.view,e,n))}clone(){return new t(this.view instanceof ve?this.view.clone():this.view)}},Ul=class t extends Ee{constructor(e){super(),this.expr=e,this.kind=$.ResetView}visitExpression(e,n){this.expr.visitExpression(e,n)}isEquivalent(e){return e instanceof t&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}transformInternalExpressions(e,n){this.expr=R(this.expr,e,n)}clone(){return new t(this.expr.clone())}},nu=class t extends Ee{constructor(e,n){super(),this.target=e,this.value=n,this.kind=$.TwoWayBindingSet}visitExpression(e,n){this.target.visitExpression(e,n),this.value.visitExpression(e,n)}isEquivalent(e){return this.target.isEquivalent(e.target)&&this.value.isEquivalent(e.value)}isConstant(){return!1}transformInternalExpressions(e,n){this.target=R(this.target,e,n),this.value=R(this.value,e,n)}clone(){return new t(this.target,this.value)}},zn=class t extends Ee{constructor(e){super(),this.xref=e,this.kind=$.ReadVariable,this.name=null}visitExpression(){}isEquivalent(e){return e instanceof t&&e.xref===this.xref}isConstant(){return!1}transformInternalExpressions(){}clone(){let e=new t(this.xref);return e.name=this.name,e}},Au=class Au extends Ee{constructor(e,n){super(),this.kind=$.PureFunctionExpr,this[tg]=!0,this[ng]=!0,this.varOffset=null,this.fn=null,this.body=e,this.args=n}visitExpression(e,n){this.body?.visitExpression(e,n);for(let r of this.args)r.visitExpression(e,n)}isEquivalent(e){return!(e instanceof Au)||e.args.length!==this.args.length?!1:e.body!==null&&this.body!==null&&e.body.isEquivalent(this.body)&&e.args.every((n,r)=>n.isEquivalent(this.args[r]))}isConstant(){return!1}transformInternalExpressions(e,n){this.body!==null?this.body=R(this.body,e,n|pe.InChildOperation):this.fn!==null&&(this.fn=R(this.fn,e,n));for(let r=0;r<this.args.length;r++)this.args[r]=R(this.args[r],e,n)}clone(){let e=new Au(this.body?.clone()??null,this.args.map(n=>n.clone()));return e.fn=this.fn?.clone()??null,e.varOffset=this.varOffset,e}};tg=ri,ng=Du;var Kr=Au,zs=class t extends Ee{constructor(e){super(),this.index=e,this.kind=$.PureFunctionParameterExpr}visitExpression(){}isEquivalent(e){return e instanceof t&&e.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new t(this.index)}},op=class op extends Ee{constructor(e,n,r,s){super(),this.target=e,this.targetSlot=n,this.name=r,this.args=s,this.kind=$.PipeBinding,this[rg]=!0,this[sg]=!0,this.varOffset=null}visitExpression(e,n){for(let r of this.args)r.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){for(let r=0;r<this.args.length;r++)this.args[r]=R(this.args[r],e,n)}clone(){let e=new op(this.target,this.targetSlot,this.name,this.args.map(n=>n.clone()));return e.varOffset=this.varOffset,e}};rg=ri,sg=Du;var es=op,ap=class ap extends Ee{constructor(e,n,r,s,i){super(),this.target=e,this.targetSlot=n,this.name=r,this.args=s,this.numArgs=i,this.kind=$.PipeBindingVariadic,this[ig]=!0,this[og]=!0,this.varOffset=null}visitExpression(e,n){this.args.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.args=R(this.args,e,n)}clone(){let e=new ap(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return e.varOffset=this.varOffset,e}};ig=ri,og=Du;var ru=ap,Xs=class t extends Ee{constructor(e,n){super(),this.receiver=e,this.name=n,this.kind=$.SafePropertyRead}get index(){return this.name}visitExpression(e,n){this.receiver.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.receiver=R(this.receiver,e,n)}clone(){return new t(this.receiver.clone(),this.name)}},Zs=class t extends Ee{constructor(e,n,r){super(r),this.receiver=e,this.index=n,this.kind=$.SafeKeyedRead}visitExpression(e,n){this.receiver.visitExpression(e,n),this.index.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.receiver=R(this.receiver,e,n),this.index=R(this.index,e,n)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},yr=class t extends Ee{constructor(e,n){super(),this.receiver=e,this.args=n,this.kind=$.SafeInvokeFunction}visitExpression(e,n){this.receiver.visitExpression(e,n);for(let r of this.args)r.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.receiver=R(this.receiver,e,n);for(let r=0;r<this.args.length;r++)this.args[r]=R(this.args[r],e,n)}clone(){return new t(this.receiver.clone(),this.args.map(e=>e.clone()))}},Ys=class t extends Ee{constructor(e,n){super(),this.guard=e,this.expr=n,this.kind=$.SafeTernaryExpr}visitExpression(e,n){this.guard.visitExpression(e,n),this.expr.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.guard=R(this.guard,e,n),this.expr=R(this.expr,e,n)}clone(){return new t(this.guard.clone(),this.expr.clone())}},go=class t extends Ee{constructor(){super(...arguments),this.kind=$.EmptyExpr}visitExpression(e,n){}isEquivalent(e){return e instanceof t}isConstant(){return!0}clone(){return new t}transformInternalExpressions(){}},hn=class t extends Ee{constructor(e,n){super(),this.expr=e,this.xref=n,this.kind=$.AssignTemporaryExpr,this.name=null}visitExpression(e,n){this.expr.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.expr=R(this.expr,e,n)}clone(){let e=new t(this.expr.clone(),this.xref);return e.name=this.name,e}},Jn=class t extends Ee{constructor(e){super(),this.xref=e,this.kind=$.ReadTemporaryExpr,this.name=null}visitExpression(e,n){}isEquivalent(){return this.xref===this.xref}isConstant(){return!1}transformInternalExpressions(e,n){}clone(){let e=new t(this.xref);return e.name=this.name,e}},su=class t extends Ee{constructor(e){super(),this.slot=e,this.kind=$.SlotLiteralExpr}visitExpression(e,n){}isEquivalent(e){return e instanceof t&&e.slot===this.slot}isConstant(){return!0}clone(){return new t(this.slot)}transformInternalExpressions(){}},iu=class t extends Ee{constructor(e,n,r,s=null){super(),this.expr=e,this.target=n,this.targetSlot=r,this.alias=s,this.kind=$.ConditionalCase}visitExpression(e,n){this.expr!==null&&this.expr.visitExpression(e,n)}isEquivalent(e){return e instanceof t&&e.expr===this.expr}isConstant(){return!0}clone(){return new t(this.expr,this.target,this.targetSlot)}transformInternalExpressions(e,n){this.expr!==null&&(this.expr=R(this.expr,e,n))}},vo=class t extends Ee{constructor(e){super(),this.expr=e,this.kind=$.ConstCollected}transformInternalExpressions(e,n){this.expr=e(this.expr,n)}visitExpression(e,n){this.expr.visitExpression(e,n)}isEquivalent(e){return e instanceof t?this.expr.isEquivalent(e.expr):!1}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr)}};function it(t,e){je(t,(n,r)=>(e(n,r),n),pe.None)}var pe;(function(t){t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation"})(pe||(pe={}));function Hc(t,e,n){for(let r=0;r<t.expressions.length;r++)t.expressions[r]=R(t.expressions[r],e,n)}function je(t,e,n){switch(t.kind){case h.StyleProp:case h.StyleMap:case h.ClassProp:case h.ClassMap:case h.Binding:t.expression instanceof Re?Hc(t.expression,e,n):t.expression=R(t.expression,e,n);break;case h.Property:case h.HostProperty:case h.Attribute:t.expression instanceof Re?Hc(t.expression,e,n):t.expression=R(t.expression,e,n),t.sanitizer=t.sanitizer&&R(t.sanitizer,e,n);break;case h.TwoWayProperty:t.expression=R(t.expression,e,n),t.sanitizer=t.sanitizer&&R(t.sanitizer,e,n);break;case h.I18nExpression:t.expression=R(t.expression,e,n);break;case h.InterpolateText:Hc(t.interpolation,e,n);break;case h.Statement:ou(t.statement,e,n);break;case h.Variable:t.initializer=R(t.initializer,e,n);break;case h.Conditional:for(let r of t.conditions)r.expr!==null&&(r.expr=R(r.expr,e,n));t.processed!==null&&(t.processed=R(t.processed,e,n)),t.contextValue!==null&&(t.contextValue=R(t.contextValue,e,n));break;case h.Listener:case h.TwoWayListener:for(let r of t.handlerOps)je(r,e,n|pe.InChildOperation);break;case h.ExtractedAttribute:t.expression=t.expression&&R(t.expression,e,n),t.trustedValueFn=t.trustedValueFn&&R(t.trustedValueFn,e,n);break;case h.RepeaterCreate:t.track=R(t.track,e,n),t.trackByFn!==null&&(t.trackByFn=R(t.trackByFn,e,n));break;case h.Repeater:t.collection=R(t.collection,e,n);break;case h.Defer:t.loadingConfig!==null&&(t.loadingConfig=R(t.loadingConfig,e,n)),t.placeholderConfig!==null&&(t.placeholderConfig=R(t.placeholderConfig,e,n)),t.resolverFn!==null&&(t.resolverFn=R(t.resolverFn,e,n));break;case h.I18nMessage:for(let[r,s]of t.params)t.params.set(r,R(s,e,n));for(let[r,s]of t.postprocessingParams)t.postprocessingParams.set(r,R(s,e,n));break;case h.DeferWhen:t.expr=R(t.expr,e,n);break;case h.StoreLet:t.value=R(t.value,e,n);break;case h.Advance:case h.Container:case h.ContainerEnd:case h.ContainerStart:case h.DeferOn:case h.DisableBindings:case h.Element:case h.ElementEnd:case h.ElementStart:case h.EnableBindings:case h.I18n:case h.I18nApply:case h.I18nContext:case h.I18nEnd:case h.I18nStart:case h.IcuEnd:case h.IcuStart:case h.Namespace:case h.Pipe:case h.Projection:case h.ProjectionDef:case h.Template:case h.Text:case h.I18nAttributes:case h.IcuPlaceholder:case h.DeclareLet:break;default:throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${h[t.kind]}`)}}function R(t,e,n){if(t instanceof Ee)t.transformInternalExpressions(e,n);else if(t instanceof he)t.lhs=R(t.lhs,e,n),t.rhs=R(t.rhs,e,n);else if(t instanceof Ms)t.expr=R(t.expr,e,n);else if(t instanceof Lt)t.receiver=R(t.receiver,e,n);else if(t instanceof Zn)t.receiver=R(t.receiver,e,n),t.index=R(t.index,e,n);else if(t instanceof Ls)t.receiver=R(t.receiver,e,n),t.value=R(t.value,e,n);else if(t instanceof Fi)t.receiver=R(t.receiver,e,n),t.index=R(t.index,e,n),t.value=R(t.value,e,n);else if(t instanceof ft){t.fn=R(t.fn,e,n);for(let r=0;r<t.args.length;r++)t.args[r]=R(t.args[r],e,n)}else if(t instanceof Zt)for(let r=0;r<t.entries.length;r++)t.entries[r]=R(t.entries[r],e,n);else if(t instanceof cn)for(let r=0;r<t.entries.length;r++)t.entries[r].value=R(t.entries[r].value,e,n);else if(t instanceof Xn)t.condition=R(t.condition,e,n),t.trueCase=R(t.trueCase,e,n),t.falseCase!==null&&(t.falseCase=R(t.falseCase,e,n));else if(t instanceof qs)t.expr=R(t.expr,e,n);else if(t instanceof va)t.value=R(t.value,e,n);else if(t instanceof wa)for(let r=0;r<t.expressions.length;r++)t.expressions[r]=R(t.expressions[r],e,n);else if(t instanceof Vi)t.condition=R(t.condition,e,n);else if(t instanceof Ea)t.tag=R(t.tag,e,n),t.template.expressions=t.template.expressions.map(r=>R(r,e,n));else if(t instanceof jr)if(Array.isArray(t.body))for(let r=0;r<t.body.length;r++)ou(t.body[r],e,n);else t.body=R(t.body,e,n);else if(!(t instanceof se)){if(!(t instanceof Xt||t instanceof Hr||t instanceof tt))throw new Error(`Unhandled expression kind: ${t.constructor.name}`)}return e(t,n)}function ou(t,e,n){if(t instanceof Yt)t.expr=R(t.expr,e,n);else if(t instanceof wt)t.value=R(t.value,e,n);else if(t instanceof st)t.value!==void 0&&(t.value=R(t.value,e,n));else if(t instanceof xa){t.condition=R(t.condition,e,n);for(let r of t.trueCase)ou(r,e,n);for(let r of t.falseCase)ou(r,e,n)}else throw new Error(`Unhandled statement kind: ${t.constructor.name}`)}function Gv(t){return t instanceof tt&&typeof t.value=="string"}var _e=class _e{constructor(){this.debugListId=_e.nextListId++,this.head={kind:h.ListEnd,next:null,prev:null,debugListId:this.debugListId},this.tail={kind:h.ListEnd,next:null,prev:null,debugListId:this.debugListId},this.head.next=this.tail,this.tail.prev=this.head}push(e){if(Array.isArray(e)){for(let r of e)this.push(r);return}_e.assertIsNotEnd(e),_e.assertIsUnowned(e),e.debugListId=this.debugListId;let n=this.tail.prev;e.prev=n,n.next=e,e.next=this.tail,this.tail.prev=e}prepend(e){if(e.length===0)return;for(let s of e)_e.assertIsNotEnd(s),_e.assertIsUnowned(s),s.debugListId=this.debugListId;let n=this.head.next,r=this.head;for(let s of e)r.next=s,s.prev=r,r=s;r.next=n,n.prev=r}*[Symbol.iterator](){let e=this.head.next;for(;e!==this.tail;){_e.assertIsOwned(e,this.debugListId);let n=e.next;yield e,e=n}}*reversed(){let e=this.tail.prev;for(;e!==this.head;){_e.assertIsOwned(e,this.debugListId);let n=e.prev;yield e,e=n}}static replace(e,n){_e.assertIsNotEnd(e),_e.assertIsNotEnd(n),_e.assertIsOwned(e),_e.assertIsUnowned(n),n.debugListId=e.debugListId,e.prev!==null&&(e.prev.next=n,n.prev=e.prev),e.next!==null&&(e.next.prev=n,n.next=e.next),e.debugListId=null,e.prev=null,e.next=null}static replaceWithMany(e,n){if(n.length===0){_e.remove(e);return}_e.assertIsNotEnd(e),_e.assertIsOwned(e);let r=e.debugListId;e.debugListId=null;for(let c of n)_e.assertIsNotEnd(c),_e.assertIsUnowned(c);let{prev:s,next:i}=e;e.prev=null,e.next=null;let o=s;for(let c of n)this.assertIsUnowned(c),c.debugListId=r,o.next=c,c.prev=o,c.next=null,o=c;let a=n[0],u=o;s!==null&&(s.next=a,a.prev=s),i!==null&&(i.prev=u,u.next=i)}static remove(e){_e.assertIsNotEnd(e),_e.assertIsOwned(e),e.prev.next=e.next,e.next.prev=e.prev,e.debugListId=null,e.prev=null,e.next=null}static insertBefore(e,n){if(Array.isArray(e)){for(let r of e)this.insertBefore(r,n);return}if(_e.assertIsOwned(n),n.prev===null)throw new Error("AssertionError: illegal operation on list start");_e.assertIsNotEnd(e),_e.assertIsUnowned(e),e.debugListId=n.debugListId,e.prev=null,n.prev.next=e,e.prev=n.prev,e.next=n,n.prev=e}static insertAfter(e,n){if(_e.assertIsOwned(n),n.next===null)throw new Error("AssertionError: illegal operation on list end");_e.assertIsNotEnd(e),_e.assertIsUnowned(e),e.debugListId=n.debugListId,n.next.prev=e,e.next=n.next,e.prev=n,n.next=e}static assertIsUnowned(e){if(e.debugListId!==null)throw new Error(`AssertionError: illegal operation on owned node: ${h[e.kind]}`)}static assertIsOwned(e,n){if(e.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${h[e.kind]}`);if(n!==void 0&&e.debugListId!==n)throw new Error(`AssertionError: node belongs to the wrong list (expected ${n}, actual ${e.debugListId})`)}static assertIsNotEnd(e){if(e.kind===h.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}};_e.nextListId=0;var N=_e,St=class{constructor(){this.slot=null}},K1=new Set([h.Element,h.ElementStart,h.Container,h.ContainerStart,h.Template,h.RepeaterCreate]);function xr(t){return K1.has(t.kind)}function e_(t,e,n,r,s,i){return{kind:h.ElementStart,xref:e,tag:t,handle:new St,attributes:null,localRefs:[],nonBindable:!1,namespace:n,i18nPlaceholder:r,startSourceSpan:s,wholeSourceSpan:i,...Dn,...K}}function Pu(t,e,n,r,s,i,o,a){return{kind:h.Template,xref:t,templateKind:e,attributes:null,tag:n,handle:new St,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a,...Dn,...K}}function t_(t,e,n,r,s,i,o,a,u,c){return{kind:h.RepeaterCreate,attributes:null,xref:t,handle:new St,emptyView:e,track:r,trackByFn:null,tag:n,emptyTag:i,emptyAttributes:null,functionNameSuffix:"For",namespace:Ke.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:s,usesComponentInstance:!1,i18nPlaceholder:o,emptyI18nPlaceholder:a,startSourceSpan:u,wholeSourceSpan:c,...Dn,...K,...bt,numSlotsUsed:e===null?2:3}}function n_(t,e){return{kind:h.ElementEnd,xref:t,sourceSpan:e,...K}}function r_(t){return{kind:h.DisableBindings,xref:t,...K}}function s_(t){return{kind:h.EnableBindings,xref:t,...K}}function zv(t,e,n,r){return{kind:h.Text,xref:t,handle:new St,initialValue:e,icuPlaceholder:n,sourceSpan:r,...Dn,...K}}function Kh(t,e,n,r,s,i,o,a,u){let c=new N;return c.push(s),{kind:h.Listener,target:t,targetSlot:e,tag:r,hostListener:a,name:n,handlerOps:c,handlerFnName:null,consumesDollarEvent:!1,isAnimationListener:i!==null,animationPhase:i,eventTarget:o,sourceSpan:u,...K}}function Xv(t,e,n,r,s,i){let o=new N;return o.push(s),{kind:h.TwoWayListener,target:t,targetSlot:e,tag:r,name:n,handlerOps:o,handlerFnName:null,sourceSpan:i,...K}}function Zv(t,e,n){return{kind:h.Pipe,xref:t,handle:e,name:n,...K,...Dn}}function i_(t){return{kind:h.Namespace,active:t,...K}}function o_(t){return{kind:h.ProjectionDef,def:t,...K}}function a_(t,e,n,r,s){return{kind:h.Projection,xref:t,handle:new St,selector:e,i18nPlaceholder:n,fallbackView:r,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:s,...K,...Dn,numSlotsUsed:r===null?1:2}}function jt(t,e,n,r,s,i,o,a){return{kind:h.ExtractedAttribute,target:t,bindingKind:e,namespace:n,name:r,expression:s,i18nContext:i,i18nMessage:o,securityContext:a,trustedValueFn:null,...K}}function u_(t,e,n,r,s,i){return{kind:h.Defer,xref:t,handle:new St,mainView:e,mainSlot:n,loadingView:null,loadingSlot:null,loadingConfig:null,loadingMinimumTime:null,loadingAfterTime:null,placeholderView:null,placeholderSlot:null,placeholderConfig:null,placeholderMinimumTime:null,errorView:null,errorSlot:null,ownResolverFn:r,resolverFn:s,sourceSpan:i,...K,...Dn,numSlotsUsed:2}}function Nr(t,e,n,r){return{kind:h.DeferOn,defer:t,trigger:e,prefetch:n,sourceSpan:r,...K}}function c_(t,e,n){return{kind:h.DeclareLet,xref:t,declaredName:e,sourceSpan:n,handle:new St,...Dn,...K}}function l_(t,e,n,r,s,i,o,a){return{kind:h.I18nMessage,xref:t,i18nContext:e,i18nBlock:n,message:r,messagePlaceholder:s,params:i,postprocessingParams:o,needsPostprocessing:a,subMessages:[],...K}}function qu(t,e,n,r){return{kind:h.I18nStart,xref:t,handle:new St,root:n??t,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:r,...K,...Dn}}function Lu(t,e){return{kind:h.I18nEnd,xref:t,sourceSpan:e,...K}}function h_(t,e,n,r){return{kind:h.IcuStart,xref:t,message:e,messagePlaceholder:n,context:null,sourceSpan:r,...K}}function p_(t){return{kind:h.IcuEnd,xref:t,...K}}function f_(t,e,n){return{kind:h.IcuPlaceholder,xref:t,name:e,strings:n,expressionPlaceholders:[],...K}}function jc(t,e,n,r,s){if(n===null&&t!==mr.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return{kind:h.I18nContext,contextKind:t,xref:e,i18nBlock:n,message:r,sourceSpan:s,params:new Map,postprocessingParams:new Map,...K}}function Yv(t,e,n){return{kind:h.I18nAttributes,xref:t,handle:e,target:n,i18nAttributesConfig:null,...K,...Dn}}function d_(t,e,n,r,s,i){return{kind:h.HostProperty,name:t,expression:e,isAnimationTrigger:n,i18nContext:r,securityContext:s,sanitizer:null,sourceSpan:i,...bt,...K}}var Qv="CTX_REF_MARKER",M;(function(t){t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both"})(M||(M={}));var au=class{constructor(e,n,r){this.componentName=e,this.pool=n,this.compatibility=r,this.kind=M.Both,this.nextXrefId=0}allocateXrefId(){return this.nextXrefId++}},Eo=class extends au{constructor(e,n,r,s,i,o,a){super(e,n,r),this.relativeContextFilePath=s,this.i18nUseExternalIds=i,this.deferMeta=o,this.allDeferrableDepsFn=a,this.kind=M.Tmpl,this.fnSuffix="Template",this.views=new Map,this.contentSelectors=null,this.consts=[],this.constsInitializers=[],this.root=new Tn(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}allocateView(e){let n=new Tn(this,this.allocateXrefId(),e);return this.views.set(n.xref,n),n}get units(){return this.views.values()}addConst(e,n){for(let s=0;s<this.consts.length;s++)if(this.consts[s].isEquivalent(e))return s;let r=this.consts.length;return this.consts.push(e),n&&this.constsInitializers.push(...n),r}},uu=class{constructor(e){this.xref=e,this.create=new N,this.update=new N,this.fnName=null,this.vars=null}*ops(){for(let e of this.create)if(yield e,e.kind===h.Listener||e.kind===h.TwoWayListener)for(let n of e.handlerOps)yield n;for(let e of this.update)yield e}},Tn=class extends uu{constructor(e,n,r){super(n),this.job=e,this.parent=r,this.contextVariables=new Map,this.aliases=new Set,this.decls=null}},cu=class extends au{constructor(e,n,r){super(e,n,r),this.kind=M.Host,this.fnSuffix="HostBindings",this.root=new Hl(this)}get units(){return[this.root]}},Hl=class extends uu{constructor(e){super(0),this.job=e,this.attributes=null}};function m_(t){for(let e of t.units)for(let n of e.ops())je(n,g_,pe.None)}function g_(t){if(t instanceof ft&&t.fn instanceof Je&&t.fn.name==="$any"){if(t.args.length!==1)throw new Error("The $any builtin function expects exactly one argument.");return t.args[0]}return t}function v_(t){let e=new Map;for(let n of t.units)for(let r of n.create)r.kind===h.I18nContext&&e.set(r.xref,r);for(let n of t.units)for(let r of n.update)r.kind===h.I18nExpression&&E_(e,r)&&N.insertAfter(Q1(r.i18nOwner,r.handle,null),r)}function E_(t,e){if(e.next?.kind!==h.I18nExpression)return!0;let n=t.get(e.context),r=t.get(e.next.context);if(n===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the I18nExpressionOp's context");if(r===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the next I18nExpressionOp's context");return n.i18nBlock!==null?n.i18nBlock!==r.i18nBlock:e.i18nOwner!==e.next.i18nOwner}function w_(t){for(let e of t.units){let n=e.update.head,r=[],s=null;for(let i of e.create){if(i.kind===h.I18nStart)s={blockXref:i.xref,lastSlotConsumer:i.xref};else if(i.kind===h.I18nEnd){for(let o of r)o.target=s.lastSlotConsumer,N.insertBefore(o,n);r.length=0,s=null}if(si(i))for(s!==null&&(s.lastSlotConsumer=i.xref);n.next!==null;){if(s!==null&&n.kind===h.I18nExpression&&n.usage===Qr.I18nText&&n.i18nOwner===s.blockXref){let o=n;n=n.next,N.remove(o),r.push(o);continue}if(Qa(n)&&n.target!==i.xref)break;n=n.next}}}}function ep(t){let e=new Map;for(let n of t.create)si(n)&&(e.set(n.xref,n),n.kind===h.RepeaterCreate&&n.emptyView!==null&&e.set(n.emptyView,n));return e}function y_(t){for(let e of t.units){let n=ep(e);for(let r of e.ops())switch(r.kind){case h.Attribute:x_(e,r,n);break;case h.Property:if(!r.isAnimationTrigger){let s;r.i18nMessage!==null&&r.templateKind===null?s=V.I18n:r.isStructuralTemplateAttribute?s=V.Template:s=V.Property,N.insertBefore(jt(r.target,s,null,r.name,null,null,null,r.securityContext),ws(n,r.target))}break;case h.TwoWayProperty:N.insertBefore(jt(r.target,V.TwoWayProperty,null,r.name,null,null,null,r.securityContext),ws(n,r.target));break;case h.StyleProp:case h.ClassProp:e.job.compatibility===xt.TemplateDefinitionBuilder&&r.expression instanceof go&&N.insertBefore(jt(r.target,V.Property,null,r.name,null,null,null,be.STYLE),ws(n,r.target));break;case h.Listener:if(!r.isAnimationListener){let s=jt(r.target,V.Property,null,r.name,null,null,null,be.NONE);if(t.kind===M.Host){if(t.compatibility)break;e.create.push(s)}else N.insertBefore(s,ws(n,r.target))}break;case h.TwoWayListener:if(t.kind!==M.Host){let s=jt(r.target,V.Property,null,r.name,null,null,null,be.NONE);N.insertBefore(s,ws(n,r.target))}break}}}function ws(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}function x_(t,e,n){if(e.expression instanceof Re)return;let r=e.isTextAttribute||e.expression.isConstant();if(t.job.compatibility===xt.TemplateDefinitionBuilder&&(r&&=e.isTextAttribute),r){let s=jt(e.target,e.isStructuralTemplateAttribute?V.Template:V.Attribute,e.namespace,e.name,e.expression,e.i18nContext,e.i18nMessage,e.securityContext);if(t.job.kind===M.Host)t.create.push(s);else{let i=ws(n,e.target);N.insertBefore(s,i)}N.remove(e)}}function S_(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}function b_(t){let e=new Map;for(let n of t.units)for(let r of n.create)xr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.ops())if(r.kind===h.Binding)switch(r.bindingKind){case V.Attribute:if(r.name==="ngNonBindable"){N.remove(r);let s=S_(e,r.target);s.nonBindable=!0}else{let[s,i]=ln(r.name);N.replace(r,z1(r.target,s,i,r.expression,r.securityContext,r.isTextAttribute,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan))}break;case V.Property:case V.Animation:t.kind===M.Host?N.replace(r,d_(r.name,r.expression,r.bindingKind===V.Animation,r.i18nContext,r.securityContext,r.sourceSpan)):N.replace(r,V1(r.target,r.name,r.expression,r.bindingKind===V.Animation,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case V.TwoWayProperty:if(!(r.expression instanceof ve))throw new Error(`Expected value of two-way property binding "${r.name}" to be an expression`);N.replace(r,U1(r.target,r.name,r.expression,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case V.I18n:case V.ClassName:case V.StyleProperty:throw new Error(`Unhandled binding of kind ${V[r.bindingKind]}`)}}var T_=new Set([m.attribute,m.classProp,m.element,m.elementContainer,m.elementContainerEnd,m.elementContainerStart,m.elementEnd,m.elementStart,m.hostProperty,m.i18nExp,m.listener,m.listener,m.property,m.styleProp,m.stylePropInterpolate1,m.stylePropInterpolate2,m.stylePropInterpolate3,m.stylePropInterpolate4,m.stylePropInterpolate5,m.stylePropInterpolate6,m.stylePropInterpolate7,m.stylePropInterpolate8,m.stylePropInterpolateV,m.syntheticHostListener,m.syntheticHostProperty,m.templateCreate,m.twoWayProperty,m.twoWayListener,m.declareLet]),C_=256;function A_(t){for(let e of t.units)ag(e.create),ag(e.update)}function ag(t){let e=null;for(let n of t){if(n.kind!==h.Statement||!(n.statement instanceof Yt)){e=null;continue}if(!(n.statement.expr instanceof ft)||!(n.statement.expr.fn instanceof Hr)){e=null;continue}let r=n.statement.expr.fn.value;if(!T_.has(r)){e=null;continue}if(e!==null&&e.instruction===r&&e.length<C_){let s=e.expression.callFn(n.statement.expr.args,n.statement.expr.sourceSpan,n.statement.expr.pure);e.expression=s,e.op.statement=s.toStmt(),e.length++,N.remove(n)}else e={op:n,instruction:r,expression:n.statement.expr,length:1}}}function __(t){for(let e of t.units)for(let n of e.update)n.kind===h.Attribute&&n.expression instanceof Re&&n.expression.strings.length===2&&n.expression.strings.every(s=>s==="")&&(n.expression=n.expression.expressions[0])}function k_(t){for(let e of t.units)for(let n of e.ops()){if(n.kind!==h.Conditional)continue;let r,s=n.conditions.findIndex(o=>o.expr===null);if(s>=0){let o=n.conditions.splice(s,1)[0].targetSlot;r=new su(o)}else r=w(-1);let i=n.test==null?null:new hn(n.test,t.allocateXrefId());for(let o=n.conditions.length-1;o>=0;o--){let a=n.conditions[o];if(a.expr!==null){if(i!==null){let u=o===0?i:new Jn(i.xref);a.expr=new he(B.Identical,u,a.expr)}else if(a.alias!==null){let u=t.allocateXrefId();a.expr=new hn(a.expr,u),n.contextValue=new Jn(u)}r=new Xn(a.expr,new su(a.targetSlot),r)}}n.processed=r,n.conditions=[]}}var I_=new Map([["&&",B.And],[">",B.Bigger],[">=",B.BiggerEquals],["|",B.BitwiseOr],["&",B.BitwiseAnd],["/",B.Divide],["==",B.Equals],["===",B.Identical],["<",B.Lower],["<=",B.LowerEquals],["-",B.Minus],["%",B.Modulo],["*",B.Multiply],["!=",B.NotEquals],["!==",B.NotIdentical],["??",B.NullishCoalesce],["||",B.Or],["+",B.Plus]]);function Jv(t){let e=new Map([["svg",Ke.SVG],["math",Ke.Math]]);return t===null?Ke.HTML:e.get(t)??Ke.HTML}function N_(t){let e=new Map([["svg",Ke.SVG],["math",Ke.Math]]);for(let[n,r]of e.entries())if(r===t)return n;return null}function D_(t,e){return e===Ke.HTML?t:`:${N_(e)}:${t}`}function Qs(t){return Array.isArray(t)?ge(t.map(Qs)):w(t)}function P_(t){let e=new Map;for(let n of t.units)for(let r of n.create)if(r.kind===h.ExtractedAttribute){let s=e.get(r.target)||new jl(t.compatibility);e.set(r.target,s),s.add(r.bindingKind,r.name,r.expression,r.namespace,r.trustedValueFn),N.remove(r)}if(t instanceof Eo)for(let n of t.units)for(let r of n.create)if(r.kind==h.Projection){let s=e.get(r.xref);if(s!==void 0){let i=Wl(s);i.entries.length>0&&(r.attributes=i)}}else xr(r)&&(r.attributes=ug(t,e,r.xref),r.kind===h.RepeaterCreate&&r.emptyView!==null&&(r.emptyAttributes=ug(t,e,r.emptyView)));else if(t instanceof cu)for(let[n,r]of e.entries()){if(n!==t.root.xref)throw new Error("An attribute would be const collected into the host binding's template function, but is not associated with the root xref.");let s=Wl(r);s.entries.length>0&&(t.root.attributes=s)}}function ug(t,e,n){let r=e.get(n);if(r!==void 0){let s=Wl(r);if(s.entries.length>0)return t.addConst(s)}return null}var ds=Object.freeze([]),jl=class{get attributes(){return this.byKind.get(V.Attribute)??ds}get classes(){return this.byKind.get(V.ClassName)??ds}get styles(){return this.byKind.get(V.StyleProperty)??ds}get bindings(){return this.propertyBindings??ds}get template(){return this.byKind.get(V.Template)??ds}get i18n(){return this.byKind.get(V.I18n)??ds}constructor(e){this.compatibility=e,this.known=new Map,this.byKind=new Map,this.propertyBindings=null,this.projectAs=null}isKnown(e,n){let r=this.known.get(e)??new Set;return this.known.set(e,r),r.has(n)?!0:(r.add(n),!1)}add(e,n,r,s,i){if(!(this.compatibility===xt.TemplateDefinitionBuilder&&(e===V.Attribute||e===V.ClassName||e===V.StyleProperty))&&this.isKnown(e,n))return;if(n==="ngProjectAs"){if(r===null||!(r instanceof tt)||r.value==null||typeof r.value?.toString()!="string")throw Error("ngProjectAs must have a string literal value");this.projectAs=r.value.toString()}let a=this.arrayFor(e);if(a.push(...q_(s,n)),e===V.Attribute||e===V.StyleProperty){if(r===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(i!==null){if(!Gv(r))throw Error("AssertionError: extracted attribute value should be string literal");a.push(nA(i,new ll([new hl(r.value)],[]),void 0,r.sourceSpan))}else a.push(r)}}arrayFor(e){return e===V.Property||e===V.TwoWayProperty?(this.propertyBindings??=[],this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function q_(t,e){let n=w(e);return t?[w(0),w(t),n]:[n]}function Wl({attributes:t,bindings:e,classes:n,i18n:r,projectAs:s,styles:i,template:o}){let a=[...t];if(s!==null){let u=Oh(s)[0];a.push(w(5),Qs(u))}return n.length>0&&a.push(w(1),...n),i.length>0&&a.push(w(2),...i),e.length>0&&a.push(w(3),...e),o.length>0&&a.push(w(4),...o),r.length>0&&a.push(w(6),...r),ge(a)}function L_(t){let e=new Map;for(let n of t.units){for(let r of n.create)r.kind===h.I18nAttributes&&e.set(r.target,r);for(let r of n.update)switch(r.kind){case h.Property:case h.Attribute:if(r.i18nContext===null||!(r.expression instanceof Re))continue;let s=e.get(r.target);if(s===void 0)throw new Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(s.target!==r.target)throw new Error("AssertionError: Expected i18nAttributes target element to match binding target element");let i=[];for(let o=0;o<r.expression.expressions.length;o++){let a=r.expression.expressions[o];if(r.expression.i18nPlaceholders.length!==r.expression.expressions.length)throw new Error(`AssertionError: An i18n attribute binding instruction requires the same number of expressions and placeholders, but found ${r.expression.i18nPlaceholders.length} placeholders and ${r.expression.expressions.length} expressions`);i.push(Wv(r.i18nContext,s.target,s.xref,s.handle,a,null,r.expression.i18nPlaceholders[o],Gs.Creation,Qr.I18nAttribute,r.name,r.sourceSpan))}N.replaceWithMany(r,i);break}}}function M_(t){for(let e of t.units)for(let n of e.create)if(n.kind===h.Defer){if(n.resolverFn!==null)continue;if(n.ownResolverFn!==null){if(n.handle.slot===null)throw new Error("AssertionError: slot must be assigned before extracting defer deps functions");let r=e.fnName?.replace("_Template","");n.resolverFn=t.pool.getSharedFunctionReference(n.ownResolverFn,`${r}_Defer_${n.handle.slot}_DepsFn`,!1)}}}function R_(t){let e=new Map;for(let s of t.units)for(let i of s.ops())switch(i.kind){case h.Binding:case h.Property:case h.Attribute:case h.ExtractedAttribute:if(i.i18nMessage===null)continue;if(!e.has(i.i18nMessage)){let o=jc(mr.Attr,t.allocateXrefId(),null,i.i18nMessage,null);s.create.push(o),e.set(i.i18nMessage,o.xref)}i.i18nContext=e.get(i.i18nMessage);break}let n=new Map;for(let s of t.units)for(let i of s.create)switch(i.kind){case h.I18nStart:if(i.xref===i.root){let o=jc(mr.RootI18n,t.allocateXrefId(),i.xref,i.message,null);s.create.push(o),i.context=o.xref,n.set(i.xref,o)}break}for(let s of t.units)for(let i of s.create)if(i.kind===h.I18nStart&&i.xref!==i.root){let o=n.get(i.root);if(o===void 0)throw Error("AssertionError: Root i18n block i18n context should have been created.");i.context=o.xref,n.set(i.xref,o)}let r=null;for(let s of t.units)for(let i of s.create)switch(i.kind){case h.I18nStart:r=i;break;case h.I18nEnd:r=null;break;case h.IcuStart:if(r===null)throw Error("AssertionError: Unexpected ICU outside of an i18n block.");if(i.message.id!==r.message.id){let o=jc(mr.Icu,t.allocateXrefId(),r.root,i.message,null);s.create.push(o),i.context=o.xref}else i.context=r.context,n.get(r.xref).contextKind=mr.Icu;break}}function O_(t){let e=new Map;for(let n of t.units)for(let r of n.update.reversed())if(r.kind===h.Binding&&r.isTextAttribute){let s=e.get(r.target)||new Set;s.has(r.name)&&t.compatibility===xt.TemplateDefinitionBuilder&&(r.name==="style"||r.name==="class")&&N.remove(r),s.add(r.name),e.set(r.target,s)}}function B_(t){for(let e of t.units)for(let n of e.create)n.kind===h.Defer&&(n.placeholderMinimumTime!==null&&(n.placeholderConfig=new vo(Qs([n.placeholderMinimumTime]))),(n.loadingMinimumTime!==null||n.loadingAfterTime!==null)&&(n.loadingConfig=new vo(Qs([n.loadingMinimumTime,n.loadingAfterTime]))))}function F_(t){let e=new Map;function n(s){if(e.has(s.xref))return e.get(s.xref);let i=new Gl;for(let o of s.create)if(!(!xr(o)||o.localRefs===null)){if(!Array.isArray(o.localRefs))throw new Error("LocalRefs were already processed, but were needed to resolve defer targets.");for(let a of o.localRefs)a.target===""&&i.targets.set(a.name,{xref:o.xref,slot:o.handle})}return e.set(s.xref,i),i}function r(s,i,o){switch(i.trigger.kind){case ke.Idle:case ke.Immediate:case ke.Timer:return;case ke.Hover:case ke.Interaction:case ke.Viewport:if(i.trigger.targetName===null){if(o===null)throw new Error("defer on trigger with no target name must have a placeholder block");let c=t.views.get(o);if(c==null)throw new Error("AssertionError: could not find placeholder view for defer on trigger");for(let l of c.create)if(si(l)&&(xr(l)||l.kind===h.Projection)){i.trigger.targetXref=l.xref,i.trigger.targetView=o,i.trigger.targetSlotViewSteps=-1,i.trigger.targetSlot=l.handle;return}return}let a=o!==null?t.views.get(o):s,u=o!==null?-1:0;for(;a!==null;){let c=n(a);if(c.targets.has(i.trigger.targetName)){let{xref:l,slot:p}=c.targets.get(i.trigger.targetName);i.trigger.targetXref=l,i.trigger.targetView=a.xref,i.trigger.targetSlotViewSteps=u,i.trigger.targetSlot=p;return}a=a.parent!==null?t.views.get(a.parent):null,u++}break;default:throw new Error(`Trigger kind ${i.trigger.kind} not handled`)}}for(let s of t.units){let i=new Map;for(let o of s.create)switch(o.kind){case h.Defer:i.set(o.xref,o);break;case h.DeferOn:let a=i.get(o.defer);r(s,o,a.placeholderView);break}}}var Gl=class{constructor(){this.targets=new Map}},$_=new Map([[h.ElementEnd,[h.ElementStart,h.Element]],[h.ContainerEnd,[h.ContainerStart,h.Container]],[h.I18nEnd,[h.I18nStart,h.I18n]]]),V_=new Set([h.Pipe]);function U_(t){for(let e of t.units)for(let n of e.create){let r=$_.get(n.kind);if(r===void 0)continue;let[s,i]=r,o=n.prev;for(;o!==null&&V_.has(o.kind);)o=o.prev;o!==null&&o.kind===s&&(o.kind=i,N.remove(n))}}function H_(t){for(let e of t.units)for(let n of e.ops())je(n,r=>Z_(r,{job:t}),pe.None),je(n,Y_,pe.None)}var b$=[ft,Zt,cn,yr,es].map(t=>t.constructor.name);function Bt(t){return t instanceof Ms?Bt(t.expr):t instanceof he?Bt(t.lhs)||Bt(t.rhs):t instanceof Xn?t.falseCase&&Bt(t.falseCase)?!0:Bt(t.condition)||Bt(t.trueCase):t instanceof Vi?Bt(t.condition):t instanceof hn?Bt(t.expr):t instanceof Lt?Bt(t.receiver):t instanceof Zn?Bt(t.receiver)||Bt(t.index):t instanceof ft||t instanceof Zt||t instanceof cn||t instanceof yr||t instanceof es}function j_(t){let e=new Set;return R(t,n=>(n instanceof hn&&e.add(n.xref),n),pe.None),e}function W_(t,e,n){return R(t,r=>{if(r instanceof hn&&e.has(r.xref)){let s=new Jn(r.xref);return n.job.compatibility===xt.TemplateDefinitionBuilder?new hn(s,s.xref):s}return r},pe.None),t}function ms(t,e,n){let r;if(Bt(t)){let s=n.job.allocateXrefId();r=[new hn(t,s),new Jn(s)]}else r=[t,t.clone()],W_(r[1],j_(r[0]),n);return new Ys(r[0],e(r[1]))}function G_(t){return t instanceof Xs||t instanceof Zs||t instanceof yr}function z_(t){return t instanceof Lt||t instanceof Zn||t instanceof ft}function Kv(t){return G_(t)||z_(t)}function X_(t){if(Kv(t)&&t.receiver instanceof Ys){let e=t.receiver;for(;e.expr instanceof Ys;)e=e.expr;return e}return null}function Z_(t,e){if(!Kv(t))return t;let n=X_(t);if(n){if(t instanceof ft)return n.expr=n.expr.callFn(t.args),t.receiver;if(t instanceof Lt)return n.expr=n.expr.prop(t.name),t.receiver;if(t instanceof Zn)return n.expr=n.expr.key(t.index),t.receiver;if(t instanceof yr)return n.expr=ms(n.expr,r=>r.callFn(t.args),e),t.receiver;if(t instanceof Xs)return n.expr=ms(n.expr,r=>r.prop(t.name),e),t.receiver;if(t instanceof Zs)return n.expr=ms(n.expr,r=>r.key(t.index),e),t.receiver}else{if(t instanceof yr)return ms(t.receiver,r=>r.callFn(t.args),e);if(t instanceof Xs)return ms(t.receiver,r=>r.prop(t.name),e);if(t instanceof Zs)return ms(t.receiver,r=>r.key(t.index),e)}return t}function Y_(t){return t instanceof Ys?new Xn(new he(B.Equals,t.guard,Ui),Ui,t.expr):t}var cg="\uFFFD",Q_="#",J_="*",K_="/",ek=":",tk="[",nk="]",rk="|";function sk(t){let e=new Map,n=new Map,r=new Map;for(let i of t.units)for(let o of i.create)switch(o.kind){case h.I18nContext:let a=ik(t,o);i.create.push(a),e.set(o.xref,a),r.set(o.xref,o);break;case h.I18nStart:n.set(o.xref,o);break}let s=null;for(let i of t.units)for(let o of i.create)switch(o.kind){case h.IcuStart:s=o,N.remove(o);let a=r.get(o.context);if(a.contextKind!==mr.Icu)continue;let u=n.get(a.i18nBlock);if(u.context===a.xref)continue;let c=n.get(u.root),l=e.get(c.context);if(l===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let p=e.get(a.xref);p.messagePlaceholder=o.messagePlaceholder,l.subMessages.push(p.xref);break;case h.IcuEnd:s=null,N.remove(o);break;case h.IcuPlaceholder:if(s===null||s.context==null)throw Error("AssertionError: Unexpected ICU placeholder outside of i18n context");e.get(s.context).postprocessingParams.set(o.name,w(ok(o))),N.remove(o);break}}function ik(t,e,n){let r=lg(e.params),s=lg(e.postprocessingParams),i=[...e.params.values()].some(o=>o.length>1);return l_(t.allocateXrefId(),e.xref,e.i18nBlock,e.message,n??null,r,s,i)}function ok(t){if(t.strings.length!==t.expressionPlaceholders.length+1)throw Error(`AssertionError: Invalid ICU placeholder with ${t.strings.length} strings and ${t.expressionPlaceholders.length} expressions`);let e=t.expressionPlaceholders.map(As);return t.strings.flatMap((n,r)=>[n,e[r]||""]).join("")}function lg(t){let e=new Map;for(let[n,r]of t){let s=ak(r);s!==null&&e.set(n,w(s))}return e}function ak(t){if(t.length===0)return null;let e=t.map(n=>As(n));return e.length===1?e[0]:`${tk}${e.join(rk)}${nk}`}function As(t){if(t.flags&me.ElementTag&&t.flags&me.TemplateTag){if(typeof t.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let s=As({...t,value:t.value.element,flags:t.flags&~me.TemplateTag}),i=As({...t,value:t.value.template,flags:t.flags&~me.ElementTag});return t.flags&me.OpenTag&&t.flags&me.CloseTag?`${i}${s}${i}`:t.flags&me.CloseTag?`${s}${i}`:`${i}${s}`}if(t.flags&me.OpenTag&&t.flags&me.CloseTag)return`${As({...t,flags:t.flags&~me.CloseTag})}${As({...t,flags:t.flags&~me.OpenTag})}`;if(t.flags===me.None)return`${t.value}`;let e="",n="";t.flags&me.ElementTag?e=Q_:t.flags&me.TemplateTag&&(e=J_),e!==""&&(n=t.flags&me.CloseTag?K_:"");let r=t.subTemplateIndex===null?"":`${ek}${t.subTemplateIndex}`;return`${cg}${n}${e}${t.value}${r}${cg}`}function uk(t){for(let e of t.units){let n=new Map;for(let s of e.create){if(si(s)){if(s.handle.slot===null)throw new Error("AssertionError: expected slots to have been allocated before generating advance() calls")}else continue;n.set(s.xref,s.handle.slot)}let r=0;for(let s of e.update){let i=null;if(Qa(s)?i=s:it(s,a=>{i===null&&Qa(a)&&(i=a)}),i===null)continue;if(!n.has(i.target))throw new Error(`AssertionError: reference to unknown slot for target ${i.target}`);let o=n.get(i.target);if(r!==o){let a=o-r;if(a<0)throw new Error("AssertionError: slot counter should never need to move backwards");N.insertBefore(X1(a,i.sourceSpan),s),r=o}}}}function ck(t){let e=t.compatibility===xt.TemplateDefinitionBuilder,n=[],r=0;for(let s of t.units)for(let i of s.create)i.kind===h.Projection&&(n.push(i.selector),i.projectionSlotIndex=r++);if(n.length>0){let s=null;if(n.length>1||n[0]!=="*"){let i=n.map(o=>o==="*"?o:Oh(o));s=t.pool.getConstLiteral(Qs(i),e)}t.contentSelectors=t.pool.getConstLiteral(Qs(n),e),t.root.create.prepend([o_(s)])}}function lk(t){ki(t.root,null)}function ki(t,e){let n=hk(t,e);for(let r of t.create)switch(r.kind){case h.Template:ki(t.job.views.get(r.xref),n);break;case h.Projection:r.fallbackView!==null&&ki(t.job.views.get(r.fallbackView),n);break;case h.RepeaterCreate:ki(t.job.views.get(r.xref),n),r.emptyView&&ki(t.job.views.get(r.emptyView),n);break;case h.Listener:case h.TwoWayListener:r.handlerOps.prepend(zl(t,n,!0));break}t.update.prepend(zl(t,n,!1))}function hk(t,e){let n={view:t.xref,viewContextVariable:{kind:He.Context,name:null,view:t.xref},contextVariables:new Map,aliases:t.aliases,references:[],letDeclarations:[],parent:e};for(let r of t.contextVariables.keys())n.contextVariables.set(r,{kind:He.Identifier,name:null,identifier:r,local:!1});for(let r of t.create)switch(r.kind){case h.ElementStart:case h.Template:if(!Array.isArray(r.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let s=0;s<r.localRefs.length;s++)n.references.push({name:r.localRefs[s].name,targetId:r.xref,targetSlot:r.handle,offset:s,variable:{kind:He.Identifier,name:null,identifier:r.localRefs[s].name,local:!1}});break;case h.DeclareLet:n.letDeclarations.push({targetId:r.xref,targetSlot:r.handle,variable:{kind:He.Identifier,name:null,identifier:r.declaredName,local:!1}});break}return n}function zl(t,e,n){let r=[];e.view!==t.xref&&r.push(dr(t.job.allocateXrefId(),e.viewContextVariable,new eu,It.None));let s=t.job.views.get(e.view);for(let[i,o]of s.contextVariables){let a=new Qn(e.view),u=o===Qv?a:new Lt(a,o);r.push(dr(t.job.allocateXrefId(),e.contextVariables.get(i),u,It.None))}for(let i of s.aliases)r.push(dr(t.job.allocateXrefId(),i,i.expression.clone(),It.AlwaysInline));for(let i of e.references)r.push(dr(t.job.allocateXrefId(),i.variable,new Ja(i.targetId,i.targetSlot,i.offset),It.None));if(e.view!==t.xref||n)for(let i of e.letDeclarations)r.push(dr(t.job.allocateXrefId(),i.variable,new mo(i.targetId,i.targetSlot),It.None));return e.parent!==null&&r.push(...zl(t,e.parent,!1)),r}function pk(t){for(let e of t.units)for(let n of e.ops())je(n,r=>r instanceof vo?w(t.addConst(r.expr)):r,pe.None)}var hg="style.",pg="class.",fk="style!",fg="class!",dg="!important";function dk(t){for(let e of t.root.update)if(e.kind===h.Binding&&e.bindingKind===V.Property)if(e.name.endsWith(dg)&&(e.name=e.name.substring(0,e.name.length-dg.length)),e.name.startsWith(hg)){e.bindingKind=V.StyleProperty,e.name=e.name.substring(hg.length),mk(e.name)||(e.name=gk(e.name));let{property:n,suffix:r}=Wc(e.name);e.name=n,e.unit=r}else e.name.startsWith(fk)?(e.bindingKind=V.StyleProperty,e.name="style"):e.name.startsWith(pg)?(e.bindingKind=V.ClassName,e.name=Wc(e.name.substring(pg.length)).property):e.name.startsWith(fg)&&(e.bindingKind=V.ClassName,e.name=Wc(e.name.substring(fg.length)).property)}function mk(t){return t.startsWith("--")}function gk(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Wc(t){let e=t.indexOf("!important");e!==-1&&(t=e>0?t.substring(0,e):"");let n=null,r=t,s=t.lastIndexOf(".");return s>0&&(n=t.slice(s+1),r=t.substring(0,s)),{property:r,suffix:n}}function Xl(t,e=!1){return dt(Object.keys(t).map(n=>({key:n,quoted:e,value:t[n]})))}var Zl=class{visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){let n=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${n.join(" ")}}`}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(n=>n.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(n=>n.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,n){return this.formatPh(e.name)}formatPh(e){return`{${Ao(e,!1)}}`}},vk=new Zl;function eE(t){return t.visit(vk)}var re;(function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.Error=7]="Error"})(re||(re={}));var Ek=["var","let","as","null","undefined","true","false","if","else","this"],wo=class{tokenize(e){let n=new Yl(e),r=[],s=n.scanToken();for(;s!=null;)r.push(s),s=n.scanToken();return r}},pn=class{constructor(e,n,r,s,i){this.index=e,this.end=n,this.type=r,this.numValue=s,this.strValue=i}isCharacter(e){return this.type==re.Character&&this.numValue==e}isNumber(){return this.type==re.Number}isString(){return this.type==re.String}isOperator(e){return this.type==re.Operator&&this.strValue==e}isIdentifier(){return this.type==re.Identifier}isPrivateIdentifier(){return this.type==re.PrivateIdentifier}isKeyword(){return this.type==re.Keyword}isKeywordLet(){return this.type==re.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==re.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==re.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==re.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==re.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==re.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==re.Keyword&&this.strValue=="this"}isError(){return this.type==re.Error}toNumber(){return this.type==re.Number?this.numValue:-1}toString(){switch(this.type){case re.Character:case re.Identifier:case re.Keyword:case re.Operator:case re.PrivateIdentifier:case re.String:case re.Error:return this.strValue;case re.Number:return this.numValue.toString();default:return null}}};function mg(t,e,n){return new pn(t,e,re.Character,n,String.fromCharCode(n))}function wk(t,e,n){return new pn(t,e,re.Identifier,0,n)}function yk(t,e,n){return new pn(t,e,re.PrivateIdentifier,0,n)}function xk(t,e,n){return new pn(t,e,re.Keyword,0,n)}function Gc(t,e,n){return new pn(t,e,re.Operator,0,n)}function Sk(t,e,n){return new pn(t,e,re.String,0,n)}function bk(t,e,n){return new pn(t,e,re.Number,n,"")}function Tk(t,e,n){return new pn(t,e,re.Error,0,n)}var zc=new pn(-1,-1,re.Character,0,""),Yl=class{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?rt:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,r=this.peek,s=this.index;for(;r<=Iv;)if(++s>=n){r=rt;break}else r=e.charCodeAt(s);if(this.peek=r,this.index=s,s>=n)return null;if(gg(r))return this.scanIdentifier();if(yn(r))return this.scanNumber(s);let i=s;switch(r){case Es:return this.advance(),yn(this.peek)?this.scanNumber(i):mg(i,this.index,Es);case Gn:case un:case bn:case vt:case Ns:case Ts:case Gt:case fr:case kt:return this.scanCharacter(i,r);case oo:case io:return this.scanString();case Nv:return this.scanPrivateIdentifier();case Dv:case Xa:case WA:case On:case jA:case YA:return this.scanOperator(i,String.fromCharCode(r));case Vm:return this.scanQuestion(i);case bs:case hr:return this.scanComplexOperator(i,String.fromCharCode(r),Rr,"=");case ql:case Rr:return this.scanComplexOperator(i,String.fromCharCode(r),Rr,"=",Rr,"=");case za:return this.scanComplexOperator(i,"&",za,"&");case Um:return this.scanComplexOperator(i,"|",Um,"|");case Fv:for(;ao(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(r)}]`,0)}scanCharacter(e,n){return this.advance(),mg(e,this.index,n)}scanOperator(e,n){return this.advance(),Gc(e,this.index,n)}scanComplexOperator(e,n,r,s,i,o){this.advance();let a=n;return this.peek==r&&(this.advance(),a+=s),i!=null&&this.peek==i&&(this.advance(),a+=o),Gc(e,this.index,a)}scanIdentifier(){let e=this.index;for(this.advance();vg(this.peek);)this.advance();let n=this.input.substring(e,this.index);return Ek.indexOf(n)>-1?xk(e,this.index,n):wk(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!gg(this.peek))return this.error("Invalid character [#]",-1);for(;vg(this.peek);)this.advance();let n=this.input.substring(e,this.index);return yk(e,this.index,n)}scanNumber(e){let n=this.index===e,r=!1;for(this.advance();;){if(!yn(this.peek))if(this.peek===_o){if(!yn(this.input.charCodeAt(this.index-1))||!yn(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);r=!0}else if(this.peek===Es)n=!1;else if(Ck(this.peek)){if(this.advance(),Ak(this.peek)&&this.advance(),!yn(this.peek))return this.error("Invalid exponent",-1);n=!1}else break;this.advance()}let s=this.input.substring(e,this.index);r&&(s=s.replace(/_/g,""));let i=n?kk(s):parseFloat(s);return bk(e,this.index,i)}scanString(){let e=this.index,n=this.peek;this.advance();let r="",s=this.index,i=this.input;for(;this.peek!=n;)if(this.peek==Pi){r+=i.substring(s,this.index);let a;if(this.advance(),this.peek==Rv){let u=i.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(u))a=parseInt(u,16);else return this.error(`Invalid unicode escape [\\u${u}]`,0);for(let c=0;c<5;c++)this.advance()}else a=_k(this.peek),this.advance();r+=String.fromCharCode(a),s=this.index}else{if(this.peek==rt)return this.error("Unterminated quote",0);this.advance()}let o=i.substring(s,this.index);return this.advance(),Sk(e,this.index,r+o)}scanQuestion(e){this.advance();let n="?";return(this.peek===Vm||this.peek===Es)&&(n+=this.peek===Es?".":"?",this.advance()),Gc(e,this.index,n)}error(e,n){let r=this.index+n;return Tk(r,this.index,`Lexer Error: ${e} at column ${r} in expression [${this.input}]`)}};function gg(t){return Yr<=t&&t<=ko||ni<=t&&t<=Nu||t==_o||t==Wh}function vg(t){return uo(t)||yn(t)||t==_o||t==Wh}function Ck(t){return t==JA||t==zA}function Ak(t){return t==Xa||t==Dv}function _k(t){switch(t){case qv:return $r;case zh:return kv;case Lv:return jh;case Mv:return Hh;case Ov:return _v;default:return t}}function kk(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var Ql=class{constructor(e,n,r){this.strings=e,this.expressions=n,this.offsets=r}},Jl=class{constructor(e,n,r){this.templateBindings=e,this.warnings=n,this.errors=r}},lu=class{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,n,r,s=Sn){this._checkNoInterpolation(e,n,s);let i=this._stripComments(e),o=this._lexer.tokenize(i),a=new qr(e,n,r,o,1,this.errors,0).parseChain();return new Ht(a,e,n,r,this.errors)}parseBinding(e,n,r,s=Sn){let i=this._parseBindingAst(e,n,r,s);return new Ht(i,e,n,r,this.errors)}checkSimpleExpression(e){let n=new Kl;return e.visit(n),n.errors}parseSimpleBinding(e,n,r,s=Sn){let i=this._parseBindingAst(e,n,r,s),o=this.checkSimpleExpression(i);return o.length>0&&this._reportError(`Host binding expression cannot contain ${o.join(" ")}`,e,n),new Ht(i,e,n,r,this.errors)}_reportError(e,n,r,s){this.errors.push(new Wi(e,n,r,s))}_parseBindingAst(e,n,r,s){this._checkNoInterpolation(e,n,s);let i=this._stripComments(e),o=this._lexer.tokenize(i);return new qr(e,n,r,o,0,this.errors,0).parseChain()}parseTemplateBindings(e,n,r,s,i){let o=this._lexer.tokenize(n);return new qr(n,r,i,o,0,this.errors,0).parseTemplateBindings({source:e,span:new Nt(s,s+e.length)})}parseInterpolation(e,n,r,s,i=Sn){let{strings:o,expressions:a,offsets:u}=this.splitInterpolation(e,n,s,i);if(a.length===0)return null;let c=[];for(let l=0;l<a.length;++l){let p=a[l].text,f=this._stripComments(p),E=this._lexer.tokenize(f),y=new qr(e,n,r,E,0,this.errors,u[l]).parseChain();c.push(y)}return this.createInterpolationAst(o.map(l=>l.text),c,e,n,r)}parseInterpolationExpression(e,n,r){let s=this._stripComments(e),i=this._lexer.tokenize(s),o=new qr(e,n,r,i,0,this.errors,0).parseChain(),a=["",""];return this.createInterpolationAst(a,[o],e,n,r)}createInterpolationAst(e,n,r,s,i){let o=new Gr(0,r.length),a=new Xr(o,o.toAbsolute(i),e,n);return new Ht(a,r,s,i,this.errors)}splitInterpolation(e,n,r,s=Sn){let i=[],o=[],a=[],u=r?Ik(r):null,c=0,l=!1,p=!1,{start:f,end:E}=s;for(;c<e.length;)if(l){let y=c,I=y+f.length,k=this._getInterpolationEndIndex(e,E,I);if(k===-1){l=!1,p=!0;break}let A=k+E.length,C=e.substring(I,k);C.trim().length===0&&this._reportError("Blank expressions are not allowed in interpolated strings",e,`at column ${c} in`,n),o.push({text:C,start:y,end:A});let O=(u?.get(y)??y)+f.length;a.push(O),c=A,l=!1}else{let y=c;c=e.indexOf(f,c),c===-1&&(c=e.length);let I=e.substring(y,c);i.push({text:I,start:y,end:c}),l=!0}if(!l)if(p){let y=i[i.length-1];y.text+=e.substring(c),y.end=e.length}else i.push({text:e.substring(c),start:c,end:e.length});return new Ql(i,o,a)}wrapLiteralPrimitive(e,n,r){let s=new Gr(0,e==null?0:e.length);return new Ht(new Vt(s,s.toAbsolute(r),e),e,n,r,this.errors)}_stripComments(e){let n=this._commentStart(e);return n!=null?e.substring(0,n):e}_commentStart(e){let n=null;for(let r=0;r<e.length-1;r++){let s=e.charCodeAt(r),i=e.charCodeAt(r+1);if(s===On&&i==On&&n==null)return r;n===s?n=null:n==null&&qi(s)&&(n=s)}return null}_checkNoInterpolation(e,n,{start:r,end:s}){let i=-1,o=-1;for(let a of this._forEachUnquotedChar(e,0))if(i===-1)e.startsWith(r)&&(i=a);else if(o=this._getInterpolationEndIndex(e,s,a),o>-1)break;i>-1&&o>-1&&this._reportError(`Got interpolation (${r}${s}) where expression was expected`,e,`at column ${i} in`,n)}_getInterpolationEndIndex(e,n,r){for(let s of this._forEachUnquotedChar(e,r)){if(e.startsWith(n,s))return s;if(e.startsWith("//",s))return e.indexOf(n,s)}return-1}*_forEachUnquotedChar(e,n){let r=null,s=0;for(let i=n;i<e.length;i++){let o=e[i];qi(e.charCodeAt(i))&&(r===null||r===o)&&s%2===0?r=r===null?o:null:r===null&&(yield i),s=o==="\\"?s+1:0}}},_s;(function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"})(_s||(_s={}));var qr=class{constructor(e,n,r,s,i,o,a){this.input=e,this.location=n,this.absoluteOffset=r,this.tokens=s,this.parseFlags=i,this.errors=o,this.offset=a,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.context=_s.None,this.sourceSpanCache=new Map,this.index=0}peek(e){let n=this.index+e;return n<this.tokens.length?this.tokens[n]:zc}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,n){let r=this.currentEndIndex;if(n!==void 0&&n>this.currentEndIndex&&(r=n),e>r){let s=r;r=e,e=s}return new Gr(e,r)}sourceSpan(e,n){let r=`${e}@${this.inputIndex}:${n}`;return this.sourceSpanCache.has(r)||this.sourceSpanCache.set(r,this.span(e,n).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(r)}advance(){this.index++}withContext(e,n){this.context|=e;let r=n();return this.context^=e,r}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===zc?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],n=this.inputIndex;for(;this.index<this.tokens.length;){let r=this.parsePipe();if(e.push(r),this.consumeOptionalCharacter(kt))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(kt););else if(this.index<this.tokens.length){let s=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===s)break}}if(e.length===0){let r=this.offset,s=this.offset+this.input.length;return new lt(this.span(r,s),this.sourceSpan(r,s))}return e.length==1?e[0]:new Bs(this.span(n),this.sourceSpan(n),e)}parsePipe(){let e=this.inputIndex,n=this.parseExpression();if(this.consumeOptionalOperator("|")){this.parseFlags&1&&this.error("Cannot have a pipe in an action expression");do{let r=this.inputIndex,s=this.expectIdentifierOrKeyword(),i,o;s!==null?i=this.sourceSpan(r):(s="",o=this.next.index!==-1?this.next.index:this.input.length+this.offset,i=new Gr(o,o).toAbsolute(this.absoluteOffset));let a=[];for(;this.consumeOptionalCharacter(fr);)a.push(this.parseExpression());n=new Ia(this.span(e),this.sourceSpan(e,o),n,s,a,i)}while(this.consumeOptionalOperator("|"))}return n}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,n=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let r=this.parsePipe(),s;if(this.consumeOptionalCharacter(fr))s=this.parsePipe();else{let i=this.inputIndex,o=this.input.substring(e,i);this.error(`Conditional expression ${o} requires all 3 expressions`),s=new lt(this.span(e),this.sourceSpan(e))}return new Gi(this.span(e),this.sourceSpan(e),n,r,s)}else return n}parseLogicalOr(){let e=this.inputIndex,n=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let r=this.parseLogicalAnd();n=new $t(this.span(e),this.sourceSpan(e),"||",n,r)}return n}parseLogicalAnd(){let e=this.inputIndex,n=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let r=this.parseNullishCoalescing();n=new $t(this.span(e),this.sourceSpan(e),"&&",n,r)}return n}parseNullishCoalescing(){let e=this.inputIndex,n=this.parseEquality();for(;this.consumeOptionalOperator("??");){let r=this.parseEquality();n=new $t(this.span(e),this.sourceSpan(e),"??",n,r)}return n}parseEquality(){let e=this.inputIndex,n=this.parseRelational();for(;this.next.type==re.Operator;){let r=this.next.strValue;switch(r){case"==":case"===":case"!=":case"!==":this.advance();let s=this.parseRelational();n=new $t(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseRelational(){let e=this.inputIndex,n=this.parseAdditive();for(;this.next.type==re.Operator;){let r=this.next.strValue;switch(r){case"<":case">":case"<=":case">=":this.advance();let s=this.parseAdditive();n=new $t(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseAdditive(){let e=this.inputIndex,n=this.parseMultiplicative();for(;this.next.type==re.Operator;){let r=this.next.strValue;switch(r){case"+":case"-":this.advance();let s=this.parseMultiplicative();n=new $t(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseMultiplicative(){let e=this.inputIndex,n=this.parsePrefix();for(;this.next.type==re.Operator;){let r=this.next.strValue;switch(r){case"*":case"%":case"/":this.advance();let s=this.parsePrefix();n=new $t(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parsePrefix(){if(this.next.type==re.Operator){let e=this.inputIndex,n=this.next.strValue,r;switch(n){case"+":return this.advance(),r=this.parsePrefix(),zi.createPlus(this.span(e),this.sourceSpan(e),r);case"-":return this.advance(),r=this.parsePrefix(),zi.createMinus(this.span(e),this.sourceSpan(e),r);case"!":return this.advance(),r=this.parsePrefix(),new Xi(this.span(e),this.sourceSpan(e),r)}}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(Es))n=this.parseAccessMember(n,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(Gn)?n=this.parseCall(n,e,!0):n=this.consumeOptionalCharacter(Ns)?this.parseKeyedReadOrWrite(n,e,!0):this.parseAccessMember(n,e,!0);else if(this.consumeOptionalCharacter(Ns))n=this.parseKeyedReadOrWrite(n,e,!1);else if(this.consumeOptionalCharacter(Gn))n=this.parseCall(n,e,!1);else if(this.consumeOptionalOperator("!"))n=new Zi(this.span(e),this.sourceSpan(e),n);else return n}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(Gn)){this.rparensExpected++;let n=this.parsePipe();return this.rparensExpected--,this.expectCharacter(un),n}else{if(this.next.isKeywordNull())return this.advance(),new Vt(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Vt(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Vt(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Vt(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Br(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(Ns)){this.rbracketsExpected++;let n=this.parseExpressionList(Ts);return this.rbracketsExpected--,this.expectCharacter(Ts),new Na(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isCharacter(bn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new jn(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let n=this.next.toNumber();return this.advance(),new Vt(this.span(e),this.sourceSpan(e),n)}else if(this.next.isString()){let n=this.next.toString();return this.advance(),new Vt(this.span(e),this.sourceSpan(e),n)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new lt(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new lt(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new lt(this.span(e),this.sourceSpan(e)))}}}parseExpressionList(e){let n=[];do if(!this.next.isCharacter(e))n.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(Gt));return n}parseLiteralMap(){let e=[],n=[],r=this.inputIndex;if(this.expectCharacter(bn),!this.consumeOptionalCharacter(vt)){this.rbracesExpected++;do{let s=this.inputIndex,i=this.next.isString(),o=this.expectIdentifierOrKeywordOrString(),a={key:o,quoted:i};if(e.push(a),i)this.expectCharacter(fr),n.push(this.parsePipe());else if(this.consumeOptionalCharacter(fr))n.push(this.parsePipe());else{a.isShorthandInitialized=!0;let u=this.span(s),c=this.sourceSpan(s);n.push(new zr(u,c,c,new jn(u,c),o))}}while(this.consumeOptionalCharacter(Gt)&&!this.next.isCharacter(vt));this.rbracesExpected--,this.expectCharacter(vt)}return new Da(this.span(r),this.sourceSpan(r),e,n)}parseAccessMember(e,n,r){let s=this.inputIndex,i=this.withContext(_s.Writable,()=>{let u=this.expectIdentifierOrKeyword()??"";return u.length===0&&this.error("Expected identifier for property access",e.span.end),u}),o=this.sourceSpan(s),a;if(r)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),a=new lt(this.span(n),this.sourceSpan(n))):a=new Aa(this.span(n),this.sourceSpan(n),o,e,i);else if(this.consumeOptionalOperator("=")){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new lt(this.span(n),this.sourceSpan(n));let u=this.parseConditional();a=new Ca(this.span(n),this.sourceSpan(n),o,e,i,u)}else a=new zr(this.span(n),this.sourceSpan(n),o,e,i);return a}parseCall(e,n,r){let s=this.inputIndex;this.rparensExpected++;let i=this.parseCallArguments(),o=this.span(s,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(un),this.rparensExpected--;let a=this.span(n),u=this.sourceSpan(n);return r?new qa(a,u,e,i,o):new Pa(a,u,e,i,o)}parseCallArguments(){if(this.next.isCharacter(un))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(Gt));return e}expectTemplateBindingKey(){let e="",n=!1,r=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),n=this.consumeOptionalOperator("-"),n&&(e+="-");while(n);return{source:e,span:new Nt(r,r+e.length)}}parseTemplateBindings(e){let n=[];for(n.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let r=this.parseLetBinding();if(r)n.push(r);else{let s=this.expectTemplateBindingKey(),i=this.parseAsBinding(s);i?n.push(i):(s.source=e.source+s.source.charAt(0).toUpperCase()+s.source.substring(1),n.push(...this.parseDirectiveKeywordBindings(s)))}this.consumeStatementTerminator()}return new Jl(n,[],this.errors)}parseKeyedReadOrWrite(e,n,r){return this.withContext(_s.Writable,()=>{this.rbracketsExpected++;let s=this.parsePipe();if(s instanceof lt&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(Ts),this.consumeOptionalOperator("="))if(r)this.error("The '?.' operator cannot be used in the assignment");else{let i=this.parseConditional();return new ka(this.span(n),this.sourceSpan(n),e,s,i)}else return r?new _a(this.span(n),this.sourceSpan(n),e,s):new Fs(this.span(n),this.sourceSpan(n),e,s);return new lt(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(e){let n=[];this.consumeOptionalCharacter(fr);let r=this.getDirectiveBoundTarget(),s=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),s=this.currentAbsoluteOffset);let o=new Nt(e.span.start,s);return n.push(new wl(o,e,r)),i&&n.push(i),n}getDirectiveBoundTarget(){if(this.next===zc||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:n,end:r}=e.span,s=this.input.substring(n,r);return new Ht(e,s,this.location,this.absoluteOffset+n,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let n=this.expectTemplateBindingKey();this.consumeStatementTerminator();let r=new Nt(e.span.start,this.currentAbsoluteOffset);return new Yi(r,n,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let n=this.expectTemplateBindingKey(),r=null;this.consumeOptionalOperator("=")&&(r=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let s=new Nt(e,this.currentAbsoluteOffset);return new Yi(s,n,r)}consumeStatementTerminator(){this.consumeOptionalCharacter(kt)||this.consumeOptionalCharacter(Gt)}error(e,n=null){this.errors.push(new Wi(e,this.input,this.locationText(n),this.location)),this.skip()}locationText(e=null){return e==null&&(e=this.index),e<this.tokens.length?`at column ${this.tokens[e].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(e,n){let r=`Private identifiers are not supported. Unexpected private identifier: ${e}`;n!==null&&(r+=`, ${n}`),this.error(r)}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter(kt)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(un))&&(this.rbracesExpected<=0||!e.isCharacter(vt))&&(this.rbracketsExpected<=0||!e.isCharacter(Ts))&&(!(this.context&_s.Writable)||!e.isOperator("="));)this.next.isError()&&this.errors.push(new Wi(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}},Kl=class extends La{constructor(){super(...arguments),this.errors=[]}visitPipe(){this.errors.push("pipes")}};function Ik(t){let e=new Map,n=0,r=0,s=0;for(;s<t.length;){let i=t[s];if(i.type===9){let[o,a]=i.parts;n+=a.length,r+=o.length}else{let o=i.parts.reduce((a,u)=>a+u.length,0);r+=o,n+=o}e.set(r,n),s++}return e}var Sr=class{constructor(e,n){this.sourceSpan=e,this.i18n=n}},ts=class extends Sr{constructor(e,n,r,s){super(n,s),this.value=e,this.tokens=r}visit(e,n){return e.visitText(this,n)}},Js=class extends Sr{constructor(e,n,r,s,i,o){super(s,o),this.switchValue=e,this.type=n,this.cases=r,this.switchValueSourceSpan=i}visit(e,n){return e.visitExpansion(this,n)}},eh=class{constructor(e,n,r,s,i){this.value=e,this.expression=n,this.sourceSpan=r,this.valueSourceSpan=s,this.expSourceSpan=i}visit(e,n){return e.visitExpansionCase(this,n)}},th=class extends Sr{constructor(e,n,r,s,i,o,a){super(r,a),this.name=e,this.value=n,this.keySpan=s,this.valueSpan=i,this.valueTokens=o}visit(e,n){return e.visitAttribute(this,n)}},Ft=class extends Sr{constructor(e,n,r,s,i,o=null,a){super(s,a),this.name=e,this.attrs=n,this.children=r,this.startSourceSpan=i,this.endSourceSpan=o}visit(e,n){return e.visitElement(this,n)}},yo=class{constructor(e,n){this.value=e,this.sourceSpan=n}visit(e,n){return e.visitComment(this,n)}},Ut=class extends Sr{constructor(e,n,r,s,i,o,a=null,u){super(s,u),this.name=e,this.parameters=n,this.children=r,this.nameSpan=i,this.startSourceSpan=o,this.endSourceSpan=a}visit(e,n){return e.visitBlock(this,n)}},hu=class{constructor(e,n){this.expression=e,this.sourceSpan=n}visit(e,n){return e.visitBlockParameter(this,n)}},pu=class{constructor(e,n,r,s,i){this.name=e,this.value=n,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=i}visit(e,n){return e.visitLetDeclaration(this,n)}};function De(t,e,n=null){let r=[],s=t.visit?i=>t.visit(i,n)||i.visit(t,n):i=>i.visit(t,n);return e.forEach(i=>{let o=s(i);o&&r.push(o)}),r}var la;function Eg(){return la||(la={},oa(be.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),oa(be.STYLE,["*|style"]),oa(be.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),oa(be.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),la}function oa(t,e){for(let n of e)la[n.toLowerCase()]=t}var Nk=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function Dk(t){return Nk.has(t.toLowerCase())}var nh=class{},Pk="boolean",qk="number",Lk="string",Mk="object",Rk=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],tE=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Ok=Array.from(tE).reduce((t,[e,n])=>(t.set(e,n),t),new Map),Ks=class extends nh{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Rk.forEach(e=>{let n=new Map,r=new Set,[s,i]=e.split("|"),o=i.split(","),[a,u]=s.split("^");a.split(",").forEach(l=>{this._schema.set(l.toLowerCase(),n),this._eventSchema.set(l.toLowerCase(),r)});let c=u&&this._schema.get(u.toLowerCase());if(c){for(let[l,p]of c)n.set(l,p);for(let l of this._eventSchema.get(u.toLowerCase()))r.add(l)}o.forEach(l=>{if(l.length>0)switch(l[0]){case"*":r.add(l.substring(1));break;case"!":n.set(l.substring(1),Pk);break;case"#":n.set(l.substring(1),qk);break;case"%":n.set(l.substring(1),Mk);break;default:n.set(l,Lk)}})})}hasProperty(e,n,r){if(r.some(i=>i.name===Sm.name))return!0;if(e.indexOf("-")>-1){if(Rm(e)||xl(e))return!1;if(r.some(i=>i.name===xm.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(n)}hasElement(e,n){return n.some(r=>r.name===Sm.name)||e.indexOf("-")>-1&&(Rm(e)||xl(e)||n.some(r=>r.name===xm.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,n,r){r&&(n=this.getMappedPropName(n)),e=e.toLowerCase(),n=n.toLowerCase();let s=Eg()[e+"|"+n];return s||(s=Eg()["*|"+n],s||be.NONE)}getMappedPropName(e){return tE.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let n=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(n.keys()).map(r=>Ok.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return lA(e)}normalizeAnimationStyleValue(e,n,r){let s="",i=r.toString().trim(),o=null;if(Bk(e)&&r!==0&&r!=="0")if(typeof r=="number")s="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(o=`Please provide a CSS unit value for ${n}:${r}`)}return{error:o,value:i+s}}};function Bk(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var ee=class{constructor({closedByChildren:e,implicitNamespacePrefix:n,contentType:r=an.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:a=!1,canSelfClose:u=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(c=>this.closedByChildren[c]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=n||null,this.contentType=r,this.ignoreFirstLf=o,this.preventNamespaceInheritance=a,this.canSelfClose=u??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},wg,gs;function nE(t){return gs||(wg=new ee({canSelfClose:!0}),gs=Object.assign(Object.create(null),{base:new ee({isVoid:!0}),meta:new ee({isVoid:!0}),area:new ee({isVoid:!0}),embed:new ee({isVoid:!0}),link:new ee({isVoid:!0}),img:new ee({isVoid:!0}),input:new ee({isVoid:!0}),param:new ee({isVoid:!0}),hr:new ee({isVoid:!0}),br:new ee({isVoid:!0}),source:new ee({isVoid:!0}),track:new ee({isVoid:!0}),wbr:new ee({isVoid:!0}),p:new ee({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new ee({closedByChildren:["tbody","tfoot"]}),tbody:new ee({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ee({closedByChildren:["tbody"],closedByParent:!0}),tr:new ee({closedByChildren:["tr"],closedByParent:!0}),td:new ee({closedByChildren:["td","th"],closedByParent:!0}),th:new ee({closedByChildren:["td","th"],closedByParent:!0}),col:new ee({isVoid:!0}),svg:new ee({implicitNamespacePrefix:"svg"}),foreignObject:new ee({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ee({implicitNamespacePrefix:"math"}),li:new ee({closedByChildren:["li"],closedByParent:!0}),dt:new ee({closedByChildren:["dt","dd"]}),dd:new ee({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ee({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ee({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ee({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ee({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ee({closedByChildren:["optgroup"],closedByParent:!0}),option:new ee({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ee({ignoreFirstLf:!0}),listing:new ee({ignoreFirstLf:!0}),style:new ee({contentType:an.RAW_TEXT}),script:new ee({contentType:an.RAW_TEXT}),title:new ee({contentType:{default:an.ESCAPABLE_RAW_TEXT,svg:an.PARSABLE_DATA}}),textarea:new ee({contentType:an.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Ks().allKnownElementNames().forEach(e=>{!gs[e]&&Sl(e)===null&&(gs[e]=new ee({canSelfClose:!1}))})),gs[t]??gs[t.toLowerCase()]??wg}var yg={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},rh=class{constructor(){this._placeHolderNameCounts={},this._signatureToName={}}getStartTagPlaceholderName(e,n,r){let s=this._hashTag(e,n,r);if(this._signatureToName[s])return this._signatureToName[s];let i=e.toUpperCase(),o=yg[i]||`TAG_${i}`,a=this._generateUniqueName(r?o:`START_${o}`);return this._signatureToName[s]=a,a}getCloseTagPlaceholderName(e){let n=this._hashClosingTag(e);if(this._signatureToName[n])return this._signatureToName[n];let r=e.toUpperCase(),s=yg[r]||`TAG_${r}`,i=this._generateUniqueName(`CLOSE_${s}`);return this._signatureToName[n]=i,i}getPlaceholderName(e,n){let r=e.toUpperCase(),s=`PH: ${r}=${n}`;if(this._signatureToName[s])return this._signatureToName[s];let i=this._generateUniqueName(r);return this._signatureToName[s]=i,i}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}getStartBlockPlaceholderName(e,n){let r=this._hashBlock(e,n);if(this._signatureToName[r])return this._signatureToName[r];let s=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[r]=s,s}getCloseBlockPlaceholderName(e){let n=this._hashClosingBlock(e);if(this._signatureToName[n])return this._signatureToName[n];let r=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[n]=r,r}_hashTag(e,n,r){let s=`<${e}`,i=Object.keys(n).sort().map(a=>` ${a}=${n[a]}`).join(""),o=r?"/>":`></${e}>`;return s+i+o}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_hashBlock(e,n){let r=n.length===0?"":` (${n.sort().join("; ")})`;return`@${e}${r} {}`}_hashClosingBlock(e){return this._hashBlock(`close_${e}`,[])}_toSnakeCase(e){return e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;let r=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=r+1,`${e}_${r}`}},Fk=new lu(new wo);function $k(t,e){let n=new sh(Fk,t,e);return(r,s,i,o,a)=>n.toI18nMessage(r,s,i,o,a)}function Vk(t,e){return e}var sh=class{constructor(e,n,r){this._expressionParser=e,this._interpolationConfig=n,this._containerBlocks=r}toI18nMessage(e,n="",r="",s="",i){let o={isIcu:e.length==1&&e[0]instanceof Js,icuDepth:0,placeholderRegistry:new rh,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||Vk},a=De(this,e,o);return new pt(a,o.placeholderToContent,o.placeholderToMessage,n,r,s)}visitElement(e,n){let r=De(this,e.children,n),s={};e.attrs.forEach(c=>{s[c.name]=c.value});let i=nE(e.name).isVoid,o=n.placeholderRegistry.getStartTagPlaceholderName(e.name,s,i);n.placeholderToContent[o]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let a="";i||(a=n.placeholderRegistry.getCloseTagPlaceholderName(e.name),n.placeholderToContent[a]={text:`</${e.name}>`,sourceSpan:e.endSourceSpan??e.sourceSpan});let u=new vr(e.name,s,o,a,r,i,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,u)}visitAttribute(e,n){let r=e.valueTokens===void 0||e.valueTokens.length===1?new xs(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,n,e.i18n);return n.visitNodeFn(e,r)}visitText(e,n){let r=e.tokens.length===1?new xs(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,n,e.i18n);return n.visitNodeFn(e,r)}visitComment(e,n){return null}visitExpansion(e,n){n.icuDepth++;let r={},s=new ja(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(a=>{r[a.value]=new Wn(a.expression.map(u=>u.visit(this,n)),a.expSourceSpan)}),n.icuDepth--,n.isIcu||n.icuDepth>0){let a=n.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return s.expressionPlaceholder=a,n.placeholderToContent[a]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},n.visitNodeFn(e,s)}let i=n.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());n.placeholderToMessage[i]=this.toI18nMessage([e],"","","",void 0);let o=new Ws(s,i,e.sourceSpan);return n.visitNodeFn(e,o)}visitExpansionCase(e,n){throw new Error("Unreachable code")}visitBlock(e,n){let r=De(this,e.children,n);if(this._containerBlocks.has(e.name))return new Wn(r,e.sourceSpan);let s=e.parameters.map(u=>u.expression),i=n.placeholderRegistry.getStartBlockPlaceholderName(e.name,s),o=n.placeholderRegistry.getCloseBlockPlaceholderName(e.name);n.placeholderToContent[i]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan},n.placeholderToContent[o]={text:e.endSourceSpan?e.endSourceSpan.toString():"}",sourceSpan:e.endSourceSpan??e.sourceSpan};let a=new Er(e.name,s,i,o,r,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,a)}visitBlockParameter(e,n){throw new Error("Unreachable code")}visitLetDeclaration(e,n){return null}_visitTextWithInterpolation(e,n,r,s){let i=[],o=!1;for(let a of e)switch(a.type){case 8:case 17:o=!0;let u=a.parts[1],c=Gk(u)||"INTERPOLATION",l=r.placeholderRegistry.getPlaceholderName(c,u);r.placeholderToContent[l]={text:a.parts.join(""),sourceSpan:a.sourceSpan},i.push(new Wa(u,l,a.sourceSpan));break;default:if(a.parts[0].length>0){let p=i[i.length-1];p instanceof xs?(p.value+=a.parts[0],p.sourceSpan=new Y(p.sourceSpan.start,a.sourceSpan.end,p.sourceSpan.fullStart,p.sourceSpan.details)):i.push(new xs(a.parts[0],a.sourceSpan))}break}return o?(Uk(i,s),new Wn(i,n)):i[0]}};function Uk(t,e){if(e instanceof pt&&(Hk(e),e=e.nodes[0]),e instanceof Wn){jk(e.children,t);for(let n=0;n<t.length;n++)t[n].sourceSpan=e.children[n].sourceSpan}}function Hk(t){let e=t.nodes;if(e.length!==1||!(e[0]instanceof Wn))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}function jk(t,e){if(t.length!==e.length)throw new Error("The number of i18n message children changed between first and second pass.");if(t.some((n,r)=>e[r].constructor!==n.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}var Wk=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function Gk(t){return t.split(Wk)[2]}var ih=class extends z{constructor(e,n){super(e,n)}},fu={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` `,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},rE="\uE500";fu.ngsp=rE;var Mi=class extends z{constructor(e,n,r){super(r,e),this.tokenType=n}},oh=class{constructor(e,n,r){this.tokens=e,this.errors=n,this.nonNormalizedIcuExpressions=r}};function zk(t,e,n,r={}){let s=new ah(new Za(t,e),n,r);return s.tokenize(),new oh(nI(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var Xk=/\r\n?/g;function Ci(t){return`Unexpected character "${t===rt?"EOF":String.fromCharCode(t)}"`}function xg(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function Zk(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var du;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(du||(du={}));var Ri=class{constructor(e){this.error=e}},ah=class{constructor(e,n,r){this._getTagDefinition=n,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._interpolationConfig=r.interpolationConfig||Sn,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(i=>i.codePointAt(0)||0);let s=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new uh(e,s):new mu(e,s),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=r.tokenizeBlocks??!0,this._tokenizeLet=r.tokenizeLet??!0;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(Xk,` `)}tokenize(){for(;this._cursor.peek()!==rt;){let e=this._cursor.clone();try{this._attemptCharCode(bs)?this._attemptCharCode(ql)?this._attemptCharCode(Ns)?this._consumeCdata(e):this._attemptCharCode(Xa)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(On)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===Fc&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(Fc)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(vt)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(n){this.handleError(n)}}this._beginToken(33),this._endToken([])}_getBlockName(){let e=!1,n=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>ao(r)?!e:tI(r)?(e=!0,!1):!0),this._cursor.getChars(n).trim()}_consumeBlockStart(e){this._beginToken(24,e);let n=this._endToken([this._getBlockName()]);if(this._cursor.peek()===Gn)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Ve),this._attemptCharCode(un))this._attemptCharCodeUntilFn(Ve);else{n.type=28;return}this._attemptCharCode(bn)?(this._beginToken(25),this._endToken([])):n.type=28}_consumeBlockEnd(e){this._beginToken(26,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Tg);this._cursor.peek()!==un&&this._cursor.peek()!==rt;){this._beginToken(27);let e=this._cursor.clone(),n=null,r=0;for(;this._cursor.peek()!==kt&&this._cursor.peek()!==rt||n!==null;){let s=this._cursor.peek();if(s===Pi)this._cursor.advance();else if(s===n)n=null;else if(n===null&&qi(s))n=s;else if(s===Gn&&n===null)r++;else if(s===un&&n===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Tg)}}_consumeLetDeclaration(e){if(this._beginToken(29,e),ao(this._cursor.peek()))this._attemptCharCodeUntilFn(Ve);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=32;return}let n=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Ve),!this._attemptCharCode(Rr)){n.type=32;return}this._attemptCharCodeUntilFn(s=>Ve(s)&&!Xh(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===kt?(this._beginToken(31),this._endToken([]),this._cursor.advance()):(n.type=32,n.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),n=!1;return this._attemptCharCodeUntilFn(r=>uo(r)||r===Wh||r===_o||n&&yn(r)?(n=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==rt;){let n=this._cursor.peek();if(n===kt)break;qi(n)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===Pi?(this._cursor.advance(),!1):r===n)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Kk(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===vt){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,n=this._cursor.clone()){this._currentTokenStart=n,this._currentTokenType=e}_endToken(e,n){if(this._currentTokenStart===null)throw new Mi("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(n));if(this._currentTokenType===null)throw new Mi("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let r={type:this._currentTokenType,parts:e,sourceSpan:(n??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,n){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let r=new Mi(e,this._currentTokenType,n);return this._currentTokenStart=null,this._currentTokenType=null,new Ri(r)}handleError(e){if(e instanceof xo&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof Ri)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return eI(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let n=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Ci(this._cursor.peek()),this._cursor.getSpan(n))}_attemptStr(e){let n=e.length;if(this._cursor.charsLeft()<n)return!1;let r=this._cursor.clone();for(let s=0;s<n;s++)if(!this._attemptCharCode(e.charCodeAt(s)))return this._cursor=r,!1;return!0}_attemptStrCaseInsensitive(e){for(let n=0;n<e.length;n++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(n)))return!1;return!0}_requireStr(e){let n=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(Ci(this._cursor.peek()),this._cursor.getSpan(n))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,n){let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(r)<n)throw this._createError(Ci(this._cursor.peek()),this._cursor.getSpan(r))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_consumeEntity(e){this._beginToken(9);let n=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(Nv)){let r=this._attemptCharCode(Bv)||this._attemptCharCode(ZA),s=this._cursor.clone();if(this._attemptCharCodeUntilFn(Qk),this._cursor.peek()!=kt){this._cursor.advance();let o=r?du.HEX:du.DEC;throw this._createError(Zk(o,this._cursor.getChars(n)),this._cursor.getSpan())}let i=this._cursor.getChars(s);this._cursor.advance();try{let o=parseInt(i,r?16:10);this._endToken([String.fromCharCode(o),this._cursor.getChars(n)])}catch{throw this._createError(xg(this._cursor.getChars(n)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(Jk),this._cursor.peek()!=kt)this._beginToken(e,n),this._cursor=r,this._endToken(["&"]);else{let s=this._cursor.getChars(r);this._cursor.advance();let i=fu[s];if(!i)throw this._createError(xg(s),this._cursor.getSpan(n));this._endToken([i,`&${s};`])}}}_consumeRawText(e,n){this._beginToken(e?6:7);let r=[];for(;;){let s=this._cursor.clone(),i=n();if(this._cursor=s,i)break;e&&this._cursor.peek()===za?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(6),this._beginToken(6)):r.push(this._readChar())}this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(10,e),this._requireCharCode(Xa),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e);let n=this._cursor.clone();this._attemptUntilChar(hr);let r=this._cursor.getChars(n);this._cursor.advance(),this._endToken([r])}_consumePrefixAndName(){let e=this._cursor.clone(),n="";for(;this._cursor.peek()!==fr&&!Yk(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===fr?(n=this._cursor.getChars(e),this._cursor.advance(),r=this._cursor.clone()):r=e,this._requireCharCodeUntilFn(Sg,n===""?0:1);let s=this._cursor.getChars(r);return[n,s]}_consumeTagOpen(e){let n,r,s;try{if(!uo(this._cursor.peek()))throw this._createError(Ci(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),r=s.parts[0],n=s.parts[1],this._attemptCharCodeUntilFn(Ve);this._cursor.peek()!==On&&this._cursor.peek()!==hr&&this._cursor.peek()!==bs&&this._cursor.peek()!==rt;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Ve),this._attemptCharCode(Rr)&&(this._attemptCharCodeUntilFn(Ve),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Ve);this._consumeTagOpenEnd()}catch(o){if(o instanceof Ri){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}let i=this._getTagDefinition(n).getContentType(r);i===an.RAW_TEXT?this._consumeRawTextWithTagClose(r,n,!1):i===an.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,n,!0)}_consumeRawTextWithTagClose(e,n,r){this._consumeRawText(r,()=>!this._attemptCharCode(bs)||!this._attemptCharCode(On)||(this._attemptCharCodeUntilFn(Ve),!this._attemptStrCaseInsensitive(n))?!1:(this._attemptCharCodeUntilFn(Ve),this._attemptCharCode(hr))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===hr,3),this._cursor.advance(),this._endToken([e,n])}_consumeTagOpenStart(e){this._beginToken(0,e);let n=this._consumePrefixAndName();return this._endToken(n)}_consumeAttributeName(){let e=this._cursor.peek();if(e===oo||e===io)throw this._createError(Ci(e),this._cursor.getSpan());this._beginToken(14);let n=this._consumePrefixAndName();this._endToken(n)}_consumeAttributeValue(){if(this._cursor.peek()===oo||this._cursor.peek()===io){let e=this._cursor.peek();this._consumeQuote(e);let n=()=>this._cursor.peek()===e;this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(e)}else{let e=()=>Sg(this._cursor.peek());this._consumeWithInterpolation(16,17,e,e)}}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(On)?2:1;this._beginToken(e),this._requireCharCode(hr),this._endToken([])}_consumeTagClose(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(Ve);let n=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Ve),this._requireCharCode(hr),this._endToken(n)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(bn),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(Gt),n=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([n]);else{let s=this._endToken([e]);n!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(Gt),this._attemptCharCodeUntilFn(Ve),this._beginToken(7);let r=this._readUntil(Gt);this._endToken([r]),this._requireCharCode(Gt),this._attemptCharCodeUntilFn(Ve)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(bn).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Ve),this._beginToken(21),this._requireCharCode(bn),this._endToken([]),this._attemptCharCodeUntilFn(Ve),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(vt),this._endToken([]),this._attemptCharCodeUntilFn(Ve),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(vt),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,n,r,s){this._beginToken(e);let i=[];for(;!r();){let o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(n,o,s),this._beginToken(e)):this._cursor.peek()===za?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(i.join(""))])}_consumeInterpolation(e,n,r){let s=[];this._beginToken(e,n),s.push(this._interpolationConfig.start);let i=this._cursor.clone(),o=null,a=!1;for(;this._cursor.peek()!==rt&&(r===null||!r());){let u=this._cursor.clone();if(this._isTagStart()){this._cursor=u,s.push(this._getProcessedChars(i,u)),this._endToken(s);return}if(o===null)if(this._attemptStr(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,u)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(a=!0);let c=this._cursor.peek();this._cursor.advance(),c===Pi?this._cursor.advance():c===o?o=null:!a&&o===null&&qi(c)&&(o=c)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_getProcessedChars(e,n){return this._processCarriageReturns(n.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===rt||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===vt&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._cursor.peek()===Fc||this._cursor.peek()===vt))}_isTagStart(){if(this._cursor.peek()===bs){let e=this._cursor.clone();e.advance();let n=e.peek();if(Yr<=n&&n<=ko||ni<=n&&n<=Nu||n===On||n===ql)return!0}return!1}_readUntil(e){let n=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(n)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===21}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===19}isExpansionFormStart(){if(this._cursor.peek()!==bn)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),n=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!n}return!0}};function Ve(t){return!ao(t)||t===rt}function Sg(t){return ao(t)||t===hr||t===bs||t===On||t===oo||t===io||t===Rr||t===rt}function Yk(t){return(t<Yr||ko<t)&&(t<ni||Nu<t)&&(t<Gh||t>Pv)}function Qk(t){return t===kt||t===rt||!e1(t)}function Jk(t){return t===kt||t===rt||!uo(t)}function Kk(t){return t!==vt}function eI(t,e){return bg(t)===bg(e)}function bg(t){return t>=Yr&&t<=ko?t-Yr+ni:t}function tI(t){return uo(t)||yn(t)||t===_o}function Tg(t){return t!==kt&&Ve(t)}function nI(t){let e=[],n;for(let r=0;r<t.length;r++){let s=t[r];n&&n.type===5&&s.type===5||n&&n.type===16&&s.type===16?(n.parts[0]+=s.parts[0],n.sourceSpan.end=s.sourceSpan.end):(n=s,e.push(n))}return e}var mu=class t{constructor(e,n){if(e instanceof t){this.file=e.file,this.input=e.input,this.end=e.end;let r=e.state;this.state={peek:r.peek,offset:r.offset,line:r.line,column:r.column}}else{if(!n)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=n.endPos,this.state={peek:-1,offset:n.startPos,line:n.startLine,column:n.startCol}}}clone(){return new t(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,n){e=e||this;let r=e;if(n)for(;this.diff(e)>0&&n.indexOf(e.peek())!==-1;)r===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),o=r!==e?this.locationFromCursor(r):s;return new Y(s,i,o)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new xo('Unexpected character "EOF"',this);let n=this.charAt(e.offset);n===$r?(e.line++,e.column=0):Xh(n)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?rt:this.charAt(e.offset)}locationFromCursor(e){return new co(e.file,e.state.offset,e.state.line,e.state.column)}},uh=class t extends mu{constructor(e,n){e instanceof t?(super(e),this.internalState={...e.internalState}):(super(e,n),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(e){let n=e.clone(),r="";for(;n.internalState.offset<this.internalState.offset;)r+=String.fromCodePoint(n.peek()),n.advance();return r}processEscapeSequence(){let e=()=>this.internalState.peek;if(e()===Pi)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===qv)this.state.peek=$r;else if(e()===Lv)this.state.peek=jh;else if(e()===Ov)this.state.peek=_v;else if(e()===Mv)this.state.peek=Hh;else if(e()===QA)this.state.peek=HA;else if(e()===zh)this.state.peek=kv;else if(e()===Rv)if(this.advanceState(this.internalState),e()===bn){this.advanceState(this.internalState);let n=this.clone(),r=0;for(;e()!==vt;)this.advanceState(this.internalState),r++;this.state.peek=this.decodeHexDigits(n,r)}else{let n=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(n,4)}else if(e()===Bv){this.advanceState(this.internalState);let n=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(n,2)}else if(Hm(e())){let n="",r=0,s=this.clone();for(;Hm(e())&&r<3;)s=this.clone(),n+=String.fromCodePoint(e()),this.advanceState(this.internalState),r++;this.state.peek=parseInt(n,8),this.internalState=s.internalState}else Xh(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,n){let r=this.input.slice(e.internalState.offset,e.internalState.offset+n),s=parseInt(r,16);if(isNaN(s))throw e.state=e.internalState,new xo("Invalid hexadecimal escape sequence",e);return s}},xo=class{constructor(e,n){this.msg=e,this.cursor=n}},Ye=class t extends z{static create(e,n,r){return new t(e,n,r)}constructor(e,n,r){super(n,r),this.elementName=e}},gu=class{constructor(e,n){this.rootNodes=e,this.errors=n}},ch=class{constructor(e){this.getTagDefinition=e}parse(e,n,r){let s=zk(e,n,this.getTagDefinition,r),i=new lh(s.tokens,this.getTagDefinition);return i.build(),new gu(i.rootNodes,s.errors.concat(i.errors))}},lh=class t{constructor(e,n){this.tokens=e,this.getTagDefinition=n,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==33;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?this._consumeEndTag(this._advance()):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===19?this._consumeExpansion(this._advance()):this._peek.type===24?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===32?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let e of this._containerStack)e instanceof Ut&&this.errors.push(Ye.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){this._consumeText(this._advance()),this._advanceIf(13)}_consumeComment(e){let n=this._advanceIf(7),r=this._advanceIf(11),s=n!=null?n.parts[0].trim():null,i=r==null?e.sourceSpan:new Y(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new yo(s,i))}_consumeExpansion(e){let n=this._advance(),r=this._advance(),s=[];for(;this._peek.type===20;){let o=this._parseExpansionCase();if(!o)return;s.push(o)}if(this._peek.type!==23){this.errors.push(Ye.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let i=new Y(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Js(n.parts[0],r.parts[0],s,i,n.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==21)return this.errors.push(Ye.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;let s=this._advance();r.push({type:33,parts:[],sourceSpan:s.sourceSpan});let i=new t(r,this.getTagDefinition);if(i.build(),i.errors.length>0)return this.errors=this.errors.concat(i.errors),null;let o=new Y(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),a=new Y(n.sourceSpan.start,s.sourceSpan.end,n.sourceSpan.fullStart);return new eh(e.parts[0],i.rootNodes,o,e.sourceSpan,a)}_collectExpansionExpTokens(e){let n=[],r=[21];for(;;){if((this._peek.type===19||this._peek.type===21)&&r.push(this._peek.type),this._peek.type===22)if(Cg(r,21)){if(r.pop(),r.length===0)return n}else return this.errors.push(Ye.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(Cg(r,19))r.pop();else return this.errors.push(Ye.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===33)return this.errors.push(Ye.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.push(this._advance())}}_consumeText(e){let n=[e],r=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]===` `){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),n[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),n.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,Ag):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new ts(s,new Y(r.start,i.end,r.fullStart,r.details),n))}}_closeVoidElement(){let e=this._getContainer();e instanceof Ft&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[n,r]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(n,r,this._getClosestParentElement()),o=!1;if(this._peek.type===2){this._advance(),o=!0;let f=this.getTagDefinition(i);f.canSelfClose||Sl(i)!==null||f.isVoid||this.errors.push(Ye.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),o=!1);let a=this._peek.sourceSpan.fullStart,u=new Y(e.sourceSpan.start,a,e.sourceSpan.fullStart),c=new Y(e.sourceSpan.start,a,e.sourceSpan.fullStart),l=new Ft(i,s,[],u,c,void 0),p=this._getContainer();this._pushContainer(l,p instanceof Ft&&this.getTagDefinition(p.name).isClosedByChild(l.name)),o?this._popContainer(i,Ft,u):e.type===4&&(this._popContainer(i,Ft,null),this.errors.push(Ye.create(i,u,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,n){n&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let n=this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(this.getTagDefinition(n).isVoid)this.errors.push(Ye.create(n,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(n,Ft,e.sourceSpan)){let r=`Unexpected closing tag "${n}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Ye.create(n,e.sourceSpan,r))}}_popContainer(e,n,r){let s=!1;for(let i=this._containerStack.length-1;i>=0;i--){let o=this._containerStack[i];if((o.name===e||e===null)&&o instanceof n)return o.endSourceSpan=r,o.sourceSpan.end=r!==null?r.end:o.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!s;(o instanceof Ut||o instanceof Ft&&!this.getTagDefinition(o.name).closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let n=bl(e.parts[0],e.parts[1]),r=e.sourceSpan.end;this._peek.type===15&&this._advance();let s="",i=[],o,a;if(this._peek.type===16)for(o=this._peek.sourceSpan,a=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let l=this._advance();i.push(l),l.type===17?s+=l.parts.join("").replace(/&([^;]+);/g,Ag):l.type===9?s+=l.parts[0]:s+=l.parts.join(""),a=r=l.sourceSpan.end}this._peek.type===15&&(r=this._advance().sourceSpan.end);let c=o&&a&&new Y(o.start,a,o.fullStart);return new th(n,s,new Y(e.sourceSpan.start,r,e.sourceSpan.fullStart),e.sourceSpan,c,i.length>0?i:void 0,void 0)}_consumeBlockOpen(e){let n=[];for(;this._peek.type===27;){let a=this._advance();n.push(new hu(a.parts[0],a.sourceSpan))}this._peek.type===25&&this._advance();let r=this._peek.sourceSpan.fullStart,s=new Y(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new Y(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new Ut(e.parts[0],n,[],s,e.sourceSpan,i);this._pushContainer(o,!1)}_consumeBlockClose(e){this._popContainer(null,Ut,e.sourceSpan)||this.errors.push(Ye.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(e){let n=[];for(;this._peek.type===27;){let a=this._advance();n.push(new hu(a.parts[0],a.sourceSpan))}let r=this._peek.sourceSpan.fullStart,s=new Y(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new Y(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new Ut(e.parts[0],n,[],s,e.sourceSpan,i);this._pushContainer(o,!1),this._popContainer(null,Ut,null),this.errors.push(Ye.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let n=e.parts[0],r,s;if(this._peek.type!==30){this.errors.push(Ye.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${n}". Declaration must have a value.`));return}else r=this._advance();if(this._peek.type!==31){this.errors.push(Ye.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${n}". Declaration must be terminated with a semicolon.`));return}else s=this._advance();let i=s.sourceSpan.fullStart,o=new Y(e.sourceSpan.start,i,e.sourceSpan.fullStart),a=e.sourceSpan.toString().lastIndexOf(n),u=e.sourceSpan.start.moveBy(a),c=new Y(u,e.sourceSpan.end),l=new pu(n,r.parts[0],o,c,r.sourceSpan);this._addToParent(l)}_consumeIncompleteLet(e){let n=e.parts[0]??"",r=n?` "${n}"`:"";if(n.length>0){let s=e.sourceSpan.toString().lastIndexOf(n),i=e.sourceSpan.start.moveBy(s),o=new Y(i,e.sourceSpan.end),a=new Y(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),u=new pu(n,"",e.sourceSpan,o,a);this._addToParent(u)}this.errors.push(Ye.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${r}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof Ft)return this._containerStack[e];return null}_addToParent(e){let n=this._getContainer();n===null?this.rootNodes.push(e):n.children.push(e)}_getElementFullName(e,n,r){if(e===""&&(e=this.getTagDefinition(n).implicitNamespacePrefix||"",e===""&&r!=null)){let s=ln(r.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=Sl(r.name))}return bl(e,n)}};function Cg(t,e){return t.length>0&&t[t.length-1]===e}function Ag(t,e){return fu[e]!==void 0?fu[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var _g=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function rI(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),_g.has(t+"|"+e)||_g.has("*|"+e)}var sI=(t,e)=>(t instanceof Sr&&(e instanceof Ws&&t.i18n instanceof pt&&(e.previousMessage=t.i18n),t.i18n=e),e),vu=class{constructor(e=Sn,n=!1,r=!1,s=UA){this.interpolationConfig=e,this.keepI18nAttrs=n,this.enableI18nLegacyMessageIdFormat=r,this.containerBlocks=s,this.hasI18nMeta=!1,this._errors=[]}_generateI18nMessage(e,n="",r){let{meaning:s,description:i,customId:o}=this._parseMetadata(n),u=$k(this.interpolationConfig,this.containerBlocks)(e,s,i,o,r);return this._setMessageId(u,n),this._setLegacyIds(u,n),u}visitAllWithErrors(e){let n=e.map(r=>r.visit(this,null));return new gu(n,this._errors)}visitElement(e){let n;if(MA(e)){this.hasI18nMeta=!0;let r=[],s={};for(let i of e.attrs)if(i.name===bv){let o=e.i18n||i.value;n=this._generateI18nMessage(e.children,o,sI),n.nodes.length===0&&(n=void 0),e.i18n=n}else if(i.name.startsWith(Pl)){let o=i.name.slice(Pl.length);rI(e.name,o)?this._reportError(i,`Translating attribute '${o}' is disallowed for security reasons.`):s[o]=i.value}else r.push(i);if(Object.keys(s).length)for(let i of r){let o=s[i.name];o!==void 0&&i.value&&(i.i18n=this._generateI18nMessage([i],i.i18n||o))}this.keepI18nAttrs||(e.attrs=r)}return De(this,e.children,n),e}visitExpansion(e,n){let r,s=e.i18n;if(this.hasI18nMeta=!0,s instanceof Ws){let i=s.name;r=this._generateI18nMessage([e],s);let o=Cv(r);o.name=i,n!==null&&(n.placeholderToMessage[i]=r)}else r=this._generateI18nMessage([e],n||s);return e.i18n=r,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}visitBlock(e,n){return De(this,e.children,n),e}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}_parseMetadata(e){return typeof e=="string"?aI(e):e instanceof pt?e:{}}_setMessageId(e,n){e.id||(e.id=n instanceof pt&&n.id||FC(e))}_setLegacyIds(e,n){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[BC(e),vv(e)];else if(typeof n!="string"){let r=n instanceof pt?n:n instanceof Ws?n.previousMessage:void 0;e.legacyIds=r?r.legacyIds:[]}}_reportError(e,n){this._errors.push(new ih(e.sourceSpan,n))}},iI="|",oI="@@";function aI(t=""){let e,n,r;if(t=t.trim(),t){let s=t.indexOf(oI),i=t.indexOf(iI),o;[o,e]=s>-1?[t.slice(0,s),t.slice(s+2)]:[t,""],[n,r]=i>-1?[o.slice(0,i),o.slice(i+1)]:["",o]}return{customId:e,meaning:n,description:r}}function uI(t){let e=[];return t.description?e.push({tagName:"desc",text:t.description}):e.push({tagName:"suppress",text:"{msgDescriptions}"}),t.meaning&&e.push({tagName:"meaning",text:t.meaning}),eA(e)}var cI="goog.getMsg";function lI(t,e,n,r){let s=pI(e),i=[w(s)];Object.keys(r).length&&(i.push(Xl($h(r,!0),!0)),i.push(Xl({original_code:dt(Object.keys(r).map(u=>({key:Ao(u),quoted:!0,value:e.placeholders[u]?w(e.placeholders[u].sourceSpan.toString()):w(e.placeholderToMessage[u].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));let o=n.set(te(cI).callFn(i)).toConstDecl();o.addLeadingComment(uI(e));let a=new Yt(t.set(n));return[o,a]}var hh=class{formatPh(e){return`{$${Ao(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){return eE(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(n=>n.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(n=>n.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,n){return this.formatPh(e.name)}},hI=new hh;function pI(t){return t.nodes.map(e=>e.visit(hI,null)).join("")}function fI(t,e,n){let{messageParts:r,placeHolders:s}=dI(e),i=mI(e),o=s.map(c=>n[c.text]),a=rA(e,r,s,o,i),u=t.set(a);return[new Yt(u)]}var ph=class{constructor(e,n){this.placeholderToMessage=e,this.pieces=n}visitText(e){if(this.pieces[this.pieces.length-1]instanceof Or)this.pieces[this.pieces.length-1].text+=e.value;else{let n=new Y(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new Or(e.value,n))}}visitContainer(e){e.children.forEach(n=>n.visit(this))}visitIcu(e){this.pieces.push(new Or(eE(e),e.sourceSpan))}visitTagPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.isVoid||(e.children.forEach(n=>n.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan)))}visitPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitBlockPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.children.forEach(n=>n.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan))}visitIcuPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}createPlaceholderPiece(e,n,r){return new ks(Ao(e,!1),n,r)}};function dI(t){let e=[],n=new ph(t.placeholderToMessage,e);return t.nodes.forEach(r=>r.visit(n)),gI(e)}function mI(t){let e=t.nodes[0],n=t.nodes[t.nodes.length-1];return new Y(e.sourceSpan.fullStart,n.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function gI(t){let e=[],n=[];t[0]instanceof ks&&e.push(Xc(t[0].sourceSpan.start));for(let r=0;r<t.length;r++){let s=t[r];s instanceof Or?e.push(s):(n.push(s),t[r-1]instanceof ks&&e.push(Xc(t[r-1].sourceSpan.end)))}return t[t.length-1]instanceof ks&&e.push(Xc(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:n}}function Xc(t){return new Or("",new Y(t,t))}var kg="ngI18nClosureMode",vI="i18n_",EI="I18N_EXP_",Ig="\uFFFD",wI="MSG_";function Ng(t){return`${wI}${t}`.toUpperCase()}function yI(t){return new st(t.name,void 0,Wt,void 0,t.sourceSpan)}function xI(t){let e=t.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",n=new Map,r=new Map,s=new Map,i=new Map;for(let u of t.units)for(let c of u.ops())if(c.kind===h.ExtractedAttribute&&c.i18nContext!==null){let l=n.get(c.i18nContext)??[];l.push(c),n.set(c.i18nContext,l)}else if(c.kind===h.I18nAttributes)r.set(c.target,c);else if(c.kind===h.I18nExpression&&c.usage===Qr.I18nAttribute){let l=s.get(c.target)??[];l.push(c),s.set(c.target,l)}else c.kind===h.I18nMessage&&i.set(c.xref,c);let o=new Map,a=new Map;for(let u of t.units)for(let c of u.create)if(c.kind===h.I18nMessage){if(c.messagePlaceholder===null){let{mainVar:l,statements:p}=sE(t,e,i,c);if(c.i18nBlock!==null){let f=t.addConst(l,p);a.set(c.i18nBlock,f)}else{t.constsInitializers.push(...p),o.set(c.i18nContext,l);let f=n.get(c.i18nContext);if(f!==void 0)for(let E of f)E.expression=l.clone()}}N.remove(c)}for(let u of t.units)for(let c of u.create)if(xr(c)){let l=r.get(c.xref);if(l===void 0)continue;let p=s.get(c.xref);if(p===void 0)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let f=new Set;p=p.filter(y=>{let I=f.has(y.name);return f.add(y.name),!I});let E=p.flatMap(y=>{let I=o.get(y.context);if(I===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[w(y.name),I]});l.i18nAttributesConfig=t.addConst(new Zt(E))}for(let u of t.units)for(let c of u.create)if(c.kind===h.I18nStart){let l=a.get(c.root);if(l===void 0)throw new Error("AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?");c.messageIndex=l}}function sE(t,e,n,r){let s=[],i=new Map;for(let c of r.subMessages){let l=n.get(c),{mainVar:p,statements:f}=sE(t,e,n,l);s.push(...f);let E=i.get(l.messagePlaceholder)??[];E.push(p),i.set(l.messagePlaceholder,E)}SI(r,i),r.params=new Map([...r.params.entries()].sort());let o=te(t.pool.uniqueName(vI)),a=CI(t.pool,r.message.id,e,t.i18nUseExternalIds),u;if(r.needsPostprocessing||r.postprocessingParams.size>0){let c=Object.fromEntries([...r.postprocessingParams.entries()].sort()),l=$h(c,!1),p=[];r.postprocessingParams.size>0&&p.push(Xl(l,!0)),u=f=>U(m.i18nPostprocess).callFn([f,...p])}return s.push(...bI(r.message,o,a,r.params,u)),{mainVar:o,statements:s}}function SI(t,e){for(let[n,r]of e)r.length===1?t.params.set(n,r[0]):(t.params.set(n,w(`${Ig}${EI}${n}${Ig}`)),t.postprocessingParams.set(n,ge(r)))}function bI(t,e,n,r,s){let i=Object.fromEntries(r),o=[yI(e),ku(TI(),lI(e,t,n,i),fI(e,t,$h(i,!1)))];return s&&o.push(new Yt(e.set(s(e)))),o}function TI(){return _u(te(kg)).notIdentical(w("undefined",wv)).and(te(kg))}function CI(t,e,n,r){let s,i=n;if(r){let o=Ng("EXTERNAL_"),a=t.uniqueName(i);s=`${o}${Li(e)}$$${a}`}else{let o=Ng(i);s=t.uniqueName(o)}return te(s)}function AI(t){for(let e of t.units){let n=null,r=null,s=new Map,i=new Map,o=new Map;for(let a of e.create)switch(a.kind){case h.I18nStart:if(a.context===null)throw Error("I18n op should have its context set.");n=a;break;case h.I18nEnd:n=null;break;case h.IcuStart:if(a.context===null)throw Error("Icu op should have its context set.");r=a;break;case h.IcuEnd:r=null;break;case h.Text:if(n!==null)if(s.set(a.xref,n),i.set(a.xref,r),a.icuPlaceholder!==null){let u=f_(t.allocateXrefId(),a.icuPlaceholder,[a.initialValue]);N.replace(a,u),o.set(a.xref,u)}else N.remove(a);break}for(let a of e.update)switch(a.kind){case h.InterpolateText:if(!s.has(a.target))continue;let u=s.get(a.target),c=i.get(a.target),l=o.get(a.target),p=c?c.context:u.context,f=c?Gs.Postproccessing:Gs.Creation,E=[];for(let y=0;y<a.interpolation.expressions.length;y++){let I=a.interpolation.expressions[y];E.push(Wv(p,u.xref,u.xref,u.handle,I,l?.xref??null,a.interpolation.i18nPlaceholders[y]??null,f,Qr.I18nText,"",I.sourceSpan??a.sourceSpan))}N.replaceWithMany(a,E),l!==void 0&&(l.strings=a.interpolation.strings);break}}}function _I(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case h.ElementStart:case h.Template:if(!Array.isArray(n.localRefs))throw new Error("AssertionError: expected localRefs to be an array still");if(n.numSlotsUsed+=n.localRefs.length,n.localRefs.length>0){let r=kI(n.localRefs);n.localRefs=t.addConst(r)}else n.localRefs=null;break}}function kI(t){let e=[];for(let n of t)e.push(w(n.name),w(n.target));return ge(e)}function II(t){for(let e of t.units){let n=Ke.HTML;for(let r of e.create)r.kind===h.ElementStart&&r.namespace!==n&&(N.insertBefore(i_(r.namespace),r),n=r.namespace)}}function NI(t){let e=[],n=0,r=0,s=0,i=0,o=0,a=null;for(;n<t.length;)switch(t.charCodeAt(n++)){case 40:r++;break;case 41:r--;break;case 39:s===0?s=39:s===39&&t.charCodeAt(n-1)!==92&&(s=0);break;case 34:s===0?s=34:s===34&&t.charCodeAt(n-1)!==92&&(s=0);break;case 58:!a&&r===0&&s===0&&(a=iE(t.substring(o,n-1).trim()),i=n);break;case 59:if(a&&i>0&&r===0&&s===0){let c=t.substring(i,n-1).trim();e.push(a,c),o=n,i=0,a=null}break}if(a&&i){let u=t.slice(i).trim();e.push(a,u)}return e}function iE(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function DI(t){let e=new Map;for(let n of t.units)for(let r of n.create)xr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.create)if(r.kind===h.ExtractedAttribute&&r.bindingKind===V.Attribute&&Gv(r.expression)){let s=e.get(r.target);if(s!==void 0&&s.kind===h.Template&&s.templateKind===yt.Structural)continue;if(r.name==="style"){let i=NI(r.expression.value);for(let o=0;o<i.length-1;o+=2)N.insertBefore(jt(r.target,V.StyleProperty,null,i[o],w(i[o+1]),null,null,be.STYLE),r);N.remove(r)}else if(r.name==="class"){let i=r.expression.value.trim().split(/\s+/g);for(let o of i)N.insertBefore(jt(r.target,V.ClassName,null,o,null,null,null,be.NONE),r);N.remove(r)}}}function PI(t){Ii(t.root,t.componentName,{index:0},t.compatibility===xt.TemplateDefinitionBuilder)}function Ii(t,e,n,r){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(Li(`${e}_${t.job.fnSuffix}`),!1));let s=new Map;for(let i of t.ops())switch(i.kind){case h.Property:case h.HostProperty:i.isAnimationTrigger&&(i.name="@"+i.name);break;case h.Listener:if(i.handlerFnName!==null)break;if(!i.hostListener&&i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o="";i.isAnimationListener&&(i.name=`@${i.name}.${i.animationPhase}`,o="animation"),i.hostListener?i.handlerFnName=`${e}_${o}${i.name}_HostBindingHandler`:i.handlerFnName=`${t.fnName}_${i.tag.replace("-","_")}_${o}${i.name}_${i.targetSlot.slot}_listener`,i.handlerFnName=Li(i.handlerFnName);break;case h.TwoWayListener:if(i.handlerFnName!==null)break;if(i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");i.handlerFnName=Li(`${t.fnName}_${i.tag.replace("-","_")}_${i.name}_${i.targetSlot.slot}_listener`);break;case h.Variable:s.set(i.xref,qI(t,i.variable,n));break;case h.RepeaterCreate:if(!(t instanceof Tn))throw new Error("AssertionError: must be compiling a component");if(i.handle.slot===null)throw new Error("Expected slot to be assigned");if(i.emptyView!==null){let c=t.job.views.get(i.emptyView);Ii(c,`${e}_${i.functionNameSuffix}Empty_${i.handle.slot+2}`,n,r)}Ii(t.job.views.get(i.xref),`${e}_${i.functionNameSuffix}_${i.handle.slot+1}`,n,r);break;case h.Projection:if(!(t instanceof Tn))throw new Error("AssertionError: must be compiling a component");if(i.handle.slot===null)throw new Error("Expected slot to be assigned");if(i.fallbackView!==null){let c=t.job.views.get(i.fallbackView);Ii(c,`${e}_ProjectionFallback_${i.handle.slot}`,n,r)}break;case h.Template:if(!(t instanceof Tn))throw new Error("AssertionError: must be compiling a component");let a=t.job.views.get(i.xref);if(i.handle.slot===null)throw new Error("Expected slot to be assigned");let u=i.functionNameSuffix.length===0?"":`_${i.functionNameSuffix}`;Ii(a,`${e}${u}_${i.handle.slot}`,n,r);break;case h.StyleProp:i.name=LI(i.name),r&&(i.name=Dg(i.name));break;case h.ClassProp:r&&(i.name=Dg(i.name));break}for(let i of t.ops())it(i,o=>{if(!(!(o instanceof zn)||o.name!==null)){if(!s.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=s.get(o.xref)}})}function qI(t,e,n){if(e.name===null)switch(e.kind){case He.Context:e.name=`ctx_r${n.index++}`;break;case He.Identifier:if(t.job.compatibility===xt.TemplateDefinitionBuilder){let r=e.identifier==="ctx"?"i":"";e.name=`${e.identifier}_${r}r${++n.index}`}else e.name=`${e.identifier}_i${n.index++}`;break;default:e.name=`_r${++n.index}`;break}return e.name}function LI(t){return t.startsWith("--")?t:iE(t)}function Dg(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function MI(t){for(let e of t.units){for(let n of e.create)(n.kind===h.Listener||n.kind===h.TwoWayListener)&&Pg(n.handlerOps);Pg(e.update)}}function Pg(t){for(let e of t){if(e.kind!==h.Statement||!(e.statement instanceof Yt)||!(e.statement.expr instanceof eu))continue;let n=e.statement.expr.steps,r=!0;for(let s=e.next;s.kind!==h.ListEnd&&r;s=s.next)it(s,(i,o)=>{if(!Nn(i))return i;if(r&&!(o&pe.InChildOperation))switch(i.kind){case $.NextContext:i.steps+=n,N.remove(e),r=!1;break;case $.GetCurrentView:case $.Reference:case $.ContextLetReference:r=!1;break}})}}var RI="ng-container";function OI(t){for(let e of t.units){let n=new Set;for(let r of e.create)r.kind===h.ElementStart&&r.tag===RI&&(r.kind=h.ContainerStart,n.add(r.xref)),r.kind===h.ElementEnd&&n.has(r.xref)&&(r.kind=h.ContainerEnd)}}function BI(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}function FI(t){let e=new Map;for(let n of t.units)for(let r of n.create)xr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.create)(r.kind===h.ElementStart||r.kind===h.ContainerStart)&&r.nonBindable&&N.insertAfter(r_(r.xref),r),(r.kind===h.ElementEnd||r.kind===h.ContainerEnd)&&BI(e,r.xref).nonBindable&&N.insertBefore(s_(r.xref),r)}function $I(t){for(let e of t.units)for(let n of e.ops())je(n,r=>{if(!(r instanceof he)||r.operator!==B.NullishCoalesce)return r;let s=new hn(r.lhs.clone(),t.allocateXrefId()),i=new Jn(s.xref);return new Xn(new he(B.And,new he(B.NotIdentical,s,Ui),new he(B.NotIdentical,i,new tt(void 0))),i.clone(),r.rhs)},pe.None)}function Bn(t){return e=>e.kind===t}function Oi(t,e){return n=>n.kind===t&&e===n.expression instanceof Re}function VI(t){return t.kind===h.Listener&&!(t.hostListener&&t.isAnimationListener)||t.kind===h.TwoWayListener}function UI(t){return(t.kind===h.Property||t.kind===h.TwoWayProperty)&&!(t.expression instanceof Re)}var HI=[{test:t=>t.kind===h.Listener&&t.hostListener&&t.isAnimationListener},{test:VI}],jI=[{test:Bn(h.StyleMap),transform:Eu},{test:Bn(h.ClassMap),transform:Eu},{test:Bn(h.StyleProp)},{test:Bn(h.ClassProp)},{test:Oi(h.Attribute,!0)},{test:Oi(h.Property,!0)},{test:UI},{test:Oi(h.Attribute,!1)}],WI=[{test:Oi(h.HostProperty,!0)},{test:Oi(h.HostProperty,!1)},{test:Bn(h.Attribute)},{test:Bn(h.StyleMap),transform:Eu},{test:Bn(h.ClassMap),transform:Eu},{test:Bn(h.StyleProp)},{test:Bn(h.ClassProp)}],qg=new Set([h.Listener,h.TwoWayListener,h.StyleMap,h.ClassMap,h.StyleProp,h.ClassProp,h.Property,h.TwoWayProperty,h.HostProperty,h.Attribute]);function GI(t){for(let e of t.units){Lg(e.create,HI);let n=e.job.kind===M.Host?WI:jI;Lg(e.update,n)}}function Lg(t,e){let n=[],r=null;for(let s of t){let i=Qa(s)?s.target:null;(!qg.has(s.kind)||i!==r&&r!==null&&i!==null)&&(N.insertBefore(Mg(n,e),s),n=[],r=null),qg.has(s.kind)&&(n.push(s),N.remove(s),r=i??r)}t.push(Mg(n,e))}function Mg(t,e){let n=Array.from(e,()=>new Array);for(let r of t){let s=e.findIndex(i=>i.test(r));n[s].push(r)}return n.flatMap((r,s)=>{let i=e[s].transform;return i?i(r):r})}function Eu(t){return t.slice(t.length-1)}function zI(t){for(let e of t.units){let n=ep(e);for(let r of e.ops())switch(r.kind){case h.Binding:let s=ZI(n,r.target);XI(r.name)&&s.kind===h.Projection&&N.remove(r);break}}}function XI(t){return t.toLowerCase()==="select"}function ZI(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an slottable target.");return n}function YI(t){for(let e of t.units)QI(e)}function QI(t){for(let e of t.update)it(e,(n,r)=>{if(Nn(n)&&n.kind===$.PipeBinding){if(r&pe.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(t.job.compatibility){if(e.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");JI(t,e.target,n)}else t.create.push(Zv(n.target,n.targetSlot,n.name))}})}function JI(t,e,n){for(let r=t.create.head.next;r.kind!==h.ListEnd;r=r.next){if(!si(r)||r.xref!==e)continue;for(;r.next.kind===h.Pipe;)r=r.next;let s=Zv(n.target,n.targetSlot,n.name);N.insertBefore(s,r.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${n.name}`)}function KI(t){for(let e of t.units)for(let n of e.update)je(n,r=>!(r instanceof es)||r.args.length<=4?r:new ru(r.target,r.targetSlot,r.name,ge(r.args),r.args.length),pe.None)}function eN(t){oE(t.root,0)}function oE(t,e){let n=null;for(let r of t.create)switch(r.kind){case h.I18nStart:r.subTemplateIndex=e===0?null:e,n=r;break;case h.I18nEnd:n.subTemplateIndex===null&&(e=0),n=null;break;case h.Template:e=Zc(t.job.views.get(r.xref),n,r.i18nPlaceholder,e);break;case h.RepeaterCreate:let s=t.job.views.get(r.xref);e=Zc(s,n,r.i18nPlaceholder,e),r.emptyView!==null&&(e=Zc(t.job.views.get(r.emptyView),n,r.emptyI18nPlaceholder,e));break}return e}function Zc(t,e,n,r){if(n!==void 0){if(e===null)throw Error("Expected template with i18n placeholder to be in an i18n block.");r++,tN(t,e)}return oE(t,r)}function tN(t,e){if(t.create.head.next?.kind!==h.I18nStart){let n=t.job.allocateXrefId();N.insertAfter(qu(n,e.message,e.root,null),t.create.head),N.insertBefore(Lu(n,null),t.create.tail)}}function nN(t){for(let e of t.units)for(let n of e.ops())it(n,r=>{if(!(r instanceof Kr)||r.body===null)return;let s=new fh(r.args.length);r.fn=t.pool.getSharedConstant(s,r.body),r.body=null})}var fh=class extends Is{constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof zs?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,n){let r=[];for(let i=0;i<this.numArgs;i++)r.push(new ze("a"+i));let s=R(n,i=>i instanceof zs?te("a"+i.index):i,pe.None);return new st(e,new jr(r,s),void 0,Ge.Final)}};function rN(t){for(let e of t.units)for(let n of e.update)je(n,(r,s)=>s&pe.InChildOperation?r:r instanceof Zt?sN(r):r instanceof cn?iN(r):r,pe.None)}function sN(t){let e=[],n=[];for(let r of t.entries)if(r.isConstant())e.push(r);else{let s=n.length;n.push(r),e.push(new zs(s))}return new Kr(ge(e),n)}function iN(t){let e=[],n=[];for(let r of t.entries)if(r.value.isConstant())e.push(r);else{let s=n.length;n.push(r.value),e.push(new Rs(r.key,new zs(s),r.quoted))}return new Kr(dt(e),n)}function oN(t,e,n,r,s){return Mu(m.element,t,e,n,r,s)}function aN(t,e,n,r,s){return Mu(m.elementStart,t,e,n,r,s)}function Mu(t,e,n,r,s,i){let o=[w(e)];return n!==null&&o.push(w(n)),s!==null?o.push(w(r),w(s)):r!==null&&o.push(w(r)),ce(t,o,i)}function uN(t){return ce(m.elementEnd,[],t)}function cN(t,e,n,r){return Mu(m.elementContainerStart,t,null,e,n,r)}function lN(t,e,n,r){return Mu(m.elementContainer,t,null,e,n,r)}function hN(){return ce(m.elementContainerEnd,[],null)}function pN(t,e,n,r,s,i,o,a){let u=[w(t),e,w(n),w(r),w(s),w(i)];for(o!==null&&(u.push(w(o)),u.push(U(m.templateRefExtractor)));u[u.length-1].isEquivalent(Ui);)u.pop();return ce(m.templateCreate,u,a)}function fN(){return ce(m.disableBindings,[],null)}function dN(){return ce(m.enableBindings,[],null)}function mN(t,e,n,r,s){let i=[w(t),e];return n!==null&&(i.push(w(!1)),i.push(U(n))),ce(r?m.syntheticHostListener:m.listener,i,s)}function Rg(t,e){return U(m.twoWayBindingSet).callFn([t,e])}function gN(t,e,n){return ce(m.twoWayListener,[w(t),e],n)}function vN(t,e){return ce(m.pipe,[w(t),w(e)],null)}function EN(){return ce(m.namespaceHTML,[],null)}function wN(){return ce(m.namespaceSVG,[],null)}function yN(){return ce(m.namespaceMathML,[],null)}function xN(t,e){return ce(m.advance,t>1?[w(t)]:[],e)}function SN(t){return U(m.reference).callFn([w(t)])}function bN(t){return U(m.nextContext).callFn(t===1?[]:[w(t)])}function TN(){return U(m.getCurrentView).callFn([])}function CN(t){return U(m.restoreView).callFn([t])}function AN(t){return U(m.resetView).callFn([t])}function _N(t,e,n){let r=[w(t,null)];return e!==""&&r.push(w(e)),ce(m.text,r,n)}function kN(t,e,n,r,s,i,o,a,u,c){let l=[w(t),w(e),n??w(null),w(r),w(s),w(i),o??w(null),a??w(null),u?U(m.deferEnableTimerScheduling):w(null)],p;for(;(p=l[l.length-1])!==null&&p instanceof tt&&p.value===null;)l.pop();return ce(m.defer,l,c)}var IN=new Map([[ke.Idle,[m.deferOnIdle,m.deferPrefetchOnIdle]],[ke.Immediate,[m.deferOnImmediate,m.deferPrefetchOnImmediate]],[ke.Timer,[m.deferOnTimer,m.deferPrefetchOnTimer]],[ke.Hover,[m.deferOnHover,m.deferPrefetchOnHover]],[ke.Interaction,[m.deferOnInteraction,m.deferPrefetchOnInteraction]],[ke.Viewport,[m.deferOnViewport,m.deferPrefetchOnViewport]]]);function NN(t,e,n,r){let s=IN.get(t);if(s===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);let i=n?s[1]:s[0];return ce(i,e.map(o=>w(o)),r)}function DN(t){return ce(m.projectionDef,t?[t]:[],null)}function PN(t,e,n,r,s,i,o){let a=[w(t)];return(e!==0||n!==null||r!==null)&&(a.push(w(e)),n!==null&&a.push(n),r!==null&&(n===null&&a.push(w(null)),a.push(te(r),w(s),w(i)))),ce(m.projection,a,o)}function qN(t,e,n,r){let s=[w(t),w(e)];return n!==null&&s.push(w(n)),ce(m.i18nStart,s,r)}function LN(t,e,n,r,s,i,o,a,u,c,l,p,f,E){let y=[w(t),te(e),w(n),w(r),w(s),w(i),o];return(a||u!==null)&&(y.push(w(a)),u!==null&&(y.push(te(u),w(c),w(l)),(p!==null||f!==null)&&y.push(w(p)),f!==null&&y.push(w(f)))),ce(m.repeaterCreate,y,E)}function MN(t,e){return ce(m.repeater,[t],e)}function RN(t,e,n){return ce(t?m.deferPrefetchWhen:m.deferWhen,[e],n)}function ON(t,e){return ce(m.declareLet,[w(t)],e)}function BN(t,e){return U(m.storeLet).callFn([t],e)}function FN(t){return U(m.readContextLet).callFn([w(t)])}function $N(t,e,n,r){let s=[w(t),w(e)];return n&&s.push(w(n)),ce(m.i18n,s,r)}function VN(t){return ce(m.i18nEnd,[],t)}function UN(t,e){let n=[w(t),w(e)];return ce(m.i18nAttributes,n,null)}function HN(t,e,n,r){let s=[w(t),e];return n!==null&&s.push(n),ce(m.property,s,r)}function jN(t,e,n,r){let s=[w(t),e];return n!==null&&s.push(n),ce(m.twoWayProperty,s,r)}function WN(t,e,n,r){let s=[w(t),e];return(n!==null||r!==null)&&s.push(n??w(null)),r!==null&&s.push(w(r)),ce(m.attribute,s,null)}function GN(t,e,n,r){let s=[w(t),e];return n!==null&&s.push(w(n)),ce(m.styleProp,s,r)}function zN(t,e,n){return ce(m.classProp,[w(t),e],n)}function XN(t,e){return ce(m.styleMap,[t],e)}function ZN(t,e){return ce(m.classMap,[t],e)}var Og=[m.pipeBind1,m.pipeBind2,m.pipeBind3,m.pipeBind4];function YN(t,e,n){if(n.length<1||n.length>Og.length)throw new Error("pipeBind() argument count out of bounds");let r=Og[n.length-1];return U(r).callFn([w(t),w(e),...n])}function QN(t,e,n){return U(m.pipeBindV).callFn([w(t),w(e),n])}function JN(t,e,n){let r=ii(t,e);return oi(lD,[],r,[],n)}function KN(t,e){return ce(m.i18nExp,[t],e)}function eD(t,e){return ce(m.i18nApply,[w(t)],e)}function tD(t,e,n,r,s){let i=ii(e,n),o=[];return r!==null&&o.push(r),oi(hD,[w(t)],i,o,s)}function nD(t,e,n,r,s){let i=ii(e,n),o=[];return r!==null&&o.push(r),oi(fD,[w(t)],i,o,s)}function rD(t,e,n,r,s){let i=ii(e,n),o=[];return r!==null&&o.push(w(r)),oi(pD,[w(t)],i,o,s)}function sD(t,e,n){let r=ii(t,e);return oi(dD,[],r,[],n)}function iD(t,e,n){let r=ii(t,e);return oi(mD,[],r,[],n)}function oD(t,e,n,r){let s=[w(t),e];return n!==null&&s.push(n),ce(m.hostProperty,s,r)}function aD(t,e,n){return ce(m.syntheticHostProperty,[w(t),e],n)}function uD(t,e,n){return aE(gD,[w(t),e],n,[],null)}function ii(t,e){if(t.length<1||e.length!==t.length-1)throw new Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");let n=[];if(e.length===1&&t[0]===""&&t[1]==="")n.push(e[0]);else{let r;for(r=0;r<e.length;r++)n.push(w(t[r]),e[r]);n.push(w(t[r]))}return n}function ce(t,e,n){let r=U(t).callFn(e,n);return In(new Yt(r,n))}function cD(t,e,n){let r=[t];return e!==null&&r.push(e),ce(m.conditional,r,n)}var lD={constant:[m.textInterpolate,m.textInterpolate1,m.textInterpolate2,m.textInterpolate3,m.textInterpolate4,m.textInterpolate5,m.textInterpolate6,m.textInterpolate7,m.textInterpolate8],variable:m.textInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},hD={constant:[m.propertyInterpolate,m.propertyInterpolate1,m.propertyInterpolate2,m.propertyInterpolate3,m.propertyInterpolate4,m.propertyInterpolate5,m.propertyInterpolate6,m.propertyInterpolate7,m.propertyInterpolate8],variable:m.propertyInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},pD={constant:[m.styleProp,m.stylePropInterpolate1,m.stylePropInterpolate2,m.stylePropInterpolate3,m.stylePropInterpolate4,m.stylePropInterpolate5,m.stylePropInterpolate6,m.stylePropInterpolate7,m.stylePropInterpolate8],variable:m.stylePropInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},fD={constant:[m.attribute,m.attributeInterpolate1,m.attributeInterpolate2,m.attributeInterpolate3,m.attributeInterpolate4,m.attributeInterpolate5,m.attributeInterpolate6,m.attributeInterpolate7,m.attributeInterpolate8],variable:m.attributeInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},dD={constant:[m.styleMap,m.styleMapInterpolate1,m.styleMapInterpolate2,m.styleMapInterpolate3,m.styleMapInterpolate4,m.styleMapInterpolate5,m.styleMapInterpolate6,m.styleMapInterpolate7,m.styleMapInterpolate8],variable:m.styleMapInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},mD={constant:[m.classMap,m.classMapInterpolate1,m.classMapInterpolate2,m.classMapInterpolate3,m.classMapInterpolate4,m.classMapInterpolate5,m.classMapInterpolate6,m.classMapInterpolate7,m.classMapInterpolate8],variable:m.classMapInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},gD={constant:[m.pureFunction0,m.pureFunction1,m.pureFunction2,m.pureFunction3,m.pureFunction4,m.pureFunction5,m.pureFunction6,m.pureFunction7,m.pureFunction8],variable:m.pureFunctionV,mapping:t=>t};function aE(t,e,n,r,s){let i=t.mapping(n.length);if(i<t.constant.length)return U(t.constant[i]).callFn([...e,...n,...r],s);if(t.variable!==null)return U(t.variable).callFn([...e,ge(n),...r],s);throw new Error("AssertionError: unable to call variadic function")}function oi(t,e,n,r,s){return In(aE(t,e,n,r,s).toStmt())}var vD=new Map([["window",m.resolveWindow],["document",m.resolveDocument],["body",m.resolveBody]]);function ED(t){for(let e of t.units)wD(e,e.create),uE(e,e.update)}function wD(t,e){for(let n of e)switch(je(n,cE,pe.None),n.kind){case h.Text:N.replace(n,_N(n.handle.slot,n.initialValue,n.sourceSpan));break;case h.ElementStart:N.replace(n,aN(n.handle.slot,n.tag,n.attributes,n.localRefs,n.startSourceSpan));break;case h.Element:N.replace(n,oN(n.handle.slot,n.tag,n.attributes,n.localRefs,n.wholeSourceSpan));break;case h.ElementEnd:N.replace(n,uN(n.sourceSpan));break;case h.ContainerStart:N.replace(n,cN(n.handle.slot,n.attributes,n.localRefs,n.startSourceSpan));break;case h.Container:N.replace(n,lN(n.handle.slot,n.attributes,n.localRefs,n.wholeSourceSpan));break;case h.ContainerEnd:N.replace(n,hN());break;case h.I18nStart:N.replace(n,qN(n.handle.slot,n.messageIndex,n.subTemplateIndex,n.sourceSpan));break;case h.I18nEnd:N.replace(n,VN(n.sourceSpan));break;case h.I18n:N.replace(n,$N(n.handle.slot,n.messageIndex,n.subTemplateIndex,n.sourceSpan));break;case h.I18nAttributes:if(n.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");N.replace(n,UN(n.handle.slot,n.i18nAttributesConfig));break;case h.Template:if(!(t instanceof Tn))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(n.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let r=t.job.views.get(n.xref);N.replace(n,pN(n.handle.slot,te(r.fnName),r.decls,r.vars,n.tag,n.attributes,n.localRefs,n.startSourceSpan));break;case h.DisableBindings:N.replace(n,fN());break;case h.EnableBindings:N.replace(n,dN());break;case h.Pipe:N.replace(n,vN(n.handle.slot,n.name));break;case h.DeclareLet:N.replace(n,ON(n.handle.slot,n.sourceSpan));break;case h.Listener:let s=Bg(t,n.handlerFnName,n.handlerOps,n.consumesDollarEvent),i=n.eventTarget?vD.get(n.eventTarget):null;if(i===void 0)throw new Error(`Unexpected global target '${n.eventTarget}' defined for '${n.name}' event. Supported list of global targets: window,document,body.`);N.replace(n,mN(n.name,s,i,n.hostListener&&n.isAnimationListener,n.sourceSpan));break;case h.TwoWayListener:N.replace(n,gN(n.name,Bg(t,n.handlerFnName,n.handlerOps,!0),n.sourceSpan));break;case h.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);N.replace(n,In(new st(n.variable.name,n.initializer,void 0,Ge.Final)));break;case h.Namespace:switch(n.active){case Ke.HTML:N.replace(n,EN());break;case Ke.SVG:N.replace(n,wN());break;case Ke.Math:N.replace(n,yN());break}break;case h.Defer:let o=!!n.loadingMinimumTime||!!n.loadingAfterTime||!!n.placeholderMinimumTime;N.replace(n,kN(n.handle.slot,n.mainSlot.slot,n.resolverFn,n.loadingSlot?.slot??null,n.placeholderSlot?.slot??null,n.errorSlot?.slot??null,n.loadingConfig,n.placeholderConfig,o,n.sourceSpan));break;case h.DeferOn:let a=[];switch(n.trigger.kind){case ke.Idle:case ke.Immediate:break;case ke.Timer:a=[n.trigger.delay];break;case ke.Interaction:case ke.Hover:case ke.Viewport:if(n.trigger.targetSlot?.slot==null||n.trigger.targetSlotViewSteps===null)throw new Error(`Slot or view steps not set in trigger reification for trigger kind ${n.trigger.kind}`);a=[n.trigger.targetSlot.slot],n.trigger.targetSlotViewSteps!==0&&a.push(n.trigger.targetSlotViewSteps);break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${n.trigger.kind}`)}N.replace(n,NN(n.trigger.kind,a,n.prefetch,n.sourceSpan));break;case h.ProjectionDef:N.replace(n,DN(n.def));break;case h.Projection:if(n.handle.slot===null)throw new Error("No slot was assigned for project instruction");let u=null,c=null,l=null;if(n.fallbackView!==null){if(!(t instanceof Tn))throw new Error("AssertionError: must be compiling a component");let I=t.job.views.get(n.fallbackView);if(I===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(I.fnName===null||I.decls===null||I.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");u=I.fnName,c=I.decls,l=I.vars}N.replace(n,PN(n.handle.slot,n.projectionSlotIndex,n.attributes,u,c,l,n.sourceSpan));break;case h.RepeaterCreate:if(n.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(t instanceof Tn))throw new Error("AssertionError: must be compiling a component");let p=t.job.views.get(n.xref);if(p.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let f=null,E=null,y=null;if(n.emptyView!==null){let I=t.job.views.get(n.emptyView);if(I===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(I.fnName===null||I.decls===null||I.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");f=I.fnName,E=I.decls,y=I.vars}N.replace(n,LN(n.handle.slot,p.fnName,n.decls,n.vars,n.tag,n.attributes,n.trackByFn,n.usesComponentInstance,f,E,y,n.emptyTag,n.emptyAttributes,n.wholeSourceSpan));break;case h.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${h[n.kind]}`)}}function uE(t,e){for(let n of e)switch(je(n,cE,pe.None),n.kind){case h.Advance:N.replace(n,xN(n.delta,n.sourceSpan));break;case h.Property:n.expression instanceof Re?N.replace(n,tD(n.name,n.expression.strings,n.expression.expressions,n.sanitizer,n.sourceSpan)):N.replace(n,HN(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case h.TwoWayProperty:N.replace(n,jN(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case h.StyleProp:n.expression instanceof Re?N.replace(n,rD(n.name,n.expression.strings,n.expression.expressions,n.unit,n.sourceSpan)):N.replace(n,GN(n.name,n.expression,n.unit,n.sourceSpan));break;case h.ClassProp:N.replace(n,zN(n.name,n.expression,n.sourceSpan));break;case h.StyleMap:n.expression instanceof Re?N.replace(n,sD(n.expression.strings,n.expression.expressions,n.sourceSpan)):N.replace(n,XN(n.expression,n.sourceSpan));break;case h.ClassMap:n.expression instanceof Re?N.replace(n,iD(n.expression.strings,n.expression.expressions,n.sourceSpan)):N.replace(n,ZN(n.expression,n.sourceSpan));break;case h.I18nExpression:N.replace(n,KN(n.expression,n.sourceSpan));break;case h.I18nApply:N.replace(n,eD(n.handle.slot,n.sourceSpan));break;case h.InterpolateText:N.replace(n,JN(n.interpolation.strings,n.interpolation.expressions,n.sourceSpan));break;case h.Attribute:n.expression instanceof Re?N.replace(n,nD(n.name,n.expression.strings,n.expression.expressions,n.sanitizer,n.sourceSpan)):N.replace(n,WN(n.name,n.expression,n.sanitizer,n.namespace));break;case h.HostProperty:if(n.expression instanceof Re)throw new Error("not yet handled");n.isAnimationTrigger?N.replace(n,aD(n.name,n.expression,n.sourceSpan)):N.replace(n,oD(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case h.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);N.replace(n,In(new st(n.variable.name,n.initializer,void 0,Ge.Final)));break;case h.Conditional:if(n.processed===null)throw new Error("Conditional test was not set.");N.replace(n,cD(n.processed,n.contextValue,n.sourceSpan));break;case h.Repeater:N.replace(n,MN(n.collection,n.sourceSpan));break;case h.DeferWhen:N.replace(n,RN(n.prefetch,n.expr,n.sourceSpan));break;case h.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${n.declaredName}`);case h.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${h[n.kind]}`)}}function cE(t){if(!Nn(t))return t;switch(t.kind){case $.NextContext:return bN(t.steps);case $.Reference:return SN(t.targetSlot.slot+1+t.offset);case $.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${t.name}`);case $.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case $.RestoreView:if(typeof t.view=="number")throw new Error("AssertionError: unresolved RestoreView");return CN(t.view);case $.ResetView:return AN(t.expr);case $.GetCurrentView:return TN();case $.ReadVariable:if(t.name===null)throw new Error(`Read of unnamed variable ${t.xref}`);return te(t.name);case $.ReadTemporaryExpr:if(t.name===null)throw new Error(`Read of unnamed temporary ${t.xref}`);return te(t.name);case $.AssignTemporaryExpr:if(t.name===null)throw new Error(`Assign of unnamed temporary ${t.xref}`);return te(t.name).set(t.expr);case $.PureFunctionExpr:if(t.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return uD(t.varOffset,t.fn,t.args);case $.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case $.PipeBinding:return YN(t.targetSlot.slot,t.varOffset,t.args);case $.PipeBindingVariadic:return QN(t.targetSlot.slot,t.varOffset,t.args);case $.SlotLiteralExpr:return w(t.slot.slot);case $.ContextLetReference:return FN(t.targetSlot.slot);case $.StoreLet:return BN(t.value,t.sourceSpan);default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${$[t.kind]}`)}}function Bg(t,e,n,r){uE(t,n);let s=[];for(let o of n){if(o.kind!==h.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${h[o.kind]}`);s.push(o.statement)}let i=[];return r&&i.push(new ze("$event")),ti(i,s,void 0,void 0,e)}function yD(t){for(let e of t.units)for(let n of e.update)switch(n.kind){case h.Attribute:case h.Binding:case h.ClassProp:case h.ClassMap:case h.Property:case h.StyleProp:case h.StyleMap:n.expression instanceof go&&N.remove(n);break}}function xD(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case h.I18nContext:N.remove(n);break;case h.I18nStart:n.context=null;break}}function SD(t){for(let e of t.units){let n=new Set;for(let r of e.update)switch(r.kind){case h.I18nExpression:n.add(r.i18nOwner)}for(let r of e.create)switch(r.kind){case h.I18nAttributes:if(n.has(r.xref))continue;N.remove(r)}}}function bD(t){for(let e of t.units)dh(e,e.create),dh(e,e.update)}function dh(t,e){let n=new Map;n.set(t.xref,te("ctx"));for(let r of e)switch(r.kind){case h.Variable:switch(r.variable.kind){case He.Context:n.set(r.variable.view,new zn(r.xref));break}break;case h.Listener:case h.TwoWayListener:dh(t,r.handlerOps);break}t===t.job.root&&n.set(t.xref,te("ctx"));for(let r of e)je(r,s=>{if(s instanceof Qn){if(!n.has(s.view))throw new Error(`No context found for reference to view ${s.view} from view ${t.xref}`);return n.get(s.view)}else return s},pe.None)}function TD(t){for(let e of t.units)Fg(e.create),Fg(e.update)}function Fg(t){for(let e of t)(e.kind===h.Listener||e.kind===h.TwoWayListener)&&je(e,n=>n instanceof Je&&n.name==="$event"?(e.kind===h.Listener&&(e.consumesDollarEvent=!0),new Xt(n.name)):n,pe.InChildOperation)}function CD(t){let e=new Map,n=new Map;for(let r of t.units)for(let s of r.create)switch(s.kind){case h.I18nContext:e.set(s.xref,s);break;case h.ElementStart:n.set(s.xref,s);break}lr(t,t.root,e,n)}function lr(t,e,n,r,s){let i=null,o=new Map;for(let a of e.create)switch(a.kind){case h.I18nStart:if(!a.context)throw Error("Could not find i18n context for i18n op");i={i18nBlock:a,i18nContext:n.get(a.context)};break;case h.I18nEnd:i=null;break;case h.ElementStart:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");$g(a,i.i18nContext,i.i18nBlock,s),s&&a.i18nPlaceholder.closeName&&o.set(a.xref,s),s=void 0}break;case h.ElementEnd:let u=r.get(a.xref);if(u&&u.i18nPlaceholder!==void 0){if(i===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Vg(u,i.i18nContext,i.i18nBlock,o.get(a.xref)),o.delete(a.xref)}break;case h.Projection:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");$g(a,i.i18nContext,i.i18nBlock,s),Vg(a,i.i18nContext,i.i18nBlock,s),s=void 0}break;case h.Template:let c=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)lr(t,c,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===yt.Structural?lr(t,c,n,r,a):(Yc(t,c,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),lr(t,c,n,r),Qc(t,c,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0)}break;case h.RepeaterCreate:if(s!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let l=a.handle.slot+1,p=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)lr(t,p,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Yc(t,p,l,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),lr(t,p,n,r),Qc(t,p,l,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}if(a.emptyView!==null){let f=a.handle.slot+2,E=t.views.get(a.emptyView);if(a.emptyI18nPlaceholder===void 0)lr(t,E,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Yc(t,E,f,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),lr(t,E,n,r),Qc(t,E,f,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break}}function $g(t,e,n,r){let{startName:s,closeName:i}=t.i18nPlaceholder,o=me.ElementTag|me.OpenTag,a=t.handle.slot;r!==void 0&&(o|=me.TemplateTag,a={element:a,template:r.handle.slot}),i||(o|=me.CloseTag),ei(e.params,s,a,n.subTemplateIndex,o)}function Vg(t,e,n,r){let{closeName:s}=t.i18nPlaceholder;if(s){let i=me.ElementTag|me.CloseTag,o=t.handle.slot;r!==void 0&&(i|=me.TemplateTag,o={element:o,template:r.handle.slot}),ei(e.params,s,o,n.subTemplateIndex,i)}}function Yc(t,e,n,r,s,i,o){let{startName:a,closeName:u}=r,c=me.TemplateTag|me.OpenTag;u||(c|=me.CloseTag),o!==void 0&&ei(s.params,a,o.handle.slot,i.subTemplateIndex,c),ei(s.params,a,n,lE(t,i,e),c)}function Qc(t,e,n,r,s,i,o){let{closeName:a}=r,u=me.TemplateTag|me.CloseTag;a&&(ei(s.params,a,n,lE(t,i,e),u),o!==void 0&&ei(s.params,a,o.handle.slot,i.subTemplateIndex,u))}function lE(t,e,n){for(let r of n.create)if(r.kind===h.I18nStart)return r.subTemplateIndex;return e.subTemplateIndex}function ei(t,e,n,r,s){let i=t.get(e)??[];i.push({value:n,subTemplateIndex:r,flags:s}),t.set(e,i)}function AD(t){let e=new Map,n=new Map,r=new Map;for(let o of t.units)for(let a of o.create)switch(a.kind){case h.I18nStart:e.set(a.xref,a.subTemplateIndex);break;case h.I18nContext:n.set(a.xref,a);break;case h.IcuPlaceholder:r.set(a.xref,a);break}let s=new Map,i=o=>o.usage===Qr.I18nText?o.i18nOwner:o.context;for(let o of t.units)for(let a of o.update)if(a.kind===h.I18nExpression){let u=s.get(i(a))||0,c=e.get(a.i18nOwner)??null,l={value:u,subTemplateIndex:c,flags:me.ExpressionIndex};_D(a,l,n,r),s.set(i(a),u+1)}}function _D(t,e,n,r){if(t.i18nPlaceholder!==null){let s=n.get(t.context),i=t.resolutionTime===Gs.Creation?s.params:s.postprocessingParams,o=i.get(t.i18nPlaceholder)||[];o.push(e),i.set(t.i18nPlaceholder,o)}t.icuPlaceholder!==null&&r.get(t.icuPlaceholder)?.expressionPlaceholders.push(e)}function kD(t){for(let e of t.units)mh(e,e.create,null),mh(e,e.update,null)}function mh(t,e,n){let r=new Map,s=new Map;for(let i of e)switch(i.kind){case h.Variable:switch(i.variable.kind){case He.Identifier:if(i.variable.local){if(s.has(i.variable.identifier))continue;s.set(i.variable.identifier,i.xref)}else if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref);break;case He.Alias:if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref);break;case He.SavedView:n={view:i.variable.view,variable:i.xref};break}break;case h.Listener:case h.TwoWayListener:mh(t,i.handlerOps,n);break}for(let i of e)i.kind==h.Listener||i.kind===h.TwoWayListener||je(i,o=>{if(o instanceof Je)return s.has(o.name)?new zn(s.get(o.name)):r.has(o.name)?new zn(r.get(o.name)):new Lt(new Qn(t.job.root.xref),o.name);if(o instanceof tu&&typeof o.view=="number"){if(n===null||n.view!==o.view)throw new Error(`AssertionError: no saved view ${o.view} from view ${t.xref}`);return o.view=new zn(n.variable),o}else return o},pe.None);for(let i of e)it(i,o=>{if(o instanceof Je)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var ID=new Map([[be.HTML,m.sanitizeHtml],[be.RESOURCE_URL,m.sanitizeResourceUrl],[be.SCRIPT,m.sanitizeScript],[be.STYLE,m.sanitizeStyle],[be.URL,m.sanitizeUrl]]),ND=new Map([[be.HTML,m.trustConstantHtml],[be.RESOURCE_URL,m.trustConstantResourceUrl]]);function DD(t){for(let e of t.units){let n=ep(e);if(t.kind!==M.Host){for(let r of e.create)if(r.kind===h.ExtractedAttribute){let s=ND.get(Ug(r.securityContext))??null;r.trustedValueFn=s!==null?U(s):null}}for(let r of e.update)switch(r.kind){case h.Property:case h.Attribute:case h.HostProperty:let s=null;if(Array.isArray(r.securityContext)&&r.securityContext.length===2&&r.securityContext.indexOf(be.URL)>-1&&r.securityContext.indexOf(be.RESOURCE_URL)>-1?s=m.sanitizeUrlOrResourceUrl:s=ID.get(Ug(r.securityContext))??null,r.sanitizer=s!==null?U(s):null,r.sanitizer===null){let i=!1;if(t.kind===M.Host||r.kind===h.HostProperty)i=!0;else{let o=n.get(r.target);if(o===void 0||!xr(o))throw Error("Property should have an element-like owner");i=PD(o)}i&&Dk(r.name)&&(r.sanitizer=U(m.validateIframeAttribute))}break}}}function PD(t){return t.kind===h.ElementStart&&t.tag?.toLowerCase()==="iframe"}function Ug(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||be.NONE}return t}function qD(t){for(let e of t.units)for(let n of e.create)n.kind===h.TwoWayListener&&je(n,r=>{if(!(r instanceof nu))return r;let{target:s,value:i}=r;if(s instanceof Lt||s instanceof Zn)return Rg(s,i).or(s.set(i));if(s instanceof zn)return Rg(s,i);throw new Error("Unsupported expression in two-way action binding.")},pe.InChildOperation)}function LD(t){for(let e of t.units){e.create.prepend([dr(e.job.allocateXrefId(),{kind:He.SavedView,name:null,view:e.xref},new Vl,It.None)]);for(let n of e.create){if(n.kind!==h.Listener&&n.kind!==h.TwoWayListener)continue;let r=e!==t.root;if(!r)for(let s of n.handlerOps)it(s,i=>{(i instanceof Ja||i instanceof mo)&&(r=!0)});r&&MD(e,n)}}}function MD(t,e){e.handlerOps.prepend([dr(t.job.allocateXrefId(),{kind:He.Context,name:null,view:t.xref},new tu(t.xref),It.None)]);for(let n of e.handlerOps)n.kind===h.Statement&&n.statement instanceof wt&&(n.statement.value=new Ul(n.statement.value))}function RD(t){let e=new Map;for(let n of t.units){let r=0;for(let s of n.create)si(s)&&(s.handle.slot=r,e.set(s.xref,s.handle.slot),r+=s.numSlotsUsed);n.decls=r}for(let n of t.units)for(let r of n.ops())if(r.kind===h.Template||r.kind===h.RepeaterCreate){let s=t.views.get(r.xref);r.decls=s.decls}}function OD(t){for(let e of t.units)for(let n of e.update)if(n.kind===h.Binding)switch(n.bindingKind){case V.ClassName:if(n.expression instanceof Re)throw new Error("Unexpected interpolation in ClassName binding");N.replace(n,j1(n.target,n.name,n.expression,n.sourceSpan));break;case V.StyleProperty:N.replace(n,H1(n.target,n.name,n.expression,n.unit,n.sourceSpan));break;case V.Property:case V.Template:n.name==="style"?N.replace(n,W1(n.target,n.expression,n.sourceSpan)):n.name==="class"&&N.replace(n,G1(n.target,n.expression,n.sourceSpan));break}}function BD(t){for(let e of t.units)e.create.prepend(gh(e.create)),e.update.prepend(gh(e.update))}function gh(t){let e=0,n=[];for(let r of t){let s=new Map;it(r,(c,l)=>{l&pe.InChildOperation||c instanceof Jn&&s.set(c.xref,c)});let i=0,o=new Set,a=new Set,u=new Map;it(r,(c,l)=>{l&pe.InChildOperation||(c instanceof hn?(o.has(c.xref)||(o.add(c.xref),u.set(c.xref,`tmp_${e}_${i++}`)),Hg(u,c)):c instanceof Jn&&(s.get(c.xref)===c&&(a.add(c.xref),i--),Hg(u,c)))}),n.push(...Array.from(new Set(u.values())).map(c=>In(new st(c)))),e++,(r.kind===h.Listener||r.kind===h.TwoWayListener)&&r.handlerOps.prepend(gh(r.handlerOps))}return n}function Hg(t,e){let n=t.get(e.xref);if(n===void 0)throw new Error(`Found xref with unassigned name: ${e.xref}`);e.name=n}function FD(t){for(let e of t.units)for(let n of e.create){if(n.kind!==h.RepeaterCreate||n.trackByFn!==null)continue;let r=!1;n.track=R(n.track,o=>{if(o instanceof es||o instanceof ru)throw new Error("Illegal State: Pipes are not allowed in this context");return o instanceof Ka?(r=!0,te("this")):o},pe.None);let s,i=[new ze("$index"),new ze("$item")];r?s=new Hn(i,[new wt(n.track)]):s=kn(i,n.track),n.trackByFn=t.pool.getSharedFunctionReference(s,"_forTrack")}}function $D(t){for(let e of t.units)for(let n of e.create)n.kind===h.RepeaterCreate&&(n.track instanceof Xt&&n.track.name==="$index"?n.trackByFn=U(m.repeaterTrackByIndex):n.track instanceof Xt&&n.track.name==="$item"?n.trackByFn=U(m.repeaterTrackByIdentity):VD(t.root.xref,n.track)?(n.usesComponentInstance=!0,n.track.receiver.receiver.view===e.xref?n.trackByFn=n.track.receiver:(n.trackByFn=U(m.componentInstance).callFn([]).prop(n.track.receiver.name),n.track=n.trackByFn)):n.track=R(n.track,r=>r instanceof Qn?(n.usesComponentInstance=!0,new Ka(r.view)):r,pe.None))}function VD(t,e){if(!(e instanceof ft)||e.args.length===0||e.args.length>2||!(e.receiver instanceof Lt&&e.receiver.receiver instanceof Qn)||e.receiver.receiver.view!==t)return!1;let[n,r]=e.args;return!(n instanceof Xt)||n.name!=="$index"?!1:e.args.length===1?!0:!(!(r instanceof Xt)||r.name!=="$item")}function UD(t){for(let e of t.units)for(let n of e.create)n.kind===h.RepeaterCreate&&(n.track=R(n.track,r=>{if(r instanceof Je){if(n.varNames.$index.has(r.name))return te("$index");if(r.name===n.varNames.$implicit)return te("$item")}return r},pe.None))}function HD(t){for(let e of t.units){let n=0;for(let r of e.ops())Uc(r)&&(n+=jD(r));for(let r of e.ops())it(r,s=>{Nn(s)&&(t.compatibility===xt.TemplateDefinitionBuilder&&s instanceof Kr||(Jm(s)&&(s.varOffset=n),Uc(s)&&(n+=jg(s))))});if(t.compatibility===xt.TemplateDefinitionBuilder)for(let r of e.ops())it(r,s=>{!Nn(s)||!(s instanceof Kr)||(Jm(s)&&(s.varOffset=n),Uc(s)&&(n+=jg(s)))});e.vars=n}if(t instanceof Eo)for(let e of t.units)for(let n of e.create){if(n.kind!==h.Template&&n.kind!==h.RepeaterCreate)continue;let r=t.views.get(n.xref);n.vars=r.vars}}function jD(t){let e;switch(t.kind){case h.Property:case h.HostProperty:case h.Attribute:return e=1,t.expression instanceof Re&&!WD(t.expression)&&(e+=t.expression.expressions.length),e;case h.TwoWayProperty:return 1;case h.StyleProp:case h.ClassProp:case h.StyleMap:case h.ClassMap:return e=2,t.expression instanceof Re&&(e+=t.expression.expressions.length),e;case h.InterpolateText:return t.interpolation.expressions.length;case h.I18nExpression:case h.Conditional:case h.DeferWhen:case h.StoreLet:return 1;case h.RepeaterCreate:return t.emptyView?1:0;default:throw new Error(`Unhandled op: ${h[t.kind]}`)}}function jg(t){switch(t.kind){case $.PureFunctionExpr:return 1+t.args.length;case $.PipeBinding:return 1+t.args.length;case $.PipeBindingVariadic:return 1+t.numArgs;case $.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function WD(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function GD(t){for(let e of t.units){Jc(e.create),Jc(e.update);for(let n of e.create)(n.kind===h.Listener||n.kind===h.TwoWayListener)&&Jc(n.handlerOps);Kc(e.create,t.compatibility),Kc(e.update,t.compatibility);for(let n of e.create)(n.kind===h.Listener||n.kind===h.TwoWayListener)&&Kc(n.handlerOps,t.compatibility)}}var Oe;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(Oe||(Oe={}));function Jc(t){let e=new Map;for(let n of t)n.kind===h.Variable&&n.flags&It.AlwaysInline&&(it(n,r=>{if(Nn(r)&&tp(r)!==Oe.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(n.xref,n)),je(n,r=>r instanceof zn&&e.has(r.xref)?e.get(r.xref).initializer.clone():r,pe.None);for(let n of e.values())N.remove(n)}function Kc(t,e){let n=new Map,r=new Map,s=new Set,i=new Map;for(let c of t){if(c.kind===h.Variable){if(n.has(c.xref)||r.has(c.xref))throw new Error(`Should not see two declarations of the same variable: ${c.xref}`);n.set(c.xref,c),r.set(c.xref,0)}i.set(c,zD(c)),XD(c,r,s)}let o=!1;for(let c of t.reversed()){let l=i.get(c);if(c.kind===h.Variable&&r.get(c.xref)===0){if(o&&l.fences&Oe.ViewContextWrite||l.fences&Oe.SideEffectful){let p=In(c.initializer.toStmt());i.set(p,l),N.replace(c,p)}else ZD(c,r),N.remove(c);i.delete(c),n.delete(c.xref),r.delete(c.xref);continue}l.fences&Oe.ViewContextRead&&(o=!0)}let a=[];for(let[c,l]of r){let f=!!(n.get(c).flags&It.AlwaysInline);l!==1||f||s.has(c)||a.push(c)}let u;for(;u=a.pop();){let c=n.get(u),l=i.get(c);if(!!(c.flags&It.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let f=c.next;f.kind!==h.ListEnd;f=f.next){let E=i.get(f);if(E.variablesUsed.has(u)){if(e===xt.TemplateDefinitionBuilder&&!QD(c,f))break;if(YD(u,c.initializer,f,l.fences)){E.variablesUsed.delete(u);for(let y of l.variablesUsed)E.variablesUsed.add(y);E.fences|=l.fences,n.delete(u),r.delete(u),i.delete(c),N.remove(c)}break}if(!hE(E.fences,l.fences))break}}}function tp(t){switch(t.kind){case $.NextContext:return Oe.ViewContextRead|Oe.ViewContextWrite;case $.RestoreView:return Oe.ViewContextRead|Oe.ViewContextWrite|Oe.SideEffectful;case $.StoreLet:return Oe.SideEffectful;case $.Reference:case $.ContextLetReference:return Oe.ViewContextRead;default:return Oe.None}}function zD(t){let e=Oe.None,n=new Set;return it(t,r=>{if(Nn(r))switch(r.kind){case $.ReadVariable:n.add(r.xref);break;default:e|=tp(r)}}),{fences:e,variablesUsed:n}}function XD(t,e,n){it(t,(r,s)=>{if(!Nn(r)||r.kind!==$.ReadVariable)return;let i=e.get(r.xref);i!==void 0&&(e.set(r.xref,i+1),s&pe.InChildOperation&&n.add(r.xref))})}function ZD(t,e){it(t,n=>{if(!Nn(n)||n.kind!==$.ReadVariable)return;let r=e.get(n.xref);if(r!==void 0){if(r===0)throw new Error(`Inaccurate variable count: ${n.xref} - found another read but count is already 0`);e.set(n.xref,r-1)}})}function hE(t,e){if(t&Oe.ViewContextWrite){if(e&Oe.ViewContextRead)return!1}else if(t&Oe.ViewContextRead&&e&Oe.ViewContextWrite)return!1;return!0}function YD(t,e,n,r){let s=!1,i=!0;return je(n,(o,a)=>{if(!Nn(o)||s||!i)return o;if(a&pe.InChildOperation&&r&Oe.ViewContextRead)return o;switch(o.kind){case $.ReadVariable:if(o.xref===t)return s=!0,e;break;default:let u=tp(o);i=i&&hE(u,r);break}return o},pe.None),s}function QD(t,e){switch(t.variable.kind){case He.Identifier:return t.initializer instanceof Xt&&t.initializer.name==="ctx";case He.Context:return e.kind===h.Variable;default:return!0}}function JD(t){for(let e of t.units){let n=null,r=null;for(let s of e.create)switch(s.kind){case h.I18nStart:n=s;break;case h.I18nEnd:n=null;break;case h.IcuStart:n===null&&(r=t.allocateXrefId(),N.insertBefore(qu(r,s.message,void 0,null),s));break;case h.IcuEnd:r!==null&&(N.insertAfter(Lu(r,null),s),r=null);break}}}function KD(t){let e=new Set;for(let n of t.units)for(let r of n.ops())it(r,s=>{s instanceof mo&&e.add(s.target)});for(let n of t.units)for(let r of n.update)je(r,s=>s instanceof fo&&!e.has(s.target)?s.value:s,pe.None)}function eP(t){for(let e of t.units)for(let n of e.update){if(n.kind!==h.Variable||n.variable.kind!==He.Identifier||!(n.initializer instanceof fo))continue;let r=n.variable.identifier,s=n;for(;s&&s.kind!==h.ListEnd;)je(s,i=>i instanceof Je&&i.name===r?w(void 0):i,pe.None),s=s.prev}}function tP(t){for(let e of t.units)for(let n of e.update){if(n.kind!==h.StoreLet)continue;let r={kind:He.Identifier,name:null,identifier:n.declaredName,local:!0};N.replace(n,dr(t.allocateXrefId(),r,new fo(n.target,n.value,n.sourceSpan),It.None))}}var nP=[{kind:M.Tmpl,fn:zI},{kind:M.Host,fn:dk},{kind:M.Tmpl,fn:II},{kind:M.Tmpl,fn:eN},{kind:M.Tmpl,fn:JD},{kind:M.Both,fn:O_},{kind:M.Both,fn:OD},{kind:M.Both,fn:b_},{kind:M.Both,fn:y_},{kind:M.Tmpl,fn:R_},{kind:M.Both,fn:DI},{kind:M.Tmpl,fn:yD},{kind:M.Both,fn:__},{kind:M.Both,fn:GI},{kind:M.Tmpl,fn:k_},{kind:M.Tmpl,fn:YI},{kind:M.Tmpl,fn:B_},{kind:M.Tmpl,fn:AI},{kind:M.Tmpl,fn:L_},{kind:M.Tmpl,fn:SD},{kind:M.Tmpl,fn:w_},{kind:M.Tmpl,fn:v_},{kind:M.Tmpl,fn:KI},{kind:M.Both,fn:rN},{kind:M.Tmpl,fn:ck},{kind:M.Tmpl,fn:tP},{kind:M.Tmpl,fn:lk},{kind:M.Tmpl,fn:LD},{kind:M.Both,fn:m_},{kind:M.Both,fn:TD},{kind:M.Tmpl,fn:UD},{kind:M.Tmpl,fn:eP},{kind:M.Both,fn:kD},{kind:M.Tmpl,fn:F_},{kind:M.Tmpl,fn:qD},{kind:M.Tmpl,fn:$D},{kind:M.Both,fn:bD},{kind:M.Both,fn:DD},{kind:M.Tmpl,fn:_I},{kind:M.Both,fn:$I},{kind:M.Both,fn:H_},{kind:M.Both,fn:BD},{kind:M.Both,fn:GD},{kind:M.Both,fn:KD},{kind:M.Tmpl,fn:RD},{kind:M.Tmpl,fn:CD},{kind:M.Tmpl,fn:AD},{kind:M.Tmpl,fn:sk},{kind:M.Tmpl,fn:FD},{kind:M.Tmpl,fn:xI},{kind:M.Tmpl,fn:pk},{kind:M.Both,fn:P_},{kind:M.Tmpl,fn:xD},{kind:M.Both,fn:HD},{kind:M.Tmpl,fn:uk},{kind:M.Both,fn:PI},{kind:M.Tmpl,fn:M_},{kind:M.Tmpl,fn:MI},{kind:M.Tmpl,fn:OI},{kind:M.Tmpl,fn:U_},{kind:M.Tmpl,fn:FI},{kind:M.Both,fn:nN},{kind:M.Both,fn:ED},{kind:M.Both,fn:A_}];function pE(t,e){for(let n of nP)(n.kind===e||n.kind===M.Both)&&n.fn(t)}function rP(t,e){let n=dE(t.root);return fE(t.root,e),n}function fE(t,e){for(let n of t.job.units){if(n.parent!==t.xref)continue;fE(n,e);let r=dE(n);e.statements.push(r.toDeclStmt(r.name))}}function dE(t){if(t.fnName===null)throw new Error(`AssertionError: view ${t.xref} is unnamed`);let e=[];for(let i of t.create){if(i.kind!==h.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${h[i.kind]}`);e.push(i.statement)}let n=[];for(let i of t.update){if(i.kind!==h.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${h[i.kind]}`);n.push(i.statement)}let r=wu(1,e),s=wu(2,n);return ti([new ze("rf"),new ze("ctx")],[...r,...s],void 0,void 0,t.fnName)}function wu(t,e){return e.length===0?[]:[ku(new he(B.BitwiseAnd,te("rf"),w(t)),e)]}function sP(t){if(t.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let e=[];for(let i of t.root.create){if(i.kind!==h.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${h[i.kind]}`);e.push(i.statement)}let n=[];for(let i of t.root.update){if(i.kind!==h.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${h[i.kind]}`);n.push(i.statement)}if(e.length===0&&n.length===0)return null;let r=wu(1,e),s=wu(2,n);return ti([new ze("rf"),new ze("ctx")],[...r,...s],void 0,void 0,t.root.fnName)}var mE=xt.TemplateDefinitionBuilder,Vr=new Ks,Ur="ng-template";function vh(t){return t instanceof pt}function iP(t){return vh(t)&&t.nodes.length===1&&t.nodes[0]instanceof ja}function oP(t,e,n,r,s,i,o){let a=new Eo(t,n,mE,r,s,i,o);return Kn(a.root,e),a}function aP(t,e,n){let r=new cu(t.componentName,n,mE);for(let s of t.properties??[]){let i=V.Property;s.name.startsWith("attr.")&&(s.name=s.name.substring(5),i=V.Attribute),s.isAnimation&&(i=V.Animation);let o=e.calcPossibleSecurityContexts(t.componentSelector,s.name,i===V.Attribute).filter(a=>a!==be.NONE);uP(r,s,i,o)}for(let[s,i]of Object.entries(t.attributes)??[]){let o=e.calcPossibleSecurityContexts(t.componentSelector,s,!0).filter(a=>a!==be.NONE);cP(r,s,i,o)}for(let s of t.events??[])lP(r,s);return r}function uP(t,e,n,r){let s,i=e.expression.ast;i instanceof Xr?s=new Re(i.strings,i.expressions.map(o=>J(o,t,e.sourceSpan)),[]):s=J(i,t,e.sourceSpan),t.root.update.push(Jr(t.root.xref,n,e.name,s,null,r,!1,!1,null,null,e.sourceSpan))}function cP(t,e,n,r){let s=Jr(t.root.xref,V.Attribute,e,n,null,r,!0,!1,null,null,n.sourceSpan);t.root.update.push(s)}function lP(t,e){let[n,r]=e.type!==Dt.Animation?[null,e.targetOrPhase]:[e.targetOrPhase,null],s=Kh(t.root.xref,new St,e.name,null,np(t.root,e.handler,e.handlerSpan),n,r,!0,e.sourceSpan);t.root.create.push(s)}function Kn(t,e){for(let n of e)if(n instanceof Qt)hP(t,n);else if(n instanceof Pt)pP(t,n);else if(n instanceof js)fP(t,n);else if(n instanceof Fn)gE(t,n,null);else if(n instanceof Vs)vE(t,n,null);else if(n instanceof Va)dP(t,n);else if(n instanceof $a)mP(t,n);else if(n instanceof Zr)gP(t,n);else if(n instanceof Ha)vP(t,n);else if(n instanceof Hs)EP(t,n);else if(n instanceof no)yP(t,n);else throw new Error(`Unsupported template node: ${n.constructor.name}`)}function hP(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof pt||e.i18n instanceof vr))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=t.job.allocateXrefId(),[r,s]=ln(e.name),i=e_(s,n,Jv(r),e.i18n instanceof vr?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(i),SP(t,i,e),yE(i,e);let o=null;e.i18n instanceof pt&&(o=t.job.allocateXrefId(),t.create.push(qu(o,e.i18n,void 0,e.startSourceSpan))),Kn(t,e.children);let a=n_(n,e.endSourceSpan??e.startSourceSpan);t.create.push(a),o!==null&&N.insertBefore(Lu(o,e.endSourceSpan??e.startSourceSpan),a)}function pP(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof pt||e.i18n instanceof vr))throw Error(`Unhandled i18n metadata type for template: ${e.i18n.constructor.name}`);let n=t.job.allocateView(t.xref),r=e.tagName,s="";e.tagName&&([s,r]=ln(e.tagName));let i=e.i18n instanceof vr?e.i18n:void 0,o=Jv(s),a=r===null?"":D_(r,o),u=xP(e)?yt.NgTemplate:yt.Structural,c=Pu(n.xref,u,r,a,o,i,e.startSourceSpan,e.sourceSpan);t.create.push(c),bP(t,c,e,u),yE(c,e),Kn(n,e.children);for(let{name:l,value:p}of e.variables)n.contextVariables.set(l,p!==""?p:"$implicit");if(u===yt.NgTemplate&&e.i18n instanceof pt){let l=t.job.allocateXrefId();N.insertAfter(qu(l,e.i18n,void 0,e.startSourceSpan),n.create.head),N.insertBefore(Lu(l,e.endSourceSpan??e.startSourceSpan),n.create.tail)}}function fP(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof vr))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=null;e.children.some(i=>!(i instanceof $s)&&(!(i instanceof Fn)||i.value.trim().length>0))&&(n=t.job.allocateView(t.xref),Kn(n,e.children));let r=t.job.allocateXrefId(),s=a_(r,e.selector,e.i18n,n?.xref??null,e.sourceSpan);for(let i of e.attributes){let o=Vr.securityContext(e.name,i.name,!0);t.update.push(Jr(s.xref,V.Attribute,i.name,w(i.value),null,o,!0,!1,null,Un(i.i18n),i.sourceSpan))}t.create.push(s)}function gE(t,e,n){t.create.push(zv(t.job.allocateXrefId(),e.value,n,e.sourceSpan))}function vE(t,e,n){let r=e.value;if(r instanceof Ht&&(r=r.ast),!(r instanceof Xr))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${r.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Wn))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let s=e.i18n instanceof Wn?e.i18n.children.filter(a=>a instanceof Wa).map(a=>a.name):[];if(s.length>0&&s.length!==r.expressions.length)throw Error(`Unexpected number of i18n placeholders (${r.expressions.length}) for BoundText with ${r.expressions.length} expressions`);let i=t.job.allocateXrefId();t.create.push(zv(i,"",n,e.sourceSpan));let o=t.job.compatibility?null:e.sourceSpan;t.update.push($1(i,new Re(r.strings,r.expressions.map(a=>J(a,t.job,o)),s),e.sourceSpan))}function dP(t,e){let n=null,r=[];for(let s=0;s<e.branches.length;s++){let i=e.branches[s],o=t.job.allocateView(t.xref),a=yu(t,o.xref,i);i.expressionAlias!==null&&o.contextVariables.set(i.expressionAlias.name,Qv);let u;if(i.i18n!==void 0){if(!(i.i18n instanceof Er))throw Error(`Unhandled i18n metadata type for if block: ${i.i18n?.constructor.name}`);u=i.i18n}let c=Pu(o.xref,yt.Block,a,"Conditional",Ke.HTML,u,i.startSourceSpan,i.sourceSpan);t.create.push(c),n===null&&(n=o.xref);let l=i.expression?J(i.expression,t.job,null):null,p=new iu(l,c.xref,c.handle,i.expressionAlias);r.push(p),Kn(o,i.children)}t.update.push(jv(n,null,r,e.sourceSpan))}function mP(t,e){if(e.cases.length===0)return;let n=null,r=[];for(let s of e.cases){let i=t.job.allocateView(t.xref),o=yu(t,i.xref,s),a;if(s.i18n!==void 0){if(!(s.i18n instanceof Er))throw Error(`Unhandled i18n metadata type for switch block: ${s.i18n?.constructor.name}`);a=s.i18n}let u=Pu(i.xref,yt.Block,o,"Case",Ke.HTML,a,s.startSourceSpan,s.sourceSpan);t.create.push(u),n===null&&(n=i.xref);let c=s.expression?J(s.expression,t.job,e.startSourceSpan):null,l=new iu(c,u.xref,u.handle);r.push(l),Kn(i,s.children)}t.update.push(jv(n,J(e.expression,t.job,null),r,e.sourceSpan))}function aa(t,e,n,r,s){if(n!==void 0&&!(n instanceof Er))throw Error("Unhandled i18n metadata type for defer block");if(r===void 0)return null;let i=t.job.allocateView(t.xref);Kn(i,r);let o=Pu(i.xref,yt.Block,null,`Defer${e}`,Ke.HTML,n,s,s);return t.create.push(o),o}function gP(t,e){let n=null;if(t.job.deferMeta.mode===0){if(!t.job.deferMeta.blocks.has(e))throw new Error("AssertionError: unable to find a dependency function for this deferred block");n=t.job.deferMeta.blocks.get(e)??null}let r=aa(t,"",e.i18n,e.children,e.sourceSpan),s=aa(t,"Loading",e.loading?.i18n,e.loading?.children,e.loading?.sourceSpan),i=aa(t,"Placeholder",e.placeholder?.i18n,e.placeholder?.children,e.placeholder?.sourceSpan),o=aa(t,"Error",e.error?.i18n,e.error?.children,e.error?.sourceSpan),a=t.job.allocateXrefId(),u=u_(a,r.xref,r.handle,n,t.job.allDeferrableDepsFn,e.sourceSpan);u.placeholderView=i?.xref??null,u.placeholderSlot=i?.handle??null,u.loadingSlot=s?.handle??null,u.errorSlot=o?.handle??null,u.placeholderMinimumTime=e.placeholder?.minimumTime??null,u.loadingMinimumTime=e.loading?.minimumTime??null,u.loadingAfterTime=e.loading?.afterTime??null,t.create.push(u);let c=!1,l=[],p=[];for(let f of[e.triggers,e.prefetchTriggers]){if(f.idle!==void 0){let E=Nr(a,{kind:ke.Idle},c,f.idle.sourceSpan);l.push(E)}if(f.immediate!==void 0){let E=Nr(a,{kind:ke.Immediate},c,f.immediate.sourceSpan);l.push(E)}if(f.timer!==void 0){let E=Nr(a,{kind:ke.Timer,delay:f.timer.delay},c,f.timer.sourceSpan);l.push(E)}if(f.hover!==void 0){let E=Nr(a,{kind:ke.Hover,targetName:f.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},c,f.hover.sourceSpan);l.push(E)}if(f.interaction!==void 0){let E=Nr(a,{kind:ke.Interaction,targetName:f.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},c,f.interaction.sourceSpan);l.push(E)}if(f.viewport!==void 0){let E=Nr(a,{kind:ke.Viewport,targetName:f.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},c,f.viewport.sourceSpan);l.push(E)}if(f.when!==void 0){if(f.when.value instanceof Xr)throw new Error("Unexpected interpolation in defer block when trigger");let E=Y1(a,J(f.when.value,t.job,f.when.sourceSpan),c,f.when.sourceSpan);p.push(E)}l.length===0&&p.length===0&&l.push(Nr(a,{kind:ke.Idle},!1,null)),c=!0}t.create.push(l),t.update.push(p)}function vP(t,e){if(e.i18n instanceof pt&&iP(e.i18n)){let n=t.job.allocateXrefId();t.create.push(h_(n,e.i18n,Cv(e.i18n).name,null));for(let[r,s]of Object.entries({...e.vars,...e.placeholders}))s instanceof Vs?vE(t,s,r):gE(t,s,r);t.create.push(p_(n))}else throw Error(`Unhandled i18n metadata type for ICU: ${e.i18n?.constructor.name}`)}function EP(t,e){let n=t.job.allocateView(t.xref),r=`\u0275$index_${n.xref}`,s=`\u0275$count_${n.xref}`,i=new Set;n.contextVariables.set(e.item.name,e.item.value);for(let A of e.contextVariables)A.value==="$index"&&i.add(A.name),A.name==="$index"?n.contextVariables.set("$index",A.value).set(r,A.value):A.name==="$count"?n.contextVariables.set("$count",A.value).set(s,A.value):n.aliases.add({kind:He.Alias,name:null,identifier:A.name,expression:wP(A,r,s)});let o=Qe(e.trackBy.span,e.sourceSpan),a=J(e.trackBy,t.job,o);Kn(n,e.children);let u=null,c=null;e.empty!==null&&(u=t.job.allocateView(t.xref),Kn(u,e.empty.children),c=yu(t,u.xref,e.empty));let l={$index:i,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof Er))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(e.empty?.i18n!==void 0&&!(e.empty.i18n instanceof Er))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let p=e.i18n,f=e.empty?.i18n,E=yu(t,n.xref,e),y=t_(n.xref,u?.xref??null,E,a,l,c,p,f,e.startSourceSpan,e.sourceSpan);t.create.push(y);let I=J(e.expression,t.job,Qe(e.expression.span,e.sourceSpan)),k=Z1(y.xref,y.handle,I,e.sourceSpan);t.update.push(k)}function wP(t,e,n){switch(t.value){case"$index":return new Je(e);case"$count":return new Je(n);case"$first":return new Je(e).identical(w(0));case"$last":return new Je(e).identical(new Je(n).minus(w(1)));case"$even":return new Je(e).modulo(w(2)).identical(w(0));case"$odd":return new Je(e).modulo(w(2)).notIdentical(w(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function yP(t,e){let n=t.job.allocateXrefId();t.create.push(c_(n,e.name,e.sourceSpan)),t.update.push(J1(n,e.name,J(e.value,t.job,e.valueSpan),e.sourceSpan))}function J(t,e,n){if(t instanceof Ht)return J(t.ast,e,n);if(t instanceof zr){let r=t.receiver instanceof Br,s=t.receiver instanceof jn&&!(t.receiver instanceof Br),i=t.name==="$any"||t.name==="$event";return s||r&&!i?new Je(t.name):new Lt(J(t.receiver,e,n),t.name,null,Qe(t.span,n))}else{if(t instanceof Ca)return t.receiver instanceof jn?new Ls(new Qn(e.root.xref),t.name,J(t.value,e,n),null,Qe(t.span,n)):new Ls(J(t.receiver,e,n),t.name,J(t.value,e,n),void 0,Qe(t.span,n));if(t instanceof ka)return new Fi(J(t.receiver,e,n),J(t.key,e,n),J(t.value,e,n),void 0,Qe(t.span,n));if(t instanceof Pa){if(t.receiver instanceof jn)throw new Error("Unexpected ImplicitReceiver");return new ft(J(t.receiver,e,n),t.args.map(r=>J(r,e,n)),void 0,Qe(t.span,n))}else{if(t instanceof Vt)return w(t.value,void 0,Qe(t.span,n));if(t instanceof zi)switch(t.operator){case"+":return new Ms(Ps.Plus,J(t.expr,e,n),void 0,Qe(t.span,n));case"-":return new Ms(Ps.Minus,J(t.expr,e,n),void 0,Qe(t.span,n));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof $t){let r=I_.get(t.operation);if(r===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new he(r,J(t.left,e,n),J(t.right,e,n),void 0,Qe(t.span,n))}else{if(t instanceof Br)return new Qn(e.root.xref);if(t instanceof Fs)return new Zn(J(t.receiver,e,n),J(t.key,e,n),void 0,Qe(t.span,n));if(t instanceof Bs)throw new Error("AssertionError: Chain in unknown context");if(t instanceof Da){let r=t.keys.map((s,i)=>{let o=t.values[i];return new Rs(s.key,J(o,e,n),s.quoted)});return new cn(r,void 0,Qe(t.span,n))}else{if(t instanceof Na)return new Zt(t.expressions.map(r=>J(r,e,n)));if(t instanceof Gi)return new Xn(J(t.condition,e,n),J(t.trueExp,e,n),J(t.falseExp,e,n),void 0,Qe(t.span,n));if(t instanceof Zi)return J(t.expression,e,n);if(t instanceof Ia)return new es(e.allocateXrefId(),new St,t.name,[J(t.exp,e,n),...t.args.map(r=>J(r,e,n))]);if(t instanceof _a)return new Zs(J(t.receiver,e,n),J(t.key,e,n),Qe(t.span,n));if(t instanceof Aa)return new Xs(J(t.receiver,e,n),t.name);if(t instanceof qa)return new yr(J(t.receiver,e,n),t.args.map(r=>J(r,e,n)));if(t instanceof lt)return new go(Qe(t.span,n));if(t instanceof Xi)return tA(J(t.expression,e,n),Qe(t.span,n));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${n?.start.file.url}"`)}}}}}function Eh(t,e,n,r){let s;return e instanceof Xr?s=new Re(e.strings,e.expressions.map(i=>J(i,t,r??null)),Object.keys(Un(n)?.placeholders??{})):e instanceof Le?s=J(e,t,r??null):s=w(e),s}var EE=new Map([[Se.Property,V.Property],[Se.TwoWay,V.TwoWayProperty],[Se.Attribute,V.Attribute],[Se.Class,V.ClassName],[Se.Style,V.StyleProperty],[Se.Animation,V.Animation]]);function xP(t){return ln(t.tagName??"")[1]===Ur}function Un(t){if(t==null)return null;if(!(t instanceof pt))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function SP(t,e,n){let r=new Array,s=new Set;for(let i of n.attributes){let o=Vr.securityContext(n.name,i.name,!0);r.push(Jr(e.xref,V.Attribute,i.name,Eh(t.job,i.value,i.i18n),null,o,!0,!1,null,Un(i.i18n),i.sourceSpan)),i.i18n&&s.add(i.name)}for(let i of n.inputs)s.has(i.name)&&console.error(`On component ${t.job.componentName}, the binding ${i.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`),r.push(Jr(e.xref,EE.get(i.type),i.name,Eh(t.job,So(i.value),i.i18n),i.unit,i.securityContext,!1,!1,null,Un(i.i18n)??null,i.sourceSpan));t.create.push(r.filter(i=>i?.kind===h.ExtractedAttribute)),t.update.push(r.filter(i=>i?.kind===h.Binding));for(let i of n.outputs){if(i.type===Dt.Animation&&i.phase===null)throw Error("Animation listener should have a phase");i.type===Dt.TwoWay?t.create.push(Xv(e.xref,e.handle,i.name,e.tag,wE(t,i.handler,i.handlerSpan),i.sourceSpan)):t.create.push(Kh(e.xref,e.handle,i.name,e.tag,np(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))}r.some(i=>i?.i18nMessage)!==null&&t.create.push(Yv(t.job.allocateXrefId(),new St,e.xref))}function bP(t,e,n,r){let s=new Array;for(let i of n.templateAttrs)if(i instanceof Us){let o=Vr.securityContext(Ur,i.name,!0);s.push(ua(t,e.xref,Se.Attribute,i.name,i.value,null,o,!0,r,Un(i.i18n),i.sourceSpan))}else s.push(ua(t,e.xref,i.type,i.name,So(i.value),i.unit,i.securityContext,!0,r,Un(i.i18n),i.sourceSpan));for(let i of n.attributes){let o=Vr.securityContext(Ur,i.name,!0);s.push(ua(t,e.xref,Se.Attribute,i.name,i.value,null,o,!1,r,Un(i.i18n),i.sourceSpan))}for(let i of n.inputs)s.push(ua(t,e.xref,i.type,i.name,So(i.value),i.unit,i.securityContext,!1,r,Un(i.i18n),i.sourceSpan));t.create.push(s.filter(i=>i?.kind===h.ExtractedAttribute)),t.update.push(s.filter(i=>i?.kind===h.Binding));for(let i of n.outputs){if(i.type===Dt.Animation&&i.phase===null)throw Error("Animation listener should have a phase");if(r===yt.NgTemplate&&(i.type===Dt.TwoWay?t.create.push(Xv(e.xref,e.handle,i.name,e.tag,wE(t,i.handler,i.handlerSpan),i.sourceSpan)):t.create.push(Kh(e.xref,e.handle,i.name,e.tag,np(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),r===yt.Structural&&i.type!==Dt.Animation){let o=Vr.securityContext(Ur,i.name,!1);t.create.push(jt(e.xref,V.Property,null,i.name,null,null,null,o))}}s.some(i=>i?.i18nMessage)!==null&&t.create.push(Yv(t.job.allocateXrefId(),new St,e.xref))}function ua(t,e,n,r,s,i,o,a,u,c,l){let p=typeof s=="string";if(u===yt.Structural){if(!a)switch(n){case Se.Property:case Se.Class:case Se.Style:return jt(e,V.Property,null,r,null,null,c,o);case Se.TwoWay:return jt(e,V.TwoWayProperty,null,r,null,null,c,o)}if(!p&&(n===Se.Attribute||n===Se.Animation))return null}let f=EE.get(n);return u===yt.NgTemplate&&(n===Se.Class||n===Se.Style||n===Se.Attribute&&!p)&&(f=V.Property),Jr(e,f,r,Eh(t.job,s,c),i,o,p,a,u,c,l)}function np(t,e,n){e=So(e);let r=new Array,s=e instanceof Bs?e.expressions:[e];if(s.length===0)throw new Error("Expected listener to have non-empty expression list.");let i=s.map(a=>J(a,t.job,n)),o=i.pop();return r.push(...i.map(a=>In(new Yt(a,a.sourceSpan)))),r.push(In(new wt(o,o.sourceSpan))),r}function wE(t,e,n){e=So(e);let r=new Array;if(e instanceof Bs)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let s=J(e,t.job,n),i=new Je("$event"),o=new nu(s,i);return r.push(In(new Yt(o))),r.push(In(new wt(i))),r}function So(t){return t instanceof Ht?t.ast:t}function yE(t,e){TP(t.localRefs);for(let{name:n,value:r}of e.references)t.localRefs.push({name:n,target:r})}function TP(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function Qe(t,e){if(e===null)return null;let n=e.start.moveBy(t.start),r=e.start.moveBy(t.end),s=e.fullStart.moveBy(t.start);return new Y(n,r,s)}function yu(t,e,n){let r=null;for(let s of n.children)if(!(s instanceof $s)){if(r!==null)return null;(s instanceof Qt||s instanceof Pt&&s.tagName!==null)&&(r=s)}if(r!==null){for(let i of r.attributes){let o=Vr.securityContext(Ur,i.name,!0);t.update.push(Jr(e,V.Attribute,i.name,w(i.value),null,o,!0,!1,null,Un(i.i18n),i.sourceSpan))}for(let i of r.inputs)if(i.type!==Se.Animation&&i.type!==Se.Attribute){let o=Vr.securityContext(Ur,i.name,!0);t.create.push(jt(e,V.Property,null,i.name,null,null,null,o))}let s=r instanceof Qt?r.name:r.tagName;return s===Ur?null:s}return null}function xu(t,e){return ku(te(Uh).bitwiseAnd(w(t),null,!1),e)}function CP(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function AP(t,e){if(Array.isArray(t.predicate)){let n=[];return t.predicate.forEach(r=>{let s=r.split(",").map(i=>w(i.trim()));n.push(...s)}),e.getConstLiteral(ge(n),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return U(m.resolveForwardRef).callFn([t.predicate.expression])}}function xE(t,e,n,r){let s=[];r!==void 0&&s.push(...r),t.isSignal&&s.push(new Lt(te(so),t.propertyName)),s.push(AP(t,e),w(CP(t))),t.read&&s.push(t.read);let i=t.isSignal?n.signalBased:n.nonSignal;return U(i).callFn(s)}var rp=Symbol("queryAdvancePlaceholder");function SE(t){let e=[],n=0,r=()=>{n>0&&(e.unshift(U(m.queryAdvance).callFn(n===1?[]:[w(n)]).toStmt()),n=0)};for(let s=t.length-1;s>=0;s--){let i=t[s];i===rp?n++:(r(),e.unshift(i))}return r(),e}function _P(t,e,n){let r=[],s=[],i=Av(a=>s.push(a),Vh);t.forEach(a=>{let u=xE(a,e,{signalBased:m.viewQuerySignal,nonSignal:m.viewQuery});if(r.push(u.toStmt()),a.isSignal){s.push(rp);return}let c=i(),l=U(m.loadQuery).callFn([]),p=U(m.queryRefresh).callFn([c.set(l)]),f=te(so).prop(a.propertyName).set(a.first?c.prop("first"):c);s.push(p.and(f).toStmt())});let o=n?`${n}_Query`:null;return ti([new ze(Uh,Bh),new ze(so,null)],[xu(1,r),xu(2,SE(s))],Wt,null,o)}function kP(t,e,n){let r=[],s=[],i=Av(a=>s.push(a),Vh);for(let a of t){if(r.push(xE(a,e,{nonSignal:m.contentQuery,signalBased:m.contentQuerySignal},[te("dirIndex")]).toStmt()),a.isSignal){s.push(rp);continue}let u=i(),c=U(m.loadQuery).callFn([]),l=U(m.queryRefresh).callFn([u.set(c)]),p=te(so).prop(a.propertyName).set(a.first?u.prop("first"):u);s.push(l.and(p).toStmt())}let o=n?`${n}_ContentQueries`:null;return ti([new ze(Uh,Bh),new ze(so,null),new ze("dirIndex",null)],[xu(1,r),xu(2,SE(s))],Wt,null,o)}var wh=class extends ch{constructor(){super(nE)}parse(e,n,r){return super.parse(e,n,r)}},bE="ngPreserveWhitespaces",IP=new Set(["pre","template","textarea","script","style"]),TE=` \f \r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,NP=new RegExp(`[^${TE}]`),DP=new RegExp(`[${TE}]{2,}`,"g");function PP(t){return t.some(e=>e.name===bE)}function CE(t){return t.replace(new RegExp(rE,"g")," ")}var yh=class{visitElement(e,n){return IP.has(e.name)||PP(e.attrs)?new Ft(e.name,De(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new Ft(e.name,e.attrs,Wg(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}visitAttribute(e,n){return e.name!==bE?e:null}visitText(e,n){let r=e.value.match(NP),s=n&&(n.prev instanceof Js||n.next instanceof Js);if(r||s){let i=e.tokens.map(a=>a.type===5?qP(a):a),o=AE(e.value);return new ts(o,e.sourceSpan,i,e.i18n)}return null}visitComment(e,n){return e}visitExpansion(e,n){return e}visitExpansionCase(e,n){return e}visitBlock(e,n){return new Ut(e.name,e.parameters,Wg(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan)}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}};function qP({type:t,parts:e,sourceSpan:n}){return{type:t,parts:[AE(e[0])],sourceSpan:n}}function AE(t){return CE(t).replace(DP," ")}function Wg(t,e){let n=[];return e.forEach((r,s)=>{let i={prev:e[s-1],next:e[s+1]},o=r.visit(t,i);o&&n.push(o)}),n}var Gg=".",LP="attr",MP="class",RP="style",OP="*",el="animate-",xh=class{constructor(e,n,r,s,i=!1){this._exprParser=e,this._interpolationConfig=n,this._schemaRegistry=r,this.errors=s,this._allowInvalidAssignmentEvents=i}get interpolationConfig(){return this._interpolationConfig}createBoundHostProperties(e,n){let r=[];for(let s of Object.keys(e)){let i=e[s];typeof i=="string"?this.parsePropertyBinding(s,i,!0,!1,n,n.start.offset,void 0,[],r,n):this._reportError(`Value of the host property binding "${s}" needs to be a string representing an expression but got "${i}" (${typeof i})`,n)}return r}createDirectiveHostEventAsts(e,n){let r=[];for(let s of Object.keys(e)){let i=e[s];typeof i=="string"?this.parseEvent(s,i,!1,n,n,[],r,n):this._reportError(`Value of the host listener "${s}" needs to be a string representing an expression but got "${i}" (${typeof i})`,n)}return r}parseInterpolation(e,n,r){let s=n.start.toString(),i=n.fullStart.offset;try{let o=this._exprParser.parseInterpolation(e,s,i,r,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,n),o}catch(o){return this._reportError(`${o}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",s,i)}}parseInterpolationExpression(e,n){let r=n.start.toString(),s=n.start.offset;try{let i=this._exprParser.parseInterpolationExpression(e,r,s);return i&&this._reportExpressionParserErrors(i.errors,n),i}catch(i){return this._reportError(`${i}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",r,s)}}parseInlineTemplateBinding(e,n,r,s,i,o,a,u){let c=r.start.offset+OP.length,l=this._parseTemplateBindings(e,n,r,c,s);for(let p of l){let f=ur(r,p.sourceSpan),E=p.key.source,y=ur(r,p.key.span);if(p instanceof Yi){let I=p.value?p.value.source:"$implicit",k=p.value?ur(r,p.value.span):void 0;a.push(new yl(E,I,f,y,k))}else if(p.value){let I=u?f:r,k=ur(r,p.value.ast.sourceSpan);this._parsePropertyAst(E,p.value,!1,I,y,k,i,o)}else i.push([E,""]),this.parseLiteralAttr(E,null,y,s,void 0,i,o,y)}}_parseTemplateBindings(e,n,r,s,i){let o=r.start.toString();try{let a=this._exprParser.parseTemplateBindings(e,n,o,s,i);return this._reportExpressionParserErrors(a.errors,r),a.warnings.forEach(u=>{this._reportError(u,r,$n.WARNING)}),a.templateBindings}catch(a){return this._reportError(`${a}`,r),[]}}parseLiteralAttr(e,n,r,s,i,o,a,u){tl(e)?(e=e.substring(1),u!==void 0&&(u=ur(u,new Nt(u.start.offset+1,u.end.offset))),n&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',r,$n.ERROR),this._parseAnimation(e,n,r,s,u,i,o,a)):a.push(new Di(e,this._exprParser.wrapLiteralPrimitive(n,"",s),Rn.LITERAL_ATTR,r,u,i))}parsePropertyBinding(e,n,r,s,i,o,a,u,c,l){e.length===0&&this._reportError("Property name is missing in binding",i);let p=!1;e.startsWith(el)?(p=!0,e=e.substring(el.length),l!==void 0&&(l=ur(l,new Nt(l.start.offset+el.length,l.end.offset)))):tl(e)&&(p=!0,e=e.substring(1),l!==void 0&&(l=ur(l,new Nt(l.start.offset+1,l.end.offset)))),p?this._parseAnimation(e,n,i,o,l,a,u,c):this._parsePropertyAst(e,this.parseBinding(n,r,a||i,o),s,i,l,a,u,c)}parsePropertyInterpolation(e,n,r,s,i,o,a,u){let c=this.parseInterpolation(n,s||r,u);return c?(this._parsePropertyAst(e,c,!1,r,a,s,i,o),!0):!1}_parsePropertyAst(e,n,r,s,i,o,a,u){a.push([e,n.source]),u.push(new Di(e,n,r?Rn.TWO_WAY:Rn.DEFAULT,s,i,o))}_parseAnimation(e,n,r,s,i,o,a,u){e.length===0&&this._reportError("Animation trigger is missing",r);let c=this.parseBinding(n||"undefined",!1,o||r,s);a.push([e,c.source]),u.push(new Di(e,c,Rn.ANIMATION,r,i,o))}parseBinding(e,n,r,s){let i=(r&&r.start||"(unknown)").toString();try{let o=n?this._exprParser.parseSimpleBinding(e,i,s,this._interpolationConfig):this._exprParser.parseBinding(e,i,s,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,r),o}catch(o){return this._reportError(`${o}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",i,s)}}createBoundElementProperty(e,n,r=!1,s=!0){if(n.isAnimation)return new Ra(n.name,Se.Animation,be.NONE,n.expression,null,n.sourceSpan,n.keySpan,n.valueSpan);let i=null,o,a=null,u=n.name.split(Gg),c;if(u.length>1)if(u[0]==LP){a=u.slice(1).join(Gg),r||this._validatePropertyOrAttributeName(a,n.sourceSpan,!0),c=nl(this._schemaRegistry,e,a,!0);let l=a.indexOf(":");if(l>-1){let p=a.substring(0,l),f=a.substring(l+1);a=bl(p,f)}o=Se.Attribute}else u[0]==MP?(a=u[1],o=Se.Class,c=[be.NONE]):u[0]==RP&&(i=u.length>2?u[2]:null,a=u[1],o=Se.Style,c=[be.STYLE]);if(a===null){let l=this._schemaRegistry.getMappedPropName(n.name);a=s?l:n.name,c=nl(this._schemaRegistry,e,l,!1),o=n.type===Rn.TWO_WAY?Se.TwoWay:Se.Property,r||this._validatePropertyOrAttributeName(l,n.sourceSpan,!1)}return new Ra(a,o,c[0],n.expression,i,n.sourceSpan,n.keySpan,n.valueSpan)}parseEvent(e,n,r,s,i,o,a,u){e.length===0&&this._reportError("Event name is missing in binding",s),tl(e)?(e=e.slice(1),u!==void 0&&(u=ur(u,new Nt(u.start.offset+1,u.end.offset))),this._parseAnimationEvent(e,n,s,i,a,u)):this._parseRegularEvent(e,n,r,s,i,o,a,u)}calcPossibleSecurityContexts(e,n,r){let s=this._schemaRegistry.getMappedPropName(n);return nl(this._schemaRegistry,e,s,r)}_parseAnimationEvent(e,n,r,s,i,o){let a=pA(e,[e,""]),u=a[0],c=a[1].toLowerCase(),l=this._parseAction(n,s);i.push(new Ma(u,c,Dt.Animation,l,r,s,o)),u.length===0&&this._reportError("Animation event name is missing in binding",r),c?c!=="start"&&c!=="done"&&this._reportError(`The provided animation output phase value "${c}" for "@${u}" is not supported (use start or done)`,r):this._reportError(`The animation trigger output event (@${u}) is missing its phase value name (start or done are currently supported)`,r)}_parseRegularEvent(e,n,r,s,i,o,a,u){let[c,l]=hA(e,[null,e]),p=this.errors.length,f=this._parseAction(n,i),E=this.errors.length===p;o.push([e,f.source]),r&&E&&!this._isAllowedAssignmentEvent(f)&&this._reportError("Unsupported expression in a two-way binding",s),a.push(new Ma(l,c,r?Dt.TwoWay:Dt.Regular,f,s,i,u))}_parseAction(e,n){let r=(n&&n.start||"(unknown").toString(),s=n&&n.start?n.start.offset:0;try{let i=this._exprParser.parseAction(e,r,s,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),!i||i.ast instanceof lt?(this._reportError("Empty expressions are not allowed",n),this._exprParser.wrapLiteralPrimitive("ERROR",r,s)):i}catch(i){return this._reportError(`${i}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",r,s)}}_reportError(e,n,r=$n.ERROR){this.errors.push(new z(n,e,r))}_reportExpressionParserErrors(e,n){for(let r of e)this._reportError(r.message,n)}_validatePropertyOrAttributeName(e,n,r){let s=r?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);s.error&&this._reportError(s.msg,n,$n.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof Ht?this._isAllowedAssignmentEvent(e.ast):e instanceof Zi?this._isAllowedAssignmentEvent(e.expression):e instanceof zr||e instanceof Fs?!0:this._allowInvalidAssignmentEvents?e instanceof $t?(e.operation==="&&"||e.operation==="||"||e.operation==="??")&&(e.right instanceof zr||e.right instanceof Fs):e instanceof Gi||e instanceof Xi:!1}};function tl(t){return t[0]=="@"}function nl(t,e,n,r){let s=[];return Ds.parse(e).forEach(i=>{let o=i.element?[i.element]:t.allKnownElementNames(),a=new Set(i.notSelectors.filter(c=>c.isElementSelector()).map(c=>c.element)),u=o.filter(c=>!a.has(c));s.push(...u.map(c=>t.securityContext(c,n,r)))}),s.length===0?[be.NONE]:Array.from(new Set(s)).sort()}function ur(t,e){let n=e.start-t.start.offset,r=e.end-t.end.offset;return new Y(t.start.moveBy(n),t.end.moveBy(r),t.fullStart.moveBy(n),t.details)}function BP(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(FP);return e===null||e[1]=="package"||e[1]=="asset"}var FP=/^([^:/?#]+):/,$P="select",VP="link",UP="rel",HP="href",jP="stylesheet",WP="style",GP="script",zP="ngNonBindable",XP="ngProjectAs";function _E(t){let e=null,n=null,r=null,s=!1,i="";t.attrs.forEach(u=>{let c=u.name.toLowerCase();c==$P?e=u.value:c==HP?n=u.value:c==UP?r=u.value:u.name==zP?s=!0:u.name==XP&&u.value.length>0&&(i=u.value)}),e=ZP(e);let o=t.name.toLowerCase(),a=Et.OTHER;return xl(o)?a=Et.NG_CONTENT:o==WP?a=Et.STYLE:o==GP?a=Et.SCRIPT:o==VP&&r==jP&&(a=Et.STYLESHEET),new Sh(a,e,n,s,i)}var Et;(function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"})(Et||(Et={}));var Sh=class{constructor(e,n,r,s,i){this.type=e,this.selectAttr=n,this.hrefAttr=r,this.nonBindable=s,this.projectAs=i}};function ZP(t){return t===null||t.length===0?"*":t}var YP=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,QP=/^track\s+([\S\s]*)/,JP=/^(as\s)+(.*)/,sp=/^else[^\S\r\n]+if/,KP=/^let\s+([\S\s]*)/,zg=/(\s*)(\S+)(\s*)/,Bi=new Set(["$index","$first","$last","$even","$odd","$count"]);function Xg(t){return t==="empty"}function Zg(t){return t==="else"||sp.test(t)}function eq(t,e,n,r){let s=iq(e),i=[],o=Yg(t,s,r);o!==null&&i.push(new Fr(o.expression,De(n,t.children,t.children),o.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let p of e)if(sp.test(p.name)){let f=Yg(p,s,r);if(f!==null){let E=De(n,p.children,p.children);i.push(new Fr(f.expression,E,f.expressionAlias,p.sourceSpan,p.startSourceSpan,p.endSourceSpan,p.nameSpan,p.i18n))}}else if(p.name==="else"){let f=De(n,p.children,p.children);i.push(new Fr(null,f,null,p.sourceSpan,p.startSourceSpan,p.endSourceSpan,p.nameSpan,p.i18n))}let a=i.length>0?i[0].startSourceSpan:t.startSourceSpan,u=i.length>0?i[i.length-1].endSourceSpan:t.endSourceSpan,c=t.sourceSpan,l=i[i.length-1];return l!==void 0&&(c=new Y(a.start,l.sourceSpan.end)),{node:new Va(i,c,t.startSourceSpan,u,t.nameSpan),errors:s}}function tq(t,e,n,r){let s=[],i=rq(t,s,r),o=null,a=null;for(let u of e)u.name==="empty"?a!==null?s.push(new z(u.sourceSpan,"@for loop can only have one @empty block")):u.parameters.length>0?s.push(new z(u.sourceSpan,"@empty block cannot have parameters")):a=new to(De(n,u.children,u.children),u.sourceSpan,u.startSourceSpan,u.endSourceSpan,u.nameSpan,u.i18n):s.push(new z(u.sourceSpan,`Unrecognized @for loop block "${u.name}"`));if(i!==null)if(i.trackBy===null)s.push(new z(t.sourceSpan,'@for loop must have a "track" expression'));else{let u=a?.endSourceSpan??t.endSourceSpan,c=new Y(t.sourceSpan.start,u?.end??t.sourceSpan.end);o=new Hs(i.itemName,i.expression,i.trackBy.expression,i.trackBy.keywordSpan,i.context,De(n,t.children,t.children),a,c,t.sourceSpan,t.startSourceSpan,u,t.nameSpan,t.i18n)}return{node:o,errors:s}}function nq(t,e,n){let r=oq(t),s=t.parameters.length>0?bo(t.parameters[0],n):n.parseBinding("",!1,t.sourceSpan,0),i=[],o=[],a=null;for(let u of t.children){if(!(u instanceof Ut))continue;if((u.name!=="case"||u.parameters.length===0)&&u.name!=="default"){o.push(new Ua(u.name,u.sourceSpan,u.nameSpan));continue}let c=u.name==="case"?bo(u.parameters[0],n):null,l=new eo(c,De(e,u.children,u.children),u.sourceSpan,u.startSourceSpan,u.endSourceSpan,u.nameSpan,u.i18n);c===null?a=l:i.push(l)}return a!==null&&i.push(a),{node:new $a(s,i,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:r}}function rq(t,e,n){if(t.parameters.length===0)return e.push(new z(t.sourceSpan,"@for loop does not have an expression")),null;let[r,...s]=t.parameters,i=aq(r,e)?.match(YP);if(!i||i[2].trim().length===0)return e.push(new z(r.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,a]=i;Bi.has(o)&&e.push(new z(r.sourceSpan,`@for loop item name cannot be one of ${Array.from(Bi).join(", ")}.`));let u=r.expression.split(" ")[0],c=new Y(r.sourceSpan.start,r.sourceSpan.start.moveBy(u.length)),l={itemName:new gr(o,"$implicit",c,c),trackBy:null,expression:bo(r,n,a),context:Array.from(Bi,p=>{let f=new Y(t.startSourceSpan.end,t.startSourceSpan.end);return new gr(p,p,f,f)})};for(let p of s){let f=p.expression.match(KP);if(f!==null){let y=new Y(p.sourceSpan.start.moveBy(f[0].length-f[1].length),p.sourceSpan.end);sq(p.sourceSpan,f[1],y,o,l.context,e);continue}let E=p.expression.match(QP);if(E!==null){if(l.trackBy!==null)e.push(new z(p.sourceSpan,'@for loop can only have one "track" expression'));else{let y=bo(p,n,E[1]);y.ast instanceof lt&&e.push(new z(p.sourceSpan,'@for loop must have a "track" expression'));let I=new Y(p.sourceSpan.start,p.sourceSpan.start.moveBy(5));l.trackBy={expression:y,keywordSpan:I}}continue}e.push(new z(p.sourceSpan,`Unrecognized @for loop paramater "${p.expression}"`))}return l}function sq(t,e,n,r,s,i){let o=e.split(","),a=n.start;for(let u of o){let c=u.split("="),l=c.length===2?c[0].trim():"",p=c.length===2?c[1].trim():"";if(l.length===0||p.length===0)i.push(new z(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!Bi.has(p))i.push(new z(t,`Unknown "let" parameter variable "${p}". The allowed variables are: ${Array.from(Bi).join(", ")}`));else if(l===r)i.push(new z(t,`Invalid @for loop "let" parameter. Variable cannot be called "${r}"`));else if(s.some(f=>f.name===l))i.push(new z(t,`Duplicate "let" parameter variable "${p}"`));else{let[,f,E]=c[0].match(zg)??[],y=f!==void 0&&c.length===2?new Y(a.moveBy(f.length),a.moveBy(f.length+E.length)):n,I;if(c.length===2){let[,A,C]=c[1].match(zg)??[];I=A!==void 0?new Y(a.moveBy(c[0].length+1+A.length),a.moveBy(c[0].length+1+A.length+C.length)):void 0}let k=new Y(y.start,I?.end??y.end);s.push(new gr(l,p,k,y,I))}a=a.moveBy(u.length+1)}}function iq(t){let e=[],n=!1;for(let r=0;r<t.length;r++){let s=t[r];s.name==="else"?(n?e.push(new z(s.sourceSpan,"Conditional can only have one @else block")):t.length>1&&r<t.length-1?e.push(new z(s.sourceSpan,"@else block must be last inside the conditional")):s.parameters.length>0&&e.push(new z(s.sourceSpan,"@else block cannot have parameters")),n=!0):sp.test(s.name)||e.push(new z(s.sourceSpan,`Unrecognized conditional block @${s.name}`))}return e}function oq(t){let e=[],n=!1;if(t.parameters.length!==1)return e.push(new z(t.sourceSpan,"@switch block must have exactly one parameter")),e;for(let r of t.children)if(!(r instanceof yo||r instanceof ts&&r.value.trim().length===0)){if(!(r instanceof Ut)||r.name!=="case"&&r.name!=="default"){e.push(new z(r.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}r.name==="default"?(n?e.push(new z(r.sourceSpan,"@switch block can only have one @default block")):r.parameters.length>0&&e.push(new z(r.sourceSpan,"@default block cannot have parameters")),n=!0):r.name==="case"&&r.parameters.length!==1&&e.push(new z(r.sourceSpan,"@case block must have exactly one parameter"))}return e}function bo(t,e,n){let r,s;return typeof n=="string"?(r=Math.max(0,t.expression.lastIndexOf(n)),s=r+n.length):(r=0,s=t.expression.length),e.parseBinding(t.expression.slice(r,s),!1,t.sourceSpan,t.sourceSpan.start.offset+r)}function Yg(t,e,n){if(t.parameters.length===0)return e.push(new z(t.sourceSpan,"Conditional block does not have an expression")),null;let r=bo(t.parameters[0],n),s=null;for(let i=1;i<t.parameters.length;i++){let o=t.parameters[i],a=o.expression.match(JP);if(a===null)e.push(new z(o.sourceSpan,`Unrecognized conditional paramater "${o.expression}"`));else if(t.name!=="if")e.push(new z(o.sourceSpan,'"as" expression is only allowed on the primary @if block'));else if(s!==null)e.push(new z(o.sourceSpan,'Conditional can only have one "as" expression'));else{let u=a[2].trim(),c=o.sourceSpan.start.moveBy(a[1].length),l=new Y(c,c.moveBy(u.length));s=new gr(u,u,l,l)}}return{expression:r,expressionAlias:s}}function aq(t,e){let n=t.expression,r=/^\s$/,s=0,i=0,o=n.length-1;for(let a=0;a<n.length;a++){let u=n[a];if(u==="(")i=a+1,s++;else{if(r.test(u))continue;break}}if(s===0)return n;for(let a=n.length-1;a>-1;a--){let u=n[a];if(u===")"){if(o=a,s--,s===0)break}else{if(r.test(u))continue;break}}return s!==0?(e.push(new z(t.sourceSpan,"Unclosed parentheses in expression")),null):n.slice(i,o)}var uq=/^\d+\.?\d*(ms|s)?$/,cq=/^\s$/,Qg=new Map([[bn,vt],[Ns,Ts],[Gn,un]]),ht;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport"})(ht||(ht={}));function Jg({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("when"),o=new Y(e.start.moveBy(i),e.start.moveBy(i+4)),a=kE(t,e);if(i===-1)s.push(new z(e,'Could not find "when" keyword in expression'));else{let u=To(t,i+1),c=n.parseBinding(t.slice(u),!1,e,e.start.offset+u);IE("when",r,s,new Al(c,e,a,o))}}function Kg({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("on"),o=new Y(e.start.moveBy(i),e.start.moveBy(i+2)),a=kE(t,e);if(i===-1)r.push(new z(e,'Could not find "on" keyword in expression'));else{let u=To(t,i+1);new bh(t,u,e,n,r,s,a,o).parse()}}function kE(t,e){return t.startsWith("prefetch")?new Y(e.start,e.start.moveBy(8)):null}var bh=class{constructor(e,n,r,s,i,o,a,u){this.expression=e,this.start=n,this.span=r,this.triggers=s,this.errors=i,this.placeholder=o,this.prefetchSpan=a,this.onSourceSpan=u,this.index=0,this.tokens=new wo().tokenize(e.slice(n))}parse(){for(;this.tokens.length>0&&this.index<this.tokens.length;){let e=this.token();if(!e.isIdentifier()){this.unexpectedToken(e);break}if(this.isFollowedByOrLast(Gt))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(Gn)){this.advance();let n=this.errors.length,r=this.consumeParameters();if(this.errors.length!==n)break;this.consumeTrigger(e,r),this.advance()}else this.index<this.tokens.length-1&&this.unexpectedToken(this.tokens[this.index+1]);this.advance()}}advance(){this.index++}isFollowedByOrLast(e){return this.index===this.tokens.length-1?!0:this.tokens[this.index+1].isCharacter(e)}token(){return this.tokens[Math.min(this.index,this.tokens.length-1)]}consumeTrigger(e,n){let r=this.span.start.moveBy(this.start+e.index-this.tokens[0].index),s=new Y(r,r.moveBy(e.strValue.length)),i=r.moveBy(this.token().end-e.index),o=e.index===0,a=o?this.onSourceSpan:null,u=o?this.prefetchSpan:null,c=new Y(o?this.span.start:r,i);try{switch(e.toString()){case ht.IDLE:this.trackTrigger("idle",lq(n,s,c,u,a));break;case ht.TIMER:this.trackTrigger("timer",hq(n,s,c,this.prefetchSpan,this.onSourceSpan));break;case ht.INTERACTION:this.trackTrigger("interaction",dq(n,s,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;case ht.IMMEDIATE:this.trackTrigger("immediate",pq(n,s,c,this.prefetchSpan,this.onSourceSpan));break;case ht.HOVER:this.trackTrigger("hover",fq(n,s,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;case ht.VIEWPORT:this.trackTrigger("viewport",mq(n,s,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;default:throw new Error(`Unrecognized trigger type "${e}"`)}}catch(l){this.error(e,l.message)}}consumeParameters(){let e=[];if(!this.token().isCharacter(Gn))return this.unexpectedToken(this.token()),e;this.advance();let n=[],r="";for(;this.index<this.tokens.length;){let s=this.token();if(s.isCharacter(un)&&n.length===0){r.length&&e.push(r);break}if(s.type===re.Character&&Qg.has(s.numValue)&&n.push(Qg.get(s.numValue)),n.length>0&&s.isCharacter(n[n.length-1])&&n.pop(),n.length===0&&s.isCharacter(Gt)&&r.length>0){e.push(r),r="",this.advance();continue}r+=this.tokenText(),this.advance()}return(!this.token().isCharacter(un)||n.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(Gt)&&this.unexpectedToken(this.tokens[this.index+1]),e}tokenText(){return this.expression.slice(this.start+this.token().index,this.start+this.token().end)}trackTrigger(e,n){IE(e,this.triggers,this.errors,n)}error(e,n){let r=this.span.start.moveBy(this.start+e.index),s=r.moveBy(e.end-e.index);this.errors.push(new z(new Y(r,s),n))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function IE(t,e,n,r){e[t]?n.push(new z(r.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=r}function lq(t,e,n,r,s){if(t.length>0)throw new Error(`"${ht.IDLE}" trigger cannot have parameters`);return new _l(e,n,r,s)}function hq(t,e,n,r,s){if(t.length!==1)throw new Error(`"${ht.TIMER}" trigger must have exactly one parameter`);let i=Su(t[0]);if(i===null)throw new Error(`Could not parse time value of trigger "${ht.TIMER}"`);return new Il(i,e,n,r,s)}function pq(t,e,n,r,s){if(t.length>0)throw new Error(`"${ht.IMMEDIATE}" trigger cannot have parameters`);return new kl(e,n,r,s)}function fq(t,e,n,r,s,i){return ip(ht.HOVER,t,i),new Oa(t[0]??null,e,n,r,s)}function dq(t,e,n,r,s,i){return ip(ht.INTERACTION,t,i),new Ba(t[0]??null,e,n,r,s)}function mq(t,e,n,r,s,i){return ip(ht.VIEWPORT,t,i),new Fa(t[0]??null,e,n,r,s)}function ip(t,e,n){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`);if(e.length===0){if(n===null)throw new Error(`"${t}" trigger with no parameters can only be placed on an @defer that has a @placeholder block`);if(n.children.length!==1||!(n.children[0]instanceof Qt))throw new Error(`"${t}" trigger with no parameters can only be placed on an @defer that has a @placeholder block with exactly one root element node`)}}function To(t,e=0){let n=!1;for(let r=e;r<t.length;r++)if(cq.test(t[r]))n=!0;else if(n)return r;return-1}function Su(t){let e=t.match(uq);if(!e)return null;let[n,r]=e;return parseFloat(n)*(r==="s"?1e3:1)}var gq=/^prefetch\s+when\s/,vq=/^prefetch\s+on\s/,NE=/^minimum\s/,Eq=/^after\s/,wq=/^when\s/,yq=/^on\s/;function Th(t){return t==="placeholder"||t==="loading"||t==="error"}function xq(t,e,n,r){let s=[],{placeholder:i,loading:o,error:a}=Sq(e,s,n),{triggers:u,prefetchTriggers:c}=Aq(t.parameters,r,s,i),l=t.endSourceSpan,p=t.sourceSpan.end;if(e.length>0){let y=e[e.length-1];l=y.endSourceSpan,p=y.sourceSpan.end}let f=new Y(t.sourceSpan.start,p);return{node:new Zr(De(n,t.children,t.children),u,c,i,o,a,t.nameSpan,f,t.sourceSpan,t.startSourceSpan,l,t.i18n),errors:s}}function Sq(t,e,n){let r=null,s=null,i=null;for(let o of t)try{if(!Th(o.name)){e.push(new z(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":r!==null?e.push(new z(o.startSourceSpan,"@defer block can only have one @placeholder block")):r=bq(o,n);break;case"loading":s!==null?e.push(new z(o.startSourceSpan,"@defer block can only have one @loading block")):s=Tq(o,n);break;case"error":i!==null?e.push(new z(o.startSourceSpan,"@defer block can only have one @error block")):i=Cq(o,n);break}}catch(a){e.push(new z(o.startSourceSpan,a.message))}return{placeholder:r,loading:s,error:i}}function bq(t,e){let n=null;for(let r of t.parameters)if(NE.test(r.expression)){if(n!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let s=Su(r.expression.slice(To(r.expression)));if(s===null)throw new Error('Could not parse time value of parameter "minimum"');n=s}else throw new Error(`Unrecognized parameter in @placeholder block: "${r.expression}"`);return new Qi(De(e,t.children,t.children),n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Tq(t,e){let n=null,r=null;for(let s of t.parameters)if(Eq.test(s.expression)){if(n!=null)throw new Error('@loading block can only have one "after" parameter');let i=Su(s.expression.slice(To(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');n=i}else if(NE.test(s.expression)){if(r!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=Su(s.expression.slice(To(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "minimum"');r=i}else throw new Error(`Unrecognized parameter in @loading block: "${s.expression}"`);return new Ji(De(e,t.children,t.children),n,r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Cq(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new Ki(De(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Aq(t,e,n,r){let s={},i={};for(let o of t)wq.test(o.expression)?Jg(o,e,s,n):yq.test(o.expression)?Kg(o,s,n,r):gq.test(o.expression)?Jg(o,e,i,n):vq.test(o.expression)?Kg(o,i,n,r):n.push(new z(o.sourceSpan,"Unrecognized trigger"));return{triggers:s,prefetchTriggers:i}}var _q=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,ev=1,tv=2,nv=3,rv=4,sv=5,kq=6,Ai=7,cr={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},iv="*";function Iq(t,e,n){let r=new Ch(e,n),s=De(r,t,t),i=e.errors.concat(r.errors),o={nodes:s,errors:i,styleUrls:r.styleUrls,styles:r.styles,ngContentSelectors:r.ngContentSelectors};return n.collectCommentNodes&&(o.commentNodes=r.commentNodes),o}var Ch=class{constructor(e,n){this.bindingParser=e,this.options=n,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1,this.processedNodes=new Set}visitElement(e){let n=vh(e.i18n);n&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);let r=_E(e);if(r.type===Et.SCRIPT)return null;if(r.type===Et.STYLE){let k=Dq(e);return k!==null&&this.styles.push(k),null}else if(r.type===Et.STYLESHEET&&BP(r.hrefAttr))return this.styleUrls.push(r.hrefAttr),null;let s=DA(e.name),i=[],o=[],a=[],u=[],c=[],l={},p=[],f=[],E=!1;for(let k of e.attrs){let A=!1,C=ov(k.name),_=!1;if(k.i18n&&(l[k.name]=k.i18n),C.startsWith(iv)){E&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",k.sourceSpan),_=!0,E=!0;let O=k.value,Q=C.substring(iv.length),de=[],fe=k.valueSpan?k.valueSpan.start.offset:k.sourceSpan.start.offset+k.name.length;this.bindingParser.parseInlineTemplateBinding(Q,O,k.sourceSpan,fe,[],p,de,!0),f.push(...de.map(F=>new gr(F.name,F.value,F.sourceSpan,F.keySpan,F.valueSpan)))}else A=this.parseAttribute(s,k,[],i,o,a,u);!A&&!_&&c.push(this.visitAttribute(k))}let y;r.nonBindable?y=De(Nq,e.children).flat(1/0):y=De(this,e.children,e.children);let I;if(r.type===Et.NG_CONTENT){let k=r.selectAttr,A=e.attrs.map(C=>this.visitAttribute(C));I=new js(k,A,y,e.sourceSpan,e.i18n),this.ngContentSelectors.push(k)}else if(s){let k=this.extractAttributes(e.name,i,l);I=new Pt(e.name,c,k.bound,o,[],y,u,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let k=this.extractAttributes(e.name,i,l);I=new Qt(e.name,c,k.bound,o,y,u,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(E){let k=this.extractAttributes("ng-template",p,l),A=[];k.literal.forEach(Q=>A.push(Q)),k.bound.forEach(Q=>A.push(Q));let C=I instanceof Qt?{attributes:I.attributes,inputs:I.inputs,outputs:I.outputs}:{attributes:[],inputs:[],outputs:[]},_=s&&n?void 0:e.i18n,O=I instanceof Pt?null:I.name;I=new Pt(O,C.attributes,C.inputs,C.outputs,A,[I],[],f,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,_)}return n&&(this.inI18nBlock=!1),I}visitAttribute(e){return new Us(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return this.processedNodes.has(e)?null:this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}visitExpansion(e){if(!e.i18n)return null;if(!vh(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);let n=e.i18n,r={},s={};return Object.keys(n.placeholders).forEach(i=>{let o=n.placeholders[i];if(i.startsWith(LA)){let a=i.trim(),u=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);r[a]=new Vs(u,o.sourceSpan)}else s[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new Ha(r,s,e.sourceSpan,n)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new $s(e.value||"",e.sourceSpan)),null}visitLetDeclaration(e,n){let r=this.bindingParser.parseBinding(e.value,!1,e.valueSpan,e.valueSpan.start.offset);return r.errors.length===0&&r.ast instanceof lt&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new no(e.name,r,e.sourceSpan,e.nameSpan,e.valueSpan)}visitBlockParameter(){return null}visitBlock(e,n){let r=Array.isArray(n)?n.indexOf(e):-1;if(r===-1)throw new Error("Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context");if(this.processedNodes.has(e))return null;let s=null;switch(e.name){case"defer":s=xq(e,this.findConnectedBlocks(r,n,Th),this,this.bindingParser);break;case"switch":s=nq(e,this,this.bindingParser);break;case"for":s=tq(e,this.findConnectedBlocks(r,n,Xg),this,this.bindingParser);break;case"if":s=eq(e,this.findConnectedBlocks(r,n,Zg),this,this.bindingParser);break;default:let i;Th(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):Xg(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Zg(e.name)?(i=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):i=`Unrecognized block @${e.name}.`,s={node:new Ua(e.name,e.sourceSpan,e.nameSpan),errors:[new z(e.sourceSpan,i)]};break}return this.errors.push(...s.errors),s.node}findConnectedBlocks(e,n,r){let s=[];for(let i=e+1;i<n.length;i++){let o=n[i];if(!(o instanceof yo)){if(o instanceof ts&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof Ut)||!r(o.name))break;s.push(o),this.processedNodes.add(o)}}return s}extractAttributes(e,n,r){let s=[],i=[];return n.forEach(o=>{let a=r[o.name];if(o.isLiteral)i.push(new Us(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let u=this.bindingParser.createBoundElementProperty(e,o,!0,!1);s.push(Tl.fromBoundElementProperty(u,a))}}),{bound:s,literal:i}}parseAttribute(e,n,r,s,i,o,a){let u=ov(n.name),c=n.value,l=n.sourceSpan,p=n.valueSpan?n.valueSpan.start.offset:l.start.offset;function f(A,C,_){let O=n.name.length-u.length,Q=A.start.moveBy(C.length+O),de=Q.moveBy(_.length);return new Y(Q,de,Q,_)}let E=u.match(_q);if(E){if(E[ev]!=null){let A=E[Ai],C=f(l,E[ev],A);this.bindingParser.parsePropertyBinding(A,c,!1,!1,l,p,n.valueSpan,r,s,C)}else if(E[tv])if(e){let A=E[Ai],C=f(l,E[tv],A);this.parseVariable(A,c,l,C,n.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',l);else if(E[nv]){let A=E[Ai],C=f(l,E[nv],A);this.parseReference(A,c,l,C,n.valueSpan,a)}else if(E[rv]){let A=[],C=E[Ai],_=f(l,E[rv],C);this.bindingParser.parseEvent(C,c,!1,l,n.valueSpan||l,r,A,_),rl(A,i)}else if(E[sv]){let A=E[Ai],C=f(l,E[sv],A);this.bindingParser.parsePropertyBinding(A,c,!1,!0,l,p,n.valueSpan,r,s,C),this.parseAssignmentEvent(A,c,l,n.valueSpan,r,i,C)}else if(E[kq]){let A=f(l,"",u);this.bindingParser.parseLiteralAttr(u,c,l,p,n.valueSpan,r,s,A)}return!0}let y=null;if(u.startsWith(cr.BANANA_BOX.start)?y=cr.BANANA_BOX:u.startsWith(cr.PROPERTY.start)?y=cr.PROPERTY:u.startsWith(cr.EVENT.start)&&(y=cr.EVENT),y!==null&&u.endsWith(y.end)&&u.length>y.start.length+y.end.length){let A=u.substring(y.start.length,u.length-y.end.length),C=f(l,y.start,A);if(y.start===cr.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(A,c,!1,!0,l,p,n.valueSpan,r,s,C),this.parseAssignmentEvent(A,c,l,n.valueSpan,r,i,C);else if(y.start===cr.PROPERTY.start)this.bindingParser.parsePropertyBinding(A,c,!1,!1,l,p,n.valueSpan,r,s,C);else{let _=[];this.bindingParser.parseEvent(A,c,!1,l,n.valueSpan||l,r,_,C),rl(_,i)}return!0}let I=f(l,"",u);return this.bindingParser.parsePropertyInterpolation(u,c,l,n.valueSpan,r,s,I,n.valueTokens??null)}_visitTextWithInterpolation(e,n,r,s){let i=CE(e),o=this.bindingParser.parseInterpolation(i,n,r);return o?new Vs(o,n,s):new Fn(i,n)}parseVariable(e,n,r,s,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',r):e.length===0&&this.reportError("Variable does not have a name",r),o.push(new gr(e,n,r,s,i))}parseReference(e,n,r,s,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',r):e.length===0?this.reportError("Reference does not have a name",r):o.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,r),o.push(new ro(e,n,r,s,i))}parseAssignmentEvent(e,n,r,s,i,o,a){let u=[];this.bindingParser.parseEvent(`${e}Change`,n,!0,r,s||r,i,u,a),rl(u,o)}reportError(e,n,r=$n.ERROR){this.errors.push(new z(n,e,r))}},Ah=class{visitElement(e){let n=_E(e);if(n.type===Et.SCRIPT||n.type===Et.STYLE||n.type===Et.STYLESHEET)return null;let r=De(this,e.children,null);return new Qt(e.name,De(this,e.attrs),[],[],r,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new Us(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new Fn(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,n){let r=[new Fn(e.startSourceSpan.toString(),e.startSourceSpan),...De(this,e.children)];return e.endSourceSpan!==null&&r.push(new Fn(e.endSourceSpan.toString(),e.endSourceSpan)),r}visitBlockParameter(e,n){return null}visitLetDeclaration(e,n){return new Fn(`@let ${e.name} = ${e.value};`,e.sourceSpan)}},Nq=new Ah;function ov(t){return/^data-/i.test(t)?t.substring(5):t}function rl(t,e){e.push(...t.map(n=>Cl.fromParsedEvent(n)))}function Dq(t){return t.children.length!==1||!(t.children[0]instanceof ts)?null:t.children[0].value}var Pq=[" ",` `,"\r"," "];function qq(t,e,n={}){let{interpolationConfig:r,preserveWhitespaces:s,enableI18nLegacyMessageIdFormat:i,allowInvalidAssignmentEvents:o}=n,a=bu(r,o),c=new wh().parse(t,e,{leadingTriviaChars:Pq,...n,tokenizeExpansionForms:!0,tokenizeBlocks:n.enableBlockSyntax??!0,tokenizeLet:n.enableLetSyntax??!0});if(!n.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let O={interpolationConfig:r,preserveWhitespaces:s,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(O.commentNodes=[]),O}let l=c.rootNodes,p=new vu(r,!s,i),f=p.visitAllWithErrors(l);if(!n.alwaysAttemptHtmlToR3AstConversion&&f.errors&&f.errors.length>0){let O={interpolationConfig:r,preserveWhitespaces:s,errors:f.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(O.commentNodes=[]),O}l=f.rootNodes,s||(l=De(new yh,l),p.hasI18nMeta&&(l=De(new vu(r,!1),l)));let{nodes:E,errors:y,styleUrls:I,styles:k,ngContentSelectors:A,commentNodes:C}=Iq(l,a,{collectCommentNodes:!!n.collectCommentNodes});y.push(...c.errors,...f.errors);let _={interpolationConfig:r,preserveWhitespaces:s,errors:y.length>0?y:null,nodes:E,styleUrls:I,styles:k,ngContentSelectors:A};return n.collectCommentNodes&&(_.commentNodes=C),_}var Lq=new Ks;function bu(t=Sn,e=!1){return new xh(new lu(new wo),t,Lq,[],e)}var DE="%COMP%",Mq=`_nghost-${DE}`,Rq=`_ngcontent-${DE}`;function PE(t,e,n){let r=new wr,s=Oh(t.selector);return r.set("type",t.type.value),s.length>0&&r.set("selectors",Ss(s)),t.queries.length>0&&r.set("contentQueries",kP(t.queries,e,t.name)),t.viewQueries.length&&r.set("viewQuery",_P(t.viewQueries,e,t.name)),r.set("hostBindings",jq(t.host,t.typeSourceSpan,n,e,t.selector||"",t.name,r)),r.set("inputs",Om(t.inputs,!0)),r.set("outputs",Om(t.outputs)),t.exportAs!==null&&r.set("exportAs",ge(t.exportAs.map(i=>w(i)))),t.isStandalone&&r.set("standalone",w(!0)),t.isSignal&&r.set("signals",w(!0)),r}function qE(t,e){let n=[],r=e.providers,s=e.viewProviders,i=Object.keys(e.inputs);if(r||s){let o=[r||new Zt([])];s&&o.push(s),n.push(U(m.ProvidersFeature).callFn(o))}for(let o of i)if(e.inputs[o].transformFunction!==null){n.push(U(m.InputTransformsFeatureFeature));break}e.hostDirectives?.length&&n.push(U(m.HostDirectivesFeature).callFn([Zq(e.hostDirectives)])),e.usesInheritance&&n.push(U(m.InheritDefinitionFeature)),e.fullInheritance&&n.push(U(m.CopyDefinitionFeature)),e.lifecycle.usesOnChanges&&n.push(U(m.NgOnChangesFeature)),e.hasOwnProperty("template")&&e.isStandalone&&n.push(U(m.StandaloneFeature)),n.length&&t.set("features",ge(n))}function Oq(t,e,n){let r=PE(t,e,n);qE(r,t);let s=U(m.defineDirective).callFn([r.toLiteralMap()],void 0,!0),i=Hq(t);return{expression:s,type:i,statements:[]}}function Bq(t,e,n){let r=PE(t,e,n);qE(r,t);let s=t.selector&&Ds.parse(t.selector),i=s&&s[0];if(i){let f=i.getAttrs();f.length&&r.set("attrs",e.getConstLiteral(ge(f.map(E=>E!=null?w(E):w(void 0))),!0))}let o=t.name,a=null;if(t.defer.mode===1&&t.defer.dependenciesFn!==null){let f=`${o}_DeferFn`;e.statements.push(new st(f,t.defer.dependenciesFn,void 0,Ge.Final)),a=te(f)}let u=oP(t.name,t.template.nodes,e,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,a);pE(u,M.Tmpl);let c=rP(u,e);if(u.contentSelectors!==null&&r.set("ngContentSelectors",u.contentSelectors),r.set("decls",w(u.root.decls)),r.set("vars",w(u.root.vars)),u.consts.length>0&&(u.constsInitializers.length>0?r.set("consts",kn([],[...u.constsInitializers,new wt(ge(u.consts))])):r.set("consts",ge(u.consts))),r.set("template",c),t.declarationListEmitMode!==3&&t.declarations.length>0)r.set("dependencies",$q(ge(t.declarations.map(f=>f.type)),t.declarationListEmitMode));else if(t.declarationListEmitMode===3){let f=[t.type.value];t.rawImports&&f.push(t.rawImports),r.set("dependencies",U(m.getComponentDepsFactory).callFn(f))}if(t.encapsulation===null&&(t.encapsulation=pr.Emulated),t.styles&&t.styles.length){let E=(t.encapsulation==pr.Emulated?Xq(t.styles,Rq,Mq):t.styles).reduce((y,I)=>(I.trim().length>0&&y.push(e.getConstLiteral(w(I))),y),[]);E.length>0&&r.set("styles",ge(E))}else t.encapsulation===pr.Emulated&&(t.encapsulation=pr.None);t.encapsulation!==pr.Emulated&&r.set("encapsulation",w(t.encapsulation)),t.animations!==null&&r.set("data",dt([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==pa.Default?r.set("changeDetection",w(t.changeDetection)):typeof t.changeDetection=="object"&&r.set("changeDetection",t.changeDetection));let l=U(m.defineComponent).callFn([r.toLiteralMap()],void 0,!0),p=Fq(t);return{expression:l,type:p,statements:[]}}function Fq(t){let e=LE(t);return e.push(kh(t.template.ngContentSelectors)),e.push(et(w(t.isStandalone))),e.push(ME(t)),t.isSignal&&e.push(et(w(t.isSignal))),et(U(m.ComponentDeclaration,e))}function $q(t,e){switch(e){case 0:return t;case 1:return kn([],t);case 2:let n=t.prop("map").callFn([U(m.resolveForwardRef)]);return kn([],n);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function Vq(t){return et(w(t))}function _h(t){let e=Object.keys(t).map(n=>{let r=Array.isArray(t[n])?t[n][0]:t[n];return{key:n,value:w(r),quoted:!0}});return dt(e)}function kh(t){return t.length>0?et(ge(t.map(e=>w(e)))):_n}function LE(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[Iu(t.type.type,t.typeArgumentCount),e!==null?Vq(e):_n,t.exportAs!==null?kh(t.exportAs):_n,et(Uq(t)),et(_h(t.outputs)),kh(t.queries.map(n=>n.propertyName))]}function Uq(t){return dt(Object.keys(t.inputs).map(e=>{let n=t.inputs[e],r=[{key:"alias",value:w(n.bindingPropertyName),quoted:!0},{key:"required",value:w(n.required),quoted:!0}];return n.isSignal&&r.push({key:"isSignal",value:w(n.isSignal),quoted:!0}),{key:e,value:dt(r),quoted:!0}}))}function Hq(t){let e=LE(t);return e.push(_n),e.push(et(w(t.isStandalone))),e.push(ME(t)),t.isSignal&&e.push(et(w(t.isSignal))),et(U(m.DirectiveDeclaration,e))}function jq(t,e,n,r,s,i,o){let a=n.createBoundHostProperties(t.properties,e),u=n.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=w(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=w(t.specialAttributes.classAttr));let c=aP({componentName:i,componentSelector:s,properties:a,events:u,attributes:t.attributes},n,r);pE(c,M.Host),o.set("hostAttrs",c.root.attributes);let l=c.root.vars;return l!==null&&l>0&&o.set("hostVars",w(l)),sP(c)}var Wq=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function Gq(t){let e={},n={},r={},s={};for(let i of Object.keys(t)){let o=t[i],a=i.match(Wq);if(a===null)switch(i){case"class":if(typeof o!="string")throw new Error("Class binding must be string");s.classAttr=o;break;case"style":if(typeof o!="string")throw new Error("Style binding must be string");s.styleAttr=o;break;default:typeof o=="string"?e[i]=w(o):e[i]=o}else if(a[1]!=null){if(typeof o!="string")throw new Error("Property binding must be string");r[a[1]]=o}else if(a[2]!=null){if(typeof o!="string")throw new Error("Event binding must be string");n[a[2]]=o}}return{attributes:e,listeners:n,properties:r,specialAttributes:s}}function zq(t,e){let n=bu();return n.createDirectiveHostEventAsts(t.listeners,e),n.createBoundHostProperties(t.properties,e),n.errors}function Xq(t,e,n){let r=new Bl;return t.map(s=>r.shimCssText(s,e,n))}function ME(t){return t.hostDirectives?.length?et(ge(t.hostDirectives.map(e=>dt([{key:"directive",value:_u(e.directive.type),quoted:!1},{key:"inputs",value:_h(e.inputs||{}),quoted:!1},{key:"outputs",value:_h(e.outputs||{}),quoted:!1}])))):_n}function Zq(t){let e=[],n=!1;for(let r of t){if(!r.inputs&&!r.outputs)e.push(r.directive.type);else{let s=[{key:"directive",value:r.directive.type,quoted:!1}];if(r.inputs){let i=av(r.inputs);i&&s.push({key:"inputs",value:i,quoted:!1})}if(r.outputs){let i=av(r.outputs);i&&s.push({key:"outputs",value:i,quoted:!1})}e.push(dt(s))}r.isForwardReference&&(n=!0)}return n?new Hn([],[new wt(ge(e))]):ge(e)}function av(t){let e=[];for(let n in t)t.hasOwnProperty(n)&&e.push(w(n),w(t[n]));return e.length>0?ge(e):null}var Ih=class{constructor(e){this.directiveMatcher=e}bind(e){if(!e.template)throw new Error("Binding without a template not yet supported");let n=Nh.apply(e.template),r=Yq(n),{directives:s,eagerDirectives:i,bindings:o,references:a}=Dh.apply(e.template,this.directiveMatcher),{expressions:u,symbols:c,nestingLevel:l,usedPipes:p,eagerPipes:f,deferBlocks:E}=Ph.applyWithScope(e.template,n);return new qh(e,s,i,o,a,u,c,l,r,p,f,E)}},Nh=class t{constructor(e,n){this.parentScope=e,this.rootNode=n,this.namedEntities=new Map,this.elementsInScope=new Set,this.childScopes=new Map,this.isDeferred=e!==null&&e.isDeferred?!0:n instanceof Zr}static newRootScope(){return new t(null,null)}static apply(e){let n=t.newRootScope();return n.ingest(e),n}ingest(e){e instanceof Pt?(e.variables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof Fr?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(n=>n.visit(this))):e instanceof Hs?(this.visitVariable(e.item),e.contextVariables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof eo||e instanceof to||e instanceof Zr||e instanceof Ki||e instanceof Qi||e instanceof Ji||e instanceof js?e.children.forEach(n=>n.visit(this)):e.forEach(n=>n.visit(this))}visitElement(e){e.references.forEach(n=>this.visitReference(n)),e.children.forEach(n=>n.visit(this)),this.elementsInScope.add(e)}visitTemplate(e){e.references.forEach(n=>this.visitReference(n)),this.ingestScopedNode(e)}visitVariable(e){this.maybeDeclare(e)}visitReference(e){this.maybeDeclare(e)}visitDeferredBlock(e){this.ingestScopedNode(e),e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlock(e){e.cases.forEach(n=>n.visit(this))}visitSwitchBlockCase(e){this.ingestScopedNode(e)}visitForLoopBlock(e){this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(n=>n.visit(this))}visitIfBlockBranch(e){this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){this.maybeDeclare(e)}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}maybeDeclare(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)}lookup(e){return this.namedEntities.has(e)?this.namedEntities.get(e):this.parentScope!==null?this.parentScope.lookup(e):null}getChildScope(e){let n=this.childScopes.get(e);if(n===void 0)throw new Error(`Assertion error: child scope for ${e} not found`);return n}ingestScopedNode(e){let n=new t(this,e);n.ingest(e),this.childScopes.set(e,n)}},Dh=class t{constructor(e,n,r,s,i){this.matcher=e,this.directives=n,this.eagerDirectives=r,this.bindings=s,this.references=i,this.isInDeferBlock=!1}static apply(e,n){let r=new Map,s=new Map,i=new Map,o=[];return new t(n,r,o,s,i).ingest(e),{directives:r,eagerDirectives:o,bindings:s,references:i}}ingest(e){e.forEach(n=>n.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitElementOrTemplate(e){let n=OA(e),r=[];this.matcher.match(n,(i,o)=>r.push(...o)),r.length>0&&(this.directives.set(e,r),this.isInDeferBlock||this.eagerDirectives.push(...r)),e.references.forEach(i=>{let o=null;if(i.value.trim()==="")o=r.find(a=>a.isComponent)||null;else if(o=r.find(a=>a.exportAs!==null&&a.exportAs.some(u=>u===i.value))||null,o===null)return;o!==null?this.references.set(i,{directive:o,node:e}):this.references.set(i,e)});let s=(i,o)=>{let a=r.find(c=>c[o].hasBindingPropertyName(i.name)),u=a!==void 0?a:e;this.bindings.set(i,u)};e.inputs.forEach(i=>s(i,"inputs")),e.attributes.forEach(i=>s(i,"inputs")),e instanceof Pt&&e.templateAttrs.forEach(i=>s(i,"inputs")),e.outputs.forEach(i=>s(i,"outputs")),e.children.forEach(i=>i.visit(this))}visitDeferredBlock(e){let n=this.isInDeferBlock;this.isInDeferBlock=!0,e.children.forEach(r=>r.visit(this)),this.isInDeferBlock=n,e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach(n=>n.visit(this))}visitDeferredBlockError(e){e.children.forEach(n=>n.visit(this))}visitDeferredBlockLoading(e){e.children.forEach(n=>n.visit(this))}visitSwitchBlock(e){e.cases.forEach(n=>n.visit(this))}visitSwitchBlockCase(e){e.children.forEach(n=>n.visit(this))}visitForLoopBlock(e){e.item.visit(this),e.contextVariables.forEach(n=>n.visit(this)),e.children.forEach(n=>n.visit(this)),e.empty?.visit(this)}visitForLoopBlockEmpty(e){e.children.forEach(n=>n.visit(this))}visitIfBlock(e){e.branches.forEach(n=>n.visit(this))}visitIfBlockBranch(e){e.expressionAlias?.visit(this),e.children.forEach(n=>n.visit(this))}visitContent(e){e.children.forEach(n=>n.visit(this))}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitLetDeclaration(e){}},Ph=class t extends La{constructor(e,n,r,s,i,o,a,u,c){super(),this.bindings=e,this.symbols=n,this.usedPipes=r,this.eagerPipes=s,this.deferBlocks=i,this.nestingLevel=o,this.scope=a,this.rootNode=u,this.level=c,this.visitNode=l=>l.visit(this)}visit(e,n){e instanceof Le?e.visit(this,n):e.visit(this)}static applyWithScope(e,n){let r=new Map,s=new Map,i=new Map,o=new Set,a=new Set,u=e instanceof Pt?e:null,c=[];return new t(r,s,o,a,c,i,n,u,0).ingest(e),{expressions:r,symbols:s,nestingLevel:i,usedPipes:o,eagerPipes:a,deferBlocks:c}}ingest(e){if(e instanceof Pt)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Fr)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Hs)this.visitNode(e.item),e.contextVariables.forEach(n=>this.visitNode(n)),e.trackBy.visit(this),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Zr){if(this.scope.rootNode!==e)throw new Error(`Assertion error: resolved incorrect scope for deferred block ${e}`);this.deferBlocks.push([e,this.scope]),e.children.forEach(n=>n.visit(this)),this.nestingLevel.set(e,this.level)}else e instanceof eo||e instanceof to||e instanceof Ki||e instanceof Qi||e instanceof Ji||e instanceof js?(e.children.forEach(n=>n.visit(this)),this.nestingLevel.set(e,this.level)):e.forEach(this.visitNode)}visitElement(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.children.forEach(this.visitNode),e.references.forEach(this.visitNode)}visitTemplate(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode),this.ingestScopedNode(e)}visitVariable(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitReference(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitText(e){}visitTextAttribute(e){}visitUnknownBlock(e){}visitDeferredTrigger(){}visitIcu(e){Object.keys(e.vars).forEach(n=>e.vars[n].visit(this)),Object.keys(e.placeholders).forEach(n=>e.placeholders[n].visit(this))}visitBoundAttribute(e){e.value.visit(this)}visitBoundEvent(e){e.handler.visit(this)}visitDeferredBlock(e){this.ingestScopedNode(e),e.triggers.when?.value.visit(this),e.prefetchTriggers.when?.value.visit(this),e.placeholder&&this.visitNode(e.placeholder),e.loading&&this.visitNode(e.loading),e.error&&this.visitNode(e.error)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlock(e){e.expression.visit(this),e.cases.forEach(this.visitNode)}visitSwitchBlockCase(e){e.expression?.visit(this),this.ingestScopedNode(e)}visitForLoopBlock(e){e.expression.visit(this),this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(n=>n.visit(this))}visitIfBlockBranch(e){e.expression?.visit(this),this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitBoundText(e){e.value.visit(this)}visitLetDeclaration(e){e.value.visit(this),this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitPipe(e,n){return this.usedPipes.add(e.name),this.scope.isDeferred||this.eagerPipes.add(e.name),super.visitPipe(e,n)}visitPropertyRead(e,n){return this.maybeMap(e,e.name),super.visitPropertyRead(e,n)}visitSafePropertyRead(e,n){return this.maybeMap(e,e.name),super.visitSafePropertyRead(e,n)}visitPropertyWrite(e,n){return this.maybeMap(e,e.name),super.visitPropertyWrite(e,n)}ingestScopedNode(e){let n=this.scope.getChildScope(e);new t(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,n,e,this.level+1).ingest(e)}maybeMap(e,n){if(!(e.receiver instanceof jn))return;let r=this.scope.lookup(n);r instanceof no&&e.receiver instanceof Br||r!==null&&this.bindings.set(e,r)}},qh=class{constructor(e,n,r,s,i,o,a,u,c,l,p,f){this.target=e,this.directives=n,this.eagerDirectives=r,this.bindings=s,this.references=i,this.exprTargets=o,this.symbols=a,this.nestingLevel=u,this.scopedNodeEntities=c,this.usedPipes=l,this.eagerPipes=p,this.deferredBlocks=f.map(E=>E[0]),this.deferredScopes=new Map(f)}getEntitiesInScope(e){return this.scopedNodeEntities.get(e)??new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}getDefinitionNodeOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){let e=new Set;return this.directives.forEach(n=>n.forEach(r=>e.add(r))),Array.from(e.values())}getEagerlyUsedDirectives(){let e=new Set(this.eagerDirectives);return Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return this.deferredBlocks}getDeferredTriggerTarget(e,n){if(!(n instanceof Ba)&&!(n instanceof Fa)&&!(n instanceof Oa))return null;let r=n.reference;if(r===null){let i=null;if(e.placeholder!==null){for(let o of e.placeholder.children)if(!(o instanceof $s)){if(i!==null)return null;o instanceof Qt&&(i=o)}}return i}let s=this.findEntityInScope(e,r);if(s instanceof ro&&this.getDefinitionNodeOfSymbol(s)!==e){let i=this.getReferenceTarget(s);if(i!==null)return this.referenceTargetToElement(i)}if(e.placeholder!==null){let i=this.findEntityInScope(e.placeholder,r),o=i instanceof ro?this.getReferenceTarget(i):null;if(o!==null)return this.referenceTargetToElement(o)}return null}isDeferred(e){for(let n of this.deferredBlocks){if(!this.deferredScopes.has(n))continue;let r=[this.deferredScopes.get(n)];for(;r.length>0;){let s=r.pop();if(s.elementsInScope.has(e))return!0;r.push(...s.childScopes.values())}}return!1}findEntityInScope(e,n){let r=this.getEntitiesInScope(e);for(let s of r)if(s.name===n)return s;return null}referenceTargetToElement(e){return e instanceof Qt?e:e instanceof Pt?null:this.referenceTargetToElement(e.node)}};function Yq(t){let e=new Map;function n(i){if(e.has(i.rootNode))return e.get(i.rootNode);let o=i.namedEntities,a;return i.parentScope!==null?a=new Map([...n(i.parentScope),...o]):a=new Map(o),e.set(i.rootNode,a),a}let r=[t];for(;r.length>0;){let i=r.pop();for(let o of i.childScopes.values())r.push(o);n(i)}let s=new Map;for(let[i,o]of e)s.set(i,new Set(o.values()));return s}var Lh=class{},Mh=class{constructor(e=new Ml){this.jitEvaluator=e,this.FactoryTarget=xn,this.ResourceLoader=Lh,this.elementSchemaRegistry=new Ks}compilePipe(e,n,r){let s={name:r.name,type:Ue(r.type),typeArgumentCount:0,deps:null,pipeName:r.pipeName,pure:r.pure,isStandalone:r.isStandalone},i=zm(s);return this.jitExpression(i.expression,e,n,[])}compilePipeDeclaration(e,n,r){let s=fL(r),i=zm(s);return this.jitExpression(i.expression,e,n,[])}compileInjectable(e,n,r){let{expression:s,statements:i}=Bm({name:r.name,type:Ue(r.type),typeArgumentCount:r.typeArgumentCount,providedIn:fv(r.providedIn),useClass:vs(r,"useClass"),useFactory:pv(r,"useFactory"),useValue:vs(r,"useValue"),useExisting:vs(r,"useExisting"),deps:r.deps?.map(FE)},!0);return this.jitExpression(s,e,n,i)}compileInjectableDeclaration(e,n,r){let{expression:s,statements:i}=Bm({name:r.type.name,type:Ue(r.type),typeArgumentCount:0,providedIn:fv(r.providedIn),useClass:vs(r,"useClass"),useFactory:pv(r,"useFactory"),useValue:vs(r,"useValue"),useExisting:vs(r,"useExisting"),deps:r.deps?.map(dv)},!0);return this.jitExpression(s,e,n,i)}compileInjector(e,n,r){let s={name:r.name,type:Ue(r.type),providers:r.providers&&r.providers.length>0?new se(r.providers):null,imports:r.imports.map(o=>new se(o))},i=Gm(s);return this.jitExpression(i.expression,e,n,[])}compileInjectorDeclaration(e,n,r){let s=dL(r),i=Gm(s);return this.jitExpression(i.expression,e,n,[])}compileNgModule(e,n,r){let s={kind:Vn.Global,type:Ue(r.type),bootstrap:r.bootstrap.map(Ue),declarations:r.declarations.map(Ue),publicDeclarationTypes:null,imports:r.imports.map(Ue),includeImportTypes:!0,exports:r.exports.map(Ue),selectorScopeMode:lo.Inline,containsForwardDecls:!1,schemas:r.schemas?r.schemas.map(Ue):null,id:r.id?new se(r.id):null},i=u1(s);return this.jitExpression(i.expression,e,n,[])}compileNgModuleDeclaration(e,n,r){let s=c1(r);return this.jitExpression(s,e,n,[])}compileDirective(e,n,r){let s=lv(r);return this.compileDirectiveFromMeta(e,n,s)}compileDirectiveDeclaration(e,n,r){let s=this.createParseSourceSpan("Directive",r.type.name,n),i=OE(r,s);return this.compileDirectiveFromMeta(e,n,i)}compileDirectiveFromMeta(e,n,r){let s=new ba,i=bu(),o=Oq(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileComponent(e,n,r){let{template:s,interpolation:i,defer:o}=BE(r.template,r.name,n,r.preserveWhitespaces,r.interpolation,void 0),a={...r,...lv(r),selector:r.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:r.declarations.map(eL),declarationListEmitMode:0,defer:o,styles:[...r.styles,...s.styles],encapsulation:r.encapsulation,interpolation:i,changeDetection:r.changeDetection??null,animations:r.animations!=null?new se(r.animations):null,viewProviders:r.viewProviders!=null?new se(r.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0},u=`ng:///${r.name}.js`;return this.compileComponentFromMeta(e,u,a)}compileComponentDeclaration(e,n,r){let s=this.createParseSourceSpan("Component",r.type.name,n),i=Kq(r,s,n);return this.compileComponentFromMeta(e,n,i)}compileComponentFromMeta(e,n,r){let s=new ba,i=bu(r.interpolation),o=Bq(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileFactory(e,n,r){let s=Pr({name:r.name,type:Ue(r.type),typeArgumentCount:r.typeArgumentCount,deps:rL(r.deps),target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}compileFactoryDeclaration(e,n,r){let s=Pr({name:r.type.name,type:Ue(r.type),typeArgumentCount:0,deps:Array.isArray(r.deps)?r.deps.map(dv):r.deps,target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}createParseSourceSpan(e,n,r){return t1(e,n,r)}jitExpression(e,n,r,s){let i=[...s,new st("$def",e,void 0,Ge.Exported)];return this.jitEvaluator.evaluateStatements(r,i,new Ol(n),!0).$def}};function uv(t){return{...t,isSignal:t.isSignal,predicate:RE(t.predicate),read:t.read?new se(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly}}function cv(t){return{propertyName:t.propertyName,first:t.first??!1,predicate:RE(t.predicate),descendants:t.descendants??!1,read:t.read?new se(t.read):null,static:t.static??!1,emitDistinctChangesOnly:t.emitDistinctChangesOnly??!0,isSignal:!!t.isSignal}}function RE(t){return Array.isArray(t)?t:Fh(new se(t),1)}function lv(t){let e=pL(t.inputs||[]),n=il(t.outputs||[]),r=t.propMetadata,s={},i={};for(let a in r)r.hasOwnProperty(a)&&r[a].forEach(u=>{uL(u)?s[a]={bindingPropertyName:u.alias||a,classPropertyName:a,required:u.required||!1,isSignal:!!u.isSignal,transformFunction:u.transform!=null?new se(u.transform):null}:cL(u)&&(i[a]=u.alias||a)});let o=t.hostDirectives?.length?t.hostDirectives.map(a=>typeof a=="function"?{directive:Ue(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:Ue(a.directive),isForwardReference:!1,inputs:a.inputs?il(a.inputs):null,outputs:a.outputs?il(a.outputs):null}):null;return{...t,typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:Ue(t.type),deps:null,host:{...iL(t.propMetadata,t.typeSourceSpan,t.host)},inputs:{...e,...s},outputs:{...n,...i},queries:t.queries.map(uv),providers:t.providers!=null?new se(t.providers):null,viewQueries:t.viewQueries.map(uv),fullInheritance:!1,hostDirectives:o}}function OE(t,e){let n=t.hostDirectives?.length?t.hostDirectives.map(r=>({directive:Ue(r.directive),isForwardReference:!1,inputs:r.inputs?hv(r.inputs):null,outputs:r.outputs?hv(r.outputs):null})):null;return{name:t.type.name,type:Ue(t.type),typeSourceSpan:e,selector:t.selector??null,inputs:t.inputs?lL(t.inputs):{},outputs:t.outputs??{},host:Qq(t.host),queries:(t.queries??[]).map(cv),viewQueries:(t.viewQueries??[]).map(cv),providers:t.providers!==void 0?new se(t.providers):null,exportAs:t.exportAs??null,usesInheritance:t.usesInheritance??!1,lifecycle:{usesOnChanges:t.usesOnChanges??!1},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:t.isStandalone??!1,isSignal:t.isSignal??!1,hostDirectives:n}}function Qq(t={}){return{attributes:Jq(t.attributes??{}),listeners:t.listeners??{},properties:t.properties??{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function hv(t){let e=null;for(let n=1;n<t.length;n+=2)e=e||{},e[t[n-1]]=t[n];return e}function Jq(t){let e={};for(let n of Object.keys(t))e[n]=new se(t[n]);return e}function Kq(t,e,n){let{template:r,interpolation:s,defer:i}=BE(t.template,t.type.name,n,t.preserveWhitespaces??!1,t.interpolation,t.deferBlockDependencies),o=[];if(t.dependencies)for(let a of t.dependencies)switch(a.kind){case"directive":case"component":o.push(sl(a));break;case"pipe":o.push(nL(a));break}else(t.components||t.directives||t.pipes)&&(t.components&&o.push(...t.components.map(a=>sl(a,!0))),t.directives&&o.push(...t.directives.map(a=>sl(a))),t.pipes&&o.push(...tL(t.pipes)));return{...OE(t,e),template:r,styles:t.styles??[],declarations:o,viewProviders:t.viewProviders!==void 0?new se(t.viewProviders):null,animations:t.animations!==void 0?new se(t.animations):null,defer:i,changeDetection:t.changeDetection??pa.Default,encapsulation:t.encapsulation??pr.Emulated,interpolation:s,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0}}function eL(t){return{...t,type:new se(t.type)}}function sl(t,e=null){return{kind:ho.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new se(t.type),inputs:t.inputs??[],outputs:t.outputs??[],exportAs:t.exportAs??null}}function tL(t){return t?Object.keys(t).map(e=>({kind:ho.Pipe,name:e,type:new se(t[e])})):[]}function nL(t){return{kind:ho.Pipe,name:t.name,type:new se(t.type)}}function BE(t,e,n,r,s,i){let o=s?Ga.fromArray(s):Sn,a=qq(t,n,{preserveWhitespaces:r,interpolationConfig:o});if(a.errors!==null){let l=a.errors.map(p=>p.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${l}`)}let c=new Ih(new ha).bind({template:a.nodes});return{template:a,interpolation:o,defer:sL(c,i)}}function vs(t,e){if(t.hasOwnProperty(e))return Fh(new se(t[e]),0)}function pv(t,e){if(t.hasOwnProperty(e))return new se(t[e])}function fv(t){let e=typeof t=="function"?new se(t):new tt(t??null);return Fh(e,0)}function rL(t){return t==null?null:t.map(FE)}function FE(t){let e=t.attribute!=null,n=t.token===null?null:new se(t.token),r=e?new se(t.attribute):n;return $E(r,e,t.host,t.optional,t.self,t.skipSelf)}function dv(t){let e=t.attribute??!1,n=t.token===null?null:new se(t.token);return $E(n,e,t.host??!1,t.optional??!1,t.self??!1,t.skipSelf??!1)}function $E(t,e,n,r,s,i){let o=e?w("unknown"):null;return{token:t,attributeNameType:o,host:n,optional:r,self:s,skipSelf:i}}function sL(t,e){let n=t.getDeferBlocks(),r=new Map;for(let s=0;s<n.length;s++){let i=e?.[s];r.set(n[s],i?new se(i):null)}return{mode:0,blocks:r}}function iL(t,e,n){let r=Gq(n||{}),s=zq(r,e);if(s.length)throw new Error(s.map(i=>i.msg).join(` `));for(let i in t)t.hasOwnProperty(i)&&t[i].forEach(o=>{oL(o)?r.properties[o.hostPropertyName||i]=yA("this",i):aL(o)&&(r.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});return r}function oL(t){return t.ngMetadataName==="HostBinding"}function aL(t){return t.ngMetadataName==="HostListener"}function uL(t){return t.ngMetadataName==="Input"}function cL(t){return t.ngMetadataName==="Output"}function lL(t){return Object.keys(t).reduce((e,n)=>{let r=t[n];return typeof r=="string"||Array.isArray(r)?e[n]=hL(r):e[n]={bindingPropertyName:r.publicName,classPropertyName:n,transformFunction:r.transformFunction!==null?new se(r.transformFunction):null,required:r.isRequired,isSignal:r.isSignal},e},{})}function hL(t){return typeof t=="string"?{bindingPropertyName:t,classPropertyName:t,transformFunction:null,required:!1,isSignal:!1}:{bindingPropertyName:t[0],classPropertyName:t[1],transformFunction:t[2]?new se(t[2]):null,required:!1,isSignal:!1}}function pL(t){return t.reduce((e,n)=>{if(typeof n=="string"){let[r,s]=VE(n);e[s]={bindingPropertyName:r,classPropertyName:s,required:!1,isSignal:!1,transformFunction:null}}else e[n.name]={bindingPropertyName:n.alias||n.name,classPropertyName:n.name,required:n.required||!1,isSignal:!1,transformFunction:n.transform!=null?new se(n.transform):null};return e},{})}function il(t){return t.reduce((e,n)=>{let[r,s]=VE(n);return e[s]=r,e},{})}function VE(t){let[e,n]=t.split(":",2).map(r=>r.trim());return[n??e,e]}function fL(t){return{name:t.type.name,type:Ue(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??!1}}function dL(t){return{name:t.type.name,type:Ue(t.type),providers:t.providers!==void 0&&t.providers.length>0?new se(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new se(e)):[]}}function mL(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new Mh}var T$=new dl("18.2.0");var mv;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(mv||(mv={}));var Rh=class{constructor(){this.closedByParent=!1,this.implicitNamespacePrefix=null,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return an.PARSABLE_DATA}},C$=new Rh;var gv;(function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"})(gv||(gv={}));mL(Ni);var gH=gt(yy()),vH=gt(Yy()),EH=gt(h2()),wH=gt(x2()),yH=gt(A2()),xH=gt(cx()),SH=gt(tS()),bH=gt(a0()),TH=gt(A0()),CH=gt(Rb()),AH=gt(jb()),_H=gt(pT()),kH=gt(ET()),IH=gt(lC());var qn=globalThis;function nn(t){return(qn.__Zone_symbol_prefix||"__zone_symbol__")+t}function ZF(){let t=qn.performance;function e(ye){t&&t.mark&&t.mark(ye)}function n(ye,T){t&&t.measure&&t.measure(ye,T)}e("Zone");let $e=class $e{static assertZonePatched(){if(qn.Promise!==ie.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let T=$e.current;for(;T.parent;)T=T.parent;return T}static get current(){return G.zone}static get currentTask(){return ne}static __load_patch(T,b,S=!1){if(ie.hasOwnProperty(T)){let j=qn[nn("forceDuplicateZoneCheck")]===!0;if(!S&&j)throw Error("Already loaded patch: "+T)}else if(!qn["__Zone_disable_"+T]){let j="Zone:"+T;e(j),ie[T]=b(qn,$e,X),n(j,j)}}get parent(){return this._parent}get name(){return this._name}constructor(T,b){this._parent=T,this._name=b?b.name||"unnamed":"<root>",this._properties=b&&b.properties||{},this._zoneDelegate=new i(this,this._parent&&this._parent._zoneDelegate,b)}get(T){let b=this.getZoneWith(T);if(b)return b._properties[T]}getZoneWith(T){let b=this;for(;b;){if(b._properties.hasOwnProperty(T))return b;b=b._parent}return null}fork(T){if(!T)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,T)}wrap(T,b){if(typeof T!="function")throw new Error("Expecting function got: "+T);let S=this._zoneDelegate.intercept(this,T,b),j=this;return function(){return j.runGuarded(S,this,arguments,b)}}run(T,b,S,j){G={parent:G,zone:this};try{return this._zoneDelegate.invoke(this,T,b,S,j)}finally{G=G.parent}}runGuarded(T,b=null,S,j){G={parent:G,zone:this};try{try{return this._zoneDelegate.invoke(this,T,b,S,j)}catch(xe){if(this._zoneDelegate.handleError(this,xe))throw xe}}finally{G=G.parent}}runTask(T,b,S){if(T.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(T.zone||k).name+"; Execution: "+this.name+")");let j=T,{type:xe,data:{isPeriodic:le=!1,isRefreshable:vn=!1}={}}=T;if(T.state===A&&(xe===Ae||xe===F))return;let Ln=T.state!=O;Ln&&j._transitionTo(O,_);let Mn=ne;ne=j,G={parent:G,zone:this};try{xe==F&&T.data&&!le&&!vn&&(T.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,j,b,S)}catch(sn){if(this._zoneDelegate.handleError(this,sn))throw sn}}finally{let sn=T.state;if(sn!==A&&sn!==de)if(xe==Ae||le||vn&&sn===C)Ln&&j._transitionTo(_,O,C);else{let L=j._zoneDelegates;this._updateTaskCount(j,-1),Ln&&j._transitionTo(A,O,A),vn&&(j._zoneDelegates=L)}G=G.parent,ne=Mn}}scheduleTask(T){if(T.zone&&T.zone!==this){let S=this;for(;S;){if(S===T.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${T.zone.name}`);S=S.parent}}T._transitionTo(C,A);let b=[];T._zoneDelegates=b,T._zone=this;try{T=this._zoneDelegate.scheduleTask(this,T)}catch(S){throw T._transitionTo(de,C,A),this._zoneDelegate.handleError(this,S),S}return T._zoneDelegates===b&&this._updateTaskCount(T,1),T.state==C&&T._transitionTo(_,C),T}scheduleMicroTask(T,b,S,j){return this.scheduleTask(new o(fe,T,b,S,j,void 0))}scheduleMacroTask(T,b,S,j,xe){return this.scheduleTask(new o(F,T,b,S,j,xe))}scheduleEventTask(T,b,S,j,xe){return this.scheduleTask(new o(Ae,T,b,S,j,xe))}cancelTask(T){if(T.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(T.zone||k).name+"; Execution: "+this.name+")");if(!(T.state!==_&&T.state!==O)){T._transitionTo(Q,_,O);try{this._zoneDelegate.cancelTask(this,T)}catch(b){throw T._transitionTo(de,Q),this._zoneDelegate.handleError(this,b),b}return this._updateTaskCount(T,-1),T._transitionTo(A,Q),T.runCount=-1,T}}_updateTaskCount(T,b){let S=T._zoneDelegates;b==-1&&(T._zoneDelegates=null);for(let j=0;j<S.length;j++)S[j]._updateTaskCount(T.type,b)}};$e.__symbol__=nn;let r=$e,s={name:"",onHasTask:(ye,T,b,S)=>ye.hasTask(b,S),onScheduleTask:(ye,T,b,S)=>ye.scheduleTask(b,S),onInvokeTask:(ye,T,b,S,j,xe)=>ye.invokeTask(b,S,j,xe),onCancelTask:(ye,T,b,S)=>ye.cancelTask(b,S)};class i{get zone(){return this._zone}constructor(T,b,S){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=T,this._parentDelegate=b,this._forkZS=S&&(S&&S.onFork?S:b._forkZS),this._forkDlgt=S&&(S.onFork?b:b._forkDlgt),this._forkCurrZone=S&&(S.onFork?this._zone:b._forkCurrZone),this._interceptZS=S&&(S.onIntercept?S:b._interceptZS),this._interceptDlgt=S&&(S.onIntercept?b:b._interceptDlgt),this._interceptCurrZone=S&&(S.onIntercept?this._zone:b._interceptCurrZone),this._invokeZS=S&&(S.onInvoke?S:b._invokeZS),this._invokeDlgt=S&&(S.onInvoke?b:b._invokeDlgt),this._invokeCurrZone=S&&(S.onInvoke?this._zone:b._invokeCurrZone),this._handleErrorZS=S&&(S.onHandleError?S:b._handleErrorZS),this._handleErrorDlgt=S&&(S.onHandleError?b:b._handleErrorDlgt),this._handleErrorCurrZone=S&&(S.onHandleError?this._zone:b._handleErrorCurrZone),this._scheduleTaskZS=S&&(S.onScheduleTask?S:b._scheduleTaskZS),this._scheduleTaskDlgt=S&&(S.onScheduleTask?b:b._scheduleTaskDlgt),this._scheduleTaskCurrZone=S&&(S.onScheduleTask?this._zone:b._scheduleTaskCurrZone),this._invokeTaskZS=S&&(S.onInvokeTask?S:b._invokeTaskZS),this._invokeTaskDlgt=S&&(S.onInvokeTask?b:b._invokeTaskDlgt),this._invokeTaskCurrZone=S&&(S.onInvokeTask?this._zone:b._invokeTaskCurrZone),this._cancelTaskZS=S&&(S.onCancelTask?S:b._cancelTaskZS),this._cancelTaskDlgt=S&&(S.onCancelTask?b:b._cancelTaskDlgt),this._cancelTaskCurrZone=S&&(S.onCancelTask?this._zone:b._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let j=S&&S.onHasTask,xe=b&&b._hasTaskZS;(j||xe)&&(this._hasTaskZS=j?S:s,this._hasTaskDlgt=b,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,S.onScheduleTask||(this._scheduleTaskZS=s,this._scheduleTaskDlgt=b,this._scheduleTaskCurrZone=this._zone),S.onInvokeTask||(this._invokeTaskZS=s,this._invokeTaskDlgt=b,this._invokeTaskCurrZone=this._zone),S.onCancelTask||(this._cancelTaskZS=s,this._cancelTaskDlgt=b,this._cancelTaskCurrZone=this._zone))}fork(T,b){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,b):new r(T,b)}intercept(T,b,S){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,b,S):b}invoke(T,b,S,j,xe){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,b,S,j,xe):b.apply(S,j)}handleError(T,b){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,b):!0}scheduleTask(T,b){let S=b;if(this._scheduleTaskZS)this._hasTaskZS&&S._zoneDelegates.push(this._hasTaskDlgtOwner),S=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,b),S||(S=b);else if(b.scheduleFn)b.scheduleFn(b);else if(b.type==fe)y(b);else throw new Error("Task is missing scheduleFn.");return S}invokeTask(T,b,S,j){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,b,S,j):b.callback.apply(S,j)}cancelTask(T,b){let S;if(this._cancelTaskZS)S=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,b);else{if(!b.cancelFn)throw Error("Task is not cancelable");S=b.cancelFn(b)}return S}hasTask(T,b){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,b)}catch(S){this.handleError(T,S)}}_updateTaskCount(T,b){let S=this._taskCounts,j=S[T],xe=S[T]=j+b;if(xe<0)throw new Error("More tasks executed then were scheduled.");if(j==0||xe==0){let le={microTask:S.microTask>0,macroTask:S.macroTask>0,eventTask:S.eventTask>0,change:T};this.hasTask(this._zone,le)}}}class o{constructor(T,b,S,j,xe,le){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=b,this.data=j,this.scheduleFn=xe,this.cancelFn=le,!S)throw new Error("callback is not defined");this.callback=S;let vn=this;T===Ae&&j&&j.useG?this.invoke=o.invokeTask:this.invoke=function(){return o.invokeTask.call(qn,vn,this,arguments)}}static invokeTask(T,b,S){T||(T=this),ct++;try{return T.runCount++,T.zone.runTask(T,b,S)}finally{ct==1&&I(),ct--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(A,C)}_transitionTo(T,b,S){if(this._state===b||this._state===S)this._state=T,T==A&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${b}'${S?" or '"+S+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let a=nn("setTimeout"),u=nn("Promise"),c=nn("then"),l=[],p=!1,f;function E(ye){if(f||qn[u]&&(f=qn[u].resolve(0)),f){let T=f[c];T||(T=f.then),T.call(f,ye)}else qn[a](ye,0)}function y(ye){ct===0&&l.length===0&&E(I),ye&&l.push(ye)}function I(){if(!p){for(p=!0;l.length;){let ye=l;l=[];for(let T=0;T<ye.length;T++){let b=ye[T];try{b.zone.runTask(b,null,null)}catch(S){X.onUnhandledError(S)}}}X.microtaskDrainDone(),p=!1}}let k={name:"NO ZONE"},A="notScheduled",C="scheduling",_="scheduled",O="running",Q="canceling",de="unknown",fe="microTask",F="macroTask",Ae="eventTask",ie={},X={symbol:nn,currentZoneFrame:()=>G,onUnhandledError:qe,microtaskDrainDone:qe,scheduleMicroTask:y,showUncaughtError:()=>!r[nn("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:qe,patchMethod:()=>qe,bindArguments:()=>[],patchThen:()=>qe,patchMacroTask:()=>qe,patchEventPrototype:()=>qe,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>qe,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>qe,wrapWithCurrentZone:()=>qe,filterProperties:()=>[],attachOriginToPatched:()=>qe,_redefineProperty:()=>qe,patchCallbacks:()=>qe,nativeScheduleMicroTask:E},G={parent:null,zone:new r(null,null)},ne=null,ct=0;function qe(){}return n("Zone","Zone"),r}function YF(){let t=globalThis,e=t[nn("forceDuplicateZoneCheck")]===!0;if(t.Zone&&(e||typeof t.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return t.Zone??=ZF(),t.Zone}var ea=Object.getOwnPropertyDescriptor,om=Object.defineProperty,am=Object.getPrototypeOf,QF=Object.create,JF=Array.prototype.slice,um="addEventListener",cm="removeEventListener",nm=nn(um),rm=nn(cm),rr="true",sr="false",ta=nn("");function lm(t,e){return Zone.current.wrap(t,e)}function hm(t,e,n,r,s){return Zone.current.scheduleMacroTask(t,e,n,r,s)}var we=nn,qc=typeof window<"u",Si=qc?window:void 0,We=qc&&Si||globalThis,KF="removeAttribute";function pm(t,e){for(let n=t.length-1;n>=0;n--)typeof t[n]=="function"&&(t[n]=lm(t[n],e+"_"+n));return t}function e$(t,e){let n=t.constructor.name;for(let r=0;r<e.length;r++){let s=e[r],i=t[s];if(i){let o=ea(t,s);if(!vC(o))continue;t[s]=(a=>{let u=function(){return a.apply(this,pm(arguments,n+"."+s))};return or(u,a),u})(i)}}}function vC(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set>"u"):!0}var EC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Lc=!("nw"in We)&&typeof We.process<"u"&&We.process.toString()==="[object process]",fm=!Lc&&!EC&&!!(qc&&Si.HTMLElement),wC=typeof We.process<"u"&&We.process.toString()==="[object process]"&&!EC&&!!(qc&&Si.HTMLElement),Pc={},t$=we("enable_beforeunload"),hC=function(t){if(t=t||We.event,!t)return;let e=Pc[t.type];e||(e=Pc[t.type]=we("ON_PROPERTY"+t.type));let n=this||t.target||We,r=n[e],s;if(fm&&n===Si&&t.type==="error"){let i=t;s=r&&r.call(this,i.message,i.filename,i.lineno,i.colno,i.error),s===!0&&t.preventDefault()}else s=r&&r.apply(this,arguments),t.type==="beforeunload"&&We[t$]&&typeof s=="string"?t.returnValue=s:s!=null&&!s&&t.preventDefault();return s};function pC(t,e,n){let r=ea(t,e);if(!r&&n&&ea(n,e)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let s=we("on"+e+"patched");if(t.hasOwnProperty(s)&&t[s])return;delete r.writable,delete r.value;let i=r.get,o=r.set,a=e.slice(2),u=Pc[a];u||(u=Pc[a]=we("ON_PROPERTY"+a)),r.set=function(c){let l=this;if(!l&&t===We&&(l=We),!l)return;typeof l[u]=="function"&&l.removeEventListener(a,hC),o&&o.call(l,null),l[u]=c,typeof c=="function"&&l.addEventListener(a,hC,!1)},r.get=function(){let c=this;if(!c&&t===We&&(c=We),!c)return null;let l=c[u];if(l)return l;if(i){let p=i.call(this);if(p)return r.set.call(this,p),typeof c[KF]=="function"&&c.removeAttribute(e),p}return null},om(t,e,r),t[s]=!0}function yC(t,e,n){if(e)for(let r=0;r<e.length;r++)pC(t,"on"+e[r],n);else{let r=[];for(let s in t)s.slice(0,2)=="on"&&r.push(s);for(let s=0;s<r.length;s++)pC(t,r[s],n)}}var gn=we("originalInstance");function Ko(t){let e=We[t];if(!e)return;We[we(t)]=e,We[t]=function(){let s=pm(arguments,t);switch(s.length){case 0:this[gn]=new e;break;case 1:this[gn]=new e(s[0]);break;case 2:this[gn]=new e(s[0],s[1]);break;case 3:this[gn]=new e(s[0],s[1],s[2]);break;case 4:this[gn]=new e(s[0],s[1],s[2],s[3]);break;default:throw new Error("Arg list too long.")}},or(We[t],e);let n=new e(function(){}),r;for(r in n)t==="XMLHttpRequest"&&r==="responseBlob"||function(s){typeof n[s]=="function"?We[t].prototype[s]=function(){return this[gn][s].apply(this[gn],arguments)}:om(We[t].prototype,s,{set:function(i){typeof i=="function"?(this[gn][s]=lm(i,t+"."+s),or(this[gn][s],i)):this[gn][s]=i},get:function(){return this[gn][s]}})}(r);for(r in e)r!=="prototype"&&e.hasOwnProperty(r)&&(We[t][r]=e[r])}function ir(t,e,n){let r=t;for(;r&&!r.hasOwnProperty(e);)r=am(r);!r&&t[e]&&(r=t);let s=we(e),i=null;if(r&&(!(i=r[s])||!r.hasOwnProperty(s))){i=r[s]=r[e];let o=r&&ea(r,e);if(vC(o)){let a=n(i,s,e);r[e]=function(){return a(this,arguments)},or(r[e],i)}}return i}function n$(t,e,n){let r=null;function s(i){let o=i.data;return o.args[o.cbIdx]=function(){i.invoke.apply(this,arguments)},r.apply(o.target,o.args),i}r=ir(t,e,i=>function(o,a){let u=n(o,a);return u.cbIdx>=0&&typeof a[u.cbIdx]=="function"?hm(u.name,a[u.cbIdx],u,s):i.apply(o,a)})}function or(t,e){t[we("OriginalDelegate")]=e}var fC=!1,sm=!1;function r$(){try{let t=Si.navigator.userAgent;if(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1)return!0}catch{}return!1}function s$(){if(fC)return sm;fC=!0;try{let t=Si.navigator.userAgent;(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1||t.indexOf("Edge/")!==-1)&&(sm=!0)}catch{}return sm}function dC(t){return typeof t=="function"}function mC(t){return typeof t=="number"}var xi=!1;if(typeof window<"u")try{let t=Object.defineProperty({},"passive",{get:function(){xi=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{xi=!1}var i$={useG:!0},rn={},xC={},SC=new RegExp("^"+ta+"(\\w+)(true|false)$"),bC=we("propagationStopped");function TC(t,e){let n=(e?e(t):t)+sr,r=(e?e(t):t)+rr,s=ta+n,i=ta+r;rn[t]={},rn[t][sr]=s,rn[t][rr]=i}function o$(t,e,n,r){let s=r&&r.add||um,i=r&&r.rm||cm,o=r&&r.listeners||"eventListeners",a=r&&r.rmAll||"removeAllListeners",u=we(s),c="."+s+":",l="prependListener",p="."+l+":",f=function(C,_,O){if(C.isRemoved)return;let Q=C.callback;typeof Q=="object"&&Q.handleEvent&&(C.callback=F=>Q.handleEvent(F),C.originalDelegate=Q);let de;try{C.invoke(C,_,[O])}catch(F){de=F}let fe=C.options;if(fe&&typeof fe=="object"&&fe.once){let F=C.originalDelegate?C.originalDelegate:C.callback;_[i].call(_,O.type,F,fe)}return de};function E(C,_,O){if(_=_||t.event,!_)return;let Q=C||_.target||t,de=Q[rn[_.type][O?rr:sr]];if(de){let fe=[];if(de.length===1){let F=f(de[0],Q,_);F&&fe.push(F)}else{let F=de.slice();for(let Ae=0;Ae<F.length&&!(_&&_[bC]===!0);Ae++){let ie=f(F[Ae],Q,_);ie&&fe.push(ie)}}if(fe.length===1)throw fe[0];for(let F=0;F<fe.length;F++){let Ae=fe[F];e.nativeScheduleMicroTask(()=>{throw Ae})}}}let y=function(C){return E(this,C,!1)},I=function(C){return E(this,C,!0)};function k(C,_){if(!C)return!1;let O=!0;_&&_.useG!==void 0&&(O=_.useG);let Q=_&&_.vh,de=!0;_&&_.chkDup!==void 0&&(de=_.chkDup);let fe=!1;_&&_.rt!==void 0&&(fe=_.rt);let F=C;for(;F&&!F.hasOwnProperty(s);)F=am(F);if(!F&&C[s]&&(F=C),!F||F[u])return!1;let Ae=_&&_.eventNameToString,ie={},X=F[u]=F[s],G=F[we(i)]=F[i],ne=F[we(o)]=F[o],ct=F[we(a)]=F[a],qe;_&&_.prepend&&(qe=F[we(_.prepend)]=F[_.prepend]);function $e(x,q){return!xi&&typeof x=="object"&&x?!!x.capture:!xi||!q?x:typeof x=="boolean"?{capture:x,passive:!0}:x?typeof x=="object"&&x.passive!==!1?{...x,passive:!0}:x:{passive:!0}}let ye=function(x){if(!ie.isExisting)return X.call(ie.target,ie.eventName,ie.capture?I:y,ie.options)},T=function(x){if(!x.isRemoved){let q=rn[x.eventName],W;q&&(W=q[x.capture?rr:sr]);let Z=W&&x.target[W];if(Z){for(let H=0;H<Z.length;H++)if(Z[H]===x){Z.splice(H,1),x.isRemoved=!0,x.removeAbortListener&&(x.removeAbortListener(),x.removeAbortListener=null),Z.length===0&&(x.allRemoved=!0,x.target[W]=null);break}}}if(x.allRemoved)return G.call(x.target,x.eventName,x.capture?I:y,x.options)},b=function(x){return X.call(ie.target,ie.eventName,x.invoke,ie.options)},S=function(x){return qe.call(ie.target,ie.eventName,x.invoke,ie.options)},j=function(x){return G.call(x.target,x.eventName,x.invoke,x.options)},xe=O?ye:b,le=O?T:j,vn=function(x,q){let W=typeof q;return W==="function"&&x.callback===q||W==="object"&&x.originalDelegate===q},Ln=_&&_.diff?_.diff:vn,Mn=Zone[we("UNPATCHED_EVENTS")],sn=t[we("PASSIVE_EVENTS")];function L(x){if(typeof x=="object"&&x!==null){let q={...x};return x.signal&&(q.signal=x.signal),q}return x}let P=function(x,q,W,Z,H=!1,oe=!1){return function(){let ae=this||t,ue=arguments[0];_&&_.transferEventName&&(ue=_.transferEventName(ue));let Ie=arguments[1];if(!Ie)return x.apply(this,arguments);if(Lc&&ue==="uncaughtException")return x.apply(this,arguments);let Ne=!1;if(typeof Ie!="function"){if(!Ie.handleEvent)return x.apply(this,arguments);Ne=!0}if(Q&&!Q(x,Ie,ae,arguments))return;let ar=xi&&!!sn&&sn.indexOf(ue)!==-1,En=L($e(arguments[2],ar)),hs=En?.signal;if(hs?.aborted)return;if(Mn){for(let wn=0;wn<Mn.length;wn++)if(ue===Mn[wn])return ar?x.call(ae,ue,Ie,En):x.apply(this,arguments)}let Mc=En?typeof En=="boolean"?!0:En.capture:!1,dm=En&&typeof En=="object"?En.once:!1,kC=Zone.current,Rc=rn[ue];Rc||(TC(ue,Ae),Rc=rn[ue]);let mm=Rc[Mc?rr:sr],ps=ae[mm],gm=!1;if(ps){if(gm=!0,de){for(let wn=0;wn<ps.length;wn++)if(Ln(ps[wn],Ie))return}}else ps=ae[mm]=[];let na,vm=ae.constructor.name,Em=xC[vm];Em&&(na=Em[ue]),na||(na=vm+q+(Ae?Ae(ue):ue)),ie.options=En,dm&&(ie.options.once=!1),ie.target=ae,ie.capture=Mc,ie.eventName=ue,ie.isExisting=gm;let bi=O?i$:void 0;bi&&(bi.taskData=ie),hs&&(ie.options.signal=void 0);let on=kC.scheduleEventTask(na,Ie,bi,W,Z);if(hs){ie.options.signal=hs;let wn=()=>on.zone.cancelTask(on);x.call(hs,"abort",wn,{once:!0}),on.removeAbortListener=()=>hs.removeEventListener("abort",wn)}if(ie.target=null,bi&&(bi.taskData=null),dm&&(ie.options.once=!0),!xi&&typeof on.options=="boolean"||(on.options=En),on.target=ae,on.capture=Mc,on.eventName=ue,Ne&&(on.originalDelegate=Ie),oe?ps.unshift(on):ps.push(on),H)return ae}};return F[s]=P(X,c,xe,le,fe),qe&&(F[l]=P(qe,p,S,le,fe,!0)),F[i]=function(){let x=this||t,q=arguments[0];_&&_.transferEventName&&(q=_.transferEventName(q));let W=arguments[2],Z=W?typeof W=="boolean"?!0:W.capture:!1,H=arguments[1];if(!H)return G.apply(this,arguments);if(Q&&!Q(G,H,x,arguments))return;let oe=rn[q],ae;oe&&(ae=oe[Z?rr:sr]);let ue=ae&&x[ae];if(ue)for(let Ie=0;Ie<ue.length;Ie++){let Ne=ue[Ie];if(Ln(Ne,H)){if(ue.splice(Ie,1),Ne.isRemoved=!0,ue.length===0&&(Ne.allRemoved=!0,x[ae]=null,!Z&&typeof q=="string")){let ar=ta+"ON_PROPERTY"+q;x[ar]=null}return Ne.zone.cancelTask(Ne),fe?x:void 0}}return G.apply(this,arguments)},F[o]=function(){let x=this||t,q=arguments[0];_&&_.transferEventName&&(q=_.transferEventName(q));let W=[],Z=CC(x,Ae?Ae(q):q);for(let H=0;H<Z.length;H++){let oe=Z[H],ae=oe.originalDelegate?oe.originalDelegate:oe.callback;W.push(ae)}return W},F[a]=function(){let x=this||t,q=arguments[0];if(q){_&&_.transferEventName&&(q=_.transferEventName(q));let W=rn[q];if(W){let Z=W[sr],H=W[rr],oe=x[Z],ae=x[H];if(oe){let ue=oe.slice();for(let Ie=0;Ie<ue.length;Ie++){let Ne=ue[Ie],ar=Ne.originalDelegate?Ne.originalDelegate:Ne.callback;this[i].call(this,q,ar,Ne.options)}}if(ae){let ue=ae.slice();for(let Ie=0;Ie<ue.length;Ie++){let Ne=ue[Ie],ar=Ne.originalDelegate?Ne.originalDelegate:Ne.callback;this[i].call(this,q,ar,Ne.options)}}}}else{let W=Object.keys(x);for(let Z=0;Z<W.length;Z++){let H=W[Z],oe=SC.exec(H),ae=oe&&oe[1];ae&&ae!=="removeListener"&&this[a].call(this,ae)}this[a].call(this,"removeListener")}if(fe)return this},or(F[s],X),or(F[i],G),ct&&or(F[a],ct),ne&&or(F[o],ne),!0}let A=[];for(let C=0;C<n.length;C++)A[C]=k(n[C],r);return A}function CC(t,e){if(!e){let i=[];for(let o in t){let a=SC.exec(o),u=a&&a[1];if(u&&(!e||u===e)){let c=t[o];if(c)for(let l=0;l<c.length;l++)i.push(c[l])}}return i}let n=rn[e];n||(TC(e),n=rn[e]);let r=t[n[sr]],s=t[n[rr]];return r?s?r.concat(s):r.slice():s?s.slice():[]}function a$(t,e){let n=t.Event;n&&n.prototype&&e.patchMethod(n.prototype,"stopImmediatePropagation",r=>function(s,i){s[bC]=!0,r&&r.apply(s,i)})}function u$(t,e){e.patchMethod(t,"queueMicrotask",n=>function(r,s){Zone.current.scheduleMicroTask("queueMicrotask",s[0])})}var Dc=we("zoneTask");function yi(t,e,n,r){let s=null,i=null;e+=r,n+=r;let o={};function a(c){let l=c.data;l.args[0]=function(){return c.invoke.apply(this,arguments)};let p=s.apply(t,l.args);return mC(p)?l.handleId=p:(l.handle=p,l.isRefreshable=dC(p.refresh)),c}function u(c){let{handle:l,handleId:p}=c.data;return i.call(t,l??p)}s=ir(t,e,c=>function(l,p){if(dC(p[0])){let f={isRefreshable:!1,isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?p[1]||0:void 0,args:p},E=p[0];p[0]=function(){try{return E.apply(this,arguments)}finally{let{handle:O,handleId:Q,isPeriodic:de,isRefreshable:fe}=f;!de&&!fe&&(Q?delete o[Q]:O&&(O[Dc]=null))}};let y=hm(e,p[0],f,a,u);if(!y)return y;let{handleId:I,handle:k,isRefreshable:A,isPeriodic:C}=y.data;if(I)o[I]=y;else if(k&&(k[Dc]=y,A&&!C)){let _=k.refresh;k.refresh=function(){let{zone:O,state:Q}=y;return Q==="notScheduled"?(y._state="scheduled",O._updateTaskCount(y,1)):Q==="running"&&(y._state="scheduling"),_.call(this)}}return k??I??y}else return c.apply(t,p)}),i=ir(t,n,c=>function(l,p){let f=p[0],E;mC(f)?(E=o[f],delete o[f]):(E=f?.[Dc],E?f[Dc]=null:E=f),E?.type?E.cancelFn&&E.zone.cancelTask(E):c.apply(t,p)})}function c$(t,e){let{isBrowser:n,isMix:r}=e.getGlobalObjects();if(!n&&!r||!t.customElements||!("customElements"in t))return;let s=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];e.patchCallbacks(e,t.customElements,"customElements","define",s)}function l$(t,e){if(Zone[e.symbol("patchEventTarget")])return;let{eventNames:n,zoneSymbolEventNames:r,TRUE_STR:s,FALSE_STR:i,ZONE_SYMBOL_PREFIX:o}=e.getGlobalObjects();for(let u=0;u<n.length;u++){let c=n[u],l=c+i,p=c+s,f=o+l,E=o+p;r[c]={},r[c][i]=f,r[c][s]=E}let a=t.EventTarget;if(!(!a||!a.prototype))return e.patchEventTarget(t,e,[a&&a.prototype]),!0}function h$(t,e){e.patchEventPrototype(t,e)}function AC(t,e,n){if(!n||n.length===0)return e;let r=n.filter(i=>i.target===t);if(!r||r.length===0)return e;let s=r[0].ignoreProperties;return e.filter(i=>s.indexOf(i)===-1)}function gC(t,e,n,r){if(!t)return;let s=AC(t,e,n);yC(t,s,r)}function im(t){return Object.getOwnPropertyNames(t).filter(e=>e.startsWith("on")&&e.length>2).map(e=>e.substring(2))}function p$(t,e){if(Lc&&!wC||Zone[t.symbol("patchEvents")])return;let n=e.__Zone_ignore_on_properties,r=[];if(fm){let s=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let i=r$()?[{target:s,ignoreProperties:["error"]}]:[];gC(s,im(s),n&&n.concat(i),am(s))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let s=0;s<r.length;s++){let i=e[r[s]];i&&i.prototype&&gC(i.prototype,im(i.prototype),n)}}function f$(t){t.__load_patch("legacy",e=>{let n=e[t.__symbol__("legacyPatch")];n&&n()}),t.__load_patch("timers",e=>{let n="set",r="clear";yi(e,n,r,"Timeout"),yi(e,n,r,"Interval"),yi(e,n,r,"Immediate")}),t.__load_patch("requestAnimationFrame",e=>{yi(e,"request","cancel","AnimationFrame"),yi(e,"mozRequest","mozCancel","AnimationFrame"),yi(e,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(e,n)=>{let r=["alert","prompt","confirm"];for(let s=0;s<r.length;s++){let i=r[s];ir(e,i,(o,a,u)=>function(c,l){return n.current.run(o,e,l,u)})}}),t.__load_patch("EventTarget",(e,n,r)=>{h$(e,r),l$(e,r);let s=e.XMLHttpRequestEventTarget;s&&s.prototype&&r.patchEventTarget(e,r,[s.prototype])}),t.__load_patch("MutationObserver",(e,n,r)=>{Ko("MutationObserver"),Ko("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(e,n,r)=>{Ko("IntersectionObserver")}),t.__load_patch("FileReader",(e,n,r)=>{Ko("FileReader")}),t.__load_patch("on_property",(e,n,r)=>{p$(r,e)}),t.__load_patch("customElements",(e,n,r)=>{c$(e,r)}),t.__load_patch("XHR",(e,n)=>{c(e);let r=we("xhrTask"),s=we("xhrSync"),i=we("xhrListener"),o=we("xhrScheduled"),a=we("xhrURL"),u=we("xhrErrorBeforeScheduled");function c(l){let p=l.XMLHttpRequest;if(!p)return;let f=p.prototype;function E(X){return X[r]}let y=f[nm],I=f[rm];if(!y){let X=l.XMLHttpRequestEventTarget;if(X){let G=X.prototype;y=G[nm],I=G[rm]}}let k="readystatechange",A="scheduled";function C(X){let G=X.data,ne=G.target;ne[o]=!1,ne[u]=!1;let ct=ne[i];y||(y=ne[nm],I=ne[rm]),ct&&I.call(ne,k,ct);let qe=ne[i]=()=>{if(ne.readyState===ne.DONE)if(!G.aborted&&ne[o]&&X.state===A){let ye=ne[n.__symbol__("loadfalse")];if(ne.status!==0&&ye&&ye.length>0){let T=X.invoke;X.invoke=function(){let b=ne[n.__symbol__("loadfalse")];for(let S=0;S<b.length;S++)b[S]===X&&b.splice(S,1);!G.aborted&&X.state===A&&T.call(X)},ye.push(X)}else X.invoke()}else!G.aborted&&ne[o]===!1&&(ne[u]=!0)};return y.call(ne,k,qe),ne[r]||(ne[r]=X),Ae.apply(ne,G.args),ne[o]=!0,X}function _(){}function O(X){let G=X.data;return G.aborted=!0,ie.apply(G.target,G.args)}let Q=ir(f,"open",()=>function(X,G){return X[s]=G[2]==!1,X[a]=G[1],Q.apply(X,G)}),de="XMLHttpRequest.send",fe=we("fetchTaskAborting"),F=we("fetchTaskScheduling"),Ae=ir(f,"send",()=>function(X,G){if(n.current[F]===!0||X[s])return Ae.apply(X,G);{let ne={target:X,url:X[a],isPeriodic:!1,args:G,aborted:!1},ct=hm(de,_,ne,C,O);X&&X[u]===!0&&!ne.aborted&&ct.state===A&&ct.invoke()}}),ie=ir(f,"abort",()=>function(X,G){let ne=E(X);if(ne&&typeof ne.type=="string"){if(ne.cancelFn==null||ne.data&&ne.data.aborted)return;ne.zone.cancelTask(ne)}else if(n.current[fe]===!0)return ie.apply(X,G)})}}),t.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&e$(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(e,n)=>{function r(s){return function(i){CC(e,s).forEach(a=>{let u=e.PromiseRejectionEvent;if(u){let c=new u(s,{promise:i.promise,reason:i.rejection});a.invoke(c)}})}}e.PromiseRejectionEvent&&(n[we("unhandledPromiseRejectionHandler")]=r("unhandledrejection"),n[we("rejectionHandledHandler")]=r("rejectionhandled"))}),t.__load_patch("queueMicrotask",(e,n,r)=>{u$(e,r)})}function d$(t){t.__load_patch("ZoneAwarePromise",(e,n,r)=>{let s=Object.getOwnPropertyDescriptor,i=Object.defineProperty;function o(L){if(L&&L.toString===Object.prototype.toString){let P=L.constructor&&L.constructor.name;return(P||"")+": "+JSON.stringify(L)}return L?L.toString():Object.prototype.toString.call(L)}let a=r.symbol,u=[],c=e[a("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,l=a("Promise"),p=a("then"),f="__creationTrace__";r.onUnhandledError=L=>{if(r.showUncaughtError()){let P=L&&L.rejection;P?console.error("Unhandled Promise rejection:",P instanceof Error?P.message:P,"; Zone:",L.zone.name,"; Task:",L.task&&L.task.source,"; Value:",P,P instanceof Error?P.stack:void 0):console.error(L)}},r.microtaskDrainDone=()=>{for(;u.length;){let L=u.shift();try{L.zone.runGuarded(()=>{throw L.throwOriginal?L.rejection:L})}catch(P){y(P)}}};let E=a("unhandledPromiseRejectionHandler");function y(L){r.onUnhandledError(L);try{let P=n[E];typeof P=="function"&&P.call(this,L)}catch{}}function I(L){return L&&L.then}function k(L){return L}function A(L){return le.reject(L)}let C=a("state"),_=a("value"),O=a("finally"),Q=a("parentPromiseValue"),de=a("parentPromiseState"),fe="Promise.then",F=null,Ae=!0,ie=!1,X=0;function G(L,P){return x=>{try{$e(L,P,x)}catch(q){$e(L,!1,q)}}}let ne=function(){let L=!1;return function(x){return function(){L||(L=!0,x.apply(null,arguments))}}},ct="Promise resolved with itself",qe=a("currentTaskTrace");function $e(L,P,x){let q=ne();if(L===x)throw new TypeError(ct);if(L[C]===F){let W=null;try{(typeof x=="object"||typeof x=="function")&&(W=x&&x.then)}catch(Z){return q(()=>{$e(L,!1,Z)})(),L}if(P!==ie&&x instanceof le&&x.hasOwnProperty(C)&&x.hasOwnProperty(_)&&x[C]!==F)T(x),$e(L,x[C],x[_]);else if(P!==ie&&typeof W=="function")try{W.call(x,q(G(L,P)),q(G(L,!1)))}catch(Z){q(()=>{$e(L,!1,Z)})()}else{L[C]=P;let Z=L[_];if(L[_]=x,L[O]===O&&P===Ae&&(L[C]=L[de],L[_]=L[Q]),P===ie&&x instanceof Error){let H=n.currentTask&&n.currentTask.data&&n.currentTask.data[f];H&&i(x,qe,{configurable:!0,enumerable:!1,writable:!0,value:H})}for(let H=0;H<Z.length;)b(L,Z[H++],Z[H++],Z[H++],Z[H++]);if(Z.length==0&&P==ie){L[C]=X;let H=x;try{throw new Error("Uncaught (in promise): "+o(x)+(x&&x.stack?` `+x.stack:""))}catch(oe){H=oe}c&&(H.throwOriginal=!0),H.rejection=x,H.promise=L,H.zone=n.current,H.task=n.currentTask,u.push(H),r.scheduleMicroTask()}}}return L}let ye=a("rejectionHandledHandler");function T(L){if(L[C]===X){try{let P=n[ye];P&&typeof P=="function"&&P.call(this,{rejection:L[_],promise:L})}catch{}L[C]=ie;for(let P=0;P<u.length;P++)L===u[P].promise&&u.splice(P,1)}}function b(L,P,x,q,W){T(L);let Z=L[C],H=Z?typeof q=="function"?q:k:typeof W=="function"?W:A;P.scheduleMicroTask(fe,()=>{try{let oe=L[_],ae=!!x&&O===x[O];ae&&(x[Q]=oe,x[de]=Z);let ue=P.run(H,void 0,ae&&H!==A&&H!==k?[]:[oe]);$e(x,!0,ue)}catch(oe){$e(x,!1,oe)}},x)}let S="function ZoneAwarePromise() { [native code] }",j=function(){},xe=e.AggregateError;class le{static toString(){return S}static resolve(P){return P instanceof le?P:$e(new this(null),Ae,P)}static reject(P){return $e(new this(null),ie,P)}static withResolvers(){let P={};return P.promise=new le((x,q)=>{P.resolve=x,P.reject=q}),P}static any(P){if(!P||typeof P[Symbol.iterator]!="function")return Promise.reject(new xe([],"All promises were rejected"));let x=[],q=0;try{for(let H of P)q++,x.push(le.resolve(H))}catch{return Promise.reject(new xe([],"All promises were rejected"))}if(q===0)return Promise.reject(new xe([],"All promises were rejected"));let W=!1,Z=[];return new le((H,oe)=>{for(let ae=0;ae<x.length;ae++)x[ae].then(ue=>{W||(W=!0,H(ue))},ue=>{Z.push(ue),q--,q===0&&(W=!0,oe(new xe(Z,"All promises were rejected")))})})}static race(P){let x,q,W=new this((oe,ae)=>{x=oe,q=ae});function Z(oe){x(oe)}function H(oe){q(oe)}for(let oe of P)I(oe)||(oe=this.resolve(oe)),oe.then(Z,H);return W}static all(P){return le.allWithCallback(P)}static allSettled(P){return(this&&this.prototype instanceof le?this:le).allWithCallback(P,{thenCallback:q=>({status:"fulfilled",value:q}),errorCallback:q=>({status:"rejected",reason:q})})}static allWithCallback(P,x){let q,W,Z=new this((ue,Ie)=>{q=ue,W=Ie}),H=2,oe=0,ae=[];for(let ue of P){I(ue)||(ue=this.resolve(ue));let Ie=oe;try{ue.then(Ne=>{ae[Ie]=x?x.thenCallback(Ne):Ne,H--,H===0&&q(ae)},Ne=>{x?(ae[Ie]=x.errorCallback(Ne),H--,H===0&&q(ae)):W(Ne)})}catch(Ne){W(Ne)}H++,oe++}return H-=2,H===0&&q(ae),Z}constructor(P){let x=this;if(!(x instanceof le))throw new Error("Must be an instanceof Promise.");x[C]=F,x[_]=[];try{let q=ne();P&&P(q(G(x,Ae)),q(G(x,ie)))}catch(q){$e(x,!1,q)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return le}then(P,x){let q=this.constructor?.[Symbol.species];(!q||typeof q!="function")&&(q=this.constructor||le);let W=new q(j),Z=n.current;return this[C]==F?this[_].push(Z,W,P,x):b(this,Z,W,P,x),W}catch(P){return this.then(null,P)}finally(P){let x=this.constructor?.[Symbol.species];(!x||typeof x!="function")&&(x=le);let q=new x(j);q[O]=O;let W=n.current;return this[C]==F?this[_].push(W,q,P,P):b(this,W,q,P,P),q}}le.resolve=le.resolve,le.reject=le.reject,le.race=le.race,le.all=le.all;let vn=e[l]=e.Promise;e.Promise=le;let Ln=a("thenPatched");function Mn(L){let P=L.prototype,x=s(P,"then");if(x&&(x.writable===!1||!x.configurable))return;let q=P.then;P[p]=q,L.prototype.then=function(W,Z){return new le((oe,ae)=>{q.call(this,oe,ae)}).then(W,Z)},L[Ln]=!0}r.patchThen=Mn;function sn(L){return function(P,x){let q=L.apply(P,x);if(q instanceof le)return q;let W=q.constructor;return W[Ln]||Mn(W),q}}return vn&&(Mn(vn),ir(e,"fetch",L=>sn(L))),Promise[n.__symbol__("uncaughtPromiseErrors")]=u,le})}function m$(t){t.__load_patch("toString",e=>{let n=Function.prototype.toString,r=we("OriginalDelegate"),s=we("Promise"),i=we("Error"),o=function(){if(typeof this=="function"){let l=this[r];if(l)return typeof l=="function"?n.call(l):Object.prototype.toString.call(l);if(this===Promise){let p=e[s];if(p)return n.call(p)}if(this===Error){let p=e[i];if(p)return n.call(p)}}return n.call(this)};o[r]=n,Function.prototype.toString=o;let a=Object.prototype.toString,u="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?u:a.call(this)}})}function g$(t,e,n,r,s){let i=Zone.__symbol__(r);if(e[i])return;let o=e[i]=e[r];e[r]=function(a,u,c){return u&&u.prototype&&s.forEach(function(l){let p=`${n}.${r}::`+l,f=u.prototype;try{if(f.hasOwnProperty(l)){let E=t.ObjectGetOwnPropertyDescriptor(f,l);E&&E.value?(E.value=t.wrapWithCurrentZone(E.value,p),t._redefineProperty(u.prototype,l,E)):f[l]&&(f[l]=t.wrapWithCurrentZone(f[l],p))}else f[l]&&(f[l]=t.wrapWithCurrentZone(f[l],p))}catch{}}),o.call(e,a,u,c)},t.attachOriginToPatched(e[r],o)}function v$(t){t.__load_patch("util",(e,n,r)=>{let s=im(e);r.patchOnProperties=yC,r.patchMethod=ir,r.bindArguments=pm,r.patchMacroTask=n$;let i=n.__symbol__("BLACK_LISTED_EVENTS"),o=n.__symbol__("UNPATCHED_EVENTS");e[o]&&(e[i]=e[o]),e[i]&&(n[i]=n[o]=e[i]),r.patchEventPrototype=a$,r.patchEventTarget=o$,r.isIEOrEdge=s$,r.ObjectDefineProperty=om,r.ObjectGetOwnPropertyDescriptor=ea,r.ObjectCreate=QF,r.ArraySlice=JF,r.patchClass=Ko,r.wrapWithCurrentZone=lm,r.filterProperties=AC,r.attachOriginToPatched=or,r._redefineProperty=Object.defineProperty,r.patchCallbacks=g$,r.getGlobalObjects=()=>({globalSources:xC,zoneSymbolEventNames:rn,eventNames:s,isBrowser:fm,isMix:wC,isNode:Lc,TRUE_STR:rr,FALSE_STR:sr,ZONE_SYMBOL_PREFIX:ta,ADD_EVENT_LISTENER_STR:um,REMOVE_EVENT_LISTENER_STR:cm})})}function E$(t){d$(t),m$(t),v$(t)}var _C=YF();E$(_C);f$(_C);