webhook/node_modules/prettier/parser-html.js

36 lines
158 KiB
JavaScript
Raw Normal View History

2022-11-10 11:43:16 +01:00
(function(e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var i=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};i.prettierPlugins=i.prettierPlugins||{},i.prettierPlugins.html=e()}})(function(){"use strict";var y=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var G=y((cl,zr)=>{var we=function(e){return e&&e.Math==Math&&e};zr.exports=we(typeof globalThis=="object"&&globalThis)||we(typeof window=="object"&&window)||we(typeof self=="object"&&self)||we(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var se=y((Dl,Wr)=>{Wr.exports=function(e){try{return!!e()}catch{return!0}}});var oe=y((ll,Yr)=>{var bs=se();Yr.exports=!bs(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Ne=y((hl,Qr)=>{var ws=se();Qr.exports=!ws(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ce=y((pl,Kr)=>{var Ns=Ne(),Oe=Function.prototype.call;Kr.exports=Ns?Oe.bind(Oe):function(){return Oe.apply(Oe,arguments)}});var rt=y(et=>{"use strict";var Jr={}.propertyIsEnumerable,Zr=Object.getOwnPropertyDescriptor,Os=Zr&&!Jr.call({1:2},1);et.f=Os?function(r){var t=Zr(this,r);return!!t&&t.enumerable}:Jr});var qe=y((dl,tt)=>{tt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Q=y((El,st)=>{var ut=Ne(),nt=Function.prototype,qs=nt.bind,er=nt.call,Is=ut&&qs.bind(er,er);st.exports=ut?function(e){return e&&Is(e)}:function(e){return e&&function(){return er.apply(e,arguments)}}});var Ie=y((Cl,it)=>{var at=Q(),Rs=at({}.toString),xs=at("".slice);it.exports=function(e){return xs(Rs(e),8,-1)}});var ct=y((ml,ot)=>{var Ps=G(),ks=Q(),Ls=se(),Ms=Ie(),rr=Ps.Object,js=ks("".split);ot.exports=Ls(function(){return!rr("z").propertyIsEnumerable(0)})?function(e){return Ms(e)=="String"?js(e,""):rr(e)}:rr});var tr=y((gl,Dt)=>{var $s=G(),Us=$s.TypeError;Dt.exports=function(e){if(e==null)throw Us("Can't call method on "+e);return e}});var Re=y((Fl,lt)=>{var Gs=ct(),Vs=tr();lt.exports=function(e){return Gs(Vs(e))}});var K=y((Al,ht)=>{ht.exports=function(e){return typeof e=="function"}});var De=y((vl,pt)=>{var Xs=K();pt.exports=function(e){return typeof e=="object"?e!==null:Xs(e)}});var ge=y((_l,ft)=>{var ur=G(),Hs=K(),zs=function(e){return Hs(e)?e:void 0};ft.exports=function(e,r){return arguments.length<2?zs(ur[e]):ur[e]&&ur[e][r]}});var nr=y((Sl,dt)=>{var Ws=Q();dt.exports=Ws({}.isPrototypeOf)});var Ct=y((yl,Et)=>{var Ys=ge();Et.exports=Ys("navigator","userAgent")||""});var St=y((Tl,_t)=>{var vt=G(),sr=Ct(),mt=vt.process,gt=vt.Deno,Ft=mt&&mt.versions||gt&&gt.version,At=Ft&&Ft.v8,te,xe;At&&(te=At.split("."),xe=te[0]>0&&te[0]<4?1:+(te[0]+te[1]));!xe&&sr&&(te=sr.match(/Edge\/(\d+)/),(!te||te[1]>=74)&&(te=sr.match(/Chrome\/(\d+)/),te&&(xe=+te[1])));_t.exports=xe});var ar=y((Bl,Tt)=>{var yt=St(),Qs=se();Tt.exports=!!Object.getOwnPropertySymbols&&!Qs(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yt&&yt<41})});var ir=y((bl,Bt)=>{var Ks=ar();Bt.exports=Ks&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var or=y((wl,bt)=>{var Js=G(),Zs=ge(),ea=K(),ra=nr(),ta=ir(),ua=Js.Object;bt.exports=ta?function(e){return typeof e=="symbol"}:function(e){var r=Zs("Symbol");return ea(r)&&ra(r.prototype,ua(e))}});var Pe=y((Nl,wt)=>{var na=G(),sa=na.String;wt.exports=function(e){try{return sa(e)}catch{return"Object"}}});var Fe=y((Ol,Nt)=>{var aa=G(),ia=K(),oa=Pe(),ca=aa.TypeError;Nt.exports=function(e){if(ia(e))return e;throw ca(oa(e)+" is not a function")}});var ke=y((ql,Ot)=>{var Da=Fe();Ot.exports=function(e,r){var t=e[r];return t==null?void 0:Da(t)}});var It=y((Il,qt)=>{var la=G(),cr=ce(),Dr=K(),lr=De(),ha=la.TypeError;qt.exports=function(e,r){var t,s;if(r==="string"&&Dr(t=e.toString)&&!lr(s=cr(t,e))||Dr(t=e.valueOf)&&!lr(s=cr(t,e))||r!=="string"&&Dr(t=e.toString)&&!lr(s=cr(t,e)))return s;throw ha("Can't convert object to primitive value")}});var xt=y((Rl,Rt)=
`);return f===-1?E:E.substring(0,f)}e.stringify=R;function $(o){return typeof o=="function"&&o.hasOwnProperty("__forward_ref__")?o():o}e.resolveForwardRef=$;function _(o){return!!o&&typeof o.then=="function"}e.isPromise=_;var O=class{constructor(o){this.full=o;let E=o.split(".");this.major=E[0],this.minor=E[1],this.patch=E.slice(2).join(".")}};e.Version=O;var x=typeof window<"u"&&window,k=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,M=typeof globalThis<"u"&&globalThis,u=M||x||k;e.global=u}}),sD=I({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){"use strict";q(),Object.defineProperty(e,"__esModule",{value:!0});var r=uD(),t=nD(),s=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function c(f){return f.replace(/\W/g,"_")}e.sanitizeIdentifier=c;var n=0;function a(f){if(!f||!f.reference)return null;let F=f.reference;if(F instanceof r.StaticSymbol)return F.name;if(F.__anonymousType)return F.__anonymousType;let P=t.stringify(F);return P.indexOf("(")>=0?(P="anonymous_".concat(n++),F.__anonymousType=P):P=c(P),P}e.identifierName=a;function p(f){let F=f.reference;return F instanceof r.StaticSymbol?F.filePath:"./".concat(t.stringify(F))}e.identifierModuleUrl=p;function D(f,F){return"View_".concat(a({reference:f}),"_").concat(F)}e.viewClassName=D;function g(f){return"RenderType_".concat(a({reference:f}))}e.rendererTypeName=g;function i(f){return"HostView_".concat(a({reference:f}))}e.hostViewClassName=i;function l(f){return"".concat(a({reference:f}),"NgFactory")}e.componentFactoryName=l;var h;(function(f){f[f.Pipe=0]="Pipe",f[f.Directive=1]="Directive",f[f.NgModule=2]="NgModule",f[f.Injectable=3]="Injectable"})(h=e.CompileSummaryKind||(e.CompileSummaryKind={}));function C(f){return f.value!=null?c(f.value):a(f.identifier)}e.tokenName=C;function d(f){return f.identifier!=null?f.identifier.reference:f.value}e.tokenReference=d;var m=class{constructor(){let{moduleUrl:f,styles:F,styleUrls:P}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=f||null,this.styles=_(F),this.styleUrls=_(P)}};e.CompileStylesheetMetadata=m;var T=class{constructor(f){let{encapsulation:F,template:P,templateUrl:j,htmlAst:W,styles:X,styleUrls:H,externalStylesheets:z,animations:J,ngContentSelectors:Z,interpolation:ee,isInline:v,preserveWhitespaces:S}=f;if(this.encapsulation=F,this.template=P,this.templateUrl=j,this.htmlAst=W,this.styles=_(X),this.styleUrls=_(H),this.externalStylesheets=_(z),this.animations=J?x(J):[],this.ngContentSelectors=Z||[],ee&&ee.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=ee,this.isInline=v,this.preserveWhitespaces=S}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};e.CompileTemplateMetadata=T;var B=class{static create(f){let{isHost:F,type:P,isComponent:j,selector:W,exportAs:X,changeDetection:H,inputs:z,outputs:J,host:Z,providers:ee,viewProviders:v,queries:S,guards:b,viewQueries:w,entryComponents:L,template:U,componentViewType:V,rendererType:Y,componentFactory:ue}=f,Be={},be={},Vr={};Z!=null&&Object.keys(Z).forEach(re=>{let ne=Z[re],me=re.match(s);me===null?Vr[re]=ne:me[1]!=null?be[me[1]]=ne:me[2]!=null&&(Be[me[2]]=ne)});let Xr={};z!=null&&z.forEach(re=>{let ne=t.splitAtColon(re,[re,re]);Xr[ne[0]]=ne[1]});let Hr={};return J!=null&&J.forEach(re=>{let ne=t.splitAtColon(re,[re,re]);Hr[ne[0]]=ne[1]}),new B({isHost:F,type:P,isComponent:!!j,selector:W,exportAs:X,changeDetection:H,inputs:Xr,outputs:Hr,hostListeners:Be,hostProperties:be,hostAttributes:Vr,providers:ee,viewProviders:v,queries:S,guards:b,viewQueries:w,entryComponents:L,template:U,componentViewType:V,rendererType:Y,componentFactory:ue})}constructor(f){let{isHost:F,type:P,isComponent:j,selector:W,exportAs:X,changeDetection:H,inputs:z,outputs:J,hostListeners:Z,hostProperties:ee,hostAttributes:v,providers:S,viewProviders:b,queries:w,guards:L,viewQueries:U,entryComponents:V,template:Y,componentViewType:ue,rendererType:Be,componentFactory:be}=f;this
`&&++T==l)););for(m=0,T=0;m<i&&d<h.length-1&&(d++,m++,!(h[d]==`
`&&++T==l)););return{before:h.substring(C,this.offset),after:h.substring(this.offset,d+1)}}return null}};e.ParseLocation=s;var c=class{constructor(i,l){this.content=i,this.url=l}};e.ParseSourceFile=c;var n=class{constructor(i,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.start=i,this.end=l,this.details=h}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=n,e.EMPTY_PARSE_LOCATION=new s(new c("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new n(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION);var a;(function(i){i[i.WARNING=0]="WARNING",i[i.ERROR=1]="ERROR"})(a=e.ParseErrorLevel||(e.ParseErrorLevel={}));var p=class{constructor(i,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a.ERROR;this.span=i,this.msg=l,this.level=h}contextualMessage(){let i=this.span.start.getContext(100,3);return i?"".concat(this.msg,' ("').concat(i.before,"[").concat(a[this.level]," ->]").concat(i.after,'")'):this.msg}toString(){let i=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(i)}};e.ParseError=p;function D(i,l){let h=t.identifierModuleUrl(l),C=h!=null?"in ".concat(i," ").concat(t.identifierName(l)," in ").concat(h):"in ".concat(i," ").concat(t.identifierName(l)),d=new c("",C);return new n(new s(d,-1,-1,-1),new s(d,-1,-1,-1))}e.typeSourceSpan=D;function g(i,l,h){let C="in ".concat(i," ").concat(l," in ").concat(h),d=new c("",C);return new n(new s(d,-1,-1,-1),new s(d,-1,-1,-1))}e.r3JitTypeSourceSpan=g}}),aD=I({"src/utils/front-matter/parse.js"(e,r){"use strict";q();var t=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function s(c){let n=c.match(t);if(!n)return{content:c};let{startDelimiter:a,language:p,value:D="",endDelimiter:g}=n.groups,i=p.trim()||"yaml";if(a==="+++"&&(i="toml"),i!=="yaml"&&a!==g)return{content:c};let[l]=n;return{frontMatter:{type:"front-matter",lang:i,value:D,startDelimiter:a,endDelimiter:g,raw:l.replace(/\n$/,"")},content:l.replace(/[^\n]/g," ")+c.slice(l.length)}}r.exports=s}}),ps=I({"src/utils/get-last.js"(e,r){"use strict";q();var t=s=>s[s.length-1];r.exports=t}}),iD=I({"src/common/parser-create-error.js"(e,r){"use strict";q();function t(s,c){let n=new SyntaxError(s+" ("+c.start.line+":"+c.start.column+")");return n.loc=c,n}r.exports=t}}),fs={};cs(fs,{default:()=>oD});function oD(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var cD=Ce({"node_modules/escape-string-regexp/index.js"(){q()}}),ds=I({"node_modules/semver/internal/debug.js"(e,r){q();var t=typeof ye=="object"&&ye.env&&ye.env.NODE_DEBUG&&/\bsemver\b/i.test(ye.env.NODE_DEBUG)?function(){for(var s=arguments.length,c=new Array(s),n=0;n<s;n++)c[n]=arguments[n];return console.error("SEMVER",...c)}:()=>{};r.exports=t}}),Es=I({"node_modules/semver/internal/constants.js"(e,r){q();var t="2.0.0",s=256,c=Number.MAX_SAFE_INTEGER||9007199254740991,n=16;r.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:s,MAX_SAFE_INTEGER:c,MAX_SAFE_COMPONENT_LENGTH:n}}}),DD=I({"node_modules/semver/internal/re.js"(e,r){q();var{MAX_SAFE_COMPONENT_LENGTH:t}=Es(),s=ds();e=r.exports={};var c=e.re=[],n=e.src=[],a=e.t={},p=0,D=(g,i,l)=>{let h=p++;s(g,h,i),a[g]=h,n[h]=i,c[h]=new RegExp(i,l?"g":void 0)};D("NUMERICIDENTIFIER","0|[1-9]\\d*"),D("NUMERICIDENTIFIERLOOSE","[0-9]+"),D("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),D("MAINVERSION","(".concat(n[a.NUMERICIDENTIFIER],")\\.(").concat(n[a.NUMERICIDENTIFIER],")\\.(").concat(n[a.NUMERICIDENTIFIER],")")),D("MAINVERSIONLOOSE","(".concat(n[a.NUMERICIDENTIFIERLOOSE],")\\.(").concat(n[a.NUMERICIDENTIFIERLOOSE],")\\.(").concat(n[a.NUMERICIDENTIFIERLOOSE],")")),D("PRERELEASEIDENTIFIER","(?:".concat(n[a.NUMERICIDENTIFIER],"|").concat(n[a.NONNUMERICIDENTIFIER],")")),D("PRERELEASEIDENTIFIERLOOSE","(?:".concat(n[a.NUMERICIDENTIFIERLOOSE],"|").concat(n[a.NONNUMERICIDENTIFIER],")")),D("PRERELEASE","(?:-(".c
Print (to stderr) where a cursor at the given position would move to after formatting.
This option cannot be used with --range-start and --range-end.
`]))),cliCategory:c},endOfLine:{since:"1.15.0",category:D,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:t(Zn||(Zn=Ee([`
Maintain existing
(mixed values within one file are normalised by looking at what's used after the first line)
`])))}]},filepath:{since:"1.4.0",category:g,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:a,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:g,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:a},parser:{since:"0.0.10",category:D,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:l=>typeof l=="string"||typeof l=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:D,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:l=>typeof l=="string"||typeof l=="object",cliName:"plugin",cliCategory:s},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:D,description:t(es||(es=Ee([`
Custom directory that contains prettier plugins in node_modules subdirectory.
Overrides default behavior when plugins are searched relatively to the location of Prettier.
Multiple values are accepted.
`]))),exception:l=>typeof l=="string"||typeof l=="object",cliName:"plugin-search-dir",cliCategory:s},printWidth:{since:"0.0.0",category:D,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:g,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:t(rs||(rs=Ee([`
Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement.
This option cannot be used with --cursor-offset.
`]))),cliCategory:c},rangeStart:{since:"1.4.0",category:g,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:t(ts||(ts=Ee([`
Format code starting at a given character offset.
The range will extend backwards to the start of the first line containing the selected statement.
This option cannot be used with --cursor-offset.
`]))),cliCategory:c},requirePragma:{since:"1.7.0",category:g,type:"boolean",default:!1,description:t(us||(us=Ee([`
Require either '@prettier' or '@format' to be present in the file's first docblock comment
in order for it to be formatted.
`]))),cliCategory:a},tabWidth:{type:"int",category:D,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:D,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:D,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};r.exports={CATEGORY_CONFIG:s,CATEGORY_EDITOR:c,CATEGORY_FORMAT:n,CATEGORY_OTHER:a,CATEGORY_OUTPUT:p,CATEGORY_GLOBAL:D,CATEGORY_SPECIAL:g,options:i}}}),FD=I({"src/main/support.js"(e,r){"use strict";q();var t={compare:Ur(),lt:fD(),gte:dD()},s=ED(),c=CD().version,n=gD().options;function a(){let{plugins:D=[],showUnreleased:g=!1,showDeprecated:i=!1,showInternal:l=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=c.split("-",1)[0],C=D.flatMap(A=>A.languages||[]).filter(m),d=s(Object.assign({},...D.map(A=>{let{options:N}=A;return N}),n),"name").filter(A=>m(A)&&T(A)).sort((A,N)=>A.name===N.name?0:A.name<N.name?-1:1).map(B).map(A=>{A=Object.assign({},A),Array.isArray(A.default)&&(A.default=A.default.length===1?A.default[0].value:A.default.filter(m).sort((R,$)=>t.compare($.since,R.since))[0].value),Array.isArray(A.choices)&&(A.choices=A.choices.filter(R=>m(R)&&T(R)),A.name==="parser"&&p(A,C,D));let N=Object.fromEntries(D.filter(R=>R.defaultOptions&&R.defaultOptions[A.name]!==void 0).map(R=>[R.name,R.defaultOptions[A.name]]));return Object.assign(Object.assign({},A),{},{pluginDefaults:N})});return{languages:C,options:d};function m(A){return g||!("since"in A)||A.since&&t.gte(h,A.since)}function T(A){return i||!("deprecated"in A)||A.deprecated&&t.lt(h,A.deprecated)}function B(A){if(l)return A;let{cliName:N,cliCategory:R,cliDescription:$}=A;return Qc(A,Yc)}}function p(D,g,i){let l=new Set(D.choices.map(h=>h.value));for(let h of g)if(h.parsers){for(let C of h.parsers)if(!l.has(C)){l.add(C);let d=i.find(T=>T.parsers&&T.parsers[C]),m=h.name;d&&d.name&&(m+=" (plugin: ".concat(d.name,")")),D.choices.push({value:C,description:m})}}}r.exports={getSupportInfo:a}}}),AD=I({"src/utils/is-non-empty-array.js"(e,r){"use strict";q();function t(s){return Array.isArray(s)&&s.length>0}r.exports=t}});function vD(){let{onlyFirst:e=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}var _D=Ce({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){q()}});function SD(e){if(typeof e!="string")throw new TypeError("Expected a `string`, got `".concat(typeof e,"`"));return e.replace(vD(),"")}var yD=Ce({"node_modules/strip-ansi/index.js"(){q(),_D()}});function TD(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}var BD=Ce({"node_modules/is-fullwidth-code-point/index.js"(){q()}}),bD=I({"node_modules/emoji-regex/index.js"(e,r){"use strict";q(),r.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[
`)return c-2;if(p===`
`||p==="\r"||p==="\u2028"||p==="\u2029")return c-1}else{if(p==="\r"&&s.charAt(c+1)===`
`)return c+2;if(p===`
`||p==="\r"||p==="\u2028"||p==="\u2029")return c+1}return c}r.exports=t}}),qD=I({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,r){"use strict";q();var t=gs(),s=As(),c=Fs(),{skipSpaces:n}=Gr();function a(p,D){let g=null,i=D;for(;i!==g;)g=i,i=n(p,i),i=t(p,i),i=c(p,i),i=s(p,i);return i}r.exports=a}}),ID=I({"src/common/util.js"(e,r){"use strict";q();var{default:t}=(cD(),ls(fs)),s=ps(),{getSupportInfo:c}=FD(),n=AD(),a=OD(),{skipWhitespace:p,skipSpaces:D,skipToLineEnd:g,skipEverythingButNewLine:i}=Gr(),l=gs(),h=Fs(),C=As(),d=qD(),m=v=>v[v.length-2];function T(v){return(S,b,w)=>{let L=w&&w.backwards;if(b===!1)return!1;let{length:U}=S,V=b;for(;V>=0&&V<U;){let Y=S.charAt(V);if(v instanceof RegExp){if(!v.test(Y))return V}else if(!v.includes(Y))return V;L?V--:V++}return V===-1||V===U?V:!1}}function B(v,S){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=D(v,b.backwards?S-1:S,b),L=C(v,w,b);return w!==L}function A(v,S,b){for(let w=S;w<b;++w)if(v.charAt(w)===`
`)return!0;return!1}function N(v,S,b){let w=b(S)-1;w=D(v,w,{backwards:!0}),w=C(v,w,{backwards:!0}),w=D(v,w,{backwards:!0});let L=C(v,w,{backwards:!0});return w!==L}function R(v,S){let b=null,w=S;for(;w!==b;)b=w,w=g(v,w),w=l(v,w),w=D(v,w);return w=h(v,w),w=C(v,w),w!==!1&&B(v,w)}function $(v,S,b){return R(v,b(S))}function _(v,S,b){return d(v,b(S))}function O(v,S,b){return v.charAt(_(v,S,b))}function x(v,S){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return D(v,b.backwards?S-1:S,b)!==S}function k(v,S){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=0;for(let L=b;L<v.length;++L)v[L]===" "?w=w+S-w%S:w++;return w}function M(v,S){let b=v.lastIndexOf(`
`);return b===-1?0:k(v.slice(b+1).match(/^[\t ]*/)[0],S)}function u(v,S){let b={quote:'"',regex:/"/g,escaped:"&quot;"},w={quote:"'",regex:/'/g,escaped:"&apos;"},L=S==="'"?w:b,U=L===w?b:w,V=L;if(v.includes(L.quote)||v.includes(U.quote)){let Y=(v.match(L.regex)||[]).length,ue=(v.match(U.regex)||[]).length;V=Y>ue?U:L}return V}function o(v,S){let b=v.slice(1,-1),w=S.parser==="json"||S.parser==="json5"&&S.quoteProps==="preserve"&&!S.singleQuote?'"':S.__isInHtmlAttribute?"'":u(b,S.singleQuote?"'":'"').quote;return E(b,w,!(S.parser==="css"||S.parser==="less"||S.parser==="scss"||S.__embeddedInHtml))}function E(v,S,b){let w=S==='"'?"'":'"',L=/\\(.)|(["'])/gs,U=v.replace(L,(V,Y,ue)=>Y===w?Y:ue===S?"\\"+ue:ue||(b&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(Y)?Y:"\\"+Y));return S+U+S}function f(v){return v.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function F(v,S){let b=v.match(new RegExp("(".concat(t(S),")+"),"g"));return b===null?0:b.reduce((w,L)=>Math.max(w,L.length/S.length),0)}function P(v,S){let b=v.match(new RegExp("(".concat(t(S),")+"),"g"));if(b===null)return 0;let w=new Map,L=0;for(let U of b){let V=U.length/S.length;w.set(V,!0),V>L&&(L=V)}for(let U=1;U<L;U++)if(!w.get(U))return U;return L+1}function j(v,S){(v.comments||(v.comments=[])).push(S),S.printed=!1,S.nodeDescription=ee(v)}function W(v,S){S.leading=!0,S.trailing=!1,j(v,S)}function X(v,S,b){S.leading=!1,S.trailing=!1,b&&(S.marker=b),j(v,S)}function H(v,S){S.leading=!1,S.trailing=!0,j(v,S)}function z(v,S){let{languages:b}=c({plugins:S.plugins}),w=b.find(L=>{let{name:U}=L;return U.toLowerCase()===v})||b.find(L=>{let{aliases:U}=L;return Array.isArray(U)&&U.includes(v)})||b.find(L=>{let{extensions:U}=L;return Array.isArray(U)&&U.includes(".".concat(v))});return w&&w.parsers[0]}function J(v){return v&&v.type==="front-matter"}function Z(v){let S=new WeakMap;return function(b){return S.has(b)||S.set(b,Symbol(v)),S.get(b)}}function ee(v){let S=v.type||v.kind||"(unknown type)",b=String(v.name||v.id&&(typeof v.id=="object"?v.id.name:v.id)||v.key&&(typeof v.key=="object"?v.key.name:v.key)||v.value&&(typeof v.value=="object"?"":String(v.value))||v.operator||"");return b.length>20&&(b=b.slice(0,19)+"\u2026"),S+(b?" "+b:"")}r.exports={inferParserByLanguage:z,getStringWidth:a,getMaxContinuousCount:F,getMinNotPresentContinuousCount:P,getPenultimate:m,getLast:s,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:d,getNextNonSpaceNonCommentCharacterIndex:_,getNextNonSpaceNonCommentCharacter:O,skip:T,skipWhitespace:p,skipSpaces:D,skipToLineEnd:g,skipEverythingButNewLine:i,skipInlineComment:l,skipTrailingComment:h,skipNewline:C,isNextLineEmptyAfterIndex:R,isNextLineEmpty:$,isPreviousLineEmpty:N,hasNewline:B,hasNewlineInRange:A,hasSpaces:x,getAlignmentSize:k,getIndentSize:M,getPreferredQuote:u,printString:o,printNumber:f,makeString:E,addLeadingComment:W,addDanglingComment:X,addTrailingComment:H,isFrontMatterNode:J,isNonEmptyArray:n,createGroupIdMapper:Z}}}),RD=I({"vendors/html-tag-names.json"(e,r){r.exports={htmlTagNames:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","
`+c.replace(/^\s*\n/,"")}r.exports={hasPragma:t,insertPragma:s}}}),$D=I({"src/language-html/ast.js"(e,r){"use strict";q();var t={attrs:!0,children:!0},s=new Set(["parent"]),c=class{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(let p of new Set([...s,...Object.keys(a)]))this.setProperty(p,a[p])}setProperty(a,p){if(this[a]!==p){if(a in t&&(p=p.map(D=>this.createChild(D))),!s.has(a)){this[a]=p;return}Object.defineProperty(this,a,{value:p,enumerable:!1,configurable:!0})}}map(a){let p;for(let D in t){let g=this[D];if(g){let i=n(g,l=>l.map(a));p!==g&&(p||(p=new c({parent:this.parent})),p.setProperty(D,i))}}if(p)for(let D in this)D in t||(p[D]=this[D]);return a(p||this)}walk(a){for(let p in t){let D=this[p];if(D)for(let g=0;g<D.length;g++)D[g].walk(a)}a(this)}createChild(a){let p=a instanceof c?a.clone():new c(a);return p.setProperty("parent",this),p}insertChildBefore(a,p){this.children.splice(this.children.indexOf(a),0,this.createChild(p))}removeChild(a){this.children.splice(this.children.indexOf(a),1)}replaceChild(a,p){this.children[this.children.indexOf(a)]=this.createChild(p)}clone(){return new c(this)}get firstChild(){var a;return(a=this.children)===null||a===void 0?void 0:a[0]}get lastChild(){var a;return(a=this.children)===null||a===void 0?void 0:a[this.children.length-1]}get prev(){var a;return(a=this.parent)===null||a===void 0?void 0:a.children[this.parent.children.indexOf(this)-1]}get next(){var a;return(a=this.parent)===null||a===void 0?void 0:a.children[this.parent.children.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(a=>[a.fullName,a.value]))}};function n(a,p){let D=a.map(p);return D.some((g,i)=>g!==a[i])?D:a}r.exports={Node:c}}}),UD=I({"src/language-html/conditional-comment.js"(e,r){"use strict";q();var{ParseSourceSpan:t}=Te(),s=[{regex:/^(\[if([^\]]*)]>)(.*?)<!\s*\[endif]$/s,parse:n},{regex:/^\[if([^\]]*)]><!$/,parse:a},{regex:/^<!\s*\[endif]$/,parse:p}];function c(D,g){if(D.value)for(let{regex:i,parse:l}of s){let h=D.value.match(i);if(h)return l(D,g,h)}return null}function n(D,g,i){let[,l,h,C]=i,d=4+l.length,m=D.sourceSpan.start.moveBy(d),T=m.moveBy(C.length),[B,A]=(()=>{try{return[!0,g(C,m).children]}catch{let N={type:"text",value:C,sourceSpan:new t(m,T)};return[!1,[N]]}})();return{type:"ieConditionalComment",complete:B,children:A,condition:h.trim().replace(/\s+/g," "),sourceSpan:D.sourceSpan,startSourceSpan:new t(D.sourceSpan.start,m),endSourceSpan:new t(T,D.sourceSpan.end)}}function a(D,g,i){let[,l]=i;return{type:"ieConditionalStartComment",condition:l.trim().replace(/\s+/g," "),sourceSpan:D.sourceSpan}}function p(D){return{type:"ieConditionalEndComment",sourceSpan:D.sourceSpan}}r.exports={parseIeConditionalComment:c}}}),GD=I({"src/language-html/loc.js"(e,r){"use strict";q();function t(c){return c.sourceSpan.start.offset}function s(c){return c.sourceSpan.end.offset}r.exports={locStart:t,locEnd:s}}}),Ze=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/tags.js"(e){"use strict";q(),Object.defineProperty(e,"__esModule",{value:!0});var r;(function(D){D[D.RAW_TEXT=0]="RAW_TEXT",D[D.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",D[D.PARSABLE_DATA=2]="PARSABLE_DATA"})(r=e.TagContentType||(e.TagContentType={}));function t(D){if(D[0]!=":")return[null,D];let g=D.indexOf(":",1);if(g==-1)throw new Error('Unsupported format "'.concat(D,'" expecting ":namespace:name"'));return[D.slice(1,g),D.slice(g+1)]}e.splitNsName=t;function s(D){return t(D)[1]==="ng-container"}e.isNgContainer=s;function c(D){return t(D)[1]==="ng-content"}e.isNgContent=c;function n(D){return t(D)[1]==="ng-template"}e.isNgTemplate=n;function a(D){return D===null?null:t(D)[0]}e.getNsPrefix=a;function p(D,g){return D?":".concat(D,":").concat(g):g}e.mergeNsAndName=p,e.NAMED_ENTITIES={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u01
`)}tokenize(){for(;this._cursor.peek()!==r.$EOF;){let u=this._cursor.clone();try{if(this._attemptCharCode(r.$LT))if(this._attemptCharCode(r.$BANG))this._attemptStr("[CDATA[")?this._consumeCdata(u):this._attemptStr("--")?this._consumeComment(u):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(u):this._consumeBogusComment(u);else if(this._attemptCharCode(r.$SLASH))this._consumeTagClose(u);else{let o=this._cursor.clone();this._attemptCharCode(r.$QUESTION)?(this._cursor=o,this._consumeBogusComment(u)):this._consumeTagOpen(u)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(o){this.handleError(o)}}return this._beginToken(n.EOF),this._endToken([]),new D(O(this.tokens),this.errors)}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(R(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===r.$RBRACE){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._cursor.clone();this._currentTokenStart=o,this._currentTokenType=u}_endToken(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._cursor.clone();if(this._currentTokenStart===null)throw new p("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(o));if(this._currentTokenType===null)throw new p("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let E=new a(this._currentTokenType,u,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(E),this._currentTokenStart=null,this._currentTokenType=null,E}_createError(u,o){this._isInExpansionForm()&&(u+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let E=new p(u,this._currentTokenType,o);return this._currentTokenStart=null,this._currentTokenType=null,new C(E)}handleError(u){if(u instanceof M&&(u=this._createError(u.msg,this._cursor.getSpan(u.cursor))),u instanceof C)this.errors.push(u.error);else throw u}_attemptCharCode(u){return this._cursor.peek()===u?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(u){return $(this._cursor.peek(),u)?(this._cursor.advance(),!0):!1}_requireCharCode(u){let o=this._cursor.clone();if(!this._attemptCharCode(u))throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(o))}_attemptStr(u){let o=u.length;if(this._cursor.charsLeft()<o)return!1;let E=this._cursor.clone();for(let f=0;f<o;f++)if(!this._attemptCharCode(u.charCodeAt(f)))return this._cursor=E,!1;return!0}_attemptStrCaseInsensitive(u){for(let o=0;o<u.length;o++)if(!this._attemptCharCodeCaseInsensitive(u.charCodeAt(o)))return!1;return!0}_requireStr(u){let o=this._cursor.clone();if(!this._attemptStr(u))throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(o))}_requireStrCaseInsensitive(u){let o=this._cursor.clone();if(!this._attemptStrCaseInsensitive(u))throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(o))}_attemptCharCodeUntilFn(u){for(;!u(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(u,o){let E=this._cursor.clone();if(this._attemptCharCodeUntilFn(u),this._cursor.clone().diff(E)<o)throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(E))}_attemptUntilChar(u){for(;this._cursor.peek()!==u;)this._cursor.advance()}_readChar(u){if(u&&this._cursor.peek()===r.$AMPERSAND)return this._decodeEntity();{let o=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),o}}_decodeEntity(){let u=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(r.$HASH)){let o=this._attemptCharCode(r.$x)||this._attemptCharCode(r.$X),E=this._cursor.clone();if(this._attemptCharCodeUntilFn(A),this._cursor.peek()!=r.$SEMICOLON)throw this._createError(l(this._cursor.peek()),this._cursor.getSpan()
`){let h=this._getParentElement();h!=null&&h.children.length==0&&this.getTagDefinition(h.name).ignoreFirstLf&&(l=l.substring(1))}return l}_consumeText(i){let l=this._getText(i);l.length>0&&this._addToParent(new t.Text(l,i.sourceSpan))}_closeVoidElement(){let i=this._getParentElement();i&&this.getTagDefinition(i.name).isVoid&&this._elementStack.pop()}_consumeStartTag(i){let l=i.parts[0],h=i.parts[1],C=[];for(;this._peek.type===s.TokenType.ATTR_NAME;)C.push(this._consumeAttr(this._advance()));let d=this._getElementFullName(l,h,this._getParentElement()),m=!1;if(this._peek.type===s.TokenType.TAG_OPEN_END_VOID){this._advance(),m=!0;let R=this.getTagDefinition(d);this.canSelfClose||R.canSelfClose||c.getNsPrefix(d)!==null||R.isVoid||this._errors.push(n.create(d,i.sourceSpan,'Only void and foreign elements can be self closed "'.concat(i.parts[1],'"')))}else this._peek.type===s.TokenType.TAG_OPEN_END&&(this._advance(),m=!1);let T=this._peek.sourceSpan.start,B=new r.ParseSourceSpan(i.sourceSpan.start,T),A=new r.ParseSourceSpan(i.sourceSpan.start.moveBy(1),i.sourceSpan.end),N=new t.Element(d,C,[],B,B,void 0,A);this._pushElement(N),m&&(this._popElement(d),N.endSourceSpan=B)}_pushElement(i){let l=this._getParentElement();l&&this.getTagDefinition(l.name).isClosedByChild(i.name)&&this._elementStack.pop(),this._addToParent(i),this._elementStack.push(i)}_consumeEndTag(i){let l=this.allowHtmComponentClosingTags&&i.parts.length===0?null:this._getElementFullName(i.parts[0],i.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=i.sourceSpan),l&&this.getTagDefinition(l).isVoid)this._errors.push(n.create(l,i.sourceSpan,'Void elements do not have end tags "'.concat(i.parts[1],'"')));else if(!this._popElement(l)){let h='Unexpected closing tag "'.concat(l,'". 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(n.create(l,i.sourceSpan,h))}}_popElement(i){for(let l=this._elementStack.length-1;l>=0;l--){let h=this._elementStack[l];if(!i||(c.getNsPrefix(h.name)?h.name==i:h.name.toLowerCase()==i.toLowerCase()))return this._elementStack.splice(l,this._elementStack.length-l),!0;if(!this.getTagDefinition(h.name).closedByParent)return!1}return!1}_consumeAttr(i){let l=c.mergeNsAndName(i.parts[0],i.parts[1]),h=i.sourceSpan.end,C="",d,m;if(this._peek.type===s.TokenType.ATTR_QUOTE&&(m=this._advance().sourceSpan.start),this._peek.type===s.TokenType.ATTR_VALUE){let T=this._advance();C=T.parts[0],h=T.sourceSpan.end,d=T.sourceSpan}return this._peek.type===s.TokenType.ATTR_QUOTE&&(h=this._advance().sourceSpan.end,d=new r.ParseSourceSpan(m,h)),new t.Attribute(l,C,new r.ParseSourceSpan(i.sourceSpan.start,h),d,i.sourceSpan)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_getParentElementSkippingContainers(){let i=null;for(let l=this._elementStack.length-1;l>=0;l--){if(!c.isNgContainer(this._elementStack[l].name))return{parent:this._elementStack[l],container:i};i=this._elementStack[l]}return{parent:null,container:i}}_addToParent(i){let l=this._getParentElement();l!=null?l.children.push(i):this._rootNodes.push(i)}_insertBeforeContainer(i,l,h){if(!l)this._addToParent(h),this._elementStack.push(h);else{if(i){let C=i.children.indexOf(l);i.children[C]=h}else this._rootNodes.push(h);h.children.push(l),this._elementStack.splice(this._elementStack.indexOf(l),0,h)}}_getElementFullName(i,l,h){return i===""&&(i=this.getTagDefinition(l).implicitNamespacePrefix||"",i===""&&h!=null&&(i=c.getNsPrefix(h.name))),c.mergeNsAndName(i,l)}};function g(i,l){return i.length>0&&i[i.length-1]===l}}}),WD=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/html_parser.js"(e){"use strict";q(),Object.defineProperty(e,"__esModule",{value:!0});var r=_s(),t=as(),s=as();e.ParseTreeResult=s.ParseTreeResult,e.TreeError=s.TreeError;var c=class extends t.Parser{constructor(){super(r.getHtmlTagDefinition)}parse(n,a,p){let D=arguments.length>3&&argum