jest-preset-angular 14.2.4 → 14.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +1 -1
  3. package/build/compiler/ng-jest-compiler.d.ts +11 -0
  4. package/build/config/global-setup.d.ts +1 -0
  5. package/build/config/ng-jest-config.d.ts +9 -0
  6. package/build/constants.d.ts +7 -0
  7. package/build/index.d.ts +6 -0
  8. package/build/ng-jest-transformer.d.ts +9 -0
  9. package/build/presets/index.d.ts +39 -0
  10. package/build/resolvers/ng-jest-resolver.d.ts +3 -0
  11. package/build/serializers/html-comment.d.ts +5 -0
  12. package/build/serializers/index.d.ts +2 -0
  13. package/build/serializers/ng-snapshot.d.ts +11 -0
  14. package/build/serializers/no-ng-attributes.d.ts +5 -0
  15. package/build/transformers/esm_interop_inject.d.cts +1 -0
  16. package/build/transformers/jit_transform.js +41 -41
  17. package/build/transformers/replace-resources.d.ts +2 -0
  18. package/build/utils/ngcc-jest-processor.d.ts +1 -0
  19. package/package.json +26 -25
  20. package/setup-env/utils.mjs +19 -0
  21. package/setup-env/zone/index.d.mts +3 -0
  22. package/setup-env/zone/index.d.ts +6 -0
  23. package/setup-env/zone/index.js +43 -0
  24. package/setup-env/zone/index.mjs +18 -0
  25. package/setup-env/zoneless/index.d.mts +3 -0
  26. package/setup-env/zoneless/index.d.ts +6 -0
  27. package/setup-env/zoneless/index.js +11 -0
  28. package/setup-env/zoneless/index.mjs +39 -0
  29. package/setup-jest.js +10 -0
  30. package/setup-jest.mjs +12 -1
  31. package/jest-cjs.config.ts +0 -8
  32. package/jest-esm.config.ts +0 -8
  33. package/jest-src.config.ts +0 -18
  34. package/jest-transpile-cjs.config.ts +0 -8
  35. package/jest-transpile-esm.config.ts +0 -8
  36. package/tsconfig-base.spec.json +0 -7
@@ -1,15 +1,15 @@
1
- "use strict";var eE=Object.create;var Do=Object.defineProperty;var tE=Object.getOwnPropertyDescriptor;var nE=Object.getOwnPropertyNames;var rE=Object.getPrototypeOf,sE=Object.prototype.hasOwnProperty;var iE=(t,e)=>()=>(t&&(e=t(t=0)),e);var G=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),oE=(t,e)=>{for(var n in e)Do(t,n,{get:e[n],enumerable:!0})},Jp=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of nE(e))!sE.call(t,s)&&s!==n&&Do(t,s,{get:()=>e[s],enumerable:!(r=tE(e,s))||r.enumerable});return t};var x=(t,e,n)=>(n=t!=null?eE(rE(t)):{},Jp(e||!t||!t.__esModule?Do(n,"default",{value:t,enumerable:!0}):n,t)),aE=t=>Jp(Do({},"__esModule",{value:!0}),t);var R,w=iE(()=>{"use strict";R=require("url").pathToFileURL(__filename)});var To=G((x2,zg)=>{w();var d_="2.0.0",m_=Number.MAX_SAFE_INTEGER||9007199254740991,g_=16,y_=250,v_=["major","premajor","minor","preminor","patch","prepatch","prerelease"];zg.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:g_,MAX_SAFE_BUILD_LENGTH:y_,MAX_SAFE_INTEGER:m_,RELEASE_TYPES:v_,SEMVER_SPEC_VERSION:d_,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var xo=G((I2,Xg)=>{w();var E_=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Xg.exports=E_});var ni=G((Xn,Yg)=>{w();var{MAX_SAFE_COMPONENT_LENGTH:wp,MAX_SAFE_BUILD_LENGTH:S_,MAX_LENGTH:w_}=To(),T_=xo();Xn=Yg.exports={};var x_=Xn.re=[],C_=Xn.safeRe=[],k=Xn.src=[],P=Xn.t={},I_=0,Tp="[a-zA-Z0-9-]",A_=[["\\s",1],["\\d",w_],[Tp,S_]],N_=t=>{for(let[e,n]of A_)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},X=(t,e,n)=>{let r=N_(e),s=I_++;T_(t,s,e),P[t]=s,k[s]=e,x_[s]=new RegExp(e,n?"g":void 0),C_[s]=new RegExp(r,n?"g":void 0)};X("NUMERICIDENTIFIER","0|[1-9]\\d*");X("NUMERICIDENTIFIERLOOSE","\\d+");X("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Tp}*`);X("MAINVERSION",`(${k[P.NUMERICIDENTIFIER]})\\.(${k[P.NUMERICIDENTIFIER]})\\.(${k[P.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${k[P.NUMERICIDENTIFIERLOOSE]})\\.(${k[P.NUMERICIDENTIFIERLOOSE]})\\.(${k[P.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${k[P.NUMERICIDENTIFIER]}|${k[P.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${k[P.NUMERICIDENTIFIERLOOSE]}|${k[P.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${k[P.PRERELEASEIDENTIFIER]}(?:\\.${k[P.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${k[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${k[P.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER",`${Tp}+`);X("BUILD",`(?:\\+(${k[P.BUILDIDENTIFIER]}(?:\\.${k[P.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${k[P.MAINVERSION]}${k[P.PRERELEASE]}?${k[P.BUILD]}?`);X("FULL",`^${k[P.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${k[P.MAINVERSIONLOOSE]}${k[P.PRERELEASELOOSE]}?${k[P.BUILD]}?`);X("LOOSE",`^${k[P.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${k[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${k[P.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${k[P.XRANGEIDENTIFIER]})(?:\\.(${k[P.XRANGEIDENTIFIER]})(?:\\.(${k[P.XRANGEIDENTIFIER]})(?:${k[P.PRERELEASE]})?${k[P.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${k[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${k[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${k[P.XRANGEIDENTIFIERLOOSE]})(?:${k[P.PRERELEASELOOSE]})?${k[P.BUILD]}?)?)?`);X("XRANGE",`^${k[P.GTLT]}\\s*${k[P.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${k[P.GTLT]}\\s*${k[P.XRANGEPLAINLOOSE]}$`);X("COERCEPLAIN",`(^|[^\\d])(\\d{1,${wp}})(?:\\.(\\d{1,${wp}}))?(?:\\.(\\d{1,${wp}}))?`);X("COERCE",`${k[P.COERCEPLAIN]}(?:$|[^\\d])`);X("COERCEFULL",k[P.COERCEPLAIN]+`(?:${k[P.PRERELEASE]})?(?:${k[P.BUILD]})?(?:$|[^\\d])`);X("COERCERTL",k[P.COERCE],!0);X("COERCERTLFULL",k[P.COERCEFULL],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${k[P.LONETILDE]}\\s+`,!0);Xn.tildeTrimReplace="$1~";X("TILDE",`^${k[P.LONETILDE]}${k[P.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${k[P.LONETILDE]}${k[P.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${k[P.LONECARET]}\\s+`,!0);Xn.caretTrimReplace="$1^";X("CARET",`^${k[P.LONECARET]}${k[P.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${k[P.LONECARET]}${k[P.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${k[P.GTLT]}\\s*(${k[P.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${k[P.GTLT]}\\s*(${k[P.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${k[P.GTLT]}\\s*(${k[P.LOOSEPLAIN]}|${k[P.XRANGEPLAIN]})`,!0);Xn.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${k[P.XRANGEPLAIN]})\\s+-\\s+(${k[P.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${k[P.XRANGEPLAINLOOSE]})\\s+-\\s+(${k[P.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var rl=G((b2,Qg)=>{w();var b_=Object.freeze({loose:!0}),D_=Object.freeze({}),__=t=>t?typeof t!="object"?b_:t:D_;Qg.exports=__});var xp=G((_2,ey)=>{w();var Jg=/^[0-9]+$/,Zg=(t,e)=>{let n=Jg.test(t),r=Jg.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t<e?-1:1},R_=(t,e)=>Zg(e,t);ey.exports={compareIdentifiers:Zg,rcompareIdentifiers:R_}});var nt=G((k2,sy)=>{w();var sl=xo(),{MAX_LENGTH:ty,MAX_SAFE_INTEGER:il}=To(),{safeRe:ny,t:ry}=ni(),k_=rl(),{compareIdentifiers:ri}=xp(),Cp=class t{constructor(e,n){if(n=k_(n),e instanceof t){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ty)throw new TypeError(`version is longer than ${ty} characters`);sl("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=e.trim().match(n.loose?ny[ry.LOOSE]:ny[ry.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>il||this.major<0)throw new TypeError("Invalid major version");if(this.minor>il||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>il||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<il)return i}return s}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(sl("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),ri(this.major,e.major)||ri(this.minor,e.minor)||ri(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let r=this.prerelease[n],s=e.prerelease[n];if(sl("prerelease compare",n,r,s),r===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(r===void 0)return-1;if(r===s)continue;return ri(r,s)}while(++n)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let n=0;do{let r=this.build[n],s=e.build[n];if(sl("build compare",n,r,s),r===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(r===void 0)return-1;if(r===s)continue;return ri(r,s)}while(++n)}inc(e,n,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(r)?1:0;if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(n){let i=[n,s];r===!1&&(i=[n]),ri(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};sy.exports=Cp});var as=G((M2,oy)=>{w();var iy=nt(),P_=(t,e,n=!1)=>{if(t instanceof iy)return t;try{return new iy(t,e)}catch(r){if(!n)return null;throw r}};oy.exports=P_});var ly=G((O2,ay)=>{w();var M_=as(),L_=(t,e)=>{let n=M_(t,e);return n?n.version:null};ay.exports=L_});var uy=G((B2,cy)=>{w();var O_=as(),F_=(t,e)=>{let n=O_(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};cy.exports=F_});var fy=G((U2,hy)=>{w();var py=nt(),B_=(t,e,n,r,s)=>{typeof n=="string"&&(s=r,r=n,n=void 0);try{return new py(t instanceof py?t.version:t,n).inc(e,r,s).version}catch{return null}};hy.exports=B_});var gy=G((q2,my)=>{w();var dy=as(),$_=(t,e)=>{let n=dy(t,null,!0),r=dy(e,null,!0),s=n.compare(r);if(s===0)return null;let i=s>0,o=i?n:r,a=i?r:n,l=!!o.prerelease.length;if(!!a.prerelease.length&&!l)return!a.patch&&!a.minor?"major":o.patch?"patch":o.minor?"minor":"major";let u=l?"pre":"";return n.major!==r.major?u+"major":n.minor!==r.minor?u+"minor":n.patch!==r.patch?u+"patch":"prerelease"};my.exports=$_});var vy=G((H2,yy)=>{w();var U_=nt(),V_=(t,e)=>new U_(t,e).major;yy.exports=V_});var Sy=G((j2,Ey)=>{w();var q_=nt(),G_=(t,e)=>new q_(t,e).minor;Ey.exports=G_});var Ty=G((z2,wy)=>{w();var H_=nt(),W_=(t,e)=>new H_(t,e).patch;wy.exports=W_});var Cy=G((Y2,xy)=>{w();var j_=as(),K_=(t,e)=>{let n=j_(t,e);return n&&n.prerelease.length?n.prerelease:null};xy.exports=K_});var Wt=G((J2,Ay)=>{w();var Iy=nt(),z_=(t,e,n)=>new Iy(t,n).compare(new Iy(e,n));Ay.exports=z_});var by=G((eF,Ny)=>{w();var X_=Wt(),Y_=(t,e,n)=>X_(e,t,n);Ny.exports=Y_});var _y=G((nF,Dy)=>{w();var Q_=Wt(),J_=(t,e)=>Q_(t,e,!0);Dy.exports=J_});var ol=G((sF,ky)=>{w();var Ry=nt(),Z_=(t,e,n)=>{let r=new Ry(t,n),s=new Ry(e,n);return r.compare(s)||r.compareBuild(s)};ky.exports=Z_});var My=G((oF,Py)=>{w();var eR=ol(),tR=(t,e)=>t.sort((n,r)=>eR(n,r,e));Py.exports=tR});var Oy=G((lF,Ly)=>{w();var nR=ol(),rR=(t,e)=>t.sort((n,r)=>nR(r,n,e));Ly.exports=rR});var Co=G((uF,Fy)=>{w();var sR=Wt(),iR=(t,e,n)=>sR(t,e,n)>0;Fy.exports=iR});var al=G((hF,By)=>{w();var oR=Wt(),aR=(t,e,n)=>oR(t,e,n)<0;By.exports=aR});var Ip=G((dF,$y)=>{w();var lR=Wt(),cR=(t,e,n)=>lR(t,e,n)===0;$y.exports=cR});var Ap=G((gF,Uy)=>{w();var uR=Wt(),pR=(t,e,n)=>uR(t,e,n)!==0;Uy.exports=pR});var ll=G((vF,Vy)=>{w();var hR=Wt(),fR=(t,e,n)=>hR(t,e,n)>=0;Vy.exports=fR});var cl=G((SF,qy)=>{w();var dR=Wt(),mR=(t,e,n)=>dR(t,e,n)<=0;qy.exports=mR});var Np=G((TF,Gy)=>{w();var gR=Ip(),yR=Ap(),vR=Co(),ER=ll(),SR=al(),wR=cl(),TR=(t,e,n,r)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return gR(t,n,r);case"!=":return yR(t,n,r);case">":return vR(t,n,r);case">=":return ER(t,n,r);case"<":return SR(t,n,r);case"<=":return wR(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};Gy.exports=TR});var Wy=G((CF,Hy)=>{w();var xR=nt(),CR=as(),{safeRe:ul,t:pl}=ni(),IR=(t,e)=>{if(t instanceof xR)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(e.includePrerelease?ul[pl.COERCEFULL]:ul[pl.COERCE]);else{let l=e.includePrerelease?ul[pl.COERCERTLFULL]:ul[pl.COERCERTL],c;for(;(c=l.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||c.index+c[0].length!==n.index+n[0].length)&&(n=c),l.lastIndex=c.index+c[1].length+c[2].length;l.lastIndex=-1}if(n===null)return null;let r=n[2],s=n[3]||"0",i=n[4]||"0",o=e.includePrerelease&&n[5]?`-${n[5]}`:"",a=e.includePrerelease&&n[6]?`+${n[6]}`:"";return CR(`${r}.${s}.${i}${o}${a}`,e)};Hy.exports=IR});var Ky=G((AF,jy)=>{w();var bp=class{constructor(){this.max=1e3,this.map=new Map}get(e){let n=this.map.get(e);if(n!==void 0)return this.map.delete(e),this.map.set(e,n),n}delete(e){return this.map.delete(e)}set(e,n){if(!this.delete(e)&&n!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,n)}return this}};jy.exports=bp});var jt=G((bF,Qy)=>{w();var AR=/\s+/g,Dp=class t{constructor(e,n){if(n=bR(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof _p)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().replace(AR," "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(s=>!Xy(s[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&LR(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let n=this.set[e];for(let r=0;r<n.length;r++)r>0&&(this.formatted+=" "),this.formatted+=n[r].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let r=((this.options.includePrerelease&&PR)|(this.options.loose&&MR))+":"+e,s=zy.get(r);if(s)return s;let i=this.options.loose,o=i?xt[ht.HYPHENRANGELOOSE]:xt[ht.HYPHENRANGE];e=e.replace(o,WR(this.options.includePrerelease)),ve("hyphen replace",e),e=e.replace(xt[ht.COMPARATORTRIM],_R),ve("comparator trim",e),e=e.replace(xt[ht.TILDETRIM],RR),ve("tilde trim",e),e=e.replace(xt[ht.CARETTRIM],kR),ve("caret trim",e);let a=e.split(" ").map(h=>OR(h,this.options)).join(" ").split(/\s+/).map(h=>HR(h,this.options));i&&(a=a.filter(h=>(ve("loose invalid filter",h,this.options),!!h.match(xt[ht.COMPARATORLOOSE])))),ve("range list",a);let l=new Map,c=a.map(h=>new _p(h,this.options));for(let h of c){if(Xy(h))return[h];l.set(h.value,h)}l.size>1&&l.has("")&&l.delete("");let u=[...l.values()];return zy.set(r,u),u}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(r=>Yy(r,n)&&e.set.some(s=>Yy(s,n)&&r.every(i=>s.every(o=>i.intersects(o,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new DR(e,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(jR(this.set[n],e,this.options))return!0;return!1}};Qy.exports=Dp;var NR=Ky(),zy=new NR,bR=rl(),_p=Io(),ve=xo(),DR=nt(),{safeRe:xt,t:ht,comparatorTrimReplace:_R,tildeTrimReplace:RR,caretTrimReplace:kR}=ni(),{FLAG_INCLUDE_PRERELEASE:PR,FLAG_LOOSE:MR}=To(),Xy=t=>t.value==="<0.0.0-0",LR=t=>t.value==="",Yy=(t,e)=>{let n=!0,r=t.slice(),s=r.pop();for(;n&&r.length;)n=r.every(i=>s.intersects(i,e)),s=r.pop();return n},OR=(t,e)=>(ve("comp",t,e),t=$R(t,e),ve("caret",t),t=FR(t,e),ve("tildes",t),t=VR(t,e),ve("xrange",t),t=GR(t,e),ve("stars",t),t),ft=t=>!t||t.toLowerCase()==="x"||t==="*",FR=(t,e)=>t.trim().split(/\s+/).map(n=>BR(n,e)).join(" "),BR=(t,e)=>{let n=e.loose?xt[ht.TILDELOOSE]:xt[ht.TILDE];return t.replace(n,(r,s,i,o,a)=>{ve("tilde",t,r,s,i,o,a);let l;return ft(s)?l="":ft(i)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:ft(o)?l=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:a?(ve("replaceTilde pr",a),l=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`):l=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,ve("tilde return",l),l})},$R=(t,e)=>t.trim().split(/\s+/).map(n=>UR(n,e)).join(" "),UR=(t,e)=>{ve("caret",t,e);let n=e.loose?xt[ht.CARETLOOSE]:xt[ht.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(s,i,o,a,l)=>{ve("caret",t,s,i,o,a,l);let c;return ft(i)?c="":ft(o)?c=`>=${i}.0.0${r} <${+i+1}.0.0-0`:ft(a)?i==="0"?c=`>=${i}.${o}.0${r} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.0${r} <${+i+1}.0.0-0`:l?(ve("replaceCaret pr",l),i==="0"?o==="0"?c=`>=${i}.${o}.${a}-${l} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}-${l} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a}-${l} <${+i+1}.0.0-0`):(ve("no pr"),i==="0"?o==="0"?c=`>=${i}.${o}.${a}${r} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}${r} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),ve("caret return",c),c})},VR=(t,e)=>(ve("replaceXRanges",t,e),t.split(/\s+/).map(n=>qR(n,e)).join(" ")),qR=(t,e)=>{t=t.trim();let n=e.loose?xt[ht.XRANGELOOSE]:xt[ht.XRANGE];return t.replace(n,(r,s,i,o,a,l)=>{ve("xRange",t,r,s,i,o,a,l);let c=ft(i),u=c||ft(o),h=u||ft(a),f=h;return s==="="&&f&&(s=""),l=e.includePrerelease?"-0":"",c?s===">"||s==="<"?r="<0.0.0-0":r="*":s&&f?(u&&(o=0),a=0,s===">"?(s=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",u?i=+i+1:o=+o+1),s==="<"&&(l="-0"),r=`${s+i}.${o}.${a}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:h&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),ve("xRange return",r),r})},GR=(t,e)=>(ve("replaceStars",t,e),t.trim().replace(xt[ht.STAR],"")),HR=(t,e)=>(ve("replaceGTE0",t,e),t.trim().replace(xt[e.includePrerelease?ht.GTE0PRE:ht.GTE0],"")),WR=t=>(e,n,r,s,i,o,a,l,c,u,h,f)=>(ft(r)?n="":ft(s)?n=`>=${r}.0.0${t?"-0":""}`:ft(i)?n=`>=${r}.${s}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,ft(c)?l="":ft(u)?l=`<${+c+1}.0.0-0`:ft(h)?l=`<${c}.${+u+1}.0-0`:f?l=`<=${c}.${u}.${h}-${f}`:t?l=`<${c}.${u}.${+h+1}-0`:l=`<=${l}`,`${n} ${l}`.trim()),jR=(t,e,n)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let r=0;r<t.length;r++)if(ve(t[r].semver),t[r].semver!==_p.ANY&&t[r].semver.prerelease.length>0){let s=t[r].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Io=G((_F,rv)=>{w();var Ao=Symbol("SemVer ANY"),Pp=class t{static get ANY(){return Ao}constructor(e,n){if(n=Jy(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),kp("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===Ao?this.value="":this.value=this.operator+this.semver.version,kp("comp",this)}parse(e){let n=this.options.loose?Zy[ev.COMPARATORLOOSE]:Zy[ev.COMPARATOR],r=e.match(n);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new tv(r[2],this.options.loose):this.semver=Ao}toString(){return this.value}test(e){if(kp("Comparator.test",e,this.options.loose),this.semver===Ao||e===Ao)return!0;if(typeof e=="string")try{e=new tv(e,this.options)}catch{return!1}return Rp(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new nv(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new nv(this.value,n).test(e.semver):(n=Jy(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Rp(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Rp(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};rv.exports=Pp;var Jy=rl(),{safeRe:Zy,t:ev}=ni(),Rp=Np(),kp=xo(),tv=nt(),nv=jt()});var No=G((kF,sv)=>{w();var KR=jt(),zR=(t,e,n)=>{try{e=new KR(e,n)}catch{return!1}return e.test(t)};sv.exports=zR});var ov=G((MF,iv)=>{w();var XR=jt(),YR=(t,e)=>new XR(t,e).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));iv.exports=YR});var lv=G((OF,av)=>{w();var QR=nt(),JR=jt(),ZR=(t,e,n)=>{let r=null,s=null,i=null;try{i=new JR(e,n)}catch{return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===-1)&&(r=o,s=new QR(r,n))}),r};av.exports=ZR});var uv=G((BF,cv)=>{w();var ek=nt(),tk=jt(),nk=(t,e,n)=>{let r=null,s=null,i=null;try{i=new tk(e,n)}catch{return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===1)&&(r=o,s=new ek(r,n))}),r};cv.exports=nk});var fv=G((UF,hv)=>{w();var Mp=nt(),rk=jt(),pv=Co(),sk=(t,e)=>{t=new rk(t,e);let n=new Mp("0.0.0");if(t.test(n)||(n=new Mp("0.0.0-0"),t.test(n)))return n;n=null;for(let r=0;r<t.set.length;++r){let s=t.set[r],i=null;s.forEach(o=>{let a=new Mp(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||pv(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!n||pv(n,i))&&(n=i)}return n&&t.test(n)?n:null};hv.exports=sk});var mv=G((qF,dv)=>{w();var ik=jt(),ok=(t,e)=>{try{return new ik(t,e).range||"*"}catch{return null}};dv.exports=ok});var hl=G((HF,Ev)=>{w();var ak=nt(),vv=Io(),{ANY:lk}=vv,ck=jt(),uk=No(),gv=Co(),yv=al(),pk=cl(),hk=ll(),fk=(t,e,n,r)=>{t=new ak(t,r),e=new ck(e,r);let s,i,o,a,l;switch(n){case">":s=gv,i=pk,o=yv,a=">",l=">=";break;case"<":s=yv,i=hk,o=gv,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(uk(t,e,r))return!1;for(let c=0;c<e.set.length;++c){let u=e.set[c],h=null,f=null;if(u.forEach(m=>{m.semver===lk&&(m=new vv(">=0.0.0")),h=h||m,f=f||m,s(m.semver,h.semver,r)?h=m:o(m.semver,f.semver,r)&&(f=m)}),h.operator===a||h.operator===l||(!f.operator||f.operator===a)&&i(t,f.semver))return!1;if(f.operator===l&&o(t,f.semver))return!1}return!0};Ev.exports=fk});var wv=G((jF,Sv)=>{w();var dk=hl(),mk=(t,e,n)=>dk(t,e,">",n);Sv.exports=mk});var xv=G((zF,Tv)=>{w();var gk=hl(),yk=(t,e,n)=>gk(t,e,"<",n);Tv.exports=yk});var Av=G((YF,Iv)=>{w();var Cv=jt(),vk=(t,e,n)=>(t=new Cv(t,n),e=new Cv(e,n),t.intersects(e,n));Iv.exports=vk});var bv=G((JF,Nv)=>{w();var Ek=No(),Sk=Wt();Nv.exports=(t,e,n)=>{let r=[],s=null,i=null,o=t.sort((u,h)=>Sk(u,h,n));for(let u of o)Ek(u,e,n)?(i=u,s||(s=u)):(i&&r.push([s,i]),i=null,s=null);s&&r.push([s,null]);let a=[];for(let[u,h]of r)u===h?a.push(u):!h&&u===o[0]?a.push("*"):h?u===o[0]?a.push(`<=${h}`):a.push(`${u} - ${h}`):a.push(`>=${u}`);let l=a.join(" || "),c=typeof e.raw=="string"?e.raw:String(e);return l.length<c.length?l:e}});var Mv=G((e1,Pv)=>{w();var Dv=jt(),Op=Io(),{ANY:Lp}=Op,bo=No(),Fp=Wt(),wk=(t,e,n={})=>{if(t===e)return!0;t=new Dv(t,n),e=new Dv(e,n);let r=!1;e:for(let s of t.set){for(let i of e.set){let o=xk(s,i,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},Tk=[new Op(">=0.0.0-0")],_v=[new Op(">=0.0.0")],xk=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Lp){if(e.length===1&&e[0].semver===Lp)return!0;n.includePrerelease?t=Tk:t=_v}if(e.length===1&&e[0].semver===Lp){if(n.includePrerelease)return!0;e=_v}let r=new Set,s,i;for(let m of t)m.operator===">"||m.operator===">="?s=Rv(s,m,n):m.operator==="<"||m.operator==="<="?i=kv(i,m,n):r.add(m.semver);if(r.size>1)return null;let o;if(s&&i){if(o=Fp(s.semver,i.semver,n),o>0)return null;if(o===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let m of r){if(s&&!bo(m,String(s),n)||i&&!bo(m,String(i),n))return null;for(let E of e)if(!bo(m,String(E),n))return!1;return!0}let a,l,c,u,h=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,f=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;h&&h.prerelease.length===1&&i.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let m of e){if(u=u||m.operator===">"||m.operator===">=",c=c||m.operator==="<"||m.operator==="<=",s){if(f&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===f.major&&m.semver.minor===f.minor&&m.semver.patch===f.patch&&(f=!1),m.operator===">"||m.operator===">="){if(a=Rv(s,m,n),a===m&&a!==s)return!1}else if(s.operator===">="&&!bo(s.semver,String(m),n))return!1}if(i){if(h&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===h.major&&m.semver.minor===h.minor&&m.semver.patch===h.patch&&(h=!1),m.operator==="<"||m.operator==="<="){if(l=kv(i,m,n),l===m&&l!==i)return!1}else if(i.operator==="<="&&!bo(i.semver,String(m),n))return!1}if(!m.operator&&(i||s)&&o!==0)return!1}return!(s&&c&&!i&&o!==0||i&&u&&!s&&o!==0||f||h)},Rv=(t,e,n)=>{if(!t)return e;let r=Fp(t.semver,e.semver,n);return r>0?t:r<0||e.operator===">"&&t.operator===">="?e:t},kv=(t,e,n)=>{if(!t)return e;let r=Fp(t.semver,e.semver,n);return r<0?t:r>0||e.operator==="<"&&t.operator==="<="?e:t};Pv.exports=wk});var Bv=G((n1,Fv)=>{w();var Bp=ni(),Lv=To(),Ck=nt(),Ov=xp(),Ik=as(),Ak=ly(),Nk=uy(),bk=fy(),Dk=gy(),_k=vy(),Rk=Sy(),kk=Ty(),Pk=Cy(),Mk=Wt(),Lk=by(),Ok=_y(),Fk=ol(),Bk=My(),$k=Oy(),Uk=Co(),Vk=al(),qk=Ip(),Gk=Ap(),Hk=ll(),Wk=cl(),jk=Np(),Kk=Wy(),zk=Io(),Xk=jt(),Yk=No(),Qk=ov(),Jk=lv(),Zk=uv(),eP=fv(),tP=mv(),nP=hl(),rP=wv(),sP=xv(),iP=Av(),oP=bv(),aP=Mv();Fv.exports={parse:Ik,valid:Ak,clean:Nk,inc:bk,diff:Dk,major:_k,minor:Rk,patch:kk,prerelease:Pk,compare:Mk,rcompare:Lk,compareLoose:Ok,compareBuild:Fk,sort:Bk,rsort:$k,gt:Uk,lt:Vk,eq:qk,neq:Gk,gte:Hk,lte:Wk,cmp:jk,coerce:Kk,Comparator:zk,Range:Xk,satisfies:Yk,toComparators:Qk,maxSatisfying:Jk,minSatisfying:Zk,minVersion:eP,validRange:tP,outside:nP,gtr:rP,ltr:sP,intersects:iP,simplifyRange:oP,subset:aP,SemVer:Ck,re:Bp.re,src:Bp.src,tokens:Bp.t,SEMVER_SPEC_VERSION:Lv.SEMVER_SPEC_VERSION,RELEASE_TYPES:Lv.RELEASE_TYPES,compareIdentifiers:Ov.compareIdentifiers,rcompareIdentifiers:Ov.rcompareIdentifiers}});var mM={};oE(mM,{angularJitApplicationTransform:()=>wo});module.exports=aE(mM);w();w();var Jv=require("module");w();var jg=require("module");w();var Bg=require("module");w();var Tg=require("module");w();var Qm=require("module");w();var th=require("module");w();var Zp=require("module"),ls=(0,Zp.createRequire)(R),eh=(t=>typeof ls<"u"?ls:typeof Proxy<"u"?new Proxy(t,{get:(e,n)=>(typeof ls<"u"?ls:e)[n]}):t)(function(t){if(typeof ls<"u")return ls.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var uE=x(require("typescript"),1),Je=x(require("fs"),1),rh=require("module"),dt=x(require("path"),1),sh=require("url"),SM=(0,th.createRequire)(R);var lE=class{exists(t){throw ue()}readFile(t){throw ue()}readFileBuffer(t){throw ue()}writeFile(t,e,n){throw ue()}removeFile(t){throw ue()}symlink(t,e){throw ue()}readdir(t){throw ue()}lstat(t){throw ue()}stat(t){throw ue()}pwd(){throw ue()}chdir(t){throw ue()}extname(t){throw ue()}copyFile(t,e){throw ue()}moveFile(t,e){throw ue()}ensureDir(t){throw ue()}removeDeep(t){throw ue()}isCaseSensitive(){throw ue()}resolve(...t){throw ue()}dirname(t){throw ue()}join(t,...e){throw ue()}isRoot(t){throw ue()}isRooted(t){throw ue()}relative(t,e){throw ue()}basename(t,e){throw ue()}realpath(t){throw ue()}getDefaultLibLocation(){throw ue()}normalize(t){throw ue()}};function ue(){return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.")}var cE=new lE;function nh(t){cE=t}var TM=Symbol("AbsolutePath");var pE=class{pwd(){return this.normalize(process.cwd())}chdir(t){process.chdir(t)}resolve(...t){return this.normalize(dt.resolve(...t))}dirname(t){return this.normalize(dt.dirname(t))}join(t,...e){return this.normalize(dt.join(t,...e))}isRoot(t){return this.dirname(t)===this.normalize(t)}isRooted(t){return dt.isAbsolute(t)}relative(t,e){return this.normalize(dt.relative(t,e))}basename(t,e){return dt.basename(t,e)}extname(t){return dt.extname(t)}normalize(t){return t.replace(/\\/g,"/")}},fl=typeof __filename<"u",ih=fl?null:R,hE=fl?__filename:(0,sh.fileURLToPath)(ih),fE=class extends pE{constructor(){super(...arguments),this._caseSensitive=void 0}isCaseSensitive(){return this._caseSensitive===void 0&&(this._caseSensitive=!Je.default.existsSync(this.normalize(dE(hE)))),this._caseSensitive}exists(t){return Je.default.existsSync(t)}readFile(t){return Je.default.readFileSync(t,"utf8")}readFileBuffer(t){return Je.default.readFileSync(t)}readdir(t){return Je.default.readdirSync(t)}lstat(t){return Je.default.lstatSync(t)}stat(t){return Je.default.statSync(t)}realpath(t){return this.resolve(Je.default.realpathSync(t))}getDefaultLibLocation(){let t=fl?eh:(0,rh.createRequire)(ih);return this.resolve(t.resolve("typescript"),"..")}},oh=class extends fE{writeFile(t,e,n=!1){Je.default.writeFileSync(t,e,n?{flag:"wx"}:void 0)}removeFile(t){Je.default.unlinkSync(t)}symlink(t,e){Je.default.symlinkSync(t,e)}copyFile(t,e){Je.default.copyFileSync(t,e)}moveFile(t,e){Je.default.renameSync(t,e)}ensureDir(t){Je.default.mkdirSync(t,{recursive:!0})}removeDeep(t){Je.default.rmdirSync(t,{recursive:!0})}};function dE(t){return t.replace(/\w/g,e=>e.toUpperCase()===e?e.toLowerCase():e.toUpperCase())}var Zs=x(require("typescript"),1),M=x(require("typescript"),1),uo=x(require("typescript"),1),De=x(require("typescript"),1),ju=x(require("typescript"),1),Zm=x(require("typescript"),1);w();var ah=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),Qt=class t{constructor(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}static parse(e){let n=[],r=(l,c)=>{c.notSelectors.length>0&&!c.element&&c.classNames.length==0&&c.attrs.length==0&&(c.element="*"),l.push(c)},s=new t,i,o=s,a=!1;for(ah.lastIndex=0;i=ah.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 l=i[2];if(l){let u=i[3];u==="#"?o.addAttribute("id",l.slice(1)):u==="."?o.addClassName(l.slice(1)):o.setElement(l)}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}},ir=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 Fl(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,l=new Bl(e,n,r);if(i&&(a.length===0&&o.length===0?this._addTerminal(s._elementMap,i,l):s=this._addPartial(s._elementPartialMap,i)),o)for(let c=0;c<o.length;c++){let u=a.length===0&&c===o.length-1,h=o[c];u?this._addTerminal(s._classMap,h,l):s=this._addPartial(s._classPartialMap,h)}if(a)for(let c=0;c<a.length;c+=2){let u=c===a.length-2,h=a[c],f=a[c+1];if(u){let m=s._attrValueMap,E=m.get(h);E||(E=new Map,m.set(h,E)),this._addTerminal(E,f,l)}else{let m=s._attrValuePartialMap,E=m.get(h);E||(E=new Map,m.set(h,E)),s=this._addPartial(E,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 l=i[a];r=this._matchTerminal(this._classMap,l,e,n)||r,r=this._matchPartial(this._classPartialMap,l,e,n)||r}if(o)for(let a=0;a<o.length;a+=2){let l=o[a],c=o[a+1],u=this._attrValueMap.get(l);c&&(r=this._matchTerminal(u,"",e,n)||r),r=this._matchTerminal(u,c,e,n)||r;let h=this._attrValuePartialMap.get(l);c&&(r=this._matchPartial(h,"",e,n)||r),r=this._matchPartial(h,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,l=!1;for(let c=0;c<i.length;c++)a=i[c],l=a.finalize(r,s)||l;return l}_matchPartial(e,n,r,s){if(!e||typeof n!="string")return!1;let i=e.get(n);return i?i.match(r,s):!1}},Fl=class{constructor(e){this.selectors=e,this.alreadyMatched=!1}},Bl=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=!ir.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 un;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(un||(un={}));var Bo;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(Bo||(Bo={}));var ys;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(ys||(ys={}));var $l={name:"custom-elements"},Ul={name:"no-errors-schema"};var ce;(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"})(ce||(ce={}));var lh;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(lh||(lh={}));function mE(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return[t.element&&t.element!=="*"?t.element:"",...t.attrs,...e]}function gE(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 yE(t){let e=mE(t),n=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(r=>gE(r)):[];return e.concat(...n)}function hu(t){return t?Qt.parse(t).map(yE):[]}var $o;function vE(t){return TE(wE(t.nodes).join("")+`[${t.meaning}]`)}function EE(t,e){return t.id||Zf(t,e)}function Zf(t,e){let n=new Vl(e),r=t.nodes.map(s=>s.visit(n,null));return ed(r.join(""),t.meaning)}var Uo=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}">`}},SE=new Uo;function wE(t){return t.map(e=>e.visit(SE,null))}var Vl=class extends Uo{constructor(e){super(),this.preservePlaceholders=e}visitPlaceholder(e,n){return this.preservePlaceholders?super.visitPlaceholder(e,n):`<ph name="${e.name}"/>`}visitIcu(e){let n=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.type}, ${n.join(", ")}}`}};function TE(t){$o??=new TextEncoder;let e=[...$o.encode(t)],n=IE(e,Vo.Big),r=e.length*8,s=new Uint32Array(80),i=1732584193,o=4023233417,a=2562383102,l=271733878,c=3285377520;n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(let u=0;u<n.length;u+=16){let h=i,f=o,m=a,E=l,S=c;for(let I=0;I<80;I++){I<16?s[I]=n[u+I]:s[I]=dl(s[I-3]^s[I-8]^s[I-14]^s[I-16],1);let N=xE(I,o,a,l),$=N[0],Te=N[1],le=[dl(i,5),$,c,Te,s[I]].reduce(cs);c=l,l=a,a=dl(o,30),o=i,i=le}i=cs(i,h),o=cs(o,f),a=cs(a,m),l=cs(l,E),c=cs(c,S)}return si(i)+si(o)+si(a)+si(l)+si(c)}function si(t){return(t>>>0).toString(16).padStart(8,"0")}function xE(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 ch(t){$o??=new TextEncoder;let e=$o.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=uh(n,e.length,0),s=uh(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 ed(t,e=""){let n=ch(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=ch(e)),BigInt.asUintN(63,n).toString()}function uh(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 l=ph(r,s,n);r=l[0],s=l[1],n=l[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)),ph(r,s,n)[2]}function ph(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 Vo;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(Vo||(Vo={}));function cs(t,e){return CE(t,e)[1]}function CE(t,e){let n=(t&65535)+(e&65535),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|n&65535]}function dl(t,e){return t<<e|t>>>32-e}function IE(t,e){let n=t.length+3>>>2,r=[];for(let s=0;s<n;s++)r[s]=AE(t,s*4,e);return r}function hh(t,e){return e>=t.length?0:t[e]}function AE(t,e,n){let r=0;if(n===Vo.Big)for(let s=0;s<4;s++)r+=hh(t,e+s)<<24-8*s;else for(let s=0;s<4;s++)r+=hh(t,e+s)<<8*s;return r}var Ei;(function(t){t[t.None=0]="None",t[t.Const=1]="Const"})(Ei||(Ei={}));var or=class{constructor(e=Ei.None){this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},qt;(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"})(qt||(qt={}));var Jt=class extends or{constructor(e,n){super(n),this.name=e}visitType(e,n){return e.visitBuiltinType(this,n)}},it=class extends or{constructor(e,n,r=null){super(n),this.value=e,this.typeParams=r}visitType(e,n){return e.visitExpressionType(this,n)}},ql=class extends or{constructor(e,n){super(n),this.of=e}visitType(e,n){return e.visitArrayType(this,n)}},Gl=class extends or{constructor(e,n){super(n),this.valueType=e||null}visitType(e,n){return e.visitMapType(this,n)}},As=class extends or{constructor(e,n){super(n),this.type=e}visitType(e,n){return e.visitTransplantedType(this,n)}},Er=new Jt(qt.Dynamic),At=new Jt(qt.Inferred),td=new Jt(qt.Bool),NE=new Jt(qt.Int),Fa=new Jt(qt.Number),fu=new Jt(qt.String),bE=new Jt(qt.Function),Zt=new Jt(qt.None),mn;(function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"})(mn||(mn={}));var A;(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"})(A||(A={}));function nd(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function rd(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 at(t,e){return rd(t,e,(n,r)=>n.isEquivalent(r))}var ne=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 gn(this,e,n,r)}callFn(e,n,r){return new ze(this,e,null,n,r)}instantiate(e,n,r){return new bs(this,e,n,r)}conditional(e,n=null,r){return new en(this,e,n,null,r)}equals(e,n){return new ee(A.Equals,this,e,null,n)}notEquals(e,n){return new ee(A.NotEquals,this,e,null,n)}identical(e,n){return new ee(A.Identical,this,e,null,n)}notIdentical(e,n){return new ee(A.NotIdentical,this,e,null,n)}minus(e,n){return new ee(A.Minus,this,e,null,n)}plus(e,n){return new ee(A.Plus,this,e,null,n)}divide(e,n){return new ee(A.Divide,this,e,null,n)}multiply(e,n){return new ee(A.Multiply,this,e,null,n)}modulo(e,n){return new ee(A.Modulo,this,e,null,n)}and(e,n){return new ee(A.And,this,e,null,n)}bitwiseOr(e,n,r=!0){return new ee(A.BitwiseOr,this,e,null,n,r)}bitwiseAnd(e,n,r=!0){return new ee(A.BitwiseAnd,this,e,null,n,r)}or(e,n){return new ee(A.Or,this,e,null,n)}lower(e,n){return new ee(A.Lower,this,e,null,n)}lowerEquals(e,n){return new ee(A.LowerEquals,this,e,null,n)}bigger(e,n){return new ee(A.Bigger,this,e,null,n)}biggerEquals(e,n){return new ee(A.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(sd,e)}nullishCoalesce(e,n){return new ee(A.NullishCoalesce,this,e,null,n)}toStmt(){return new bt(this,null)}},Nt=class t extends ne{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 Si(this.name,e,null,this.sourceSpan)}},Br=class t extends ne{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())}},U=class t extends ne{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)}},Si=class t extends ne{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 Xe(this.name,this.value,e,n,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(At,Re.Final)}},Ns=class t extends ne{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)}},$r=class t extends ne{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)}},ze=class t extends ne{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)&&at(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)}},wi=class t extends ne{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)&&rd(this.template.elements,e.template.elements,(n,r)=>n.text===r.text)&&at(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)}},bs=class t extends ne{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)&&at(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)}},Ce=class t extends ne{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)}},qo=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()))}},Go=class t{constructor(e,n,r){this.text=e,this.sourceSpan=n,this.rawText=r??n?.toString()??Hl(Oo(e))}clone(){return new t(this.text,this.sourceSpan,this.rawText)}},sr=class{constructor(e,n){this.text=e,this.sourceSpan=n}},Pr=class{constructor(e,n,r){this.text=e,this.sourceSpan=n,this.associatedMessage=r}},DE="|",fh="@@",_E="\u241F",Ti=class t extends ne{constructor(e,n,r,s,i){super(fu,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}${DE}${e}`),this.metaBlock.customId&&(e=`${e}${fh}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(n=>{e=`${e}${_E}${n}`}),dh(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+=`${fh}${ed(n.associatedMessage.messageString,n.associatedMessage.meaning)}`),dh(s,r.text,this.getMessagePartSourceSpan(e))}},Oo=t=>t.replace(/\\/g,"\\\\"),RE=t=>t.replace(/^:/,"\\:"),kE=t=>t.replace(/:/g,"\\:"),Hl=t=>t.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function dh(t,e,n){return t===""?{cooked:e,raw:Hl(RE(Oo(e))),range:n}:{cooked:`:${t}:${e}`,raw:Hl(`:${kE(Oo(t))}:${Oo(e)}`),range:n}}var qe=class t extends ne{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)}},Ho=class{constructor(e,n,r){this.moduleName=e,this.name=n,this.runtime=r}},en=class t extends ne{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)&&nd(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)}},Wl=class t extends ne{constructor(e,n){super(null,n),this.url=e}isEquivalent(e){return e instanceof t&&this.url===e.url}isConstant(){return!1}visitExpression(e,n){return e.visitDynamicImportExpr(this,n)}clone(){return new t(this.url,this.sourceSpan)}},Ds=class t extends ne{constructor(e,n){super(td,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)}},Fe=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)}},Yt=class t extends ne{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 Rs)&&at(this.params,e.params)&&at(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,n){return e.visitFunctionExpr(this,n)}toDeclStmt(e,n){return new Rs(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)}},Ln=class t extends ne{constructor(e,n,r,s){super(r,s),this.params=e,this.body=n}isEquivalent(e){return!(e instanceof t)||!at(this.params,e.params)?!1:this.body instanceof ne&&e.body instanceof ne?this.body.isEquivalent(e.body):Array.isArray(this.body)&&Array.isArray(e.body)?at(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 Xe(e,this,At,n,this.sourceSpan)}},ar=class t extends ne{constructor(e,n,r,s,i=!0){super(r||Fa,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)}},ee=class t extends ne{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 ne{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 $r(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},gn=class t extends ne{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 Ns(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},ct=class t extends ne{constructor(e,n,r){super(n,r),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof t&&at(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)}},Ur=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)}},Gt=class t extends ne{constructor(e,n,r){super(n,r),this.entries=e,this.valueType=null,n&&(this.valueType=n.valueType)}isEquivalent(e){return e instanceof t&&at(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)}},jl=class t extends ne{constructor(e,n){super(e[e.length-1].type,n),this.parts=e}isEquivalent(e){return e instanceof t&&at(this.parts,e.parts)}isConstant(){return!1}visitExpression(e,n){return e.visitCommaExpr(this,n)}clone(){return new t(this.parts.map(e=>e.clone()))}},_s=new Ce(null,null,null),sd=new Ce(null,At,null),Re;(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"})(Re||(Re={}));var xi=class{constructor(e,n,r){this.text=e,this.multiline=n,this.trailingNewline=r}toString(){return this.multiline?` ${this.text} `:this.text}},Ci=class extends xi{constructor(e){super("",!0,!0),this.tags=e}toString(){return BE(this.tags)}},lr=class{constructor(e=Re.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)}},Xe=class t extends lr{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)}},Rs=class t extends lr{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&&at(this.params,e.params)&&at(this.statements,e.statements)}visitStatement(e,n){return e.visitDeclareFunctionStmt(this,n)}},bt=class t extends lr{constructor(e,n,r){super(Re.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)}},et=class t extends lr{constructor(e,n=null,r){super(Re.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)}},Ii=class t extends lr{constructor(e,n,r=[],s,i){super(Re.None,s,i),this.condition=e,this.trueCase=n,this.falseCase=r}isEquivalent(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&at(this.trueCase,e.trueCase)&&at(this.falseCase,e.falseCase)}visitStatement(e,n){return e.visitIfStmt(this,n)}},Kl=class{visitType(e,n){return e}visitExpression(e,n){return e.type&&e.type.visitType(this,n),e}visitBuiltinType(e,n){return this.visitType(e,n)}visitExpressionType(e,n){return e.value.visitExpression(this,n),e.typeParams!==null&&e.typeParams.forEach(r=>this.visitType(r,n)),this.visitType(e,n)}visitArrayType(e,n){return this.visitType(e,n)}visitMapType(e,n){return this.visitType(e,n)}visitTransplantedType(e,n){return e}visitWrappedNodeExpr(e,n){return e}visitTypeofExpr(e,n){return this.visitExpression(e,n)}visitReadVarExpr(e,n){return this.visitExpression(e,n)}visitWriteVarExpr(e,n){return e.value.visitExpression(this,n),this.visitExpression(e,n)}visitWriteKeyExpr(e,n){return e.receiver.visitExpression(this,n),e.index.visitExpression(this,n),e.value.visitExpression(this,n),this.visitExpression(e,n)}visitWritePropExpr(e,n){return e.receiver.visitExpression(this,n),e.value.visitExpression(this,n),this.visitExpression(e,n)}visitDynamicImportExpr(e,n){return this.visitExpression(e,n)}visitInvokeFunctionExpr(e,n){return e.fn.visitExpression(this,n),this.visitAllExpressions(e.args,n),this.visitExpression(e,n)}visitTaggedTemplateExpr(e,n){return e.tag.visitExpression(this,n),this.visitAllExpressions(e.template.expressions,n),this.visitExpression(e,n)}visitInstantiateExpr(e,n){return e.classExpr.visitExpression(this,n),this.visitAllExpressions(e.args,n),this.visitExpression(e,n)}visitLiteralExpr(e,n){return this.visitExpression(e,n)}visitLocalizedString(e,n){return this.visitExpression(e,n)}visitExternalExpr(e,n){return e.typeParams&&e.typeParams.forEach(r=>r.visitType(this,n)),this.visitExpression(e,n)}visitConditionalExpr(e,n){return e.condition.visitExpression(this,n),e.trueCase.visitExpression(this,n),e.falseCase.visitExpression(this,n),this.visitExpression(e,n)}visitNotExpr(e,n){return e.condition.visitExpression(this,n),this.visitExpression(e,n)}visitFunctionExpr(e,n){return this.visitAllStatements(e.statements,n),this.visitExpression(e,n)}visitArrowFunctionExpr(e,n){return Array.isArray(e.body)?this.visitAllStatements(e.body,n):this.visitExpression(e.body,n),this.visitExpression(e,n)}visitUnaryOperatorExpr(e,n){return e.expr.visitExpression(this,n),this.visitExpression(e,n)}visitBinaryOperatorExpr(e,n){return e.lhs.visitExpression(this,n),e.rhs.visitExpression(this,n),this.visitExpression(e,n)}visitReadPropExpr(e,n){return e.receiver.visitExpression(this,n),this.visitExpression(e,n)}visitReadKeyExpr(e,n){return e.receiver.visitExpression(this,n),e.index.visitExpression(this,n),this.visitExpression(e,n)}visitLiteralArrayExpr(e,n){return this.visitAllExpressions(e.entries,n),this.visitExpression(e,n)}visitLiteralMapExpr(e,n){return e.entries.forEach(r=>r.value.visitExpression(this,n)),this.visitExpression(e,n)}visitCommaExpr(e,n){return this.visitAllExpressions(e.parts,n),this.visitExpression(e,n)}visitAllExpressions(e,n){e.forEach(r=>r.visitExpression(this,n))}visitDeclareVarStmt(e,n){return e.value&&e.value.visitExpression(this,n),e.type&&e.type.visitType(this,n),e}visitDeclareFunctionStmt(e,n){return this.visitAllStatements(e.statements,n),e.type&&e.type.visitType(this,n),e}visitExpressionStmt(e,n){return e.expr.visitExpression(this,n),e}visitReturnStmt(e,n){return e.value.visitExpression(this,n),e}visitIfStmt(e,n){return e.condition.visitExpression(this,n),this.visitAllStatements(e.trueCase,n),this.visitAllStatements(e.falseCase,n),e}visitAllStatements(e,n){e.forEach(r=>r.visitStatement(this,n))}};function PE(t,e=!1,n=!0){return new xi(t,e,n)}function id(t=[]){return new Ci(t)}function W(t,e,n){return new Nt(t,e,n)}function L(t,e=null,n){return new qe(t,null,e,n)}function ME(t,e,n){return t!=null?Be(L(t,e,null),n):null}function Be(t,e,n){return new it(t,e,n)}function LE(t,e){return new As(t,e)}function ro(t){return new Br(t)}function se(t,e,n){return new ct(t,e,n)}function Ye(t,e=null){return new Gt(t.map(n=>new Ur(n.key,n.value,n.quoted)),e,null)}function OE(t,e,n,r){return new ar(t,e,n,r)}function od(t,e){return new Ds(t,e)}function es(t,e,n,r,s){return new Yt(t,e,n,r,s)}function tn(t,e,n,r){return new Ln(t,e,n,r)}function so(t,e,n,r,s){return new Ii(t,e,n,r,s)}function ad(t,e,n,r){return new wi(t,e,n,r)}function y(t,e,n){return new Ce(t,e,n)}function ld(t,e,n,r,s){return new Ti(t,e,n,r,s)}function FE(t){return t instanceof Ce&&t.value===null}function mh(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 BE(t){if(t.length===0)return"";if(t.length===1&&t[0].tagName&&!t[0].text)return`*${mh(t[0])} `;let e=`*
1
+ "use strict";var eE=Object.create;var Do=Object.defineProperty;var tE=Object.getOwnPropertyDescriptor;var nE=Object.getOwnPropertyNames;var rE=Object.getPrototypeOf,sE=Object.prototype.hasOwnProperty;var iE=(t,e)=>()=>(t&&(e=t(t=0)),e);var G=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),oE=(t,e)=>{for(var n in e)Do(t,n,{get:e[n],enumerable:!0})},Jp=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of nE(e))!sE.call(t,s)&&s!==n&&Do(t,s,{get:()=>e[s],enumerable:!(r=tE(e,s))||r.enumerable});return t};var x=(t,e,n)=>(n=t!=null?eE(rE(t)):{},Jp(e||!t||!t.__esModule?Do(n,"default",{value:t,enumerable:!0}):n,t)),aE=t=>Jp(Do({},"__esModule",{value:!0}),t);var R,w=iE(()=>{"use strict";R=require("url").pathToFileURL(__filename)});var To=G((x2,zg)=>{w();var d_="2.0.0",m_=Number.MAX_SAFE_INTEGER||9007199254740991,g_=16,y_=250,v_=["major","premajor","minor","preminor","patch","prepatch","prerelease"];zg.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:g_,MAX_SAFE_BUILD_LENGTH:y_,MAX_SAFE_INTEGER:m_,RELEASE_TYPES:v_,SEMVER_SPEC_VERSION:d_,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var xo=G((I2,Xg)=>{w();var E_=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Xg.exports=E_});var ni=G((Xn,Yg)=>{w();var{MAX_SAFE_COMPONENT_LENGTH:wp,MAX_SAFE_BUILD_LENGTH:S_,MAX_LENGTH:w_}=To(),T_=xo();Xn=Yg.exports={};var x_=Xn.re=[],C_=Xn.safeRe=[],k=Xn.src=[],P=Xn.t={},I_=0,Tp="[a-zA-Z0-9-]",A_=[["\\s",1],["\\d",w_],[Tp,S_]],N_=t=>{for(let[e,n]of A_)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},X=(t,e,n)=>{let r=N_(e),s=I_++;T_(t,s,e),P[t]=s,k[s]=e,x_[s]=new RegExp(e,n?"g":void 0),C_[s]=new RegExp(r,n?"g":void 0)};X("NUMERICIDENTIFIER","0|[1-9]\\d*");X("NUMERICIDENTIFIERLOOSE","\\d+");X("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Tp}*`);X("MAINVERSION",`(${k[P.NUMERICIDENTIFIER]})\\.(${k[P.NUMERICIDENTIFIER]})\\.(${k[P.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${k[P.NUMERICIDENTIFIERLOOSE]})\\.(${k[P.NUMERICIDENTIFIERLOOSE]})\\.(${k[P.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${k[P.NUMERICIDENTIFIER]}|${k[P.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${k[P.NUMERICIDENTIFIERLOOSE]}|${k[P.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${k[P.PRERELEASEIDENTIFIER]}(?:\\.${k[P.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${k[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${k[P.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER",`${Tp}+`);X("BUILD",`(?:\\+(${k[P.BUILDIDENTIFIER]}(?:\\.${k[P.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${k[P.MAINVERSION]}${k[P.PRERELEASE]}?${k[P.BUILD]}?`);X("FULL",`^${k[P.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${k[P.MAINVERSIONLOOSE]}${k[P.PRERELEASELOOSE]}?${k[P.BUILD]}?`);X("LOOSE",`^${k[P.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${k[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${k[P.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${k[P.XRANGEIDENTIFIER]})(?:\\.(${k[P.XRANGEIDENTIFIER]})(?:\\.(${k[P.XRANGEIDENTIFIER]})(?:${k[P.PRERELEASE]})?${k[P.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${k[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${k[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${k[P.XRANGEIDENTIFIERLOOSE]})(?:${k[P.PRERELEASELOOSE]})?${k[P.BUILD]}?)?)?`);X("XRANGE",`^${k[P.GTLT]}\\s*${k[P.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${k[P.GTLT]}\\s*${k[P.XRANGEPLAINLOOSE]}$`);X("COERCEPLAIN",`(^|[^\\d])(\\d{1,${wp}})(?:\\.(\\d{1,${wp}}))?(?:\\.(\\d{1,${wp}}))?`);X("COERCE",`${k[P.COERCEPLAIN]}(?:$|[^\\d])`);X("COERCEFULL",k[P.COERCEPLAIN]+`(?:${k[P.PRERELEASE]})?(?:${k[P.BUILD]})?(?:$|[^\\d])`);X("COERCERTL",k[P.COERCE],!0);X("COERCERTLFULL",k[P.COERCEFULL],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${k[P.LONETILDE]}\\s+`,!0);Xn.tildeTrimReplace="$1~";X("TILDE",`^${k[P.LONETILDE]}${k[P.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${k[P.LONETILDE]}${k[P.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${k[P.LONECARET]}\\s+`,!0);Xn.caretTrimReplace="$1^";X("CARET",`^${k[P.LONECARET]}${k[P.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${k[P.LONECARET]}${k[P.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${k[P.GTLT]}\\s*(${k[P.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${k[P.GTLT]}\\s*(${k[P.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${k[P.GTLT]}\\s*(${k[P.LOOSEPLAIN]}|${k[P.XRANGEPLAIN]})`,!0);Xn.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${k[P.XRANGEPLAIN]})\\s+-\\s+(${k[P.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${k[P.XRANGEPLAINLOOSE]})\\s+-\\s+(${k[P.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var rl=G((b2,Qg)=>{w();var b_=Object.freeze({loose:!0}),D_=Object.freeze({}),__=t=>t?typeof t!="object"?b_:t:D_;Qg.exports=__});var xp=G((_2,ey)=>{w();var Jg=/^[0-9]+$/,Zg=(t,e)=>{let n=Jg.test(t),r=Jg.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t<e?-1:1},R_=(t,e)=>Zg(e,t);ey.exports={compareIdentifiers:Zg,rcompareIdentifiers:R_}});var nt=G((k2,sy)=>{w();var sl=xo(),{MAX_LENGTH:ty,MAX_SAFE_INTEGER:il}=To(),{safeRe:ny,t:ry}=ni(),k_=rl(),{compareIdentifiers:ri}=xp(),Cp=class t{constructor(e,n){if(n=k_(n),e instanceof t){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ty)throw new TypeError(`version is longer than ${ty} characters`);sl("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=e.trim().match(n.loose?ny[ry.LOOSE]:ny[ry.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>il||this.major<0)throw new TypeError("Invalid major version");if(this.minor>il||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>il||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<il)return i}return s}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(sl("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),ri(this.major,e.major)||ri(this.minor,e.minor)||ri(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let r=this.prerelease[n],s=e.prerelease[n];if(sl("prerelease compare",n,r,s),r===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(r===void 0)return-1;if(r===s)continue;return ri(r,s)}while(++n)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let n=0;do{let r=this.build[n],s=e.build[n];if(sl("build compare",n,r,s),r===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(r===void 0)return-1;if(r===s)continue;return ri(r,s)}while(++n)}inc(e,n,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(r)?1:0;if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(n){let i=[n,s];r===!1&&(i=[n]),ri(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};sy.exports=Cp});var ls=G((M2,oy)=>{w();var iy=nt(),P_=(t,e,n=!1)=>{if(t instanceof iy)return t;try{return new iy(t,e)}catch(r){if(!n)return null;throw r}};oy.exports=P_});var ly=G((O2,ay)=>{w();var M_=ls(),L_=(t,e)=>{let n=M_(t,e);return n?n.version:null};ay.exports=L_});var uy=G((B2,cy)=>{w();var O_=ls(),F_=(t,e)=>{let n=O_(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};cy.exports=F_});var fy=G((U2,hy)=>{w();var py=nt(),B_=(t,e,n,r,s)=>{typeof n=="string"&&(s=r,r=n,n=void 0);try{return new py(t instanceof py?t.version:t,n).inc(e,r,s).version}catch{return null}};hy.exports=B_});var gy=G((q2,my)=>{w();var dy=ls(),$_=(t,e)=>{let n=dy(t,null,!0),r=dy(e,null,!0),s=n.compare(r);if(s===0)return null;let i=s>0,o=i?n:r,a=i?r:n,l=!!o.prerelease.length;if(!!a.prerelease.length&&!l)return!a.patch&&!a.minor?"major":o.patch?"patch":o.minor?"minor":"major";let u=l?"pre":"";return n.major!==r.major?u+"major":n.minor!==r.minor?u+"minor":n.patch!==r.patch?u+"patch":"prerelease"};my.exports=$_});var vy=G((H2,yy)=>{w();var U_=nt(),V_=(t,e)=>new U_(t,e).major;yy.exports=V_});var Sy=G((j2,Ey)=>{w();var q_=nt(),G_=(t,e)=>new q_(t,e).minor;Ey.exports=G_});var Ty=G((z2,wy)=>{w();var H_=nt(),W_=(t,e)=>new H_(t,e).patch;wy.exports=W_});var Cy=G((Y2,xy)=>{w();var j_=ls(),K_=(t,e)=>{let n=j_(t,e);return n&&n.prerelease.length?n.prerelease:null};xy.exports=K_});var Wt=G((J2,Ay)=>{w();var Iy=nt(),z_=(t,e,n)=>new Iy(t,n).compare(new Iy(e,n));Ay.exports=z_});var by=G((eF,Ny)=>{w();var X_=Wt(),Y_=(t,e,n)=>X_(e,t,n);Ny.exports=Y_});var _y=G((nF,Dy)=>{w();var Q_=Wt(),J_=(t,e)=>Q_(t,e,!0);Dy.exports=J_});var ol=G((sF,ky)=>{w();var Ry=nt(),Z_=(t,e,n)=>{let r=new Ry(t,n),s=new Ry(e,n);return r.compare(s)||r.compareBuild(s)};ky.exports=Z_});var My=G((oF,Py)=>{w();var eR=ol(),tR=(t,e)=>t.sort((n,r)=>eR(n,r,e));Py.exports=tR});var Oy=G((lF,Ly)=>{w();var nR=ol(),rR=(t,e)=>t.sort((n,r)=>nR(r,n,e));Ly.exports=rR});var Co=G((uF,Fy)=>{w();var sR=Wt(),iR=(t,e,n)=>sR(t,e,n)>0;Fy.exports=iR});var al=G((hF,By)=>{w();var oR=Wt(),aR=(t,e,n)=>oR(t,e,n)<0;By.exports=aR});var Ip=G((dF,$y)=>{w();var lR=Wt(),cR=(t,e,n)=>lR(t,e,n)===0;$y.exports=cR});var Ap=G((gF,Uy)=>{w();var uR=Wt(),pR=(t,e,n)=>uR(t,e,n)!==0;Uy.exports=pR});var ll=G((vF,Vy)=>{w();var hR=Wt(),fR=(t,e,n)=>hR(t,e,n)>=0;Vy.exports=fR});var cl=G((SF,qy)=>{w();var dR=Wt(),mR=(t,e,n)=>dR(t,e,n)<=0;qy.exports=mR});var Np=G((TF,Gy)=>{w();var gR=Ip(),yR=Ap(),vR=Co(),ER=ll(),SR=al(),wR=cl(),TR=(t,e,n,r)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return gR(t,n,r);case"!=":return yR(t,n,r);case">":return vR(t,n,r);case">=":return ER(t,n,r);case"<":return SR(t,n,r);case"<=":return wR(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};Gy.exports=TR});var Wy=G((CF,Hy)=>{w();var xR=nt(),CR=ls(),{safeRe:ul,t:pl}=ni(),IR=(t,e)=>{if(t instanceof xR)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(e.includePrerelease?ul[pl.COERCEFULL]:ul[pl.COERCE]);else{let l=e.includePrerelease?ul[pl.COERCERTLFULL]:ul[pl.COERCERTL],c;for(;(c=l.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||c.index+c[0].length!==n.index+n[0].length)&&(n=c),l.lastIndex=c.index+c[1].length+c[2].length;l.lastIndex=-1}if(n===null)return null;let r=n[2],s=n[3]||"0",i=n[4]||"0",o=e.includePrerelease&&n[5]?`-${n[5]}`:"",a=e.includePrerelease&&n[6]?`+${n[6]}`:"";return CR(`${r}.${s}.${i}${o}${a}`,e)};Hy.exports=IR});var Ky=G((AF,jy)=>{w();var bp=class{constructor(){this.max=1e3,this.map=new Map}get(e){let n=this.map.get(e);if(n!==void 0)return this.map.delete(e),this.map.set(e,n),n}delete(e){return this.map.delete(e)}set(e,n){if(!this.delete(e)&&n!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,n)}return this}};jy.exports=bp});var jt=G((bF,Qy)=>{w();var AR=/\s+/g,Dp=class t{constructor(e,n){if(n=bR(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof _p)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().replace(AR," "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(s=>!Xy(s[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&LR(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let n=this.set[e];for(let r=0;r<n.length;r++)r>0&&(this.formatted+=" "),this.formatted+=n[r].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let r=((this.options.includePrerelease&&PR)|(this.options.loose&&MR))+":"+e,s=zy.get(r);if(s)return s;let i=this.options.loose,o=i?xt[ht.HYPHENRANGELOOSE]:xt[ht.HYPHENRANGE];e=e.replace(o,WR(this.options.includePrerelease)),ve("hyphen replace",e),e=e.replace(xt[ht.COMPARATORTRIM],_R),ve("comparator trim",e),e=e.replace(xt[ht.TILDETRIM],RR),ve("tilde trim",e),e=e.replace(xt[ht.CARETTRIM],kR),ve("caret trim",e);let a=e.split(" ").map(h=>OR(h,this.options)).join(" ").split(/\s+/).map(h=>HR(h,this.options));i&&(a=a.filter(h=>(ve("loose invalid filter",h,this.options),!!h.match(xt[ht.COMPARATORLOOSE])))),ve("range list",a);let l=new Map,c=a.map(h=>new _p(h,this.options));for(let h of c){if(Xy(h))return[h];l.set(h.value,h)}l.size>1&&l.has("")&&l.delete("");let u=[...l.values()];return zy.set(r,u),u}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(r=>Yy(r,n)&&e.set.some(s=>Yy(s,n)&&r.every(i=>s.every(o=>i.intersects(o,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new DR(e,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(jR(this.set[n],e,this.options))return!0;return!1}};Qy.exports=Dp;var NR=Ky(),zy=new NR,bR=rl(),_p=Io(),ve=xo(),DR=nt(),{safeRe:xt,t:ht,comparatorTrimReplace:_R,tildeTrimReplace:RR,caretTrimReplace:kR}=ni(),{FLAG_INCLUDE_PRERELEASE:PR,FLAG_LOOSE:MR}=To(),Xy=t=>t.value==="<0.0.0-0",LR=t=>t.value==="",Yy=(t,e)=>{let n=!0,r=t.slice(),s=r.pop();for(;n&&r.length;)n=r.every(i=>s.intersects(i,e)),s=r.pop();return n},OR=(t,e)=>(ve("comp",t,e),t=$R(t,e),ve("caret",t),t=FR(t,e),ve("tildes",t),t=VR(t,e),ve("xrange",t),t=GR(t,e),ve("stars",t),t),ft=t=>!t||t.toLowerCase()==="x"||t==="*",FR=(t,e)=>t.trim().split(/\s+/).map(n=>BR(n,e)).join(" "),BR=(t,e)=>{let n=e.loose?xt[ht.TILDELOOSE]:xt[ht.TILDE];return t.replace(n,(r,s,i,o,a)=>{ve("tilde",t,r,s,i,o,a);let l;return ft(s)?l="":ft(i)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:ft(o)?l=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:a?(ve("replaceTilde pr",a),l=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`):l=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,ve("tilde return",l),l})},$R=(t,e)=>t.trim().split(/\s+/).map(n=>UR(n,e)).join(" "),UR=(t,e)=>{ve("caret",t,e);let n=e.loose?xt[ht.CARETLOOSE]:xt[ht.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(s,i,o,a,l)=>{ve("caret",t,s,i,o,a,l);let c;return ft(i)?c="":ft(o)?c=`>=${i}.0.0${r} <${+i+1}.0.0-0`:ft(a)?i==="0"?c=`>=${i}.${o}.0${r} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.0${r} <${+i+1}.0.0-0`:l?(ve("replaceCaret pr",l),i==="0"?o==="0"?c=`>=${i}.${o}.${a}-${l} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}-${l} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a}-${l} <${+i+1}.0.0-0`):(ve("no pr"),i==="0"?o==="0"?c=`>=${i}.${o}.${a}${r} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}${r} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),ve("caret return",c),c})},VR=(t,e)=>(ve("replaceXRanges",t,e),t.split(/\s+/).map(n=>qR(n,e)).join(" ")),qR=(t,e)=>{t=t.trim();let n=e.loose?xt[ht.XRANGELOOSE]:xt[ht.XRANGE];return t.replace(n,(r,s,i,o,a,l)=>{ve("xRange",t,r,s,i,o,a,l);let c=ft(i),u=c||ft(o),h=u||ft(a),f=h;return s==="="&&f&&(s=""),l=e.includePrerelease?"-0":"",c?s===">"||s==="<"?r="<0.0.0-0":r="*":s&&f?(u&&(o=0),a=0,s===">"?(s=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",u?i=+i+1:o=+o+1),s==="<"&&(l="-0"),r=`${s+i}.${o}.${a}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:h&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),ve("xRange return",r),r})},GR=(t,e)=>(ve("replaceStars",t,e),t.trim().replace(xt[ht.STAR],"")),HR=(t,e)=>(ve("replaceGTE0",t,e),t.trim().replace(xt[e.includePrerelease?ht.GTE0PRE:ht.GTE0],"")),WR=t=>(e,n,r,s,i,o,a,l,c,u,h,f)=>(ft(r)?n="":ft(s)?n=`>=${r}.0.0${t?"-0":""}`:ft(i)?n=`>=${r}.${s}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,ft(c)?l="":ft(u)?l=`<${+c+1}.0.0-0`:ft(h)?l=`<${c}.${+u+1}.0-0`:f?l=`<=${c}.${u}.${h}-${f}`:t?l=`<${c}.${u}.${+h+1}-0`:l=`<=${l}`,`${n} ${l}`.trim()),jR=(t,e,n)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let r=0;r<t.length;r++)if(ve(t[r].semver),t[r].semver!==_p.ANY&&t[r].semver.prerelease.length>0){let s=t[r].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Io=G((_F,rv)=>{w();var Ao=Symbol("SemVer ANY"),Pp=class t{static get ANY(){return Ao}constructor(e,n){if(n=Jy(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),kp("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===Ao?this.value="":this.value=this.operator+this.semver.version,kp("comp",this)}parse(e){let n=this.options.loose?Zy[ev.COMPARATORLOOSE]:Zy[ev.COMPARATOR],r=e.match(n);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new tv(r[2],this.options.loose):this.semver=Ao}toString(){return this.value}test(e){if(kp("Comparator.test",e,this.options.loose),this.semver===Ao||e===Ao)return!0;if(typeof e=="string")try{e=new tv(e,this.options)}catch{return!1}return Rp(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new nv(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new nv(this.value,n).test(e.semver):(n=Jy(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Rp(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Rp(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};rv.exports=Pp;var Jy=rl(),{safeRe:Zy,t:ev}=ni(),Rp=Np(),kp=xo(),tv=nt(),nv=jt()});var No=G((kF,sv)=>{w();var KR=jt(),zR=(t,e,n)=>{try{e=new KR(e,n)}catch{return!1}return e.test(t)};sv.exports=zR});var ov=G((MF,iv)=>{w();var XR=jt(),YR=(t,e)=>new XR(t,e).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));iv.exports=YR});var lv=G((OF,av)=>{w();var QR=nt(),JR=jt(),ZR=(t,e,n)=>{let r=null,s=null,i=null;try{i=new JR(e,n)}catch{return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===-1)&&(r=o,s=new QR(r,n))}),r};av.exports=ZR});var uv=G((BF,cv)=>{w();var ek=nt(),tk=jt(),nk=(t,e,n)=>{let r=null,s=null,i=null;try{i=new tk(e,n)}catch{return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===1)&&(r=o,s=new ek(r,n))}),r};cv.exports=nk});var fv=G((UF,hv)=>{w();var Mp=nt(),rk=jt(),pv=Co(),sk=(t,e)=>{t=new rk(t,e);let n=new Mp("0.0.0");if(t.test(n)||(n=new Mp("0.0.0-0"),t.test(n)))return n;n=null;for(let r=0;r<t.set.length;++r){let s=t.set[r],i=null;s.forEach(o=>{let a=new Mp(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||pv(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!n||pv(n,i))&&(n=i)}return n&&t.test(n)?n:null};hv.exports=sk});var mv=G((qF,dv)=>{w();var ik=jt(),ok=(t,e)=>{try{return new ik(t,e).range||"*"}catch{return null}};dv.exports=ok});var hl=G((HF,Ev)=>{w();var ak=nt(),vv=Io(),{ANY:lk}=vv,ck=jt(),uk=No(),gv=Co(),yv=al(),pk=cl(),hk=ll(),fk=(t,e,n,r)=>{t=new ak(t,r),e=new ck(e,r);let s,i,o,a,l;switch(n){case">":s=gv,i=pk,o=yv,a=">",l=">=";break;case"<":s=yv,i=hk,o=gv,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(uk(t,e,r))return!1;for(let c=0;c<e.set.length;++c){let u=e.set[c],h=null,f=null;if(u.forEach(m=>{m.semver===lk&&(m=new vv(">=0.0.0")),h=h||m,f=f||m,s(m.semver,h.semver,r)?h=m:o(m.semver,f.semver,r)&&(f=m)}),h.operator===a||h.operator===l||(!f.operator||f.operator===a)&&i(t,f.semver))return!1;if(f.operator===l&&o(t,f.semver))return!1}return!0};Ev.exports=fk});var wv=G((jF,Sv)=>{w();var dk=hl(),mk=(t,e,n)=>dk(t,e,">",n);Sv.exports=mk});var xv=G((zF,Tv)=>{w();var gk=hl(),yk=(t,e,n)=>gk(t,e,"<",n);Tv.exports=yk});var Av=G((YF,Iv)=>{w();var Cv=jt(),vk=(t,e,n)=>(t=new Cv(t,n),e=new Cv(e,n),t.intersects(e,n));Iv.exports=vk});var bv=G((JF,Nv)=>{w();var Ek=No(),Sk=Wt();Nv.exports=(t,e,n)=>{let r=[],s=null,i=null,o=t.sort((u,h)=>Sk(u,h,n));for(let u of o)Ek(u,e,n)?(i=u,s||(s=u)):(i&&r.push([s,i]),i=null,s=null);s&&r.push([s,null]);let a=[];for(let[u,h]of r)u===h?a.push(u):!h&&u===o[0]?a.push("*"):h?u===o[0]?a.push(`<=${h}`):a.push(`${u} - ${h}`):a.push(`>=${u}`);let l=a.join(" || "),c=typeof e.raw=="string"?e.raw:String(e);return l.length<c.length?l:e}});var Mv=G((e1,Pv)=>{w();var Dv=jt(),Op=Io(),{ANY:Lp}=Op,bo=No(),Fp=Wt(),wk=(t,e,n={})=>{if(t===e)return!0;t=new Dv(t,n),e=new Dv(e,n);let r=!1;e:for(let s of t.set){for(let i of e.set){let o=xk(s,i,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},Tk=[new Op(">=0.0.0-0")],_v=[new Op(">=0.0.0")],xk=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Lp){if(e.length===1&&e[0].semver===Lp)return!0;n.includePrerelease?t=Tk:t=_v}if(e.length===1&&e[0].semver===Lp){if(n.includePrerelease)return!0;e=_v}let r=new Set,s,i;for(let m of t)m.operator===">"||m.operator===">="?s=Rv(s,m,n):m.operator==="<"||m.operator==="<="?i=kv(i,m,n):r.add(m.semver);if(r.size>1)return null;let o;if(s&&i){if(o=Fp(s.semver,i.semver,n),o>0)return null;if(o===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let m of r){if(s&&!bo(m,String(s),n)||i&&!bo(m,String(i),n))return null;for(let E of e)if(!bo(m,String(E),n))return!1;return!0}let a,l,c,u,h=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,f=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;h&&h.prerelease.length===1&&i.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let m of e){if(u=u||m.operator===">"||m.operator===">=",c=c||m.operator==="<"||m.operator==="<=",s){if(f&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===f.major&&m.semver.minor===f.minor&&m.semver.patch===f.patch&&(f=!1),m.operator===">"||m.operator===">="){if(a=Rv(s,m,n),a===m&&a!==s)return!1}else if(s.operator===">="&&!bo(s.semver,String(m),n))return!1}if(i){if(h&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===h.major&&m.semver.minor===h.minor&&m.semver.patch===h.patch&&(h=!1),m.operator==="<"||m.operator==="<="){if(l=kv(i,m,n),l===m&&l!==i)return!1}else if(i.operator==="<="&&!bo(i.semver,String(m),n))return!1}if(!m.operator&&(i||s)&&o!==0)return!1}return!(s&&c&&!i&&o!==0||i&&u&&!s&&o!==0||f||h)},Rv=(t,e,n)=>{if(!t)return e;let r=Fp(t.semver,e.semver,n);return r>0?t:r<0||e.operator===">"&&t.operator===">="?e:t},kv=(t,e,n)=>{if(!t)return e;let r=Fp(t.semver,e.semver,n);return r<0?t:r>0||e.operator==="<"&&t.operator==="<="?e:t};Pv.exports=wk});var Bv=G((n1,Fv)=>{w();var Bp=ni(),Lv=To(),Ck=nt(),Ov=xp(),Ik=ls(),Ak=ly(),Nk=uy(),bk=fy(),Dk=gy(),_k=vy(),Rk=Sy(),kk=Ty(),Pk=Cy(),Mk=Wt(),Lk=by(),Ok=_y(),Fk=ol(),Bk=My(),$k=Oy(),Uk=Co(),Vk=al(),qk=Ip(),Gk=Ap(),Hk=ll(),Wk=cl(),jk=Np(),Kk=Wy(),zk=Io(),Xk=jt(),Yk=No(),Qk=ov(),Jk=lv(),Zk=uv(),eP=fv(),tP=mv(),nP=hl(),rP=wv(),sP=xv(),iP=Av(),oP=bv(),aP=Mv();Fv.exports={parse:Ik,valid:Ak,clean:Nk,inc:bk,diff:Dk,major:_k,minor:Rk,patch:kk,prerelease:Pk,compare:Mk,rcompare:Lk,compareLoose:Ok,compareBuild:Fk,sort:Bk,rsort:$k,gt:Uk,lt:Vk,eq:qk,neq:Gk,gte:Hk,lte:Wk,cmp:jk,coerce:Kk,Comparator:zk,Range:Xk,satisfies:Yk,toComparators:Qk,maxSatisfying:Jk,minSatisfying:Zk,minVersion:eP,validRange:tP,outside:nP,gtr:rP,ltr:sP,intersects:iP,simplifyRange:oP,subset:aP,SemVer:Ck,re:Bp.re,src:Bp.src,tokens:Bp.t,SEMVER_SPEC_VERSION:Lv.SEMVER_SPEC_VERSION,RELEASE_TYPES:Lv.RELEASE_TYPES,compareIdentifiers:Ov.compareIdentifiers,rcompareIdentifiers:Ov.rcompareIdentifiers}});var mM={};oE(mM,{angularJitApplicationTransform:()=>wo});module.exports=aE(mM);w();w();var Jv=require("module");w();var jg=require("module");w();var Bg=require("module");w();var Tg=require("module");w();var Qm=require("module");w();var th=require("module");w();var Zp=require("module"),cs=(0,Zp.createRequire)(R),eh=(t=>typeof cs<"u"?cs:typeof Proxy<"u"?new Proxy(t,{get:(e,n)=>(typeof cs<"u"?cs:e)[n]}):t)(function(t){if(typeof cs<"u")return cs.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var uE=x(require("typescript"),1),Je=x(require("fs"),1),rh=require("module"),dt=x(require("path"),1),sh=require("url"),SM=(0,th.createRequire)(R);var lE=class{exists(t){throw ue()}readFile(t){throw ue()}readFileBuffer(t){throw ue()}writeFile(t,e,n){throw ue()}removeFile(t){throw ue()}symlink(t,e){throw ue()}readdir(t){throw ue()}lstat(t){throw ue()}stat(t){throw ue()}pwd(){throw ue()}chdir(t){throw ue()}extname(t){throw ue()}copyFile(t,e){throw ue()}moveFile(t,e){throw ue()}ensureDir(t){throw ue()}removeDeep(t){throw ue()}isCaseSensitive(){throw ue()}resolve(...t){throw ue()}dirname(t){throw ue()}join(t,...e){throw ue()}isRoot(t){throw ue()}isRooted(t){throw ue()}relative(t,e){throw ue()}basename(t,e){throw ue()}realpath(t){throw ue()}getDefaultLibLocation(){throw ue()}normalize(t){throw ue()}};function ue(){return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.")}var cE=new lE;function nh(t){cE=t}var TM=Symbol("AbsolutePath");var pE=class{pwd(){return this.normalize(process.cwd())}chdir(t){process.chdir(t)}resolve(...t){return this.normalize(dt.resolve(...t))}dirname(t){return this.normalize(dt.dirname(t))}join(t,...e){return this.normalize(dt.join(t,...e))}isRoot(t){return this.dirname(t)===this.normalize(t)}isRooted(t){return dt.isAbsolute(t)}relative(t,e){return this.normalize(dt.relative(t,e))}basename(t,e){return dt.basename(t,e)}extname(t){return dt.extname(t)}normalize(t){return t.replace(/\\/g,"/")}},fl=typeof __filename<"u",ih=fl?null:R,hE=fl?__filename:(0,sh.fileURLToPath)(ih),fE=class extends pE{constructor(){super(...arguments),this._caseSensitive=void 0}isCaseSensitive(){return this._caseSensitive===void 0&&(this._caseSensitive=!Je.default.existsSync(this.normalize(dE(hE)))),this._caseSensitive}exists(t){return Je.default.existsSync(t)}readFile(t){return Je.default.readFileSync(t,"utf8")}readFileBuffer(t){return Je.default.readFileSync(t)}readdir(t){return Je.default.readdirSync(t)}lstat(t){return Je.default.lstatSync(t)}stat(t){return Je.default.statSync(t)}realpath(t){return this.resolve(Je.default.realpathSync(t))}getDefaultLibLocation(){let t=fl?eh:(0,rh.createRequire)(ih);return this.resolve(t.resolve("typescript"),"..")}},oh=class extends fE{writeFile(t,e,n=!1){Je.default.writeFileSync(t,e,n?{flag:"wx"}:void 0)}removeFile(t){Je.default.unlinkSync(t)}symlink(t,e){Je.default.symlinkSync(t,e)}copyFile(t,e){Je.default.copyFileSync(t,e)}moveFile(t,e){Je.default.renameSync(t,e)}ensureDir(t){Je.default.mkdirSync(t,{recursive:!0})}removeDeep(t){Je.default.rmdirSync(t,{recursive:!0})}};function dE(t){return t.replace(/\w/g,e=>e.toUpperCase()===e?e.toLowerCase():e.toUpperCase())}var Zs=x(require("typescript"),1),M=x(require("typescript"),1),uo=x(require("typescript"),1),De=x(require("typescript"),1),ju=x(require("typescript"),1),Zm=x(require("typescript"),1);w();var ah=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),Qt=class t{constructor(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}static parse(e){let n=[],r=(l,c)=>{c.notSelectors.length>0&&!c.element&&c.classNames.length==0&&c.attrs.length==0&&(c.element="*"),l.push(c)},s=new t,i,o=s,a=!1;for(ah.lastIndex=0;i=ah.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 l=i[2];if(l){let u=i[3];u==="#"?o.addAttribute("id",l.slice(1)):u==="."?o.addClassName(l.slice(1)):o.setElement(l)}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}},ir=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 Fl(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,l=new Bl(e,n,r);if(i&&(a.length===0&&o.length===0?this._addTerminal(s._elementMap,i,l):s=this._addPartial(s._elementPartialMap,i)),o)for(let c=0;c<o.length;c++){let u=a.length===0&&c===o.length-1,h=o[c];u?this._addTerminal(s._classMap,h,l):s=this._addPartial(s._classPartialMap,h)}if(a)for(let c=0;c<a.length;c+=2){let u=c===a.length-2,h=a[c],f=a[c+1];if(u){let m=s._attrValueMap,E=m.get(h);E||(E=new Map,m.set(h,E)),this._addTerminal(E,f,l)}else{let m=s._attrValuePartialMap,E=m.get(h);E||(E=new Map,m.set(h,E)),s=this._addPartial(E,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 l=i[a];r=this._matchTerminal(this._classMap,l,e,n)||r,r=this._matchPartial(this._classPartialMap,l,e,n)||r}if(o)for(let a=0;a<o.length;a+=2){let l=o[a],c=o[a+1],u=this._attrValueMap.get(l);c&&(r=this._matchTerminal(u,"",e,n)||r),r=this._matchTerminal(u,c,e,n)||r;let h=this._attrValuePartialMap.get(l);c&&(r=this._matchPartial(h,"",e,n)||r),r=this._matchPartial(h,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,l=!1;for(let c=0;c<i.length;c++)a=i[c],l=a.finalize(r,s)||l;return l}_matchPartial(e,n,r,s){if(!e||typeof n!="string")return!1;let i=e.get(n);return i?i.match(r,s):!1}},Fl=class{constructor(e){this.selectors=e,this.alreadyMatched=!1}},Bl=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=!ir.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 un;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(un||(un={}));var Bo;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(Bo||(Bo={}));var vs;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(vs||(vs={}));var $l={name:"custom-elements"},Ul={name:"no-errors-schema"};var ce;(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"})(ce||(ce={}));var lh;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(lh||(lh={}));function mE(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return[t.element&&t.element!=="*"?t.element:"",...t.attrs,...e]}function gE(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 yE(t){let e=mE(t),n=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(r=>gE(r)):[];return e.concat(...n)}function hu(t){return t?Qt.parse(t).map(yE):[]}var $o;function vE(t){return TE(wE(t.nodes).join("")+`[${t.meaning}]`)}function EE(t,e){return t.id||Zf(t,e)}function Zf(t,e){let n=new Vl(e),r=t.nodes.map(s=>s.visit(n,null));return ed(r.join(""),t.meaning)}var Uo=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}">`}},SE=new Uo;function wE(t){return t.map(e=>e.visit(SE,null))}var Vl=class extends Uo{constructor(e){super(),this.preservePlaceholders=e}visitPlaceholder(e,n){return this.preservePlaceholders?super.visitPlaceholder(e,n):`<ph name="${e.name}"/>`}visitIcu(e){let n=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.type}, ${n.join(", ")}}`}};function TE(t){$o??=new TextEncoder;let e=[...$o.encode(t)],n=IE(e,Vo.Big),r=e.length*8,s=new Uint32Array(80),i=1732584193,o=4023233417,a=2562383102,l=271733878,c=3285377520;n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(let u=0;u<n.length;u+=16){let h=i,f=o,m=a,E=l,S=c;for(let I=0;I<80;I++){I<16?s[I]=n[u+I]:s[I]=dl(s[I-3]^s[I-8]^s[I-14]^s[I-16],1);let N=xE(I,o,a,l),$=N[0],Te=N[1],le=[dl(i,5),$,c,Te,s[I]].reduce(us);c=l,l=a,a=dl(o,30),o=i,i=le}i=us(i,h),o=us(o,f),a=us(a,m),l=us(l,E),c=us(c,S)}return si(i)+si(o)+si(a)+si(l)+si(c)}function si(t){return(t>>>0).toString(16).padStart(8,"0")}function xE(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 ch(t){$o??=new TextEncoder;let e=$o.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=uh(n,e.length,0),s=uh(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 ed(t,e=""){let n=ch(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=ch(e)),BigInt.asUintN(63,n).toString()}function uh(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 l=ph(r,s,n);r=l[0],s=l[1],n=l[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)),ph(r,s,n)[2]}function ph(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 Vo;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(Vo||(Vo={}));function us(t,e){return CE(t,e)[1]}function CE(t,e){let n=(t&65535)+(e&65535),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|n&65535]}function dl(t,e){return t<<e|t>>>32-e}function IE(t,e){let n=t.length+3>>>2,r=[];for(let s=0;s<n;s++)r[s]=AE(t,s*4,e);return r}function hh(t,e){return e>=t.length?0:t[e]}function AE(t,e,n){let r=0;if(n===Vo.Big)for(let s=0;s<4;s++)r+=hh(t,e+s)<<24-8*s;else for(let s=0;s<4;s++)r+=hh(t,e+s)<<8*s;return r}var Ei;(function(t){t[t.None=0]="None",t[t.Const=1]="Const"})(Ei||(Ei={}));var or=class{constructor(e=Ei.None){this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},qt;(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"})(qt||(qt={}));var Jt=class extends or{constructor(e,n){super(n),this.name=e}visitType(e,n){return e.visitBuiltinType(this,n)}},it=class extends or{constructor(e,n,r=null){super(n),this.value=e,this.typeParams=r}visitType(e,n){return e.visitExpressionType(this,n)}},ql=class extends or{constructor(e,n){super(n),this.of=e}visitType(e,n){return e.visitArrayType(this,n)}},Gl=class extends or{constructor(e,n){super(n),this.valueType=e||null}visitType(e,n){return e.visitMapType(this,n)}},Ns=class extends or{constructor(e,n){super(n),this.type=e}visitType(e,n){return e.visitTransplantedType(this,n)}},Er=new Jt(qt.Dynamic),At=new Jt(qt.Inferred),td=new Jt(qt.Bool),NE=new Jt(qt.Int),Fa=new Jt(qt.Number),fu=new Jt(qt.String),bE=new Jt(qt.Function),Zt=new Jt(qt.None),mn;(function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"})(mn||(mn={}));var A;(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"})(A||(A={}));function nd(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function rd(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 at(t,e){return rd(t,e,(n,r)=>n.isEquivalent(r))}var ne=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 gn(this,e,n,r)}callFn(e,n,r){return new ze(this,e,null,n,r)}instantiate(e,n,r){return new Ds(this,e,n,r)}conditional(e,n=null,r){return new en(this,e,n,null,r)}equals(e,n){return new ee(A.Equals,this,e,null,n)}notEquals(e,n){return new ee(A.NotEquals,this,e,null,n)}identical(e,n){return new ee(A.Identical,this,e,null,n)}notIdentical(e,n){return new ee(A.NotIdentical,this,e,null,n)}minus(e,n){return new ee(A.Minus,this,e,null,n)}plus(e,n){return new ee(A.Plus,this,e,null,n)}divide(e,n){return new ee(A.Divide,this,e,null,n)}multiply(e,n){return new ee(A.Multiply,this,e,null,n)}modulo(e,n){return new ee(A.Modulo,this,e,null,n)}and(e,n){return new ee(A.And,this,e,null,n)}bitwiseOr(e,n,r=!0){return new ee(A.BitwiseOr,this,e,null,n,r)}bitwiseAnd(e,n,r=!0){return new ee(A.BitwiseAnd,this,e,null,n,r)}or(e,n){return new ee(A.Or,this,e,null,n)}lower(e,n){return new ee(A.Lower,this,e,null,n)}lowerEquals(e,n){return new ee(A.LowerEquals,this,e,null,n)}bigger(e,n){return new ee(A.Bigger,this,e,null,n)}biggerEquals(e,n){return new ee(A.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(sd,e)}nullishCoalesce(e,n){return new ee(A.NullishCoalesce,this,e,null,n)}toStmt(){return new bt(this,null)}},Nt=class t extends ne{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 Si(this.name,e,null,this.sourceSpan)}},Br=class t extends ne{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())}},U=class t extends ne{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)}},Si=class t extends ne{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 Xe(this.name,this.value,e,n,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(At,Re.Final)}},bs=class t extends ne{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)}},$r=class t extends ne{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)}},ze=class t extends ne{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)&&at(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)}},wi=class t extends ne{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)&&rd(this.template.elements,e.template.elements,(n,r)=>n.text===r.text)&&at(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)}},Ds=class t extends ne{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)&&at(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)}},Ce=class t extends ne{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)}},qo=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()))}},Go=class t{constructor(e,n,r){this.text=e,this.sourceSpan=n,this.rawText=r??n?.toString()??Hl(Oo(e))}clone(){return new t(this.text,this.sourceSpan,this.rawText)}},sr=class{constructor(e,n){this.text=e,this.sourceSpan=n}},Pr=class{constructor(e,n,r){this.text=e,this.sourceSpan=n,this.associatedMessage=r}},DE="|",fh="@@",_E="\u241F",Ti=class t extends ne{constructor(e,n,r,s,i){super(fu,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}${DE}${e}`),this.metaBlock.customId&&(e=`${e}${fh}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(n=>{e=`${e}${_E}${n}`}),dh(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+=`${fh}${ed(n.associatedMessage.messageString,n.associatedMessage.meaning)}`),dh(s,r.text,this.getMessagePartSourceSpan(e))}},Oo=t=>t.replace(/\\/g,"\\\\"),RE=t=>t.replace(/^:/,"\\:"),kE=t=>t.replace(/:/g,"\\:"),Hl=t=>t.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function dh(t,e,n){return t===""?{cooked:e,raw:Hl(RE(Oo(e))),range:n}:{cooked:`:${t}:${e}`,raw:Hl(`:${kE(Oo(t))}:${Oo(e)}`),range:n}}var qe=class t extends ne{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)}},Ho=class{constructor(e,n,r){this.moduleName=e,this.name=n,this.runtime=r}},en=class t extends ne{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)&&nd(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)}},Wl=class t extends ne{constructor(e,n){super(null,n),this.url=e}isEquivalent(e){return e instanceof t&&this.url===e.url}isConstant(){return!1}visitExpression(e,n){return e.visitDynamicImportExpr(this,n)}clone(){return new t(this.url,this.sourceSpan)}},_s=class t extends ne{constructor(e,n){super(td,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)}},Fe=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)}},Yt=class t extends ne{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 ks)&&at(this.params,e.params)&&at(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,n){return e.visitFunctionExpr(this,n)}toDeclStmt(e,n){return new ks(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)}},Ln=class t extends ne{constructor(e,n,r,s){super(r,s),this.params=e,this.body=n}isEquivalent(e){return!(e instanceof t)||!at(this.params,e.params)?!1:this.body instanceof ne&&e.body instanceof ne?this.body.isEquivalent(e.body):Array.isArray(this.body)&&Array.isArray(e.body)?at(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 Xe(e,this,At,n,this.sourceSpan)}},ar=class t extends ne{constructor(e,n,r,s,i=!0){super(r||Fa,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)}},ee=class t extends ne{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 ne{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 $r(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},gn=class t extends ne{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 bs(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},ct=class t extends ne{constructor(e,n,r){super(n,r),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof t&&at(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)}},Ur=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)}},Gt=class t extends ne{constructor(e,n,r){super(n,r),this.entries=e,this.valueType=null,n&&(this.valueType=n.valueType)}isEquivalent(e){return e instanceof t&&at(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)}},jl=class t extends ne{constructor(e,n){super(e[e.length-1].type,n),this.parts=e}isEquivalent(e){return e instanceof t&&at(this.parts,e.parts)}isConstant(){return!1}visitExpression(e,n){return e.visitCommaExpr(this,n)}clone(){return new t(this.parts.map(e=>e.clone()))}},Rs=new Ce(null,null,null),sd=new Ce(null,At,null),Re;(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"})(Re||(Re={}));var xi=class{constructor(e,n,r){this.text=e,this.multiline=n,this.trailingNewline=r}toString(){return this.multiline?` ${this.text} `:this.text}},Ci=class extends xi{constructor(e){super("",!0,!0),this.tags=e}toString(){return BE(this.tags)}},lr=class{constructor(e=Re.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)}},Xe=class t extends lr{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)}},ks=class t extends lr{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&&at(this.params,e.params)&&at(this.statements,e.statements)}visitStatement(e,n){return e.visitDeclareFunctionStmt(this,n)}},bt=class t extends lr{constructor(e,n,r){super(Re.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)}},et=class t extends lr{constructor(e,n=null,r){super(Re.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)}},Ii=class t extends lr{constructor(e,n,r=[],s,i){super(Re.None,s,i),this.condition=e,this.trueCase=n,this.falseCase=r}isEquivalent(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&at(this.trueCase,e.trueCase)&&at(this.falseCase,e.falseCase)}visitStatement(e,n){return e.visitIfStmt(this,n)}},Kl=class{visitType(e,n){return e}visitExpression(e,n){return e.type&&e.type.visitType(this,n),e}visitBuiltinType(e,n){return this.visitType(e,n)}visitExpressionType(e,n){return e.value.visitExpression(this,n),e.typeParams!==null&&e.typeParams.forEach(r=>this.visitType(r,n)),this.visitType(e,n)}visitArrayType(e,n){return this.visitType(e,n)}visitMapType(e,n){return this.visitType(e,n)}visitTransplantedType(e,n){return e}visitWrappedNodeExpr(e,n){return e}visitTypeofExpr(e,n){return this.visitExpression(e,n)}visitReadVarExpr(e,n){return this.visitExpression(e,n)}visitWriteVarExpr(e,n){return e.value.visitExpression(this,n),this.visitExpression(e,n)}visitWriteKeyExpr(e,n){return e.receiver.visitExpression(this,n),e.index.visitExpression(this,n),e.value.visitExpression(this,n),this.visitExpression(e,n)}visitWritePropExpr(e,n){return e.receiver.visitExpression(this,n),e.value.visitExpression(this,n),this.visitExpression(e,n)}visitDynamicImportExpr(e,n){return this.visitExpression(e,n)}visitInvokeFunctionExpr(e,n){return e.fn.visitExpression(this,n),this.visitAllExpressions(e.args,n),this.visitExpression(e,n)}visitTaggedTemplateExpr(e,n){return e.tag.visitExpression(this,n),this.visitAllExpressions(e.template.expressions,n),this.visitExpression(e,n)}visitInstantiateExpr(e,n){return e.classExpr.visitExpression(this,n),this.visitAllExpressions(e.args,n),this.visitExpression(e,n)}visitLiteralExpr(e,n){return this.visitExpression(e,n)}visitLocalizedString(e,n){return this.visitExpression(e,n)}visitExternalExpr(e,n){return e.typeParams&&e.typeParams.forEach(r=>r.visitType(this,n)),this.visitExpression(e,n)}visitConditionalExpr(e,n){return e.condition.visitExpression(this,n),e.trueCase.visitExpression(this,n),e.falseCase.visitExpression(this,n),this.visitExpression(e,n)}visitNotExpr(e,n){return e.condition.visitExpression(this,n),this.visitExpression(e,n)}visitFunctionExpr(e,n){return this.visitAllStatements(e.statements,n),this.visitExpression(e,n)}visitArrowFunctionExpr(e,n){return Array.isArray(e.body)?this.visitAllStatements(e.body,n):this.visitExpression(e.body,n),this.visitExpression(e,n)}visitUnaryOperatorExpr(e,n){return e.expr.visitExpression(this,n),this.visitExpression(e,n)}visitBinaryOperatorExpr(e,n){return e.lhs.visitExpression(this,n),e.rhs.visitExpression(this,n),this.visitExpression(e,n)}visitReadPropExpr(e,n){return e.receiver.visitExpression(this,n),this.visitExpression(e,n)}visitReadKeyExpr(e,n){return e.receiver.visitExpression(this,n),e.index.visitExpression(this,n),this.visitExpression(e,n)}visitLiteralArrayExpr(e,n){return this.visitAllExpressions(e.entries,n),this.visitExpression(e,n)}visitLiteralMapExpr(e,n){return e.entries.forEach(r=>r.value.visitExpression(this,n)),this.visitExpression(e,n)}visitCommaExpr(e,n){return this.visitAllExpressions(e.parts,n),this.visitExpression(e,n)}visitAllExpressions(e,n){e.forEach(r=>r.visitExpression(this,n))}visitDeclareVarStmt(e,n){return e.value&&e.value.visitExpression(this,n),e.type&&e.type.visitType(this,n),e}visitDeclareFunctionStmt(e,n){return this.visitAllStatements(e.statements,n),e.type&&e.type.visitType(this,n),e}visitExpressionStmt(e,n){return e.expr.visitExpression(this,n),e}visitReturnStmt(e,n){return e.value.visitExpression(this,n),e}visitIfStmt(e,n){return e.condition.visitExpression(this,n),this.visitAllStatements(e.trueCase,n),this.visitAllStatements(e.falseCase,n),e}visitAllStatements(e,n){e.forEach(r=>r.visitStatement(this,n))}};function PE(t,e=!1,n=!0){return new xi(t,e,n)}function id(t=[]){return new Ci(t)}function W(t,e,n){return new Nt(t,e,n)}function L(t,e=null,n){return new qe(t,null,e,n)}function ME(t,e,n){return t!=null?Be(L(t,e,null),n):null}function Be(t,e,n){return new it(t,e,n)}function LE(t,e){return new Ns(t,e)}function ro(t){return new Br(t)}function se(t,e,n){return new ct(t,e,n)}function Ye(t,e=null){return new Gt(t.map(n=>new Ur(n.key,n.value,n.quoted)),e,null)}function OE(t,e,n,r){return new ar(t,e,n,r)}function od(t,e){return new _s(t,e)}function ts(t,e,n,r,s){return new Yt(t,e,n,r,s)}function tn(t,e,n,r){return new Ln(t,e,n,r)}function so(t,e,n,r,s){return new Ii(t,e,n,r,s)}function ad(t,e,n,r){return new wi(t,e,n,r)}function y(t,e,n){return new Ce(t,e,n)}function ld(t,e,n,r,s){return new Ti(t,e,n,r,s)}function FE(t){return t instanceof Ce&&t.value===null}function mh(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 BE(t){if(t.length===0)return"";if(t.length===1&&t[0].tagName&&!t[0].text)return`*${mh(t[0])} `;let e=`*
2
2
  `;for(let n of t)e+=" *",e+=mh(n).replace(/\n/g,`
3
3
  * `),e+=`
4
- `;return e+=" ",e}var io=Object.freeze({__proto__:null,get TypeModifier(){return Ei},Type:or,get BuiltinTypeName(){return qt},BuiltinType:Jt,ExpressionType:it,ArrayType:ql,MapType:Gl,TransplantedType:As,DYNAMIC_TYPE:Er,INFERRED_TYPE:At,BOOL_TYPE:td,INT_TYPE:NE,NUMBER_TYPE:Fa,STRING_TYPE:fu,FUNCTION_TYPE:bE,NONE_TYPE:Zt,get UnaryOperator(){return mn},get BinaryOperator(){return A},nullSafeIsEquivalent:nd,areAllEquivalent:at,Expression:ne,ReadVarExpr:Nt,TypeofExpr:Br,WrappedNodeExpr:U,WriteVarExpr:Si,WriteKeyExpr:Ns,WritePropExpr:$r,InvokeFunctionExpr:ze,TaggedTemplateExpr:wi,InstantiateExpr:bs,LiteralExpr:Ce,TemplateLiteral:qo,TemplateLiteralElement:Go,LiteralPiece:sr,PlaceholderPiece:Pr,LocalizedString:Ti,ExternalExpr:qe,ExternalReference:Ho,ConditionalExpr:en,DynamicImportExpr:Wl,NotExpr:Ds,FnParam:Fe,FunctionExpr:Yt,ArrowFunctionExpr:Ln,UnaryOperatorExpr:ar,BinaryOperatorExpr:ee,ReadPropExpr:lt,ReadKeyExpr:gn,LiteralArrayExpr:ct,LiteralMapEntry:Ur,LiteralMapExpr:Gt,CommaExpr:jl,NULL_EXPR:_s,TYPED_NULL_EXPR:sd,get StmtModifier(){return Re},LeadingComment:xi,JSDocComment:Ci,Statement:lr,DeclareVarStmt:Xe,DeclareFunctionStmt:Rs,ExpressionStatement:bt,ReturnStatement:et,IfStmt:Ii,RecursiveAstVisitor:Kl,leadingComment:PE,jsDocComment:id,variable:W,importExpr:L,importType:ME,expressionType:Be,transplantedType:LE,typeofExpr:ro,literalArr:se,literalMap:Ye,unary:OE,not:od,fn:es,arrowFn:tn,ifStmt:so,taggedTemplate:ad,literal:y,localizedString:ld,isNull:FE}),$E="_c",gh=W("<unknown>"),UE={},VE=50,Wo=class t extends ne{constructor(e){super(e.type),this.resolved=e,this.shared=!1,this.original=e}visitExpression(e,n){return n===UE?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}},Ai=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 Ce&&!yh(e)||e instanceof Wo)return e;let r=Cs.INSTANCE.keyOf(e),s=this.literals.get(r),i=!1;if(s||(s=new Wo(e),this.literals.set(r,s),i=!0),!i&&!s.shared||i&&n){let o=this.freshName(),a,l;this.isClosureCompilerEnabled&&yh(e)?(a=W(o).set(new Yt([],[new et(e)])),l=W(o).callFn([])):(a=W(o).set(e),l=W(o)),this.statements.push(a.toDeclStmt(At,Re.Final)),s.fixup(l)}return s}getSharedConstant(e,n){let r=e.keyOf(n);if(!this.sharedConstants.has(r)){let s=this.freshName();this.sharedConstants.set(r,W(s)),this.statements.push(e.toSharedConstantDeclaration(s,n))}return this.sharedConstants.get(r)}getLiteralFactory(e){if(e instanceof ct){let n=e.entries.map(s=>s.isConstant()?s:gh),r=Cs.INSTANCE.keyOf(se(n));return this._getLiteralFactory(r,e.entries,s=>se(s))}else{let n=Ye(e.entries.map(s=>({key:s.key,value:s.value.isConstant()?s.value:gh,quoted:s.quoted}))),r=Cs.INSTANCE.keyOf(n);return this._getLiteralFactory(r,e.entries.map(s=>s.value),s=>Ye(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 Ln;for(let o of this.statements)if(s&&o instanceof Xe&&o.value?.isEquivalent(e)||!s&&o instanceof Rs&&e instanceof Yt&&e.isEquivalent(o))return W(o.name);let i=r?this.uniqueName(n):n;return this.statements.push(e instanceof Yt?e.toDeclStmt(i,Re.Final):new Xe(i,e,At,Re.Final,e.sourceSpan)),W(i)}_getLiteralFactory(e,n,r){let s=this.literalFactories.get(e),i=n.filter(o=>!o.isConstant());if(!s){let o=n.map((u,h)=>u.isConstant()?this.getConstLiteral(u,!0):W(`a${h}`)),a=o.filter(qE).map(u=>new Fe(u.name,Er)),l=tn(a,r(o),At),c=this.freshName();this.statements.push(W(c).set(l).toDeclStmt(At,Re.Final)),s=W(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($E)}},Cs=class t{static{this.INSTANCE=new t}keyOf(e){if(e instanceof Ce&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof Ce)return String(e.value);if(e instanceof ct){let n=[];for(let r of e.entries)n.push(this.keyOf(r));return`[${n.join(",")}]`}else if(e instanceof Gt){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 qe)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof Nt)return`read(${e.name})`;if(e instanceof Br)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};function qE(t){return t instanceof Nt}function yh(t){return t instanceof Ce&&typeof t.value=="string"&&t.value.length>=VE}var g="@angular/core",d=class{static{this.NEW_METHOD="factory"}static{this.TRANSFORM_METHOD="transform"}static{this.PATCH_DEPS="patchedDeps"}static{this.core={name:null,moduleName:g}}static{this.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:g}}static{this.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:g}}static{this.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:g}}static{this.element={name:"\u0275\u0275element",moduleName:g}}static{this.elementStart={name:"\u0275\u0275elementStart",moduleName:g}}static{this.elementEnd={name:"\u0275\u0275elementEnd",moduleName:g}}static{this.advance={name:"\u0275\u0275advance",moduleName:g}}static{this.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:g}}static{this.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:g}}static{this.attribute={name:"\u0275\u0275attribute",moduleName:g}}static{this.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:g}}static{this.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:g}}static{this.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:g}}static{this.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:g}}static{this.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:g}}static{this.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:g}}static{this.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:g}}static{this.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:g}}static{this.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:g}}static{this.classProp={name:"\u0275\u0275classProp",moduleName:g}}static{this.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:g}}static{this.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:g}}static{this.elementContainer={name:"\u0275\u0275elementContainer",moduleName:g}}static{this.styleMap={name:"\u0275\u0275styleMap",moduleName:g}}static{this.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:g}}static{this.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:g}}static{this.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:g}}static{this.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:g}}static{this.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:g}}static{this.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:g}}static{this.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:g}}static{this.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:g}}static{this.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:g}}static{this.classMap={name:"\u0275\u0275classMap",moduleName:g}}static{this.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:g}}static{this.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:g}}static{this.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:g}}static{this.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:g}}static{this.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:g}}static{this.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:g}}static{this.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:g}}static{this.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:g}}static{this.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:g}}static{this.styleProp={name:"\u0275\u0275styleProp",moduleName:g}}static{this.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:g}}static{this.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:g}}static{this.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:g}}static{this.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:g}}static{this.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:g}}static{this.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:g}}static{this.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:g}}static{this.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:g}}static{this.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:g}}static{this.nextContext={name:"\u0275\u0275nextContext",moduleName:g}}static{this.resetView={name:"\u0275\u0275resetView",moduleName:g}}static{this.templateCreate={name:"\u0275\u0275template",moduleName:g}}static{this.defer={name:"\u0275\u0275defer",moduleName:g}}static{this.deferWhen={name:"\u0275\u0275deferWhen",moduleName:g}}static{this.deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:g}}static{this.deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:g}}static{this.deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:g}}static{this.deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:g}}static{this.deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:g}}static{this.deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:g}}static{this.deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:g}}static{this.deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:g}}static{this.deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:g}}static{this.deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:g}}static{this.deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:g}}static{this.deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:g}}static{this.deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:g}}static{this.deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:g}}static{this.conditional={name:"\u0275\u0275conditional",moduleName:g}}static{this.repeater={name:"\u0275\u0275repeater",moduleName:g}}static{this.repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:g}}static{this.repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:g}}static{this.repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:g}}static{this.componentInstance={name:"\u0275\u0275componentInstance",moduleName:g}}static{this.text={name:"\u0275\u0275text",moduleName:g}}static{this.enableBindings={name:"\u0275\u0275enableBindings",moduleName:g}}static{this.disableBindings={name:"\u0275\u0275disableBindings",moduleName:g}}static{this.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:g}}static{this.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:g}}static{this.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:g}}static{this.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:g}}static{this.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:g}}static{this.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:g}}static{this.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:g}}static{this.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:g}}static{this.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:g}}static{this.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:g}}static{this.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:g}}static{this.restoreView={name:"\u0275\u0275restoreView",moduleName:g}}static{this.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:g}}static{this.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:g}}static{this.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:g}}static{this.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:g}}static{this.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:g}}static{this.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:g}}static{this.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:g}}static{this.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:g}}static{this.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:g}}static{this.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:g}}static{this.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:g}}static{this.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:g}}static{this.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:g}}static{this.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:g}}static{this.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:g}}static{this.hostProperty={name:"\u0275\u0275hostProperty",moduleName:g}}static{this.property={name:"\u0275\u0275property",moduleName:g}}static{this.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:g}}static{this.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:g}}static{this.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:g}}static{this.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:g}}static{this.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:g}}static{this.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:g}}static{this.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:g}}static{this.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:g}}static{this.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:g}}static{this.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:g}}static{this.i18n={name:"\u0275\u0275i18n",moduleName:g}}static{this.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:g}}static{this.i18nExp={name:"\u0275\u0275i18nExp",moduleName:g}}static{this.i18nStart={name:"\u0275\u0275i18nStart",moduleName:g}}static{this.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:g}}static{this.i18nApply={name:"\u0275\u0275i18nApply",moduleName:g}}static{this.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:g}}static{this.pipe={name:"\u0275\u0275pipe",moduleName:g}}static{this.projection={name:"\u0275\u0275projection",moduleName:g}}static{this.projectionDef={name:"\u0275\u0275projectionDef",moduleName:g}}static{this.reference={name:"\u0275\u0275reference",moduleName:g}}static{this.inject={name:"\u0275\u0275inject",moduleName:g}}static{this.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:g}}static{this.directiveInject={name:"\u0275\u0275directiveInject",moduleName:g}}static{this.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:g}}static{this.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:g}}static{this.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:g}}static{this.forwardRef={name:"forwardRef",moduleName:g}}static{this.resolveForwardRef={name:"resolveForwardRef",moduleName:g}}static{this.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:g}}static{this.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:g}}static{this.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:g}}static{this.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:g}}static{this.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:g}}static{this.resolveBody={name:"\u0275\u0275resolveBody",moduleName:g}}static{this.getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:g}}static{this.defineComponent={name:"\u0275\u0275defineComponent",moduleName:g}}static{this.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:g}}static{this.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:g}}static{this.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:g}}static{this.ViewEncapsulation={name:"ViewEncapsulation",moduleName:g}}static{this.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:g}}static{this.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:g}}static{this.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:g}}static{this.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:g}}static{this.defineDirective={name:"\u0275\u0275defineDirective",moduleName:g}}static{this.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:g}}static{this.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:g}}static{this.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:g}}static{this.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:g}}static{this.defineInjector={name:"\u0275\u0275defineInjector",moduleName:g}}static{this.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:g}}static{this.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:g}}static{this.ModuleWithProviders={name:"ModuleWithProviders",moduleName:g}}static{this.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:g}}static{this.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:g}}static{this.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:g}}static{this.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:g}}static{this.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:g}}static{this.definePipe={name:"\u0275\u0275definePipe",moduleName:g}}static{this.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:g}}static{this.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:g}}static{this.declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:g}}static{this.setClassMetadata={name:"\u0275setClassMetadata",moduleName:g}}static{this.setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:g}}static{this.setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:g}}static{this.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:g}}static{this.viewQuery={name:"\u0275\u0275viewQuery",moduleName:g}}static{this.loadQuery={name:"\u0275\u0275loadQuery",moduleName:g}}static{this.contentQuery={name:"\u0275\u0275contentQuery",moduleName:g}}static{this.viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:g}}static{this.contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:g}}static{this.queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:g}}static{this.twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:g}}static{this.twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:g}}static{this.twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:g}}static{this.declareLet={name:"\u0275\u0275declareLet",moduleName:g}}static{this.storeLet={name:"\u0275\u0275storeLet",moduleName:g}}static{this.readContextLet={name:"\u0275\u0275readContextLet",moduleName:g}}static{this.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:g}}static{this.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:g}}static{this.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:g}}static{this.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:g}}static{this.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:g}}static{this.HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:g}}static{this.InputTransformsFeatureFeature={name:"\u0275\u0275InputTransformsFeature",moduleName:g}}static{this.listener={name:"\u0275\u0275listener",moduleName:g}}static{this.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:g}}static{this.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:g}}static{this.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:g}}static{this.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:g}}static{this.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:g}}static{this.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:g}}static{this.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:g}}static{this.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:g}}static{this.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:g}}static{this.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:g}}static{this.InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:g}}static{this.UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:g}}static{this.unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:g}}},GE=/-+([a-z0-9])/g;function HE(t){return t.replace(GE,(...e)=>e[1].toUpperCase())}function WE(t,e){return cd(t,":",e)}function jE(t,e){return cd(t,".",e)}function cd(t,e,n){let r=t.indexOf(e);return r==-1?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function KE(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 ud(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(ud).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(`
4
+ `;return e+=" ",e}var io=Object.freeze({__proto__:null,get TypeModifier(){return Ei},Type:or,get BuiltinTypeName(){return qt},BuiltinType:Jt,ExpressionType:it,ArrayType:ql,MapType:Gl,TransplantedType:Ns,DYNAMIC_TYPE:Er,INFERRED_TYPE:At,BOOL_TYPE:td,INT_TYPE:NE,NUMBER_TYPE:Fa,STRING_TYPE:fu,FUNCTION_TYPE:bE,NONE_TYPE:Zt,get UnaryOperator(){return mn},get BinaryOperator(){return A},nullSafeIsEquivalent:nd,areAllEquivalent:at,Expression:ne,ReadVarExpr:Nt,TypeofExpr:Br,WrappedNodeExpr:U,WriteVarExpr:Si,WriteKeyExpr:bs,WritePropExpr:$r,InvokeFunctionExpr:ze,TaggedTemplateExpr:wi,InstantiateExpr:Ds,LiteralExpr:Ce,TemplateLiteral:qo,TemplateLiteralElement:Go,LiteralPiece:sr,PlaceholderPiece:Pr,LocalizedString:Ti,ExternalExpr:qe,ExternalReference:Ho,ConditionalExpr:en,DynamicImportExpr:Wl,NotExpr:_s,FnParam:Fe,FunctionExpr:Yt,ArrowFunctionExpr:Ln,UnaryOperatorExpr:ar,BinaryOperatorExpr:ee,ReadPropExpr:lt,ReadKeyExpr:gn,LiteralArrayExpr:ct,LiteralMapEntry:Ur,LiteralMapExpr:Gt,CommaExpr:jl,NULL_EXPR:Rs,TYPED_NULL_EXPR:sd,get StmtModifier(){return Re},LeadingComment:xi,JSDocComment:Ci,Statement:lr,DeclareVarStmt:Xe,DeclareFunctionStmt:ks,ExpressionStatement:bt,ReturnStatement:et,IfStmt:Ii,RecursiveAstVisitor:Kl,leadingComment:PE,jsDocComment:id,variable:W,importExpr:L,importType:ME,expressionType:Be,transplantedType:LE,typeofExpr:ro,literalArr:se,literalMap:Ye,unary:OE,not:od,fn:ts,arrowFn:tn,ifStmt:so,taggedTemplate:ad,literal:y,localizedString:ld,isNull:FE}),$E="_c",gh=W("<unknown>"),UE={},VE=50,Wo=class t extends ne{constructor(e){super(e.type),this.resolved=e,this.shared=!1,this.original=e}visitExpression(e,n){return n===UE?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}},Ai=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 Ce&&!yh(e)||e instanceof Wo)return e;let r=Is.INSTANCE.keyOf(e),s=this.literals.get(r),i=!1;if(s||(s=new Wo(e),this.literals.set(r,s),i=!0),!i&&!s.shared||i&&n){let o=this.freshName(),a,l;this.isClosureCompilerEnabled&&yh(e)?(a=W(o).set(new Yt([],[new et(e)])),l=W(o).callFn([])):(a=W(o).set(e),l=W(o)),this.statements.push(a.toDeclStmt(At,Re.Final)),s.fixup(l)}return s}getSharedConstant(e,n){let r=e.keyOf(n);if(!this.sharedConstants.has(r)){let s=this.freshName();this.sharedConstants.set(r,W(s)),this.statements.push(e.toSharedConstantDeclaration(s,n))}return this.sharedConstants.get(r)}getLiteralFactory(e){if(e instanceof ct){let n=e.entries.map(s=>s.isConstant()?s:gh),r=Is.INSTANCE.keyOf(se(n));return this._getLiteralFactory(r,e.entries,s=>se(s))}else{let n=Ye(e.entries.map(s=>({key:s.key,value:s.value.isConstant()?s.value:gh,quoted:s.quoted}))),r=Is.INSTANCE.keyOf(n);return this._getLiteralFactory(r,e.entries.map(s=>s.value),s=>Ye(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 Ln;for(let o of this.statements)if(s&&o instanceof Xe&&o.value?.isEquivalent(e)||!s&&o instanceof ks&&e instanceof Yt&&e.isEquivalent(o))return W(o.name);let i=r?this.uniqueName(n):n;return this.statements.push(e instanceof Yt?e.toDeclStmt(i,Re.Final):new Xe(i,e,At,Re.Final,e.sourceSpan)),W(i)}_getLiteralFactory(e,n,r){let s=this.literalFactories.get(e),i=n.filter(o=>!o.isConstant());if(!s){let o=n.map((u,h)=>u.isConstant()?this.getConstLiteral(u,!0):W(`a${h}`)),a=o.filter(qE).map(u=>new Fe(u.name,Er)),l=tn(a,r(o),At),c=this.freshName();this.statements.push(W(c).set(l).toDeclStmt(At,Re.Final)),s=W(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($E)}},Is=class t{static{this.INSTANCE=new t}keyOf(e){if(e instanceof Ce&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof Ce)return String(e.value);if(e instanceof ct){let n=[];for(let r of e.entries)n.push(this.keyOf(r));return`[${n.join(",")}]`}else if(e instanceof Gt){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 qe)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof Nt)return`read(${e.name})`;if(e instanceof Br)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};function qE(t){return t instanceof Nt}function yh(t){return t instanceof Ce&&typeof t.value=="string"&&t.value.length>=VE}var g="@angular/core",d=class{static{this.NEW_METHOD="factory"}static{this.TRANSFORM_METHOD="transform"}static{this.PATCH_DEPS="patchedDeps"}static{this.core={name:null,moduleName:g}}static{this.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:g}}static{this.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:g}}static{this.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:g}}static{this.element={name:"\u0275\u0275element",moduleName:g}}static{this.elementStart={name:"\u0275\u0275elementStart",moduleName:g}}static{this.elementEnd={name:"\u0275\u0275elementEnd",moduleName:g}}static{this.advance={name:"\u0275\u0275advance",moduleName:g}}static{this.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:g}}static{this.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:g}}static{this.attribute={name:"\u0275\u0275attribute",moduleName:g}}static{this.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:g}}static{this.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:g}}static{this.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:g}}static{this.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:g}}static{this.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:g}}static{this.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:g}}static{this.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:g}}static{this.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:g}}static{this.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:g}}static{this.classProp={name:"\u0275\u0275classProp",moduleName:g}}static{this.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:g}}static{this.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:g}}static{this.elementContainer={name:"\u0275\u0275elementContainer",moduleName:g}}static{this.styleMap={name:"\u0275\u0275styleMap",moduleName:g}}static{this.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:g}}static{this.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:g}}static{this.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:g}}static{this.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:g}}static{this.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:g}}static{this.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:g}}static{this.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:g}}static{this.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:g}}static{this.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:g}}static{this.classMap={name:"\u0275\u0275classMap",moduleName:g}}static{this.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:g}}static{this.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:g}}static{this.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:g}}static{this.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:g}}static{this.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:g}}static{this.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:g}}static{this.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:g}}static{this.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:g}}static{this.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:g}}static{this.styleProp={name:"\u0275\u0275styleProp",moduleName:g}}static{this.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:g}}static{this.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:g}}static{this.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:g}}static{this.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:g}}static{this.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:g}}static{this.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:g}}static{this.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:g}}static{this.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:g}}static{this.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:g}}static{this.nextContext={name:"\u0275\u0275nextContext",moduleName:g}}static{this.resetView={name:"\u0275\u0275resetView",moduleName:g}}static{this.templateCreate={name:"\u0275\u0275template",moduleName:g}}static{this.defer={name:"\u0275\u0275defer",moduleName:g}}static{this.deferWhen={name:"\u0275\u0275deferWhen",moduleName:g}}static{this.deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:g}}static{this.deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:g}}static{this.deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:g}}static{this.deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:g}}static{this.deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:g}}static{this.deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:g}}static{this.deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:g}}static{this.deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:g}}static{this.deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:g}}static{this.deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:g}}static{this.deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:g}}static{this.deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:g}}static{this.deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:g}}static{this.deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:g}}static{this.conditional={name:"\u0275\u0275conditional",moduleName:g}}static{this.repeater={name:"\u0275\u0275repeater",moduleName:g}}static{this.repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:g}}static{this.repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:g}}static{this.repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:g}}static{this.componentInstance={name:"\u0275\u0275componentInstance",moduleName:g}}static{this.text={name:"\u0275\u0275text",moduleName:g}}static{this.enableBindings={name:"\u0275\u0275enableBindings",moduleName:g}}static{this.disableBindings={name:"\u0275\u0275disableBindings",moduleName:g}}static{this.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:g}}static{this.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:g}}static{this.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:g}}static{this.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:g}}static{this.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:g}}static{this.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:g}}static{this.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:g}}static{this.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:g}}static{this.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:g}}static{this.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:g}}static{this.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:g}}static{this.restoreView={name:"\u0275\u0275restoreView",moduleName:g}}static{this.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:g}}static{this.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:g}}static{this.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:g}}static{this.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:g}}static{this.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:g}}static{this.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:g}}static{this.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:g}}static{this.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:g}}static{this.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:g}}static{this.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:g}}static{this.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:g}}static{this.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:g}}static{this.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:g}}static{this.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:g}}static{this.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:g}}static{this.hostProperty={name:"\u0275\u0275hostProperty",moduleName:g}}static{this.property={name:"\u0275\u0275property",moduleName:g}}static{this.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:g}}static{this.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:g}}static{this.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:g}}static{this.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:g}}static{this.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:g}}static{this.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:g}}static{this.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:g}}static{this.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:g}}static{this.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:g}}static{this.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:g}}static{this.i18n={name:"\u0275\u0275i18n",moduleName:g}}static{this.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:g}}static{this.i18nExp={name:"\u0275\u0275i18nExp",moduleName:g}}static{this.i18nStart={name:"\u0275\u0275i18nStart",moduleName:g}}static{this.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:g}}static{this.i18nApply={name:"\u0275\u0275i18nApply",moduleName:g}}static{this.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:g}}static{this.pipe={name:"\u0275\u0275pipe",moduleName:g}}static{this.projection={name:"\u0275\u0275projection",moduleName:g}}static{this.projectionDef={name:"\u0275\u0275projectionDef",moduleName:g}}static{this.reference={name:"\u0275\u0275reference",moduleName:g}}static{this.inject={name:"\u0275\u0275inject",moduleName:g}}static{this.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:g}}static{this.directiveInject={name:"\u0275\u0275directiveInject",moduleName:g}}static{this.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:g}}static{this.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:g}}static{this.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:g}}static{this.forwardRef={name:"forwardRef",moduleName:g}}static{this.resolveForwardRef={name:"resolveForwardRef",moduleName:g}}static{this.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:g}}static{this.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:g}}static{this.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:g}}static{this.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:g}}static{this.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:g}}static{this.resolveBody={name:"\u0275\u0275resolveBody",moduleName:g}}static{this.getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:g}}static{this.defineComponent={name:"\u0275\u0275defineComponent",moduleName:g}}static{this.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:g}}static{this.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:g}}static{this.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:g}}static{this.ViewEncapsulation={name:"ViewEncapsulation",moduleName:g}}static{this.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:g}}static{this.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:g}}static{this.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:g}}static{this.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:g}}static{this.defineDirective={name:"\u0275\u0275defineDirective",moduleName:g}}static{this.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:g}}static{this.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:g}}static{this.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:g}}static{this.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:g}}static{this.defineInjector={name:"\u0275\u0275defineInjector",moduleName:g}}static{this.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:g}}static{this.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:g}}static{this.ModuleWithProviders={name:"ModuleWithProviders",moduleName:g}}static{this.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:g}}static{this.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:g}}static{this.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:g}}static{this.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:g}}static{this.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:g}}static{this.definePipe={name:"\u0275\u0275definePipe",moduleName:g}}static{this.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:g}}static{this.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:g}}static{this.declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:g}}static{this.setClassMetadata={name:"\u0275setClassMetadata",moduleName:g}}static{this.setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:g}}static{this.setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:g}}static{this.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:g}}static{this.viewQuery={name:"\u0275\u0275viewQuery",moduleName:g}}static{this.loadQuery={name:"\u0275\u0275loadQuery",moduleName:g}}static{this.contentQuery={name:"\u0275\u0275contentQuery",moduleName:g}}static{this.viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:g}}static{this.contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:g}}static{this.queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:g}}static{this.twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:g}}static{this.twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:g}}static{this.twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:g}}static{this.declareLet={name:"\u0275\u0275declareLet",moduleName:g}}static{this.storeLet={name:"\u0275\u0275storeLet",moduleName:g}}static{this.readContextLet={name:"\u0275\u0275readContextLet",moduleName:g}}static{this.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:g}}static{this.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:g}}static{this.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:g}}static{this.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:g}}static{this.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:g}}static{this.HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:g}}static{this.InputTransformsFeatureFeature={name:"\u0275\u0275InputTransformsFeature",moduleName:g}}static{this.listener={name:"\u0275\u0275listener",moduleName:g}}static{this.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:g}}static{this.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:g}}static{this.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:g}}static{this.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:g}}static{this.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:g}}static{this.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:g}}static{this.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:g}}static{this.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:g}}static{this.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:g}}static{this.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:g}}static{this.InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:g}}static{this.UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:g}}static{this.unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:g}}},GE=/-+([a-z0-9])/g;function HE(t){return t.replace(GE,(...e)=>e[1].toUpperCase())}function WE(t,e){return cd(t,":",e)}function jE(t,e){return cd(t,".",e)}function cd(t,e,n){let r=t.indexOf(e);return r==-1?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function KE(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 ud(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(ud).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(`
5
5
  `);return n===-1?e:e.substring(0,n)}var Ni=class{constructor(e){this.full=e;let n=e.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},ui=globalThis;var zE=3,XE="# sourceMappingURL=data:application/json;base64,",zl=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,u)=>{e.set(c,u),n.push(c),r.push(this.sourcesContent.get(c)||null)});let s="",i=0,o=0,a=0,l=0;return this.lines.forEach(c=>{i=0,s+=c.map(u=>{let h=_o(u.col0-i);return i=u.col0,u.sourceUrl!=null&&(h+=_o(e.get(u.sourceUrl)-o),o=e.get(u.sourceUrl),h+=_o(u.sourceLine0-a),a=u.sourceLine0,h+=_o(u.sourceCol0-l),l=u.sourceCol0),h}).join(","),s+=";"}),s=s.slice(0,-1),{file:this.file||"",version:zE,sourceRoot:"",sources:n,sourcesContent:r,mappings:s}}toJsComment(){return this.hasMappings?"//"+XE+YE(JSON.stringify(this,null,0)):""}};function YE(t){let e="",n=KE(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+=ai(s>>2),e+=ai((s&3)<<4|(i===null?0:i>>4)),e+=i===null?"=":ai((i&15)<<2|(o===null?0:o>>6)),e+=i===null||o===null?"=":ai(o&63)}return e}function _o(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+=ai(n)}while(t>0);return e}var QE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function ai(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return QE[t]}var JE=/'|\\|\n|\r|\$/g,ZE=/^[$A-Z_][0-9A-Z_$]*$/i,Xl=" ",jo=class{constructor(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]}},Yl=class t{static createRoot(){return new t(0)}constructor(e){this._indent=e,this._lines=[new jo(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*Xl.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 jo(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?vh(e.indent)+e.parts.join(""):"").join(`
6
6
  `)}toSourceMapGenerator(e,n=0){let r=new zl(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 l=o.srcSpans,c=o.parts,u=o.indent*Xl.length,h=0;for(;h<l.length&&!l[h];)u+=c[h].length,h++;for(h<l.length&&a===0&&u===0?s=!0:i();h<l.length;){let f=l[h],m=f.start.file,E=f.start.line,S=f.start.col;for(r.addSource(m.url,m.content).addMapping(u,m.url,E,S),u+=c[h].length,h++;h<l.length&&(f===l[h]||!l[h]);)u+=c[h].length,h++}}),r}spanOf(e,n){let r=this._lines[e];if(r){let s=n-vh(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}},Ql=class{constructor(e){this._escapeDollarInStrings=e}printLeadingComments(e,n){if(e.leadingComments!==void 0)for(let r of e.leadingComments)r instanceof Ci?n.print(e,`/*${r.toString()}*/`,r.trailingNewline):r.multiline?n.print(e,`/* ${r.text} */`,r.trailingNewline):r.text.split(`
7
7
  `).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 Ln;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,_r(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 mn.Plus:r="+";break;case mn.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 A.Equals:r="==";break;case A.Identical:r="===";break;case A.NotEquals:r="!=";break;case A.NotIdentical:r="!==";break;case A.And:r="&&";break;case A.BitwiseOr:r="|";break;case A.BitwiseAnd:r="&";break;case A.Or:r="||";break;case A.Plus:r="+";break;case A.Minus:r="-";break;case A.Divide:r="/";break;case A.Multiply:r="*";break;case A.Modulo:r="%";break;case A.Lower:r="<";break;case A.LowerEquals:r="<=";break;case A.Bigger:r=">";break;case A.BiggerEquals:r=">=";break;case A.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,`${_r(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 _r(t,e,n=!0){if(t==null)return null;let r=t.replace(JE,(...i)=>i[0]=="$"?e?"\\$":"$":i[0]==`
8
- `?"\\n":i[0]=="\r"?"\\r":`\\${i[0]}`);return n||!ZE.test(r)?`'${r}'`:r}function vh(t){let e="";for(let n=0;n<t;n++)e+=Xl;return e}function Ba(t,e){if(e===0)return Be(t);let n=[];for(let r=0;r<e;r++)n.push(Er);return Be(t,void 0,n)}function pd(t,e){let n=_r(e,!1,!1);return n!==e?`${t}[${n}]`:`${t}.${e}`}function eS(t){return tS("ngJitMode",t)}function tS(t,e){let n=new qe({name:t,moduleName:null}),r=new ee(A.Identical,new Br(n),y("undefined")),s=new ee(A.Or,r,n,void 0,void 0,!0);return new ee(A.And,s,e)}function Le(t){let e=new U(t);return{value:e,type:e}}function Rr(t,e){let n=se(t.map(r=>r.value));return e?tn([],n):n}function ts(t,e){return{expression:t,forwardRef:e}}function nS({expression:t,forwardRef:e}){switch(e){case 0:case 1:return t;case 2:return rS(t)}}function rS(t){return L(d.forwardRef).callFn([tn([],t)])}var bi;(function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"})(bi||(bi={}));var st;(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"})(st||(st={}));function er(t){let e=W("__ngFactoryType__"),n=null,r=Sh(t)?e:new ee(A.Or,e,t.type.value),s=null;t.deps!==null?t.deps!=="invalid"&&(s=new bs(r,Eh(t.deps,t.target))):(n=W(`\u0275${t.name}_BaseFactory`),s=n.callFn([r]));let i=[],o=null;function a(c){let u=W("__ngConditionalFactory__");i.push(u.set(_s).toDeclStmt());let h=s!==null?u.set(s).toStmt():L(d.invalidFactory).callFn([]).toStmt();return i.push(so(e,[h],[u.set(c).toStmt()])),u}if(Sh(t)){let c=Eh(t.delegateDeps,t.target),u=new(t.delegateType===bi.Class?bs:ze)(t.delegate,c);o=a(u)}else lS(t)?o=a(t.expression):o=s;if(o===null)i.push(L(d.invalidFactory).callFn([]).toStmt());else if(n!==null){let c=L(d.getInheritedFactory).callFn([t.type.value]),u=new ee(A.Or,n,n.set(c));i.push(new et(u.callFn([r])))}else i.push(new et(o));let l=es([new Fe(e.name,Er)],i,At,void 0,`${t.name}_Factory`);return n!==null&&(l=tn([],[new Xe(n.name),new et(l)]).callFn([],void 0,!0)),{expression:l,statements:[],type:sS(t)}}function sS(t){let e=t.deps!==null&&t.deps!=="invalid"?oS(t.deps):Zt;return Be(L(d.FactoryDeclaration,[Ba(t.type.type,t.typeArgumentCount),e]))}function Eh(t,e){return t.map((n,r)=>iS(n,e,r))}function iS(t,e,n){if(t.token===null)return L(d.invalidFactoryDep).callFn([y(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===st.Pipe?16:0),s=r!==0||t.optional?y(r):null,i=[t.token];s&&i.push(s);let o=cS(e);return L(o).callFn(i)}else return L(d.injectAttribute).callFn([t.token])}function oS(t){let e=!1,n=t.map(r=>{let s=aS(r);return s!==null?(e=!0,s):y(null)});return e?Be(se(n)):Zt}function aS(t){let e=[];return t.attributeNameType!==null&&e.push({key:"attribute",value:t.attributeNameType,quoted:!1}),t.optional&&e.push({key:"optional",value:y(!0),quoted:!1}),t.host&&e.push({key:"host",value:y(!0),quoted:!1}),t.self&&e.push({key:"self",value:y(!0),quoted:!1}),t.skipSelf&&e.push({key:"skipSelf",value:y(!0),quoted:!1}),e.length>0?Ye(e):null}function Sh(t){return t.delegateType!==void 0}function lS(t){return t.expression!==void 0}function cS(t){switch(t){case st.Component:case st.Directive:case st.Pipe:return d.directiveInject;case st.NgModule:case st.Injectable:default:return d.inject}}var Di=class{constructor(e,n,r,s){this.input=n,this.errLocation=r,this.ctxLocation=s,this.message=`Parser Error: ${e} ${r} [${n}] in ${s}`}},Vr=class{constructor(e,n){this.start=e,this.end=n}toAbsolute(e){return new je(e+this.start,e+this.end)}},me=class{constructor(e,n){this.span=e,this.sourceSpan=n}toString(){return"AST"}},ks=class extends me{constructor(e,n,r){super(e,n),this.nameSpan=r}},Ve=class extends me{visit(e,n=null){}},$e=class extends me{visit(e,n=null){return e.visitImplicitReceiver(this,n)}},fn=class extends $e{visit(e,n=null){return e.visitThisReceiver?.(this,n)}},cr=class extends me{constructor(e,n,r){super(e,n),this.expressions=r}visit(e,n=null){return e.visitChain(this,n)}},qr=class extends me{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)}},Ie=class extends ks{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)}},On=class extends ks{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)}},ut=class extends ks{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)}},Ps=class extends me{constructor(e,n,r,s){super(e,n),this.receiver=r,this.key=s}visit(e,n=null){return e.visitKeyedRead(this,n)}},ur=class extends me{constructor(e,n,r,s){super(e,n),this.receiver=r,this.key=s}visit(e,n=null){return e.visitSafeKeyedRead(this,n)}},Ko=class extends me{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)}},Gr=class extends ks{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)}},Ft=class extends me{constructor(e,n,r){super(e,n),this.value=r}visit(e,n=null){return e.visitLiteralPrimitive(this,n)}},zo=class extends me{constructor(e,n,r){super(e,n),this.expressions=r}visit(e,n=null){return e.visitLiteralArray(this,n)}},Xo=class extends me{constructor(e,n,r,s){super(e,n),this.keys=r,this.values=s}visit(e,n=null){return e.visitLiteralMap(this,n)}},Fn=class extends me{constructor(e,n,r,s){super(e,n),this.strings=r,this.expressions=s}visit(e,n=null){return e.visitInterpolation(this,n)}},mt=class extends me{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)}},_i=class t extends mt{static createMinus(e,n,r){return new t(e,n,"-",r,"-",new Ft(e,n,0),r)}static createPlus(e,n,r){return new t(e,n,"+",r,"-",r,new Ft(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)}},Ri=class extends me{constructor(e,n,r){super(e,n),this.expression=r}visit(e,n=null){return e.visitPrefixNot(this,n)}},ki=class extends me{constructor(e,n,r){super(e,n),this.expression=r}visit(e,n=null){return e.visitNonNullAssert(this,n)}},yn=class extends me{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)}},vn=class extends me{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)}},je=class{constructor(e,n){this.start=e,this.end=n}},de=class extends me{constructor(e,n,r,s,i){super(new Vr(0,n===null?0:n.length),new je(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}`}},Pi=class{constructor(e,n,r){this.sourceSpan=e,this.key=n,this.value=r}},Jl=class{constructor(e,n,r){this.sourceSpan=e,this.key=n,this.value=r}},pr=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 pi=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===An.LITERAL_ATTR,this.isAnimation=this.type===An.ANIMATION}},An;(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"})(An||(An={}));var ke;(function(t){t[t.Regular=0]="Regular",t[t.Animation=1]="Animation",t[t.TwoWay=2]="TwoWay"})(ke||(ke={}));var Yo=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}},Zl=class{constructor(e,n,r,s,i){this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}},z;(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"})(z||(z={}));var Qo=class{constructor(e,n,r,s,i,o,a,l){this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l}},Kt;(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"})(Kt||(Kt={}));function nn(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 wh(t){return nn(t)[1]==="ng-container"}function ec(t){return nn(t)[1]==="ng-content"}function uS(t){return nn(t)[1]==="ng-template"}function tc(t){return t===null?null:nn(t)[0]}function nc(t,e){return t?`:${t}:${e}`:e}var Ms=class{constructor(e,n){this.value=e,this.sourceSpan=n}visit(e){throw new Error("visit() not implemented for Comment")}},zt=class{constructor(e,n){this.value=e,this.sourceSpan=n}visit(e){return e.visitText(this)}},Bn=class{constructor(e,n,r){this.value=e,this.sourceSpan=n,this.i18n=r}visit(e){return e.visitBoundText(this)}},Dt=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)}},_t=class t{constructor(e,n,r,s,i,o,a,l,c){this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l,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)}},$n=class t{constructor(e,n,r,s,i,o,a,l){this.name=e,this.type=n,this.handler=r,this.target=s,this.phase=i,this.sourceSpan=o,this.handlerSpan=a,this.keySpan=l}static fromParsedEvent(e){let n=e.type===ke.Regular?e.targetOrPhase:null,r=e.type===ke.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)}},ie=class{constructor(e,n,r,s,i,o,a,l,c,u){this.name=e,this.attributes=n,this.inputs=r,this.outputs=s,this.children=i,this.references=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c,this.i18n=u}visit(e){return e.visitElement(this)}},Un=class{constructor(e,n,r,s){this.nameSpan=e,this.sourceSpan=n,this.prefetchSpan=r,this.whenOrOnSourceSpan=s}visit(e){return e.visitDeferredTrigger(this)}},Ls=class extends Un{constructor(e,n,r,s){super(null,n,r,s),this.value=e}},rc=class extends Un{},sc=class extends Un{},Jo=class extends Un{constructor(e,n,r,s,i){super(n,r,s,i),this.reference=e}},ic=class extends Un{constructor(e,n,r,s,i){super(n,r,s,i),this.delay=e}},Zo=class extends Un{constructor(e,n,r,s,i){super(n,r,s,i),this.reference=e}},ea=class extends Un{constructor(e,n,r,s,i){super(n,r,s,i),this.reference=e}},Ht=class{constructor(e,n,r,s){this.nameSpan=e,this.sourceSpan=n,this.startSourceSpan=r,this.endSourceSpan=s}},Mi=class extends Ht{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)}},Li=class extends Ht{constructor(e,n,r,s,i,o,a,l){super(s,i,o,a),this.children=e,this.afterTime=n,this.minimumTime=r,this.i18n=l}visit(e){return e.visitDeferredBlockLoading(this)}},Oi=class extends Ht{constructor(e,n,r,s,i,o){super(n,r,s,i),this.children=e,this.i18n=o}visit(e){return e.visitDeferredBlockError(this)}},Vn=class extends Ht{constructor(e,n,r,s,i,o,a,l,c,u,h,f){super(a,l,u,h),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),ml(e,this.children);let n=[this.placeholder,this.loading,this.error].filter(r=>r!==null);ml(e,n)}visitTriggers(e,n,r){ml(r,e.map(s=>n[s]))}},Hr=class extends Ht{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)}},Fi=class extends Ht{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)}},En=class extends Ht{constructor(e,n,r,s,i,o,a,l,c,u,h,f,m){super(f,l,u,h),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=m}visit(e){return e.visitForLoopBlock(this)}},Bi=class extends Ht{constructor(e,n,r,s,i,o){super(i,n,r,s),this.children=e,this.i18n=o}visit(e){return e.visitForLoopBlockEmpty(this)}},Wr=class extends Ht{constructor(e,n,r,s,i){super(i,n,r,s),this.branches=e}visit(e){return e.visitIfBlock(this)}},Rn=class extends Ht{constructor(e,n,r,s,i,o,a,l){super(a,s,i,o),this.expression=e,this.children=n,this.expressionAlias=r,this.i18n=l}visit(e){return e.visitIfBlockBranch(this)}},ta=class{constructor(e,n,r){this.name=e,this.sourceSpan=n,this.nameSpan=r}visit(e){return e.visitUnknownBlock(this)}},Qe=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)}},re=class{constructor(e,n,r,s,i,o,a,l,c,u,h,f){this.tagName=e,this.attributes=n,this.inputs=r,this.outputs=s,this.templateAttrs=i,this.children=o,this.references=a,this.variables=l,this.sourceSpan=c,this.startSourceSpan=u,this.endSourceSpan=h,this.i18n=f}visit(e){return e.visitTemplate(this)}},hr=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)}},pt=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)}},Sn=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)}},Os=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 ml(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 ot=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=pS(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=[]}},br=class{constructor(e,n){this.value=e,this.sourceSpan=n}visit(e,n){return e.visitText(this,n)}},kn=class{constructor(e,n){this.children=e,this.sourceSpan=n}visit(e,n){return e.visitContainer(this,n)}},na=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)}},fr=class{constructor(e,n,r,s,i,o,a,l,c){this.tag=e,this.attrs=n,this.startName=r,this.closeName=s,this.children=i,this.isVoid=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c}visit(e,n){return e.visitTagPlaceholder(this,n)}},ra=class{constructor(e,n,r){this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitPlaceholder(this,n)}},Fs=class{constructor(e,n,r){this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitIcuPlaceholder(this,n)}},dr=class{constructor(e,n,r,s,i,o,a,l){this.name=e,this.parameters=n,this.startName=r,this.closeName=s,this.children=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=l}visit(e,n){return e.visitBlockPlaceholder(this,n)}};function pS(t){let e=new oc;return t.map(r=>r.visit(e)).join("")}var oc=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 ac=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} [
8
+ `?"\\n":i[0]=="\r"?"\\r":`\\${i[0]}`);return n||!ZE.test(r)?`'${r}'`:r}function vh(t){let e="";for(let n=0;n<t;n++)e+=Xl;return e}function Ba(t,e){if(e===0)return Be(t);let n=[];for(let r=0;r<e;r++)n.push(Er);return Be(t,void 0,n)}function pd(t,e){let n=_r(e,!1,!1);return n!==e?`${t}[${n}]`:`${t}.${e}`}function eS(t){return tS("ngJitMode",t)}function tS(t,e){let n=new qe({name:t,moduleName:null}),r=new ee(A.Identical,new Br(n),y("undefined")),s=new ee(A.Or,r,n,void 0,void 0,!0);return new ee(A.And,s,e)}function Le(t){let e=new U(t);return{value:e,type:e}}function Rr(t,e){let n=se(t.map(r=>r.value));return e?tn([],n):n}function ns(t,e){return{expression:t,forwardRef:e}}function nS({expression:t,forwardRef:e}){switch(e){case 0:case 1:return t;case 2:return rS(t)}}function rS(t){return L(d.forwardRef).callFn([tn([],t)])}var bi;(function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"})(bi||(bi={}));var st;(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"})(st||(st={}));function er(t){let e=W("__ngFactoryType__"),n=null,r=Sh(t)?e:new ee(A.Or,e,t.type.value),s=null;t.deps!==null?t.deps!=="invalid"&&(s=new Ds(r,Eh(t.deps,t.target))):(n=W(`\u0275${t.name}_BaseFactory`),s=n.callFn([r]));let i=[],o=null;function a(c){let u=W("__ngConditionalFactory__");i.push(u.set(Rs).toDeclStmt());let h=s!==null?u.set(s).toStmt():L(d.invalidFactory).callFn([]).toStmt();return i.push(so(e,[h],[u.set(c).toStmt()])),u}if(Sh(t)){let c=Eh(t.delegateDeps,t.target),u=new(t.delegateType===bi.Class?Ds:ze)(t.delegate,c);o=a(u)}else lS(t)?o=a(t.expression):o=s;if(o===null)i.push(L(d.invalidFactory).callFn([]).toStmt());else if(n!==null){let c=L(d.getInheritedFactory).callFn([t.type.value]),u=new ee(A.Or,n,n.set(c));i.push(new et(u.callFn([r])))}else i.push(new et(o));let l=ts([new Fe(e.name,Er)],i,At,void 0,`${t.name}_Factory`);return n!==null&&(l=tn([],[new Xe(n.name),new et(l)]).callFn([],void 0,!0)),{expression:l,statements:[],type:sS(t)}}function sS(t){let e=t.deps!==null&&t.deps!=="invalid"?oS(t.deps):Zt;return Be(L(d.FactoryDeclaration,[Ba(t.type.type,t.typeArgumentCount),e]))}function Eh(t,e){return t.map((n,r)=>iS(n,e,r))}function iS(t,e,n){if(t.token===null)return L(d.invalidFactoryDep).callFn([y(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===st.Pipe?16:0),s=r!==0||t.optional?y(r):null,i=[t.token];s&&i.push(s);let o=cS(e);return L(o).callFn(i)}else return L(d.injectAttribute).callFn([t.token])}function oS(t){let e=!1,n=t.map(r=>{let s=aS(r);return s!==null?(e=!0,s):y(null)});return e?Be(se(n)):Zt}function aS(t){let e=[];return t.attributeNameType!==null&&e.push({key:"attribute",value:t.attributeNameType,quoted:!1}),t.optional&&e.push({key:"optional",value:y(!0),quoted:!1}),t.host&&e.push({key:"host",value:y(!0),quoted:!1}),t.self&&e.push({key:"self",value:y(!0),quoted:!1}),t.skipSelf&&e.push({key:"skipSelf",value:y(!0),quoted:!1}),e.length>0?Ye(e):null}function Sh(t){return t.delegateType!==void 0}function lS(t){return t.expression!==void 0}function cS(t){switch(t){case st.Component:case st.Directive:case st.Pipe:return d.directiveInject;case st.NgModule:case st.Injectable:default:return d.inject}}var Di=class{constructor(e,n,r,s){this.input=n,this.errLocation=r,this.ctxLocation=s,this.message=`Parser Error: ${e} ${r} [${n}] in ${s}`}},Vr=class{constructor(e,n){this.start=e,this.end=n}toAbsolute(e){return new je(e+this.start,e+this.end)}},me=class{constructor(e,n){this.span=e,this.sourceSpan=n}toString(){return"AST"}},qr=class extends me{constructor(e,n,r){super(e,n),this.nameSpan=r}},Ve=class extends me{visit(e,n=null){}},$e=class extends me{visit(e,n=null){return e.visitImplicitReceiver(this,n)}},fn=class extends $e{visit(e,n=null){return e.visitThisReceiver?.(this,n)}},cr=class extends me{constructor(e,n,r){super(e,n),this.expressions=r}visit(e,n=null){return e.visitChain(this,n)}},Gr=class extends me{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)}},Ie=class extends qr{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)}},On=class extends qr{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)}},ut=class extends qr{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)}},Ps=class extends me{constructor(e,n,r,s){super(e,n),this.receiver=r,this.key=s}visit(e,n=null){return e.visitKeyedRead(this,n)}},ur=class extends me{constructor(e,n,r,s){super(e,n),this.receiver=r,this.key=s}visit(e,n=null){return e.visitSafeKeyedRead(this,n)}},Ko=class extends me{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)}},Hr=class extends qr{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)}},Ft=class extends me{constructor(e,n,r){super(e,n),this.value=r}visit(e,n=null){return e.visitLiteralPrimitive(this,n)}},zo=class extends me{constructor(e,n,r){super(e,n),this.expressions=r}visit(e,n=null){return e.visitLiteralArray(this,n)}},Xo=class extends me{constructor(e,n,r,s){super(e,n),this.keys=r,this.values=s}visit(e,n=null){return e.visitLiteralMap(this,n)}},Fn=class extends me{constructor(e,n,r,s){super(e,n),this.strings=r,this.expressions=s}visit(e,n=null){return e.visitInterpolation(this,n)}},mt=class extends me{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)}},_i=class t extends mt{static createMinus(e,n,r){return new t(e,n,"-",r,"-",new Ft(e,n,0),r)}static createPlus(e,n,r){return new t(e,n,"+",r,"-",r,new Ft(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)}},Ri=class extends me{constructor(e,n,r){super(e,n),this.expression=r}visit(e,n=null){return e.visitPrefixNot(this,n)}},ki=class extends me{constructor(e,n,r){super(e,n),this.expression=r}visit(e,n=null){return e.visitNonNullAssert(this,n)}},yn=class extends me{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)}},vn=class extends me{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)}},je=class{constructor(e,n){this.start=e,this.end=n}},de=class extends me{constructor(e,n,r,s,i){super(new Vr(0,n===null?0:n.length),new je(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}`}},Pi=class{constructor(e,n,r){this.sourceSpan=e,this.key=n,this.value=r}},Jl=class{constructor(e,n,r){this.sourceSpan=e,this.key=n,this.value=r}},pr=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 pi=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===An.LITERAL_ATTR,this.isAnimation=this.type===An.ANIMATION}},An;(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"})(An||(An={}));var ke;(function(t){t[t.Regular=0]="Regular",t[t.Animation=1]="Animation",t[t.TwoWay=2]="TwoWay"})(ke||(ke={}));var Yo=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}},Zl=class{constructor(e,n,r,s,i){this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}},z;(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"})(z||(z={}));var Qo=class{constructor(e,n,r,s,i,o,a,l){this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l}},Kt;(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"})(Kt||(Kt={}));function nn(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 wh(t){return nn(t)[1]==="ng-container"}function ec(t){return nn(t)[1]==="ng-content"}function uS(t){return nn(t)[1]==="ng-template"}function tc(t){return t===null?null:nn(t)[0]}function nc(t,e){return t?`:${t}:${e}`:e}var Ms=class{constructor(e,n){this.value=e,this.sourceSpan=n}visit(e){throw new Error("visit() not implemented for Comment")}},zt=class{constructor(e,n){this.value=e,this.sourceSpan=n}visit(e){return e.visitText(this)}},Bn=class{constructor(e,n,r){this.value=e,this.sourceSpan=n,this.i18n=r}visit(e){return e.visitBoundText(this)}},Dt=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)}},_t=class t{constructor(e,n,r,s,i,o,a,l,c){this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l,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)}},$n=class t{constructor(e,n,r,s,i,o,a,l){this.name=e,this.type=n,this.handler=r,this.target=s,this.phase=i,this.sourceSpan=o,this.handlerSpan=a,this.keySpan=l}static fromParsedEvent(e){let n=e.type===ke.Regular?e.targetOrPhase:null,r=e.type===ke.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)}},ie=class{constructor(e,n,r,s,i,o,a,l,c,u){this.name=e,this.attributes=n,this.inputs=r,this.outputs=s,this.children=i,this.references=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c,this.i18n=u}visit(e){return e.visitElement(this)}},Un=class{constructor(e,n,r,s){this.nameSpan=e,this.sourceSpan=n,this.prefetchSpan=r,this.whenOrOnSourceSpan=s}visit(e){return e.visitDeferredTrigger(this)}},Ls=class extends Un{constructor(e,n,r,s){super(null,n,r,s),this.value=e}},rc=class extends Un{},sc=class extends Un{},Jo=class extends Un{constructor(e,n,r,s,i){super(n,r,s,i),this.reference=e}},ic=class extends Un{constructor(e,n,r,s,i){super(n,r,s,i),this.delay=e}},Zo=class extends Un{constructor(e,n,r,s,i){super(n,r,s,i),this.reference=e}},ea=class extends Un{constructor(e,n,r,s,i){super(n,r,s,i),this.reference=e}},Ht=class{constructor(e,n,r,s){this.nameSpan=e,this.sourceSpan=n,this.startSourceSpan=r,this.endSourceSpan=s}},Mi=class extends Ht{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)}},Li=class extends Ht{constructor(e,n,r,s,i,o,a,l){super(s,i,o,a),this.children=e,this.afterTime=n,this.minimumTime=r,this.i18n=l}visit(e){return e.visitDeferredBlockLoading(this)}},Oi=class extends Ht{constructor(e,n,r,s,i,o){super(n,r,s,i),this.children=e,this.i18n=o}visit(e){return e.visitDeferredBlockError(this)}},Vn=class extends Ht{constructor(e,n,r,s,i,o,a,l,c,u,h,f){super(a,l,u,h),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),ml(e,this.children);let n=[this.placeholder,this.loading,this.error].filter(r=>r!==null);ml(e,n)}visitTriggers(e,n,r){ml(r,e.map(s=>n[s]))}},Wr=class extends Ht{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)}},Fi=class extends Ht{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)}},En=class extends Ht{constructor(e,n,r,s,i,o,a,l,c,u,h,f,m){super(f,l,u,h),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=m}visit(e){return e.visitForLoopBlock(this)}},Bi=class extends Ht{constructor(e,n,r,s,i,o){super(i,n,r,s),this.children=e,this.i18n=o}visit(e){return e.visitForLoopBlockEmpty(this)}},jr=class extends Ht{constructor(e,n,r,s,i){super(i,n,r,s),this.branches=e}visit(e){return e.visitIfBlock(this)}},Rn=class extends Ht{constructor(e,n,r,s,i,o,a,l){super(a,s,i,o),this.expression=e,this.children=n,this.expressionAlias=r,this.i18n=l}visit(e){return e.visitIfBlockBranch(this)}},ta=class{constructor(e,n,r){this.name=e,this.sourceSpan=n,this.nameSpan=r}visit(e){return e.visitUnknownBlock(this)}},Qe=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)}},re=class{constructor(e,n,r,s,i,o,a,l,c,u,h,f){this.tagName=e,this.attributes=n,this.inputs=r,this.outputs=s,this.templateAttrs=i,this.children=o,this.references=a,this.variables=l,this.sourceSpan=c,this.startSourceSpan=u,this.endSourceSpan=h,this.i18n=f}visit(e){return e.visitTemplate(this)}},hr=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)}},pt=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)}},Sn=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)}},Os=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 ml(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 ot=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=pS(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=[]}},br=class{constructor(e,n){this.value=e,this.sourceSpan=n}visit(e,n){return e.visitText(this,n)}},kn=class{constructor(e,n){this.children=e,this.sourceSpan=n}visit(e,n){return e.visitContainer(this,n)}},na=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)}},fr=class{constructor(e,n,r,s,i,o,a,l,c){this.tag=e,this.attrs=n,this.startName=r,this.closeName=s,this.children=i,this.isVoid=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c}visit(e,n){return e.visitTagPlaceholder(this,n)}},ra=class{constructor(e,n,r){this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitPlaceholder(this,n)}},Fs=class{constructor(e,n,r){this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitIcuPlaceholder(this,n)}},dr=class{constructor(e,n,r,s,i,o,a,l){this.name=e,this.parameters=n,this.startName=r,this.closeName=s,this.children=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=l}visit(e,n){return e.visitBlockPlaceholder(this,n)}};function pS(t){let e=new oc;return t.map(r=>r.visit(e)).join("")}var oc=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 ac=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} [
9
9
  ${e.dtd}
10
- ]>`}},DM=new ac;function hS(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var hd="i18n",lc="i18n-",fS="VAR_";function fd(t){return t===hd||t.startsWith(lc)}function dS(t){return t.attrs.some(e=>fd(e.name))}function dd(t){return t.nodes[0]}function du(t={},e){let n={};return t&&Object.keys(t).length&&Object.keys(t).forEach(r=>n[oo(r,e)]=t[r]),n}function oo(t,e=!0){let n=hS(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 mS=/[-.]/,mu="_t",$i="ctx",gu="rf";function md(t,e){let n=null;return()=>(n||(t(new Xe(mu,void 0,Er)),n=W(e)),n)}function vs(t){return Array.isArray(t)?se(t.map(vs)):y(t,At)}function Th(t,e){let n=Object.getOwnPropertyNames(t);return n.length===0?null:Ye(n.map(r=>{let s=t[r],i,o,a,l;if(typeof s=="string")i=r,a=r,o=s,l=vs(o);else{a=r,i=s.classPropertyName,o=s.bindingPropertyName;let c=o!==i,u=s.transformFunction!==null,h=ys.None;if(s.isSignal&&(h|=ys.SignalBased),u&&(h|=ys.HasDecoratorInputTransform),e&&(c||u||h!==ys.None)){let f=[y(h),vs(o)];(c||u)&&(f.push(vs(i)),u&&f.push(s.transformFunction)),l=se(f)}else l=vs(o)}return{key:a,quoted:mS.test(a),value:l}}))}var mr=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 Ye(this.values)}};function yu(t){let e=t instanceof ie?t.name:"ng-template",n=gS(t),r=new Qt,s=nn(e)[1];return r.setElement(s),Object.getOwnPropertyNames(n).forEach(i=>{let o=nn(i)[1],a=n[i];r.addAttribute(o,a),i.toLowerCase()==="class"&&a.trim().split(/\s+/).forEach(c=>r.addClassName(c))}),r}function gS(t){let e={};return t instanceof re&&t.tagName!=="ng-template"?t.templateAttrs.forEach(n=>e[n.name]=""):(t.attributes.forEach(n=>{fd(n.name)||(e[n.name]=n.value)}),t.inputs.forEach(n=>{(n.type===z.Property||n.type===z.TwoWay)&&(e[n.name]="")}),t.outputs.forEach(n=>{e[n.name]=""})),e}function cc(t,e){let n=null,r={name:t.name,type:t.type,typeArgumentCount:t.typeArgumentCount,deps:[],target:st.Injectable};if(t.useClass!==void 0){let a=t.useClass.expression.isEquivalent(t.type.value),l;t.deps!==void 0&&(l=t.deps),l!==void 0?n=er({...r,delegate:t.useClass.expression,delegateDeps:l,delegateType:bi.Class}):a?n=er(r):n={statements:[],expression:xh(t.type.value,t.useClass.expression,e)}}else t.useFactory!==void 0?t.deps!==void 0?n=er({...r,delegate:t.useFactory,delegateDeps:t.deps||[],delegateType:bi.Function}):n={statements:[],expression:tn([],t.useFactory.callFn([]))}:t.useValue!==void 0?n=er({...r,expression:t.useValue.expression}):t.useExisting!==void 0?n=er({...r,expression:L(d.inject).callFn([t.useExisting.expression])}):n={statements:[],expression:xh(t.type.value,t.type.value,e)};let s=t.type.value,i=new mr;return i.set("token",s),i.set("factory",n.expression),t.providedIn.expression.value!==null&&i.set("providedIn",nS(t.providedIn)),{expression:L(d.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:yS(t),statements:n.statements}}function yS(t){return new it(L(d.InjectableDeclaration,[Ba(t.type.type,t.typeArgumentCount)]))}function xh(t,e,n){if(t.node===e.node)return e.prop("\u0275fac");if(!n)return Ch(e);let r=L(d.resolveForwardRef).callFn([e]);return Ch(r)}function Ch(t){let e=new Fe("__ngFactoryType__",Er);return tn([e],t.prop("\u0275fac").callFn([W(e.name)]))}var vS=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function ES(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];vS.forEach(s=>{if(s.test(n)||s.test(r))throw new Error(`['${n}', '${r}'] contains unusable interpolation symbol.`)})}}var Ui=class t{static fromArray(e){return e?(ES("interpolation",e),new t(e[0],e[1])):$t}constructor(e,n){this.start=e,this.end=n}},$t=new Ui("{{","}}"),SS=new Set(["switch"]),Ze=0,wS=8,vu=9,Mr=10,gd=11,yd=12,Eu=13,vd=32,uc=33,Vi=34,Ed=35,Su=36,TS=37,sa=38,qi=39,Pn=40,Xt=41,xS=42,Sd=43,Vt=44,ia=45,ds=46,Nn=47,tr=58,Ct=59,Es=60,kr=61,Zn=62,Ih=63,wu=48,CS=55,wd=57,zs=65,IS=69,AS=70,NS=88,$a=90,Is=91,hi=92,Ss=93,bS=94,ao=95,jr=97,DS=98,_S=101,Tu=102,Td=110,xd=114,Cd=116,Id=117,Ad=118,Nd=120,lo=122,pn=123,Ah=124,gt=125,bd=160;var gl=64,RS=96;function Gi(t){return t>=vu&&t<=vd||t==bd}function cn(t){return wu<=t&&t<=wd}function Hi(t){return t>=jr&&t<=lo||t>=zs&&t<=$a}function kS(t){return t>=jr&&t<=Tu||t>=zs&&t<=AS||cn(t)}function xu(t){return t===Mr||t===Eu}function Nh(t){return wu<=t&&t<=CS}function fi(t){return t===qi||t===Vi||t===RS}var Kr=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)==Mr){i--;let l=n.substring(0,s-1).lastIndexOf(String.fromCharCode(Mr));o=l>0?s-l:s}else o--;for(;s<r&&e>0;){let a=n.charCodeAt(s);s++,e--,a==Mr?(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]==`
10
+ ]>`}},DM=new ac;function hS(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var hd="i18n",lc="i18n-",fS="VAR_";function fd(t){return t===hd||t.startsWith(lc)}function dS(t){return t.attrs.some(e=>fd(e.name))}function dd(t){return t.nodes[0]}function du(t={},e){let n={};return t&&Object.keys(t).length&&Object.keys(t).forEach(r=>n[oo(r,e)]=t[r]),n}function oo(t,e=!0){let n=hS(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 mS=/[-.]/,mu="_t",$i="ctx",gu="rf";function md(t,e){let n=null;return()=>(n||(t(new Xe(mu,void 0,Er)),n=W(e)),n)}function Es(t){return Array.isArray(t)?se(t.map(Es)):y(t,At)}function Th(t,e){let n=Object.getOwnPropertyNames(t);return n.length===0?null:Ye(n.map(r=>{let s=t[r],i,o,a,l;if(typeof s=="string")i=r,a=r,o=s,l=Es(o);else{a=r,i=s.classPropertyName,o=s.bindingPropertyName;let c=o!==i,u=s.transformFunction!==null,h=vs.None;if(s.isSignal&&(h|=vs.SignalBased),u&&(h|=vs.HasDecoratorInputTransform),e&&(c||u||h!==vs.None)){let f=[y(h),Es(o)];(c||u)&&(f.push(Es(i)),u&&f.push(s.transformFunction)),l=se(f)}else l=Es(o)}return{key:a,quoted:mS.test(a),value:l}}))}var mr=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 Ye(this.values)}};function yu(t){let e=t instanceof ie?t.name:"ng-template",n=gS(t),r=new Qt,s=nn(e)[1];return r.setElement(s),Object.getOwnPropertyNames(n).forEach(i=>{let o=nn(i)[1],a=n[i];r.addAttribute(o,a),i.toLowerCase()==="class"&&a.trim().split(/\s+/).forEach(c=>r.addClassName(c))}),r}function gS(t){let e={};return t instanceof re&&t.tagName!=="ng-template"?t.templateAttrs.forEach(n=>e[n.name]=""):(t.attributes.forEach(n=>{fd(n.name)||(e[n.name]=n.value)}),t.inputs.forEach(n=>{(n.type===z.Property||n.type===z.TwoWay)&&(e[n.name]="")}),t.outputs.forEach(n=>{e[n.name]=""})),e}function cc(t,e){let n=null,r={name:t.name,type:t.type,typeArgumentCount:t.typeArgumentCount,deps:[],target:st.Injectable};if(t.useClass!==void 0){let a=t.useClass.expression.isEquivalent(t.type.value),l;t.deps!==void 0&&(l=t.deps),l!==void 0?n=er({...r,delegate:t.useClass.expression,delegateDeps:l,delegateType:bi.Class}):a?n=er(r):n={statements:[],expression:xh(t.type.value,t.useClass.expression,e)}}else t.useFactory!==void 0?t.deps!==void 0?n=er({...r,delegate:t.useFactory,delegateDeps:t.deps||[],delegateType:bi.Function}):n={statements:[],expression:tn([],t.useFactory.callFn([]))}:t.useValue!==void 0?n=er({...r,expression:t.useValue.expression}):t.useExisting!==void 0?n=er({...r,expression:L(d.inject).callFn([t.useExisting.expression])}):n={statements:[],expression:xh(t.type.value,t.type.value,e)};let s=t.type.value,i=new mr;return i.set("token",s),i.set("factory",n.expression),t.providedIn.expression.value!==null&&i.set("providedIn",nS(t.providedIn)),{expression:L(d.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:yS(t),statements:n.statements}}function yS(t){return new it(L(d.InjectableDeclaration,[Ba(t.type.type,t.typeArgumentCount)]))}function xh(t,e,n){if(t.node===e.node)return e.prop("\u0275fac");if(!n)return Ch(e);let r=L(d.resolveForwardRef).callFn([e]);return Ch(r)}function Ch(t){let e=new Fe("__ngFactoryType__",Er);return tn([e],t.prop("\u0275fac").callFn([W(e.name)]))}var vS=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function ES(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];vS.forEach(s=>{if(s.test(n)||s.test(r))throw new Error(`['${n}', '${r}'] contains unusable interpolation symbol.`)})}}var Ui=class t{static fromArray(e){return e?(ES("interpolation",e),new t(e[0],e[1])):$t}constructor(e,n){this.start=e,this.end=n}},$t=new Ui("{{","}}"),SS=new Set(["switch"]),Ze=0,wS=8,vu=9,Mr=10,gd=11,yd=12,Eu=13,vd=32,uc=33,Vi=34,Ed=35,Su=36,TS=37,sa=38,qi=39,Pn=40,Xt=41,xS=42,Sd=43,Vt=44,ia=45,ms=46,Nn=47,tr=58,Ct=59,Ss=60,kr=61,Zn=62,Ih=63,wu=48,CS=55,wd=57,zs=65,IS=69,AS=70,NS=88,$a=90,As=91,hi=92,ws=93,bS=94,ao=95,Kr=97,DS=98,_S=101,Tu=102,Td=110,xd=114,Cd=116,Id=117,Ad=118,Nd=120,lo=122,pn=123,Ah=124,gt=125,bd=160;var gl=64,RS=96;function Gi(t){return t>=vu&&t<=vd||t==bd}function cn(t){return wu<=t&&t<=wd}function Hi(t){return t>=Kr&&t<=lo||t>=zs&&t<=$a}function kS(t){return t>=Kr&&t<=Tu||t>=zs&&t<=AS||cn(t)}function xu(t){return t===Mr||t===Eu}function Nh(t){return wu<=t&&t<=CS}function fi(t){return t===qi||t===Vi||t===RS}var zr=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)==Mr){i--;let l=n.substring(0,s-1).lastIndexOf(String.fromCharCode(Mr));o=l>0?s-l:s}else o--;for(;s<r&&e>0;){let a=n.charCodeAt(s);s++,e--,a==Mr?(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]==`
11
11
  `&&++a==n)););for(o=0,a=0;o<e&&i<r.length-1&&(i++,o++,!(r[i]==`
12
- `&&++a==n)););return{before:r.substring(s,this.offset),after:r.substring(this.offset,i+1)}}return null}},zr=class{constructor(e,n){this.content=e,this.url=n}},V=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)}},Dn;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(Dn||(Dn={}));var q=class{constructor(e,n,r=Dn.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}[${Dn[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};function PS(t,e,n){let r=`in ${t} ${e} in ${n}`,s=new zr("",r);return new V(new Kr(s,-1,-1,-1),new Kr(s,-1,-1,-1))}var MS=0;function LS(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=ud(e);return n.indexOf("(")>=0?(n=`anonymous_${MS++}`,e.__anonymousType=n):n=di(n),n}function di(t){return t.replace(/\W/g,"_")}var bh='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',pc=class extends Ql{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,`(${bh}(`),n.print(e,`[${r.map(s=>_r(s.text,!1)).join(", ")}], `),n.print(e,`[${r.map(s=>_r(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 Gt;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(${bh}(`);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=>_r(s.cooked,!1)).join(", ")}], `),n.print(e,`[${r.map(s=>_r(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,",")}},Ro;function OS(){if(Ro===void 0){let t=ui.trustedTypes;if(Ro=null,t)try{Ro=t.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch{}}return Ro}function FS(t){return OS()?.createScript(t)||t}function Dh(...t){if(!ui.trustedTypes)return new Function(...t);let e=t.slice(0,-1).join(","),n=t[t.length-1],r=`(function anonymous(${e}
12
+ `&&++a==n)););return{before:r.substring(s,this.offset),after:r.substring(this.offset,i+1)}}return null}},Xr=class{constructor(e,n){this.content=e,this.url=n}},V=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)}},Dn;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(Dn||(Dn={}));var q=class{constructor(e,n,r=Dn.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}[${Dn[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};function PS(t,e,n){let r=`in ${t} ${e} in ${n}`,s=new Xr("",r);return new V(new zr(s,-1,-1,-1),new zr(s,-1,-1,-1))}var MS=0;function LS(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=ud(e);return n.indexOf("(")>=0?(n=`anonymous_${MS++}`,e.__anonymousType=n):n=di(n),n}function di(t){return t.replace(/\W/g,"_")}var bh='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',pc=class extends Ql{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,`(${bh}(`),n.print(e,`[${r.map(s=>_r(s.text,!1)).join(", ")}], `),n.print(e,`[${r.map(s=>_r(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 Gt;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(${bh}(`);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=>_r(s.cooked,!1)).join(", ")}], `),n.print(e,`[${r.map(s=>_r(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,",")}},Ro;function OS(){if(Ro===void 0){let t=ui.trustedTypes;if(Ro=null,t)try{Ro=t.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch{}}return Ro}function FS(t){return OS()?.createScript(t)||t}function Dh(...t){if(!ui.trustedTypes)return new Function(...t);let e=t.slice(0,-1).join(","),n=t[t.length-1],r=`(function anonymous(${e}
13
13
  ) { ${n}
14
14
  })`,s=ui.eval(FS(r));return s.bind===void 0?new Function(...t):(s.toString=()=>r,s.bind(ui))}var hc=class{evaluateStatements(e,n,r,s){let i=new fc(r),o=Yl.createRoot();return n.length>0&&!BS(n[0])&&(n=[y("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()}
15
15
  //# sourceURL=${e}`,o=[],a=[];for(let c in r)a.push(r[c]),o.push(c);if(s){let c=Dh(...o.concat("return null;")).toString(),u=c.slice(0,c.indexOf("return null;")).split(`
@@ -18,12 +18,12 @@ ${n.toSourceMapGenerator(e,u).toJsComment()}`}let l=Dh(...o.concat(i));return th
18
18
  `)}return Au}),e=this._insertDirectives(e);let i=this._scopeCssText(e,n,r),o=0;return i.replace(iw,()=>s[o++])}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_scopeKeyframesRelatedCss(e,n){let r=new Set,s=ko(e,i=>this._scopeLocalKeyframeDeclarations(i,n,r));return ko(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,l)=>(r.add(Ph(a,o)),`${i}${o}${n}_${a}${o}${l}`))}}_scopeAnimationKeyframe(e,n,r){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(s,i,o,a,l)=>(a=`${r.has(Ph(a,o))?n+"_":""}${a}`,`${i}${o}${a}${o}${l}`))}_scopeAnimationRule(e,n,r){let s=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g,(i,o,a)=>o+a.replace(this._animationDeclarationKeyframesRe,(l,c,u="",h,f)=>h?`${c}${this._scopeAnimationKeyframe(`${u}${h}${u}`,n,r)}`:WS.has(f)?l:`${c}${this._scopeAnimationKeyframe(f,n,r)}`));return s=s.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(i,o,a)=>`${o}${a.split(",").map(l=>this._scopeAnimationKeyframe(l,n,r)).join(",")}`),{...e,content:s}}_insertPolyfillDirectivesInCssText(e){return e.replace(KS,function(...n){return n[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(zS,(...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+`
19
19
  `+s,e.trim()}_extractUnscopedRulesFromCssText(e){let n="",r;for(_h.lastIndex=0;(r=_h.exec(e))!==null;){let s=r[0].replace(r[2],"").replace(r[1],r[4]);n+=s+`
20
20
 
21
- `}return n}_convertColonHost(e){return e.replace(XS,(n,r,s)=>{if(r){let i=[],o=r.split(",").map(a=>a.trim());for(let a of o){if(!a)break;let l=Nr+a.replace(oa,"")+s;i.push(l)}return i.join(",")}else return Nr+s})}_convertColonHostContext(e){return e.replace(YS,n=>{let r=[[]],s;for(;s=QS.exec(n);){let i=(s[1]??"").trim().split(",").map(a=>a.trim()).filter(a=>a!==""),o=r.length;gw(r,i.length);for(let a=0;a<i.length;a++)for(let l=0;l<o;l++)r[l+a*o].push(i[a]);n=s[2]}return r.map(i=>mw(i,n)).join(", ")})}_convertShadowDOMSelectors(e){return JS.reduce((n,r)=>n.replace(r," "),e)}_scopeSelectors(e,n,r){return ko(e,s=>{let i=s.selector,o=s.content;return s.selector[0]!=="@"?i=this._scopeSelector(s.selector,n,r):jS.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 Wi(i,o)})}_stripScopingSelectors(e){return ko(e,n=>{let r=n.selector.replace(kh," ").replace(Rh," ");return new Wi(r,n.content)})}_scopeSelector(e,n,r){return e.split(/ ?, ?/).map(s=>s.split(kh)).map(s=>{let[i,...o]=s;return[(l=>this._selectorNeedsScoping(l,n)?this._applySelectorScope(l,n,r):l)(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+")"+ZS,"m")}_applySimpleSelectorScope(e,n,r){if(ws.lastIndex=0,ws.test(e)){let s=`[${r}]`;return e.replace(Rh,(i,o)=>o.replace(/([^:]*)(:*)(.*)/,(a,l,c,u)=>l+s+c+u)).replace(ws,s+" ")}return n+" "+e}_applySelectorScope(e,n,r){let s=/\[is=([^\]]*)\]/g;n=n.replace(s,(S,...I)=>I[0]);let i="["+n+"]",o=S=>{let I=S.trim();if(!I)return S;if(S.includes(Nr))I=this._applySimpleSelectorScope(S,n,r);else{let N=S.replace(ws,"");if(N.length>0){let $=N.match(/([^:]*)(:*)(.*)/);$&&(I=$[1]+i+$[2]+$[3])}}return I},a=new vc(e);e=a.content();let l="",c=0,u,h=/( |>|\+|~(?!=))\s*/g,m=!e.includes(Nr);for(;(u=h.exec(e))!==null;){let S=u[1],I=e.slice(c,u.index);if(I.match(/__esc-ph-(\d+)__/)&&e[u.index+1]?.match(/[a-fA-F\d]/))continue;m=m||I.includes(Nr);let N=m?o(I):I;l+=`${N} ${S} `,c=h.lastIndex}let E=e.substring(c);return m=m||E.includes(Nr),l+=m?o(E):E,a.restore(l)}_insertPolyfillHostInCssText(e){return e.replace(tw,Cu).replace(ew,oa)}},vc=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})}},KS=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,zS=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,_h=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,oa="-shadowcsshost",Cu="-shadowcsscontext",Iu="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",XS=new RegExp(oa+Iu,"gim"),YS=new RegExp(Cu+Iu,"gim"),QS=new RegExp(Cu+Iu,"im"),Nr=oa+"-no-combinator",Rh=/-shadowcsshost-no-combinator([^\s]*)/,JS=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],kh=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,ZS="([>\\s~+[.,{:][\\s\\S]*)?$",ws=/-shadowcsshost/gim,ew=/:host/gim,tw=/:host-context/gim,nw=/\r?\n/g,rw=/\/\*[\s\S]*?\*\//g,sw=/\/\*\s*#\s*source(Mapping)?URL=/g,Au="%COMMENT%",iw=new RegExp(Au,"g"),vl="%BLOCK%",ow=new RegExp(`(\\s*(?:${Au}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),aw=new Map([["{","}"]]),_d="%COMMA_IN_PLACEHOLDER%",Rd="%SEMI_IN_PLACEHOLDER%",kd="%COLON_IN_PLACEHOLDER%",lw=new RegExp(_d,"g"),cw=new RegExp(Rd,"g"),uw=new RegExp(kd,"g"),Wi=class{constructor(e,n){this.selector=e,this.content=n}};function ko(t,e){let n=fw(t),r=pw(n,aw,vl),s=0,i=r.escapedString.replace(ow,(...o)=>{let a=o[2],l="",c=o[4],u="";c&&c.startsWith("{"+vl)&&(l=r.blocks[s++],c=c.substring(vl.length+1),u="{");let h=e(new Wi(a,l));return`${o[1]}${h.selector}${o[3]}${u}${h.content}${c}`});return dw(i)}var Ec=class{constructor(e,n){this.escapedString=e,this.blocks=n}};function pw(t,e,n){let r=[],s=[],i=0,o=0,a=-1,l,c;for(let u=0;u<t.length;u++){let h=t[u];h==="\\"?u++:h===c?(i--,i===0&&(s.push(t.substring(a,u)),r.push(n),o=u,a=-1,l=c=void 0)):h===l?i++:i===0&&e.has(h)&&(l=h,c=e.get(h),i=1,a=u+1,r.push(t.substring(o,a)))}return a!==-1?(s.push(t.substring(a)),r.push(n)):r.push(t.substring(o)),new Ec(r.join(""),s)}var hw={";":Rd,",":_d,":":kd};function fw(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=hw[s];i&&(e=`${e.substr(0,r)}${i}${e.substr(r+1)}`,r+=i.length-1)}else(s==="'"||s==='"')&&(n=s)}return e}function dw(t){let e=t.replace(lw,",");return e=e.replace(cw,";"),e=e.replace(uw,":"),e}function Ph(t,e){return e?t.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):t}function mw(t,e){let n=Nr;ws.lastIndex=0;let r=ws.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 l=s[a];s[i*2+a]=l+" "+o,s[i+a]=o+" "+l,s[a]=o+l}}return s.map(i=>r?`${i}${e}`:`${i}${n}${e}, ${i} ${n}${e}`).join(",")}function gw(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 p;(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"})(p||(p={}));var O;(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"})(O||(O={}));var It;(function(t){t[t.None=0]="None",t[t.AlwaysInline=1]="AlwaysInline"})(It||(It={}));var Oe;(function(t){t[t.Context=0]="Context",t[t.Identifier=1]="Identifier",t[t.SavedView=2]="SavedView",t[t.Alias=3]="Alias"})(Oe||(Oe={}));var Et;(function(t){t[t.Normal=0]="Normal",t[t.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder"})(Et||(Et={}));var F;(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"})(F||(F={}));var Us;(function(t){t[t.Creation=0]="Creation",t[t.Postproccessing=1]="Postproccessing"})(Us||(Us={}));var Xr;(function(t){t[t.I18nText=0]="I18nText",t[t.I18nAttribute=1]="I18nAttribute"})(Xr||(Xr={}));var oe;(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"})(oe||(oe={}));var Ke;(function(t){t[t.HTML=0]="HTML",t[t.SVG=1]="SVG",t[t.Math=2]="Math"})(Ke||(Ke={}));var pe;(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"})(pe||(pe={}));var rr;(function(t){t[t.RootI18n=0]="RootI18n",t[t.Icu=1]="Icu",t[t.Attr=2]="Attr"})(rr||(rr={}));var vt;(function(t){t[t.NgTemplate=0]="NgTemplate",t[t.Structural=1]="Structural",t[t.Block=2]="Block"})(vt||(vt={}));var Pd=Symbol("ConsumesSlot"),Nu=Symbol("DependsOnSlotContext"),Xs=Symbol("ConsumesVars"),Ua=Symbol("UsesVarOffset"),xn={[Pd]:!0,numSlotsUsed:1},Rt={[Nu]:!0},wt={[Xs]:!0};function Ys(t){return t[Pd]===!0}function aa(t){return t[Nu]===!0}function El(t){return t[Xs]===!0}function Mh(t){return t[Ua]===!0}function wn(t){return{kind:p.Statement,statement:t,...j}}function nr(t,e,n,r){return{kind:p.Variable,xref:t,variable:e,initializer:n,flags:r,...j}}var j={debugListId:null,prev:null,next:null};function yw(t,e,n){return{kind:p.InterpolateText,target:t,interpolation:e,sourceSpan:n,...Rt,...wt,...j}}var be=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 Yr(t,e,n,r,s,i,o,a,l,c,u){return{kind:p.Binding,bindingKind:e,target:t,name:n,expression:r,unit:s,securityContext:i,isTextAttribute:o,isStructuralTemplateAttribute:a,templateKind:l,i18nContext:null,i18nMessage:c,sourceSpan:u,...j}}function vw(t,e,n,r,s,i,o,a,l,c){return{kind:p.Property,target:t,name:e,expression:n,isAnimationTrigger:r,securityContext:s,sanitizer:null,isStructuralTemplateAttribute:i,templateKind:o,i18nContext:a,i18nMessage:l,sourceSpan:c,...Rt,...wt,...j}}function Ew(t,e,n,r,s,i,o,a,l){return{kind:p.TwoWayProperty,target:t,name:e,expression:n,securityContext:r,sanitizer:null,isStructuralTemplateAttribute:s,templateKind:i,i18nContext:o,i18nMessage:a,sourceSpan:l,...Rt,...wt,...j}}function Sw(t,e,n,r,s){return{kind:p.StyleProp,target:t,name:e,expression:n,unit:r,sourceSpan:s,...Rt,...wt,...j}}function ww(t,e,n,r){return{kind:p.ClassProp,target:t,name:e,expression:n,sourceSpan:r,...Rt,...wt,...j}}function Tw(t,e,n){return{kind:p.StyleMap,target:t,expression:e,sourceSpan:n,...Rt,...wt,...j}}function xw(t,e,n){return{kind:p.ClassMap,target:t,expression:e,sourceSpan:n,...Rt,...wt,...j}}function Cw(t,e,n,r,s,i,o,a,l,c){return{kind:p.Attribute,target:t,namespace:e,name:n,expression:r,securityContext:s,sanitizer:null,isTextAttribute:i,isStructuralTemplateAttribute:o,templateKind:a,i18nContext:null,i18nMessage:l,sourceSpan:c,...Rt,...wt,...j}}function Iw(t,e){return{kind:p.Advance,delta:t,sourceSpan:e,...j}}function Md(t,e,n,r){return{kind:p.Conditional,target:t,test:e,conditions:n,processed:null,sourceSpan:r,contextValue:null,...j,...Rt,...wt}}function Aw(t,e,n,r){return{kind:p.Repeater,target:t,targetSlot:e,collection:n,sourceSpan:r,...j,...Rt}}function Nw(t,e,n,r){return{kind:p.DeferWhen,target:t,expr:e,prefetch:n,sourceSpan:r,...j,...Rt,...wt}}function Ld(t,e,n,r,s,i,o,a,l,c,u){return{kind:p.I18nExpression,context:t,target:e,i18nOwner:n,handle:r,expression:s,icuPlaceholder:i,i18nPlaceholder:o,resolutionTime:a,usage:l,name:c,sourceSpan:u,...j,...wt,...Rt}}function bw(t,e,n){return{kind:p.I18nApply,owner:t,handle:e,sourceSpan:n,...j}}function Dw(t,e,n,r){return{kind:p.StoreLet,target:t,declaredName:e,value:n,sourceSpan:r,...Rt,...wt,...j}}var Lh,Oh,Fh,Bh,$h,Uh,Vh,qh;function Tn(t){return t instanceof ae}var ae=class extends ne{constructor(e=null){super(null,e)}},We=class t extends ae{constructor(e){super(),this.name=e,this.kind=O.LexicalRead}visitExpression(e,n){}isEquivalent(e){return this.name===e.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.name)}},la=class t extends ae{constructor(e,n,r){super(),this.target=e,this.targetSlot=n,this.offset=r,this.kind=O.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)}},ji=class t extends ae{static{Lh=Xs,Oh=Nu}constructor(e,n,r){super(),this.target=e,this.value=n,this.sourceSpan=r,this.kind=O.StoreLet,this[Lh]=!0,this[Oh]=!0}visitExpression(){}isEquivalent(e){return e instanceof t&&e.target===this.target&&e.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(e,n){this.value=D(this.value,e,n)}clone(){return new t(this.target,this.value,this.sourceSpan)}},Ki=class t extends ae{constructor(e,n){super(),this.target=e,this.targetSlot=n,this.kind=O.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 ae{constructor(e){super(),this.view=e,this.kind=O.Context}visitExpression(){}isEquivalent(e){return e instanceof t&&e.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},ca=class t extends ae{constructor(e){super(),this.view=e,this.kind=O.TrackContext}visitExpression(){}isEquivalent(e){return e instanceof t&&e.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},ua=class t extends ae{constructor(){super(),this.kind=O.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}},Sc=class t extends ae{constructor(){super(),this.kind=O.GetCurrentView}visitExpression(){}isEquivalent(e){return e instanceof t}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t}},pa=class t extends ae{constructor(e){super(),this.view=e,this.kind=O.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=D(this.view,e,n))}clone(){return new t(this.view instanceof ne?this.view.clone():this.view)}},wc=class t extends ae{constructor(e){super(),this.expr=e,this.kind=O.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=D(this.expr,e,n)}clone(){return new t(this.expr.clone())}},ha=class t extends ae{constructor(e,n){super(),this.target=e,this.value=n,this.kind=O.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=D(this.target,e,n),this.value=D(this.value,e,n)}clone(){return new t(this.target,this.value)}},Mn=class t extends ae{constructor(e){super(),this.xref=e,this.kind=O.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}},Qr=class t extends ae{static{Fh=Xs,Bh=Ua}constructor(e,n){super(),this.kind=O.PureFunctionExpr,this[Fh]=!0,this[Bh]=!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 t)||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=D(this.body,e,n|te.InChildOperation):this.fn!==null&&(this.fn=D(this.fn,e,n));for(let r=0;r<this.args.length;r++)this.args[r]=D(this.args[r],e,n)}clone(){let e=new t(this.body?.clone()??null,this.args.map(n=>n.clone()));return e.fn=this.fn?.clone()??null,e.varOffset=this.varOffset,e}},Vs=class t extends ae{constructor(e){super(),this.index=e,this.kind=O.PureFunctionParameterExpr}visitExpression(){}isEquivalent(e){return e instanceof t&&e.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new t(this.index)}},Jr=class t extends ae{static{$h=Xs,Uh=Ua}constructor(e,n,r,s){super(),this.target=e,this.targetSlot=n,this.name=r,this.args=s,this.kind=O.PipeBinding,this[$h]=!0,this[Uh]=!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]=D(this.args[r],e,n)}clone(){let e=new t(this.target,this.targetSlot,this.name,this.args.map(n=>n.clone()));return e.varOffset=this.varOffset,e}},fa=class t extends ae{static{Vh=Xs,qh=Ua}constructor(e,n,r,s,i){super(),this.target=e,this.targetSlot=n,this.name=r,this.args=s,this.numArgs=i,this.kind=O.PipeBindingVariadic,this[Vh]=!0,this[qh]=!0,this.varOffset=null}visitExpression(e,n){this.args.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.args=D(this.args,e,n)}clone(){let e=new t(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return e.varOffset=this.varOffset,e}},qs=class t extends ae{constructor(e,n){super(),this.receiver=e,this.name=n,this.kind=O.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=D(this.receiver,e,n)}clone(){return new t(this.receiver.clone(),this.name)}},Gs=class t extends ae{constructor(e,n,r){super(r),this.receiver=e,this.index=n,this.kind=O.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=D(this.receiver,e,n),this.index=D(this.index,e,n)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},gr=class t extends ae{constructor(e,n){super(),this.receiver=e,this.args=n,this.kind=O.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=D(this.receiver,e,n);for(let r=0;r<this.args.length;r++)this.args[r]=D(this.args[r],e,n)}clone(){return new t(this.receiver.clone(),this.args.map(e=>e.clone()))}},Hs=class t extends ae{constructor(e,n){super(),this.guard=e,this.expr=n,this.kind=O.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=D(this.guard,e,n),this.expr=D(this.expr,e,n)}clone(){return new t(this.guard.clone(),this.expr.clone())}},zi=class t extends ae{constructor(){super(...arguments),this.kind=O.EmptyExpr}visitExpression(e,n){}isEquivalent(e){return e instanceof t}isConstant(){return!0}clone(){return new t}transformInternalExpressions(){}},rn=class t extends ae{constructor(e,n){super(),this.expr=e,this.xref=n,this.kind=O.AssignTemporaryExpr,this.name=null}visitExpression(e,n){this.expr.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.expr=D(this.expr,e,n)}clone(){let e=new t(this.expr.clone(),this.xref);return e.name=this.name,e}},Gn=class t extends ae{constructor(e){super(),this.xref=e,this.kind=O.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}},da=class t extends ae{constructor(e){super(),this.slot=e,this.kind=O.SlotLiteralExpr}visitExpression(e,n){}isEquivalent(e){return e instanceof t&&e.slot===this.slot}isConstant(){return!0}clone(){return new t(this.slot)}transformInternalExpressions(){}},ma=class t extends ae{constructor(e,n,r,s=null){super(),this.expr=e,this.target=n,this.targetSlot=r,this.alias=s,this.kind=O.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=D(this.expr,e,n))}},Xi=class t extends ae{constructor(e){super(),this.expr=e,this.kind=O.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 tt(t,e){Ue(t,(n,r)=>(e(n,r),n),te.None)}var te;(function(t){t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation"})(te||(te={}));function Sl(t,e,n){for(let r=0;r<t.expressions.length;r++)t.expressions[r]=D(t.expressions[r],e,n)}function Ue(t,e,n){switch(t.kind){case p.StyleProp:case p.StyleMap:case p.ClassProp:case p.ClassMap:case p.Binding:t.expression instanceof be?Sl(t.expression,e,n):t.expression=D(t.expression,e,n);break;case p.Property:case p.HostProperty:case p.Attribute:t.expression instanceof be?Sl(t.expression,e,n):t.expression=D(t.expression,e,n),t.sanitizer=t.sanitizer&&D(t.sanitizer,e,n);break;case p.TwoWayProperty:t.expression=D(t.expression,e,n),t.sanitizer=t.sanitizer&&D(t.sanitizer,e,n);break;case p.I18nExpression:t.expression=D(t.expression,e,n);break;case p.InterpolateText:Sl(t.interpolation,e,n);break;case p.Statement:ga(t.statement,e,n);break;case p.Variable:t.initializer=D(t.initializer,e,n);break;case p.Conditional:for(let r of t.conditions)r.expr!==null&&(r.expr=D(r.expr,e,n));t.processed!==null&&(t.processed=D(t.processed,e,n)),t.contextValue!==null&&(t.contextValue=D(t.contextValue,e,n));break;case p.Listener:case p.TwoWayListener:for(let r of t.handlerOps)Ue(r,e,n|te.InChildOperation);break;case p.ExtractedAttribute:t.expression=t.expression&&D(t.expression,e,n),t.trustedValueFn=t.trustedValueFn&&D(t.trustedValueFn,e,n);break;case p.RepeaterCreate:t.track=D(t.track,e,n),t.trackByFn!==null&&(t.trackByFn=D(t.trackByFn,e,n));break;case p.Repeater:t.collection=D(t.collection,e,n);break;case p.Defer:t.loadingConfig!==null&&(t.loadingConfig=D(t.loadingConfig,e,n)),t.placeholderConfig!==null&&(t.placeholderConfig=D(t.placeholderConfig,e,n)),t.resolverFn!==null&&(t.resolverFn=D(t.resolverFn,e,n));break;case p.I18nMessage:for(let[r,s]of t.params)t.params.set(r,D(s,e,n));for(let[r,s]of t.postprocessingParams)t.postprocessingParams.set(r,D(s,e,n));break;case p.DeferWhen:t.expr=D(t.expr,e,n);break;case p.StoreLet:t.value=D(t.value,e,n);break;case p.Advance:case p.Container:case p.ContainerEnd:case p.ContainerStart:case p.DeferOn:case p.DisableBindings:case p.Element:case p.ElementEnd:case p.ElementStart:case p.EnableBindings:case p.I18n:case p.I18nApply:case p.I18nContext:case p.I18nEnd:case p.I18nStart:case p.IcuEnd:case p.IcuStart:case p.Namespace:case p.Pipe:case p.Projection:case p.ProjectionDef:case p.Template:case p.Text:case p.I18nAttributes:case p.IcuPlaceholder:case p.DeclareLet:break;default:throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${p[t.kind]}`)}}function D(t,e,n){if(t instanceof ae)t.transformInternalExpressions(e,n);else if(t instanceof ee)t.lhs=D(t.lhs,e,n),t.rhs=D(t.rhs,e,n);else if(t instanceof ar)t.expr=D(t.expr,e,n);else if(t instanceof lt)t.receiver=D(t.receiver,e,n);else if(t instanceof gn)t.receiver=D(t.receiver,e,n),t.index=D(t.index,e,n);else if(t instanceof $r)t.receiver=D(t.receiver,e,n),t.value=D(t.value,e,n);else if(t instanceof Ns)t.receiver=D(t.receiver,e,n),t.index=D(t.index,e,n),t.value=D(t.value,e,n);else if(t instanceof ze){t.fn=D(t.fn,e,n);for(let r=0;r<t.args.length;r++)t.args[r]=D(t.args[r],e,n)}else if(t instanceof ct)for(let r=0;r<t.entries.length;r++)t.entries[r]=D(t.entries[r],e,n);else if(t instanceof Gt)for(let r=0;r<t.entries.length;r++)t.entries[r].value=D(t.entries[r].value,e,n);else if(t instanceof en)t.condition=D(t.condition,e,n),t.trueCase=D(t.trueCase,e,n),t.falseCase!==null&&(t.falseCase=D(t.falseCase,e,n));else if(t instanceof Br)t.expr=D(t.expr,e,n);else if(t instanceof Si)t.value=D(t.value,e,n);else if(t instanceof Ti)for(let r=0;r<t.expressions.length;r++)t.expressions[r]=D(t.expressions[r],e,n);else if(t instanceof Ds)t.condition=D(t.condition,e,n);else if(t instanceof wi)t.tag=D(t.tag,e,n),t.template.expressions=t.template.expressions.map(r=>D(r,e,n));else if(t instanceof Ln)if(Array.isArray(t.body))for(let r=0;r<t.body.length;r++)ga(t.body[r],e,n);else t.body=D(t.body,e,n);else if(!(t instanceof U)){if(!(t instanceof Nt||t instanceof qe||t instanceof Ce))throw new Error(`Unhandled expression kind: ${t.constructor.name}`)}return e(t,n)}function ga(t,e,n){if(t instanceof bt)t.expr=D(t.expr,e,n);else if(t instanceof et)t.value=D(t.value,e,n);else if(t instanceof Xe)t.value!==void 0&&(t.value=D(t.value,e,n));else if(t instanceof Ii){t.condition=D(t.condition,e,n);for(let r of t.trueCase)ga(r,e,n);for(let r of t.falseCase)ga(r,e,n)}else throw new Error(`Unhandled statement kind: ${t.constructor.name}`)}function Od(t){return t instanceof Ce&&typeof t.value=="string"}var T=class t{static{this.nextListId=0}constructor(){this.debugListId=t.nextListId++,this.head={kind:p.ListEnd,next:null,prev:null,debugListId:this.debugListId},this.tail={kind:p.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}t.assertIsNotEnd(e),t.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)t.assertIsNotEnd(s),t.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;){t.assertIsOwned(e,this.debugListId);let n=e.next;yield e,e=n}}*reversed(){let e=this.tail.prev;for(;e!==this.head;){t.assertIsOwned(e,this.debugListId);let n=e.prev;yield e,e=n}}static replace(e,n){t.assertIsNotEnd(e),t.assertIsNotEnd(n),t.assertIsOwned(e),t.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){t.remove(e);return}t.assertIsNotEnd(e),t.assertIsOwned(e);let r=e.debugListId;e.debugListId=null;for(let c of n)t.assertIsNotEnd(c),t.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],l=o;s!==null&&(s.next=a,a.prev=s),i!==null&&(i.prev=l,l.next=i)}static remove(e){t.assertIsNotEnd(e),t.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(t.assertIsOwned(n),n.prev===null)throw new Error("AssertionError: illegal operation on list start");t.assertIsNotEnd(e),t.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(t.assertIsOwned(n),n.next===null)throw new Error("AssertionError: illegal operation on list end");t.assertIsNotEnd(e),t.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: ${p[e.kind]}`)}static assertIsOwned(e,n){if(e.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${p[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===p.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}},St=class{constructor(){this.slot=null}},_w=new Set([p.Element,p.ElementStart,p.Container,p.ContainerStart,p.Template,p.RepeaterCreate]);function yr(t){return _w.has(t.kind)}function Rw(t,e,n,r,s,i){return{kind:p.ElementStart,xref:e,tag:t,handle:new St,attributes:null,localRefs:[],nonBindable:!1,namespace:n,i18nPlaceholder:r,startSourceSpan:s,wholeSourceSpan:i,...xn,...j}}function Va(t,e,n,r,s,i,o,a){return{kind:p.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,...xn,...j}}function kw(t,e,n,r,s,i,o,a,l,c){return{kind:p.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:l,wholeSourceSpan:c,...xn,...j,...wt,numSlotsUsed:e===null?2:3}}function Pw(t,e){return{kind:p.ElementEnd,xref:t,sourceSpan:e,...j}}function Mw(t){return{kind:p.DisableBindings,xref:t,...j}}function Lw(t){return{kind:p.EnableBindings,xref:t,...j}}function Fd(t,e,n,r){return{kind:p.Text,xref:t,handle:new St,initialValue:e,icuPlaceholder:n,sourceSpan:r,...xn,...j}}function bu(t,e,n,r,s,i,o,a,l){let c=new T;return c.push(s),{kind:p.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:l,...j}}function Bd(t,e,n,r,s,i){let o=new T;return o.push(s),{kind:p.TwoWayListener,target:t,targetSlot:e,tag:r,name:n,handlerOps:o,handlerFnName:null,sourceSpan:i,...j}}function $d(t,e,n){return{kind:p.Pipe,xref:t,handle:e,name:n,...j,...xn}}function Ow(t){return{kind:p.Namespace,active:t,...j}}function Fw(t){return{kind:p.ProjectionDef,def:t,...j}}function Bw(t,e,n,r,s){return{kind:p.Projection,xref:t,handle:new St,selector:e,i18nPlaceholder:n,fallbackView:r,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:s,...j,...xn,numSlotsUsed:r===null?1:2}}function Ut(t,e,n,r,s,i,o,a){return{kind:p.ExtractedAttribute,target:t,bindingKind:e,namespace:n,name:r,expression:s,i18nContext:i,i18nMessage:o,securityContext:a,trustedValueFn:null,...j}}function $w(t,e,n,r,s,i){return{kind:p.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,...j,...xn,numSlotsUsed:2}}function Ar(t,e,n,r){return{kind:p.DeferOn,defer:t,trigger:e,prefetch:n,sourceSpan:r,...j}}function Uw(t,e,n){return{kind:p.DeclareLet,xref:t,declaredName:e,sourceSpan:n,handle:new St,...xn,...j}}function Vw(t,e,n,r,s,i,o,a){return{kind:p.I18nMessage,xref:t,i18nContext:e,i18nBlock:n,message:r,messagePlaceholder:s,params:i,postprocessingParams:o,needsPostprocessing:a,subMessages:[],...j}}function qa(t,e,n,r){return{kind:p.I18nStart,xref:t,handle:new St,root:n??t,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:r,...j,...xn}}function Ga(t,e){return{kind:p.I18nEnd,xref:t,sourceSpan:e,...j}}function qw(t,e,n,r){return{kind:p.IcuStart,xref:t,message:e,messagePlaceholder:n,context:null,sourceSpan:r,...j}}function Gw(t){return{kind:p.IcuEnd,xref:t,...j}}function Hw(t,e,n){return{kind:p.IcuPlaceholder,xref:t,name:e,strings:n,expressionPlaceholders:[],...j}}function wl(t,e,n,r,s){if(n===null&&t!==rr.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return{kind:p.I18nContext,contextKind:t,xref:e,i18nBlock:n,message:r,sourceSpan:s,params:new Map,postprocessingParams:new Map,...j}}function Ud(t,e,n){return{kind:p.I18nAttributes,xref:t,handle:e,target:n,i18nAttributesConfig:null,...j,...xn}}function Ww(t,e,n,r,s,i){return{kind:p.HostProperty,name:t,expression:e,isAnimationTrigger:n,i18nContext:r,securityContext:s,sanitizer:null,sourceSpan:i,...wt,...j}}var Vd="CTX_REF_MARKER",b;(function(t){t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both"})(b||(b={}));var ya=class{constructor(e,n,r){this.componentName=e,this.pool=n,this.compatibility=r,this.kind=b.Both,this.nextXrefId=0}allocateXrefId(){return this.nextXrefId++}},Yi=class extends ya{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=b.Tmpl,this.fnSuffix="Template",this.views=new Map,this.contentSelectors=null,this.consts=[],this.constsInitializers=[],this.root=new dn(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}allocateView(e){let n=new dn(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}},va=class{constructor(e){this.xref=e,this.create=new T,this.update=new T,this.fnName=null,this.vars=null}*ops(){for(let e of this.create)if(yield e,e.kind===p.Listener||e.kind===p.TwoWayListener)for(let n of e.handlerOps)yield n;for(let e of this.update)yield e}},dn=class extends va{constructor(e,n,r){super(n),this.job=e,this.parent=r,this.contextVariables=new Map,this.aliases=new Set,this.decls=null}},Ea=class extends ya{constructor(e,n,r){super(e,n,r),this.kind=b.Host,this.fnSuffix="HostBindings",this.root=new Tc(this)}get units(){return[this.root]}},Tc=class extends va{constructor(e){super(0),this.job=e,this.attributes=null}};function jw(t){for(let e of t.units)for(let n of e.ops())Ue(n,Kw,te.None)}function Kw(t){if(t instanceof ze&&t.fn instanceof We&&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 zw(t){let e=new Map;for(let n of t.units)for(let r of n.create)r.kind===p.I18nContext&&e.set(r.xref,r);for(let n of t.units)for(let r of n.update)r.kind===p.I18nExpression&&Xw(e,r)&&T.insertAfter(bw(r.i18nOwner,r.handle,null),r)}function Xw(t,e){if(e.next?.kind!==p.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 Yw(t){for(let e of t.units){let n=e.update.head,r=[],s=null;for(let i of e.create){if(i.kind===p.I18nStart)s={blockXref:i.xref,lastSlotConsumer:i.xref};else if(i.kind===p.I18nEnd){for(let o of r)o.target=s.lastSlotConsumer,T.insertBefore(o,n);r.length=0,s=null}if(Ys(i))for(s!==null&&(s.lastSlotConsumer=i.xref);n.next!==null;){if(s!==null&&n.kind===p.I18nExpression&&n.usage===Xr.I18nText&&n.i18nOwner===s.blockXref){let o=n;n=n.next,T.remove(o),r.push(o);continue}if(aa(n)&&n.target!==i.xref)break;n=n.next}}}}function Du(t){let e=new Map;for(let n of t.create)Ys(n)&&(e.set(n.xref,n),n.kind===p.RepeaterCreate&&n.emptyView!==null&&e.set(n.emptyView,n));return e}function Qw(t){for(let e of t.units){let n=Du(e);for(let r of e.ops())switch(r.kind){case p.Attribute:Jw(e,r,n);break;case p.Property:if(!r.isAnimationTrigger){let s;r.i18nMessage!==null&&r.templateKind===null?s=F.I18n:r.isStructuralTemplateAttribute?s=F.Template:s=F.Property,T.insertBefore(Ut(r.target,s,null,r.name,null,null,null,r.securityContext),ms(n,r.target))}break;case p.TwoWayProperty:T.insertBefore(Ut(r.target,F.TwoWayProperty,null,r.name,null,null,null,r.securityContext),ms(n,r.target));break;case p.StyleProp:case p.ClassProp:e.job.compatibility===Et.TemplateDefinitionBuilder&&r.expression instanceof zi&&T.insertBefore(Ut(r.target,F.Property,null,r.name,null,null,null,ce.STYLE),ms(n,r.target));break;case p.Listener:if(!r.isAnimationListener){let s=Ut(r.target,F.Property,null,r.name,null,null,null,ce.NONE);if(t.kind===b.Host){if(t.compatibility)break;e.create.push(s)}else T.insertBefore(s,ms(n,r.target))}break;case p.TwoWayListener:if(t.kind!==b.Host){let s=Ut(r.target,F.Property,null,r.name,null,null,null,ce.NONE);T.insertBefore(s,ms(n,r.target))}break}}}function ms(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 Jw(t,e,n){if(e.expression instanceof be)return;let r=e.isTextAttribute||e.expression.isConstant();if(t.job.compatibility===Et.TemplateDefinitionBuilder&&(r&&=e.isTextAttribute),r){let s=Ut(e.target,e.isStructuralTemplateAttribute?F.Template:F.Attribute,e.namespace,e.name,e.expression,e.i18nContext,e.i18nMessage,e.securityContext);if(t.job.kind===b.Host)t.create.push(s);else{let i=ms(n,e.target);T.insertBefore(s,i)}T.remove(e)}}function Zw(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 eT(t){let e=new Map;for(let n of t.units)for(let r of n.create)yr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.ops())if(r.kind===p.Binding)switch(r.bindingKind){case F.Attribute:if(r.name==="ngNonBindable"){T.remove(r);let s=Zw(e,r.target);s.nonBindable=!0}else{let[s,i]=nn(r.name);T.replace(r,Cw(r.target,s,i,r.expression,r.securityContext,r.isTextAttribute,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan))}break;case F.Property:case F.Animation:t.kind===b.Host?T.replace(r,Ww(r.name,r.expression,r.bindingKind===F.Animation,r.i18nContext,r.securityContext,r.sourceSpan)):T.replace(r,vw(r.target,r.name,r.expression,r.bindingKind===F.Animation,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case F.TwoWayProperty:if(!(r.expression instanceof ne))throw new Error(`Expected value of two-way property binding "${r.name}" to be an expression`);T.replace(r,Ew(r.target,r.name,r.expression,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case F.I18n:case F.ClassName:case F.StyleProperty:throw new Error(`Unhandled binding of kind ${F[r.bindingKind]}`)}}var tT=new Set([d.attribute,d.classProp,d.element,d.elementContainer,d.elementContainerEnd,d.elementContainerStart,d.elementEnd,d.elementStart,d.hostProperty,d.i18nExp,d.listener,d.listener,d.property,d.styleProp,d.stylePropInterpolate1,d.stylePropInterpolate2,d.stylePropInterpolate3,d.stylePropInterpolate4,d.stylePropInterpolate5,d.stylePropInterpolate6,d.stylePropInterpolate7,d.stylePropInterpolate8,d.stylePropInterpolateV,d.syntheticHostListener,d.syntheticHostProperty,d.templateCreate,d.twoWayProperty,d.twoWayListener,d.declareLet]),nT=256;function rT(t){for(let e of t.units)Gh(e.create),Gh(e.update)}function Gh(t){let e=null;for(let n of t){if(n.kind!==p.Statement||!(n.statement instanceof bt)){e=null;continue}if(!(n.statement.expr instanceof ze)||!(n.statement.expr.fn instanceof qe)){e=null;continue}let r=n.statement.expr.fn.value;if(!tT.has(r)){e=null;continue}if(e!==null&&e.instruction===r&&e.length<nT){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++,T.remove(n)}else e={op:n,instruction:r,expression:n.statement.expr,length:1}}}function sT(t){for(let e of t.units)for(let n of e.update)n.kind===p.Attribute&&n.expression instanceof be&&n.expression.strings.length===2&&n.expression.strings.every(s=>s==="")&&(n.expression=n.expression.expressions[0])}function iT(t){for(let e of t.units)for(let n of e.ops()){if(n.kind!==p.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 da(o)}else r=y(-1);let i=n.test==null?null:new rn(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 l=o===0?i:new Gn(i.xref);a.expr=new ee(A.Identical,l,a.expr)}else if(a.alias!==null){let l=t.allocateXrefId();a.expr=new rn(a.expr,l),n.contextValue=new Gn(l)}r=new en(a.expr,new da(a.targetSlot),r)}}n.processed=r,n.conditions=[]}}var oT=new Map([["&&",A.And],[">",A.Bigger],[">=",A.BiggerEquals],["|",A.BitwiseOr],["&",A.BitwiseAnd],["/",A.Divide],["==",A.Equals],["===",A.Identical],["<",A.Lower],["<=",A.LowerEquals],["-",A.Minus],["%",A.Modulo],["*",A.Multiply],["!=",A.NotEquals],["!==",A.NotIdentical],["??",A.NullishCoalesce],["||",A.Or],["+",A.Plus]]);function qd(t){let e=new Map([["svg",Ke.SVG],["math",Ke.Math]]);return t===null?Ke.HTML:e.get(t)??Ke.HTML}function aT(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 lT(t,e){return e===Ke.HTML?t:`:${aT(e)}:${t}`}function Ws(t){return Array.isArray(t)?se(t.map(Ws)):y(t)}function cT(t){let e=new Map;for(let n of t.units)for(let r of n.create)if(r.kind===p.ExtractedAttribute){let s=e.get(r.target)||new xc(t.compatibility);e.set(r.target,s),s.add(r.bindingKind,r.name,r.expression,r.namespace,r.trustedValueFn),T.remove(r)}if(t instanceof Yi)for(let n of t.units)for(let r of n.create)if(r.kind==p.Projection){let s=e.get(r.xref);if(s!==void 0){let i=Cc(s);i.entries.length>0&&(r.attributes=i)}}else yr(r)&&(r.attributes=Hh(t,e,r.xref),r.kind===p.RepeaterCreate&&r.emptyView!==null&&(r.emptyAttributes=Hh(t,e,r.emptyView)));else if(t instanceof Ea)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=Cc(r);s.entries.length>0&&(t.root.attributes=s)}}function Hh(t,e,n){let r=e.get(n);if(r!==void 0){let s=Cc(r);if(s.entries.length>0)return t.addConst(s)}return null}var us=Object.freeze([]),xc=class{get attributes(){return this.byKind.get(F.Attribute)??us}get classes(){return this.byKind.get(F.ClassName)??us}get styles(){return this.byKind.get(F.StyleProperty)??us}get bindings(){return this.propertyBindings??us}get template(){return this.byKind.get(F.Template)??us}get i18n(){return this.byKind.get(F.I18n)??us}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===Et.TemplateDefinitionBuilder&&(e===F.Attribute||e===F.ClassName||e===F.StyleProperty))&&this.isKnown(e,n))return;if(n==="ngProjectAs"){if(r===null||!(r instanceof Ce)||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(...uT(s,n)),e===F.Attribute||e===F.StyleProperty){if(r===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(i!==null){if(!Od(r))throw Error("AssertionError: extracted attribute value should be string literal");a.push(ad(i,new qo([new Go(r.value)],[]),void 0,r.sourceSpan))}else a.push(r)}}arrayFor(e){return e===F.Property||e===F.TwoWayProperty?(this.propertyBindings??=[],this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function uT(t,e){let n=y(e);return t?[y(0),y(t),n]:[n]}function Cc({attributes:t,bindings:e,classes:n,i18n:r,projectAs:s,styles:i,template:o}){let a=[...t];if(s!==null){let l=hu(s)[0];a.push(y(5),Ws(l))}return n.length>0&&a.push(y(1),...n),i.length>0&&a.push(y(2),...i),e.length>0&&a.push(y(3),...e),o.length>0&&a.push(y(4),...o),r.length>0&&a.push(y(6),...r),se(a)}function pT(t){let e=new Map;for(let n of t.units){for(let r of n.create)r.kind===p.I18nAttributes&&e.set(r.target,r);for(let r of n.update)switch(r.kind){case p.Property:case p.Attribute:if(r.i18nContext===null||!(r.expression instanceof be))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(Ld(r.i18nContext,s.target,s.xref,s.handle,a,null,r.expression.i18nPlaceholders[o],Us.Creation,Xr.I18nAttribute,r.name,r.sourceSpan))}T.replaceWithMany(r,i);break}}}function hT(t){for(let e of t.units)for(let n of e.create)if(n.kind===p.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 fT(t){let e=new Map;for(let s of t.units)for(let i of s.ops())switch(i.kind){case p.Binding:case p.Property:case p.Attribute:case p.ExtractedAttribute:if(i.i18nMessage===null)continue;if(!e.has(i.i18nMessage)){let o=wl(rr.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 p.I18nStart:if(i.xref===i.root){let o=wl(rr.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===p.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 p.I18nStart:r=i;break;case p.I18nEnd:r=null;break;case p.IcuStart:if(r===null)throw Error("AssertionError: Unexpected ICU outside of an i18n block.");if(i.message.id!==r.message.id){let o=wl(rr.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=rr.Icu;break}}function dT(t){let e=new Map;for(let n of t.units)for(let r of n.update.reversed())if(r.kind===p.Binding&&r.isTextAttribute){let s=e.get(r.target)||new Set;s.has(r.name)&&t.compatibility===Et.TemplateDefinitionBuilder&&(r.name==="style"||r.name==="class")&&T.remove(r),s.add(r.name),e.set(r.target,s)}}function mT(t){for(let e of t.units)for(let n of e.create)n.kind===p.Defer&&(n.placeholderMinimumTime!==null&&(n.placeholderConfig=new Xi(Ws([n.placeholderMinimumTime]))),(n.loadingMinimumTime!==null||n.loadingAfterTime!==null)&&(n.loadingConfig=new Xi(Ws([n.loadingMinimumTime,n.loadingAfterTime]))))}function gT(t){let e=new Map;function n(s){if(e.has(s.xref))return e.get(s.xref);let i=new Ic;for(let o of s.create)if(!(!yr(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 pe.Idle:case pe.Immediate:case pe.Timer:return;case pe.Hover:case pe.Interaction:case pe.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 u of c.create)if(Ys(u)&&(yr(u)||u.kind===p.Projection)){i.trigger.targetXref=u.xref,i.trigger.targetView=o,i.trigger.targetSlotViewSteps=-1,i.trigger.targetSlot=u.handle;return}return}let a=o!==null?t.views.get(o):s,l=o!==null?-1:0;for(;a!==null;){let c=n(a);if(c.targets.has(i.trigger.targetName)){let{xref:u,slot:h}=c.targets.get(i.trigger.targetName);i.trigger.targetXref=u,i.trigger.targetView=a.xref,i.trigger.targetSlotViewSteps=l,i.trigger.targetSlot=h;return}a=a.parent!==null?t.views.get(a.parent):null,l++}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 p.Defer:i.set(o.xref,o);break;case p.DeferOn:let a=i.get(o.defer);r(s,o,a.placeholderView);break}}}var Ic=class{constructor(){this.targets=new Map}},yT=new Map([[p.ElementEnd,[p.ElementStart,p.Element]],[p.ContainerEnd,[p.ContainerStart,p.Container]],[p.I18nEnd,[p.I18nStart,p.I18n]]]),vT=new Set([p.Pipe]);function ET(t){for(let e of t.units)for(let n of e.create){let r=yT.get(n.kind);if(r===void 0)continue;let[s,i]=r,o=n.prev;for(;o!==null&&vT.has(o.kind);)o=o.prev;o!==null&&o.kind===s&&(o.kind=i,T.remove(n))}}function ST(t){for(let e of t.units)for(let n of e.ops())Ue(n,r=>AT(r,{job:t}),te.None),Ue(n,NT,te.None)}var _M=[ze,ct,Gt,gr,Jr].map(t=>t.constructor.name);function Lt(t){return t instanceof ar?Lt(t.expr):t instanceof ee?Lt(t.lhs)||Lt(t.rhs):t instanceof en?t.falseCase&&Lt(t.falseCase)?!0:Lt(t.condition)||Lt(t.trueCase):t instanceof Ds?Lt(t.condition):t instanceof rn?Lt(t.expr):t instanceof lt?Lt(t.receiver):t instanceof gn?Lt(t.receiver)||Lt(t.index):t instanceof ze||t instanceof ct||t instanceof Gt||t instanceof gr||t instanceof Jr}function wT(t){let e=new Set;return D(t,n=>(n instanceof rn&&e.add(n.xref),n),te.None),e}function TT(t,e,n){return D(t,r=>{if(r instanceof rn&&e.has(r.xref)){let s=new Gn(r.xref);return n.job.compatibility===Et.TemplateDefinitionBuilder?new rn(s,s.xref):s}return r},te.None),t}function ps(t,e,n){let r;if(Lt(t)){let s=n.job.allocateXrefId();r=[new rn(t,s),new Gn(s)]}else r=[t,t.clone()],TT(r[1],wT(r[0]),n);return new Hs(r[0],e(r[1]))}function xT(t){return t instanceof qs||t instanceof Gs||t instanceof gr}function CT(t){return t instanceof lt||t instanceof gn||t instanceof ze}function Gd(t){return xT(t)||CT(t)}function IT(t){if(Gd(t)&&t.receiver instanceof Hs){let e=t.receiver;for(;e.expr instanceof Hs;)e=e.expr;return e}return null}function AT(t,e){if(!Gd(t))return t;let n=IT(t);if(n){if(t instanceof ze)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 gn)return n.expr=n.expr.key(t.index),t.receiver;if(t instanceof gr)return n.expr=ps(n.expr,r=>r.callFn(t.args),e),t.receiver;if(t instanceof qs)return n.expr=ps(n.expr,r=>r.prop(t.name),e),t.receiver;if(t instanceof Gs)return n.expr=ps(n.expr,r=>r.key(t.index),e),t.receiver}else{if(t instanceof gr)return ps(t.receiver,r=>r.callFn(t.args),e);if(t instanceof qs)return ps(t.receiver,r=>r.prop(t.name),e);if(t instanceof Gs)return ps(t.receiver,r=>r.key(t.index),e)}return t}function NT(t){return t instanceof Hs?new en(new ee(A.Equals,t.guard,_s),_s,t.expr):t}var Wh="\uFFFD",bT="#",DT="*",_T="/",RT=":",kT="[",PT="]",MT="|";function LT(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 p.I18nContext:let a=OT(t,o);i.create.push(a),e.set(o.xref,a),r.set(o.xref,o);break;case p.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 p.IcuStart:s=o,T.remove(o);let a=r.get(o.context);if(a.contextKind!==rr.Icu)continue;let l=n.get(a.i18nBlock);if(l.context===a.xref)continue;let c=n.get(l.root),u=e.get(c.context);if(u===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let h=e.get(a.xref);h.messagePlaceholder=o.messagePlaceholder,u.subMessages.push(h.xref);break;case p.IcuEnd:s=null,T.remove(o);break;case p.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,y(FT(o))),T.remove(o);break}}function OT(t,e,n){let r=jh(e.params),s=jh(e.postprocessingParams),i=[...e.params.values()].some(o=>o.length>1);return Vw(t.allocateXrefId(),e.xref,e.i18nBlock,e.message,n??null,r,s,i)}function FT(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(Ts);return t.strings.flatMap((n,r)=>[n,e[r]||""]).join("")}function jh(t){let e=new Map;for(let[n,r]of t){let s=BT(r);s!==null&&e.set(n,y(s))}return e}function BT(t){if(t.length===0)return null;let e=t.map(n=>Ts(n));return e.length===1?e[0]:`${kT}${e.join(MT)}${PT}`}function Ts(t){if(t.flags&oe.ElementTag&&t.flags&oe.TemplateTag){if(typeof t.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let s=Ts({...t,value:t.value.element,flags:t.flags&~oe.TemplateTag}),i=Ts({...t,value:t.value.template,flags:t.flags&~oe.ElementTag});return t.flags&oe.OpenTag&&t.flags&oe.CloseTag?`${i}${s}${i}`:t.flags&oe.CloseTag?`${s}${i}`:`${i}${s}`}if(t.flags&oe.OpenTag&&t.flags&oe.CloseTag)return`${Ts({...t,flags:t.flags&~oe.CloseTag})}${Ts({...t,flags:t.flags&~oe.OpenTag})}`;if(t.flags===oe.None)return`${t.value}`;let e="",n="";t.flags&oe.ElementTag?e=bT:t.flags&oe.TemplateTag&&(e=DT),e!==""&&(n=t.flags&oe.CloseTag?_T:"");let r=t.subTemplateIndex===null?"":`${RT}${t.subTemplateIndex}`;return`${Wh}${n}${e}${t.value}${r}${Wh}`}function $T(t){for(let e of t.units){let n=new Map;for(let s of e.create){if(Ys(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(aa(s)?i=s:tt(s,a=>{i===null&&aa(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");T.insertBefore(Iw(a,i.sourceSpan),s),r=o}}}}function UT(t){let e=t.compatibility===Et.TemplateDefinitionBuilder,n=[],r=0;for(let s of t.units)for(let i of s.create)i.kind===p.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:hu(o));s=t.pool.getConstLiteral(Ws(i),e)}t.contentSelectors=t.pool.getConstLiteral(Ws(n),e),t.root.create.prepend([Fw(s)])}}function VT(t){li(t.root,null)}function li(t,e){let n=qT(t,e);for(let r of t.create)switch(r.kind){case p.Template:li(t.job.views.get(r.xref),n);break;case p.Projection:r.fallbackView!==null&&li(t.job.views.get(r.fallbackView),n);break;case p.RepeaterCreate:li(t.job.views.get(r.xref),n),r.emptyView&&li(t.job.views.get(r.emptyView),n);break;case p.Listener:case p.TwoWayListener:r.handlerOps.prepend(Ac(t,n,!0));break}t.update.prepend(Ac(t,n,!1))}function qT(t,e){let n={view:t.xref,viewContextVariable:{kind:Oe.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:Oe.Identifier,name:null,identifier:r,local:!1});for(let r of t.create)switch(r.kind){case p.ElementStart:case p.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:Oe.Identifier,name:null,identifier:r.localRefs[s].name,local:!1}});break;case p.DeclareLet:n.letDeclarations.push({targetId:r.xref,targetSlot:r.handle,variable:{kind:Oe.Identifier,name:null,identifier:r.declaredName,local:!1}});break}return n}function Ac(t,e,n){let r=[];e.view!==t.xref&&r.push(nr(t.job.allocateXrefId(),e.viewContextVariable,new ua,It.None));let s=t.job.views.get(e.view);for(let[i,o]of s.contextVariables){let a=new qn(e.view),l=o===Vd?a:new lt(a,o);r.push(nr(t.job.allocateXrefId(),e.contextVariables.get(i),l,It.None))}for(let i of s.aliases)r.push(nr(t.job.allocateXrefId(),i,i.expression.clone(),It.AlwaysInline));for(let i of e.references)r.push(nr(t.job.allocateXrefId(),i.variable,new la(i.targetId,i.targetSlot,i.offset),It.None));if(e.view!==t.xref||n)for(let i of e.letDeclarations)r.push(nr(t.job.allocateXrefId(),i.variable,new Ki(i.targetId,i.targetSlot),It.None));return e.parent!==null&&r.push(...Ac(t,e.parent,!1)),r}function GT(t){for(let e of t.units)for(let n of e.ops())Ue(n,r=>r instanceof Xi?y(t.addConst(r.expr)):r,te.None)}var Kh="style.",zh="class.",HT="style!",Xh="class!",Yh="!important";function WT(t){for(let e of t.root.update)if(e.kind===p.Binding&&e.bindingKind===F.Property)if(e.name.endsWith(Yh)&&(e.name=e.name.substring(0,e.name.length-Yh.length)),e.name.startsWith(Kh)){e.bindingKind=F.StyleProperty,e.name=e.name.substring(Kh.length),jT(e.name)||(e.name=KT(e.name));let{property:n,suffix:r}=Tl(e.name);e.name=n,e.unit=r}else e.name.startsWith(HT)?(e.bindingKind=F.StyleProperty,e.name="style"):e.name.startsWith(zh)?(e.bindingKind=F.ClassName,e.name=Tl(e.name.substring(zh.length)).property):e.name.startsWith(Xh)&&(e.bindingKind=F.ClassName,e.name=Tl(e.name.substring(Xh.length)).property)}function jT(t){return t.startsWith("--")}function KT(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Tl(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 Nc(t,e=!1){return Ye(Object.keys(t).map(n=>({key:n,quoted:e,value:t[n]})))}var bc=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`{${oo(e,!1)}}`}},zT=new bc;function Hd(t){return t.visit(zT)}var vr=class{constructor(e,n){this.sourceSpan=e,this.i18n=n}},Zr=class extends vr{constructor(e,n,r,s){super(n,s),this.value=e,this.tokens=r}visit(e,n){return e.visitText(this,n)}},Lr=class extends vr{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)}},Sa=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)}},Dc=class extends vr{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)}},Ot=class extends vr{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)}},Qi=class{constructor(e,n){this.value=e,this.sourceSpan=n}visit(e,n){return e.visitComment(this,n)}},Bt=class extends vr{constructor(e,n,r,s,i,o,a=null,l){super(s,l),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)}},wa=class{constructor(e,n){this.expression=e,this.sourceSpan=n}visit(e,n){return e.visitBlockParameter(this,n)}},Ta=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 xe(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 xa={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:`
22
- `,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"},Wd="\uE500";xa.ngsp=Wd;var mi=class extends q{constructor(e,n,r){super(r,e),this.tokenType=n}},_c=class{constructor(e,n,r){this.tokens=e,this.errors=n,this.nonNormalizedIcuExpressions=r}};function XT(t,e,n,r={}){let s=new Rc(new zr(t,e),n,r);return s.tokenize(),new _c(sx(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var YT=/\r\n?/g;function ii(t){return`Unexpected character "${t===Ze?"EOF":String.fromCharCode(t)}"`}function Qh(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function QT(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var Ca;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(Ca||(Ca={}));var gi=class{constructor(e){this.error=e}},Rc=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||$t,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 kc(e,s):new Ia(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(YT,`
23
- `)}tokenize(){for(;this._cursor.peek()!==Ze;){let e=this._cursor.clone();try{this._attemptCharCode(Es)?this._attemptCharCode(uc)?this._attemptCharCode(Is)?this._consumeCdata(e):this._attemptCharCode(ia)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Nn)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===gl&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(gl)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(gt)?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=>Gi(r)?!e:rx(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()===Pn)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Me),this._attemptCharCode(Xt))this._attemptCharCodeUntilFn(Me);else{n.type=28;return}this._attemptCharCode(pn)?(this._beginToken(25),this._endToken([])):n.type=28}_consumeBlockEnd(e){this._beginToken(26,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(ef);this._cursor.peek()!==Xt&&this._cursor.peek()!==Ze;){this._beginToken(27);let e=this._cursor.clone(),n=null,r=0;for(;this._cursor.peek()!==Ct&&this._cursor.peek()!==Ze||n!==null;){let s=this._cursor.peek();if(s===hi)this._cursor.advance();else if(s===n)n=null;else if(n===null&&fi(s))n=s;else if(s===Pn&&n===null)r++;else if(s===Xt&&n===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(ef)}}_consumeLetDeclaration(e){if(this._beginToken(29,e),Gi(this._cursor.peek()))this._attemptCharCodeUntilFn(Me);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=32;return}let n=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Me),!this._attemptCharCode(kr)){n.type=32;return}this._attemptCharCodeUntilFn(s=>Me(s)&&!xu(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===Ct?(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=>Hi(r)||r===Su||r===ao||n&&cn(r)?(n=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==Ze;){let n=this._cursor.peek();if(n===Ct)break;fi(n)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===hi?(this._cursor.advance(),!1):r===n)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(tx(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===gt){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 gi(r)}handleError(e){if(e instanceof Ji&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof gi)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return nx(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let n=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(ii(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(ii(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(ii(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(Ed)){let r=this._attemptCharCode(Nd)||this._attemptCharCode(NS),s=this._cursor.clone();if(this._attemptCharCodeUntilFn(ZT),this._cursor.peek()!=Ct){this._cursor.advance();let o=r?Ca.HEX:Ca.DEC;throw this._createError(QT(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(Qh(this._cursor.getChars(n)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(ex),this._cursor.peek()!=Ct)this._beginToken(e,n),this._cursor=r,this._endToken(["&"]);else{let s=this._cursor.getChars(r);this._cursor.advance();let i=xa[s];if(!i)throw this._createError(Qh(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()===sa?(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(ia),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(Zn);let r=this._cursor.getChars(n);this._cursor.advance(),this._endToken([r])}_consumePrefixAndName(){let e=this._cursor.clone(),n="";for(;this._cursor.peek()!==tr&&!JT(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===tr?(n=this._cursor.getChars(e),this._cursor.advance(),r=this._cursor.clone()):r=e,this._requireCharCodeUntilFn(Jh,n===""?0:1);let s=this._cursor.getChars(r);return[n,s]}_consumeTagOpen(e){let n,r,s;try{if(!Hi(this._cursor.peek()))throw this._createError(ii(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),r=s.parts[0],n=s.parts[1],this._attemptCharCodeUntilFn(Me);this._cursor.peek()!==Nn&&this._cursor.peek()!==Zn&&this._cursor.peek()!==Es&&this._cursor.peek()!==Ze;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Me),this._attemptCharCode(kr)&&(this._attemptCharCodeUntilFn(Me),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Me);this._consumeTagOpenEnd()}catch(o){if(o instanceof gi){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}let i=this._getTagDefinition(n).getContentType(r);i===Kt.RAW_TEXT?this._consumeRawTextWithTagClose(r,n,!1):i===Kt.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,n,!0)}_consumeRawTextWithTagClose(e,n,r){this._consumeRawText(r,()=>!this._attemptCharCode(Es)||!this._attemptCharCode(Nn)||(this._attemptCharCodeUntilFn(Me),!this._attemptStrCaseInsensitive(n))?!1:(this._attemptCharCodeUntilFn(Me),this._attemptCharCode(Zn))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===Zn,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===qi||e===Vi)throw this._createError(ii(e),this._cursor.getSpan());this._beginToken(14);let n=this._consumePrefixAndName();this._endToken(n)}_consumeAttributeValue(){if(this._cursor.peek()===qi||this._cursor.peek()===Vi){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=()=>Jh(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(Nn)?2:1;this._beginToken(e),this._requireCharCode(Zn),this._endToken([])}_consumeTagClose(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(Me);let n=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Me),this._requireCharCode(Zn),this._endToken(n)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(pn),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(Vt),n=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([n]);else{let s=this._endToken([e]);n!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(Vt),this._attemptCharCodeUntilFn(Me),this._beginToken(7);let r=this._readUntil(Vt);this._endToken([r]),this._requireCharCode(Vt),this._attemptCharCodeUntilFn(Me)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(pn).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Me),this._beginToken(21),this._requireCharCode(pn),this._endToken([]),this._attemptCharCodeUntilFn(Me),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(gt),this._endToken([]),this._attemptCharCodeUntilFn(Me),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(gt),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()===sa?(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()!==Ze&&(r===null||!r());){let l=this._cursor.clone();if(this._isTagStart()){this._cursor=l,s.push(this._getProcessedChars(i,l)),this._endToken(s);return}if(o===null)if(this._attemptStr(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,l)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(a=!0);let c=this._cursor.peek();this._cursor.advance(),c===hi?this._cursor.advance():c===o?o=null:!a&&o===null&&fi(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()===Ze||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===gt&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._cursor.peek()===gl||this._cursor.peek()===gt))}_isTagStart(){if(this._cursor.peek()===Es){let e=this._cursor.clone();e.advance();let n=e.peek();if(jr<=n&&n<=lo||zs<=n&&n<=$a||n===Nn||n===uc)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()!==pn)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),n=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!n}return!0}};function Me(t){return!Gi(t)||t===Ze}function Jh(t){return Gi(t)||t===Zn||t===Es||t===Nn||t===qi||t===Vi||t===kr||t===Ze}function JT(t){return(t<jr||lo<t)&&(t<zs||$a<t)&&(t<wu||t>wd)}function ZT(t){return t===Ct||t===Ze||!kS(t)}function ex(t){return t===Ct||t===Ze||!Hi(t)}function tx(t){return t!==gt}function nx(t,e){return Zh(t)===Zh(e)}function Zh(t){return t>=jr&&t<=lo?t-jr+zs:t}function rx(t){return Hi(t)||cn(t)||t===ao}function ef(t){return t!==Ct&&Me(t)}function sx(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 Ia=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 V(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 Ji('Unexpected character "EOF"',this);let n=this.charAt(e.offset);n===Mr?(e.line++,e.column=0):xu(n)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?Ze:this.charAt(e.offset)}locationFromCursor(e){return new Kr(e.file,e.state.offset,e.state.line,e.state.column)}},kc=class t extends Ia{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()===hi)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===Td)this.state.peek=Mr;else if(e()===xd)this.state.peek=Eu;else if(e()===Ad)this.state.peek=gd;else if(e()===Cd)this.state.peek=vu;else if(e()===DS)this.state.peek=wS;else if(e()===Tu)this.state.peek=yd;else if(e()===Id)if(this.advanceState(this.internalState),e()===pn){this.advanceState(this.internalState);let n=this.clone(),r=0;for(;e()!==gt;)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()===Nd){this.advanceState(this.internalState);let n=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(n,2)}else if(Nh(e())){let n="",r=0,s=this.clone();for(;Nh(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 xu(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 Ji("Invalid hexadecimal escape sequence",e);return s}},Ji=class{constructor(e,n){this.msg=e,this.cursor=n}},Ge=class t extends q{static create(e,n,r){return new t(e,n,r)}constructor(e,n,r){super(n,r),this.elementName=e}},Aa=class{constructor(e,n){this.rootNodes=e,this.errors=n}},Pc=class{constructor(e){this.getTagDefinition=e}parse(e,n,r){let s=XT(e,n,this.getTagDefinition,r),i=new Mc(s.tokens,this.getTagDefinition);return i.build(),new Aa(i.rootNodes,s.errors.concat(i.errors))}},Mc=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 Bt&&this.errors.push(Ge.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 V(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Qi(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(Ge.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let i=new V(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Lr(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(Ge.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 V(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),a=new V(n.sourceSpan.start,s.sourceSpan.end,n.sourceSpan.fullStart);return new Sa(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(tf(r,21)){if(r.pop(),r.length===0)return n}else return this.errors.push(Ge.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(tf(r,19))r.pop();else return this.errors.push(Ge.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===33)return this.errors.push(Ge.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]===`
24
- `){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,nf):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Zr(s,new V(r.start,i.end,r.fullStart,r.details),n))}}_closeVoidElement(){let e=this._getContainer();e instanceof Ot&&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||tc(i)!==null||f.isVoid||this.errors.push(Ge.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,l=new V(e.sourceSpan.start,a,e.sourceSpan.fullStart),c=new V(e.sourceSpan.start,a,e.sourceSpan.fullStart),u=new Ot(i,s,[],l,c,void 0),h=this._getContainer();this._pushContainer(u,h instanceof Ot&&this.getTagDefinition(h.name).isClosedByChild(u.name)),o?this._popContainer(i,Ot,l):e.type===4&&(this._popContainer(i,Ot,null),this.errors.push(Ge.create(i,l,`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(Ge.create(n,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(n,Ot,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(Ge.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 Bt||o instanceof Ot&&!this.getTagDefinition(o.name).closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let n=nc(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 u=this._advance();i.push(u),u.type===17?s+=u.parts.join("").replace(/&([^;]+);/g,nf):u.type===9?s+=u.parts[0]:s+=u.parts.join(""),a=r=u.sourceSpan.end}this._peek.type===15&&(r=this._advance().sourceSpan.end);let c=o&&a&&new V(o.start,a,o.fullStart);return new Dc(n,s,new V(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 wa(a.parts[0],a.sourceSpan))}this._peek.type===25&&this._advance();let r=this._peek.sourceSpan.fullStart,s=new V(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new V(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new Bt(e.parts[0],n,[],s,e.sourceSpan,i);this._pushContainer(o,!1)}_consumeBlockClose(e){this._popContainer(null,Bt,e.sourceSpan)||this.errors.push(Ge.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 "&#125;" HTML entity instead.'))}_consumeIncompleteBlock(e){let n=[];for(;this._peek.type===27;){let a=this._advance();n.push(new wa(a.parts[0],a.sourceSpan))}let r=this._peek.sourceSpan.fullStart,s=new V(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new V(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new Bt(e.parts[0],n,[],s,e.sourceSpan,i);this._pushContainer(o,!1),this._popContainer(null,Bt,null),this.errors.push(Ge.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(e){let n=e.parts[0],r,s;if(this._peek.type!==30){this.errors.push(Ge.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(Ge.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 V(e.sourceSpan.start,i,e.sourceSpan.fullStart),a=e.sourceSpan.toString().lastIndexOf(n),l=e.sourceSpan.start.moveBy(a),c=new V(l,e.sourceSpan.end),u=new Ta(n,r.parts[0],o,c,r.sourceSpan);this._addToParent(u)}_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 V(i,e.sourceSpan.end),a=new V(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),l=new Ta(n,"",e.sourceSpan,o,a);this._addToParent(l)}this.errors.push(Ge.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 Ot)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=nn(r.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=tc(r.name))}return nc(e,n)}};function tf(t,e){return t.length>0&&t[t.length-1]===e}function nf(t,e){return xa[e]!==void 0?xa[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 jd="ngPreserveWhitespaces",ix=new Set(["pre","template","textarea","script","style"]),Kd=` \f
25
- \r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,ox=new RegExp(`[^${Kd}]`),ax=new RegExp(`[${Kd}]{2,}`,"g");function lx(t){return t.some(e=>e.name===jd)}function zd(t){return t.replace(new RegExp(Wd,"g")," ")}var Na=class{constructor(e,n,r=!0){this.preserveSignificantWhitespace=e,this.originalNodeMap=n,this.requireContext=r,this.icuExpansionDepth=0}visitElement(e,n){if(ix.has(e.name)||lx(e.attrs)){let s=new Ot(e.name,gs(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(s,e),s}let r=new Ot(e.name,e.attrs,gs(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(r,e),r}visitAttribute(e,n){return e.name!==jd?e:null}visitText(e,n){let r=e.value.match(ox),s=n&&(n.prev instanceof Lr||n.next instanceof Lr);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(r||s){let o=e.tokens.map(u=>u.type===5?hx(u):u);if(!this.preserveSignificantWhitespace&&o.length>0){let u=o[0];o.splice(0,1,cx(u,n));let h=o[o.length-1];o.splice(o.length-1,1,ux(h,n))}let a=Yd(e.value),l=this.preserveSignificantWhitespace?a:px(a,n),c=new Zr(l,e.sourceSpan,o,e.i18n);return this.originalNodeMap?.set(c,e),c}return null}visitComment(e,n){return e}visitExpansion(e,n){this.icuExpansionDepth++;let r;try{r=new Lr(e.switchValue,e.type,gs(this,e.cases),e.sourceSpan,e.switchValueSourceSpan,e.i18n)}finally{this.icuExpansionDepth--}return this.originalNodeMap?.set(r,e),r}visitExpansionCase(e,n){let r=new Sa(e.value,gs(this,e.expression),e.sourceSpan,e.valueSourceSpan,e.expSourceSpan);return this.originalNodeMap?.set(r,e),r}visitBlock(e,n){let r=new Bt(e.name,e.parameters,gs(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan);return this.originalNodeMap?.set(r,e),r}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}visit(e,n){if(this.requireContext&&!n)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}};function cx(t,e){return t.type!==5||!!e?.prev?t:Xd(t,r=>r.trimStart())}function ux(t,e){return t.type!==5||!!e?.next?t:Xd(t,r=>r.trimEnd())}function px(t,e){let n=!e?.prev,r=!e?.next,s=n?t.trimStart():t;return r?s.trimEnd():s}function hx({type:t,parts:e,sourceSpan:n}){return{type:t,parts:[Yd(e[0])],sourceSpan:n}}function Xd({type:t,parts:e,sourceSpan:n},r){return{type:t,parts:[r(e[0])],sourceSpan:n}}function Yd(t){return zd(t).replace(ax," ")}function gs(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 Y;(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"})(Y||(Y={}));var fx=["var","let","as","null","undefined","true","false","if","else","this"],Zi=class{tokenize(e){let n=new Lc(e),r=[],s=n.scanToken();for(;s!=null;)r.push(s),s=n.scanToken();return r}},sn=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==Y.Character&&this.numValue==e}isNumber(){return this.type==Y.Number}isString(){return this.type==Y.String}isOperator(e){return this.type==Y.Operator&&this.strValue==e}isIdentifier(){return this.type==Y.Identifier}isPrivateIdentifier(){return this.type==Y.PrivateIdentifier}isKeyword(){return this.type==Y.Keyword}isKeywordLet(){return this.type==Y.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==Y.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==Y.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==Y.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==Y.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==Y.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==Y.Keyword&&this.strValue=="this"}isError(){return this.type==Y.Error}toNumber(){return this.type==Y.Number?this.numValue:-1}toString(){switch(this.type){case Y.Character:case Y.Identifier:case Y.Keyword:case Y.Operator:case Y.PrivateIdentifier:case Y.String:case Y.Error:return this.strValue;case Y.Number:return this.numValue.toString();default:return null}}};function rf(t,e,n){return new sn(t,e,Y.Character,n,String.fromCharCode(n))}function dx(t,e,n){return new sn(t,e,Y.Identifier,0,n)}function mx(t,e,n){return new sn(t,e,Y.PrivateIdentifier,0,n)}function gx(t,e,n){return new sn(t,e,Y.Keyword,0,n)}function xl(t,e,n){return new sn(t,e,Y.Operator,0,n)}function yx(t,e,n){return new sn(t,e,Y.String,0,n)}function vx(t,e,n){return new sn(t,e,Y.Number,n,"")}function Ex(t,e,n){return new sn(t,e,Y.Error,0,n)}var Cl=new sn(-1,-1,Y.Character,0,""),Lc=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?Ze:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,r=this.peek,s=this.index;for(;r<=vd;)if(++s>=n){r=Ze;break}else r=e.charCodeAt(s);if(this.peek=r,this.index=s,s>=n)return null;if(sf(r))return this.scanIdentifier();if(cn(r))return this.scanNumber(s);let i=s;switch(r){case ds:return this.advance(),cn(this.peek)?this.scanNumber(i):rf(i,this.index,ds);case Pn:case Xt:case pn:case gt:case Is:case Ss:case Vt:case tr:case Ct:return this.scanCharacter(i,r);case qi:case Vi:return this.scanString();case Ed:return this.scanPrivateIdentifier();case Sd:case ia:case xS:case Nn:case TS:case bS:return this.scanOperator(i,String.fromCharCode(r));case Ih:return this.scanQuestion(i);case Es:case Zn:return this.scanComplexOperator(i,String.fromCharCode(r),kr,"=");case uc:case kr:return this.scanComplexOperator(i,String.fromCharCode(r),kr,"=",kr,"=");case sa:return this.scanComplexOperator(i,"&",sa,"&");case Ah:return this.scanComplexOperator(i,"|",Ah,"|");case bd:for(;Gi(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(r)}]`,0)}scanCharacter(e,n){return this.advance(),rf(e,this.index,n)}scanOperator(e,n){return this.advance(),xl(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),xl(e,this.index,a)}scanIdentifier(){let e=this.index;for(this.advance();of(this.peek);)this.advance();let n=this.input.substring(e,this.index);return fx.indexOf(n)>-1?gx(e,this.index,n):dx(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!sf(this.peek))return this.error("Invalid character [#]",-1);for(;of(this.peek);)this.advance();let n=this.input.substring(e,this.index);return mx(e,this.index,n)}scanNumber(e){let n=this.index===e,r=!1;for(this.advance();;){if(!cn(this.peek))if(this.peek===ao){if(!cn(this.input.charCodeAt(this.index-1))||!cn(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);r=!0}else if(this.peek===ds)n=!1;else if(Sx(this.peek)){if(this.advance(),wx(this.peek)&&this.advance(),!cn(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?xx(s):parseFloat(s);return vx(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==hi){r+=i.substring(s,this.index);let a;if(this.advance(),this.peek==Id){let l=i.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(l))a=parseInt(l,16);else return this.error(`Invalid unicode escape [\\u${l}]`,0);for(let c=0;c<5;c++)this.advance()}else a=Tx(this.peek),this.advance();r+=String.fromCharCode(a),s=this.index}else{if(this.peek==Ze)return this.error("Unterminated quote",0);this.advance()}let o=i.substring(s,this.index);return this.advance(),yx(e,this.index,r+o)}scanQuestion(e){this.advance();let n="?";return(this.peek===Ih||this.peek===ds)&&(n+=this.peek===ds?".":"?",this.advance()),xl(e,this.index,n)}error(e,n){let r=this.index+n;return Ex(r,this.index,`Lexer Error: ${e} at column ${r} in expression [${this.input}]`)}};function sf(t){return jr<=t&&t<=lo||zs<=t&&t<=$a||t==ao||t==Su}function of(t){return Hi(t)||cn(t)||t==ao||t==Su}function Sx(t){return t==_S||t==IS}function wx(t){return t==ia||t==Sd}function Tx(t){switch(t){case Td:return Mr;case Tu:return yd;case xd:return Eu;case Cd:return vu;case Ad:return gd;default:return t}}function xx(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var Oc=class{constructor(e,n,r){this.strings=e,this.expressions=n,this.offsets=r}},Fc=class{constructor(e,n,r){this.templateBindings=e,this.warnings=n,this.errors=r}},ba=class{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,n,r,s=$t){this._checkNoInterpolation(e,n,s);let i=this._stripComments(e),o=this._lexer.tokenize(i),a=new Dr(e,n,r,o,1,this.errors,0).parseChain();return new de(a,e,n,r,this.errors)}parseBinding(e,n,r,s=$t){let i=this._parseBindingAst(e,n,r,s);return new de(i,e,n,r,this.errors)}checkSimpleExpression(e){let n=new Bc;return e.visit(n),n.errors}parseSimpleBinding(e,n,r,s=$t){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 de(i,e,n,r,this.errors)}_reportError(e,n,r,s){this.errors.push(new Di(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 Dr(e,n,r,o,0,this.errors,0).parseChain()}parseTemplateBindings(e,n,r,s,i){let o=this._lexer.tokenize(n);return new Dr(n,r,i,o,0,this.errors,0).parseTemplateBindings({source:e,span:new je(s,s+e.length)})}parseInterpolation(e,n,r,s,i=$t){let{strings:o,expressions:a,offsets:l}=this.splitInterpolation(e,n,s,i);if(a.length===0)return null;let c=[];for(let u=0;u<a.length;++u){let h=a[u].text,f=this._stripComments(h),m=this._lexer.tokenize(f),E=new Dr(e,n,r,m,0,this.errors,l[u]).parseChain();c.push(E)}return this.createInterpolationAst(o.map(u=>u.text),c,e,n,r)}parseInterpolationExpression(e,n,r){let s=this._stripComments(e),i=this._lexer.tokenize(s),o=new Dr(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 Vr(0,r.length),a=new Fn(o,o.toAbsolute(i),e,n);return new de(a,r,s,i,this.errors)}splitInterpolation(e,n,r,s=$t){let i=[],o=[],a=[],l=r?Cx(r):null,c=0,u=!1,h=!1,{start:f,end:m}=s;for(;c<e.length;)if(u){let E=c,S=E+f.length,I=this._getInterpolationEndIndex(e,m,S);if(I===-1){u=!1,h=!0;break}let N=I+m.length,$=e.substring(S,I);$.trim().length===0&&this._reportError("Blank expressions are not allowed in interpolated strings",e,`at column ${c} in`,n),o.push({text:$,start:E,end:N});let le=(l?.get(E)??E)+f.length;a.push(le),c=N,u=!1}else{let E=c;c=e.indexOf(f,c),c===-1&&(c=e.length);let S=e.substring(E,c);i.push({text:S,start:E,end:c}),u=!0}if(!u)if(h){let E=i[i.length-1];E.text+=e.substring(c),E.end=e.length}else i.push({text:e.substring(c),start:c,end:e.length});return new Oc(i,o,a)}wrapLiteralPrimitive(e,n,r){let s=new Vr(0,e==null?0:e.length);return new de(new Ft(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===Nn&&i==Nn&&n==null)return r;n===s?n=null:n==null&&fi(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];fi(e.charCodeAt(i))&&(r===null||r===o)&&s%2===0?r=r===null?o:null:r===null&&(yield i),s=o==="\\"?s+1:0}}},xs;(function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"})(xs||(xs={}));var Dr=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=xs.None,this.sourceSpanCache=new Map,this.index=0}peek(e){let n=this.index+e;return n<this.tokens.length?this.tokens[n]:Cl}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 Vr(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===Cl?"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(Ct))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(Ct););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 Ve(this.span(r,s),this.sourceSpan(r,s))}return e.length==1?e[0]:new cr(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 Vr(o,o).toAbsolute(this.absoluteOffset));let a=[];for(;this.consumeOptionalCharacter(tr);)a.push(this.parseExpression());n=new Gr(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(tr))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 Ve(this.span(e),this.sourceSpan(e))}return new qr(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 mt(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 mt(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 mt(this.span(e),this.sourceSpan(e),"??",n,r)}return n}parseEquality(){let e=this.inputIndex,n=this.parseRelational();for(;this.next.type==Y.Operator;){let r=this.next.strValue;switch(r){case"==":case"===":case"!=":case"!==":this.advance();let s=this.parseRelational();n=new mt(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==Y.Operator;){let r=this.next.strValue;switch(r){case"<":case">":case"<=":case">=":this.advance();let s=this.parseAdditive();n=new mt(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==Y.Operator;){let r=this.next.strValue;switch(r){case"+":case"-":this.advance();let s=this.parseMultiplicative();n=new mt(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==Y.Operator;){let r=this.next.strValue;switch(r){case"*":case"%":case"/":this.advance();let s=this.parsePrefix();n=new mt(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parsePrefix(){if(this.next.type==Y.Operator){let e=this.inputIndex,n=this.next.strValue,r;switch(n){case"+":return this.advance(),r=this.parsePrefix(),_i.createPlus(this.span(e),this.sourceSpan(e),r);case"-":return this.advance(),r=this.parsePrefix(),_i.createMinus(this.span(e),this.sourceSpan(e),r);case"!":return this.advance(),r=this.parsePrefix(),new Ri(this.span(e),this.sourceSpan(e),r)}}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(ds))n=this.parseAccessMember(n,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(Pn)?n=this.parseCall(n,e,!0):n=this.consumeOptionalCharacter(Is)?this.parseKeyedReadOrWrite(n,e,!0):this.parseAccessMember(n,e,!0);else if(this.consumeOptionalCharacter(Is))n=this.parseKeyedReadOrWrite(n,e,!1);else if(this.consumeOptionalCharacter(Pn))n=this.parseCall(n,e,!1);else if(this.consumeOptionalOperator("!"))n=new ki(this.span(e),this.sourceSpan(e),n);else return n}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(Pn)){this.rparensExpected++;let n=this.parsePipe();return this.rparensExpected--,this.expectCharacter(Xt),n}else{if(this.next.isKeywordNull())return this.advance(),new Ft(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Ft(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Ft(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Ft(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new fn(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(Is)){this.rbracketsExpected++;let n=this.parseExpressionList(Ss);return this.rbracketsExpected--,this.expectCharacter(Ss),new zo(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isCharacter(pn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new $e(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let n=this.next.toNumber();return this.advance(),new Ft(this.span(e),this.sourceSpan(e),n)}else if(this.next.isString()){let n=this.next.toString();return this.advance(),new Ft(this.span(e),this.sourceSpan(e),n)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Ve(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new Ve(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new Ve(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(Vt));return n}parseLiteralMap(){let e=[],n=[],r=this.inputIndex;if(this.expectCharacter(pn),!this.consumeOptionalCharacter(gt)){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(tr),n.push(this.parsePipe());else if(this.consumeOptionalCharacter(tr))n.push(this.parsePipe());else{a.isShorthandInitialized=!0;let l=this.span(s),c=this.sourceSpan(s);n.push(new Ie(l,c,c,new $e(l,c),o))}}while(this.consumeOptionalCharacter(Vt)&&!this.next.isCharacter(gt));this.rbracesExpected--,this.expectCharacter(gt)}return new Xo(this.span(r),this.sourceSpan(r),e,n)}parseAccessMember(e,n,r){let s=this.inputIndex,i=this.withContext(xs.Writable,()=>{let l=this.expectIdentifierOrKeyword()??"";return l.length===0&&this.error("Expected identifier for property access",e.span.end),l}),o=this.sourceSpan(s),a;if(r)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),a=new Ve(this.span(n),this.sourceSpan(n))):a=new ut(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 Ve(this.span(n),this.sourceSpan(n));let l=this.parseConditional();a=new On(this.span(n),this.sourceSpan(n),o,e,i,l)}else a=new Ie(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(Xt),this.rparensExpected--;let a=this.span(n),l=this.sourceSpan(n);return r?new vn(a,l,e,i,o):new yn(a,l,e,i,o)}parseCallArguments(){if(this.next.isCharacter(Xt))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(Vt));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 je(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 Fc(n,[],this.errors)}parseKeyedReadOrWrite(e,n,r){return this.withContext(xs.Writable,()=>{this.rbracketsExpected++;let s=this.parsePipe();if(s instanceof Ve&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(Ss),this.consumeOptionalOperator("="))if(r)this.error("The '?.' operator cannot be used in the assignment");else{let i=this.parseConditional();return new Ko(this.span(n),this.sourceSpan(n),e,s,i)}else return r?new ur(this.span(n),this.sourceSpan(n),e,s):new Ps(this.span(n),this.sourceSpan(n),e,s);return new Ve(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(e){let n=[];this.consumeOptionalCharacter(tr);let r=this.getDirectiveBoundTarget(),s=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),s=this.currentAbsoluteOffset);let o=new je(e.span.start,s);return n.push(new Jl(o,e,r)),i&&n.push(i),n}getDirectiveBoundTarget(){if(this.next===Cl||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:n,end:r}=e.span,s=this.input.substring(n,r);return new de(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 je(e.span.start,this.currentAbsoluteOffset);return new Pi(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 je(e,this.currentAbsoluteOffset);return new Pi(s,n,r)}consumeStatementTerminator(){this.consumeOptionalCharacter(Ct)||this.consumeOptionalCharacter(Vt)}error(e,n=null){this.errors.push(new Di(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(Ct)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(Xt))&&(this.rbracesExpected<=0||!e.isCharacter(gt))&&(this.rbracketsExpected<=0||!e.isCharacter(Ss))&&(!(this.context&xs.Writable)||!e.isOperator("="));)this.next.isError()&&this.errors.push(new Di(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}},Bc=class extends pr{constructor(){super(...arguments),this.errors=[]}visitPipe(){this.errors.push("pipes")}};function Cx(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,l)=>a+l.length,0);r+=o,n+=o}e.set(r,n),s++}return e}var Fo;function af(){return Fo||(Fo={},Po(ce.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Po(ce.STYLE,["*|style"]),Po(ce.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"]),Po(ce.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"])),Fo}function Po(t,e){for(let n of e)Fo[n.toLowerCase()]=t}var Ix=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function Ax(t){return Ix.has(t.toLowerCase())}var $c=class{},Nx="boolean",bx="number",Dx="string",_x="object",Rx=["[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:|"],Qd=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),kx=Array.from(Qd).reduce((t,[e,n])=>(t.set(e,n),t),new Map),on=class extends $c{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Rx.forEach(e=>{let n=new Map,r=new Set,[s,i]=e.split("|"),o=i.split(","),[a,l]=s.split("^");a.split(",").forEach(u=>{this._schema.set(u.toLowerCase(),n),this._eventSchema.set(u.toLowerCase(),r)});let c=l&&this._schema.get(l.toLowerCase());if(c){for(let[u,h]of c)n.set(u,h);for(let u of this._eventSchema.get(l.toLowerCase()))r.add(u)}o.forEach(u=>{if(u.length>0)switch(u[0]){case"*":r.add(u.substring(1));break;case"!":n.set(u.substring(1),Nx);break;case"#":n.set(u.substring(1),bx);break;case"%":n.set(u.substring(1),_x);break;default:n.set(u,Dx)}})})}hasProperty(e,n,r){if(r.some(i=>i.name===Ul.name))return!0;if(e.indexOf("-")>-1){if(wh(e)||ec(e))return!1;if(r.some(i=>i.name===$l.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(n)}hasElement(e,n){return n.some(r=>r.name===Ul.name)||e.indexOf("-")>-1&&(wh(e)||ec(e)||n.some(r=>r.name===$l.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,n,r){r&&(n=this.getMappedPropName(n)),e=e.toLowerCase(),n=n.toLowerCase();let s=af()[e+"|"+n];return s||(s=af()["*|"+n],s||ce.NONE)}getMappedPropName(e){return Qd.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)})=...
26
- 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=>kx.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return HE(e)}normalizeAnimationStyleValue(e,n,r){let s="",i=r.toString().trim(),o=null;if(Px(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 Px(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 K=class{constructor({closedByChildren:e,implicitNamespacePrefix:n,contentType:r=Kt.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:a=!1,canSelfClose:l=!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=l??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}},lf,hs;function Jd(t){return hs||(lf=new K({canSelfClose:!0}),hs=Object.assign(Object.create(null),{base:new K({isVoid:!0}),meta:new K({isVoid:!0}),area:new K({isVoid:!0}),embed:new K({isVoid:!0}),link:new K({isVoid:!0}),img:new K({isVoid:!0}),input:new K({isVoid:!0}),param:new K({isVoid:!0}),hr:new K({isVoid:!0}),br:new K({isVoid:!0}),source:new K({isVoid:!0}),track:new K({isVoid:!0}),wbr:new K({isVoid:!0}),p:new K({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 K({closedByChildren:["tbody","tfoot"]}),tbody:new K({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new K({closedByChildren:["tbody"],closedByParent:!0}),tr:new K({closedByChildren:["tr"],closedByParent:!0}),td:new K({closedByChildren:["td","th"],closedByParent:!0}),th:new K({closedByChildren:["td","th"],closedByParent:!0}),col:new K({isVoid:!0}),svg:new K({implicitNamespacePrefix:"svg"}),foreignObject:new K({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new K({implicitNamespacePrefix:"math"}),li:new K({closedByChildren:["li"],closedByParent:!0}),dt:new K({closedByChildren:["dt","dd"]}),dd:new K({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new K({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new K({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new K({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new K({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new K({closedByChildren:["optgroup"],closedByParent:!0}),option:new K({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new K({ignoreFirstLf:!0}),listing:new K({ignoreFirstLf:!0}),style:new K({contentType:Kt.RAW_TEXT}),script:new K({contentType:Kt.RAW_TEXT}),title:new K({contentType:{default:Kt.ESCAPABLE_RAW_TEXT,svg:Kt.PARSABLE_DATA}}),textarea:new K({contentType:Kt.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new on().allKnownElementNames().forEach(e=>{!hs[e]&&tc(e)===null&&(hs[e]=new K({canSelfClose:!1}))})),hs[t]??hs[t.toLowerCase()]??lf}var cf={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"},Uc=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=cf[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=cf[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}`}},Mx=new ba(new Zi);function Lx(t,e,n){let r=new Vc(Mx,t,e,n);return(s,i,o,a,l)=>r.toI18nMessage(s,i,o,a,l)}function Ox(t,e){return e}var Vc=class{constructor(e,n,r,s){this._expressionParser=e,this._interpolationConfig=n,this._containerBlocks=r,this._retainEmptyTokens=s}toI18nMessage(e,n="",r="",s="",i){let o={isIcu:e.length==1&&e[0]instanceof Lr,icuDepth:0,placeholderRegistry:new Uc,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||Ox},a=xe(this,e,o);return new ot(a,o.placeholderToContent,o.placeholderToMessage,n,r,s)}visitElement(e,n){let r=xe(this,e.children,n),s={};e.attrs.forEach(c=>{s[c.name]=c.value});let i=Jd(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 l=new fr(e.name,s,o,a,r,i,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,l)}visitAttribute(e,n){let r=e.valueTokens===void 0||e.valueTokens.length===1?new br(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 br(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 na(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(a=>{r[a.value]=new kn(a.expression.map(l=>l.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 Fs(s,i,e.sourceSpan);return n.visitNodeFn(e,o)}visitExpansionCase(e,n){throw new Error("Unreachable code")}visitBlock(e,n){let r=xe(this,e.children,n);if(this._containerBlocks.has(e.name))return new kn(r,e.sourceSpan);let s=e.parameters.map(l=>l.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 dr(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 l=a.parts[1],c=Vx(l)||"INTERPOLATION",u=r.placeholderRegistry.getPlaceholderName(c,l);r.placeholderToContent[u]={text:a.parts.join(""),sourceSpan:a.sourceSpan},i.push(new ra(l,u,a.sourceSpan));break;default:if(a.parts[0].length>0||this._retainEmptyTokens){let h=i[i.length-1];h instanceof br?(h.value+=a.parts[0],h.sourceSpan=new V(h.sourceSpan.start,a.sourceSpan.end,h.sourceSpan.fullStart,h.sourceSpan.details)):i.push(new br(a.parts[0],a.sourceSpan))}else this._retainEmptyTokens&&i.push(new br(a.parts[0],a.sourceSpan));break}return o?(Fx(i,s),new kn(i,n)):i[0]}};function Fx(t,e){if(e instanceof ot&&(Bx(e),e=e.nodes[0]),e instanceof kn){$x(e.children,t);for(let n=0;n<t.length;n++)t[n].sourceSpan=e.children[n].sourceSpan}}function Bx(t){let e=t.nodes;if(e.length!==1||!(e[0]instanceof kn))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}function $x(t,e){if(t.length!==e.length)throw new Error(`
21
+ `}return n}_convertColonHost(e){return e.replace(XS,(n,r,s)=>{if(r){let i=[],o=r.split(",").map(a=>a.trim());for(let a of o){if(!a)break;let l=Nr+a.replace(oa,"")+s;i.push(l)}return i.join(",")}else return Nr+s})}_convertColonHostContext(e){return e.replace(YS,n=>{let r=[[]],s;for(;s=QS.exec(n);){let i=(s[1]??"").trim().split(",").map(a=>a.trim()).filter(a=>a!==""),o=r.length;gw(r,i.length);for(let a=0;a<i.length;a++)for(let l=0;l<o;l++)r[l+a*o].push(i[a]);n=s[2]}return r.map(i=>mw(i,n)).join(", ")})}_convertShadowDOMSelectors(e){return JS.reduce((n,r)=>n.replace(r," "),e)}_scopeSelectors(e,n,r){return ko(e,s=>{let i=s.selector,o=s.content;return s.selector[0]!=="@"?i=this._scopeSelector(s.selector,n,r):jS.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 Wi(i,o)})}_stripScopingSelectors(e){return ko(e,n=>{let r=n.selector.replace(kh," ").replace(Rh," ");return new Wi(r,n.content)})}_scopeSelector(e,n,r){return e.split(/ ?, ?/).map(s=>s.split(kh)).map(s=>{let[i,...o]=s;return[(l=>this._selectorNeedsScoping(l,n)?this._applySelectorScope(l,n,r):l)(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+")"+ZS,"m")}_applySimpleSelectorScope(e,n,r){if(Ts.lastIndex=0,Ts.test(e)){let s=`[${r}]`;return e.replace(Rh,(i,o)=>o.replace(/([^:]*)(:*)(.*)/,(a,l,c,u)=>l+s+c+u)).replace(Ts,s+" ")}return n+" "+e}_applySelectorScope(e,n,r){let s=/\[is=([^\]]*)\]/g;n=n.replace(s,(S,...I)=>I[0]);let i="["+n+"]",o=S=>{let I=S.trim();if(!I)return S;if(S.includes(Nr))I=this._applySimpleSelectorScope(S,n,r);else{let N=S.replace(Ts,"");if(N.length>0){let $=N.match(/([^:]*)(:*)(.*)/);$&&(I=$[1]+i+$[2]+$[3])}}return I},a=new vc(e);e=a.content();let l="",c=0,u,h=/( |>|\+|~(?!=))\s*/g,m=!e.includes(Nr);for(;(u=h.exec(e))!==null;){let S=u[1],I=e.slice(c,u.index);if(I.match(/__esc-ph-(\d+)__/)&&e[u.index+1]?.match(/[a-fA-F\d]/))continue;m=m||I.includes(Nr);let N=m?o(I):I;l+=`${N} ${S} `,c=h.lastIndex}let E=e.substring(c);return m=m||E.includes(Nr),l+=m?o(E):E,a.restore(l)}_insertPolyfillHostInCssText(e){return e.replace(tw,Cu).replace(ew,oa)}},vc=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})}},KS=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,zS=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,_h=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,oa="-shadowcsshost",Cu="-shadowcsscontext",Iu="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",XS=new RegExp(oa+Iu,"gim"),YS=new RegExp(Cu+Iu,"gim"),QS=new RegExp(Cu+Iu,"im"),Nr=oa+"-no-combinator",Rh=/-shadowcsshost-no-combinator([^\s]*)/,JS=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],kh=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,ZS="([>\\s~+[.,{:][\\s\\S]*)?$",Ts=/-shadowcsshost/gim,ew=/:host/gim,tw=/:host-context/gim,nw=/\r?\n/g,rw=/\/\*[\s\S]*?\*\//g,sw=/\/\*\s*#\s*source(Mapping)?URL=/g,Au="%COMMENT%",iw=new RegExp(Au,"g"),vl="%BLOCK%",ow=new RegExp(`(\\s*(?:${Au}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),aw=new Map([["{","}"]]),_d="%COMMA_IN_PLACEHOLDER%",Rd="%SEMI_IN_PLACEHOLDER%",kd="%COLON_IN_PLACEHOLDER%",lw=new RegExp(_d,"g"),cw=new RegExp(Rd,"g"),uw=new RegExp(kd,"g"),Wi=class{constructor(e,n){this.selector=e,this.content=n}};function ko(t,e){let n=fw(t),r=pw(n,aw,vl),s=0,i=r.escapedString.replace(ow,(...o)=>{let a=o[2],l="",c=o[4],u="";c&&c.startsWith("{"+vl)&&(l=r.blocks[s++],c=c.substring(vl.length+1),u="{");let h=e(new Wi(a,l));return`${o[1]}${h.selector}${o[3]}${u}${h.content}${c}`});return dw(i)}var Ec=class{constructor(e,n){this.escapedString=e,this.blocks=n}};function pw(t,e,n){let r=[],s=[],i=0,o=0,a=-1,l,c;for(let u=0;u<t.length;u++){let h=t[u];h==="\\"?u++:h===c?(i--,i===0&&(s.push(t.substring(a,u)),r.push(n),o=u,a=-1,l=c=void 0)):h===l?i++:i===0&&e.has(h)&&(l=h,c=e.get(h),i=1,a=u+1,r.push(t.substring(o,a)))}return a!==-1?(s.push(t.substring(a)),r.push(n)):r.push(t.substring(o)),new Ec(r.join(""),s)}var hw={";":Rd,",":_d,":":kd};function fw(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=hw[s];i&&(e=`${e.substr(0,r)}${i}${e.substr(r+1)}`,r+=i.length-1)}else(s==="'"||s==='"')&&(n=s)}return e}function dw(t){let e=t.replace(lw,",");return e=e.replace(cw,";"),e=e.replace(uw,":"),e}function Ph(t,e){return e?t.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):t}function mw(t,e){let n=Nr;Ts.lastIndex=0;let r=Ts.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 l=s[a];s[i*2+a]=l+" "+o,s[i+a]=o+" "+l,s[a]=o+l}}return s.map(i=>r?`${i}${e}`:`${i}${n}${e}, ${i} ${n}${e}`).join(",")}function gw(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 p;(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"})(p||(p={}));var O;(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"})(O||(O={}));var It;(function(t){t[t.None=0]="None",t[t.AlwaysInline=1]="AlwaysInline"})(It||(It={}));var Oe;(function(t){t[t.Context=0]="Context",t[t.Identifier=1]="Identifier",t[t.SavedView=2]="SavedView",t[t.Alias=3]="Alias"})(Oe||(Oe={}));var Et;(function(t){t[t.Normal=0]="Normal",t[t.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder"})(Et||(Et={}));var F;(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"})(F||(F={}));var Us;(function(t){t[t.Creation=0]="Creation",t[t.Postproccessing=1]="Postproccessing"})(Us||(Us={}));var Yr;(function(t){t[t.I18nText=0]="I18nText",t[t.I18nAttribute=1]="I18nAttribute"})(Yr||(Yr={}));var oe;(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"})(oe||(oe={}));var Ke;(function(t){t[t.HTML=0]="HTML",t[t.SVG=1]="SVG",t[t.Math=2]="Math"})(Ke||(Ke={}));var pe;(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"})(pe||(pe={}));var rr;(function(t){t[t.RootI18n=0]="RootI18n",t[t.Icu=1]="Icu",t[t.Attr=2]="Attr"})(rr||(rr={}));var vt;(function(t){t[t.NgTemplate=0]="NgTemplate",t[t.Structural=1]="Structural",t[t.Block=2]="Block"})(vt||(vt={}));var Pd=Symbol("ConsumesSlot"),Nu=Symbol("DependsOnSlotContext"),Xs=Symbol("ConsumesVars"),Ua=Symbol("UsesVarOffset"),xn={[Pd]:!0,numSlotsUsed:1},Rt={[Nu]:!0},wt={[Xs]:!0};function Ys(t){return t[Pd]===!0}function aa(t){return t[Nu]===!0}function El(t){return t[Xs]===!0}function Mh(t){return t[Ua]===!0}function wn(t){return{kind:p.Statement,statement:t,...j}}function nr(t,e,n,r){return{kind:p.Variable,xref:t,variable:e,initializer:n,flags:r,...j}}var j={debugListId:null,prev:null,next:null};function yw(t,e,n){return{kind:p.InterpolateText,target:t,interpolation:e,sourceSpan:n,...Rt,...wt,...j}}var be=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 Qr(t,e,n,r,s,i,o,a,l,c,u){return{kind:p.Binding,bindingKind:e,target:t,name:n,expression:r,unit:s,securityContext:i,isTextAttribute:o,isStructuralTemplateAttribute:a,templateKind:l,i18nContext:null,i18nMessage:c,sourceSpan:u,...j}}function vw(t,e,n,r,s,i,o,a,l,c){return{kind:p.Property,target:t,name:e,expression:n,isAnimationTrigger:r,securityContext:s,sanitizer:null,isStructuralTemplateAttribute:i,templateKind:o,i18nContext:a,i18nMessage:l,sourceSpan:c,...Rt,...wt,...j}}function Ew(t,e,n,r,s,i,o,a,l){return{kind:p.TwoWayProperty,target:t,name:e,expression:n,securityContext:r,sanitizer:null,isStructuralTemplateAttribute:s,templateKind:i,i18nContext:o,i18nMessage:a,sourceSpan:l,...Rt,...wt,...j}}function Sw(t,e,n,r,s){return{kind:p.StyleProp,target:t,name:e,expression:n,unit:r,sourceSpan:s,...Rt,...wt,...j}}function ww(t,e,n,r){return{kind:p.ClassProp,target:t,name:e,expression:n,sourceSpan:r,...Rt,...wt,...j}}function Tw(t,e,n){return{kind:p.StyleMap,target:t,expression:e,sourceSpan:n,...Rt,...wt,...j}}function xw(t,e,n){return{kind:p.ClassMap,target:t,expression:e,sourceSpan:n,...Rt,...wt,...j}}function Cw(t,e,n,r,s,i,o,a,l,c){return{kind:p.Attribute,target:t,namespace:e,name:n,expression:r,securityContext:s,sanitizer:null,isTextAttribute:i,isStructuralTemplateAttribute:o,templateKind:a,i18nContext:null,i18nMessage:l,sourceSpan:c,...Rt,...wt,...j}}function Iw(t,e){return{kind:p.Advance,delta:t,sourceSpan:e,...j}}function Md(t,e,n,r){return{kind:p.Conditional,target:t,test:e,conditions:n,processed:null,sourceSpan:r,contextValue:null,...j,...Rt,...wt}}function Aw(t,e,n,r){return{kind:p.Repeater,target:t,targetSlot:e,collection:n,sourceSpan:r,...j,...Rt}}function Nw(t,e,n,r){return{kind:p.DeferWhen,target:t,expr:e,prefetch:n,sourceSpan:r,...j,...Rt,...wt}}function Ld(t,e,n,r,s,i,o,a,l,c,u){return{kind:p.I18nExpression,context:t,target:e,i18nOwner:n,handle:r,expression:s,icuPlaceholder:i,i18nPlaceholder:o,resolutionTime:a,usage:l,name:c,sourceSpan:u,...j,...wt,...Rt}}function bw(t,e,n){return{kind:p.I18nApply,owner:t,handle:e,sourceSpan:n,...j}}function Dw(t,e,n,r){return{kind:p.StoreLet,target:t,declaredName:e,value:n,sourceSpan:r,...Rt,...wt,...j}}var Lh,Oh,Fh,Bh,$h,Uh,Vh,qh;function Tn(t){return t instanceof ae}var ae=class extends ne{constructor(e=null){super(null,e)}},We=class t extends ae{constructor(e){super(),this.name=e,this.kind=O.LexicalRead}visitExpression(e,n){}isEquivalent(e){return this.name===e.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.name)}},la=class t extends ae{constructor(e,n,r){super(),this.target=e,this.targetSlot=n,this.offset=r,this.kind=O.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)}},ji=class t extends ae{static{Lh=Xs,Oh=Nu}constructor(e,n,r){super(),this.target=e,this.value=n,this.sourceSpan=r,this.kind=O.StoreLet,this[Lh]=!0,this[Oh]=!0}visitExpression(){}isEquivalent(e){return e instanceof t&&e.target===this.target&&e.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(e,n){this.value=D(this.value,e,n)}clone(){return new t(this.target,this.value,this.sourceSpan)}},Ki=class t extends ae{constructor(e,n){super(),this.target=e,this.targetSlot=n,this.kind=O.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 ae{constructor(e){super(),this.view=e,this.kind=O.Context}visitExpression(){}isEquivalent(e){return e instanceof t&&e.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},ca=class t extends ae{constructor(e){super(),this.view=e,this.kind=O.TrackContext}visitExpression(){}isEquivalent(e){return e instanceof t&&e.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},ua=class t extends ae{constructor(){super(),this.kind=O.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}},Sc=class t extends ae{constructor(){super(),this.kind=O.GetCurrentView}visitExpression(){}isEquivalent(e){return e instanceof t}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t}},pa=class t extends ae{constructor(e){super(),this.view=e,this.kind=O.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=D(this.view,e,n))}clone(){return new t(this.view instanceof ne?this.view.clone():this.view)}},wc=class t extends ae{constructor(e){super(),this.expr=e,this.kind=O.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=D(this.expr,e,n)}clone(){return new t(this.expr.clone())}},ha=class t extends ae{constructor(e,n){super(),this.target=e,this.value=n,this.kind=O.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=D(this.target,e,n),this.value=D(this.value,e,n)}clone(){return new t(this.target,this.value)}},Mn=class t extends ae{constructor(e){super(),this.xref=e,this.kind=O.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}},Jr=class t extends ae{static{Fh=Xs,Bh=Ua}constructor(e,n){super(),this.kind=O.PureFunctionExpr,this[Fh]=!0,this[Bh]=!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 t)||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=D(this.body,e,n|te.InChildOperation):this.fn!==null&&(this.fn=D(this.fn,e,n));for(let r=0;r<this.args.length;r++)this.args[r]=D(this.args[r],e,n)}clone(){let e=new t(this.body?.clone()??null,this.args.map(n=>n.clone()));return e.fn=this.fn?.clone()??null,e.varOffset=this.varOffset,e}},Vs=class t extends ae{constructor(e){super(),this.index=e,this.kind=O.PureFunctionParameterExpr}visitExpression(){}isEquivalent(e){return e instanceof t&&e.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new t(this.index)}},Zr=class t extends ae{static{$h=Xs,Uh=Ua}constructor(e,n,r,s){super(),this.target=e,this.targetSlot=n,this.name=r,this.args=s,this.kind=O.PipeBinding,this[$h]=!0,this[Uh]=!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]=D(this.args[r],e,n)}clone(){let e=new t(this.target,this.targetSlot,this.name,this.args.map(n=>n.clone()));return e.varOffset=this.varOffset,e}},fa=class t extends ae{static{Vh=Xs,qh=Ua}constructor(e,n,r,s,i){super(),this.target=e,this.targetSlot=n,this.name=r,this.args=s,this.numArgs=i,this.kind=O.PipeBindingVariadic,this[Vh]=!0,this[qh]=!0,this.varOffset=null}visitExpression(e,n){this.args.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.args=D(this.args,e,n)}clone(){let e=new t(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return e.varOffset=this.varOffset,e}},qs=class t extends ae{constructor(e,n){super(),this.receiver=e,this.name=n,this.kind=O.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=D(this.receiver,e,n)}clone(){return new t(this.receiver.clone(),this.name)}},Gs=class t extends ae{constructor(e,n,r){super(r),this.receiver=e,this.index=n,this.kind=O.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=D(this.receiver,e,n),this.index=D(this.index,e,n)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},gr=class t extends ae{constructor(e,n){super(),this.receiver=e,this.args=n,this.kind=O.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=D(this.receiver,e,n);for(let r=0;r<this.args.length;r++)this.args[r]=D(this.args[r],e,n)}clone(){return new t(this.receiver.clone(),this.args.map(e=>e.clone()))}},Hs=class t extends ae{constructor(e,n){super(),this.guard=e,this.expr=n,this.kind=O.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=D(this.guard,e,n),this.expr=D(this.expr,e,n)}clone(){return new t(this.guard.clone(),this.expr.clone())}},zi=class t extends ae{constructor(){super(...arguments),this.kind=O.EmptyExpr}visitExpression(e,n){}isEquivalent(e){return e instanceof t}isConstant(){return!0}clone(){return new t}transformInternalExpressions(){}},rn=class t extends ae{constructor(e,n){super(),this.expr=e,this.xref=n,this.kind=O.AssignTemporaryExpr,this.name=null}visitExpression(e,n){this.expr.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.expr=D(this.expr,e,n)}clone(){let e=new t(this.expr.clone(),this.xref);return e.name=this.name,e}},Gn=class t extends ae{constructor(e){super(),this.xref=e,this.kind=O.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}},da=class t extends ae{constructor(e){super(),this.slot=e,this.kind=O.SlotLiteralExpr}visitExpression(e,n){}isEquivalent(e){return e instanceof t&&e.slot===this.slot}isConstant(){return!0}clone(){return new t(this.slot)}transformInternalExpressions(){}},ma=class t extends ae{constructor(e,n,r,s=null){super(),this.expr=e,this.target=n,this.targetSlot=r,this.alias=s,this.kind=O.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=D(this.expr,e,n))}},Xi=class t extends ae{constructor(e){super(),this.expr=e,this.kind=O.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 tt(t,e){Ue(t,(n,r)=>(e(n,r),n),te.None)}var te;(function(t){t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation"})(te||(te={}));function Sl(t,e,n){for(let r=0;r<t.expressions.length;r++)t.expressions[r]=D(t.expressions[r],e,n)}function Ue(t,e,n){switch(t.kind){case p.StyleProp:case p.StyleMap:case p.ClassProp:case p.ClassMap:case p.Binding:t.expression instanceof be?Sl(t.expression,e,n):t.expression=D(t.expression,e,n);break;case p.Property:case p.HostProperty:case p.Attribute:t.expression instanceof be?Sl(t.expression,e,n):t.expression=D(t.expression,e,n),t.sanitizer=t.sanitizer&&D(t.sanitizer,e,n);break;case p.TwoWayProperty:t.expression=D(t.expression,e,n),t.sanitizer=t.sanitizer&&D(t.sanitizer,e,n);break;case p.I18nExpression:t.expression=D(t.expression,e,n);break;case p.InterpolateText:Sl(t.interpolation,e,n);break;case p.Statement:ga(t.statement,e,n);break;case p.Variable:t.initializer=D(t.initializer,e,n);break;case p.Conditional:for(let r of t.conditions)r.expr!==null&&(r.expr=D(r.expr,e,n));t.processed!==null&&(t.processed=D(t.processed,e,n)),t.contextValue!==null&&(t.contextValue=D(t.contextValue,e,n));break;case p.Listener:case p.TwoWayListener:for(let r of t.handlerOps)Ue(r,e,n|te.InChildOperation);break;case p.ExtractedAttribute:t.expression=t.expression&&D(t.expression,e,n),t.trustedValueFn=t.trustedValueFn&&D(t.trustedValueFn,e,n);break;case p.RepeaterCreate:t.track=D(t.track,e,n),t.trackByFn!==null&&(t.trackByFn=D(t.trackByFn,e,n));break;case p.Repeater:t.collection=D(t.collection,e,n);break;case p.Defer:t.loadingConfig!==null&&(t.loadingConfig=D(t.loadingConfig,e,n)),t.placeholderConfig!==null&&(t.placeholderConfig=D(t.placeholderConfig,e,n)),t.resolverFn!==null&&(t.resolverFn=D(t.resolverFn,e,n));break;case p.I18nMessage:for(let[r,s]of t.params)t.params.set(r,D(s,e,n));for(let[r,s]of t.postprocessingParams)t.postprocessingParams.set(r,D(s,e,n));break;case p.DeferWhen:t.expr=D(t.expr,e,n);break;case p.StoreLet:t.value=D(t.value,e,n);break;case p.Advance:case p.Container:case p.ContainerEnd:case p.ContainerStart:case p.DeferOn:case p.DisableBindings:case p.Element:case p.ElementEnd:case p.ElementStart:case p.EnableBindings:case p.I18n:case p.I18nApply:case p.I18nContext:case p.I18nEnd:case p.I18nStart:case p.IcuEnd:case p.IcuStart:case p.Namespace:case p.Pipe:case p.Projection:case p.ProjectionDef:case p.Template:case p.Text:case p.I18nAttributes:case p.IcuPlaceholder:case p.DeclareLet:break;default:throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${p[t.kind]}`)}}function D(t,e,n){if(t instanceof ae)t.transformInternalExpressions(e,n);else if(t instanceof ee)t.lhs=D(t.lhs,e,n),t.rhs=D(t.rhs,e,n);else if(t instanceof ar)t.expr=D(t.expr,e,n);else if(t instanceof lt)t.receiver=D(t.receiver,e,n);else if(t instanceof gn)t.receiver=D(t.receiver,e,n),t.index=D(t.index,e,n);else if(t instanceof $r)t.receiver=D(t.receiver,e,n),t.value=D(t.value,e,n);else if(t instanceof bs)t.receiver=D(t.receiver,e,n),t.index=D(t.index,e,n),t.value=D(t.value,e,n);else if(t instanceof ze){t.fn=D(t.fn,e,n);for(let r=0;r<t.args.length;r++)t.args[r]=D(t.args[r],e,n)}else if(t instanceof ct)for(let r=0;r<t.entries.length;r++)t.entries[r]=D(t.entries[r],e,n);else if(t instanceof Gt)for(let r=0;r<t.entries.length;r++)t.entries[r].value=D(t.entries[r].value,e,n);else if(t instanceof en)t.condition=D(t.condition,e,n),t.trueCase=D(t.trueCase,e,n),t.falseCase!==null&&(t.falseCase=D(t.falseCase,e,n));else if(t instanceof Br)t.expr=D(t.expr,e,n);else if(t instanceof Si)t.value=D(t.value,e,n);else if(t instanceof Ti)for(let r=0;r<t.expressions.length;r++)t.expressions[r]=D(t.expressions[r],e,n);else if(t instanceof _s)t.condition=D(t.condition,e,n);else if(t instanceof wi)t.tag=D(t.tag,e,n),t.template.expressions=t.template.expressions.map(r=>D(r,e,n));else if(t instanceof Ln)if(Array.isArray(t.body))for(let r=0;r<t.body.length;r++)ga(t.body[r],e,n);else t.body=D(t.body,e,n);else if(!(t instanceof U)){if(!(t instanceof Nt||t instanceof qe||t instanceof Ce))throw new Error(`Unhandled expression kind: ${t.constructor.name}`)}return e(t,n)}function ga(t,e,n){if(t instanceof bt)t.expr=D(t.expr,e,n);else if(t instanceof et)t.value=D(t.value,e,n);else if(t instanceof Xe)t.value!==void 0&&(t.value=D(t.value,e,n));else if(t instanceof Ii){t.condition=D(t.condition,e,n);for(let r of t.trueCase)ga(r,e,n);for(let r of t.falseCase)ga(r,e,n)}else throw new Error(`Unhandled statement kind: ${t.constructor.name}`)}function Od(t){return t instanceof Ce&&typeof t.value=="string"}var T=class t{static{this.nextListId=0}constructor(){this.debugListId=t.nextListId++,this.head={kind:p.ListEnd,next:null,prev:null,debugListId:this.debugListId},this.tail={kind:p.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}t.assertIsNotEnd(e),t.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)t.assertIsNotEnd(s),t.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;){t.assertIsOwned(e,this.debugListId);let n=e.next;yield e,e=n}}*reversed(){let e=this.tail.prev;for(;e!==this.head;){t.assertIsOwned(e,this.debugListId);let n=e.prev;yield e,e=n}}static replace(e,n){t.assertIsNotEnd(e),t.assertIsNotEnd(n),t.assertIsOwned(e),t.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){t.remove(e);return}t.assertIsNotEnd(e),t.assertIsOwned(e);let r=e.debugListId;e.debugListId=null;for(let c of n)t.assertIsNotEnd(c),t.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],l=o;s!==null&&(s.next=a,a.prev=s),i!==null&&(i.prev=l,l.next=i)}static remove(e){t.assertIsNotEnd(e),t.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(t.assertIsOwned(n),n.prev===null)throw new Error("AssertionError: illegal operation on list start");t.assertIsNotEnd(e),t.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(t.assertIsOwned(n),n.next===null)throw new Error("AssertionError: illegal operation on list end");t.assertIsNotEnd(e),t.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: ${p[e.kind]}`)}static assertIsOwned(e,n){if(e.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${p[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===p.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}},St=class{constructor(){this.slot=null}},_w=new Set([p.Element,p.ElementStart,p.Container,p.ContainerStart,p.Template,p.RepeaterCreate]);function yr(t){return _w.has(t.kind)}function Rw(t,e,n,r,s,i){return{kind:p.ElementStart,xref:e,tag:t,handle:new St,attributes:null,localRefs:[],nonBindable:!1,namespace:n,i18nPlaceholder:r,startSourceSpan:s,wholeSourceSpan:i,...xn,...j}}function Va(t,e,n,r,s,i,o,a){return{kind:p.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,...xn,...j}}function kw(t,e,n,r,s,i,o,a,l,c){return{kind:p.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:l,wholeSourceSpan:c,...xn,...j,...wt,numSlotsUsed:e===null?2:3}}function Pw(t,e){return{kind:p.ElementEnd,xref:t,sourceSpan:e,...j}}function Mw(t){return{kind:p.DisableBindings,xref:t,...j}}function Lw(t){return{kind:p.EnableBindings,xref:t,...j}}function Fd(t,e,n,r){return{kind:p.Text,xref:t,handle:new St,initialValue:e,icuPlaceholder:n,sourceSpan:r,...xn,...j}}function bu(t,e,n,r,s,i,o,a,l){let c=new T;return c.push(s),{kind:p.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:l,...j}}function Bd(t,e,n,r,s,i){let o=new T;return o.push(s),{kind:p.TwoWayListener,target:t,targetSlot:e,tag:r,name:n,handlerOps:o,handlerFnName:null,sourceSpan:i,...j}}function $d(t,e,n){return{kind:p.Pipe,xref:t,handle:e,name:n,...j,...xn}}function Ow(t){return{kind:p.Namespace,active:t,...j}}function Fw(t){return{kind:p.ProjectionDef,def:t,...j}}function Bw(t,e,n,r,s){return{kind:p.Projection,xref:t,handle:new St,selector:e,i18nPlaceholder:n,fallbackView:r,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:s,...j,...xn,numSlotsUsed:r===null?1:2}}function Ut(t,e,n,r,s,i,o,a){return{kind:p.ExtractedAttribute,target:t,bindingKind:e,namespace:n,name:r,expression:s,i18nContext:i,i18nMessage:o,securityContext:a,trustedValueFn:null,...j}}function $w(t,e,n,r,s,i){return{kind:p.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,...j,...xn,numSlotsUsed:2}}function Ar(t,e,n,r){return{kind:p.DeferOn,defer:t,trigger:e,prefetch:n,sourceSpan:r,...j}}function Uw(t,e,n){return{kind:p.DeclareLet,xref:t,declaredName:e,sourceSpan:n,handle:new St,...xn,...j}}function Vw(t,e,n,r,s,i,o,a){return{kind:p.I18nMessage,xref:t,i18nContext:e,i18nBlock:n,message:r,messagePlaceholder:s,params:i,postprocessingParams:o,needsPostprocessing:a,subMessages:[],...j}}function qa(t,e,n,r){return{kind:p.I18nStart,xref:t,handle:new St,root:n??t,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:r,...j,...xn}}function Ga(t,e){return{kind:p.I18nEnd,xref:t,sourceSpan:e,...j}}function qw(t,e,n,r){return{kind:p.IcuStart,xref:t,message:e,messagePlaceholder:n,context:null,sourceSpan:r,...j}}function Gw(t){return{kind:p.IcuEnd,xref:t,...j}}function Hw(t,e,n){return{kind:p.IcuPlaceholder,xref:t,name:e,strings:n,expressionPlaceholders:[],...j}}function wl(t,e,n,r,s){if(n===null&&t!==rr.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return{kind:p.I18nContext,contextKind:t,xref:e,i18nBlock:n,message:r,sourceSpan:s,params:new Map,postprocessingParams:new Map,...j}}function Ud(t,e,n){return{kind:p.I18nAttributes,xref:t,handle:e,target:n,i18nAttributesConfig:null,...j,...xn}}function Ww(t,e,n,r,s,i){return{kind:p.HostProperty,name:t,expression:e,isAnimationTrigger:n,i18nContext:r,securityContext:s,sanitizer:null,sourceSpan:i,...wt,...j}}var Vd="CTX_REF_MARKER",b;(function(t){t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both"})(b||(b={}));var ya=class{constructor(e,n,r){this.componentName=e,this.pool=n,this.compatibility=r,this.kind=b.Both,this.nextXrefId=0}allocateXrefId(){return this.nextXrefId++}},Yi=class extends ya{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=b.Tmpl,this.fnSuffix="Template",this.views=new Map,this.contentSelectors=null,this.consts=[],this.constsInitializers=[],this.root=new dn(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}allocateView(e){let n=new dn(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}},va=class{constructor(e){this.xref=e,this.create=new T,this.update=new T,this.fnName=null,this.vars=null}*ops(){for(let e of this.create)if(yield e,e.kind===p.Listener||e.kind===p.TwoWayListener)for(let n of e.handlerOps)yield n;for(let e of this.update)yield e}},dn=class extends va{constructor(e,n,r){super(n),this.job=e,this.parent=r,this.contextVariables=new Map,this.aliases=new Set,this.decls=null}},Ea=class extends ya{constructor(e,n,r){super(e,n,r),this.kind=b.Host,this.fnSuffix="HostBindings",this.root=new Tc(this)}get units(){return[this.root]}},Tc=class extends va{constructor(e){super(0),this.job=e,this.attributes=null}};function jw(t){for(let e of t.units)for(let n of e.ops())Ue(n,Kw,te.None)}function Kw(t){if(t instanceof ze&&t.fn instanceof We&&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 zw(t){let e=new Map;for(let n of t.units)for(let r of n.create)r.kind===p.I18nContext&&e.set(r.xref,r);for(let n of t.units)for(let r of n.update)r.kind===p.I18nExpression&&Xw(e,r)&&T.insertAfter(bw(r.i18nOwner,r.handle,null),r)}function Xw(t,e){if(e.next?.kind!==p.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 Yw(t){for(let e of t.units){let n=e.update.head,r=[],s=null;for(let i of e.create){if(i.kind===p.I18nStart)s={blockXref:i.xref,lastSlotConsumer:i.xref};else if(i.kind===p.I18nEnd){for(let o of r)o.target=s.lastSlotConsumer,T.insertBefore(o,n);r.length=0,s=null}if(Ys(i))for(s!==null&&(s.lastSlotConsumer=i.xref);n.next!==null;){if(s!==null&&n.kind===p.I18nExpression&&n.usage===Yr.I18nText&&n.i18nOwner===s.blockXref){let o=n;n=n.next,T.remove(o),r.push(o);continue}if(aa(n)&&n.target!==i.xref)break;n=n.next}}}}function Du(t){let e=new Map;for(let n of t.create)Ys(n)&&(e.set(n.xref,n),n.kind===p.RepeaterCreate&&n.emptyView!==null&&e.set(n.emptyView,n));return e}function Qw(t){for(let e of t.units){let n=Du(e);for(let r of e.ops())switch(r.kind){case p.Attribute:Jw(e,r,n);break;case p.Property:if(!r.isAnimationTrigger){let s;r.i18nMessage!==null&&r.templateKind===null?s=F.I18n:r.isStructuralTemplateAttribute?s=F.Template:s=F.Property,T.insertBefore(Ut(r.target,s,null,r.name,null,null,null,r.securityContext),gs(n,r.target))}break;case p.TwoWayProperty:T.insertBefore(Ut(r.target,F.TwoWayProperty,null,r.name,null,null,null,r.securityContext),gs(n,r.target));break;case p.StyleProp:case p.ClassProp:e.job.compatibility===Et.TemplateDefinitionBuilder&&r.expression instanceof zi&&T.insertBefore(Ut(r.target,F.Property,null,r.name,null,null,null,ce.STYLE),gs(n,r.target));break;case p.Listener:if(!r.isAnimationListener){let s=Ut(r.target,F.Property,null,r.name,null,null,null,ce.NONE);if(t.kind===b.Host){if(t.compatibility)break;e.create.push(s)}else T.insertBefore(s,gs(n,r.target))}break;case p.TwoWayListener:if(t.kind!==b.Host){let s=Ut(r.target,F.Property,null,r.name,null,null,null,ce.NONE);T.insertBefore(s,gs(n,r.target))}break}}}function gs(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 Jw(t,e,n){if(e.expression instanceof be)return;let r=e.isTextAttribute||e.expression.isConstant();if(t.job.compatibility===Et.TemplateDefinitionBuilder&&(r&&=e.isTextAttribute),r){let s=Ut(e.target,e.isStructuralTemplateAttribute?F.Template:F.Attribute,e.namespace,e.name,e.expression,e.i18nContext,e.i18nMessage,e.securityContext);if(t.job.kind===b.Host)t.create.push(s);else{let i=gs(n,e.target);T.insertBefore(s,i)}T.remove(e)}}function Zw(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 eT(t){let e=new Map;for(let n of t.units)for(let r of n.create)yr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.ops())if(r.kind===p.Binding)switch(r.bindingKind){case F.Attribute:if(r.name==="ngNonBindable"){T.remove(r);let s=Zw(e,r.target);s.nonBindable=!0}else{let[s,i]=nn(r.name);T.replace(r,Cw(r.target,s,i,r.expression,r.securityContext,r.isTextAttribute,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan))}break;case F.Property:case F.Animation:t.kind===b.Host?T.replace(r,Ww(r.name,r.expression,r.bindingKind===F.Animation,r.i18nContext,r.securityContext,r.sourceSpan)):T.replace(r,vw(r.target,r.name,r.expression,r.bindingKind===F.Animation,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case F.TwoWayProperty:if(!(r.expression instanceof ne))throw new Error(`Expected value of two-way property binding "${r.name}" to be an expression`);T.replace(r,Ew(r.target,r.name,r.expression,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case F.I18n:case F.ClassName:case F.StyleProperty:throw new Error(`Unhandled binding of kind ${F[r.bindingKind]}`)}}var tT=new Set([d.attribute,d.classProp,d.element,d.elementContainer,d.elementContainerEnd,d.elementContainerStart,d.elementEnd,d.elementStart,d.hostProperty,d.i18nExp,d.listener,d.listener,d.property,d.styleProp,d.stylePropInterpolate1,d.stylePropInterpolate2,d.stylePropInterpolate3,d.stylePropInterpolate4,d.stylePropInterpolate5,d.stylePropInterpolate6,d.stylePropInterpolate7,d.stylePropInterpolate8,d.stylePropInterpolateV,d.syntheticHostListener,d.syntheticHostProperty,d.templateCreate,d.twoWayProperty,d.twoWayListener,d.declareLet]),nT=256;function rT(t){for(let e of t.units)Gh(e.create),Gh(e.update)}function Gh(t){let e=null;for(let n of t){if(n.kind!==p.Statement||!(n.statement instanceof bt)){e=null;continue}if(!(n.statement.expr instanceof ze)||!(n.statement.expr.fn instanceof qe)){e=null;continue}let r=n.statement.expr.fn.value;if(!tT.has(r)){e=null;continue}if(e!==null&&e.instruction===r&&e.length<nT){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++,T.remove(n)}else e={op:n,instruction:r,expression:n.statement.expr,length:1}}}function sT(t){for(let e of t.units)for(let n of e.update)n.kind===p.Attribute&&n.expression instanceof be&&n.expression.strings.length===2&&n.expression.strings.every(s=>s==="")&&(n.expression=n.expression.expressions[0])}function iT(t){for(let e of t.units)for(let n of e.ops()){if(n.kind!==p.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 da(o)}else r=y(-1);let i=n.test==null?null:new rn(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 l=o===0?i:new Gn(i.xref);a.expr=new ee(A.Identical,l,a.expr)}else if(a.alias!==null){let l=t.allocateXrefId();a.expr=new rn(a.expr,l),n.contextValue=new Gn(l)}r=new en(a.expr,new da(a.targetSlot),r)}}n.processed=r,n.conditions=[]}}var oT=new Map([["&&",A.And],[">",A.Bigger],[">=",A.BiggerEquals],["|",A.BitwiseOr],["&",A.BitwiseAnd],["/",A.Divide],["==",A.Equals],["===",A.Identical],["<",A.Lower],["<=",A.LowerEquals],["-",A.Minus],["%",A.Modulo],["*",A.Multiply],["!=",A.NotEquals],["!==",A.NotIdentical],["??",A.NullishCoalesce],["||",A.Or],["+",A.Plus]]);function qd(t){let e=new Map([["svg",Ke.SVG],["math",Ke.Math]]);return t===null?Ke.HTML:e.get(t)??Ke.HTML}function aT(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 lT(t,e){return e===Ke.HTML?t:`:${aT(e)}:${t}`}function Ws(t){return Array.isArray(t)?se(t.map(Ws)):y(t)}function cT(t){let e=new Map;for(let n of t.units)for(let r of n.create)if(r.kind===p.ExtractedAttribute){let s=e.get(r.target)||new xc(t.compatibility);e.set(r.target,s),s.add(r.bindingKind,r.name,r.expression,r.namespace,r.trustedValueFn),T.remove(r)}if(t instanceof Yi)for(let n of t.units)for(let r of n.create)if(r.kind==p.Projection){let s=e.get(r.xref);if(s!==void 0){let i=Cc(s);i.entries.length>0&&(r.attributes=i)}}else yr(r)&&(r.attributes=Hh(t,e,r.xref),r.kind===p.RepeaterCreate&&r.emptyView!==null&&(r.emptyAttributes=Hh(t,e,r.emptyView)));else if(t instanceof Ea)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=Cc(r);s.entries.length>0&&(t.root.attributes=s)}}function Hh(t,e,n){let r=e.get(n);if(r!==void 0){let s=Cc(r);if(s.entries.length>0)return t.addConst(s)}return null}var ps=Object.freeze([]),xc=class{get attributes(){return this.byKind.get(F.Attribute)??ps}get classes(){return this.byKind.get(F.ClassName)??ps}get styles(){return this.byKind.get(F.StyleProperty)??ps}get bindings(){return this.propertyBindings??ps}get template(){return this.byKind.get(F.Template)??ps}get i18n(){return this.byKind.get(F.I18n)??ps}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===Et.TemplateDefinitionBuilder&&(e===F.Attribute||e===F.ClassName||e===F.StyleProperty))&&this.isKnown(e,n))return;if(n==="ngProjectAs"){if(r===null||!(r instanceof Ce)||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(...uT(s,n)),e===F.Attribute||e===F.StyleProperty){if(r===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(i!==null){if(!Od(r))throw Error("AssertionError: extracted attribute value should be string literal");a.push(ad(i,new qo([new Go(r.value)],[]),void 0,r.sourceSpan))}else a.push(r)}}arrayFor(e){return e===F.Property||e===F.TwoWayProperty?(this.propertyBindings??=[],this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function uT(t,e){let n=y(e);return t?[y(0),y(t),n]:[n]}function Cc({attributes:t,bindings:e,classes:n,i18n:r,projectAs:s,styles:i,template:o}){let a=[...t];if(s!==null){let l=hu(s)[0];a.push(y(5),Ws(l))}return n.length>0&&a.push(y(1),...n),i.length>0&&a.push(y(2),...i),e.length>0&&a.push(y(3),...e),o.length>0&&a.push(y(4),...o),r.length>0&&a.push(y(6),...r),se(a)}function pT(t){let e=new Map;for(let n of t.units){for(let r of n.create)r.kind===p.I18nAttributes&&e.set(r.target,r);for(let r of n.update)switch(r.kind){case p.Property:case p.Attribute:if(r.i18nContext===null||!(r.expression instanceof be))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(Ld(r.i18nContext,s.target,s.xref,s.handle,a,null,r.expression.i18nPlaceholders[o],Us.Creation,Yr.I18nAttribute,r.name,r.sourceSpan))}T.replaceWithMany(r,i);break}}}function hT(t){for(let e of t.units)for(let n of e.create)if(n.kind===p.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 fT(t){let e=new Map;for(let s of t.units)for(let i of s.ops())switch(i.kind){case p.Binding:case p.Property:case p.Attribute:case p.ExtractedAttribute:if(i.i18nMessage===null)continue;if(!e.has(i.i18nMessage)){let o=wl(rr.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 p.I18nStart:if(i.xref===i.root){let o=wl(rr.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===p.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 p.I18nStart:r=i;break;case p.I18nEnd:r=null;break;case p.IcuStart:if(r===null)throw Error("AssertionError: Unexpected ICU outside of an i18n block.");if(i.message.id!==r.message.id){let o=wl(rr.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=rr.Icu;break}}function dT(t){let e=new Map;for(let n of t.units)for(let r of n.update.reversed())if(r.kind===p.Binding&&r.isTextAttribute){let s=e.get(r.target)||new Set;s.has(r.name)&&t.compatibility===Et.TemplateDefinitionBuilder&&(r.name==="style"||r.name==="class")&&T.remove(r),s.add(r.name),e.set(r.target,s)}}function mT(t){for(let e of t.units)for(let n of e.create)n.kind===p.Defer&&(n.placeholderMinimumTime!==null&&(n.placeholderConfig=new Xi(Ws([n.placeholderMinimumTime]))),(n.loadingMinimumTime!==null||n.loadingAfterTime!==null)&&(n.loadingConfig=new Xi(Ws([n.loadingMinimumTime,n.loadingAfterTime]))))}function gT(t){let e=new Map;function n(s){if(e.has(s.xref))return e.get(s.xref);let i=new Ic;for(let o of s.create)if(!(!yr(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 pe.Idle:case pe.Immediate:case pe.Timer:return;case pe.Hover:case pe.Interaction:case pe.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 u of c.create)if(Ys(u)&&(yr(u)||u.kind===p.Projection)){i.trigger.targetXref=u.xref,i.trigger.targetView=o,i.trigger.targetSlotViewSteps=-1,i.trigger.targetSlot=u.handle;return}return}let a=o!==null?t.views.get(o):s,l=o!==null?-1:0;for(;a!==null;){let c=n(a);if(c.targets.has(i.trigger.targetName)){let{xref:u,slot:h}=c.targets.get(i.trigger.targetName);i.trigger.targetXref=u,i.trigger.targetView=a.xref,i.trigger.targetSlotViewSteps=l,i.trigger.targetSlot=h;return}a=a.parent!==null?t.views.get(a.parent):null,l++}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 p.Defer:i.set(o.xref,o);break;case p.DeferOn:let a=i.get(o.defer);r(s,o,a.placeholderView);break}}}var Ic=class{constructor(){this.targets=new Map}},yT=new Map([[p.ElementEnd,[p.ElementStart,p.Element]],[p.ContainerEnd,[p.ContainerStart,p.Container]],[p.I18nEnd,[p.I18nStart,p.I18n]]]),vT=new Set([p.Pipe]);function ET(t){for(let e of t.units)for(let n of e.create){let r=yT.get(n.kind);if(r===void 0)continue;let[s,i]=r,o=n.prev;for(;o!==null&&vT.has(o.kind);)o=o.prev;o!==null&&o.kind===s&&(o.kind=i,T.remove(n))}}function ST(t){for(let e of t.units)for(let n of e.ops())Ue(n,r=>AT(r,{job:t}),te.None),Ue(n,NT,te.None)}var _M=[ze,ct,Gt,gr,Zr].map(t=>t.constructor.name);function Lt(t){return t instanceof ar?Lt(t.expr):t instanceof ee?Lt(t.lhs)||Lt(t.rhs):t instanceof en?t.falseCase&&Lt(t.falseCase)?!0:Lt(t.condition)||Lt(t.trueCase):t instanceof _s?Lt(t.condition):t instanceof rn?Lt(t.expr):t instanceof lt?Lt(t.receiver):t instanceof gn?Lt(t.receiver)||Lt(t.index):t instanceof ze||t instanceof ct||t instanceof Gt||t instanceof gr||t instanceof Zr}function wT(t){let e=new Set;return D(t,n=>(n instanceof rn&&e.add(n.xref),n),te.None),e}function TT(t,e,n){return D(t,r=>{if(r instanceof rn&&e.has(r.xref)){let s=new Gn(r.xref);return n.job.compatibility===Et.TemplateDefinitionBuilder?new rn(s,s.xref):s}return r},te.None),t}function hs(t,e,n){let r;if(Lt(t)){let s=n.job.allocateXrefId();r=[new rn(t,s),new Gn(s)]}else r=[t,t.clone()],TT(r[1],wT(r[0]),n);return new Hs(r[0],e(r[1]))}function xT(t){return t instanceof qs||t instanceof Gs||t instanceof gr}function CT(t){return t instanceof lt||t instanceof gn||t instanceof ze}function Gd(t){return xT(t)||CT(t)}function IT(t){if(Gd(t)&&t.receiver instanceof Hs){let e=t.receiver;for(;e.expr instanceof Hs;)e=e.expr;return e}return null}function AT(t,e){if(!Gd(t))return t;let n=IT(t);if(n){if(t instanceof ze)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 gn)return n.expr=n.expr.key(t.index),t.receiver;if(t instanceof gr)return n.expr=hs(n.expr,r=>r.callFn(t.args),e),t.receiver;if(t instanceof qs)return n.expr=hs(n.expr,r=>r.prop(t.name),e),t.receiver;if(t instanceof Gs)return n.expr=hs(n.expr,r=>r.key(t.index),e),t.receiver}else{if(t instanceof gr)return hs(t.receiver,r=>r.callFn(t.args),e);if(t instanceof qs)return hs(t.receiver,r=>r.prop(t.name),e);if(t instanceof Gs)return hs(t.receiver,r=>r.key(t.index),e)}return t}function NT(t){return t instanceof Hs?new en(new ee(A.Equals,t.guard,Rs),Rs,t.expr):t}var Wh="\uFFFD",bT="#",DT="*",_T="/",RT=":",kT="[",PT="]",MT="|";function LT(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 p.I18nContext:let a=OT(t,o);i.create.push(a),e.set(o.xref,a),r.set(o.xref,o);break;case p.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 p.IcuStart:s=o,T.remove(o);let a=r.get(o.context);if(a.contextKind!==rr.Icu)continue;let l=n.get(a.i18nBlock);if(l.context===a.xref)continue;let c=n.get(l.root),u=e.get(c.context);if(u===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let h=e.get(a.xref);h.messagePlaceholder=o.messagePlaceholder,u.subMessages.push(h.xref);break;case p.IcuEnd:s=null,T.remove(o);break;case p.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,y(FT(o))),T.remove(o);break}}function OT(t,e,n){let r=jh(e.params),s=jh(e.postprocessingParams),i=[...e.params.values()].some(o=>o.length>1);return Vw(t.allocateXrefId(),e.xref,e.i18nBlock,e.message,n??null,r,s,i)}function FT(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(xs);return t.strings.flatMap((n,r)=>[n,e[r]||""]).join("")}function jh(t){let e=new Map;for(let[n,r]of t){let s=BT(r);s!==null&&e.set(n,y(s))}return e}function BT(t){if(t.length===0)return null;let e=t.map(n=>xs(n));return e.length===1?e[0]:`${kT}${e.join(MT)}${PT}`}function xs(t){if(t.flags&oe.ElementTag&&t.flags&oe.TemplateTag){if(typeof t.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let s=xs({...t,value:t.value.element,flags:t.flags&~oe.TemplateTag}),i=xs({...t,value:t.value.template,flags:t.flags&~oe.ElementTag});return t.flags&oe.OpenTag&&t.flags&oe.CloseTag?`${i}${s}${i}`:t.flags&oe.CloseTag?`${s}${i}`:`${i}${s}`}if(t.flags&oe.OpenTag&&t.flags&oe.CloseTag)return`${xs({...t,flags:t.flags&~oe.CloseTag})}${xs({...t,flags:t.flags&~oe.OpenTag})}`;if(t.flags===oe.None)return`${t.value}`;let e="",n="";t.flags&oe.ElementTag?e=bT:t.flags&oe.TemplateTag&&(e=DT),e!==""&&(n=t.flags&oe.CloseTag?_T:"");let r=t.subTemplateIndex===null?"":`${RT}${t.subTemplateIndex}`;return`${Wh}${n}${e}${t.value}${r}${Wh}`}function $T(t){for(let e of t.units){let n=new Map;for(let s of e.create){if(Ys(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(aa(s)?i=s:tt(s,a=>{i===null&&aa(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");T.insertBefore(Iw(a,i.sourceSpan),s),r=o}}}}function UT(t){let e=t.compatibility===Et.TemplateDefinitionBuilder,n=[],r=0;for(let s of t.units)for(let i of s.create)i.kind===p.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:hu(o));s=t.pool.getConstLiteral(Ws(i),e)}t.contentSelectors=t.pool.getConstLiteral(Ws(n),e),t.root.create.prepend([Fw(s)])}}function VT(t){li(t.root,null)}function li(t,e){let n=qT(t,e);for(let r of t.create)switch(r.kind){case p.Template:li(t.job.views.get(r.xref),n);break;case p.Projection:r.fallbackView!==null&&li(t.job.views.get(r.fallbackView),n);break;case p.RepeaterCreate:li(t.job.views.get(r.xref),n),r.emptyView&&li(t.job.views.get(r.emptyView),n);break;case p.Listener:case p.TwoWayListener:r.handlerOps.prepend(Ac(t,n,!0));break}t.update.prepend(Ac(t,n,!1))}function qT(t,e){let n={view:t.xref,viewContextVariable:{kind:Oe.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:Oe.Identifier,name:null,identifier:r,local:!1});for(let r of t.create)switch(r.kind){case p.ElementStart:case p.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:Oe.Identifier,name:null,identifier:r.localRefs[s].name,local:!1}});break;case p.DeclareLet:n.letDeclarations.push({targetId:r.xref,targetSlot:r.handle,variable:{kind:Oe.Identifier,name:null,identifier:r.declaredName,local:!1}});break}return n}function Ac(t,e,n){let r=[];e.view!==t.xref&&r.push(nr(t.job.allocateXrefId(),e.viewContextVariable,new ua,It.None));let s=t.job.views.get(e.view);for(let[i,o]of s.contextVariables){let a=new qn(e.view),l=o===Vd?a:new lt(a,o);r.push(nr(t.job.allocateXrefId(),e.contextVariables.get(i),l,It.None))}for(let i of s.aliases)r.push(nr(t.job.allocateXrefId(),i,i.expression.clone(),It.AlwaysInline));for(let i of e.references)r.push(nr(t.job.allocateXrefId(),i.variable,new la(i.targetId,i.targetSlot,i.offset),It.None));if(e.view!==t.xref||n)for(let i of e.letDeclarations)r.push(nr(t.job.allocateXrefId(),i.variable,new Ki(i.targetId,i.targetSlot),It.None));return e.parent!==null&&r.push(...Ac(t,e.parent,!1)),r}function GT(t){for(let e of t.units)for(let n of e.ops())Ue(n,r=>r instanceof Xi?y(t.addConst(r.expr)):r,te.None)}var Kh="style.",zh="class.",HT="style!",Xh="class!",Yh="!important";function WT(t){for(let e of t.root.update)if(e.kind===p.Binding&&e.bindingKind===F.Property)if(e.name.endsWith(Yh)&&(e.name=e.name.substring(0,e.name.length-Yh.length)),e.name.startsWith(Kh)){e.bindingKind=F.StyleProperty,e.name=e.name.substring(Kh.length),jT(e.name)||(e.name=KT(e.name));let{property:n,suffix:r}=Tl(e.name);e.name=n,e.unit=r}else e.name.startsWith(HT)?(e.bindingKind=F.StyleProperty,e.name="style"):e.name.startsWith(zh)?(e.bindingKind=F.ClassName,e.name=Tl(e.name.substring(zh.length)).property):e.name.startsWith(Xh)&&(e.bindingKind=F.ClassName,e.name=Tl(e.name.substring(Xh.length)).property)}function jT(t){return t.startsWith("--")}function KT(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Tl(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 Nc(t,e=!1){return Ye(Object.keys(t).map(n=>({key:n,quoted:e,value:t[n]})))}var bc=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`{${oo(e,!1)}}`}},zT=new bc;function Hd(t){return t.visit(zT)}var vr=class{constructor(e,n){this.sourceSpan=e,this.i18n=n}},es=class extends vr{constructor(e,n,r,s){super(n,s),this.value=e,this.tokens=r}visit(e,n){return e.visitText(this,n)}},Lr=class extends vr{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)}},Sa=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)}},Dc=class extends vr{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)}},Ot=class extends vr{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)}},Qi=class{constructor(e,n){this.value=e,this.sourceSpan=n}visit(e,n){return e.visitComment(this,n)}},Bt=class extends vr{constructor(e,n,r,s,i,o,a=null,l){super(s,l),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)}},wa=class{constructor(e,n){this.expression=e,this.sourceSpan=n}visit(e,n){return e.visitBlockParameter(this,n)}},Ta=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 xe(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 xa={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:`
22
+ `,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"},Wd="\uE500";xa.ngsp=Wd;var mi=class extends q{constructor(e,n,r){super(r,e),this.tokenType=n}},_c=class{constructor(e,n,r){this.tokens=e,this.errors=n,this.nonNormalizedIcuExpressions=r}};function XT(t,e,n,r={}){let s=new Rc(new Xr(t,e),n,r);return s.tokenize(),new _c(sx(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var YT=/\r\n?/g;function ii(t){return`Unexpected character "${t===Ze?"EOF":String.fromCharCode(t)}"`}function Qh(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function QT(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var Ca;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(Ca||(Ca={}));var gi=class{constructor(e){this.error=e}},Rc=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||$t,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 kc(e,s):new Ia(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(YT,`
23
+ `)}tokenize(){for(;this._cursor.peek()!==Ze;){let e=this._cursor.clone();try{this._attemptCharCode(Ss)?this._attemptCharCode(uc)?this._attemptCharCode(As)?this._consumeCdata(e):this._attemptCharCode(ia)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Nn)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===gl&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(gl)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(gt)?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=>Gi(r)?!e:rx(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()===Pn)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Me),this._attemptCharCode(Xt))this._attemptCharCodeUntilFn(Me);else{n.type=28;return}this._attemptCharCode(pn)?(this._beginToken(25),this._endToken([])):n.type=28}_consumeBlockEnd(e){this._beginToken(26,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(ef);this._cursor.peek()!==Xt&&this._cursor.peek()!==Ze;){this._beginToken(27);let e=this._cursor.clone(),n=null,r=0;for(;this._cursor.peek()!==Ct&&this._cursor.peek()!==Ze||n!==null;){let s=this._cursor.peek();if(s===hi)this._cursor.advance();else if(s===n)n=null;else if(n===null&&fi(s))n=s;else if(s===Pn&&n===null)r++;else if(s===Xt&&n===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(ef)}}_consumeLetDeclaration(e){if(this._beginToken(29,e),Gi(this._cursor.peek()))this._attemptCharCodeUntilFn(Me);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=32;return}let n=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Me),!this._attemptCharCode(kr)){n.type=32;return}this._attemptCharCodeUntilFn(s=>Me(s)&&!xu(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===Ct?(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=>Hi(r)||r===Su||r===ao||n&&cn(r)?(n=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==Ze;){let n=this._cursor.peek();if(n===Ct)break;fi(n)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===hi?(this._cursor.advance(),!1):r===n)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(tx(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===gt){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 gi(r)}handleError(e){if(e instanceof Ji&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof gi)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return nx(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let n=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(ii(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(ii(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(ii(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(Ed)){let r=this._attemptCharCode(Nd)||this._attemptCharCode(NS),s=this._cursor.clone();if(this._attemptCharCodeUntilFn(ZT),this._cursor.peek()!=Ct){this._cursor.advance();let o=r?Ca.HEX:Ca.DEC;throw this._createError(QT(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(Qh(this._cursor.getChars(n)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(ex),this._cursor.peek()!=Ct)this._beginToken(e,n),this._cursor=r,this._endToken(["&"]);else{let s=this._cursor.getChars(r);this._cursor.advance();let i=xa[s];if(!i)throw this._createError(Qh(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()===sa?(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(ia),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(Zn);let r=this._cursor.getChars(n);this._cursor.advance(),this._endToken([r])}_consumePrefixAndName(){let e=this._cursor.clone(),n="";for(;this._cursor.peek()!==tr&&!JT(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===tr?(n=this._cursor.getChars(e),this._cursor.advance(),r=this._cursor.clone()):r=e,this._requireCharCodeUntilFn(Jh,n===""?0:1);let s=this._cursor.getChars(r);return[n,s]}_consumeTagOpen(e){let n,r,s;try{if(!Hi(this._cursor.peek()))throw this._createError(ii(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),r=s.parts[0],n=s.parts[1],this._attemptCharCodeUntilFn(Me);this._cursor.peek()!==Nn&&this._cursor.peek()!==Zn&&this._cursor.peek()!==Ss&&this._cursor.peek()!==Ze;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Me),this._attemptCharCode(kr)&&(this._attemptCharCodeUntilFn(Me),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Me);this._consumeTagOpenEnd()}catch(o){if(o instanceof gi){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}let i=this._getTagDefinition(n).getContentType(r);i===Kt.RAW_TEXT?this._consumeRawTextWithTagClose(r,n,!1):i===Kt.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,n,!0)}_consumeRawTextWithTagClose(e,n,r){this._consumeRawText(r,()=>!this._attemptCharCode(Ss)||!this._attemptCharCode(Nn)||(this._attemptCharCodeUntilFn(Me),!this._attemptStrCaseInsensitive(n))?!1:(this._attemptCharCodeUntilFn(Me),this._attemptCharCode(Zn))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===Zn,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===qi||e===Vi)throw this._createError(ii(e),this._cursor.getSpan());this._beginToken(14);let n=this._consumePrefixAndName();this._endToken(n)}_consumeAttributeValue(){if(this._cursor.peek()===qi||this._cursor.peek()===Vi){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=()=>Jh(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(Nn)?2:1;this._beginToken(e),this._requireCharCode(Zn),this._endToken([])}_consumeTagClose(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(Me);let n=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Me),this._requireCharCode(Zn),this._endToken(n)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(pn),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(Vt),n=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([n]);else{let s=this._endToken([e]);n!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(Vt),this._attemptCharCodeUntilFn(Me),this._beginToken(7);let r=this._readUntil(Vt);this._endToken([r]),this._requireCharCode(Vt),this._attemptCharCodeUntilFn(Me)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(pn).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Me),this._beginToken(21),this._requireCharCode(pn),this._endToken([]),this._attemptCharCodeUntilFn(Me),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(gt),this._endToken([]),this._attemptCharCodeUntilFn(Me),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(gt),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()===sa?(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()!==Ze&&(r===null||!r());){let l=this._cursor.clone();if(this._isTagStart()){this._cursor=l,s.push(this._getProcessedChars(i,l)),this._endToken(s);return}if(o===null)if(this._attemptStr(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,l)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(a=!0);let c=this._cursor.peek();this._cursor.advance(),c===hi?this._cursor.advance():c===o?o=null:!a&&o===null&&fi(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()===Ze||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===gt&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._cursor.peek()===gl||this._cursor.peek()===gt))}_isTagStart(){if(this._cursor.peek()===Ss){let e=this._cursor.clone();e.advance();let n=e.peek();if(Kr<=n&&n<=lo||zs<=n&&n<=$a||n===Nn||n===uc)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()!==pn)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),n=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!n}return!0}};function Me(t){return!Gi(t)||t===Ze}function Jh(t){return Gi(t)||t===Zn||t===Ss||t===Nn||t===qi||t===Vi||t===kr||t===Ze}function JT(t){return(t<Kr||lo<t)&&(t<zs||$a<t)&&(t<wu||t>wd)}function ZT(t){return t===Ct||t===Ze||!kS(t)}function ex(t){return t===Ct||t===Ze||!Hi(t)}function tx(t){return t!==gt}function nx(t,e){return Zh(t)===Zh(e)}function Zh(t){return t>=Kr&&t<=lo?t-Kr+zs:t}function rx(t){return Hi(t)||cn(t)||t===ao}function ef(t){return t!==Ct&&Me(t)}function sx(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 Ia=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 V(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 Ji('Unexpected character "EOF"',this);let n=this.charAt(e.offset);n===Mr?(e.line++,e.column=0):xu(n)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?Ze:this.charAt(e.offset)}locationFromCursor(e){return new zr(e.file,e.state.offset,e.state.line,e.state.column)}},kc=class t extends Ia{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()===hi)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===Td)this.state.peek=Mr;else if(e()===xd)this.state.peek=Eu;else if(e()===Ad)this.state.peek=gd;else if(e()===Cd)this.state.peek=vu;else if(e()===DS)this.state.peek=wS;else if(e()===Tu)this.state.peek=yd;else if(e()===Id)if(this.advanceState(this.internalState),e()===pn){this.advanceState(this.internalState);let n=this.clone(),r=0;for(;e()!==gt;)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()===Nd){this.advanceState(this.internalState);let n=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(n,2)}else if(Nh(e())){let n="",r=0,s=this.clone();for(;Nh(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 xu(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 Ji("Invalid hexadecimal escape sequence",e);return s}},Ji=class{constructor(e,n){this.msg=e,this.cursor=n}},Ge=class t extends q{static create(e,n,r){return new t(e,n,r)}constructor(e,n,r){super(n,r),this.elementName=e}},Aa=class{constructor(e,n){this.rootNodes=e,this.errors=n}},Pc=class{constructor(e){this.getTagDefinition=e}parse(e,n,r){let s=XT(e,n,this.getTagDefinition,r),i=new Mc(s.tokens,this.getTagDefinition);return i.build(),new Aa(i.rootNodes,s.errors.concat(i.errors))}},Mc=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 Bt&&this.errors.push(Ge.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 V(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Qi(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(Ge.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let i=new V(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Lr(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(Ge.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 V(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),a=new V(n.sourceSpan.start,s.sourceSpan.end,n.sourceSpan.fullStart);return new Sa(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(tf(r,21)){if(r.pop(),r.length===0)return n}else return this.errors.push(Ge.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(tf(r,19))r.pop();else return this.errors.push(Ge.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===33)return this.errors.push(Ge.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]===`
24
+ `){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,nf):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new es(s,new V(r.start,i.end,r.fullStart,r.details),n))}}_closeVoidElement(){let e=this._getContainer();e instanceof Ot&&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||tc(i)!==null||f.isVoid||this.errors.push(Ge.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,l=new V(e.sourceSpan.start,a,e.sourceSpan.fullStart),c=new V(e.sourceSpan.start,a,e.sourceSpan.fullStart),u=new Ot(i,s,[],l,c,void 0),h=this._getContainer();this._pushContainer(u,h instanceof Ot&&this.getTagDefinition(h.name).isClosedByChild(u.name)),o?this._popContainer(i,Ot,l):e.type===4&&(this._popContainer(i,Ot,null),this.errors.push(Ge.create(i,l,`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(Ge.create(n,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(n,Ot,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(Ge.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 Bt||o instanceof Ot&&!this.getTagDefinition(o.name).closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let n=nc(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 u=this._advance();i.push(u),u.type===17?s+=u.parts.join("").replace(/&([^;]+);/g,nf):u.type===9?s+=u.parts[0]:s+=u.parts.join(""),a=r=u.sourceSpan.end}this._peek.type===15&&(r=this._advance().sourceSpan.end);let c=o&&a&&new V(o.start,a,o.fullStart);return new Dc(n,s,new V(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 wa(a.parts[0],a.sourceSpan))}this._peek.type===25&&this._advance();let r=this._peek.sourceSpan.fullStart,s=new V(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new V(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new Bt(e.parts[0],n,[],s,e.sourceSpan,i);this._pushContainer(o,!1)}_consumeBlockClose(e){this._popContainer(null,Bt,e.sourceSpan)||this.errors.push(Ge.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 "&#125;" HTML entity instead.'))}_consumeIncompleteBlock(e){let n=[];for(;this._peek.type===27;){let a=this._advance();n.push(new wa(a.parts[0],a.sourceSpan))}let r=this._peek.sourceSpan.fullStart,s=new V(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new V(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new Bt(e.parts[0],n,[],s,e.sourceSpan,i);this._pushContainer(o,!1),this._popContainer(null,Bt,null),this.errors.push(Ge.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(e){let n=e.parts[0],r,s;if(this._peek.type!==30){this.errors.push(Ge.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(Ge.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 V(e.sourceSpan.start,i,e.sourceSpan.fullStart),a=e.sourceSpan.toString().lastIndexOf(n),l=e.sourceSpan.start.moveBy(a),c=new V(l,e.sourceSpan.end),u=new Ta(n,r.parts[0],o,c,r.sourceSpan);this._addToParent(u)}_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 V(i,e.sourceSpan.end),a=new V(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),l=new Ta(n,"",e.sourceSpan,o,a);this._addToParent(l)}this.errors.push(Ge.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 Ot)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=nn(r.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=tc(r.name))}return nc(e,n)}};function tf(t,e){return t.length>0&&t[t.length-1]===e}function nf(t,e){return xa[e]!==void 0?xa[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 jd="ngPreserveWhitespaces",ix=new Set(["pre","template","textarea","script","style"]),Kd=` \f
25
+ \r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,ox=new RegExp(`[^${Kd}]`),ax=new RegExp(`[${Kd}]{2,}`,"g");function lx(t){return t.some(e=>e.name===jd)}function zd(t){return t.replace(new RegExp(Wd,"g")," ")}var Na=class{constructor(e,n,r=!0){this.preserveSignificantWhitespace=e,this.originalNodeMap=n,this.requireContext=r,this.icuExpansionDepth=0}visitElement(e,n){if(ix.has(e.name)||lx(e.attrs)){let s=new Ot(e.name,ys(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(s,e),s}let r=new Ot(e.name,e.attrs,ys(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(r,e),r}visitAttribute(e,n){return e.name!==jd?e:null}visitText(e,n){let r=e.value.match(ox),s=n&&(n.prev instanceof Lr||n.next instanceof Lr);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(r||s){let o=e.tokens.map(u=>u.type===5?hx(u):u);if(!this.preserveSignificantWhitespace&&o.length>0){let u=o[0];o.splice(0,1,cx(u,n));let h=o[o.length-1];o.splice(o.length-1,1,ux(h,n))}let a=Yd(e.value),l=this.preserveSignificantWhitespace?a:px(a,n),c=new es(l,e.sourceSpan,o,e.i18n);return this.originalNodeMap?.set(c,e),c}return null}visitComment(e,n){return e}visitExpansion(e,n){this.icuExpansionDepth++;let r;try{r=new Lr(e.switchValue,e.type,ys(this,e.cases),e.sourceSpan,e.switchValueSourceSpan,e.i18n)}finally{this.icuExpansionDepth--}return this.originalNodeMap?.set(r,e),r}visitExpansionCase(e,n){let r=new Sa(e.value,ys(this,e.expression),e.sourceSpan,e.valueSourceSpan,e.expSourceSpan);return this.originalNodeMap?.set(r,e),r}visitBlock(e,n){let r=new Bt(e.name,e.parameters,ys(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan);return this.originalNodeMap?.set(r,e),r}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}visit(e,n){if(this.requireContext&&!n)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}};function cx(t,e){return t.type!==5||!!e?.prev?t:Xd(t,r=>r.trimStart())}function ux(t,e){return t.type!==5||!!e?.next?t:Xd(t,r=>r.trimEnd())}function px(t,e){let n=!e?.prev,r=!e?.next,s=n?t.trimStart():t;return r?s.trimEnd():s}function hx({type:t,parts:e,sourceSpan:n}){return{type:t,parts:[Yd(e[0])],sourceSpan:n}}function Xd({type:t,parts:e,sourceSpan:n},r){return{type:t,parts:[r(e[0])],sourceSpan:n}}function Yd(t){return zd(t).replace(ax," ")}function ys(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 Y;(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"})(Y||(Y={}));var fx=["var","let","as","null","undefined","true","false","if","else","this"],Zi=class{tokenize(e){let n=new Lc(e),r=[],s=n.scanToken();for(;s!=null;)r.push(s),s=n.scanToken();return r}},sn=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==Y.Character&&this.numValue==e}isNumber(){return this.type==Y.Number}isString(){return this.type==Y.String}isOperator(e){return this.type==Y.Operator&&this.strValue==e}isIdentifier(){return this.type==Y.Identifier}isPrivateIdentifier(){return this.type==Y.PrivateIdentifier}isKeyword(){return this.type==Y.Keyword}isKeywordLet(){return this.type==Y.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==Y.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==Y.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==Y.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==Y.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==Y.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==Y.Keyword&&this.strValue=="this"}isError(){return this.type==Y.Error}toNumber(){return this.type==Y.Number?this.numValue:-1}toString(){switch(this.type){case Y.Character:case Y.Identifier:case Y.Keyword:case Y.Operator:case Y.PrivateIdentifier:case Y.String:case Y.Error:return this.strValue;case Y.Number:return this.numValue.toString();default:return null}}};function rf(t,e,n){return new sn(t,e,Y.Character,n,String.fromCharCode(n))}function dx(t,e,n){return new sn(t,e,Y.Identifier,0,n)}function mx(t,e,n){return new sn(t,e,Y.PrivateIdentifier,0,n)}function gx(t,e,n){return new sn(t,e,Y.Keyword,0,n)}function xl(t,e,n){return new sn(t,e,Y.Operator,0,n)}function yx(t,e,n){return new sn(t,e,Y.String,0,n)}function vx(t,e,n){return new sn(t,e,Y.Number,n,"")}function Ex(t,e,n){return new sn(t,e,Y.Error,0,n)}var Cl=new sn(-1,-1,Y.Character,0,""),Lc=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?Ze:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,r=this.peek,s=this.index;for(;r<=vd;)if(++s>=n){r=Ze;break}else r=e.charCodeAt(s);if(this.peek=r,this.index=s,s>=n)return null;if(sf(r))return this.scanIdentifier();if(cn(r))return this.scanNumber(s);let i=s;switch(r){case ms:return this.advance(),cn(this.peek)?this.scanNumber(i):rf(i,this.index,ms);case Pn:case Xt:case pn:case gt:case As:case ws:case Vt:case tr:case Ct:return this.scanCharacter(i,r);case qi:case Vi:return this.scanString();case Ed:return this.scanPrivateIdentifier();case Sd:case ia:case xS:case Nn:case TS:case bS:return this.scanOperator(i,String.fromCharCode(r));case Ih:return this.scanQuestion(i);case Ss:case Zn:return this.scanComplexOperator(i,String.fromCharCode(r),kr,"=");case uc:case kr:return this.scanComplexOperator(i,String.fromCharCode(r),kr,"=",kr,"=");case sa:return this.scanComplexOperator(i,"&",sa,"&");case Ah:return this.scanComplexOperator(i,"|",Ah,"|");case bd:for(;Gi(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(r)}]`,0)}scanCharacter(e,n){return this.advance(),rf(e,this.index,n)}scanOperator(e,n){return this.advance(),xl(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),xl(e,this.index,a)}scanIdentifier(){let e=this.index;for(this.advance();of(this.peek);)this.advance();let n=this.input.substring(e,this.index);return fx.indexOf(n)>-1?gx(e,this.index,n):dx(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!sf(this.peek))return this.error("Invalid character [#]",-1);for(;of(this.peek);)this.advance();let n=this.input.substring(e,this.index);return mx(e,this.index,n)}scanNumber(e){let n=this.index===e,r=!1;for(this.advance();;){if(!cn(this.peek))if(this.peek===ao){if(!cn(this.input.charCodeAt(this.index-1))||!cn(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);r=!0}else if(this.peek===ms)n=!1;else if(Sx(this.peek)){if(this.advance(),wx(this.peek)&&this.advance(),!cn(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?xx(s):parseFloat(s);return vx(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==hi){r+=i.substring(s,this.index);let a;if(this.advance(),this.peek==Id){let l=i.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(l))a=parseInt(l,16);else return this.error(`Invalid unicode escape [\\u${l}]`,0);for(let c=0;c<5;c++)this.advance()}else a=Tx(this.peek),this.advance();r+=String.fromCharCode(a),s=this.index}else{if(this.peek==Ze)return this.error("Unterminated quote",0);this.advance()}let o=i.substring(s,this.index);return this.advance(),yx(e,this.index,r+o)}scanQuestion(e){this.advance();let n="?";return(this.peek===Ih||this.peek===ms)&&(n+=this.peek===ms?".":"?",this.advance()),xl(e,this.index,n)}error(e,n){let r=this.index+n;return Ex(r,this.index,`Lexer Error: ${e} at column ${r} in expression [${this.input}]`)}};function sf(t){return Kr<=t&&t<=lo||zs<=t&&t<=$a||t==ao||t==Su}function of(t){return Hi(t)||cn(t)||t==ao||t==Su}function Sx(t){return t==_S||t==IS}function wx(t){return t==ia||t==Sd}function Tx(t){switch(t){case Td:return Mr;case Tu:return yd;case xd:return Eu;case Cd:return vu;case Ad:return gd;default:return t}}function xx(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var Oc=class{constructor(e,n,r){this.strings=e,this.expressions=n,this.offsets=r}},Fc=class{constructor(e,n,r){this.templateBindings=e,this.warnings=n,this.errors=r}},ba=class{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,n,r,s=$t){this._checkNoInterpolation(e,n,s);let i=this._stripComments(e),o=this._lexer.tokenize(i),a=new Dr(e,n,r,o,1,this.errors,0).parseChain();return new de(a,e,n,r,this.errors)}parseBinding(e,n,r,s=$t){let i=this._parseBindingAst(e,n,r,s);return new de(i,e,n,r,this.errors)}checkSimpleExpression(e){let n=new Bc;return e.visit(n),n.errors}parseSimpleBinding(e,n,r,s=$t){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 de(i,e,n,r,this.errors)}_reportError(e,n,r,s){this.errors.push(new Di(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 Dr(e,n,r,o,0,this.errors,0).parseChain()}parseTemplateBindings(e,n,r,s,i){let o=this._lexer.tokenize(n);return new Dr(n,r,i,o,0,this.errors,0).parseTemplateBindings({source:e,span:new je(s,s+e.length)})}parseInterpolation(e,n,r,s,i=$t){let{strings:o,expressions:a,offsets:l}=this.splitInterpolation(e,n,s,i);if(a.length===0)return null;let c=[];for(let u=0;u<a.length;++u){let h=a[u].text,f=this._stripComments(h),m=this._lexer.tokenize(f),E=new Dr(e,n,r,m,0,this.errors,l[u]).parseChain();c.push(E)}return this.createInterpolationAst(o.map(u=>u.text),c,e,n,r)}parseInterpolationExpression(e,n,r){let s=this._stripComments(e),i=this._lexer.tokenize(s),o=new Dr(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 Vr(0,r.length),a=new Fn(o,o.toAbsolute(i),e,n);return new de(a,r,s,i,this.errors)}splitInterpolation(e,n,r,s=$t){let i=[],o=[],a=[],l=r?Cx(r):null,c=0,u=!1,h=!1,{start:f,end:m}=s;for(;c<e.length;)if(u){let E=c,S=E+f.length,I=this._getInterpolationEndIndex(e,m,S);if(I===-1){u=!1,h=!0;break}let N=I+m.length,$=e.substring(S,I);$.trim().length===0&&this._reportError("Blank expressions are not allowed in interpolated strings",e,`at column ${c} in`,n),o.push({text:$,start:E,end:N});let le=(l?.get(E)??E)+f.length;a.push(le),c=N,u=!1}else{let E=c;c=e.indexOf(f,c),c===-1&&(c=e.length);let S=e.substring(E,c);i.push({text:S,start:E,end:c}),u=!0}if(!u)if(h){let E=i[i.length-1];E.text+=e.substring(c),E.end=e.length}else i.push({text:e.substring(c),start:c,end:e.length});return new Oc(i,o,a)}wrapLiteralPrimitive(e,n,r){let s=new Vr(0,e==null?0:e.length);return new de(new Ft(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===Nn&&i==Nn&&n==null)return r;n===s?n=null:n==null&&fi(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];fi(e.charCodeAt(i))&&(r===null||r===o)&&s%2===0?r=r===null?o:null:r===null&&(yield i),s=o==="\\"?s+1:0}}},Cs;(function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"})(Cs||(Cs={}));var Dr=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=Cs.None,this.sourceSpanCache=new Map,this.index=0}peek(e){let n=this.index+e;return n<this.tokens.length?this.tokens[n]:Cl}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 Vr(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===Cl?"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(Ct))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(Ct););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 Ve(this.span(r,s),this.sourceSpan(r,s))}return e.length==1?e[0]:new cr(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 Vr(o,o).toAbsolute(this.absoluteOffset));let a=[];for(;this.consumeOptionalCharacter(tr);)a.push(this.parseExpression());n=new Hr(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(tr))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 Ve(this.span(e),this.sourceSpan(e))}return new Gr(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 mt(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 mt(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 mt(this.span(e),this.sourceSpan(e),"??",n,r)}return n}parseEquality(){let e=this.inputIndex,n=this.parseRelational();for(;this.next.type==Y.Operator;){let r=this.next.strValue;switch(r){case"==":case"===":case"!=":case"!==":this.advance();let s=this.parseRelational();n=new mt(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==Y.Operator;){let r=this.next.strValue;switch(r){case"<":case">":case"<=":case">=":this.advance();let s=this.parseAdditive();n=new mt(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==Y.Operator;){let r=this.next.strValue;switch(r){case"+":case"-":this.advance();let s=this.parseMultiplicative();n=new mt(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==Y.Operator;){let r=this.next.strValue;switch(r){case"*":case"%":case"/":this.advance();let s=this.parsePrefix();n=new mt(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parsePrefix(){if(this.next.type==Y.Operator){let e=this.inputIndex,n=this.next.strValue,r;switch(n){case"+":return this.advance(),r=this.parsePrefix(),_i.createPlus(this.span(e),this.sourceSpan(e),r);case"-":return this.advance(),r=this.parsePrefix(),_i.createMinus(this.span(e),this.sourceSpan(e),r);case"!":return this.advance(),r=this.parsePrefix(),new Ri(this.span(e),this.sourceSpan(e),r)}}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(ms))n=this.parseAccessMember(n,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(Pn)?n=this.parseCall(n,e,!0):n=this.consumeOptionalCharacter(As)?this.parseKeyedReadOrWrite(n,e,!0):this.parseAccessMember(n,e,!0);else if(this.consumeOptionalCharacter(As))n=this.parseKeyedReadOrWrite(n,e,!1);else if(this.consumeOptionalCharacter(Pn))n=this.parseCall(n,e,!1);else if(this.consumeOptionalOperator("!"))n=new ki(this.span(e),this.sourceSpan(e),n);else return n}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(Pn)){this.rparensExpected++;let n=this.parsePipe();return this.rparensExpected--,this.expectCharacter(Xt),n}else{if(this.next.isKeywordNull())return this.advance(),new Ft(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Ft(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Ft(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Ft(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new fn(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(As)){this.rbracketsExpected++;let n=this.parseExpressionList(ws);return this.rbracketsExpected--,this.expectCharacter(ws),new zo(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isCharacter(pn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new $e(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let n=this.next.toNumber();return this.advance(),new Ft(this.span(e),this.sourceSpan(e),n)}else if(this.next.isString()){let n=this.next.toString();return this.advance(),new Ft(this.span(e),this.sourceSpan(e),n)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Ve(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new Ve(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new Ve(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(Vt));return n}parseLiteralMap(){let e=[],n=[],r=this.inputIndex;if(this.expectCharacter(pn),!this.consumeOptionalCharacter(gt)){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(tr),n.push(this.parsePipe());else if(this.consumeOptionalCharacter(tr))n.push(this.parsePipe());else{a.isShorthandInitialized=!0;let l=this.span(s),c=this.sourceSpan(s);n.push(new Ie(l,c,c,new $e(l,c),o))}}while(this.consumeOptionalCharacter(Vt)&&!this.next.isCharacter(gt));this.rbracesExpected--,this.expectCharacter(gt)}return new Xo(this.span(r),this.sourceSpan(r),e,n)}parseAccessMember(e,n,r){let s=this.inputIndex,i=this.withContext(Cs.Writable,()=>{let l=this.expectIdentifierOrKeyword()??"";return l.length===0&&this.error("Expected identifier for property access",e.span.end),l}),o=this.sourceSpan(s),a;if(r)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),a=new Ve(this.span(n),this.sourceSpan(n))):a=new ut(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 Ve(this.span(n),this.sourceSpan(n));let l=this.parseConditional();a=new On(this.span(n),this.sourceSpan(n),o,e,i,l)}else a=new Ie(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(Xt),this.rparensExpected--;let a=this.span(n),l=this.sourceSpan(n);return r?new vn(a,l,e,i,o):new yn(a,l,e,i,o)}parseCallArguments(){if(this.next.isCharacter(Xt))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(Vt));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 je(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 Fc(n,[],this.errors)}parseKeyedReadOrWrite(e,n,r){return this.withContext(Cs.Writable,()=>{this.rbracketsExpected++;let s=this.parsePipe();if(s instanceof Ve&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(ws),this.consumeOptionalOperator("="))if(r)this.error("The '?.' operator cannot be used in the assignment");else{let i=this.parseConditional();return new Ko(this.span(n),this.sourceSpan(n),e,s,i)}else return r?new ur(this.span(n),this.sourceSpan(n),e,s):new Ps(this.span(n),this.sourceSpan(n),e,s);return new Ve(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(e){let n=[];this.consumeOptionalCharacter(tr);let r=this.getDirectiveBoundTarget(),s=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),s=this.currentAbsoluteOffset);let o=new je(e.span.start,s);return n.push(new Jl(o,e,r)),i&&n.push(i),n}getDirectiveBoundTarget(){if(this.next===Cl||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:n,end:r}=e.span,s=this.input.substring(n,r);return new de(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 je(e.span.start,this.currentAbsoluteOffset);return new Pi(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 je(e,this.currentAbsoluteOffset);return new Pi(s,n,r)}consumeStatementTerminator(){this.consumeOptionalCharacter(Ct)||this.consumeOptionalCharacter(Vt)}error(e,n=null){this.errors.push(new Di(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(Ct)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(Xt))&&(this.rbracesExpected<=0||!e.isCharacter(gt))&&(this.rbracketsExpected<=0||!e.isCharacter(ws))&&(!(this.context&Cs.Writable)||!e.isOperator("="));)this.next.isError()&&this.errors.push(new Di(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}},Bc=class extends pr{constructor(){super(...arguments),this.errors=[]}visitPipe(){this.errors.push("pipes")}};function Cx(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,l)=>a+l.length,0);r+=o,n+=o}e.set(r,n),s++}return e}var Fo;function af(){return Fo||(Fo={},Po(ce.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Po(ce.STYLE,["*|style"]),Po(ce.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"]),Po(ce.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"])),Fo}function Po(t,e){for(let n of e)Fo[n.toLowerCase()]=t}var Ix=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function Ax(t){return Ix.has(t.toLowerCase())}var $c=class{},Nx="boolean",bx="number",Dx="string",_x="object",Rx=["[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:|"],Qd=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),kx=Array.from(Qd).reduce((t,[e,n])=>(t.set(e,n),t),new Map),on=class extends $c{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Rx.forEach(e=>{let n=new Map,r=new Set,[s,i]=e.split("|"),o=i.split(","),[a,l]=s.split("^");a.split(",").forEach(u=>{this._schema.set(u.toLowerCase(),n),this._eventSchema.set(u.toLowerCase(),r)});let c=l&&this._schema.get(l.toLowerCase());if(c){for(let[u,h]of c)n.set(u,h);for(let u of this._eventSchema.get(l.toLowerCase()))r.add(u)}o.forEach(u=>{if(u.length>0)switch(u[0]){case"*":r.add(u.substring(1));break;case"!":n.set(u.substring(1),Nx);break;case"#":n.set(u.substring(1),bx);break;case"%":n.set(u.substring(1),_x);break;default:n.set(u,Dx)}})})}hasProperty(e,n,r){if(r.some(i=>i.name===Ul.name))return!0;if(e.indexOf("-")>-1){if(wh(e)||ec(e))return!1;if(r.some(i=>i.name===$l.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(n)}hasElement(e,n){return n.some(r=>r.name===Ul.name)||e.indexOf("-")>-1&&(wh(e)||ec(e)||n.some(r=>r.name===$l.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,n,r){r&&(n=this.getMappedPropName(n)),e=e.toLowerCase(),n=n.toLowerCase();let s=af()[e+"|"+n];return s||(s=af()["*|"+n],s||ce.NONE)}getMappedPropName(e){return Qd.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)})=...
26
+ 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=>kx.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return HE(e)}normalizeAnimationStyleValue(e,n,r){let s="",i=r.toString().trim(),o=null;if(Px(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 Px(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 K=class{constructor({closedByChildren:e,implicitNamespacePrefix:n,contentType:r=Kt.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:a=!1,canSelfClose:l=!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=l??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}},lf,fs;function Jd(t){return fs||(lf=new K({canSelfClose:!0}),fs=Object.assign(Object.create(null),{base:new K({isVoid:!0}),meta:new K({isVoid:!0}),area:new K({isVoid:!0}),embed:new K({isVoid:!0}),link:new K({isVoid:!0}),img:new K({isVoid:!0}),input:new K({isVoid:!0}),param:new K({isVoid:!0}),hr:new K({isVoid:!0}),br:new K({isVoid:!0}),source:new K({isVoid:!0}),track:new K({isVoid:!0}),wbr:new K({isVoid:!0}),p:new K({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 K({closedByChildren:["tbody","tfoot"]}),tbody:new K({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new K({closedByChildren:["tbody"],closedByParent:!0}),tr:new K({closedByChildren:["tr"],closedByParent:!0}),td:new K({closedByChildren:["td","th"],closedByParent:!0}),th:new K({closedByChildren:["td","th"],closedByParent:!0}),col:new K({isVoid:!0}),svg:new K({implicitNamespacePrefix:"svg"}),foreignObject:new K({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new K({implicitNamespacePrefix:"math"}),li:new K({closedByChildren:["li"],closedByParent:!0}),dt:new K({closedByChildren:["dt","dd"]}),dd:new K({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new K({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new K({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new K({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new K({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new K({closedByChildren:["optgroup"],closedByParent:!0}),option:new K({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new K({ignoreFirstLf:!0}),listing:new K({ignoreFirstLf:!0}),style:new K({contentType:Kt.RAW_TEXT}),script:new K({contentType:Kt.RAW_TEXT}),title:new K({contentType:{default:Kt.ESCAPABLE_RAW_TEXT,svg:Kt.PARSABLE_DATA}}),textarea:new K({contentType:Kt.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new on().allKnownElementNames().forEach(e=>{!fs[e]&&tc(e)===null&&(fs[e]=new K({canSelfClose:!1}))})),fs[t]??fs[t.toLowerCase()]??lf}var cf={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"},Uc=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=cf[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=cf[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}`}},Mx=new ba(new Zi);function Lx(t,e,n){let r=new Vc(Mx,t,e,n);return(s,i,o,a,l)=>r.toI18nMessage(s,i,o,a,l)}function Ox(t,e){return e}var Vc=class{constructor(e,n,r,s){this._expressionParser=e,this._interpolationConfig=n,this._containerBlocks=r,this._retainEmptyTokens=s}toI18nMessage(e,n="",r="",s="",i){let o={isIcu:e.length==1&&e[0]instanceof Lr,icuDepth:0,placeholderRegistry:new Uc,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||Ox},a=xe(this,e,o);return new ot(a,o.placeholderToContent,o.placeholderToMessage,n,r,s)}visitElement(e,n){let r=xe(this,e.children,n),s={};e.attrs.forEach(c=>{s[c.name]=c.value});let i=Jd(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 l=new fr(e.name,s,o,a,r,i,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,l)}visitAttribute(e,n){let r=e.valueTokens===void 0||e.valueTokens.length===1?new br(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 br(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 na(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(a=>{r[a.value]=new kn(a.expression.map(l=>l.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 Fs(s,i,e.sourceSpan);return n.visitNodeFn(e,o)}visitExpansionCase(e,n){throw new Error("Unreachable code")}visitBlock(e,n){let r=xe(this,e.children,n);if(this._containerBlocks.has(e.name))return new kn(r,e.sourceSpan);let s=e.parameters.map(l=>l.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 dr(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 l=a.parts[1],c=Vx(l)||"INTERPOLATION",u=r.placeholderRegistry.getPlaceholderName(c,l);r.placeholderToContent[u]={text:a.parts.join(""),sourceSpan:a.sourceSpan},i.push(new ra(l,u,a.sourceSpan));break;default:if(a.parts[0].length>0||this._retainEmptyTokens){let h=i[i.length-1];h instanceof br?(h.value+=a.parts[0],h.sourceSpan=new V(h.sourceSpan.start,a.sourceSpan.end,h.sourceSpan.fullStart,h.sourceSpan.details)):i.push(new br(a.parts[0],a.sourceSpan))}else this._retainEmptyTokens&&i.push(new br(a.parts[0],a.sourceSpan));break}return o?(Fx(i,s),new kn(i,n)):i[0]}};function Fx(t,e){if(e instanceof ot&&(Bx(e),e=e.nodes[0]),e instanceof kn){$x(e.children,t);for(let n=0;n<t.length;n++)t[n].sourceSpan=e.children[n].sourceSpan}}function Bx(t){let e=t.nodes;if(e.length!==1||!(e[0]instanceof kn))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}function $x(t,e){if(t.length!==e.length)throw new Error(`
27
27
  The number of i18n message children changed between first and second pass.
28
28
 
29
29
  First pass (${t.length} tokens):
@@ -33,30 +33,30 @@ ${t.map(n=>`"${n.sourceSpan.toString()}"`).join(`
33
33
  Second pass (${e.length} tokens):
34
34
  ${e.map(n=>`"${n.sourceSpan.toString()}"`).join(`
35
35
  `)}
36
- `.trim());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 Ux=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function Vx(t){return t.split(Ux)[2]}var qc=class extends q{constructor(e,n){super(e,n)}},uf=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function qx(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),uf.has(t+"|"+e)||uf.has("*|"+e)}var Gx=t=>(e,n)=>{let r=t.get(e)??e;return r instanceof vr&&(n instanceof Fs&&r.i18n instanceof ot&&(n.previousMessage=r.i18n),r.i18n=n),n},Da=class{constructor(e=$t,n=!1,r=!1,s=SS,i=!0,o=!i){this.interpolationConfig=e,this.keepI18nAttrs=n,this.enableI18nLegacyMessageIdFormat=r,this.containerBlocks=s,this.preserveSignificantWhitespace=i,this.retainEmptyTokens=o,this.hasI18nMeta=!1,this._errors=[]}_generateI18nMessage(e,n="",r){let{meaning:s,description:i,customId:o}=this._parseMetadata(n),l=Lx(this.interpolationConfig,this.containerBlocks,this.retainEmptyTokens)(e,s,i,o,r);return this._setMessageId(l,n),this._setLegacyIds(l,n),l}visitAllWithErrors(e){let n=e.map(r=>r.visit(this,null));return new Aa(n,this._errors)}visitElement(e){let n;if(dS(e)){this.hasI18nMeta=!0;let r=[],s={};for(let i of e.attrs)if(i.name===hd){let o=e.i18n||i.value,a=new Map,l=this.preserveSignificantWhitespace?e.children:gs(new Na(!1,a),e.children);n=this._generateI18nMessage(l,o,Gx(a)),n.nodes.length===0&&(n=void 0),e.i18n=n}else if(i.name.startsWith(lc)){let o=i.name.slice(lc.length);qx(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 xe(this,e.children,n),e}visitExpansion(e,n){let r,s=e.i18n;if(this.hasI18nMeta=!0,s instanceof Fs){let i=s.name;r=this._generateI18nMessage([e],s);let o=dd(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 xe(this,e.children,n),e}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}_parseMetadata(e){return typeof e=="string"?jx(e):e instanceof ot?e:{}}_setMessageId(e,n){e.id||(e.id=n instanceof ot&&n.id||EE(e,this.preserveSignificantWhitespace))}_setLegacyIds(e,n){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[vE(e),Zf(e,this.preserveSignificantWhitespace)];else if(typeof n!="string"){let r=n instanceof ot?n:n instanceof Fs?n.previousMessage:void 0;e.legacyIds=r?r.legacyIds:[]}}_reportError(e,n){this._errors.push(new qc(e.sourceSpan,n))}},Hx="|",Wx="@@";function jx(t=""){let e,n,r;if(t=t.trim(),t){let s=t.indexOf(Wx),i=t.indexOf(Hx),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 Kx(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}),id(e)}var zx="goog.getMsg";function Xx(t,e,n,r){let s=Qx(e),i=[y(s)];Object.keys(r).length&&(i.push(Nc(du(r,!0),!0)),i.push(Nc({original_code:Ye(Object.keys(r).map(l=>({key:oo(l),quoted:!0,value:e.placeholders[l]?y(e.placeholders[l].sourceSpan.toString()):y(e.placeholderToMessage[l].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));let o=n.set(W(zx).callFn(i)).toConstDecl();o.addLeadingComment(Kx(e));let a=new bt(t.set(n));return[o,a]}var Gc=class{formatPh(e){return`{$${oo(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){return Hd(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)}},Yx=new Gc;function Qx(t){return t.nodes.map(e=>e.visit(Yx,null)).join("")}function Jx(t,e,n){let{messageParts:r,placeHolders:s}=Zx(e),i=eC(e),o=s.map(c=>n[c.text]),a=ld(e,r,s,o,i),l=t.set(a);return[new bt(l)]}var Hc=class{constructor(e,n){this.placeholderToMessage=e,this.pieces=n}visitText(e){if(this.pieces[this.pieces.length-1]instanceof sr)this.pieces[this.pieces.length-1].text+=e.value;else{let n=new V(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new sr(e.value,n))}}visitContainer(e){e.children.forEach(n=>n.visit(this))}visitIcu(e){this.pieces.push(new sr(Hd(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 Pr(oo(e,!1),n,r)}};function Zx(t){let e=[],n=new Hc(t.placeholderToMessage,e);return t.nodes.forEach(r=>r.visit(n)),tC(e)}function eC(t){let e=t.nodes[0],n=t.nodes[t.nodes.length-1];return new V(e.sourceSpan.fullStart,n.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function tC(t){let e=[],n=[];t[0]instanceof Pr&&e.push(Il(t[0].sourceSpan.start));for(let r=0;r<t.length;r++){let s=t[r];s instanceof sr?e.push(s):(n.push(s),t[r-1]instanceof Pr&&e.push(Il(t[r-1].sourceSpan.end)))}return t[t.length-1]instanceof Pr&&e.push(Il(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:n}}function Il(t){return new sr("",new V(t,t))}var pf="ngI18nClosureMode",nC="i18n_",rC="I18N_EXP_",hf="\uFFFD",sC="MSG_";function ff(t){return`${sC}${t}`.toUpperCase()}function iC(t){return new Xe(t.name,void 0,At,void 0,t.sourceSpan)}function oC(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 l of t.units)for(let c of l.ops())if(c.kind===p.ExtractedAttribute&&c.i18nContext!==null){let u=n.get(c.i18nContext)??[];u.push(c),n.set(c.i18nContext,u)}else if(c.kind===p.I18nAttributes)r.set(c.target,c);else if(c.kind===p.I18nExpression&&c.usage===Xr.I18nAttribute){let u=s.get(c.target)??[];u.push(c),s.set(c.target,u)}else c.kind===p.I18nMessage&&i.set(c.xref,c);let o=new Map,a=new Map;for(let l of t.units)for(let c of l.create)if(c.kind===p.I18nMessage){if(c.messagePlaceholder===null){let{mainVar:u,statements:h}=Zd(t,e,i,c);if(c.i18nBlock!==null){let f=t.addConst(u,h);a.set(c.i18nBlock,f)}else{t.constsInitializers.push(...h),o.set(c.i18nContext,u);let f=n.get(c.i18nContext);if(f!==void 0)for(let m of f)m.expression=u.clone()}}T.remove(c)}for(let l of t.units)for(let c of l.create)if(yr(c)){let u=r.get(c.xref);if(u===void 0)continue;let h=s.get(c.xref);if(h===void 0)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let f=new Set;h=h.filter(E=>{let S=f.has(E.name);return f.add(E.name),!S});let m=h.flatMap(E=>{let S=o.get(E.context);if(S===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[y(E.name),S]});u.i18nAttributesConfig=t.addConst(new ct(m))}for(let l of t.units)for(let c of l.create)if(c.kind===p.I18nStart){let u=a.get(c.root);if(u===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=u}}function Zd(t,e,n,r){let s=[],i=new Map;for(let c of r.subMessages){let u=n.get(c),{mainVar:h,statements:f}=Zd(t,e,n,u);s.push(...f);let m=i.get(u.messagePlaceholder)??[];m.push(h),i.set(u.messagePlaceholder,m)}aC(r,i),r.params=new Map([...r.params.entries()].sort());let o=W(t.pool.uniqueName(nC)),a=uC(t.pool,r.message.id,e,t.i18nUseExternalIds),l;if(r.needsPostprocessing||r.postprocessingParams.size>0){let c=Object.fromEntries([...r.postprocessingParams.entries()].sort()),u=du(c,!1),h=[];r.postprocessingParams.size>0&&h.push(Nc(u,!0)),l=f=>L(d.i18nPostprocess).callFn([f,...h])}return s.push(...lC(r.message,o,a,r.params,l)),{mainVar:o,statements:s}}function aC(t,e){for(let[n,r]of e)r.length===1?t.params.set(n,r[0]):(t.params.set(n,y(`${hf}${rC}${n}${hf}`)),t.postprocessingParams.set(n,se(r)))}function lC(t,e,n,r,s){let i=Object.fromEntries(r),o=[iC(e),so(cC(),Xx(e,t,n,i),Jx(e,t,du(i,!1)))];return s&&o.push(new bt(e.set(s(e)))),o}function cC(){return ro(W(pf)).notIdentical(y("undefined",fu)).and(W(pf))}function uC(t,e,n,r){let s,i=n;if(r){let o=ff("EXTERNAL_"),a=t.uniqueName(i);s=`${o}${di(e)}$$${a}`}else{let o=ff(i);s=t.uniqueName(o)}return W(s)}function pC(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 p.I18nStart:if(a.context===null)throw Error("I18n op should have its context set.");n=a;break;case p.I18nEnd:n=null;break;case p.IcuStart:if(a.context===null)throw Error("Icu op should have its context set.");r=a;break;case p.IcuEnd:r=null;break;case p.Text:if(n!==null)if(s.set(a.xref,n),i.set(a.xref,r),a.icuPlaceholder!==null){let l=Hw(t.allocateXrefId(),a.icuPlaceholder,[a.initialValue]);T.replace(a,l),o.set(a.xref,l)}else T.remove(a);break}for(let a of e.update)switch(a.kind){case p.InterpolateText:if(!s.has(a.target))continue;let l=s.get(a.target),c=i.get(a.target),u=o.get(a.target),h=c?c.context:l.context,f=c?Us.Postproccessing:Us.Creation,m=[];for(let E=0;E<a.interpolation.expressions.length;E++){let S=a.interpolation.expressions[E];m.push(Ld(h,l.xref,l.xref,l.handle,S,u?.xref??null,a.interpolation.i18nPlaceholders[E]??null,f,Xr.I18nText,"",S.sourceSpan??a.sourceSpan))}T.replaceWithMany(a,m),u!==void 0&&(u.strings=a.interpolation.strings);break}}}function hC(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case p.ElementStart:case p.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=fC(n.localRefs);n.localRefs=t.addConst(r)}else n.localRefs=null;break}}function fC(t){let e=[];for(let n of t)e.push(y(n.name),y(n.target));return se(e)}function dC(t){for(let e of t.units){let n=Ke.HTML;for(let r of e.create)r.kind===p.ElementStart&&r.namespace!==n&&(T.insertBefore(Ow(r.namespace),r),n=r.namespace)}}function mC(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=em(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 l=t.slice(i).trim();e.push(a,l)}return e}function em(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function gC(t){let e=new Map;for(let n of t.units)for(let r of n.create)yr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.create)if(r.kind===p.ExtractedAttribute&&r.bindingKind===F.Attribute&&Od(r.expression)){let s=e.get(r.target);if(s!==void 0&&s.kind===p.Template&&s.templateKind===vt.Structural)continue;if(r.name==="style"){let i=mC(r.expression.value);for(let o=0;o<i.length-1;o+=2)T.insertBefore(Ut(r.target,F.StyleProperty,null,i[o],y(i[o+1]),null,null,ce.STYLE),r);T.remove(r)}else if(r.name==="class"){let i=r.expression.value.trim().split(/\s+/g);for(let o of i)T.insertBefore(Ut(r.target,F.ClassName,null,o,null,null,null,ce.NONE),r);T.remove(r)}}}function yC(t){ci(t.root,t.componentName,{index:0},t.compatibility===Et.TemplateDefinitionBuilder)}function ci(t,e,n,r){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(di(`${e}_${t.job.fnSuffix}`),!1));let s=new Map;for(let i of t.ops())switch(i.kind){case p.Property:case p.HostProperty:i.isAnimationTrigger&&(i.name="@"+i.name);break;case p.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=di(i.handlerFnName);break;case p.TwoWayListener:if(i.handlerFnName!==null)break;if(i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");i.handlerFnName=di(`${t.fnName}_${i.tag.replace("-","_")}_${i.name}_${i.targetSlot.slot}_listener`);break;case p.Variable:s.set(i.xref,vC(t,i.variable,n));break;case p.RepeaterCreate:if(!(t instanceof dn))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);ci(c,`${e}_${i.functionNameSuffix}Empty_${i.handle.slot+2}`,n,r)}ci(t.job.views.get(i.xref),`${e}_${i.functionNameSuffix}_${i.handle.slot+1}`,n,r);break;case p.Projection:if(!(t instanceof dn))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);ci(c,`${e}_ProjectionFallback_${i.handle.slot}`,n,r)}break;case p.Template:if(!(t instanceof dn))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 l=i.functionNameSuffix.length===0?"":`_${i.functionNameSuffix}`;ci(a,`${e}${l}_${i.handle.slot}`,n,r);break;case p.StyleProp:i.name=EC(i.name),r&&(i.name=df(i.name));break;case p.ClassProp:r&&(i.name=df(i.name));break}for(let i of t.ops())tt(i,o=>{if(!(!(o instanceof Mn)||o.name!==null)){if(!s.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=s.get(o.xref)}})}function vC(t,e,n){if(e.name===null)switch(e.kind){case Oe.Context:e.name=`ctx_r${n.index++}`;break;case Oe.Identifier:if(t.job.compatibility===Et.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 EC(t){return t.startsWith("--")?t:em(t)}function df(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function SC(t){for(let e of t.units){for(let n of e.create)(n.kind===p.Listener||n.kind===p.TwoWayListener)&&mf(n.handlerOps);mf(e.update)}}function mf(t){for(let e of t){if(e.kind!==p.Statement||!(e.statement instanceof bt)||!(e.statement.expr instanceof ua))continue;let n=e.statement.expr.steps,r=!0;for(let s=e.next;s.kind!==p.ListEnd&&r;s=s.next)tt(s,(i,o)=>{if(!Tn(i))return i;if(r&&!(o&te.InChildOperation))switch(i.kind){case O.NextContext:i.steps+=n,T.remove(e),r=!1;break;case O.GetCurrentView:case O.Reference:case O.ContextLetReference:r=!1;break}})}}var wC="ng-container";function TC(t){for(let e of t.units){let n=new Set;for(let r of e.create)r.kind===p.ElementStart&&r.tag===wC&&(r.kind=p.ContainerStart,n.add(r.xref)),r.kind===p.ElementEnd&&n.has(r.xref)&&(r.kind=p.ContainerEnd)}}function xC(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 CC(t){let e=new Map;for(let n of t.units)for(let r of n.create)yr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.create)(r.kind===p.ElementStart||r.kind===p.ContainerStart)&&r.nonBindable&&T.insertAfter(Mw(r.xref),r),(r.kind===p.ElementEnd||r.kind===p.ContainerEnd)&&xC(e,r.xref).nonBindable&&T.insertBefore(Lw(r.xref),r)}function IC(t){for(let e of t.units)for(let n of e.ops())Ue(n,r=>{if(!(r instanceof ee)||r.operator!==A.NullishCoalesce)return r;let s=new rn(r.lhs.clone(),t.allocateXrefId()),i=new Gn(s.xref);return new en(new ee(A.And,new ee(A.NotIdentical,s,_s),new ee(A.NotIdentical,i,new Ce(void 0))),i.clone(),r.rhs)},te.None)}function bn(t){return e=>e.kind===t}function yi(t,e){return n=>n.kind===t&&e===n.expression instanceof be}function AC(t){return t.kind===p.Listener&&!(t.hostListener&&t.isAnimationListener)||t.kind===p.TwoWayListener}function NC(t){return(t.kind===p.Property||t.kind===p.TwoWayProperty)&&!(t.expression instanceof be)}var bC=[{test:t=>t.kind===p.Listener&&t.hostListener&&t.isAnimationListener},{test:AC}],DC=[{test:bn(p.StyleMap),transform:_a},{test:bn(p.ClassMap),transform:_a},{test:bn(p.StyleProp)},{test:bn(p.ClassProp)},{test:yi(p.Attribute,!0)},{test:yi(p.Property,!0)},{test:NC},{test:yi(p.Attribute,!1)}],_C=[{test:yi(p.HostProperty,!0)},{test:yi(p.HostProperty,!1)},{test:bn(p.Attribute)},{test:bn(p.StyleMap),transform:_a},{test:bn(p.ClassMap),transform:_a},{test:bn(p.StyleProp)},{test:bn(p.ClassProp)}],gf=new Set([p.Listener,p.TwoWayListener,p.StyleMap,p.ClassMap,p.StyleProp,p.ClassProp,p.Property,p.TwoWayProperty,p.HostProperty,p.Attribute]);function RC(t){for(let e of t.units){yf(e.create,bC);let n=e.job.kind===b.Host?_C:DC;yf(e.update,n)}}function yf(t,e){let n=[],r=null;for(let s of t){let i=aa(s)?s.target:null;(!gf.has(s.kind)||i!==r&&r!==null&&i!==null)&&(T.insertBefore(vf(n,e),s),n=[],r=null),gf.has(s.kind)&&(n.push(s),T.remove(s),r=i??r)}t.push(vf(n,e))}function vf(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 _a(t){return t.slice(t.length-1)}function kC(t){for(let e of t.units){let n=Du(e);for(let r of e.ops())switch(r.kind){case p.Binding:let s=MC(n,r.target);PC(r.name)&&s.kind===p.Projection&&T.remove(r);break}}}function PC(t){return t.toLowerCase()==="select"}function MC(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an slottable target.");return n}function LC(t){for(let e of t.units)OC(e)}function OC(t){for(let e of t.update)tt(e,(n,r)=>{if(Tn(n)&&n.kind===O.PipeBinding){if(r&te.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");FC(t,e.target,n)}else t.create.push($d(n.target,n.targetSlot,n.name))}})}function FC(t,e,n){for(let r=t.create.head.next;r.kind!==p.ListEnd;r=r.next){if(!Ys(r)||r.xref!==e)continue;for(;r.next.kind===p.Pipe;)r=r.next;let s=$d(n.target,n.targetSlot,n.name);T.insertBefore(s,r.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${n.name}`)}function BC(t){for(let e of t.units)for(let n of e.update)Ue(n,r=>!(r instanceof Jr)||r.args.length<=4?r:new fa(r.target,r.targetSlot,r.name,se(r.args),r.args.length),te.None)}function $C(t){tm(t.root,0)}function tm(t,e){let n=null;for(let r of t.create)switch(r.kind){case p.I18nStart:r.subTemplateIndex=e===0?null:e,n=r;break;case p.I18nEnd:n.subTemplateIndex===null&&(e=0),n=null;break;case p.Template:e=Al(t.job.views.get(r.xref),n,r.i18nPlaceholder,e);break;case p.RepeaterCreate:let s=t.job.views.get(r.xref);e=Al(s,n,r.i18nPlaceholder,e),r.emptyView!==null&&(e=Al(t.job.views.get(r.emptyView),n,r.emptyI18nPlaceholder,e));break}return e}function Al(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++,UC(t,e)}return tm(t,r)}function UC(t,e){if(t.create.head.next?.kind!==p.I18nStart){let n=t.job.allocateXrefId();T.insertAfter(qa(n,e.message,e.root,null),t.create.head),T.insertBefore(Ga(n,null),t.create.tail)}}function VC(t){for(let e of t.units)for(let n of e.ops())tt(n,r=>{if(!(r instanceof Qr)||r.body===null)return;let s=new Wc(r.args.length);r.fn=t.pool.getSharedConstant(s,r.body),r.body=null})}var Wc=class extends Cs{constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof Vs?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,n){let r=[];for(let i=0;i<this.numArgs;i++)r.push(new Fe("a"+i));let s=D(n,i=>i instanceof Vs?W("a"+i.index):i,te.None);return new Xe(e,new Ln(r,s),void 0,Re.Final)}};function qC(t){for(let e of t.units)for(let n of e.update)Ue(n,(r,s)=>s&te.InChildOperation?r:r instanceof ct?GC(r):r instanceof Gt?HC(r):r,te.None)}function GC(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 Vs(s))}return new Qr(se(e),n)}function HC(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 Ur(r.key,new Vs(s),r.quoted))}return new Qr(Ye(e),n)}function WC(t,e,n,r,s){return Ha(d.element,t,e,n,r,s)}function jC(t,e,n,r,s){return Ha(d.elementStart,t,e,n,r,s)}function Ha(t,e,n,r,s,i){let o=[y(e)];return n!==null&&o.push(y(n)),s!==null?o.push(y(r),y(s)):r!==null&&o.push(y(r)),Z(t,o,i)}function KC(t){return Z(d.elementEnd,[],t)}function zC(t,e,n,r){return Ha(d.elementContainerStart,t,null,e,n,r)}function XC(t,e,n,r){return Ha(d.elementContainer,t,null,e,n,r)}function YC(){return Z(d.elementContainerEnd,[],null)}function QC(t,e,n,r,s,i,o,a){let l=[y(t),e,y(n),y(r),y(s),y(i)];for(o!==null&&(l.push(y(o)),l.push(L(d.templateRefExtractor)));l[l.length-1].isEquivalent(_s);)l.pop();return Z(d.templateCreate,l,a)}function JC(){return Z(d.disableBindings,[],null)}function ZC(){return Z(d.enableBindings,[],null)}function eI(t,e,n,r,s){let i=[y(t),e];return n!==null&&(i.push(y(!1)),i.push(L(n))),Z(r?d.syntheticHostListener:d.listener,i,s)}function Ef(t,e){return L(d.twoWayBindingSet).callFn([t,e])}function tI(t,e,n){return Z(d.twoWayListener,[y(t),e],n)}function nI(t,e){return Z(d.pipe,[y(t),y(e)],null)}function rI(){return Z(d.namespaceHTML,[],null)}function sI(){return Z(d.namespaceSVG,[],null)}function iI(){return Z(d.namespaceMathML,[],null)}function oI(t,e){return Z(d.advance,t>1?[y(t)]:[],e)}function aI(t){return L(d.reference).callFn([y(t)])}function lI(t){return L(d.nextContext).callFn(t===1?[]:[y(t)])}function cI(){return L(d.getCurrentView).callFn([])}function uI(t){return L(d.restoreView).callFn([t])}function pI(t){return L(d.resetView).callFn([t])}function hI(t,e,n){let r=[y(t,null)];return e!==""&&r.push(y(e)),Z(d.text,r,n)}function fI(t,e,n,r,s,i,o,a,l,c){let u=[y(t),y(e),n??y(null),y(r),y(s),y(i),o??y(null),a??y(null),l?L(d.deferEnableTimerScheduling):y(null)],h;for(;(h=u[u.length-1])!==null&&h instanceof Ce&&h.value===null;)u.pop();return Z(d.defer,u,c)}var dI=new Map([[pe.Idle,[d.deferOnIdle,d.deferPrefetchOnIdle]],[pe.Immediate,[d.deferOnImmediate,d.deferPrefetchOnImmediate]],[pe.Timer,[d.deferOnTimer,d.deferPrefetchOnTimer]],[pe.Hover,[d.deferOnHover,d.deferPrefetchOnHover]],[pe.Interaction,[d.deferOnInteraction,d.deferPrefetchOnInteraction]],[pe.Viewport,[d.deferOnViewport,d.deferPrefetchOnViewport]]]);function mI(t,e,n,r){let s=dI.get(t);if(s===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);let i=n?s[1]:s[0];return Z(i,e.map(o=>y(o)),r)}function gI(t){return Z(d.projectionDef,t?[t]:[],null)}function yI(t,e,n,r,s,i,o){let a=[y(t)];return(e!==0||n!==null||r!==null)&&(a.push(y(e)),n!==null&&a.push(n),r!==null&&(n===null&&a.push(y(null)),a.push(W(r),y(s),y(i)))),Z(d.projection,a,o)}function vI(t,e,n,r){let s=[y(t),y(e)];return n!==null&&s.push(y(n)),Z(d.i18nStart,s,r)}function EI(t,e,n,r,s,i,o,a,l,c,u,h,f,m){let E=[y(t),W(e),y(n),y(r),y(s),y(i),o];return(a||l!==null)&&(E.push(y(a)),l!==null&&(E.push(W(l),y(c),y(u)),(h!==null||f!==null)&&E.push(y(h)),f!==null&&E.push(y(f)))),Z(d.repeaterCreate,E,m)}function SI(t,e){return Z(d.repeater,[t],e)}function wI(t,e,n){return Z(t?d.deferPrefetchWhen:d.deferWhen,[e],n)}function TI(t,e){return Z(d.declareLet,[y(t)],e)}function xI(t,e){return L(d.storeLet).callFn([t],e)}function CI(t){return L(d.readContextLet).callFn([y(t)])}function II(t,e,n,r){let s=[y(t),y(e)];return n&&s.push(y(n)),Z(d.i18n,s,r)}function AI(t){return Z(d.i18nEnd,[],t)}function NI(t,e){let n=[y(t),y(e)];return Z(d.i18nAttributes,n,null)}function bI(t,e,n,r){let s=[y(t),e];return n!==null&&s.push(n),Z(d.property,s,r)}function DI(t,e,n,r){let s=[y(t),e];return n!==null&&s.push(n),Z(d.twoWayProperty,s,r)}function _I(t,e,n,r){let s=[y(t),e];return(n!==null||r!==null)&&s.push(n??y(null)),r!==null&&s.push(y(r)),Z(d.attribute,s,null)}function RI(t,e,n,r){let s=[y(t),e];return n!==null&&s.push(y(n)),Z(d.styleProp,s,r)}function kI(t,e,n){return Z(d.classProp,[y(t),e],n)}function PI(t,e){return Z(d.styleMap,[t],e)}function MI(t,e){return Z(d.classMap,[t],e)}var Sf=[d.pipeBind1,d.pipeBind2,d.pipeBind3,d.pipeBind4];function LI(t,e,n){if(n.length<1||n.length>Sf.length)throw new Error("pipeBind() argument count out of bounds");let r=Sf[n.length-1];return L(r).callFn([y(t),y(e),...n])}function OI(t,e,n){return L(d.pipeBindV).callFn([y(t),y(e),n])}function FI(t,e,n){let r=Qs(t,e);return Js(XI,[],r,[],n)}function BI(t,e){return Z(d.i18nExp,[t],e)}function $I(t,e){return Z(d.i18nApply,[y(t)],e)}function UI(t,e,n,r,s){let i=Qs(e,n),o=[];return r!==null&&o.push(r),Js(YI,[y(t)],i,o,s)}function VI(t,e,n,r,s){let i=Qs(e,n),o=[];return r!==null&&o.push(r),Js(JI,[y(t)],i,o,s)}function qI(t,e,n,r,s){let i=Qs(e,n),o=[];return r!==null&&o.push(y(r)),Js(QI,[y(t)],i,o,s)}function GI(t,e,n){let r=Qs(t,e);return Js(ZI,[],r,[],n)}function HI(t,e,n){let r=Qs(t,e);return Js(eA,[],r,[],n)}function WI(t,e,n,r){let s=[y(t),e];return n!==null&&s.push(n),Z(d.hostProperty,s,r)}function jI(t,e,n){return Z(d.syntheticHostProperty,[y(t),e],n)}function KI(t,e,n){return nm(tA,[y(t),e],n,[],null)}function Qs(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(y(t[r]),e[r]);n.push(y(t[r]))}return n}function Z(t,e,n){let r=L(t).callFn(e,n);return wn(new bt(r,n))}function zI(t,e,n){let r=[t];return e!==null&&r.push(e),Z(d.conditional,r,n)}var XI={constant:[d.textInterpolate,d.textInterpolate1,d.textInterpolate2,d.textInterpolate3,d.textInterpolate4,d.textInterpolate5,d.textInterpolate6,d.textInterpolate7,d.textInterpolate8],variable:d.textInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},YI={constant:[d.propertyInterpolate,d.propertyInterpolate1,d.propertyInterpolate2,d.propertyInterpolate3,d.propertyInterpolate4,d.propertyInterpolate5,d.propertyInterpolate6,d.propertyInterpolate7,d.propertyInterpolate8],variable:d.propertyInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},QI={constant:[d.styleProp,d.stylePropInterpolate1,d.stylePropInterpolate2,d.stylePropInterpolate3,d.stylePropInterpolate4,d.stylePropInterpolate5,d.stylePropInterpolate6,d.stylePropInterpolate7,d.stylePropInterpolate8],variable:d.stylePropInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},JI={constant:[d.attribute,d.attributeInterpolate1,d.attributeInterpolate2,d.attributeInterpolate3,d.attributeInterpolate4,d.attributeInterpolate5,d.attributeInterpolate6,d.attributeInterpolate7,d.attributeInterpolate8],variable:d.attributeInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},ZI={constant:[d.styleMap,d.styleMapInterpolate1,d.styleMapInterpolate2,d.styleMapInterpolate3,d.styleMapInterpolate4,d.styleMapInterpolate5,d.styleMapInterpolate6,d.styleMapInterpolate7,d.styleMapInterpolate8],variable:d.styleMapInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},eA={constant:[d.classMap,d.classMapInterpolate1,d.classMapInterpolate2,d.classMapInterpolate3,d.classMapInterpolate4,d.classMapInterpolate5,d.classMapInterpolate6,d.classMapInterpolate7,d.classMapInterpolate8],variable:d.classMapInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},tA={constant:[d.pureFunction0,d.pureFunction1,d.pureFunction2,d.pureFunction3,d.pureFunction4,d.pureFunction5,d.pureFunction6,d.pureFunction7,d.pureFunction8],variable:d.pureFunctionV,mapping:t=>t};function nm(t,e,n,r,s){let i=t.mapping(n.length);if(i<t.constant.length)return L(t.constant[i]).callFn([...e,...n,...r],s);if(t.variable!==null)return L(t.variable).callFn([...e,se(n),...r],s);throw new Error("AssertionError: unable to call variadic function")}function Js(t,e,n,r,s){return wn(nm(t,e,n,r,s).toStmt())}var nA=new Map([["window",d.resolveWindow],["document",d.resolveDocument],["body",d.resolveBody]]);function rA(t){for(let e of t.units)sA(e,e.create),rm(e,e.update)}function sA(t,e){for(let n of e)switch(Ue(n,sm,te.None),n.kind){case p.Text:T.replace(n,hI(n.handle.slot,n.initialValue,n.sourceSpan));break;case p.ElementStart:T.replace(n,jC(n.handle.slot,n.tag,n.attributes,n.localRefs,n.startSourceSpan));break;case p.Element:T.replace(n,WC(n.handle.slot,n.tag,n.attributes,n.localRefs,n.wholeSourceSpan));break;case p.ElementEnd:T.replace(n,KC(n.sourceSpan));break;case p.ContainerStart:T.replace(n,zC(n.handle.slot,n.attributes,n.localRefs,n.startSourceSpan));break;case p.Container:T.replace(n,XC(n.handle.slot,n.attributes,n.localRefs,n.wholeSourceSpan));break;case p.ContainerEnd:T.replace(n,YC());break;case p.I18nStart:T.replace(n,vI(n.handle.slot,n.messageIndex,n.subTemplateIndex,n.sourceSpan));break;case p.I18nEnd:T.replace(n,AI(n.sourceSpan));break;case p.I18n:T.replace(n,II(n.handle.slot,n.messageIndex,n.subTemplateIndex,n.sourceSpan));break;case p.I18nAttributes:if(n.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");T.replace(n,NI(n.handle.slot,n.i18nAttributesConfig));break;case p.Template:if(!(t instanceof dn))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);T.replace(n,QC(n.handle.slot,W(r.fnName),r.decls,r.vars,n.tag,n.attributes,n.localRefs,n.startSourceSpan));break;case p.DisableBindings:T.replace(n,JC());break;case p.EnableBindings:T.replace(n,ZC());break;case p.Pipe:T.replace(n,nI(n.handle.slot,n.name));break;case p.DeclareLet:T.replace(n,TI(n.handle.slot,n.sourceSpan));break;case p.Listener:let s=wf(t,n.handlerFnName,n.handlerOps,n.consumesDollarEvent),i=n.eventTarget?nA.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.`);T.replace(n,eI(n.name,s,i,n.hostListener&&n.isAnimationListener,n.sourceSpan));break;case p.TwoWayListener:T.replace(n,tI(n.name,wf(t,n.handlerFnName,n.handlerOps,!0),n.sourceSpan));break;case p.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);T.replace(n,wn(new Xe(n.variable.name,n.initializer,void 0,Re.Final)));break;case p.Namespace:switch(n.active){case Ke.HTML:T.replace(n,rI());break;case Ke.SVG:T.replace(n,sI());break;case Ke.Math:T.replace(n,iI());break}break;case p.Defer:let o=!!n.loadingMinimumTime||!!n.loadingAfterTime||!!n.placeholderMinimumTime;T.replace(n,fI(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 p.DeferOn:let a=[];switch(n.trigger.kind){case pe.Idle:case pe.Immediate:break;case pe.Timer:a=[n.trigger.delay];break;case pe.Interaction:case pe.Hover:case pe.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}`)}T.replace(n,mI(n.trigger.kind,a,n.prefetch,n.sourceSpan));break;case p.ProjectionDef:T.replace(n,gI(n.def));break;case p.Projection:if(n.handle.slot===null)throw new Error("No slot was assigned for project instruction");let l=null,c=null,u=null;if(n.fallbackView!==null){if(!(t instanceof dn))throw new Error("AssertionError: must be compiling a component");let S=t.job.views.get(n.fallbackView);if(S===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(S.fnName===null||S.decls===null||S.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");l=S.fnName,c=S.decls,u=S.vars}T.replace(n,yI(n.handle.slot,n.projectionSlotIndex,n.attributes,l,c,u,n.sourceSpan));break;case p.RepeaterCreate:if(n.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(t instanceof dn))throw new Error("AssertionError: must be compiling a component");let h=t.job.views.get(n.xref);if(h.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let f=null,m=null,E=null;if(n.emptyView!==null){let S=t.job.views.get(n.emptyView);if(S===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(S.fnName===null||S.decls===null||S.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");f=S.fnName,m=S.decls,E=S.vars}T.replace(n,EI(n.handle.slot,h.fnName,n.decls,n.vars,n.tag,n.attributes,n.trackByFn,n.usesComponentInstance,f,m,E,n.emptyTag,n.emptyAttributes,n.wholeSourceSpan));break;case p.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${p[n.kind]}`)}}function rm(t,e){for(let n of e)switch(Ue(n,sm,te.None),n.kind){case p.Advance:T.replace(n,oI(n.delta,n.sourceSpan));break;case p.Property:n.expression instanceof be?T.replace(n,UI(n.name,n.expression.strings,n.expression.expressions,n.sanitizer,n.sourceSpan)):T.replace(n,bI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case p.TwoWayProperty:T.replace(n,DI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case p.StyleProp:n.expression instanceof be?T.replace(n,qI(n.name,n.expression.strings,n.expression.expressions,n.unit,n.sourceSpan)):T.replace(n,RI(n.name,n.expression,n.unit,n.sourceSpan));break;case p.ClassProp:T.replace(n,kI(n.name,n.expression,n.sourceSpan));break;case p.StyleMap:n.expression instanceof be?T.replace(n,GI(n.expression.strings,n.expression.expressions,n.sourceSpan)):T.replace(n,PI(n.expression,n.sourceSpan));break;case p.ClassMap:n.expression instanceof be?T.replace(n,HI(n.expression.strings,n.expression.expressions,n.sourceSpan)):T.replace(n,MI(n.expression,n.sourceSpan));break;case p.I18nExpression:T.replace(n,BI(n.expression,n.sourceSpan));break;case p.I18nApply:T.replace(n,$I(n.handle.slot,n.sourceSpan));break;case p.InterpolateText:T.replace(n,FI(n.interpolation.strings,n.interpolation.expressions,n.sourceSpan));break;case p.Attribute:n.expression instanceof be?T.replace(n,VI(n.name,n.expression.strings,n.expression.expressions,n.sanitizer,n.sourceSpan)):T.replace(n,_I(n.name,n.expression,n.sanitizer,n.namespace));break;case p.HostProperty:if(n.expression instanceof be)throw new Error("not yet handled");n.isAnimationTrigger?T.replace(n,jI(n.name,n.expression,n.sourceSpan)):T.replace(n,WI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case p.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);T.replace(n,wn(new Xe(n.variable.name,n.initializer,void 0,Re.Final)));break;case p.Conditional:if(n.processed===null)throw new Error("Conditional test was not set.");T.replace(n,zI(n.processed,n.contextValue,n.sourceSpan));break;case p.Repeater:T.replace(n,SI(n.collection,n.sourceSpan));break;case p.DeferWhen:T.replace(n,wI(n.prefetch,n.expr,n.sourceSpan));break;case p.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${n.declaredName}`);case p.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${p[n.kind]}`)}}function sm(t){if(!Tn(t))return t;switch(t.kind){case O.NextContext:return lI(t.steps);case O.Reference:return aI(t.targetSlot.slot+1+t.offset);case O.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${t.name}`);case O.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case O.RestoreView:if(typeof t.view=="number")throw new Error("AssertionError: unresolved RestoreView");return uI(t.view);case O.ResetView:return pI(t.expr);case O.GetCurrentView:return cI();case O.ReadVariable:if(t.name===null)throw new Error(`Read of unnamed variable ${t.xref}`);return W(t.name);case O.ReadTemporaryExpr:if(t.name===null)throw new Error(`Read of unnamed temporary ${t.xref}`);return W(t.name);case O.AssignTemporaryExpr:if(t.name===null)throw new Error(`Assign of unnamed temporary ${t.xref}`);return W(t.name).set(t.expr);case O.PureFunctionExpr:if(t.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return KI(t.varOffset,t.fn,t.args);case O.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case O.PipeBinding:return LI(t.targetSlot.slot,t.varOffset,t.args);case O.PipeBindingVariadic:return OI(t.targetSlot.slot,t.varOffset,t.args);case O.SlotLiteralExpr:return y(t.slot.slot);case O.ContextLetReference:return CI(t.targetSlot.slot);case O.StoreLet:return xI(t.value,t.sourceSpan);default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${O[t.kind]}`)}}function wf(t,e,n,r){rm(t,n);let s=[];for(let o of n){if(o.kind!==p.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${p[o.kind]}`);s.push(o.statement)}let i=[];return r&&i.push(new Fe("$event")),es(i,s,void 0,void 0,e)}function iA(t){for(let e of t.units)for(let n of e.update)switch(n.kind){case p.Attribute:case p.Binding:case p.ClassProp:case p.ClassMap:case p.Property:case p.StyleProp:case p.StyleMap:n.expression instanceof zi&&T.remove(n);break}}function oA(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case p.I18nContext:T.remove(n);break;case p.I18nStart:n.context=null;break}}function aA(t){for(let e of t.units){let n=new Set;for(let r of e.update)switch(r.kind){case p.I18nExpression:n.add(r.i18nOwner)}for(let r of e.create)switch(r.kind){case p.I18nAttributes:if(n.has(r.xref))continue;T.remove(r)}}}function lA(t){for(let e of t.units)jc(e,e.create),jc(e,e.update)}function jc(t,e){let n=new Map;n.set(t.xref,W("ctx"));for(let r of e)switch(r.kind){case p.Variable:switch(r.variable.kind){case Oe.Context:n.set(r.variable.view,new Mn(r.xref));break}break;case p.Listener:case p.TwoWayListener:jc(t,r.handlerOps);break}t===t.job.root&&n.set(t.xref,W("ctx"));for(let r of e)Ue(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},te.None)}function cA(t){for(let e of t.units)Tf(e.create),Tf(e.update)}function Tf(t){for(let e of t)(e.kind===p.Listener||e.kind===p.TwoWayListener)&&Ue(e,n=>n instanceof We&&n.name==="$event"?(e.kind===p.Listener&&(e.consumesDollarEvent=!0),new Nt(n.name)):n,te.InChildOperation)}function uA(t){let e=new Map,n=new Map;for(let r of t.units)for(let s of r.create)switch(s.kind){case p.I18nContext:e.set(s.xref,s);break;case p.ElementStart:n.set(s.xref,s);break}Jn(t,t.root,e,n)}function Jn(t,e,n,r,s){let i=null,o=new Map;for(let a of e.create)switch(a.kind){case p.I18nStart:if(!a.context)throw Error("Could not find i18n context for i18n op");i={i18nBlock:a,i18nContext:n.get(a.context)};break;case p.I18nEnd:i=null;break;case p.ElementStart:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");xf(a,i.i18nContext,i.i18nBlock,s),s&&a.i18nPlaceholder.closeName&&o.set(a.xref,s),s=void 0}break;case p.ElementEnd:let l=r.get(a.xref);if(l&&l.i18nPlaceholder!==void 0){if(i===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Cf(l,i.i18nContext,i.i18nBlock,o.get(a.xref)),o.delete(a.xref)}break;case p.Projection:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");xf(a,i.i18nContext,i.i18nBlock,s),Cf(a,i.i18nContext,i.i18nBlock,s),s=void 0}break;case p.Template:let c=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)Jn(t,c,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===vt.Structural?Jn(t,c,n,r,a):(Nl(t,c,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),Jn(t,c,n,r),bl(t,c,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0)}break;case p.RepeaterCreate:if(s!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let u=a.handle.slot+1,h=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)Jn(t,h,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Nl(t,h,u,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),Jn(t,h,n,r),bl(t,h,u,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}if(a.emptyView!==null){let f=a.handle.slot+2,m=t.views.get(a.emptyView);if(a.emptyI18nPlaceholder===void 0)Jn(t,m,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Nl(t,m,f,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),Jn(t,m,n,r),bl(t,m,f,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break}}function xf(t,e,n,r){let{startName:s,closeName:i}=t.i18nPlaceholder,o=oe.ElementTag|oe.OpenTag,a=t.handle.slot;r!==void 0&&(o|=oe.TemplateTag,a={element:a,template:r.handle.slot}),i||(o|=oe.CloseTag),js(e.params,s,a,n.subTemplateIndex,o)}function Cf(t,e,n,r){let{closeName:s}=t.i18nPlaceholder;if(s){let i=oe.ElementTag|oe.CloseTag,o=t.handle.slot;r!==void 0&&(i|=oe.TemplateTag,o={element:o,template:r.handle.slot}),js(e.params,s,o,n.subTemplateIndex,i)}}function Nl(t,e,n,r,s,i,o){let{startName:a,closeName:l}=r,c=oe.TemplateTag|oe.OpenTag;l||(c|=oe.CloseTag),o!==void 0&&js(s.params,a,o.handle.slot,i.subTemplateIndex,c),js(s.params,a,n,im(t,i,e),c)}function bl(t,e,n,r,s,i,o){let{closeName:a}=r,l=oe.TemplateTag|oe.CloseTag;a&&(js(s.params,a,n,im(t,i,e),l),o!==void 0&&js(s.params,a,o.handle.slot,i.subTemplateIndex,l))}function im(t,e,n){for(let r of n.create)if(r.kind===p.I18nStart)return r.subTemplateIndex;return e.subTemplateIndex}function js(t,e,n,r,s){let i=t.get(e)??[];i.push({value:n,subTemplateIndex:r,flags:s}),t.set(e,i)}function pA(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 p.I18nStart:e.set(a.xref,a.subTemplateIndex);break;case p.I18nContext:n.set(a.xref,a);break;case p.IcuPlaceholder:r.set(a.xref,a);break}let s=new Map,i=o=>o.usage===Xr.I18nText?o.i18nOwner:o.context;for(let o of t.units)for(let a of o.update)if(a.kind===p.I18nExpression){let l=s.get(i(a))||0,c=e.get(a.i18nOwner)??null,u={value:l,subTemplateIndex:c,flags:oe.ExpressionIndex};hA(a,u,n,r),s.set(i(a),l+1)}}function hA(t,e,n,r){if(t.i18nPlaceholder!==null){let s=n.get(t.context),i=t.resolutionTime===Us.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 fA(t){for(let e of t.units)Kc(e,e.create,null),Kc(e,e.update,null)}function Kc(t,e,n){let r=new Map,s=new Map;for(let i of e)switch(i.kind){case p.Variable:switch(i.variable.kind){case Oe.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 Oe.Alias:if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref);break;case Oe.SavedView:n={view:i.variable.view,variable:i.xref};break}break;case p.Listener:case p.TwoWayListener:Kc(t,i.handlerOps,n);break}for(let i of e)i.kind==p.Listener||i.kind===p.TwoWayListener||Ue(i,o=>{if(o instanceof We)return s.has(o.name)?new Mn(s.get(o.name)):r.has(o.name)?new Mn(r.get(o.name)):new lt(new qn(t.job.root.xref),o.name);if(o instanceof pa&&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 Mn(n.variable),o}else return o},te.None);for(let i of e)tt(i,o=>{if(o instanceof We)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var dA=new Map([[ce.HTML,d.sanitizeHtml],[ce.RESOURCE_URL,d.sanitizeResourceUrl],[ce.SCRIPT,d.sanitizeScript],[ce.STYLE,d.sanitizeStyle],[ce.URL,d.sanitizeUrl]]),mA=new Map([[ce.HTML,d.trustConstantHtml],[ce.RESOURCE_URL,d.trustConstantResourceUrl]]);function gA(t){for(let e of t.units){let n=Du(e);if(t.kind!==b.Host){for(let r of e.create)if(r.kind===p.ExtractedAttribute){let s=mA.get(If(r.securityContext))??null;r.trustedValueFn=s!==null?L(s):null}}for(let r of e.update)switch(r.kind){case p.Property:case p.Attribute:case p.HostProperty:let s=null;if(Array.isArray(r.securityContext)&&r.securityContext.length===2&&r.securityContext.indexOf(ce.URL)>-1&&r.securityContext.indexOf(ce.RESOURCE_URL)>-1?s=d.sanitizeUrlOrResourceUrl:s=dA.get(If(r.securityContext))??null,r.sanitizer=s!==null?L(s):null,r.sanitizer===null){let i=!1;if(t.kind===b.Host||r.kind===p.HostProperty)i=!0;else{let o=n.get(r.target);if(o===void 0||!yr(o))throw Error("Property should have an element-like owner");i=yA(o)}i&&Ax(r.name)&&(r.sanitizer=L(d.validateIframeAttribute))}break}}}function yA(t){return t.kind===p.ElementStart&&t.tag?.toLowerCase()==="iframe"}function If(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||ce.NONE}return t}function vA(t){for(let e of t.units)for(let n of e.create)n.kind===p.TwoWayListener&&Ue(n,r=>{if(!(r instanceof ha))return r;let{target:s,value:i}=r;if(s instanceof lt||s instanceof gn)return Ef(s,i).or(s.set(i));if(s instanceof Mn)return Ef(s,i);throw new Error("Unsupported expression in two-way action binding.")},te.InChildOperation)}function EA(t){for(let e of t.units){e.create.prepend([nr(e.job.allocateXrefId(),{kind:Oe.SavedView,name:null,view:e.xref},new Sc,It.None)]);for(let n of e.create){if(n.kind!==p.Listener&&n.kind!==p.TwoWayListener)continue;let r=e!==t.root;if(!r)for(let s of n.handlerOps)tt(s,i=>{(i instanceof la||i instanceof Ki)&&(r=!0)});r&&SA(e,n)}}}function SA(t,e){e.handlerOps.prepend([nr(t.job.allocateXrefId(),{kind:Oe.Context,name:null,view:t.xref},new pa(t.xref),It.None)]);for(let n of e.handlerOps)n.kind===p.Statement&&n.statement instanceof et&&(n.statement.value=new wc(n.statement.value))}function wA(t){let e=new Map;for(let n of t.units){let r=0;for(let s of n.create)Ys(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===p.Template||r.kind===p.RepeaterCreate){let s=t.views.get(r.xref);r.decls=s.decls}}function TA(t){for(let e of t.units)for(let n of e.update)if(n.kind===p.Binding)switch(n.bindingKind){case F.ClassName:if(n.expression instanceof be)throw new Error("Unexpected interpolation in ClassName binding");T.replace(n,ww(n.target,n.name,n.expression,n.sourceSpan));break;case F.StyleProperty:T.replace(n,Sw(n.target,n.name,n.expression,n.unit,n.sourceSpan));break;case F.Property:case F.Template:n.name==="style"?T.replace(n,Tw(n.target,n.expression,n.sourceSpan)):n.name==="class"&&T.replace(n,xw(n.target,n.expression,n.sourceSpan));break}}function xA(t){for(let e of t.units)e.create.prepend(zc(e.create)),e.update.prepend(zc(e.update))}function zc(t){let e=0,n=[];for(let r of t){let s=new Map;tt(r,(c,u)=>{u&te.InChildOperation||c instanceof Gn&&s.set(c.xref,c)});let i=0,o=new Set,a=new Set,l=new Map;tt(r,(c,u)=>{u&te.InChildOperation||(c instanceof rn?(o.has(c.xref)||(o.add(c.xref),l.set(c.xref,`tmp_${e}_${i++}`)),Af(l,c)):c instanceof Gn&&(s.get(c.xref)===c&&(a.add(c.xref),i--),Af(l,c)))}),n.push(...Array.from(new Set(l.values())).map(c=>wn(new Xe(c)))),e++,(r.kind===p.Listener||r.kind===p.TwoWayListener)&&r.handlerOps.prepend(zc(r.handlerOps))}return n}function Af(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 CA(t){for(let e of t.units)for(let n of e.create){if(n.kind!==p.RepeaterCreate||n.trackByFn!==null)continue;let r=!1;n.track=D(n.track,o=>{if(o instanceof Jr||o instanceof fa)throw new Error("Illegal State: Pipes are not allowed in this context");return o instanceof ca?(r=!0,W("this")):o},te.None);let s,i=[new Fe("$index"),new Fe("$item")];r?s=new Yt(i,[new et(n.track)]):s=tn(i,n.track),n.trackByFn=t.pool.getSharedFunctionReference(s,"_forTrack")}}function IA(t){for(let e of t.units)for(let n of e.create)n.kind===p.RepeaterCreate&&(n.track instanceof Nt&&n.track.name==="$index"?n.trackByFn=L(d.repeaterTrackByIndex):n.track instanceof Nt&&n.track.name==="$item"?n.trackByFn=L(d.repeaterTrackByIdentity):AA(t.root.xref,n.track)?(n.usesComponentInstance=!0,n.track.receiver.receiver.view===e.xref?n.trackByFn=n.track.receiver:(n.trackByFn=L(d.componentInstance).callFn([]).prop(n.track.receiver.name),n.track=n.trackByFn)):n.track=D(n.track,r=>r instanceof qn?(n.usesComponentInstance=!0,new ca(r.view)):r,te.None))}function AA(t,e){if(!(e instanceof ze)||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 Nt)||n.name!=="$index"?!1:e.args.length===1?!0:!(!(r instanceof Nt)||r.name!=="$item")}function NA(t){for(let e of t.units)for(let n of e.create)n.kind===p.RepeaterCreate&&(n.track=D(n.track,r=>{if(r instanceof We){if(n.varNames.$index.has(r.name))return W("$index");if(r.name===n.varNames.$implicit)return W("$item")}return r},te.None))}function bA(t){for(let e of t.units){let n=0;for(let r of e.ops())El(r)&&(n+=DA(r));for(let r of e.ops())tt(r,s=>{Tn(s)&&(t.compatibility===Et.TemplateDefinitionBuilder&&s instanceof Qr||(Mh(s)&&(s.varOffset=n),El(s)&&(n+=Nf(s))))});if(t.compatibility===Et.TemplateDefinitionBuilder)for(let r of e.ops())tt(r,s=>{!Tn(s)||!(s instanceof Qr)||(Mh(s)&&(s.varOffset=n),El(s)&&(n+=Nf(s)))});e.vars=n}if(t instanceof Yi)for(let e of t.units)for(let n of e.create){if(n.kind!==p.Template&&n.kind!==p.RepeaterCreate)continue;let r=t.views.get(n.xref);n.vars=r.vars}}function DA(t){let e;switch(t.kind){case p.Property:case p.HostProperty:case p.Attribute:return e=1,t.expression instanceof be&&!_A(t.expression)&&(e+=t.expression.expressions.length),e;case p.TwoWayProperty:return 1;case p.StyleProp:case p.ClassProp:case p.StyleMap:case p.ClassMap:return e=2,t.expression instanceof be&&(e+=t.expression.expressions.length),e;case p.InterpolateText:return t.interpolation.expressions.length;case p.I18nExpression:case p.Conditional:case p.DeferWhen:case p.StoreLet:return 1;case p.RepeaterCreate:return t.emptyView?1:0;default:throw new Error(`Unhandled op: ${p[t.kind]}`)}}function Nf(t){switch(t.kind){case O.PureFunctionExpr:return 1+t.args.length;case O.PipeBinding:return 1+t.args.length;case O.PipeBindingVariadic:return 1+t.numArgs;case O.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function _A(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function RA(t){for(let e of t.units){Dl(e.create),Dl(e.update);for(let n of e.create)(n.kind===p.Listener||n.kind===p.TwoWayListener)&&Dl(n.handlerOps);_l(e.create,t.compatibility),_l(e.update,t.compatibility);for(let n of e.create)(n.kind===p.Listener||n.kind===p.TwoWayListener)&&_l(n.handlerOps,t.compatibility)}}var _e;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(_e||(_e={}));function Dl(t){let e=new Map;for(let n of t)n.kind===p.Variable&&n.flags&It.AlwaysInline&&(tt(n,r=>{if(Tn(r)&&_u(r)!==_e.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(n.xref,n)),Ue(n,r=>r instanceof Mn&&e.has(r.xref)?e.get(r.xref).initializer.clone():r,te.None);for(let n of e.values())T.remove(n)}function _l(t,e){let n=new Map,r=new Map,s=new Set,i=new Map;for(let c of t){if(c.kind===p.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,kA(c)),PA(c,r,s)}let o=!1;for(let c of t.reversed()){let u=i.get(c);if(c.kind===p.Variable&&r.get(c.xref)===0){if(o&&u.fences&_e.ViewContextWrite||u.fences&_e.SideEffectful){let h=wn(c.initializer.toStmt());i.set(h,u),T.replace(c,h)}else MA(c,r),T.remove(c);i.delete(c),n.delete(c.xref),r.delete(c.xref);continue}u.fences&_e.ViewContextRead&&(o=!0)}let a=[];for(let[c,u]of r){let f=!!(n.get(c).flags&It.AlwaysInline);u!==1||f||s.has(c)||a.push(c)}let l;for(;l=a.pop();){let c=n.get(l),u=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!==p.ListEnd;f=f.next){let m=i.get(f);if(m.variablesUsed.has(l)){if(e===Et.TemplateDefinitionBuilder&&!OA(c,f))break;if(LA(l,c.initializer,f,u.fences)){m.variablesUsed.delete(l);for(let E of u.variablesUsed)m.variablesUsed.add(E);m.fences|=u.fences,n.delete(l),r.delete(l),i.delete(c),T.remove(c)}break}if(!om(m.fences,u.fences))break}}}function _u(t){switch(t.kind){case O.NextContext:return _e.ViewContextRead|_e.ViewContextWrite;case O.RestoreView:return _e.ViewContextRead|_e.ViewContextWrite|_e.SideEffectful;case O.StoreLet:return _e.SideEffectful;case O.Reference:case O.ContextLetReference:return _e.ViewContextRead;default:return _e.None}}function kA(t){let e=_e.None,n=new Set;return tt(t,r=>{if(Tn(r))switch(r.kind){case O.ReadVariable:n.add(r.xref);break;default:e|=_u(r)}}),{fences:e,variablesUsed:n}}function PA(t,e,n){tt(t,(r,s)=>{if(!Tn(r)||r.kind!==O.ReadVariable)return;let i=e.get(r.xref);i!==void 0&&(e.set(r.xref,i+1),s&te.InChildOperation&&n.add(r.xref))})}function MA(t,e){tt(t,n=>{if(!Tn(n)||n.kind!==O.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 om(t,e){if(t&_e.ViewContextWrite){if(e&_e.ViewContextRead)return!1}else if(t&_e.ViewContextRead&&e&_e.ViewContextWrite)return!1;return!0}function LA(t,e,n,r){let s=!1,i=!0;return Ue(n,(o,a)=>{if(!Tn(o)||s||!i)return o;if(a&te.InChildOperation&&r&_e.ViewContextRead)return o;switch(o.kind){case O.ReadVariable:if(o.xref===t)return s=!0,e;break;default:let l=_u(o);i=i&&om(l,r);break}return o},te.None),s}function OA(t,e){switch(t.variable.kind){case Oe.Identifier:return t.initializer instanceof Nt&&t.initializer.name==="ctx";case Oe.Context:return e.kind===p.Variable;default:return!0}}function FA(t){for(let e of t.units){let n=null,r=null;for(let s of e.create)switch(s.kind){case p.I18nStart:n=s;break;case p.I18nEnd:n=null;break;case p.IcuStart:n===null&&(r=t.allocateXrefId(),T.insertBefore(qa(r,s.message,void 0,null),s));break;case p.IcuEnd:r!==null&&(T.insertAfter(Ga(r,null),s),r=null);break}}}function BA(t){let e=new Set;for(let n of t.units)for(let r of n.ops())tt(r,s=>{s instanceof Ki&&e.add(s.target)});for(let n of t.units)for(let r of n.update)Ue(r,s=>s instanceof ji&&!e.has(s.target)?s.value:s,te.None)}function $A(t){for(let e of t.units)for(let n of e.update){if(n.kind!==p.Variable||n.variable.kind!==Oe.Identifier||!(n.initializer instanceof ji))continue;let r=n.variable.identifier,s=n;for(;s&&s.kind!==p.ListEnd;)Ue(s,i=>i instanceof We&&i.name===r?y(void 0):i,te.None),s=s.prev}}function UA(t){for(let e of t.units)for(let n of e.update){if(n.kind!==p.StoreLet)continue;let r={kind:Oe.Identifier,name:null,identifier:n.declaredName,local:!0};T.replace(n,nr(t.allocateXrefId(),r,new ji(n.target,n.value,n.sourceSpan),It.None))}}var VA=[{kind:b.Tmpl,fn:kC},{kind:b.Host,fn:WT},{kind:b.Tmpl,fn:dC},{kind:b.Tmpl,fn:$C},{kind:b.Tmpl,fn:FA},{kind:b.Both,fn:dT},{kind:b.Both,fn:TA},{kind:b.Both,fn:eT},{kind:b.Both,fn:Qw},{kind:b.Tmpl,fn:fT},{kind:b.Both,fn:gC},{kind:b.Tmpl,fn:iA},{kind:b.Both,fn:sT},{kind:b.Both,fn:RC},{kind:b.Tmpl,fn:iT},{kind:b.Tmpl,fn:LC},{kind:b.Tmpl,fn:mT},{kind:b.Tmpl,fn:pC},{kind:b.Tmpl,fn:pT},{kind:b.Tmpl,fn:aA},{kind:b.Tmpl,fn:Yw},{kind:b.Tmpl,fn:zw},{kind:b.Tmpl,fn:BC},{kind:b.Both,fn:qC},{kind:b.Tmpl,fn:UT},{kind:b.Tmpl,fn:UA},{kind:b.Tmpl,fn:VT},{kind:b.Tmpl,fn:EA},{kind:b.Both,fn:jw},{kind:b.Both,fn:cA},{kind:b.Tmpl,fn:NA},{kind:b.Tmpl,fn:$A},{kind:b.Both,fn:fA},{kind:b.Tmpl,fn:gT},{kind:b.Tmpl,fn:vA},{kind:b.Tmpl,fn:IA},{kind:b.Both,fn:lA},{kind:b.Both,fn:gA},{kind:b.Tmpl,fn:hC},{kind:b.Both,fn:IC},{kind:b.Both,fn:ST},{kind:b.Both,fn:xA},{kind:b.Both,fn:RA},{kind:b.Both,fn:BA},{kind:b.Tmpl,fn:wA},{kind:b.Tmpl,fn:uA},{kind:b.Tmpl,fn:pA},{kind:b.Tmpl,fn:LT},{kind:b.Tmpl,fn:CA},{kind:b.Tmpl,fn:oC},{kind:b.Tmpl,fn:GT},{kind:b.Both,fn:cT},{kind:b.Tmpl,fn:oA},{kind:b.Both,fn:bA},{kind:b.Tmpl,fn:$T},{kind:b.Both,fn:yC},{kind:b.Tmpl,fn:hT},{kind:b.Tmpl,fn:SC},{kind:b.Tmpl,fn:TC},{kind:b.Tmpl,fn:ET},{kind:b.Tmpl,fn:CC},{kind:b.Both,fn:VC},{kind:b.Both,fn:rA},{kind:b.Both,fn:rT}];function am(t,e){for(let n of VA)(n.kind===e||n.kind===b.Both)&&n.fn(t)}function qA(t,e){let n=cm(t.root);return lm(t.root,e),n}function lm(t,e){for(let n of t.job.units){if(n.parent!==t.xref)continue;lm(n,e);let r=cm(n);e.statements.push(r.toDeclStmt(r.name))}}function cm(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!==p.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${p[i.kind]}`);e.push(i.statement)}let n=[];for(let i of t.update){if(i.kind!==p.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${p[i.kind]}`);n.push(i.statement)}let r=Ra(1,e),s=Ra(2,n);return es([new Fe("rf"),new Fe("ctx")],[...r,...s],void 0,void 0,t.fnName)}function Ra(t,e){return e.length===0?[]:[so(new ee(A.BitwiseAnd,W("rf"),y(t)),e)]}function GA(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!==p.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${p[i.kind]}`);e.push(i.statement)}let n=[];for(let i of t.root.update){if(i.kind!==p.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${p[i.kind]}`);n.push(i.statement)}if(e.length===0&&n.length===0)return null;let r=Ra(1,e),s=Ra(2,n);return es([new Fe("rf"),new Fe("ctx")],[...r,...s],void 0,void 0,t.root.fnName)}var um=Et.TemplateDefinitionBuilder,Or=new on,Fr="ng-template";function Xc(t){return t instanceof ot}function HA(t){return Xc(t)&&t.nodes.length===1&&t.nodes[0]instanceof na}function WA(t,e,n,r,s,i,o){let a=new Yi(t,n,um,r,s,i,o);return Hn(a.root,e),a}function jA(t,e,n){let r=new Ea(t.componentName,n,um);for(let s of t.properties??[]){let i=F.Property;s.name.startsWith("attr.")&&(s.name=s.name.substring(5),i=F.Attribute),s.isAnimation&&(i=F.Animation);let o=e.calcPossibleSecurityContexts(t.componentSelector,s.name,i===F.Attribute).filter(a=>a!==ce.NONE);KA(r,s,i,o)}for(let[s,i]of Object.entries(t.attributes)??[]){let o=e.calcPossibleSecurityContexts(t.componentSelector,s,!0).filter(a=>a!==ce.NONE);zA(r,s,i,o)}for(let s of t.events??[])XA(r,s);return r}function KA(t,e,n,r){let s,i=e.expression.ast;i instanceof Fn?s=new be(i.strings,i.expressions.map(o=>H(o,t,e.sourceSpan)),[]):s=H(i,t,e.sourceSpan),t.root.update.push(Yr(t.root.xref,n,e.name,s,null,r,!1,!1,null,null,e.sourceSpan))}function zA(t,e,n,r){let s=Yr(t.root.xref,F.Attribute,e,n,null,r,!0,!1,null,null,n.sourceSpan);t.root.update.push(s)}function XA(t,e){let[n,r]=e.type!==ke.Animation?[null,e.targetOrPhase]:[e.targetOrPhase,null],s=bu(t.root.xref,new St,e.name,null,Ru(t.root,e.handler,e.handlerSpan),n,r,!0,e.sourceSpan);t.root.create.push(s)}function Hn(t,e){for(let n of e)if(n instanceof ie)YA(t,n);else if(n instanceof re)QA(t,n);else if(n instanceof hr)JA(t,n);else if(n instanceof zt)pm(t,n,null);else if(n instanceof Bn)hm(t,n,null);else if(n instanceof Wr)ZA(t,n);else if(n instanceof Hr)eN(t,n);else if(n instanceof Vn)tN(t,n);else if(n instanceof Os)nN(t,n);else if(n instanceof En)rN(t,n);else if(n instanceof Qe)iN(t,n);else throw new Error(`Unsupported template node: ${n.constructor.name}`)}function YA(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof ot||e.i18n instanceof fr))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=t.job.allocateXrefId(),[r,s]=nn(e.name),i=Rw(s,n,qd(r),e.i18n instanceof fr?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(i),aN(t,i,e),mm(i,e);let o=null;e.i18n instanceof ot&&(o=t.job.allocateXrefId(),t.create.push(qa(o,e.i18n,void 0,e.startSourceSpan))),Hn(t,e.children);let a=Pw(n,e.endSourceSpan??e.startSourceSpan);t.create.push(a),o!==null&&T.insertBefore(Ga(o,e.endSourceSpan??e.startSourceSpan),a)}function QA(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof ot||e.i18n instanceof fr))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]=nn(e.tagName));let i=e.i18n instanceof fr?e.i18n:void 0,o=qd(s),a=r===null?"":lT(r,o),l=oN(e)?vt.NgTemplate:vt.Structural,c=Va(n.xref,l,r,a,o,i,e.startSourceSpan,e.sourceSpan);t.create.push(c),lN(t,c,e,l),mm(c,e),Hn(n,e.children);for(let{name:u,value:h}of e.variables)n.contextVariables.set(u,h!==""?h:"$implicit");if(l===vt.NgTemplate&&e.i18n instanceof ot){let u=t.job.allocateXrefId();T.insertAfter(qa(u,e.i18n,void 0,e.startSourceSpan),n.create.head),T.insertBefore(Ga(u,e.endSourceSpan??e.startSourceSpan),n.create.tail)}}function JA(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof fr))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=null;e.children.some(i=>!(i instanceof Ms)&&(!(i instanceof zt)||i.value.trim().length>0))&&(n=t.job.allocateView(t.xref),Hn(n,e.children));let r=t.job.allocateXrefId(),s=Bw(r,e.selector,e.i18n,n?.xref??null,e.sourceSpan);for(let i of e.attributes){let o=Or.securityContext(e.name,i.name,!0);t.update.push(Yr(s.xref,F.Attribute,i.name,y(i.value),null,o,!0,!1,null,_n(i.i18n),i.sourceSpan))}t.create.push(s)}function pm(t,e,n){t.create.push(Fd(t.job.allocateXrefId(),e.value,n,e.sourceSpan))}function hm(t,e,n){let r=e.value;if(r instanceof de&&(r=r.ast),!(r instanceof Fn))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${r.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof kn))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let s=e.i18n instanceof kn?e.i18n.children.filter(a=>a instanceof ra).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(Fd(i,"",n,e.sourceSpan));let o=t.job.compatibility?null:e.sourceSpan;t.update.push(yw(i,new be(r.strings,r.expressions.map(a=>H(a,t.job,o)),s),e.sourceSpan))}function ZA(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=ka(t,o.xref,i);i.expressionAlias!==null&&o.contextVariables.set(i.expressionAlias.name,Vd);let l;if(i.i18n!==void 0){if(!(i.i18n instanceof dr))throw Error(`Unhandled i18n metadata type for if block: ${i.i18n?.constructor.name}`);l=i.i18n}let c=Va(o.xref,vt.Block,a,"Conditional",Ke.HTML,l,i.startSourceSpan,i.sourceSpan);t.create.push(c),n===null&&(n=o.xref);let u=i.expression?H(i.expression,t.job,null):null,h=new ma(u,c.xref,c.handle,i.expressionAlias);r.push(h),Hn(o,i.children)}t.update.push(Md(n,null,r,e.sourceSpan))}function eN(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=ka(t,i.xref,s),a;if(s.i18n!==void 0){if(!(s.i18n instanceof dr))throw Error(`Unhandled i18n metadata type for switch block: ${s.i18n?.constructor.name}`);a=s.i18n}let l=Va(i.xref,vt.Block,o,"Case",Ke.HTML,a,s.startSourceSpan,s.sourceSpan);t.create.push(l),n===null&&(n=i.xref);let c=s.expression?H(s.expression,t.job,e.startSourceSpan):null,u=new ma(c,l.xref,l.handle);r.push(u),Hn(i,s.children)}t.update.push(Md(n,H(e.expression,t.job,null),r,e.sourceSpan))}function Mo(t,e,n,r,s){if(n!==void 0&&!(n instanceof dr))throw Error("Unhandled i18n metadata type for defer block");if(r===void 0)return null;let i=t.job.allocateView(t.xref);Hn(i,r);let o=Va(i.xref,vt.Block,null,`Defer${e}`,Ke.HTML,n,s,s);return t.create.push(o),o}function tN(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=Mo(t,"",e.i18n,e.children,e.sourceSpan),s=Mo(t,"Loading",e.loading?.i18n,e.loading?.children,e.loading?.sourceSpan),i=Mo(t,"Placeholder",e.placeholder?.i18n,e.placeholder?.children,e.placeholder?.sourceSpan),o=Mo(t,"Error",e.error?.i18n,e.error?.children,e.error?.sourceSpan),a=t.job.allocateXrefId(),l=$w(a,r.xref,r.handle,n,t.job.allDeferrableDepsFn,e.sourceSpan);l.placeholderView=i?.xref??null,l.placeholderSlot=i?.handle??null,l.loadingSlot=s?.handle??null,l.errorSlot=o?.handle??null,l.placeholderMinimumTime=e.placeholder?.minimumTime??null,l.loadingMinimumTime=e.loading?.minimumTime??null,l.loadingAfterTime=e.loading?.afterTime??null,t.create.push(l);let c=!1,u=[],h=[];for(let f of[e.triggers,e.prefetchTriggers]){if(f.idle!==void 0){let m=Ar(a,{kind:pe.Idle},c,f.idle.sourceSpan);u.push(m)}if(f.immediate!==void 0){let m=Ar(a,{kind:pe.Immediate},c,f.immediate.sourceSpan);u.push(m)}if(f.timer!==void 0){let m=Ar(a,{kind:pe.Timer,delay:f.timer.delay},c,f.timer.sourceSpan);u.push(m)}if(f.hover!==void 0){let m=Ar(a,{kind:pe.Hover,targetName:f.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},c,f.hover.sourceSpan);u.push(m)}if(f.interaction!==void 0){let m=Ar(a,{kind:pe.Interaction,targetName:f.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},c,f.interaction.sourceSpan);u.push(m)}if(f.viewport!==void 0){let m=Ar(a,{kind:pe.Viewport,targetName:f.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},c,f.viewport.sourceSpan);u.push(m)}if(f.when!==void 0){if(f.when.value instanceof Fn)throw new Error("Unexpected interpolation in defer block when trigger");let m=Nw(a,H(f.when.value,t.job,f.when.sourceSpan),c,f.when.sourceSpan);h.push(m)}u.length===0&&h.length===0&&u.push(Ar(a,{kind:pe.Idle},!1,null)),c=!0}t.create.push(u),t.update.push(h)}function nN(t,e){if(e.i18n instanceof ot&&HA(e.i18n)){let n=t.job.allocateXrefId();t.create.push(qw(n,e.i18n,dd(e.i18n).name,null));for(let[r,s]of Object.entries({...e.vars,...e.placeholders}))s instanceof Bn?hm(t,s,r):pm(t,s,r);t.create.push(Gw(n))}else throw Error(`Unhandled i18n metadata type for ICU: ${e.i18n?.constructor.name}`)}function rN(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 N of e.contextVariables)N.value==="$index"&&i.add(N.name),N.name==="$index"?n.contextVariables.set("$index",N.value).set(r,N.value):N.name==="$count"?n.contextVariables.set("$count",N.value).set(s,N.value):n.aliases.add({kind:Oe.Alias,name:null,identifier:N.name,expression:sN(N,r,s)});let o=He(e.trackBy.span,e.sourceSpan),a=H(e.trackBy,t.job,o);Hn(n,e.children);let l=null,c=null;e.empty!==null&&(l=t.job.allocateView(t.xref),Hn(l,e.empty.children),c=ka(t,l.xref,e.empty));let u={$index:i,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof dr))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(e.empty?.i18n!==void 0&&!(e.empty.i18n instanceof dr))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let h=e.i18n,f=e.empty?.i18n,m=ka(t,n.xref,e),E=kw(n.xref,l?.xref??null,m,a,u,c,h,f,e.startSourceSpan,e.sourceSpan);t.create.push(E);let S=H(e.expression,t.job,He(e.expression.span,e.sourceSpan)),I=Aw(E.xref,E.handle,S,e.sourceSpan);t.update.push(I)}function sN(t,e,n){switch(t.value){case"$index":return new We(e);case"$count":return new We(n);case"$first":return new We(e).identical(y(0));case"$last":return new We(e).identical(new We(n).minus(y(1)));case"$even":return new We(e).modulo(y(2)).identical(y(0));case"$odd":return new We(e).modulo(y(2)).notIdentical(y(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function iN(t,e){let n=t.job.allocateXrefId();t.create.push(Uw(n,e.name,e.sourceSpan)),t.update.push(Dw(n,e.name,H(e.value,t.job,e.valueSpan),e.sourceSpan))}function H(t,e,n){if(t instanceof de)return H(t.ast,e,n);if(t instanceof Ie){let r=t.receiver instanceof fn,s=t.receiver instanceof $e&&!(t.receiver instanceof fn),i=t.name==="$any"||t.name==="$event";return s||r&&!i?new We(t.name):new lt(H(t.receiver,e,n),t.name,null,He(t.span,n))}else{if(t instanceof On)return t.receiver instanceof $e?new $r(new qn(e.root.xref),t.name,H(t.value,e,n),null,He(t.span,n)):new $r(H(t.receiver,e,n),t.name,H(t.value,e,n),void 0,He(t.span,n));if(t instanceof Ko)return new Ns(H(t.receiver,e,n),H(t.key,e,n),H(t.value,e,n),void 0,He(t.span,n));if(t instanceof yn){if(t.receiver instanceof $e)throw new Error("Unexpected ImplicitReceiver");return new ze(H(t.receiver,e,n),t.args.map(r=>H(r,e,n)),void 0,He(t.span,n))}else{if(t instanceof Ft)return y(t.value,void 0,He(t.span,n));if(t instanceof _i)switch(t.operator){case"+":return new ar(mn.Plus,H(t.expr,e,n),void 0,He(t.span,n));case"-":return new ar(mn.Minus,H(t.expr,e,n),void 0,He(t.span,n));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof mt){let r=oT.get(t.operation);if(r===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new ee(r,H(t.left,e,n),H(t.right,e,n),void 0,He(t.span,n))}else{if(t instanceof fn)return new qn(e.root.xref);if(t instanceof Ps)return new gn(H(t.receiver,e,n),H(t.key,e,n),void 0,He(t.span,n));if(t instanceof cr)throw new Error("AssertionError: Chain in unknown context");if(t instanceof Xo){let r=t.keys.map((s,i)=>{let o=t.values[i];return new Ur(s.key,H(o,e,n),s.quoted)});return new Gt(r,void 0,He(t.span,n))}else{if(t instanceof zo)return new ct(t.expressions.map(r=>H(r,e,n)));if(t instanceof qr)return new en(H(t.condition,e,n),H(t.trueExp,e,n),H(t.falseExp,e,n),void 0,He(t.span,n));if(t instanceof ki)return H(t.expression,e,n);if(t instanceof Gr)return new Jr(e.allocateXrefId(),new St,t.name,[H(t.exp,e,n),...t.args.map(r=>H(r,e,n))]);if(t instanceof ur)return new Gs(H(t.receiver,e,n),H(t.key,e,n),He(t.span,n));if(t instanceof ut)return new qs(H(t.receiver,e,n),t.name);if(t instanceof vn)return new gr(H(t.receiver,e,n),t.args.map(r=>H(r,e,n)));if(t instanceof Ve)return new zi(He(t.span,n));if(t instanceof Ri)return od(H(t.expression,e,n),He(t.span,n));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${n?.start.file.url}"`)}}}}}function Yc(t,e,n,r){let s;return e instanceof Fn?s=new be(e.strings,e.expressions.map(i=>H(i,t,r??null)),Object.keys(_n(n)?.placeholders??{})):e instanceof me?s=H(e,t,r??null):s=y(e),s}var fm=new Map([[z.Property,F.Property],[z.TwoWay,F.TwoWayProperty],[z.Attribute,F.Attribute],[z.Class,F.ClassName],[z.Style,F.StyleProperty],[z.Animation,F.Animation]]);function oN(t){return nn(t.tagName??"")[1]===Fr}function _n(t){if(t==null)return null;if(!(t instanceof ot))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function aN(t,e,n){let r=new Array,s=new Set;for(let i of n.attributes){let o=Or.securityContext(n.name,i.name,!0);r.push(Yr(e.xref,F.Attribute,i.name,Yc(t.job,i.value,i.i18n),null,o,!0,!1,null,_n(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(Yr(e.xref,fm.get(i.type),i.name,Yc(t.job,eo(i.value),i.i18n),i.unit,i.securityContext,!1,!1,null,_n(i.i18n)??null,i.sourceSpan));t.create.push(r.filter(i=>i?.kind===p.ExtractedAttribute)),t.update.push(r.filter(i=>i?.kind===p.Binding));for(let i of n.outputs){if(i.type===ke.Animation&&i.phase===null)throw Error("Animation listener should have a phase");i.type===ke.TwoWay?t.create.push(Bd(e.xref,e.handle,i.name,e.tag,dm(t,i.handler,i.handlerSpan),i.sourceSpan)):t.create.push(bu(e.xref,e.handle,i.name,e.tag,Ru(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))}r.some(i=>i?.i18nMessage)!==null&&t.create.push(Ud(t.job.allocateXrefId(),new St,e.xref))}function lN(t,e,n,r){let s=new Array;for(let i of n.templateAttrs)if(i instanceof Dt){let o=Or.securityContext(Fr,i.name,!0);s.push(Lo(t,e.xref,z.Attribute,i.name,i.value,null,o,!0,r,_n(i.i18n),i.sourceSpan))}else s.push(Lo(t,e.xref,i.type,i.name,eo(i.value),i.unit,i.securityContext,!0,r,_n(i.i18n),i.sourceSpan));for(let i of n.attributes){let o=Or.securityContext(Fr,i.name,!0);s.push(Lo(t,e.xref,z.Attribute,i.name,i.value,null,o,!1,r,_n(i.i18n),i.sourceSpan))}for(let i of n.inputs)s.push(Lo(t,e.xref,i.type,i.name,eo(i.value),i.unit,i.securityContext,!1,r,_n(i.i18n),i.sourceSpan));t.create.push(s.filter(i=>i?.kind===p.ExtractedAttribute)),t.update.push(s.filter(i=>i?.kind===p.Binding));for(let i of n.outputs){if(i.type===ke.Animation&&i.phase===null)throw Error("Animation listener should have a phase");if(r===vt.NgTemplate&&(i.type===ke.TwoWay?t.create.push(Bd(e.xref,e.handle,i.name,e.tag,dm(t,i.handler,i.handlerSpan),i.sourceSpan)):t.create.push(bu(e.xref,e.handle,i.name,e.tag,Ru(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),r===vt.Structural&&i.type!==ke.Animation){let o=Or.securityContext(Fr,i.name,!1);t.create.push(Ut(e.xref,F.Property,null,i.name,null,null,null,o))}}s.some(i=>i?.i18nMessage)!==null&&t.create.push(Ud(t.job.allocateXrefId(),new St,e.xref))}function Lo(t,e,n,r,s,i,o,a,l,c,u){let h=typeof s=="string";if(l===vt.Structural){if(!a)switch(n){case z.Property:case z.Class:case z.Style:return Ut(e,F.Property,null,r,null,null,c,o);case z.TwoWay:return Ut(e,F.TwoWayProperty,null,r,null,null,c,o)}if(!h&&(n===z.Attribute||n===z.Animation))return null}let f=fm.get(n);return l===vt.NgTemplate&&(n===z.Class||n===z.Style||n===z.Attribute&&!h)&&(f=F.Property),Yr(e,f,r,Yc(t.job,s,c),i,o,h,a,l,c,u)}function Ru(t,e,n){e=eo(e);let r=new Array,s=e instanceof cr?e.expressions:[e];if(s.length===0)throw new Error("Expected listener to have non-empty expression list.");let i=s.map(a=>H(a,t.job,n)),o=i.pop();return r.push(...i.map(a=>wn(new bt(a,a.sourceSpan)))),r.push(wn(new et(o,o.sourceSpan))),r}function dm(t,e,n){e=eo(e);let r=new Array;if(e instanceof cr)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let s=H(e,t.job,n),i=new We("$event"),o=new ha(s,i);return r.push(wn(new bt(o))),r.push(wn(new et(i))),r}function eo(t){return t instanceof de?t.ast:t}function mm(t,e){cN(t.localRefs);for(let{name:n,value:r}of e.references)t.localRefs.push({name:n,target:r})}function cN(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function He(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 V(n,r,s)}function ka(t,e,n){let r=null;for(let s of n.children)if(!(s instanceof Ms)){if(r!==null)return null;(s instanceof ie||s instanceof re&&s.tagName!==null)&&(r=s)}if(r!==null){for(let i of r.attributes){let o=Or.securityContext(Fr,i.name,!0);t.update.push(Yr(e,F.Attribute,i.name,y(i.value),null,o,!0,!1,null,_n(i.i18n),i.sourceSpan))}for(let i of r.inputs)if(i.type!==z.Animation&&i.type!==z.Attribute){let o=Or.securityContext(Fr,i.name,!0);t.create.push(Ut(e,F.Property,null,i.name,null,null,null,o))}let s=r instanceof ie?r.name:r.tagName;return s===Fr?null:s}return null}function Pa(t,e){return so(W(gu).bitwiseAnd(y(t),null,!1),e)}function uN(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function pN(t,e){if(Array.isArray(t.predicate)){let n=[];return t.predicate.forEach(r=>{let s=r.split(",").map(i=>y(i.trim()));n.push(...s)}),e.getConstLiteral(se(n),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return L(d.resolveForwardRef).callFn([t.predicate.expression])}}function gm(t,e,n,r){let s=[];r!==void 0&&s.push(...r),t.isSignal&&s.push(new lt(W($i),t.propertyName)),s.push(pN(t,e),y(uN(t))),t.read&&s.push(t.read);let i=t.isSignal?n.signalBased:n.nonSignal;return L(i).callFn(s)}var ku=Symbol("queryAdvancePlaceholder");function ym(t){let e=[],n=0,r=()=>{n>0&&(e.unshift(L(d.queryAdvance).callFn(n===1?[]:[y(n)]).toStmt()),n=0)};for(let s=t.length-1;s>=0;s--){let i=t[s];i===ku?n++:(r(),e.unshift(i))}return r(),e}function hN(t,e,n){let r=[],s=[],i=md(a=>s.push(a),mu);t.forEach(a=>{let l=gm(a,e,{signalBased:d.viewQuerySignal,nonSignal:d.viewQuery});if(r.push(l.toStmt()),a.isSignal){s.push(ku);return}let c=i(),u=L(d.loadQuery).callFn([]),h=L(d.queryRefresh).callFn([c.set(u)]),f=W($i).prop(a.propertyName).set(a.first?c.prop("first"):c);s.push(h.and(f).toStmt())});let o=n?`${n}_Query`:null;return es([new Fe(gu,Fa),new Fe($i,null)],[Pa(1,r),Pa(2,ym(s))],At,null,o)}function fN(t,e,n){let r=[],s=[],i=md(a=>s.push(a),mu);for(let a of t){if(r.push(gm(a,e,{nonSignal:d.contentQuery,signalBased:d.contentQuerySignal},[W("dirIndex")]).toStmt()),a.isSignal){s.push(ku);continue}let l=i(),c=L(d.loadQuery).callFn([]),u=L(d.queryRefresh).callFn([l.set(c)]),h=W($i).prop(a.propertyName).set(a.first?l.prop("first"):l);s.push(u.and(h).toStmt())}let o=n?`${n}_ContentQueries`:null;return es([new Fe(gu,Fa),new Fe($i,null),new Fe("dirIndex",null)],[Pa(1,r),Pa(2,ym(s))],At,null,o)}var Ma=class extends Pc{constructor(){super(Jd)}parse(e,n,r){return super.parse(e,n,r)}},bf=".",dN="attr",mN="class",gN="style",yN="*",Rl="animate-",Qc=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,l){let c=r.start.offset+yN.length,u=this._parseTemplateBindings(e,n,r,c,s);for(let h of u){let f=Yn(r,h.sourceSpan),m=h.key.source,E=Yn(r,h.key.span);if(h instanceof Pi){let S=h.value?h.value.source:"$implicit",I=h.value?Yn(r,h.value.span):void 0;a.push(new Zl(m,S,f,E,I))}else if(h.value){let S=l?f:r,I=Yn(r,h.value.ast.sourceSpan);this._parsePropertyAst(m,h.value,!1,S,E,I,i,o)}else i.push([m,""]),this.parseLiteralAttr(m,null,E,s,void 0,i,o,E)}}_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(l=>{this._reportError(l,r,Dn.WARNING)}),a.templateBindings}catch(a){return this._reportError(`${a}`,r),[]}}parseLiteralAttr(e,n,r,s,i,o,a,l){kl(e)?(e=e.substring(1),l!==void 0&&(l=Yn(l,new je(l.start.offset+1,l.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,Dn.ERROR),this._parseAnimation(e,n,r,s,l,i,o,a)):a.push(new pi(e,this._exprParser.wrapLiteralPrimitive(n,"",s),An.LITERAL_ATTR,r,l,i))}parsePropertyBinding(e,n,r,s,i,o,a,l,c,u){e.length===0&&this._reportError("Property name is missing in binding",i);let h=!1;e.startsWith(Rl)?(h=!0,e=e.substring(Rl.length),u!==void 0&&(u=Yn(u,new je(u.start.offset+Rl.length,u.end.offset)))):kl(e)&&(h=!0,e=e.substring(1),u!==void 0&&(u=Yn(u,new je(u.start.offset+1,u.end.offset)))),h?this._parseAnimation(e,n,i,o,u,a,l,c):this._parsePropertyAst(e,this.parseBinding(n,r,a||i,o),s,i,u,a,l,c)}parsePropertyInterpolation(e,n,r,s,i,o,a,l){let c=this.parseInterpolation(n,s||r,l);return c?(this._parsePropertyAst(e,c,!1,r,a,s,i,o),!0):!1}_parsePropertyAst(e,n,r,s,i,o,a,l){a.push([e,n.source]),l.push(new pi(e,n,r?An.TWO_WAY:An.DEFAULT,s,i,o))}_parseAnimation(e,n,r,s,i,o,a,l){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]),l.push(new pi(e,c,An.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 Qo(n.name,z.Animation,ce.NONE,n.expression,null,n.sourceSpan,n.keySpan,n.valueSpan);let i=null,o,a=null,l=n.name.split(bf),c;if(l.length>1)if(l[0]==dN){a=l.slice(1).join(bf),r||this._validatePropertyOrAttributeName(a,n.sourceSpan,!0),c=Pl(this._schemaRegistry,e,a,!0);let u=a.indexOf(":");if(u>-1){let h=a.substring(0,u),f=a.substring(u+1);a=nc(h,f)}o=z.Attribute}else l[0]==mN?(a=l[1],o=z.Class,c=[ce.NONE]):l[0]==gN&&(i=l.length>2?l[2]:null,a=l[1],o=z.Style,c=[ce.STYLE]);if(a===null){let u=this._schemaRegistry.getMappedPropName(n.name);a=s?u:n.name,c=Pl(this._schemaRegistry,e,u,!1),o=n.type===An.TWO_WAY?z.TwoWay:z.Property,r||this._validatePropertyOrAttributeName(u,n.sourceSpan,!1)}return new Qo(a,o,c[0],n.expression,i,n.sourceSpan,n.keySpan,n.valueSpan)}parseEvent(e,n,r,s,i,o,a,l){e.length===0&&this._reportError("Event name is missing in binding",s),kl(e)?(e=e.slice(1),l!==void 0&&(l=Yn(l,new je(l.start.offset+1,l.end.offset))),this._parseAnimationEvent(e,n,s,i,a,l)):this._parseRegularEvent(e,n,r,s,i,o,a,l)}calcPossibleSecurityContexts(e,n,r){let s=this._schemaRegistry.getMappedPropName(n);return Pl(this._schemaRegistry,e,s,r)}_parseAnimationEvent(e,n,r,s,i,o){let a=jE(e,[e,""]),l=a[0],c=a[1].toLowerCase(),u=this._parseAction(n,s);i.push(new Yo(l,c,ke.Animation,u,r,s,o)),l.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 "@${l}" is not supported (use start or done)`,r):this._reportError(`The animation trigger output event (@${l}) is missing its phase value name (start or done are currently supported)`,r)}_parseRegularEvent(e,n,r,s,i,o,a,l){let[c,u]=WE(e,[null,e]),h=this.errors.length,f=this._parseAction(n,i),m=this.errors.length===h;o.push([e,f.source]),r&&m&&!this._isAllowedAssignmentEvent(f)&&this._reportError("Unsupported expression in a two-way binding",s),a.push(new Yo(u,c,r?ke.TwoWay:ke.Regular,f,s,i,l))}_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 Ve?(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=Dn.ERROR){this.errors.push(new q(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,Dn.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof de?this._isAllowedAssignmentEvent(e.ast):e instanceof ki?this._isAllowedAssignmentEvent(e.expression):e instanceof Ie||e instanceof Ps?!0:this._allowInvalidAssignmentEvents?e instanceof mt?(e.operation==="&&"||e.operation==="||"||e.operation==="??")&&(e.right instanceof Ie||e.right instanceof Ps):e instanceof qr||e instanceof Ri:!1}};function kl(t){return t[0]=="@"}function Pl(t,e,n,r){let s=[];return Qt.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)),l=o.filter(c=>!a.has(c));s.push(...l.map(c=>t.securityContext(c,n,r)))}),s.length===0?[ce.NONE]:Array.from(new Set(s)).sort()}function Yn(t,e){let n=e.start-t.start.offset,r=e.end-t.end.offset;return new V(t.start.moveBy(n),t.end.moveBy(r),t.fullStart.moveBy(n),t.details)}function vN(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(EN);return e===null||e[1]=="package"||e[1]=="asset"}var EN=/^([^:/?#]+):/,SN="select",wN="link",TN="rel",xN="href",CN="stylesheet",IN="style",AN="script",NN="ngNonBindable",bN="ngProjectAs";function vm(t){let e=null,n=null,r=null,s=!1,i="";t.attrs.forEach(l=>{let c=l.name.toLowerCase();c==SN?e=l.value:c==xN?n=l.value:c==TN?r=l.value:l.name==NN?s=!0:l.name==bN&&l.value.length>0&&(i=l.value)}),e=DN(e);let o=t.name.toLowerCase(),a=yt.OTHER;return ec(o)?a=yt.NG_CONTENT:o==IN?a=yt.STYLE:o==AN?a=yt.SCRIPT:o==wN&&r==CN&&(a=yt.STYLESHEET),new Jc(a,e,n,s,i)}var yt;(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"})(yt||(yt={}));var Jc=class{constructor(e,n,r,s,i){this.type=e,this.selectAttr=n,this.hrefAttr=r,this.nonBindable=s,this.projectAs=i}};function DN(t){return t===null||t.length===0?"*":t}var _N=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,RN=/^track\s+([\S\s]*)/,kN=/^(as\s)+(.*)/,Pu=/^else[^\S\r\n]+if/,PN=/^let\s+([\S\s]*)/,Df=/(\s*)(\S+)(\s*)/,vi=new Set(["$index","$first","$last","$even","$odd","$count"]);function _f(t){return t==="empty"}function Rf(t){return t==="else"||Pu.test(t)}function MN(t,e,n,r){let s=$N(e),i=[],o=kf(t,s,r);o!==null&&i.push(new Rn(o.expression,xe(n,t.children,t.children),o.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let h of e)if(Pu.test(h.name)){let f=kf(h,s,r);if(f!==null){let m=xe(n,h.children,h.children);i.push(new Rn(f.expression,m,f.expressionAlias,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan,h.i18n))}}else if(h.name==="else"){let f=xe(n,h.children,h.children);i.push(new Rn(null,f,null,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan,h.i18n))}let a=i.length>0?i[0].startSourceSpan:t.startSourceSpan,l=i.length>0?i[i.length-1].endSourceSpan:t.endSourceSpan,c=t.sourceSpan,u=i[i.length-1];return u!==void 0&&(c=new V(a.start,u.sourceSpan.end)),{node:new Wr(i,c,t.startSourceSpan,l,t.nameSpan),errors:s}}function LN(t,e,n,r){let s=[],i=FN(t,s,r),o=null,a=null;for(let l of e)l.name==="empty"?a!==null?s.push(new q(l.sourceSpan,"@for loop can only have one @empty block")):l.parameters.length>0?s.push(new q(l.sourceSpan,"@empty block cannot have parameters")):a=new Bi(xe(n,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n):s.push(new q(l.sourceSpan,`Unrecognized @for loop block "${l.name}"`));if(i!==null)if(i.trackBy===null)s.push(new q(t.startSourceSpan,'@for loop must have a "track" expression'));else{let l=a?.endSourceSpan??t.endSourceSpan,c=new V(t.sourceSpan.start,l?.end??t.sourceSpan.end);o=new En(i.itemName,i.expression,i.trackBy.expression,i.trackBy.keywordSpan,i.context,xe(n,t.children,t.children),a,c,t.sourceSpan,t.startSourceSpan,l,t.nameSpan,t.i18n)}return{node:o,errors:s}}function ON(t,e,n){let r=UN(t),s=t.parameters.length>0?to(t.parameters[0],n):n.parseBinding("",!1,t.sourceSpan,0),i=[],o=[],a=null;for(let l of t.children){if(!(l instanceof Bt))continue;if((l.name!=="case"||l.parameters.length===0)&&l.name!=="default"){o.push(new ta(l.name,l.sourceSpan,l.nameSpan));continue}let c=l.name==="case"?to(l.parameters[0],n):null,u=new Fi(c,xe(e,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n);c===null?a=u:i.push(u)}return a!==null&&i.push(a),{node:new Hr(s,i,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:r}}function FN(t,e,n){if(t.parameters.length===0)return e.push(new q(t.startSourceSpan,"@for loop does not have an expression")),null;let[r,...s]=t.parameters,i=VN(r,e)?.match(_N);if(!i||i[2].trim().length===0)return e.push(new q(r.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,a]=i;vi.has(o)&&e.push(new q(r.sourceSpan,`@for loop item name cannot be one of ${Array.from(vi).join(", ")}.`));let l=r.expression.split(" ")[0],c=new V(r.sourceSpan.start,r.sourceSpan.start.moveBy(l.length)),u={itemName:new pt(o,"$implicit",c,c),trackBy:null,expression:to(r,n,a),context:Array.from(vi,h=>{let f=new V(t.startSourceSpan.end,t.startSourceSpan.end);return new pt(h,h,f,f)})};for(let h of s){let f=h.expression.match(PN);if(f!==null){let E=new V(h.sourceSpan.start.moveBy(f[0].length-f[1].length),h.sourceSpan.end);BN(h.sourceSpan,f[1],E,o,u.context,e);continue}let m=h.expression.match(RN);if(m!==null){if(u.trackBy!==null)e.push(new q(h.sourceSpan,'@for loop can only have one "track" expression'));else{let E=to(h,n,m[1]);E.ast instanceof Ve&&e.push(new q(t.startSourceSpan,'@for loop must have a "track" expression'));let S=new V(h.sourceSpan.start,h.sourceSpan.start.moveBy(5));u.trackBy={expression:E,keywordSpan:S}}continue}e.push(new q(h.sourceSpan,`Unrecognized @for loop paramater "${h.expression}"`))}return u}function BN(t,e,n,r,s,i){let o=e.split(","),a=n.start;for(let l of o){let c=l.split("="),u=c.length===2?c[0].trim():"",h=c.length===2?c[1].trim():"";if(u.length===0||h.length===0)i.push(new q(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!vi.has(h))i.push(new q(t,`Unknown "let" parameter variable "${h}". The allowed variables are: ${Array.from(vi).join(", ")}`));else if(u===r)i.push(new q(t,`Invalid @for loop "let" parameter. Variable cannot be called "${r}"`));else if(s.some(f=>f.name===u))i.push(new q(t,`Duplicate "let" parameter variable "${h}"`));else{let[,f,m]=c[0].match(Df)??[],E=f!==void 0&&c.length===2?new V(a.moveBy(f.length),a.moveBy(f.length+m.length)):n,S;if(c.length===2){let[,N,$]=c[1].match(Df)??[];S=N!==void 0?new V(a.moveBy(c[0].length+1+N.length),a.moveBy(c[0].length+1+N.length+$.length)):void 0}let I=new V(E.start,S?.end??E.end);s.push(new pt(u,h,I,E,S))}a=a.moveBy(l.length+1)}}function $N(t){let e=[],n=!1;for(let r=0;r<t.length;r++){let s=t[r];s.name==="else"?(n?e.push(new q(s.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&r<t.length-1?e.push(new q(s.startSourceSpan,"@else block must be last inside the conditional")):s.parameters.length>0&&e.push(new q(s.startSourceSpan,"@else block cannot have parameters")),n=!0):Pu.test(s.name)||e.push(new q(s.startSourceSpan,`Unrecognized conditional block @${s.name}`))}return e}function UN(t){let e=[],n=!1;if(t.parameters.length!==1)return e.push(new q(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let r of t.children)if(!(r instanceof Qi||r instanceof Zr&&r.value.trim().length===0)){if(!(r instanceof Bt)||r.name!=="case"&&r.name!=="default"){e.push(new q(r.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}r.name==="default"?(n?e.push(new q(r.startSourceSpan,"@switch block can only have one @default block")):r.parameters.length>0&&e.push(new q(r.startSourceSpan,"@default block cannot have parameters")),n=!0):r.name==="case"&&r.parameters.length!==1&&e.push(new q(r.startSourceSpan,"@case block must have exactly one parameter"))}return e}function to(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 kf(t,e,n){if(t.parameters.length===0)return e.push(new q(t.startSourceSpan,"Conditional block does not have an expression")),null;let r=to(t.parameters[0],n),s=null;for(let i=1;i<t.parameters.length;i++){let o=t.parameters[i],a=o.expression.match(kN);if(a===null)e.push(new q(o.sourceSpan,`Unrecognized conditional paramater "${o.expression}"`));else if(t.name!=="if")e.push(new q(o.sourceSpan,'"as" expression is only allowed on the primary @if block'));else if(s!==null)e.push(new q(o.sourceSpan,'Conditional can only have one "as" expression'));else{let l=a[2].trim(),c=o.sourceSpan.start.moveBy(a[1].length),u=new V(c,c.moveBy(l.length));s=new pt(l,l,u,u)}}return{expression:r,expressionAlias:s}}function VN(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 l=n[a];if(l==="(")i=a+1,s++;else{if(r.test(l))continue;break}}if(s===0)return n;for(let a=n.length-1;a>-1;a--){let l=n[a];if(l===")"){if(o=a,s--,s===0)break}else{if(r.test(l))continue;break}}return s!==0?(e.push(new q(t.sourceSpan,"Unclosed parentheses in expression")),null):n.slice(i,o)}var qN=/^\d+\.?\d*(ms|s)?$/,GN=/^\s$/,Pf=new Map([[pn,gt],[Is,Ss],[Pn,Xt]]),rt;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport"})(rt||(rt={}));function Mf({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("when"),o=new V(e.start.moveBy(i),e.start.moveBy(i+4)),a=Em(t,e);if(i===-1)s.push(new q(e,'Could not find "when" keyword in expression'));else{let l=no(t,i+1),c=n.parseBinding(t.slice(l),!1,e,e.start.offset+l);Sm("when",r,s,new Ls(c,e,a,o))}}function Lf({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("on"),o=new V(e.start.moveBy(i),e.start.moveBy(i+2)),a=Em(t,e);if(i===-1)r.push(new q(e,'Could not find "on" keyword in expression'));else{let l=no(t,i+1);new Zc(t,l,e,n,r,s,a,o).parse()}}function Em(t,e){return t.startsWith("prefetch")?new V(e.start,e.start.moveBy(8)):null}var Zc=class{constructor(e,n,r,s,i,o,a,l){this.expression=e,this.start=n,this.span=r,this.triggers=s,this.errors=i,this.placeholder=o,this.prefetchSpan=a,this.onSourceSpan=l,this.index=0,this.tokens=new Zi().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(Vt))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(Pn)){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 V(r,r.moveBy(e.strValue.length)),i=r.moveBy(this.token().end-e.index),o=e.index===0,a=o?this.onSourceSpan:null,l=o?this.prefetchSpan:null,c=new V(o?this.span.start:r,i);try{switch(e.toString()){case rt.IDLE:this.trackTrigger("idle",HN(n,s,c,l,a));break;case rt.TIMER:this.trackTrigger("timer",WN(n,s,c,this.prefetchSpan,this.onSourceSpan));break;case rt.INTERACTION:this.trackTrigger("interaction",zN(n,s,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;case rt.IMMEDIATE:this.trackTrigger("immediate",jN(n,s,c,this.prefetchSpan,this.onSourceSpan));break;case rt.HOVER:this.trackTrigger("hover",KN(n,s,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;case rt.VIEWPORT:this.trackTrigger("viewport",XN(n,s,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;default:throw new Error(`Unrecognized trigger type "${e}"`)}}catch(u){this.error(e,u.message)}}consumeParameters(){let e=[];if(!this.token().isCharacter(Pn))return this.unexpectedToken(this.token()),e;this.advance();let n=[],r="";for(;this.index<this.tokens.length;){let s=this.token();if(s.isCharacter(Xt)&&n.length===0){r.length&&e.push(r);break}if(s.type===Y.Character&&Pf.has(s.numValue)&&n.push(Pf.get(s.numValue)),n.length>0&&s.isCharacter(n[n.length-1])&&n.pop(),n.length===0&&s.isCharacter(Vt)&&r.length>0){e.push(r),r="",this.advance();continue}r+=this.tokenText(),this.advance()}return(!this.token().isCharacter(Xt)||n.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(Vt)&&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){Sm(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 q(new V(r,s),n))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function Sm(t,e,n,r){e[t]?n.push(new q(r.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=r}function HN(t,e,n,r,s){if(t.length>0)throw new Error(`"${rt.IDLE}" trigger cannot have parameters`);return new rc(e,n,r,s)}function WN(t,e,n,r,s){if(t.length!==1)throw new Error(`"${rt.TIMER}" trigger must have exactly one parameter`);let i=La(t[0]);if(i===null)throw new Error(`Could not parse time value of trigger "${rt.TIMER}"`);return new ic(i,e,n,r,s)}function jN(t,e,n,r,s){if(t.length>0)throw new Error(`"${rt.IMMEDIATE}" trigger cannot have parameters`);return new sc(e,n,r,s)}function KN(t,e,n,r,s,i){return Mu(rt.HOVER,t,i),new Jo(t[0]??null,e,n,r,s)}function zN(t,e,n,r,s,i){return Mu(rt.INTERACTION,t,i),new Zo(t[0]??null,e,n,r,s)}function XN(t,e,n,r,s,i){return Mu(rt.VIEWPORT,t,i),new ea(t[0]??null,e,n,r,s)}function Mu(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 ie))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 no(t,e=0){let n=!1;for(let r=e;r<t.length;r++)if(GN.test(t[r]))n=!0;else if(n)return r;return-1}function La(t){let e=t.match(qN);if(!e)return null;let[n,r]=e;return parseFloat(n)*(r==="s"?1e3:1)}var YN=/^prefetch\s+when\s/,QN=/^prefetch\s+on\s/,wm=/^minimum\s/,JN=/^after\s/,ZN=/^when\s/,eb=/^on\s/;function eu(t){return t==="placeholder"||t==="loading"||t==="error"}function tb(t,e,n,r){let s=[],{placeholder:i,loading:o,error:a}=nb(e,s,n),{triggers:l,prefetchTriggers:c}=ob(t.parameters,r,s,i),u=t.endSourceSpan,h=t.sourceSpan.end;if(e.length>0){let E=e[e.length-1];u=E.endSourceSpan,h=E.sourceSpan.end}let f=new V(t.sourceSpan.start,h);return{node:new Vn(xe(n,t.children,t.children),l,c,i,o,a,t.nameSpan,f,t.sourceSpan,t.startSourceSpan,u,t.i18n),errors:s}}function nb(t,e,n){let r=null,s=null,i=null;for(let o of t)try{if(!eu(o.name)){e.push(new q(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":r!==null?e.push(new q(o.startSourceSpan,"@defer block can only have one @placeholder block")):r=rb(o,n);break;case"loading":s!==null?e.push(new q(o.startSourceSpan,"@defer block can only have one @loading block")):s=sb(o,n);break;case"error":i!==null?e.push(new q(o.startSourceSpan,"@defer block can only have one @error block")):i=ib(o,n);break}}catch(a){e.push(new q(o.startSourceSpan,a.message))}return{placeholder:r,loading:s,error:i}}function rb(t,e){let n=null;for(let r of t.parameters)if(wm.test(r.expression)){if(n!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let s=La(r.expression.slice(no(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 Mi(xe(e,t.children,t.children),n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function sb(t,e){let n=null,r=null;for(let s of t.parameters)if(JN.test(s.expression)){if(n!=null)throw new Error('@loading block can only have one "after" parameter');let i=La(s.expression.slice(no(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');n=i}else if(wm.test(s.expression)){if(r!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=La(s.expression.slice(no(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 Li(xe(e,t.children,t.children),n,r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function ib(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new Oi(xe(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function ob(t,e,n,r){let s={},i={};for(let o of t)ZN.test(o.expression)?Mf(o,e,s,n):eb.test(o.expression)?Lf(o,s,n,r):YN.test(o.expression)?Mf(o,e,i,n):QN.test(o.expression)?Lf(o,i,n,r):n.push(new q(o.sourceSpan,"Unrecognized trigger"));return{triggers:s,prefetchTriggers:i}}var ab=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Of=1,Ff=2,Bf=3,$f=4,Uf=5,lb=6,oi=7,Qn={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},Vf="*";function cb(t,e,n){let r=new tu(e,n),s=xe(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 tu=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=Xc(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=vm(e);if(r.type===yt.SCRIPT)return null;if(r.type===yt.STYLE){let I=pb(e);return I!==null&&this.styles.push(I),null}else if(r.type===yt.STYLESHEET&&vN(r.hrefAttr))return this.styleUrls.push(r.hrefAttr),null;let s=uS(e.name),i=[],o=[],a=[],l=[],c=[],u={},h=[],f=[],m=!1;for(let I of e.attrs){let N=!1,$=qf(I.name),Te=!1;if(I.i18n&&(u[I.name]=I.i18n),$.startsWith(Vf)){m&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",I.sourceSpan),Te=!0,m=!0;let le=I.value,Ee=$.substring(Vf.length),Ne=[],Cr=I.valueSpan?I.valueSpan.start.offset:I.sourceSpan.start.offset+I.name.length;this.bindingParser.parseInlineTemplateBinding(Ee,le,I.sourceSpan,Cr,[],h,Ne,!0),f.push(...Ne.map(Mt=>new pt(Mt.name,Mt.value,Mt.sourceSpan,Mt.keySpan,Mt.valueSpan)))}else N=this.parseAttribute(s,I,[],i,o,a,l);!N&&!Te&&c.push(this.visitAttribute(I))}let E;r.nonBindable?E=xe(ub,e.children).flat(1/0):E=xe(this,e.children,e.children);let S;if(r.type===yt.NG_CONTENT){let I=r.selectAttr,N=e.attrs.map($=>this.visitAttribute($));S=new hr(I,N,E,e.sourceSpan,e.i18n),this.ngContentSelectors.push(I)}else if(s){let I=this.extractAttributes(e.name,i,u);S=new re(e.name,c,I.bound,o,[],E,l,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let I=this.extractAttributes(e.name,i,u);S=new ie(e.name,c,I.bound,o,E,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(m){let I=this.extractAttributes("ng-template",h,u),N=[];I.literal.forEach(Ee=>N.push(Ee)),I.bound.forEach(Ee=>N.push(Ee));let $=S instanceof ie?{attributes:S.attributes,inputs:S.inputs,outputs:S.outputs}:{attributes:[],inputs:[],outputs:[]},Te=s&&n?void 0:e.i18n,le=S instanceof re?null:S.name;S=new re(le,$.attributes,$.inputs,$.outputs,N,[S],[],f,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,Te)}return n&&(this.inI18nBlock=!1),S}visitAttribute(e){return new Dt(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(!Xc(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(fS)){let a=i.trim(),l=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);r[a]=new Bn(l,o.sourceSpan)}else s[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new Os(r,s,e.sourceSpan,n)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new Ms(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 Ve&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new Qe(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=tb(e,this.findConnectedBlocks(r,n,eu),this,this.bindingParser);break;case"switch":s=ON(e,this,this.bindingParser);break;case"for":s=LN(e,this.findConnectedBlocks(r,n,_f),this,this.bindingParser);break;case"if":s=MN(e,this.findConnectedBlocks(r,n,Rf),this,this.bindingParser);break;default:let i;eu(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):_f(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Rf(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 ta(e.name,e.sourceSpan,e.nameSpan),errors:[new q(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 Qi)){if(o instanceof Zr&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof Bt)||!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 Dt(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let l=this.bindingParser.createBoundElementProperty(e,o,!0,!1);s.push(_t.fromBoundElementProperty(l,a))}}),{bound:s,literal:i}}parseAttribute(e,n,r,s,i,o,a){let l=qf(n.name),c=n.value,u=n.sourceSpan,h=n.valueSpan?n.valueSpan.start.offset:u.start.offset;function f(N,$,Te){let le=n.name.length-l.length,Ee=N.start.moveBy($.length+le),Ne=Ee.moveBy(Te.length);return new V(Ee,Ne,Ee,Te)}let m=l.match(ab);if(m){if(m[Of]!=null){let N=m[oi],$=f(u,m[Of],N);this.bindingParser.parsePropertyBinding(N,c,!1,!1,u,h,n.valueSpan,r,s,$)}else if(m[Ff])if(e){let N=m[oi],$=f(u,m[Ff],N);this.parseVariable(N,c,u,$,n.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',u);else if(m[Bf]){let N=m[oi],$=f(u,m[Bf],N);this.parseReference(N,c,u,$,n.valueSpan,a)}else if(m[$f]){let N=[],$=m[oi],Te=f(u,m[$f],$);this.bindingParser.parseEvent($,c,!1,u,n.valueSpan||u,r,N,Te),Ml(N,i)}else if(m[Uf]){let N=m[oi],$=f(u,m[Uf],N);this.bindingParser.parsePropertyBinding(N,c,!1,!0,u,h,n.valueSpan,r,s,$),this.parseAssignmentEvent(N,c,u,n.valueSpan,r,i,$)}else if(m[lb]){let N=f(u,"",l);this.bindingParser.parseLiteralAttr(l,c,u,h,n.valueSpan,r,s,N)}return!0}let E=null;if(l.startsWith(Qn.BANANA_BOX.start)?E=Qn.BANANA_BOX:l.startsWith(Qn.PROPERTY.start)?E=Qn.PROPERTY:l.startsWith(Qn.EVENT.start)&&(E=Qn.EVENT),E!==null&&l.endsWith(E.end)&&l.length>E.start.length+E.end.length){let N=l.substring(E.start.length,l.length-E.end.length),$=f(u,E.start,N);if(E.start===Qn.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(N,c,!1,!0,u,h,n.valueSpan,r,s,$),this.parseAssignmentEvent(N,c,u,n.valueSpan,r,i,$);else if(E.start===Qn.PROPERTY.start)this.bindingParser.parsePropertyBinding(N,c,!1,!1,u,h,n.valueSpan,r,s,$);else{let Te=[];this.bindingParser.parseEvent(N,c,!1,u,n.valueSpan||u,r,Te,$),Ml(Te,i)}return!0}let S=f(u,"",l);return this.bindingParser.parsePropertyInterpolation(l,c,u,n.valueSpan,r,s,S,n.valueTokens??null)}_visitTextWithInterpolation(e,n,r,s){let i=zd(e),o=this.bindingParser.parseInterpolation(i,n,r);return o?new Bn(o,n,s):new zt(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 pt(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 Sn(e,n,r,s,i))}parseAssignmentEvent(e,n,r,s,i,o,a){let l=[];this.bindingParser.parseEvent(`${e}Change`,n,!0,r,s||r,i,l,a),Ml(l,o)}reportError(e,n,r=Dn.ERROR){this.errors.push(new q(n,e,r))}},nu=class{visitElement(e){let n=vm(e);if(n.type===yt.SCRIPT||n.type===yt.STYLE||n.type===yt.STYLESHEET)return null;let r=xe(this,e.children,null);return new ie(e.name,xe(this,e.attrs),[],[],r,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new Dt(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new zt(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,n){let r=[new zt(e.startSourceSpan.toString(),e.startSourceSpan),...xe(this,e.children)];return e.endSourceSpan!==null&&r.push(new zt(e.endSourceSpan.toString(),e.endSourceSpan)),r}visitBlockParameter(e,n){return null}visitLetDeclaration(e,n){return new zt(`@let ${e.name} = ${e.value};`,e.sourceSpan)}},ub=new nu;function qf(t){return/^data-/i.test(t)?t.substring(5):t}function Ml(t,e){e.push(...t.map(n=>$n.fromParsedEvent(n)))}function pb(t){return t.children.length!==1||!(t.children[0]instanceof Zr)?null:t.children[0].value}var hb=[" ",`
37
- `,"\r"," "];function Tm(t,e,n={}){let{interpolationConfig:r,preserveWhitespaces:s,enableI18nLegacyMessageIdFormat:i,allowInvalidAssignmentEvents:o}=n,a=Ks(r,o),c=new Ma().parse(t,e,{leadingTriviaChars:hb,...n,tokenizeExpansionForms:!0,tokenizeBlocks:n.enableBlockSyntax??!0,tokenizeLet:n.enableLetSyntax??!0});if(!n.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let Ee={interpolationConfig:r,preserveWhitespaces:s,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(Ee.commentNodes=[]),Ee}let u=c.rootNodes,h=!(n.preserveSignificantWhitespace??!0),f=new Da(r,!s,i,void 0,n.preserveSignificantWhitespace,h),m=f.visitAllWithErrors(u);if(!n.alwaysAttemptHtmlToR3AstConversion&&m.errors&&m.errors.length>0){let Ee={interpolationConfig:r,preserveWhitespaces:s,errors:m.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(Ee.commentNodes=[]),Ee}u=m.rootNodes,s||(u=xe(new Na(!0,void 0,!1),u),f.hasI18nMeta&&(u=xe(new Da(r,!1,void 0,void 0,!0,h),u)));let{nodes:E,errors:S,styleUrls:I,styles:N,ngContentSelectors:$,commentNodes:Te}=cb(u,a,{collectCommentNodes:!!n.collectCommentNodes});S.push(...c.errors,...m.errors);let le={interpolationConfig:r,preserveWhitespaces:s,errors:S.length>0?S:null,nodes:E,styleUrls:I,styles:N,ngContentSelectors:$};return n.collectCommentNodes&&(le.commentNodes=Te),le}var fb=new on;function Ks(t=$t,e=!1){return new Qc(new ba(new Zi),t,fb,[],e)}var xm="%COMP%",db=`_nghost-${xm}`,mb=`_ngcontent-${xm}`;function Cm(t,e,n){let r=new mr,s=hu(t.selector);return r.set("type",t.type.value),s.length>0&&r.set("selectors",vs(s)),t.queries.length>0&&r.set("contentQueries",fN(t.queries,e,t.name)),t.viewQueries.length&&r.set("viewQuery",hN(t.viewQueries,e,t.name)),r.set("hostBindings",wb(t.host,t.typeSourceSpan,n,e,t.selector||"",t.name,r)),r.set("inputs",Th(t.inputs,!0)),r.set("outputs",Th(t.outputs)),t.exportAs!==null&&r.set("exportAs",se(t.exportAs.map(i=>y(i)))),t.isStandalone&&r.set("standalone",y(!0)),t.isSignal&&r.set("signals",y(!0)),r}function Im(t,e){let n=[],r=e.providers,s=e.viewProviders,i=Object.keys(e.inputs);if(r||s){let o=[r||new ct([])];s&&o.push(s),n.push(L(d.ProvidersFeature).callFn(o))}for(let o of i)if(e.inputs[o].transformFunction!==null){n.push(L(d.InputTransformsFeatureFeature));break}e.hostDirectives?.length&&n.push(L(d.HostDirectivesFeature).callFn([Cb(e.hostDirectives)])),e.usesInheritance&&n.push(L(d.InheritDefinitionFeature)),e.fullInheritance&&n.push(L(d.CopyDefinitionFeature)),e.lifecycle.usesOnChanges&&n.push(L(d.NgOnChangesFeature)),e.hasOwnProperty("template")&&e.isStandalone&&n.push(L(d.StandaloneFeature)),n.length&&t.set("features",se(n))}function Am(t,e,n){let r=Cm(t,e,n);Im(r,t);let s=L(d.defineDirective).callFn([r.toLiteralMap()],void 0,!0),i=Sb(t);return{expression:s,type:i,statements:[]}}function Nm(t,e,n){let r=Cm(t,e,n);Im(r,t);let s=t.selector&&Qt.parse(t.selector),i=s&&s[0];if(i){let f=i.getAttrs();f.length&&r.set("attrs",e.getConstLiteral(se(f.map(m=>m!=null?y(m):y(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 Xe(f,t.defer.dependenciesFn,void 0,Re.Final)),a=W(f)}let l=WA(t.name,t.template.nodes,e,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,a);am(l,b.Tmpl);let c=qA(l,e);if(l.contentSelectors!==null&&r.set("ngContentSelectors",l.contentSelectors),r.set("decls",y(l.root.decls)),r.set("vars",y(l.root.vars)),l.consts.length>0&&(l.constsInitializers.length>0?r.set("consts",tn([],[...l.constsInitializers,new et(se(l.consts))])):r.set("consts",se(l.consts))),r.set("template",c),t.declarationListEmitMode!==3&&t.declarations.length>0)r.set("dependencies",yb(se(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",L(d.getComponentDepsFactory).callFn(f))}if(t.encapsulation===null&&(t.encapsulation=un.Emulated),t.styles&&t.styles.length){let m=(t.encapsulation==un.Emulated?xb(t.styles,mb,db):t.styles).reduce((E,S)=>(S.trim().length>0&&E.push(e.getConstLiteral(y(S))),E),[]);m.length>0&&r.set("styles",se(m))}else t.encapsulation===un.Emulated&&(t.encapsulation=un.None);t.encapsulation!==un.Emulated&&r.set("encapsulation",y(t.encapsulation)),t.animations!==null&&r.set("data",Ye([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==Bo.Default?r.set("changeDetection",y(t.changeDetection)):typeof t.changeDetection=="object"&&r.set("changeDetection",t.changeDetection));let u=L(d.defineComponent).callFn([r.toLiteralMap()],void 0,!0),h=gb(t);return{expression:u,type:h,statements:[]}}function gb(t){let e=bm(t);return e.push(su(t.template.ngContentSelectors)),e.push(Be(y(t.isStandalone))),e.push(Rm(t)),t.isSignal&&e.push(Be(y(t.isSignal))),Be(L(d.ComponentDeclaration,e))}function yb(t,e){switch(e){case 0:return t;case 1:return tn([],t);case 2:let n=t.prop("map").callFn([L(d.resolveForwardRef)]);return tn([],n);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function vb(t){return Be(y(t))}function ru(t){let e=Object.keys(t).map(n=>{let r=Array.isArray(t[n])?t[n][0]:t[n];return{key:n,value:y(r),quoted:!0}});return Ye(e)}function su(t){return t.length>0?Be(se(t.map(e=>y(e)))):Zt}function bm(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[Ba(t.type.type,t.typeArgumentCount),e!==null?vb(e):Zt,t.exportAs!==null?su(t.exportAs):Zt,Be(Eb(t)),Be(ru(t.outputs)),su(t.queries.map(n=>n.propertyName))]}function Eb(t){return Ye(Object.keys(t.inputs).map(e=>{let n=t.inputs[e],r=[{key:"alias",value:y(n.bindingPropertyName),quoted:!0},{key:"required",value:y(n.required),quoted:!0}];return n.isSignal&&r.push({key:"isSignal",value:y(n.isSignal),quoted:!0}),{key:e,value:Ye(r),quoted:!0}}))}function Sb(t){let e=bm(t);return e.push(Zt),e.push(Be(y(t.isStandalone))),e.push(Rm(t)),t.isSignal&&e.push(Be(y(t.isSignal))),Be(L(d.DirectiveDeclaration,e))}function wb(t,e,n,r,s,i,o){let a=n.createBoundHostProperties(t.properties,e),l=n.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=y(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=y(t.specialAttributes.classAttr));let c=jA({componentName:i,componentSelector:s,properties:a,events:l,attributes:t.attributes},n,r);am(c,b.Host),o.set("hostAttrs",c.root.attributes);let u=c.root.vars;return u!==null&&u>0&&o.set("hostVars",y(u)),GA(c)}var Tb=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function Dm(t){let e={},n={},r={},s={};for(let i of Object.keys(t)){let o=t[i],a=i.match(Tb);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]=y(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 _m(t,e){let n=Ks();return n.createDirectiveHostEventAsts(t.listeners,e),n.createBoundHostProperties(t.properties,e),n.errors}function xb(t,e,n){let r=new yc;return t.map(s=>r.shimCssText(s,e,n))}function Rm(t){return t.hostDirectives?.length?Be(se(t.hostDirectives.map(e=>Ye([{key:"directive",value:ro(e.directive.type),quoted:!1},{key:"inputs",value:ru(e.inputs||{}),quoted:!1},{key:"outputs",value:ru(e.outputs||{}),quoted:!1}])))):Zt}function Cb(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=Gf(r.inputs);i&&s.push({key:"inputs",value:i,quoted:!1})}if(r.outputs){let i=Gf(r.outputs);i&&s.push({key:"outputs",value:i,quoted:!1})}e.push(Ye(s))}r.isForwardReference&&(n=!0)}return n?new Yt([],[new et(se(e))]):se(e)}function Gf(t){let e=[];for(let n in t)t.hasOwnProperty(n)&&e.push(y(n),y(t[n]));return e.length>0?se(e):null}var Oa=class{constructor(e){this.directiveMatcher=e}bind(e){if(!e.template)throw new Error("Binding without a template not yet supported");let n=iu.apply(e.template),r=Ib(n),{directives:s,eagerDirectives:i,bindings:o,references:a}=ou.apply(e.template,this.directiveMatcher),{expressions:l,symbols:c,nestingLevel:u,usedPipes:h,eagerPipes:f,deferBlocks:m}=au.applyWithScope(e.template,n);return new lu(e,s,i,o,a,l,c,u,r,h,f,m)}},iu=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 Vn}static newRootScope(){return new t(null,null)}static apply(e){let n=t.newRootScope();return n.ingest(e),n}ingest(e){e instanceof re?(e.variables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof Rn?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(n=>n.visit(this))):e instanceof En?(this.visitVariable(e.item),e.contextVariables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof Fi||e instanceof Bi||e instanceof Vn||e instanceof Oi||e instanceof Mi||e instanceof Li||e instanceof hr?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)}},ou=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=yu(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(l=>l===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)),l=a!==void 0?a:e;this.bindings.set(i,l)};e.inputs.forEach(i=>s(i,"inputs")),e.attributes.forEach(i=>s(i,"inputs")),e instanceof re&&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){}},au=class t extends pr{constructor(e,n,r,s,i,o,a,l,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=l,this.level=c,this.visitNode=u=>u.visit(this)}visit(e,n){e instanceof me?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,l=e instanceof re?e:null,c=[];return new t(r,s,o,a,c,i,n,l,0).ingest(e),{expressions:r,symbols:s,nestingLevel:i,usedPipes:o,eagerPipes:a,deferBlocks:c}}ingest(e){if(e instanceof re)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Rn)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof En)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 Vn){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 Fi||e instanceof Bi||e instanceof Oi||e instanceof Mi||e instanceof Li||e instanceof hr?(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 $e))return;let r=this.scope.lookup(n);r instanceof Qe&&e.receiver instanceof fn||r!==null&&this.bindings.set(e,r)}},lu=class{constructor(e,n,r,s,i,o,a,l,c,u,h,f){this.target=e,this.directives=n,this.eagerDirectives=r,this.bindings=s,this.references=i,this.exprTargets=o,this.symbols=a,this.nestingLevel=l,this.scopedNodeEntities=c,this.usedPipes=u,this.eagerPipes=h,this.deferredBlocks=f.map(m=>m[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 Zo)&&!(n instanceof ea)&&!(n instanceof Jo))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 Ms)){if(i!==null)return null;o instanceof ie&&(i=o)}}return i}let s=this.findEntityInScope(e,r);if(s instanceof Sn&&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 Sn?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 ie?e:e instanceof re?null:this.referenceTargetToElement(e.node)}};function Ib(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 cu=class{},uu=class{constructor(e=new hc){this.jitEvaluator=e,this.FactoryTarget=st,this.ResourceLoader=cu,this.elementSchemaRegistry=new on}compilePipe(e,n,r){let s={name:r.name,type:Le(r.type),typeArgumentCount:0,deps:null,pipeName:r.pipeName,pure:r.pure,isStandalone:r.isStandalone},i=gc(s);return this.jitExpression(i.expression,e,n,[])}compilePipeDeclaration(e,n,r){let s=qb(r),i=gc(s);return this.jitExpression(i.expression,e,n,[])}compileInjectable(e,n,r){let{expression:s,statements:i}=cc({name:r.name,type:Le(r.type),typeArgumentCount:r.typeArgumentCount,providedIn:Xf(r.providedIn),useClass:fs(r,"useClass"),useFactory:zf(r,"useFactory"),useValue:fs(r,"useValue"),useExisting:fs(r,"useExisting"),deps:r.deps?.map(Lm)},!0);return this.jitExpression(s,e,n,i)}compileInjectableDeclaration(e,n,r){let{expression:s,statements:i}=cc({name:r.type.name,type:Le(r.type),typeArgumentCount:0,providedIn:Xf(r.providedIn),useClass:fs(r,"useClass"),useFactory:zf(r,"useFactory"),useValue:fs(r,"useValue"),useExisting:fs(r,"useExisting"),deps:r.deps?.map(Yf)},!0);return this.jitExpression(s,e,n,i)}compileInjector(e,n,r){let s={name:r.name,type:Le(r.type),providers:r.providers&&r.providers.length>0?new U(r.providers):null,imports:r.imports.map(o=>new U(o))},i=dc(s);return this.jitExpression(i.expression,e,n,[])}compileInjectorDeclaration(e,n,r){let s=Gb(r),i=dc(s);return this.jitExpression(i.expression,e,n,[])}compileNgModule(e,n,r){let s={kind:hn.Global,type:Le(r.type),bootstrap:r.bootstrap.map(Le),declarations:r.declarations.map(Le),publicDeclarationTypes:null,imports:r.imports.map(Le),includeImportTypes:!0,exports:r.exports.map(Le),selectorScopeMode:Bs.Inline,containsForwardDecls:!1,schemas:r.schemas?r.schemas.map(Le):null,id:r.id?new U(r.id):null},i=Dd(s);return this.jitExpression(i.expression,e,n,[])}compileNgModuleDeclaration(e,n,r){let s=US(r);return this.jitExpression(s,e,n,[])}compileDirective(e,n,r){let s=jf(r);return this.compileDirectiveFromMeta(e,n,s)}compileDirectiveDeclaration(e,n,r){let s=this.createParseSourceSpan("Directive",r.type.name,n),i=Pm(r,s);return this.compileDirectiveFromMeta(e,n,i)}compileDirectiveFromMeta(e,n,r){let s=new Ai,i=Ks(),o=Am(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileComponent(e,n,r){let{template:s,interpolation:i,defer:o}=Mm(r.template,r.name,n,r.preserveWhitespaces,r.interpolation,void 0),a={...r,...jf(r),selector:r.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:r.declarations.map(Db),declarationListEmitMode:0,defer:o,styles:[...r.styles,...s.styles],encapsulation:r.encapsulation,interpolation:i,changeDetection:r.changeDetection??null,animations:r.animations!=null?new U(r.animations):null,viewProviders:r.viewProviders!=null?new U(r.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0},l=`ng:///${r.name}.js`;return this.compileComponentFromMeta(e,l,a)}compileComponentDeclaration(e,n,r){let s=this.createParseSourceSpan("Component",r.type.name,n),i=bb(r,s,n);return this.compileComponentFromMeta(e,n,i)}compileComponentFromMeta(e,n,r){let s=new Ai,i=Ks(r.interpolation),o=Nm(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileFactory(e,n,r){let s=er({name:r.name,type:Le(r.type),typeArgumentCount:r.typeArgumentCount,deps:kb(r.deps),target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}compileFactoryDeclaration(e,n,r){let s=er({name:r.type.name,type:Le(r.type),typeArgumentCount:0,deps:Array.isArray(r.deps)?r.deps.map(Yf):r.deps,target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}createParseSourceSpan(e,n,r){return PS(e,n,r)}jitExpression(e,n,r,s){let i=[...s,new Xe("$def",e,void 0,Re.Exported)];return this.jitEvaluator.evaluateStatements(r,i,new mc(n),!0).$def}};function Hf(t){return{...t,isSignal:t.isSignal,predicate:km(t.predicate),read:t.read?new U(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly}}function Wf(t){return{propertyName:t.propertyName,first:t.first??!1,predicate:km(t.predicate),descendants:t.descendants??!1,read:t.read?new U(t.read):null,static:t.static??!1,emitDistinctChangesOnly:t.emitDistinctChangesOnly??!0,isSignal:!!t.isSignal}}function km(t){return Array.isArray(t)?t:ts(new U(t),1)}function jf(t){let e=Vb(t.inputs||[]),n=Ol(t.outputs||[]),r=t.propMetadata,s={},i={};for(let a in r)r.hasOwnProperty(a)&&r[a].forEach(l=>{Fb(l)?s[a]={bindingPropertyName:l.alias||a,classPropertyName:a,required:l.required||!1,isSignal:!!l.isSignal,transformFunction:l.transform!=null?new U(l.transform):null}:Bb(l)&&(i[a]=l.alias||a)});let o=t.hostDirectives?.length?t.hostDirectives.map(a=>typeof a=="function"?{directive:Le(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:Le(a.directive),isForwardReference:!1,inputs:a.inputs?Ol(a.inputs):null,outputs:a.outputs?Ol(a.outputs):null}):null;return{...t,typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:Le(t.type),deps:null,host:{...Mb(t.propMetadata,t.typeSourceSpan,t.host)},inputs:{...e,...s},outputs:{...n,...i},queries:t.queries.map(Hf),providers:t.providers!=null?new U(t.providers):null,viewQueries:t.viewQueries.map(Hf),fullInheritance:!1,hostDirectives:o}}function Pm(t,e){let n=t.hostDirectives?.length?t.hostDirectives.map(r=>({directive:Le(r.directive),isForwardReference:!1,inputs:r.inputs?Kf(r.inputs):null,outputs:r.outputs?Kf(r.outputs):null})):null;return{name:t.type.name,type:Le(t.type),typeSourceSpan:e,selector:t.selector??null,inputs:t.inputs?$b(t.inputs):{},outputs:t.outputs??{},host:Ab(t.host),queries:(t.queries??[]).map(Wf),viewQueries:(t.viewQueries??[]).map(Wf),providers:t.providers!==void 0?new U(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 Ab(t={}){return{attributes:Nb(t.attributes??{}),listeners:t.listeners??{},properties:t.properties??{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function Kf(t){let e=null;for(let n=1;n<t.length;n+=2)e=e||{},e[t[n-1]]=t[n];return e}function Nb(t){let e={};for(let n of Object.keys(t))e[n]=new U(t[n]);return e}function bb(t,e,n){let{template:r,interpolation:s,defer:i}=Mm(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(Ll(a));break;case"pipe":o.push(Rb(a));break}else(t.components||t.directives||t.pipes)&&(t.components&&o.push(...t.components.map(a=>Ll(a,!0))),t.directives&&o.push(...t.directives.map(a=>Ll(a))),t.pipes&&o.push(..._b(t.pipes)));return{...Pm(t,e),template:r,styles:t.styles??[],declarations:o,viewProviders:t.viewProviders!==void 0?new U(t.viewProviders):null,animations:t.animations!==void 0?new U(t.animations):null,defer:i,changeDetection:t.changeDetection??Bo.Default,encapsulation:t.encapsulation??un.Emulated,interpolation:s,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0}}function Db(t){return{...t,type:new U(t.type)}}function Ll(t,e=null){return{kind:$s.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new U(t.type),inputs:t.inputs??[],outputs:t.outputs??[],exportAs:t.exportAs??null}}function _b(t){return t?Object.keys(t).map(e=>({kind:$s.Pipe,name:e,type:new U(t[e])})):[]}function Rb(t){return{kind:$s.Pipe,name:t.name,type:new U(t.type)}}function Mm(t,e,n,r,s,i){let o=s?Ui.fromArray(s):$t,a=Tm(t,n,{preserveWhitespaces:r,interpolationConfig:o});if(a.errors!==null){let u=a.errors.map(h=>h.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${u}`)}let c=new Oa(new ir).bind({template:a.nodes});return{template:a,interpolation:o,defer:Pb(c,i)}}function fs(t,e){if(t.hasOwnProperty(e))return ts(new U(t[e]),0)}function zf(t,e){if(t.hasOwnProperty(e))return new U(t[e])}function Xf(t){let e=typeof t=="function"?new U(t):new Ce(t??null);return ts(e,0)}function kb(t){return t==null?null:t.map(Lm)}function Lm(t){let e=t.attribute!=null,n=t.token===null?null:new U(t.token),r=e?new U(t.attribute):n;return Om(r,e,t.host,t.optional,t.self,t.skipSelf)}function Yf(t){let e=t.attribute??!1,n=t.token===null?null:new U(t.token);return Om(n,e,t.host??!1,t.optional??!1,t.self??!1,t.skipSelf??!1)}function Om(t,e,n,r,s,i){let o=e?y("unknown"):null;return{token:t,attributeNameType:o,host:n,optional:r,self:s,skipSelf:i}}function Pb(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 U(i):null)}return{mode:0,blocks:r}}function Mb(t,e,n){let r=Dm(n||{}),s=_m(r,e);if(s.length)throw new Error(s.map(i=>i.msg).join(`
38
- `));for(let i in t)t.hasOwnProperty(i)&&t[i].forEach(o=>{Lb(o)?r.properties[o.hostPropertyName||i]=pd("this",i):Ob(o)&&(r.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});return r}function Lb(t){return t.ngMetadataName==="HostBinding"}function Ob(t){return t.ngMetadataName==="HostListener"}function Fb(t){return t.ngMetadataName==="Input"}function Bb(t){return t.ngMetadataName==="Output"}function $b(t){return Object.keys(t).reduce((e,n)=>{let r=t[n];return typeof r=="string"||Array.isArray(r)?e[n]=Ub(r):e[n]={bindingPropertyName:r.publicName,classPropertyName:n,transformFunction:r.transformFunction!==null?new U(r.transformFunction):null,required:r.isRequired,isSignal:r.isSignal},e},{})}function Ub(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 U(t[2]):null,required:!1,isSignal:!1}}function Vb(t){return t.reduce((e,n)=>{if(typeof n=="string"){let[r,s]=Fm(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 U(n.transform):null};return e},{})}function Ol(t){return t.reduce((e,n)=>{let[r,s]=Fm(n);return e[s]=r,e},{})}function Fm(t){let[e,n]=t.split(":",2).map(r=>r.trim());return[n??e,e]}function qb(t){return{name:t.type.name,type:Le(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??!1}}function Gb(t){return{name:t.type.name,type:Le(t.type),providers:t.providers!==void 0&&t.providers.length>0?new U(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new U(e)):[]}}function Hb(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new uu}var RM=new Ni("18.2.4");var Qf;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(Qf||(Qf={}));var pu=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 Kt.PARSABLE_DATA}},kM=new pu;var Jf;(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"})(Jf||(Jf={}));Hb(ui);var lD=x(require("typescript"),1),ja=x(require("typescript"),1),uD=x(require("typescript"),1),Ka=x(require("typescript"),1),pD=x(require("typescript"),1),Se=x(require("typescript"),1),$u=x(require("typescript"),1),Wn=x(require("typescript"),1),eg=x(require("typescript"),1),Sr=x(require("typescript"),1);var ge=x(require("typescript"),1);var yD=x(require("typescript"),1),vD=x(require("typescript"),1),ye=x(require("typescript"),1),LM=(0,Qm.createRequire)(R),Q;(function(t){t[t.DECORATOR_ARG_NOT_LITERAL=1001]="DECORATOR_ARG_NOT_LITERAL",t[t.DECORATOR_ARITY_WRONG=1002]="DECORATOR_ARITY_WRONG",t[t.DECORATOR_NOT_CALLED=1003]="DECORATOR_NOT_CALLED",t[t.DECORATOR_UNEXPECTED=1005]="DECORATOR_UNEXPECTED",t[t.DECORATOR_COLLISION=1006]="DECORATOR_COLLISION",t[t.VALUE_HAS_WRONG_TYPE=1010]="VALUE_HAS_WRONG_TYPE",t[t.VALUE_NOT_LITERAL=1011]="VALUE_NOT_LITERAL",t[t.INITIALIZER_API_WITH_DISALLOWED_DECORATOR=1050]="INITIALIZER_API_WITH_DISALLOWED_DECORATOR",t[t.INITIALIZER_API_DECORATOR_METADATA_COLLISION=1051]="INITIALIZER_API_DECORATOR_METADATA_COLLISION",t[t.INITIALIZER_API_NO_REQUIRED_FUNCTION=1052]="INITIALIZER_API_NO_REQUIRED_FUNCTION",t[t.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY=1053]="INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY",t[t.INCORRECTLY_DECLARED_ON_STATIC_MEMBER=1100]="INCORRECTLY_DECLARED_ON_STATIC_MEMBER",t[t.COMPONENT_MISSING_TEMPLATE=2001]="COMPONENT_MISSING_TEMPLATE",t[t.PIPE_MISSING_NAME=2002]="PIPE_MISSING_NAME",t[t.PARAM_MISSING_TOKEN=2003]="PARAM_MISSING_TOKEN",t[t.DIRECTIVE_MISSING_SELECTOR=2004]="DIRECTIVE_MISSING_SELECTOR",t[t.UNDECORATED_PROVIDER=2005]="UNDECORATED_PROVIDER",t[t.DIRECTIVE_INHERITS_UNDECORATED_CTOR=2006]="DIRECTIVE_INHERITS_UNDECORATED_CTOR",t[t.UNDECORATED_CLASS_USING_ANGULAR_FEATURES=2007]="UNDECORATED_CLASS_USING_ANGULAR_FEATURES",t[t.COMPONENT_RESOURCE_NOT_FOUND=2008]="COMPONENT_RESOURCE_NOT_FOUND",t[t.COMPONENT_INVALID_SHADOW_DOM_SELECTOR=2009]="COMPONENT_INVALID_SHADOW_DOM_SELECTOR",t[t.COMPONENT_NOT_STANDALONE=2010]="COMPONENT_NOT_STANDALONE",t[t.COMPONENT_IMPORT_NOT_STANDALONE=2011]="COMPONENT_IMPORT_NOT_STANDALONE",t[t.COMPONENT_UNKNOWN_IMPORT=2012]="COMPONENT_UNKNOWN_IMPORT",t[t.HOST_DIRECTIVE_INVALID=2013]="HOST_DIRECTIVE_INVALID",t[t.HOST_DIRECTIVE_NOT_STANDALONE=2014]="HOST_DIRECTIVE_NOT_STANDALONE",t[t.HOST_DIRECTIVE_COMPONENT=2015]="HOST_DIRECTIVE_COMPONENT",t[t.INJECTABLE_INHERITS_INVALID_CONSTRUCTOR=2016]="INJECTABLE_INHERITS_INVALID_CONSTRUCTOR",t[t.HOST_DIRECTIVE_UNDEFINED_BINDING=2017]="HOST_DIRECTIVE_UNDEFINED_BINDING",t[t.HOST_DIRECTIVE_CONFLICTING_ALIAS=2018]="HOST_DIRECTIVE_CONFLICTING_ALIAS",t[t.HOST_DIRECTIVE_MISSING_REQUIRED_BINDING=2019]="HOST_DIRECTIVE_MISSING_REQUIRED_BINDING",t[t.CONFLICTING_INPUT_TRANSFORM=2020]="CONFLICTING_INPUT_TRANSFORM",t[t.COMPONENT_INVALID_STYLE_URLS=2021]="COMPONENT_INVALID_STYLE_URLS",t[t.COMPONENT_UNKNOWN_DEFERRED_IMPORT=2022]="COMPONENT_UNKNOWN_DEFERRED_IMPORT",t[t.SYMBOL_NOT_EXPORTED=3001]="SYMBOL_NOT_EXPORTED",t[t.IMPORT_CYCLE_DETECTED=3003]="IMPORT_CYCLE_DETECTED",t[t.IMPORT_GENERATION_FAILURE=3004]="IMPORT_GENERATION_FAILURE",t[t.CONFIG_FLAT_MODULE_NO_INDEX=4001]="CONFIG_FLAT_MODULE_NO_INDEX",t[t.CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK=4002]="CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK",t[t.CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES=4003]="CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES",t[t.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL=4004]="CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL",t[t.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK=4005]="CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK",t[t.HOST_BINDING_PARSE_ERROR=5001]="HOST_BINDING_PARSE_ERROR",t[t.TEMPLATE_PARSE_ERROR=5002]="TEMPLATE_PARSE_ERROR",t[t.NGMODULE_INVALID_DECLARATION=6001]="NGMODULE_INVALID_DECLARATION",t[t.NGMODULE_INVALID_IMPORT=6002]="NGMODULE_INVALID_IMPORT",t[t.NGMODULE_INVALID_EXPORT=6003]="NGMODULE_INVALID_EXPORT",t[t.NGMODULE_INVALID_REEXPORT=6004]="NGMODULE_INVALID_REEXPORT",t[t.NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC=6005]="NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC",t[t.NGMODULE_REEXPORT_NAME_COLLISION=6006]="NGMODULE_REEXPORT_NAME_COLLISION",t[t.NGMODULE_DECLARATION_NOT_UNIQUE=6007]="NGMODULE_DECLARATION_NOT_UNIQUE",t[t.NGMODULE_DECLARATION_IS_STANDALONE=6008]="NGMODULE_DECLARATION_IS_STANDALONE",t[t.NGMODULE_BOOTSTRAP_IS_STANDALONE=6009]="NGMODULE_BOOTSTRAP_IS_STANDALONE",t[t.WARN_NGMODULE_ID_UNNECESSARY=6100]="WARN_NGMODULE_ID_UNNECESSARY",t[t.SCHEMA_INVALID_ELEMENT=8001]="SCHEMA_INVALID_ELEMENT",t[t.SCHEMA_INVALID_ATTRIBUTE=8002]="SCHEMA_INVALID_ATTRIBUTE",t[t.MISSING_REFERENCE_TARGET=8003]="MISSING_REFERENCE_TARGET",t[t.MISSING_PIPE=8004]="MISSING_PIPE",t[t.WRITE_TO_READ_ONLY_VARIABLE=8005]="WRITE_TO_READ_ONLY_VARIABLE",t[t.DUPLICATE_VARIABLE_DECLARATION=8006]="DUPLICATE_VARIABLE_DECLARATION",t[t.SPLIT_TWO_WAY_BINDING=8007]="SPLIT_TWO_WAY_BINDING",t[t.MISSING_REQUIRED_INPUTS=8008]="MISSING_REQUIRED_INPUTS",t[t.ILLEGAL_FOR_LOOP_TRACK_ACCESS=8009]="ILLEGAL_FOR_LOOP_TRACK_ACCESS",t[t.INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT=8010]="INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT",t[t.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION=8011]="CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION",t[t.DEFERRED_PIPE_USED_EAGERLY=8012]="DEFERRED_PIPE_USED_EAGERLY",t[t.DEFERRED_DIRECTIVE_USED_EAGERLY=8013]="DEFERRED_DIRECTIVE_USED_EAGERLY",t[t.DEFERRED_DEPENDENCY_IMPORTED_EAGERLY=8014]="DEFERRED_DEPENDENCY_IMPORTED_EAGERLY",t[t.ILLEGAL_LET_WRITE=8015]="ILLEGAL_LET_WRITE",t[t.LET_USED_BEFORE_DEFINITION=8016]="LET_USED_BEFORE_DEFINITION",t[t.CONFLICTING_LET_DECLARATION=8017]="CONFLICTING_LET_DECLARATION",t[t.INVALID_BANANA_IN_BOX=8101]="INVALID_BANANA_IN_BOX",t[t.NULLISH_COALESCING_NOT_NULLABLE=8102]="NULLISH_COALESCING_NOT_NULLABLE",t[t.MISSING_CONTROL_FLOW_DIRECTIVE=8103]="MISSING_CONTROL_FLOW_DIRECTIVE",t[t.TEXT_ATTRIBUTE_NOT_BINDING=8104]="TEXT_ATTRIBUTE_NOT_BINDING",t[t.MISSING_NGFOROF_LET=8105]="MISSING_NGFOROF_LET",t[t.SUFFIX_NOT_SUPPORTED=8106]="SUFFIX_NOT_SUPPORTED",t[t.OPTIONAL_CHAIN_NOT_NULLABLE=8107]="OPTIONAL_CHAIN_NOT_NULLABLE",t[t.SKIP_HYDRATION_NOT_STATIC=8108]="SKIP_HYDRATION_NOT_STATIC",t[t.INTERPOLATED_SIGNAL_NOT_INVOKED=8109]="INTERPOLATED_SIGNAL_NOT_INVOKED",t[t.UNSUPPORTED_INITIALIZER_API_USAGE=8110]="UNSUPPORTED_INITIALIZER_API_USAGE",t[t.UNINVOKED_FUNCTION_IN_EVENT_BINDING=8111]="UNINVOKED_FUNCTION_IN_EVENT_BINDING",t[t.UNUSED_LET_DECLARATION=8112]="UNUSED_LET_DECLARATION",t[t.INLINE_TCB_REQUIRED=8900]="INLINE_TCB_REQUIRED",t[t.INLINE_TYPE_CTOR_REQUIRED=8901]="INLINE_TYPE_CTOR_REQUIRED",t[t.INJECTABLE_DUPLICATE_PROV=9001]="INJECTABLE_DUPLICATE_PROV",t[t.SUGGEST_STRICT_TEMPLATES=10001]="SUGGEST_STRICT_TEMPLATES",t[t.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE=10002]="SUGGEST_SUBOPTIMAL_TYPE_INFERENCE",t[t.LOCAL_COMPILATION_UNRESOLVED_CONST=11001]="LOCAL_COMPILATION_UNRESOLVED_CONST",t[t.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION=11003]="LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"})(Q||(Q={}));function qu(t){return parseInt("-99"+t)}var jn=class extends Error{constructor(t,e,n,r){super(`FatalDiagnosticError: Code: ${t}, Message: ${Zs.default.flattenDiagnosticMessageText(n,`
39
- `)}`),this.code=t,this.node=e,this.diagnosticMessage=n,this.relatedInformation=r,this._isFatalDiagnosticError=!0,Object.setPrototypeOf(this,new.target.prototype)}toDiagnostic(){return Gu(this.code,this.node,this.diagnosticMessage,this.relatedInformation)}};function Gu(t,e,n,r){return e=Zs.default.getOriginalNode(e),{category:Zs.default.DiagnosticCategory.Error,code:qu(t),file:Zs.default.getOriginalNode(e).getSourceFile(),start:e.getStart(void 0,!1),length:e.getWidth(),messageText:n,relatedInformation:r}}function Hu(t,e){return{category:Zs.default.DiagnosticCategory.Message,code:0,messageText:t,next:e}}var Kb=new Set([Q.DECORATOR_ARG_NOT_LITERAL,Q.IMPORT_CYCLE_DETECTED,Q.PARAM_MISSING_TOKEN,Q.SCHEMA_INVALID_ELEMENT,Q.SCHEMA_INVALID_ATTRIBUTE,Q.MISSING_REFERENCE_TARGET,Q.COMPONENT_INVALID_SHADOW_DOM_SELECTOR,Q.WARN_NGMODULE_ID_UNNECESSARY]);var Tt;(function(t){t.INVALID_BANANA_IN_BOX="invalidBananaInBox",t.NULLISH_COALESCING_NOT_NULLABLE="nullishCoalescingNotNullable",t.OPTIONAL_CHAIN_NOT_NULLABLE="optionalChainNotNullable",t.MISSING_CONTROL_FLOW_DIRECTIVE="missingControlFlowDirective",t.TEXT_ATTRIBUTE_NOT_BINDING="textAttributeNotBinding",t.UNINVOKED_FUNCTION_IN_EVENT_BINDING="uninvokedFunctionInEventBinding",t.MISSING_NGFOROF_LET="missingNgForOfLet",t.SUFFIX_NOT_SUPPORTED="suffixNotSupported",t.SKIP_HYDRATION_NOT_STATIC="skipHydrationNotStatic",t.INTERPOLATED_SIGNAL_NOT_INVOKED="interpolatedSignalNotInvoked",t.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION="controlFlowPreventingContentProjection",t.UNUSED_LET_DECLARATION="unusedLetDeclaration"})(Tt||(Tt={}));function zb(t){return uo.default.isIdentifier(t)||uo.default.isPropertyAccessExpression(t)&&uo.default.isIdentifier(t.expression)&&uo.default.isIdentifier(t.name)}var wr;(function(t){t[t.Constructor=0]="Constructor",t[t.Getter=1]="Getter",t[t.Setter=2]="Setter",t[t.Property=3]="Property",t[t.Method=4]="Method"})(wr||(wr={}));var he;(function(t){t[t.PublicWritable=0]="PublicWritable",t[t.PublicReadonly=1]="PublicReadonly",t[t.Protected=2]="Protected",t[t.Private=3]="Private",t[t.EcmaScriptPrivate=4]="EcmaScriptPrivate"})(he||(he={}));var ns={};function Xb(t,e,n){var r,s;if(t===null)return Zb();if(!De.default.isTypeReferenceNode(t))return co(t);let i=eD(t,e);if(i===null)return Qb(t);let{local:o,decl:a}=i;if(a.valueDeclaration===void 0||a.flags&De.default.SymbolFlags.ConstEnum){let u=null;if(a.declarations!==void 0&&a.declarations.length>0&&(u=a.declarations[0]),!n||u&&[De.default.SyntaxKind.TypeParameter,De.default.SyntaxKind.TypeAliasDeclaration,De.default.SyntaxKind.InterfaceDeclaration].includes(u.kind))return Yb(t,u)}let l=o.declarations&&o.declarations[0];if(l!==void 0){if(De.default.isImportClause(l)&&l.name!==void 0)return l.isTypeOnly?Wa(t,l):De.default.isImportDeclaration(l.parent)?{kind:0,expression:l.name,defaultImportStatement:l.parent}:co(t);if(De.default.isImportSpecifier(l)){if(l.isTypeOnly)return Wa(t,l);if(l.parent.parent.isTypeOnly)return Wa(t,l.parent.parent);let u=(l.propertyName||l.name).text,[h,...f]=i.symbolNames,m=l.parent.parent.parent;if(!De.default.isImportDeclaration(m))return co(t);let E=$m(m);return{kind:1,valueDeclaration:(r=a.valueDeclaration)!=null?r:null,moduleName:E,importedName:u,nestedPath:f}}else if(De.default.isNamespaceImport(l)){if(l.parent.isTypeOnly)return Wa(t,l.parent);if(i.symbolNames.length===1)return Jb(t,l.parent);let[u,h,...f]=i.symbolNames,m=l.parent.parent;if(!De.default.isImportDeclaration(m))return co(t);let E=$m(m);return{kind:1,valueDeclaration:(s=a.valueDeclaration)!=null?s:null,moduleName:E,importedName:h,nestedPath:f}}}let c=Jm(t);return c!==null?{kind:0,expression:c,defaultImportStatement:null}:co(t)}function co(t){return{kind:2,reason:{kind:5,typeNode:t}}}function Yb(t,e){return{kind:2,reason:{kind:1,typeNode:t,decl:e}}}function Wa(t,e){return{kind:2,reason:{kind:2,typeNode:t,node:e}}}function Qb(t){return{kind:2,reason:{kind:3,typeNode:t}}}function Jb(t,e){return{kind:2,reason:{kind:4,typeNode:t,importClause:e}}}function Zb(){return{kind:2,reason:{kind:0}}}function Jm(t){return De.default.isTypeReferenceNode(t)?Wu(t.typeName):null}function eD(t,e){let n=t.typeName,r=e.getSymbolAtLocation(n);if(r===void 0)return null;let s=r,i=n,o=[];for(;De.default.isQualifiedName(i);)o.unshift(i.right.text),i=i.left;if(o.unshift(i.text),i!==n){let l=e.getSymbolAtLocation(i);l!==void 0&&(s=l)}let a=r;return r.flags&De.default.SymbolFlags.Alias&&(a=e.getAliasedSymbol(r)),{local:s,decl:a,symbolNames:o}}function Wu(t){if(De.default.isQualifiedName(t)){let e=Wu(t.left);return e!==null?De.default.factory.createPropertyAccessExpression(e,t.right):null}else if(De.default.isIdentifier(t)){let e=De.default.setOriginalNode(De.default.factory.createIdentifier(t.text),t);return e.parent=t.parent,e}else return null}function $m(t){if(!De.default.isStringLiteral(t.moduleSpecifier))throw new Error("not a module specifier");return t.moduleSpecifier.text}function Ku(t){return ju.default.isClassDeclaration(t)&&tD(t.name)}function tD(t){return t!==void 0&&ju.default.isIdentifier(t)}function zu(t){switch(t){case he.EcmaScriptPrivate:return"ES private";case he.Private:return"private";case he.Protected:return"protected";case he.PublicReadonly:return"public readonly";case he.PublicWritable:default:return"public"}}var Xu=class{constructor(t,e=!1){this.checker=t,this.isLocalCompilation=e}getDecoratorsOfDeclaration(t){let e=M.default.canHaveDecorators(t)?M.default.getDecorators(t):void 0;return e!==void 0&&e.length?e.map(n=>this._reflectDecorator(n)).filter(n=>n!==null):null}getMembersOfClass(t){return Um(t).members.map(n=>{let r=Yu(n);return r===null?null:{...r,decorators:this.getDecoratorsOfDeclaration(n)}}).filter(n=>n!==null)}getConstructorParameters(t){let e=Um(t),n=e.getSourceFile().isDeclarationFile,r=e.members.find(s=>M.default.isConstructorDeclaration(s)&&(n||s.body!==void 0));return r===void 0?null:r.parameters.map(s=>{let i=Vm(s.name),o=this.getDecoratorsOfDeclaration(s),a=s.type||null,l=a;if(l&&M.default.isUnionTypeNode(l)){let u=l.types.filter(h=>!(M.default.isLiteralTypeNode(h)&&h.literal.kind===M.default.SyntaxKind.NullKeyword));u.length===1&&(l=u[0])}let c=Xb(l,this.checker,this.isLocalCompilation);return{name:i,nameNode:s.name,typeValueReference:c,typeNode:a,decorators:o}})}getImportOfIdentifier(t){let e=this.getDirectImportOfIdentifier(t);return e!==null?e:M.default.isQualifiedName(t.parent)&&t.parent.right===t?this.getImportOfNamespacedIdentifier(t,sD(t.parent)):M.default.isPropertyAccessExpression(t.parent)&&t.parent.name===t?this.getImportOfNamespacedIdentifier(t,iD(t.parent)):null}getExportsOfModule(t){if(!M.default.isSourceFile(t))throw new Error("getExportsOfModule() called on non-SourceFile in TS code");let e=this.checker.getSymbolAtLocation(t);if(e===void 0)return null;let n=new Map;return this.checker.getExportsOfModule(e).forEach(r=>{let s=this.getDeclarationOfSymbol(r,null);s!==null&&n.set(r.name,s)}),n}isClass(t){return Ku(t)}hasBaseClass(t){return this.getBaseClassExpression(t)!==null}getBaseClassExpression(t){if(!(M.default.isClassDeclaration(t)||M.default.isClassExpression(t))||t.heritageClauses===void 0)return null;let e=t.heritageClauses.find(r=>r.token===M.default.SyntaxKind.ExtendsKeyword);if(e===void 0)return null;let n=e.types[0];return n===void 0?null:n.expression}getDeclarationOfIdentifier(t){let e=this.checker.getSymbolAtLocation(t);return e===void 0?null:this.getDeclarationOfSymbol(e,t)}getDefinitionOfFunction(t){if(!M.default.isFunctionDeclaration(t)&&!M.default.isMethodDeclaration(t)&&!M.default.isFunctionExpression(t)&&!M.default.isArrowFunction(t))return null;let e=null;t.body!==void 0&&(e=M.default.isBlock(t.body)?Array.from(t.body.statements):[M.default.factory.createReturnStatement(t.body)]);let n=this.checker.getTypeAtLocation(t),r=this.checker.getSignaturesOfType(n,M.default.SignatureKind.Call);return{node:t,body:e,signatureCount:r.length,typeParameters:t.typeParameters===void 0?null:Array.from(t.typeParameters),parameters:t.parameters.map(s=>{let i=Vm(s.name),o=s.initializer||null;return{name:i,node:s,initializer:o,type:s.type||null}})}}getGenericArityOfClass(t){return M.default.isClassDeclaration(t)?t.typeParameters!==void 0?t.typeParameters.length:0:null}getVariableValue(t){return t.initializer||null}isStaticallyExported(t){let e=t;M.default.isVariableDeclaration(t)&&M.default.isVariableDeclarationList(t.parent)&&(e=t.parent.parent);let n=M.default.canHaveModifiers(e)?M.default.getModifiers(e):void 0;return n!==void 0&&n.some(s=>s.kind===M.default.SyntaxKind.ExportKeyword)?!0:e.parent===void 0||!M.default.isSourceFile(e.parent)?!1:this.getLocalExportedDeclarationsOfSourceFile(t.getSourceFile()).has(t)}getDirectImportOfIdentifier(t){let e=this.checker.getSymbolAtLocation(t);if(e===void 0||e.declarations===void 0||e.declarations.length!==1)return null;let n=e.declarations[0],r=oD(n);return r===null||!M.default.isStringLiteral(r.moduleSpecifier)?null:{from:r.moduleSpecifier.text,name:aD(n,t),node:r}}getImportOfNamespacedIdentifier(t,e){if(e===null)return null;let n=this.checker.getSymbolAtLocation(e);if(!n||n.declarations===void 0)return null;let r=n.declarations.length===1?n.declarations[0]:null;if(!r)return null;let s=M.default.isNamespaceImport(r)?r:null;if(!s)return null;let i=s.parent.parent;return!M.default.isImportDeclaration(i)||!M.default.isStringLiteral(i.moduleSpecifier)?null:{from:i.moduleSpecifier.text,name:t.text,node:i}}getDeclarationOfSymbol(t,e){let n;if(t.valueDeclaration!==void 0?n=t.valueDeclaration:t.declarations!==void 0&&t.declarations.length>0&&(n=t.declarations[0]),n!==void 0&&M.default.isShorthandPropertyAssignment(n)){let s=this.checker.getShorthandAssignmentValueSymbol(n);return s===void 0?null:this.getDeclarationOfSymbol(s,e)}else if(n!==void 0&&M.default.isExportSpecifier(n)){let s=this.checker.getExportSpecifierLocalTargetSymbol(n);return s===void 0?null:this.getDeclarationOfSymbol(s,e)}let r=e&&this.getImportOfIdentifier(e);for(;t.flags&M.default.SymbolFlags.Alias;)t=this.checker.getAliasedSymbol(t);return t.valueDeclaration!==void 0?{node:t.valueDeclaration,viaModule:this._viaModule(t.valueDeclaration,e,r)}:t.declarations!==void 0&&t.declarations.length>0?{node:t.declarations[0],viaModule:this._viaModule(t.declarations[0],e,r)}:null}_reflectDecorator(t){let e=t.expression,n=null;if(M.default.isCallExpression(e)&&(n=Array.from(e.arguments),e=e.expression),!zb(e))return null;let r=M.default.isIdentifier(e)?e:e.name,s=this.getImportOfIdentifier(r);return{name:r.text,identifier:e,import:s,node:t,args:n}}getLocalExportedDeclarationsOfSourceFile(t){let e=t;if(e[Lu]!==void 0)return e[Lu];let n=new Set;e[Lu]=n;let r=this.checker.getSymbolAtLocation(e);if(r===void 0||r.exports===void 0)return n;let s=r.exports.values(),i=s.next();for(;i.done!==!0;){let o=i.value;o.flags&M.default.SymbolFlags.Alias&&(o=this.checker.getAliasedSymbol(o)),o.valueDeclaration!==void 0&&o.valueDeclaration.getSourceFile()===t&&n.add(o.valueDeclaration),i=s.next()}return n}_viaModule(t,e,n){return n===null&&e!==null&&t.getSourceFile()!==e.getSourceFile()?ns:n!==null&&n.from!==null&&!n.from.startsWith(".")?n.from:null}};function nD(t){let e=M.default.getModifiers(t),n=!1,r=!1,s=he.PublicWritable;if(e!==void 0)for(let i of e)switch(i.kind){case M.default.SyntaxKind.StaticKeyword:n=!0;break;case M.default.SyntaxKind.PrivateKeyword:s=he.Private;break;case M.default.SyntaxKind.ProtectedKeyword:s=he.Protected;break;case M.default.SyntaxKind.ReadonlyKeyword:r=!0;break}return r&&s===he.PublicWritable&&(s=he.PublicReadonly),t.name!==void 0&&M.default.isPrivateIdentifier(t.name)&&(s=he.EcmaScriptPrivate),{accessLevel:s,isStatic:n}}function Yu(t){let e=null,n=null,r=null,s=null;if(M.default.isPropertyDeclaration(t))e=wr.Property,n=t.initializer||null;else if(M.default.isGetAccessorDeclaration(t))e=wr.Getter;else if(M.default.isSetAccessorDeclaration(t))e=wr.Setter;else if(M.default.isMethodDeclaration(t))e=wr.Method;else if(M.default.isConstructorDeclaration(t))e=wr.Constructor;else return null;if(M.default.isConstructorDeclaration(t))r="constructor";else if(M.default.isIdentifier(t.name))r=t.name.text,s=t.name;else if(M.default.isStringLiteral(t.name))r=t.name.text,s=t.name;else if(M.default.isPrivateIdentifier(t.name))r=t.name.text,s=t.name;else return null;let{accessLevel:i,isStatic:o}=nD(t);return{node:t,implementation:t,kind:e,type:t.type||null,accessLevel:i,name:r,nameNode:s,value:n,isStatic:o}}function Qu(t){let e=new Map;return t.properties.forEach(n=>{if(M.default.isPropertyAssignment(n)){let r=rD(n.name);if(r===null)return;e.set(r,n.initializer)}else if(M.default.isShorthandPropertyAssignment(n))e.set(n.name.text,n.name);else return}),e}function Um(t){if(!M.default.isClassDeclaration(t))throw new Error(`Reflecting on a ${M.default.SyntaxKind[t.kind]} instead of a ClassDeclaration.`);return t}function Vm(t){return M.default.isIdentifier(t)?t.text:null}function rD(t){return M.default.isIdentifier(t)||M.default.isStringLiteral(t)||M.default.isNumericLiteral(t)?t.text:null}function sD(t){for(;M.default.isQualifiedName(t.left);)t=t.left;return M.default.isIdentifier(t.left)?t.left:null}function iD(t){for(;M.default.isPropertyAccessExpression(t.expression);)t=t.expression;return M.default.isIdentifier(t.expression)?t.expression:null}function oD(t){let e=t.parent;for(;e&&!M.default.isSourceFile(e);){if(M.default.isImportDeclaration(e))return e;e=e.parent}return null}function aD(t,e){return M.default.isImportSpecifier(t)?(t.propertyName!==void 0?t.propertyName:t.name).text:e.text}var Lu=Symbol("LocalExportedDeclarations");function Fu(t){return t.name!==void 0&&Zm.default.isIdentifier(t.name)?t.name:null}var rs=class{constructor(t,e=null){this.node=t,this.identifiers=[],this.synthetic=!1,this._alias=null,e===ns?(this.isAmbient=!0,this.bestGuessOwningModule=null):(this.isAmbient=!1,this.bestGuessOwningModule=e);let n=Fu(t);n!==null&&this.identifiers.push(n)}get ownedByModuleGuess(){return this.bestGuessOwningModule!==null?this.bestGuessOwningModule.specifier:null}get hasOwningModuleGuess(){return this.bestGuessOwningModule!==null}get debugName(){let t=Fu(this.node);return t!==null?t.text:null}get alias(){return this._alias}addIdentifier(t){this.identifiers.push(t)}getIdentityIn(t){return this.identifiers.find(e=>e.getSourceFile()===t)||null}getIdentityInExpression(t){let e=t.getSourceFile();return this.identifiers.find(n=>n.getSourceFile()!==e?!1:n.pos>=t.pos&&n.end<=t.end)||null}getOriginForDiagnostics(t,e=t){let n=this.getIdentityInExpression(t);return n!==null?n:e}cloneWithAlias(t){let e=new rs(this.node,this.isAmbient?ns:this.bestGuessOwningModule);return e.identifiers=[...this.identifiers],e._alias=t,e}cloneWithNoIdentifiers(){let t=new rs(this.node,this.isAmbient?ns:this.bestGuessOwningModule);return t._alias=this._alias,t.identifiers=[],t}};var Bu;(function(t){t[t.None=0]="None",t[t.ForceNewImport=1]="ForceNewImport",t[t.NoAliasing=2]="NoAliasing",t[t.AllowTypeImports=4]="AllowTypeImports",t[t.AllowRelativeDtsImports=8]="AllowRelativeDtsImports",t[t.AllowAmbientReferences=16]="AllowAmbientReferences"})(Bu||(Bu={}));var qm=Symbol("patchedReferencedAliases");function Ju(t){cD(t)||Gm();let e=t.getEmitResolver(),n=e[qm];if(n!==void 0)return n;let r=e.isReferencedAliasDeclaration;r===void 0&&Gm();let s=new Set;return e.isReferencedAliasDeclaration=function(i,...o){return Zu(i)&&s.has(i)?!0:r.call(e,i,...o)},e[qm]=s}function Zu(t){return ja.default.isImportSpecifier(t)||ja.default.isNamespaceImport(t)||ja.default.isImportClause(t)}function cD(t){return t.getEmitResolver!==void 0}function Gm(){throw Error(`Angular compiler is incompatible with this version of the TypeScript compiler.
36
+ `.trim());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 Ux=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function Vx(t){return t.split(Ux)[2]}var qc=class extends q{constructor(e,n){super(e,n)}},uf=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function qx(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),uf.has(t+"|"+e)||uf.has("*|"+e)}var Gx=t=>(e,n)=>{let r=t.get(e)??e;return r instanceof vr&&(n instanceof Fs&&r.i18n instanceof ot&&(n.previousMessage=r.i18n),r.i18n=n),n},Da=class{constructor(e=$t,n=!1,r=!1,s=SS,i=!0,o=!i){this.interpolationConfig=e,this.keepI18nAttrs=n,this.enableI18nLegacyMessageIdFormat=r,this.containerBlocks=s,this.preserveSignificantWhitespace=i,this.retainEmptyTokens=o,this.hasI18nMeta=!1,this._errors=[]}_generateI18nMessage(e,n="",r){let{meaning:s,description:i,customId:o}=this._parseMetadata(n),l=Lx(this.interpolationConfig,this.containerBlocks,this.retainEmptyTokens)(e,s,i,o,r);return this._setMessageId(l,n),this._setLegacyIds(l,n),l}visitAllWithErrors(e){let n=e.map(r=>r.visit(this,null));return new Aa(n,this._errors)}visitElement(e){let n;if(dS(e)){this.hasI18nMeta=!0;let r=[],s={};for(let i of e.attrs)if(i.name===hd){let o=e.i18n||i.value,a=new Map,l=this.preserveSignificantWhitespace?e.children:ys(new Na(!1,a),e.children);n=this._generateI18nMessage(l,o,Gx(a)),n.nodes.length===0&&(n=void 0),e.i18n=n}else if(i.name.startsWith(lc)){let o=i.name.slice(lc.length);qx(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 xe(this,e.children,n),e}visitExpansion(e,n){let r,s=e.i18n;if(this.hasI18nMeta=!0,s instanceof Fs){let i=s.name;r=this._generateI18nMessage([e],s);let o=dd(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 xe(this,e.children,n),e}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}_parseMetadata(e){return typeof e=="string"?jx(e):e instanceof ot?e:{}}_setMessageId(e,n){e.id||(e.id=n instanceof ot&&n.id||EE(e,this.preserveSignificantWhitespace))}_setLegacyIds(e,n){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[vE(e),Zf(e,this.preserveSignificantWhitespace)];else if(typeof n!="string"){let r=n instanceof ot?n:n instanceof Fs?n.previousMessage:void 0;e.legacyIds=r?r.legacyIds:[]}}_reportError(e,n){this._errors.push(new qc(e.sourceSpan,n))}},Hx="|",Wx="@@";function jx(t=""){let e,n,r;if(t=t.trim(),t){let s=t.indexOf(Wx),i=t.indexOf(Hx),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 Kx(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}),id(e)}var zx="goog.getMsg";function Xx(t,e,n,r){let s=Qx(e),i=[y(s)];Object.keys(r).length&&(i.push(Nc(du(r,!0),!0)),i.push(Nc({original_code:Ye(Object.keys(r).map(l=>({key:oo(l),quoted:!0,value:e.placeholders[l]?y(e.placeholders[l].sourceSpan.toString()):y(e.placeholderToMessage[l].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));let o=n.set(W(zx).callFn(i)).toConstDecl();o.addLeadingComment(Kx(e));let a=new bt(t.set(n));return[o,a]}var Gc=class{formatPh(e){return`{$${oo(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){return Hd(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)}},Yx=new Gc;function Qx(t){return t.nodes.map(e=>e.visit(Yx,null)).join("")}function Jx(t,e,n){let{messageParts:r,placeHolders:s}=Zx(e),i=eC(e),o=s.map(c=>n[c.text]),a=ld(e,r,s,o,i),l=t.set(a);return[new bt(l)]}var Hc=class{constructor(e,n){this.placeholderToMessage=e,this.pieces=n}visitText(e){if(this.pieces[this.pieces.length-1]instanceof sr)this.pieces[this.pieces.length-1].text+=e.value;else{let n=new V(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new sr(e.value,n))}}visitContainer(e){e.children.forEach(n=>n.visit(this))}visitIcu(e){this.pieces.push(new sr(Hd(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 Pr(oo(e,!1),n,r)}};function Zx(t){let e=[],n=new Hc(t.placeholderToMessage,e);return t.nodes.forEach(r=>r.visit(n)),tC(e)}function eC(t){let e=t.nodes[0],n=t.nodes[t.nodes.length-1];return new V(e.sourceSpan.fullStart,n.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function tC(t){let e=[],n=[];t[0]instanceof Pr&&e.push(Il(t[0].sourceSpan.start));for(let r=0;r<t.length;r++){let s=t[r];s instanceof sr?e.push(s):(n.push(s),t[r-1]instanceof Pr&&e.push(Il(t[r-1].sourceSpan.end)))}return t[t.length-1]instanceof Pr&&e.push(Il(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:n}}function Il(t){return new sr("",new V(t,t))}var pf="ngI18nClosureMode",nC="i18n_",rC="I18N_EXP_",hf="\uFFFD",sC="MSG_";function ff(t){return`${sC}${t}`.toUpperCase()}function iC(t){return new Xe(t.name,void 0,At,void 0,t.sourceSpan)}function oC(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 l of t.units)for(let c of l.ops())if(c.kind===p.ExtractedAttribute&&c.i18nContext!==null){let u=n.get(c.i18nContext)??[];u.push(c),n.set(c.i18nContext,u)}else if(c.kind===p.I18nAttributes)r.set(c.target,c);else if(c.kind===p.I18nExpression&&c.usage===Yr.I18nAttribute){let u=s.get(c.target)??[];u.push(c),s.set(c.target,u)}else c.kind===p.I18nMessage&&i.set(c.xref,c);let o=new Map,a=new Map;for(let l of t.units)for(let c of l.create)if(c.kind===p.I18nMessage){if(c.messagePlaceholder===null){let{mainVar:u,statements:h}=Zd(t,e,i,c);if(c.i18nBlock!==null){let f=t.addConst(u,h);a.set(c.i18nBlock,f)}else{t.constsInitializers.push(...h),o.set(c.i18nContext,u);let f=n.get(c.i18nContext);if(f!==void 0)for(let m of f)m.expression=u.clone()}}T.remove(c)}for(let l of t.units)for(let c of l.create)if(yr(c)){let u=r.get(c.xref);if(u===void 0)continue;let h=s.get(c.xref);if(h===void 0)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let f=new Set;h=h.filter(E=>{let S=f.has(E.name);return f.add(E.name),!S});let m=h.flatMap(E=>{let S=o.get(E.context);if(S===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[y(E.name),S]});u.i18nAttributesConfig=t.addConst(new ct(m))}for(let l of t.units)for(let c of l.create)if(c.kind===p.I18nStart){let u=a.get(c.root);if(u===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=u}}function Zd(t,e,n,r){let s=[],i=new Map;for(let c of r.subMessages){let u=n.get(c),{mainVar:h,statements:f}=Zd(t,e,n,u);s.push(...f);let m=i.get(u.messagePlaceholder)??[];m.push(h),i.set(u.messagePlaceholder,m)}aC(r,i),r.params=new Map([...r.params.entries()].sort());let o=W(t.pool.uniqueName(nC)),a=uC(t.pool,r.message.id,e,t.i18nUseExternalIds),l;if(r.needsPostprocessing||r.postprocessingParams.size>0){let c=Object.fromEntries([...r.postprocessingParams.entries()].sort()),u=du(c,!1),h=[];r.postprocessingParams.size>0&&h.push(Nc(u,!0)),l=f=>L(d.i18nPostprocess).callFn([f,...h])}return s.push(...lC(r.message,o,a,r.params,l)),{mainVar:o,statements:s}}function aC(t,e){for(let[n,r]of e)r.length===1?t.params.set(n,r[0]):(t.params.set(n,y(`${hf}${rC}${n}${hf}`)),t.postprocessingParams.set(n,se(r)))}function lC(t,e,n,r,s){let i=Object.fromEntries(r),o=[iC(e),so(cC(),Xx(e,t,n,i),Jx(e,t,du(i,!1)))];return s&&o.push(new bt(e.set(s(e)))),o}function cC(){return ro(W(pf)).notIdentical(y("undefined",fu)).and(W(pf))}function uC(t,e,n,r){let s,i=n;if(r){let o=ff("EXTERNAL_"),a=t.uniqueName(i);s=`${o}${di(e)}$$${a}`}else{let o=ff(i);s=t.uniqueName(o)}return W(s)}function pC(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 p.I18nStart:if(a.context===null)throw Error("I18n op should have its context set.");n=a;break;case p.I18nEnd:n=null;break;case p.IcuStart:if(a.context===null)throw Error("Icu op should have its context set.");r=a;break;case p.IcuEnd:r=null;break;case p.Text:if(n!==null)if(s.set(a.xref,n),i.set(a.xref,r),a.icuPlaceholder!==null){let l=Hw(t.allocateXrefId(),a.icuPlaceholder,[a.initialValue]);T.replace(a,l),o.set(a.xref,l)}else T.remove(a);break}for(let a of e.update)switch(a.kind){case p.InterpolateText:if(!s.has(a.target))continue;let l=s.get(a.target),c=i.get(a.target),u=o.get(a.target),h=c?c.context:l.context,f=c?Us.Postproccessing:Us.Creation,m=[];for(let E=0;E<a.interpolation.expressions.length;E++){let S=a.interpolation.expressions[E];m.push(Ld(h,l.xref,l.xref,l.handle,S,u?.xref??null,a.interpolation.i18nPlaceholders[E]??null,f,Yr.I18nText,"",S.sourceSpan??a.sourceSpan))}T.replaceWithMany(a,m),u!==void 0&&(u.strings=a.interpolation.strings);break}}}function hC(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case p.ElementStart:case p.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=fC(n.localRefs);n.localRefs=t.addConst(r)}else n.localRefs=null;break}}function fC(t){let e=[];for(let n of t)e.push(y(n.name),y(n.target));return se(e)}function dC(t){for(let e of t.units){let n=Ke.HTML;for(let r of e.create)r.kind===p.ElementStart&&r.namespace!==n&&(T.insertBefore(Ow(r.namespace),r),n=r.namespace)}}function mC(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=em(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 l=t.slice(i).trim();e.push(a,l)}return e}function em(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function gC(t){let e=new Map;for(let n of t.units)for(let r of n.create)yr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.create)if(r.kind===p.ExtractedAttribute&&r.bindingKind===F.Attribute&&Od(r.expression)){let s=e.get(r.target);if(s!==void 0&&s.kind===p.Template&&s.templateKind===vt.Structural)continue;if(r.name==="style"){let i=mC(r.expression.value);for(let o=0;o<i.length-1;o+=2)T.insertBefore(Ut(r.target,F.StyleProperty,null,i[o],y(i[o+1]),null,null,ce.STYLE),r);T.remove(r)}else if(r.name==="class"){let i=r.expression.value.trim().split(/\s+/g);for(let o of i)T.insertBefore(Ut(r.target,F.ClassName,null,o,null,null,null,ce.NONE),r);T.remove(r)}}}function yC(t){ci(t.root,t.componentName,{index:0},t.compatibility===Et.TemplateDefinitionBuilder)}function ci(t,e,n,r){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(di(`${e}_${t.job.fnSuffix}`),!1));let s=new Map;for(let i of t.ops())switch(i.kind){case p.Property:case p.HostProperty:i.isAnimationTrigger&&(i.name="@"+i.name);break;case p.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=di(i.handlerFnName);break;case p.TwoWayListener:if(i.handlerFnName!==null)break;if(i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");i.handlerFnName=di(`${t.fnName}_${i.tag.replace("-","_")}_${i.name}_${i.targetSlot.slot}_listener`);break;case p.Variable:s.set(i.xref,vC(t,i.variable,n));break;case p.RepeaterCreate:if(!(t instanceof dn))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);ci(c,`${e}_${i.functionNameSuffix}Empty_${i.handle.slot+2}`,n,r)}ci(t.job.views.get(i.xref),`${e}_${i.functionNameSuffix}_${i.handle.slot+1}`,n,r);break;case p.Projection:if(!(t instanceof dn))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);ci(c,`${e}_ProjectionFallback_${i.handle.slot}`,n,r)}break;case p.Template:if(!(t instanceof dn))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 l=i.functionNameSuffix.length===0?"":`_${i.functionNameSuffix}`;ci(a,`${e}${l}_${i.handle.slot}`,n,r);break;case p.StyleProp:i.name=EC(i.name),r&&(i.name=df(i.name));break;case p.ClassProp:r&&(i.name=df(i.name));break}for(let i of t.ops())tt(i,o=>{if(!(!(o instanceof Mn)||o.name!==null)){if(!s.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=s.get(o.xref)}})}function vC(t,e,n){if(e.name===null)switch(e.kind){case Oe.Context:e.name=`ctx_r${n.index++}`;break;case Oe.Identifier:if(t.job.compatibility===Et.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 EC(t){return t.startsWith("--")?t:em(t)}function df(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function SC(t){for(let e of t.units){for(let n of e.create)(n.kind===p.Listener||n.kind===p.TwoWayListener)&&mf(n.handlerOps);mf(e.update)}}function mf(t){for(let e of t){if(e.kind!==p.Statement||!(e.statement instanceof bt)||!(e.statement.expr instanceof ua))continue;let n=e.statement.expr.steps,r=!0;for(let s=e.next;s.kind!==p.ListEnd&&r;s=s.next)tt(s,(i,o)=>{if(!Tn(i))return i;if(r&&!(o&te.InChildOperation))switch(i.kind){case O.NextContext:i.steps+=n,T.remove(e),r=!1;break;case O.GetCurrentView:case O.Reference:case O.ContextLetReference:r=!1;break}})}}var wC="ng-container";function TC(t){for(let e of t.units){let n=new Set;for(let r of e.create)r.kind===p.ElementStart&&r.tag===wC&&(r.kind=p.ContainerStart,n.add(r.xref)),r.kind===p.ElementEnd&&n.has(r.xref)&&(r.kind=p.ContainerEnd)}}function xC(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 CC(t){let e=new Map;for(let n of t.units)for(let r of n.create)yr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.create)(r.kind===p.ElementStart||r.kind===p.ContainerStart)&&r.nonBindable&&T.insertAfter(Mw(r.xref),r),(r.kind===p.ElementEnd||r.kind===p.ContainerEnd)&&xC(e,r.xref).nonBindable&&T.insertBefore(Lw(r.xref),r)}function IC(t){for(let e of t.units)for(let n of e.ops())Ue(n,r=>{if(!(r instanceof ee)||r.operator!==A.NullishCoalesce)return r;let s=new rn(r.lhs.clone(),t.allocateXrefId()),i=new Gn(s.xref);return new en(new ee(A.And,new ee(A.NotIdentical,s,Rs),new ee(A.NotIdentical,i,new Ce(void 0))),i.clone(),r.rhs)},te.None)}function bn(t){return e=>e.kind===t}function yi(t,e){return n=>n.kind===t&&e===n.expression instanceof be}function AC(t){return t.kind===p.Listener&&!(t.hostListener&&t.isAnimationListener)||t.kind===p.TwoWayListener}function NC(t){return(t.kind===p.Property||t.kind===p.TwoWayProperty)&&!(t.expression instanceof be)}var bC=[{test:t=>t.kind===p.Listener&&t.hostListener&&t.isAnimationListener},{test:AC}],DC=[{test:bn(p.StyleMap),transform:_a},{test:bn(p.ClassMap),transform:_a},{test:bn(p.StyleProp)},{test:bn(p.ClassProp)},{test:yi(p.Attribute,!0)},{test:yi(p.Property,!0)},{test:NC},{test:yi(p.Attribute,!1)}],_C=[{test:yi(p.HostProperty,!0)},{test:yi(p.HostProperty,!1)},{test:bn(p.Attribute)},{test:bn(p.StyleMap),transform:_a},{test:bn(p.ClassMap),transform:_a},{test:bn(p.StyleProp)},{test:bn(p.ClassProp)}],gf=new Set([p.Listener,p.TwoWayListener,p.StyleMap,p.ClassMap,p.StyleProp,p.ClassProp,p.Property,p.TwoWayProperty,p.HostProperty,p.Attribute]);function RC(t){for(let e of t.units){yf(e.create,bC);let n=e.job.kind===b.Host?_C:DC;yf(e.update,n)}}function yf(t,e){let n=[],r=null;for(let s of t){let i=aa(s)?s.target:null;(!gf.has(s.kind)||i!==r&&r!==null&&i!==null)&&(T.insertBefore(vf(n,e),s),n=[],r=null),gf.has(s.kind)&&(n.push(s),T.remove(s),r=i??r)}t.push(vf(n,e))}function vf(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 _a(t){return t.slice(t.length-1)}function kC(t){for(let e of t.units){let n=Du(e);for(let r of e.ops())switch(r.kind){case p.Binding:let s=MC(n,r.target);PC(r.name)&&s.kind===p.Projection&&T.remove(r);break}}}function PC(t){return t.toLowerCase()==="select"}function MC(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an slottable target.");return n}function LC(t){for(let e of t.units)OC(e)}function OC(t){for(let e of t.update)tt(e,(n,r)=>{if(Tn(n)&&n.kind===O.PipeBinding){if(r&te.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");FC(t,e.target,n)}else t.create.push($d(n.target,n.targetSlot,n.name))}})}function FC(t,e,n){for(let r=t.create.head.next;r.kind!==p.ListEnd;r=r.next){if(!Ys(r)||r.xref!==e)continue;for(;r.next.kind===p.Pipe;)r=r.next;let s=$d(n.target,n.targetSlot,n.name);T.insertBefore(s,r.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${n.name}`)}function BC(t){for(let e of t.units)for(let n of e.update)Ue(n,r=>!(r instanceof Zr)||r.args.length<=4?r:new fa(r.target,r.targetSlot,r.name,se(r.args),r.args.length),te.None)}function $C(t){tm(t.root,0)}function tm(t,e){let n=null;for(let r of t.create)switch(r.kind){case p.I18nStart:r.subTemplateIndex=e===0?null:e,n=r;break;case p.I18nEnd:n.subTemplateIndex===null&&(e=0),n=null;break;case p.Template:e=Al(t.job.views.get(r.xref),n,r.i18nPlaceholder,e);break;case p.RepeaterCreate:let s=t.job.views.get(r.xref);e=Al(s,n,r.i18nPlaceholder,e),r.emptyView!==null&&(e=Al(t.job.views.get(r.emptyView),n,r.emptyI18nPlaceholder,e));break}return e}function Al(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++,UC(t,e)}return tm(t,r)}function UC(t,e){if(t.create.head.next?.kind!==p.I18nStart){let n=t.job.allocateXrefId();T.insertAfter(qa(n,e.message,e.root,null),t.create.head),T.insertBefore(Ga(n,null),t.create.tail)}}function VC(t){for(let e of t.units)for(let n of e.ops())tt(n,r=>{if(!(r instanceof Jr)||r.body===null)return;let s=new Wc(r.args.length);r.fn=t.pool.getSharedConstant(s,r.body),r.body=null})}var Wc=class extends Is{constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof Vs?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,n){let r=[];for(let i=0;i<this.numArgs;i++)r.push(new Fe("a"+i));let s=D(n,i=>i instanceof Vs?W("a"+i.index):i,te.None);return new Xe(e,new Ln(r,s),void 0,Re.Final)}};function qC(t){for(let e of t.units)for(let n of e.update)Ue(n,(r,s)=>s&te.InChildOperation?r:r instanceof ct?GC(r):r instanceof Gt?HC(r):r,te.None)}function GC(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 Vs(s))}return new Jr(se(e),n)}function HC(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 Ur(r.key,new Vs(s),r.quoted))}return new Jr(Ye(e),n)}function WC(t,e,n,r,s){return Ha(d.element,t,e,n,r,s)}function jC(t,e,n,r,s){return Ha(d.elementStart,t,e,n,r,s)}function Ha(t,e,n,r,s,i){let o=[y(e)];return n!==null&&o.push(y(n)),s!==null?o.push(y(r),y(s)):r!==null&&o.push(y(r)),Z(t,o,i)}function KC(t){return Z(d.elementEnd,[],t)}function zC(t,e,n,r){return Ha(d.elementContainerStart,t,null,e,n,r)}function XC(t,e,n,r){return Ha(d.elementContainer,t,null,e,n,r)}function YC(){return Z(d.elementContainerEnd,[],null)}function QC(t,e,n,r,s,i,o,a){let l=[y(t),e,y(n),y(r),y(s),y(i)];for(o!==null&&(l.push(y(o)),l.push(L(d.templateRefExtractor)));l[l.length-1].isEquivalent(Rs);)l.pop();return Z(d.templateCreate,l,a)}function JC(){return Z(d.disableBindings,[],null)}function ZC(){return Z(d.enableBindings,[],null)}function eI(t,e,n,r,s){let i=[y(t),e];return n!==null&&(i.push(y(!1)),i.push(L(n))),Z(r?d.syntheticHostListener:d.listener,i,s)}function Ef(t,e){return L(d.twoWayBindingSet).callFn([t,e])}function tI(t,e,n){return Z(d.twoWayListener,[y(t),e],n)}function nI(t,e){return Z(d.pipe,[y(t),y(e)],null)}function rI(){return Z(d.namespaceHTML,[],null)}function sI(){return Z(d.namespaceSVG,[],null)}function iI(){return Z(d.namespaceMathML,[],null)}function oI(t,e){return Z(d.advance,t>1?[y(t)]:[],e)}function aI(t){return L(d.reference).callFn([y(t)])}function lI(t){return L(d.nextContext).callFn(t===1?[]:[y(t)])}function cI(){return L(d.getCurrentView).callFn([])}function uI(t){return L(d.restoreView).callFn([t])}function pI(t){return L(d.resetView).callFn([t])}function hI(t,e,n){let r=[y(t,null)];return e!==""&&r.push(y(e)),Z(d.text,r,n)}function fI(t,e,n,r,s,i,o,a,l,c){let u=[y(t),y(e),n??y(null),y(r),y(s),y(i),o??y(null),a??y(null),l?L(d.deferEnableTimerScheduling):y(null)],h;for(;(h=u[u.length-1])!==null&&h instanceof Ce&&h.value===null;)u.pop();return Z(d.defer,u,c)}var dI=new Map([[pe.Idle,[d.deferOnIdle,d.deferPrefetchOnIdle]],[pe.Immediate,[d.deferOnImmediate,d.deferPrefetchOnImmediate]],[pe.Timer,[d.deferOnTimer,d.deferPrefetchOnTimer]],[pe.Hover,[d.deferOnHover,d.deferPrefetchOnHover]],[pe.Interaction,[d.deferOnInteraction,d.deferPrefetchOnInteraction]],[pe.Viewport,[d.deferOnViewport,d.deferPrefetchOnViewport]]]);function mI(t,e,n,r){let s=dI.get(t);if(s===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);let i=n?s[1]:s[0];return Z(i,e.map(o=>y(o)),r)}function gI(t){return Z(d.projectionDef,t?[t]:[],null)}function yI(t,e,n,r,s,i,o){let a=[y(t)];return(e!==0||n!==null||r!==null)&&(a.push(y(e)),n!==null&&a.push(n),r!==null&&(n===null&&a.push(y(null)),a.push(W(r),y(s),y(i)))),Z(d.projection,a,o)}function vI(t,e,n,r){let s=[y(t),y(e)];return n!==null&&s.push(y(n)),Z(d.i18nStart,s,r)}function EI(t,e,n,r,s,i,o,a,l,c,u,h,f,m){let E=[y(t),W(e),y(n),y(r),y(s),y(i),o];return(a||l!==null)&&(E.push(y(a)),l!==null&&(E.push(W(l),y(c),y(u)),(h!==null||f!==null)&&E.push(y(h)),f!==null&&E.push(y(f)))),Z(d.repeaterCreate,E,m)}function SI(t,e){return Z(d.repeater,[t],e)}function wI(t,e,n){return Z(t?d.deferPrefetchWhen:d.deferWhen,[e],n)}function TI(t,e){return Z(d.declareLet,[y(t)],e)}function xI(t,e){return L(d.storeLet).callFn([t],e)}function CI(t){return L(d.readContextLet).callFn([y(t)])}function II(t,e,n,r){let s=[y(t),y(e)];return n&&s.push(y(n)),Z(d.i18n,s,r)}function AI(t){return Z(d.i18nEnd,[],t)}function NI(t,e){let n=[y(t),y(e)];return Z(d.i18nAttributes,n,null)}function bI(t,e,n,r){let s=[y(t),e];return n!==null&&s.push(n),Z(d.property,s,r)}function DI(t,e,n,r){let s=[y(t),e];return n!==null&&s.push(n),Z(d.twoWayProperty,s,r)}function _I(t,e,n,r){let s=[y(t),e];return(n!==null||r!==null)&&s.push(n??y(null)),r!==null&&s.push(y(r)),Z(d.attribute,s,null)}function RI(t,e,n,r){let s=[y(t),e];return n!==null&&s.push(y(n)),Z(d.styleProp,s,r)}function kI(t,e,n){return Z(d.classProp,[y(t),e],n)}function PI(t,e){return Z(d.styleMap,[t],e)}function MI(t,e){return Z(d.classMap,[t],e)}var Sf=[d.pipeBind1,d.pipeBind2,d.pipeBind3,d.pipeBind4];function LI(t,e,n){if(n.length<1||n.length>Sf.length)throw new Error("pipeBind() argument count out of bounds");let r=Sf[n.length-1];return L(r).callFn([y(t),y(e),...n])}function OI(t,e,n){return L(d.pipeBindV).callFn([y(t),y(e),n])}function FI(t,e,n){let r=Qs(t,e);return Js(XI,[],r,[],n)}function BI(t,e){return Z(d.i18nExp,[t],e)}function $I(t,e){return Z(d.i18nApply,[y(t)],e)}function UI(t,e,n,r,s){let i=Qs(e,n),o=[];return r!==null&&o.push(r),Js(YI,[y(t)],i,o,s)}function VI(t,e,n,r,s){let i=Qs(e,n),o=[];return r!==null&&o.push(r),Js(JI,[y(t)],i,o,s)}function qI(t,e,n,r,s){let i=Qs(e,n),o=[];return r!==null&&o.push(y(r)),Js(QI,[y(t)],i,o,s)}function GI(t,e,n){let r=Qs(t,e);return Js(ZI,[],r,[],n)}function HI(t,e,n){let r=Qs(t,e);return Js(eA,[],r,[],n)}function WI(t,e,n,r){let s=[y(t),e];return n!==null&&s.push(n),Z(d.hostProperty,s,r)}function jI(t,e,n){return Z(d.syntheticHostProperty,[y(t),e],n)}function KI(t,e,n){return nm(tA,[y(t),e],n,[],null)}function Qs(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(y(t[r]),e[r]);n.push(y(t[r]))}return n}function Z(t,e,n){let r=L(t).callFn(e,n);return wn(new bt(r,n))}function zI(t,e,n){let r=[t];return e!==null&&r.push(e),Z(d.conditional,r,n)}var XI={constant:[d.textInterpolate,d.textInterpolate1,d.textInterpolate2,d.textInterpolate3,d.textInterpolate4,d.textInterpolate5,d.textInterpolate6,d.textInterpolate7,d.textInterpolate8],variable:d.textInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},YI={constant:[d.propertyInterpolate,d.propertyInterpolate1,d.propertyInterpolate2,d.propertyInterpolate3,d.propertyInterpolate4,d.propertyInterpolate5,d.propertyInterpolate6,d.propertyInterpolate7,d.propertyInterpolate8],variable:d.propertyInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},QI={constant:[d.styleProp,d.stylePropInterpolate1,d.stylePropInterpolate2,d.stylePropInterpolate3,d.stylePropInterpolate4,d.stylePropInterpolate5,d.stylePropInterpolate6,d.stylePropInterpolate7,d.stylePropInterpolate8],variable:d.stylePropInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},JI={constant:[d.attribute,d.attributeInterpolate1,d.attributeInterpolate2,d.attributeInterpolate3,d.attributeInterpolate4,d.attributeInterpolate5,d.attributeInterpolate6,d.attributeInterpolate7,d.attributeInterpolate8],variable:d.attributeInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},ZI={constant:[d.styleMap,d.styleMapInterpolate1,d.styleMapInterpolate2,d.styleMapInterpolate3,d.styleMapInterpolate4,d.styleMapInterpolate5,d.styleMapInterpolate6,d.styleMapInterpolate7,d.styleMapInterpolate8],variable:d.styleMapInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},eA={constant:[d.classMap,d.classMapInterpolate1,d.classMapInterpolate2,d.classMapInterpolate3,d.classMapInterpolate4,d.classMapInterpolate5,d.classMapInterpolate6,d.classMapInterpolate7,d.classMapInterpolate8],variable:d.classMapInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},tA={constant:[d.pureFunction0,d.pureFunction1,d.pureFunction2,d.pureFunction3,d.pureFunction4,d.pureFunction5,d.pureFunction6,d.pureFunction7,d.pureFunction8],variable:d.pureFunctionV,mapping:t=>t};function nm(t,e,n,r,s){let i=t.mapping(n.length);if(i<t.constant.length)return L(t.constant[i]).callFn([...e,...n,...r],s);if(t.variable!==null)return L(t.variable).callFn([...e,se(n),...r],s);throw new Error("AssertionError: unable to call variadic function")}function Js(t,e,n,r,s){return wn(nm(t,e,n,r,s).toStmt())}var nA=new Map([["window",d.resolveWindow],["document",d.resolveDocument],["body",d.resolveBody]]);function rA(t){for(let e of t.units)sA(e,e.create),rm(e,e.update)}function sA(t,e){for(let n of e)switch(Ue(n,sm,te.None),n.kind){case p.Text:T.replace(n,hI(n.handle.slot,n.initialValue,n.sourceSpan));break;case p.ElementStart:T.replace(n,jC(n.handle.slot,n.tag,n.attributes,n.localRefs,n.startSourceSpan));break;case p.Element:T.replace(n,WC(n.handle.slot,n.tag,n.attributes,n.localRefs,n.wholeSourceSpan));break;case p.ElementEnd:T.replace(n,KC(n.sourceSpan));break;case p.ContainerStart:T.replace(n,zC(n.handle.slot,n.attributes,n.localRefs,n.startSourceSpan));break;case p.Container:T.replace(n,XC(n.handle.slot,n.attributes,n.localRefs,n.wholeSourceSpan));break;case p.ContainerEnd:T.replace(n,YC());break;case p.I18nStart:T.replace(n,vI(n.handle.slot,n.messageIndex,n.subTemplateIndex,n.sourceSpan));break;case p.I18nEnd:T.replace(n,AI(n.sourceSpan));break;case p.I18n:T.replace(n,II(n.handle.slot,n.messageIndex,n.subTemplateIndex,n.sourceSpan));break;case p.I18nAttributes:if(n.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");T.replace(n,NI(n.handle.slot,n.i18nAttributesConfig));break;case p.Template:if(!(t instanceof dn))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);T.replace(n,QC(n.handle.slot,W(r.fnName),r.decls,r.vars,n.tag,n.attributes,n.localRefs,n.startSourceSpan));break;case p.DisableBindings:T.replace(n,JC());break;case p.EnableBindings:T.replace(n,ZC());break;case p.Pipe:T.replace(n,nI(n.handle.slot,n.name));break;case p.DeclareLet:T.replace(n,TI(n.handle.slot,n.sourceSpan));break;case p.Listener:let s=wf(t,n.handlerFnName,n.handlerOps,n.consumesDollarEvent),i=n.eventTarget?nA.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.`);T.replace(n,eI(n.name,s,i,n.hostListener&&n.isAnimationListener,n.sourceSpan));break;case p.TwoWayListener:T.replace(n,tI(n.name,wf(t,n.handlerFnName,n.handlerOps,!0),n.sourceSpan));break;case p.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);T.replace(n,wn(new Xe(n.variable.name,n.initializer,void 0,Re.Final)));break;case p.Namespace:switch(n.active){case Ke.HTML:T.replace(n,rI());break;case Ke.SVG:T.replace(n,sI());break;case Ke.Math:T.replace(n,iI());break}break;case p.Defer:let o=!!n.loadingMinimumTime||!!n.loadingAfterTime||!!n.placeholderMinimumTime;T.replace(n,fI(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 p.DeferOn:let a=[];switch(n.trigger.kind){case pe.Idle:case pe.Immediate:break;case pe.Timer:a=[n.trigger.delay];break;case pe.Interaction:case pe.Hover:case pe.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}`)}T.replace(n,mI(n.trigger.kind,a,n.prefetch,n.sourceSpan));break;case p.ProjectionDef:T.replace(n,gI(n.def));break;case p.Projection:if(n.handle.slot===null)throw new Error("No slot was assigned for project instruction");let l=null,c=null,u=null;if(n.fallbackView!==null){if(!(t instanceof dn))throw new Error("AssertionError: must be compiling a component");let S=t.job.views.get(n.fallbackView);if(S===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(S.fnName===null||S.decls===null||S.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");l=S.fnName,c=S.decls,u=S.vars}T.replace(n,yI(n.handle.slot,n.projectionSlotIndex,n.attributes,l,c,u,n.sourceSpan));break;case p.RepeaterCreate:if(n.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(t instanceof dn))throw new Error("AssertionError: must be compiling a component");let h=t.job.views.get(n.xref);if(h.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let f=null,m=null,E=null;if(n.emptyView!==null){let S=t.job.views.get(n.emptyView);if(S===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(S.fnName===null||S.decls===null||S.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");f=S.fnName,m=S.decls,E=S.vars}T.replace(n,EI(n.handle.slot,h.fnName,n.decls,n.vars,n.tag,n.attributes,n.trackByFn,n.usesComponentInstance,f,m,E,n.emptyTag,n.emptyAttributes,n.wholeSourceSpan));break;case p.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${p[n.kind]}`)}}function rm(t,e){for(let n of e)switch(Ue(n,sm,te.None),n.kind){case p.Advance:T.replace(n,oI(n.delta,n.sourceSpan));break;case p.Property:n.expression instanceof be?T.replace(n,UI(n.name,n.expression.strings,n.expression.expressions,n.sanitizer,n.sourceSpan)):T.replace(n,bI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case p.TwoWayProperty:T.replace(n,DI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case p.StyleProp:n.expression instanceof be?T.replace(n,qI(n.name,n.expression.strings,n.expression.expressions,n.unit,n.sourceSpan)):T.replace(n,RI(n.name,n.expression,n.unit,n.sourceSpan));break;case p.ClassProp:T.replace(n,kI(n.name,n.expression,n.sourceSpan));break;case p.StyleMap:n.expression instanceof be?T.replace(n,GI(n.expression.strings,n.expression.expressions,n.sourceSpan)):T.replace(n,PI(n.expression,n.sourceSpan));break;case p.ClassMap:n.expression instanceof be?T.replace(n,HI(n.expression.strings,n.expression.expressions,n.sourceSpan)):T.replace(n,MI(n.expression,n.sourceSpan));break;case p.I18nExpression:T.replace(n,BI(n.expression,n.sourceSpan));break;case p.I18nApply:T.replace(n,$I(n.handle.slot,n.sourceSpan));break;case p.InterpolateText:T.replace(n,FI(n.interpolation.strings,n.interpolation.expressions,n.sourceSpan));break;case p.Attribute:n.expression instanceof be?T.replace(n,VI(n.name,n.expression.strings,n.expression.expressions,n.sanitizer,n.sourceSpan)):T.replace(n,_I(n.name,n.expression,n.sanitizer,n.namespace));break;case p.HostProperty:if(n.expression instanceof be)throw new Error("not yet handled");n.isAnimationTrigger?T.replace(n,jI(n.name,n.expression,n.sourceSpan)):T.replace(n,WI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case p.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);T.replace(n,wn(new Xe(n.variable.name,n.initializer,void 0,Re.Final)));break;case p.Conditional:if(n.processed===null)throw new Error("Conditional test was not set.");T.replace(n,zI(n.processed,n.contextValue,n.sourceSpan));break;case p.Repeater:T.replace(n,SI(n.collection,n.sourceSpan));break;case p.DeferWhen:T.replace(n,wI(n.prefetch,n.expr,n.sourceSpan));break;case p.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${n.declaredName}`);case p.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${p[n.kind]}`)}}function sm(t){if(!Tn(t))return t;switch(t.kind){case O.NextContext:return lI(t.steps);case O.Reference:return aI(t.targetSlot.slot+1+t.offset);case O.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${t.name}`);case O.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case O.RestoreView:if(typeof t.view=="number")throw new Error("AssertionError: unresolved RestoreView");return uI(t.view);case O.ResetView:return pI(t.expr);case O.GetCurrentView:return cI();case O.ReadVariable:if(t.name===null)throw new Error(`Read of unnamed variable ${t.xref}`);return W(t.name);case O.ReadTemporaryExpr:if(t.name===null)throw new Error(`Read of unnamed temporary ${t.xref}`);return W(t.name);case O.AssignTemporaryExpr:if(t.name===null)throw new Error(`Assign of unnamed temporary ${t.xref}`);return W(t.name).set(t.expr);case O.PureFunctionExpr:if(t.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return KI(t.varOffset,t.fn,t.args);case O.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case O.PipeBinding:return LI(t.targetSlot.slot,t.varOffset,t.args);case O.PipeBindingVariadic:return OI(t.targetSlot.slot,t.varOffset,t.args);case O.SlotLiteralExpr:return y(t.slot.slot);case O.ContextLetReference:return CI(t.targetSlot.slot);case O.StoreLet:return xI(t.value,t.sourceSpan);default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${O[t.kind]}`)}}function wf(t,e,n,r){rm(t,n);let s=[];for(let o of n){if(o.kind!==p.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${p[o.kind]}`);s.push(o.statement)}let i=[];return r&&i.push(new Fe("$event")),ts(i,s,void 0,void 0,e)}function iA(t){for(let e of t.units)for(let n of e.update)switch(n.kind){case p.Attribute:case p.Binding:case p.ClassProp:case p.ClassMap:case p.Property:case p.StyleProp:case p.StyleMap:n.expression instanceof zi&&T.remove(n);break}}function oA(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case p.I18nContext:T.remove(n);break;case p.I18nStart:n.context=null;break}}function aA(t){for(let e of t.units){let n=new Set;for(let r of e.update)switch(r.kind){case p.I18nExpression:n.add(r.i18nOwner)}for(let r of e.create)switch(r.kind){case p.I18nAttributes:if(n.has(r.xref))continue;T.remove(r)}}}function lA(t){for(let e of t.units)jc(e,e.create),jc(e,e.update)}function jc(t,e){let n=new Map;n.set(t.xref,W("ctx"));for(let r of e)switch(r.kind){case p.Variable:switch(r.variable.kind){case Oe.Context:n.set(r.variable.view,new Mn(r.xref));break}break;case p.Listener:case p.TwoWayListener:jc(t,r.handlerOps);break}t===t.job.root&&n.set(t.xref,W("ctx"));for(let r of e)Ue(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},te.None)}function cA(t){for(let e of t.units)Tf(e.create),Tf(e.update)}function Tf(t){for(let e of t)(e.kind===p.Listener||e.kind===p.TwoWayListener)&&Ue(e,n=>n instanceof We&&n.name==="$event"?(e.kind===p.Listener&&(e.consumesDollarEvent=!0),new Nt(n.name)):n,te.InChildOperation)}function uA(t){let e=new Map,n=new Map;for(let r of t.units)for(let s of r.create)switch(s.kind){case p.I18nContext:e.set(s.xref,s);break;case p.ElementStart:n.set(s.xref,s);break}Jn(t,t.root,e,n)}function Jn(t,e,n,r,s){let i=null,o=new Map;for(let a of e.create)switch(a.kind){case p.I18nStart:if(!a.context)throw Error("Could not find i18n context for i18n op");i={i18nBlock:a,i18nContext:n.get(a.context)};break;case p.I18nEnd:i=null;break;case p.ElementStart:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");xf(a,i.i18nContext,i.i18nBlock,s),s&&a.i18nPlaceholder.closeName&&o.set(a.xref,s),s=void 0}break;case p.ElementEnd:let l=r.get(a.xref);if(l&&l.i18nPlaceholder!==void 0){if(i===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Cf(l,i.i18nContext,i.i18nBlock,o.get(a.xref)),o.delete(a.xref)}break;case p.Projection:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");xf(a,i.i18nContext,i.i18nBlock,s),Cf(a,i.i18nContext,i.i18nBlock,s),s=void 0}break;case p.Template:let c=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)Jn(t,c,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===vt.Structural?Jn(t,c,n,r,a):(Nl(t,c,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),Jn(t,c,n,r),bl(t,c,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0)}break;case p.RepeaterCreate:if(s!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let u=a.handle.slot+1,h=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)Jn(t,h,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Nl(t,h,u,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),Jn(t,h,n,r),bl(t,h,u,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}if(a.emptyView!==null){let f=a.handle.slot+2,m=t.views.get(a.emptyView);if(a.emptyI18nPlaceholder===void 0)Jn(t,m,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Nl(t,m,f,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),Jn(t,m,n,r),bl(t,m,f,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break}}function xf(t,e,n,r){let{startName:s,closeName:i}=t.i18nPlaceholder,o=oe.ElementTag|oe.OpenTag,a=t.handle.slot;r!==void 0&&(o|=oe.TemplateTag,a={element:a,template:r.handle.slot}),i||(o|=oe.CloseTag),js(e.params,s,a,n.subTemplateIndex,o)}function Cf(t,e,n,r){let{closeName:s}=t.i18nPlaceholder;if(s){let i=oe.ElementTag|oe.CloseTag,o=t.handle.slot;r!==void 0&&(i|=oe.TemplateTag,o={element:o,template:r.handle.slot}),js(e.params,s,o,n.subTemplateIndex,i)}}function Nl(t,e,n,r,s,i,o){let{startName:a,closeName:l}=r,c=oe.TemplateTag|oe.OpenTag;l||(c|=oe.CloseTag),o!==void 0&&js(s.params,a,o.handle.slot,i.subTemplateIndex,c),js(s.params,a,n,im(t,i,e),c)}function bl(t,e,n,r,s,i,o){let{closeName:a}=r,l=oe.TemplateTag|oe.CloseTag;a&&(js(s.params,a,n,im(t,i,e),l),o!==void 0&&js(s.params,a,o.handle.slot,i.subTemplateIndex,l))}function im(t,e,n){for(let r of n.create)if(r.kind===p.I18nStart)return r.subTemplateIndex;return e.subTemplateIndex}function js(t,e,n,r,s){let i=t.get(e)??[];i.push({value:n,subTemplateIndex:r,flags:s}),t.set(e,i)}function pA(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 p.I18nStart:e.set(a.xref,a.subTemplateIndex);break;case p.I18nContext:n.set(a.xref,a);break;case p.IcuPlaceholder:r.set(a.xref,a);break}let s=new Map,i=o=>o.usage===Yr.I18nText?o.i18nOwner:o.context;for(let o of t.units)for(let a of o.update)if(a.kind===p.I18nExpression){let l=s.get(i(a))||0,c=e.get(a.i18nOwner)??null,u={value:l,subTemplateIndex:c,flags:oe.ExpressionIndex};hA(a,u,n,r),s.set(i(a),l+1)}}function hA(t,e,n,r){if(t.i18nPlaceholder!==null){let s=n.get(t.context),i=t.resolutionTime===Us.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 fA(t){for(let e of t.units)Kc(e,e.create,null),Kc(e,e.update,null)}function Kc(t,e,n){let r=new Map,s=new Map;for(let i of e)switch(i.kind){case p.Variable:switch(i.variable.kind){case Oe.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 Oe.Alias:if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref);break;case Oe.SavedView:n={view:i.variable.view,variable:i.xref};break}break;case p.Listener:case p.TwoWayListener:Kc(t,i.handlerOps,n);break}for(let i of e)i.kind==p.Listener||i.kind===p.TwoWayListener||Ue(i,o=>{if(o instanceof We)return s.has(o.name)?new Mn(s.get(o.name)):r.has(o.name)?new Mn(r.get(o.name)):new lt(new qn(t.job.root.xref),o.name);if(o instanceof pa&&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 Mn(n.variable),o}else return o},te.None);for(let i of e)tt(i,o=>{if(o instanceof We)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var dA=new Map([[ce.HTML,d.sanitizeHtml],[ce.RESOURCE_URL,d.sanitizeResourceUrl],[ce.SCRIPT,d.sanitizeScript],[ce.STYLE,d.sanitizeStyle],[ce.URL,d.sanitizeUrl]]),mA=new Map([[ce.HTML,d.trustConstantHtml],[ce.RESOURCE_URL,d.trustConstantResourceUrl]]);function gA(t){for(let e of t.units){let n=Du(e);if(t.kind!==b.Host){for(let r of e.create)if(r.kind===p.ExtractedAttribute){let s=mA.get(If(r.securityContext))??null;r.trustedValueFn=s!==null?L(s):null}}for(let r of e.update)switch(r.kind){case p.Property:case p.Attribute:case p.HostProperty:let s=null;if(Array.isArray(r.securityContext)&&r.securityContext.length===2&&r.securityContext.indexOf(ce.URL)>-1&&r.securityContext.indexOf(ce.RESOURCE_URL)>-1?s=d.sanitizeUrlOrResourceUrl:s=dA.get(If(r.securityContext))??null,r.sanitizer=s!==null?L(s):null,r.sanitizer===null){let i=!1;if(t.kind===b.Host||r.kind===p.HostProperty)i=!0;else{let o=n.get(r.target);if(o===void 0||!yr(o))throw Error("Property should have an element-like owner");i=yA(o)}i&&Ax(r.name)&&(r.sanitizer=L(d.validateIframeAttribute))}break}}}function yA(t){return t.kind===p.ElementStart&&t.tag?.toLowerCase()==="iframe"}function If(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||ce.NONE}return t}function vA(t){for(let e of t.units)for(let n of e.create)n.kind===p.TwoWayListener&&Ue(n,r=>{if(!(r instanceof ha))return r;let{target:s,value:i}=r;if(s instanceof lt||s instanceof gn)return Ef(s,i).or(s.set(i));if(s instanceof Mn)return Ef(s,i);throw new Error("Unsupported expression in two-way action binding.")},te.InChildOperation)}function EA(t){for(let e of t.units){e.create.prepend([nr(e.job.allocateXrefId(),{kind:Oe.SavedView,name:null,view:e.xref},new Sc,It.None)]);for(let n of e.create){if(n.kind!==p.Listener&&n.kind!==p.TwoWayListener)continue;let r=e!==t.root;if(!r)for(let s of n.handlerOps)tt(s,i=>{(i instanceof la||i instanceof Ki)&&(r=!0)});r&&SA(e,n)}}}function SA(t,e){e.handlerOps.prepend([nr(t.job.allocateXrefId(),{kind:Oe.Context,name:null,view:t.xref},new pa(t.xref),It.None)]);for(let n of e.handlerOps)n.kind===p.Statement&&n.statement instanceof et&&(n.statement.value=new wc(n.statement.value))}function wA(t){let e=new Map;for(let n of t.units){let r=0;for(let s of n.create)Ys(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===p.Template||r.kind===p.RepeaterCreate){let s=t.views.get(r.xref);r.decls=s.decls}}function TA(t){for(let e of t.units)for(let n of e.update)if(n.kind===p.Binding)switch(n.bindingKind){case F.ClassName:if(n.expression instanceof be)throw new Error("Unexpected interpolation in ClassName binding");T.replace(n,ww(n.target,n.name,n.expression,n.sourceSpan));break;case F.StyleProperty:T.replace(n,Sw(n.target,n.name,n.expression,n.unit,n.sourceSpan));break;case F.Property:case F.Template:n.name==="style"?T.replace(n,Tw(n.target,n.expression,n.sourceSpan)):n.name==="class"&&T.replace(n,xw(n.target,n.expression,n.sourceSpan));break}}function xA(t){for(let e of t.units)e.create.prepend(zc(e.create)),e.update.prepend(zc(e.update))}function zc(t){let e=0,n=[];for(let r of t){let s=new Map;tt(r,(c,u)=>{u&te.InChildOperation||c instanceof Gn&&s.set(c.xref,c)});let i=0,o=new Set,a=new Set,l=new Map;tt(r,(c,u)=>{u&te.InChildOperation||(c instanceof rn?(o.has(c.xref)||(o.add(c.xref),l.set(c.xref,`tmp_${e}_${i++}`)),Af(l,c)):c instanceof Gn&&(s.get(c.xref)===c&&(a.add(c.xref),i--),Af(l,c)))}),n.push(...Array.from(new Set(l.values())).map(c=>wn(new Xe(c)))),e++,(r.kind===p.Listener||r.kind===p.TwoWayListener)&&r.handlerOps.prepend(zc(r.handlerOps))}return n}function Af(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 CA(t){for(let e of t.units)for(let n of e.create){if(n.kind!==p.RepeaterCreate||n.trackByFn!==null)continue;let r=!1;n.track=D(n.track,o=>{if(o instanceof Zr||o instanceof fa)throw new Error("Illegal State: Pipes are not allowed in this context");return o instanceof ca?(r=!0,W("this")):o},te.None);let s,i=[new Fe("$index"),new Fe("$item")];r?s=new Yt(i,[new et(n.track)]):s=tn(i,n.track),n.trackByFn=t.pool.getSharedFunctionReference(s,"_forTrack")}}function IA(t){for(let e of t.units)for(let n of e.create)n.kind===p.RepeaterCreate&&(n.track instanceof Nt&&n.track.name==="$index"?n.trackByFn=L(d.repeaterTrackByIndex):n.track instanceof Nt&&n.track.name==="$item"?n.trackByFn=L(d.repeaterTrackByIdentity):AA(t.root.xref,n.track)?(n.usesComponentInstance=!0,n.track.receiver.receiver.view===e.xref?n.trackByFn=n.track.receiver:(n.trackByFn=L(d.componentInstance).callFn([]).prop(n.track.receiver.name),n.track=n.trackByFn)):n.track=D(n.track,r=>r instanceof qn?(n.usesComponentInstance=!0,new ca(r.view)):r,te.None))}function AA(t,e){if(!(e instanceof ze)||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 Nt)||n.name!=="$index"?!1:e.args.length===1?!0:!(!(r instanceof Nt)||r.name!=="$item")}function NA(t){for(let e of t.units)for(let n of e.create)n.kind===p.RepeaterCreate&&(n.track=D(n.track,r=>{if(r instanceof We){if(n.varNames.$index.has(r.name))return W("$index");if(r.name===n.varNames.$implicit)return W("$item")}return r},te.None))}function bA(t){for(let e of t.units){let n=0;for(let r of e.ops())El(r)&&(n+=DA(r));for(let r of e.ops())tt(r,s=>{Tn(s)&&(t.compatibility===Et.TemplateDefinitionBuilder&&s instanceof Jr||(Mh(s)&&(s.varOffset=n),El(s)&&(n+=Nf(s))))});if(t.compatibility===Et.TemplateDefinitionBuilder)for(let r of e.ops())tt(r,s=>{!Tn(s)||!(s instanceof Jr)||(Mh(s)&&(s.varOffset=n),El(s)&&(n+=Nf(s)))});e.vars=n}if(t instanceof Yi)for(let e of t.units)for(let n of e.create){if(n.kind!==p.Template&&n.kind!==p.RepeaterCreate)continue;let r=t.views.get(n.xref);n.vars=r.vars}}function DA(t){let e;switch(t.kind){case p.Property:case p.HostProperty:case p.Attribute:return e=1,t.expression instanceof be&&!_A(t.expression)&&(e+=t.expression.expressions.length),e;case p.TwoWayProperty:return 1;case p.StyleProp:case p.ClassProp:case p.StyleMap:case p.ClassMap:return e=2,t.expression instanceof be&&(e+=t.expression.expressions.length),e;case p.InterpolateText:return t.interpolation.expressions.length;case p.I18nExpression:case p.Conditional:case p.DeferWhen:case p.StoreLet:return 1;case p.RepeaterCreate:return t.emptyView?1:0;default:throw new Error(`Unhandled op: ${p[t.kind]}`)}}function Nf(t){switch(t.kind){case O.PureFunctionExpr:return 1+t.args.length;case O.PipeBinding:return 1+t.args.length;case O.PipeBindingVariadic:return 1+t.numArgs;case O.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function _A(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function RA(t){for(let e of t.units){Dl(e.create),Dl(e.update);for(let n of e.create)(n.kind===p.Listener||n.kind===p.TwoWayListener)&&Dl(n.handlerOps);_l(e.create,t.compatibility),_l(e.update,t.compatibility);for(let n of e.create)(n.kind===p.Listener||n.kind===p.TwoWayListener)&&_l(n.handlerOps,t.compatibility)}}var _e;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(_e||(_e={}));function Dl(t){let e=new Map;for(let n of t)n.kind===p.Variable&&n.flags&It.AlwaysInline&&(tt(n,r=>{if(Tn(r)&&_u(r)!==_e.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(n.xref,n)),Ue(n,r=>r instanceof Mn&&e.has(r.xref)?e.get(r.xref).initializer.clone():r,te.None);for(let n of e.values())T.remove(n)}function _l(t,e){let n=new Map,r=new Map,s=new Set,i=new Map;for(let c of t){if(c.kind===p.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,kA(c)),PA(c,r,s)}let o=!1;for(let c of t.reversed()){let u=i.get(c);if(c.kind===p.Variable&&r.get(c.xref)===0){if(o&&u.fences&_e.ViewContextWrite||u.fences&_e.SideEffectful){let h=wn(c.initializer.toStmt());i.set(h,u),T.replace(c,h)}else MA(c,r),T.remove(c);i.delete(c),n.delete(c.xref),r.delete(c.xref);continue}u.fences&_e.ViewContextRead&&(o=!0)}let a=[];for(let[c,u]of r){let f=!!(n.get(c).flags&It.AlwaysInline);u!==1||f||s.has(c)||a.push(c)}let l;for(;l=a.pop();){let c=n.get(l),u=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!==p.ListEnd;f=f.next){let m=i.get(f);if(m.variablesUsed.has(l)){if(e===Et.TemplateDefinitionBuilder&&!OA(c,f))break;if(LA(l,c.initializer,f,u.fences)){m.variablesUsed.delete(l);for(let E of u.variablesUsed)m.variablesUsed.add(E);m.fences|=u.fences,n.delete(l),r.delete(l),i.delete(c),T.remove(c)}break}if(!om(m.fences,u.fences))break}}}function _u(t){switch(t.kind){case O.NextContext:return _e.ViewContextRead|_e.ViewContextWrite;case O.RestoreView:return _e.ViewContextRead|_e.ViewContextWrite|_e.SideEffectful;case O.StoreLet:return _e.SideEffectful;case O.Reference:case O.ContextLetReference:return _e.ViewContextRead;default:return _e.None}}function kA(t){let e=_e.None,n=new Set;return tt(t,r=>{if(Tn(r))switch(r.kind){case O.ReadVariable:n.add(r.xref);break;default:e|=_u(r)}}),{fences:e,variablesUsed:n}}function PA(t,e,n){tt(t,(r,s)=>{if(!Tn(r)||r.kind!==O.ReadVariable)return;let i=e.get(r.xref);i!==void 0&&(e.set(r.xref,i+1),s&te.InChildOperation&&n.add(r.xref))})}function MA(t,e){tt(t,n=>{if(!Tn(n)||n.kind!==O.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 om(t,e){if(t&_e.ViewContextWrite){if(e&_e.ViewContextRead)return!1}else if(t&_e.ViewContextRead&&e&_e.ViewContextWrite)return!1;return!0}function LA(t,e,n,r){let s=!1,i=!0;return Ue(n,(o,a)=>{if(!Tn(o)||s||!i)return o;if(a&te.InChildOperation&&r&_e.ViewContextRead)return o;switch(o.kind){case O.ReadVariable:if(o.xref===t)return s=!0,e;break;default:let l=_u(o);i=i&&om(l,r);break}return o},te.None),s}function OA(t,e){switch(t.variable.kind){case Oe.Identifier:return t.initializer instanceof Nt&&t.initializer.name==="ctx";case Oe.Context:return e.kind===p.Variable;default:return!0}}function FA(t){for(let e of t.units){let n=null,r=null;for(let s of e.create)switch(s.kind){case p.I18nStart:n=s;break;case p.I18nEnd:n=null;break;case p.IcuStart:n===null&&(r=t.allocateXrefId(),T.insertBefore(qa(r,s.message,void 0,null),s));break;case p.IcuEnd:r!==null&&(T.insertAfter(Ga(r,null),s),r=null);break}}}function BA(t){let e=new Set;for(let n of t.units)for(let r of n.ops())tt(r,s=>{s instanceof Ki&&e.add(s.target)});for(let n of t.units)for(let r of n.update)Ue(r,s=>s instanceof ji&&!e.has(s.target)?s.value:s,te.None)}function $A(t){for(let e of t.units)for(let n of e.update){if(n.kind!==p.Variable||n.variable.kind!==Oe.Identifier||!(n.initializer instanceof ji))continue;let r=n.variable.identifier,s=n;for(;s&&s.kind!==p.ListEnd;)Ue(s,i=>i instanceof We&&i.name===r?y(void 0):i,te.None),s=s.prev}}function UA(t){for(let e of t.units)for(let n of e.update){if(n.kind!==p.StoreLet)continue;let r={kind:Oe.Identifier,name:null,identifier:n.declaredName,local:!0};T.replace(n,nr(t.allocateXrefId(),r,new ji(n.target,n.value,n.sourceSpan),It.None))}}var VA=[{kind:b.Tmpl,fn:kC},{kind:b.Host,fn:WT},{kind:b.Tmpl,fn:dC},{kind:b.Tmpl,fn:$C},{kind:b.Tmpl,fn:FA},{kind:b.Both,fn:dT},{kind:b.Both,fn:TA},{kind:b.Both,fn:eT},{kind:b.Both,fn:Qw},{kind:b.Tmpl,fn:fT},{kind:b.Both,fn:gC},{kind:b.Tmpl,fn:iA},{kind:b.Both,fn:sT},{kind:b.Both,fn:RC},{kind:b.Tmpl,fn:iT},{kind:b.Tmpl,fn:LC},{kind:b.Tmpl,fn:mT},{kind:b.Tmpl,fn:pC},{kind:b.Tmpl,fn:pT},{kind:b.Tmpl,fn:aA},{kind:b.Tmpl,fn:Yw},{kind:b.Tmpl,fn:zw},{kind:b.Tmpl,fn:BC},{kind:b.Both,fn:qC},{kind:b.Tmpl,fn:UT},{kind:b.Tmpl,fn:UA},{kind:b.Tmpl,fn:VT},{kind:b.Tmpl,fn:EA},{kind:b.Both,fn:jw},{kind:b.Both,fn:cA},{kind:b.Tmpl,fn:NA},{kind:b.Tmpl,fn:$A},{kind:b.Both,fn:fA},{kind:b.Tmpl,fn:gT},{kind:b.Tmpl,fn:vA},{kind:b.Tmpl,fn:IA},{kind:b.Both,fn:lA},{kind:b.Both,fn:gA},{kind:b.Tmpl,fn:hC},{kind:b.Both,fn:IC},{kind:b.Both,fn:ST},{kind:b.Both,fn:xA},{kind:b.Both,fn:RA},{kind:b.Both,fn:BA},{kind:b.Tmpl,fn:wA},{kind:b.Tmpl,fn:uA},{kind:b.Tmpl,fn:pA},{kind:b.Tmpl,fn:LT},{kind:b.Tmpl,fn:CA},{kind:b.Tmpl,fn:oC},{kind:b.Tmpl,fn:GT},{kind:b.Both,fn:cT},{kind:b.Tmpl,fn:oA},{kind:b.Both,fn:bA},{kind:b.Tmpl,fn:$T},{kind:b.Both,fn:yC},{kind:b.Tmpl,fn:hT},{kind:b.Tmpl,fn:SC},{kind:b.Tmpl,fn:TC},{kind:b.Tmpl,fn:ET},{kind:b.Tmpl,fn:CC},{kind:b.Both,fn:VC},{kind:b.Both,fn:rA},{kind:b.Both,fn:rT}];function am(t,e){for(let n of VA)(n.kind===e||n.kind===b.Both)&&n.fn(t)}function qA(t,e){let n=cm(t.root);return lm(t.root,e),n}function lm(t,e){for(let n of t.job.units){if(n.parent!==t.xref)continue;lm(n,e);let r=cm(n);e.statements.push(r.toDeclStmt(r.name))}}function cm(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!==p.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${p[i.kind]}`);e.push(i.statement)}let n=[];for(let i of t.update){if(i.kind!==p.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${p[i.kind]}`);n.push(i.statement)}let r=Ra(1,e),s=Ra(2,n);return ts([new Fe("rf"),new Fe("ctx")],[...r,...s],void 0,void 0,t.fnName)}function Ra(t,e){return e.length===0?[]:[so(new ee(A.BitwiseAnd,W("rf"),y(t)),e)]}function GA(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!==p.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${p[i.kind]}`);e.push(i.statement)}let n=[];for(let i of t.root.update){if(i.kind!==p.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${p[i.kind]}`);n.push(i.statement)}if(e.length===0&&n.length===0)return null;let r=Ra(1,e),s=Ra(2,n);return ts([new Fe("rf"),new Fe("ctx")],[...r,...s],void 0,void 0,t.root.fnName)}var um=Et.TemplateDefinitionBuilder,Or=new on,Fr="ng-template";function Xc(t){return t instanceof ot}function HA(t){return Xc(t)&&t.nodes.length===1&&t.nodes[0]instanceof na}function WA(t,e,n,r,s,i,o){let a=new Yi(t,n,um,r,s,i,o);return Hn(a.root,e),a}function jA(t,e,n){let r=new Ea(t.componentName,n,um);for(let s of t.properties??[]){let i=F.Property;s.name.startsWith("attr.")&&(s.name=s.name.substring(5),i=F.Attribute),s.isAnimation&&(i=F.Animation);let o=e.calcPossibleSecurityContexts(t.componentSelector,s.name,i===F.Attribute).filter(a=>a!==ce.NONE);KA(r,s,i,o)}for(let[s,i]of Object.entries(t.attributes)??[]){let o=e.calcPossibleSecurityContexts(t.componentSelector,s,!0).filter(a=>a!==ce.NONE);zA(r,s,i,o)}for(let s of t.events??[])XA(r,s);return r}function KA(t,e,n,r){let s,i=e.expression.ast;i instanceof Fn?s=new be(i.strings,i.expressions.map(o=>H(o,t,e.sourceSpan)),[]):s=H(i,t,e.sourceSpan),t.root.update.push(Qr(t.root.xref,n,e.name,s,null,r,!1,!1,null,null,e.sourceSpan))}function zA(t,e,n,r){let s=Qr(t.root.xref,F.Attribute,e,n,null,r,!0,!1,null,null,n.sourceSpan);t.root.update.push(s)}function XA(t,e){let[n,r]=e.type!==ke.Animation?[null,e.targetOrPhase]:[e.targetOrPhase,null],s=bu(t.root.xref,new St,e.name,null,Ru(t.root,e.handler,e.handlerSpan),n,r,!0,e.sourceSpan);t.root.create.push(s)}function Hn(t,e){for(let n of e)if(n instanceof ie)YA(t,n);else if(n instanceof re)QA(t,n);else if(n instanceof hr)JA(t,n);else if(n instanceof zt)pm(t,n,null);else if(n instanceof Bn)hm(t,n,null);else if(n instanceof jr)ZA(t,n);else if(n instanceof Wr)eN(t,n);else if(n instanceof Vn)tN(t,n);else if(n instanceof Os)nN(t,n);else if(n instanceof En)rN(t,n);else if(n instanceof Qe)iN(t,n);else throw new Error(`Unsupported template node: ${n.constructor.name}`)}function YA(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof ot||e.i18n instanceof fr))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=t.job.allocateXrefId(),[r,s]=nn(e.name),i=Rw(s,n,qd(r),e.i18n instanceof fr?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(i),aN(t,i,e),mm(i,e);let o=null;e.i18n instanceof ot&&(o=t.job.allocateXrefId(),t.create.push(qa(o,e.i18n,void 0,e.startSourceSpan))),Hn(t,e.children);let a=Pw(n,e.endSourceSpan??e.startSourceSpan);t.create.push(a),o!==null&&T.insertBefore(Ga(o,e.endSourceSpan??e.startSourceSpan),a)}function QA(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof ot||e.i18n instanceof fr))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]=nn(e.tagName));let i=e.i18n instanceof fr?e.i18n:void 0,o=qd(s),a=r===null?"":lT(r,o),l=oN(e)?vt.NgTemplate:vt.Structural,c=Va(n.xref,l,r,a,o,i,e.startSourceSpan,e.sourceSpan);t.create.push(c),lN(t,c,e,l),mm(c,e),Hn(n,e.children);for(let{name:u,value:h}of e.variables)n.contextVariables.set(u,h!==""?h:"$implicit");if(l===vt.NgTemplate&&e.i18n instanceof ot){let u=t.job.allocateXrefId();T.insertAfter(qa(u,e.i18n,void 0,e.startSourceSpan),n.create.head),T.insertBefore(Ga(u,e.endSourceSpan??e.startSourceSpan),n.create.tail)}}function JA(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof fr))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=null;e.children.some(i=>!(i instanceof Ms)&&(!(i instanceof zt)||i.value.trim().length>0))&&(n=t.job.allocateView(t.xref),Hn(n,e.children));let r=t.job.allocateXrefId(),s=Bw(r,e.selector,e.i18n,n?.xref??null,e.sourceSpan);for(let i of e.attributes){let o=Or.securityContext(e.name,i.name,!0);t.update.push(Qr(s.xref,F.Attribute,i.name,y(i.value),null,o,!0,!1,null,_n(i.i18n),i.sourceSpan))}t.create.push(s)}function pm(t,e,n){t.create.push(Fd(t.job.allocateXrefId(),e.value,n,e.sourceSpan))}function hm(t,e,n){let r=e.value;if(r instanceof de&&(r=r.ast),!(r instanceof Fn))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${r.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof kn))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let s=e.i18n instanceof kn?e.i18n.children.filter(a=>a instanceof ra).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(Fd(i,"",n,e.sourceSpan));let o=t.job.compatibility?null:e.sourceSpan;t.update.push(yw(i,new be(r.strings,r.expressions.map(a=>H(a,t.job,o)),s),e.sourceSpan))}function ZA(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=ka(t,o.xref,i);i.expressionAlias!==null&&o.contextVariables.set(i.expressionAlias.name,Vd);let l;if(i.i18n!==void 0){if(!(i.i18n instanceof dr))throw Error(`Unhandled i18n metadata type for if block: ${i.i18n?.constructor.name}`);l=i.i18n}let c=Va(o.xref,vt.Block,a,"Conditional",Ke.HTML,l,i.startSourceSpan,i.sourceSpan);t.create.push(c),n===null&&(n=o.xref);let u=i.expression?H(i.expression,t.job,null):null,h=new ma(u,c.xref,c.handle,i.expressionAlias);r.push(h),Hn(o,i.children)}t.update.push(Md(n,null,r,e.sourceSpan))}function eN(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=ka(t,i.xref,s),a;if(s.i18n!==void 0){if(!(s.i18n instanceof dr))throw Error(`Unhandled i18n metadata type for switch block: ${s.i18n?.constructor.name}`);a=s.i18n}let l=Va(i.xref,vt.Block,o,"Case",Ke.HTML,a,s.startSourceSpan,s.sourceSpan);t.create.push(l),n===null&&(n=i.xref);let c=s.expression?H(s.expression,t.job,e.startSourceSpan):null,u=new ma(c,l.xref,l.handle);r.push(u),Hn(i,s.children)}t.update.push(Md(n,H(e.expression,t.job,null),r,e.sourceSpan))}function Mo(t,e,n,r,s){if(n!==void 0&&!(n instanceof dr))throw Error("Unhandled i18n metadata type for defer block");if(r===void 0)return null;let i=t.job.allocateView(t.xref);Hn(i,r);let o=Va(i.xref,vt.Block,null,`Defer${e}`,Ke.HTML,n,s,s);return t.create.push(o),o}function tN(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=Mo(t,"",e.i18n,e.children,e.sourceSpan),s=Mo(t,"Loading",e.loading?.i18n,e.loading?.children,e.loading?.sourceSpan),i=Mo(t,"Placeholder",e.placeholder?.i18n,e.placeholder?.children,e.placeholder?.sourceSpan),o=Mo(t,"Error",e.error?.i18n,e.error?.children,e.error?.sourceSpan),a=t.job.allocateXrefId(),l=$w(a,r.xref,r.handle,n,t.job.allDeferrableDepsFn,e.sourceSpan);l.placeholderView=i?.xref??null,l.placeholderSlot=i?.handle??null,l.loadingSlot=s?.handle??null,l.errorSlot=o?.handle??null,l.placeholderMinimumTime=e.placeholder?.minimumTime??null,l.loadingMinimumTime=e.loading?.minimumTime??null,l.loadingAfterTime=e.loading?.afterTime??null,t.create.push(l);let c=!1,u=[],h=[];for(let f of[e.triggers,e.prefetchTriggers]){if(f.idle!==void 0){let m=Ar(a,{kind:pe.Idle},c,f.idle.sourceSpan);u.push(m)}if(f.immediate!==void 0){let m=Ar(a,{kind:pe.Immediate},c,f.immediate.sourceSpan);u.push(m)}if(f.timer!==void 0){let m=Ar(a,{kind:pe.Timer,delay:f.timer.delay},c,f.timer.sourceSpan);u.push(m)}if(f.hover!==void 0){let m=Ar(a,{kind:pe.Hover,targetName:f.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},c,f.hover.sourceSpan);u.push(m)}if(f.interaction!==void 0){let m=Ar(a,{kind:pe.Interaction,targetName:f.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},c,f.interaction.sourceSpan);u.push(m)}if(f.viewport!==void 0){let m=Ar(a,{kind:pe.Viewport,targetName:f.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},c,f.viewport.sourceSpan);u.push(m)}if(f.when!==void 0){if(f.when.value instanceof Fn)throw new Error("Unexpected interpolation in defer block when trigger");let m=Nw(a,H(f.when.value,t.job,f.when.sourceSpan),c,f.when.sourceSpan);h.push(m)}u.length===0&&h.length===0&&u.push(Ar(a,{kind:pe.Idle},!1,null)),c=!0}t.create.push(u),t.update.push(h)}function nN(t,e){if(e.i18n instanceof ot&&HA(e.i18n)){let n=t.job.allocateXrefId();t.create.push(qw(n,e.i18n,dd(e.i18n).name,null));for(let[r,s]of Object.entries({...e.vars,...e.placeholders}))s instanceof Bn?hm(t,s,r):pm(t,s,r);t.create.push(Gw(n))}else throw Error(`Unhandled i18n metadata type for ICU: ${e.i18n?.constructor.name}`)}function rN(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 N of e.contextVariables)N.value==="$index"&&i.add(N.name),N.name==="$index"?n.contextVariables.set("$index",N.value).set(r,N.value):N.name==="$count"?n.contextVariables.set("$count",N.value).set(s,N.value):n.aliases.add({kind:Oe.Alias,name:null,identifier:N.name,expression:sN(N,r,s)});let o=He(e.trackBy.span,e.sourceSpan),a=H(e.trackBy,t.job,o);Hn(n,e.children);let l=null,c=null;e.empty!==null&&(l=t.job.allocateView(t.xref),Hn(l,e.empty.children),c=ka(t,l.xref,e.empty));let u={$index:i,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof dr))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(e.empty?.i18n!==void 0&&!(e.empty.i18n instanceof dr))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let h=e.i18n,f=e.empty?.i18n,m=ka(t,n.xref,e),E=kw(n.xref,l?.xref??null,m,a,u,c,h,f,e.startSourceSpan,e.sourceSpan);t.create.push(E);let S=H(e.expression,t.job,He(e.expression.span,e.sourceSpan)),I=Aw(E.xref,E.handle,S,e.sourceSpan);t.update.push(I)}function sN(t,e,n){switch(t.value){case"$index":return new We(e);case"$count":return new We(n);case"$first":return new We(e).identical(y(0));case"$last":return new We(e).identical(new We(n).minus(y(1)));case"$even":return new We(e).modulo(y(2)).identical(y(0));case"$odd":return new We(e).modulo(y(2)).notIdentical(y(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function iN(t,e){let n=t.job.allocateXrefId();t.create.push(Uw(n,e.name,e.sourceSpan)),t.update.push(Dw(n,e.name,H(e.value,t.job,e.valueSpan),e.sourceSpan))}function H(t,e,n){if(t instanceof de)return H(t.ast,e,n);if(t instanceof Ie){let r=t.receiver instanceof fn,s=t.receiver instanceof $e&&!(t.receiver instanceof fn),i=t.name==="$any"||t.name==="$event";return s||r&&!i?new We(t.name):new lt(H(t.receiver,e,n),t.name,null,He(t.span,n))}else{if(t instanceof On)return t.receiver instanceof $e?new $r(new qn(e.root.xref),t.name,H(t.value,e,n),null,He(t.span,n)):new $r(H(t.receiver,e,n),t.name,H(t.value,e,n),void 0,He(t.span,n));if(t instanceof Ko)return new bs(H(t.receiver,e,n),H(t.key,e,n),H(t.value,e,n),void 0,He(t.span,n));if(t instanceof yn){if(t.receiver instanceof $e)throw new Error("Unexpected ImplicitReceiver");return new ze(H(t.receiver,e,n),t.args.map(r=>H(r,e,n)),void 0,He(t.span,n))}else{if(t instanceof Ft)return y(t.value,void 0,He(t.span,n));if(t instanceof _i)switch(t.operator){case"+":return new ar(mn.Plus,H(t.expr,e,n),void 0,He(t.span,n));case"-":return new ar(mn.Minus,H(t.expr,e,n),void 0,He(t.span,n));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof mt){let r=oT.get(t.operation);if(r===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new ee(r,H(t.left,e,n),H(t.right,e,n),void 0,He(t.span,n))}else{if(t instanceof fn)return new qn(e.root.xref);if(t instanceof Ps)return new gn(H(t.receiver,e,n),H(t.key,e,n),void 0,He(t.span,n));if(t instanceof cr)throw new Error("AssertionError: Chain in unknown context");if(t instanceof Xo){let r=t.keys.map((s,i)=>{let o=t.values[i];return new Ur(s.key,H(o,e,n),s.quoted)});return new Gt(r,void 0,He(t.span,n))}else{if(t instanceof zo)return new ct(t.expressions.map(r=>H(r,e,n)));if(t instanceof Gr)return new en(H(t.condition,e,n),H(t.trueExp,e,n),H(t.falseExp,e,n),void 0,He(t.span,n));if(t instanceof ki)return H(t.expression,e,n);if(t instanceof Hr)return new Zr(e.allocateXrefId(),new St,t.name,[H(t.exp,e,n),...t.args.map(r=>H(r,e,n))]);if(t instanceof ur)return new Gs(H(t.receiver,e,n),H(t.key,e,n),He(t.span,n));if(t instanceof ut)return new qs(H(t.receiver,e,n),t.name);if(t instanceof vn)return new gr(H(t.receiver,e,n),t.args.map(r=>H(r,e,n)));if(t instanceof Ve)return new zi(He(t.span,n));if(t instanceof Ri)return od(H(t.expression,e,n),He(t.span,n));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${n?.start.file.url}"`)}}}}}function Yc(t,e,n,r){let s;return e instanceof Fn?s=new be(e.strings,e.expressions.map(i=>H(i,t,r??null)),Object.keys(_n(n)?.placeholders??{})):e instanceof me?s=H(e,t,r??null):s=y(e),s}var fm=new Map([[z.Property,F.Property],[z.TwoWay,F.TwoWayProperty],[z.Attribute,F.Attribute],[z.Class,F.ClassName],[z.Style,F.StyleProperty],[z.Animation,F.Animation]]);function oN(t){return nn(t.tagName??"")[1]===Fr}function _n(t){if(t==null)return null;if(!(t instanceof ot))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function aN(t,e,n){let r=new Array,s=new Set;for(let i of n.attributes){let o=Or.securityContext(n.name,i.name,!0);r.push(Qr(e.xref,F.Attribute,i.name,Yc(t.job,i.value,i.i18n),null,o,!0,!1,null,_n(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(Qr(e.xref,fm.get(i.type),i.name,Yc(t.job,eo(i.value),i.i18n),i.unit,i.securityContext,!1,!1,null,_n(i.i18n)??null,i.sourceSpan));t.create.push(r.filter(i=>i?.kind===p.ExtractedAttribute)),t.update.push(r.filter(i=>i?.kind===p.Binding));for(let i of n.outputs){if(i.type===ke.Animation&&i.phase===null)throw Error("Animation listener should have a phase");i.type===ke.TwoWay?t.create.push(Bd(e.xref,e.handle,i.name,e.tag,dm(t,i.handler,i.handlerSpan),i.sourceSpan)):t.create.push(bu(e.xref,e.handle,i.name,e.tag,Ru(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))}r.some(i=>i?.i18nMessage)!==null&&t.create.push(Ud(t.job.allocateXrefId(),new St,e.xref))}function lN(t,e,n,r){let s=new Array;for(let i of n.templateAttrs)if(i instanceof Dt){let o=Or.securityContext(Fr,i.name,!0);s.push(Lo(t,e.xref,z.Attribute,i.name,i.value,null,o,!0,r,_n(i.i18n),i.sourceSpan))}else s.push(Lo(t,e.xref,i.type,i.name,eo(i.value),i.unit,i.securityContext,!0,r,_n(i.i18n),i.sourceSpan));for(let i of n.attributes){let o=Or.securityContext(Fr,i.name,!0);s.push(Lo(t,e.xref,z.Attribute,i.name,i.value,null,o,!1,r,_n(i.i18n),i.sourceSpan))}for(let i of n.inputs)s.push(Lo(t,e.xref,i.type,i.name,eo(i.value),i.unit,i.securityContext,!1,r,_n(i.i18n),i.sourceSpan));t.create.push(s.filter(i=>i?.kind===p.ExtractedAttribute)),t.update.push(s.filter(i=>i?.kind===p.Binding));for(let i of n.outputs){if(i.type===ke.Animation&&i.phase===null)throw Error("Animation listener should have a phase");if(r===vt.NgTemplate&&(i.type===ke.TwoWay?t.create.push(Bd(e.xref,e.handle,i.name,e.tag,dm(t,i.handler,i.handlerSpan),i.sourceSpan)):t.create.push(bu(e.xref,e.handle,i.name,e.tag,Ru(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),r===vt.Structural&&i.type!==ke.Animation){let o=Or.securityContext(Fr,i.name,!1);t.create.push(Ut(e.xref,F.Property,null,i.name,null,null,null,o))}}s.some(i=>i?.i18nMessage)!==null&&t.create.push(Ud(t.job.allocateXrefId(),new St,e.xref))}function Lo(t,e,n,r,s,i,o,a,l,c,u){let h=typeof s=="string";if(l===vt.Structural){if(!a)switch(n){case z.Property:case z.Class:case z.Style:return Ut(e,F.Property,null,r,null,null,c,o);case z.TwoWay:return Ut(e,F.TwoWayProperty,null,r,null,null,c,o)}if(!h&&(n===z.Attribute||n===z.Animation))return null}let f=fm.get(n);return l===vt.NgTemplate&&(n===z.Class||n===z.Style||n===z.Attribute&&!h)&&(f=F.Property),Qr(e,f,r,Yc(t.job,s,c),i,o,h,a,l,c,u)}function Ru(t,e,n){e=eo(e);let r=new Array,s=e instanceof cr?e.expressions:[e];if(s.length===0)throw new Error("Expected listener to have non-empty expression list.");let i=s.map(a=>H(a,t.job,n)),o=i.pop();return r.push(...i.map(a=>wn(new bt(a,a.sourceSpan)))),r.push(wn(new et(o,o.sourceSpan))),r}function dm(t,e,n){e=eo(e);let r=new Array;if(e instanceof cr)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let s=H(e,t.job,n),i=new We("$event"),o=new ha(s,i);return r.push(wn(new bt(o))),r.push(wn(new et(i))),r}function eo(t){return t instanceof de?t.ast:t}function mm(t,e){cN(t.localRefs);for(let{name:n,value:r}of e.references)t.localRefs.push({name:n,target:r})}function cN(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function He(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 V(n,r,s)}function ka(t,e,n){let r=null;for(let s of n.children)if(!(s instanceof Ms)){if(r!==null)return null;(s instanceof ie||s instanceof re&&s.tagName!==null)&&(r=s)}if(r!==null){for(let i of r.attributes){let o=Or.securityContext(Fr,i.name,!0);t.update.push(Qr(e,F.Attribute,i.name,y(i.value),null,o,!0,!1,null,_n(i.i18n),i.sourceSpan))}for(let i of r.inputs)if(i.type!==z.Animation&&i.type!==z.Attribute){let o=Or.securityContext(Fr,i.name,!0);t.create.push(Ut(e,F.Property,null,i.name,null,null,null,o))}let s=r instanceof ie?r.name:r.tagName;return s===Fr?null:s}return null}function Pa(t,e){return so(W(gu).bitwiseAnd(y(t),null,!1),e)}function uN(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function pN(t,e){if(Array.isArray(t.predicate)){let n=[];return t.predicate.forEach(r=>{let s=r.split(",").map(i=>y(i.trim()));n.push(...s)}),e.getConstLiteral(se(n),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return L(d.resolveForwardRef).callFn([t.predicate.expression])}}function gm(t,e,n,r){let s=[];r!==void 0&&s.push(...r),t.isSignal&&s.push(new lt(W($i),t.propertyName)),s.push(pN(t,e),y(uN(t))),t.read&&s.push(t.read);let i=t.isSignal?n.signalBased:n.nonSignal;return L(i).callFn(s)}var ku=Symbol("queryAdvancePlaceholder");function ym(t){let e=[],n=0,r=()=>{n>0&&(e.unshift(L(d.queryAdvance).callFn(n===1?[]:[y(n)]).toStmt()),n=0)};for(let s=t.length-1;s>=0;s--){let i=t[s];i===ku?n++:(r(),e.unshift(i))}return r(),e}function hN(t,e,n){let r=[],s=[],i=md(a=>s.push(a),mu);t.forEach(a=>{let l=gm(a,e,{signalBased:d.viewQuerySignal,nonSignal:d.viewQuery});if(r.push(l.toStmt()),a.isSignal){s.push(ku);return}let c=i(),u=L(d.loadQuery).callFn([]),h=L(d.queryRefresh).callFn([c.set(u)]),f=W($i).prop(a.propertyName).set(a.first?c.prop("first"):c);s.push(h.and(f).toStmt())});let o=n?`${n}_Query`:null;return ts([new Fe(gu,Fa),new Fe($i,null)],[Pa(1,r),Pa(2,ym(s))],At,null,o)}function fN(t,e,n){let r=[],s=[],i=md(a=>s.push(a),mu);for(let a of t){if(r.push(gm(a,e,{nonSignal:d.contentQuery,signalBased:d.contentQuerySignal},[W("dirIndex")]).toStmt()),a.isSignal){s.push(ku);continue}let l=i(),c=L(d.loadQuery).callFn([]),u=L(d.queryRefresh).callFn([l.set(c)]),h=W($i).prop(a.propertyName).set(a.first?l.prop("first"):l);s.push(u.and(h).toStmt())}let o=n?`${n}_ContentQueries`:null;return ts([new Fe(gu,Fa),new Fe($i,null),new Fe("dirIndex",null)],[Pa(1,r),Pa(2,ym(s))],At,null,o)}var Ma=class extends Pc{constructor(){super(Jd)}parse(e,n,r){return super.parse(e,n,r)}},bf=".",dN="attr",mN="class",gN="style",yN="*",Rl="animate-",Qc=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,l){let c=r.start.offset+yN.length,u=this._parseTemplateBindings(e,n,r,c,s);for(let h of u){let f=Yn(r,h.sourceSpan),m=h.key.source,E=Yn(r,h.key.span);if(h instanceof Pi){let S=h.value?h.value.source:"$implicit",I=h.value?Yn(r,h.value.span):void 0;a.push(new Zl(m,S,f,E,I))}else if(h.value){let S=l?f:r,I=Yn(r,h.value.ast.sourceSpan);this._parsePropertyAst(m,h.value,!1,S,E,I,i,o)}else i.push([m,""]),this.parseLiteralAttr(m,null,E,s,void 0,i,o,E)}}_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(l=>{this._reportError(l,r,Dn.WARNING)}),a.templateBindings}catch(a){return this._reportError(`${a}`,r),[]}}parseLiteralAttr(e,n,r,s,i,o,a,l){kl(e)?(e=e.substring(1),l!==void 0&&(l=Yn(l,new je(l.start.offset+1,l.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,Dn.ERROR),this._parseAnimation(e,n,r,s,l,i,o,a)):a.push(new pi(e,this._exprParser.wrapLiteralPrimitive(n,"",s),An.LITERAL_ATTR,r,l,i))}parsePropertyBinding(e,n,r,s,i,o,a,l,c,u){e.length===0&&this._reportError("Property name is missing in binding",i);let h=!1;e.startsWith(Rl)?(h=!0,e=e.substring(Rl.length),u!==void 0&&(u=Yn(u,new je(u.start.offset+Rl.length,u.end.offset)))):kl(e)&&(h=!0,e=e.substring(1),u!==void 0&&(u=Yn(u,new je(u.start.offset+1,u.end.offset)))),h?this._parseAnimation(e,n,i,o,u,a,l,c):this._parsePropertyAst(e,this.parseBinding(n,r,a||i,o),s,i,u,a,l,c)}parsePropertyInterpolation(e,n,r,s,i,o,a,l){let c=this.parseInterpolation(n,s||r,l);return c?(this._parsePropertyAst(e,c,!1,r,a,s,i,o),!0):!1}_parsePropertyAst(e,n,r,s,i,o,a,l){a.push([e,n.source]),l.push(new pi(e,n,r?An.TWO_WAY:An.DEFAULT,s,i,o))}_parseAnimation(e,n,r,s,i,o,a,l){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]),l.push(new pi(e,c,An.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 Qo(n.name,z.Animation,ce.NONE,n.expression,null,n.sourceSpan,n.keySpan,n.valueSpan);let i=null,o,a=null,l=n.name.split(bf),c;if(l.length>1)if(l[0]==dN){a=l.slice(1).join(bf),r||this._validatePropertyOrAttributeName(a,n.sourceSpan,!0),c=Pl(this._schemaRegistry,e,a,!0);let u=a.indexOf(":");if(u>-1){let h=a.substring(0,u),f=a.substring(u+1);a=nc(h,f)}o=z.Attribute}else l[0]==mN?(a=l[1],o=z.Class,c=[ce.NONE]):l[0]==gN&&(i=l.length>2?l[2]:null,a=l[1],o=z.Style,c=[ce.STYLE]);if(a===null){let u=this._schemaRegistry.getMappedPropName(n.name);a=s?u:n.name,c=Pl(this._schemaRegistry,e,u,!1),o=n.type===An.TWO_WAY?z.TwoWay:z.Property,r||this._validatePropertyOrAttributeName(u,n.sourceSpan,!1)}return new Qo(a,o,c[0],n.expression,i,n.sourceSpan,n.keySpan,n.valueSpan)}parseEvent(e,n,r,s,i,o,a,l){e.length===0&&this._reportError("Event name is missing in binding",s),kl(e)?(e=e.slice(1),l!==void 0&&(l=Yn(l,new je(l.start.offset+1,l.end.offset))),this._parseAnimationEvent(e,n,s,i,a,l)):this._parseRegularEvent(e,n,r,s,i,o,a,l)}calcPossibleSecurityContexts(e,n,r){let s=this._schemaRegistry.getMappedPropName(n);return Pl(this._schemaRegistry,e,s,r)}_parseAnimationEvent(e,n,r,s,i,o){let a=jE(e,[e,""]),l=a[0],c=a[1].toLowerCase(),u=this._parseAction(n,s);i.push(new Yo(l,c,ke.Animation,u,r,s,o)),l.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 "@${l}" is not supported (use start or done)`,r):this._reportError(`The animation trigger output event (@${l}) is missing its phase value name (start or done are currently supported)`,r)}_parseRegularEvent(e,n,r,s,i,o,a,l){let[c,u]=WE(e,[null,e]),h=this.errors.length,f=this._parseAction(n,i),m=this.errors.length===h;o.push([e,f.source]),r&&m&&!this._isAllowedAssignmentEvent(f)&&this._reportError("Unsupported expression in a two-way binding",s),a.push(new Yo(u,c,r?ke.TwoWay:ke.Regular,f,s,i,l))}_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 Ve?(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=Dn.ERROR){this.errors.push(new q(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,Dn.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof de?this._isAllowedAssignmentEvent(e.ast):e instanceof ki?this._isAllowedAssignmentEvent(e.expression):e instanceof Ie||e instanceof Ps?!0:this._allowInvalidAssignmentEvents?e instanceof mt?(e.operation==="&&"||e.operation==="||"||e.operation==="??")&&(e.right instanceof Ie||e.right instanceof Ps):e instanceof Gr||e instanceof Ri:!1}};function kl(t){return t[0]=="@"}function Pl(t,e,n,r){let s=[];return Qt.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)),l=o.filter(c=>!a.has(c));s.push(...l.map(c=>t.securityContext(c,n,r)))}),s.length===0?[ce.NONE]:Array.from(new Set(s)).sort()}function Yn(t,e){let n=e.start-t.start.offset,r=e.end-t.end.offset;return new V(t.start.moveBy(n),t.end.moveBy(r),t.fullStart.moveBy(n),t.details)}function vN(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(EN);return e===null||e[1]=="package"||e[1]=="asset"}var EN=/^([^:/?#]+):/,SN="select",wN="link",TN="rel",xN="href",CN="stylesheet",IN="style",AN="script",NN="ngNonBindable",bN="ngProjectAs";function vm(t){let e=null,n=null,r=null,s=!1,i="";t.attrs.forEach(l=>{let c=l.name.toLowerCase();c==SN?e=l.value:c==xN?n=l.value:c==TN?r=l.value:l.name==NN?s=!0:l.name==bN&&l.value.length>0&&(i=l.value)}),e=DN(e);let o=t.name.toLowerCase(),a=yt.OTHER;return ec(o)?a=yt.NG_CONTENT:o==IN?a=yt.STYLE:o==AN?a=yt.SCRIPT:o==wN&&r==CN&&(a=yt.STYLESHEET),new Jc(a,e,n,s,i)}var yt;(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"})(yt||(yt={}));var Jc=class{constructor(e,n,r,s,i){this.type=e,this.selectAttr=n,this.hrefAttr=r,this.nonBindable=s,this.projectAs=i}};function DN(t){return t===null||t.length===0?"*":t}var _N=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,RN=/^track\s+([\S\s]*)/,kN=/^(as\s)+(.*)/,Pu=/^else[^\S\r\n]+if/,PN=/^let\s+([\S\s]*)/,Df=/(\s*)(\S+)(\s*)/,vi=new Set(["$index","$first","$last","$even","$odd","$count"]);function _f(t){return t==="empty"}function Rf(t){return t==="else"||Pu.test(t)}function MN(t,e,n,r){let s=$N(e),i=[],o=kf(t,s,r);o!==null&&i.push(new Rn(o.expression,xe(n,t.children,t.children),o.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let h of e)if(Pu.test(h.name)){let f=kf(h,s,r);if(f!==null){let m=xe(n,h.children,h.children);i.push(new Rn(f.expression,m,f.expressionAlias,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan,h.i18n))}}else if(h.name==="else"){let f=xe(n,h.children,h.children);i.push(new Rn(null,f,null,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan,h.i18n))}let a=i.length>0?i[0].startSourceSpan:t.startSourceSpan,l=i.length>0?i[i.length-1].endSourceSpan:t.endSourceSpan,c=t.sourceSpan,u=i[i.length-1];return u!==void 0&&(c=new V(a.start,u.sourceSpan.end)),{node:new jr(i,c,t.startSourceSpan,l,t.nameSpan),errors:s}}function LN(t,e,n,r){let s=[],i=FN(t,s,r),o=null,a=null;for(let l of e)l.name==="empty"?a!==null?s.push(new q(l.sourceSpan,"@for loop can only have one @empty block")):l.parameters.length>0?s.push(new q(l.sourceSpan,"@empty block cannot have parameters")):a=new Bi(xe(n,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n):s.push(new q(l.sourceSpan,`Unrecognized @for loop block "${l.name}"`));if(i!==null)if(i.trackBy===null)s.push(new q(t.startSourceSpan,'@for loop must have a "track" expression'));else{let l=a?.endSourceSpan??t.endSourceSpan,c=new V(t.sourceSpan.start,l?.end??t.sourceSpan.end);o=new En(i.itemName,i.expression,i.trackBy.expression,i.trackBy.keywordSpan,i.context,xe(n,t.children,t.children),a,c,t.sourceSpan,t.startSourceSpan,l,t.nameSpan,t.i18n)}return{node:o,errors:s}}function ON(t,e,n){let r=UN(t),s=t.parameters.length>0?to(t.parameters[0],n):n.parseBinding("",!1,t.sourceSpan,0),i=[],o=[],a=null;for(let l of t.children){if(!(l instanceof Bt))continue;if((l.name!=="case"||l.parameters.length===0)&&l.name!=="default"){o.push(new ta(l.name,l.sourceSpan,l.nameSpan));continue}let c=l.name==="case"?to(l.parameters[0],n):null,u=new Fi(c,xe(e,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n);c===null?a=u:i.push(u)}return a!==null&&i.push(a),{node:new Wr(s,i,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:r}}function FN(t,e,n){if(t.parameters.length===0)return e.push(new q(t.startSourceSpan,"@for loop does not have an expression")),null;let[r,...s]=t.parameters,i=VN(r,e)?.match(_N);if(!i||i[2].trim().length===0)return e.push(new q(r.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,a]=i;vi.has(o)&&e.push(new q(r.sourceSpan,`@for loop item name cannot be one of ${Array.from(vi).join(", ")}.`));let l=r.expression.split(" ")[0],c=new V(r.sourceSpan.start,r.sourceSpan.start.moveBy(l.length)),u={itemName:new pt(o,"$implicit",c,c),trackBy:null,expression:to(r,n,a),context:Array.from(vi,h=>{let f=new V(t.startSourceSpan.end,t.startSourceSpan.end);return new pt(h,h,f,f)})};for(let h of s){let f=h.expression.match(PN);if(f!==null){let E=new V(h.sourceSpan.start.moveBy(f[0].length-f[1].length),h.sourceSpan.end);BN(h.sourceSpan,f[1],E,o,u.context,e);continue}let m=h.expression.match(RN);if(m!==null){if(u.trackBy!==null)e.push(new q(h.sourceSpan,'@for loop can only have one "track" expression'));else{let E=to(h,n,m[1]);E.ast instanceof Ve&&e.push(new q(t.startSourceSpan,'@for loop must have a "track" expression'));let S=new V(h.sourceSpan.start,h.sourceSpan.start.moveBy(5));u.trackBy={expression:E,keywordSpan:S}}continue}e.push(new q(h.sourceSpan,`Unrecognized @for loop paramater "${h.expression}"`))}return u}function BN(t,e,n,r,s,i){let o=e.split(","),a=n.start;for(let l of o){let c=l.split("="),u=c.length===2?c[0].trim():"",h=c.length===2?c[1].trim():"";if(u.length===0||h.length===0)i.push(new q(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!vi.has(h))i.push(new q(t,`Unknown "let" parameter variable "${h}". The allowed variables are: ${Array.from(vi).join(", ")}`));else if(u===r)i.push(new q(t,`Invalid @for loop "let" parameter. Variable cannot be called "${r}"`));else if(s.some(f=>f.name===u))i.push(new q(t,`Duplicate "let" parameter variable "${h}"`));else{let[,f,m]=c[0].match(Df)??[],E=f!==void 0&&c.length===2?new V(a.moveBy(f.length),a.moveBy(f.length+m.length)):n,S;if(c.length===2){let[,N,$]=c[1].match(Df)??[];S=N!==void 0?new V(a.moveBy(c[0].length+1+N.length),a.moveBy(c[0].length+1+N.length+$.length)):void 0}let I=new V(E.start,S?.end??E.end);s.push(new pt(u,h,I,E,S))}a=a.moveBy(l.length+1)}}function $N(t){let e=[],n=!1;for(let r=0;r<t.length;r++){let s=t[r];s.name==="else"?(n?e.push(new q(s.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&r<t.length-1?e.push(new q(s.startSourceSpan,"@else block must be last inside the conditional")):s.parameters.length>0&&e.push(new q(s.startSourceSpan,"@else block cannot have parameters")),n=!0):Pu.test(s.name)||e.push(new q(s.startSourceSpan,`Unrecognized conditional block @${s.name}`))}return e}function UN(t){let e=[],n=!1;if(t.parameters.length!==1)return e.push(new q(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let r of t.children)if(!(r instanceof Qi||r instanceof es&&r.value.trim().length===0)){if(!(r instanceof Bt)||r.name!=="case"&&r.name!=="default"){e.push(new q(r.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}r.name==="default"?(n?e.push(new q(r.startSourceSpan,"@switch block can only have one @default block")):r.parameters.length>0&&e.push(new q(r.startSourceSpan,"@default block cannot have parameters")),n=!0):r.name==="case"&&r.parameters.length!==1&&e.push(new q(r.startSourceSpan,"@case block must have exactly one parameter"))}return e}function to(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 kf(t,e,n){if(t.parameters.length===0)return e.push(new q(t.startSourceSpan,"Conditional block does not have an expression")),null;let r=to(t.parameters[0],n),s=null;for(let i=1;i<t.parameters.length;i++){let o=t.parameters[i],a=o.expression.match(kN);if(a===null)e.push(new q(o.sourceSpan,`Unrecognized conditional paramater "${o.expression}"`));else if(t.name!=="if")e.push(new q(o.sourceSpan,'"as" expression is only allowed on the primary @if block'));else if(s!==null)e.push(new q(o.sourceSpan,'Conditional can only have one "as" expression'));else{let l=a[2].trim(),c=o.sourceSpan.start.moveBy(a[1].length),u=new V(c,c.moveBy(l.length));s=new pt(l,l,u,u)}}return{expression:r,expressionAlias:s}}function VN(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 l=n[a];if(l==="(")i=a+1,s++;else{if(r.test(l))continue;break}}if(s===0)return n;for(let a=n.length-1;a>-1;a--){let l=n[a];if(l===")"){if(o=a,s--,s===0)break}else{if(r.test(l))continue;break}}return s!==0?(e.push(new q(t.sourceSpan,"Unclosed parentheses in expression")),null):n.slice(i,o)}var qN=/^\d+\.?\d*(ms|s)?$/,GN=/^\s$/,Pf=new Map([[pn,gt],[As,ws],[Pn,Xt]]),rt;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport"})(rt||(rt={}));function Mf({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("when"),o=new V(e.start.moveBy(i),e.start.moveBy(i+4)),a=Em(t,e);if(i===-1)s.push(new q(e,'Could not find "when" keyword in expression'));else{let l=no(t,i+1),c=n.parseBinding(t.slice(l),!1,e,e.start.offset+l);Sm("when",r,s,new Ls(c,e,a,o))}}function Lf({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("on"),o=new V(e.start.moveBy(i),e.start.moveBy(i+2)),a=Em(t,e);if(i===-1)r.push(new q(e,'Could not find "on" keyword in expression'));else{let l=no(t,i+1);new Zc(t,l,e,n,r,s,a,o).parse()}}function Em(t,e){return t.startsWith("prefetch")?new V(e.start,e.start.moveBy(8)):null}var Zc=class{constructor(e,n,r,s,i,o,a,l){this.expression=e,this.start=n,this.span=r,this.triggers=s,this.errors=i,this.placeholder=o,this.prefetchSpan=a,this.onSourceSpan=l,this.index=0,this.tokens=new Zi().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(Vt))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(Pn)){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 V(r,r.moveBy(e.strValue.length)),i=r.moveBy(this.token().end-e.index),o=e.index===0,a=o?this.onSourceSpan:null,l=o?this.prefetchSpan:null,c=new V(o?this.span.start:r,i);try{switch(e.toString()){case rt.IDLE:this.trackTrigger("idle",HN(n,s,c,l,a));break;case rt.TIMER:this.trackTrigger("timer",WN(n,s,c,this.prefetchSpan,this.onSourceSpan));break;case rt.INTERACTION:this.trackTrigger("interaction",zN(n,s,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;case rt.IMMEDIATE:this.trackTrigger("immediate",jN(n,s,c,this.prefetchSpan,this.onSourceSpan));break;case rt.HOVER:this.trackTrigger("hover",KN(n,s,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;case rt.VIEWPORT:this.trackTrigger("viewport",XN(n,s,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;default:throw new Error(`Unrecognized trigger type "${e}"`)}}catch(u){this.error(e,u.message)}}consumeParameters(){let e=[];if(!this.token().isCharacter(Pn))return this.unexpectedToken(this.token()),e;this.advance();let n=[],r="";for(;this.index<this.tokens.length;){let s=this.token();if(s.isCharacter(Xt)&&n.length===0){r.length&&e.push(r);break}if(s.type===Y.Character&&Pf.has(s.numValue)&&n.push(Pf.get(s.numValue)),n.length>0&&s.isCharacter(n[n.length-1])&&n.pop(),n.length===0&&s.isCharacter(Vt)&&r.length>0){e.push(r),r="",this.advance();continue}r+=this.tokenText(),this.advance()}return(!this.token().isCharacter(Xt)||n.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(Vt)&&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){Sm(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 q(new V(r,s),n))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function Sm(t,e,n,r){e[t]?n.push(new q(r.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=r}function HN(t,e,n,r,s){if(t.length>0)throw new Error(`"${rt.IDLE}" trigger cannot have parameters`);return new rc(e,n,r,s)}function WN(t,e,n,r,s){if(t.length!==1)throw new Error(`"${rt.TIMER}" trigger must have exactly one parameter`);let i=La(t[0]);if(i===null)throw new Error(`Could not parse time value of trigger "${rt.TIMER}"`);return new ic(i,e,n,r,s)}function jN(t,e,n,r,s){if(t.length>0)throw new Error(`"${rt.IMMEDIATE}" trigger cannot have parameters`);return new sc(e,n,r,s)}function KN(t,e,n,r,s,i){return Mu(rt.HOVER,t,i),new Jo(t[0]??null,e,n,r,s)}function zN(t,e,n,r,s,i){return Mu(rt.INTERACTION,t,i),new Zo(t[0]??null,e,n,r,s)}function XN(t,e,n,r,s,i){return Mu(rt.VIEWPORT,t,i),new ea(t[0]??null,e,n,r,s)}function Mu(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 ie))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 no(t,e=0){let n=!1;for(let r=e;r<t.length;r++)if(GN.test(t[r]))n=!0;else if(n)return r;return-1}function La(t){let e=t.match(qN);if(!e)return null;let[n,r]=e;return parseFloat(n)*(r==="s"?1e3:1)}var YN=/^prefetch\s+when\s/,QN=/^prefetch\s+on\s/,wm=/^minimum\s/,JN=/^after\s/,ZN=/^when\s/,eb=/^on\s/;function eu(t){return t==="placeholder"||t==="loading"||t==="error"}function tb(t,e,n,r){let s=[],{placeholder:i,loading:o,error:a}=nb(e,s,n),{triggers:l,prefetchTriggers:c}=ob(t.parameters,r,s,i),u=t.endSourceSpan,h=t.sourceSpan.end;if(e.length>0){let E=e[e.length-1];u=E.endSourceSpan,h=E.sourceSpan.end}let f=new V(t.sourceSpan.start,h);return{node:new Vn(xe(n,t.children,t.children),l,c,i,o,a,t.nameSpan,f,t.sourceSpan,t.startSourceSpan,u,t.i18n),errors:s}}function nb(t,e,n){let r=null,s=null,i=null;for(let o of t)try{if(!eu(o.name)){e.push(new q(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":r!==null?e.push(new q(o.startSourceSpan,"@defer block can only have one @placeholder block")):r=rb(o,n);break;case"loading":s!==null?e.push(new q(o.startSourceSpan,"@defer block can only have one @loading block")):s=sb(o,n);break;case"error":i!==null?e.push(new q(o.startSourceSpan,"@defer block can only have one @error block")):i=ib(o,n);break}}catch(a){e.push(new q(o.startSourceSpan,a.message))}return{placeholder:r,loading:s,error:i}}function rb(t,e){let n=null;for(let r of t.parameters)if(wm.test(r.expression)){if(n!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let s=La(r.expression.slice(no(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 Mi(xe(e,t.children,t.children),n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function sb(t,e){let n=null,r=null;for(let s of t.parameters)if(JN.test(s.expression)){if(n!=null)throw new Error('@loading block can only have one "after" parameter');let i=La(s.expression.slice(no(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');n=i}else if(wm.test(s.expression)){if(r!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=La(s.expression.slice(no(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 Li(xe(e,t.children,t.children),n,r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function ib(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new Oi(xe(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function ob(t,e,n,r){let s={},i={};for(let o of t)ZN.test(o.expression)?Mf(o,e,s,n):eb.test(o.expression)?Lf(o,s,n,r):YN.test(o.expression)?Mf(o,e,i,n):QN.test(o.expression)?Lf(o,i,n,r):n.push(new q(o.sourceSpan,"Unrecognized trigger"));return{triggers:s,prefetchTriggers:i}}var ab=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Of=1,Ff=2,Bf=3,$f=4,Uf=5,lb=6,oi=7,Qn={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},Vf="*";function cb(t,e,n){let r=new tu(e,n),s=xe(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 tu=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=Xc(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=vm(e);if(r.type===yt.SCRIPT)return null;if(r.type===yt.STYLE){let I=pb(e);return I!==null&&this.styles.push(I),null}else if(r.type===yt.STYLESHEET&&vN(r.hrefAttr))return this.styleUrls.push(r.hrefAttr),null;let s=uS(e.name),i=[],o=[],a=[],l=[],c=[],u={},h=[],f=[],m=!1;for(let I of e.attrs){let N=!1,$=qf(I.name),Te=!1;if(I.i18n&&(u[I.name]=I.i18n),$.startsWith(Vf)){m&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",I.sourceSpan),Te=!0,m=!0;let le=I.value,Ee=$.substring(Vf.length),Ne=[],Cr=I.valueSpan?I.valueSpan.start.offset:I.sourceSpan.start.offset+I.name.length;this.bindingParser.parseInlineTemplateBinding(Ee,le,I.sourceSpan,Cr,[],h,Ne,!0),f.push(...Ne.map(Mt=>new pt(Mt.name,Mt.value,Mt.sourceSpan,Mt.keySpan,Mt.valueSpan)))}else N=this.parseAttribute(s,I,[],i,o,a,l);!N&&!Te&&c.push(this.visitAttribute(I))}let E;r.nonBindable?E=xe(ub,e.children).flat(1/0):E=xe(this,e.children,e.children);let S;if(r.type===yt.NG_CONTENT){let I=r.selectAttr,N=e.attrs.map($=>this.visitAttribute($));S=new hr(I,N,E,e.sourceSpan,e.i18n),this.ngContentSelectors.push(I)}else if(s){let I=this.extractAttributes(e.name,i,u);S=new re(e.name,c,I.bound,o,[],E,l,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let I=this.extractAttributes(e.name,i,u);S=new ie(e.name,c,I.bound,o,E,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(m){let I=this.extractAttributes("ng-template",h,u),N=[];I.literal.forEach(Ee=>N.push(Ee)),I.bound.forEach(Ee=>N.push(Ee));let $=S instanceof ie?{attributes:S.attributes,inputs:S.inputs,outputs:S.outputs}:{attributes:[],inputs:[],outputs:[]},Te=s&&n?void 0:e.i18n,le=S instanceof re?null:S.name;S=new re(le,$.attributes,$.inputs,$.outputs,N,[S],[],f,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,Te)}return n&&(this.inI18nBlock=!1),S}visitAttribute(e){return new Dt(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(!Xc(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(fS)){let a=i.trim(),l=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);r[a]=new Bn(l,o.sourceSpan)}else s[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new Os(r,s,e.sourceSpan,n)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new Ms(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 Ve&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new Qe(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=tb(e,this.findConnectedBlocks(r,n,eu),this,this.bindingParser);break;case"switch":s=ON(e,this,this.bindingParser);break;case"for":s=LN(e,this.findConnectedBlocks(r,n,_f),this,this.bindingParser);break;case"if":s=MN(e,this.findConnectedBlocks(r,n,Rf),this,this.bindingParser);break;default:let i;eu(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):_f(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Rf(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 ta(e.name,e.sourceSpan,e.nameSpan),errors:[new q(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 Qi)){if(o instanceof es&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof Bt)||!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 Dt(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let l=this.bindingParser.createBoundElementProperty(e,o,!0,!1);s.push(_t.fromBoundElementProperty(l,a))}}),{bound:s,literal:i}}parseAttribute(e,n,r,s,i,o,a){let l=qf(n.name),c=n.value,u=n.sourceSpan,h=n.valueSpan?n.valueSpan.start.offset:u.start.offset;function f(N,$,Te){let le=n.name.length-l.length,Ee=N.start.moveBy($.length+le),Ne=Ee.moveBy(Te.length);return new V(Ee,Ne,Ee,Te)}let m=l.match(ab);if(m){if(m[Of]!=null){let N=m[oi],$=f(u,m[Of],N);this.bindingParser.parsePropertyBinding(N,c,!1,!1,u,h,n.valueSpan,r,s,$)}else if(m[Ff])if(e){let N=m[oi],$=f(u,m[Ff],N);this.parseVariable(N,c,u,$,n.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',u);else if(m[Bf]){let N=m[oi],$=f(u,m[Bf],N);this.parseReference(N,c,u,$,n.valueSpan,a)}else if(m[$f]){let N=[],$=m[oi],Te=f(u,m[$f],$);this.bindingParser.parseEvent($,c,!1,u,n.valueSpan||u,r,N,Te),Ml(N,i)}else if(m[Uf]){let N=m[oi],$=f(u,m[Uf],N);this.bindingParser.parsePropertyBinding(N,c,!1,!0,u,h,n.valueSpan,r,s,$),this.parseAssignmentEvent(N,c,u,n.valueSpan,r,i,$)}else if(m[lb]){let N=f(u,"",l);this.bindingParser.parseLiteralAttr(l,c,u,h,n.valueSpan,r,s,N)}return!0}let E=null;if(l.startsWith(Qn.BANANA_BOX.start)?E=Qn.BANANA_BOX:l.startsWith(Qn.PROPERTY.start)?E=Qn.PROPERTY:l.startsWith(Qn.EVENT.start)&&(E=Qn.EVENT),E!==null&&l.endsWith(E.end)&&l.length>E.start.length+E.end.length){let N=l.substring(E.start.length,l.length-E.end.length),$=f(u,E.start,N);if(E.start===Qn.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(N,c,!1,!0,u,h,n.valueSpan,r,s,$),this.parseAssignmentEvent(N,c,u,n.valueSpan,r,i,$);else if(E.start===Qn.PROPERTY.start)this.bindingParser.parsePropertyBinding(N,c,!1,!1,u,h,n.valueSpan,r,s,$);else{let Te=[];this.bindingParser.parseEvent(N,c,!1,u,n.valueSpan||u,r,Te,$),Ml(Te,i)}return!0}let S=f(u,"",l);return this.bindingParser.parsePropertyInterpolation(l,c,u,n.valueSpan,r,s,S,n.valueTokens??null)}_visitTextWithInterpolation(e,n,r,s){let i=zd(e),o=this.bindingParser.parseInterpolation(i,n,r);return o?new Bn(o,n,s):new zt(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 pt(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 Sn(e,n,r,s,i))}parseAssignmentEvent(e,n,r,s,i,o,a){let l=[];this.bindingParser.parseEvent(`${e}Change`,n,!0,r,s||r,i,l,a),Ml(l,o)}reportError(e,n,r=Dn.ERROR){this.errors.push(new q(n,e,r))}},nu=class{visitElement(e){let n=vm(e);if(n.type===yt.SCRIPT||n.type===yt.STYLE||n.type===yt.STYLESHEET)return null;let r=xe(this,e.children,null);return new ie(e.name,xe(this,e.attrs),[],[],r,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new Dt(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new zt(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,n){let r=[new zt(e.startSourceSpan.toString(),e.startSourceSpan),...xe(this,e.children)];return e.endSourceSpan!==null&&r.push(new zt(e.endSourceSpan.toString(),e.endSourceSpan)),r}visitBlockParameter(e,n){return null}visitLetDeclaration(e,n){return new zt(`@let ${e.name} = ${e.value};`,e.sourceSpan)}},ub=new nu;function qf(t){return/^data-/i.test(t)?t.substring(5):t}function Ml(t,e){e.push(...t.map(n=>$n.fromParsedEvent(n)))}function pb(t){return t.children.length!==1||!(t.children[0]instanceof es)?null:t.children[0].value}var hb=[" ",`
37
+ `,"\r"," "];function Tm(t,e,n={}){let{interpolationConfig:r,preserveWhitespaces:s,enableI18nLegacyMessageIdFormat:i,allowInvalidAssignmentEvents:o}=n,a=Ks(r,o),c=new Ma().parse(t,e,{leadingTriviaChars:hb,...n,tokenizeExpansionForms:!0,tokenizeBlocks:n.enableBlockSyntax??!0,tokenizeLet:n.enableLetSyntax??!0});if(!n.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let Ee={interpolationConfig:r,preserveWhitespaces:s,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(Ee.commentNodes=[]),Ee}let u=c.rootNodes,h=!(n.preserveSignificantWhitespace??!0),f=new Da(r,!s,i,void 0,n.preserveSignificantWhitespace,h),m=f.visitAllWithErrors(u);if(!n.alwaysAttemptHtmlToR3AstConversion&&m.errors&&m.errors.length>0){let Ee={interpolationConfig:r,preserveWhitespaces:s,errors:m.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(Ee.commentNodes=[]),Ee}u=m.rootNodes,s||(u=xe(new Na(!0,void 0,!1),u),f.hasI18nMeta&&(u=xe(new Da(r,!1,void 0,void 0,!0,h),u)));let{nodes:E,errors:S,styleUrls:I,styles:N,ngContentSelectors:$,commentNodes:Te}=cb(u,a,{collectCommentNodes:!!n.collectCommentNodes});S.push(...c.errors,...m.errors);let le={interpolationConfig:r,preserveWhitespaces:s,errors:S.length>0?S:null,nodes:E,styleUrls:I,styles:N,ngContentSelectors:$};return n.collectCommentNodes&&(le.commentNodes=Te),le}var fb=new on;function Ks(t=$t,e=!1){return new Qc(new ba(new Zi),t,fb,[],e)}var xm="%COMP%",db=`_nghost-${xm}`,mb=`_ngcontent-${xm}`;function Cm(t,e,n){let r=new mr,s=hu(t.selector);return r.set("type",t.type.value),s.length>0&&r.set("selectors",Es(s)),t.queries.length>0&&r.set("contentQueries",fN(t.queries,e,t.name)),t.viewQueries.length&&r.set("viewQuery",hN(t.viewQueries,e,t.name)),r.set("hostBindings",wb(t.host,t.typeSourceSpan,n,e,t.selector||"",t.name,r)),r.set("inputs",Th(t.inputs,!0)),r.set("outputs",Th(t.outputs)),t.exportAs!==null&&r.set("exportAs",se(t.exportAs.map(i=>y(i)))),t.isStandalone&&r.set("standalone",y(!0)),t.isSignal&&r.set("signals",y(!0)),r}function Im(t,e){let n=[],r=e.providers,s=e.viewProviders,i=Object.keys(e.inputs);if(r||s){let o=[r||new ct([])];s&&o.push(s),n.push(L(d.ProvidersFeature).callFn(o))}for(let o of i)if(e.inputs[o].transformFunction!==null){n.push(L(d.InputTransformsFeatureFeature));break}e.hostDirectives?.length&&n.push(L(d.HostDirectivesFeature).callFn([Cb(e.hostDirectives)])),e.usesInheritance&&n.push(L(d.InheritDefinitionFeature)),e.fullInheritance&&n.push(L(d.CopyDefinitionFeature)),e.lifecycle.usesOnChanges&&n.push(L(d.NgOnChangesFeature)),e.hasOwnProperty("template")&&e.isStandalone&&n.push(L(d.StandaloneFeature)),n.length&&t.set("features",se(n))}function Am(t,e,n){let r=Cm(t,e,n);Im(r,t);let s=L(d.defineDirective).callFn([r.toLiteralMap()],void 0,!0),i=Sb(t);return{expression:s,type:i,statements:[]}}function Nm(t,e,n){let r=Cm(t,e,n);Im(r,t);let s=t.selector&&Qt.parse(t.selector),i=s&&s[0];if(i){let f=i.getAttrs();f.length&&r.set("attrs",e.getConstLiteral(se(f.map(m=>m!=null?y(m):y(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 Xe(f,t.defer.dependenciesFn,void 0,Re.Final)),a=W(f)}let l=WA(t.name,t.template.nodes,e,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,a);am(l,b.Tmpl);let c=qA(l,e);if(l.contentSelectors!==null&&r.set("ngContentSelectors",l.contentSelectors),r.set("decls",y(l.root.decls)),r.set("vars",y(l.root.vars)),l.consts.length>0&&(l.constsInitializers.length>0?r.set("consts",tn([],[...l.constsInitializers,new et(se(l.consts))])):r.set("consts",se(l.consts))),r.set("template",c),t.declarationListEmitMode!==3&&t.declarations.length>0)r.set("dependencies",yb(se(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",L(d.getComponentDepsFactory).callFn(f))}if(t.encapsulation===null&&(t.encapsulation=un.Emulated),t.styles&&t.styles.length){let m=(t.encapsulation==un.Emulated?xb(t.styles,mb,db):t.styles).reduce((E,S)=>(S.trim().length>0&&E.push(e.getConstLiteral(y(S))),E),[]);m.length>0&&r.set("styles",se(m))}else t.encapsulation===un.Emulated&&(t.encapsulation=un.None);t.encapsulation!==un.Emulated&&r.set("encapsulation",y(t.encapsulation)),t.animations!==null&&r.set("data",Ye([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==Bo.Default?r.set("changeDetection",y(t.changeDetection)):typeof t.changeDetection=="object"&&r.set("changeDetection",t.changeDetection));let u=L(d.defineComponent).callFn([r.toLiteralMap()],void 0,!0),h=gb(t);return{expression:u,type:h,statements:[]}}function gb(t){let e=bm(t);return e.push(su(t.template.ngContentSelectors)),e.push(Be(y(t.isStandalone))),e.push(Rm(t)),t.isSignal&&e.push(Be(y(t.isSignal))),Be(L(d.ComponentDeclaration,e))}function yb(t,e){switch(e){case 0:return t;case 1:return tn([],t);case 2:let n=t.prop("map").callFn([L(d.resolveForwardRef)]);return tn([],n);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function vb(t){return Be(y(t))}function ru(t){let e=Object.keys(t).map(n=>{let r=Array.isArray(t[n])?t[n][0]:t[n];return{key:n,value:y(r),quoted:!0}});return Ye(e)}function su(t){return t.length>0?Be(se(t.map(e=>y(e)))):Zt}function bm(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[Ba(t.type.type,t.typeArgumentCount),e!==null?vb(e):Zt,t.exportAs!==null?su(t.exportAs):Zt,Be(Eb(t)),Be(ru(t.outputs)),su(t.queries.map(n=>n.propertyName))]}function Eb(t){return Ye(Object.keys(t.inputs).map(e=>{let n=t.inputs[e],r=[{key:"alias",value:y(n.bindingPropertyName),quoted:!0},{key:"required",value:y(n.required),quoted:!0}];return n.isSignal&&r.push({key:"isSignal",value:y(n.isSignal),quoted:!0}),{key:e,value:Ye(r),quoted:!0}}))}function Sb(t){let e=bm(t);return e.push(Zt),e.push(Be(y(t.isStandalone))),e.push(Rm(t)),t.isSignal&&e.push(Be(y(t.isSignal))),Be(L(d.DirectiveDeclaration,e))}function wb(t,e,n,r,s,i,o){let a=n.createBoundHostProperties(t.properties,e),l=n.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=y(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=y(t.specialAttributes.classAttr));let c=jA({componentName:i,componentSelector:s,properties:a,events:l,attributes:t.attributes},n,r);am(c,b.Host),o.set("hostAttrs",c.root.attributes);let u=c.root.vars;return u!==null&&u>0&&o.set("hostVars",y(u)),GA(c)}var Tb=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function Dm(t){let e={},n={},r={},s={};for(let i of Object.keys(t)){let o=t[i],a=i.match(Tb);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]=y(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 _m(t,e){let n=Ks();return n.createDirectiveHostEventAsts(t.listeners,e),n.createBoundHostProperties(t.properties,e),n.errors}function xb(t,e,n){let r=new yc;return t.map(s=>r.shimCssText(s,e,n))}function Rm(t){return t.hostDirectives?.length?Be(se(t.hostDirectives.map(e=>Ye([{key:"directive",value:ro(e.directive.type),quoted:!1},{key:"inputs",value:ru(e.inputs||{}),quoted:!1},{key:"outputs",value:ru(e.outputs||{}),quoted:!1}])))):Zt}function Cb(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=Gf(r.inputs);i&&s.push({key:"inputs",value:i,quoted:!1})}if(r.outputs){let i=Gf(r.outputs);i&&s.push({key:"outputs",value:i,quoted:!1})}e.push(Ye(s))}r.isForwardReference&&(n=!0)}return n?new Yt([],[new et(se(e))]):se(e)}function Gf(t){let e=[];for(let n in t)t.hasOwnProperty(n)&&e.push(y(n),y(t[n]));return e.length>0?se(e):null}var Oa=class{constructor(e){this.directiveMatcher=e}bind(e){if(!e.template)throw new Error("Binding without a template not yet supported");let n=iu.apply(e.template),r=Ib(n),{directives:s,eagerDirectives:i,bindings:o,references:a}=ou.apply(e.template,this.directiveMatcher),{expressions:l,symbols:c,nestingLevel:u,usedPipes:h,eagerPipes:f,deferBlocks:m}=au.applyWithScope(e.template,n);return new lu(e,s,i,o,a,l,c,u,r,h,f,m)}},iu=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 Vn}static newRootScope(){return new t(null,null)}static apply(e){let n=t.newRootScope();return n.ingest(e),n}ingest(e){e instanceof re?(e.variables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof Rn?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(n=>n.visit(this))):e instanceof En?(this.visitVariable(e.item),e.contextVariables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof Fi||e instanceof Bi||e instanceof Vn||e instanceof Oi||e instanceof Mi||e instanceof Li||e instanceof hr?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)}},ou=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=yu(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(l=>l===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)),l=a!==void 0?a:e;this.bindings.set(i,l)};e.inputs.forEach(i=>s(i,"inputs")),e.attributes.forEach(i=>s(i,"inputs")),e instanceof re&&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){}},au=class t extends pr{constructor(e,n,r,s,i,o,a,l,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=l,this.level=c,this.visitNode=u=>u.visit(this)}visit(e,n){e instanceof me?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,l=e instanceof re?e:null,c=[];return new t(r,s,o,a,c,i,n,l,0).ingest(e),{expressions:r,symbols:s,nestingLevel:i,usedPipes:o,eagerPipes:a,deferBlocks:c}}ingest(e){if(e instanceof re)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Rn)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof En)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 Vn){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 Fi||e instanceof Bi||e instanceof Oi||e instanceof Mi||e instanceof Li||e instanceof hr?(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 $e))return;let r=this.scope.lookup(n);r instanceof Qe&&e.receiver instanceof fn||r!==null&&this.bindings.set(e,r)}},lu=class{constructor(e,n,r,s,i,o,a,l,c,u,h,f){this.target=e,this.directives=n,this.eagerDirectives=r,this.bindings=s,this.references=i,this.exprTargets=o,this.symbols=a,this.nestingLevel=l,this.scopedNodeEntities=c,this.usedPipes=u,this.eagerPipes=h,this.deferredBlocks=f.map(m=>m[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 Zo)&&!(n instanceof ea)&&!(n instanceof Jo))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 Ms)){if(i!==null)return null;o instanceof ie&&(i=o)}}return i}let s=this.findEntityInScope(e,r);if(s instanceof Sn&&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 Sn?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 ie?e:e instanceof re?null:this.referenceTargetToElement(e.node)}};function Ib(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 cu=class{},uu=class{constructor(e=new hc){this.jitEvaluator=e,this.FactoryTarget=st,this.ResourceLoader=cu,this.elementSchemaRegistry=new on}compilePipe(e,n,r){let s={name:r.name,type:Le(r.type),typeArgumentCount:0,deps:null,pipeName:r.pipeName,pure:r.pure,isStandalone:r.isStandalone},i=gc(s);return this.jitExpression(i.expression,e,n,[])}compilePipeDeclaration(e,n,r){let s=qb(r),i=gc(s);return this.jitExpression(i.expression,e,n,[])}compileInjectable(e,n,r){let{expression:s,statements:i}=cc({name:r.name,type:Le(r.type),typeArgumentCount:r.typeArgumentCount,providedIn:Xf(r.providedIn),useClass:ds(r,"useClass"),useFactory:zf(r,"useFactory"),useValue:ds(r,"useValue"),useExisting:ds(r,"useExisting"),deps:r.deps?.map(Lm)},!0);return this.jitExpression(s,e,n,i)}compileInjectableDeclaration(e,n,r){let{expression:s,statements:i}=cc({name:r.type.name,type:Le(r.type),typeArgumentCount:0,providedIn:Xf(r.providedIn),useClass:ds(r,"useClass"),useFactory:zf(r,"useFactory"),useValue:ds(r,"useValue"),useExisting:ds(r,"useExisting"),deps:r.deps?.map(Yf)},!0);return this.jitExpression(s,e,n,i)}compileInjector(e,n,r){let s={name:r.name,type:Le(r.type),providers:r.providers&&r.providers.length>0?new U(r.providers):null,imports:r.imports.map(o=>new U(o))},i=dc(s);return this.jitExpression(i.expression,e,n,[])}compileInjectorDeclaration(e,n,r){let s=Gb(r),i=dc(s);return this.jitExpression(i.expression,e,n,[])}compileNgModule(e,n,r){let s={kind:hn.Global,type:Le(r.type),bootstrap:r.bootstrap.map(Le),declarations:r.declarations.map(Le),publicDeclarationTypes:null,imports:r.imports.map(Le),includeImportTypes:!0,exports:r.exports.map(Le),selectorScopeMode:Bs.Inline,containsForwardDecls:!1,schemas:r.schemas?r.schemas.map(Le):null,id:r.id?new U(r.id):null},i=Dd(s);return this.jitExpression(i.expression,e,n,[])}compileNgModuleDeclaration(e,n,r){let s=US(r);return this.jitExpression(s,e,n,[])}compileDirective(e,n,r){let s=jf(r);return this.compileDirectiveFromMeta(e,n,s)}compileDirectiveDeclaration(e,n,r){let s=this.createParseSourceSpan("Directive",r.type.name,n),i=Pm(r,s);return this.compileDirectiveFromMeta(e,n,i)}compileDirectiveFromMeta(e,n,r){let s=new Ai,i=Ks(),o=Am(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileComponent(e,n,r){let{template:s,interpolation:i,defer:o}=Mm(r.template,r.name,n,r.preserveWhitespaces,r.interpolation,void 0),a={...r,...jf(r),selector:r.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:r.declarations.map(Db),declarationListEmitMode:0,defer:o,styles:[...r.styles,...s.styles],encapsulation:r.encapsulation,interpolation:i,changeDetection:r.changeDetection??null,animations:r.animations!=null?new U(r.animations):null,viewProviders:r.viewProviders!=null?new U(r.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0},l=`ng:///${r.name}.js`;return this.compileComponentFromMeta(e,l,a)}compileComponentDeclaration(e,n,r){let s=this.createParseSourceSpan("Component",r.type.name,n),i=bb(r,s,n);return this.compileComponentFromMeta(e,n,i)}compileComponentFromMeta(e,n,r){let s=new Ai,i=Ks(r.interpolation),o=Nm(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileFactory(e,n,r){let s=er({name:r.name,type:Le(r.type),typeArgumentCount:r.typeArgumentCount,deps:kb(r.deps),target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}compileFactoryDeclaration(e,n,r){let s=er({name:r.type.name,type:Le(r.type),typeArgumentCount:0,deps:Array.isArray(r.deps)?r.deps.map(Yf):r.deps,target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}createParseSourceSpan(e,n,r){return PS(e,n,r)}jitExpression(e,n,r,s){let i=[...s,new Xe("$def",e,void 0,Re.Exported)];return this.jitEvaluator.evaluateStatements(r,i,new mc(n),!0).$def}};function Hf(t){return{...t,isSignal:t.isSignal,predicate:km(t.predicate),read:t.read?new U(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly}}function Wf(t){return{propertyName:t.propertyName,first:t.first??!1,predicate:km(t.predicate),descendants:t.descendants??!1,read:t.read?new U(t.read):null,static:t.static??!1,emitDistinctChangesOnly:t.emitDistinctChangesOnly??!0,isSignal:!!t.isSignal}}function km(t){return Array.isArray(t)?t:ns(new U(t),1)}function jf(t){let e=Vb(t.inputs||[]),n=Ol(t.outputs||[]),r=t.propMetadata,s={},i={};for(let a in r)r.hasOwnProperty(a)&&r[a].forEach(l=>{Fb(l)?s[a]={bindingPropertyName:l.alias||a,classPropertyName:a,required:l.required||!1,isSignal:!!l.isSignal,transformFunction:l.transform!=null?new U(l.transform):null}:Bb(l)&&(i[a]=l.alias||a)});let o=t.hostDirectives?.length?t.hostDirectives.map(a=>typeof a=="function"?{directive:Le(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:Le(a.directive),isForwardReference:!1,inputs:a.inputs?Ol(a.inputs):null,outputs:a.outputs?Ol(a.outputs):null}):null;return{...t,typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:Le(t.type),deps:null,host:{...Mb(t.propMetadata,t.typeSourceSpan,t.host)},inputs:{...e,...s},outputs:{...n,...i},queries:t.queries.map(Hf),providers:t.providers!=null?new U(t.providers):null,viewQueries:t.viewQueries.map(Hf),fullInheritance:!1,hostDirectives:o}}function Pm(t,e){let n=t.hostDirectives?.length?t.hostDirectives.map(r=>({directive:Le(r.directive),isForwardReference:!1,inputs:r.inputs?Kf(r.inputs):null,outputs:r.outputs?Kf(r.outputs):null})):null;return{name:t.type.name,type:Le(t.type),typeSourceSpan:e,selector:t.selector??null,inputs:t.inputs?$b(t.inputs):{},outputs:t.outputs??{},host:Ab(t.host),queries:(t.queries??[]).map(Wf),viewQueries:(t.viewQueries??[]).map(Wf),providers:t.providers!==void 0?new U(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 Ab(t={}){return{attributes:Nb(t.attributes??{}),listeners:t.listeners??{},properties:t.properties??{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function Kf(t){let e=null;for(let n=1;n<t.length;n+=2)e=e||{},e[t[n-1]]=t[n];return e}function Nb(t){let e={};for(let n of Object.keys(t))e[n]=new U(t[n]);return e}function bb(t,e,n){let{template:r,interpolation:s,defer:i}=Mm(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(Ll(a));break;case"pipe":o.push(Rb(a));break}else(t.components||t.directives||t.pipes)&&(t.components&&o.push(...t.components.map(a=>Ll(a,!0))),t.directives&&o.push(...t.directives.map(a=>Ll(a))),t.pipes&&o.push(..._b(t.pipes)));return{...Pm(t,e),template:r,styles:t.styles??[],declarations:o,viewProviders:t.viewProviders!==void 0?new U(t.viewProviders):null,animations:t.animations!==void 0?new U(t.animations):null,defer:i,changeDetection:t.changeDetection??Bo.Default,encapsulation:t.encapsulation??un.Emulated,interpolation:s,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0}}function Db(t){return{...t,type:new U(t.type)}}function Ll(t,e=null){return{kind:$s.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new U(t.type),inputs:t.inputs??[],outputs:t.outputs??[],exportAs:t.exportAs??null}}function _b(t){return t?Object.keys(t).map(e=>({kind:$s.Pipe,name:e,type:new U(t[e])})):[]}function Rb(t){return{kind:$s.Pipe,name:t.name,type:new U(t.type)}}function Mm(t,e,n,r,s,i){let o=s?Ui.fromArray(s):$t,a=Tm(t,n,{preserveWhitespaces:r,interpolationConfig:o});if(a.errors!==null){let u=a.errors.map(h=>h.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${u}`)}let c=new Oa(new ir).bind({template:a.nodes});return{template:a,interpolation:o,defer:Pb(c,i)}}function ds(t,e){if(t.hasOwnProperty(e))return ns(new U(t[e]),0)}function zf(t,e){if(t.hasOwnProperty(e))return new U(t[e])}function Xf(t){let e=typeof t=="function"?new U(t):new Ce(t??null);return ns(e,0)}function kb(t){return t==null?null:t.map(Lm)}function Lm(t){let e=t.attribute!=null,n=t.token===null?null:new U(t.token),r=e?new U(t.attribute):n;return Om(r,e,t.host,t.optional,t.self,t.skipSelf)}function Yf(t){let e=t.attribute??!1,n=t.token===null?null:new U(t.token);return Om(n,e,t.host??!1,t.optional??!1,t.self??!1,t.skipSelf??!1)}function Om(t,e,n,r,s,i){let o=e?y("unknown"):null;return{token:t,attributeNameType:o,host:n,optional:r,self:s,skipSelf:i}}function Pb(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 U(i):null)}return{mode:0,blocks:r}}function Mb(t,e,n){let r=Dm(n||{}),s=_m(r,e);if(s.length)throw new Error(s.map(i=>i.msg).join(`
38
+ `));for(let i in t)t.hasOwnProperty(i)&&t[i].forEach(o=>{Lb(o)?r.properties[o.hostPropertyName||i]=pd("this",i):Ob(o)&&(r.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});return r}function Lb(t){return t.ngMetadataName==="HostBinding"}function Ob(t){return t.ngMetadataName==="HostListener"}function Fb(t){return t.ngMetadataName==="Input"}function Bb(t){return t.ngMetadataName==="Output"}function $b(t){return Object.keys(t).reduce((e,n)=>{let r=t[n];return typeof r=="string"||Array.isArray(r)?e[n]=Ub(r):e[n]={bindingPropertyName:r.publicName,classPropertyName:n,transformFunction:r.transformFunction!==null?new U(r.transformFunction):null,required:r.isRequired,isSignal:r.isSignal},e},{})}function Ub(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 U(t[2]):null,required:!1,isSignal:!1}}function Vb(t){return t.reduce((e,n)=>{if(typeof n=="string"){let[r,s]=Fm(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 U(n.transform):null};return e},{})}function Ol(t){return t.reduce((e,n)=>{let[r,s]=Fm(n);return e[s]=r,e},{})}function Fm(t){let[e,n]=t.split(":",2).map(r=>r.trim());return[n??e,e]}function qb(t){return{name:t.type.name,type:Le(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??!1}}function Gb(t){return{name:t.type.name,type:Le(t.type),providers:t.providers!==void 0&&t.providers.length>0?new U(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new U(e)):[]}}function Hb(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new uu}var RM=new Ni("18.2.12");var Qf;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(Qf||(Qf={}));var pu=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 Kt.PARSABLE_DATA}},kM=new pu;var Jf;(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"})(Jf||(Jf={}));Hb(ui);var lD=x(require("typescript"),1),ja=x(require("typescript"),1),uD=x(require("typescript"),1),Ka=x(require("typescript"),1),pD=x(require("typescript"),1),Se=x(require("typescript"),1),$u=x(require("typescript"),1),Wn=x(require("typescript"),1),eg=x(require("typescript"),1),Sr=x(require("typescript"),1);var ge=x(require("typescript"),1);var yD=x(require("typescript"),1),vD=x(require("typescript"),1),ye=x(require("typescript"),1),LM=(0,Qm.createRequire)(R),Q;(function(t){t[t.DECORATOR_ARG_NOT_LITERAL=1001]="DECORATOR_ARG_NOT_LITERAL",t[t.DECORATOR_ARITY_WRONG=1002]="DECORATOR_ARITY_WRONG",t[t.DECORATOR_NOT_CALLED=1003]="DECORATOR_NOT_CALLED",t[t.DECORATOR_UNEXPECTED=1005]="DECORATOR_UNEXPECTED",t[t.DECORATOR_COLLISION=1006]="DECORATOR_COLLISION",t[t.VALUE_HAS_WRONG_TYPE=1010]="VALUE_HAS_WRONG_TYPE",t[t.VALUE_NOT_LITERAL=1011]="VALUE_NOT_LITERAL",t[t.INITIALIZER_API_WITH_DISALLOWED_DECORATOR=1050]="INITIALIZER_API_WITH_DISALLOWED_DECORATOR",t[t.INITIALIZER_API_DECORATOR_METADATA_COLLISION=1051]="INITIALIZER_API_DECORATOR_METADATA_COLLISION",t[t.INITIALIZER_API_NO_REQUIRED_FUNCTION=1052]="INITIALIZER_API_NO_REQUIRED_FUNCTION",t[t.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY=1053]="INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY",t[t.INCORRECTLY_DECLARED_ON_STATIC_MEMBER=1100]="INCORRECTLY_DECLARED_ON_STATIC_MEMBER",t[t.COMPONENT_MISSING_TEMPLATE=2001]="COMPONENT_MISSING_TEMPLATE",t[t.PIPE_MISSING_NAME=2002]="PIPE_MISSING_NAME",t[t.PARAM_MISSING_TOKEN=2003]="PARAM_MISSING_TOKEN",t[t.DIRECTIVE_MISSING_SELECTOR=2004]="DIRECTIVE_MISSING_SELECTOR",t[t.UNDECORATED_PROVIDER=2005]="UNDECORATED_PROVIDER",t[t.DIRECTIVE_INHERITS_UNDECORATED_CTOR=2006]="DIRECTIVE_INHERITS_UNDECORATED_CTOR",t[t.UNDECORATED_CLASS_USING_ANGULAR_FEATURES=2007]="UNDECORATED_CLASS_USING_ANGULAR_FEATURES",t[t.COMPONENT_RESOURCE_NOT_FOUND=2008]="COMPONENT_RESOURCE_NOT_FOUND",t[t.COMPONENT_INVALID_SHADOW_DOM_SELECTOR=2009]="COMPONENT_INVALID_SHADOW_DOM_SELECTOR",t[t.COMPONENT_NOT_STANDALONE=2010]="COMPONENT_NOT_STANDALONE",t[t.COMPONENT_IMPORT_NOT_STANDALONE=2011]="COMPONENT_IMPORT_NOT_STANDALONE",t[t.COMPONENT_UNKNOWN_IMPORT=2012]="COMPONENT_UNKNOWN_IMPORT",t[t.HOST_DIRECTIVE_INVALID=2013]="HOST_DIRECTIVE_INVALID",t[t.HOST_DIRECTIVE_NOT_STANDALONE=2014]="HOST_DIRECTIVE_NOT_STANDALONE",t[t.HOST_DIRECTIVE_COMPONENT=2015]="HOST_DIRECTIVE_COMPONENT",t[t.INJECTABLE_INHERITS_INVALID_CONSTRUCTOR=2016]="INJECTABLE_INHERITS_INVALID_CONSTRUCTOR",t[t.HOST_DIRECTIVE_UNDEFINED_BINDING=2017]="HOST_DIRECTIVE_UNDEFINED_BINDING",t[t.HOST_DIRECTIVE_CONFLICTING_ALIAS=2018]="HOST_DIRECTIVE_CONFLICTING_ALIAS",t[t.HOST_DIRECTIVE_MISSING_REQUIRED_BINDING=2019]="HOST_DIRECTIVE_MISSING_REQUIRED_BINDING",t[t.CONFLICTING_INPUT_TRANSFORM=2020]="CONFLICTING_INPUT_TRANSFORM",t[t.COMPONENT_INVALID_STYLE_URLS=2021]="COMPONENT_INVALID_STYLE_URLS",t[t.COMPONENT_UNKNOWN_DEFERRED_IMPORT=2022]="COMPONENT_UNKNOWN_DEFERRED_IMPORT",t[t.SYMBOL_NOT_EXPORTED=3001]="SYMBOL_NOT_EXPORTED",t[t.IMPORT_CYCLE_DETECTED=3003]="IMPORT_CYCLE_DETECTED",t[t.IMPORT_GENERATION_FAILURE=3004]="IMPORT_GENERATION_FAILURE",t[t.CONFIG_FLAT_MODULE_NO_INDEX=4001]="CONFIG_FLAT_MODULE_NO_INDEX",t[t.CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK=4002]="CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK",t[t.CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES=4003]="CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES",t[t.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL=4004]="CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL",t[t.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK=4005]="CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK",t[t.HOST_BINDING_PARSE_ERROR=5001]="HOST_BINDING_PARSE_ERROR",t[t.TEMPLATE_PARSE_ERROR=5002]="TEMPLATE_PARSE_ERROR",t[t.NGMODULE_INVALID_DECLARATION=6001]="NGMODULE_INVALID_DECLARATION",t[t.NGMODULE_INVALID_IMPORT=6002]="NGMODULE_INVALID_IMPORT",t[t.NGMODULE_INVALID_EXPORT=6003]="NGMODULE_INVALID_EXPORT",t[t.NGMODULE_INVALID_REEXPORT=6004]="NGMODULE_INVALID_REEXPORT",t[t.NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC=6005]="NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC",t[t.NGMODULE_REEXPORT_NAME_COLLISION=6006]="NGMODULE_REEXPORT_NAME_COLLISION",t[t.NGMODULE_DECLARATION_NOT_UNIQUE=6007]="NGMODULE_DECLARATION_NOT_UNIQUE",t[t.NGMODULE_DECLARATION_IS_STANDALONE=6008]="NGMODULE_DECLARATION_IS_STANDALONE",t[t.NGMODULE_BOOTSTRAP_IS_STANDALONE=6009]="NGMODULE_BOOTSTRAP_IS_STANDALONE",t[t.WARN_NGMODULE_ID_UNNECESSARY=6100]="WARN_NGMODULE_ID_UNNECESSARY",t[t.SCHEMA_INVALID_ELEMENT=8001]="SCHEMA_INVALID_ELEMENT",t[t.SCHEMA_INVALID_ATTRIBUTE=8002]="SCHEMA_INVALID_ATTRIBUTE",t[t.MISSING_REFERENCE_TARGET=8003]="MISSING_REFERENCE_TARGET",t[t.MISSING_PIPE=8004]="MISSING_PIPE",t[t.WRITE_TO_READ_ONLY_VARIABLE=8005]="WRITE_TO_READ_ONLY_VARIABLE",t[t.DUPLICATE_VARIABLE_DECLARATION=8006]="DUPLICATE_VARIABLE_DECLARATION",t[t.SPLIT_TWO_WAY_BINDING=8007]="SPLIT_TWO_WAY_BINDING",t[t.MISSING_REQUIRED_INPUTS=8008]="MISSING_REQUIRED_INPUTS",t[t.ILLEGAL_FOR_LOOP_TRACK_ACCESS=8009]="ILLEGAL_FOR_LOOP_TRACK_ACCESS",t[t.INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT=8010]="INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT",t[t.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION=8011]="CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION",t[t.DEFERRED_PIPE_USED_EAGERLY=8012]="DEFERRED_PIPE_USED_EAGERLY",t[t.DEFERRED_DIRECTIVE_USED_EAGERLY=8013]="DEFERRED_DIRECTIVE_USED_EAGERLY",t[t.DEFERRED_DEPENDENCY_IMPORTED_EAGERLY=8014]="DEFERRED_DEPENDENCY_IMPORTED_EAGERLY",t[t.ILLEGAL_LET_WRITE=8015]="ILLEGAL_LET_WRITE",t[t.LET_USED_BEFORE_DEFINITION=8016]="LET_USED_BEFORE_DEFINITION",t[t.CONFLICTING_LET_DECLARATION=8017]="CONFLICTING_LET_DECLARATION",t[t.INVALID_BANANA_IN_BOX=8101]="INVALID_BANANA_IN_BOX",t[t.NULLISH_COALESCING_NOT_NULLABLE=8102]="NULLISH_COALESCING_NOT_NULLABLE",t[t.MISSING_CONTROL_FLOW_DIRECTIVE=8103]="MISSING_CONTROL_FLOW_DIRECTIVE",t[t.TEXT_ATTRIBUTE_NOT_BINDING=8104]="TEXT_ATTRIBUTE_NOT_BINDING",t[t.MISSING_NGFOROF_LET=8105]="MISSING_NGFOROF_LET",t[t.SUFFIX_NOT_SUPPORTED=8106]="SUFFIX_NOT_SUPPORTED",t[t.OPTIONAL_CHAIN_NOT_NULLABLE=8107]="OPTIONAL_CHAIN_NOT_NULLABLE",t[t.SKIP_HYDRATION_NOT_STATIC=8108]="SKIP_HYDRATION_NOT_STATIC",t[t.INTERPOLATED_SIGNAL_NOT_INVOKED=8109]="INTERPOLATED_SIGNAL_NOT_INVOKED",t[t.UNSUPPORTED_INITIALIZER_API_USAGE=8110]="UNSUPPORTED_INITIALIZER_API_USAGE",t[t.UNINVOKED_FUNCTION_IN_EVENT_BINDING=8111]="UNINVOKED_FUNCTION_IN_EVENT_BINDING",t[t.UNUSED_LET_DECLARATION=8112]="UNUSED_LET_DECLARATION",t[t.INLINE_TCB_REQUIRED=8900]="INLINE_TCB_REQUIRED",t[t.INLINE_TYPE_CTOR_REQUIRED=8901]="INLINE_TYPE_CTOR_REQUIRED",t[t.INJECTABLE_DUPLICATE_PROV=9001]="INJECTABLE_DUPLICATE_PROV",t[t.SUGGEST_STRICT_TEMPLATES=10001]="SUGGEST_STRICT_TEMPLATES",t[t.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE=10002]="SUGGEST_SUBOPTIMAL_TYPE_INFERENCE",t[t.LOCAL_COMPILATION_UNRESOLVED_CONST=11001]="LOCAL_COMPILATION_UNRESOLVED_CONST",t[t.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION=11003]="LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"})(Q||(Q={}));function qu(t){return parseInt("-99"+t)}var jn=class extends Error{constructor(t,e,n,r){super(`FatalDiagnosticError: Code: ${t}, Message: ${Zs.default.flattenDiagnosticMessageText(n,`
39
+ `)}`),this.code=t,this.node=e,this.diagnosticMessage=n,this.relatedInformation=r,this._isFatalDiagnosticError=!0,Object.setPrototypeOf(this,new.target.prototype)}toDiagnostic(){return Gu(this.code,this.node,this.diagnosticMessage,this.relatedInformation)}};function Gu(t,e,n,r){return e=Zs.default.getOriginalNode(e),{category:Zs.default.DiagnosticCategory.Error,code:qu(t),file:Zs.default.getOriginalNode(e).getSourceFile(),start:e.getStart(void 0,!1),length:e.getWidth(),messageText:n,relatedInformation:r}}function Hu(t,e){return{category:Zs.default.DiagnosticCategory.Message,code:0,messageText:t,next:e}}var Kb=new Set([Q.DECORATOR_ARG_NOT_LITERAL,Q.IMPORT_CYCLE_DETECTED,Q.PARAM_MISSING_TOKEN,Q.SCHEMA_INVALID_ELEMENT,Q.SCHEMA_INVALID_ATTRIBUTE,Q.MISSING_REFERENCE_TARGET,Q.COMPONENT_INVALID_SHADOW_DOM_SELECTOR,Q.WARN_NGMODULE_ID_UNNECESSARY]);var Tt;(function(t){t.INVALID_BANANA_IN_BOX="invalidBananaInBox",t.NULLISH_COALESCING_NOT_NULLABLE="nullishCoalescingNotNullable",t.OPTIONAL_CHAIN_NOT_NULLABLE="optionalChainNotNullable",t.MISSING_CONTROL_FLOW_DIRECTIVE="missingControlFlowDirective",t.TEXT_ATTRIBUTE_NOT_BINDING="textAttributeNotBinding",t.UNINVOKED_FUNCTION_IN_EVENT_BINDING="uninvokedFunctionInEventBinding",t.MISSING_NGFOROF_LET="missingNgForOfLet",t.SUFFIX_NOT_SUPPORTED="suffixNotSupported",t.SKIP_HYDRATION_NOT_STATIC="skipHydrationNotStatic",t.INTERPOLATED_SIGNAL_NOT_INVOKED="interpolatedSignalNotInvoked",t.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION="controlFlowPreventingContentProjection",t.UNUSED_LET_DECLARATION="unusedLetDeclaration"})(Tt||(Tt={}));function zb(t){return uo.default.isIdentifier(t)||uo.default.isPropertyAccessExpression(t)&&uo.default.isIdentifier(t.expression)&&uo.default.isIdentifier(t.name)}var wr;(function(t){t[t.Constructor=0]="Constructor",t[t.Getter=1]="Getter",t[t.Setter=2]="Setter",t[t.Property=3]="Property",t[t.Method=4]="Method"})(wr||(wr={}));var he;(function(t){t[t.PublicWritable=0]="PublicWritable",t[t.PublicReadonly=1]="PublicReadonly",t[t.Protected=2]="Protected",t[t.Private=3]="Private",t[t.EcmaScriptPrivate=4]="EcmaScriptPrivate"})(he||(he={}));var rs={};function Xb(t,e,n){var r,s;if(t===null)return Zb();if(!De.default.isTypeReferenceNode(t))return co(t);let i=eD(t,e);if(i===null)return Qb(t);let{local:o,decl:a}=i;if(a.valueDeclaration===void 0||a.flags&De.default.SymbolFlags.ConstEnum){let u=null;if(a.declarations!==void 0&&a.declarations.length>0&&(u=a.declarations[0]),!n||u&&[De.default.SyntaxKind.TypeParameter,De.default.SyntaxKind.TypeAliasDeclaration,De.default.SyntaxKind.InterfaceDeclaration].includes(u.kind))return Yb(t,u)}let l=o.declarations&&o.declarations[0];if(l!==void 0){if(De.default.isImportClause(l)&&l.name!==void 0)return l.isTypeOnly?Wa(t,l):De.default.isImportDeclaration(l.parent)?{kind:0,expression:l.name,defaultImportStatement:l.parent}:co(t);if(De.default.isImportSpecifier(l)){if(l.isTypeOnly)return Wa(t,l);if(l.parent.parent.isTypeOnly)return Wa(t,l.parent.parent);let u=(l.propertyName||l.name).text,[h,...f]=i.symbolNames,m=l.parent.parent.parent;if(!De.default.isImportDeclaration(m))return co(t);let E=$m(m);return{kind:1,valueDeclaration:(r=a.valueDeclaration)!=null?r:null,moduleName:E,importedName:u,nestedPath:f}}else if(De.default.isNamespaceImport(l)){if(l.parent.isTypeOnly)return Wa(t,l.parent);if(i.symbolNames.length===1)return Jb(t,l.parent);let[u,h,...f]=i.symbolNames,m=l.parent.parent;if(!De.default.isImportDeclaration(m))return co(t);let E=$m(m);return{kind:1,valueDeclaration:(s=a.valueDeclaration)!=null?s:null,moduleName:E,importedName:h,nestedPath:f}}}let c=Jm(t);return c!==null?{kind:0,expression:c,defaultImportStatement:null}:co(t)}function co(t){return{kind:2,reason:{kind:5,typeNode:t}}}function Yb(t,e){return{kind:2,reason:{kind:1,typeNode:t,decl:e}}}function Wa(t,e){return{kind:2,reason:{kind:2,typeNode:t,node:e}}}function Qb(t){return{kind:2,reason:{kind:3,typeNode:t}}}function Jb(t,e){return{kind:2,reason:{kind:4,typeNode:t,importClause:e}}}function Zb(){return{kind:2,reason:{kind:0}}}function Jm(t){return De.default.isTypeReferenceNode(t)?Wu(t.typeName):null}function eD(t,e){let n=t.typeName,r=e.getSymbolAtLocation(n);if(r===void 0)return null;let s=r,i=n,o=[];for(;De.default.isQualifiedName(i);)o.unshift(i.right.text),i=i.left;if(o.unshift(i.text),i!==n){let l=e.getSymbolAtLocation(i);l!==void 0&&(s=l)}let a=r;return r.flags&De.default.SymbolFlags.Alias&&(a=e.getAliasedSymbol(r)),{local:s,decl:a,symbolNames:o}}function Wu(t){if(De.default.isQualifiedName(t)){let e=Wu(t.left);return e!==null?De.default.factory.createPropertyAccessExpression(e,t.right):null}else if(De.default.isIdentifier(t)){let e=De.default.setOriginalNode(De.default.factory.createIdentifier(t.text),t);return e.parent=t.parent,e}else return null}function $m(t){if(!De.default.isStringLiteral(t.moduleSpecifier))throw new Error("not a module specifier");return t.moduleSpecifier.text}function Ku(t){return ju.default.isClassDeclaration(t)&&tD(t.name)}function tD(t){return t!==void 0&&ju.default.isIdentifier(t)}function zu(t){switch(t){case he.EcmaScriptPrivate:return"ES private";case he.Private:return"private";case he.Protected:return"protected";case he.PublicReadonly:return"public readonly";case he.PublicWritable:default:return"public"}}var Xu=class{constructor(t,e=!1){this.checker=t,this.isLocalCompilation=e}getDecoratorsOfDeclaration(t){let e=M.default.canHaveDecorators(t)?M.default.getDecorators(t):void 0;return e!==void 0&&e.length?e.map(n=>this._reflectDecorator(n)).filter(n=>n!==null):null}getMembersOfClass(t){return Um(t).members.map(n=>{let r=Yu(n);return r===null?null:{...r,decorators:this.getDecoratorsOfDeclaration(n)}}).filter(n=>n!==null)}getConstructorParameters(t){let e=Um(t),n=e.getSourceFile().isDeclarationFile,r=e.members.find(s=>M.default.isConstructorDeclaration(s)&&(n||s.body!==void 0));return r===void 0?null:r.parameters.map(s=>{let i=Vm(s.name),o=this.getDecoratorsOfDeclaration(s),a=s.type||null,l=a;if(l&&M.default.isUnionTypeNode(l)){let u=l.types.filter(h=>!(M.default.isLiteralTypeNode(h)&&h.literal.kind===M.default.SyntaxKind.NullKeyword));u.length===1&&(l=u[0])}let c=Xb(l,this.checker,this.isLocalCompilation);return{name:i,nameNode:s.name,typeValueReference:c,typeNode:a,decorators:o}})}getImportOfIdentifier(t){let e=this.getDirectImportOfIdentifier(t);return e!==null?e:M.default.isQualifiedName(t.parent)&&t.parent.right===t?this.getImportOfNamespacedIdentifier(t,sD(t.parent)):M.default.isPropertyAccessExpression(t.parent)&&t.parent.name===t?this.getImportOfNamespacedIdentifier(t,iD(t.parent)):null}getExportsOfModule(t){if(!M.default.isSourceFile(t))throw new Error("getExportsOfModule() called on non-SourceFile in TS code");let e=this.checker.getSymbolAtLocation(t);if(e===void 0)return null;let n=new Map;return this.checker.getExportsOfModule(e).forEach(r=>{let s=this.getDeclarationOfSymbol(r,null);s!==null&&n.set(r.name,s)}),n}isClass(t){return Ku(t)}hasBaseClass(t){return this.getBaseClassExpression(t)!==null}getBaseClassExpression(t){if(!(M.default.isClassDeclaration(t)||M.default.isClassExpression(t))||t.heritageClauses===void 0)return null;let e=t.heritageClauses.find(r=>r.token===M.default.SyntaxKind.ExtendsKeyword);if(e===void 0)return null;let n=e.types[0];return n===void 0?null:n.expression}getDeclarationOfIdentifier(t){let e=this.checker.getSymbolAtLocation(t);return e===void 0?null:this.getDeclarationOfSymbol(e,t)}getDefinitionOfFunction(t){if(!M.default.isFunctionDeclaration(t)&&!M.default.isMethodDeclaration(t)&&!M.default.isFunctionExpression(t)&&!M.default.isArrowFunction(t))return null;let e=null;t.body!==void 0&&(e=M.default.isBlock(t.body)?Array.from(t.body.statements):[M.default.factory.createReturnStatement(t.body)]);let n=this.checker.getTypeAtLocation(t),r=this.checker.getSignaturesOfType(n,M.default.SignatureKind.Call);return{node:t,body:e,signatureCount:r.length,typeParameters:t.typeParameters===void 0?null:Array.from(t.typeParameters),parameters:t.parameters.map(s=>{let i=Vm(s.name),o=s.initializer||null;return{name:i,node:s,initializer:o,type:s.type||null}})}}getGenericArityOfClass(t){return M.default.isClassDeclaration(t)?t.typeParameters!==void 0?t.typeParameters.length:0:null}getVariableValue(t){return t.initializer||null}isStaticallyExported(t){let e=t;M.default.isVariableDeclaration(t)&&M.default.isVariableDeclarationList(t.parent)&&(e=t.parent.parent);let n=M.default.canHaveModifiers(e)?M.default.getModifiers(e):void 0;return n!==void 0&&n.some(s=>s.kind===M.default.SyntaxKind.ExportKeyword)?!0:e.parent===void 0||!M.default.isSourceFile(e.parent)?!1:this.getLocalExportedDeclarationsOfSourceFile(t.getSourceFile()).has(t)}getDirectImportOfIdentifier(t){let e=this.checker.getSymbolAtLocation(t);if(e===void 0||e.declarations===void 0||e.declarations.length!==1)return null;let n=e.declarations[0],r=oD(n);return r===null||!M.default.isStringLiteral(r.moduleSpecifier)?null:{from:r.moduleSpecifier.text,name:aD(n,t),node:r}}getImportOfNamespacedIdentifier(t,e){if(e===null)return null;let n=this.checker.getSymbolAtLocation(e);if(!n||n.declarations===void 0)return null;let r=n.declarations.length===1?n.declarations[0]:null;if(!r)return null;let s=M.default.isNamespaceImport(r)?r:null;if(!s)return null;let i=s.parent.parent;return!M.default.isImportDeclaration(i)||!M.default.isStringLiteral(i.moduleSpecifier)?null:{from:i.moduleSpecifier.text,name:t.text,node:i}}getDeclarationOfSymbol(t,e){let n;if(t.valueDeclaration!==void 0?n=t.valueDeclaration:t.declarations!==void 0&&t.declarations.length>0&&(n=t.declarations[0]),n!==void 0&&M.default.isShorthandPropertyAssignment(n)){let s=this.checker.getShorthandAssignmentValueSymbol(n);return s===void 0?null:this.getDeclarationOfSymbol(s,e)}else if(n!==void 0&&M.default.isExportSpecifier(n)){let s=this.checker.getExportSpecifierLocalTargetSymbol(n);return s===void 0?null:this.getDeclarationOfSymbol(s,e)}let r=e&&this.getImportOfIdentifier(e);for(;t.flags&M.default.SymbolFlags.Alias;)t=this.checker.getAliasedSymbol(t);return t.valueDeclaration!==void 0?{node:t.valueDeclaration,viaModule:this._viaModule(t.valueDeclaration,e,r)}:t.declarations!==void 0&&t.declarations.length>0?{node:t.declarations[0],viaModule:this._viaModule(t.declarations[0],e,r)}:null}_reflectDecorator(t){let e=t.expression,n=null;if(M.default.isCallExpression(e)&&(n=Array.from(e.arguments),e=e.expression),!zb(e))return null;let r=M.default.isIdentifier(e)?e:e.name,s=this.getImportOfIdentifier(r);return{name:r.text,identifier:e,import:s,node:t,args:n}}getLocalExportedDeclarationsOfSourceFile(t){let e=t;if(e[Lu]!==void 0)return e[Lu];let n=new Set;e[Lu]=n;let r=this.checker.getSymbolAtLocation(e);if(r===void 0||r.exports===void 0)return n;let s=r.exports.values(),i=s.next();for(;i.done!==!0;){let o=i.value;o.flags&M.default.SymbolFlags.Alias&&(o=this.checker.getAliasedSymbol(o)),o.valueDeclaration!==void 0&&o.valueDeclaration.getSourceFile()===t&&n.add(o.valueDeclaration),i=s.next()}return n}_viaModule(t,e,n){return n===null&&e!==null&&t.getSourceFile()!==e.getSourceFile()?rs:n!==null&&n.from!==null&&!n.from.startsWith(".")?n.from:null}};function nD(t){let e=M.default.getModifiers(t),n=!1,r=!1,s=he.PublicWritable;if(e!==void 0)for(let i of e)switch(i.kind){case M.default.SyntaxKind.StaticKeyword:n=!0;break;case M.default.SyntaxKind.PrivateKeyword:s=he.Private;break;case M.default.SyntaxKind.ProtectedKeyword:s=he.Protected;break;case M.default.SyntaxKind.ReadonlyKeyword:r=!0;break}return r&&s===he.PublicWritable&&(s=he.PublicReadonly),t.name!==void 0&&M.default.isPrivateIdentifier(t.name)&&(s=he.EcmaScriptPrivate),{accessLevel:s,isStatic:n}}function Yu(t){let e=null,n=null,r=null,s=null;if(M.default.isPropertyDeclaration(t))e=wr.Property,n=t.initializer||null;else if(M.default.isGetAccessorDeclaration(t))e=wr.Getter;else if(M.default.isSetAccessorDeclaration(t))e=wr.Setter;else if(M.default.isMethodDeclaration(t))e=wr.Method;else if(M.default.isConstructorDeclaration(t))e=wr.Constructor;else return null;if(M.default.isConstructorDeclaration(t))r="constructor";else if(M.default.isIdentifier(t.name))r=t.name.text,s=t.name;else if(M.default.isStringLiteral(t.name))r=t.name.text,s=t.name;else if(M.default.isPrivateIdentifier(t.name))r=t.name.text,s=t.name;else return null;let{accessLevel:i,isStatic:o}=nD(t);return{node:t,implementation:t,kind:e,type:t.type||null,accessLevel:i,name:r,nameNode:s,value:n,isStatic:o}}function Qu(t){let e=new Map;return t.properties.forEach(n=>{if(M.default.isPropertyAssignment(n)){let r=rD(n.name);if(r===null)return;e.set(r,n.initializer)}else if(M.default.isShorthandPropertyAssignment(n))e.set(n.name.text,n.name);else return}),e}function Um(t){if(!M.default.isClassDeclaration(t))throw new Error(`Reflecting on a ${M.default.SyntaxKind[t.kind]} instead of a ClassDeclaration.`);return t}function Vm(t){return M.default.isIdentifier(t)?t.text:null}function rD(t){return M.default.isIdentifier(t)||M.default.isStringLiteral(t)||M.default.isNumericLiteral(t)?t.text:null}function sD(t){for(;M.default.isQualifiedName(t.left);)t=t.left;return M.default.isIdentifier(t.left)?t.left:null}function iD(t){for(;M.default.isPropertyAccessExpression(t.expression);)t=t.expression;return M.default.isIdentifier(t.expression)?t.expression:null}function oD(t){let e=t.parent;for(;e&&!M.default.isSourceFile(e);){if(M.default.isImportDeclaration(e))return e;e=e.parent}return null}function aD(t,e){return M.default.isImportSpecifier(t)?(t.propertyName!==void 0?t.propertyName:t.name).text:e.text}var Lu=Symbol("LocalExportedDeclarations");function Fu(t){return t.name!==void 0&&Zm.default.isIdentifier(t.name)?t.name:null}var ss=class{constructor(t,e=null){this.node=t,this.identifiers=[],this.synthetic=!1,this._alias=null,e===rs?(this.isAmbient=!0,this.bestGuessOwningModule=null):(this.isAmbient=!1,this.bestGuessOwningModule=e);let n=Fu(t);n!==null&&this.identifiers.push(n)}get ownedByModuleGuess(){return this.bestGuessOwningModule!==null?this.bestGuessOwningModule.specifier:null}get hasOwningModuleGuess(){return this.bestGuessOwningModule!==null}get debugName(){let t=Fu(this.node);return t!==null?t.text:null}get alias(){return this._alias}addIdentifier(t){this.identifiers.push(t)}getIdentityIn(t){return this.identifiers.find(e=>e.getSourceFile()===t)||null}getIdentityInExpression(t){let e=t.getSourceFile();return this.identifiers.find(n=>n.getSourceFile()!==e?!1:n.pos>=t.pos&&n.end<=t.end)||null}getOriginForDiagnostics(t,e=t){let n=this.getIdentityInExpression(t);return n!==null?n:e}cloneWithAlias(t){let e=new ss(this.node,this.isAmbient?rs:this.bestGuessOwningModule);return e.identifiers=[...this.identifiers],e._alias=t,e}cloneWithNoIdentifiers(){let t=new ss(this.node,this.isAmbient?rs:this.bestGuessOwningModule);return t._alias=this._alias,t.identifiers=[],t}};var Bu;(function(t){t[t.None=0]="None",t[t.ForceNewImport=1]="ForceNewImport",t[t.NoAliasing=2]="NoAliasing",t[t.AllowTypeImports=4]="AllowTypeImports",t[t.AllowRelativeDtsImports=8]="AllowRelativeDtsImports",t[t.AllowAmbientReferences=16]="AllowAmbientReferences"})(Bu||(Bu={}));var qm=Symbol("patchedReferencedAliases");function Ju(t){cD(t)||Gm();let e=t.getEmitResolver(),n=e[qm];if(n!==void 0)return n;let r=e.isReferencedAliasDeclaration;r===void 0&&Gm();let s=new Set;return e.isReferencedAliasDeclaration=function(i,...o){return Zu(i)&&s.has(i)?!0:r.call(e,i,...o)},e[qm]=s}function Zu(t){return ja.default.isImportSpecifier(t)||ja.default.isNamespaceImport(t)||ja.default.isImportClause(t)}function cD(t){return t.getEmitResolver!==void 0}function Gm(){throw Error(`Angular compiler is incompatible with this version of the TypeScript compiler.
40
40
 
41
41
  If you recently updated TypeScript and this issue surfaces now, consider downgrading.
42
42
 
43
- Please report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.`)}var $M=Symbol("DefaultImportDeclaration");var ep=class{constructor(){this.fileToNamedImports=new WeakMap,this.fileToNamespaceImports=new WeakMap}isPotentialReferenceToNamedImport(t,e,n){let r=t.getSourceFile();this.scanImports(r);let i=this.fileToNamedImports.get(r).get(n),o=i?.get(e);return o!==void 0&&o.has(t.text)}isPotentialReferenceToNamespaceImport(t,e){var n,r;let s=t.getSourceFile();return this.scanImports(s),(r=(n=this.fileToNamespaceImports.get(s).get(e))==null?void 0:n.has(t.text))!=null?r:!1}hasNamedImport(t,e,n){this.scanImports(t);let s=this.fileToNamedImports.get(t).get(n);return s!==void 0&&s.has(e)}hasNamespaceImport(t,e){return this.scanImports(t),this.fileToNamespaceImports.get(t).has(e)}scanImports(t){var e,n;if(this.fileToNamedImports.has(t)&&this.fileToNamespaceImports.has(t))return;let r=new Map,s=new Map;this.fileToNamedImports.set(t,r),this.fileToNamespaceImports.set(t,s);for(let i of t.statements){if(!Ka.default.isImportDeclaration(i)||!Ka.default.isStringLiteralLike(i.moduleSpecifier)||((e=i.importClause)==null?void 0:e.namedBindings)===void 0)continue;let o=i.moduleSpecifier.text;if(Ka.default.isNamespaceImport(i.importClause.namedBindings))s.has(o)||s.set(o,new Set),s.get(o).add(i.importClause.namedBindings.name.text);else for(let a of i.importClause.namedBindings.elements){let l=a.name.text,c=a.propertyName===void 0?l:a.propertyName.text;r.has(o)||r.set(o,new Map);let u=r.get(o);u.has(c)||u.set(c,new Set),(n=u.get(c))==null||n.add(l)}}}};function hD(){let t=new Set,e=(r,s)=>t.has(`${r.fileName}@@${s}`),n=(r,s)=>t.add(`${r.fileName}@@${s}`);return(r,s)=>{let i=r;if(i.identifiers===void 0)throw new Error("Source file unexpectedly lacks map of parsed `identifiers`.");let o=c=>!i.identifiers.has(c)&&!e(i,c);if(o(s))return n(i,s),null;let a=null,l=1;do a=`${s}_${l++}`;while(!o(a));return n(i,a),$u.default.factory.createUniqueName(a,$u.default.GeneratedIdentifierFlags.Optimistic)}}function fD(t,e){return n=>{let{affectedFiles:r,newImports:s,updatedImports:i,reusedOriginalAliasDeclarations:o,deletedImports:a}=t.finalize();if(o.size>0){let c=Ju(n);o.forEach(u=>c.add(u))}if(e!==void 0)for(let[c,u]of e.entries())u.length>0&&r.add(c);let l=c=>{if(!Wn.default.isImportDeclaration(c))return c;if(a.has(c))return;if(c.importClause===void 0||!Wn.default.isImportClause(c.importClause))return c;let u=c.importClause;if(u.namedBindings===void 0||!Wn.default.isNamedImports(u.namedBindings)||!i.has(u.namedBindings))return c;let h=n.factory.updateImportClause(u,u.isTypeOnly,u.name,i.get(u.namedBindings)),f=n.factory.updateImportDeclaration(c,c.modifiers,h,c.moduleSpecifier,c.attributes);return Wn.default.setOriginalNode(f,{importClause:h,kind:f.kind}),f};return c=>{var u,h;if(!r.has(c.fileName))return c;c=Wn.default.visitEachChild(c,l,n);let f=(u=e?.get(c.fileName))!=null?u:[],m=[],E=[];for(let S of c.statements)dD(S)?m.push(S):E.push(S);return n.factory.updateSourceFile(c,[...m,...(h=s.get(c.fileName))!=null?h:[],...f,...E],c.isDeclarationFile,c.referencedFiles,c.typeReferenceDirectives,c.hasNoDefaultLib,c.libReferenceDirectives)}}}function dD(t){return Wn.default.isImportDeclaration(t)||Wn.default.isImportEqualsDeclaration(t)||Wn.default.isNamespaceImport(t)}function mD(t,e){let n=tg(e),r=t.directReuseCache.get(n);if(r!==void 0)return r;let s=t.namespaceImportReuseCache.get(e.exportModuleSpecifier);return s===void 0?null:e.exportSymbolName===null?s:[s,eg.default.factory.createIdentifier(e.exportSymbolName)]}function Hm(t,e,n){e.directReuseCache.set(tg(t),n),t.exportSymbolName===null&&!Array.isArray(n)&&e.namespaceImportReuseCache.set(t.exportModuleSpecifier,n)}function tg(t){return`${t.requestedFile.fileName}:${t.exportModuleSpecifier}:${t.exportSymbolName}${t.unsafeAliasOverride?":"+t.unsafeAliasOverride:""}`}function gD(t,e,n){let r=null;for(let a=e.statements.length-1;a>=0;a--){let l=e.statements[a];if(!(!Sr.default.isImportDeclaration(l)||!Sr.default.isStringLiteral(l.moduleSpecifier)||!l.importClause||l.importClause.isTypeOnly||l.moduleSpecifier.text!==n.exportModuleSpecifier)&&l.importClause.namedBindings){let u=l.importClause.namedBindings;if(Sr.default.isNamespaceImport(u))return t.reusedAliasDeclarations.add(u),n.exportSymbolName===null?u.name:[u.name,Sr.default.factory.createIdentifier(n.exportSymbolName)];if(Sr.default.isNamedImports(u)&&n.exportSymbolName!==null){let h=u.elements.find(f=>{var m;let E;return n.unsafeAliasOverride?E=((m=f.propertyName)==null?void 0:m.text)===n.exportSymbolName&&f.name.text===n.unsafeAliasOverride:E=f.propertyName?f.propertyName.text===n.exportSymbolName:f.name.text===n.exportSymbolName,!f.isTypeOnly&&E});if(h!==void 0)return t.reusedAliasDeclarations.add(h),h.name;r=l}}}if(r===null||n.exportSymbolName===null)return null;t.updatedImports.has(r)||t.updatedImports.set(r,[]);let s=t.updatedImports.get(r),i=Sr.default.factory.createIdentifier(n.exportSymbolName),o=n.unsafeAliasOverride?Sr.default.factory.createIdentifier(n.unsafeAliasOverride):t.generateUniqueIdentifier(e,n.exportSymbolName);return s.push({propertyName:i,fileUniqueAlias:o}),o??i}var tp=class{constructor(t={}){var e,n,r,s,i,o;this.newImports=new Map,this.removedImports=new Map,this.nextUniqueIndex=0,this.reuseGeneratedImportsTracker={directReuseCache:new Map,namespaceImportReuseCache:new Map},this.config={shouldUseSingleQuotes:(e=t.shouldUseSingleQuotes)!=null?e:()=>!1,rewriter:(n=t.rewriter)!=null?n:null,disableOriginalSourceFileReuse:(r=t.disableOriginalSourceFileReuse)!=null?r:!1,forceGenerateNamespacesForNewImports:(s=t.forceGenerateNamespacesForNewImports)!=null?s:!1,namespaceImportPrefix:(i=t.namespaceImportPrefix)!=null?i:"i",generateUniqueIdentifier:(o=t.generateUniqueIdentifier)!=null?o:hD()},this.reuseSourceFileImportsTracker={generateUniqueIdentifier:this.config.generateUniqueIdentifier,reusedAliasDeclarations:new Set,updatedImports:new Map}}addSideEffectImport(t,e){this.config.rewriter!==null&&(e=this.config.rewriter.rewriteSpecifier(e,t.fileName)),this._getNewImportsTrackerForFile(t).sideEffectImports.add(e)}addImport(t){var e,n;this.config.rewriter!==null&&(t.exportSymbolName!==null&&(t.exportSymbolName=this.config.rewriter.rewriteSymbol(t.exportSymbolName,t.exportModuleSpecifier)),t.exportModuleSpecifier=this.config.rewriter.rewriteSpecifier(t.exportModuleSpecifier,t.requestedFile.fileName)),t.exportSymbolName!==null&&!t.asTypeReference&&((n=(e=this.removedImports.get(t.requestedFile))==null?void 0:e.get(t.exportModuleSpecifier))==null||n.delete(t.exportSymbolName));let r=mD(this.reuseGeneratedImportsTracker,t);if(r!==null)return Wm(!!t.asTypeReference,r);let s=this._generateNewImport(t);return Hm(t,this.reuseGeneratedImportsTracker,s),Wm(!!t.asTypeReference,s)}removeImport(t,e,n){let r=this.removedImports.get(t);r||(r=new Map,this.removedImports.set(t,r));let s=r.get(n);s||(s=new Set,r.set(n,s)),s.add(e)}_generateNewImport(t){var e;let{requestedFile:n}=t,r=this.config.disableOriginalSourceFileReuse,s=this.config.forceGenerateNamespacesForNewImports;if(!r){let h=gD(this.reuseSourceFileImportsTracker,n,t);if(h!==null)return h}let{namedImports:i,namespaceImports:o}=this._getNewImportsTrackerForFile(n);if(t.exportSymbolName===null||s){let h=`${this.config.namespaceImportPrefix}${this.nextUniqueIndex++}`,f=Se.default.factory.createNamespaceImport((e=this.config.generateUniqueIdentifier(n,h))!=null?e:Se.default.factory.createIdentifier(h));return o.set(t.exportModuleSpecifier,f),Hm({...t,exportSymbolName:null},this.reuseGeneratedImportsTracker,f.name),t.exportSymbolName!==null?[f.name,Se.default.factory.createIdentifier(t.exportSymbolName)]:f.name}i.has(t.exportModuleSpecifier)||i.set(t.exportModuleSpecifier,[]);let a=Se.default.factory.createIdentifier(t.exportSymbolName),l=t.unsafeAliasOverride?null:this.config.generateUniqueIdentifier(n,t.exportSymbolName),c,u;return t.unsafeAliasOverride?(c=!0,u=Se.default.factory.createIdentifier(t.unsafeAliasOverride)):l!==null?(c=!0,u=l):(c=!1,u=a),i.get(t.exportModuleSpecifier).push(Se.default.factory.createImportSpecifier(!1,c?a:void 0,u)),u}finalize(){let t=new Set,e=new Map,n=new Map,r=new Set,s=new Map,i=(o,a)=>{t.add(o),n.has(o)?n.get(o).push(a):n.set(o,[a])};return this.reuseSourceFileImportsTracker.updatedImports.forEach((o,a)=>{let l=a.getSourceFile(),c=a.importClause.namedBindings,u=a.moduleSpecifier.text,h=c.elements.concat(o.map(({propertyName:f,fileUniqueAlias:m})=>Se.default.factory.createImportSpecifier(!1,m!==null?f:void 0,m??f))).filter(f=>this._canAddSpecifier(l,u,f));t.add(l.fileName),h.length===0?r.add(a):e.set(c,Se.default.factory.updateNamedImports(c,h))}),this.removedImports.forEach((o,a)=>{var l;if(o.size===0)return;let c=s.get(a);c||(c=a.statements.filter(Se.default.isImportDeclaration),s.set(a,c));for(let u of c){if(!((l=u.importClause)!=null&&l.namedBindings)||!Se.default.isNamedImports(u.importClause.namedBindings)||this.reuseSourceFileImportsTracker.updatedImports.has(u)||r.has(u))continue;let h=u.importClause.namedBindings,f=u.moduleSpecifier.text,m=h.elements.filter(E=>this._canAddSpecifier(a,f,E));m.length===0?(t.add(a.fileName),r.add(u)):m.length!==h.elements.length&&(t.add(a.fileName),e.set(h,Se.default.factory.updateNamedImports(h,m)))}}),this.newImports.forEach(({namedImports:o,namespaceImports:a,sideEffectImports:l},c)=>{let u=this.config.shouldUseSingleQuotes(c),h=c.fileName;l.forEach(f=>{i(h,Se.default.factory.createImportDeclaration(void 0,void 0,Se.default.factory.createStringLiteral(f)))}),a.forEach((f,m)=>{let E=Se.default.factory.createImportDeclaration(void 0,Se.default.factory.createImportClause(!1,void 0,f),Se.default.factory.createStringLiteral(m,u));Se.default.setOriginalNode(f.name,E),i(h,E)}),o.forEach((f,m)=>{let E=f.filter(S=>this._canAddSpecifier(c,m,S));if(E.length>0){let S=Se.default.factory.createImportDeclaration(void 0,Se.default.factory.createImportClause(!1,void 0,Se.default.factory.createNamedImports(E)),Se.default.factory.createStringLiteral(m,u));i(h,S)}})}),{affectedFiles:t,newImports:n,updatedImports:e,reusedOriginalAliasDeclarations:this.reuseSourceFileImportsTracker.reusedAliasDeclarations,deletedImports:r}}toTsTransform(t){return fD(this,t)}transformTsFile(t,e,n){let r=n?new Map([[e.fileName,n]]):void 0;return this.toTsTransform(r)(t)(e)}_getNewImportsTrackerForFile(t){return this.newImports.has(t)||this.newImports.set(t,{namespaceImports:new Map,namedImports:new Map,sideEffectImports:new Set}),this.newImports.get(t)}_canAddSpecifier(t,e,n){var r,s;return!((s=(r=this.removedImports.get(t))==null?void 0:r.get(e))!=null&&s.has((n.propertyName||n.name).text))}};function Wm(t,e){return t?Array.isArray(e)?Se.default.factory.createQualifiedName(e[0],e[1]):e:Array.isArray(e)?Se.default.factory.createPropertyAccessExpression(e[0],e[1]):e}var UM=new Map([[mn.Minus,"-"],[mn.Plus,"+"]]),VM=new Map([[A.And,"&&"],[A.Bigger,">"],[A.BiggerEquals,">="],[A.BitwiseAnd,"&"],[A.BitwiseOr,"|"],[A.Divide,"/"],[A.Equals,"=="],[A.Identical,"==="],[A.Lower,"<"],[A.LowerEquals,"<="],[A.Minus,"-"],[A.Modulo,"%"],[A.Multiply,"*"],[A.NotEquals,"!="],[A.NotIdentical,"!=="],[A.Or,"||"],[A.Plus,"+"],[A.NullishCoalesce,"??"]]);var Ou={};function ng(t,e){return n(t);function n(i){return r(i)!==Ou}function r(i){return ge.default.isImportTypeNode(i)||ge.default.isTypeReferenceNode(i)&&!s(i)?Ou:ge.default.forEachChild(i,r)}function s(i){return e(i)?i.typeArguments===void 0||i.typeArguments.every(n):!1}}var rg=class{constructor(t){this.translator=t}emitType(t){let e=n=>{let r=s=>{if(ge.default.isImportTypeNode(s))throw new Error("Unable to emit import type");if(ge.default.isTypeReferenceNode(s))return this.emitTypeReference(s);if(ge.default.isLiteralExpression(s)){let i;if(ge.default.isStringLiteral(s))i=ge.default.factory.createStringLiteral(s.text);else if(ge.default.isNumericLiteral(s))i=ge.default.factory.createNumericLiteral(s.text);else if(ge.default.isBigIntLiteral(s))i=ge.default.factory.createBigIntLiteral(s.text);else if(ge.default.isNoSubstitutionTemplateLiteral(s))i=ge.default.factory.createNoSubstitutionTemplateLiteral(s.text,s.rawText);else if(ge.default.isRegularExpressionLiteral(s))i=ge.default.factory.createRegularExpressionLiteral(s.text);else throw new Error(`Unsupported literal kind ${ge.default.SyntaxKind[s.kind]}`);return ge.default.setTextRange(i,{pos:-1,end:-1}),i}else return ge.default.visitEachChild(s,r,n)};return s=>ge.default.visitNode(s,r,ge.default.isTypeNode)};return ge.default.transform(t,[e]).transformed[0]}emitTypeReference(t){let e=this.translator(t);if(e===null)throw new Error("Unable to emit an unresolved reference");let n;return t.typeArguments!==void 0&&(n=ge.default.factory.createNodeArray(t.typeArguments.map(r=>this.emitType(r)))),ge.default.factory.updateTypeReferenceNode(t,e.typeName,n)}};var jm;(function(t){t.CLOSURE="* @pureOrBreakMyCode ",t.TERSER="@__PURE__"})(jm||(jm={}));var qM={"+":ye.default.SyntaxKind.PlusToken,"-":ye.default.SyntaxKind.MinusToken,"!":ye.default.SyntaxKind.ExclamationToken},GM={"&&":ye.default.SyntaxKind.AmpersandAmpersandToken,">":ye.default.SyntaxKind.GreaterThanToken,">=":ye.default.SyntaxKind.GreaterThanEqualsToken,"&":ye.default.SyntaxKind.AmpersandToken,"|":ye.default.SyntaxKind.BarToken,"/":ye.default.SyntaxKind.SlashToken,"==":ye.default.SyntaxKind.EqualsEqualsToken,"===":ye.default.SyntaxKind.EqualsEqualsEqualsToken,"<":ye.default.SyntaxKind.LessThanToken,"<=":ye.default.SyntaxKind.LessThanEqualsToken,"-":ye.default.SyntaxKind.MinusToken,"%":ye.default.SyntaxKind.PercentToken,"*":ye.default.SyntaxKind.AsteriskToken,"!=":ye.default.SyntaxKind.ExclamationEqualsToken,"!==":ye.default.SyntaxKind.ExclamationEqualsEqualsToken,"||":ye.default.SyntaxKind.BarBarToken,"+":ye.default.SyntaxKind.PlusToken,"??":ye.default.SyntaxKind.QuestionQuestionToken},HM={const:ye.default.NodeFlags.Const,let:ye.default.NodeFlags.Let,var:ye.default.NodeFlags.None};w();var sg=require("module"),ZM=(0,sg.createRequire)(R),ei;(function(t){t[t.Unaccounted=0]="Unaccounted",t[t.Setup=1]="Setup",t[t.TypeScriptProgramCreate=2]="TypeScriptProgramCreate",t[t.Reconciliation=3]="Reconciliation",t[t.ResourceUpdate=4]="ResourceUpdate",t[t.TypeScriptDiagnostics=5]="TypeScriptDiagnostics",t[t.Analysis=6]="Analysis",t[t.Resolve=7]="Resolve",t[t.CycleDetection=8]="CycleDetection",t[t.TcbGeneration=9]="TcbGeneration",t[t.TcbUpdateProgram=10]="TcbUpdateProgram",t[t.TypeScriptEmit=11]="TypeScriptEmit",t[t.Compile=12]="Compile",t[t.TtcAutocompletion=13]="TtcAutocompletion",t[t.TtcDiagnostics=14]="TtcDiagnostics",t[t.TtcSymbol=15]="TtcSymbol",t[t.LsReferencesAndRenames=16]="LsReferencesAndRenames",t[t.LsQuickInfo=17]="LsQuickInfo",t[t.LsDefinition=18]="LsDefinition",t[t.LsCompletions=19]="LsCompletions",t[t.LsTcb=20]="LsTcb",t[t.LsDiagnostics=21]="LsDiagnostics",t[t.LsComponentLocations=22]="LsComponentLocations",t[t.LsSignatureHelp=23]="LsSignatureHelp",t[t.OutliningSpans=24]="OutliningSpans",t[t.LAST=25]="LAST",t[t.LsCodeFixes=26]="LsCodeFixes",t[t.LsCodeFixesAll=27]="LsCodeFixesAll",t[t.LSComputeApplicableRefactorings=28]="LSComputeApplicableRefactorings",t[t.LSApplyRefactoring=29]="LSApplyRefactoring"})(ei||(ei={}));var za;(function(t){t[t.InputDtsFile=0]="InputDtsFile",t[t.InputTsFile=1]="InputTsFile",t[t.AnalyzeComponent=2]="AnalyzeComponent",t[t.AnalyzeDirective=3]="AnalyzeDirective",t[t.AnalyzeInjectable=4]="AnalyzeInjectable",t[t.AnalyzeNgModule=5]="AnalyzeNgModule",t[t.AnalyzePipe=6]="AnalyzePipe",t[t.TraitAnalyze=7]="TraitAnalyze",t[t.TraitReuseAnalysis=8]="TraitReuseAnalysis",t[t.SourceFilePhysicalChange=9]="SourceFilePhysicalChange",t[t.SourceFileLogicalChange=10]="SourceFileLogicalChange",t[t.SourceFileReuseAnalysis=11]="SourceFileReuseAnalysis",t[t.GenerateTcb=12]="GenerateTcb",t[t.SkipGenerateTcbNoInline=13]="SkipGenerateTcbNoInline",t[t.ReuseTypeCheckFile=14]="ReuseTypeCheckFile",t[t.UpdateTypeCheckProgram=15]="UpdateTypeCheckProgram",t[t.EmitSkipSourceFile=16]="EmitSkipSourceFile",t[t.EmitSourceFile=17]="EmitSourceFile",t[t.LAST=18]="LAST"})(za||(za={}));var Xa;(function(t){t[t.Initial=0]="Initial",t[t.TypeScriptProgramCreate=1]="TypeScriptProgramCreate",t[t.PreAnalysis=2]="PreAnalysis",t[t.Analysis=3]="Analysis",t[t.Resolve=4]="Resolve",t[t.TtcGeneration=5]="TtcGeneration",t[t.TtcUpdateProgram=6]="TtcUpdateProgram",t[t.PreEmit=7]="PreEmit",t[t.Emit=8]="Emit",t[t.LAST=9]="LAST"})(Xa||(Xa={}));var ED=class{eventCount(){}memory(){}phase(){return ei.Unaccounted}inPhase(t,e){return e()}reset(){}},eL=new ED;var Cn=x(require("typescript"),1),fe=x(require("typescript"),1),_D=x(require("typescript"),1);var RD=x(require("typescript"),1),kD=x(require("typescript"),1),PD=x(require("typescript"),1),MD=x(require("typescript"),1),LD=x(require("typescript"),1),OD=x(require("typescript"),1),FD=x(require("typescript"),1);var BD=x(require("typescript"),1),$D=x(require("typescript"),1);var UD=x(require("typescript"),1);var VD=x(require("typescript"),1);var qD=x(require("typescript"),1),GD=x(require("typescript"),1);var HD=x(require("typescript"),1);var WD=x(require("typescript"),1);var jD=x(require("typescript"),1);var KD=x(require("typescript"),1),an=x(require("typescript"),1),lp=x(require("typescript"),1);var ln=x(require("typescript"),1);var t0=x(require("typescript"),1),n0=x(require("typescript"),1);var r0=x(require("typescript"),1);var i0=x(require("typescript"),1),o0=x(require("typescript"),1),a0=x(require("typescript"),1);var l0=x(require("typescript"),1);var mo=x(require("typescript"),1);w();var ig="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",SD=new Uint8Array(64),wD=new Uint8Array(128);for(let t=0;t<ig.length;t++){let e=ig.charCodeAt(t);SD[t]=e,wD[e]=t}var sL=1024*16;var u0=x(require("typescript"),1);var p0=x(require("typescript"),1),h0=x(require("typescript"),1);var J=x(require("typescript"),1);var y0=x(require("typescript"),1);var v0=x(require("typescript"),1),po=x(require("typescript"),1);var T0=x(require("typescript"),1),x0=x(require("typescript"),1);var v=x(require("typescript"),1);var yo=x(require("typescript"),1);var _=x(require("typescript"),1),J0=x(require("typescript"),1);var Z0=x(require("typescript"),1);var e_=x(require("typescript"),1);var t_=x(require("typescript"),1),$L=(0,Tg.createRequire)(R),ND="@angular/core";function xg(t){return t.import!==null&&t.import.from===ND}function ti(t,e,n){return n?t.name===e:xg(t)?t.import.name===e:!1}function Cg(t,e,n){return t.filter(r=>{var s;let i=n?r.name:(s=r.import)==null?void 0:s.name;return i===void 0||!e.includes(i)?!1:n||xg(r)})}function Ig(t){for(;Cn.default.isAsExpression(t)||Cn.default.isParenthesizedExpression(t);)t=t.expression;return t}function bD(t){if(t=Ig(t),!Cn.default.isArrowFunction(t)&&!Cn.default.isFunctionExpression(t))return null;let e=t.body;if(Cn.default.isBlock(e)){if(e.statements.length!==1)return null;let n=e.statements[0];return!Cn.default.isReturnStatement(n)||n.expression===void 0?null:n.expression}else return e}function DD(t,e){if(t=Ig(t),!Cn.default.isCallExpression(t)||t.arguments.length!==1)return null;let n=Cn.default.isPropertyAccessExpression(t.expression)?t.expression.name:t.expression;if(!Cn.default.isIdentifier(n))return null;let r=bD(t.arguments[0]);if(r===null)return null;let s=e.getImportOfIdentifier(n);return s===null||s.from!=="@angular/core"||s.name!=="forwardRef"?null:r}function Pe(t){return{op:t,literal:!0}}function og(t){return{op:t,literal:!1}}var HL=new Map([[fe.default.SyntaxKind.PlusToken,Pe((t,e)=>t+e)],[fe.default.SyntaxKind.MinusToken,Pe((t,e)=>t-e)],[fe.default.SyntaxKind.AsteriskToken,Pe((t,e)=>t*e)],[fe.default.SyntaxKind.SlashToken,Pe((t,e)=>t/e)],[fe.default.SyntaxKind.PercentToken,Pe((t,e)=>t%e)],[fe.default.SyntaxKind.AmpersandToken,Pe((t,e)=>t&e)],[fe.default.SyntaxKind.BarToken,Pe((t,e)=>t|e)],[fe.default.SyntaxKind.CaretToken,Pe((t,e)=>t^e)],[fe.default.SyntaxKind.LessThanToken,Pe((t,e)=>t<e)],[fe.default.SyntaxKind.LessThanEqualsToken,Pe((t,e)=>t<=e)],[fe.default.SyntaxKind.GreaterThanToken,Pe((t,e)=>t>e)],[fe.default.SyntaxKind.GreaterThanEqualsToken,Pe((t,e)=>t>=e)],[fe.default.SyntaxKind.EqualsEqualsToken,Pe((t,e)=>t==e)],[fe.default.SyntaxKind.EqualsEqualsEqualsToken,Pe((t,e)=>t===e)],[fe.default.SyntaxKind.ExclamationEqualsToken,Pe((t,e)=>t!=e)],[fe.default.SyntaxKind.ExclamationEqualsEqualsToken,Pe((t,e)=>t!==e)],[fe.default.SyntaxKind.LessThanLessThanToken,Pe((t,e)=>t<<e)],[fe.default.SyntaxKind.GreaterThanGreaterThanToken,Pe((t,e)=>t>>e)],[fe.default.SyntaxKind.GreaterThanGreaterThanGreaterThanToken,Pe((t,e)=>t>>>e)],[fe.default.SyntaxKind.AsteriskAsteriskToken,Pe((t,e)=>Math.pow(t,e))],[fe.default.SyntaxKind.AmpersandAmpersandToken,og((t,e)=>t&&e)],[fe.default.SyntaxKind.BarBarToken,og((t,e)=>t||e)]]),WL=new Map([[fe.default.SyntaxKind.TildeToken,t=>~t],[fe.default.SyntaxKind.MinusToken,t=>-t],[fe.default.SyntaxKind.PlusToken,t=>+t],[fe.default.SyntaxKind.ExclamationToken,t=>!t]]);var Qa;(function(t){t[t.SingleFile=0]="SingleFile",t[t.WholeProgram=1]="WholeProgram"})(Qa||(Qa={}));var ag;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone"})(ag||(ag={}));var lg;(function(t){t[t.Normal=0]="Normal",t[t.ForceDirect=1]="ForceDirect"})(lg||(lg={}));var cg;(function(t){t[t.Reference=0]="Reference",t[t.Variable=1]="Variable",t[t.LetDeclaration=2]="LetDeclaration"})(cg||(cg={}));var Pt;(function(t){t[t.Input=0]="Input",t[t.Output=1]="Output",t[t.Binding=2]="Binding",t[t.Reference=3]="Reference",t[t.Variable=4]="Variable",t[t.Directive=5]="Directive",t[t.Element=6]="Element",t[t.Template=7]="Template",t[t.Expression=8]="Expression",t[t.DomBinding=9]="DomBinding",t[t.Pipe=10]="Pipe",t[t.LetDeclaration=11]="LetDeclaration"})(Pt||(Pt={}));var ip;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(ip||(ip={}));var ug;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(ug||(ug={}));var op;(function(t){t[t.FULL=0]="FULL",t[t.PARTIAL=1]="PARTIAL",t[t.LOCAL=2]="LOCAL"})(op||(op={}));var pg;(function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SHARED=1]="SHARED",t[t.WEAK=2]="WEAK"})(pg||(pg={}));var hg;(function(t){t[t.Pending=0]="Pending",t[t.Analyzed=1]="Analyzed",t[t.Resolved=2]="Resolved",t[t.Skipped=3]="Skipped"})(hg||(hg={}));var ap;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone"})(ap||(ap={}));function el({api:t,call:e},n){if(!t.allowedAccessLevels.includes(n.accessLevel))throw new jn(Q.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY,e,Hu(`Cannot use "${t.functionName}" on a class member that is declared as ${zu(n.accessLevel)}.`,[Hu("Update the class field to be either: "+t.allowedAccessLevels.map(r=>zu(r)).join(", "))]))}function Eo(t,e,n,r){if(!an.default.isCallExpression(e))return null;let s=zD(e,t,r)||XD(e,t,r)||YD(e,t,r);if(s===null)return null;let{api:i,apiReference:o,isRequired:a}=s,l=n.getImportOfIdentifier(o);return l===null||i.functionName!==l.name||i.owningModule!==l.from?null:{api:i,call:e,isRequired:a}}function zD(t,e,n){let r=t.expression;if(!an.default.isIdentifier(r))return null;let s=e.find(i=>n.isPotentialReferenceToNamedImport(r,i.functionName,i.owningModule));return s===void 0?null:{api:s,apiReference:r,isRequired:!1}}function XD(t,e,n){let r=t.expression;if(!an.default.isPropertyAccessExpression(r)||!an.default.isIdentifier(r.expression)||r.name.text!=="required")return null;let s=r.expression,i=e.find(o=>n.isPotentialReferenceToNamedImport(s,o.functionName,o.owningModule));return i===void 0?null:{api:i,apiReference:s,isRequired:!0}}function YD(t,e,n){let r=t.expression;if(!an.default.isPropertyAccessExpression(r))return null;let s=null,i,o=!1;if(an.default.isIdentifier(r.expression)&&an.default.isIdentifier(r.name)){let a=r.expression;s=r.name,i=e.find(l=>r.name.text===l.functionName&&n.isPotentialReferenceToNamespaceImport(a,l.owningModule))}else if(an.default.isPropertyAccessExpression(r.expression)&&an.default.isIdentifier(r.expression.expression)&&an.default.isIdentifier(r.expression.name)&&r.name.text==="required"){let a=r.expression.name.text,l=r.expression.expression;s=r.expression.name,i=e.find(c=>c.functionName===a&&n.isPotentialReferenceToNamespaceImport(l,c.owningModule)),o=!0}return i===void 0||s===null?null:{api:i,apiReference:s,isRequired:o}}function hp(t){if(!lp.default.isObjectLiteralExpression(t))throw new jn(Q.VALUE_HAS_WRONG_TYPE,t,"Argument needs to be an object literal that is statically analyzable.");let e=Qu(t),n;if(e.has("alias")){let r=e.get("alias");if(!lp.default.isStringLiteralLike(r))throw new jn(Q.VALUE_HAS_WRONG_TYPE,r,"Alias needs to be a string that is statically analyzable.");n=r.text}return{alias:n}}var fp={functionName:"input",owningModule:"@angular/core",allowedAccessLevels:[he.PublicWritable,he.PublicReadonly,he.Protected]};function Ag(t,e,n){var r;if(t.value===null)return null;let s=Eo([fp],t.value,e,n);if(s===null)return null;el(s,t);let i=s.isRequired?s.call.arguments[0]:s.call.arguments[1],o=i!==void 0?hp(i):null,a=t.name;return{isSignal:!0,classPropertyName:a,bindingPropertyName:(r=o?.alias)!=null?r:a,required:s.isRequired,transform:null}}var dp={functionName:"model",owningModule:"@angular/core",allowedAccessLevels:[he.PublicWritable,he.PublicReadonly,he.Protected]};function Ng(t,e,n){var r;if(t.value===null)return null;let s=Eo([dp],t.value,e,n);if(s===null)return null;el(s,t);let i=s.isRequired?s.call.arguments[0]:s.call.arguments[1],o=i!==void 0?hp(i):null,a=t.name,l=(r=o?.alias)!=null?r:a;return{call:s.call,input:{isSignal:!0,transform:null,classPropertyName:a,bindingPropertyName:l,required:s.isRequired},output:{isSignal:!1,classPropertyName:a,bindingPropertyName:l+"Change"}}}var fg=[he.PublicWritable,he.PublicReadonly,he.Protected],mp=[{functionName:"output",owningModule:"@angular/core",allowedAccessLevels:fg},{functionName:"outputFromObservable",owningModule:"@angular/core/rxjs-interop",allowedAccessLevels:fg}];function bg(t,e,n){var r;if(t.value===null)return null;let s=Eo(mp,t.value,e,n);if(s===null)return null;if(s.isRequired)throw new jn(Q.INITIALIZER_API_NO_REQUIRED_FUNCTION,s.call,'Output does not support ".required()".');el(s,t);let i=s.api.functionName==="output"?s.call.arguments[0]:s.call.arguments[1],o=i!==void 0?hp(i):null,a=t.name;return{call:s.call,metadata:{isSignal:!1,classPropertyName:a,bindingPropertyName:(r=o?.alias)!=null?r:a}}}var QD=["viewChild","viewChildren","contentChild","contentChildren"],gp=QD.map(t=>({functionName:t,owningModule:"@angular/core",allowedAccessLevels:[he.PublicWritable,he.PublicReadonly,he.Protected,he.Private]})),JD=t=>t!=="contentChildren";function Dg(t,e,n){if(t.value===null)return null;let r=Eo(gp,t.value,e,n);if(r===null)return null;el(r,t);let{functionName:s}=r.api,i=s==="viewChild"||s==="contentChild",o=r.call.arguments[0];if(o===void 0)throw new jn(Q.VALUE_HAS_WRONG_TYPE,r.call,"No locator specified.");let a=r.call.arguments[1];if(a!==void 0&&!ln.default.isObjectLiteralExpression(a))throw new jn(Q.VALUE_HAS_WRONG_TYPE,a,"Argument needs to be an object literal.");let l=a&&Qu(a),c=l?.has("read")?_g(l.get("read")):null,u=l?.has("descendants")?e0(l.get("descendants")):JD(s);return{name:s,call:r.call,metadata:{isSignal:!0,propertyName:t.name,static:!1,emitDistinctChangesOnly:!0,predicate:ZD(o,e),first:i,read:c,descendants:u}}}function ZD(t,e){let n=DD(t,e);return n!==null&&(t=n),ln.default.isStringLiteralLike(t)?[t.text]:ts(new io.WrappedNodeExpr(t),n!==null?2:0)}function _g(t){if(ln.default.isExpressionWithTypeArguments(t)||ln.default.isParenthesizedExpression(t)||ln.default.isAsExpression(t))return _g(t.expression);if(ln.default.isPropertyAccessExpression(t)&&ln.default.isIdentifier(t.expression)||ln.default.isIdentifier(t))return new io.WrappedNodeExpr(t);throw new jn(Q.VALUE_NOT_LITERAL,t,'Query "read" option expected a literal class reference.')}function e0(t){if(t.kind===ln.default.SyntaxKind.TrueKeyword)return!0;if(t.kind===ln.default.SyntaxKind.FalseKeyword)return!1;throw new jn(Q.VALUE_HAS_WRONG_TYPE,t,'Expected "descendants" option to be a boolean literal.')}var yp=["ViewChild","ViewChildren","ContentChild","ContentChildren"],aO=new Set(yp);var s0=Symbol("NgOriginalFile"),dg;(function(t){t[t.Complete=0]="Complete",t[t.Incremental=1]="Incremental"})(dg||(dg={}));var pO=Symbol("NgExtension");var hO=Symbol("TemplateSourceFile");var fO=Symbol("ngTemplateId"),dO=Symbol("ngNextTemplateId");var Ja;(function(t){t.DIAGNOSTIC="D",t.EXPRESSION_TYPE_IDENTIFIER="T"})(Ja||(Ja={}));var os;(function(t){t.DIRECTIVE="DIR",t.COMPONENT_COMPLETION="COMPCOMP",t.EVENT_PARAMETER="EP",t.VARIABLE_AS_EXPRESSION="VAE"})(os||(os={}));function So(t,e){mo.default.addSyntheticTrailingComment(t,mo.default.SyntaxKind.MultiLineCommentTrivia,`${Ja.EXPRESSION_TYPE_IDENTIFIER}:${e}`,!1)}var c0=`${Ja.DIAGNOSTIC}:ignore`;function Tr(t){mo.default.addSyntheticTrailingComment(t,mo.default.SyntaxKind.MultiLineCommentTrivia,c0,!1)}var EO=new on;var f0=new Set([J.default.SyntaxKind.ParenthesizedExpression,J.default.SyntaxKind.Identifier,J.default.SyntaxKind.CallExpression,J.default.SyntaxKind.NonNullExpression,J.default.SyntaxKind.ElementAccessExpression,J.default.SyntaxKind.PropertyAccessExpression,J.default.SyntaxKind.ArrayLiteralExpression,J.default.SyntaxKind.ObjectLiteralExpression,J.default.SyntaxKind.StringLiteral,J.default.SyntaxKind.NumericLiteral,J.default.SyntaxKind.TrueKeyword,J.default.SyntaxKind.FalseKeyword,J.default.SyntaxKind.NullKeyword,J.default.SyntaxKind.UndefinedKeyword]);function Kn(t){return f0.has(t.kind)||(t=J.default.factory.createParenthesizedExpression(t)),J.default.factory.createParenthesizedExpression(J.default.factory.createAsExpression(t,J.default.factory.createKeywordTypeNode(J.default.SyntaxKind.AnyKeyword)))}function d0(t){let e=J.default.factory.createPropertyAccessExpression(J.default.factory.createIdentifier("document"),"createElement");return J.default.factory.createCallExpression(e,void 0,[J.default.factory.createStringLiteral(t)])}function go(t,e){So(e,os.VARIABLE_AS_EXPRESSION);let n=J.default.factory.createAsExpression(J.default.factory.createNonNullExpression(J.default.factory.createNull()),e),r=J.default.factory.createVariableDeclaration(t,void 0,void 0,n);return J.default.factory.createVariableStatement(void 0,[r])}function m0(t,e){return J.default.factory.createTypeQueryNode(J.default.factory.createQualifiedName(t,`ngAcceptInputType_${e}`))}function zn(t,e,n=null){let r=J.default.factory.createVariableDeclaration(t,void 0,void 0,e);return J.default.factory.createVariableStatement(void 0,n===null?[r]:J.default.factory.createVariableDeclarationList([r],n))}function mg(t,e,n=[]){let r=J.default.factory.createPropertyAccessExpression(t,e);return J.default.factory.createCallExpression(r,void 0,n)}function g0(t){if(t<0){let e=J.default.factory.createNumericLiteral(Math.abs(t));return J.default.factory.createPrefixUnaryExpression(J.default.SyntaxKind.MinusToken,e)}return J.default.factory.createNumericLiteral(t)}var E0=class{constructor(t,e){this.typeParameters=t,this.reflector=e}canEmit(t){return this.typeParameters===void 0?!0:this.typeParameters.every(e=>this.canEmitType(e.constraint,t)&&this.canEmitType(e.default,t))}canEmitType(t,e){return t===void 0?!0:ng(t,n=>{let r=this.resolveTypeReference(n);return r===null?!1:r instanceof rs?e(r):!0})}emit(t){if(this.typeParameters===void 0)return;let e=new rg(n=>this.translateTypeReference(n,t));return this.typeParameters.map(n=>{let r=n.constraint!==void 0?e.emitType(n.constraint):void 0,s=n.default!==void 0?e.emitType(n.default):void 0;return po.default.factory.updateTypeParameterDeclaration(n,n.modifiers,n.name,r,s)})}resolveTypeReference(t){let e=po.default.isIdentifier(t.typeName)?t.typeName:t.typeName.right,n=this.reflector.getDeclarationOfIdentifier(e);if(n===null||n.node===null)return null;if(this.isLocalTypeParameter(n.node))return t;let r=null;return typeof n.viaModule=="string"&&(r={specifier:n.viaModule,resolutionContext:t.getSourceFile().fileName}),new rs(n.node,n.viaModule===ns?ns:r)}translateTypeReference(t,e){let n=this.resolveTypeReference(t);if(!(n instanceof rs))return n;let r=e(n);if(r===null)return null;if(!po.default.isTypeReferenceNode(r))throw new Error(`Expected TypeReferenceNode for emitted reference, got ${po.default.SyntaxKind[r.kind]}.`);return r}isLocalTypeParameter(t){return this.typeParameters.some(e=>e===t)}},xO=[d.InputSignalBrandWriteType],gg;(function(t){t[t.MustInline=0]="MustInline",t[t.ShouldInlineForGenericBounds=1]="ShouldInlineForGenericBounds",t[t.None=2]="None"})(gg||(gg={}));function S0(t,e,n){return new E0(t.typeParameters,e).canEmit(s=>n.canReferenceType(s))}function w0(t,e,n){return!S0(t,e,n)}function Ae(t){return yo.default.factory.createParenthesizedExpression(t)}function ss(t){return yo.default.factory.createParenthesizedExpression(t)}function B(t,e){let n;e instanceof je?n=`${e.start},${e.end}`:n=`${e.start.offset},${e.end.offset}`,yo.default.addSyntheticTrailingComment(t,yo.default.SyntaxKind.MultiLineCommentTrivia,n,!1)}var is=_.default.factory.createAsExpression(_.default.factory.createNumericLiteral("0"),_.default.factory.createKeywordTypeNode(_.default.SyntaxKind.AnyKeyword)),np=_.default.factory.createIdentifier("undefined"),C0=new Map([["+",_.default.SyntaxKind.PlusToken],["-",_.default.SyntaxKind.MinusToken]]),I0=new Map([["+",_.default.SyntaxKind.PlusToken],["-",_.default.SyntaxKind.MinusToken],["<",_.default.SyntaxKind.LessThanToken],[">",_.default.SyntaxKind.GreaterThanToken],["<=",_.default.SyntaxKind.LessThanEqualsToken],[">=",_.default.SyntaxKind.GreaterThanEqualsToken],["==",_.default.SyntaxKind.EqualsEqualsToken],["===",_.default.SyntaxKind.EqualsEqualsEqualsToken],["*",_.default.SyntaxKind.AsteriskToken],["/",_.default.SyntaxKind.SlashToken],["%",_.default.SyntaxKind.PercentToken],["!=",_.default.SyntaxKind.ExclamationEqualsToken],["!==",_.default.SyntaxKind.ExclamationEqualsEqualsToken],["||",_.default.SyntaxKind.BarBarToken],["&&",_.default.SyntaxKind.AmpersandAmpersandToken],["&",_.default.SyntaxKind.AmpersandToken],["|",_.default.SyntaxKind.BarToken],["??",_.default.SyntaxKind.QuestionQuestionToken]]);function A0(t,e,n){return new N0(e,n).translate(t)}var N0=class{constructor(t,e){this.maybeResolve=t,this.config=e}translate(t){if(t instanceof de&&(t=t.ast),t instanceof Ve){let n=_.default.factory.createIdentifier("undefined");return B(n,t.sourceSpan),n}let e=this.maybeResolve(t);return e!==null?e:t.visit(this)}visitUnary(t){let e=this.translate(t.expr),n=C0.get(t.operator);if(n===void 0)throw new Error(`Unsupported Unary.operator: ${t.operator}`);let r=Ae(_.default.factory.createPrefixUnaryExpression(n,e));return B(r,t.sourceSpan),r}visitBinary(t){let e=Ae(this.translate(t.left)),n=Ae(this.translate(t.right)),r=I0.get(t.operation);if(r===void 0)throw new Error(`Unsupported Binary.operation: ${t.operation}`);let s=_.default.factory.createBinaryExpression(e,r,n);return B(s,t.sourceSpan),s}visitChain(t){let e=t.expressions.map(r=>this.translate(r)),n=Ae(_.default.factory.createCommaListExpression(e));return B(n,t.sourceSpan),n}visitConditional(t){let e=this.translate(t.condition),n=this.translate(t.trueExp),r=ss(this.translate(t.falseExp)),s=_.default.factory.createParenthesizedExpression(_.default.factory.createConditionalExpression(e,void 0,n,void 0,r));return B(s,t.sourceSpan),s}visitImplicitReceiver(t){throw new Error("Method not implemented.")}visitThisReceiver(t){throw new Error("Method not implemented.")}visitInterpolation(t){return t.expressions.reduce((e,n)=>_.default.factory.createBinaryExpression(e,_.default.SyntaxKind.PlusToken,ss(this.translate(n))),_.default.factory.createStringLiteral(""))}visitKeyedRead(t){let e=Ae(this.translate(t.receiver)),n=this.translate(t.key),r=_.default.factory.createElementAccessExpression(e,n);return B(r,t.sourceSpan),r}visitKeyedWrite(t){let e=Ae(this.translate(t.receiver)),n=_.default.factory.createElementAccessExpression(e,this.translate(t.key)),r=ss(this.translate(t.value)),s=Ae(_.default.factory.createBinaryExpression(n,_.default.SyntaxKind.EqualsToken,r));return B(s,t.sourceSpan),s}visitLiteralArray(t){let e=t.expressions.map(s=>this.translate(s)),n=_.default.factory.createArrayLiteralExpression(e),r=this.config.strictLiteralTypes?n:Kn(n);return B(r,t.sourceSpan),r}visitLiteralMap(t){let e=t.keys.map(({key:s},i)=>{let o=this.translate(t.values[i]);return _.default.factory.createPropertyAssignment(_.default.factory.createStringLiteral(s),o)}),n=_.default.factory.createObjectLiteralExpression(e,!0),r=this.config.strictLiteralTypes?n:Kn(n);return B(r,t.sourceSpan),r}visitLiteralPrimitive(t){let e;if(t.value===void 0)e=_.default.factory.createIdentifier("undefined");else if(t.value===null)e=_.default.factory.createNull();else if(typeof t.value=="string")e=_.default.factory.createStringLiteral(t.value);else if(typeof t.value=="number")e=g0(t.value);else if(typeof t.value=="boolean")e=t.value?_.default.factory.createTrue():_.default.factory.createFalse();else throw Error(`Unsupported AST value of type ${typeof t.value}`);return B(e,t.sourceSpan),e}visitNonNullAssert(t){let e=Ae(this.translate(t.expression)),n=_.default.factory.createNonNullExpression(e);return B(n,t.sourceSpan),n}visitPipe(t){throw new Error("Method not implemented.")}visitPrefixNot(t){let e=Ae(this.translate(t.expression)),n=_.default.factory.createLogicalNot(e);return B(n,t.sourceSpan),n}visitPropertyRead(t){let e=Ae(this.translate(t.receiver)),n=_.default.factory.createPropertyAccessExpression(e,t.name);B(n,t.nameSpan);let r=Ae(n);return B(r,t.sourceSpan),r}visitPropertyWrite(t){let e=Ae(this.translate(t.receiver)),n=_.default.factory.createPropertyAccessExpression(e,t.name);B(n,t.nameSpan);let r=Ae(n);B(r,t.sourceSpan);let s=ss(this.translate(t.value)),i=Ae(_.default.factory.createBinaryExpression(r,_.default.SyntaxKind.EqualsToken,s));return B(i,t.sourceSpan),i}visitSafePropertyRead(t){let e,n=Ae(this.translate(t.receiver));if(this.config.strictSafeNavigationTypes){let r=_.default.factory.createPropertyAccessExpression(_.default.factory.createNonNullExpression(n),t.name);B(r,t.nameSpan),e=_.default.factory.createParenthesizedExpression(_.default.factory.createConditionalExpression(is,void 0,r,void 0,np))}else if(rp.veWillInferAnyFor(t))e=_.default.factory.createPropertyAccessExpression(Kn(n),t.name);else{let r=_.default.factory.createPropertyAccessExpression(_.default.factory.createNonNullExpression(n),t.name);B(r,t.nameSpan),e=Kn(r)}return B(e,t.sourceSpan),e}visitSafeKeyedRead(t){let e=Ae(this.translate(t.receiver)),n=this.translate(t.key),r;if(this.config.strictSafeNavigationTypes){let s=_.default.factory.createElementAccessExpression(_.default.factory.createNonNullExpression(e),n);B(s,t.sourceSpan),r=_.default.factory.createParenthesizedExpression(_.default.factory.createConditionalExpression(is,void 0,s,void 0,np))}else if(rp.veWillInferAnyFor(t))r=_.default.factory.createElementAccessExpression(Kn(e),n);else{let s=_.default.factory.createElementAccessExpression(_.default.factory.createNonNullExpression(e),n);B(s,t.sourceSpan),r=Kn(s)}return B(r,t.sourceSpan),r}visitCall(t){let e=t.args.map(i=>this.translate(i)),n,r=t.receiver;if(r instanceof Ie){let i=this.maybeResolve(r);if(i!==null)n=i;else{let o=Ae(this.translate(r.receiver));n=_.default.factory.createPropertyAccessExpression(o,r.name),B(n,r.nameSpan)}}else n=this.translate(r);let s;return t.receiver instanceof ut||t.receiver instanceof ur?s=this.convertToSafeCall(t,n,e):s=_.default.factory.createCallExpression(n,void 0,e),B(s,t.sourceSpan),s}visitSafeCall(t){let e=t.args.map(s=>this.translate(s)),n=Ae(this.translate(t.receiver)),r=this.convertToSafeCall(t,n,e);return B(r,t.sourceSpan),r}convertToSafeCall(t,e,n){if(this.config.strictSafeNavigationTypes){let r=_.default.factory.createCallExpression(_.default.factory.createNonNullExpression(e),void 0,n);return _.default.factory.createParenthesizedExpression(_.default.factory.createConditionalExpression(is,void 0,r,void 0,np))}return rp.veWillInferAnyFor(t)?_.default.factory.createCallExpression(Kn(e),void 0,n):Kn(_.default.factory.createCallExpression(_.default.factory.createNonNullExpression(e),void 0,n))}},Za=class{static veWillInferAnyFor(t){let e=Za.SINGLETON;return t instanceof yn?t.visit(e):t.receiver.visit(e)}visitUnary(t){return t.expr.visit(this)}visitBinary(t){return t.left.visit(this)||t.right.visit(this)}visitChain(t){return!1}visitConditional(t){return t.condition.visit(this)||t.trueExp.visit(this)||t.falseExp.visit(this)}visitCall(t){return!0}visitSafeCall(t){return!1}visitImplicitReceiver(t){return!1}visitThisReceiver(t){return!1}visitInterpolation(t){return t.expressions.some(e=>e.visit(this))}visitKeyedRead(t){return!1}visitKeyedWrite(t){return!1}visitLiteralArray(t){return!0}visitLiteralMap(t){return!0}visitLiteralPrimitive(t){return!1}visitPipe(t){return!0}visitPrefixNot(t){return t.expression.visit(this)}visitNonNullAssert(t){return t.expression.visit(this)}visitPropertyRead(t){return!1}visitPropertyWrite(t){return!1}visitSafePropertyRead(t){return!1}visitSafeKeyedRead(t){return!1}},rp=Za;Za.SINGLETON=new Za;var yg;(function(t){t[t.UseEmitter=0]="UseEmitter",t[t.CopyClassNodes=1]="CopyClassNodes",t[t.FallbackToAny=2]="FallbackToAny"})(yg||(yg={}));var we=class{circularFallback(){return K0}},b0=class extends we{constructor(t,e,n){super(),this.tcb=t,this.scope=e,this.element=n}get optional(){return!0}execute(){let t=this.tcb.allocateId(),e=d0(this.element.name);return B(e,this.element.startSourceSpan||this.element.sourceSpan),this.scope.addStatement(zn(t,e)),t}},D0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.template=n,this.variable=r}get optional(){return!1}execute(){let t=this.scope.resolve(this.template),e=this.tcb.allocateId(),n=v.default.factory.createPropertyAccessExpression(t,this.variable.value||"$implicit");B(e,this.variable.keySpan);let r;return this.variable.valueSpan!==void 0?(B(n,this.variable.valueSpan),r=zn(e,ss(n))):r=zn(e,n),B(r.declarationList.declarations[0],this.variable.sourceSpan),this.scope.addStatement(r),e}},_0=class extends we{constructor(t,e){super(),this.tcb=t,this.scope=e,this.optional=!0}execute(){let t=this.tcb.allocateId(),e=v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword);return this.scope.addStatement(go(t,e)),t}},R0=class extends we{constructor(t,e,n){super(),this.tcb=t,this.scope=e,this.node=n,this.optional=!1}execute(){let t=this.tcb.allocateId();B(t,this.node.nameSpan);let e=kt(this.node.value,this.tcb,this.scope),n=zn(t,ss(e),v.default.NodeFlags.Const);return B(n.declarationList.declarations[0],this.node.sourceSpan),this.scope.addStatement(n),t}},k0=class extends we{constructor(t,e,n){super(),this.tcb=t,this.scope=e,this.template=n}get optional(){return!1}execute(){let t=[],e=this.tcb.boundTarget.getDirectivesOfNode(this.template);if(e!==null)for(let o of e){let a=this.scope.resolve(this.template,o),l=this.tcb.env.reference(o.ref);if(o.ngTemplateGuards.forEach(c=>{let u=this.template.inputs.find(h=>h.name===c.inputName)||this.template.templateAttrs.find(h=>h instanceof _t&&h.name===c.inputName);if(u!==void 0){let h=kt(u.value,this.tcb,this.scope);if(Tr(h),c.type==="binding")t.push(h);else{let f=mg(l,`ngTemplateGuard_${c.inputName}`,[a,h]);B(f,u.value.sourceSpan),t.push(f)}}}),o.hasNgTemplateContextGuard)if(this.tcb.env.config.applyTemplateContextGuards){let c=this.scope.resolve(this.template),u=mg(l,"ngTemplateContextGuard",[a,c]);B(u,this.template.sourceSpan),t.push(u)}else this.template.variables.length>0&&this.tcb.env.config.suggestionsForSuboptimalTypeInference&&this.tcb.oobRecorder.suboptimalTypeInference(this.tcb.id,this.template.variables)}let n=null;t.length>0&&(n=t.reduce((o,a)=>v.default.factory.createBinaryExpression(o,v.default.SyntaxKind.AmpersandAmpersandToken,a),t.pop()));let s=vo.forNodes(this.tcb,this.scope,this.template,this.template.children,n).render();if(s.length===0)return null;let i=v.default.factory.createBlock(s);return n!==null&&(i=v.default.factory.createIfStatement(n,i)),this.scope.addStatement(i),null}},Ya=class extends we{constructor(t,e,n){super(),this.tcb=t,this.scope=e,this.expression=n}get optional(){return!1}execute(){let t=kt(this.expression,this.tcb,this.scope);return this.scope.addStatement(v.default.factory.createExpressionStatement(t)),null}},Rg=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.node=n,this.dir=r}get optional(){return!0}execute(){let t=this.dir.ref,e=this.tcb.env.referenceType(this.dir.ref),n;if(this.dir.isGeneric===!1||t.node.typeParameters===void 0)n=e;else{if(!v.default.isTypeReferenceNode(e))throw new Error(`Expected TypeReferenceNode when referencing the type for ${this.dir.ref.debugName}`);let s=t.node.typeParameters.map(()=>v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword));n=v.default.factory.createTypeReferenceNode(e.typeName,s)}let r=this.tcb.allocateId();return So(r,os.DIRECTIVE),B(r,this.node.startSourceSpan||this.node.sourceSpan),this.scope.addStatement(go(r,n)),r}},P0=class extends Rg{execute(){let t=this.dir.ref;if(this.dir.isGeneric)throw new Error(`Assertion Error: expected ${t.debugName} not to be generic.`);return super.execute()}},M0=class extends Rg{execute(){let t=this.dir.ref;if(t.node.typeParameters===void 0)throw new Error(`Assertion Error: expected typeParameters when creating a declaration for ${t.debugName}`);return super.execute()}},vg=class extends we{constructor(t,e,n,r,s){super(),this.tcb=t,this.scope=e,this.node=n,this.host=r,this.target=s,this.optional=!0}execute(){let t=this.tcb.allocateId(),e=this.target instanceof re||this.target instanceof ie?this.scope.resolve(this.target):this.scope.resolve(this.host,this.target);return this.target instanceof ie&&!this.tcb.env.config.checkTypeOfDomReferences||!this.tcb.env.config.checkTypeOfNonDomReferences?e=v.default.factory.createAsExpression(e,v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword)):this.target instanceof re&&(e=v.default.factory.createAsExpression(e,v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword)),e=v.default.factory.createAsExpression(e,this.tcb.env.referenceExternalType("@angular/core","TemplateRef",[Er])),e=v.default.factory.createParenthesizedExpression(e)),B(e,this.node.sourceSpan),B(t,this.node.keySpan),this.scope.addStatement(zn(t,e)),t}},L0=class extends we{constructor(t,e){super(),this.tcb=t,this.scope=e,this.optional=!0}execute(){let t=this.tcb.allocateId();return this.scope.addStatement(zn(t,is)),t}},O0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.node=n,this.dir=r}get optional(){return!0}execute(){let t=this.tcb.allocateId();So(t,os.DIRECTIVE),B(t,this.node.startSourceSpan||this.node.sourceSpan);let e=new Map,n=Pg(this.dir,this.node);for(let s of n)if(!(!this.tcb.env.config.checkTypeOfAttributes&&s.attribute instanceof Dt))for(let{fieldName:i,isTwoWayBinding:o}of s.inputs){if(e.has(i))continue;let a=Mg(s.attribute,this.tcb,this.scope);e.set(i,{type:"binding",field:i,expression:a,sourceSpan:s.attribute.sourceSpan,isTwoWayBinding:o})}for(let{classPropertyName:s}of this.dir.inputs)e.has(s)||e.set(s,{type:"unset",field:s});let r=z0(this.dir,this.tcb,Array.from(e.values()));return Tr(r),this.scope.addStatement(zn(t,r)),t}circularFallback(){return new B0(this.tcb,this.scope,this.node,this.dir)}},F0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.node=n,this.dir=r}get optional(){return!1}execute(){let t=null,e=Pg(this.dir,this.node),n=new Set;for(let r of e){let s=Ep(Mg(r.attribute,this.tcb,this.scope),this.tcb),i=Ae(s);for(let{fieldName:o,required:a,transformType:l,isSignal:c,isTwoWayBinding:u}of r.inputs){let h;if(a&&n.add(o),this.dir.coercedInputFields.has(o)){let f;if(l!==null)f=this.tcb.env.referenceTransplantedType(new As(l));else{let E=this.tcb.env.referenceType(this.dir.ref);if(!v.default.isTypeReferenceNode(E))throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);f=m0(E.typeName,o)}let m=this.tcb.allocateId();this.scope.addStatement(go(m,f)),h=m}else{if(this.dir.undeclaredInputFields.has(o))continue;if(!this.tcb.env.config.honorAccessModifiersForInputBindings&&this.dir.restrictedInputFields.has(o)){t===null&&(t=this.scope.resolve(this.node,this.dir));let f=this.tcb.allocateId(),m=this.tcb.env.referenceType(this.dir.ref);if(!v.default.isTypeReferenceNode(m))throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);let E=v.default.factory.createIndexedAccessTypeNode(v.default.factory.createTypeQueryNode(t),v.default.factory.createLiteralTypeNode(v.default.factory.createStringLiteral(o))),S=go(f,E);this.scope.addStatement(S),h=f}else t===null&&(t=this.scope.resolve(this.node,this.dir)),h=this.dir.stringLiteralInputFields.has(o)?v.default.factory.createElementAccessExpression(t,v.default.factory.createStringLiteral(o)):v.default.factory.createPropertyAccessExpression(t,v.default.factory.createIdentifier(o))}if(c){let f=this.tcb.env.referenceExternalSymbol(d.InputSignalBrandWriteType.moduleName,d.InputSignalBrandWriteType.name);if(!v.default.isIdentifier(f)&&!v.default.isPropertyAccessExpression(f))throw new Error(`Expected identifier or property access for reference to ${d.InputSignalBrandWriteType.name}`);h=v.default.factory.createElementAccessExpression(h,f)}r.attribute.keySpan!==void 0&&B(h,r.attribute.keySpan),u&&this.tcb.env.config.allowSignalsInTwoWayBindings&&(i=Lg(i,this.tcb)),i=v.default.factory.createBinaryExpression(h,v.default.SyntaxKind.EqualsToken,i)}B(i,r.attribute.sourceSpan),!this.tcb.env.config.checkTypeOfAttributes&&r.attribute instanceof Dt&&Tr(i),this.scope.addStatement(v.default.factory.createExpressionStatement(i))}return this.checkRequiredInputs(n),null}checkRequiredInputs(t){let e=[];for(let n of this.dir.inputs)n.required&&!t.has(n.classPropertyName)&&e.push(n.bindingPropertyName);e.length>0&&this.tcb.oobRecorder.missingRequiredInputs(this.tcb.id,this.node,this.dir.name,this.dir.isComponent,e)}},B0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.node=n,this.dir=r}get optional(){return!1}execute(){let t=this.tcb.allocateId(),e=this.tcb.env.typeCtorFor(this.dir),n=v.default.factory.createCallExpression(e,void 0,[v.default.factory.createNonNullExpression(v.default.factory.createNull())]);return this.scope.addStatement(zn(t,n)),t}},sp=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.element=e,this.checkElement=n,this.claimedInputs=r}get optional(){return!1}execute(){var t;this.checkElement&&this.tcb.domSchemaChecker.checkElement(this.tcb.id,this.element,this.tcb.schemas,this.tcb.hostIsStandalone);for(let e of this.element.inputs){let n=e.type===z.Property||e.type===z.TwoWay;if(!(n&&this.claimedInputs.has(e.name))&&n&&e.name!=="style"&&e.name!=="class"){let r=(t=kg.get(e.name))!=null?t:e.name;this.tcb.domSchemaChecker.checkProperty(this.tcb.id,this.element,r,e.sourceSpan,this.tcb.schemas,this.tcb.hostIsStandalone)}}return null}},$0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.element=e,this.ngContentSelectors=n,this.componentName=r,this.optional=!1,this.category=t.env.config.controlFlowPreventingContentProjection==="error"?v.default.DiagnosticCategory.Error:v.default.DiagnosticCategory.Warning}execute(){let t=this.findPotentialControlFlowNodes();if(t.length>0){let e=new ir;for(let n of this.ngContentSelectors)n!=="*"&&e.addSelectables(Qt.parse(n),n);for(let n of t)for(let r of n.children)(r instanceof ie||r instanceof re)&&e.match(yu(r),(s,i)=>{this.tcb.oobRecorder.controlFlowPreventingContentProjection(this.tcb.id,this.category,r,this.componentName,i,n,this.tcb.hostPreserveWhitespaces)})}return null}findPotentialControlFlowNodes(){let t=[];for(let e of this.element.children)if(e instanceof En)this.shouldCheck(e)&&t.push(e),e.empty!==null&&this.shouldCheck(e.empty)&&t.push(e.empty);else if(e instanceof Wr)for(let n of e.branches)this.shouldCheck(n)&&t.push(n);else if(e instanceof Hr)for(let n of e.cases)this.shouldCheck(n)&&t.push(n);return t}shouldCheck(t){if(t.children.length<2)return!1;let e=!1;for(let n of t.children)if(!(n instanceof zt)||this.tcb.hostPreserveWhitespaces||n.value.trim().length>0){if(e)return!0;e=!0}return!1}},kg=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Eg=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.element=n,this.claimedInputs=r}get optional(){return!1}execute(){var t;let e=null;for(let n of this.element.inputs){let r=n.type===z.Property||n.type===z.TwoWay;if(r&&this.claimedInputs.has(n.name))continue;let s=Ep(kt(n.value,this.tcb,this.scope),this.tcb);if(this.tcb.env.config.checkTypeOfDomBindings&&r)if(n.name!=="style"&&n.name!=="class"){e===null&&(e=this.scope.resolve(this.element));let i=(t=kg.get(n.name))!=null?t:n.name,o=v.default.factory.createElementAccessExpression(e,v.default.factory.createStringLiteral(i)),a=v.default.factory.createBinaryExpression(o,v.default.SyntaxKind.EqualsToken,Ae(s));B(a,n.sourceSpan),this.scope.addStatement(v.default.factory.createExpressionStatement(a))}else this.scope.addStatement(v.default.factory.createExpressionStatement(s));else this.scope.addStatement(v.default.factory.createExpressionStatement(s))}return null}},U0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.node=n,this.dir=r}get optional(){return!1}execute(){let t=null,e=this.dir.outputs;for(let n of this.node.outputs){if(n.type===ke.Animation||!e.hasBindingPropertyName(n.name))continue;if(this.tcb.env.config.checkTypeOfOutputEvents&&n.name.endsWith("Change")){let i=n.name.slice(0,-6);Og(i,n,this.node.inputs,this.tcb)}let r=e.getByBindingPropertyName(n.name)[0].classPropertyName;t===null&&(t=this.scope.resolve(this.node,this.dir));let s=v.default.factory.createElementAccessExpression(t,v.default.factory.createStringLiteral(r));if(B(s,n.keySpan),this.tcb.env.config.checkTypeOfOutputEvents){let i=fo(n,this.tcb,this.scope,0),o=v.default.factory.createPropertyAccessExpression(s,"subscribe"),a=v.default.factory.createCallExpression(o,void 0,[i]);B(a,n.sourceSpan),this.scope.addStatement(v.default.factory.createExpressionStatement(a))}else{this.scope.addStatement(v.default.factory.createExpressionStatement(s));let i=fo(n,this.tcb,this.scope,1);this.scope.addStatement(v.default.factory.createExpressionStatement(i))}}return null}},Sg=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.element=n,this.claimedOutputs=r}get optional(){return!1}execute(){let t=null;for(let e of this.element.outputs)if(!this.claimedOutputs.has(e.name)){if(this.tcb.env.config.checkTypeOfOutputEvents&&e.name.endsWith("Change")){let n=e.name.slice(0,-6);if(Og(n,e,this.element.inputs,this.tcb))continue}if(e.type===ke.Animation){let n=this.tcb.env.config.checkTypeOfAnimationEvents?this.tcb.env.referenceExternalType("@angular/animations","AnimationEvent"):1,r=fo(e,this.tcb,this.scope,n);this.scope.addStatement(v.default.factory.createExpressionStatement(r))}else if(this.tcb.env.config.checkTypeOfDomEvents){let n=fo(e,this.tcb,this.scope,0);t===null&&(t=this.scope.resolve(this.element));let r=v.default.factory.createPropertyAccessExpression(t,"addEventListener");B(r,e.keySpan);let s=v.default.factory.createCallExpression(r,void 0,[v.default.factory.createStringLiteral(e.name),n]);B(s,e.sourceSpan),this.scope.addStatement(v.default.factory.createExpressionStatement(s))}else{let n=fo(e,this.tcb,this.scope,1);this.scope.addStatement(v.default.factory.createExpressionStatement(n))}}return null}},V0=class extends we{constructor(t){super(),this.scope=t,this.optional=!1}execute(){let t=v.default.factory.createThis(),e=v.default.factory.createPropertyAccessExpression(t,"");return Tr(e),So(e,os.COMPONENT_COMPLETION),this.scope.addStatement(v.default.factory.createExpressionStatement(e)),null}},q0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.initializer=n,this.variable=r}get optional(){return!1}execute(){let t=this.tcb.allocateId();B(t,this.variable.keySpan);let e=zn(t,ss(this.initializer));return B(e.declarationList.declarations[0],this.variable.sourceSpan),this.scope.addStatement(e),t}},G0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.type=n,this.variable=r,this.optional=!0}execute(){let t=this.tcb.allocateId();B(t,this.variable.keySpan);let e=go(t,this.type);return B(e.declarationList.declarations[0],this.variable.sourceSpan),this.scope.addStatement(e),t}},H0=class extends we{constructor(t,e,n){super(),this.tcb=t,this.scope=e,this.block=n,this.expressionScopes=new Map}get optional(){return!1}execute(){let t=this.generateBranch(0);return t&&this.scope.addStatement(t),null}generateBranch(t){let e=this.block.branches[t];if(!e)return;if(e.expression===null){let i=this.getBranchScope(this.scope,e,t);return v.default.factory.createBlock(i.render())}let n=vo.forNodes(this.tcb,this.scope,e,[],null);n.render().forEach(i=>this.scope.addStatement(i)),this.expressionScopes.set(e,n);let r=kt(e.expression,this.tcb,this.scope);e.expressionAlias!==null&&(r=v.default.factory.createBinaryExpression(v.default.factory.createParenthesizedExpression(r),v.default.SyntaxKind.AmpersandAmpersandToken,n.resolve(e.expressionAlias)));let s=this.getBranchScope(n,e,t);return v.default.factory.createIfStatement(r,v.default.factory.createBlock(s.render()),this.generateBranch(t+1))}getBranchScope(t,e,n){let r=this.tcb.env.config.checkControlFlowBodies;return vo.forNodes(this.tcb,t,null,r?e.children:[],r?this.generateBranchGuard(n):null)}generateBranchGuard(t){let e=null;for(let n=0;n<=t;n++){let r=this.block.branches[n];if(r.expression===null)continue;if(!this.expressionScopes.has(r))throw new Error(`Could not determine expression scope of branch at index ${n}`);let s=this.expressionScopes.get(r),i;i=kt(r.expression,this.tcb,s),r.expressionAlias!==null&&(i=v.default.factory.createBinaryExpression(v.default.factory.createParenthesizedExpression(i),v.default.SyntaxKind.AmpersandAmpersandToken,s.resolve(r.expressionAlias))),Tr(i);let o=n===t?i:v.default.factory.createPrefixUnaryExpression(v.default.SyntaxKind.ExclamationToken,v.default.factory.createParenthesizedExpression(i));e=e===null?o:v.default.factory.createBinaryExpression(e,v.default.SyntaxKind.AmpersandAmpersandToken,o)}return e}},W0=class extends we{constructor(t,e,n){super(),this.tcb=t,this.scope=e,this.block=n}get optional(){return!1}execute(){let t=kt(this.block.expression,this.tcb,this.scope),e=this.block.cases.map(n=>{let r=this.tcb.env.config.checkControlFlowBodies,s=vo.forNodes(this.tcb,this.scope,null,r?n.children:[],r?this.generateGuard(n,t):null),i=[...s.render(),v.default.factory.createBreakStatement()];return n.expression===null?v.default.factory.createDefaultClause(i):v.default.factory.createCaseClause(kt(n.expression,this.tcb,s),i)});return this.scope.addStatement(v.default.factory.createSwitchStatement(t,v.default.factory.createCaseBlock(e))),null}generateGuard(t,e){if(t.expression!==null){let r=kt(t.expression,this.tcb,this.scope);return Tr(r),v.default.factory.createBinaryExpression(e,v.default.SyntaxKind.EqualsEqualsEqualsToken,r)}let n=null;for(let r of this.block.cases){if(r.expression===null)continue;let s=kt(r.expression,this.tcb,this.scope);Tr(s);let i=v.default.factory.createBinaryExpression(e,v.default.SyntaxKind.ExclamationEqualsEqualsToken,s);n===null?n=i:n=v.default.factory.createBinaryExpression(n,v.default.SyntaxKind.AmpersandAmpersandToken,i)}return n}},j0=class extends we{constructor(t,e,n){super(),this.tcb=t,this.scope=e,this.block=n}get optional(){return!1}execute(){let t=vo.forNodes(this.tcb,this.scope,this.block,this.tcb.env.config.checkControlFlowBodies?this.block.children:[],null),e=t.resolve(this.block.item);if(!v.default.isIdentifier(e))throw new Error(`Could not resolve for loop variable ${this.block.item.name} to an identifier`);let n=v.default.factory.createVariableDeclarationList([v.default.factory.createVariableDeclaration(e)],v.default.NodeFlags.Const);B(n,this.block.item.keySpan);let r=v.default.factory.createNonNullExpression(kt(this.block.expression,this.tcb,this.scope)),i=new Q0(this.tcb,t,this.block).translate(this.block.trackBy),o=[...t.render(),v.default.factory.createExpressionStatement(i)];return this.scope.addStatement(v.default.factory.createForOfStatement(void 0,n,r,v.default.factory.createBlock(o))),null}},K0=v.default.factory.createNonNullExpression(v.default.factory.createNull());var ho=class{constructor(t,e=null,n=null){this.tcb=t,this.parent=e,this.guard=n,this.opQueue=[],this.elementOpMap=new Map,this.directiveOpMap=new Map,this.referenceOpMap=new Map,this.templateCtxOpMap=new Map,this.varMap=new Map,this.letDeclOpMap=new Map,this.statements=[]}static forNodes(t,e,n,r,s){let i=new ho(t,e,s);if(e===null&&t.env.config.enableTemplateTypeChecker&&i.opQueue.push(new V0(i)),n instanceof re){let o=new Map;for(let a of n.variables){if(!o.has(a.name))o.set(a.name,a);else{let l=o.get(a.name);t.oobRecorder.duplicateTemplateVar(t.id,a,l)}this.registerVariable(i,a,new D0(t,i,n,a))}}else if(n instanceof Rn){let{expression:o,expressionAlias:a}=n;o!==null&&a!==null&&this.registerVariable(i,a,new q0(t,i,kt(o,t,i),a))}else if(n instanceof En){let o=t.allocateId();B(o,n.item.sourceSpan),i.varMap.set(n.item,o);for(let a of n.contextVariables){if(!this.forLoopContextVariableTypes.has(a.value))throw new Error(`Unrecognized for loop context variable ${a.name}`);let l=v.default.factory.createKeywordTypeNode(this.forLoopContextVariableTypes.get(a.value));this.registerVariable(i,a,new G0(t,i,l,a))}}for(let o of r)i.appendNode(o);for(let o of i.varMap.keys())ho.checkConflictingLet(i,o);for(let o of i.referenceOpMap.keys())ho.checkConflictingLet(i,o);return i}static registerVariable(t,e,n){let r=t.opQueue.push(n)-1;t.varMap.set(e,r)}resolve(t,e){let n=this.resolveLocal(t,e);if(n!==null){let r;if(v.default.isIdentifier(n))r=v.default.factory.createIdentifier(n.text);else if(v.default.isNonNullExpression(n))r=v.default.factory.createNonNullExpression(n.expression);else throw new Error(`Could not resolve ${t} to an Identifier or a NonNullExpression`);return v.default.setOriginalNode(r,n),r.parent=r.parent,v.default.setSyntheticTrailingComments(r,[])}else{if(this.parent!==null)return this.parent.resolve(t,e);throw new Error(`Could not resolve ${t} / ${e}`)}}addStatement(t){this.statements.push(t)}render(){for(let t=0;t<this.opQueue.length;t++){let e=!this.tcb.env.config.enableTemplateTypeChecker;this.executeOp(t,e)}return this.statements}guards(){let t=null;return this.parent!==null&&(t=this.parent.guards()),this.guard===null?t:t===null?this.guard:v.default.factory.createBinaryExpression(t,v.default.SyntaxKind.AmpersandAmpersandToken,this.guard)}isLocal(t){return t instanceof pt?this.varMap.has(t):t instanceof Qe?this.letDeclOpMap.has(t.name):this.referenceOpMap.has(t)}resolveLocal(t,e){if(t instanceof Sn&&this.referenceOpMap.has(t))return this.resolveOp(this.referenceOpMap.get(t));if(t instanceof Qe&&this.letDeclOpMap.has(t.name))return this.resolveOp(this.letDeclOpMap.get(t.name).opIndex);if(t instanceof pt&&this.varMap.has(t)){let n=this.varMap.get(t);return typeof n=="number"?this.resolveOp(n):n}else{if(t instanceof re&&e===void 0&&this.templateCtxOpMap.has(t))return this.resolveOp(this.templateCtxOpMap.get(t));if((t instanceof ie||t instanceof re)&&e!==void 0&&this.directiveOpMap.has(t)){let n=this.directiveOpMap.get(t);return n.has(e)?this.resolveOp(n.get(e)):null}else return t instanceof ie&&this.elementOpMap.has(t)?this.resolveOp(this.elementOpMap.get(t)):null}}resolveOp(t){let e=this.executeOp(t,!1);if(e===null)throw new Error("Error resolving operation, got null");return e}executeOp(t,e){let n=this.opQueue[t];if(!(n instanceof we))return n;if(e&&n.optional)return null;this.opQueue[t]=n.circularFallback();let r=n.execute();return this.opQueue[t]=r,r}appendNode(t){if(t instanceof ie){let e=this.opQueue.push(new b0(this.tcb,this,t))-1;this.elementOpMap.set(t,e),this.tcb.env.config.controlFlowPreventingContentProjection!=="suppress"&&this.appendContentProjectionCheckOp(t),this.appendDirectivesAndInputsOfNode(t),this.appendOutputsOfNode(t),this.appendChildren(t),this.checkAndAppendReferencesOfNode(t)}else if(t instanceof re){this.appendDirectivesAndInputsOfNode(t),this.appendOutputsOfNode(t);let e=this.opQueue.push(new _0(this.tcb,this))-1;this.templateCtxOpMap.set(t,e),this.tcb.env.config.checkTemplateBodies?this.opQueue.push(new k0(this.tcb,this,t)):this.tcb.env.config.alwaysCheckSchemaInTemplateBodies&&this.appendDeepSchemaChecks(t.children),this.checkAndAppendReferencesOfNode(t)}else if(t instanceof Vn)this.appendDeferredBlock(t);else if(t instanceof Wr)this.opQueue.push(new H0(this.tcb,this,t));else if(t instanceof Hr)this.opQueue.push(new W0(this.tcb,this,t));else if(t instanceof En)this.opQueue.push(new j0(this.tcb,this,t)),t.empty&&this.tcb.env.config.checkControlFlowBodies&&this.appendChildren(t.empty);else if(t instanceof Bn)this.opQueue.push(new Ya(this.tcb,this,t.value));else if(t instanceof Os)this.appendIcuExpressions(t);else if(t instanceof hr)this.appendChildren(t);else if(t instanceof Qe){let e=this.opQueue.push(new R0(this.tcb,this,t))-1;this.isLocal(t)?this.tcb.oobRecorder.conflictingDeclaration(this.tcb.id,t):this.letDeclOpMap.set(t.name,{opIndex:e,node:t})}}appendChildren(t){for(let e of t.children)this.appendNode(e)}checkAndAppendReferencesOfNode(t){for(let e of t.references){let n=this.tcb.boundTarget.getReferenceTarget(e),r;n===null?(this.tcb.oobRecorder.missingReferenceTarget(this.tcb.id,e),r=this.opQueue.push(new L0(this.tcb,this))-1):n instanceof re||n instanceof ie?r=this.opQueue.push(new vg(this.tcb,this,e,t,n))-1:r=this.opQueue.push(new vg(this.tcb,this,e,t,n.directive))-1,this.referenceOpMap.set(e,r)}}appendDirectivesAndInputsOfNode(t){let e=new Set,n=this.tcb.boundTarget.getDirectivesOfNode(t);if(n===null||n.length===0){t instanceof ie&&(this.opQueue.push(new Eg(this.tcb,this,t,e)),this.opQueue.push(new sp(this.tcb,t,!0,e)));return}else t instanceof ie&&!this.tcb.boundTarget.isDeferred(t)&&n.some(i=>i.isExplicitlyDeferred)&&this.tcb.oobRecorder.deferredComponentUsedEagerly(this.tcb.id,t);let r=new Map;for(let s of n){let i,o=this.tcb.env.reflector,a=s.ref;s.isGeneric?!w0(a.node,o,this.tcb.env)||this.tcb.env.config.useInlineTypeConstructors?i=new O0(this.tcb,this,t,s):i=new M0(this.tcb,this,t,s):i=new P0(this.tcb,this,t,s);let l=this.opQueue.push(i)-1;r.set(s,l),this.opQueue.push(new F0(this.tcb,this,t,s))}if(this.directiveOpMap.set(t,r),t instanceof ie){for(let i of n)for(let o of i.inputs.propertyNames)e.add(o);this.opQueue.push(new Eg(this.tcb,this,t,e));let s=n.length===0;this.opQueue.push(new sp(this.tcb,t,s,e))}}appendOutputsOfNode(t){let e=new Set,n=this.tcb.boundTarget.getDirectivesOfNode(t);if(n===null||n.length===0){t instanceof ie&&this.opQueue.push(new Sg(this.tcb,this,t,e));return}for(let r of n)this.opQueue.push(new U0(this.tcb,this,t,r));if(t instanceof ie){for(let r of n)for(let s of r.outputs.propertyNames)e.add(s);this.opQueue.push(new Sg(this.tcb,this,t,e))}}appendDeepSchemaChecks(t){for(let e of t)if(e instanceof ie||e instanceof re){if(e instanceof ie){let n=new Set,r=this.tcb.boundTarget.getDirectivesOfNode(e),s;if(r===null||r.length===0)s=!1;else{s=!0;for(let i of r)for(let o of i.inputs.propertyNames)n.add(o)}this.opQueue.push(new sp(this.tcb,e,!s,n))}this.appendDeepSchemaChecks(e.children)}}appendIcuExpressions(t){for(let e of Object.values(t.vars))this.opQueue.push(new Ya(this.tcb,this,e.value));for(let e of Object.values(t.placeholders))e instanceof Bn&&this.opQueue.push(new Ya(this.tcb,this,e.value))}appendContentProjectionCheckOp(t){var e;let n=((e=this.tcb.boundTarget.getDirectivesOfNode(t))==null?void 0:e.find(r=>r.isComponent))||null;if(n!==null&&n.ngContentSelectors!==null&&n.ngContentSelectors.length>0){let r=n.ngContentSelectors;(r.length>1||r.length===1&&r[0]!=="*")&&this.opQueue.push(new $0(this.tcb,t,r,n.name))}}appendDeferredBlock(t){this.appendDeferredTriggers(t,t.triggers),this.appendDeferredTriggers(t,t.prefetchTriggers),this.appendChildren(t),t.placeholder!==null&&this.appendChildren(t.placeholder),t.loading!==null&&this.appendChildren(t.loading),t.error!==null&&this.appendChildren(t.error)}appendDeferredTriggers(t,e){e.when!==void 0&&this.opQueue.push(new Ya(this.tcb,this,e.when.value)),e.hover!==void 0&&this.appendReferenceBasedDeferredTrigger(t,e.hover),e.interaction!==void 0&&this.appendReferenceBasedDeferredTrigger(t,e.interaction),e.viewport!==void 0&&this.appendReferenceBasedDeferredTrigger(t,e.viewport)}appendReferenceBasedDeferredTrigger(t,e){this.tcb.boundTarget.getDeferredTriggerTarget(t,e)===null&&this.tcb.oobRecorder.inaccessibleDeferredTriggerElement(this.tcb.id,e)}static checkConflictingLet(t,e){t.letDeclOpMap.has(e.name)&&t.tcb.oobRecorder.conflictingDeclaration(t.tcb.id,t.letDeclOpMap.get(e.name).node)}},vo=ho;ho.forLoopContextVariableTypes=new Map([["$first",v.default.SyntaxKind.BooleanKeyword],["$last",v.default.SyntaxKind.BooleanKeyword],["$even",v.default.SyntaxKind.BooleanKeyword],["$odd",v.default.SyntaxKind.BooleanKeyword],["$index",v.default.SyntaxKind.NumberKeyword],["$count",v.default.SyntaxKind.NumberKeyword]]);function kt(t,e,n){return new vp(e,n).translate(t)}var vp=class{constructor(t,e){this.tcb=t,this.scope=e}translate(t){return A0(t,e=>this.resolve(e),this.tcb.env.config)}resolve(t){if(t instanceof Ie&&t.receiver instanceof $e){let e=this.tcb.boundTarget.getExpressionTarget(t),n=e===null?null:this.getTargetNodeExpression(e,t);return e instanceof Qe&&!this.isValidLetDeclarationAccess(e,t)&&(this.tcb.oobRecorder.letUsedBeforeDefinition(this.tcb.id,t,e),n!==null)?v.default.factory.createAsExpression(n,v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword)):n}else if(t instanceof On&&t.receiver instanceof $e){let e=this.tcb.boundTarget.getExpressionTarget(t);if(e===null)return null;let n=this.getTargetNodeExpression(e,t),r=this.translate(t.value),s=v.default.factory.createParenthesizedExpression(v.default.factory.createBinaryExpression(n,v.default.SyntaxKind.EqualsToken,r));return B(s,t.sourceSpan),e instanceof Qe&&(Tr(s),this.tcb.oobRecorder.illegalWriteToLetDeclaration(this.tcb.id,t,e)),s}else{if(t instanceof $e)return v.default.factory.createThis();if(t instanceof Gr){let e=this.translate(t.exp),n=this.tcb.getPipeByName(t.name),r;n===null?(this.tcb.oobRecorder.missingPipe(this.tcb.id,t),r=is):n.isExplicitlyDeferred&&this.tcb.boundTarget.getEagerlyUsedPipes().includes(t.name)?(this.tcb.oobRecorder.deferredPipeUsedEagerly(this.tcb.id,t),r=is):r=this.tcb.env.pipeInst(n.ref);let s=t.args.map(a=>this.translate(a)),i=v.default.factory.createPropertyAccessExpression(r,"transform");B(i,t.nameSpan),this.tcb.env.config.checkTypeOfPipes||(i=v.default.factory.createAsExpression(i,v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword)));let o=v.default.factory.createCallExpression(i,void 0,[e,...s]);return B(o,t.sourceSpan),o}else if((t instanceof yn||t instanceof vn)&&(t.receiver instanceof Ie||t.receiver instanceof ut)){if(t.receiver.receiver instanceof $e&&!(t.receiver.receiver instanceof fn)&&t.receiver.name==="$any"&&t.args.length===1){let o=this.translate(t.args[0]),a=v.default.factory.createAsExpression(o,v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword)),l=v.default.factory.createParenthesizedExpression(a);return B(l,t.sourceSpan),l}let e=this.tcb.boundTarget.getExpressionTarget(t);if(e===null)return null;let n=this.getTargetNodeExpression(e,t),r=Ae(n);B(r,t.receiver.nameSpan);let s=t.args.map(o=>this.translate(o)),i=v.default.factory.createCallExpression(r,void 0,s);return B(i,t.sourceSpan),i}else return null}}getTargetNodeExpression(t,e){let n=this.scope.resolve(t);return B(n,e.sourceSpan),n}isValidLetDeclarationAccess(t,e){let n=t.sourceSpan.start.offset,r=t.sourceSpan.end.offset,s=e.sourceSpan.start;return n<s&&s>r||!this.scope.isLocal(t)}};function z0(t,e,n){let r=e.env.typeCtorFor(t),s=n.map(i=>{let o=v.default.factory.createStringLiteral(i.field);if(i.type==="binding"){let a=Ep(i.expression,e);i.isTwoWayBinding&&e.env.config.allowSignalsInTwoWayBindings&&(a=Lg(a,e));let l=v.default.factory.createPropertyAssignment(o,Ae(a));return B(l,i.sourceSpan),l}else return v.default.factory.createPropertyAssignment(o,is)});return v.default.factory.createCallExpression(r,void 0,[v.default.factory.createObjectLiteralExpression(s)])}function Pg(t,e){let n=[],r=s=>{if(s instanceof _t&&s.type!==z.Property&&s.type!==z.TwoWay)return;let i=t.inputs.getByBindingPropertyName(s.name);i!==null&&n.push({attribute:s,inputs:i.map(o=>{var a;return{fieldName:o.classPropertyName,required:o.required,transformType:((a=o.transform)==null?void 0:a.type)||null,isSignal:o.isSignal,isTwoWayBinding:s instanceof _t&&s.type===z.TwoWay}})})};return e.inputs.forEach(r),e.attributes.forEach(r),e instanceof re&&e.templateAttrs.forEach(r),n}function Mg(t,e,n){return t instanceof _t?kt(t.value,e,n):v.default.factory.createStringLiteral(t.value)}function Ep(t,e){return e.env.config.checkTypeOfInputBindings?e.env.config.strictNullInputBindings||v.default.isObjectLiteralExpression(t)||v.default.isArrayLiteralExpression(t)?t:v.default.factory.createNonNullExpression(t):Kn(t)}function Lg(t,e){let n=e.env.referenceExternalSymbol(d.unwrapWritableSignal.moduleName,d.unwrapWritableSignal.name);return v.default.factory.createCallExpression(n,void 0,[t])}var cp="$event";function fo(t,e,n,r){let s=X0(t.handler,e,n),i;r===0?i=void 0:r===1?i=v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword):i=r;let o=n.guards(),a=v.default.factory.createExpressionStatement(s);o!==null&&(a=v.default.factory.createIfStatement(o,a));let l=v.default.factory.createParameterDeclaration(void 0,void 0,cp,void 0,i);return So(l,os.EVENT_PARAMETER),v.default.factory.createArrowFunction(void 0,void 0,[l],v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword),void 0,v.default.factory.createBlock([a]))}function X0(t,e,n){return new Y0(e,n).translate(t)}function Og(t,e,n,r){let s=n.find(a=>a.name===t);if(s===void 0||s.sourceSpan!==e.sourceSpan)return!1;let i=r.boundTarget.getConsumerOfBinding(s),o=r.boundTarget.getConsumerOfBinding(e);return o===null||i.ref===void 0||o instanceof re?!1:o instanceof ie?(r.oobRecorder.splitTwoWayBinding(r.id,s,e,i.ref.node,o),!0):o.ref!==i.ref?(r.oobRecorder.splitTwoWayBinding(r.id,s,e,i.ref.node,o.ref.node),!0):!1}var Y0=class extends vp{resolve(t){if(t instanceof Ie&&t.receiver instanceof $e&&!(t.receiver instanceof fn)&&t.name===cp){let e=v.default.factory.createIdentifier(cp);return B(e,t.nameSpan),e}return super.resolve(t)}isValidLetDeclarationAccess(){return!0}},Q0=class extends vp{constructor(t,e,n){super(t,e),this.block=n,this.allowedVariables=new Set([n.item]);for(let r of n.contextVariables)r.value==="$index"&&this.allowedVariables.add(r)}resolve(t){if(t instanceof Ie&&t.receiver instanceof $e){let e=this.tcb.boundTarget.getExpressionTarget(t);e!==null&&(!(e instanceof pt)||!this.allowedVariables.has(e))&&this.tcb.oobRecorder.illegalForLoopTrackAccess(this.tcb.id,this.block,t)}return super.resolve(t)}};var wg;(function(t){t[t.InlineOps=0]="InlineOps",t[t.Error=1]="Error"})(wg||(wg={}));var _O=new on;var C=x(require("typescript"),1),xr=x(require("typescript"),1),tl=x(require("typescript"),1),Hg=x(require("typescript"),1),d2=(0,Bg.createRequire)(R);function Sp(t,e){return e||t.import!==null&&t.import.from==="@angular/core"}var $g="!Array<{type: !Function, args: (undefined|!Array<?>)}>";function Ug(t,e){let n=[],r=t.expression;switch(r.kind){case C.default.SyntaxKind.Identifier:n.push(C.default.factory.createPropertyAssignment("type",r));break;case C.default.SyntaxKind.CallExpression:let s=r;if(n.push(C.default.factory.createPropertyAssignment("type",s.expression)),s.arguments.length){let i=[];for(let a of s.arguments)i.push(a);let o=C.default.factory.createArrayLiteralExpression(C.default.factory.createNodeArray(i,!0));n.push(C.default.factory.createPropertyAssignment("args",o))}break;default:e.push({file:t.getSourceFile(),start:t.getStart(),length:t.getEnd()-t.getStart(),messageText:`${C.default.SyntaxKind[t.kind]} not implemented in gathering decorator metadata.`,category:C.default.DiagnosticCategory.Error,code:0});break}return C.default.factory.createObjectLiteralExpression(n)}function n_(t,e,n,r){let s=[];for(let a of n){if(!a.type&&a.decorators.length===0){s.push(C.default.factory.createNull());continue}let l=a.type?Vg(e,a.type):void 0,c=[C.default.factory.createPropertyAssignment("type",l||C.default.factory.createIdentifier("undefined"))],u=[];for(let h of a.decorators)u.push(Ug(h,t));u.length&&c.push(C.default.factory.createPropertyAssignment("decorators",C.default.factory.createArrayLiteralExpression(u))),s.push(C.default.factory.createObjectLiteralExpression(c))}let i=C.default.factory.createArrowFunction(void 0,void 0,[],void 0,C.default.factory.createToken(C.default.SyntaxKind.EqualsGreaterThanToken),C.default.factory.createArrayLiteralExpression(s,!0)),o=C.default.factory.createPropertyDeclaration([C.default.factory.createToken(C.default.SyntaxKind.StaticKeyword)],"ctorParameters",void 0,void 0,i);return r&&C.default.setSyntheticLeadingComments(o,[{kind:C.default.SyntaxKind.MultiLineCommentTrivia,text:["*"," * @type {function(): !Array<(null|{"," * type: ?,",` * decorators: (undefined|${$g}),`," * })>}"," * @nocollapse"," "].join(`
44
- `),pos:-1,end:-1,hasTrailingNewLine:!0}]),o}function Vg(t,e){let n=e.kind;switch(C.default.isLiteralTypeNode(e)&&(n=e.literal.kind),n){case C.default.SyntaxKind.FunctionType:case C.default.SyntaxKind.ConstructorType:return C.default.factory.createIdentifier("Function");case C.default.SyntaxKind.ArrayType:case C.default.SyntaxKind.TupleType:return C.default.factory.createIdentifier("Array");case C.default.SyntaxKind.TypePredicate:case C.default.SyntaxKind.TrueKeyword:case C.default.SyntaxKind.FalseKeyword:case C.default.SyntaxKind.BooleanKeyword:return C.default.factory.createIdentifier("Boolean");case C.default.SyntaxKind.StringLiteral:case C.default.SyntaxKind.StringKeyword:return C.default.factory.createIdentifier("String");case C.default.SyntaxKind.ObjectKeyword:return C.default.factory.createIdentifier("Object");case C.default.SyntaxKind.NumberKeyword:case C.default.SyntaxKind.NumericLiteral:return C.default.factory.createIdentifier("Number");case C.default.SyntaxKind.TypeReference:return t(e.typeName);case C.default.SyntaxKind.UnionType:let s=e.types.filter(i=>!(C.default.isLiteralTypeNode(i)&&i.literal.kind===C.default.SyntaxKind.NullKeyword));return s.length===1?Vg(t,s[0]):void 0;default:return}}function r_(t,e){return e.flags&C.default.SymbolFlags.Alias&&(e=t.getAliasedSymbol(e)),(e.flags&C.default.SymbolFlags.Value&C.default.SymbolFlags.ConstEnumExcludes)!==0}function qg(t,e,n,r,s,i){function o(l,c){s&&C.default.setSyntheticLeadingComments(l,[{kind:C.default.SyntaxKind.MultiLineCommentTrivia,text:`* @type {${c}} `,pos:-1,end:-1,hasTrailingNewLine:!0}])}function a(l,c){let u=[];for(let[m,E]of c.entries())u.push(C.default.factory.createPropertyAssignment(m,C.default.factory.createArrayLiteralExpression(E.map(S=>Ug(S,l)))));let h=C.default.factory.createObjectLiteralExpression(u,!0),f=C.default.factory.createPropertyDeclaration([C.default.factory.createToken(C.default.SyntaxKind.StaticKeyword)],"propDecorators",void 0,void 0,h);return o(f,`!Object<string, ${$g}>`),f}return l=>{let c=Ju(l);function u(S){let I=t.getSymbolAtLocation(S);if(!I||!r_(t,I)||!I.declarations||I.declarations.length===0)return;if(C.default.isQualifiedName(S)){let $=u(S.left);return $===void 0?void 0:C.default.factory.createPropertyAccessExpression($,S.right)}let N=I.declarations[0];return Zu(N)&&(c.add(N),N.name!==void 0)?C.default.setOriginalNode(C.default.factory.createIdentifier(N.name.text),N.name):C.default.setOriginalNode(C.default.factory.createIdentifier(S.text),S)}function h(S){S=C.default.visitEachChild(S,E,l);let I=[],N=[],$=e.getDecoratorsOfDeclaration(S)||[];for(let Ee of $){let Ne=Ee.node;if(!Sp(Ee,r)){I.push(Ne);continue}N.push(Ne)}if(!N.length)return[void 0,S,[]];if(!S.name||!C.default.isIdentifier(S.name))return n.push({file:S.getSourceFile(),start:S.getStart(),length:S.getEnd()-S.getStart(),messageText:"Cannot process decorators for class element with non-analyzable name.",category:C.default.DiagnosticCategory.Error,code:0}),[void 0,S,[]];let Te=C.default.canHaveModifiers(S)?C.default.getModifiers(S):void 0,le;return(I.length||Te?.length)&&(le=C.default.setTextRange(C.default.factory.createNodeArray([...I,...Te||[]]),S.modifiers)),[S.name.text,s_(S,le),N]}function f(S){S=C.default.visitEachChild(S,E,l);let I=[],N=S.parameters,$=[];for(let le of N){let Ee=[],Ne={decorators:[],type:null},Cr=e.getDecoratorsOfDeclaration(le)||[];for(let Yp of Cr){let Qp=Yp.node;if(!Sp(Yp,r)){Ee.push(Qp);continue}Ne.decorators.push(Qp)}le.type&&(Ne.type=le.type),$.push(Ne);let Mt,Ir=C.default.getModifiers(le);(Ee.length||Ir?.length)&&(Mt=[...Ee,...Ir||[]]);let Zv=C.default.factory.updateParameterDeclaration(le,Mt,le.dotDotDotToken,le.name,le.questionToken,le.type,le.initializer);I.push(Zv)}return[C.default.factory.updateConstructorDeclaration(S,C.default.getModifiers(S),I,S.body),$]}function m(S){let I=[],N=new Map,$=null;for(let Ne of S.members){switch(Ne.kind){case C.default.SyntaxKind.PropertyDeclaration:case C.default.SyntaxKind.GetAccessor:case C.default.SyntaxKind.SetAccessor:case C.default.SyntaxKind.MethodDeclaration:{let[Cr,Mt,Ir]=h(Ne);I.push(Mt),Cr&&N.set(Cr,Ir);continue}case C.default.SyntaxKind.Constructor:{if(!Ne.body)break;let[Mt,Ir]=f(Ne);$=Ir,I.push(Mt);continue}default:break}I.push(C.default.visitEachChild(Ne,E,l))}let le=(e.getDecoratorsOfDeclaration(S)||[]).some(Ne=>Sp(Ne,r));$&&(le||$.some(Ne=>!!Ne.decorators.length))&&I.push(n_(n,u,$,s)),N.size&&I.push(a(n,N));let Ee=C.default.setTextRange(C.default.factory.createNodeArray(I,S.members.hasTrailingComma),S.members);return C.default.factory.updateClassDeclaration(S,S.modifiers,S.name,S.typeParameters,S.heritageClauses,Ee)}function E(S){return C.default.isClassDeclaration(S)&&(i===void 0||i(S))?m(S):C.default.visitEachChild(S,E,l)}return S=>C.default.visitEachChild(S,E,l)}}function s_(t,e){let n;if(C.default.isMethodDeclaration(t))n=C.default.factory.createMethodDeclaration(e,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body);else if(C.default.isPropertyDeclaration(t))n=C.default.factory.createPropertyDeclaration(e,t.name,t.questionToken,t.type,t.initializer);else if(C.default.isGetAccessor(t))n=C.default.factory.createGetAccessorDeclaration(e,t.name,t.parameters,t.type,t.body);else if(C.default.isSetAccessor(t))n=C.default.factory.createSetAccessorDeclaration(e,t.name,t.parameters,t.body);else throw new Error(`Unsupported decorated member with kind ${C.default.SyntaxKind[t.kind]}`);return C.default.setOriginalNode(n,t)}function nl(t,e,n,r,s){let i=tl.default.isIdentifier(n.identifier)?n.identifier:n.identifier.expression;return t.createPropertyAccessExpression(e.addImport({exportModuleSpecifier:"@angular/core",exportSymbolName:null,requestedFile:r}),tl.default.setOriginalNode(t.createIdentifier(s),i))}function Gg(t,e){return t.createAsExpression(e,t.createKeywordTypeNode(tl.default.SyntaxKind.AnyKeyword))}var i_=(t,e,n,r,s,i,o,a)=>{var l,c;if((l=n.getDecoratorsOfDeclaration(t.node))!=null&&l.some(m=>ti(m,"Input",a)))return t.node;let u=Ag(t,n,s);if(u===null)return t.node;let h={isSignal:r.createTrue(),alias:r.createStringLiteral(u.bindingPropertyName),required:u.required?r.createTrue():r.createFalse(),transform:r.createIdentifier("undefined")},f=r.createDecorator(r.createCallExpression(nl(r,i,o,e,"Input"),void 0,[Gg(r,r.createObjectLiteralExpression(Object.entries(h).map(([m,E])=>r.createPropertyAssignment(m,E))))]));return r.updatePropertyDeclaration(t.node,[f,...(c=t.node.modifiers)!=null?c:[]],t.name,t.node.questionToken,t.node.type,t.node.initializer)},o_=(t,e,n,r,s,i,o,a)=>{var l,c;if((l=n.getDecoratorsOfDeclaration(t.node))!=null&&l.some(E=>ti(E,"Input",a)||ti(E,"Output",a)))return t.node;let u=Ng(t,n,s);if(u===null)return t.node;let h=r.createObjectLiteralExpression([r.createPropertyAssignment("isSignal",u.input.isSignal?r.createTrue():r.createFalse()),r.createPropertyAssignment("alias",r.createStringLiteral(u.input.bindingPropertyName)),r.createPropertyAssignment("required",u.input.required?r.createTrue():r.createFalse())]),f=Fg("Input",r.createAsExpression(h,r.createKeywordTypeNode(Hg.default.SyntaxKind.AnyKeyword)),o,r,e,i),m=Fg("Output",r.createStringLiteral(u.output.bindingPropertyName),o,r,e,i);return r.updatePropertyDeclaration(t.node,[f,m,...(c=t.node.modifiers)!=null?c:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)};function Fg(t,e,n,r,s,i){let o=nl(r,i,n,s,t);return r.createDecorator(r.createCallExpression(o,void 0,[e]))}var a_=(t,e,n,r,s,i,o,a)=>{var l,c;if((l=n.getDecoratorsOfDeclaration(t.node))!=null&&l.some(f=>ti(f,"Output",a)))return t.node;let u=bg(t,n,s);if(u===null)return t.node;let h=r.createDecorator(r.createCallExpression(nl(r,i,o,e,"Output"),void 0,[r.createStringLiteral(u.metadata.bindingPropertyName)]));return r.updatePropertyDeclaration(t.node,[h,...(c=t.node.modifiers)!=null?c:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)},l_={viewChild:"ViewChild",viewChildren:"ViewChildren",contentChild:"ContentChild",contentChildren:"ContentChildren"},c_=(t,e,n,r,s,i,o,a)=>{var l;let c=n.getDecoratorsOfDeclaration(t.node),u=c&&Cg(c,yp,a);if(u!==null&&u.length>0)return t.node;let h=Dg(t,n,s);if(h===null)return t.node;let f=h.call.arguments,m=r.createDecorator(r.createCallExpression(nl(r,i,o,e,l_[h.name]),void 0,[h.call.arguments[0],Gg(r,r.createObjectLiteralExpression([...f.length>1?[r.createSpreadAssignment(f[1])]:[],r.createPropertyAssignment("isSignal",r.createTrue())]))]));return r.updatePropertyDeclaration(t.node,[m,...(l=t.node.modifiers)!=null?l:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)},u_=["Directive","Component"],p_=[i_,a_,c_,o_];function Wg(t,e,n,r){return s=>i=>{let o=new tp;return i=xr.default.visitNode(i,h_(s,t,o,e,n,r),xr.default.isSourceFile),o.transformTsFile(s,i)}}function h_(t,e,n,r,s,i){let o=a=>{var l;if(xr.default.isClassDeclaration(a)&&a.name!==void 0){let c=xr.default.getOriginalNode(a,xr.default.isClassDeclaration),u=(l=e.getDecoratorsOfDeclaration(c))==null?void 0:l.find(h=>u_.some(f=>ti(h,f,s)));if(u!==void 0&&(i===void 0||i(a))){let h=!1,f=c.getSourceFile(),m=a.members.map(E=>{if(!xr.default.isPropertyDeclaration(E))return E;let S=Yu(E);if(S===null)return E;for(let I of p_){let N=I({...S,node:E},f,e,t.factory,r,n,u,s);if(N!==S.node)return h=!0,N}return E});if(h)return t.factory.updateClassDeclaration(a,a.modifiers,a.name,a.typeParameters,a.heritageClauses,m)}}return xr.default.visitEachChild(a,o,t)};return o}function wo(t,e=!1,n){let r=t.getTypeChecker(),s=new Xu(r),i=new ep,o=qg(r,s,[],e,!1,n),a=Wg(s,i,e,n);return l=>c=>(c=a(l)(c),c=o(l)(c),c)}var E2=(0,jg.createRequire)(R),Kg={ngDevMode:!1,ngI18nClosureMode:!1},f_={...Kg,ngJitMode:!1};w();var Xv=require("module");var fP=x(require("typescript"),1),dP=x(require("typescript"),1),mP=x(require("typescript"),1),gP=x(require("typescript"),1),yP=x(require("typescript"),1),vP=x(require("typescript"),1),EP=x(require("typescript"),1),SP=x(require("typescript"),1),wP=x(require("typescript"),1),TP=x(require("typescript"),1),xP=x(require("typescript"),1);var CP=x(require("typescript"),1);var Yv=x(require("typescript"),1);var IP=x(require("typescript"),1),AP=x(require("typescript"),1),NP=x(require("typescript"),1),bP=x(require("typescript"),1);var DP=x(require("typescript"),1);var Wp=x(require("typescript"),1);var jp=x(require("typescript"),1);var Kp=x(require("typescript"),1);var sM=x(require("typescript"),1);var oM=x(require("typescript"),1),aM=x(require("typescript"),1),lM=x(Bv(),1),cM=x(require("typescript"),1),uM=x(require("typescript"),1),pM=x(require("typescript"),1),cB=(0,Xv.createRequire)(R);var Up;(function(t){t[t.DTS=1]="DTS",t[t.JS=2]="JS",t[t.Metadata=4]="Metadata",t[t.I18nBundle=8]="I18nBundle",t[t.Codegen=16]="Codegen",t[t.Default=19]="Default",t[t.All=31]="All"})(Up||(Up={}));var Vp;(function(t){t.Block="block",t.Component="component",t.Constant="constant",t.Decorator="decorator",t.Directive="directive",t.Element="element",t.Enum="enum",t.Function="function",t.Interface="interface",t.NgModule="ng_module",t.Pipe="pipe",t.TypeAlias="type_alias",t.UndecoratedClass="undecorated_class",t.InitializerApiFunction="initializer_api_function"})(Vp||(Vp={}));var qp;(function(t){t.Property="property",t.Method="method",t.Getter="getter",t.Setter="setter",t.EnumItem="enum_item"})(qp||(qp={}));var Gp;(function(t){t.Class="class",t.Member="member",t.Parameter="parameter"})(Gp||(Gp={}));var Hp;(function(t){t.Abstract="abstract",t.Static="static",t.Readonly="readonly",t.Protected="protected",t.Optional="optional",t.Input="input",t.Output="output",t.Inherited="override"})(Hp||(Hp={}));var yB=Yv.default.version;var EB=Symbol("NgCyclicResult");var $v;(function(t){t[t.Fresh=0]="Fresh",t[t.Delta=1]="Delta",t[t.Analyzed=2]="Analyzed"})($v||($v={}));var Uv;(function(t){t[t.Analysis=0]="Analysis",t[t.TypeCheckAndEmit=1]="TypeCheckAndEmit"})(Uv||(Uv={}));var SB=Symbol("NgIncrementalState"),Vv;(function(t){t[t.Property=0]="Property",t[t.Method=1]="Method",t[t.Element=2]="Element",t[t.Template=3]="Template",t[t.Attribute=4]="Attribute",t[t.Reference=5]="Reference",t[t.Variable=6]="Variable",t[t.LetDeclaration=7]="LetDeclaration"})(Vv||(Vv={}));var _P=".$ngresource$",xB=_P+".ts";var RP=new Set(["WritableSignal","Signal","InputSignal","InputSignalWithTransform","ModelSignal"]);function qv(t){return(t.kind===Pt.Expression||t.kind===Pt.Variable||t.kind===Pt.LetDeclaration)&&(t.tsType.symbol!==void 0&&Gv(t.tsType.symbol)||t.tsType.aliasSymbol!==void 0&&Gv(t.tsType.aliasSymbol))}function Gv(t){let e=t.getDeclarations();return e!==void 0&&e.some(n=>{let r=n.getSourceFile().fileName;return(Wp.default.isInterfaceDeclaration(n)||Wp.default.isTypeAliasDeclaration(n))&&RP.has(n.name.text)&&(r.includes("@angular/core")||r.includes("angular2/rc/packages/core"))})}var In=class{constructor(){this.canVisitStructuralAttributes=!0}run(t,e,n){return new kP(t,e,this).getDiagnostics(n)}},kP=class extends pr{constructor(t,e,n){super(),this.ctx=t,this.component=e,this.check=n,this.diagnostics=[]}visit(t,e){this.diagnostics.push(...this.check.visitNode(this.ctx,this.component,t)),t.visit(this)}visitAllNodes(t){for(let e of t)this.visit(e)}visitAst(t){t instanceof de&&(t=t.ast),this.visit(t)}visitElement(t){this.visitAllNodes(t.attributes),this.visitAllNodes(t.inputs),this.visitAllNodes(t.outputs),this.visitAllNodes(t.references),this.visitAllNodes(t.children)}visitTemplate(t){let e=t.tagName==="ng-template";this.visitAllNodes(t.attributes),e&&(this.visitAllNodes(t.inputs),this.visitAllNodes(t.outputs)),(this.check.canVisitStructuralAttributes||e)&&this.visitAllNodes(t.templateAttrs),this.visitAllNodes(t.variables),this.visitAllNodes(t.references),this.visitAllNodes(t.children)}visitContent(t){this.visitAllNodes(t.children)}visitVariable(t){}visitReference(t){}visitTextAttribute(t){}visitUnknownBlock(t){}visitBoundAttribute(t){this.visitAst(t.value)}visitBoundEvent(t){this.visitAst(t.handler)}visitText(t){}visitBoundText(t){this.visitAst(t.value)}visitIcu(t){}visitDeferredBlock(t){t.visitAll(this)}visitDeferredTrigger(t){t instanceof Ls&&this.visitAst(t.value)}visitDeferredBlockPlaceholder(t){this.visitAllNodes(t.children)}visitDeferredBlockError(t){this.visitAllNodes(t.children)}visitDeferredBlockLoading(t){this.visitAllNodes(t.children)}visitSwitchBlock(t){this.visitAst(t.expression),this.visitAllNodes(t.cases)}visitSwitchBlockCase(t){t.expression&&this.visitAst(t.expression),this.visitAllNodes(t.children)}visitForLoopBlock(t){var e;t.item.visit(this),this.visitAllNodes(t.contextVariables),this.visitAst(t.expression),this.visitAllNodes(t.children),(e=t.empty)==null||e.visit(this)}visitForLoopBlockEmpty(t){this.visitAllNodes(t.children)}visitIfBlock(t){this.visitAllNodes(t.branches)}visitIfBlockBranch(t){var e;t.expression&&this.visitAst(t.expression),(e=t.expressionAlias)==null||e.visit(this),this.visitAllNodes(t.children)}visitLetDeclaration(t){this.visitAst(t.value)}getDiagnostics(t){return this.diagnostics=[],this.visitAllNodes(t),this.diagnostics}},PP=new Set(["set","update","asReadonly"]),MP=new Set(["name","length","prototype"]),LP=class extends In{constructor(){super(...arguments),this.code=Q.INTERPOLATED_SIGNAL_NOT_INVOKED}visitNode(t,e,n){if(n instanceof Fn)return n.expressions.filter(r=>r instanceof Ie).flatMap(r=>Hv(t,r,e));if(n instanceof _t){let r=t.templateTypeChecker.getUsedDirectives(e);if(r!==null&&r.some(s=>s.inputs.getByBindingPropertyName(n.name)!==null))return[];if((n.type===z.Property||n.type===z.Class||n.type===z.Style||n.type===z.Attribute||n.type===z.Animation)&&n.value instanceof de&&n.value.ast instanceof Ie)return Hv(t,n.value.ast,e)}return[]}};function OP(t){return MP.has(t)}function FP(t){return PP.has(t)}function Hv(t,e,n){let r=t.templateTypeChecker.getSymbolOfNode(e,n);if(r!==null&&r.kind===Pt.Expression&&qv(r)){let i=t.templateTypeChecker.getTemplateMappingAtTcbLocation(r.tcbLocation),o=`${e.name} is a function and should be invoked: ${e.name}()`;return[t.makeTemplateDiagnostic(i.span,o)]}let s=t.templateTypeChecker.getSymbolOfNode(e.receiver,n);if((OP(e.name)||FP(e.name))&&s!==null&&s.kind===Pt.Expression&&qv(s)){let i=t.templateTypeChecker.getTemplateMappingAtTcbLocation(s.tcbLocation),o=`${e.receiver.name} is a function and should be invoked: ${e.receiver.name}()`;return[t.makeTemplateDiagnostic(i.span,o)]}return[]}var BP={code:Q.INTERPOLATED_SIGNAL_NOT_INVOKED,name:Tt.INTERPOLATED_SIGNAL_NOT_INVOKED,create:()=>new LP},$P=class extends In{constructor(){super(...arguments),this.code=Q.INVALID_BANANA_IN_BOX}visitNode(t,e,n){if(!(n instanceof $n))return[];let r=n.name;if(!r.startsWith("[")||!r.endsWith("]"))return[];let i=n.sourceSpan.toString().replace(`(${r})`,`[(${r.slice(1,-1)})]`);return[t.makeTemplateDiagnostic(n.sourceSpan,`In the two-way binding syntax the parentheses should be inside the brackets, ex. '${i}'.
45
- Find more at https://angular.dev/guide/templates/two-way-binding`)]}},UP={code:Q.INVALID_BANANA_IN_BOX,name:Tt.INVALID_BANANA_IN_BOX,create:()=>new $P},Wv=new Map([["ngIf",{directive:"NgIf",builtIn:"@if"}],["ngFor",{directive:"NgFor",builtIn:"@for"}],["ngSwitchCase",{directive:"NgSwitchCase",builtIn:"@switch with @case"}],["ngSwitchDefault",{directive:"NgSwitchDefault",builtIn:"@switch with @default"}]]),VP=class extends In{constructor(){super(...arguments),this.code=Q.MISSING_CONTROL_FLOW_DIRECTIVE}run(t,e,n){let r=t.templateTypeChecker.getDirectiveMetadata(e);return!r||!r.isStandalone?[]:super.run(t,e,n)}visitNode(t,e,n){if(!(n instanceof re))return[];let r=n.templateAttrs.find(c=>Wv.has(c.name));if(!r)return[];let s=t.templateTypeChecker.getSymbolOfNode(n,e);if(s===null||s.directives.length>0)return[];let i=r.keySpan||r.sourceSpan,o=Wv.get(r.name),a=`The \`*${r.name}\` directive was used in the template, but neither the \`${o?.directive}\` directive nor the \`CommonModule\` was imported. Use Angular's built-in control flow ${o?.builtIn} or make sure that either the \`${o?.directive}\` directive or the \`CommonModule\` is included in the \`@Component.imports\` array of this component.`;return[t.makeTemplateDiagnostic(i,a)]}},qP={code:Q.MISSING_CONTROL_FLOW_DIRECTIVE,name:Tt.MISSING_CONTROL_FLOW_DIRECTIVE,create:t=>new VP},GP=class extends In{constructor(){super(...arguments),this.code=Q.MISSING_NGFOROF_LET}visitNode(t,e,n){let r=n instanceof re;if(!(n instanceof re))return[];if(n.templateAttrs.length===0)return[];let s=n.templateAttrs.find(a=>a.name==="ngFor");return s===void 0?[]:n.variables.length>0?[]:[t.makeTemplateDiagnostic(s.sourceSpan,"Your ngFor is missing a value. Did you forget to add the `let` keyword?")]}},HP={code:Q.MISSING_NGFOROF_LET,name:Tt.MISSING_NGFOROF_LET,create:()=>new GP},WP=class extends In{constructor(){super(...arguments),this.canVisitStructuralAttributes=!1,this.code=Q.NULLISH_COALESCING_NOT_NULLABLE}visitNode(t,e,n){if(!(n instanceof mt)||n.operation!=="??")return[];let r=t.templateTypeChecker.getSymbolOfNode(n.left,e);if(r===null||r.kind!==Pt.Expression)return[];let s=r.tsType;if(s.flags&(jp.default.TypeFlags.Any|jp.default.TypeFlags.Unknown))return[];if(s.getNonNullableType()!==s)return[];let i=t.templateTypeChecker.getSymbolOfNode(n,e);if(i.kind!==Pt.Expression)return[];let o=t.templateTypeChecker.getTemplateMappingAtTcbLocation(i.tcbLocation);return o===null?[]:[t.makeTemplateDiagnostic(o.span,"The left side of this nullish coalescing operation does not include 'null' or 'undefined' in its type, therefore the '??' operator can be safely removed.")]}},jP={code:Q.NULLISH_COALESCING_NOT_NULLABLE,name:Tt.NULLISH_COALESCING_NOT_NULLABLE,create:t=>(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks)?new WP:null},KP=class extends In{constructor(){super(...arguments),this.canVisitStructuralAttributes=!1,this.code=Q.OPTIONAL_CHAIN_NOT_NULLABLE}visitNode(t,e,n){if(!(n instanceof vn)&&!(n instanceof ut)&&!(n instanceof ur))return[];let r=t.templateTypeChecker.getSymbolOfNode(n.receiver,e);if(r===null||r.kind!==Pt.Expression)return[];let s=r.tsType;if(s.flags&(Kp.default.TypeFlags.Any|Kp.default.TypeFlags.Unknown))return[];if(s.getNonNullableType()!==s)return[];let i=t.templateTypeChecker.getSymbolOfNode(n,e);if(i.kind!==Pt.Expression)return[];let o=t.templateTypeChecker.getTemplateMappingAtTcbLocation(i.tcbLocation);if(o===null)return[];let a=n instanceof ut?"the '?.' operator can be replaced with the '.' operator":"the '?.' operator can be safely removed";return[t.makeTemplateDiagnostic(o.span,`The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore ${a}.`)]}},zP={code:Q.OPTIONAL_CHAIN_NOT_NULLABLE,name:Tt.OPTIONAL_CHAIN_NOT_NULLABLE,create:t=>(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks)?new KP:null},jv=["px","%","em"],XP=class extends In{constructor(){super(...arguments),this.code=Q.SUFFIX_NOT_SUPPORTED}visitNode(t,e,n){return n instanceof _t?!n.keySpan.toString().startsWith("attr.")||!jv.some(s=>n.name.endsWith(`.${s}`))?[]:[t.makeTemplateDiagnostic(n.keySpan,`The ${jv.map(s=>`'.${s}'`).join(", ")} suffixes are only supported on style bindings.`)]:[]}},YP={code:Q.SUFFIX_NOT_SUPPORTED,name:Tt.SUFFIX_NOT_SUPPORTED,create:()=>new XP},QP=class extends In{constructor(){super(...arguments),this.code=Q.TEXT_ATTRIBUTE_NOT_BINDING}visitNode(t,e,n){if(!(n instanceof Dt))return[];let r=n.name;if(!r.startsWith("attr.")&&!r.startsWith("style.")&&!r.startsWith("class."))return[];let s;if(r.startsWith("attr.")){let o=r.replace("attr.","");s="Static attributes should be written without the 'attr.' prefix.",n.value&&(s+=` For example, ${o}="${n.value}".`)}else{let o=`[${r}]`,a=n.value==="true"||n.value==="false"?n.value:`'${n.value}'`;s="Attribute, style, and class bindings should be enclosed with square braces.",n.value&&(s+=` For example, '${o}="${a}"'.`)}return[t.makeTemplateDiagnostic(n.sourceSpan,s)]}},JP={code:Q.TEXT_ATTRIBUTE_NOT_BINDING,name:Tt.TEXT_ATTRIBUTE_NOT_BINDING,create:()=>new QP},ZP=class extends In{constructor(){super(...arguments),this.code=Q.UNINVOKED_FUNCTION_IN_EVENT_BINDING}visitNode(t,e,n){if(!(n instanceof $n))return[];if(n.type!==ke.Regular&&n.type!==ke.Animation)return[];if(!(n.handler instanceof de))return[];let r=n.handler.source||"";if(n.handler.ast instanceof cr)return n.handler.ast.expressions.flatMap(s=>$p(s,e,n,r,t));if(n.handler.ast instanceof qr){let{trueExp:s,falseExp:i}=n.handler.ast;return[s,i].flatMap(o=>$p(o,e,n,r,t))}return $p(n.handler.ast,e,n,r,t)}};function $p(t,e,n,r,s){var i;if(t instanceof yn||t instanceof vn)return[];if(!(t instanceof Ie)&&!(t instanceof ut))return[];let o=s.templateTypeChecker.getSymbolOfNode(t,e);if(o!==null&&o.kind===Pt.Expression&&((i=o.tsType.getCallSignatures())==null?void 0:i.length)>0){let l=`Function in event binding should be invoked: ${eM(t,r)}()`;return[s.makeTemplateDiagnostic(n.sourceSpan,l)]}return[]}function eM(t,e){return e.substring(t.span.start,t.span.end)}var tM={code:Q.UNINVOKED_FUNCTION_IN_EVENT_BINDING,name:Tt.UNINVOKED_FUNCTION_IN_EVENT_BINDING,create:()=>new ZP},nM=class extends In{constructor(){super(...arguments),this.code=Q.UNUSED_LET_DECLARATION,this.analysis=new Map}run(t,e,n){super.run(t,e,n);let r=[],{allLetDeclarations:s,usedLetDeclarations:i}=this.getAnalysis(e);for(let o of s)i.has(o)||r.push(t.makeTemplateDiagnostic(o.sourceSpan,`@let ${o.name} is declared but its value is never read.`));return this.analysis.clear(),r}visitNode(t,e,n){if(n instanceof Qe)this.getAnalysis(e).allLetDeclarations.add(n);else if(n instanceof me){let r=n instanceof de?n.ast:n,s=t.templateTypeChecker.getExpressionTarget(r,e);s!==null&&s instanceof Qe&&this.getAnalysis(e).usedLetDeclarations.add(s)}return[]}getAnalysis(t){return this.analysis.has(t)||this.analysis.set(t,{allLetDeclarations:new Set,usedLetDeclarations:new Set}),this.analysis.get(t)}},rM={code:Q.UNUSED_LET_DECLARATION,name:Tt.UNUSED_LET_DECLARATION,create:()=>new nM},Kv;(function(t){t.Warning="warning",t.Error="error",t.Suppress="suppress"})(Kv||(Kv={}));var iM=[UP,jP,zP,qP,JP,HP,YP,BP,tM,rM],LB=new Set([Tt.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION,...iM.map(t=>t.name)]);var FB=[fp,dp,...mp,...gp];var zv;(function(t){t[t.Fresh=0]="Fresh",t[t.IncrementalTypeScript=1]="IncrementalTypeScript",t[t.IncrementalResource=2]="IncrementalResource"})(zv||(zv={}));w();var Qv=require("module"),JB=(0,Qv.createRequire)(R),zp;(function(t){t[t.debug=0]="debug",t[t.info=1]="info",t[t.warn=2]="warn",t[t.error=3]="error"})(zp||(zp={}));var Xp="\x1B[0m",hM="\x1B[31m",fM="\x1B[33m",dM="\x1B[36m",ZB=`${dM}Debug:${Xp}`,e$=`${fM}Warning:${Xp}`,t$=`${hM}Error:${Xp}`;var P$=(0,Jv.createRequire)(R),H$=new Ni("18.2.4");nh(new oh);0&&(module.exports={angularJitApplicationTransform});
43
+ Please report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.`)}var $M=Symbol("DefaultImportDeclaration");var ep=class{constructor(){this.fileToNamedImports=new WeakMap,this.fileToNamespaceImports=new WeakMap}isPotentialReferenceToNamedImport(t,e,n){let r=t.getSourceFile();this.scanImports(r);let i=this.fileToNamedImports.get(r).get(n),o=i?.get(e);return o!==void 0&&o.has(t.text)}isPotentialReferenceToNamespaceImport(t,e){var n,r;let s=t.getSourceFile();return this.scanImports(s),(r=(n=this.fileToNamespaceImports.get(s).get(e))==null?void 0:n.has(t.text))!=null?r:!1}hasNamedImport(t,e,n){this.scanImports(t);let s=this.fileToNamedImports.get(t).get(n);return s!==void 0&&s.has(e)}hasNamespaceImport(t,e){return this.scanImports(t),this.fileToNamespaceImports.get(t).has(e)}scanImports(t){var e,n;if(this.fileToNamedImports.has(t)&&this.fileToNamespaceImports.has(t))return;let r=new Map,s=new Map;this.fileToNamedImports.set(t,r),this.fileToNamespaceImports.set(t,s);for(let i of t.statements){if(!Ka.default.isImportDeclaration(i)||!Ka.default.isStringLiteralLike(i.moduleSpecifier)||((e=i.importClause)==null?void 0:e.namedBindings)===void 0)continue;let o=i.moduleSpecifier.text;if(Ka.default.isNamespaceImport(i.importClause.namedBindings))s.has(o)||s.set(o,new Set),s.get(o).add(i.importClause.namedBindings.name.text);else for(let a of i.importClause.namedBindings.elements){let l=a.name.text,c=a.propertyName===void 0?l:a.propertyName.text;r.has(o)||r.set(o,new Map);let u=r.get(o);u.has(c)||u.set(c,new Set),(n=u.get(c))==null||n.add(l)}}}};function hD(){let t=new Set,e=(r,s)=>t.has(`${r.fileName}@@${s}`),n=(r,s)=>t.add(`${r.fileName}@@${s}`);return(r,s)=>{let i=r;if(i.identifiers===void 0)throw new Error("Source file unexpectedly lacks map of parsed `identifiers`.");let o=c=>!i.identifiers.has(c)&&!e(i,c);if(o(s))return n(i,s),null;let a=null,l=1;do a=`${s}_${l++}`;while(!o(a));return n(i,a),$u.default.factory.createUniqueName(a,$u.default.GeneratedIdentifierFlags.Optimistic)}}function fD(t,e){return n=>{let{affectedFiles:r,newImports:s,updatedImports:i,reusedOriginalAliasDeclarations:o,deletedImports:a}=t.finalize();if(o.size>0){let c=Ju(n);o.forEach(u=>c.add(u))}if(e!==void 0)for(let[c,u]of e.entries())u.length>0&&r.add(c);let l=c=>{if(!Wn.default.isImportDeclaration(c))return c;if(a.has(c))return;if(c.importClause===void 0||!Wn.default.isImportClause(c.importClause))return c;let u=c.importClause;if(u.namedBindings===void 0||!Wn.default.isNamedImports(u.namedBindings)||!i.has(u.namedBindings))return c;let h=n.factory.updateImportClause(u,u.isTypeOnly,u.name,i.get(u.namedBindings)),f=n.factory.updateImportDeclaration(c,c.modifiers,h,c.moduleSpecifier,c.attributes);return Wn.default.setOriginalNode(f,{importClause:h,kind:f.kind}),f};return c=>{var u,h;if(!r.has(c.fileName))return c;c=Wn.default.visitEachChild(c,l,n);let f=(u=e?.get(c.fileName))!=null?u:[],m=[],E=[];for(let S of c.statements)dD(S)?m.push(S):E.push(S);return n.factory.updateSourceFile(c,[...m,...(h=s.get(c.fileName))!=null?h:[],...f,...E],c.isDeclarationFile,c.referencedFiles,c.typeReferenceDirectives,c.hasNoDefaultLib,c.libReferenceDirectives)}}}function dD(t){return Wn.default.isImportDeclaration(t)||Wn.default.isImportEqualsDeclaration(t)||Wn.default.isNamespaceImport(t)}function mD(t,e){let n=tg(e),r=t.directReuseCache.get(n);if(r!==void 0)return r;let s=t.namespaceImportReuseCache.get(e.exportModuleSpecifier);return s===void 0?null:e.exportSymbolName===null?s:[s,eg.default.factory.createIdentifier(e.exportSymbolName)]}function Hm(t,e,n){e.directReuseCache.set(tg(t),n),t.exportSymbolName===null&&!Array.isArray(n)&&e.namespaceImportReuseCache.set(t.exportModuleSpecifier,n)}function tg(t){return`${t.requestedFile.fileName}:${t.exportModuleSpecifier}:${t.exportSymbolName}${t.unsafeAliasOverride?":"+t.unsafeAliasOverride:""}`}function gD(t,e,n){let r=null;for(let a=e.statements.length-1;a>=0;a--){let l=e.statements[a];if(!(!Sr.default.isImportDeclaration(l)||!Sr.default.isStringLiteral(l.moduleSpecifier)||!l.importClause||l.importClause.isTypeOnly||l.moduleSpecifier.text!==n.exportModuleSpecifier)&&l.importClause.namedBindings){let u=l.importClause.namedBindings;if(Sr.default.isNamespaceImport(u))return t.reusedAliasDeclarations.add(u),n.exportSymbolName===null?u.name:[u.name,Sr.default.factory.createIdentifier(n.exportSymbolName)];if(Sr.default.isNamedImports(u)&&n.exportSymbolName!==null){let h=u.elements.find(f=>{var m;let E;return n.unsafeAliasOverride?E=((m=f.propertyName)==null?void 0:m.text)===n.exportSymbolName&&f.name.text===n.unsafeAliasOverride:E=f.propertyName?f.propertyName.text===n.exportSymbolName:f.name.text===n.exportSymbolName,!f.isTypeOnly&&E});if(h!==void 0)return t.reusedAliasDeclarations.add(h),h.name;r=l}}}if(r===null||n.exportSymbolName===null)return null;t.updatedImports.has(r)||t.updatedImports.set(r,[]);let s=t.updatedImports.get(r),i=Sr.default.factory.createIdentifier(n.exportSymbolName),o=n.unsafeAliasOverride?Sr.default.factory.createIdentifier(n.unsafeAliasOverride):t.generateUniqueIdentifier(e,n.exportSymbolName);return s.push({propertyName:i,fileUniqueAlias:o}),o??i}var tp=class{constructor(t={}){var e,n,r,s,i,o;this.newImports=new Map,this.removedImports=new Map,this.nextUniqueIndex=0,this.reuseGeneratedImportsTracker={directReuseCache:new Map,namespaceImportReuseCache:new Map},this.config={shouldUseSingleQuotes:(e=t.shouldUseSingleQuotes)!=null?e:()=>!1,rewriter:(n=t.rewriter)!=null?n:null,disableOriginalSourceFileReuse:(r=t.disableOriginalSourceFileReuse)!=null?r:!1,forceGenerateNamespacesForNewImports:(s=t.forceGenerateNamespacesForNewImports)!=null?s:!1,namespaceImportPrefix:(i=t.namespaceImportPrefix)!=null?i:"i",generateUniqueIdentifier:(o=t.generateUniqueIdentifier)!=null?o:hD()},this.reuseSourceFileImportsTracker={generateUniqueIdentifier:this.config.generateUniqueIdentifier,reusedAliasDeclarations:new Set,updatedImports:new Map}}addSideEffectImport(t,e){this.config.rewriter!==null&&(e=this.config.rewriter.rewriteSpecifier(e,t.fileName)),this._getNewImportsTrackerForFile(t).sideEffectImports.add(e)}addImport(t){var e,n;this.config.rewriter!==null&&(t.exportSymbolName!==null&&(t.exportSymbolName=this.config.rewriter.rewriteSymbol(t.exportSymbolName,t.exportModuleSpecifier)),t.exportModuleSpecifier=this.config.rewriter.rewriteSpecifier(t.exportModuleSpecifier,t.requestedFile.fileName)),t.exportSymbolName!==null&&!t.asTypeReference&&((n=(e=this.removedImports.get(t.requestedFile))==null?void 0:e.get(t.exportModuleSpecifier))==null||n.delete(t.exportSymbolName));let r=mD(this.reuseGeneratedImportsTracker,t);if(r!==null)return Wm(!!t.asTypeReference,r);let s=this._generateNewImport(t);return Hm(t,this.reuseGeneratedImportsTracker,s),Wm(!!t.asTypeReference,s)}removeImport(t,e,n){let r=this.removedImports.get(t);r||(r=new Map,this.removedImports.set(t,r));let s=r.get(n);s||(s=new Set,r.set(n,s)),s.add(e)}_generateNewImport(t){var e;let{requestedFile:n}=t,r=this.config.disableOriginalSourceFileReuse,s=this.config.forceGenerateNamespacesForNewImports;if(!r){let h=gD(this.reuseSourceFileImportsTracker,n,t);if(h!==null)return h}let{namedImports:i,namespaceImports:o}=this._getNewImportsTrackerForFile(n);if(t.exportSymbolName===null||s){let h=`${this.config.namespaceImportPrefix}${this.nextUniqueIndex++}`,f=Se.default.factory.createNamespaceImport((e=this.config.generateUniqueIdentifier(n,h))!=null?e:Se.default.factory.createIdentifier(h));return o.set(t.exportModuleSpecifier,f),Hm({...t,exportSymbolName:null},this.reuseGeneratedImportsTracker,f.name),t.exportSymbolName!==null?[f.name,Se.default.factory.createIdentifier(t.exportSymbolName)]:f.name}i.has(t.exportModuleSpecifier)||i.set(t.exportModuleSpecifier,[]);let a=Se.default.factory.createIdentifier(t.exportSymbolName),l=t.unsafeAliasOverride?null:this.config.generateUniqueIdentifier(n,t.exportSymbolName),c,u;return t.unsafeAliasOverride?(c=!0,u=Se.default.factory.createIdentifier(t.unsafeAliasOverride)):l!==null?(c=!0,u=l):(c=!1,u=a),i.get(t.exportModuleSpecifier).push(Se.default.factory.createImportSpecifier(!1,c?a:void 0,u)),u}finalize(){let t=new Set,e=new Map,n=new Map,r=new Set,s=new Map,i=(o,a)=>{t.add(o),n.has(o)?n.get(o).push(a):n.set(o,[a])};return this.reuseSourceFileImportsTracker.updatedImports.forEach((o,a)=>{let l=a.getSourceFile(),c=a.importClause.namedBindings,u=a.moduleSpecifier.text,h=c.elements.concat(o.map(({propertyName:f,fileUniqueAlias:m})=>Se.default.factory.createImportSpecifier(!1,m!==null?f:void 0,m??f))).filter(f=>this._canAddSpecifier(l,u,f));t.add(l.fileName),h.length===0?r.add(a):e.set(c,Se.default.factory.updateNamedImports(c,h))}),this.removedImports.forEach((o,a)=>{var l;if(o.size===0)return;let c=s.get(a);c||(c=a.statements.filter(Se.default.isImportDeclaration),s.set(a,c));for(let u of c){if(!((l=u.importClause)!=null&&l.namedBindings)||!Se.default.isNamedImports(u.importClause.namedBindings)||this.reuseSourceFileImportsTracker.updatedImports.has(u)||r.has(u))continue;let h=u.importClause.namedBindings,f=u.moduleSpecifier.text,m=h.elements.filter(E=>this._canAddSpecifier(a,f,E));m.length===0?(t.add(a.fileName),r.add(u)):m.length!==h.elements.length&&(t.add(a.fileName),e.set(h,Se.default.factory.updateNamedImports(h,m)))}}),this.newImports.forEach(({namedImports:o,namespaceImports:a,sideEffectImports:l},c)=>{let u=this.config.shouldUseSingleQuotes(c),h=c.fileName;l.forEach(f=>{i(h,Se.default.factory.createImportDeclaration(void 0,void 0,Se.default.factory.createStringLiteral(f)))}),a.forEach((f,m)=>{let E=Se.default.factory.createImportDeclaration(void 0,Se.default.factory.createImportClause(!1,void 0,f),Se.default.factory.createStringLiteral(m,u));Se.default.setOriginalNode(f.name,E),i(h,E)}),o.forEach((f,m)=>{let E=f.filter(S=>this._canAddSpecifier(c,m,S));if(E.length>0){let S=Se.default.factory.createImportDeclaration(void 0,Se.default.factory.createImportClause(!1,void 0,Se.default.factory.createNamedImports(E)),Se.default.factory.createStringLiteral(m,u));i(h,S)}})}),{affectedFiles:t,newImports:n,updatedImports:e,reusedOriginalAliasDeclarations:this.reuseSourceFileImportsTracker.reusedAliasDeclarations,deletedImports:r}}toTsTransform(t){return fD(this,t)}transformTsFile(t,e,n){let r=n?new Map([[e.fileName,n]]):void 0;return this.toTsTransform(r)(t)(e)}_getNewImportsTrackerForFile(t){return this.newImports.has(t)||this.newImports.set(t,{namespaceImports:new Map,namedImports:new Map,sideEffectImports:new Set}),this.newImports.get(t)}_canAddSpecifier(t,e,n){var r,s;return!((s=(r=this.removedImports.get(t))==null?void 0:r.get(e))!=null&&s.has((n.propertyName||n.name).text))}};function Wm(t,e){return t?Array.isArray(e)?Se.default.factory.createQualifiedName(e[0],e[1]):e:Array.isArray(e)?Se.default.factory.createPropertyAccessExpression(e[0],e[1]):e}var UM=new Map([[mn.Minus,"-"],[mn.Plus,"+"]]),VM=new Map([[A.And,"&&"],[A.Bigger,">"],[A.BiggerEquals,">="],[A.BitwiseAnd,"&"],[A.BitwiseOr,"|"],[A.Divide,"/"],[A.Equals,"=="],[A.Identical,"==="],[A.Lower,"<"],[A.LowerEquals,"<="],[A.Minus,"-"],[A.Modulo,"%"],[A.Multiply,"*"],[A.NotEquals,"!="],[A.NotIdentical,"!=="],[A.Or,"||"],[A.Plus,"+"],[A.NullishCoalesce,"??"]]);var Ou={};function ng(t,e){return n(t);function n(i){return r(i)!==Ou}function r(i){return ge.default.isImportTypeNode(i)||ge.default.isTypeReferenceNode(i)&&!s(i)?Ou:ge.default.forEachChild(i,r)}function s(i){return e(i)?i.typeArguments===void 0||i.typeArguments.every(n):!1}}var rg=class{constructor(t){this.translator=t}emitType(t){let e=n=>{let r=s=>{if(ge.default.isImportTypeNode(s))throw new Error("Unable to emit import type");if(ge.default.isTypeReferenceNode(s))return this.emitTypeReference(s);if(ge.default.isLiteralExpression(s)){let i;if(ge.default.isStringLiteral(s))i=ge.default.factory.createStringLiteral(s.text);else if(ge.default.isNumericLiteral(s))i=ge.default.factory.createNumericLiteral(s.text);else if(ge.default.isBigIntLiteral(s))i=ge.default.factory.createBigIntLiteral(s.text);else if(ge.default.isNoSubstitutionTemplateLiteral(s))i=ge.default.factory.createNoSubstitutionTemplateLiteral(s.text,s.rawText);else if(ge.default.isRegularExpressionLiteral(s))i=ge.default.factory.createRegularExpressionLiteral(s.text);else throw new Error(`Unsupported literal kind ${ge.default.SyntaxKind[s.kind]}`);return ge.default.setTextRange(i,{pos:-1,end:-1}),i}else return ge.default.visitEachChild(s,r,n)};return s=>ge.default.visitNode(s,r,ge.default.isTypeNode)};return ge.default.transform(t,[e]).transformed[0]}emitTypeReference(t){let e=this.translator(t);if(e===null)throw new Error("Unable to emit an unresolved reference");let n;return t.typeArguments!==void 0&&(n=ge.default.factory.createNodeArray(t.typeArguments.map(r=>this.emitType(r)))),ge.default.factory.updateTypeReferenceNode(t,e.typeName,n)}};var jm;(function(t){t.CLOSURE="* @pureOrBreakMyCode ",t.TERSER="@__PURE__"})(jm||(jm={}));var qM={"+":ye.default.SyntaxKind.PlusToken,"-":ye.default.SyntaxKind.MinusToken,"!":ye.default.SyntaxKind.ExclamationToken},GM={"&&":ye.default.SyntaxKind.AmpersandAmpersandToken,">":ye.default.SyntaxKind.GreaterThanToken,">=":ye.default.SyntaxKind.GreaterThanEqualsToken,"&":ye.default.SyntaxKind.AmpersandToken,"|":ye.default.SyntaxKind.BarToken,"/":ye.default.SyntaxKind.SlashToken,"==":ye.default.SyntaxKind.EqualsEqualsToken,"===":ye.default.SyntaxKind.EqualsEqualsEqualsToken,"<":ye.default.SyntaxKind.LessThanToken,"<=":ye.default.SyntaxKind.LessThanEqualsToken,"-":ye.default.SyntaxKind.MinusToken,"%":ye.default.SyntaxKind.PercentToken,"*":ye.default.SyntaxKind.AsteriskToken,"!=":ye.default.SyntaxKind.ExclamationEqualsToken,"!==":ye.default.SyntaxKind.ExclamationEqualsEqualsToken,"||":ye.default.SyntaxKind.BarBarToken,"+":ye.default.SyntaxKind.PlusToken,"??":ye.default.SyntaxKind.QuestionQuestionToken},HM={const:ye.default.NodeFlags.Const,let:ye.default.NodeFlags.Let,var:ye.default.NodeFlags.None};w();var sg=require("module"),ZM=(0,sg.createRequire)(R),ei;(function(t){t[t.Unaccounted=0]="Unaccounted",t[t.Setup=1]="Setup",t[t.TypeScriptProgramCreate=2]="TypeScriptProgramCreate",t[t.Reconciliation=3]="Reconciliation",t[t.ResourceUpdate=4]="ResourceUpdate",t[t.TypeScriptDiagnostics=5]="TypeScriptDiagnostics",t[t.Analysis=6]="Analysis",t[t.Resolve=7]="Resolve",t[t.CycleDetection=8]="CycleDetection",t[t.TcbGeneration=9]="TcbGeneration",t[t.TcbUpdateProgram=10]="TcbUpdateProgram",t[t.TypeScriptEmit=11]="TypeScriptEmit",t[t.Compile=12]="Compile",t[t.TtcAutocompletion=13]="TtcAutocompletion",t[t.TtcDiagnostics=14]="TtcDiagnostics",t[t.TtcSymbol=15]="TtcSymbol",t[t.LsReferencesAndRenames=16]="LsReferencesAndRenames",t[t.LsQuickInfo=17]="LsQuickInfo",t[t.LsDefinition=18]="LsDefinition",t[t.LsCompletions=19]="LsCompletions",t[t.LsTcb=20]="LsTcb",t[t.LsDiagnostics=21]="LsDiagnostics",t[t.LsComponentLocations=22]="LsComponentLocations",t[t.LsSignatureHelp=23]="LsSignatureHelp",t[t.OutliningSpans=24]="OutliningSpans",t[t.LAST=25]="LAST",t[t.LsCodeFixes=26]="LsCodeFixes",t[t.LsCodeFixesAll=27]="LsCodeFixesAll",t[t.LSComputeApplicableRefactorings=28]="LSComputeApplicableRefactorings",t[t.LSApplyRefactoring=29]="LSApplyRefactoring"})(ei||(ei={}));var za;(function(t){t[t.InputDtsFile=0]="InputDtsFile",t[t.InputTsFile=1]="InputTsFile",t[t.AnalyzeComponent=2]="AnalyzeComponent",t[t.AnalyzeDirective=3]="AnalyzeDirective",t[t.AnalyzeInjectable=4]="AnalyzeInjectable",t[t.AnalyzeNgModule=5]="AnalyzeNgModule",t[t.AnalyzePipe=6]="AnalyzePipe",t[t.TraitAnalyze=7]="TraitAnalyze",t[t.TraitReuseAnalysis=8]="TraitReuseAnalysis",t[t.SourceFilePhysicalChange=9]="SourceFilePhysicalChange",t[t.SourceFileLogicalChange=10]="SourceFileLogicalChange",t[t.SourceFileReuseAnalysis=11]="SourceFileReuseAnalysis",t[t.GenerateTcb=12]="GenerateTcb",t[t.SkipGenerateTcbNoInline=13]="SkipGenerateTcbNoInline",t[t.ReuseTypeCheckFile=14]="ReuseTypeCheckFile",t[t.UpdateTypeCheckProgram=15]="UpdateTypeCheckProgram",t[t.EmitSkipSourceFile=16]="EmitSkipSourceFile",t[t.EmitSourceFile=17]="EmitSourceFile",t[t.LAST=18]="LAST"})(za||(za={}));var Xa;(function(t){t[t.Initial=0]="Initial",t[t.TypeScriptProgramCreate=1]="TypeScriptProgramCreate",t[t.PreAnalysis=2]="PreAnalysis",t[t.Analysis=3]="Analysis",t[t.Resolve=4]="Resolve",t[t.TtcGeneration=5]="TtcGeneration",t[t.TtcUpdateProgram=6]="TtcUpdateProgram",t[t.PreEmit=7]="PreEmit",t[t.Emit=8]="Emit",t[t.LAST=9]="LAST"})(Xa||(Xa={}));var ED=class{eventCount(){}memory(){}phase(){return ei.Unaccounted}inPhase(t,e){return e()}reset(){}},eL=new ED;var Cn=x(require("typescript"),1),fe=x(require("typescript"),1),_D=x(require("typescript"),1);var RD=x(require("typescript"),1),kD=x(require("typescript"),1),PD=x(require("typescript"),1),MD=x(require("typescript"),1),LD=x(require("typescript"),1),OD=x(require("typescript"),1),FD=x(require("typescript"),1);var BD=x(require("typescript"),1),$D=x(require("typescript"),1);var UD=x(require("typescript"),1);var VD=x(require("typescript"),1);var qD=x(require("typescript"),1),GD=x(require("typescript"),1);var HD=x(require("typescript"),1);var WD=x(require("typescript"),1);var jD=x(require("typescript"),1);var KD=x(require("typescript"),1),an=x(require("typescript"),1),lp=x(require("typescript"),1);var ln=x(require("typescript"),1);var t0=x(require("typescript"),1),n0=x(require("typescript"),1);var r0=x(require("typescript"),1);var i0=x(require("typescript"),1),o0=x(require("typescript"),1),a0=x(require("typescript"),1);var l0=x(require("typescript"),1);var mo=x(require("typescript"),1);w();var ig="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",SD=new Uint8Array(64),wD=new Uint8Array(128);for(let t=0;t<ig.length;t++){let e=ig.charCodeAt(t);SD[t]=e,wD[e]=t}var sL=1024*16;var u0=x(require("typescript"),1);var p0=x(require("typescript"),1),h0=x(require("typescript"),1);var J=x(require("typescript"),1);var y0=x(require("typescript"),1);var v0=x(require("typescript"),1),po=x(require("typescript"),1);var T0=x(require("typescript"),1),x0=x(require("typescript"),1);var v=x(require("typescript"),1);var yo=x(require("typescript"),1);var _=x(require("typescript"),1),J0=x(require("typescript"),1);var Z0=x(require("typescript"),1);var e_=x(require("typescript"),1);var t_=x(require("typescript"),1),$L=(0,Tg.createRequire)(R),ND="@angular/core";function xg(t){return t.import!==null&&t.import.from===ND}function ti(t,e,n){return n?t.name===e:xg(t)?t.import.name===e:!1}function Cg(t,e,n){return t.filter(r=>{var s;let i=n?r.name:(s=r.import)==null?void 0:s.name;return i===void 0||!e.includes(i)?!1:n||xg(r)})}function Ig(t){for(;Cn.default.isAsExpression(t)||Cn.default.isParenthesizedExpression(t);)t=t.expression;return t}function bD(t){if(t=Ig(t),!Cn.default.isArrowFunction(t)&&!Cn.default.isFunctionExpression(t))return null;let e=t.body;if(Cn.default.isBlock(e)){if(e.statements.length!==1)return null;let n=e.statements[0];return!Cn.default.isReturnStatement(n)||n.expression===void 0?null:n.expression}else return e}function DD(t,e){if(t=Ig(t),!Cn.default.isCallExpression(t)||t.arguments.length!==1)return null;let n=Cn.default.isPropertyAccessExpression(t.expression)?t.expression.name:t.expression;if(!Cn.default.isIdentifier(n))return null;let r=bD(t.arguments[0]);if(r===null)return null;let s=e.getImportOfIdentifier(n);return s===null||s.from!=="@angular/core"||s.name!=="forwardRef"?null:r}function Pe(t){return{op:t,literal:!0}}function og(t){return{op:t,literal:!1}}var HL=new Map([[fe.default.SyntaxKind.PlusToken,Pe((t,e)=>t+e)],[fe.default.SyntaxKind.MinusToken,Pe((t,e)=>t-e)],[fe.default.SyntaxKind.AsteriskToken,Pe((t,e)=>t*e)],[fe.default.SyntaxKind.SlashToken,Pe((t,e)=>t/e)],[fe.default.SyntaxKind.PercentToken,Pe((t,e)=>t%e)],[fe.default.SyntaxKind.AmpersandToken,Pe((t,e)=>t&e)],[fe.default.SyntaxKind.BarToken,Pe((t,e)=>t|e)],[fe.default.SyntaxKind.CaretToken,Pe((t,e)=>t^e)],[fe.default.SyntaxKind.LessThanToken,Pe((t,e)=>t<e)],[fe.default.SyntaxKind.LessThanEqualsToken,Pe((t,e)=>t<=e)],[fe.default.SyntaxKind.GreaterThanToken,Pe((t,e)=>t>e)],[fe.default.SyntaxKind.GreaterThanEqualsToken,Pe((t,e)=>t>=e)],[fe.default.SyntaxKind.EqualsEqualsToken,Pe((t,e)=>t==e)],[fe.default.SyntaxKind.EqualsEqualsEqualsToken,Pe((t,e)=>t===e)],[fe.default.SyntaxKind.ExclamationEqualsToken,Pe((t,e)=>t!=e)],[fe.default.SyntaxKind.ExclamationEqualsEqualsToken,Pe((t,e)=>t!==e)],[fe.default.SyntaxKind.LessThanLessThanToken,Pe((t,e)=>t<<e)],[fe.default.SyntaxKind.GreaterThanGreaterThanToken,Pe((t,e)=>t>>e)],[fe.default.SyntaxKind.GreaterThanGreaterThanGreaterThanToken,Pe((t,e)=>t>>>e)],[fe.default.SyntaxKind.AsteriskAsteriskToken,Pe((t,e)=>Math.pow(t,e))],[fe.default.SyntaxKind.AmpersandAmpersandToken,og((t,e)=>t&&e)],[fe.default.SyntaxKind.BarBarToken,og((t,e)=>t||e)]]),WL=new Map([[fe.default.SyntaxKind.TildeToken,t=>~t],[fe.default.SyntaxKind.MinusToken,t=>-t],[fe.default.SyntaxKind.PlusToken,t=>+t],[fe.default.SyntaxKind.ExclamationToken,t=>!t]]);var Qa;(function(t){t[t.SingleFile=0]="SingleFile",t[t.WholeProgram=1]="WholeProgram"})(Qa||(Qa={}));var ag;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone"})(ag||(ag={}));var lg;(function(t){t[t.Normal=0]="Normal",t[t.ForceDirect=1]="ForceDirect"})(lg||(lg={}));var cg;(function(t){t[t.Reference=0]="Reference",t[t.Variable=1]="Variable",t[t.LetDeclaration=2]="LetDeclaration"})(cg||(cg={}));var Pt;(function(t){t[t.Input=0]="Input",t[t.Output=1]="Output",t[t.Binding=2]="Binding",t[t.Reference=3]="Reference",t[t.Variable=4]="Variable",t[t.Directive=5]="Directive",t[t.Element=6]="Element",t[t.Template=7]="Template",t[t.Expression=8]="Expression",t[t.DomBinding=9]="DomBinding",t[t.Pipe=10]="Pipe",t[t.LetDeclaration=11]="LetDeclaration"})(Pt||(Pt={}));var ip;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(ip||(ip={}));var ug;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(ug||(ug={}));var op;(function(t){t[t.FULL=0]="FULL",t[t.PARTIAL=1]="PARTIAL",t[t.LOCAL=2]="LOCAL"})(op||(op={}));var pg;(function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SHARED=1]="SHARED",t[t.WEAK=2]="WEAK"})(pg||(pg={}));var hg;(function(t){t[t.Pending=0]="Pending",t[t.Analyzed=1]="Analyzed",t[t.Resolved=2]="Resolved",t[t.Skipped=3]="Skipped"})(hg||(hg={}));var ap;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone"})(ap||(ap={}));function el({api:t,call:e},n){if(!t.allowedAccessLevels.includes(n.accessLevel))throw new jn(Q.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY,e,Hu(`Cannot use "${t.functionName}" on a class member that is declared as ${zu(n.accessLevel)}.`,[Hu("Update the class field to be either: "+t.allowedAccessLevels.map(r=>zu(r)).join(", "))]))}function Eo(t,e,n,r){if(!an.default.isCallExpression(e))return null;let s=zD(e,t,r)||XD(e,t,r)||YD(e,t,r);if(s===null)return null;let{api:i,apiReference:o,isRequired:a}=s,l=n.getImportOfIdentifier(o);return l===null||i.functionName!==l.name||i.owningModule!==l.from?null:{api:i,call:e,isRequired:a}}function zD(t,e,n){let r=t.expression;if(!an.default.isIdentifier(r))return null;let s=e.find(i=>n.isPotentialReferenceToNamedImport(r,i.functionName,i.owningModule));return s===void 0?null:{api:s,apiReference:r,isRequired:!1}}function XD(t,e,n){let r=t.expression;if(!an.default.isPropertyAccessExpression(r)||!an.default.isIdentifier(r.expression)||r.name.text!=="required")return null;let s=r.expression,i=e.find(o=>n.isPotentialReferenceToNamedImport(s,o.functionName,o.owningModule));return i===void 0?null:{api:i,apiReference:s,isRequired:!0}}function YD(t,e,n){let r=t.expression;if(!an.default.isPropertyAccessExpression(r))return null;let s=null,i,o=!1;if(an.default.isIdentifier(r.expression)&&an.default.isIdentifier(r.name)){let a=r.expression;s=r.name,i=e.find(l=>r.name.text===l.functionName&&n.isPotentialReferenceToNamespaceImport(a,l.owningModule))}else if(an.default.isPropertyAccessExpression(r.expression)&&an.default.isIdentifier(r.expression.expression)&&an.default.isIdentifier(r.expression.name)&&r.name.text==="required"){let a=r.expression.name.text,l=r.expression.expression;s=r.expression.name,i=e.find(c=>c.functionName===a&&n.isPotentialReferenceToNamespaceImport(l,c.owningModule)),o=!0}return i===void 0||s===null?null:{api:i,apiReference:s,isRequired:o}}function hp(t){if(!lp.default.isObjectLiteralExpression(t))throw new jn(Q.VALUE_HAS_WRONG_TYPE,t,"Argument needs to be an object literal that is statically analyzable.");let e=Qu(t),n;if(e.has("alias")){let r=e.get("alias");if(!lp.default.isStringLiteralLike(r))throw new jn(Q.VALUE_HAS_WRONG_TYPE,r,"Alias needs to be a string that is statically analyzable.");n=r.text}return{alias:n}}var fp={functionName:"input",owningModule:"@angular/core",allowedAccessLevels:[he.PublicWritable,he.PublicReadonly,he.Protected]};function Ag(t,e,n){var r;if(t.value===null)return null;let s=Eo([fp],t.value,e,n);if(s===null)return null;el(s,t);let i=s.isRequired?s.call.arguments[0]:s.call.arguments[1],o=i!==void 0?hp(i):null,a=t.name;return{isSignal:!0,classPropertyName:a,bindingPropertyName:(r=o?.alias)!=null?r:a,required:s.isRequired,transform:null}}var dp={functionName:"model",owningModule:"@angular/core",allowedAccessLevels:[he.PublicWritable,he.PublicReadonly,he.Protected]};function Ng(t,e,n){var r;if(t.value===null)return null;let s=Eo([dp],t.value,e,n);if(s===null)return null;el(s,t);let i=s.isRequired?s.call.arguments[0]:s.call.arguments[1],o=i!==void 0?hp(i):null,a=t.name,l=(r=o?.alias)!=null?r:a;return{call:s.call,input:{isSignal:!0,transform:null,classPropertyName:a,bindingPropertyName:l,required:s.isRequired},output:{isSignal:!1,classPropertyName:a,bindingPropertyName:l+"Change"}}}var fg=[he.PublicWritable,he.PublicReadonly,he.Protected],mp=[{functionName:"output",owningModule:"@angular/core",allowedAccessLevels:fg},{functionName:"outputFromObservable",owningModule:"@angular/core/rxjs-interop",allowedAccessLevels:fg}];function bg(t,e,n){var r;if(t.value===null)return null;let s=Eo(mp,t.value,e,n);if(s===null)return null;if(s.isRequired)throw new jn(Q.INITIALIZER_API_NO_REQUIRED_FUNCTION,s.call,'Output does not support ".required()".');el(s,t);let i=s.api.functionName==="output"?s.call.arguments[0]:s.call.arguments[1],o=i!==void 0?hp(i):null,a=t.name;return{call:s.call,metadata:{isSignal:!1,classPropertyName:a,bindingPropertyName:(r=o?.alias)!=null?r:a}}}var QD=["viewChild","viewChildren","contentChild","contentChildren"],gp=QD.map(t=>({functionName:t,owningModule:"@angular/core",allowedAccessLevels:[he.PublicWritable,he.PublicReadonly,he.Protected,he.Private]})),JD=t=>t!=="contentChildren";function Dg(t,e,n){if(t.value===null)return null;let r=Eo(gp,t.value,e,n);if(r===null)return null;el(r,t);let{functionName:s}=r.api,i=s==="viewChild"||s==="contentChild",o=r.call.arguments[0];if(o===void 0)throw new jn(Q.VALUE_HAS_WRONG_TYPE,r.call,"No locator specified.");let a=r.call.arguments[1];if(a!==void 0&&!ln.default.isObjectLiteralExpression(a))throw new jn(Q.VALUE_HAS_WRONG_TYPE,a,"Argument needs to be an object literal.");let l=a&&Qu(a),c=l?.has("read")?_g(l.get("read")):null,u=l?.has("descendants")?e0(l.get("descendants")):JD(s);return{name:s,call:r.call,metadata:{isSignal:!0,propertyName:t.name,static:!1,emitDistinctChangesOnly:!0,predicate:ZD(o,e),first:i,read:c,descendants:u}}}function ZD(t,e){let n=DD(t,e);return n!==null&&(t=n),ln.default.isStringLiteralLike(t)?[t.text]:ns(new io.WrappedNodeExpr(t),n!==null?2:0)}function _g(t){if(ln.default.isExpressionWithTypeArguments(t)||ln.default.isParenthesizedExpression(t)||ln.default.isAsExpression(t))return _g(t.expression);if(ln.default.isPropertyAccessExpression(t)&&ln.default.isIdentifier(t.expression)||ln.default.isIdentifier(t))return new io.WrappedNodeExpr(t);throw new jn(Q.VALUE_NOT_LITERAL,t,'Query "read" option expected a literal class reference.')}function e0(t){if(t.kind===ln.default.SyntaxKind.TrueKeyword)return!0;if(t.kind===ln.default.SyntaxKind.FalseKeyword)return!1;throw new jn(Q.VALUE_HAS_WRONG_TYPE,t,'Expected "descendants" option to be a boolean literal.')}var yp=["ViewChild","ViewChildren","ContentChild","ContentChildren"],aO=new Set(yp);var s0=Symbol("NgOriginalFile"),dg;(function(t){t[t.Complete=0]="Complete",t[t.Incremental=1]="Incremental"})(dg||(dg={}));var pO=Symbol("NgExtension");var hO=Symbol("TemplateSourceFile");var fO=Symbol("ngTemplateId"),dO=Symbol("ngNextTemplateId");var Ja;(function(t){t.DIAGNOSTIC="D",t.EXPRESSION_TYPE_IDENTIFIER="T"})(Ja||(Ja={}));var as;(function(t){t.DIRECTIVE="DIR",t.COMPONENT_COMPLETION="COMPCOMP",t.EVENT_PARAMETER="EP",t.VARIABLE_AS_EXPRESSION="VAE"})(as||(as={}));function So(t,e){mo.default.addSyntheticTrailingComment(t,mo.default.SyntaxKind.MultiLineCommentTrivia,`${Ja.EXPRESSION_TYPE_IDENTIFIER}:${e}`,!1)}var c0=`${Ja.DIAGNOSTIC}:ignore`;function Tr(t){mo.default.addSyntheticTrailingComment(t,mo.default.SyntaxKind.MultiLineCommentTrivia,c0,!1)}var EO=new on;var f0=new Set([J.default.SyntaxKind.ParenthesizedExpression,J.default.SyntaxKind.Identifier,J.default.SyntaxKind.CallExpression,J.default.SyntaxKind.NonNullExpression,J.default.SyntaxKind.ElementAccessExpression,J.default.SyntaxKind.PropertyAccessExpression,J.default.SyntaxKind.ArrayLiteralExpression,J.default.SyntaxKind.ObjectLiteralExpression,J.default.SyntaxKind.StringLiteral,J.default.SyntaxKind.NumericLiteral,J.default.SyntaxKind.TrueKeyword,J.default.SyntaxKind.FalseKeyword,J.default.SyntaxKind.NullKeyword,J.default.SyntaxKind.UndefinedKeyword]);function Kn(t){return f0.has(t.kind)||(t=J.default.factory.createParenthesizedExpression(t)),J.default.factory.createParenthesizedExpression(J.default.factory.createAsExpression(t,J.default.factory.createKeywordTypeNode(J.default.SyntaxKind.AnyKeyword)))}function d0(t){let e=J.default.factory.createPropertyAccessExpression(J.default.factory.createIdentifier("document"),"createElement");return J.default.factory.createCallExpression(e,void 0,[J.default.factory.createStringLiteral(t)])}function go(t,e){So(e,as.VARIABLE_AS_EXPRESSION);let n=J.default.factory.createAsExpression(J.default.factory.createNonNullExpression(J.default.factory.createNull()),e),r=J.default.factory.createVariableDeclaration(t,void 0,void 0,n);return J.default.factory.createVariableStatement(void 0,[r])}function m0(t,e){return J.default.factory.createTypeQueryNode(J.default.factory.createQualifiedName(t,`ngAcceptInputType_${e}`))}function zn(t,e,n=null){let r=J.default.factory.createVariableDeclaration(t,void 0,void 0,e);return J.default.factory.createVariableStatement(void 0,n===null?[r]:J.default.factory.createVariableDeclarationList([r],n))}function mg(t,e,n=[]){let r=J.default.factory.createPropertyAccessExpression(t,e);return J.default.factory.createCallExpression(r,void 0,n)}function g0(t){if(t<0){let e=J.default.factory.createNumericLiteral(Math.abs(t));return J.default.factory.createPrefixUnaryExpression(J.default.SyntaxKind.MinusToken,e)}return J.default.factory.createNumericLiteral(t)}var E0=class{constructor(t,e){this.typeParameters=t,this.reflector=e}canEmit(t){return this.typeParameters===void 0?!0:this.typeParameters.every(e=>this.canEmitType(e.constraint,t)&&this.canEmitType(e.default,t))}canEmitType(t,e){return t===void 0?!0:ng(t,n=>{let r=this.resolveTypeReference(n);return r===null?!1:r instanceof ss?e(r):!0})}emit(t){if(this.typeParameters===void 0)return;let e=new rg(n=>this.translateTypeReference(n,t));return this.typeParameters.map(n=>{let r=n.constraint!==void 0?e.emitType(n.constraint):void 0,s=n.default!==void 0?e.emitType(n.default):void 0;return po.default.factory.updateTypeParameterDeclaration(n,n.modifiers,n.name,r,s)})}resolveTypeReference(t){let e=po.default.isIdentifier(t.typeName)?t.typeName:t.typeName.right,n=this.reflector.getDeclarationOfIdentifier(e);if(n===null||n.node===null)return null;if(this.isLocalTypeParameter(n.node))return t;let r=null;return typeof n.viaModule=="string"&&(r={specifier:n.viaModule,resolutionContext:t.getSourceFile().fileName}),new ss(n.node,n.viaModule===rs?rs:r)}translateTypeReference(t,e){let n=this.resolveTypeReference(t);if(!(n instanceof ss))return n;let r=e(n);if(r===null)return null;if(!po.default.isTypeReferenceNode(r))throw new Error(`Expected TypeReferenceNode for emitted reference, got ${po.default.SyntaxKind[r.kind]}.`);return r}isLocalTypeParameter(t){return this.typeParameters.some(e=>e===t)}},xO=[d.InputSignalBrandWriteType],gg;(function(t){t[t.MustInline=0]="MustInline",t[t.ShouldInlineForGenericBounds=1]="ShouldInlineForGenericBounds",t[t.None=2]="None"})(gg||(gg={}));function S0(t,e,n){return new E0(t.typeParameters,e).canEmit(s=>n.canReferenceType(s))}function w0(t,e,n){return!S0(t,e,n)}function Ae(t){return yo.default.factory.createParenthesizedExpression(t)}function is(t){return yo.default.factory.createParenthesizedExpression(t)}function B(t,e){let n;e instanceof je?n=`${e.start},${e.end}`:n=`${e.start.offset},${e.end.offset}`,yo.default.addSyntheticTrailingComment(t,yo.default.SyntaxKind.MultiLineCommentTrivia,n,!1)}var os=_.default.factory.createAsExpression(_.default.factory.createNumericLiteral("0"),_.default.factory.createKeywordTypeNode(_.default.SyntaxKind.AnyKeyword)),np=_.default.factory.createIdentifier("undefined"),C0=new Map([["+",_.default.SyntaxKind.PlusToken],["-",_.default.SyntaxKind.MinusToken]]),I0=new Map([["+",_.default.SyntaxKind.PlusToken],["-",_.default.SyntaxKind.MinusToken],["<",_.default.SyntaxKind.LessThanToken],[">",_.default.SyntaxKind.GreaterThanToken],["<=",_.default.SyntaxKind.LessThanEqualsToken],[">=",_.default.SyntaxKind.GreaterThanEqualsToken],["==",_.default.SyntaxKind.EqualsEqualsToken],["===",_.default.SyntaxKind.EqualsEqualsEqualsToken],["*",_.default.SyntaxKind.AsteriskToken],["/",_.default.SyntaxKind.SlashToken],["%",_.default.SyntaxKind.PercentToken],["!=",_.default.SyntaxKind.ExclamationEqualsToken],["!==",_.default.SyntaxKind.ExclamationEqualsEqualsToken],["||",_.default.SyntaxKind.BarBarToken],["&&",_.default.SyntaxKind.AmpersandAmpersandToken],["&",_.default.SyntaxKind.AmpersandToken],["|",_.default.SyntaxKind.BarToken],["??",_.default.SyntaxKind.QuestionQuestionToken]]);function A0(t,e,n){return new N0(e,n).translate(t)}var N0=class{constructor(t,e){this.maybeResolve=t,this.config=e}translate(t){if(t instanceof de&&(t=t.ast),t instanceof Ve){let n=_.default.factory.createIdentifier("undefined");return B(n,t.sourceSpan),n}let e=this.maybeResolve(t);return e!==null?e:t.visit(this)}visitUnary(t){let e=this.translate(t.expr),n=C0.get(t.operator);if(n===void 0)throw new Error(`Unsupported Unary.operator: ${t.operator}`);let r=Ae(_.default.factory.createPrefixUnaryExpression(n,e));return B(r,t.sourceSpan),r}visitBinary(t){let e=Ae(this.translate(t.left)),n=Ae(this.translate(t.right)),r=I0.get(t.operation);if(r===void 0)throw new Error(`Unsupported Binary.operation: ${t.operation}`);let s=_.default.factory.createBinaryExpression(e,r,n);return B(s,t.sourceSpan),s}visitChain(t){let e=t.expressions.map(r=>this.translate(r)),n=Ae(_.default.factory.createCommaListExpression(e));return B(n,t.sourceSpan),n}visitConditional(t){let e=this.translate(t.condition),n=this.translate(t.trueExp),r=is(this.translate(t.falseExp)),s=_.default.factory.createParenthesizedExpression(_.default.factory.createConditionalExpression(e,void 0,n,void 0,r));return B(s,t.sourceSpan),s}visitImplicitReceiver(t){throw new Error("Method not implemented.")}visitThisReceiver(t){throw new Error("Method not implemented.")}visitInterpolation(t){return t.expressions.reduce((e,n)=>_.default.factory.createBinaryExpression(e,_.default.SyntaxKind.PlusToken,is(this.translate(n))),_.default.factory.createStringLiteral(""))}visitKeyedRead(t){let e=Ae(this.translate(t.receiver)),n=this.translate(t.key),r=_.default.factory.createElementAccessExpression(e,n);return B(r,t.sourceSpan),r}visitKeyedWrite(t){let e=Ae(this.translate(t.receiver)),n=_.default.factory.createElementAccessExpression(e,this.translate(t.key)),r=is(this.translate(t.value)),s=Ae(_.default.factory.createBinaryExpression(n,_.default.SyntaxKind.EqualsToken,r));return B(s,t.sourceSpan),s}visitLiteralArray(t){let e=t.expressions.map(s=>this.translate(s)),n=_.default.factory.createArrayLiteralExpression(e),r=this.config.strictLiteralTypes?n:Kn(n);return B(r,t.sourceSpan),r}visitLiteralMap(t){let e=t.keys.map(({key:s},i)=>{let o=this.translate(t.values[i]);return _.default.factory.createPropertyAssignment(_.default.factory.createStringLiteral(s),o)}),n=_.default.factory.createObjectLiteralExpression(e,!0),r=this.config.strictLiteralTypes?n:Kn(n);return B(r,t.sourceSpan),r}visitLiteralPrimitive(t){let e;if(t.value===void 0)e=_.default.factory.createIdentifier("undefined");else if(t.value===null)e=_.default.factory.createNull();else if(typeof t.value=="string")e=_.default.factory.createStringLiteral(t.value);else if(typeof t.value=="number")e=g0(t.value);else if(typeof t.value=="boolean")e=t.value?_.default.factory.createTrue():_.default.factory.createFalse();else throw Error(`Unsupported AST value of type ${typeof t.value}`);return B(e,t.sourceSpan),e}visitNonNullAssert(t){let e=Ae(this.translate(t.expression)),n=_.default.factory.createNonNullExpression(e);return B(n,t.sourceSpan),n}visitPipe(t){throw new Error("Method not implemented.")}visitPrefixNot(t){let e=Ae(this.translate(t.expression)),n=_.default.factory.createLogicalNot(e);return B(n,t.sourceSpan),n}visitPropertyRead(t){let e=Ae(this.translate(t.receiver)),n=_.default.factory.createPropertyAccessExpression(e,t.name);B(n,t.nameSpan);let r=Ae(n);return B(r,t.sourceSpan),r}visitPropertyWrite(t){let e=Ae(this.translate(t.receiver)),n=_.default.factory.createPropertyAccessExpression(e,t.name);B(n,t.nameSpan);let r=Ae(n);B(r,t.sourceSpan);let s=is(this.translate(t.value)),i=Ae(_.default.factory.createBinaryExpression(r,_.default.SyntaxKind.EqualsToken,s));return B(i,t.sourceSpan),i}visitSafePropertyRead(t){let e,n=Ae(this.translate(t.receiver));if(this.config.strictSafeNavigationTypes){let r=_.default.factory.createPropertyAccessExpression(_.default.factory.createNonNullExpression(n),t.name);B(r,t.nameSpan),e=_.default.factory.createParenthesizedExpression(_.default.factory.createConditionalExpression(os,void 0,r,void 0,np))}else if(rp.veWillInferAnyFor(t))e=_.default.factory.createPropertyAccessExpression(Kn(n),t.name);else{let r=_.default.factory.createPropertyAccessExpression(_.default.factory.createNonNullExpression(n),t.name);B(r,t.nameSpan),e=Kn(r)}return B(e,t.sourceSpan),e}visitSafeKeyedRead(t){let e=Ae(this.translate(t.receiver)),n=this.translate(t.key),r;if(this.config.strictSafeNavigationTypes){let s=_.default.factory.createElementAccessExpression(_.default.factory.createNonNullExpression(e),n);B(s,t.sourceSpan),r=_.default.factory.createParenthesizedExpression(_.default.factory.createConditionalExpression(os,void 0,s,void 0,np))}else if(rp.veWillInferAnyFor(t))r=_.default.factory.createElementAccessExpression(Kn(e),n);else{let s=_.default.factory.createElementAccessExpression(_.default.factory.createNonNullExpression(e),n);B(s,t.sourceSpan),r=Kn(s)}return B(r,t.sourceSpan),r}visitCall(t){let e=t.args.map(i=>this.translate(i)),n,r=t.receiver;if(r instanceof Ie){let i=this.maybeResolve(r);if(i!==null)n=i;else{let o=Ae(this.translate(r.receiver));n=_.default.factory.createPropertyAccessExpression(o,r.name),B(n,r.nameSpan)}}else n=this.translate(r);let s;return t.receiver instanceof ut||t.receiver instanceof ur?s=this.convertToSafeCall(t,n,e):s=_.default.factory.createCallExpression(n,void 0,e),B(s,t.sourceSpan),s}visitSafeCall(t){let e=t.args.map(s=>this.translate(s)),n=Ae(this.translate(t.receiver)),r=this.convertToSafeCall(t,n,e);return B(r,t.sourceSpan),r}convertToSafeCall(t,e,n){if(this.config.strictSafeNavigationTypes){let r=_.default.factory.createCallExpression(_.default.factory.createNonNullExpression(e),void 0,n);return _.default.factory.createParenthesizedExpression(_.default.factory.createConditionalExpression(os,void 0,r,void 0,np))}return rp.veWillInferAnyFor(t)?_.default.factory.createCallExpression(Kn(e),void 0,n):Kn(_.default.factory.createCallExpression(_.default.factory.createNonNullExpression(e),void 0,n))}},Za=class{static veWillInferAnyFor(t){let e=Za.SINGLETON;return t instanceof yn?t.visit(e):t.receiver.visit(e)}visitUnary(t){return t.expr.visit(this)}visitBinary(t){return t.left.visit(this)||t.right.visit(this)}visitChain(t){return!1}visitConditional(t){return t.condition.visit(this)||t.trueExp.visit(this)||t.falseExp.visit(this)}visitCall(t){return!0}visitSafeCall(t){return!1}visitImplicitReceiver(t){return!1}visitThisReceiver(t){return!1}visitInterpolation(t){return t.expressions.some(e=>e.visit(this))}visitKeyedRead(t){return!1}visitKeyedWrite(t){return!1}visitLiteralArray(t){return!0}visitLiteralMap(t){return!0}visitLiteralPrimitive(t){return!1}visitPipe(t){return!0}visitPrefixNot(t){return t.expression.visit(this)}visitNonNullAssert(t){return t.expression.visit(this)}visitPropertyRead(t){return!1}visitPropertyWrite(t){return!1}visitSafePropertyRead(t){return!1}visitSafeKeyedRead(t){return!1}},rp=Za;Za.SINGLETON=new Za;var yg;(function(t){t[t.UseEmitter=0]="UseEmitter",t[t.CopyClassNodes=1]="CopyClassNodes",t[t.FallbackToAny=2]="FallbackToAny"})(yg||(yg={}));var we=class{circularFallback(){return K0}},b0=class extends we{constructor(t,e,n){super(),this.tcb=t,this.scope=e,this.element=n}get optional(){return!0}execute(){let t=this.tcb.allocateId(),e=d0(this.element.name);return B(e,this.element.startSourceSpan||this.element.sourceSpan),this.scope.addStatement(zn(t,e)),t}},D0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.template=n,this.variable=r}get optional(){return!1}execute(){let t=this.scope.resolve(this.template),e=this.tcb.allocateId(),n=v.default.factory.createPropertyAccessExpression(t,this.variable.value||"$implicit");B(e,this.variable.keySpan);let r;return this.variable.valueSpan!==void 0?(B(n,this.variable.valueSpan),r=zn(e,is(n))):r=zn(e,n),B(r.declarationList.declarations[0],this.variable.sourceSpan),this.scope.addStatement(r),e}},_0=class extends we{constructor(t,e){super(),this.tcb=t,this.scope=e,this.optional=!0}execute(){let t=this.tcb.allocateId(),e=v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword);return this.scope.addStatement(go(t,e)),t}},R0=class extends we{constructor(t,e,n){super(),this.tcb=t,this.scope=e,this.node=n,this.optional=!1}execute(){let t=this.tcb.allocateId();B(t,this.node.nameSpan);let e=kt(this.node.value,this.tcb,this.scope),n=zn(t,is(e),v.default.NodeFlags.Const);return B(n.declarationList.declarations[0],this.node.sourceSpan),this.scope.addStatement(n),t}},k0=class extends we{constructor(t,e,n){super(),this.tcb=t,this.scope=e,this.template=n}get optional(){return!1}execute(){let t=[],e=this.tcb.boundTarget.getDirectivesOfNode(this.template);if(e!==null)for(let o of e){let a=this.scope.resolve(this.template,o),l=this.tcb.env.reference(o.ref);if(o.ngTemplateGuards.forEach(c=>{let u=this.template.inputs.find(h=>h.name===c.inputName)||this.template.templateAttrs.find(h=>h instanceof _t&&h.name===c.inputName);if(u!==void 0){let h=kt(u.value,this.tcb,this.scope);if(Tr(h),c.type==="binding")t.push(h);else{let f=mg(l,`ngTemplateGuard_${c.inputName}`,[a,h]);B(f,u.value.sourceSpan),t.push(f)}}}),o.hasNgTemplateContextGuard)if(this.tcb.env.config.applyTemplateContextGuards){let c=this.scope.resolve(this.template),u=mg(l,"ngTemplateContextGuard",[a,c]);B(u,this.template.sourceSpan),t.push(u)}else this.template.variables.length>0&&this.tcb.env.config.suggestionsForSuboptimalTypeInference&&this.tcb.oobRecorder.suboptimalTypeInference(this.tcb.id,this.template.variables)}let n=null;t.length>0&&(n=t.reduce((o,a)=>v.default.factory.createBinaryExpression(o,v.default.SyntaxKind.AmpersandAmpersandToken,a),t.pop()));let s=vo.forNodes(this.tcb,this.scope,this.template,this.template.children,n).render();if(s.length===0)return null;let i=v.default.factory.createBlock(s);return n!==null&&(i=v.default.factory.createIfStatement(n,i)),this.scope.addStatement(i),null}},Ya=class extends we{constructor(t,e,n){super(),this.tcb=t,this.scope=e,this.expression=n}get optional(){return!1}execute(){let t=kt(this.expression,this.tcb,this.scope);return this.scope.addStatement(v.default.factory.createExpressionStatement(t)),null}},Rg=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.node=n,this.dir=r}get optional(){return!0}execute(){let t=this.dir.ref,e=this.tcb.env.referenceType(this.dir.ref),n;if(this.dir.isGeneric===!1||t.node.typeParameters===void 0)n=e;else{if(!v.default.isTypeReferenceNode(e))throw new Error(`Expected TypeReferenceNode when referencing the type for ${this.dir.ref.debugName}`);let s=t.node.typeParameters.map(()=>v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword));n=v.default.factory.createTypeReferenceNode(e.typeName,s)}let r=this.tcb.allocateId();return So(r,as.DIRECTIVE),B(r,this.node.startSourceSpan||this.node.sourceSpan),this.scope.addStatement(go(r,n)),r}},P0=class extends Rg{execute(){let t=this.dir.ref;if(this.dir.isGeneric)throw new Error(`Assertion Error: expected ${t.debugName} not to be generic.`);return super.execute()}},M0=class extends Rg{execute(){let t=this.dir.ref;if(t.node.typeParameters===void 0)throw new Error(`Assertion Error: expected typeParameters when creating a declaration for ${t.debugName}`);return super.execute()}},vg=class extends we{constructor(t,e,n,r,s){super(),this.tcb=t,this.scope=e,this.node=n,this.host=r,this.target=s,this.optional=!0}execute(){let t=this.tcb.allocateId(),e=this.target instanceof re||this.target instanceof ie?this.scope.resolve(this.target):this.scope.resolve(this.host,this.target);return this.target instanceof ie&&!this.tcb.env.config.checkTypeOfDomReferences||!this.tcb.env.config.checkTypeOfNonDomReferences?e=v.default.factory.createAsExpression(e,v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword)):this.target instanceof re&&(e=v.default.factory.createAsExpression(e,v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword)),e=v.default.factory.createAsExpression(e,this.tcb.env.referenceExternalType("@angular/core","TemplateRef",[Er])),e=v.default.factory.createParenthesizedExpression(e)),B(e,this.node.sourceSpan),B(t,this.node.keySpan),this.scope.addStatement(zn(t,e)),t}},L0=class extends we{constructor(t,e){super(),this.tcb=t,this.scope=e,this.optional=!0}execute(){let t=this.tcb.allocateId();return this.scope.addStatement(zn(t,os)),t}},O0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.node=n,this.dir=r}get optional(){return!0}execute(){let t=this.tcb.allocateId();So(t,as.DIRECTIVE),B(t,this.node.startSourceSpan||this.node.sourceSpan);let e=new Map,n=Pg(this.dir,this.node);for(let s of n)if(!(!this.tcb.env.config.checkTypeOfAttributes&&s.attribute instanceof Dt))for(let{fieldName:i,isTwoWayBinding:o}of s.inputs){if(e.has(i))continue;let a=Mg(s.attribute,this.tcb,this.scope);e.set(i,{type:"binding",field:i,expression:a,sourceSpan:s.attribute.sourceSpan,isTwoWayBinding:o})}for(let{classPropertyName:s}of this.dir.inputs)e.has(s)||e.set(s,{type:"unset",field:s});let r=z0(this.dir,this.tcb,Array.from(e.values()));return Tr(r),this.scope.addStatement(zn(t,r)),t}circularFallback(){return new B0(this.tcb,this.scope,this.node,this.dir)}},F0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.node=n,this.dir=r}get optional(){return!1}execute(){let t=null,e=Pg(this.dir,this.node),n=new Set;for(let r of e){let s=Ep(Mg(r.attribute,this.tcb,this.scope),this.tcb),i=Ae(s);for(let{fieldName:o,required:a,transformType:l,isSignal:c,isTwoWayBinding:u}of r.inputs){let h;if(a&&n.add(o),this.dir.coercedInputFields.has(o)){let f;if(l!==null)f=this.tcb.env.referenceTransplantedType(new Ns(l));else{let E=this.tcb.env.referenceType(this.dir.ref);if(!v.default.isTypeReferenceNode(E))throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);f=m0(E.typeName,o)}let m=this.tcb.allocateId();this.scope.addStatement(go(m,f)),h=m}else{if(this.dir.undeclaredInputFields.has(o))continue;if(!this.tcb.env.config.honorAccessModifiersForInputBindings&&this.dir.restrictedInputFields.has(o)){t===null&&(t=this.scope.resolve(this.node,this.dir));let f=this.tcb.allocateId(),m=this.tcb.env.referenceType(this.dir.ref);if(!v.default.isTypeReferenceNode(m))throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);let E=v.default.factory.createIndexedAccessTypeNode(v.default.factory.createTypeQueryNode(t),v.default.factory.createLiteralTypeNode(v.default.factory.createStringLiteral(o))),S=go(f,E);this.scope.addStatement(S),h=f}else t===null&&(t=this.scope.resolve(this.node,this.dir)),h=this.dir.stringLiteralInputFields.has(o)?v.default.factory.createElementAccessExpression(t,v.default.factory.createStringLiteral(o)):v.default.factory.createPropertyAccessExpression(t,v.default.factory.createIdentifier(o))}if(c){let f=this.tcb.env.referenceExternalSymbol(d.InputSignalBrandWriteType.moduleName,d.InputSignalBrandWriteType.name);if(!v.default.isIdentifier(f)&&!v.default.isPropertyAccessExpression(f))throw new Error(`Expected identifier or property access for reference to ${d.InputSignalBrandWriteType.name}`);h=v.default.factory.createElementAccessExpression(h,f)}r.attribute.keySpan!==void 0&&B(h,r.attribute.keySpan),u&&this.tcb.env.config.allowSignalsInTwoWayBindings&&(i=Lg(i,this.tcb)),i=v.default.factory.createBinaryExpression(h,v.default.SyntaxKind.EqualsToken,i)}B(i,r.attribute.sourceSpan),!this.tcb.env.config.checkTypeOfAttributes&&r.attribute instanceof Dt&&Tr(i),this.scope.addStatement(v.default.factory.createExpressionStatement(i))}return this.checkRequiredInputs(n),null}checkRequiredInputs(t){let e=[];for(let n of this.dir.inputs)n.required&&!t.has(n.classPropertyName)&&e.push(n.bindingPropertyName);e.length>0&&this.tcb.oobRecorder.missingRequiredInputs(this.tcb.id,this.node,this.dir.name,this.dir.isComponent,e)}},B0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.node=n,this.dir=r}get optional(){return!1}execute(){let t=this.tcb.allocateId(),e=this.tcb.env.typeCtorFor(this.dir),n=v.default.factory.createCallExpression(e,void 0,[v.default.factory.createNonNullExpression(v.default.factory.createNull())]);return this.scope.addStatement(zn(t,n)),t}},sp=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.element=e,this.checkElement=n,this.claimedInputs=r}get optional(){return!1}execute(){var t;this.checkElement&&this.tcb.domSchemaChecker.checkElement(this.tcb.id,this.element,this.tcb.schemas,this.tcb.hostIsStandalone);for(let e of this.element.inputs){let n=e.type===z.Property||e.type===z.TwoWay;if(!(n&&this.claimedInputs.has(e.name))&&n&&e.name!=="style"&&e.name!=="class"){let r=(t=kg.get(e.name))!=null?t:e.name;this.tcb.domSchemaChecker.checkProperty(this.tcb.id,this.element,r,e.sourceSpan,this.tcb.schemas,this.tcb.hostIsStandalone)}}return null}},$0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.element=e,this.ngContentSelectors=n,this.componentName=r,this.optional=!1,this.category=t.env.config.controlFlowPreventingContentProjection==="error"?v.default.DiagnosticCategory.Error:v.default.DiagnosticCategory.Warning}execute(){let t=this.findPotentialControlFlowNodes();if(t.length>0){let e=new ir;for(let n of this.ngContentSelectors)n!=="*"&&e.addSelectables(Qt.parse(n),n);for(let n of t)for(let r of n.children)(r instanceof ie||r instanceof re)&&e.match(yu(r),(s,i)=>{this.tcb.oobRecorder.controlFlowPreventingContentProjection(this.tcb.id,this.category,r,this.componentName,i,n,this.tcb.hostPreserveWhitespaces)})}return null}findPotentialControlFlowNodes(){let t=[];for(let e of this.element.children)if(e instanceof En)this.shouldCheck(e)&&t.push(e),e.empty!==null&&this.shouldCheck(e.empty)&&t.push(e.empty);else if(e instanceof jr)for(let n of e.branches)this.shouldCheck(n)&&t.push(n);else if(e instanceof Wr)for(let n of e.cases)this.shouldCheck(n)&&t.push(n);return t}shouldCheck(t){if(t.children.length<2)return!1;let e=!1;for(let n of t.children)if(!(n instanceof zt)||this.tcb.hostPreserveWhitespaces||n.value.trim().length>0){if(e)return!0;e=!0}return!1}},kg=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Eg=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.element=n,this.claimedInputs=r}get optional(){return!1}execute(){var t;let e=null;for(let n of this.element.inputs){let r=n.type===z.Property||n.type===z.TwoWay;if(r&&this.claimedInputs.has(n.name))continue;let s=Ep(kt(n.value,this.tcb,this.scope),this.tcb);if(this.tcb.env.config.checkTypeOfDomBindings&&r)if(n.name!=="style"&&n.name!=="class"){e===null&&(e=this.scope.resolve(this.element));let i=(t=kg.get(n.name))!=null?t:n.name,o=v.default.factory.createElementAccessExpression(e,v.default.factory.createStringLiteral(i)),a=v.default.factory.createBinaryExpression(o,v.default.SyntaxKind.EqualsToken,Ae(s));B(a,n.sourceSpan),this.scope.addStatement(v.default.factory.createExpressionStatement(a))}else this.scope.addStatement(v.default.factory.createExpressionStatement(s));else this.scope.addStatement(v.default.factory.createExpressionStatement(s))}return null}},U0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.node=n,this.dir=r}get optional(){return!1}execute(){let t=null,e=this.dir.outputs;for(let n of this.node.outputs){if(n.type===ke.Animation||!e.hasBindingPropertyName(n.name))continue;if(this.tcb.env.config.checkTypeOfOutputEvents&&n.name.endsWith("Change")){let i=n.name.slice(0,-6);Og(i,n,this.node.inputs,this.tcb)}let r=e.getByBindingPropertyName(n.name)[0].classPropertyName;t===null&&(t=this.scope.resolve(this.node,this.dir));let s=v.default.factory.createElementAccessExpression(t,v.default.factory.createStringLiteral(r));if(B(s,n.keySpan),this.tcb.env.config.checkTypeOfOutputEvents){let i=fo(n,this.tcb,this.scope,0),o=v.default.factory.createPropertyAccessExpression(s,"subscribe"),a=v.default.factory.createCallExpression(o,void 0,[i]);B(a,n.sourceSpan),this.scope.addStatement(v.default.factory.createExpressionStatement(a))}else{this.scope.addStatement(v.default.factory.createExpressionStatement(s));let i=fo(n,this.tcb,this.scope,1);this.scope.addStatement(v.default.factory.createExpressionStatement(i))}}return null}},Sg=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.element=n,this.claimedOutputs=r}get optional(){return!1}execute(){let t=null;for(let e of this.element.outputs)if(!this.claimedOutputs.has(e.name)){if(this.tcb.env.config.checkTypeOfOutputEvents&&e.name.endsWith("Change")){let n=e.name.slice(0,-6);if(Og(n,e,this.element.inputs,this.tcb))continue}if(e.type===ke.Animation){let n=this.tcb.env.config.checkTypeOfAnimationEvents?this.tcb.env.referenceExternalType("@angular/animations","AnimationEvent"):1,r=fo(e,this.tcb,this.scope,n);this.scope.addStatement(v.default.factory.createExpressionStatement(r))}else if(this.tcb.env.config.checkTypeOfDomEvents){let n=fo(e,this.tcb,this.scope,0);t===null&&(t=this.scope.resolve(this.element));let r=v.default.factory.createPropertyAccessExpression(t,"addEventListener");B(r,e.keySpan);let s=v.default.factory.createCallExpression(r,void 0,[v.default.factory.createStringLiteral(e.name),n]);B(s,e.sourceSpan),this.scope.addStatement(v.default.factory.createExpressionStatement(s))}else{let n=fo(e,this.tcb,this.scope,1);this.scope.addStatement(v.default.factory.createExpressionStatement(n))}}return null}},V0=class extends we{constructor(t){super(),this.scope=t,this.optional=!1}execute(){let t=v.default.factory.createThis(),e=v.default.factory.createPropertyAccessExpression(t,"");return Tr(e),So(e,as.COMPONENT_COMPLETION),this.scope.addStatement(v.default.factory.createExpressionStatement(e)),null}},q0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.initializer=n,this.variable=r}get optional(){return!1}execute(){let t=this.tcb.allocateId();B(t,this.variable.keySpan);let e=zn(t,is(this.initializer));return B(e.declarationList.declarations[0],this.variable.sourceSpan),this.scope.addStatement(e),t}},G0=class extends we{constructor(t,e,n,r){super(),this.tcb=t,this.scope=e,this.type=n,this.variable=r,this.optional=!0}execute(){let t=this.tcb.allocateId();B(t,this.variable.keySpan);let e=go(t,this.type);return B(e.declarationList.declarations[0],this.variable.sourceSpan),this.scope.addStatement(e),t}},H0=class extends we{constructor(t,e,n){super(),this.tcb=t,this.scope=e,this.block=n,this.expressionScopes=new Map}get optional(){return!1}execute(){let t=this.generateBranch(0);return t&&this.scope.addStatement(t),null}generateBranch(t){let e=this.block.branches[t];if(!e)return;if(e.expression===null){let i=this.getBranchScope(this.scope,e,t);return v.default.factory.createBlock(i.render())}let n=vo.forNodes(this.tcb,this.scope,e,[],null);n.render().forEach(i=>this.scope.addStatement(i)),this.expressionScopes.set(e,n);let r=kt(e.expression,this.tcb,this.scope);e.expressionAlias!==null&&(r=v.default.factory.createBinaryExpression(v.default.factory.createParenthesizedExpression(r),v.default.SyntaxKind.AmpersandAmpersandToken,n.resolve(e.expressionAlias)));let s=this.getBranchScope(n,e,t);return v.default.factory.createIfStatement(r,v.default.factory.createBlock(s.render()),this.generateBranch(t+1))}getBranchScope(t,e,n){let r=this.tcb.env.config.checkControlFlowBodies;return vo.forNodes(this.tcb,t,null,r?e.children:[],r?this.generateBranchGuard(n):null)}generateBranchGuard(t){let e=null;for(let n=0;n<=t;n++){let r=this.block.branches[n];if(r.expression===null)continue;if(!this.expressionScopes.has(r))throw new Error(`Could not determine expression scope of branch at index ${n}`);let s=this.expressionScopes.get(r),i;i=kt(r.expression,this.tcb,s),r.expressionAlias!==null&&(i=v.default.factory.createBinaryExpression(v.default.factory.createParenthesizedExpression(i),v.default.SyntaxKind.AmpersandAmpersandToken,s.resolve(r.expressionAlias))),Tr(i);let o=n===t?i:v.default.factory.createPrefixUnaryExpression(v.default.SyntaxKind.ExclamationToken,v.default.factory.createParenthesizedExpression(i));e=e===null?o:v.default.factory.createBinaryExpression(e,v.default.SyntaxKind.AmpersandAmpersandToken,o)}return e}},W0=class extends we{constructor(t,e,n){super(),this.tcb=t,this.scope=e,this.block=n}get optional(){return!1}execute(){let t=kt(this.block.expression,this.tcb,this.scope),e=this.block.cases.map(n=>{let r=this.tcb.env.config.checkControlFlowBodies,s=vo.forNodes(this.tcb,this.scope,null,r?n.children:[],r?this.generateGuard(n,t):null),i=[...s.render(),v.default.factory.createBreakStatement()];return n.expression===null?v.default.factory.createDefaultClause(i):v.default.factory.createCaseClause(kt(n.expression,this.tcb,s),i)});return this.scope.addStatement(v.default.factory.createSwitchStatement(t,v.default.factory.createCaseBlock(e))),null}generateGuard(t,e){if(t.expression!==null){let r=kt(t.expression,this.tcb,this.scope);return Tr(r),v.default.factory.createBinaryExpression(e,v.default.SyntaxKind.EqualsEqualsEqualsToken,r)}let n=null;for(let r of this.block.cases){if(r.expression===null)continue;let s=kt(r.expression,this.tcb,this.scope);Tr(s);let i=v.default.factory.createBinaryExpression(e,v.default.SyntaxKind.ExclamationEqualsEqualsToken,s);n===null?n=i:n=v.default.factory.createBinaryExpression(n,v.default.SyntaxKind.AmpersandAmpersandToken,i)}return n}},j0=class extends we{constructor(t,e,n){super(),this.tcb=t,this.scope=e,this.block=n}get optional(){return!1}execute(){let t=vo.forNodes(this.tcb,this.scope,this.block,this.tcb.env.config.checkControlFlowBodies?this.block.children:[],null),e=t.resolve(this.block.item);if(!v.default.isIdentifier(e))throw new Error(`Could not resolve for loop variable ${this.block.item.name} to an identifier`);let n=v.default.factory.createVariableDeclarationList([v.default.factory.createVariableDeclaration(e)],v.default.NodeFlags.Const);B(n,this.block.item.keySpan);let r=v.default.factory.createNonNullExpression(kt(this.block.expression,this.tcb,this.scope)),i=new Q0(this.tcb,t,this.block).translate(this.block.trackBy),o=[...t.render(),v.default.factory.createExpressionStatement(i)];return this.scope.addStatement(v.default.factory.createForOfStatement(void 0,n,r,v.default.factory.createBlock(o))),null}},K0=v.default.factory.createNonNullExpression(v.default.factory.createNull());var ho=class{constructor(t,e=null,n=null){this.tcb=t,this.parent=e,this.guard=n,this.opQueue=[],this.elementOpMap=new Map,this.directiveOpMap=new Map,this.referenceOpMap=new Map,this.templateCtxOpMap=new Map,this.varMap=new Map,this.letDeclOpMap=new Map,this.statements=[]}static forNodes(t,e,n,r,s){let i=new ho(t,e,s);if(e===null&&t.env.config.enableTemplateTypeChecker&&i.opQueue.push(new V0(i)),n instanceof re){let o=new Map;for(let a of n.variables){if(!o.has(a.name))o.set(a.name,a);else{let l=o.get(a.name);t.oobRecorder.duplicateTemplateVar(t.id,a,l)}this.registerVariable(i,a,new D0(t,i,n,a))}}else if(n instanceof Rn){let{expression:o,expressionAlias:a}=n;o!==null&&a!==null&&this.registerVariable(i,a,new q0(t,i,kt(o,t,i),a))}else if(n instanceof En){let o=t.allocateId();B(o,n.item.sourceSpan),i.varMap.set(n.item,o);for(let a of n.contextVariables){if(!this.forLoopContextVariableTypes.has(a.value))throw new Error(`Unrecognized for loop context variable ${a.name}`);let l=v.default.factory.createKeywordTypeNode(this.forLoopContextVariableTypes.get(a.value));this.registerVariable(i,a,new G0(t,i,l,a))}}for(let o of r)i.appendNode(o);for(let o of i.varMap.keys())ho.checkConflictingLet(i,o);for(let o of i.referenceOpMap.keys())ho.checkConflictingLet(i,o);return i}static registerVariable(t,e,n){let r=t.opQueue.push(n)-1;t.varMap.set(e,r)}resolve(t,e){let n=this.resolveLocal(t,e);if(n!==null){let r;if(v.default.isIdentifier(n))r=v.default.factory.createIdentifier(n.text);else if(v.default.isNonNullExpression(n))r=v.default.factory.createNonNullExpression(n.expression);else throw new Error(`Could not resolve ${t} to an Identifier or a NonNullExpression`);return v.default.setOriginalNode(r,n),r.parent=r.parent,v.default.setSyntheticTrailingComments(r,[])}else{if(this.parent!==null)return this.parent.resolve(t,e);throw new Error(`Could not resolve ${t} / ${e}`)}}addStatement(t){this.statements.push(t)}render(){for(let t=0;t<this.opQueue.length;t++){let e=!this.tcb.env.config.enableTemplateTypeChecker;this.executeOp(t,e)}return this.statements}guards(){let t=null;return this.parent!==null&&(t=this.parent.guards()),this.guard===null?t:t===null?this.guard:v.default.factory.createBinaryExpression(t,v.default.SyntaxKind.AmpersandAmpersandToken,this.guard)}isLocal(t){return t instanceof pt?this.varMap.has(t):t instanceof Qe?this.letDeclOpMap.has(t.name):this.referenceOpMap.has(t)}resolveLocal(t,e){if(t instanceof Sn&&this.referenceOpMap.has(t))return this.resolveOp(this.referenceOpMap.get(t));if(t instanceof Qe&&this.letDeclOpMap.has(t.name))return this.resolveOp(this.letDeclOpMap.get(t.name).opIndex);if(t instanceof pt&&this.varMap.has(t)){let n=this.varMap.get(t);return typeof n=="number"?this.resolveOp(n):n}else{if(t instanceof re&&e===void 0&&this.templateCtxOpMap.has(t))return this.resolveOp(this.templateCtxOpMap.get(t));if((t instanceof ie||t instanceof re)&&e!==void 0&&this.directiveOpMap.has(t)){let n=this.directiveOpMap.get(t);return n.has(e)?this.resolveOp(n.get(e)):null}else return t instanceof ie&&this.elementOpMap.has(t)?this.resolveOp(this.elementOpMap.get(t)):null}}resolveOp(t){let e=this.executeOp(t,!1);if(e===null)throw new Error("Error resolving operation, got null");return e}executeOp(t,e){let n=this.opQueue[t];if(!(n instanceof we))return n;if(e&&n.optional)return null;this.opQueue[t]=n.circularFallback();let r=n.execute();return this.opQueue[t]=r,r}appendNode(t){if(t instanceof ie){let e=this.opQueue.push(new b0(this.tcb,this,t))-1;this.elementOpMap.set(t,e),this.tcb.env.config.controlFlowPreventingContentProjection!=="suppress"&&this.appendContentProjectionCheckOp(t),this.appendDirectivesAndInputsOfNode(t),this.appendOutputsOfNode(t),this.appendChildren(t),this.checkAndAppendReferencesOfNode(t)}else if(t instanceof re){this.appendDirectivesAndInputsOfNode(t),this.appendOutputsOfNode(t);let e=this.opQueue.push(new _0(this.tcb,this))-1;this.templateCtxOpMap.set(t,e),this.tcb.env.config.checkTemplateBodies?this.opQueue.push(new k0(this.tcb,this,t)):this.tcb.env.config.alwaysCheckSchemaInTemplateBodies&&this.appendDeepSchemaChecks(t.children),this.checkAndAppendReferencesOfNode(t)}else if(t instanceof Vn)this.appendDeferredBlock(t);else if(t instanceof jr)this.opQueue.push(new H0(this.tcb,this,t));else if(t instanceof Wr)this.opQueue.push(new W0(this.tcb,this,t));else if(t instanceof En)this.opQueue.push(new j0(this.tcb,this,t)),t.empty&&this.tcb.env.config.checkControlFlowBodies&&this.appendChildren(t.empty);else if(t instanceof Bn)this.opQueue.push(new Ya(this.tcb,this,t.value));else if(t instanceof Os)this.appendIcuExpressions(t);else if(t instanceof hr)this.appendChildren(t);else if(t instanceof Qe){let e=this.opQueue.push(new R0(this.tcb,this,t))-1;this.isLocal(t)?this.tcb.oobRecorder.conflictingDeclaration(this.tcb.id,t):this.letDeclOpMap.set(t.name,{opIndex:e,node:t})}}appendChildren(t){for(let e of t.children)this.appendNode(e)}checkAndAppendReferencesOfNode(t){for(let e of t.references){let n=this.tcb.boundTarget.getReferenceTarget(e),r;n===null?(this.tcb.oobRecorder.missingReferenceTarget(this.tcb.id,e),r=this.opQueue.push(new L0(this.tcb,this))-1):n instanceof re||n instanceof ie?r=this.opQueue.push(new vg(this.tcb,this,e,t,n))-1:r=this.opQueue.push(new vg(this.tcb,this,e,t,n.directive))-1,this.referenceOpMap.set(e,r)}}appendDirectivesAndInputsOfNode(t){let e=new Set,n=this.tcb.boundTarget.getDirectivesOfNode(t);if(n===null||n.length===0){t instanceof ie&&(this.opQueue.push(new Eg(this.tcb,this,t,e)),this.opQueue.push(new sp(this.tcb,t,!0,e)));return}else t instanceof ie&&!this.tcb.boundTarget.isDeferred(t)&&n.some(i=>i.isExplicitlyDeferred)&&this.tcb.oobRecorder.deferredComponentUsedEagerly(this.tcb.id,t);let r=new Map;for(let s of n){let i,o=this.tcb.env.reflector,a=s.ref;s.isGeneric?!w0(a.node,o,this.tcb.env)||this.tcb.env.config.useInlineTypeConstructors?i=new O0(this.tcb,this,t,s):i=new M0(this.tcb,this,t,s):i=new P0(this.tcb,this,t,s);let l=this.opQueue.push(i)-1;r.set(s,l),this.opQueue.push(new F0(this.tcb,this,t,s))}if(this.directiveOpMap.set(t,r),t instanceof ie){for(let i of n)for(let o of i.inputs.propertyNames)e.add(o);this.opQueue.push(new Eg(this.tcb,this,t,e));let s=n.length===0;this.opQueue.push(new sp(this.tcb,t,s,e))}}appendOutputsOfNode(t){let e=new Set,n=this.tcb.boundTarget.getDirectivesOfNode(t);if(n===null||n.length===0){t instanceof ie&&this.opQueue.push(new Sg(this.tcb,this,t,e));return}for(let r of n)this.opQueue.push(new U0(this.tcb,this,t,r));if(t instanceof ie){for(let r of n)for(let s of r.outputs.propertyNames)e.add(s);this.opQueue.push(new Sg(this.tcb,this,t,e))}}appendDeepSchemaChecks(t){for(let e of t)if(e instanceof ie||e instanceof re){if(e instanceof ie){let n=new Set,r=this.tcb.boundTarget.getDirectivesOfNode(e),s;if(r===null||r.length===0)s=!1;else{s=!0;for(let i of r)for(let o of i.inputs.propertyNames)n.add(o)}this.opQueue.push(new sp(this.tcb,e,!s,n))}this.appendDeepSchemaChecks(e.children)}}appendIcuExpressions(t){for(let e of Object.values(t.vars))this.opQueue.push(new Ya(this.tcb,this,e.value));for(let e of Object.values(t.placeholders))e instanceof Bn&&this.opQueue.push(new Ya(this.tcb,this,e.value))}appendContentProjectionCheckOp(t){var e;let n=((e=this.tcb.boundTarget.getDirectivesOfNode(t))==null?void 0:e.find(r=>r.isComponent))||null;if(n!==null&&n.ngContentSelectors!==null&&n.ngContentSelectors.length>0){let r=n.ngContentSelectors;(r.length>1||r.length===1&&r[0]!=="*")&&this.opQueue.push(new $0(this.tcb,t,r,n.name))}}appendDeferredBlock(t){this.appendDeferredTriggers(t,t.triggers),this.appendDeferredTriggers(t,t.prefetchTriggers),this.appendChildren(t),t.placeholder!==null&&this.appendChildren(t.placeholder),t.loading!==null&&this.appendChildren(t.loading),t.error!==null&&this.appendChildren(t.error)}appendDeferredTriggers(t,e){e.when!==void 0&&this.opQueue.push(new Ya(this.tcb,this,e.when.value)),e.hover!==void 0&&this.appendReferenceBasedDeferredTrigger(t,e.hover),e.interaction!==void 0&&this.appendReferenceBasedDeferredTrigger(t,e.interaction),e.viewport!==void 0&&this.appendReferenceBasedDeferredTrigger(t,e.viewport)}appendReferenceBasedDeferredTrigger(t,e){this.tcb.boundTarget.getDeferredTriggerTarget(t,e)===null&&this.tcb.oobRecorder.inaccessibleDeferredTriggerElement(this.tcb.id,e)}static checkConflictingLet(t,e){t.letDeclOpMap.has(e.name)&&t.tcb.oobRecorder.conflictingDeclaration(t.tcb.id,t.letDeclOpMap.get(e.name).node)}},vo=ho;ho.forLoopContextVariableTypes=new Map([["$first",v.default.SyntaxKind.BooleanKeyword],["$last",v.default.SyntaxKind.BooleanKeyword],["$even",v.default.SyntaxKind.BooleanKeyword],["$odd",v.default.SyntaxKind.BooleanKeyword],["$index",v.default.SyntaxKind.NumberKeyword],["$count",v.default.SyntaxKind.NumberKeyword]]);function kt(t,e,n){return new vp(e,n).translate(t)}var vp=class{constructor(t,e){this.tcb=t,this.scope=e}translate(t){return A0(t,e=>this.resolve(e),this.tcb.env.config)}resolve(t){if(t instanceof Ie&&t.receiver instanceof $e){let e=this.tcb.boundTarget.getExpressionTarget(t),n=e===null?null:this.getTargetNodeExpression(e,t);return e instanceof Qe&&!this.isValidLetDeclarationAccess(e,t)&&(this.tcb.oobRecorder.letUsedBeforeDefinition(this.tcb.id,t,e),n!==null)?v.default.factory.createAsExpression(n,v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword)):n}else if(t instanceof On&&t.receiver instanceof $e){let e=this.tcb.boundTarget.getExpressionTarget(t);if(e===null)return null;let n=this.getTargetNodeExpression(e,t),r=this.translate(t.value),s=v.default.factory.createParenthesizedExpression(v.default.factory.createBinaryExpression(n,v.default.SyntaxKind.EqualsToken,r));return B(s,t.sourceSpan),e instanceof Qe&&(Tr(s),this.tcb.oobRecorder.illegalWriteToLetDeclaration(this.tcb.id,t,e)),s}else{if(t instanceof $e)return v.default.factory.createThis();if(t instanceof Hr){let e=this.translate(t.exp),n=this.tcb.getPipeByName(t.name),r;n===null?(this.tcb.oobRecorder.missingPipe(this.tcb.id,t),r=os):n.isExplicitlyDeferred&&this.tcb.boundTarget.getEagerlyUsedPipes().includes(t.name)?(this.tcb.oobRecorder.deferredPipeUsedEagerly(this.tcb.id,t),r=os):r=this.tcb.env.pipeInst(n.ref);let s=t.args.map(a=>this.translate(a)),i=v.default.factory.createPropertyAccessExpression(r,"transform");B(i,t.nameSpan),this.tcb.env.config.checkTypeOfPipes||(i=v.default.factory.createAsExpression(i,v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword)));let o=v.default.factory.createCallExpression(i,void 0,[e,...s]);return B(o,t.sourceSpan),o}else if((t instanceof yn||t instanceof vn)&&(t.receiver instanceof Ie||t.receiver instanceof ut)){if(t.receiver.receiver instanceof $e&&!(t.receiver.receiver instanceof fn)&&t.receiver.name==="$any"&&t.args.length===1){let o=this.translate(t.args[0]),a=v.default.factory.createAsExpression(o,v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword)),l=v.default.factory.createParenthesizedExpression(a);return B(l,t.sourceSpan),l}let e=this.tcb.boundTarget.getExpressionTarget(t);if(e===null)return null;let n=this.getTargetNodeExpression(e,t),r=Ae(n);B(r,t.receiver.nameSpan);let s=t.args.map(o=>this.translate(o)),i=v.default.factory.createCallExpression(r,void 0,s);return B(i,t.sourceSpan),i}else return null}}getTargetNodeExpression(t,e){let n=this.scope.resolve(t);return B(n,e.sourceSpan),n}isValidLetDeclarationAccess(t,e){let n=t.sourceSpan.start.offset,r=t.sourceSpan.end.offset,s=e.sourceSpan.start;return n<s&&s>r||!this.scope.isLocal(t)}};function z0(t,e,n){let r=e.env.typeCtorFor(t),s=n.map(i=>{let o=v.default.factory.createStringLiteral(i.field);if(i.type==="binding"){let a=Ep(i.expression,e);i.isTwoWayBinding&&e.env.config.allowSignalsInTwoWayBindings&&(a=Lg(a,e));let l=v.default.factory.createPropertyAssignment(o,Ae(a));return B(l,i.sourceSpan),l}else return v.default.factory.createPropertyAssignment(o,os)});return v.default.factory.createCallExpression(r,void 0,[v.default.factory.createObjectLiteralExpression(s)])}function Pg(t,e){let n=[],r=s=>{if(s instanceof _t&&s.type!==z.Property&&s.type!==z.TwoWay)return;let i=t.inputs.getByBindingPropertyName(s.name);i!==null&&n.push({attribute:s,inputs:i.map(o=>{var a;return{fieldName:o.classPropertyName,required:o.required,transformType:((a=o.transform)==null?void 0:a.type)||null,isSignal:o.isSignal,isTwoWayBinding:s instanceof _t&&s.type===z.TwoWay}})})};return e.inputs.forEach(r),e.attributes.forEach(r),e instanceof re&&e.templateAttrs.forEach(r),n}function Mg(t,e,n){return t instanceof _t?kt(t.value,e,n):v.default.factory.createStringLiteral(t.value)}function Ep(t,e){return e.env.config.checkTypeOfInputBindings?e.env.config.strictNullInputBindings||v.default.isObjectLiteralExpression(t)||v.default.isArrayLiteralExpression(t)?t:v.default.factory.createNonNullExpression(t):Kn(t)}function Lg(t,e){let n=e.env.referenceExternalSymbol(d.unwrapWritableSignal.moduleName,d.unwrapWritableSignal.name);return v.default.factory.createCallExpression(n,void 0,[t])}var cp="$event";function fo(t,e,n,r){let s=X0(t.handler,e,n),i;r===0?i=void 0:r===1?i=v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword):i=r;let o=n.guards(),a=v.default.factory.createExpressionStatement(s);o!==null&&(a=v.default.factory.createIfStatement(o,a));let l=v.default.factory.createParameterDeclaration(void 0,void 0,cp,void 0,i);return So(l,as.EVENT_PARAMETER),v.default.factory.createArrowFunction(void 0,void 0,[l],v.default.factory.createKeywordTypeNode(v.default.SyntaxKind.AnyKeyword),void 0,v.default.factory.createBlock([a]))}function X0(t,e,n){return new Y0(e,n).translate(t)}function Og(t,e,n,r){let s=n.find(a=>a.name===t);if(s===void 0||s.sourceSpan!==e.sourceSpan)return!1;let i=r.boundTarget.getConsumerOfBinding(s),o=r.boundTarget.getConsumerOfBinding(e);return o===null||i.ref===void 0||o instanceof re?!1:o instanceof ie?(r.oobRecorder.splitTwoWayBinding(r.id,s,e,i.ref.node,o),!0):o.ref!==i.ref?(r.oobRecorder.splitTwoWayBinding(r.id,s,e,i.ref.node,o.ref.node),!0):!1}var Y0=class extends vp{resolve(t){if(t instanceof Ie&&t.receiver instanceof $e&&!(t.receiver instanceof fn)&&t.name===cp){let e=v.default.factory.createIdentifier(cp);return B(e,t.nameSpan),e}return super.resolve(t)}isValidLetDeclarationAccess(){return!0}},Q0=class extends vp{constructor(t,e,n){super(t,e),this.block=n,this.allowedVariables=new Set([n.item]);for(let r of n.contextVariables)r.value==="$index"&&this.allowedVariables.add(r)}resolve(t){if(t instanceof Ie&&t.receiver instanceof $e){let e=this.tcb.boundTarget.getExpressionTarget(t);e!==null&&(!(e instanceof pt)||!this.allowedVariables.has(e))&&this.tcb.oobRecorder.illegalForLoopTrackAccess(this.tcb.id,this.block,t)}return super.resolve(t)}};var wg;(function(t){t[t.InlineOps=0]="InlineOps",t[t.Error=1]="Error"})(wg||(wg={}));var _O=new on;var C=x(require("typescript"),1),xr=x(require("typescript"),1),tl=x(require("typescript"),1),Hg=x(require("typescript"),1),d2=(0,Bg.createRequire)(R);function Sp(t,e){return e||t.import!==null&&t.import.from==="@angular/core"}var $g="!Array<{type: !Function, args: (undefined|!Array<?>)}>";function Ug(t,e){let n=[],r=t.expression;switch(r.kind){case C.default.SyntaxKind.Identifier:n.push(C.default.factory.createPropertyAssignment("type",r));break;case C.default.SyntaxKind.CallExpression:let s=r;if(n.push(C.default.factory.createPropertyAssignment("type",s.expression)),s.arguments.length){let i=[];for(let a of s.arguments)i.push(a);let o=C.default.factory.createArrayLiteralExpression(C.default.factory.createNodeArray(i,!0));n.push(C.default.factory.createPropertyAssignment("args",o))}break;default:e.push({file:t.getSourceFile(),start:t.getStart(),length:t.getEnd()-t.getStart(),messageText:`${C.default.SyntaxKind[t.kind]} not implemented in gathering decorator metadata.`,category:C.default.DiagnosticCategory.Error,code:0});break}return C.default.factory.createObjectLiteralExpression(n)}function n_(t,e,n,r){let s=[];for(let a of n){if(!a.type&&a.decorators.length===0){s.push(C.default.factory.createNull());continue}let l=a.type?Vg(e,a.type):void 0,c=[C.default.factory.createPropertyAssignment("type",l||C.default.factory.createIdentifier("undefined"))],u=[];for(let h of a.decorators)u.push(Ug(h,t));u.length&&c.push(C.default.factory.createPropertyAssignment("decorators",C.default.factory.createArrayLiteralExpression(u))),s.push(C.default.factory.createObjectLiteralExpression(c))}let i=C.default.factory.createArrowFunction(void 0,void 0,[],void 0,C.default.factory.createToken(C.default.SyntaxKind.EqualsGreaterThanToken),C.default.factory.createArrayLiteralExpression(s,!0)),o=C.default.factory.createPropertyDeclaration([C.default.factory.createToken(C.default.SyntaxKind.StaticKeyword)],"ctorParameters",void 0,void 0,i);return r&&C.default.setSyntheticLeadingComments(o,[{kind:C.default.SyntaxKind.MultiLineCommentTrivia,text:["*"," * @type {function(): !Array<(null|{"," * type: ?,",` * decorators: (undefined|${$g}),`," * })>}"," * @nocollapse"," "].join(`
44
+ `),pos:-1,end:-1,hasTrailingNewLine:!0}]),o}function Vg(t,e){let n=e.kind;switch(C.default.isLiteralTypeNode(e)&&(n=e.literal.kind),n){case C.default.SyntaxKind.FunctionType:case C.default.SyntaxKind.ConstructorType:return C.default.factory.createIdentifier("Function");case C.default.SyntaxKind.ArrayType:case C.default.SyntaxKind.TupleType:return C.default.factory.createIdentifier("Array");case C.default.SyntaxKind.TypePredicate:case C.default.SyntaxKind.TrueKeyword:case C.default.SyntaxKind.FalseKeyword:case C.default.SyntaxKind.BooleanKeyword:return C.default.factory.createIdentifier("Boolean");case C.default.SyntaxKind.StringLiteral:case C.default.SyntaxKind.StringKeyword:return C.default.factory.createIdentifier("String");case C.default.SyntaxKind.ObjectKeyword:return C.default.factory.createIdentifier("Object");case C.default.SyntaxKind.NumberKeyword:case C.default.SyntaxKind.NumericLiteral:return C.default.factory.createIdentifier("Number");case C.default.SyntaxKind.TypeReference:return t(e.typeName);case C.default.SyntaxKind.UnionType:let s=e.types.filter(i=>!(C.default.isLiteralTypeNode(i)&&i.literal.kind===C.default.SyntaxKind.NullKeyword));return s.length===1?Vg(t,s[0]):void 0;default:return}}function r_(t,e){return e.flags&C.default.SymbolFlags.Alias&&(e=t.getAliasedSymbol(e)),(e.flags&C.default.SymbolFlags.Value&C.default.SymbolFlags.ConstEnumExcludes)!==0}function qg(t,e,n,r,s,i){function o(l,c){s&&C.default.setSyntheticLeadingComments(l,[{kind:C.default.SyntaxKind.MultiLineCommentTrivia,text:`* @type {${c}} `,pos:-1,end:-1,hasTrailingNewLine:!0}])}function a(l,c){let u=[];for(let[m,E]of c.entries())u.push(C.default.factory.createPropertyAssignment(m,C.default.factory.createArrayLiteralExpression(E.map(S=>Ug(S,l)))));let h=C.default.factory.createObjectLiteralExpression(u,!0),f=C.default.factory.createPropertyDeclaration([C.default.factory.createToken(C.default.SyntaxKind.StaticKeyword)],"propDecorators",void 0,void 0,h);return o(f,`!Object<string, ${$g}>`),f}return l=>{let c=Ju(l);function u(S){let I=t.getSymbolAtLocation(S);if(!I||!r_(t,I)||!I.declarations||I.declarations.length===0)return;if(C.default.isQualifiedName(S)){let $=u(S.left);return $===void 0?void 0:C.default.factory.createPropertyAccessExpression($,S.right)}let N=I.declarations[0];return Zu(N)&&(c.add(N),N.name!==void 0)?C.default.setOriginalNode(C.default.factory.createIdentifier(N.name.text),N.name):C.default.setOriginalNode(C.default.factory.createIdentifier(S.text),S)}function h(S){S=C.default.visitEachChild(S,E,l);let I=[],N=[],$=e.getDecoratorsOfDeclaration(S)||[];for(let Ee of $){let Ne=Ee.node;if(!Sp(Ee,r)){I.push(Ne);continue}N.push(Ne)}if(!N.length)return[void 0,S,[]];if(!S.name||!C.default.isIdentifier(S.name))return n.push({file:S.getSourceFile(),start:S.getStart(),length:S.getEnd()-S.getStart(),messageText:"Cannot process decorators for class element with non-analyzable name.",category:C.default.DiagnosticCategory.Error,code:0}),[void 0,S,[]];let Te=C.default.canHaveModifiers(S)?C.default.getModifiers(S):void 0,le;return(I.length||Te?.length)&&(le=C.default.setTextRange(C.default.factory.createNodeArray([...I,...Te||[]]),S.modifiers)),[S.name.text,s_(S,le),N]}function f(S){S=C.default.visitEachChild(S,E,l);let I=[],N=S.parameters,$=[];for(let le of N){let Ee=[],Ne={decorators:[],type:null},Cr=e.getDecoratorsOfDeclaration(le)||[];for(let Yp of Cr){let Qp=Yp.node;if(!Sp(Yp,r)){Ee.push(Qp);continue}Ne.decorators.push(Qp)}le.type&&(Ne.type=le.type),$.push(Ne);let Mt,Ir=C.default.getModifiers(le);(Ee.length||Ir?.length)&&(Mt=[...Ee,...Ir||[]]);let Zv=C.default.factory.updateParameterDeclaration(le,Mt,le.dotDotDotToken,le.name,le.questionToken,le.type,le.initializer);I.push(Zv)}return[C.default.factory.updateConstructorDeclaration(S,C.default.getModifiers(S),I,S.body),$]}function m(S){let I=[],N=new Map,$=null;for(let Ne of S.members){switch(Ne.kind){case C.default.SyntaxKind.PropertyDeclaration:case C.default.SyntaxKind.GetAccessor:case C.default.SyntaxKind.SetAccessor:case C.default.SyntaxKind.MethodDeclaration:{let[Cr,Mt,Ir]=h(Ne);I.push(Mt),Cr&&N.set(Cr,Ir);continue}case C.default.SyntaxKind.Constructor:{if(!Ne.body)break;let[Mt,Ir]=f(Ne);$=Ir,I.push(Mt);continue}default:break}I.push(C.default.visitEachChild(Ne,E,l))}let le=(e.getDecoratorsOfDeclaration(S)||[]).some(Ne=>Sp(Ne,r));$&&(le||$.some(Ne=>!!Ne.decorators.length))&&I.push(n_(n,u,$,s)),N.size&&I.push(a(n,N));let Ee=C.default.setTextRange(C.default.factory.createNodeArray(I,S.members.hasTrailingComma),S.members);return C.default.factory.updateClassDeclaration(S,S.modifiers,S.name,S.typeParameters,S.heritageClauses,Ee)}function E(S){return C.default.isClassDeclaration(S)&&(i===void 0||i(S))?m(S):C.default.visitEachChild(S,E,l)}return S=>C.default.visitEachChild(S,E,l)}}function s_(t,e){let n;if(C.default.isMethodDeclaration(t))n=C.default.factory.createMethodDeclaration(e,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body);else if(C.default.isPropertyDeclaration(t))n=C.default.factory.createPropertyDeclaration(e,t.name,t.questionToken,t.type,t.initializer);else if(C.default.isGetAccessor(t))n=C.default.factory.createGetAccessorDeclaration(e,t.name,t.parameters,t.type,t.body);else if(C.default.isSetAccessor(t))n=C.default.factory.createSetAccessorDeclaration(e,t.name,t.parameters,t.body);else throw new Error(`Unsupported decorated member with kind ${C.default.SyntaxKind[t.kind]}`);return C.default.setOriginalNode(n,t)}function nl(t,e,n,r,s){let i=tl.default.isIdentifier(n.identifier)?n.identifier:n.identifier.expression;return t.createPropertyAccessExpression(e.addImport({exportModuleSpecifier:"@angular/core",exportSymbolName:null,requestedFile:r}),tl.default.setOriginalNode(t.createIdentifier(s),i))}function Gg(t,e){return t.createAsExpression(e,t.createKeywordTypeNode(tl.default.SyntaxKind.AnyKeyword))}var i_=(t,e,n,r,s,i,o,a)=>{var l,c;if((l=n.getDecoratorsOfDeclaration(t.node))!=null&&l.some(m=>ti(m,"Input",a)))return t.node;let u=Ag(t,n,s);if(u===null)return t.node;let h={isSignal:r.createTrue(),alias:r.createStringLiteral(u.bindingPropertyName),required:u.required?r.createTrue():r.createFalse(),transform:r.createIdentifier("undefined")},f=r.createDecorator(r.createCallExpression(nl(r,i,o,e,"Input"),void 0,[Gg(r,r.createObjectLiteralExpression(Object.entries(h).map(([m,E])=>r.createPropertyAssignment(m,E))))]));return r.updatePropertyDeclaration(t.node,[f,...(c=t.node.modifiers)!=null?c:[]],t.name,t.node.questionToken,t.node.type,t.node.initializer)},o_=(t,e,n,r,s,i,o,a)=>{var l,c;if((l=n.getDecoratorsOfDeclaration(t.node))!=null&&l.some(E=>ti(E,"Input",a)||ti(E,"Output",a)))return t.node;let u=Ng(t,n,s);if(u===null)return t.node;let h=r.createObjectLiteralExpression([r.createPropertyAssignment("isSignal",u.input.isSignal?r.createTrue():r.createFalse()),r.createPropertyAssignment("alias",r.createStringLiteral(u.input.bindingPropertyName)),r.createPropertyAssignment("required",u.input.required?r.createTrue():r.createFalse())]),f=Fg("Input",r.createAsExpression(h,r.createKeywordTypeNode(Hg.default.SyntaxKind.AnyKeyword)),o,r,e,i),m=Fg("Output",r.createStringLiteral(u.output.bindingPropertyName),o,r,e,i);return r.updatePropertyDeclaration(t.node,[f,m,...(c=t.node.modifiers)!=null?c:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)};function Fg(t,e,n,r,s,i){let o=nl(r,i,n,s,t);return r.createDecorator(r.createCallExpression(o,void 0,[e]))}var a_=(t,e,n,r,s,i,o,a)=>{var l,c;if((l=n.getDecoratorsOfDeclaration(t.node))!=null&&l.some(f=>ti(f,"Output",a)))return t.node;let u=bg(t,n,s);if(u===null)return t.node;let h=r.createDecorator(r.createCallExpression(nl(r,i,o,e,"Output"),void 0,[r.createStringLiteral(u.metadata.bindingPropertyName)]));return r.updatePropertyDeclaration(t.node,[h,...(c=t.node.modifiers)!=null?c:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)},l_={viewChild:"ViewChild",viewChildren:"ViewChildren",contentChild:"ContentChild",contentChildren:"ContentChildren"},c_=(t,e,n,r,s,i,o,a)=>{var l;let c=n.getDecoratorsOfDeclaration(t.node),u=c&&Cg(c,yp,a);if(u!==null&&u.length>0)return t.node;let h=Dg(t,n,s);if(h===null)return t.node;let f=h.call.arguments,m=r.createDecorator(r.createCallExpression(nl(r,i,o,e,l_[h.name]),void 0,[h.call.arguments[0],Gg(r,r.createObjectLiteralExpression([...f.length>1?[r.createSpreadAssignment(f[1])]:[],r.createPropertyAssignment("isSignal",r.createTrue())]))]));return r.updatePropertyDeclaration(t.node,[m,...(l=t.node.modifiers)!=null?l:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)},u_=["Directive","Component"],p_=[i_,a_,c_,o_];function Wg(t,e,n,r){return s=>i=>{let o=new tp;return i=xr.default.visitNode(i,h_(s,t,o,e,n,r),xr.default.isSourceFile),o.transformTsFile(s,i)}}function h_(t,e,n,r,s,i){let o=a=>{var l;if(xr.default.isClassDeclaration(a)&&a.name!==void 0){let c=xr.default.getOriginalNode(a,xr.default.isClassDeclaration),u=(l=e.getDecoratorsOfDeclaration(c))==null?void 0:l.find(h=>u_.some(f=>ti(h,f,s)));if(u!==void 0&&(i===void 0||i(a))){let h=!1,f=c.getSourceFile(),m=a.members.map(E=>{if(!xr.default.isPropertyDeclaration(E))return E;let S=Yu(E);if(S===null)return E;for(let I of p_){let N=I({...S,node:E},f,e,t.factory,r,n,u,s);if(N!==S.node)return h=!0,N}return E});if(h)return t.factory.updateClassDeclaration(a,a.modifiers,a.name,a.typeParameters,a.heritageClauses,m)}}return xr.default.visitEachChild(a,o,t)};return o}function wo(t,e=!1,n){let r=t.getTypeChecker(),s=new Xu(r),i=new ep,o=qg(r,s,[],e,!1,n),a=Wg(s,i,e,n);return l=>c=>(c=a(l)(c),c=o(l)(c),c)}var E2=(0,jg.createRequire)(R),Kg={ngDevMode:!1,ngI18nClosureMode:!1},f_={...Kg,ngJitMode:!1};w();var Xv=require("module");var fP=x(require("typescript"),1),dP=x(require("typescript"),1),mP=x(require("typescript"),1),gP=x(require("typescript"),1),yP=x(require("typescript"),1),vP=x(require("typescript"),1),EP=x(require("typescript"),1),SP=x(require("typescript"),1),wP=x(require("typescript"),1),TP=x(require("typescript"),1),xP=x(require("typescript"),1);var CP=x(require("typescript"),1);var Yv=x(require("typescript"),1);var IP=x(require("typescript"),1),AP=x(require("typescript"),1),NP=x(require("typescript"),1),bP=x(require("typescript"),1);var DP=x(require("typescript"),1);var Wp=x(require("typescript"),1);var jp=x(require("typescript"),1);var Kp=x(require("typescript"),1);var sM=x(require("typescript"),1);var oM=x(require("typescript"),1),aM=x(require("typescript"),1),lM=x(Bv(),1),cM=x(require("typescript"),1),uM=x(require("typescript"),1),pM=x(require("typescript"),1),cB=(0,Xv.createRequire)(R);var Up;(function(t){t[t.DTS=1]="DTS",t[t.JS=2]="JS",t[t.Metadata=4]="Metadata",t[t.I18nBundle=8]="I18nBundle",t[t.Codegen=16]="Codegen",t[t.Default=19]="Default",t[t.All=31]="All"})(Up||(Up={}));var Vp;(function(t){t.Block="block",t.Component="component",t.Constant="constant",t.Decorator="decorator",t.Directive="directive",t.Element="element",t.Enum="enum",t.Function="function",t.Interface="interface",t.NgModule="ng_module",t.Pipe="pipe",t.TypeAlias="type_alias",t.UndecoratedClass="undecorated_class",t.InitializerApiFunction="initializer_api_function"})(Vp||(Vp={}));var qp;(function(t){t.Property="property",t.Method="method",t.Getter="getter",t.Setter="setter",t.EnumItem="enum_item"})(qp||(qp={}));var Gp;(function(t){t.Class="class",t.Member="member",t.Parameter="parameter"})(Gp||(Gp={}));var Hp;(function(t){t.Abstract="abstract",t.Static="static",t.Readonly="readonly",t.Protected="protected",t.Optional="optional",t.Input="input",t.Output="output",t.Inherited="override"})(Hp||(Hp={}));var yB=Yv.default.version;var EB=Symbol("NgCyclicResult");var $v;(function(t){t[t.Fresh=0]="Fresh",t[t.Delta=1]="Delta",t[t.Analyzed=2]="Analyzed"})($v||($v={}));var Uv;(function(t){t[t.Analysis=0]="Analysis",t[t.TypeCheckAndEmit=1]="TypeCheckAndEmit"})(Uv||(Uv={}));var SB=Symbol("NgIncrementalState"),Vv;(function(t){t[t.Property=0]="Property",t[t.Method=1]="Method",t[t.Element=2]="Element",t[t.Template=3]="Template",t[t.Attribute=4]="Attribute",t[t.Reference=5]="Reference",t[t.Variable=6]="Variable",t[t.LetDeclaration=7]="LetDeclaration"})(Vv||(Vv={}));var _P=".$ngresource$",xB=_P+".ts";var RP=new Set(["WritableSignal","Signal","InputSignal","InputSignalWithTransform","ModelSignal"]);function qv(t){return(t.kind===Pt.Expression||t.kind===Pt.Variable||t.kind===Pt.LetDeclaration)&&(t.tsType.symbol!==void 0&&Gv(t.tsType.symbol)||t.tsType.aliasSymbol!==void 0&&Gv(t.tsType.aliasSymbol))}function Gv(t){let e=t.getDeclarations();return e!==void 0&&e.some(n=>{let r=n.getSourceFile().fileName;return(Wp.default.isInterfaceDeclaration(n)||Wp.default.isTypeAliasDeclaration(n))&&RP.has(n.name.text)&&(r.includes("@angular/core")||r.includes("angular2/rc/packages/core"))})}var In=class{constructor(){this.canVisitStructuralAttributes=!0}run(t,e,n){return new kP(t,e,this).getDiagnostics(n)}},kP=class extends pr{constructor(t,e,n){super(),this.ctx=t,this.component=e,this.check=n,this.diagnostics=[]}visit(t,e){this.diagnostics.push(...this.check.visitNode(this.ctx,this.component,t)),t.visit(this)}visitAllNodes(t){for(let e of t)this.visit(e)}visitAst(t){t instanceof de&&(t=t.ast),this.visit(t)}visitElement(t){this.visitAllNodes(t.attributes),this.visitAllNodes(t.inputs),this.visitAllNodes(t.outputs),this.visitAllNodes(t.references),this.visitAllNodes(t.children)}visitTemplate(t){let e=t.tagName==="ng-template";this.visitAllNodes(t.attributes),e&&(this.visitAllNodes(t.inputs),this.visitAllNodes(t.outputs)),(this.check.canVisitStructuralAttributes||e)&&this.visitAllNodes(t.templateAttrs),this.visitAllNodes(t.variables),this.visitAllNodes(t.references),this.visitAllNodes(t.children)}visitContent(t){this.visitAllNodes(t.children)}visitVariable(t){}visitReference(t){}visitTextAttribute(t){}visitUnknownBlock(t){}visitBoundAttribute(t){this.visitAst(t.value)}visitBoundEvent(t){this.visitAst(t.handler)}visitText(t){}visitBoundText(t){this.visitAst(t.value)}visitIcu(t){Object.keys(t.vars).forEach(e=>this.visit(t.vars[e])),Object.keys(t.placeholders).forEach(e=>this.visit(t.placeholders[e]))}visitDeferredBlock(t){t.visitAll(this)}visitDeferredTrigger(t){t instanceof Ls&&this.visitAst(t.value)}visitDeferredBlockPlaceholder(t){this.visitAllNodes(t.children)}visitDeferredBlockError(t){this.visitAllNodes(t.children)}visitDeferredBlockLoading(t){this.visitAllNodes(t.children)}visitSwitchBlock(t){this.visitAst(t.expression),this.visitAllNodes(t.cases)}visitSwitchBlockCase(t){t.expression&&this.visitAst(t.expression),this.visitAllNodes(t.children)}visitForLoopBlock(t){var e;t.item.visit(this),this.visitAllNodes(t.contextVariables),this.visitAst(t.expression),this.visitAllNodes(t.children),(e=t.empty)==null||e.visit(this)}visitForLoopBlockEmpty(t){this.visitAllNodes(t.children)}visitIfBlock(t){this.visitAllNodes(t.branches)}visitIfBlockBranch(t){var e;t.expression&&this.visitAst(t.expression),(e=t.expressionAlias)==null||e.visit(this),this.visitAllNodes(t.children)}visitLetDeclaration(t){this.visitAst(t.value)}getDiagnostics(t){return this.diagnostics=[],this.visitAllNodes(t),this.diagnostics}},PP=new Set(["set","update","asReadonly"]),MP=new Set(["name","length","prototype"]),LP=class extends In{constructor(){super(...arguments),this.code=Q.INTERPOLATED_SIGNAL_NOT_INVOKED}visitNode(t,e,n){if(n instanceof Fn)return n.expressions.filter(r=>r instanceof Ie).flatMap(r=>Hv(t,r,e));if(n instanceof _t){let r=t.templateTypeChecker.getUsedDirectives(e);if(r!==null&&r.some(s=>s.inputs.getByBindingPropertyName(n.name)!==null))return[];if((n.type===z.Property||n.type===z.Class||n.type===z.Style||n.type===z.Attribute||n.type===z.Animation)&&n.value instanceof de&&n.value.ast instanceof Ie)return Hv(t,n.value.ast,e)}return[]}};function OP(t){return MP.has(t)}function FP(t){return PP.has(t)}function Hv(t,e,n){let r=t.templateTypeChecker.getSymbolOfNode(e,n);if(r!==null&&r.kind===Pt.Expression&&qv(r)){let i=t.templateTypeChecker.getTemplateMappingAtTcbLocation(r.tcbLocation),o=`${e.name} is a function and should be invoked: ${e.name}()`;return[t.makeTemplateDiagnostic(i.span,o)]}let s=t.templateTypeChecker.getSymbolOfNode(e.receiver,n);if((OP(e.name)||FP(e.name))&&s!==null&&s.kind===Pt.Expression&&qv(s)){let i=t.templateTypeChecker.getTemplateMappingAtTcbLocation(s.tcbLocation),o=`${e.receiver.name} is a function and should be invoked: ${e.receiver.name}()`;return[t.makeTemplateDiagnostic(i.span,o)]}return[]}var BP={code:Q.INTERPOLATED_SIGNAL_NOT_INVOKED,name:Tt.INTERPOLATED_SIGNAL_NOT_INVOKED,create:()=>new LP},$P=class extends In{constructor(){super(...arguments),this.code=Q.INVALID_BANANA_IN_BOX}visitNode(t,e,n){if(!(n instanceof $n))return[];let r=n.name;if(!r.startsWith("[")||!r.endsWith("]"))return[];let i=n.sourceSpan.toString().replace(`(${r})`,`[(${r.slice(1,-1)})]`);return[t.makeTemplateDiagnostic(n.sourceSpan,`In the two-way binding syntax the parentheses should be inside the brackets, ex. '${i}'.
45
+ Find more at https://angular.dev/guide/templates/two-way-binding`)]}},UP={code:Q.INVALID_BANANA_IN_BOX,name:Tt.INVALID_BANANA_IN_BOX,create:()=>new $P},Wv=new Map([["ngIf",{directive:"NgIf",builtIn:"@if"}],["ngFor",{directive:"NgFor",builtIn:"@for"}],["ngSwitchCase",{directive:"NgSwitchCase",builtIn:"@switch with @case"}],["ngSwitchDefault",{directive:"NgSwitchDefault",builtIn:"@switch with @default"}]]),VP=class extends In{constructor(){super(...arguments),this.code=Q.MISSING_CONTROL_FLOW_DIRECTIVE}run(t,e,n){let r=t.templateTypeChecker.getDirectiveMetadata(e);return!r||!r.isStandalone?[]:super.run(t,e,n)}visitNode(t,e,n){if(!(n instanceof re))return[];let r=n.templateAttrs.find(c=>Wv.has(c.name));if(!r)return[];let s=t.templateTypeChecker.getSymbolOfNode(n,e);if(s===null||s.directives.length>0)return[];let i=r.keySpan||r.sourceSpan,o=Wv.get(r.name),a=`The \`*${r.name}\` directive was used in the template, but neither the \`${o?.directive}\` directive nor the \`CommonModule\` was imported. Use Angular's built-in control flow ${o?.builtIn} or make sure that either the \`${o?.directive}\` directive or the \`CommonModule\` is included in the \`@Component.imports\` array of this component.`;return[t.makeTemplateDiagnostic(i,a)]}},qP={code:Q.MISSING_CONTROL_FLOW_DIRECTIVE,name:Tt.MISSING_CONTROL_FLOW_DIRECTIVE,create:t=>new VP},GP=class extends In{constructor(){super(...arguments),this.code=Q.MISSING_NGFOROF_LET}visitNode(t,e,n){let r=n instanceof re;if(!(n instanceof re))return[];if(n.templateAttrs.length===0)return[];let s=n.templateAttrs.find(a=>a.name==="ngFor");return s===void 0?[]:n.variables.length>0?[]:[t.makeTemplateDiagnostic(s.sourceSpan,"Your ngFor is missing a value. Did you forget to add the `let` keyword?")]}},HP={code:Q.MISSING_NGFOROF_LET,name:Tt.MISSING_NGFOROF_LET,create:()=>new GP},WP=class extends In{constructor(){super(...arguments),this.canVisitStructuralAttributes=!1,this.code=Q.NULLISH_COALESCING_NOT_NULLABLE}visitNode(t,e,n){if(!(n instanceof mt)||n.operation!=="??")return[];let r=t.templateTypeChecker.getSymbolOfNode(n.left,e);if(r===null||r.kind!==Pt.Expression)return[];let s=r.tsType;if(s.flags&(jp.default.TypeFlags.Any|jp.default.TypeFlags.Unknown))return[];if(s.getNonNullableType()!==s)return[];let i=t.templateTypeChecker.getSymbolOfNode(n,e);if(i.kind!==Pt.Expression)return[];let o=t.templateTypeChecker.getTemplateMappingAtTcbLocation(i.tcbLocation);return o===null?[]:[t.makeTemplateDiagnostic(o.span,"The left side of this nullish coalescing operation does not include 'null' or 'undefined' in its type, therefore the '??' operator can be safely removed.")]}},jP={code:Q.NULLISH_COALESCING_NOT_NULLABLE,name:Tt.NULLISH_COALESCING_NOT_NULLABLE,create:t=>(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks)?new WP:null},KP=class extends In{constructor(){super(...arguments),this.canVisitStructuralAttributes=!1,this.code=Q.OPTIONAL_CHAIN_NOT_NULLABLE}visitNode(t,e,n){if(!(n instanceof vn)&&!(n instanceof ut)&&!(n instanceof ur))return[];let r=t.templateTypeChecker.getSymbolOfNode(n.receiver,e);if(r===null||r.kind!==Pt.Expression)return[];let s=r.tsType;if(s.flags&(Kp.default.TypeFlags.Any|Kp.default.TypeFlags.Unknown))return[];if(s.getNonNullableType()!==s)return[];let i=t.templateTypeChecker.getSymbolOfNode(n,e);if(i.kind!==Pt.Expression)return[];let o=t.templateTypeChecker.getTemplateMappingAtTcbLocation(i.tcbLocation);if(o===null)return[];let a=n instanceof ut?"the '?.' operator can be replaced with the '.' operator":"the '?.' operator can be safely removed";return[t.makeTemplateDiagnostic(o.span,`The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore ${a}.`)]}},zP={code:Q.OPTIONAL_CHAIN_NOT_NULLABLE,name:Tt.OPTIONAL_CHAIN_NOT_NULLABLE,create:t=>(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks)?new KP:null},jv=["px","%","em"],XP=class extends In{constructor(){super(...arguments),this.code=Q.SUFFIX_NOT_SUPPORTED}visitNode(t,e,n){return n instanceof _t?!n.keySpan.toString().startsWith("attr.")||!jv.some(s=>n.name.endsWith(`.${s}`))?[]:[t.makeTemplateDiagnostic(n.keySpan,`The ${jv.map(s=>`'.${s}'`).join(", ")} suffixes are only supported on style bindings.`)]:[]}},YP={code:Q.SUFFIX_NOT_SUPPORTED,name:Tt.SUFFIX_NOT_SUPPORTED,create:()=>new XP},QP=class extends In{constructor(){super(...arguments),this.code=Q.TEXT_ATTRIBUTE_NOT_BINDING}visitNode(t,e,n){if(!(n instanceof Dt))return[];let r=n.name;if(!r.startsWith("attr.")&&!r.startsWith("style.")&&!r.startsWith("class."))return[];let s;if(r.startsWith("attr.")){let o=r.replace("attr.","");s="Static attributes should be written without the 'attr.' prefix.",n.value&&(s+=` For example, ${o}="${n.value}".`)}else{let o=`[${r}]`,a=n.value==="true"||n.value==="false"?n.value:`'${n.value}'`;s="Attribute, style, and class bindings should be enclosed with square braces.",n.value&&(s+=` For example, '${o}="${a}"'.`)}return[t.makeTemplateDiagnostic(n.sourceSpan,s)]}},JP={code:Q.TEXT_ATTRIBUTE_NOT_BINDING,name:Tt.TEXT_ATTRIBUTE_NOT_BINDING,create:()=>new QP},ZP=class extends In{constructor(){super(...arguments),this.code=Q.UNINVOKED_FUNCTION_IN_EVENT_BINDING}visitNode(t,e,n){if(!(n instanceof $n))return[];if(n.type!==ke.Regular&&n.type!==ke.Animation)return[];if(!(n.handler instanceof de))return[];let r=n.handler.source||"";if(n.handler.ast instanceof cr)return n.handler.ast.expressions.flatMap(s=>$p(s,e,n,r,t));if(n.handler.ast instanceof Gr){let{trueExp:s,falseExp:i}=n.handler.ast;return[s,i].flatMap(o=>$p(o,e,n,r,t))}return $p(n.handler.ast,e,n,r,t)}};function $p(t,e,n,r,s){var i;if(t instanceof yn||t instanceof vn)return[];if(!(t instanceof Ie)&&!(t instanceof ut))return[];let o=s.templateTypeChecker.getSymbolOfNode(t,e);if(o!==null&&o.kind===Pt.Expression&&((i=o.tsType.getCallSignatures())==null?void 0:i.length)>0){let l=`Function in event binding should be invoked: ${eM(t,r)}()`;return[s.makeTemplateDiagnostic(n.sourceSpan,l)]}return[]}function eM(t,e){return e.substring(t.span.start,t.span.end)}var tM={code:Q.UNINVOKED_FUNCTION_IN_EVENT_BINDING,name:Tt.UNINVOKED_FUNCTION_IN_EVENT_BINDING,create:()=>new ZP},nM=class extends In{constructor(){super(...arguments),this.code=Q.UNUSED_LET_DECLARATION,this.analysis=new Map}run(t,e,n){super.run(t,e,n);let r=[],{allLetDeclarations:s,usedLetDeclarations:i}=this.getAnalysis(e);for(let o of s)i.has(o)||r.push(t.makeTemplateDiagnostic(o.sourceSpan,`@let ${o.name} is declared but its value is never read.`));return this.analysis.clear(),r}visitNode(t,e,n){if(n instanceof Qe)this.getAnalysis(e).allLetDeclarations.add(n);else if(n instanceof me){let r=n instanceof de?n.ast:n,s=t.templateTypeChecker.getExpressionTarget(r,e);s!==null&&s instanceof Qe&&this.getAnalysis(e).usedLetDeclarations.add(s)}return[]}getAnalysis(t){return this.analysis.has(t)||this.analysis.set(t,{allLetDeclarations:new Set,usedLetDeclarations:new Set}),this.analysis.get(t)}},rM={code:Q.UNUSED_LET_DECLARATION,name:Tt.UNUSED_LET_DECLARATION,create:()=>new nM},Kv;(function(t){t.Warning="warning",t.Error="error",t.Suppress="suppress"})(Kv||(Kv={}));var iM=[UP,jP,zP,qP,JP,HP,YP,BP,tM,rM],LB=new Set([Tt.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION,...iM.map(t=>t.name)]);var FB=[fp,dp,...mp,...gp];var zv;(function(t){t[t.Fresh=0]="Fresh",t[t.IncrementalTypeScript=1]="IncrementalTypeScript",t[t.IncrementalResource=2]="IncrementalResource"})(zv||(zv={}));w();var Qv=require("module"),JB=(0,Qv.createRequire)(R),zp;(function(t){t[t.debug=0]="debug",t[t.info=1]="info",t[t.warn=2]="warn",t[t.error=3]="error"})(zp||(zp={}));var Xp="\x1B[0m",hM="\x1B[31m",fM="\x1B[33m",dM="\x1B[36m",ZB=`${dM}Debug:${Xp}`,e$=`${fM}Warning:${Xp}`,t$=`${hM}Error:${Xp}`;var P$=(0,Jv.createRequire)(R),H$=new Ni("18.2.12");nh(new oh);0&&(module.exports={angularJitApplicationTransform});
46
46
  /*! Bundled license information:
47
47
 
48
- @angular/compiler-cli/bundles/chunk-3W345P4E.js:
48
+ @angular/compiler-cli/bundles/chunk-YE5ORA4V.js:
49
49
  (**
50
50
  * @license
51
51
  * Copyright Google LLC All Rights Reserved.
52
52
  *
53
53
  * Use of this source code is governed by an MIT-style license that can be
54
- * found in the LICENSE file at https://angular.io/license
54
+ * found in the LICENSE file at https://angular.dev/license
55
55
  *)
56
56
 
57
57
  @angular/compiler/fesm2022/compiler.mjs:
58
58
  (**
59
- * @license Angular v18.2.4
59
+ * @license Angular v18.2.12
60
60
  * (c) 2010-2024 Google LLC. https://angular.io/
61
61
  * License: MIT
62
62
  *)
@@ -67,7 +67,7 @@ Please report an issue on the Angular repositories when this issue surfaces and
67
67
  * Copyright Google LLC All Rights Reserved.
68
68
  *
69
69
  * Use of this source code is governed by an MIT-style license that can be
70
- * found in the LICENSE file at https://angular.io/license
70
+ * found in the LICENSE file at https://angular.dev/license
71
71
  *)
72
72
  (**
73
73
  *
@@ -75,91 +75,91 @@ Please report an issue on the Angular repositories when this issue surfaces and
75
75
  * Copyright Google LLC All Rights Reserved.
76
76
  *
77
77
  * Use of this source code is governed by an MIT-style license that can be
78
- * found in the LICENSE file at https://angular.io/license
78
+ * found in the LICENSE file at https://angular.dev/license
79
79
  *)
80
80
 
81
- @angular/compiler-cli/bundles/chunk-WYWH4ABE.js:
81
+ @angular/compiler-cli/bundles/chunk-PGXXZYOH.js:
82
82
  (*!
83
83
  * @license
84
84
  * Copyright Google LLC All Rights Reserved.
85
85
  *
86
86
  * Use of this source code is governed by an MIT-style license that can be
87
- * found in the LICENSE file at https://angular.io/license
87
+ * found in the LICENSE file at https://angular.dev/license
88
88
  *)
89
89
  (**
90
90
  * @license
91
91
  * Copyright Google LLC All Rights Reserved.
92
92
  *
93
93
  * Use of this source code is governed by an MIT-style license that can be
94
- * found in the LICENSE file at https://angular.io/license
94
+ * found in the LICENSE file at https://angular.dev/license
95
95
  *)
96
96
 
97
- @angular/compiler-cli/bundles/chunk-ERN7RQQ7.js:
97
+ @angular/compiler-cli/bundles/chunk-XSNUHRLJ.js:
98
98
  (**
99
99
  * @license
100
100
  * Copyright Google LLC All Rights Reserved.
101
101
  *
102
102
  * Use of this source code is governed by an MIT-style license that can be
103
- * found in the LICENSE file at https://angular.io/license
103
+ * found in the LICENSE file at https://angular.dev/license
104
104
  *)
105
105
 
106
- @angular/compiler-cli/bundles/chunk-FNLRHOJM.js:
106
+ @angular/compiler-cli/bundles/chunk-APDLWLLW.js:
107
107
  (*!
108
108
  * @license
109
109
  * Copyright Google LLC All Rights Reserved.
110
110
  *
111
111
  * Use of this source code is governed by an MIT-style license that can be
112
- * found in the LICENSE file at https://angular.io/license
112
+ * found in the LICENSE file at https://angular.dev/license
113
113
  *)
114
114
  (**
115
115
  * @license
116
116
  * Copyright Google LLC All Rights Reserved.
117
117
  *
118
118
  * Use of this source code is governed by an MIT-style license that can be
119
- * found in the LICENSE file at https://angular.io/license
119
+ * found in the LICENSE file at https://angular.dev/license
120
120
  *)
121
121
 
122
- @angular/compiler-cli/bundles/chunk-7PEXPTYL.js:
122
+ @angular/compiler-cli/bundles/chunk-26NKUA5V.js:
123
123
  (**
124
124
  * @license
125
125
  * Copyright Google LLC All Rights Reserved.
126
126
  *
127
127
  * Use of this source code is governed by an MIT-style license that can be
128
- * found in the LICENSE file at https://angular.io/license
128
+ * found in the LICENSE file at https://angular.dev/license
129
129
  *)
130
130
 
131
- @angular/compiler-cli/bundles/chunk-WUEVCLDR.js:
131
+ @angular/compiler-cli/bundles/chunk-AQX32KGU.js:
132
132
  (**
133
133
  * @license
134
134
  * Copyright Google LLC All Rights Reserved.
135
135
  *
136
136
  * Use of this source code is governed by an MIT-style license that can be
137
- * found in the LICENSE file at https://angular.io/license
137
+ * found in the LICENSE file at https://angular.dev/license
138
138
  *)
139
139
 
140
- @angular/compiler-cli/bundles/chunk-GUD463FN.js:
140
+ @angular/compiler-cli/bundles/chunk-Y3H6JOVH.js:
141
141
  (*!
142
142
  * @license
143
143
  * Copyright Google LLC All Rights Reserved.
144
144
  *
145
145
  * Use of this source code is governed by an MIT-style license that can be
146
- * found in the LICENSE file at https://angular.io/license
146
+ * found in the LICENSE file at https://angular.dev/license
147
147
  *)
148
148
  (**
149
149
  * @license
150
150
  * Copyright Google LLC All Rights Reserved.
151
151
  *
152
152
  * Use of this source code is governed by an MIT-style license that can be
153
- * found in the LICENSE file at https://angular.io/license
153
+ * found in the LICENSE file at https://angular.dev/license
154
154
  *)
155
155
 
156
- @angular/compiler-cli/bundles/chunk-LYJKWJUC.js:
156
+ @angular/compiler-cli/bundles/chunk-RT2QTF73.js:
157
157
  (**
158
158
  * @license
159
159
  * Copyright Google LLC All Rights Reserved.
160
160
  *
161
161
  * Use of this source code is governed by an MIT-style license that can be
162
- * found in the LICENSE file at https://angular.io/license
162
+ * found in the LICENSE file at https://angular.dev/license
163
163
  *)
164
164
 
165
165
  @angular/compiler-cli/bundles/index.js:
@@ -168,6 +168,6 @@ Please report an issue on the Angular repositories when this issue surfaces and
168
168
  * Copyright Google LLC All Rights Reserved.
169
169
  *
170
170
  * Use of this source code is governed by an MIT-style license that can be
171
- * found in the LICENSE file at https://angular.io/license
171
+ * found in the LICENSE file at https://angular.dev/license
172
172
  *)
173
173
  */