mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-23 23:15:46 -06:00
116 lines
436 KiB
JavaScript
116 lines
436 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 f=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};f.prettier=e()}})(function(){"use strict";var xe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var pt=xe((t0,pu)=>{var ir=function(e){return e&&e.Math==Math&&e};pu.exports=ir(typeof globalThis=="object"&&globalThis)||ir(typeof window=="object"&&window)||ir(typeof self=="object"&&self)||ir(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var Dt=xe((r0,fu)=>{fu.exports=function(e){try{return!!e()}catch{return!0}}});var yt=xe((n0,Du)=>{var Mo=Dt();Du.exports=!Mo(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var ar=xe((u0,mu)=>{var Ro=Dt();mu.exports=!Ro(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var At=xe((s0,du)=>{var $o=ar(),or=Function.prototype.call;du.exports=$o?or.bind(or):function(){return or.apply(or,arguments)}});var vu=xe(hu=>{"use strict";var gu={}.propertyIsEnumerable,yu=Object.getOwnPropertyDescriptor,Vo=yu&&!gu.call({1:2},1);hu.f=Vo?function(r){var t=yu(this,r);return!!t&&t.enumerable}:gu});var lr=xe((a0,Cu)=>{Cu.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var mt=xe((o0,Au)=>{var Eu=ar(),Fu=Function.prototype,Wr=Fu.call,Wo=Eu&&Fu.bind.bind(Wr,Wr);Au.exports=Eu?Wo:function(e){return function(){return Wr.apply(e,arguments)}}});var Vt=xe((l0,xu)=>{var Su=mt(),Ho=Su({}.toString),Go=Su("".slice);xu.exports=function(e){return Go(Ho(e),8,-1)}});var Tu=xe((c0,bu)=>{var Uo=mt(),Jo=Dt(),zo=Vt(),Hr=Object,Xo=Uo("".split);bu.exports=Jo(function(){return!Hr("z").propertyIsEnumerable(0)})?function(e){return zo(e)=="String"?Xo(e,""):Hr(e)}:Hr});var cr=xe((p0,Bu)=>{Bu.exports=function(e){return e==null}});var Gr=xe((f0,Nu)=>{var Ko=cr(),Yo=TypeError;Nu.exports=function(e){if(Ko(e))throw Yo("Can't call method on "+e);return e}});var pr=xe((D0,wu)=>{var Qo=Tu(),Zo=Gr();wu.exports=function(e){return Qo(Zo(e))}});var Jr=xe((m0,_u)=>{var Ur=typeof document=="object"&&document.all,el=typeof Ur>"u"&&Ur!==void 0;_u.exports={all:Ur,IS_HTMLDDA:el}});var ot=xe((d0,Iu)=>{var Pu=Jr(),tl=Pu.all;Iu.exports=Pu.IS_HTMLDDA?function(e){return typeof e=="function"||e===tl}:function(e){return typeof e=="function"}});var St=xe((g0,Ou)=>{var ku=ot(),Lu=Jr(),rl=Lu.all;Ou.exports=Lu.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:ku(e)||e===rl}:function(e){return typeof e=="object"?e!==null:ku(e)}});var Wt=xe((y0,ju)=>{var zr=pt(),nl=ot(),ul=function(e){return nl(e)?e:void 0};ju.exports=function(e,r){return arguments.length<2?ul(zr[e]):zr[e]&&zr[e][r]}});var Xr=xe((h0,qu)=>{var sl=mt();qu.exports=sl({}.isPrototypeOf)});var Ru=xe((v0,Mu)=>{var il=Wt();Mu.exports=il("navigator","userAgent")||""});var Ju=xe((C0,Uu)=>{var Gu=pt(),Kr=Ru(),$u=Gu.process,Vu=Gu.Deno,Wu=$u&&$u.versions||Vu&&Vu.version,Hu=Wu&&Wu.v8,dt,fr;Hu&&(dt=Hu.split("."),fr=dt[0]>0&&dt[0]<4?1:+(dt[0]+dt[1]));!fr&&Kr&&(dt=Kr.match(/Edge\/(\d+)/),(!dt||dt[1]>=74)&&(dt=Kr.match(/Chrome\/(\d+)/),dt&&(fr=+dt[1])));Uu.exports=fr});var Yr=xe((E0,Xu)=>{var zu=Ju(),al=Dt();Xu.exports=!!Object.getOwnPropertySymbols&&!al(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zu&&zu<41})});var Qr=xe((F0,Ku)=>{var ol=Yr();Ku.exports=ol&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Zr=xe((A0,Yu)=>{var ll=Wt(),cl=ot(),pl=Xr(),fl=Qr(),Dl=Object;Yu.exports=fl?function(e){return typeof e=="symbol"}:function(e){var r=ll("Symbol");return cl(r)&&pl(r.prototype,Dl(e))}});var Dr=xe((S0,Qu)=>{var ml=String;Qu.exports=function(e){try{return ml(e)}catch{return"Object"}}});var Ht=xe((x0,Zu)=>{var dl=ot(),gl=Dr(),yl=TypeError;Zu.exports=function(e){if(dl(e))return e;throw yl(gl(e)+" is not a function")}});var mr=xe((b0,es)=>{var hl=Ht(),vl=cr();es.exports=function(e,r){var t=e[r];return vl(t)?void 0:hl(t)}});var rs=xe((T0,ts)=>{var en=At
|
||
|
`?"crlf":"cr":"lf"}function s(u){switch(u){case"cr":return"\r";case"crlf":return`\r
|
||
|
`;default:return`
|
||
|
`}}function a(u,i){let l;switch(i){case`
|
||
|
`:l=/\n/g;break;case"\r":l=/\r/g;break;case`\r
|
||
|
`:l=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(i)}.`)}let p=u.match(l);return p?p.length:0}function n(u){return u.replace(/\r\n?/g,`
|
||
|
`)}r.exports={guessEndOfLine:t,convertEndOfLineToChars:s,countEndOfLineChars:a,normalizeEndOfLine:n}}}),lt=te({"src/utils/get-last.js"(e,r){"use strict";ne();var t=s=>s[s.length-1];r.exports=t}});function ND(){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 wD=ht({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){ne()}});function _D(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(ND(),"")}var PD=ht({"node_modules/strip-ansi/index.js"(){ne(),wD()}});function ID(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 kD=ht({"node_modules/is-fullwidth-code-point/index.js"(){ne()}}),LD=te({"node_modules/emoji-regex/index.js"(e,r){"use strict";ne(),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\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\u
|
||
|
`)?T(h):h)}function T(o){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s;return a(h,o.split(`
|
||
|
`)).parts}function m(o){if(o.type==="line")return!0}function v(o){return d(o,m,!1)}r.exports={isConcat:n,getDocParts:u,willBreak:g,traverseDoc:l,findInDoc:d,mapDoc:p,propagateBreaks:D,removeLines:_,stripTrailingHardline:S,normalizeParts:P,normalizeDoc:$,cleanDoc:I,replaceTextEndOfLine:T,replaceEndOfLine:f,canBreak:v}}}),qD=te({"src/document/doc-printer.js"(e,r){"use strict";ne();var{convertEndOfLineToChars:t}=Jn(),s=lt(),a=Oa(),{fill:n,cursor:u,indent:i}=Un(),{isConcat:l,getDocParts:p}=Yt(),d,y=1,g=2;function c(){return{value:"",length:0,queue:[]}}function D(N,I){return _(N,{type:"indent"},I)}function E(N,I,P){return I===Number.NEGATIVE_INFINITY?N.root||c():I<0?_(N,{type:"dedent"},P):I?I.type==="root"?Object.assign(Object.assign({},N),{},{root:N}):_(N,{type:typeof I=="string"?"stringAlign":"numberAlign",n:I},P):N}function _(N,I,P){let $=I.type==="dedent"?N.queue.slice(0,-1):[...N.queue,I],f="",T=0,m=0,v=0;for(let k of $)switch(k.type){case"indent":C(),P.useTabs?o(1):h(P.tabWidth);break;case"stringAlign":C(),f+=k.n,T+=k.n.length;break;case"numberAlign":m+=1,v+=k.n;break;default:throw new Error(`Unexpected type '${k.type}'`)}return b(),Object.assign(Object.assign({},N),{},{value:f,length:T,queue:$});function o(k){f+=" ".repeat(k),T+=P.tabWidth*k}function h(k){f+=" ".repeat(k),T+=k}function C(){P.useTabs?x():b()}function x(){m>0&&o(m),B()}function b(){v>0&&h(v),B()}function B(){m=0,v=0}}function w(N){if(N.length===0)return 0;let I=0;for(;N.length>0&&typeof s(N)=="string"&&/^[\t ]*$/.test(s(N));)I+=N.pop().length;if(N.length>0&&typeof s(N)=="string"){let P=s(N).replace(/[\t ]*$/,"");I+=s(N).length-P.length,N[N.length-1]=P}return I}function F(N,I,P,$,f){let T=I.length,m=[N],v=[];for(;P>=0;){if(m.length===0){if(T===0)return!0;m.push(I[--T]);continue}let{mode:o,doc:h}=m.pop();if(typeof h=="string")v.push(h),P-=a(h);else if(l(h)||h.type==="fill"){let C=p(h);for(let x=C.length-1;x>=0;x--)m.push({mode:o,doc:C[x]})}else switch(h.type){case"indent":case"align":case"indent-if-break":case"label":m.push({mode:o,doc:h.contents});break;case"trim":P+=w(v);break;case"group":{if(f&&h.break)return!1;let C=h.break?y:o,x=h.expandedStates&&C===y?s(h.expandedStates):h.contents;m.push({mode:C,doc:x});break}case"if-break":{let x=(h.groupId?d[h.groupId]||g:o)===y?h.breakContents:h.flatContents;x&&m.push({mode:o,doc:x});break}case"line":if(o===y||h.hard)return!0;h.soft||(v.push(" "),P--);break;case"line-suffix":$=!0;break;case"line-suffix-boundary":if($)return!1;break}}return!1}function S(N,I){d={};let P=I.printWidth,$=t(I.endOfLine),f=0,T=[{ind:c(),mode:y,doc:N}],m=[],v=!1,o=[];for(;T.length>0;){let{ind:C,mode:x,doc:b}=T.pop();if(typeof b=="string"){let B=$!==`
|
||
|
`?b.replace(/\n/g,$):b;m.push(B),f+=a(B)}else if(l(b)){let B=p(b);for(let k=B.length-1;k>=0;k--)T.push({ind:C,mode:x,doc:B[k]})}else switch(b.type){case"cursor":m.push(u.placeholder);break;case"indent":T.push({ind:D(C,I),mode:x,doc:b.contents});break;case"align":T.push({ind:E(C,b.n,I),mode:x,doc:b.contents});break;case"trim":f-=w(m);break;case"group":switch(x){case g:if(!v){T.push({ind:C,mode:b.break?y:g,doc:b.contents});break}case y:{v=!1;let B={ind:C,mode:g,doc:b.contents},k=P-f,M=o.length>0;if(!b.break&&F(B,T,k,M))T.push(B);else if(b.expandedStates){let R=s(b.expandedStates);if(b.break){T.push({ind:C,mode:y,doc:R});break}else for(let q=1;q<b.expandedStates.length+1;q++)if(q>=b.expandedStates.length){T.push({ind:C,mode:y,doc:R});break}else{let J=b.expandedStates[q],L={ind:C,mode:g,doc:J};if(F(L,T,k,M)){T.push(L);break}}}else T.push({ind:C,mode:y,doc:b.contents});break}}b.id&&(d[b.id]=s(T).mode);break;case"fill":{let B=P-f,{parts:k}=b;if(k.length===0)break;let[M,R]=k,q={ind:C,mode:g,doc:M},J={ind:C,mode:y,doc:M},L=F(q,[],B,o.length>0,!0);if(k.length===1){L?T.push(q):T.push(J);break}let Q={ind:C,mode:g,doc:R},V={ind:C,mode:y,doc:R};if(k.length===2){L?T.push(Q,q):T.push(V,J);break}k.splice(0,2);let j={ind:C,mode:x,doc:n(k)},Y=k[0];F({ind:C,mode:g,doc:[M,R,Y]},[],B,o.length>0,!0)?T.push(j,Q,q):L?T.push(j,V,q):T.push(j,V,J);break}case"if-break":case"indent-if-break":{let B=b.groupId?d[b.groupId]:x;if(B===y){let k=b.type==="if-break"?b.breakContents:b.negate?b.contents:i(b.contents);k&&T.push({ind:C,mode:x,doc:k})}if(B===g){let k=b.type==="if-break"?b.flatContents:b.negate?i(b.contents):b.contents;k&&T.push({ind:C,mode:x,doc:k})}break}case"line-suffix":o.push({ind:C,mode:x,doc:b.contents});break;case"line-suffix-boundary":o.length>0&&T.push({ind:C,mode:x,doc:{type:"line",hard:!0}});break;case"line":switch(x){case g:if(b.hard)v=!0;else{b.soft||(m.push(" "),f+=1);break}case y:if(o.length>0){T.push({ind:C,mode:x,doc:b},...o.reverse()),o.length=0;break}b.literal?C.root?(m.push($,C.root.value),f=C.root.length):(m.push($),f=0):(f-=w(m),m.push($+C.value),f=C.length);break}break;case"label":T.push({ind:C,mode:x,doc:b.contents});break;default:}T.length===0&&o.length>0&&(T.push(...o.reverse()),o.length=0)}let h=m.indexOf(u.placeholder);if(h!==-1){let C=m.indexOf(u.placeholder,h+1),x=m.slice(0,h).join(""),b=m.slice(h+1,C).join(""),B=m.slice(C+1).join("");return{formatted:x+b+B,cursorNodeStart:x.length,cursorNodeText:b}}return{formatted:m.join("")}}r.exports={printDocToString:S}}}),MD=te({"src/document/doc-debug.js"(e,r){"use strict";ne();var{isConcat:t,getDocParts:s}=Yt();function a(u){if(!u)return"";if(t(u)){let i=[];for(let l of s(u))if(t(l))i.push(...a(l).parts);else{let p=a(l);p!==""&&i.push(p)}return{type:"concat",parts:i}}return u.type==="if-break"?Object.assign(Object.assign({},u),{},{breakContents:a(u.breakContents),flatContents:a(u.flatContents)}):u.type==="group"?Object.assign(Object.assign({},u),{},{contents:a(u.contents),expandedStates:u.expandedStates&&u.expandedStates.map(a)}):u.type==="fill"?{type:"fill",parts:u.parts.map(a)}:u.contents?Object.assign(Object.assign({},u),{},{contents:a(u.contents)}):u}function n(u){let i=Object.create(null),l=new Set;return p(a(u));function p(y,g,c){if(typeof y=="string")return JSON.stringify(y);if(t(y)){let D=s(y).map(p).filter(Boolean);return D.length===1?D[0]:`[${D.join(", ")}]`}if(y.type==="line"){let D=Array.isArray(c)&&c[g+1]&&c[g+1].type==="break-parent";return y.literal?D?"literalline":"literallineWithoutBreakParent":y.hard?D?"hardline":"hardlineWithoutBreakParent":y.soft?"softline":"line"}if(y.type==="break-parent")return Array.isArray(c)&&c[g-1]&&c[g-1].type==="line"&&c[g-1].hard?void 0:"breakParent";if(y.type==="trim")return"trim";if(y.type==="indent")return"indent("+p(y.contents)+")";if(y.type==="align")return y.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+p(y.contents)+")":y.n<0?"dedent("+p(y.contents)+")":y.n.type==="root"?"markAsRoot("+p(y.contents)+")":"align("+JSON.stringify(y.n)+", "+p(y.contents)+")";if(y.type==="if-break")return"ifBreak("+p(y.breakContents)+(y.flatCon
|
||
|
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:a},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:t`
|
||
|
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:p,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:u,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:p,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:u},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:y=>typeof y=="string"||typeof y=="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:y=>typeof y=="string"||typeof y=="object",cliName:"plugin",cliCategory:s},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:l,description:t`
|
||
|
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:y=>typeof y=="string"||typeof y=="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:p,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:t`
|
||
|
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:a},rangeStart:{since:"1.4.0",category:p,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:t`
|
||
|
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:a},requirePragma:{since:"1.7.0",category:p,type:"boolean",default:!1,description:t`
|
||
|
Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
||
|
in order for it to be formatted.
|
||
|
`,cliCategory:u},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:a,CATEGORY_FORMAT:n,CATEGORY_OTHER:u,CATEGORY_OUTPUT:i,CATEGORY_GLOBAL:l,CATEGORY_SPECIAL:p,options:d}}}),Xn=te({"src/main/support.js"(e,r){"use strict";ne();var t={compare:zn(),lt:UD(),gte:JD()},s=zD(),a=Ia().version,n=KD().options;function u(){let{plugins:l=[],showUnreleased:p=!1,showDeprecated:d=!1,showInternal:y=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=a.split("-",1)[0],c=l.flatMap(F=>F.languages||[]).filter(E),D=s(Object.assign({},...l.map(F=>{let{options:S}=F;return S}),n),"name").filter(F=>E(F)&&_(F)).sort((F,S)=>F.name===S.name?0:F.name<S.name?-1:1).map(w).map(F=>{F=Object.assign({},F),Array.isArray(F.default)&&(F.default=F.default.length===1?F.default[0].value:F.default.filter(E).sort((N,I)=>t.compare(I.since,N.since))[0].value),Array.isArray(F.choices)&&(F.choices=F.choices.filter(N=>E(N)&&_(N)),F.name==="parser"&&i(F,c,l));let S=Object.fromEntries(l.filter(N=>N.defaultOptions&&N.defaultOptions[F.name]!==void 0).map(N=>[N.name,N.defaultOptions[F.name]]));return Object.assign(Object.assign({},F),{},{pluginDefaults:S})});return{languages:c,options:D};function E(F){return p||!("since"in F)||F.since&&t.gte(g,F.since)}function _(F){return d||!("deprecated"in F)||F.deprecated&&t.lt(g,F.deprecated)}function w(F){if(y)return F;let{cliName:S,cliCategory:N,cliDescription:I}=F;return Hn(F,hD)}}function i(l,p,d){let y=new Set(l.choices.map(g=>g.value));for(let g of p)if(g.parsers){for(let c of g.parsers)if(!y.has(c)){y.add(c);let D=d.find(_=>_.parsers&&_.parsers[c]),E=g.name;D&&D.name&&(E+=` (plugin: ${D.name})`),l.choices.push({value:c,description:E})}}}r.exports={getSupportInfo:u}}}),Kn=te({"src/utils/is-non-empty-array.js"(e,r){"use strict";ne();function t(s){return Array.isArray(s)&&s.length>0}r.exports=t}}),Pr=te({"src/utils/text/skip.js"(e,r){"use strict";ne();function t(i){return(l,p,d)=>{let y=d&&d.backwards;if(p===!1)return!1;let{length:g}=l,c=p;for(;c>=0&&c<g;){let D=l.charAt(c);if(i instanceof RegExp){if(!i.test(D))return c}else if(!i.includes(D))return c;y?c--:c++}return c===-1||c===g?c:!1}}var s=t(/\s/),a=t(" "),n=t(",; "),u=t(/[^\n\r]/);r.exports={skipWhitespace:s,skipSpaces:a,skipToLineEnd:n,skipEverythingButNewLine:u}}}),Ra=te({"src/utils/text/skip-inline-comment.js"(e,r){"use strict";ne();function t(s,a){if(a===!1)return!1;if(s.charAt(a)==="/"&&s.charAt(a+1)==="*"){for(let n=a+2;n<s.length;++n)if(s.charAt(n)==="*"&&s.charAt(n+1)==="/")return n+2}return a}r.exports=t}}),$a=te({"src/utils/text/skip-trailing-comment.js"(e,r){"use strict";ne();var{skipEverythingButNewLine:t}=Pr();function s(a,n){return n===!1?!1:a.charAt(n)==="/"&&a.charAt(n+1)==="/"?t(a,n):n}r.exports=s}}),Va=te({"src/utils/text/skip-newline.js"(e,r){"use strict";ne();function t(s,a,n){let u=n&&n.backwards;if(a===!1)return!1;let i=s.charAt(a);if(u){if(s.charAt(a-1)==="\r"&&i===`
|
||
|
`)return a-2;if(i===`
|
||
|
`||i==="\r"||i==="\u2028"||i==="\u2029")return a-1}else{if(i==="\r"&&s.charAt(a+1)===`
|
||
|
`)return a+2;if(i===`
|
||
|
`||i==="\r"||i==="\u2028"||i==="\u2029")return a+1}return a}r.exports=t}}),YD=te({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,r){"use strict";ne();var t=Ra(),s=Va(),a=$a(),{skipSpaces:n}=Pr();function u(i,l){let p=null,d=l;for(;d!==p;)p=d,d=n(i,d),d=t(i,d),d=a(i,d),d=s(i,d);return d}r.exports=u}}),Ue=te({"src/common/util.js"(e,r){"use strict";ne();var{default:t}=($D(),ft(ja)),s=lt(),{getSupportInfo:a}=Xn(),n=Kn(),u=Oa(),{skipWhitespace:i,skipSpaces:l,skipToLineEnd:p,skipEverythingButNewLine:d}=Pr(),y=Ra(),g=$a(),c=Va(),D=YD(),E=V=>V[V.length-2];function _(V){return(j,Y,ie)=>{let ee=ie&&ie.backwards;if(Y===!1)return!1;let{length:le}=j,W=Y;for(;W>=0&&W<le;){let K=j.charAt(W);if(V instanceof RegExp){if(!V.test(K))return W}else if(!V.includes(K))return W;ee?W--:W++}return W===-1||W===le?W:!1}}function w(V,j){let Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ie=l(V,Y.backwards?j-1:j,Y),ee=c(V,ie,Y);return ie!==ee}function F(V,j,Y){for(let ie=j;ie<Y;++ie)if(V.charAt(ie)===`
|
||
|
`)return!0;return!1}function S(V,j,Y){let ie=Y(j)-1;ie=l(V,ie,{backwards:!0}),ie=c(V,ie,{backwards:!0}),ie=l(V,ie,{backwards:!0});let ee=c(V,ie,{backwards:!0});return ie!==ee}function N(V,j){let Y=null,ie=j;for(;ie!==Y;)Y=ie,ie=p(V,ie),ie=y(V,ie),ie=l(V,ie);return ie=g(V,ie),ie=c(V,ie),ie!==!1&&w(V,ie)}function I(V,j,Y){return N(V,Y(j))}function P(V,j,Y){return D(V,Y(j))}function $(V,j,Y){return V.charAt(P(V,j,Y))}function f(V,j){let Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return l(V,Y.backwards?j-1:j,Y)!==j}function T(V,j){let Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,ie=0;for(let ee=Y;ee<V.length;++ee)V[ee]===" "?ie=ie+j-ie%j:ie++;return ie}function m(V,j){let Y=V.lastIndexOf(`
|
||
|
`);return Y===-1?0:T(V.slice(Y+1).match(/^[\t ]*/)[0],j)}function v(V,j){let Y={quote:'"',regex:/"/g,escaped:"""},ie={quote:"'",regex:/'/g,escaped:"'"},ee=j==="'"?ie:Y,le=ee===ie?Y:ie,W=ee;if(V.includes(ee.quote)||V.includes(le.quote)){let K=(V.match(ee.regex)||[]).length,de=(V.match(le.regex)||[]).length;W=K>de?le:ee}return W}function o(V,j){let Y=V.slice(1,-1),ie=j.parser==="json"||j.parser==="json5"&&j.quoteProps==="preserve"&&!j.singleQuote?'"':j.__isInHtmlAttribute?"'":v(Y,j.singleQuote?"'":'"').quote;return h(Y,ie,!(j.parser==="css"||j.parser==="less"||j.parser==="scss"||j.__embeddedInHtml))}function h(V,j,Y){let ie=j==='"'?"'":'"',ee=/\\(.)|(["'])/gs,le=V.replace(ee,(W,K,de)=>K===ie?K:de===j?"\\"+de:de||(Y&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(K)?K:"\\"+K));return j+le+j}function C(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 x(V,j){let Y=V.match(new RegExp(`(${t(j)})+`,"g"));return Y===null?0:Y.reduce((ie,ee)=>Math.max(ie,ee.length/j.length),0)}function b(V,j){let Y=V.match(new RegExp(`(${t(j)})+`,"g"));if(Y===null)return 0;let ie=new Map,ee=0;for(let le of Y){let W=le.length/j.length;ie.set(W,!0),W>ee&&(ee=W)}for(let le=1;le<ee;le++)if(!ie.get(le))return le;return ee+1}function B(V,j){(V.comments||(V.comments=[])).push(j),j.printed=!1,j.nodeDescription=Q(V)}function k(V,j){j.leading=!0,j.trailing=!1,B(V,j)}function M(V,j,Y){j.leading=!1,j.trailing=!1,Y&&(j.marker=Y),B(V,j)}function R(V,j){j.leading=!1,j.trailing=!0,B(V,j)}function q(V,j){let{languages:Y}=a({plugins:j.plugins}),ie=Y.find(ee=>{let{name:le}=ee;return le.toLowerCase()===V})||Y.find(ee=>{let{aliases:le}=ee;return Array.isArray(le)&&le.includes(V)})||Y.find(ee=>{let{extensions:le}=ee;return Array.isArray(le)&&le.includes(`.${V}`)});return ie&&ie.parsers[0]}function J(V){return V&&V.type==="front-matter"}function L(V){let j=new WeakMap;return function(Y){return j.has(Y)||j.set(Y,Symbol(V)),j.get(Y)}}function Q(V){let j=V.type||V.kind||"(unknown type)",Y=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 Y.length>20&&(Y=Y.slice(0,19)+"\u2026"),j+(Y?" "+Y:"")}r.exports={inferParserByLanguage:q,getStringWidth:u,getMaxContinuousCount:x,getMinNotPresentContinuousCount:b,getPenultimate:E,getLast:s,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:D,getNextNonSpaceNonCommentCharacterIndex:P,getNextNonSpaceNonCommentCharacter:$,skip:_,skipWhitespace:i,skipSpaces:l,skipToLineEnd:p,skipEverythingButNewLine:d,skipInlineComment:y,skipTrailingComment:g,skipNewline:c,isNextLineEmptyAfterIndex:N,isNextLineEmpty:I,isPreviousLineEmpty:S,hasNewline:w,hasNewlineInRange:F,hasSpaces:f,getAlignmentSize:T,getIndentSize:m,getPreferredQuote:v,printString:o,printNumber:C,makeString:h,addLeadingComment:k,addDanglingComment:M,addTrailingComment:R,isFrontMatterNode:J,isNonEmptyArray:n,createGroupIdMapper:L}}}),Wa={};Kt(Wa,{basename:()=>za,default:()=>Ka,delimiter:()=>Mn,dirname:()=>Ja,extname:()=>Xa,isAbsolute:()=>Qn,join:()=>Ga,normalize:()=>Yn,relative:()=>Ua,resolve:()=>wr,sep:()=>qn});function Ha(e,r){for(var t=0,s=e.length-1;s>=0;s--){var a=e[s];a==="."?e.splice(s,1):a===".."?(e.splice(s,1),t++):t&&(e.splice(s,1),t--)}if(r)for(;t--;t)e.unshift("..");return e}function wr(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var s=t>=0?arguments[t]:"/";if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!s)continue;e=s+"/"+e,r=s.charAt(0)==="/"}return e=Ha(Zn(e.split("/"),function(a){return!!a}),!r).join("/"),(r?"/":"")+e||"."}function Yn(e){var r=Qn(e),t=Ya(e,-1)==="/";return e=Ha(Zn(e.split("/"),function(s){return!!s}),!r).join("/"),!e&&!r&&(e="."),e&&t&&(e+="/"),(r?"/":"")+e}function Qn(e){return e.charAt(0)==="/"}function Ga(){var e=Array.prototype.slice.call(arguments,0);return Yn(Zn(e,function(r,t){if(typeof
|
||
|
`,D(c.gutter,v.replace(/\d/g," "))," ",x,D(c.marker,"^").repeat(b)].join(""),h&&d.message&&(C+=" "+D(c.message,d.message))}return[D(c.marker,">"),D(c.gutter,v),$.length>0?` ${$}`:"",C].join("")}else return` ${D(c.gutter,v)}${$.length>0?` ${$}`:""}`}).join(`
|
||
|
`);return d.message&&!S&&(P=`${" ".repeat(N+1)}${d.message}
|
||
|
${P}`),y?g.reset(P):P}function i(l,p,d){let y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(!t){t=!0;let c="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(wt.emitWarning)wt.emitWarning(c,"DeprecationWarning");else{let D=new Error(c);D.name="DeprecationWarning",console.warn(new Error(c))}}return d=Math.max(d,0),u(l,{start:{column:d,line:p}},y)}}}),tu=te({"src/main/parser.js"(e,r){"use strict";ne();var{ConfigError:t}=Qt(),s=ut(),a=jm(),{locStart:n,locEnd:u}=s,i=Object.getOwnPropertyNames,l=Object.getOwnPropertyDescriptor;function p(g){let c={};for(let D of g.plugins)if(D.parsers)for(let E of i(D.parsers))Object.defineProperty(c,E,l(D.parsers,E));return c}function d(g){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p(g);if(typeof g.parser=="function")return{parse:g.parser,astFormat:"estree",locStart:n,locEnd:u};if(typeof g.parser=="string"){if(Object.prototype.hasOwnProperty.call(c,g.parser))return c[g.parser];throw new t(`Couldn't resolve parser "${g.parser}". Parsers must be explicitly added to the standalone bundle.`)}}function y(g,c){let D=p(c),E=Object.defineProperties({},Object.fromEntries(Object.keys(D).map(w=>[w,{enumerable:!0,get(){return D[w].parse}}]))),_=d(c,D);try{return _.preprocess&&(g=_.preprocess(g,c)),{text:g,ast:_.parse(g,E,c)}}catch(w){let{loc:F}=w;if(F){let{codeFrameColumns:S}=Mm();throw w.codeFrame=S(g,F,{highlightCode:!0}),w.message+=`
|
||
|
`+w.codeFrame,w}throw w}}r.exports={parse:y,resolveParser:d}}}),uo=te({"src/main/options.js"(e,r){"use strict";ne();var t=ZD(),{UndefinedParserError:s}=Qt(),{getSupportInfo:a}=Xn(),n=Om(),{resolveParser:u}=tu(),i={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function l(y){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=Object.assign({},y),D=a({plugins:y.plugins,showUnreleased:!0,showDeprecated:!0}).options,E=Object.assign(Object.assign({},i),Object.fromEntries(D.filter(N=>N.default!==void 0).map(N=>[N.name,N.default])));if(!c.parser){if(!c.filepath)(g.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),c.parser="babel";else if(c.parser=d(c.filepath,c.plugins),!c.parser)throw new s(`No parser could be inferred for file: ${c.filepath}`)}let _=u(n.normalizeApiOptions(c,[D.find(N=>N.name==="parser")],{passThrough:!0,logger:!1}));c.astFormat=_.astFormat,c.locEnd=_.locEnd,c.locStart=_.locStart;let w=p(c);c.printer=w.printers[c.astFormat];let F=Object.fromEntries(D.filter(N=>N.pluginDefaults&&N.pluginDefaults[w.name]!==void 0).map(N=>[N.name,N.pluginDefaults[w.name]])),S=Object.assign(Object.assign({},E),F);for(let[N,I]of Object.entries(S))(c[N]===null||c[N]===void 0)&&(c[N]=I);return c.parser==="json"&&(c.trailingComma="none"),n.normalizeApiOptions(c,D,Object.assign({passThrough:Object.keys(i)},g))}function p(y){let{astFormat:g}=y;if(!g)throw new Error("getPlugin() requires astFormat to be set");let c=y.plugins.find(D=>D.printers&&D.printers[g]);if(!c)throw new Error(`Couldn't find plugin for AST format "${g}"`);return c}function d(y,g){let c=t.basename(y).toLowerCase(),E=a({plugins:g}).languages.filter(_=>_.since!==null).find(_=>_.extensions&&_.extensions.some(w=>c.endsWith(w))||_.filenames&&_.filenames.some(w=>w.toLowerCase()===c));return E&&E.parsers[0]}r.exports={normalize:l,hiddenDefaults:i,inferParser:d}}}),Rm=te({"src/main/massage-ast.js"(e,r){"use strict";ne();function t(s,a,n){if(Array.isArray(s))return s.map(p=>t(p,a,n)).filter(Boolean);if(!s||typeof s!="object")return s;let u=a.printer.massageAstNode,i;u&&u.ignoredProperties?i=u.ignoredProperties:i=new Set;let l={};for(let[p,d]of Object.entries(s))!i.has(p)&&typeof d!="function"&&(l[p]=t(d,a,s));if(u){let p=u(s,l,n);if(p===null)return;if(p)return p}return l}r.exports=t}}),Zt=te({"scripts/build/shims/assert.cjs"(e,r){"use strict";ne();var t=()=>{};t.ok=t,t.strictEqual=t,r.exports=t}}),et=te({"src/main/comments.js"(e,r){"use strict";ne();var t=Zt(),{builders:{line:s,hardline:a,breakParent:n,indent:u,lineSuffix:i,join:l,cursor:p}}=qe(),{hasNewline:d,skipNewline:y,skipSpaces:g,isPreviousLineEmpty:c,addLeadingComment:D,addDanglingComment:E,addTrailingComment:_}=Ue(),w=new WeakMap;function F(k,M,R){if(!k)return;let{printer:q,locStart:J,locEnd:L}=M;if(R){if(q.canAttachComment&&q.canAttachComment(k)){let V;for(V=R.length-1;V>=0&&!(J(R[V])<=J(k)&&L(R[V])<=L(k));--V);R.splice(V+1,0,k);return}}else if(w.has(k))return w.get(k);let Q=q.getCommentChildNodes&&q.getCommentChildNodes(k,M)||typeof k=="object"&&Object.entries(k).filter(V=>{let[j]=V;return j!=="enclosingNode"&&j!=="precedingNode"&&j!=="followingNode"&&j!=="tokens"&&j!=="comments"&&j!=="parent"}).map(V=>{let[,j]=V;return j});if(Q){R||(R=[],w.set(k,R));for(let V of Q)F(V,M,R);return R}}function S(k,M,R,q){let{locStart:J,locEnd:L}=R,Q=J(M),V=L(M),j=F(k,R),Y,ie,ee=0,le=j.length;for(;ee<le;){let W=ee+le>>1,K=j[W],de=J(K),ue=L(K);if(de<=Q&&V<=ue)return S(K,M,R,K);if(ue<=Q){Y=K,ee=W+1;continue}if(V<=de){ie=K,le=W;continue}throw new Error("Comment location overlaps with node location")}if(q&&q.type==="TemplateLiteral"){let{quasis:W}=q,K=v(W,M,R);Y&&v(W,Y,R)!==K&&(Y=null),ie&&v(W,ie,R)!==K&&(ie=null)}return{enclosingNode:q,precedingNode:Y,followingNode:ie}}var N=()=>!1;function I(k,M,R,q){if(!Array.isArray(k))return;let J=[],{locStart:L,locEnd:Q,printer:{handleComments:V={}}}=q,{avoidAstMutation:j,ownLine:Y=N,endOfLine:ie=N,remaining:ee=N}
|
||
|
`,C)+1),k=h.slice(B,C).match(/^\s*/)[0],M=n(k,v.tabWidth),R=S(b,Object.assign(Object.assign({},v),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:v.cursorOffset>C&&v.cursorOffset<=x?v.cursorOffset-C:-1,endOfLine:"lf"}),M),q=R.formatted.trimEnd(),{cursorOffset:J}=v;J>x?J+=q.length-b.length:R.cursorOffset>=0&&(J=R.cursorOffset+C);let L=h.slice(0,C)+q+h.slice(x);if(v.endOfLine!=="lf"){let Q=i(v.endOfLine);J>=0&&Q===`\r
|
||
|
`&&(J+=l(L.slice(0,J),`
|
||
|
`)),L=L.replace(/\n/g,Q)}return{formatted:L,cursorOffset:J,comments:R.comments}}function I(m,v,o){return typeof v!="number"||Number.isNaN(v)||v<0||v>m.length?o:v}function P(m,v){let{cursorOffset:o,rangeStart:h,rangeEnd:C}=v;return o=I(m,o,-1),h=I(m,h,0),C=I(m,C,m.length),Object.assign(Object.assign({},v),{},{cursorOffset:o,rangeStart:h,rangeEnd:C})}function $(m,v){let{cursorOffset:o,rangeStart:h,rangeEnd:C,endOfLine:x}=P(m,v),b=m.charAt(0)===_;if(b&&(m=m.slice(1),o--,h--,C--),x==="auto"&&(x=u(m)),m.includes("\r")){let B=k=>l(m.slice(0,Math.max(k,0)),`\r
|
||
|
`);o-=B(o),h-=B(h),C-=B(C),m=p(m)}return{hasBOM:b,text:m,options:P(m,Object.assign(Object.assign({},v),{},{cursorOffset:o,rangeStart:h,rangeEnd:C,endOfLine:x}))}}function f(m,v){let o=c.resolveParser(v);return!o.hasPragma||o.hasPragma(m)}function T(m,v){let{hasBOM:o,text:h,options:C}=$(m,d(v));if(C.rangeStart>=C.rangeEnd&&h!==""||C.requirePragma&&!f(h,C))return{formatted:m,cursorOffset:v.cursorOffset,comments:[]};let x;return C.rangeStart>0||C.rangeEnd<h.length?x=N(h,C):(!C.requirePragma&&C.insertPragma&&C.printer.insertPragma&&!f(h,C)&&(h=C.printer.insertPragma(h)),x=S(h,C)),o&&(x.formatted=_+x.formatted,x.cursorOffset>=0&&x.cursorOffset++),x}r.exports={formatWithCursor:T,parse(m,v,o){let{text:h,options:C}=$(m,d(v)),x=c.parse(h,C);return o&&(x.ast=y(x.ast,C)),x},formatAST(m,v){v=d(v);let o=D(m,v);return s(o,v)},formatDoc(m,v){return T(a(m),Object.assign(Object.assign({},v),{},{parser:"__js_expression"})).formatted},printToDoc(m,v){v=d(v);let{ast:o,text:h}=c.parse(m,v);return F(h,o,v),D(o,v)},printDocToString(m,v){return s(m,d(v))}}}}),Um=te({"src/common/util-shared.js"(e,r){"use strict";ne();var{getMaxContinuousCount:t,getStringWidth:s,getAlignmentSize:a,getIndentSize:n,skip:u,skipWhitespace:i,skipSpaces:l,skipNewline:p,skipToLineEnd:d,skipEverythingButNewLine:y,skipInlineComment:g,skipTrailingComment:c,hasNewline:D,hasNewlineInRange:E,hasSpaces:_,isNextLineEmpty:w,isNextLineEmptyAfterIndex:F,isPreviousLineEmpty:S,getNextNonSpaceNonCommentCharacterIndex:N,makeString:I,addLeadingComment:P,addDanglingComment:$,addTrailingComment:f}=Ue();r.exports={getMaxContinuousCount:t,getStringWidth:s,getAlignmentSize:a,getIndentSize:n,skip:u,skipWhitespace:i,skipSpaces:l,skipNewline:p,skipToLineEnd:d,skipEverythingButNewLine:y,skipInlineComment:g,skipTrailingComment:c,hasNewline:D,hasNewlineInRange:E,hasSpaces:_,isNextLineEmpty:w,isNextLineEmptyAfterIndex:F,isPreviousLineEmpty:S,getNextNonSpaceNonCommentCharacterIndex:N,makeString:I,addLeadingComment:P,addDanglingComment:$,addTrailingComment:f}}}),_t=te({"src/utils/create-language.js"(e,r){"use strict";ne(),r.exports=function(t,s){let{languageId:a}=t,n=Hn(t,CD);return Object.assign(Object.assign({linguistLanguageId:a},n),s(t))}}}),Jm=te({"node_modules/esutils/lib/ast.js"(e,r){ne(),function(){"use strict";function t(l){if(l==null)return!1;switch(l.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function s(l){if(l==null)return!1;switch(l.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function a(l){if(l==null)return!1;switch(l.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(l){return a(l)||l!=null&&l.type==="FunctionDeclaration"}function u(l){switch(l.type){case"IfStatement":return l.alternate!=null?l.alternate:l.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return l.body}return null}function i(l){var p;if(l.type!=="IfStatement"||l.alternate==null)return!1;p=l.consequent;do{if(p.type==="IfStatement"&&p.alternate==null)return!0;p=u(p)}while(p);return!1}r.exports={isExpression:t,isStatement:a,isIterationStatement:s,isSourceElement:n,isProblematicIfStatement:i,trailingStatement:u}}()}}),so=te({"node_modules/esutils/lib/code.js"(e,r){ne(),function(){"use strict";var t,s,a,n,u,i;s={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02
|
||
|
`))}function we(O,me){return(O.type==="TemplateLiteral"&&he(O)||O.type==="TaggedTemplateExpression"&&he(O.quasi))&&!a(me,p(O),{backwards:!0})}function ke(O){if(!Me(O))return!1;let me=s(ae(O,Te.Dangling));return me&&!g(me)}function Re(O){if(O.length<=1)return!1;let me=0;for(let _e of O)if(b(_e)){if(me+=1,me>1)return!0}else if(de(_e)){for(let He of _e.arguments)if(b(He))return!0}return!1}function Ne(O){let me=O.getValue(),_e=O.getParentNode();return de(me)&&de(_e)&&_e.callee===me&&me.arguments.length>_e.arguments.length&&_e.arguments.length>0}function Pe(O,me){if(me>=2)return!1;let _e=Qe=>Pe(Qe,me+1),He=O.type==="Literal"&&"regex"in O&&O.regex.pattern||O.type==="RegExpLiteral"&&O.pattern;if(He&&l(He)>5)return!1;if(O.type==="Literal"||O.type==="BigIntLiteral"||O.type==="DecimalLiteral"||O.type==="BooleanLiteral"||O.type==="NullLiteral"||O.type==="NumericLiteral"||O.type==="RegExpLiteral"||O.type==="StringLiteral"||O.type==="Identifier"||O.type==="ThisExpression"||O.type==="Super"||O.type==="PrivateName"||O.type==="PrivateIdentifier"||O.type==="ArgumentPlaceholder"||O.type==="Import")return!0;if(O.type==="TemplateLiteral")return O.quasis.every(Qe=>!Qe.value.raw.includes(`
|
||
|
`))&&O.expressions.every(_e);if(O.type==="ObjectExpression")return O.properties.every(Qe=>!Qe.computed&&(Qe.shorthand||Qe.value&&_e(Qe.value)));if(O.type==="ArrayExpression")return O.elements.every(Qe=>Qe===null||_e(Qe));if(tt(O))return(O.type==="ImportExpression"||Pe(O.callee,me))&&Ye(O).every(_e);if(ue(O))return Pe(O.object,me)&&Pe(O.property,me);let Ge={"!":!0,"-":!0,"+":!0,"~":!0};if(O.type==="UnaryExpression"&&Ge[O.operator])return Pe(O.argument,me);let it={"++":!0,"--":!0};return O.type==="UpdateExpression"&&it[O.operator]?Pe(O.argument,me):O.type==="TSNonNullExpression"?Pe(O.expression,me):!1}function oe(O){var me,_e;return(me=(_e=O.extra)===null||_e===void 0?void 0:_e.raw)!==null&&me!==void 0?me:O.raw}function H(O){return O}function ce(O){return O.filepath&&/\.tsx$/i.test(O.filepath)}function X(O){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"es5";return O.trailingComma==="es5"&&me==="es5"||O.trailingComma==="all"&&(me==="all"||me==="es5")}function pe(O,me){switch(O.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return pe(O.left,me);case"MemberExpression":case"OptionalMemberExpression":return pe(O.object,me);case"TaggedTemplateExpression":return O.tag.type==="FunctionExpression"?!1:pe(O.tag,me);case"CallExpression":case"OptionalCallExpression":return O.callee.type==="FunctionExpression"?!1:pe(O.callee,me);case"ConditionalExpression":return pe(O.test,me);case"UpdateExpression":return!O.prefix&&pe(O.argument,me);case"BindExpression":return O.object&&pe(O.object,me);case"SequenceExpression":return pe(O.expressions[0],me);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return pe(O.expression,me);default:return me(O)}}var Ae={"==":!0,"!=":!0,"===":!0,"!==":!0},Ce={"*":!0,"/":!0,"%":!0},fe={">>":!0,">>>":!0,"<<":!0};function A(O,me){return!(re(me)!==re(O)||O==="**"||Ae[O]&&Ae[me]||me==="%"&&Ce[O]||O==="%"&&Ce[me]||me!==O&&Ce[me]&&Ce[O]||fe[O]&&fe[me])}var G=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((O,me)=>O.map(_e=>[_e,me])));function re(O){return G.get(O)}function ye(O){return Boolean(fe[O])||O==="|"||O==="^"||O==="&"}function Ee(O){var me;if(O.rest)return!0;let _e=ve(O);return((me=s(_e))===null||me===void 0?void 0:me.type)==="RestElement"}var Be=new WeakMap;function ve(O){if(Be.has(O))return Be.get(O);let me=[];return O.this&&me.push(O.this),Array.isArray(O.parameters)?me.push(...O.parameters):Array.isArray(O.params)&&me.push(...O.params),O.rest&&me.push(O.rest),Be.set(O,me),me}function ze(O,me){let _e=O.getValue(),He=0,Ge=it=>me(it,He++);_e.this&&O.call(Ge,"this"),Array.isArray(_e.parameters)?O.each(Ge,"parameters"):Array.isArray(_e.params)&&O.each(Ge,"params"),_e.rest&&O.call(Ge,"rest")}var be=new WeakMap;function Ye(O){if(be.has(O))return be.get(O);let me=O.arguments;return O.type==="ImportExpression"&&(me=[O.source],O.attributes&&me.push(O.attributes)),be.set(O,me),me}function Se(O,me){let _e=O.getValue();_e.type==="ImportExpression"?(O.call(He=>me(He,0),"source"),_e.attributes&&O.call(He=>me(He,1),"attributes")):O.each(me,"arguments")}function Ie(O){return O.value.trim()==="prettier-ignore"&&!O.unignore}function Oe(O){return O&&(O.prettierIgnore||Me(O,Te.PrettierIgnore))}function Je(O){let me=O.getValue();return Oe(me)}var Te={Leading:1<<1,Trailing:1<<2,Dangling:1<<3,Block:1<<4,Line:1<<5,PrettierIgnore:1<<6,First:1<<7,Last:1<<8},je=(O,me)=>{if(typeof O=="function"&&(me=O,O=0),O||me)return(_e,He,Ge)=>!(O&Te.Leading&&!_e.leading||O&Te.Trailing&&!_e.trailing||O&Te.Dangling&&(_e.leading||_e.trailing)||O&Te.Block&&!g(_e)||O&Te.Line&&!f(_e)||O&Te.First&&He!==0||O&Te.Last&&He!==Ge.length-1||O&Te.PrettierIgnore&&!Ie(_e)||me&&!me(_e))};function Me(O,me,_e){if(!u(O==null?void 0:O.comments))return!1;let He=je(me,_e);return He?O.comments.some(He):!0}function ae(O,me,_e){if(!Array.isArray(O==null?void 0:O.comments))return[];let He=je(me,_e);return He?O.comments.filter(He):O.comments}var nt=(O,m
|
||
|
`)?d(Number.NEGATIVE_INFINITY,V):g(V,Q,J);B.push(l(["${",j,y,"}"]))}},"quasis"),B.push("`"),B}function P(v,o,h){let C=v.getNode(),x=C.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(x.length>1||x.some(b=>b.length>0)){o.__inJestEach=!0;let b=v.map(h,"expressions");o.__inJestEach=!1;let B=[],k=b.map(L=>"${"+c(L,Object.assign(Object.assign({},o),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"),M=[{hasLineBreak:!1,cells:[]}];for(let L=1;L<C.quasis.length;L++){let Q=t(M),V=k[L-1];Q.cells.push(V),V.includes(`
|
||
|
`)&&(Q.hasLineBreak=!0),C.quasis[L].value.raw.includes(`
|
||
|
`)&&M.push({hasLineBreak:!1,cells:[]})}let R=Math.max(x.length,...M.map(L=>L.cells.length)),q=Array.from({length:R}).fill(0),J=[{cells:x},...M.filter(L=>L.cells.length>0)];for(let{cells:L}of J.filter(Q=>!Q.hasLineBreak))for(let[Q,V]of L.entries())q[Q]=Math.max(q[Q],s(V));return B.push(y,"`",p([u,n(u,J.map(L=>n(" | ",L.cells.map((Q,V)=>L.hasLineBreak?Q:Q+" ".repeat(q[V]-s(Q))))))]),u,"`"),B}}function $(v,o){let h=v.getValue(),C=o();return F(h)&&(C=l([p([i,C]),i])),["${",C,y,"}"]}function f(v,o){return v.map(h=>$(h,o),"expressions")}function T(v,o){return D(v,h=>typeof h=="string"?o?h.replace(/(\\*)`/g,"$1$1\\`"):m(h):h)}function m(v){return v.replace(/([\\`]|\${)/g,"\\$1")}r.exports={printTemplateLiteral:I,printTemplateExpressions:f,escapeTemplateCharacters:T,uncookTemplateElementValue:m}}}),Ym=te({"src/language-js/embed/markdown.js"(e,r){"use strict";ne();var{builders:{indent:t,softline:s,literalline:a,dedentToRoot:n}}=qe(),{escapeTemplateCharacters:u}=jt();function i(p,d,y){let c=p.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(w,F)=>"\\".repeat(F.length/2)+"`"),D=l(c),E=D!=="";E&&(c=c.replace(new RegExp(`^${D}`,"gm"),""));let _=u(y(c,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",E?t([s,_]):[a,n(_)],s,"`"]}function l(p){let d=p.match(/^([^\S\n]*)\S/m);return d===null?"":d[1]}r.exports=i}}),Qm=te({"src/language-js/embed/css.js"(e,r){"use strict";ne();var{isNonEmptyArray:t}=Ue(),{builders:{indent:s,hardline:a,softline:n},utils:{mapDoc:u,replaceEndOfLine:i,cleanDoc:l}}=qe(),{printTemplateExpressions:p}=jt();function d(c,D,E){let _=c.getValue(),w=_.quasis.map(P=>P.value.raw),F=0,S=w.reduce((P,$,f)=>f===0?$:P+"@prettier-placeholder-"+F+++"-id"+$,""),N=E(S,{parser:"scss"},{stripTrailingHardline:!0}),I=p(c,D);return y(N,_,I)}function y(c,D,E){if(D.quasis.length===1&&!D.quasis[0].value.raw.trim())return"``";let w=g(c,E);if(!w)throw new Error("Couldn't insert all the expressions");return["`",s([a,w]),n,"`"]}function g(c,D){if(!t(D))return c;let E=0,_=u(l(c),w=>typeof w!="string"||!w.includes("@prettier-placeholder")?w:w.split(/@prettier-placeholder-(\d+)-id/).map((F,S)=>S%2===0?i(F):(E++,D[F])));return D.length===E?_:null}r.exports=d}}),Zm=te({"src/language-js/embed/graphql.js"(e,r){"use strict";ne();var{builders:{indent:t,join:s,hardline:a}}=qe(),{escapeTemplateCharacters:n,printTemplateExpressions:u}=jt();function i(p,d,y){let g=p.getValue(),c=g.quasis.length;if(c===1&&g.quasis[0].value.raw.trim()==="")return"``";let D=u(p,d),E=[];for(let _=0;_<c;_++){let w=g.quasis[_],F=_===0,S=_===c-1,N=w.value.cooked,I=N.split(`
|
||
|
`),P=I.length,$=D[_],f=P>2&&I[0].trim()===""&&I[1].trim()==="",T=P>2&&I[P-1].trim()===""&&I[P-2].trim()==="",m=I.every(o=>/^\s*(?:#[^\n\r]*)?$/.test(o));if(!S&&/#[^\n\r]*$/.test(I[P-1]))return null;let v=null;m?v=l(I):v=y(N,{parser:"graphql"},{stripTrailingHardline:!0}),v?(v=n(v,!1),!F&&f&&E.push(""),E.push(v),!S&&T&&E.push("")):!F&&!S&&f&&E.push(""),$&&E.push($)}return["`",t([a,s(a,E)]),a,"`"]}function l(p){let d=[],y=!1,g=p.map(c=>c.trim());for(let[c,D]of g.entries())D!==""&&(g[c-1]===""&&y?d.push([a,D]):d.push(D),y=!0);return d.length===0?null:s(a,d)}r.exports=i}}),ed=te({"src/language-js/embed/html.js"(e,r){"use strict";ne();var{builders:{indent:t,line:s,hardline:a,group:n},utils:{mapDoc:u}}=qe(),{printTemplateExpressions:i,uncookTemplateElementValue:l}=jt(),p=0;function d(y,g,c,D,E){let{parser:_}=E,w=y.getValue(),F=p;p=p+1>>>0;let S=h=>`PRETTIER_HTML_PLACEHOLDER_${h}_${F}_IN_JS`,N=w.quasis.map((h,C,x)=>C===x.length-1?h.value.cooked:h.value.cooked+S(C)).join(""),I=i(y,g);if(I.length===0&&N.trim().length===0)return"``";let P=new RegExp(S("(\\d+)"),"g"),$=0,f=c(N,{parser:_,__onHtmlRoot(h){$=h.children.length}},{stripTrailingHardline:!0}),T=u(f,h=>{if(typeof h!="string")return h;let C=[],x=h.split(P);for(let b=0;b<x.length;b++){let B=x[b];if(b%2===0){B&&(B=l(B),D.__embeddedInHtml&&(B=B.replace(/<\/(script)\b/gi,"<\\/$1")),C.push(B));continue}let k=Number(B);C.push(I[k])}return C}),m=/^\s/.test(N)?" ":"",v=/\s$/.test(N)?" ":"",o=D.htmlWhitespaceSensitivity==="ignore"?a:m&&v?s:null;return n(o?["`",t([o,n(T)]),o,"`"]:["`",m,$>1?t(n(T)):n(T),v,"`"])}r.exports=d}}),td=te({"src/language-js/embed.js"(e,r){"use strict";ne();var{hasComment:t,CommentCheckFlags:s,isObjectProperty:a}=Ke(),n=Ym(),u=Qm(),i=Zm(),l=ed();function p(f){if(g(f)||_(f)||w(f)||c(f))return"css";if(N(f))return"graphql";if(P(f))return"html";if(D(f))return"angular";if(y(f))return"markdown"}function d(f,T,m,v){let o=f.getValue();if(o.type!=="TemplateLiteral"||$(o))return;let h=p(f);if(h){if(h==="markdown")return n(f,T,m);if(h==="css")return u(f,T,m);if(h==="graphql")return i(f,T,m);if(h==="html"||h==="angular")return l(f,T,m,v,{parser:h})}}function y(f){let T=f.getValue(),m=f.getParentNode();return m&&m.type==="TaggedTemplateExpression"&&T.quasis.length===1&&m.tag.type==="Identifier"&&(m.tag.name==="md"||m.tag.name==="markdown")}function g(f){let T=f.getValue(),m=f.getParentNode(),v=f.getParentNode(1);return v&&T.quasis&&m.type==="JSXExpressionContainer"&&v.type==="JSXElement"&&v.openingElement.name.name==="style"&&v.openingElement.attributes.some(o=>o.name.name==="jsx")||m&&m.type==="TaggedTemplateExpression"&&m.tag.type==="Identifier"&&m.tag.name==="css"||m&&m.type==="TaggedTemplateExpression"&&m.tag.type==="MemberExpression"&&m.tag.object.name==="css"&&(m.tag.property.name==="global"||m.tag.property.name==="resolve")}function c(f){return f.match(T=>T.type==="TemplateLiteral",(T,m)=>T.type==="ArrayExpression"&&m==="elements",(T,m)=>a(T)&&T.key.type==="Identifier"&&T.key.name==="styles"&&m==="value",...E)}function D(f){return f.match(T=>T.type==="TemplateLiteral",(T,m)=>a(T)&&T.key.type==="Identifier"&&T.key.name==="template"&&m==="value",...E)}var E=[(f,T)=>f.type==="ObjectExpression"&&T==="properties",(f,T)=>f.type==="CallExpression"&&f.callee.type==="Identifier"&&f.callee.name==="Component"&&T==="arguments",(f,T)=>f.type==="Decorator"&&T==="expression"];function _(f){let T=f.getParentNode();if(!T||T.type!=="TaggedTemplateExpression")return!1;let m=T.tag.type==="ParenthesizedExpression"?T.tag.expression:T.tag;switch(m.type){case"MemberExpression":return F(m.object)||S(m);case"CallExpression":return F(m.callee)||m.callee.type==="MemberExpression"&&(m.callee.object.type==="MemberExpression"&&(F(m.callee.object.object)||S(m.callee.object))||m.callee.object.type==="CallExpression"&&F(m.callee.object.callee));case"Identifier":return m.name==="css";default:return!1}}function w(f){let T=f.getParentNode(),m=f.getParentNode(1);return m&&T.type==="JSXExpressionContainer"&&m.type==="JSXAttribute"&&m.name.type==="JSXIdentifier"&&m.name.name==="css"}function F(f){return f
|
||
|
`,vo={EOL:Wn,tmpdir:Vn,tmpDir:$n,networkInterfaces:yo,getNetworkInterfaces:ho,release:go,type:mo,cpus:Do,totalmem:fo,freemem:po,uptime:co,loadavg:lo,hostname:oo,endianness:ao}}}),id=te({"node-modules-polyfills-commonjs:os"(e,r){ne();var t=(sd(),ft(io));if(t&&t.default){r.exports=t.default;for(let s in t)r.exports[s]=t[s]}else t&&(r.exports=t)}}),ad=te({"node_modules/detect-newline/index.js"(e,r){"use strict";ne();var t=s=>{if(typeof s!="string")throw new TypeError("Expected a string");let a=s.match(/(?:\r?\n)/g)||[];if(a.length===0)return;let n=a.filter(i=>i===`\r
|
||
|
`).length,u=a.length-n;return n>u?`\r
|
||
|
`:`
|
||
|
`};r.exports=t,r.exports.graceful=s=>typeof s=="string"&&t(s)||`
|
||
|
`}}),od=te({"node_modules/jest-docblock/build/index.js"(e){"use strict";ne(),Object.defineProperty(e,"__esModule",{value:!0}),e.extract=c,e.parse=E,e.parseWithComments=_,e.print=w,e.strip=D;function r(){let S=id();return r=function(){return S},S}function t(){let S=s(ad());return t=function(){return S},S}function s(S){return S&&S.__esModule?S:{default:S}}var a=/\*\/$/,n=/^\/\*\*?/,u=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,i=/(^|\s+)\/\/([^\r\n]*)/g,l=/^(\r?\n)+/,p=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,d=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,y=/(\r?\n|^) *\* ?/g,g=[];function c(S){let N=S.match(u);return N?N[0].trimLeft():""}function D(S){let N=S.match(u);return N&&N[0]?S.substring(N[0].length):S}function E(S){return _(S).pragmas}function _(S){let N=(0,t().default)(S)||r().EOL;S=S.replace(n,"").replace(a,"").replace(y,"$1");let I="";for(;I!==S;)I=S,S=S.replace(p,`${N}$1 $2${N}`);S=S.replace(l,"").trimRight();let P=Object.create(null),$=S.replace(d,"").replace(l,"").trimRight(),f;for(;f=d.exec(S);){let T=f[2].replace(i,"");typeof P[f[1]]=="string"||Array.isArray(P[f[1]])?P[f[1]]=g.concat(P[f[1]],T):P[f[1]]=T}return{comments:$,pragmas:P}}function w(S){let{comments:N="",pragmas:I={}}=S,P=(0,t().default)(N)||r().EOL,$="/**",f=" *",T=" */",m=Object.keys(I),v=m.map(h=>F(h,I[h])).reduce((h,C)=>h.concat(C),[]).map(h=>`${f} ${h}${P}`).join("");if(!N){if(m.length===0)return"";if(m.length===1&&!Array.isArray(I[m[0]])){let h=I[m[0]];return`${$} ${F(m[0],h)[0]}${T}`}}let o=N.split(P).map(h=>`${f} ${h}`).join(P)+P;return $+P+(N?o:"")+(N&&m.length?f+P:"")+v+T}function F(S,N){return g.concat(N).map(I=>`@${S} ${I}`.trim())}}}),ld=te({"src/language-js/utils/get-shebang.js"(e,r){"use strict";ne();function t(s){if(!s.startsWith("#!"))return"";let a=s.indexOf(`
|
||
|
`);return a===-1?s:s.slice(0,a)}r.exports=t}}),Co=te({"src/language-js/pragma.js"(e,r){"use strict";ne();var{parseWithComments:t,strip:s,extract:a,print:n}=od(),{normalizeEndOfLine:u}=Jn(),i=ld();function l(y){let g=i(y);g&&(y=y.slice(g.length+1));let c=a(y),{pragmas:D,comments:E}=t(c);return{shebang:g,text:y,pragmas:D,comments:E}}function p(y){let g=Object.keys(l(y).pragmas);return g.includes("prettier")||g.includes("format")}function d(y){let{shebang:g,text:c,pragmas:D,comments:E}=l(y),_=s(c),w=n({pragmas:Object.assign({format:""},D),comments:E.trimStart()});return(g?`${g}
|
||
|
`:"")+u(w)+(_.startsWith(`
|
||
|
`)?`
|
||
|
`:`
|
||
|
|
||
|
`)+_}r.exports={hasPragma:p,insertPragma:d}}}),Eo=te({"src/language-js/comments.js"(e,r){"use strict";ne();var{getLast:t,hasNewline:s,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:a,getNextNonSpaceNonCommentCharacter:n,hasNewlineInRange:u,addLeadingComment:i,addTrailingComment:l,addDanglingComment:p,getNextNonSpaceNonCommentCharacterIndex:d,isNonEmptyArray:y}=Ue(),{getFunctionParameters:g,isPrettierIgnoreComment:c,isJsxNode:D,hasFlowShorthandAnnotationComment:E,hasFlowAnnotationComment:_,hasIgnoreComment:w,isCallLikeExpression:F,getCallArguments:S,isCallExpression:N,isMemberExpression:I,isObjectProperty:P,isLineComment:$,getComments:f,CommentCheckFlags:T,markerForIfWithoutBlockAndSameLineComment:m}=Ke(),{locStart:v,locEnd:o}=ut(),h=Ot();function C(fe){return[oe,ue,L,R,q,J,Y,ge,Z,De,he,we,ee,Fe,z].some(A=>A(fe))}function x(fe){return[M,ue,Q,he,R,q,J,Y,Fe,U,se,De,Ne,z,ce].some(A=>A(fe))}function b(fe){return[oe,R,q,V,de,ee,De,K,W,H,z,Pe].some(A=>A(fe))}function B(fe,A){let G=(fe.body||fe.properties).find(re=>{let{type:ye}=re;return ye!=="EmptyStatement"});G?i(G,A):p(fe,A)}function k(fe,A){fe.type==="BlockStatement"?B(fe,A):i(fe,A)}function M(fe){let{comment:A,followingNode:G}=fe;return G&&Ae(A)?(i(G,A),!0):!1}function R(fe){let{comment:A,precedingNode:G,enclosingNode:re,followingNode:ye,text:Ee}=fe;if((re==null?void 0:re.type)!=="IfStatement"||!ye)return!1;if(n(Ee,A,o)===")")return l(G,A),!0;if(G===re.consequent&&ye===re.alternate){if(G.type==="BlockStatement")l(G,A);else{let ve=A.type==="SingleLine"||A.loc.start.line===A.loc.end.line,ze=A.loc.start.line===G.loc.start.line;ve&&ze?p(G,A,m):p(re,A)}return!0}return ye.type==="BlockStatement"?(B(ye,A),!0):ye.type==="IfStatement"?(k(ye.consequent,A),!0):re.consequent===ye?(i(ye,A),!0):!1}function q(fe){let{comment:A,precedingNode:G,enclosingNode:re,followingNode:ye,text:Ee}=fe;return(re==null?void 0:re.type)!=="WhileStatement"||!ye?!1:n(Ee,A,o)===")"?(l(G,A),!0):ye.type==="BlockStatement"?(B(ye,A),!0):re.body===ye?(i(ye,A),!0):!1}function J(fe){let{comment:A,precedingNode:G,enclosingNode:re,followingNode:ye}=fe;return(re==null?void 0:re.type)!=="TryStatement"&&(re==null?void 0:re.type)!=="CatchClause"||!ye?!1:re.type==="CatchClause"&&G?(l(G,A),!0):ye.type==="BlockStatement"?(B(ye,A),!0):ye.type==="TryStatement"?(k(ye.finalizer,A),!0):ye.type==="CatchClause"?(k(ye.body,A),!0):!1}function L(fe){let{comment:A,enclosingNode:G,followingNode:re}=fe;return I(G)&&(re==null?void 0:re.type)==="Identifier"?(i(G,A),!0):!1}function Q(fe){let{comment:A,precedingNode:G,enclosingNode:re,followingNode:ye,text:Ee}=fe,Be=G&&!u(Ee,o(G),v(A));return(!G||!Be)&&((re==null?void 0:re.type)==="ConditionalExpression"||(re==null?void 0:re.type)==="TSConditionalType")&&ye?(i(ye,A),!0):!1}function V(fe){let{comment:A,precedingNode:G,enclosingNode:re}=fe;return P(re)&&re.shorthand&&re.key===G&&re.value.type==="AssignmentPattern"?(l(re.value.left,A),!0):!1}var j=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function Y(fe){let{comment:A,precedingNode:G,enclosingNode:re,followingNode:ye}=fe;if(j.has(re==null?void 0:re.type)){if(y(re.decorators)&&!(ye&&ye.type==="Decorator"))return l(t(re.decorators),A),!0;if(re.body&&ye===re.body)return B(re.body,A),!0;if(ye){if(re.superClass&&ye===re.superClass&&G&&(G===re.id||G===re.typeParameters))return l(G,A),!0;for(let Ee of["implements","extends","mixins"])if(re[Ee]&&ye===re[Ee][0])return G&&(G===re.id||G===re.typeParameters||G===re.superClass)?l(G,A):p(re,A,Ee),!0}}return!1}var ie=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function ee(fe){let{comment:A,precedingNode:G,enclosingNode:re,text:ye}=fe;return re&&G&&n(ye,A,o)==="("&&(re.type==="Property"||re.type==="TSDeclareMethod"||re.type==="TSAbstractMethodDefinition")&&G.type==="Identifier"&&re.key===G&&n(ye,G,o)!==":"||(G==null?void 0:G.type)==
|
||
|
`)&&!ge&&!$(De.attributes[0]))return l(["<",se("name"),se("typeParameters")," ",...U.map(se,"attributes"),De.selfClosing?" />":">"]);let he=De.attributes&&De.attributes.some(ke=>ke.value&&I(ke.value)&&ke.value.value.includes(`
|
||
|
`)),we=Z.singleAttributePerLine&&De.attributes.length>1?u:n;return l(["<",se("name"),se("typeParameters"),p(U.map(()=>[we,se()],"attributes")),...q(De,Z,ge)],{shouldBreak:he})}function q(U,Z,se){return U.selfClosing?[n,"/>"]:J(U,Z,se)?[">"]:[i,">"]}function J(U,Z,se){let De=U.attributes.length>0&&$(_(U.attributes),f.Trailing);return U.attributes.length===0&&!se||(Z.bracketSameLine||Z.jsxBracketSameLine)&&(!se||U.attributes.length>0)&&!De}function L(U,Z,se){let De=U.getValue(),ge=[];ge.push("</");let he=se("name");return $(De.name,f.Leading|f.Line)?ge.push(p([u,he]),u):$(De.name,f.Leading|f.Block)?ge.push(" ",he):ge.push(he),ge.push(">"),ge}function Q(U,Z){let se=U.getValue(),De=$(se),ge=$(se,f.Line),he=se.type==="JSXOpeningFragment";return[he?"<":"</",p([ge?u:De&&!he?" ":"",s(U,Z,!0)]),ge?u:"",">"]}function V(U,Z,se){let De=t(U,h(U,Z,se),Z);return B(U,De,Z)}function j(U,Z){let se=U.getValue(),De=$(se,f.Line);return[s(U,Z,!De),De?u:""]}function Y(U,Z,se){let De=U.getValue();return["{",U.call(ge=>{let he=["...",se()],we=ge.getValue();return!$(we)||!v(ge)?he:[p([i,t(ge,he,Z)]),i]},De.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function ie(U,Z,se){let De=U.getValue();if(De.type.startsWith("JSX"))switch(De.type){case"JSXAttribute":return k(U,Z,se);case"JSXIdentifier":return String(De.name);case"JSXNamespacedName":return D(":",[se("namespace"),se("name")]);case"JSXMemberExpression":return D(".",[se("object"),se("property")]);case"JSXSpreadAttribute":return Y(U,Z,se);case"JSXSpreadChild":return Y(U,Z,se);case"JSXExpressionContainer":return M(U,Z,se);case"JSXFragment":case"JSXElement":return V(U,Z,se);case"JSXOpeningElement":return R(U,Z,se);case"JSXClosingElement":return L(U,Z,se);case"JSXOpeningFragment":case"JSXClosingFragment":return Q(U,Z);case"JSXEmptyExpression":return j(U,Z);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Error(`Unknown JSX node type: ${JSON.stringify(De.type)}.`)}}var ee=`
|
||
|
\r `,le=new RegExp("(["+ee+"]+)"),W=new RegExp("[^"+ee+"]"),K=U=>U.replace(new RegExp("(?:^"+le.source+"|"+le.source+"$)"),"");function de(U){if(U.children.length===0)return!0;if(U.children.length>1)return!1;let Z=U.children[0];return Z.type==="JSXText"&&!ue(Z)}function ue(U){return U.type==="JSXText"&&(W.test(S(U))||!/\n/.test(S(U)))}function Fe(U){return U.type==="JSXExpressionContainer"&&I(U.expression)&&U.expression.value===" "&&!$(U.expression)}function z(U){let Z=U.getValue(),se=U.getParentNode();if(!se||!Z||!F(Z)||!F(se))return!1;let De=se.children.indexOf(Z),ge=null;for(let he=De;he>0;he--){let we=se.children[he-1];if(!(we.type==="JSXText"&&!ue(we))){ge=we;break}}return ge&&ge.type==="JSXExpressionContainer"&&ge.expression.type==="JSXEmptyExpression"&&T(ge.expression)}r.exports={hasJsxIgnoreComment:z,printJsx:ie}}}),ct=te({"src/language-js/print/misc.js"(e,r){"use strict";ne();var{isNonEmptyArray:t}=Ue(),{builders:{indent:s,join:a,line:n}}=qe(),{isFlowAnnotationComment:u}=Ke();function i(_){let w=_.getValue();return!w.optional||w.type==="Identifier"&&w===_.getParentNode().key?"":w.type==="OptionalCallExpression"||w.type==="OptionalMemberExpression"&&w.computed?"?.":"?"}function l(_){return _.getValue().definite||_.match(void 0,(w,F)=>F==="id"&&w.type==="VariableDeclarator"&&w.definite)?"!":""}function p(_,w,F){let S=_.getValue();return S.typeArguments?F("typeArguments"):S.typeParameters?F("typeParameters"):""}function d(_,w,F){let S=_.getValue();if(!S.typeAnnotation)return"";let N=_.getParentNode(),I=N.type==="DeclareFunction"&&N.id===S;return u(w.originalText,S.typeAnnotation)?[" /*: ",F("typeAnnotation")," */"]:[I?"":": ",F("typeAnnotation")]}function y(_,w,F){return["::",F("callee")]}function g(_,w,F){let S=_.getValue();return t(S.modifiers)?[a(" ",_.map(F,"modifiers"))," "]:""}function c(_,w,F){return _.type==="EmptyStatement"?";":_.type==="BlockStatement"||F?[" ",w]:s([n,w])}function D(_,w,F){return["...",F("argument"),d(_,w,F)]}function E(_,w){let F=_.slice(1,-1);if(F.includes('"')||F.includes("'"))return _;let S=w.singleQuote?"'":'"';return S+F+S}r.exports={printOptionalToken:i,printDefiniteToken:l,printFunctionTypeParameters:p,printBindExpressionCallee:y,printTypeScriptModifiers:g,printTypeAnnotation:d,printRestSpread:D,adjustClause:c,printDirective:E}}}),er=te({"src/language-js/print/array.js"(e,r){"use strict";ne();var{printDanglingComments:t}=et(),{builders:{line:s,softline:a,hardline:n,group:u,indent:i,ifBreak:l,fill:p}}=qe(),{getLast:d,hasNewline:y}=Ue(),{shouldPrintComma:g,hasComment:c,CommentCheckFlags:D,isNextLineEmpty:E,isNumericLiteral:_,isSignedNumericLiteral:w}=Ke(),{locStart:F}=ut(),{printOptionalToken:S,printTypeAnnotation:N}=ct();function I(T,m,v){let o=T.getValue(),h=[],C=o.type==="TupleExpression"?"#[":"[",x="]";if(o.elements.length===0)c(o,D.Dangling)?h.push(u([C,t(T,m),a,x])):h.push(C,x);else{let b=d(o.elements),B=!(b&&b.type==="RestElement"),k=b===null,M=Symbol("array"),R=!m.__inJestEach&&o.elements.length>1&&o.elements.every((L,Q,V)=>{let j=L&&L.type;if(j!=="ArrayExpression"&&j!=="ObjectExpression")return!1;let Y=V[Q+1];if(Y&&j!==Y.type)return!1;let ie=j==="ArrayExpression"?"elements":"properties";return L[ie]&&L[ie].length>1}),q=P(o,m),J=B?k?",":g(m)?q?l(",","",{groupId:M}):l(","):"":"";h.push(u([C,i([a,q?f(T,m,v,J):[$(T,m,"elements",v),J],t(T,m,!0)]),a,x],{shouldBreak:R,id:M}))}return h.push(S(T),N(T,m,v)),h}function P(T,m){return T.elements.length>1&&T.elements.every(v=>v&&(_(v)||w(v)&&!c(v.argument))&&!c(v,D.Trailing|D.Line,o=>!y(m.originalText,F(o),{backwards:!0})))}function $(T,m,v,o){let h=[],C=[];return T.each(x=>{h.push(C,u(o())),C=[",",s],x.getValue()&&E(x.getValue(),m)&&C.push(a)},v),h}function f(T,m,v,o){let h=[];return T.each((C,x,b)=>{let B=x===b.length-1;h.push([v(),B?o:","]),B||h.push(E(C.getValue(),m)?[n,n]:c(b[x+1],D.Leading|D.Line)?n:s)},"elements"),p(h)}r.exports={printArray:I,printArrayItems:$,isConciselyPrintedArray:P}}}),Ao=te({"src/language-js/print/call-arguments.js"(e,r){"use strict";ne();var{printDanglingComments:t}=et(),{getLast:s,getPenultimate:a}=Ue(),{g
|
||
|
`):E(W)}function ie(W,K,de){if(!$(W))return!1;K=p(K);let ue=3;return typeof K=="string"&&s(K)<de.tabWidth+ue}function ee(W,K){let de=le(W);if(t(de)){if(de.length>1)return!0;if(de.length===1){let Fe=de[0];if(Fe.type==="TSUnionType"||Fe.type==="UnionTypeAnnotation"||Fe.type==="TSIntersectionType"||Fe.type==="IntersectionTypeAnnotation"||Fe.type==="TSTypeLiteral"||Fe.type==="ObjectTypeAnnotation")return!0}let ue=W.typeParameters?"typeParameters":"typeArguments";if(d(K(ue)))return!0}return!1}function le(W){return W.typeParameters&&W.typeParameters.params||W.typeArguments&&W.typeArguments.params}r.exports={printVariableDeclarator:o,printAssignmentExpression:v,printAssignment:m,isArrowFunctionVariableDeclarator:J}}}),Lr=te({"src/language-js/print/function-parameters.js"(e,r){"use strict";ne();var{getNextNonSpaceNonCommentCharacter:t}=Ue(),{printDanglingComments:s}=et(),{builders:{line:a,hardline:n,softline:u,group:i,indent:l,ifBreak:p},utils:{removeLines:d,willBreak:y}}=qe(),{getFunctionParameters:g,iterateFunctionParametersPath:c,isSimpleType:D,isTestCall:E,isTypeAnnotationAFunction:_,isObjectType:w,isObjectTypePropertyAFunction:F,hasRestParameter:S,shouldPrintComma:N,hasComment:I,isNextLineEmpty:P}=Ke(),{locEnd:$}=ut(),{ArgExpansionBailout:f}=Qt(),{printFunctionTypeParameters:T}=ct();function m(C,x,b,B,k){let M=C.getValue(),R=g(M),q=k?T(C,b,x):"";if(R.length===0)return[q,"(",s(C,b,!0,ie=>t(b.originalText,ie,$)===")"),")"];let J=C.getParentNode(),L=E(J),Q=v(M),V=[];if(c(C,(ie,ee)=>{let le=ee===R.length-1;le&&M.rest&&V.push("..."),V.push(x()),!le&&(V.push(","),L||Q?V.push(" "):P(R[ee],b)?V.push(n,n):V.push(a))}),B){if(y(q)||y(V))throw new f;return i([d(q),"(",d(V),")"])}let j=R.every(ie=>!ie.decorators);return Q&&j?[q,"(",...V,")"]:L?[q,"(",...V,")"]:(F(J)||_(J)||J.type==="TypeAlias"||J.type==="UnionTypeAnnotation"||J.type==="TSUnionType"||J.type==="IntersectionTypeAnnotation"||J.type==="FunctionTypeAnnotation"&&J.returnType===M)&&R.length===1&&R[0].name===null&&M.this!==R[0]&&R[0].typeAnnotation&&M.typeParameters===null&&D(R[0].typeAnnotation)&&!M.rest?b.arrowParens==="always"?["(",...V,")"]:V:[q,"(",l([u,...V]),p(!S(M)&&N(b,"all")?",":""),u,")"]}function v(C){if(!C)return!1;let x=g(C);if(x.length!==1)return!1;let[b]=x;return!I(b)&&(b.type==="ObjectPattern"||b.type==="ArrayPattern"||b.type==="Identifier"&&b.typeAnnotation&&(b.typeAnnotation.type==="TypeAnnotation"||b.typeAnnotation.type==="TSTypeAnnotation")&&w(b.typeAnnotation.typeAnnotation)||b.type==="FunctionTypeParam"&&w(b.typeAnnotation)||b.type==="AssignmentPattern"&&(b.left.type==="ObjectPattern"||b.left.type==="ArrayPattern")&&(b.right.type==="Identifier"||b.right.type==="ObjectExpression"&&b.right.properties.length===0||b.right.type==="ArrayExpression"&&b.right.elements.length===0))}function o(C){let x;return C.returnType?(x=C.returnType,x.typeAnnotation&&(x=x.typeAnnotation)):C.typeAnnotation&&(x=C.typeAnnotation),x}function h(C,x){let b=o(C);if(!b)return!1;let B=C.typeParameters&&C.typeParameters.params;if(B){if(B.length>1)return!1;if(B.length===1){let k=B[0];if(k.constraint||k.default)return!1}}return g(C).length===1&&(w(b)||y(x))}r.exports={printFunctionParameters:m,shouldHugFunctionParameters:v,shouldGroupFunctionParameters:h}}}),Or=te({"src/language-js/print/type-annotation.js"(e,r){"use strict";ne();var{printComments:t,printDanglingComments:s}=et(),{isNonEmptyArray:a}=Ue(),{builders:{group:n,join:u,line:i,softline:l,indent:p,align:d,ifBreak:y}}=qe(),g=qt(),{locStart:c}=ut(),{isSimpleType:D,isObjectType:E,hasLeadingOwnLineComment:_,isObjectTypePropertyAFunction:w,shouldPrintComma:F}=Ke(),{printAssignment:S}=tr(),{printFunctionParameters:N,shouldGroupFunctionParameters:I}=Lr(),{printArrayItems:P}=er();function $(b){if(D(b)||E(b))return!0;if(b.type==="UnionTypeAnnotation"||b.type==="TSUnionType"){let B=b.types.filter(M=>M.type==="VoidTypeAnnotation"||M.type==="TSVoidKeyword"||M.type==="NullLiteralTypeAnnotation"||M.type==="TSNullKeyword").length,k=b.types.some(M=>M.type==="ObjectTypeAnnotation"||M.type==="TSTypeLiteral"||M.type==="GenericTypeAnnotation"||M.type
|
||
|
`);return D.length>1&&D.every(E=>E.trim()[0]==="*")}function g(c){let D=c.value.split(`
|
||
|
`);return["/*",s(a,D.map((E,_)=>_===0?E.trimEnd():" "+(_<D.length-1?E.trim():E.trimStart()))),"*/"]}r.exports={printComment:d}}}),hd=te({"src/language-js/print/literal.js"(e,r){"use strict";ne();var{printString:t,printNumber:s}=Ue(),{replaceTextEndOfLine:a}=Yt(),{printDirective:n}=ct();function u(d,y){let g=d.getNode();switch(g.type){case"RegExpLiteral":return p(g);case"BigIntLiteral":return l(g.bigint||g.extra.raw);case"NumericLiteral":return s(g.extra.raw);case"StringLiteral":return a(t(g.extra.raw,y));case"NullLiteral":return"null";case"BooleanLiteral":return String(g.value);case"DecimalLiteral":return s(g.value)+"m";case"Literal":{if(g.regex)return p(g.regex);if(g.bigint)return l(g.raw);if(g.decimal)return s(g.decimal)+"m";let{value:c}=g;return typeof c=="number"?s(g.raw):typeof c=="string"?i(d)?n(g.raw,y):a(t(g.raw,y)):String(c)}}}function i(d){if(d.getName()!=="expression")return;let y=d.getParentNode();return y.type==="ExpressionStatement"&&y.directive}function l(d){return d.toLowerCase()}function p(d){let{pattern:y,flags:g}=d;return g=[...g].sort().join(""),`/${y}/${g}`}r.exports={printLiteral:u}}}),vd=te({"src/language-js/printer-estree.js"(e,r){"use strict";ne();var{printDanglingComments:t}=et(),{hasNewline:s}=Ue(),{builders:{join:a,line:n,hardline:u,softline:i,group:l,indent:p},utils:{replaceTextEndOfLine:d}}=qe(),y=td(),g=rd(),{insertPragma:c}=Co(),D=Eo(),E=qt(),_=Fo(),{hasFlowShorthandAnnotationComment:w,hasComment:F,CommentCheckFlags:S,isTheOnlyJsxElementInMarkdown:N,isLineComment:I,isNextLineEmpty:P,needsHardlineAfterDanglingComment:$,hasIgnoreComment:f,isCallExpression:T,isMemberExpression:m,markerForIfWithoutBlockAndSameLineComment:v}=Ke(),{locStart:o,locEnd:h}=ut(),C=Ot(),{printHtmlBinding:x,isVueEventBindingExpression:b}=cd(),{printAngular:B}=pd(),{printJsx:k,hasJsxIgnoreComment:M}=fd(),{printFlow:R}=md(),{printTypescript:q}=gd(),{printOptionalToken:J,printBindExpressionCallee:L,printTypeAnnotation:Q,adjustClause:V,printRestSpread:j,printDefiniteToken:Y,printDirective:ie}=ct(),{printImportDeclaration:ee,printExportDeclaration:le,printExportAllDeclaration:W,printModuleSpecifier:K}=To(),{printTernary:de}=Bo(),{printTemplateLiteral:ue}=jt(),{printArray:Fe}=er(),{printObject:z}=uu(),{printClass:U,printClassMethod:Z,printClassProperty:se}=nr(),{printProperty:De}=rr(),{printFunction:ge,printArrowFunction:he,printMethod:we,printReturnStatement:ke,printThrowStatement:Re}=qr(),{printCallExpression:Ne}=xo(),{printVariableDeclarator:Pe,printAssignmentExpression:oe}=tr(),{printBinaryishExpression:H}=ru(),{printSwitchCaseConsequent:ce}=No(),{printMemberExpression:X}=So(),{printBlock:pe,printBlockBody:Ae}=wo(),{printComment:Ce}=yd(),{printLiteral:fe}=hd(),{printDecorators:A}=nu();function G(Ee,Be,ve,ze){let be=re(Ee,Be,ve,ze);if(!be)return"";let Ye=Ee.getValue(),{type:Se}=Ye;if(Se==="ClassMethod"||Se==="ClassPrivateMethod"||Se==="ClassProperty"||Se==="ClassAccessorProperty"||Se==="AccessorProperty"||Se==="TSAbstractAccessorProperty"||Se==="PropertyDefinition"||Se==="TSAbstractPropertyDefinition"||Se==="ClassPrivateProperty"||Se==="MethodDefinition"||Se==="TSAbstractMethodDefinition"||Se==="TSDeclareMethod")return be;let Ie=[be],Oe=A(Ee,Be,ve),Je=Ye.type==="ClassExpression"&&Oe;if(Oe&&(Ie=[...Oe,be],!Je))return l(Ie);if(!E(Ee,Be))return ze&&ze.needsSemi&&Ie.unshift(";"),Ie.length===1&&Ie[0]===be?be:Ie;if(Je&&(Ie=[p([n,...Ie])]),Ie.unshift("("),ze&&ze.needsSemi&&Ie.unshift(";"),w(Ye)){let[je]=Ye.trailingComments;Ie.push(" /*",je.value.trimStart(),"*/"),je.printed=!0}return Je&&Ie.push(n),Ie.push(")"),Ie}function re(Ee,Be,ve,ze){let be=Ee.getValue(),Ye=Be.semi?";":"";if(!be)return"";if(typeof be=="string")return be;for(let Ie of[fe,x,B,k,R,q]){let Oe=Ie(Ee,Be,ve);if(typeof Oe<"u")return Oe}let Se=[];switch(be.type){case"JsExpressionRoot":return ve("node");case"JsonRoot":return[ve("node"),u];case"File":return be.program&&be.program.interpreter&&Se.push(ve(["program","interpreter"])),Se.push(ve("program")),Se;case"Program":return Ae(Ee,Be,ve);case"EmptyStatement":return"";case"ExpressionStatement":{if(Be.parser==="__vue
|
||
|
|
||
|
`:"")+t.insertPragma(l)}r.exports={hasPragma:a,insertPragma:n}}}),_d=te({"src/language-css/utils/index.js"(e,r){"use strict";ne();var t=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function s(z,U){let Z=Array.isArray(U)?U:[U],se=-1,De;for(;De=z.getParentNode(++se);)if(Z.includes(De.type))return se;return-1}function a(z,U){let Z=s(z,U);return Z===-1?null:z.getParentNode(Z)}function n(z){var U;let Z=a(z,"css-decl");return Z==null||(U=Z.prop)===null||U===void 0?void 0:U.toLowerCase()}var u=new Set(["initial","inherit","unset","revert"]);function i(z){return u.has(z.toLowerCase())}function l(z,U){let Z=a(z,"css-atrule");return(Z==null?void 0:Z.name)&&Z.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(U.toLowerCase())}function p(z){return z.includes("$")||z.includes("@")||z.includes("#")||z.startsWith("%")||z.startsWith("--")||z.startsWith(":--")||z.includes("(")&&z.includes(")")?z:z.toLowerCase()}function d(z,U){var Z;let se=a(z,"value-func");return(se==null||(Z=se.value)===null||Z===void 0?void 0:Z.toLowerCase())===U}function y(z){var U;let Z=a(z,"css-rule"),se=Z==null||(U=Z.raws)===null||U===void 0?void 0:U.selector;return se&&(se.startsWith(":import")||se.startsWith(":export"))}function g(z,U){let Z=Array.isArray(U)?U:[U],se=a(z,"css-atrule");return se&&Z.includes(se.name.toLowerCase())}function c(z){let U=z.getValue(),Z=a(z,"css-atrule");return(Z==null?void 0:Z.name)==="import"&&U.groups[0].value==="url"&&U.groups.length===2}function D(z){return z.type==="value-func"&&z.value.toLowerCase()==="url"}function E(z,U){var Z;let se=(Z=z.getParentNode())===null||Z===void 0?void 0:Z.nodes;return se&&se.indexOf(U)===se.length-1}function _(z){let{selector:U}=z;return U?typeof U=="string"&&/^@.+:.*$/.test(U)||U.value&&/^@.+:.*$/.test(U.value):!1}function w(z){return z.type==="value-word"&&["from","through","end"].includes(z.value)}function F(z){return z.type==="value-word"&&["and","or","not"].includes(z.value)}function S(z){return z.type==="value-word"&&z.value==="in"}function N(z){return z.type==="value-operator"&&z.value==="*"}function I(z){return z.type==="value-operator"&&z.value==="/"}function P(z){return z.type==="value-operator"&&z.value==="+"}function $(z){return z.type==="value-operator"&&z.value==="-"}function f(z){return z.type==="value-operator"&&z.value==="%"}function T(z){return N(z)||I(z)||P(z)||$(z)||f(z)}function m(z){return z.type==="value-word"&&["==","!="].includes(z.value)}function v(z){return z.type==="value-word"&&["<",">","<=",">="].includes(z.value)}function o(z){return z.type==="css-atrule"&&["if","else","for","each","while"].includes(z.name)}function h(z){var U;return((U=z.raws)===null||U===void 0?void 0:U.params)&&/^\(\s*\)$/.test(z.raws.params)}function C(z){return z.name.startsWith("prettier-placeholder")}function x(z){return z.prop.startsWith("@prettier-placeholder")}function b(z,U){return z.value==="$$"&&z.type==="value-func"&&(U==null?void 0:U.type)==="value-word"&&!U.raws.before}function B(z){var U,Z;return((U=z.value)===null||U===void 0?void 0:U.type)==="value-root"&&((Z=z.value.group)===null||Z===void 0?void 0:Z.type)==="value-value"&&z.prop.toLowerCase()==="composes"}function k(z){var U,Z,se;return((U=z.value)===null||U===void 0||(Z=U.group)===null||Z===void 0||(se=Z.group)===null||se===void 0?void 0:se.type)==="value-paren_group"&&z.value.group.group.open!==null&&z.value.group.group.close!==null}function M(z){var U;return((U=z.raws)===null||U===void 0?void 0:U.before)===""}function R(z){var U,Z;return z.type==="value-comma_group"&&((U=z.groups)===null||U===void 0||(Z=U[1])===null||Z===void 0?void 0:Z.type)==="value-colon"}function q(z){var U;return z.type==="value-paren_group"&&((U=z.groups)===null||U===void 0?void 0:U[0])&&R(z.groups[0])}function J(z){var U;let Z=z.getValue();if(Z.groups.length===0)return!1;let se=z.getParentNode(1);if(!q(Z)&&!(se&&q(se)))return!1;let De=a(z,"css-decl");return!!(De!=null&&(U=De.prop)!==null&&U!==v
|
||
|
`,a)+1;return a+t.column}}}),Id=te({"src/language-css/loc.js"(e,r){"use strict";ne();var{skipEverythingButNewLine:t}=Pr(),s=lt(),a=Pd();function n(c,D){return typeof c.sourceIndex=="number"?c.sourceIndex:c.source?a(c.source.start,D)-1:null}function u(c,D){if(c.type==="css-comment"&&c.inline)return t(D,c.source.startOffset);let E=c.nodes&&s(c.nodes);return E&&c.source&&!c.source.end&&(c=E),c.source&&c.source.end?a(c.source.end,D):null}function i(c,D){c.source&&(c.source.startOffset=n(c,D),c.source.endOffset=u(c,D));for(let E in c){let _=c[E];E==="source"||!_||typeof _!="object"||(_.type==="value-root"||_.type==="value-unknown"?l(_,p(c),_.text||_.value):i(_,D))}}function l(c,D,E){c.source&&(c.source.startOffset=n(c,E)+D,c.source.endOffset=u(c,E)+D);for(let _ in c){let w=c[_];_==="source"||!w||typeof w!="object"||l(w,D,E)}}function p(c){let D=c.source.startOffset;return typeof c.prop=="string"&&(D+=c.prop.length),c.type==="css-atrule"&&typeof c.name=="string"&&(D+=1+c.name.length+c.raws.afterName.match(/^\s*:?\s*/)[0].length),c.type!=="css-atrule"&&c.raws&&typeof c.raws.between=="string"&&(D+=c.raws.between.length),D}function d(c){let D="initial",E="initial",_,w=!1,F=[];for(let S=0;S<c.length;S++){let N=c[S];switch(D){case"initial":if(N==="'"){D="single-quotes";continue}if(N==='"'){D="double-quotes";continue}if((N==="u"||N==="U")&&c.slice(S,S+4).toLowerCase()==="url("){D="url",S+=3;continue}if(N==="*"&&c[S-1]==="/"){D="comment-block";continue}if(N==="/"&&c[S-1]==="/"){D="comment-inline",_=S-1;continue}continue;case"single-quotes":if(N==="'"&&c[S-1]!=="\\"&&(D=E,E="initial"),N===`
|
||
|
`||N==="\r")return c;continue;case"double-quotes":if(N==='"'&&c[S-1]!=="\\"&&(D=E,E="initial"),N===`
|
||
|
`||N==="\r")return c;continue;case"url":if(N===")"&&(D="initial"),N===`
|
||
|
`||N==="\r")return c;if(N==="'"){D="single-quotes",E="url";continue}if(N==='"'){D="double-quotes",E="url";continue}continue;case"comment-block":N==="/"&&c[S-1]==="*"&&(D="initial");continue;case"comment-inline":(N==='"'||N==="'"||N==="*")&&(w=!0),(N===`
|
||
|
`||N==="\r")&&(w&&F.push([_,S]),D="initial",w=!1);continue}}for(let[S,N]of F)c=c.slice(0,S)+c.slice(S,N).replace(/["'*]/g," ")+c.slice(N);return c}function y(c){return c.source.startOffset}function g(c){return c.source.endOffset}r.exports={locStart:y,locEnd:g,calculateLoc:i,replaceQuotesInInlineComments:d}}}),kd=te({"src/language-css/utils/is-less-parser.js"(e,r){"use strict";ne();function t(s){return s.parser==="css"||s.parser==="less"}r.exports=t}}),Ld=te({"src/language-css/utils/is-scss.js"(e,r){"use strict";ne();function t(s,a){return s==="less"||s==="scss"?s==="scss":/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(a)}r.exports=t}}),Od=te({"src/language-css/utils/css-units.evaluate.js"(e,r){r.exports={em:"em",rem:"rem",ex:"ex",rex:"rex",cap:"cap",rcap:"rcap",ch:"ch",rch:"rch",ic:"ic",ric:"ric",lh:"lh",rlh:"rlh",vw:"vw",svw:"svw",lvw:"lvw",dvw:"dvw",vh:"vh",svh:"svh",lvh:"lvh",dvh:"dvh",vi:"vi",svi:"svi",lvi:"lvi",dvi:"dvi",vb:"vb",svb:"svb",lvb:"lvb",dvb:"dvb",vmin:"vmin",svmin:"svmin",lvmin:"lvmin",dvmin:"dvmin",vmax:"vmax",svmax:"svmax",lvmax:"lvmax",dvmax:"dvmax",cm:"cm",mm:"mm",q:"Q",in:"in",pt:"pt",pc:"pc",px:"px",deg:"deg",grad:"grad",rad:"rad",turn:"turn",s:"s",ms:"ms",hz:"Hz",khz:"kHz",dpi:"dpi",dpcm:"dpcm",dppx:"dppx",x:"x"}}}),jd=te({"src/language-css/utils/print-unit.js"(e,r){"use strict";ne();var t=Od();function s(a){let n=a.toLowerCase();return Object.prototype.hasOwnProperty.call(t,n)?t[n]:a}r.exports=s}}),qd=te({"src/language-css/printer-postcss.js"(e,r){"use strict";ne();var t=lt(),{printNumber:s,printString:a,hasNewline:n,isFrontMatterNode:u,isNextLineEmpty:i,isNonEmptyArray:l}=Ue(),{builders:{join:p,line:d,hardline:y,softline:g,group:c,fill:D,indent:E,dedent:_,ifBreak:w,breakParent:F},utils:{removeLines:S,getDocParts:N}}=qe(),I=Bd(),P=Nd(),{insertPragma:$}=wd(),{getAncestorNode:f,getPropOfDeclNode:T,maybeToLowerCase:m,insideValueFunctionNode:v,insideICSSRuleNode:o,insideAtRuleNode:h,insideURLFunctionInImportAtRuleNode:C,isKeyframeAtRuleKeywords:x,isWideKeywords:b,isLastNode:B,isSCSSControlDirectiveNode:k,isDetachedRulesetDeclarationNode:M,isRelationalOperatorNode:R,isEqualityOperatorNode:q,isMultiplicationNode:J,isDivisionNode:L,isAdditionNode:Q,isSubtractionNode:V,isMathOperatorNode:j,isEachKeywordNode:Y,isForKeywordNode:ie,isURLFunctionNode:ee,isIfElseKeywordNode:le,hasComposesNode:W,hasParensAroundNode:K,hasEmptyRawBefore:de,isKeyValuePairNode:ue,isKeyInValuePairNode:Fe,isDetachedRulesetCallNode:z,isTemplatePlaceholderNode:U,isTemplatePropNode:Z,isPostcssSimpleVarNode:se,isSCSSMapItemNode:De,isInlineValueCommentNode:ge,isHashNode:he,isLeftCurlyBraceNode:we,isRightCurlyBraceNode:ke,isWordNode:Re,isColonNode:Ne,isMediaAndSupportsKeywords:Pe,isColorAdjusterFuncNode:oe,lastLineHasInlineComment:H,isAtWordPlaceholderNode:ce,isConfigurationNode:X,isParenGroupNode:pe}=_d(),{locStart:Ae,locEnd:Ce}=Id(),fe=kd(),A=Ld(),G=jd();function re(Te){return Te.trailingComma==="es5"||Te.trailingComma==="all"}function ye(Te,je,Me){let ae=Te.getValue();if(!ae)return"";if(typeof ae=="string")return ae;switch(ae.type){case"front-matter":return[ae.raw,y];case"css-root":{let Ve=Ee(Te,je,Me),We=ae.raws.after.trim();return We.startsWith(";")&&(We=We.slice(1).trim()),[Ve,We?` ${We}`:"",N(Ve).length>0?y:""]}case"css-comment":{let Ve=ae.inline||ae.raws.inline,We=je.originalText.slice(Ae(ae),Ce(ae));return Ve?We.trimEnd():We}case"css-rule":return[Me("selector"),ae.important?" !important":"",ae.nodes?[ae.selector&&ae.selector.type==="selector-unknown"&&H(ae.selector.value)?d:" ","{",ae.nodes.length>0?E([y,Ee(Te,je,Me)]):"",y,"}",M(ae)?";":""]:";"];case"css-decl":{let Ve=Te.getParentNode(),{between:We}=ae.raws,Xe=We.trim(),st=Xe===":",O=W(ae)?S(Me("value")):Me("value");return!st&&H(Xe)&&(O=E([y,_(O)])),[ae.raws.before.replace(/[\s;]/g,""),Ve.type==="css-atrule"&&Ve.variable||o(Te)?ae.prop:m(ae.prop),Xe.startsWith("//")?" ":"",Xe,ae.extend?"":" ",fe(je)&&ae.extend&&ae.selector?["extend(",Me("selector"),")"]:"",O,ae.raws.important?ae.raws.important.replace(/\s*!\s*important/i," !important"):ae.important?" !important":"",ae.raw
|
||
|
`).length-1}function se(H){H=typeof H=="string"?H:"";let ce=(H.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return Z(ce)}function De(H){H=typeof H=="string"?H:"";let ce=(H.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return Z(ce)}function ge(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Array.from({length:Math.min(H,o)}).fill(n)}function he(H,ce){let{quote:X,regex:pe}=c(H,ce);return[X,H.replace(pe,`\\${X}`),X]}function we(H){let ce=0,X=H.getParentNode(ce);for(;X&&$(X,["SubExpression"]);)ce++,X=H.getParentNode(ce);return!!(X&&$(H.getParentNode(ce+1),["ConcatStatement"])&&$(H.getParentNode(ce+2),["AttrNode"]))}function ke(H,ce){let X=Ne(H,ce),pe=Pe(H,ce);return pe?i([X,p,a(pe)]):X}function Re(H,ce){let X=Ne(H,ce),pe=Pe(H,ce);return pe?[i([X,p,pe]),d]:X}function Ne(H,ce){return ce("path")}function Pe(H,ce){let X=H.getValue(),pe=[];if(X.params.length>0){let Ae=H.map(ce,"params");pe.push(...Ae)}if(X.hash&&X.hash.pairs.length>0){let Ae=ce("hash");pe.push(Ae)}return pe.length===0?"":l(p,pe)}function oe(H){return["as |",H.blockParams.join(" "),"|"]}r.exports={print:h,massageAstNode:w}}}),Yd=te({"src/language-handlebars/parsers.js"(){ne()}}),Qd=te({"node_modules/linguist-languages/data/Handlebars.json"(e,r){r.exports={name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}}}),Zd=te({"src/language-handlebars/index.js"(e,r){"use strict";ne();var t=_t(),s=Kd(),a=Yd(),n=[t(Qd(),()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],u={glimmer:s};r.exports={languages:n,printers:u,parsers:a}}}),eg=te({"src/language-graphql/pragma.js"(e,r){"use strict";ne();function t(a){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(a)}function s(a){return`# @format
|
||
|
|
||
|
`+a}r.exports={hasPragma:t,insertPragma:s}}}),tg=te({"src/language-graphql/loc.js"(e,r){"use strict";ne();function t(a){return typeof a.start=="number"?a.start:a.loc&&a.loc.start}function s(a){return typeof a.end=="number"?a.end:a.loc&&a.loc.end}r.exports={locStart:t,locEnd:s}}}),rg=te({"src/language-graphql/printer-graphql.js"(e,r){"use strict";ne();var{builders:{join:t,hardline:s,line:a,softline:n,group:u,indent:i,ifBreak:l}}=qe(),{isNextLineEmpty:p,isNonEmptyArray:d}=Ue(),{insertPragma:y}=eg(),{locStart:g,locEnd:c}=tg();function D(P,$,f){let T=P.getValue();if(!T)return"";if(typeof T=="string")return T;switch(T.kind){case"Document":{let m=[];return P.each((v,o,h)=>{m.push(f()),o!==h.length-1&&(m.push(s),p($.originalText,v.getValue(),c)&&m.push(s))},"definitions"),[...m,s]}case"OperationDefinition":{let m=$.originalText[g(T)]!=="{",v=Boolean(T.name);return[m?T.operation:"",m&&v?[" ",f("name")]:"",m&&!v&&d(T.variableDefinitions)?" ":"",d(T.variableDefinitions)?u(["(",i([n,t([l("",", "),n],P.map(f,"variableDefinitions"))]),n,")"]):"",E(P,f,T),T.selectionSet?!m&&!v?"":" ":"",f("selectionSet")]}case"FragmentDefinition":return["fragment ",f("name"),d(T.variableDefinitions)?u(["(",i([n,t([l("",", "),n],P.map(f,"variableDefinitions"))]),n,")"]):""," on ",f("typeCondition"),E(P,f,T)," ",f("selectionSet")];case"SelectionSet":return["{",i([s,t(s,_(P,$,f,"selections"))]),s,"}"];case"Field":return u([T.alias?[f("alias"),": "]:"",f("name"),T.arguments.length>0?u(["(",i([n,t([l("",", "),n],_(P,$,f,"arguments"))]),n,")"]):"",E(P,f,T),T.selectionSet?" ":"",f("selectionSet")]);case"Name":return T.value;case"StringValue":{if(T.block){let m=T.value.replace(/"""/g,"\\$&").split(`
|
||
|
`);return m.length===1&&(m[0]=m[0].trim()),m.every(v=>v==="")&&(m.length=0),t(s,['"""',...m,'"""'])}return['"',T.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']}case"IntValue":case"FloatValue":case"EnumValue":return T.value;case"BooleanValue":return T.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",f("name")];case"ListValue":return u(["[",i([n,t([l("",", "),n],P.map(f,"values"))]),n,"]"]);case"ObjectValue":return u(["{",$.bracketSpacing&&T.fields.length>0?" ":"",i([n,t([l("",", "),n],P.map(f,"fields"))]),n,l("",$.bracketSpacing&&T.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[f("name"),": ",f("value")];case"Directive":return["@",f("name"),T.arguments.length>0?u(["(",i([n,t([l("",", "),n],_(P,$,f,"arguments"))]),n,")"]):""];case"NamedType":return f("name");case"VariableDefinition":return[f("variable"),": ",f("type"),T.defaultValue?[" = ",f("defaultValue")]:"",E(P,f,T)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[f("description"),T.description?s:"",T.kind==="ObjectTypeExtension"?"extend ":"","type ",f("name"),T.interfaces.length>0?[" implements ",...S(P,$,f)]:"",E(P,f,T),T.fields.length>0?[" {",i([s,t(s,_(P,$,f,"fields"))]),s,"}"]:""];case"FieldDefinition":return[f("description"),T.description?s:"",f("name"),T.arguments.length>0?u(["(",i([n,t([l("",", "),n],_(P,$,f,"arguments"))]),n,")"]):"",": ",f("type"),E(P,f,T)];case"DirectiveDefinition":return[f("description"),T.description?s:"","directive ","@",f("name"),T.arguments.length>0?u(["(",i([n,t([l("",", "),n],_(P,$,f,"arguments"))]),n,")"]):"",T.repeatable?" repeatable":""," on ",t(" | ",P.map(f,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[f("description"),T.description?s:"",T.kind==="EnumTypeExtension"?"extend ":"","enum ",f("name"),E(P,f,T),T.values.length>0?[" {",i([s,t(s,_(P,$,f,"values"))]),s,"}"]:""];case"EnumValueDefinition":return[f("description"),T.description?s:"",f("name"),E(P,f,T)];case"InputValueDefinition":return[f("description"),T.description?T.description.block?s:a:"",f("name"),": ",f("type"),T.defaultValue?[" = ",f("defaultValue")]:"",E(P,f,T)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[f("description"),T.description?s:"",T.kind==="InputObjectTypeExtension"?"extend ":"","input ",f("name"),E(P,f,T),T.fields.length>0?[" {",i([s,t(s,_(P,$,f,"fields"))]),s,"}"]:""];case"SchemaExtension":return["extend schema",E(P,f,T),...T.operationTypes.length>0?[" {",i([s,t(s,_(P,$,f,"operationTypes"))]),s,"}"]:[]];case"SchemaDefinition":return[f("description"),T.description?s:"","schema",E(P,f,T)," {",T.operationTypes.length>0?i([s,t(s,_(P,$,f,"operationTypes"))]):"",s,"}"];case"OperationTypeDefinition":return[f("operation"),": ",f("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[f("description"),T.description?s:"",T.kind==="InterfaceTypeExtension"?"extend ":"","interface ",f("name"),T.interfaces.length>0?[" implements ",...S(P,$,f)]:"",E(P,f,T),T.fields.length>0?[" {",i([s,t(s,_(P,$,f,"fields"))]),s,"}"]:""];case"FragmentSpread":return["...",f("name"),E(P,f,T)];case"InlineFragment":return["...",T.typeCondition?[" on ",f("typeCondition")]:"",E(P,f,T)," ",f("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return u([f("description"),T.description?s:"",u([T.kind==="UnionTypeExtension"?"extend ":"","union ",f("name"),E(P,f,T),T.types.length>0?[" =",l(""," "),i([l([a," "]),t([a,"| "],P.map(f,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[f("description"),T.description?s:"",T.kind==="ScalarTypeExtension"?"extend ":"","scalar ",f("name"),E(P,f,T)];case"NonNullType":return[f("type"),"!"];case"ListType":return["[",f("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(T.kind))}}function E(P,$,f){if(f.directives.length===0)return"";let T=t(a,P.map($,"directives"));return f.kind==="FragmentDefinition"||f.kind==="OperationDefinition"?u([a,T]):[" ",u(i([n,T]))]}function _(P,$,f,T){return P.map((m,v,o)=>{let h=f();return v<o.length-1&&p($.originalText,m.getV
|
||
|
`)&&($.value=$.value.trim())}N.ignoredProperties=new Set(["loc","comments"]);function I(P){var $;let f=P.getValue();return f==null||($=f.comments)===null||$===void 0?void 0:$.some(T=>T.value.trim()==="prettier-ignore")}r.exports={print:D,massageAstNode:N,hasPrettierIgnore:I,insertPragma:y,printComment:F,canAttachComment:w}}}),ng=te({"src/language-graphql/options.js"(e,r){"use strict";ne();var t=Mt();r.exports={bracketSpacing:t.bracketSpacing}}}),ug=te({"src/language-graphql/parsers.js"(){ne()}}),sg=te({"node_modules/linguist-languages/data/GraphQL.json"(e,r){r.exports={name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139}}}),ig=te({"src/language-graphql/index.js"(e,r){"use strict";ne();var t=_t(),s=rg(),a=ng(),n=ug(),u=[t(sg(),()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],i={graphql:s};r.exports={languages:u,options:a,printers:i,parsers:n}}}),Po=te({"node_modules/collapse-white-space/index.js"(e,r){"use strict";ne(),r.exports=t;function t(s){return String(s).replace(/\s+/g," ")}}}),Io=te({"src/language-markdown/loc.js"(e,r){"use strict";ne();function t(a){return a.position.start.offset}function s(a){return a.position.end.offset}r.exports={locStart:t,locEnd:s}}}),ag=te({"src/language-markdown/constants.evaluate.js"(e,r){r.exports={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff0
|
||
|
(${n})`,"g"),"$1$2")).split(/([\t\n ]+)/);for(let[v,o]of T.entries()){if(v%2===1){f.push({type:"whitespace",value:/\n/.test(o)?`
|
||
|
`:" "});continue}if((v===0||v===T.length-1)&&o==="")continue;let h=o.split(new RegExp(`(${n})`));for(let[C,x]of h.entries())if(!((C===0||C===h.length-1)&&x==="")){if(C%2===0){x!==""&&m({type:"word",value:x,kind:N,hasLeadingPunctuation:y.test(x[0]),hasTrailingPunctuation:y.test(t(x))});continue}m(y.test(x)?{type:"word",value:x,kind:$,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:x,kind:d.test(x)?P:I,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return f;function m(v){let o=t(f);o&&o.type==="word"&&(o.kind===N&&v.kind===I&&!o.hasTrailingPunctuation||o.kind===I&&v.kind===N&&!v.hasLeadingPunctuation?f.push({type:"whitespace",value:" "}):!h(N,$)&&![o.value,v.value].some(C=>/\u3000/.test(C))&&f.push({type:"whitespace",value:""})),f.push(v);function h(C,x){return o.kind===C&&v.kind===x||o.kind===x&&v.kind===C}}}function c(F,S){let[,N,I,P]=S.slice(F.position.start.offset,F.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:N,marker:I,leadingSpaces:P}}function D(F,S){if(!F.ordered||F.children.length<2)return!1;let N=Number(c(F.children[0],S.originalText).numberText),I=Number(c(F.children[1],S.originalText).numberText);if(N===0&&F.children.length>2){let P=Number(c(F.children[2],S.originalText).numberText);return I===1&&P===1}return I===1}function E(F,S){let{value:N}=F;return F.position.end.offset===S.length&&N.endsWith(`
|
||
|
`)&&S.endsWith(`
|
||
|
`)?N.slice(0,-1):N}function _(F,S){return function N(I,P,$){let f=Object.assign({},S(I,P,$));return f.children&&(f.children=f.children.map((T,m)=>N(T,m,[f,...$]))),f}(F,null,[])}function w(F){if((F==null?void 0:F.type)!=="link"||F.children.length!==1)return!1;let[S]=F.children;return s(F)===s(S)&&a(F)===a(S)}r.exports={mapAst:_,splitText:g,punctuationPattern:i,getFencedCodeBlockValue:E,getOrderedListItemInfo:c,hasGitDiffFriendlyOrderedList:D,INLINE_NODE_TYPES:l,INLINE_NODE_WRAPPER_TYPES:p,isAutolink:w}}}),og=te({"src/language-markdown/embed.js"(e,r){"use strict";ne();var{inferParserByLanguage:t,getMaxContinuousCount:s}=Ue(),{builders:{hardline:a,markAsRoot:n},utils:{replaceEndOfLine:u}}=qe(),i=su(),{getFencedCodeBlockValue:l}=iu();function p(d,y,g,c){let D=d.getValue();if(D.type==="code"&&D.lang!==null){let E=t(D.lang,c);if(E){let _=c.__inJsTemplate?"~":"`",w=_.repeat(Math.max(3,s(D.value,_)+1)),F={parser:E};D.lang==="tsx"&&(F.filepath="dummy.tsx");let S=g(l(D,c.originalText),F,{stripTrailingHardline:!0});return n([w,D.lang,D.meta?" "+D.meta:"",a,u(S),a,w])}}switch(D.type){case"front-matter":return i(D,g);case"importExport":return[g(D.value,{parser:"babel"},{stripTrailingHardline:!0}),a];case"jsx":return g(`<$>${D.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null}r.exports=p}}),ko=te({"src/language-markdown/pragma.js"(e,r){"use strict";ne();var t=_o(),s=["format","prettier"];function a(n){let u=`@(${s.join("|")})`,i=new RegExp([`<!--\\s*${u}\\s*-->`,`{\\s*\\/\\*\\s*${u}\\s*\\*\\/\\s*}`,`<!--.*\r?
|
||
|
[\\s\\S]*(^|
|
||
|
)[^\\S
|
||
|
]*${u}[^\\S
|
||
|
]*($|
|
||
|
)[\\s\\S]*
|
||
|
.*-->`].join("|"),"m"),l=n.match(i);return(l==null?void 0:l.index)===0}r.exports={startWithPragma:a,hasPragma:n=>a(t(n).content.trimStart()),insertPragma:n=>{let u=t(n),i=`<!-- @${s[0]} -->`;return u.frontMatter?`${u.frontMatter.raw}
|
||
|
|
||
|
${i}
|
||
|
|
||
|
${u.content}`:`${i}
|
||
|
|
||
|
${u.content}`}}}}),lg=te({"src/language-markdown/print-preprocess.js"(e,r){"use strict";ne();var t=lt(),{getOrderedListItemInfo:s,mapAst:a,splitText:n}=iu(),u=/^.$/su;function i(w,F){return w=d(w,F),w=c(w),w=p(w,F),w=E(w,F),w=_(w,F),w=D(w,F),w=l(w),w=y(w),w}function l(w){return a(w,F=>F.type!=="import"&&F.type!=="export"?F:Object.assign(Object.assign({},F),{},{type:"importExport"}))}function p(w,F){return a(w,S=>S.type!=="inlineCode"||F.proseWrap==="preserve"?S:Object.assign(Object.assign({},S),{},{value:S.value.replace(/\s+/g," ")}))}function d(w,F){return a(w,S=>S.type!=="text"||S.value==="*"||S.value==="_"||!u.test(S.value)||S.position.end.offset-S.position.start.offset===S.value.length?S:Object.assign(Object.assign({},S),{},{value:F.originalText.slice(S.position.start.offset,S.position.end.offset)}))}function y(w){return g(w,(F,S)=>F.type==="importExport"&&S.type==="importExport",(F,S)=>({type:"importExport",value:F.value+`
|
||
|
|
||
|
`+S.value,position:{start:F.position.start,end:S.position.end}}))}function g(w,F,S){return a(w,N=>{if(!N.children)return N;let I=N.children.reduce((P,$)=>{let f=t(P);return f&&F(f,$)?P.splice(-1,1,S(f,$)):P.push($),P},[]);return Object.assign(Object.assign({},N),{},{children:I})})}function c(w){return g(w,(F,S)=>F.type==="text"&&S.type==="text",(F,S)=>({type:"text",value:F.value+S.value,position:{start:F.position.start,end:S.position.end}}))}function D(w,F){return a(w,(S,N,I)=>{let[P]=I;if(S.type!=="text")return S;let{value:$}=S;return P.type==="paragraph"&&(N===0&&($=$.trimStart()),N===P.children.length-1&&($=$.trimEnd())),{type:"sentence",position:S.position,children:n($,F)}})}function E(w,F){return a(w,(S,N,I)=>{if(S.type==="code"){let P=/^\n?(?: {4,}|\t)/.test(F.originalText.slice(S.position.start.offset,S.position.end.offset));if(S.isIndented=P,P)for(let $=0;$<I.length;$++){let f=I[$];if(f.hasIndentedCodeblock)break;f.type==="list"&&(f.hasIndentedCodeblock=!0)}}return S})}function _(w,F){return a(w,(I,P,$)=>{if(I.type==="list"&&I.children.length>0){for(let f=0;f<$.length;f++){let T=$[f];if(T.type==="list"&&!T.isAligned)return I.isAligned=!1,I}I.isAligned=N(I)}return I});function S(I){return I.children.length===0?-1:I.children[0].position.start.column-1}function N(I){if(!I.ordered)return!0;let[P,$]=I.children;if(s(P,F.originalText).leadingSpaces.length>1)return!0;let T=S(P);if(T===-1)return!1;if(I.children.length===1)return T%F.tabWidth===0;let m=S($);return T!==m?!1:T%F.tabWidth===0?!0:s($,F.originalText).leadingSpaces.length>1}}r.exports=i}}),cg=te({"src/language-markdown/clean.js"(e,r){"use strict";ne();var t=Po(),{isFrontMatterNode:s}=Ue(),{startWithPragma:a}=ko(),n=new Set(["position","raw"]);function u(i,l,p){if((i.type==="front-matter"||i.type==="code"||i.type==="yaml"||i.type==="import"||i.type==="export"||i.type==="jsx")&&delete l.value,i.type==="list"&&delete l.isAligned,(i.type==="list"||i.type==="listItem")&&(delete l.spread,delete l.loose),i.type==="text"||(i.type==="inlineCode"&&(l.value=i.value.replace(/[\t\n ]+/g," ")),i.type==="wikiLink"&&(l.value=i.value.trim().replace(/[\t\n]+/g," ")),(i.type==="definition"||i.type==="linkReference"||i.type==="imageReference")&&(l.label=t(i.label)),(i.type==="definition"||i.type==="link"||i.type==="image")&&i.title&&(l.title=i.title.replace(/\\(["')])/g,"$1")),p&&p.type==="root"&&p.children.length>0&&(p.children[0]===i||s(p.children[0])&&p.children[1]===i)&&i.type==="html"&&a(i.value)))return null}u.ignoredProperties=n,r.exports=u}}),pg=te({"src/language-markdown/printer-markdown.js"(e,r){"use strict";ne();var t=Po(),{getLast:s,getMinNotPresentContinuousCount:a,getMaxContinuousCount:n,getStringWidth:u,isNonEmptyArray:i}=Ue(),{builders:{breakParent:l,join:p,line:d,literalline:y,markAsRoot:g,hardline:c,softline:D,ifBreak:E,fill:_,align:w,indent:F,group:S,hardlineWithoutBreakParent:N},utils:{normalizeDoc:I,replaceTextEndOfLine:P},printer:{printDocToString:$}}=qe(),f=og(),{insertPragma:T}=ko(),{locStart:m,locEnd:v}=Io(),o=lg(),h=cg(),{getFencedCodeBlockValue:C,hasGitDiffFriendlyOrderedList:x,splitText:b,punctuationPattern:B,INLINE_NODE_TYPES:k,INLINE_NODE_WRAPPER_TYPES:M,isAutolink:R}=iu(),q=new Set(["importExport"]),J=["heading","tableCell","link","wikiLink"],L=new Set(["listItem","definition","footnoteDefinition"]);function Q(oe,H,ce){let X=oe.getValue();if(ge(oe))return b(H.originalText.slice(X.position.start.offset,X.position.end.offset),H).map(pe=>pe.type==="word"?pe.value:pe.value===""?"":W(oe,pe.value,H));switch(X.type){case"front-matter":return H.originalText.slice(X.position.start.offset,X.position.end.offset);case"root":return X.children.length===0?"":[I(de(oe,H,ce)),q.has(z(X).type)?"":c];case"paragraph":return ue(oe,H,ce,{postprocessor:_});case"sentence":return ue(oe,H,ce);case"word":{let pe=X.value.replace(/\*/g,"\\$&").replace(new RegExp([`(^|${B})(_+)`,`(_+)(${B}|$)`].join("|"),"g"),(fe,A,G,re,ye)=>(G?`${A}${G}`:`${re}${ye}`).replace(/_/g,"\\_")),Ae=(fe,A,G)=>fe.type==="sentence"&&G===0,Ce=(fe,A,G)=>R(fe.children[G-1]);return pe!==X.value&&(oe.match(voi
|
||
|
`)return c;let X=ce.proseWrap==="always"&&!le(oe,J);return H!==""?X?d:" ":X?D:""}function K(oe,H,ce){let X=oe.getValue(),pe=[],Ae=oe.map(ye=>ye.map((Ee,Be)=>{let ve=$(ce(),H).formatted,ze=u(ve);return pe[Be]=Math.max(pe[Be]||3,ze),{text:ve,width:ze}},"children"),"children"),Ce=A(!1);if(H.proseWrap!=="never")return[l,Ce];let fe=A(!0);return[l,S(E(fe,Ce))];function A(ye){let Ee=[re(Ae[0],ye),G(ye)];return Ae.length>1&&Ee.push(p(N,Ae.slice(1).map(Be=>re(Be,ye)))),p(N,Ee)}function G(ye){return`| ${pe.map((Be,ve)=>{let ze=X.align[ve],be=ze==="center"||ze==="left"?":":"-",Ye=ze==="center"||ze==="right"?":":"-",Se=ye?"-":"-".repeat(Be-2);return`${be}${Se}${Ye}`}).join(" | ")} |`}function re(ye,Ee){return`| ${ye.map((ve,ze)=>{let{text:be,width:Ye}=ve;if(Ee)return be;let Se=pe[ze]-Ye,Ie=X.align[ze],Oe=0;Ie==="right"?Oe=Se:Ie==="center"&&(Oe=Math.floor(Se/2));let Je=Se-Oe;return`${" ".repeat(Oe)}${be}${" ".repeat(Je)}`}).join(" | ")} |`}}function de(oe,H,ce){let X=[],pe=null,{children:Ae}=oe.getValue();for(let[Ce,fe]of Ae.entries())switch(U(fe)){case"start":pe===null&&(pe={index:Ce,offset:fe.position.end.offset});break;case"end":pe!==null&&(X.push({start:pe,end:{index:Ce,offset:fe.position.start.offset}}),pe=null);break;default:break}return ue(oe,H,ce,{processor:(Ce,fe)=>{if(X.length>0){let A=X[0];if(fe===A.start.index)return[Fe(Ae[A.start.index]),H.originalText.slice(A.start.offset,A.end.offset),Fe(Ae[A.end.index])];if(A.start.index<fe&&fe<A.end.index)return!1;if(fe===A.end.index)return X.shift(),!1}return ce()}})}function ue(oe,H,ce){let X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{postprocessor:pe}=X,Ae=X.processor||(()=>ce()),Ce=oe.getValue(),fe=[],A;return oe.each((G,re)=>{let ye=G.getValue(),Ee=Ae(G,re);if(Ee!==!1){let Be={parts:fe,prevNode:A,parentNode:Ce,options:H};Z(ye,Be)&&(fe.push(c),A&&q.has(A.type)||(se(ye,Be)||De(ye,Be))&&fe.push(c),De(ye,Be)&&fe.push(c)),fe.push(Ee),A=ye}},"children"),pe?pe(fe):fe}function Fe(oe){if(oe.type==="html")return oe.value;if(oe.type==="paragraph"&&Array.isArray(oe.children)&&oe.children.length===1&&oe.children[0].type==="esComment")return["{/* ",oe.children[0].value," */}"]}function z(oe){let H=oe;for(;i(H.children);)H=s(H.children);return H}function U(oe){let H;if(oe.type==="html")H=oe.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let ce;oe.type==="esComment"?ce=oe:oe.type==="paragraph"&&oe.children.length===1&&oe.children[0].type==="esComment"&&(ce=oe.children[0]),ce&&(H=ce.value.match(/^prettier-ignore(?:-(start|end))?$/))}return H?H[1]||"next":!1}function Z(oe,H){let ce=H.parts.length===0,X=k.includes(oe.type),pe=oe.type==="html"&&M.includes(H.parentNode.type);return!ce&&!X&&!pe}function se(oe,H){var ce,X,pe;let Ce=(H.prevNode&&H.prevNode.type)===oe.type&&L.has(oe.type),fe=H.parentNode.type==="listItem"&&!H.parentNode.loose,A=((ce=H.prevNode)===null||ce===void 0?void 0:ce.type)==="listItem"&&H.prevNode.loose,G=U(H.prevNode)==="next",re=oe.type==="html"&&((X=H.prevNode)===null||X===void 0?void 0:X.type)==="html"&&H.prevNode.position.end.line+1===oe.position.start.line,ye=oe.type==="html"&&H.parentNode.type==="listItem"&&((pe=H.prevNode)===null||pe===void 0?void 0:pe.type)==="paragraph"&&H.prevNode.position.end.line+1===oe.position.start.line;return A||!(Ce||fe||G||re||ye)}function De(oe,H){let ce=H.prevNode&&H.prevNode.type==="list",X=oe.type==="code"&&oe.isIndented;return ce&&X}function ge(oe){let H=le(oe,["linkReference","imageReference"]);return H&&(H.type!=="linkReference"||H.referenceType!=="full")}function he(oe){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ce=[" ",...Array.isArray(H)?H:[H]];return new RegExp(ce.map(X=>`\\${X}`).join("|")).test(oe)?`<${oe}>`:oe}function we(oe,H){let ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!oe)return"";if(ce)return" "+we(oe,H,!1);if(oe=oe.replace(/\\(["')])/g,"$1"),oe.includes('"')&&oe.includes("'")&&!oe.includes(")"))return`(${oe})`;let X=oe.split("'").length-1,pe=oe.split('"').length-1,Ae=X>pe?'"':pe>X||H.singleQuote?"'":'"';return oe=oe.replace(/\\/,"\\\\"),oe=oe.r
|
||
|
`,"\f","\r"," "]),E=A=>A.replace(/^[\t\n\f\r ]+/,""),_=A=>A.replace(/[\t\n\f\r ]+$/,""),w=A=>E(_(A)),F=A=>A.replace(/^[\t\f\r ]*\n/g,""),S=A=>F(_(A)),N=A=>A.split(/[\t\n\f\r ]+/),I=A=>A.match(/^[\t\n\f\r ]*/)[0],P=A=>{let[,G,re,ye]=A.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:G,trailingWhitespace:ye,text:re}},$=A=>/[\t\n\f\r ]/.test(A);function f(A,G){return!!(A.type==="ieConditionalComment"&&A.lastChild&&!A.lastChild.isSelfClosing&&!A.lastChild.endSourceSpan||A.type==="ieConditionalComment"&&!A.complete||se(A)&&A.children.some(re=>re.type!=="text"&&re.type!=="interpolation")||X(A,G)&&!o(A)&&A.type!=="interpolation")}function T(A){return A.type==="attribute"||!A.parent||!A.prev?!1:m(A.prev)}function m(A){return A.type==="comment"&&A.value.trim()==="prettier-ignore"}function v(A){return A.type==="text"||A.type==="comment"}function o(A){return A.type==="element"&&(A.fullName==="script"||A.fullName==="style"||A.fullName==="svg:style"||c(A)&&(A.name==="script"||A.name==="style"))}function h(A){return A.children&&!o(A)}function C(A){return o(A)||A.type==="interpolation"||x(A)}function x(A){return we(A).startsWith("pre")}function b(A,G){let re=ye();if(re&&!A.prev&&A.parent&&A.parent.tagDefinition&&A.parent.tagDefinition.ignoreFirstLf)return A.type==="interpolation";return re;function ye(){return s(A)?!1:(A.type==="text"||A.type==="interpolation")&&A.prev&&(A.prev.type==="text"||A.prev.type==="interpolation")?!0:!A.parent||A.parent.cssDisplay==="none"?!1:se(A.parent)?!0:!(!A.prev&&(A.parent.type==="root"||se(A)&&A.parent||o(A.parent)||H(A.parent,G)||!ue(A.parent.cssDisplay))||A.prev&&!U(A.prev.cssDisplay))}}function B(A,G){return s(A)?!1:(A.type==="text"||A.type==="interpolation")&&A.next&&(A.next.type==="text"||A.next.type==="interpolation")?!0:!A.parent||A.parent.cssDisplay==="none"?!1:se(A.parent)?!0:!(!A.next&&(A.parent.type==="root"||se(A)&&A.parent||o(A.parent)||H(A.parent,G)||!Fe(A.parent.cssDisplay))||A.next&&!z(A.next.cssDisplay))}function k(A){return Z(A.cssDisplay)&&!o(A)}function M(A){return s(A)||A.next&&A.sourceSpan.end&&A.sourceSpan.end.line+1<A.next.sourceSpan.start.line}function R(A){return q(A)||A.type==="element"&&A.children.length>0&&(["body","script","style"].includes(A.name)||A.children.some(G=>ee(G)))||A.firstChild&&A.firstChild===A.lastChild&&A.firstChild.type!=="text"&&V(A.firstChild)&&(!A.lastChild.isTrailingSpaceSensitive||j(A.lastChild))}function q(A){return A.type==="element"&&A.children.length>0&&(["html","head","ul","ol","select"].includes(A.name)||A.cssDisplay.startsWith("table")&&A.cssDisplay!=="table-cell")}function J(A){return Y(A)||A.prev&&L(A.prev)||Q(A)}function L(A){return Y(A)||A.type==="element"&&A.fullName==="br"||Q(A)}function Q(A){return V(A)&&j(A)}function V(A){return A.hasLeadingSpaces&&(A.prev?A.prev.sourceSpan.end.line<A.sourceSpan.start.line:A.parent.type==="root"||A.parent.startSourceSpan.end.line<A.sourceSpan.start.line)}function j(A){return A.hasTrailingSpaces&&(A.next?A.next.sourceSpan.start.line>A.sourceSpan.end.line:A.parent.type==="root"||A.parent.endSourceSpan&&A.parent.endSourceSpan.start.line>A.sourceSpan.end.line)}function Y(A){switch(A.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(A.name)}return!1}function ie(A){return A.lastChild?ie(A.lastChild):A}function ee(A){return A.children&&A.children.some(G=>G.type!=="text")}function le(A){let{type:G,lang:re}=A.attrMap;if(G==="module"||G==="text/javascript"||G==="text/babel"||G==="application/javascript"||re==="jsx")return"babel";if(G==="application/x-typescript"||re==="ts"||re==="tsx")return"typescript";if(G==="text/markdown")return"markdown";if(G==="text/html")return"html";if(G&&(G.endsWith("json")||G.endsWith("importmap"))||G==="speculationrules")return"json";if(G==="text/x-handlebars-template")return"glimmer"}function W(A,G){let{lang:re}=A.attrMap;if(!re||re==="postcss"||re==="css")return"css";if(re==="scss")return"scss";if(re==="less")return"less";if(re==="stylus")return t("stylus",G)}function K(A,G){if(A.name==="scrip
|
||
|
`)){if(re.length===0)continue;if(!D.has(re[0]))return 0;let ye=I(re).length;re.length!==ye&&ye<G&&(G=ye)}return G===Number.POSITIVE_INFINITY?0:G}function Re(A){let G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke(A);return G===0?A:A.split(`
|
||
|
`).map(re=>re.slice(G)).join(`
|
||
|
`)}function Ne(A,G){let re=0;for(let ye=0;ye<A.length;ye++)A[ye]===G&&re++;return re}function Pe(A){return A.replace(/'/g,"'").replace(/"/g,'"')}var oe=new Set(["template","style","script"]);function H(A,G){return ce(A,G)&&!oe.has(A.fullName)}function ce(A,G){return G.parser==="vue"&&A.type==="element"&&A.parent.type==="root"&&A.fullName.toLowerCase()!=="html"}function X(A,G){return ce(A,G)&&(H(A,G)||A.attrMap.lang&&A.attrMap.lang!=="html")}function pe(A){let G=A.fullName;return G.charAt(0)==="#"||G==="slot-scope"||G==="v-slot"||G.startsWith("v-slot:")}function Ae(A,G){let re=A.parent;if(!ce(re,G))return!1;let ye=re.fullName,Ee=A.fullName;return ye==="script"&&Ee==="setup"||ye==="style"&&Ee==="vars"}function Ce(A){let G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A.value;return A.parent.isWhitespaceSensitive?A.parent.isIndentationSensitive?l(G):l(Re(S(G)),n):i(u(a,N(G)))}function fe(A,G){return ce(A,G)&&A.name==="script"}r.exports={htmlTrim:w,htmlTrimPreserveIndentation:S,hasHtmlWhitespace:$,getLeadingAndTrailingHtmlWhitespace:P,canHaveInterpolation:h,countChars:Ne,countParents:De,dedentString:Re,forceBreakChildren:q,forceBreakContent:R,forceNextEmptyLine:M,getLastDescendant:ie,getNodeCssStyleDisplay:he,getNodeCssStyleWhiteSpace:we,hasPrettierIgnore:T,inferScriptParser:K,isVueCustomBlock:H,isVueNonHtmlBlock:X,isVueScriptTag:fe,isVueSlotAttribute:pe,isVueSfcBindingsAttribute:Ae,isVueSfcBlock:ce,isDanglingSpaceSensitiveNode:k,isIndentationSensitiveNode:x,isLeadingSpaceSensitiveNode:b,isPreLikeNode:se,isScriptLikeTag:o,isTextLikeNode:v,isTrailingSpaceSensitiveNode:B,isWhitespaceSensitiveNode:C,isUnknownNamespace:c,preferHardlineAsLeadingSpaces:J,preferHardlineAsTrailingSpaces:L,shouldPreserveContent:f,unescapeQuoteEntities:Pe,getTextValueParts:Ce}}}),hg=te({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(e){"use strict";ne(),Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96;function r(i){return i>=e.$TAB&&i<=e.$SPACE||i==e.$NBSP}e.isWhitespace=r;function t(i){return e.$0<=i&&i<=e.$9}e.isDigit=t;function s(i){return i>=e.$a&&i<=e.$z||i>=e.$A&&i<=e.$Z}e.isAsciiLetter=s;function a(i){return i>=e.$a&&i<=e.$f||i>=e.$A&&i<=e.$F||t(i)}e.isAsciiHexDigit=a;function n(i){return i===e.$LF||i===e.$CR}e.isNewLine=n;function u(i){return e.$0<=i&&i<=e.$7}e.isOctalDigit=u}}),vg=te({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(e){"use strict";ne(),Object.defineProperty(e,"__esModule",{value:!0});var r=class{constructor(s,a,n){this.filePath=s,this.name=a,this.members=n}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};e.StaticSymbol=r;var t=class{constructor(){this.cache=new Map}get(s,a,n){n=n||[];let u=n.length?`.${n.join(".")}`:"",i=`"${s}".${a}${u}`,l=this.cache.get(i);return l||(l=new r(s,a,n),this.cache.set(i,l)),l}};e.StaticSymbolCache=t}}),Cg=te({"node_modules/angular-html-parser/lib/compiler/src/util.js"(e){"use strict";ne(),Object.defineProperty(e,"__esModule",{value:!0});var r=/-+([a-z0-9])/g;function t(o){return o.replace(r,function(){for(var h=arguments.length,C=new Array(h),x=0;x<h;x++)C[x]=arguments[x];return C[1].toUpperCase()})}e.dashCaseToCamelCase=t;function s(o,h){return n(o,":",h)}e.splitAtColon=s;function a(o,h){return n(o,".",h)}e.splitAtPeriod=a;function n(o,h,C){let x=o.indexOf(h);return x==-1?C:[o.slice(0,x).trim(),o.slice(x+1).tri
|
||
|
`);return C===-1?h:h.substring(0,C)}e.stringify=N;function I(o){return typeof o=="function"&&o.hasOwnProperty("__forward_ref__")?o():o}e.resolveForwardRef=I;function P(o){return!!o&&typeof o.then=="function"}e.isPromise=P;var $=class{constructor(o){this.full=o;let h=o.split(".");this.major=h[0],this.minor=h[1],this.patch=h.slice(2).join(".")}};e.Version=$;var f=typeof window<"u"&&window,T=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,m=typeof globalThis<"u"&&globalThis,v=m||f||T;e.global=v}}),Eg=te({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){"use strict";ne(),Object.defineProperty(e,"__esModule",{value:!0});var r=vg(),t=Cg(),s=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function a(C){return C.replace(/\W/g,"_")}e.sanitizeIdentifier=a;var n=0;function u(C){if(!C||!C.reference)return null;let x=C.reference;if(x instanceof r.StaticSymbol)return x.name;if(x.__anonymousType)return x.__anonymousType;let b=t.stringify(x);return b.indexOf("(")>=0?(b=`anonymous_${n++}`,x.__anonymousType=b):b=a(b),b}e.identifierName=u;function i(C){let x=C.reference;return x instanceof r.StaticSymbol?x.filePath:`./${t.stringify(x)}`}e.identifierModuleUrl=i;function l(C,x){return`View_${u({reference:C})}_${x}`}e.viewClassName=l;function p(C){return`RenderType_${u({reference:C})}`}e.rendererTypeName=p;function d(C){return`HostView_${u({reference:C})}`}e.hostViewClassName=d;function y(C){return`${u({reference:C})}NgFactory`}e.componentFactoryName=y;var g;(function(C){C[C.Pipe=0]="Pipe",C[C.Directive=1]="Directive",C[C.NgModule=2]="NgModule",C[C.Injectable=3]="Injectable"})(g=e.CompileSummaryKind||(e.CompileSummaryKind={}));function c(C){return C.value!=null?a(C.value):u(C.identifier)}e.tokenName=c;function D(C){return C.identifier!=null?C.identifier.reference:C.value}e.tokenReference=D;var E=class{constructor(){let{moduleUrl:C,styles:x,styleUrls:b}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=C||null,this.styles=P(x),this.styleUrls=P(b)}};e.CompileStylesheetMetadata=E;var _=class{constructor(C){let{encapsulation:x,template:b,templateUrl:B,htmlAst:k,styles:M,styleUrls:R,externalStylesheets:q,animations:J,ngContentSelectors:L,interpolation:Q,isInline:V,preserveWhitespaces:j}=C;if(this.encapsulation=x,this.template=b,this.templateUrl=B,this.htmlAst=k,this.styles=P(M),this.styleUrls=P(R),this.externalStylesheets=P(q),this.animations=J?f(J):[],this.ngContentSelectors=L||[],Q&&Q.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=Q,this.isInline=V,this.preserveWhitespaces=j}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};e.CompileTemplateMetadata=_;var w=class{static create(C){let{isHost:x,type:b,isComponent:B,selector:k,exportAs:M,changeDetection:R,inputs:q,outputs:J,host:L,providers:Q,viewProviders:V,queries:j,guards:Y,viewQueries:ie,entryComponents:ee,template:le,componentViewType:W,rendererType:K,componentFactory:de}=C,ue={},Fe={},z={};L!=null&&Object.keys(L).forEach(se=>{let De=L[se],ge=se.match(s);ge===null?z[se]=De:ge[1]!=null?Fe[ge[1]]=De:ge[2]!=null&&(ue[ge[2]]=De)});let U={};q!=null&&q.forEach(se=>{let De=t.splitAtColon(se,[se,se]);U[De[0]]=De[1]});let Z={};return J!=null&&J.forEach(se=>{let De=t.splitAtColon(se,[se,se]);Z[De[0]]=De[1]}),new w({isHost:x,type:b,isComponent:!!B,selector:k,exportAs:M,changeDetection:R,inputs:U,outputs:Z,hostListeners:ue,hostProperties:Fe,hostAttributes:z,providers:Q,viewProviders:V,queries:j,guards:Y,viewQueries:ie,entryComponents:ee,template:le,componentViewType:W,rendererType:K,componentFactory:de})}constructor(C){let{isHost:x,type:b,isComponent:B,selector:k,exportAs:M,changeDetection:R,inputs:q,outputs:J,hostListeners:L,hostProperties:Q,hostAttributes:V,providers:j,viewProviders:Y,queries:ie,guards:ee,viewQueries:le,entryComponents:W,template:K,componentViewType:de,rendererType:ue,componentFactory:Fe}=C;this.isHost=!!x,this.type=b,this.isComponent=B,this.selec
|
||
|
`&&++_==y)););for(E=0,_=0;E<d&&D<g.length-1&&(D++,E++,!(g[D]==`
|
||
|
`&&++_==y)););return{before:g.substring(c,this.offset),after:g.substring(this.offset,D+1)}}return null}};e.ParseLocation=s;var a=class{constructor(d,y){this.content=d,this.url=y}};e.ParseSourceFile=a;var n=class{constructor(d,y){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.start=d,this.end=y,this.details=g}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=n,e.EMPTY_PARSE_LOCATION=new s(new a("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new n(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION);var u;(function(d){d[d.WARNING=0]="WARNING",d[d.ERROR=1]="ERROR"})(u=e.ParseErrorLevel||(e.ParseErrorLevel={}));var i=class{constructor(d,y){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.ERROR;this.span=d,this.msg=y,this.level=g}contextualMessage(){let d=this.span.start.getContext(100,3);return d?`${this.msg} ("${d.before}[${u[this.level]} ->]${d.after}")`:this.msg}toString(){let d=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${d}`}};e.ParseError=i;function l(d,y){let g=t.identifierModuleUrl(y),c=g!=null?`in ${d} ${t.identifierName(y)} in ${g}`:`in ${d} ${t.identifierName(y)}`,D=new a("",c);return new n(new s(D,-1,-1,-1),new s(D,-1,-1,-1))}e.typeSourceSpan=l;function p(d,y,g){let c=`in ${d} ${y} in ${g}`,D=new a("",c);return new n(new s(D,-1,-1,-1),new s(D,-1,-1,-1))}e.r3JitTypeSourceSpan=p}}),Ag=te({"src/language-html/print-preprocess.js"(e,r){"use strict";ne();var{ParseSourceSpan:t}=Fg(),{htmlTrim:s,getLeadingAndTrailingHtmlWhitespace:a,hasHtmlWhitespace:n,canHaveInterpolation:u,getNodeCssStyleDisplay:i,isDanglingSpaceSensitiveNode:l,isIndentationSensitiveNode:p,isLeadingSpaceSensitiveNode:d,isTrailingSpaceSensitiveNode:y,isWhitespaceSensitiveNode:g,isVueScriptTag:c}=Rt(),D=[_,w,S,I,P,T,$,f,m,N,v];function E(o,h){for(let C of D)C(o,h);return o}function _(o){o.walk(h=>{if(h.type==="element"&&h.tagDefinition.ignoreFirstLf&&h.children.length>0&&h.children[0].type==="text"&&h.children[0].value[0]===`
|
||
|
`){let C=h.children[0];C.value.length===1?h.removeChild(C):C.value=C.value.slice(1)}})}function w(o){let h=C=>C.type==="element"&&C.prev&&C.prev.type==="ieConditionalStartComment"&&C.prev.sourceSpan.end.offset===C.startSourceSpan.start.offset&&C.firstChild&&C.firstChild.type==="ieConditionalEndComment"&&C.firstChild.sourceSpan.start.offset===C.startSourceSpan.end.offset;o.walk(C=>{if(C.children)for(let x=0;x<C.children.length;x++){let b=C.children[x];if(!h(b))continue;let B=b.prev,k=b.firstChild;C.removeChild(B),x--;let M=new t(B.sourceSpan.start,k.sourceSpan.end),R=new t(M.start,b.sourceSpan.end);b.condition=B.condition,b.sourceSpan=R,b.startSourceSpan=M,b.removeChild(k)}})}function F(o,h,C){o.walk(x=>{if(x.children)for(let b=0;b<x.children.length;b++){let B=x.children[b];if(B.type!=="text"&&!h(B))continue;B.type!=="text"&&(B.type="text",B.value=C(B));let k=B.prev;!k||k.type!=="text"||(k.value+=B.value,k.sourceSpan=new t(k.sourceSpan.start,B.sourceSpan.end),x.removeChild(B),b--)}})}function S(o){return F(o,h=>h.type==="cdata",h=>`<![CDATA[${h.value}]]>`)}function N(o){let h=C=>C.type==="element"&&C.attrs.length===0&&C.children.length===1&&C.firstChild.type==="text"&&!n(C.children[0].value)&&!C.firstChild.hasLeadingSpaces&&!C.firstChild.hasTrailingSpaces&&C.isLeadingSpaceSensitive&&!C.hasLeadingSpaces&&C.isTrailingSpaceSensitive&&!C.hasTrailingSpaces&&C.prev&&C.prev.type==="text"&&C.next&&C.next.type==="text";o.walk(C=>{if(C.children)for(let x=0;x<C.children.length;x++){let b=C.children[x];if(!h(b))continue;let B=b.prev,k=b.next;B.value+=`<${b.rawName}>`+b.firstChild.value+`</${b.rawName}>`+k.value,B.sourceSpan=new t(B.sourceSpan.start,k.sourceSpan.end),B.isTrailingSpaceSensitive=k.isTrailingSpaceSensitive,B.hasTrailingSpaces=k.hasTrailingSpaces,C.removeChild(b),x--,C.removeChild(k)}})}function I(o,h){if(h.parser==="html")return;let C=/{{(.+?)}}/s;o.walk(x=>{if(u(x))for(let b of x.children){if(b.type!=="text")continue;let B=b.sourceSpan.start,k=null,M=b.value.split(C);for(let R=0;R<M.length;R++,B=k){let q=M[R];if(R%2===0){k=B.moveBy(q.length),q.length>0&&x.insertChildBefore(b,{type:"text",value:q,sourceSpan:new t(B,k)});continue}k=B.moveBy(q.length+4),x.insertChildBefore(b,{type:"interpolation",sourceSpan:new t(B,k),children:q.length===0?[]:[{type:"text",value:q,sourceSpan:new t(B.moveBy(2),k.moveBy(-2))}]})}x.removeChild(b)}})}function P(o){o.walk(h=>{if(!h.children)return;if(h.children.length===0||h.children.length===1&&h.children[0].type==="text"&&s(h.children[0].value).length===0){h.hasDanglingSpaces=h.children.length>0,h.children=[];return}let C=g(h),x=p(h);if(!C)for(let b=0;b<h.children.length;b++){let B=h.children[b];if(B.type!=="text")continue;let{leadingWhitespace:k,text:M,trailingWhitespace:R}=a(B.value),q=B.prev,J=B.next;M?(B.value=M,B.sourceSpan=new t(B.sourceSpan.start.moveBy(k.length),B.sourceSpan.end.moveBy(-R.length)),k&&(q&&(q.hasTrailingSpaces=!0),B.hasLeadingSpaces=!0),R&&(B.hasTrailingSpaces=!0,J&&(J.hasLeadingSpaces=!0))):(h.removeChild(B),b--,(k||R)&&(q&&(q.hasTrailingSpaces=!0),J&&(J.hasLeadingSpaces=!0)))}h.isWhitespaceSensitive=C,h.isIndentationSensitive=x})}function $(o){o.walk(h=>{h.isSelfClosing=!h.children||h.type==="element"&&(h.tagDefinition.isVoid||h.startSourceSpan===h.endSourceSpan)})}function f(o,h){o.walk(C=>{C.type==="element"&&(C.hasHtmComponentClosingTag=C.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(h.originalText.slice(C.endSourceSpan.start.offset,C.endSourceSpan.end.offset)))})}function T(o,h){o.walk(C=>{C.cssDisplay=i(C,h)})}function m(o,h){o.walk(C=>{let{children:x}=C;if(x){if(x.length===0){C.isDanglingSpaceSensitive=l(C);return}for(let b of x)b.isLeadingSpaceSensitive=d(b,h),b.isTrailingSpaceSensitive=y(b,h);for(let b=0;b<x.length;b++){let B=x[b];B.isLeadingSpaceSensitive=(b===0||B.prev.isTrailingSpaceSensitive)&&B.isLeadingSpaceSensitive,B.isTrailingSpaceSensitive=(b===x.length-1||B.next.isLeadingSpaceSensitive)&&B.isTrailingSpaceSensitive}}})}function v(o,h){if(h.parser==="vue"){let C=o.children.find(b=>c(b,h));if(!C)return;let{lang:x}=C.attrMap;(x==="ts"||x==="typescript")&&(h.
|
||
|
|
||
|
`+a.replace(/^\s*\n/,"")}r.exports={hasPragma:t,insertPragma:s}}}),au=te({"src/language-html/loc.js"(e,r){"use strict";ne();function t(a){return a.sourceSpan.start.offset}function s(a){return a.sourceSpan.end.offset}r.exports={locStart:t,locEnd:s}}}),ur=te({"src/language-html/print/tag.js"(e,r){"use strict";ne();var t=Zt(),{isNonEmptyArray:s}=Ue(),{builders:{indent:a,join:n,line:u,softline:i,hardline:l},utils:{replaceTextEndOfLine:p}}=qe(),{locStart:d,locEnd:y}=au(),{isTextLikeNode:g,getLastDescendant:c,isPreLikeNode:D,hasPrettierIgnore:E,shouldPreserveContent:_,isVueSfcBlock:w}=Rt();function F(L,Q){return[L.isSelfClosing?"":S(L,Q),N(L,Q)]}function S(L,Q){return L.lastChild&&o(L.lastChild)?"":[I(L,Q),$(L,Q)]}function N(L,Q){return(L.next?m(L.next):v(L.parent))?"":[f(L,Q),P(L,Q)]}function I(L,Q){return v(L)?f(L.lastChild,Q):""}function P(L,Q){return o(L)?$(L.parent,Q):h(L)?q(L.next):""}function $(L,Q){if(t(!L.isSelfClosing),T(L,Q))return"";switch(L.type){case"ieConditionalComment":return"<!";case"element":if(L.hasHtmComponentClosingTag)return"<//";default:return`</${L.rawName}`}}function f(L,Q){if(T(L,Q))return"";switch(L.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"element":if(L.isSelfClosing)return"/>";default:return">"}}function T(L,Q){return!L.isSelfClosing&&!L.endSourceSpan&&(E(L)||_(L.parent,Q))}function m(L){return L.prev&&L.prev.type!=="docType"&&!g(L.prev)&&L.isLeadingSpaceSensitive&&!L.hasLeadingSpaces}function v(L){return L.lastChild&&L.lastChild.isTrailingSpaceSensitive&&!L.lastChild.hasTrailingSpaces&&!g(c(L.lastChild))&&!D(L)}function o(L){return!L.next&&!L.hasTrailingSpaces&&L.isTrailingSpaceSensitive&&g(c(L))}function h(L){return L.next&&!g(L.next)&&g(L)&&L.isTrailingSpaceSensitive&&!L.hasTrailingSpaces}function C(L){let Q=L.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return Q?Q[1]?Q[1].split(/\s+/):!0:!1}function x(L){return!L.prev&&L.isLeadingSpaceSensitive&&!L.hasLeadingSpaces}function b(L,Q,V){let j=L.getValue();if(!s(j.attrs))return j.isSelfClosing?" ":"";let Y=j.prev&&j.prev.type==="comment"&&C(j.prev.value),ie=typeof Y=="boolean"?()=>Y:Array.isArray(Y)?ue=>Y.includes(ue.rawName):()=>!1,ee=L.map(ue=>{let Fe=ue.getValue();return ie(Fe)?p(Q.originalText.slice(d(Fe),y(Fe))):V()},"attrs"),le=j.type==="element"&&j.fullName==="script"&&j.attrs.length===1&&j.attrs[0].fullName==="src"&&j.children.length===0,K=Q.singleAttributePerLine&&j.attrs.length>1&&!w(j,Q)?l:u,de=[a([le?" ":u,n(K,ee)])];return j.firstChild&&x(j.firstChild)||j.isSelfClosing&&v(j.parent)||le?de.push(j.isSelfClosing?" ":""):de.push(Q.bracketSameLine?j.isSelfClosing?" ":"":j.isSelfClosing?u:i),de}function B(L){return L.firstChild&&x(L.firstChild)?"":J(L)}function k(L,Q,V){let j=L.getValue();return[M(j,Q),b(L,Q,V),j.isSelfClosing?"":B(j)]}function M(L,Q){return L.prev&&h(L.prev)?"":[R(L,Q),q(L)]}function R(L,Q){return x(L)?J(L.parent):m(L)?f(L.prev,Q):""}function q(L){switch(L.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${L.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(L.condition)return`<!--[if ${L.condition}]><!--><${L.rawName}`;default:return`<${L.rawName}`}}function J(L){switch(t(!L.isSelfClosing),L.type){case"ieConditionalComment":return"]>";case"element":if(L.condition)return"><!--<![endif]-->";default:return">"}}r.exports={printClosingTag:F,printClosingTagStart:S,printClosingTagStartMarker:$,printClosingTagEndMarker:f,printClosingTagSuffix:P,printClosingTagEnd:N,needsToBorrowLastChildClosingTagEndMarker:v,needsToBorrowParentClosingTagStartMarker:o,needsToBorrowPrevClosingTagEndMarker:m,printOpeningTag:k,printOpeningTagStart:M,printOpeningTagPrefix:R,printOpeningTagStartMarker:q,printOpeningTagEndMarker:J,needsToBorrowNextOpeningTagStartMarker:h,needsToBorrowParentOpeningTagEndMarker:x}}}),xg=te({"node_modules/parse-srcset/src/parse-srcset.js"(e,r){ne(),function(t,s){typeof defin
|
||
|
`||$==="\f"||$==="\r"}function u($){var f,T=$.exec(t.substring(S));if(T)return f=T[0],S+=f.length,f}for(var i=t.length,l=/^[ \t\n\r\u000c]+/,p=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,y=/[,]+$/,g=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,D,E,_,w,F,S=0,N=[];;){if(u(p),S>=i)return N;D=u(d),E=[],D.slice(-1)===","?(D=D.replace(y,""),P()):I()}function I(){for(u(l),_="",w="in descriptor";;){if(F=t.charAt(S),w==="in descriptor")if(n(F))_&&(E.push(_),_="",w="after descriptor");else if(F===","){S+=1,_&&E.push(_),P();return}else if(F==="(")_=_+F,w="in parens";else if(F===""){_&&E.push(_),P();return}else _=_+F;else if(w==="in parens")if(F===")")_=_+F,w="in descriptor";else if(F===""){E.push(_),P();return}else _=_+F;else if(w==="after descriptor"&&!n(F))if(F===""){P();return}else w="in descriptor",S-=1;S+=1}}function P(){var $=!1,f,T,m,v,o={},h,C,x,b,B;for(v=0;v<E.length;v++)h=E[v],C=h[h.length-1],x=h.substring(0,h.length-1),b=parseInt(x,10),B=parseFloat(x),g.test(x)&&C==="w"?((f||T)&&($=!0),b===0?$=!0:f=b):c.test(x)&&C==="x"?((f||T||m)&&($=!0),B<0?$=!0:T=B):g.test(x)&&C==="h"?((m||T)&&($=!0),b===0?$=!0:m=b):$=!0;$?a&&a.error&&a.error("Invalid srcset descriptor found in '"+t+"' at '"+h+"'."):(o.url=D,f&&(o.w=f),T&&(o.d=T),m&&(o.h=m),N.push(o))}}})}}),bg=te({"src/language-html/syntax-attribute.js"(e,r){"use strict";ne();var t=xg(),{builders:{ifBreak:s,join:a,line:n}}=qe();function u(l){let p=t(l,{logger:{error(I){throw new Error(I)}}}),d=p.some(I=>{let{w:P}=I;return P}),y=p.some(I=>{let{h:P}=I;return P}),g=p.some(I=>{let{d:P}=I;return P});if(d+y+g>1)throw new Error("Mixed descriptor in srcset is not supported");let c=d?"w":y?"h":"d",D=d?"w":y?"h":"x",E=I=>Math.max(...I),_=p.map(I=>I.url),w=E(_.map(I=>I.length)),F=p.map(I=>I[c]).map(I=>I?I.toString():""),S=F.map(I=>{let P=I.indexOf(".");return P===-1?I.length:P}),N=E(S);return a([",",n],_.map((I,P)=>{let $=[I],f=F[P];if(f){let T=w-I.length+1,m=N-S[P],v=" ".repeat(T+m);$.push(s(v," "),f+D)}return $}))}function i(l){return l.trim().split(/\s+/).join(" ")}r.exports={printImgSrcset:u,printClassNames:i}}}),Tg=te({"src/language-html/syntax-vue.js"(e,r){"use strict";ne();var{builders:{group:t}}=qe();function s(i,l){let{left:p,operator:d,right:y}=a(i);return[t(l(`function _(${p}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",d," ",l(y,{parser:"__js_expression"},{stripTrailingHardline:!0})]}function a(i){let l=/(.*?)\s+(in|of)\s+(.*)/s,p=/,([^,\]}]*)(?:,([^,\]}]*))?$/,d=/^\(|\)$/g,y=i.match(l);if(!y)return;let g={};if(g.for=y[3].trim(),!g.for)return;let c=y[1].trim().replace(d,""),D=c.match(p);D?(g.alias=c.replace(p,""),g.iterator1=D[1].trim(),D[2]&&(g.iterator2=D[2].trim())):g.alias=c;let E=[g.alias,g.iterator1,g.iterator2];if(!E.some((_,w)=>!_&&(w===0||E.slice(w+1).some(Boolean))))return{left:E.filter(Boolean).join(","),operator:y[2],right:g.for}}function n(i,l){return l(`function _(${i}) {}`,{parser:"babel",__isVueBindings:!0})}function u(i){let l=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,p=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,d=i.trim();return l.test(d)||p.test(d)}r.exports={isVueEventBindingExpression:u,printVueFor:s,printVueBindings:n}}}),Lo=te({"src/language-html/get-node-content.js"(e,r){"use strict";ne();var{needsToBorrowParentClosingTagStartMarker:t,printClosingTagStartMarker:s,needsToBorrowLastChildClosingTagEndMarker:a,printClosingTagEndMarker:n,needsToBorrowParentOpeningTagEndMarker:u,printOpeningTagEndMarker:i}=ur();function l(p,d){let y=p.startSourceSpan.end.offset;p.firstChild&&u(p.firstChild)&&(y-=i(p).length);let g=p.endSourceSpan.start.offset;return p.lastChild&&t(p.lastChild)?g+=s(p,d).length:a(p)&&(g-=n(p.lastChild,d).length),d.originalText.slice(y,g)}r.exports=l}}),Bg=te({"src/language-html/embed.js"(e,r){"use strict";ne();var{builders:{breakParent:t,group:s,hardline:a,indent:n,line:u,fill:i,softline:l},utils:{mapDoc:p,replaceTextEndOfLine:d}}=qe(),y=su(),{printClosingTag:g,printClosingTagSuffix:c,needsToBorrowPrevClosingTagEndMarker:D,printOpeningTagPrefix:E,printOpeningTag:_}=ur(),{p
|
||
|
|
||
|
${n}`}r.exports={isPragma:t,hasPragma:s,insertPragma:a}}}),Og=te({"src/language-yaml/loc.js"(e,r){"use strict";ne();function t(a){return a.position.start.offset}function s(a){return a.position.end.offset}r.exports={locStart:t,locEnd:s}}}),jg=te({"src/language-yaml/embed.js"(e,r){"use strict";ne();function t(s,a,n,u){if(s.getValue().type==="root"&&u.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(u.filepath))return n(u.originalText,Object.assign(Object.assign({},u),{},{parser:"json"}))}r.exports=t}}),$t=te({"src/language-yaml/utils.js"(e,r){"use strict";ne();var{getLast:t,isNonEmptyArray:s}=Ue();function a(f,T){let m=0,v=f.stack.length-1;for(let o=0;o<v;o++){let h=f.stack[o];n(h)&&T(h)&&m++}return m}function n(f,T){return f&&typeof f.type=="string"&&(!T||T.includes(f.type))}function u(f,T,m){return T("children"in f?Object.assign(Object.assign({},f),{},{children:f.children.map(v=>u(v,T,f))}):f,m)}function i(f,T,m){Object.defineProperty(f,T,{get:m,enumerable:!1})}function l(f,T){let m=0,v=T.length;for(let o=f.position.end.offset-1;o<v;o++){let h=T[o];if(h===`
|
||
|
`&&m++,m===1&&/\S/.test(h))return!1;if(m===2)return!0}return!1}function p(f){switch(f.getValue().type){case"tag":case"anchor":case"comment":return!1}let m=f.stack.length;for(let v=1;v<m;v++){let o=f.stack[v],h=f.stack[v-1];if(Array.isArray(h)&&typeof o=="number"&&o!==h.length-1)return!1}return!0}function d(f){return s(f.children)?d(t(f.children)):f}function y(f){return f.value.trim()==="prettier-ignore"}function g(f){let T=f.getValue();if(T.type==="documentBody"){let m=f.getParentNode();return S(m.head)&&y(t(m.head.endComments))}return E(T)&&y(t(T.leadingComments))}function c(f){return!s(f.children)&&!D(f)}function D(f){return E(f)||_(f)||w(f)||F(f)||S(f)}function E(f){return s(f==null?void 0:f.leadingComments)}function _(f){return s(f==null?void 0:f.middleComments)}function w(f){return f==null?void 0:f.indicatorComment}function F(f){return f==null?void 0:f.trailingComment}function S(f){return s(f==null?void 0:f.endComments)}function N(f){let T=[],m;for(let v of f.split(/( +)/))v!==" "?m===" "?T.push(v):T.push((T.pop()||"")+v):m===void 0&&T.unshift(""),m=v;return m===" "&&T.push((T.pop()||"")+" "),T[0]===""&&(T.shift(),T.unshift(" "+(T.shift()||""))),T}function I(f,T,m){let v=T.split(`
|
||
|
`).map((o,h,C)=>h===0&&h===C.length-1?o:h!==0&&h!==C.length-1?o.trim():h===0?o.trimEnd():o.trimStart());return m.proseWrap==="preserve"?v.map(o=>o.length===0?[]:[o]):v.map(o=>o.length===0?[]:N(o)).reduce((o,h,C)=>C!==0&&v[C-1].length>0&&h.length>0&&!(f==="quoteDouble"&&t(t(o)).endsWith("\\"))?[...o.slice(0,-1),[...t(o),...h]]:[...o,h],[]).map(o=>m.proseWrap==="never"?[o.join(" ")]:o)}function P(f,T){let{parentIndent:m,isLastDescendant:v,options:o}=T,h=f.position.start.line===f.position.end.line?"":o.originalText.slice(f.position.start.offset,f.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1],C;if(f.indent===null){let B=h.match(/^(?<leadingSpace> *)[^\n\r ]/m);C=B?B.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else C=f.indent-1+m;let x=h.split(`
|
||
|
`).map(B=>B.slice(C));if(o.proseWrap==="preserve"||f.type==="blockLiteral")return b(x.map(B=>B.length===0?[]:[B]));return b(x.map(B=>B.length===0?[]:N(B)).reduce((B,k,M)=>M!==0&&x[M-1].length>0&&k.length>0&&!/^\s/.test(k[0])&&!/^\s|\s$/.test(t(B))?[...B.slice(0,-1),[...t(B),...k]]:[...B,k],[]).map(B=>B.reduce((k,M)=>k.length>0&&/\s$/.test(t(k))?[...k.slice(0,-1),t(k)+" "+M]:[...k,M],[])).map(B=>o.proseWrap==="never"?[B.join(" ")]:B));function b(B){if(f.chomping==="keep")return t(B).length===0?B.slice(0,-1):B;let k=0;for(let M=B.length-1;M>=0&&B[M].length===0;M--)k++;return k===0?B:k>=2&&!v?B.slice(0,-(k-1)):B.slice(0,-k)}}function $(f){if(!f)return!0;switch(f.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}r.exports={getLast:t,getAncestorCount:a,isNode:n,isEmptyNode:c,isInlineNode:$,mapNode:u,defineShortcut:i,isNextLineEmpty:l,isLastDescendantNode:p,getBlockValueLineContents:P,getFlowScalarLineContents:I,getLastDescendantNode:d,hasPrettierIgnore:g,hasLeadingComments:E,hasMiddleComments:_,hasIndicatorComment:w,hasTrailingComment:F,hasEndComments:S}}}),qg=te({"src/language-yaml/print-preprocess.js"(e,r){"use strict";ne();var{defineShortcut:t,mapNode:s}=$t();function a(u){return s(u,n)}function n(u){switch(u.type){case"document":t(u,"head",()=>u.children[0]),t(u,"body",()=>u.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":t(u,"content",()=>u.children[0]);break;case"mappingItem":case"flowMappingItem":t(u,"key",()=>u.children[0]),t(u,"value",()=>u.children[1]);break}return u}r.exports=a}}),Mr=te({"src/language-yaml/print/misc.js"(e,r){"use strict";ne();var{builders:{softline:t,align:s}}=qe(),{hasEndComments:a,isNextLineEmpty:n,isNode:u}=$t(),i=new WeakMap;function l(y,g){let c=y.getValue(),D=y.stack[0],E;return i.has(D)?E=i.get(D):(E=new Set,i.set(D,E)),!E.has(c.position.end.line)&&(E.add(c.position.end.line),n(c,g)&&!p(y.getParentNode()))?t:""}function p(y){return a(y)&&!u(y,["documentHead","documentBody","flowMapping","flowSequence"])}function d(y,g){return s(" ".repeat(y),g)}r.exports={alignWithSpaces:d,shouldPrintEndComments:p,printNextEmptyLine:l}}}),Mg=te({"src/language-yaml/print/flow-mapping-sequence.js"(e,r){"use strict";ne();var{builders:{ifBreak:t,line:s,softline:a,hardline:n,join:u}}=qe(),{isEmptyNode:i,getLast:l,hasEndComments:p}=$t(),{printNextEmptyLine:d,alignWithSpaces:y}=Mr();function g(D,E,_){let w=D.getValue(),F=w.type==="flowMapping",S=F?"{":"[",N=F?"}":"]",I=a;F&&w.children.length>0&&_.bracketSpacing&&(I=s);let P=l(w.children),$=P&&P.type==="flowMappingItem"&&i(P.key)&&i(P.value);return[S,y(_.tabWidth,[I,c(D,E,_),_.trailingComma==="none"?"":t(","),p(w)?[n,u(n,D.map(E,"endComments"))]:""]),$?"":I,N]}function c(D,E,_){let w=D.getValue();return D.map((S,N)=>[E(),N===w.children.length-1?"":[",",s,w.children[N].position.start.line!==w.children[N+1].position.start.line?d(S,_.originalText):""]],"children")}r.exports={printFlowMapping:g,printFlowSequence:g}}}),Rg=te({"src/language-yaml/print/mapping-item.js"(e,r){"use strict";ne();var{builders:{conditionalGroup:t,group:s,hardline:a,ifBreak:n,join:u,line:i}}=qe(),{hasLeadingComments:l,hasMiddleComments:p,hasTrailingComment:d,hasEndComments:y,isNode:g,isEmptyNode:c,isInlineNode:D}=$t(),{alignWithSpaces:E}=Mr();function _(N,I,P,$,f){let{key:T,value:m}=N,v=c(T),o=c(m);if(v&&o)return": ";let h=$("key"),C=F(N)?" ":"";if(o)return N.type==="flowMappingItem"&&I.type==="flowMapping"?h:N.type==="mappingItem"&&w(T.content,f)&&!d(T.content)&&(!I.tag||I.tag.value!=="tag:yaml.org,2002:set")?[h,C,":"]:["? ",E(2,h)];let x=$("value");if(v)return[": ",E(2,x)];if(l(m)||!D(T.content))return["? ",E(2,h),a,u("",P.map($,"value","leadingComments").map(q=>[q,a])),": ",E(2,x)];if(S(T.content)&&!l(T.content)&&!p(T.content)&&!d(T.content)&&!y(T)&&!l(m.content)&&!p(m.content)&&!y(m)&&w(m.content,f))return[h,C,": ",x];let b=Symbol("mappingKey"),B=s([n("? "),s(E(2,h),{id:b})]),k=[a,": ",E(2,x)],M=[C,":"];l(m.content)||y(m)&&m.content&&!g(m.conten
|
||
|
`);case"always":return!/[\n ]/.test(N.value);default:return!1}}function F(N){return N.key.content&&N.key.content.type==="alias"}function S(N){if(!N)return!0;switch(N.type){case"plain":case"quoteDouble":case"quoteSingle":return N.position.start.line===N.position.end.line;case"alias":return!0;default:return!1}}r.exports=_}}),$g=te({"src/language-yaml/print/block.js"(e,r){"use strict";ne();var{builders:{dedent:t,dedentToRoot:s,fill:a,hardline:n,join:u,line:i,literalline:l,markAsRoot:p},utils:{getDocParts:d}}=qe(),{getAncestorCount:y,getBlockValueLineContents:g,hasIndicatorComment:c,isLastDescendantNode:D,isNode:E}=$t(),{alignWithSpaces:_}=Mr();function w(F,S,N){let I=F.getValue(),P=y(F,v=>E(v,["sequence","mapping"])),$=D(F),f=[I.type==="blockFolded"?">":"|"];I.indent!==null&&f.push(I.indent.toString()),I.chomping!=="clip"&&f.push(I.chomping==="keep"?"+":"-"),c(I)&&f.push(" ",S("indicatorComment"));let T=g(I,{parentIndent:P,isLastDescendant:$,options:N}),m=[];for(let[v,o]of T.entries())v===0&&m.push(n),m.push(a(d(u(i,o)))),v!==T.length-1?m.push(o.length===0?n:p(l)):I.chomping==="keep"&&$&&m.push(s(o.length===0?n:l));return I.indent===null?f.push(t(_(N.tabWidth,m))):f.push(s(_(I.indent-1+P,m))),f}r.exports=w}}),Vg=te({"src/language-yaml/printer-yaml.js"(e,r){"use strict";ne();var{builders:{breakParent:t,fill:s,group:a,hardline:n,join:u,line:i,lineSuffix:l,literalline:p},utils:{getDocParts:d,replaceTextEndOfLine:y}}=qe(),{isPreviousLineEmpty:g}=Ue(),{insertPragma:c,isPragma:D}=Lg(),{locStart:E}=Og(),_=jg(),{getFlowScalarLineContents:w,getLastDescendantNode:F,hasLeadingComments:S,hasMiddleComments:N,hasTrailingComment:I,hasEndComments:P,hasPrettierIgnore:$,isLastDescendantNode:f,isNode:T,isInlineNode:m}=$t(),v=qg(),{alignWithSpaces:o,printNextEmptyLine:h,shouldPrintEndComments:C}=Mr(),{printFlowMapping:x,printFlowSequence:b}=Mg(),B=Rg(),k=$g();function M(j,Y,ie){let ee=j.getValue(),le=[];ee.type!=="mappingValue"&&S(ee)&&le.push([u(n,j.map(ie,"leadingComments")),n]);let{tag:W,anchor:K}=ee;W&&le.push(ie("tag")),W&&K&&le.push(" "),K&&le.push(ie("anchor"));let de="";T(ee,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!f(j)&&(de=h(j,Y.originalText)),(W||K)&&(T(ee,["sequence","mapping"])&&!N(ee)?le.push(n):le.push(" ")),N(ee)&&le.push([ee.middleComments.length===1?"":n,u(n,j.map(ie,"middleComments")),n]);let ue=j.getParentNode();return $(j)?le.push(y(Y.originalText.slice(ee.position.start.offset,ee.position.end.offset).trimEnd(),p)):le.push(a(R(ee,ue,j,Y,ie))),I(ee)&&!T(ee,["document","documentHead"])&&le.push(l([ee.type==="mappingValue"&&!ee.content?"":" ",ue.type==="mappingKey"&&j.getParentNode(2).type==="mapping"&&m(ee)?"":t,ie("trailingComment")])),C(ee)&&le.push(o(ee.type==="sequenceItem"?2:0,[n,u(n,j.map(Fe=>[g(Y.originalText,Fe.getValue(),E)?n:"",ie()],"endComments"))])),le.push(de),le}function R(j,Y,ie,ee,le){switch(j.type){case"root":{let{children:W}=j,K=[];ie.each((ue,Fe)=>{let z=W[Fe],U=W[Fe+1];Fe!==0&&K.push(n),K.push(le()),J(z,U)?(K.push(n,"..."),I(z)&&K.push(" ",le("trailingComment"))):U&&!I(U.head)&&K.push(n,"---")},"children");let de=F(j);return(!T(de,["blockLiteral","blockFolded"])||de.chomping!=="keep")&&K.push(n),K}case"document":{let W=Y.children[ie.getName()+1],K=[];return L(j,W,Y,ee)==="head"&&((j.head.children.length>0||j.head.endComments.length>0)&&K.push(le("head")),I(j.head)?K.push(["---"," ",le(["head","trailingComment"])]):K.push("---")),q(j)&&K.push(le("body")),u(n,K)}case"documentHead":return u(n,[...ie.map(le,"children"),...ie.map(le,"endComments")]);case"documentBody":{let{children:W,endComments:K}=j,de="";if(W.length>0&&K.length>0){let ue=F(j);T(ue,["blockFolded","blockLiteral"])?ue.chomping!=="keep"&&(de=[n,n]):de=n}return[u(n,ie.map(le,"children")),de,u(n,ie.map(le,"endComments"))]}case"directive":return["%",u(" ",[j.name,...j.parameters])];case"comment":return["#",j.value];case"alias":return["*",j.value];case"tag":return ee.originalText.slice(j.position.start.offset,j.position.end.offset);case"anchor":return["&",j.value];case"plain":return Q(j.type,ee.originalText.slic
|