mirror of
https://github.com/dwolfe884/obsidian-x86-flow-graph.git
synced 2026-07-22 07:30:26 +00:00
36 lines
157 KiB
JavaScript
36 lines
157 KiB
JavaScript
|
|
(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((uc,Hr)=>{var be=function(e){return e&&e.Math==Math&&e};Hr.exports=be(typeof globalThis=="object"&&globalThis)||be(typeof window=="object"&&window)||be(typeof self=="object"&&self)||be(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var se=y((tc,zr)=>{zr.exports=function(e){try{return!!e()}catch{return!0}}});var oe=y((nc,Wr)=>{var As=se();Wr.exports=!As(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var we=y((sc,Yr)=>{var vs=se();Yr.exports=!vs(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var De=y((ic,Qr)=>{var _s=we(),Ne=Function.prototype.call;Qr.exports=_s?Ne.bind(Ne):function(){return Ne.apply(Ne,arguments)}});var eu=y(Zr=>{"use strict";var Kr={}.propertyIsEnumerable,Jr=Object.getOwnPropertyDescriptor,Ss=Jr&&!Kr.call({1:2},1);Zr.f=Ss?function(r){var u=Jr(this,r);return!!u&&u.enumerable}:Kr});var Oe=y((oc,ru)=>{ru.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Q=y((Dc,nu)=>{var uu=we(),tu=Function.prototype,ys=tu.bind,Ze=tu.call,Ts=uu&&ys.bind(Ze,Ze);nu.exports=uu?function(e){return e&&Ts(e)}:function(e){return e&&function(){return Ze.apply(e,arguments)}}});var qe=y((lc,iu)=>{var su=Q(),Bs=su({}.toString),bs=su("".slice);iu.exports=function(e){return bs(Bs(e),8,-1)}});var ou=y((cc,au)=>{var ws=G(),Ns=Q(),Os=se(),qs=qe(),er=ws.Object,Is=Ns("".split);au.exports=Os(function(){return!er("z").propertyIsEnumerable(0)})?function(e){return qs(e)=="String"?Is(e,""):er(e)}:er});var rr=y((hc,Du)=>{var Rs=G(),xs=Rs.TypeError;Du.exports=function(e){if(e==null)throw xs("Can't call method on "+e);return e}});var Ie=y((pc,lu)=>{var Ps=ou(),ks=rr();lu.exports=function(e){return Ps(ks(e))}});var K=y((fc,cu)=>{cu.exports=function(e){return typeof e=="function"}});var le=y((dc,hu)=>{var Ls=K();hu.exports=function(e){return typeof e=="object"?e!==null:Ls(e)}});var me=y((Ec,pu)=>{var ur=G(),$s=K(),Ms=function(e){return $s(e)?e:void 0};pu.exports=function(e,r){return arguments.length<2?Ms(ur[e]):ur[e]&&ur[e][r]}});var tr=y((Cc,fu)=>{var js=Q();fu.exports=js({}.isPrototypeOf)});var Eu=y((mc,du)=>{var Us=me();du.exports=Us("navigator","userAgent")||""});var _u=y((gc,vu)=>{var Au=G(),nr=Eu(),Cu=Au.process,mu=Au.Deno,gu=Cu&&Cu.versions||mu&&mu.version,Fu=gu&&gu.v8,ue,Re;Fu&&(ue=Fu.split("."),Re=ue[0]>0&&ue[0]<4?1:+(ue[0]+ue[1]));!Re&&nr&&(ue=nr.match(/Edge\/(\d+)/),(!ue||ue[1]>=74)&&(ue=nr.match(/Chrome\/(\d+)/),ue&&(Re=+ue[1])));vu.exports=Re});var sr=y((Fc,yu)=>{var Su=_u(),Gs=se();yu.exports=!!Object.getOwnPropertySymbols&&!Gs(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Su&&Su<41})});var ir=y((Ac,Tu)=>{var Vs=sr();Tu.exports=Vs&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ar=y((vc,Bu)=>{var Xs=G(),Hs=me(),zs=K(),Ws=tr(),Ys=ir(),Qs=Xs.Object;Bu.exports=Ys?function(e){return typeof e=="symbol"}:function(e){var r=Hs("Symbol");return zs(r)&&Ws(r.prototype,Qs(e))}});var xe=y((_c,bu)=>{var Ks=G(),Js=Ks.String;bu.exports=function(e){try{return Js(e)}catch{return"Object"}}});var ge=y((Sc,wu)=>{var Zs=G(),ei=K(),ri=xe(),ui=Zs.TypeError;wu.exports=function(e){if(ei(e))return e;throw ui(ri(e)+" is not a function")}});var Pe=y((yc,Nu)=>{var ti=ge();Nu.exports=function(e,r){var u=e[r];return u==null?void 0:ti(u)}});var qu=y((Tc,Ou)=>{var ni=G(),or=De(),Dr=K(),lr=le(),si=ni.TypeError;Ou.exports=function(e,r){var u,s;if(r==="string"&&Dr(u=e.toString)&&!lr(s=or(u,e))||Dr(u=e.valueOf)&&!lr(s=or(u,e))||r!=="string"&&Dr(u=e.toString)&&!lr(s=or(u,e)))return s;throw si("Can't convert object to primitive value")}});var Ru=y((Bc,Iu)=
|
||
|
|
`);return f===-1?E:E.substring(0,f)}e.stringify=R;function j(o){return typeof o=="function"&&o.hasOwnProperty("__forward_ref__")?o():o}e.resolveForwardRef=j;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,$=typeof globalThis<"u"&&globalThis,t=$||x||k;e.global=t}}),JD=I({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){"use strict";q(),Object.defineProperty(e,"__esModule",{value:!0});var r=QD(),u=KD(),s=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function D(f){return f.replace(/\W/g,"_")}e.sanitizeIdentifier=D;var n=0;function i(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=u.stringify(F);return P.indexOf("(")>=0?(P=`anonymous_${n++}`,F.__anonymousType=P):P=D(P),P}e.identifierName=i;function p(f){let F=f.reference;return F instanceof r.StaticSymbol?F.filePath:`./${u.stringify(F)}`}e.identifierModuleUrl=p;function l(f,F){return`View_${i({reference:f})}_${F}`}e.viewClassName=l;function g(f){return`RenderType_${i({reference:f})}`}e.rendererTypeName=g;function a(f){return`HostView_${i({reference:f})}`}e.hostViewClassName=a;function c(f){return`${i({reference:f})}NgFactory`}e.componentFactoryName=c;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?D(f.value):i(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:M,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=M,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:M,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:te}=f,Te={},Be={},Gr={};Z!=null&&Object.keys(Z).forEach(re=>{let ne=Z[re],Ce=re.match(s);Ce===null?Gr[re]=ne:Ce[1]!=null?Be[Ce[1]]=ne:Ce[2]!=null&&(Te[Ce[2]]=ne)});let Vr={};z!=null&&z.forEach(re=>{let ne=u.splitAtColon(re,[re,re]);Vr[ne[0]]=ne[1]});let Xr={};return J!=null&&J.forEach(re=>{let ne=u.splitAtColon(re,[re,re]);Xr[ne[0]]=ne[1]}),new B({isHost:F,type:P,isComponent:!!M,selector:W,exportAs:X,changeDetection:H,inputs:Vr,outputs:Xr,hostListeners:Te,hostProperties:Be,hostAttributes:Gr,providers:ee,viewProviders:v,queries:S,guards:b,viewQueries:w,entryComponents:L,template:U,componentViewType:V,rendererType:Y,componentFactory:te})}constructor(f){let{isHost:F,type:P,isComponent:M,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:te,rendererType:Te,componentFactory:Be}=f;this.isHost=!!F,this.type=P,this.isComponent=M,this.
|
||
|
|
`&&++T==c)););for(m=0,T=0;m<a&&d<h.length-1&&(d++,m++,!(h[d]==`
|
||
|
|
`&&++T==c)););return{before:h.substring(C,this.offset),after:h.substring(this.offset,d+1)}}return null}};e.ParseLocation=s;var D=class{constructor(a,c){this.content=a,this.url=c}};e.ParseSourceFile=D;var n=class{constructor(a,c){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.start=a,this.end=c,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 D("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new n(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION);var i;(function(a){a[a.WARNING=0]="WARNING",a[a.ERROR=1]="ERROR"})(i=e.ParseErrorLevel||(e.ParseErrorLevel={}));var p=class{constructor(a,c){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:i.ERROR;this.span=a,this.msg=c,this.level=h}contextualMessage(){let a=this.span.start.getContext(100,3);return a?`${this.msg} ("${a.before}[${i[this.level]} ->]${a.after}")`:this.msg}toString(){let a=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${a}`}};e.ParseError=p;function l(a,c){let h=u.identifierModuleUrl(c),C=h!=null?`in ${a} ${u.identifierName(c)} in ${h}`:`in ${a} ${u.identifierName(c)}`,d=new D("",C);return new n(new s(d,-1,-1,-1),new s(d,-1,-1,-1))}e.typeSourceSpan=l;function g(a,c,h){let C=`in ${a} ${c} in ${h}`,d=new D("",C);return new n(new s(d,-1,-1,-1),new s(d,-1,-1,-1))}e.r3JitTypeSourceSpan=g}}),ZD=I({"src/utils/front-matter/parse.js"(e,r){"use strict";q();var u=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function s(D){let n=D.match(u);if(!n)return{content:D};let{startDelimiter:i,language:p,value:l="",endDelimiter:g}=n.groups,a=p.trim()||"yaml";if(i==="+++"&&(a="toml"),a!=="yaml"&&i!==g)return{content:D};let[c]=n;return{frontMatter:{type:"front-matter",lang:a,value:l,startDelimiter:i,endDelimiter:g,raw:c.replace(/\n$/,"")},content:c.replace(/[^\n]/g," ")+D.slice(c.length)}}r.exports=s}}),is=I({"src/utils/get-last.js"(e,r){"use strict";q();var u=s=>s[s.length-1];r.exports=u}}),el=I({"src/common/parser-create-error.js"(e,r){"use strict";q();function u(s,D){let n=new SyntaxError(s+" ("+D.start.line+":"+D.start.column+")");return n.loc=D,n}r.exports=u}}),as={};us(as,{default:()=>rl});function rl(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ul=Ee({"node_modules/escape-string-regexp/index.js"(){q()}}),os=I({"node_modules/semver/internal/debug.js"(e,r){q();var u=typeof Se=="object"&&Se.env&&Se.env.NODE_DEBUG&&/\bsemver\b/i.test(Se.env.NODE_DEBUG)?function(){for(var s=arguments.length,D=new Array(s),n=0;n<s;n++)D[n]=arguments[n];return console.error("SEMVER",...D)}:()=>{};r.exports=u}}),Ds=I({"node_modules/semver/internal/constants.js"(e,r){q();var u="2.0.0",s=256,D=Number.MAX_SAFE_INTEGER||9007199254740991,n=16;r.exports={SEMVER_SPEC_VERSION:u,MAX_LENGTH:s,MAX_SAFE_INTEGER:D,MAX_SAFE_COMPONENT_LENGTH:n}}}),tl=I({"node_modules/semver/internal/re.js"(e,r){q();var{MAX_SAFE_COMPONENT_LENGTH:u}=Ds(),s=os();e=r.exports={};var D=e.re=[],n=e.src=[],i=e.t={},p=0,l=(g,a,c)=>{let h=p++;s(g,h,a),i[g]=h,n[h]=a,D[h]=new RegExp(a,c?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${n[i.NUMERICIDENTIFIER]}|${n[i.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${n[i.NUMERICIDENTIFIERLOOSE]}|${n[i.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${n[i.PRERELEASEIDENTIFIER]}(?:\\.${n[i.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${n[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[i.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUIL
|
||
|
|
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:D},endOfLine:{since:"1.15.0",category:l,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:u`
|
||
|
|
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:i,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:i},parser:{since:"0.0.10",category:l,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:c=>typeof c=="string"||typeof c=="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:l,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:c=>typeof c=="string"||typeof c=="object",cliName:"plugin",cliCategory:s},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:l,description:u`
|
||
|
|
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:c=>typeof c=="string"||typeof c=="object",cliName:"plugin-search-dir",cliCategory:s},printWidth:{since:"0.0.0",category:l,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:u`
|
||
|
|
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:D},rangeStart:{since:"1.4.0",category:g,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:u`
|
||
|
|
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:D},requirePragma:{since:"1.7.0",category:g,type:"boolean",default:!1,description:u`
|
||
|
|
Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
||
|
|
in order for it to be formatted.
|
||
|
|
`,cliCategory:i},tabWidth:{type:"int",category:l,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:l,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:l,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:D,CATEGORY_FORMAT:n,CATEGORY_OTHER:i,CATEGORY_OUTPUT:p,CATEGORY_GLOBAL:l,CATEGORY_SPECIAL:g,options:a}}}),pl=I({"src/main/support.js"(e,r){"use strict";q();var u={compare:jr(),lt:al(),gte:ol()},s=Dl(),D=ll().version,n=hl().options;function i(){let{plugins:l=[],showUnreleased:g=!1,showDeprecated:a=!1,showInternal:c=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=D.split("-",1)[0],C=l.flatMap(A=>A.languages||[]).filter(m),d=s(Object.assign({},...l.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,j)=>u.compare(j.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,l));let N=Object.fromEntries(l.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&&u.gte(h,A.since)}function T(A){return a||!("deprecated"in A)||A.deprecated&&u.lt(h,A.deprecated)}function B(A){if(c)return A;let{cliName:N,cliCategory:R,cliDescription:j}=A;return GD(A,UD)}}function p(l,g,a){let c=new Set(l.choices.map(h=>h.value));for(let h of g)if(h.parsers){for(let C of h.parsers)if(!c.has(C)){c.add(C);let d=a.find(T=>T.parsers&&T.parsers[C]),m=h.name;d&&d.name&&(m+=` (plugin: ${d.name})`),l.choices.push({value:C,description:m})}}}r.exports={getSupportInfo:i}}}),fl=I({"src/utils/is-non-empty-array.js"(e,r){"use strict";q();function u(s){return Array.isArray(s)&&s.length>0}r.exports=u}});function dl(){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 El=Ee({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){q()}});function Cl(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(dl(),"")}var ml=Ee({"node_modules/strip-ansi/index.js"(){q(),El()}});function gl(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 Fl=Ee({"node_modules/is-fullwidth-code-point/index.js"(){q()}}),Al=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[\uDFFB-\uDFFD\uDFF
|
||
|
|
`)return D-2;if(p===`
|
||
|
|
`||p==="\r"||p==="\u2028"||p==="\u2029")return D-1}else{if(p==="\r"&&s.charAt(D+1)===`
|
||
|
|
`)return D+2;if(p===`
|
||
|
|
`||p==="\r"||p==="\u2028"||p==="\u2029")return D+1}return D}r.exports=u}}),yl=I({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,r){"use strict";q();var u=hs(),s=fs(),D=ps(),{skipSpaces:n}=Ur();function i(p,l){let g=null,a=l;for(;a!==g;)g=a,a=n(p,a),a=u(p,a),a=D(p,a),a=s(p,a);return a}r.exports=i}}),Tl=I({"src/common/util.js"(e,r){"use strict";q();var{default:u}=(ul(),ns(as)),s=is(),{getSupportInfo:D}=pl(),n=fl(),i=Sl(),{skipWhitespace:p,skipSpaces:l,skipToLineEnd:g,skipEverythingButNewLine:a}=Ur(),c=hs(),h=ps(),C=fs(),d=yl(),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=l(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=l(v,w,{backwards:!0}),w=C(v,w,{backwards:!0}),w=l(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=c(v,w),w=l(v,w);return w=h(v,w),w=C(v,w),w!==!1&&B(v,w)}function j(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 l(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 $(v,S){let b=v.lastIndexOf(`
|
||
|
|
`);return b===-1?0:k(v.slice(b+1).match(/^[\t ]*/)[0],S)}function t(v,S){let b={quote:'"',regex:/"/g,escaped:"""},w={quote:"'",regex:/'/g,escaped:"'"},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,te=(v.match(U.regex)||[]).length;V=Y>te?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?"'":t(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,te)=>Y===w?Y:te===S?"\\"+te:te||(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(`(${u(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(`(${u(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 M(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,M(v,S)}function X(v,S,b){S.leading=!1,S.trailing=!1,b&&(S.marker=b),M(v,S)}function H(v,S){S.leading=!1,S.trailing=!0,M(v,S)}function z(v,S){let{languages:b}=D({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(`.${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:i,getMaxContinuousCount:F,getMinNotPresentContinuousCount:P,getPenultimate:m,getLast:s,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:d,getNextNonSpaceNonCommentCharacterIndex:_,getNextNonSpaceNonCommentCharacter:O,skip:T,skipWhitespace:p,skipSpaces:l,skipToLineEnd:g,skipEverythingButNewLine:a,skipInlineComment:c,skipTrailingComment:h,skipNewline:C,isNextLineEmptyAfterIndex:R,isNextLineEmpty:j,isPreviousLineEmpty:N,hasNewline:B,hasNewlineInRange:A,hasSpaces:x,getAlignmentSize:k,getIndentSize:$,getPreferredQuote:t,printString:o,printNumber:f,makeString:E,addLeadingComment:W,addDanglingComment:X,addTrailingComment:H,isFrontMatterNode:J,isNonEmptyArray:n,createGroupIdMapper:Z}}}),Bl=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","spacer","span","strike",
|
||
|
|
|
||
|
|
`+D.replace(/^\s*\n/,"")}r.exports={hasPragma:u,insertPragma:s}}}),Rl=I({"src/language-html/ast.js"(e,r){"use strict";q();var u={attrs:!0,children:!0},s=new Set(["parent"]),D=class{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(let p of new Set([...s,...Object.keys(i)]))this.setProperty(p,i[p])}setProperty(i,p){if(this[i]!==p){if(i in u&&(p=p.map(l=>this.createChild(l))),!s.has(i)){this[i]=p;return}Object.defineProperty(this,i,{value:p,enumerable:!1,configurable:!0})}}map(i){let p;for(let l in u){let g=this[l];if(g){let a=n(g,c=>c.map(i));p!==g&&(p||(p=new D({parent:this.parent})),p.setProperty(l,a))}}if(p)for(let l in this)l in u||(p[l]=this[l]);return i(p||this)}walk(i){for(let p in u){let l=this[p];if(l)for(let g=0;g<l.length;g++)l[g].walk(i)}i(this)}createChild(i){let p=i instanceof D?i.clone():new D(i);return p.setProperty("parent",this),p}insertChildBefore(i,p){this.children.splice(this.children.indexOf(i),0,this.createChild(p))}removeChild(i){this.children.splice(this.children.indexOf(i),1)}replaceChild(i,p){this.children[this.children.indexOf(i)]=this.createChild(p)}clone(){return new D(this)}get firstChild(){var i;return(i=this.children)===null||i===void 0?void 0:i[0]}get lastChild(){var i;return(i=this.children)===null||i===void 0?void 0:i[this.children.length-1]}get prev(){var i;return(i=this.parent)===null||i===void 0?void 0:i.children[this.parent.children.indexOf(this)-1]}get next(){var i;return(i=this.parent)===null||i===void 0?void 0:i.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(i=>[i.fullName,i.value]))}};function n(i,p){let l=i.map(p);return l.some((g,a)=>g!==i[a])?l:i}r.exports={Node:D}}}),xl=I({"src/language-html/conditional-comment.js"(e,r){"use strict";q();var{ParseSourceSpan:u}=ye(),s=[{regex:/^(\[if([^\]]*)]>)(.*?)<!\s*\[endif]$/s,parse:n},{regex:/^\[if([^\]]*)]><!$/,parse:i},{regex:/^<!\s*\[endif]$/,parse:p}];function D(l,g){if(l.value)for(let{regex:a,parse:c}of s){let h=l.value.match(a);if(h)return c(l,g,h)}return null}function n(l,g,a){let[,c,h,C]=a,d=4+c.length,m=l.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 u(m,T)};return[!1,[N]]}})();return{type:"ieConditionalComment",complete:B,children:A,condition:h.trim().replace(/\s+/g," "),sourceSpan:l.sourceSpan,startSourceSpan:new u(l.sourceSpan.start,m),endSourceSpan:new u(T,l.sourceSpan.end)}}function i(l,g,a){let[,c]=a;return{type:"ieConditionalStartComment",condition:c.trim().replace(/\s+/g," "),sourceSpan:l.sourceSpan}}function p(l){return{type:"ieConditionalEndComment",sourceSpan:l.sourceSpan}}r.exports={parseIeConditionalComment:D}}}),Pl=I({"src/language-html/loc.js"(e,r){"use strict";q();function u(D){return D.sourceSpan.start.offset}function s(D){return D.sourceSpan.end.offset}r.exports={locStart:u,locEnd:s}}}),Je=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(l){l[l.RAW_TEXT=0]="RAW_TEXT",l[l.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",l[l.PARSABLE_DATA=2]="PARSABLE_DATA"})(r=e.TagContentType||(e.TagContentType={}));function u(l){if(l[0]!=":")return[null,l];let g=l.indexOf(":",1);if(g==-1)throw new Error(`Unsupported format "${l}" expecting ":namespace:name"`);return[l.slice(1,g),l.slice(g+1)]}e.splitNsName=u;function s(l){return u(l)[1]==="ng-container"}e.isNgContainer=s;function D(l){return u(l)[1]==="ng-content"}e.isNgContent=D;function n(l){return u(l)[1]==="ng-template"}e.isNgTemplate=n;function i(l){return l===null?null:u(l)[0]}e.getNsPrefix=i;function p(l,g){return l?`:${l}:${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:"\u0430",AElig:"\xC6",a
|
||
|
|
`,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 t=this._cursor.clone();try{if(this._attemptCharCode(r.$LT))if(this._attemptCharCode(r.$BANG))this._attemptStr("[CDATA[")?this._consumeCdata(t):this._attemptStr("--")?this._consumeComment(t):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(t):this._consumeBogusComment(t);else if(this._attemptCharCode(r.$SLASH))this._consumeTagClose(t);else{let o=this._cursor.clone();this._attemptCharCode(r.$QUESTION)?(this._cursor=o,this._consumeBogusComment(t)):this._consumeTagOpen(t)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(o){this.handleError(o)}}return this._beginToken(n.EOF),this._endToken([]),new l(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(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._cursor.clone();this._currentTokenStart=o,this._currentTokenType=t}_endToken(t){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 i(this._currentTokenType,t,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(E),this._currentTokenStart=null,this._currentTokenType=null,E}_createError(t,o){this._isInExpansionForm()&&(t+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let E=new p(t,this._currentTokenType,o);return this._currentTokenStart=null,this._currentTokenType=null,new C(E)}handleError(t){if(t instanceof $&&(t=this._createError(t.msg,this._cursor.getSpan(t.cursor))),t instanceof C)this.errors.push(t.error);else throw t}_attemptCharCode(t){return this._cursor.peek()===t?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(t){return j(this._cursor.peek(),t)?(this._cursor.advance(),!0):!1}_requireCharCode(t){let o=this._cursor.clone();if(!this._attemptCharCode(t))throw this._createError(c(this._cursor.peek()),this._cursor.getSpan(o))}_attemptStr(t){let o=t.length;if(this._cursor.charsLeft()<o)return!1;let E=this._cursor.clone();for(let f=0;f<o;f++)if(!this._attemptCharCode(t.charCodeAt(f)))return this._cursor=E,!1;return!0}_attemptStrCaseInsensitive(t){for(let o=0;o<t.length;o++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(o)))return!1;return!0}_requireStr(t){let o=this._cursor.clone();if(!this._attemptStr(t))throw this._createError(c(this._cursor.peek()),this._cursor.getSpan(o))}_requireStrCaseInsensitive(t){let o=this._cursor.clone();if(!this._attemptStrCaseInsensitive(t))throw this._createError(c(this._cursor.peek()),this._cursor.getSpan(o))}_attemptCharCodeUntilFn(t){for(;!t(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(t,o){let E=this._cursor.clone();if(this._attemptCharCodeUntilFn(t),this._cursor.clone().diff(E)<o)throw this._createError(c(this._cursor.peek()),this._cursor.getSpan(E))}_attemptUntilChar(t){for(;this._cursor.peek()!==t;)this._cursor.advance()}_readChar(t){if(t&&this._cursor.peek()===r.$AMPERSAND)return this._decodeEntity();{let o=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),o}}_decodeEntity(){let t=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(c(this._cursor.peek()),this._cursor.getSpan()
|
||
|
|
`){let h=this._getParentElement();h!=null&&h.children.length==0&&this.getTagDefinition(h.name).ignoreFirstLf&&(c=c.substring(1))}return c}_consumeText(a){let c=this._getText(a);c.length>0&&this._addToParent(new u.Text(c,a.sourceSpan))}_closeVoidElement(){let a=this._getParentElement();a&&this.getTagDefinition(a.name).isVoid&&this._elementStack.pop()}_consumeStartTag(a){let c=a.parts[0],h=a.parts[1],C=[];for(;this._peek.type===s.TokenType.ATTR_NAME;)C.push(this._consumeAttr(this._advance()));let d=this._getElementFullName(c,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||D.getNsPrefix(d)!==null||R.isVoid||this._errors.push(n.create(d,a.sourceSpan,`Only void and foreign elements can be self closed "${a.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(a.sourceSpan.start,T),A=new r.ParseSourceSpan(a.sourceSpan.start.moveBy(1),a.sourceSpan.end),N=new u.Element(d,C,[],B,B,void 0,A);this._pushElement(N),m&&(this._popElement(d),N.endSourceSpan=B)}_pushElement(a){let c=this._getParentElement();c&&this.getTagDefinition(c.name).isClosedByChild(a.name)&&this._elementStack.pop(),this._addToParent(a),this._elementStack.push(a)}_consumeEndTag(a){let c=this.allowHtmComponentClosingTags&&a.parts.length===0?null:this._getElementFullName(a.parts[0],a.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=a.sourceSpan),c&&this.getTagDefinition(c).isVoid)this._errors.push(n.create(c,a.sourceSpan,`Void elements do not have end tags "${a.parts[1]}"`));else if(!this._popElement(c)){let h=`Unexpected closing tag "${c}". 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(c,a.sourceSpan,h))}}_popElement(a){for(let c=this._elementStack.length-1;c>=0;c--){let h=this._elementStack[c];if(!a||(D.getNsPrefix(h.name)?h.name==a:h.name.toLowerCase()==a.toLowerCase()))return this._elementStack.splice(c,this._elementStack.length-c),!0;if(!this.getTagDefinition(h.name).closedByParent)return!1}return!1}_consumeAttr(a){let c=D.mergeNsAndName(a.parts[0],a.parts[1]),h=a.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 u.Attribute(c,C,new r.ParseSourceSpan(a.sourceSpan.start,h),d,a.sourceSpan)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_getParentElementSkippingContainers(){let a=null;for(let c=this._elementStack.length-1;c>=0;c--){if(!D.isNgContainer(this._elementStack[c].name))return{parent:this._elementStack[c],container:a};a=this._elementStack[c]}return{parent:null,container:a}}_addToParent(a){let c=this._getParentElement();c!=null?c.children.push(a):this._rootNodes.push(a)}_insertBeforeContainer(a,c,h){if(!c)this._addToParent(h),this._elementStack.push(h);else{if(a){let C=a.children.indexOf(c);a.children[C]=h}else this._rootNodes.push(h);h.children.push(c),this._elementStack.splice(this._elementStack.indexOf(c),0,h)}}_getElementFullName(a,c,h){return a===""&&(a=this.getTagDefinition(c).implicitNamespacePrefix||"",a===""&&h!=null&&(a=D.getNsPrefix(h.name))),D.mergeNsAndName(a,c)}};function g(a,c){return a.length>0&&a[a.length-1]===c}}}),jl=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=Es(),u=Zn(),s=Zn();e.ParseTreeResult=s.ParseTreeResult,e.TreeError=s.TreeError;var D=class extends u.Parser{constructor(){super(r.getHtmlTagDefinition)}parse(n,i,p){let l=arguments.length>3&&arguments[3]!==void 0?arguments[
|