!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?t(exports):"function"==typeofdefine&&define.amd?define(["exports"],t):t(((e=e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.html={}))}(this,(function(e){"use strict";functiont(e){return(t="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe})(e)}functionr(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functionn(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}functioni(e,t,r){returnt&&n(e.prototype,t),r&&n(e,r),e}functiona(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}functiono(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){returne.__proto__||Object.getPrototypeOf(e)})(e)}functions(e,t){return(s=Object.setPrototypeOf||function(e,t){returne.__proto__=t,e})(e,t)}functionl(e,t){return!t||"object"!=typeoft&&"function"!=typeoft?function(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}(e):t}functionc(e,t,r){return(c="undefined"!=typeofReflect&&Reflect.get?Reflect.get:function(e,t,r){varn=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););returne}(e,t);if(n){vari=Object.getOwnPropertyDescriptor(n,t);returni.get?i.get.call(r):i.value}})(e,t,r||e)}functionu(e,t){returnfunction(e){if(Array.isArray(e))returne}(e)||function(e,t){if(!(Symbol.iteratorinObject(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;varr=[],n=!0,i=!1,a=void0;try{for(varo,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throwa}}returnr}(e,t)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance")}()}varp=/[|\\{}()[\]^$+*?.]/g,h=function(e){if("string"!=typeofe)thrownewTypeError("Expected a string");returne.replace(p,"\\$&")},d={"---":"yaml","+++":"toml"};varf=function(e){vart=Object.keys(d).map(h).join("|"),r=e.match(newRegExp("^(".concat(t,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===r)return{frontMatter:null,content:e};varn=r[0].replace(/\n$/,""),i=r[1],a=r[2];return{frontMatter:{type:d[i],value:a,raw:n},content:r[0].replace(/[^\n]/g," ")+e.slice(r[0].length)}},m={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"none",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",video:"inline-block",audio:"inline-block"},g="inline",v={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},y="normal",_=Object.freeze({__proto__:null,default:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound"
Object.defineProperty(t,"__esModule",{value:!0}),t.assertArrayOfStrings=function(e,t){if(null!=t){if(!Array.isArray(t))thrownewError("Expected '".concat(e,"' to be an array of strings."));for(varr=0;r<t.length;r+=1)if("string"!=typeoft[r])thrownewError("Expected '".concat(e,"' to be an array of strings."))}};varr=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];t.assertInterpolationSymbols=function(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))thrownewError("Expected '".concat(e,"' to be an array, [start, end]."));if(null!=t){varn=t[0],i=t[1];r.forEach((function(e){if(e.test(n)||e.test(i))thrownewError("['".concat(n,"', '").concat(i,"'] contains unusable interpolation symbol."))}))}}}));ze(Ot);Ot.assertArrayOfStrings,Ot.assertInterpolationSymbols;varLt=We((function(e,t){
Object.defineProperty(t,"__esModule",{value:!0});varn=function(){functione(t,n,i){r(this,e),this.filePath=t,this.name=n,this.members=i}returni(e,[{key:"assertNoMembers",value:function(){if(this.members.length)thrownewError("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}}]),e}();t.StaticSymbol=n;vara=function(){functione(){r(this,e),this.cache=newMap}returni(e,[{key:"get",value:function(e,t,r){vari=(r=r||[]).length?".".concat(r.join(".")):"",a='"'.concat(e,'".').concat(t).concat(i),o=this.cache.get(a);returno||(o=newn(e,t,r),this.cache.set(a,o)),o}}]),e}();t.StaticSymbolCache=a}));ze(Rt);Rt.StaticSymbol,Rt.StaticSymbolCache;var$t=We((function(e,n){
Object.defineProperty(n,"__esModule",{value:!0});vara=/-+([a-z0-9])/g;functiono(e,t,r){varn=e.indexOf(t);return-1==n?r:[e.slice(0,n).trim(),e.slice(n+1).trim()]}functions(e,r,n){returnArray.isArray(e)?r.visitArray(e,n):"object"===t(i=e)&&null!==i&&Object.getPrototypeOf(i)===p?r.visitStringMap(e,n):null==e||"string"==typeofe||"number"==typeofe||"boolean"==typeofe?r.visitPrimitive(e,n):r.visitOther(e,n);vari}n.dashCaseToCamelCase=function(e){returne.replace(a,(function(){for(vare=arguments.length,t=newArray(e),r=0;r<e;r++)t[r]=arguments[r];returnt[1].toUpperCase()}))},n.splitAtColon=function(e,t){returno(e,":",t)},n.splitAtPeriod=function(e,t){returno(e,".",t)},n.visitValue=s,n.isDefined=function(e){returnnull!=e},n.noUndefined=function(e){returnvoid0===e?null:e};varl=function(){functione(){r(this,e)}returni(e,[{key:"visitArray",value:function(e,t){varr=this;returne.map((function(e){returns(e,r,t)}))}},{key:"visitStringMap",value:function(e,t){varr=this,n={};returnObject.keys(e).forEach((function(i){n[i]=s(e[i],r,t)})),n}},{key:"visitPrimitive",value:function(e,t){returne}},{key:"visitOther",value:function(e,t){returne}}]),e}();n.ValueTransformer=l,n.SyncAsync={assertSync:function(e){if(h(e))thrownewError("Illegal state: value cannot be a promise");returne},then:function(e,t){returnh(e)?e.then(t):t(e)},all:function(e){returne.some(h)?Promise.all(e):e}},n.error=function(e){thrownewError("Internal Error: ".concat(e))},n.syntaxError=function(e,t){varr=Error(e);returnr[c]=!0,t&&(r[u]=t),r};varc="ngSyntaxError",u="ngParseErrors";n.isSyntaxError=function(e){returne[c]},n.getParseErrors=function(e){returne[u]||[]},n.escapeRegExp=function(e){returne.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};varp=Object.getPrototypeOf({});functionh(e){return!!e&&"function"==typeofe.then}n.utf8Encode=function(e){for(vart="",r=0;r<e.length;r++){varn=e.charCodeAt(r);if(n>=55296&&n<=56319&&e.length>r+1){vari=e.charCodeAt(r+1);i>=56320&&i<=57343&&(r++,n=(n-55296<<10)+i-56320+65536)}n<=127?t+=String.fromCharCode(n):n<=2047?t+=String.fromCharCode(n>>6&31|192,63&n|128):n<=65535?t+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):n<=2097151&&(t+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}returnt},n.stringify=functione(t){if("string"==typeoft)returnt;if(tinstanceofArray)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);varr=t.toString();if(null==r)return""+r;varn=r.indexOf("\n");return-1===n?r:r.substring(0,n)},n.resolveForwardRef=function(e){return"function"==typeofe&&e.hasOwnProperty("__forward_ref__")?e():e},n.isPromise=h;n.Version=functione(t){r(this,e),this.full=t;varn=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}));ze($t);$t.dashCaseToCamelCase,$t.splitAtColon,$t.splitAtPeriod,$t.visitValue,$t.isDefined,$t.noUndefined,$t.ValueTransformer,$t.SyncAsync,$t.error,$t.syntaxError,$t.isSyntaxError,$t.getParseErrors,$t.escapeRegExp,$t.utf8Encode,$t.stringify,$t.resolveForwardRef,$t.isPromise,$t.Version;varIt=We((function(e,t){
Object.defineProperty(t,"__esModule",{value:!0});varn=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;functiona(e){returne.replace(/\W/g,"_")}t.sanitizeIdentifier=a;varo,s=0;functionl(e){if(!e||!e.reference)returnnull;vart=e.reference;if(tinstanceofRt.StaticSymbol)returnt.name;if(t.__anonymousType)returnt.__anonymousType;varr=$t.stringify(t);returnr.indexOf("(")>=0?(r="anonymous_".concat(s++),t.__anonymousType=r):r=a(r),r}t.identifierName=l,t.identifierModuleUrl=function(e){vart=e.reference;returntinstanceofRt.StaticSymbol?t.filePath:"./".concat($t.stringify(t))},t.viewClassName=function(e,t){return"View_".concat(l({reference:e}),"_").concat(t)},t.rendererTypeName=function(e){return"RenderType_".concat(l({reference:e}))},t.hostViewClassName=function(e){return"HostView_".concat(l({reference:e}))},t.componentFactoryName=function(e){return"".concat(l({reference:e}),"NgFactory")},function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(o=t.CompileSummaryKind||(t.CompileSummaryKind={})),t.tokenName=function(e){returnnull!=e.value?a(e.value):l(e.identifier)},t.tokenReference=function(e){returnnull!=e.identifier?e.identifier.reference:e.value};t.CompileStylesheetMetadata=functione(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},n=t.moduleUrl,i=t.styles,a=t.styleUrls;r(this,e),this.moduleUrl=n||null,this.styles=f(i),this.styleUrls=f(a)};varc=function(){functione(t){varn=t.encapsulation,i=t.template,a=t.templateUrl,o=t.htmlAst,s=t.styles,l=t.styleUrls,c=t.externalStylesheets,u=t.animations,p=t.ngContentSelectors,h=t.interpolation,d=t.isInline,g=t.preserveWhitespaces;if(r(this,e),this.encapsulation=n,this.template=i,this.templateUrl=a,this.htmlAst=o,this.styles=f(s),this.styleUrls=f(l),this.externalStylesheets=f(c),this.animations=u?m(u):[],this.ngContentSelectors=p||[],h&&2!=h.length)thrownewError("'interpolation' should have a start and an end symbol.");this.interpolation=h,this.isInline=d,this.preserveWhitespaces=g}returni(e,[{key:"toSummary",value:function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}}]),e}();t.CompileTemplateMetadata=c;varu=function(){functione(t){varn=t.isHost,i=t.type,a=t.isComponent,o=t.selector,s=t.exportAs,l=t.changeDetection,c=t.inputs,u=t.outputs,p=t.hostListeners,h=t.hostProperties,d=t.hostAttributes,m=t.providers,g=t.viewProviders,v=t.queries,y=t.guards,_=t.viewQueries,T=t.entryComponents,b=t.template,S=t.componentViewType,C=t.rendererType,E=t.componentFactory;r(this,e),this.isHost=!!n,this.type=i,this.isComponent=a,this.selector=o,this.exportAs=s,this.changeDetection=l,this.inputs=c,this.outputs=u,this.hostListeners=p,this.hostProperties=h,this.hostAttributes=d,this.providers=f(m),this.viewProviders=f(g),this.queries=f(v),this.guards=y,this.viewQueries=f(_),this.entryComponents=f(T),this.template=b,this.componentViewType=S,this.rendererType=C,this.componentFactory=E}returni(e,null,[{key:"create",value:function(t){varr=t.isHost,i=t.type,a=t.isComponent,o=t.selector,s=t.exportAs,l=t.changeDetection,c=t.inputs,u=t.outputs,p=t.host,h=t.providers,d=t.viewProviders,f=t.queries,m=t.guards,g=t.viewQueries,v=t.entryComponents,y=t.template,_=t.componentViewType,T=t.rendererType,b=t.componentFactory,S={},C={},E={};null!=p&&Object.keys(p).forEach((function(e){vart=p[e],r=e.match(n);null===r?E[e]=t:null!=r[1]?C[r[1]]=t:null!=r[2]&&(S[r[2]]=t)}));vark={};null!=c&&c.forEach((function(e){vart=$t.splitAtColon(e,[e,e]);k[t[0]]=t[1]}));varA={};returnnull!=u&&u.forEach((function(e){vart=$t.splitAtColon(e,[e,e]);A[t[0]]=t[1]})),newe({isHost:r,type:i,isComponent:!!a,selector:o,exportAs:s,changeDetection:l,inputs:k,outputs:A,hostListeners:S,hostProperties:C,hostAttributes:E,providers:h,viewProviders:d,queries:f,guards:m,viewQueries:g,entryComponents:v,template:y,componentViewType:_,rendererType:T,componentFactory:b})}}]),i(e,[{key:"toSummary",value:function(){return{summaryKind:o.Directive,type:this.type,isComponen
Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_VALUE=12]="ATTR_VALUE",e[e.DOC_TYPE_START=13]="DOC_TYPE_START",e[e.DOC_TYPE_END=14]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=15]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=16]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=17]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=18]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=19]="EXPANSION_FORM_END",e[e.EOF=20]="EOF"}(n=t.TokenType||(t.TokenType={}));vars=functione(t,n,i){r(this,e),this.type=t,this.parts=n,this.sourceSpan=i};t.Token=s;varc=function(e){functiont(e,n,i){vara;returnr(this,t),(a=l(this,o(t).call(this,i,e))).tokenType=n,a}returna(t,e),t}(Mt.ParseError);t.TokenError=c;varu=functione(t,n){r(this,e),this.tokens=t,this.errors=n};t.TokenizeResult=u,t.tokenize=function(e,t,r){varn=arguments.length>3&&void0!==arguments[3]&&arguments[3],i=arguments.length>4&&void0!==arguments[4]?arguments[4]:Lt.DEFAULT_INTERPOLATION_CONFIG,a=arguments.length>5&&void0!==arguments[5]&&arguments[5],o=arguments.length>6&&void0!==arguments[6]&&arguments[6];returnnewm(newMt.ParseSourceFile(e,t),r,n,i,a,o).tokenize()};varp=/\r\n?/g;functionh(e){vart=e===qt.$EOF?"EOF":String.fromCharCode(e);return'Unexpected character "'.concat(t,'"')}functiond(e){return'Unknown entity "'.concat(e,'" - use the "&#<decimal>;" or "&#x<hex>;" syntax')}varf=functione(t){r(this,e),this.error=t},m=function(){functione(t,n,i){vara=arguments.length>3&&void0!==arguments[3]?arguments[3]:Lt.DEFAULT_INTERPOLATION_CONFIG,o=arguments.length>4&&void0!==arguments[4]&&arguments[4],s=arguments.length>5&&void0!==arguments[5]&&arguments[5];r(this,e),this._file=t,this._getTagDefinition=n,this._tokenizeIcu=i,this._interpolationConfig=a,this.canSelfClose=o,this.allowHtmComponentClosingTags=s,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}returni(e,[{key:"_processCarriageReturns",value:function(e){returne.replace(p,"\n")}},{key:"tokenize",value:function(){for(;this._peek!==qt.$EOF;){vare=this._getLocation();try{if(this._attemptCharCode(qt.$LT))if(this._attemptCharCode(qt.$BANG))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);elseif(this._attemptCharCode(qt.$SLASH))this._consumeTagClose(e);else{vart=this._savePosition();this._attemptCharCode(qt.$QUESTION)?(this._restorePosition(t),this._consumeBogusComment(e)):this._consumeTagOpen(e)}elsethis._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(einstanceoff))throwe;this.errors.push(e.error)}}returnthis._beginToken(n.EOF),this._endToken([]),newu(function(e){for(vart=[],r=void0,i=0;i<e.length;i++){vara=e[i];r&&r.type==n.TEXT&&a.type==n.TEXT?(r.parts[0]+=a.parts[0],r.sourceSpan.end=a.sourceSpan.end):(r=a,t.push(r))}returnt}(this.tokens),this.errors)}},{key:"_tokenizeExpansionForm",value:function(){if(T(this._input,this._index,this._interpolationConfig))returnthis._consumeExpansionFormStart(),!0;if(((e=this._peek)===qt.$EQ||qt.isAsciiLetter(e)||qt.isDigit(e))&&this._isInExpansionForm())returnthis._consumeExpansionCaseStart(),!0;vare;if(this._peek===qt.$RBRACE){if(this._isInExpansionCase())returnthis._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())returnthis._consumeExpansionFormEnd(),!0}return!1}},{key:"_getLocation",value:function(){returnnewMt.ParseLocation(this._file,this._index,this._line,this._co