@mastra/deployer-sandbox 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/LICENSE.md +30 -0
  3. package/dist/alias.d.ts +10 -0
  4. package/dist/alias.d.ts.map +1 -0
  5. package/dist/chunk-CSXC6CZL.cjs +115 -0
  6. package/dist/chunk-CSXC6CZL.cjs.map +1 -0
  7. package/dist/chunk-Z636GNUQ.js +101 -0
  8. package/dist/chunk-Z636GNUQ.js.map +1 -0
  9. package/dist/client/index.cjs +159 -0
  10. package/dist/client/index.cjs.map +1 -0
  11. package/dist/client/index.d.ts +98 -0
  12. package/dist/client/index.d.ts.map +1 -0
  13. package/dist/client/index.js +155 -0
  14. package/dist/client/index.js.map +1 -0
  15. package/dist/deployer.d.ts +57 -0
  16. package/dist/deployer.d.ts.map +1 -0
  17. package/dist/engine.d.ts +19 -0
  18. package/dist/engine.d.ts.map +1 -0
  19. package/dist/index.cjs +381 -0
  20. package/dist/index.cjs.map +1 -0
  21. package/dist/index.d.ts +6 -0
  22. package/dist/index.d.ts.map +1 -0
  23. package/dist/index.js +372 -0
  24. package/dist/index.js.map +1 -0
  25. package/dist/manifest.d.ts +7 -0
  26. package/dist/manifest.d.ts.map +1 -0
  27. package/dist/shared.d.ts +63 -0
  28. package/dist/shared.d.ts.map +1 -0
  29. package/dist/studio/assets/CommitMono-400-Regular-DzkyLZ26.woff2 +0 -0
  30. package/dist/studio/assets/CommitMono-700-Regular-DmOSN4kd.woff2 +0 -0
  31. package/dist/studio/assets/MonaSans-VariableFont_wdth-wght-CX-7s9jm.ttf +0 -0
  32. package/dist/studio/assets/babel-lWBcy2sH.js +16 -0
  33. package/dist/studio/assets/bash-atvbtKCR.js +1 -0
  34. package/dist/studio/assets/core-CBT9ED6Q.js +12 -0
  35. package/dist/studio/assets/engine-compile-BkERmzkH.js +137 -0
  36. package/dist/studio/assets/engine-javascript-CSIo_1eZ.js +1 -0
  37. package/dist/studio/assets/estree-Dd9JfUIE.js +44 -0
  38. package/dist/studio/assets/github-dark-DHJKELXO.js +1 -0
  39. package/dist/studio/assets/github-light-DAi9KRSo.js +1 -0
  40. package/dist/studio/assets/index-CORJOrgI.js +2 -0
  41. package/dist/studio/assets/index-yUiD89B4.js +1 -0
  42. package/dist/studio/assets/javascript-ySlJ1b_l.js +1 -0
  43. package/dist/studio/assets/json-BQoSv7ci.js +1 -0
  44. package/dist/studio/assets/jsx-BAng5TT0.js +1 -0
  45. package/dist/studio/assets/livekit-client.esm-CKIgC2IJ.js +39 -0
  46. package/dist/studio/assets/main-BYaOwSFl.js +784 -0
  47. package/dist/studio/assets/markdown-UIAJJxZW.js +1 -0
  48. package/dist/studio/assets/preload-helper-PPVm8Dsz.js +1 -0
  49. package/dist/studio/assets/python-DhUJRlN_.js +1 -0
  50. package/dist/studio/assets/shell-CjFT_Tl9.js +1 -0
  51. package/dist/studio/assets/standalone-Dfz2oS5J.js +29 -0
  52. package/dist/studio/assets/style-DMLmyAwy.css +1 -0
  53. package/dist/studio/assets/tsx-B6W0miNI.js +1 -0
  54. package/dist/studio/assets/typescript-Dj6nwHGl.js +1 -0
  55. package/dist/studio/index.html +100 -0
  56. package/dist/studio/mastra.svg +17 -0
  57. package/dist/studio/routes-manifest.json +27 -0
  58. package/dist/types.d.ts +90 -0
  59. package/dist/types.d.ts.map +1 -0
  60. package/package.json +18 -18
@@ -0,0 +1,29 @@
1
+ var It=Object.defineProperty,je=(e,u)=>{for(var t in u)It(e,t,{get:u[t],enumerable:!0})},Pt={};je(Pt,{__debug:()=>Li,check:()=>Pi,doc:()=>bt,format:()=>Nt,formatWithCursor:()=>xt,getSupportInfo:()=>ji,util:()=>wt,version:()=>si});var oe=(e,u)=>(t,r,...n)=>t|1&&r==null?void 0:(u.call(r)??r[e]).apply(r,n),jt=String.prototype.replaceAll??function(e,u){return e.global?this.replace(e,u):this.split(e).join(u)},Lt=oe("replaceAll",function(){if(typeof this=="string")return jt}),pe=Lt,$t=class{diff(e,u,t={}){let r;typeof t=="function"?(r=t,t={}):"callback"in t&&(r=t.callback);let n=this.castInput(e,t),D=this.castInput(u,t),i=this.removeEmpty(this.tokenize(n,t)),o=this.removeEmpty(this.tokenize(D,t));return this.diffWithOptionsObj(i,o,t,r)}diffWithOptionsObj(e,u,t,r){var n;let D=C=>{if(C=this.postProcess(C,t),r){setTimeout(function(){r(C)},0);return}else return C},i=u.length,o=e.length,a=1,s=i+o;t.maxEditLength!=null&&(s=Math.min(s,t.maxEditLength));let l=(n=t.timeout)!==null&&n!==void 0?n:1/0,F=Date.now()+l,c=[{oldPos:-1,lastComponent:void 0}],d=this.extractCommon(c[0],u,e,0,t);if(c[0].oldPos+1>=o&&d+1>=i)return D(this.buildValues(c[0].lastComponent,u,e));let f=-1/0,h=1/0,p=()=>{for(let C=Math.max(f,-a);C<=Math.min(h,a);C+=2){let E,g=c[C-1],m=c[C+1];g&&(c[C-1]=void 0);let A=!1;if(m){let b=m.oldPos-C;A=m&&0<=b&&b<i}let v=g&&g.oldPos+1<o;if(!A&&!v){c[C]=void 0;continue}if(!v||A&&g.oldPos<m.oldPos?E=this.addToPath(m,!0,!1,0,t):E=this.addToPath(g,!1,!0,1,t),d=this.extractCommon(E,u,e,C,t),E.oldPos+1>=o&&d+1>=i)return D(this.buildValues(E.lastComponent,u,e))||!0;c[C]=E,E.oldPos+1>=o&&(h=Math.min(h,C-1)),d+1>=i&&(f=Math.max(f,C+1))}a++};if(r)(function C(){setTimeout(function(){if(a>s||Date.now()>F)return r(void 0);p()||C()},0)})();else for(;a<=s&&Date.now()<=F;){let C=p();if(C)return C}}addToPath(e,u,t,r,n){let D=e.lastComponent;return D&&!n.oneChangePerToken&&D.added===u&&D.removed===t?{oldPos:e.oldPos+r,lastComponent:{count:D.count+1,added:u,removed:t,previousComponent:D.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:u,removed:t,previousComponent:D}}}extractCommon(e,u,t,r,n){let D=u.length,i=t.length,o=e.oldPos,a=o-r,s=0;for(;a+1<D&&o+1<i&&this.equals(t[o+1],u[a+1],n);)a++,o++,s++,n.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return s&&!n.oneChangePerToken&&(e.lastComponent={count:s,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=o,a}equals(e,u,t){return t.comparator?t.comparator(e,u):e===u||!!t.ignoreCase&&e.toLowerCase()===u.toLowerCase()}removeEmpty(e){let u=[];for(let t=0;t<e.length;t++)e[t]&&u.push(e[t]);return u}castInput(e,u){return e}tokenize(e,u){return Array.from(e)}join(e){return e.join("")}postProcess(e,u){return e}get useLongestToken(){return!1}buildValues(e,u,t){let r=[],n;for(;e;)r.push(e),n=e.previousComponent,delete e.previousComponent,e=n;r.reverse();let D=r.length,i=0,o=0,a=0;for(;i<D;i++){let s=r[i];if(s.removed)s.value=this.join(t.slice(a,a+s.count)),a+=s.count;else{if(!s.added&&this.useLongestToken){let l=u.slice(o,o+s.count);l=l.map(function(F,c){let d=t[a+c];return d.length>F.length?d:F}),s.value=this.join(l)}else s.value=this.join(u.slice(o,o+s.count));o+=s.count,s.added||(a+=s.count)}}return r}},Rt=class extends $t{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},Mt=new Rt;function Vt(e,u,t){return Mt.diff(e,u,t)}var Wt=()=>{},zt=Wt,Su="cr",xu="crlf",Kt="lf",Ut=Kt,Le="\r",Nu=`\r
2
+ `,he=`
3
+ `,Jt=he;function qt(e){let u=e.indexOf(Le);return u!==-1?e.charAt(u+1)===he?xu:Su:Ut}function $e(e){return e===Su?Le:e===xu?Nu:Jt}var Gt=new Map([[he,/\n/g],[Le,/\r/g],[Nu,/\r\n/g]]);function _u(e,u){let t=Gt.get(u);return e.match(t)?.length??0}var Ht=/\r\n?/g;function Yt(e){return pe(0,e,Ht,he)}var Ce=Symbol.for("comments");function Zt(e){return this[e<0?this.length+e:e]}var Qt=oe("at",function(){if(Array.isArray(this)||typeof this=="string")return Zt}),y=Qt,Z="string",j="array",U="cursor",L="indent",$="align",R="trim",w="group",O="fill",k="if-break",M="indent-if-break",V="line-suffix",W="line-suffix-boundary",B="line",T="label",x="break-parent",Ou=new Set([U,L,$,R,w,O,k,M,V,W,B,T,x]);function Xt(e){let u=e.length;for(;u>0&&(e[u-1]==="\r"||e[u-1]===`
4
+ `);)u--;return u<e.length?e.slice(0,u):e}function Re(e,u,t){if(!e.has(u)){let r=t(u);e.set(u,r)}return e.get(u)}function er(e){if(typeof e=="string")return Z;if(Array.isArray(e))return j;if(!e)return;let{type:u}=e;if(Ou.has(u))return u}var Q=er,ur=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function tr(e){let u=e===null?"null":typeof e;if(u!=="string"&&u!=="object")return`Unexpected doc '${u}',
5
+ Expected it to be 'string' or 'object'.`;if(Q(e))throw new Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let r=ur([...Ou].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'.
6
+ Expected it to be ${r}.`}var rr=class extends Error{name="InvalidDocError";constructor(e){super(tr(e)),this.doc=e}},te=rr,uu={};function nr(e,u,t,r){let n=[e];for(;n.length>0;){let D=n.pop();if(D===uu){t(n.pop());continue}t&&n.push(D,uu);let i=Q(D);if(!i)throw new te(D);if(u?.(D)!==!1)switch(i){case j:case O:{let o=i===j?D:D.parts;for(let a=o.length,s=a-1;s>=0;--s)n.push(o[s]);break}case k:n.push(D.flatContents,D.breakContents);break;case w:if(r&&D.expandedStates)for(let o=D.expandedStates.length,a=o-1;a>=0;--a)n.push(D.expandedStates[a]);else n.push(D.contents);break;case $:case L:case M:case T:case V:n.push(D.contents);break;case Z:case U:case R:case W:case B:case x:break;default:throw new te(D)}}}var Me=nr;function Ee(e,u){if(typeof e=="string")return u(e);let t=new Map;return r(e);function r(D){return Re(t,D,n)}function n(D){switch(Q(D)){case j:return u(D.map(r));case O:return u({...D,parts:D.parts.map(r)});case k:return u({...D,breakContents:r(D.breakContents),flatContents:r(D.flatContents)});case w:{let{expandedStates:i,contents:o}=D;return i?(i=i.map(r),o=i[0]):o=r(o),u({...D,contents:o,expandedStates:i})}case $:case L:case M:case T:case V:return u({...D,contents:r(D.contents)});case Z:case U:case R:case W:case B:case x:return u(D);default:throw new te(D)}}}function Ve(e,u,t){let r=t,n=!1;function D(i){if(n)return!1;let o=u(i);o!==void 0&&(n=!0,r=o)}return Me(e,D),r}function Dr(e){if(e.type===w&&e.break||e.type===B&&e.hard||e.type===x)return!0}function ir(e){return Ve(e,Dr,!1)}function tu(e){if(e.length>0){let u=y(0,e,-1);!u.expandedStates&&!u.break&&(u.break="propagated")}return null}function ar(e){let u=new Set,t=[];function r(D){if(D.type===x&&tu(t),D.type===w){if(t.push(D),u.has(D))return!1;u.add(D)}}function n(D){D.type===w&&t.pop().break&&tu(t)}Me(e,r,n,!0)}function or(e){return e.type===B&&!e.hard?e.soft?"":" ":e.type===k?e.flatContents:e}function sr(e){return Ee(e,or)}function ru(e){for(e=[...e];e.length>=2&&y(0,e,-2).type===B&&y(0,e,-1).type===x;)e.length-=2;if(e.length>0){let u=De(y(0,e,-1));e[e.length-1]=u}return e}function De(e){switch(Q(e)){case L:case M:case w:case V:case T:{let u=De(e.contents);return{...e,contents:u}}case k:return{...e,breakContents:De(e.breakContents),flatContents:De(e.flatContents)};case O:return{...e,parts:ru(e.parts)};case j:return ru(e);case Z:return Xt(e);case $:case U:case R:case W:case B:case x:break;default:throw new te(e)}return e}function Tu(e){return De(cr(e))}function lr(e){switch(Q(e)){case O:{let{parts:u}=e;if(u.every(t=>t===""))return"";if(u.length===1)return u[0];break}case w:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===w&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case $:case L:case M:case V:if(!e.contents)return"";break;case k:if(!e.flatContents&&!e.breakContents)return"";break;case j:{let u=[];for(let t of e){if(!t)continue;let[r,...n]=Array.isArray(t)?t:[t];typeof r=="string"&&typeof y(0,u,-1)=="string"?u[u.length-1]+=r:u.push(r),u.push(...n)}return u.length===0?"":u.length===1?u[0]:u}case Z:case U:case R:case W:case B:case T:case x:break;default:throw new te(e)}return e}function cr(e){return Ee(e,u=>lr(u))}function fr(e,u=Mu){return Ee(e,t=>typeof t=="string"?Lu(u,t.split(`
7
+ `)):t)}function Fr(e){if(e.type===B)return!0}function dr(e){return Ve(e,Fr,!1)}function fe(e,u){return e.type===T?{...e,contents:u(e.contents)}:u(e)}var pr=zt;function de(e){return{type:L,contents:e}}function re(e,u){return{type:$,contents:u,n:e}}function hr(e){return re(Number.NEGATIVE_INFINITY,e)}function Iu(e){return re({type:"root"},e)}function Cr(e){return re(-1,e)}function Pu(e,u,t){let r=e;if(u>0){for(let n=0;n<Math.floor(u/t);++n)r=de(r);r=re(u%t,r),r=re(Number.NEGATIVE_INFINITY,r)}return r}var me={type:x},H={type:U};function Er(e){return{type:O,parts:e}}function ju(e,u={}){return pr(u.expandedStates),{type:w,id:u.id,contents:e,break:!!u.shouldBreak,expandedStates:u.expandedStates}}function mr(e,u){return ju(e[0],{...u,expandedStates:e})}function gr(e,u="",t={}){return{type:k,breakContents:e,flatContents:u,groupId:t.groupId}}function yr(e,u){return{type:M,contents:e,groupId:u.groupId,negate:u.negate}}function Lu(e,u){let t=[];for(let r=0;r<u.length;r++)r!==0&&t.push(e),t.push(u[r]);return t}function Br(e,u){return e?{type:T,label:e,contents:u}:u}var $u={type:B},vr={type:B,soft:!0},We={type:B,hard:!0},P=[We,me],Ru={type:B,hard:!0,literal:!0},Mu=[Ru,me];function Oe(e){return{type:V,contents:e}}var Ar={type:W},br={type:R};function I(e){if(!e)return"";if(Array.isArray(e)){let u=[];for(let t of e)if(Array.isArray(t))u.push(...I(t));else{let r=I(t);r!==""&&u.push(r)}return u}return e.type===k?{...e,breakContents:I(e.breakContents),flatContents:I(e.flatContents)}:e.type===w?{...e,contents:I(e.contents),expandedStates:e.expandedStates?.map(I)}:e.type===O?{type:"fill",parts:e.parts.map(I)}:e.contents?{...e,contents:I(e.contents)}:e}function wr(e){let u=Object.create(null),t=new Set;return r(I(e));function r(D,i,o){if(typeof D=="string")return JSON.stringify(D);if(Array.isArray(D)){let a=D.map(r).filter(Boolean);return a.length===1?a[0]:`[${a.join(", ")}]`}if(D.type===B){let a=o?.[i+1]?.type===x;return D.literal?a?"literalline":"literallineWithoutBreakParent":D.hard?a?"hardline":"hardlineWithoutBreakParent":D.soft?"softline":"line"}if(D.type===x)return o?.[i-1]?.type===B&&o[i-1].hard?void 0:"breakParent";if(D.type===R)return"trim";if(D.type===L)return"indent("+r(D.contents)+")";if(D.type===$)return D.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+r(D.contents)+")":D.n<0?"dedent("+r(D.contents)+")":D.n.type==="root"?"markAsRoot("+r(D.contents)+")":"align("+JSON.stringify(D.n)+", "+r(D.contents)+")";if(D.type===k)return"ifBreak("+r(D.breakContents)+(D.flatContents?", "+r(D.flatContents):"")+(D.groupId?(D.flatContents?"":', ""')+`, { groupId: ${n(D.groupId)} }`:"")+")";if(D.type===M){let a=[];D.negate&&a.push("negate: true"),D.groupId&&a.push(`groupId: ${n(D.groupId)}`);let s=a.length>0?`, { ${a.join(", ")} }`:"";return`indentIfBreak(${r(D.contents)}${s})`}if(D.type===w){let a=[];D.break&&D.break!=="propagated"&&a.push("shouldBreak: true"),D.id&&a.push(`id: ${n(D.id)}`);let s=a.length>0?`, { ${a.join(", ")} }`:"";return D.expandedStates?`conditionalGroup([${D.expandedStates.map(l=>r(l)).join(",")}]${s})`:`group(${r(D.contents)}${s})`}if(D.type===O)return`fill([${D.parts.map(a=>r(a)).join(", ")}])`;if(D.type===V)return"lineSuffix("+r(D.contents)+")";if(D.type===W)return"lineSuffixBoundary";if(D.type===T)return`label(${JSON.stringify(D.label)}, ${r(D.contents)})`;if(D.type===U)return"cursor";throw new Error("Unknown doc type "+D.type)}function n(D){if(typeof D!="symbol")return JSON.stringify(String(D));if(D in u)return u[D];let i=D.description||"symbol";for(let o=0;;o++){let a=i+(o>0?` #${o}`:"");if(!t.has(a))return t.add(a),u[D]=`Symbol.for(${JSON.stringify(a)})`}}}var kr=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,Sr=12288,xr=65510,Nr=[12288,12288,65281,65376,65504,65510],_r=4352,Or=262141,Vu=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],Wu=(e,u)=>{let t=0,r=Math.floor(e.length/2)-1;for(;t<=r;){let n=Math.floor((t+r)/2),D=n*2;if(u<e[D])r=n-1;else if(u>e[D+1])t=n+1;else return!0}return!1},nu=19968,[Tr,Ir]=Pr(Vu);function Pr(e){let u=e[0],t=e[1];for(let r=0;r<e.length;r+=2){let n=e[r],D=e[r+1];if(nu>=n&&nu<=D)return[n,D];D-n>t-u&&(u=n,t=D)}return[u,t]}var jr=e=>e<Sr||e>xr?!1:Wu(Nr,e),Lr=e=>e>=Tr&&e<=Ir?!0:e<_r||e>Or?!1:Wu(Vu,e),$r=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC3F\uDC41\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])$/,Rr=e=>$r.test(e),Mr=/[^\x20-\x7F]/;function Vr(e){if(!e)return 0;if(!Mr.test(e))return e.length;let u=0;e=e.replace(kr(),t=>(u+=Rr(t)?1:2,""));for(let t of e){let r=t.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||r>=65024&&r<=65039||(u+=jr(r)||Lr(r)?2:1)}return u}var ze=Vr,Wr={type:0},zr={type:1},zu={value:"",length:0,queue:[],get root(){return zu}};function Ku(e,u,t){let r=u.type===1?e.queue.slice(0,-1):[...e.queue,u],n="",D=0,i=0,o=0;for(let f of r)switch(f.type){case 0:l(),t.useTabs?a(1):s(t.tabWidth);break;case 3:{let{string:h}=f;l(),n+=h,D+=h.length;break}case 2:{let{width:h}=f;i+=1,o+=h;break}default:throw new Error(`Unexpected indent comment '${f.type}'.`)}return c(),{...e,value:n,length:D,queue:r};function a(f){n+=" ".repeat(f),D+=t.tabWidth*f}function s(f){n+=" ".repeat(f),D+=f}function l(){t.useTabs?F():c()}function F(){i>0&&a(i),d()}function c(){o>0&&s(o),d()}function d(){i=0,o=0}}function Kr(e,u,t){if(!u)return e;if(u.type==="root")return{...e,root:e};if(u===Number.NEGATIVE_INFINITY)return e.root;let r;return typeof u=="number"?u<0?r=zr:r={type:2,width:u}:r={type:3,string:u},Ku(e,r,t)}function Ur(e,u){return Ku(e,Wr,u)}function Jr(e){let u=0;for(let t=e.length-1;t>=0;t--){let r=e[t];if(r===" "||r===" ")u++;else break}return u}function Uu(e){let u=Jr(e);return{text:u===0?e:e.slice(0,e.length-u),count:u}}var qr=class{#u=[];#e="";#r=0;#n=[];#t=[];#D(){let e=this.#e;e!==""&&(this.#u.push(e),this.#r+=e.length,this.#e="");for(let u of this.#t)this.#n.push(Math.min(u,this.#r));this.#t.length=0}markPosition(){if(this.#n.length+this.#t.length>=2)throw new Error("There are too many 'cursor' in doc.");this.#t.push(this.#r+this.#e.length)}write(e){this.#e+=e}trim(){let{text:e,count:u}=Uu(this.#e);return this.#e=e,this.#D(),u}finish(){return this.#D(),{text:this.#u.join(""),positions:this.#n}}},Gr=qr,S=Symbol("MODE_BREAK"),N=Symbol("MODE_FLAT"),Te=Symbol("DOC_FILL_PRINTED_LENGTH");function ce(e,u,t,r,n,D){if(t===Number.POSITIVE_INFINITY)return!0;let i=u.length,o=!1,a=[e],s="";for(;t>=0;){if(a.length===0){if(i===0)return!0;a.push(u[--i]);continue}let{mode:l,doc:F}=a.pop(),c=Q(F);switch(c){case Z:F&&(o&&(s+=" ",t-=1,o=!1),s+=F,t-=ze(F));break;case j:case O:{let d=c===j?F:F.parts,f=F[Te]??0;for(let h=d.length-1;h>=f;h--)a.push({mode:l,doc:d[h]});break}case L:case $:case M:case T:a.push({mode:l,doc:F.contents});break;case R:{let{text:d,count:f}=Uu(s);s=d,t+=f;break}case w:{if(D&&F.break)return!1;let d=F.break?S:l,f=F.expandedStates&&d===S?y(0,F.expandedStates,-1):F.contents;a.push({mode:d,doc:f});break}case k:{let d=(F.groupId?n[F.groupId]||N:l)===S?F.breakContents:F.flatContents;d&&a.push({mode:l,doc:d});break}case B:if(l===S||F.hard)return!0;F.soft||(o=!0);break;case V:r=!0;break;case W:if(r)return!1;break}}return!1}function ge(e,u){let t=Object.create(null),r=u.printWidth,n=$e(u.endOfLine),D=0,i=[{indent:zu,mode:S,doc:e}],o=!1,a=[],s=new Gr;for(ar(e);i.length>0;){let{indent:f,mode:h,doc:p}=i.pop();switch(Q(p)){case Z:{let C=n!==`
8
+ `?pe(0,p,`
9
+ `,n):p;C&&(s.write(C),i.length>0&&(D+=ze(C)));break}case j:for(let C=p.length-1;C>=0;C--)i.push({indent:f,mode:h,doc:p[C]});break;case U:s.markPosition();break;case L:i.push({indent:Ur(f,u),mode:h,doc:p.contents});break;case $:i.push({indent:Kr(f,p.n,u),mode:h,doc:p.contents});break;case R:D-=s.trim();break;case w:{let C=(function(){if(h===N&&!o)return{indent:f,mode:p.break?S:N,doc:p.contents};o=!1;let E=r-D,g=a.length>0,m={indent:f,mode:N,doc:p.contents};if(!p.break&&ce(m,i,E,g,t))return m;if(!p.expandedStates)return{indent:f,mode:S,doc:p.contents};if(!p.break)for(let A=1;A<p.expandedStates.length-1;A++){let v={indent:f,mode:N,doc:p.expandedStates[A]};if(ce(v,i,E,g,t))return v}return{indent:f,mode:S,doc:y(0,p.expandedStates,-1)}})();i.push(C),p.id&&(t[p.id]=C.mode);break}case O:{let C=r-D,E=p[Te]??0,{parts:g}=p,m=g.length-E;if(m===0)break;let A=g[E+0],v=g[E+1],b={indent:f,mode:N,doc:A},X={indent:f,mode:S,doc:A},Ae=ce(b,[],C,a.length>0,t,!0);if(m===1){Ae?i.push(b):i.push(X);break}let eu={indent:f,mode:N,doc:v},be={indent:f,mode:S,doc:v};if(m===2){Ae?i.push(eu,b):i.push(be,X);break}let _t=g[E+2],Ot={indent:f,mode:h,doc:{...p,[Te]:E+2}},Tt=ce({indent:f,mode:N,doc:[A,v,_t]},[],C,a.length>0,t,!0);i.push(Ot),Tt?i.push(eu,b):Ae?i.push(be,b):i.push(be,X);break}case k:case M:{let C=p.groupId?t[p.groupId]:h;if(C===S){let E=p.type===k?p.breakContents:p.negate?p.contents:de(p.contents);E&&i.push({indent:f,mode:h,doc:E})}if(C===N){let E=p.type===k?p.flatContents:p.negate?de(p.contents):p.contents;E&&i.push({indent:f,mode:h,doc:E})}break}case V:a.push({indent:f,mode:h,doc:p.contents});break;case W:a.length>0&&i.push({indent:f,mode:h,doc:We});break;case B:switch(h){case N:if(!p.hard){p.soft||(s.write(" "),D+=1);break}o=!0;case S:if(a.length>0){i.push({indent:f,mode:h,doc:p},...a.reverse()),a.length=0;break}p.literal?(s.write(n),D=0,f.root&&(f.root.value&&s.write(f.root.value),D=f.root.length)):(s.trim(),s.write(n+f.value),D=f.length);break}break;case T:i.push({indent:f,mode:h,doc:p.contents});break;case x:break;default:throw new te(p)}i.length===0&&a.length>0&&(i.push(...a.reverse()),a.length=0)}let{text:l,positions:F}=s.finish();if(F.length!==2)return{formatted:l};let[c,d]=F;return{formatted:l,cursorNodeStart:c,cursorNodeText:l.slice(c,d)}}function Hr(e,u,t=0){let r=0;for(let n=t;n<e.length;++n)e[n]===" "?r=r+u-r%u:r++;return r}var Ke=Hr,Yr=class{constructor(e){this.stack=[e]}get key(){let{stack:e,siblings:u}=this;return y(0,e,u===null?-2:-4)??null}get index(){return this.siblings===null?null:y(0,this.stack,-2)}get node(){return y(0,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,u=y(0,e,-3);return Array.isArray(u)?u:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:u}=this;return e!==null&&u===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...this.#e()]}getName(){let{stack:e}=this,{length:u}=e;return u>1?y(0,e,-2):null}getValue(){return y(0,this.stack,-1)}getNode(e=0){let u=this.#u(e);return u===-1?null:this.stack[u]}getParentNode(e=0){return this.getNode(e+1)}#u(e){let{stack:u}=this;for(let t=u.length-1;t>=0;t-=2)if(!Array.isArray(u[t])&&--e<0)return t;return-1}call(e,...u){let{stack:t}=this,{length:r}=t,n=y(0,t,-1);for(let D of u)n=n?.[D],t.push(D,n);try{return e(this)}finally{t.length=r}}callParent(e,u=0){let t=this.#u(u+1),r=this.stack.splice(t+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...u){let{stack:t}=this,{length:r}=t,n=y(0,t,-1);for(let D of u)n=n[D],t.push(D,n);try{for(let D=0;D<n.length;++D)t.push(D,n[D]),e(this,D,n),t.length-=2}finally{t.length=r}}map(e,...u){let t=[];return this.each((r,n,D)=>{t[n]=e(r,n,D)},...u),t}match(...e){let u=this.stack.length-1,t=null,r=this.stack[u--];for(let n of e){if(r===void 0)return!1;let D=null;if(typeof t=="number"&&(D=t,t=this.stack[u--],r=this.stack[u--]),n&&!n(r,t,D))return!1;t=this.stack[u--],r=this.stack[u--]}return!0}findAncestor(e){for(let u of this.#e())if(e(u))return u}hasAncestor(e){for(let u of this.#e())if(e(u))return!0;return!1}*#e(){let{stack:e}=this;for(let u=e.length-3;u>=0;u-=2){let t=e[u];Array.isArray(t)||(yield t)}}},Zr=Yr;function Qr(e){return Array.isArray(e)&&e.length>0}var Ju=Qr;function Xr(e){return e!==null&&typeof e=="object"}var Ue=Xr;function se(e){return(u,t,r)=>{if(t===!1)return!1;let n=!!r?.backwards,{length:D}=u,i=t;for(;i>=0&&i<D;){let o=u.charAt(i);if(e instanceof RegExp){if(!e.test(o))return i}else if(!e.includes(o))return i;n?i--:i++}return i===-1||i===D?i:!1}}var en=se(/\s/),K=se(" "),qu=se(",; "),Gu=se(/[^\n\r]/),Du=e=>e===`
10
+ `||e==="\r"||e==="\u2028"||e==="\u2029";function un(e,u,t){if(u===!1)return!1;let r=!!t?.backwards,n=e.charAt(u);if(r){if(e.charAt(u-1)==="\r"&&n===`
11
+ `)return u-2;if(Du(n))return u-1}else{if(n==="\r"&&e.charAt(u+1)===`
12
+ `)return u+2;if(Du(n))return u+1}return u}var Y=un;function tn(e,u,t={}){let r=K(e,t.backwards?u-1:u,t),n=Y(e,r,t);return r!==n}var z=tn;function*ye(e,u){let{getVisitorKeys:t,filter:r=()=>!0}=u,n=D=>Ue(D)&&r(D);for(let D of t(e)){let i=e[D];if(Array.isArray(i))for(let o of i)n(o)&&(yield o);else n(i)&&(yield i)}}function*rn(e,u){let t=[e];for(let r=0;r<t.length;r++){let n=t[r];for(let D of ye(n,u))yield D,t.push(D)}}function nn(e,u){return ye(e,u).next().done}function Dn(e,u,t){let{filter:r}=t;if(!r)return[];let n,D=(t.getChildren?.(e,t)??[...ye(e,{getVisitorKeys:t.getVisitorKeys})]).flatMap(a=>(n??(n=[e,...u]),r(a,n)?[a]:Hu(a,n,t))),{locStart:i,locEnd:o}=t;return D.sort((a,s)=>i(a)-i(s)||o(a)-o(s)),D}function Hu(e,u,t){return Re(t.cache,e,r=>Dn(r,u,t))}var Yu=Hu;function an(e){let u=e.type||e.kind||"(unknown type)",t=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return t.length>20&&(t=t.slice(0,19)+"…"),u+(t?" "+t:"")}function Je(e,u){(e.comments??(e.comments=[])).push(u),u.printed=!1,u.nodeDescription=an(e)}function ie(e,u){u.leading=!0,u.trailing=!1,Je(e,u)}function q(e,u,t){u.leading=!1,u.trailing=!1,t&&(u.marker=t),Je(e,u)}function ae(e,u){u.leading=!1,u.trailing=!0,Je(e,u)}var Zu=new WeakMap;function Qu(e,u,t,r,n=[]){let{locStart:D,locEnd:i}=t,o=D(u),a=i(u),s=Yu(e,n,{cache:Zu,locStart:D,locEnd:i,getVisitorKeys:t.getVisitorKeys,filter:t.printer.canAttachComment,getChildren:t.printer.getCommentChildNodes}),l,F,c=0,d=s.length;for(;c<d;){let f=c+d>>1,h=s[f],p=D(h),C=i(h);if(p<=o&&a<=C)return Qu(h,u,t,h,[h,...n]);if(C<=o){l=h,c=f+1;continue}if(a<=p){F=h,d=f;continue}throw new Error("Comment location overlaps with node location")}if(r?.type==="TemplateLiteral"){let{quasis:f}=r,h=ke(f,u,t);l&&ke(f,l,t)!==h&&(l=null),F&&ke(f,F,t)!==h&&(F=null)}return{enclosingNode:r,precedingNode:l,followingNode:F}}var we=()=>!1;function on(e,u){let{comments:t}=e;if(delete e.comments,!Ju(t)||!u.printer.canAttachComment)return;let r=[],{printer:{features:{experimental_avoidAstMutation:n},handleComments:D={}},originalText:i}=u,{ownLine:o=we,endOfLine:a=we,remaining:s=we}=D,l=t.map((c,d)=>({...Qu(e,c,u),comment:c,text:i,options:u,ast:e,isLastComment:t.length-1===d,placement:void 0})),F=!n;for(let[c,d]of l.entries()){let{comment:f,precedingNode:h,enclosingNode:p,followingNode:C,text:E,options:g,ast:m,isLastComment:A}=d,v=sn(E,g,l,c)?"ownLine":ln(E,g,l,c)?"endOfLine":"remaining",b;if(n?(d.placement=v,b=[d]):b=[f,E,g,m,A],F&&(f.enclosingNode=p,f.precedingNode=h,f.followingNode=C),f.placement=v,v==="ownLine")o(...b)||(C?ie(C,f):h?ae(h,f):q(p||m,f));else if(v==="endOfLine")a(...b)||(h?ae(h,f):C?ie(C,f):q(p||m,f));else if(!s(...b))if(h&&C){let X=r.length;X>0&&r[X-1].followingNode!==C&&iu(r,g),r.push(d)}else h?ae(h,f):C?ie(C,f):q(p||m,f)}if(iu(r,u),F)for(let c of t)delete c.precedingNode,delete c.enclosingNode,delete c.followingNode}var Xu=e=>!/[\S\n\u2028\u2029]/.test(e);function sn(e,u,t,r){let{comment:n,precedingNode:D}=t[r],{locStart:i,locEnd:o}=u,a=i(n);if(D)for(let s=r-1;s>=0;s--){let{comment:l,precedingNode:F}=t[s];if(F!==D||!Xu(e.slice(o(l),a)))break;a=i(l)}return z(e,a,{backwards:!0})}function ln(e,u,t,r){let{comment:n,followingNode:D}=t[r],{locStart:i,locEnd:o}=u,a=o(n);if(D)for(let s=r+1;s<t.length;s++){let{comment:l,followingNode:F}=t[s];if(F!==D||!Xu(e.slice(a,i(l))))break;a=o(l)}return z(e,a)}function iu(e,u){let t=e.length;if(t===0)return;let{precedingNode:r,followingNode:n}=e[0],D=u.locStart(n),i;for(i=t;i>0;--i){let{comment:o,precedingNode:a,followingNode:s}=e[i-1],l=u.originalText.slice(u.locEnd(o),D);if(u.printer.isGap?.(l,u)??/^[\s(]*$/.test(l))D=u.locStart(o);else break}for(let[o,{comment:a}]of e.entries())o<i?ae(r,a):ie(n,a);for(let o of[r,n])o.comments&&o.comments.length>1&&o.comments.sort((a,s)=>u.locStart(a)-u.locStart(s));e.length=0}function ke(e,u,t){let r=t.locStart(u)-1;for(let n=1;n<e.length;++n)if(r<t.locStart(e[n]))return n-1;return 0}function cn(e,u){let t=u-1;t=K(e,t,{backwards:!0}),t=Y(e,t,{backwards:!0}),t=K(e,t,{backwards:!0});let r=Y(e,t,{backwards:!0});return t!==r}var qe=cn,et=()=>!0;function ut(e,u){let t=e.node;return t.printed=!0,u.printer.printComment(e,u)}function fn(e,u){let t=e.node,r=[ut(e,u)],{printer:n,originalText:D,locStart:i,locEnd:o}=u;if(n.isBlockComment?.(t)){let s=" ";z(D,o(t))&&(z(D,i(t),{backwards:!0})?s=P:s=$u),r.push(s)}else r.push(P);let a=Y(D,K(D,o(t)));return a!==!1&&z(D,a)&&r.push(P),r}function Fn(e,u,t){let r=e.node,n=ut(e,u),{printer:D,originalText:i,locStart:o}=u,a=D.isBlockComment?.(r);if(t?.hasLineSuffix&&!t?.isBlock||z(i,o(r),{backwards:!0})){let s=qe(i,o(r));return{doc:Oe([P,s?P:"",n]),isBlock:a,hasLineSuffix:!0}}return!a||t?.hasLineSuffix?{doc:[Oe([" ",n]),me],isBlock:a,hasLineSuffix:!0}:{doc:[" ",n],isBlock:a,hasLineSuffix:!1}}function dn(e,u,t){let r=u[Symbol.for("printedComments")],n=et,D=new Set(e.node?.comments?.filter(i=>!r?.has(i)&&i.leading&&n(i)));return D.size===0?"":e.map(({node:i})=>D.has(i)?fn(e,u):"","comments").filter(Boolean)}function pn(e,u,t){let r=e.node?.comments,n=new Set(r?.filter(l=>l.trailing)),D=u[Symbol.for("printedComments")],i=et,o=new Set(r?.filter(l=>n.has(l)&&!D?.has(l)&&i(l)));if(o.size===0)return"";let a=[],s;return e.each(({node:l})=>{n.has(l)&&(s=Fn(e,u,s),o.has(l)&&a.push(s.doc))},"comments"),a}function hn(e,u,t,r){let n=dn(e,t),D=pn(e,t);return n||D?fe(u,i=>[n,i,D]):u}function Cn(e){let{[Ce]:u,[Symbol.for("printedComments")]:t}=e;for(let r of u){if(!r.printed&&!t.has(r))throw new Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed}}var tt=class extends Error{name="ConfigError"},au=class extends Error{name="UndefinedParserError"},En=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),Be=En,mn={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"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:`Maintain existing
13
+ (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
14
+ The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
15
+ The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"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."}]}};function rt({plugins:e=[],showDeprecated:u=!1}={}){let t=e.flatMap(n=>n.languages??[]),r=[];for(let n of yn(Object.assign({},...e.map(({options:D})=>D),mn)))!u&&n.deprecated||(Array.isArray(n.choices)&&(u||(n.choices=n.choices.filter(D=>!D.deprecated)),n.name==="parser"&&(n.choices=[...n.choices,...gn(n.choices,t,e)])),n.pluginDefaults=Object.fromEntries(e.filter(D=>D.defaultOptions?.[n.name]!==void 0).map(D=>[D.name,D.defaultOptions[n.name]])),r.push(n));return{languages:t,options:r}}function*gn(e,u,t){let r=new Set(e.map(n=>n.value));for(let n of u)if(n.parsers){for(let D of n.parsers)if(!r.has(D)){r.add(D);let i=t.find(a=>a.parsers&&Be(a.parsers,D)),o=n.name;i?.name&&(o+=` (plugin: ${i.name})`),yield{value:D,description:o}}}}function yn(e){let u=[];for(let[t,r]of Object.entries(e)){let n={name:t,...r};Array.isArray(n.default)&&(n.default=y(0,n.default,-1).value),u.push(n)}return u}var Bn=Array.prototype.toReversed??function(){return[...this].reverse()},vn=oe("toReversed",function(){if(Array.isArray(this))return Bn}),An=vn;function bn(){let e=globalThis,u=e.process?.platform;if(typeof u=="string")return u.startsWith("win");let t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??!1}var wn=bn();function nt(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function kn(e){return e=nt(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Sn(e){e=nt(e);let u=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(u=`\\\\${e.hostname}${u}`),u}function xn(e){return wn?Sn(e):kn(e)}var Nn=e=>String(e).split(/[/\\]/).pop(),_n=e=>String(e).startsWith("file:");function ou(e,u){if(!u)return;let t=Nn(u).toLowerCase();return e.find(({filenames:r})=>r?.some(n=>n.toLowerCase()===t))??e.find(({extensions:r})=>r?.some(n=>t.endsWith(n)))}function On(e,u){if(u)return e.find(({name:t})=>t.toLowerCase()===u)??e.find(({aliases:t})=>t?.includes(u))??e.find(({extensions:t})=>t?.includes(`.${u}`))}var Tn=void 0;function su(e,u){if(u){if(_n(u))try{u=xn(u)}catch{return}if(typeof u=="string")return e.find(({isSupported:t})=>t?.({filepath:u}))}}function In(e,u){let t=An(0,e.plugins).flatMap(r=>r.languages??[]);return(On(t,u.language)??ou(t,u.physicalFile)??ou(t,u.file)??su(t,u.physicalFile)??su(t,u.file)??Tn?.(t,u.physicalFile))?.parsers[0]}var Dt=In,ue={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(t=>ue.value(t)).join(", ")}]`;let u=Object.keys(e);return u.length===0?"{}":`{ ${u.map(t=>`${ue.key(t)}: ${ue.value(e[t])}`).join(", ")} }`},pair:({key:e,value:u})=>ue.value({[e]:u})},it=new Proxy(String,{get:()=>it}),_=it,Pn=(e,u,{descriptor:t})=>{let r=[`${_.yellow(typeof e=="string"?t.key(e):t.pair(e))} is deprecated`];return u&&r.push(`we now treat it as ${_.blue(typeof u=="string"?t.key(u):t.pair(u))}`),r.join("; ")+"."},at=Symbol.for("vnopts.VALUE_NOT_EXIST"),Fe=Symbol.for("vnopts.VALUE_UNCHANGED"),lu=" ".repeat(2),jn=(e,u,t)=>{let{text:r,list:n}=t.normalizeExpectedResult(t.schemas[e].expected(t)),D=[];return r&&D.push(cu(e,u,r,t.descriptor)),n&&D.push([cu(e,u,n.title,t.descriptor)].concat(n.values.map(i=>ot(i,t.loggerPrintWidth))).join(`
16
+ `)),st(D,t.loggerPrintWidth)};function cu(e,u,t,r){return[`Invalid ${_.red(r.key(e))} value.`,`Expected ${_.blue(t)},`,`but received ${u===at?_.gray("nothing"):_.red(r.value(u))}.`].join(" ")}function ot({text:e,list:u},t){let r=[];return e&&r.push(`- ${_.blue(e)}`),u&&r.push([`- ${_.blue(u.title)}:`].concat(u.values.map(n=>ot(n,t-lu.length).replace(/^|\n/g,`$&${lu}`))).join(`
17
+ `)),st(r,t)}function st(e,u){if(e.length===1)return e[0];let[t,r]=e,[n,D]=e.map(i=>i.split(`
18
+ `,1)[0].length);return n>u&&n>D?r:t}var ee=[],Se=[];function xe(e,u,t){if(e===u)return 0;let r=t?.maxDistance,n=e;e.length>u.length&&(e=u,u=n);let D=e.length,i=u.length;for(;D>0&&e.charCodeAt(~-D)===u.charCodeAt(~-i);)D--,i--;let o=0;for(;o<D&&e.charCodeAt(o)===u.charCodeAt(o);)o++;if(D-=o,i-=o,r!==void 0&&i-D>r)return r;if(D===0)return r!==void 0&&i>r?r:i;let a,s,l,F,c=0,d=0;for(;c<D;)Se[c]=e.charCodeAt(o+c),ee[c]=++c;for(;d<i;){for(a=u.charCodeAt(o+d),l=d++,s=d,c=0;c<D;c++)F=a===Se[c]?l:l+1,l=ee[c],s=ee[c]=l>s?F>s?s+1:F:F>l?l+1:F;if(r!==void 0){let f=s;for(c=0;c<D;c++)ee[c]<f&&(f=ee[c]);if(f>r)return r}}return ee.length=D,Se.length=D,r!==void 0&&s>r?r:s}function Ln(e,u,t){if(!Array.isArray(u)||u.length===0)return;let r=t?.maxDistance,n=e.length;for(let a of u)if(a===e)return a;let D,i=Number.POSITIVE_INFINITY,o=new Set;for(let a of u){if(o.has(a))continue;o.add(a);let s=Math.abs(a.length-n);if(s>=i||s>r)continue;let l=Number.isFinite(i)?Math.min(i,r):r,F=l===void 0?xe(e,a):xe(e,a,{maxDistance:l});if(F>r)continue;let c=F;if(l!==void 0&&F===l&&l===r&&(c=xe(e,a)),c<i&&(i=c,D=a,i===0))break}if(!(i>r))return D}var lt=(e,u,{descriptor:t,logger:r,schemas:n})=>{let D=[`Ignored unknown option ${_.yellow(t.pair({key:e,value:u}))}.`],i=Ln(e,Object.keys(n),{maxDistance:3});i&&D.push(`Did you mean ${_.blue(t.key(i))}?`),r.warn(D.join(" "))},$n=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Rn(e,u){let t=new e(u),r=Object.create(t);for(let n of $n)n in u&&(r[n]=Mn(u[n],t,J.prototype[n].length));return r}var J=class{static create(e){return Rn(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,u){return!1}deprecated(e,u){return!1}forward(e,u){}redirect(e,u){}overlap(e,u,t){return e}preprocess(e,u){return e}postprocess(e,u){return Fe}};function Mn(e,u,t){return typeof e=="function"?(...r)=>e(...r.slice(0,t-1),u,...r.slice(t-1)):()=>e}var Vn=class extends J{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,u){return u.schemas[this._sourceName].validate(e,u)}redirect(e,u){return this._sourceName}},Wn=class extends J{expected(){return"anything"}validate(){return!0}},zn=class extends J{constructor({valueSchema:e,name:u=e.name,...t}){super({...t,name:u}),this._valueSchema=e}expected(e){let{text:u,list:t}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:u&&`an array of ${u}`,list:t&&{title:"an array of the following values",values:[{list:t}]}}}validate(e,u){if(!Array.isArray(e))return!1;let t=[];for(let r of e){let n=u.normalizeValidateResult(this._valueSchema.validate(r,u),r);n!==!0&&t.push(n.value)}return t.length===0?!0:{value:t}}deprecated(e,u){let t=[];for(let r of e){let n=u.normalizeDeprecatedResult(this._valueSchema.deprecated(r,u),r);n!==!1&&t.push(...n.map(({value:D})=>({value:[D]})))}return t}forward(e,u){let t=[];for(let r of e){let n=u.normalizeForwardResult(this._valueSchema.forward(r,u),r);t.push(...n.map(fu))}return t}redirect(e,u){let t=[],r=[];for(let n of e){let D=u.normalizeRedirectResult(this._valueSchema.redirect(n,u),n);"remain"in D&&t.push(D.remain),r.push(...D.redirect.map(fu))}return t.length===0?{redirect:r}:{redirect:r,remain:t}}overlap(e,u){return e.concat(u)}};function fu({from:e,to:u}){return{from:[e],to:u}}var Kn=class extends J{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function Un(e,u){let t=Object.create(null);for(let r of e){let n=r[u];if(t[n])throw new Error(`Duplicate ${u} ${JSON.stringify(n)}`);t[n]=r}return t}function Jn(e,u){let t=new Map;for(let r of e){let n=r[u];if(t.has(n))throw new Error(`Duplicate ${u} ${JSON.stringify(n)}`);t.set(n,r)}return t}function qn(){let e=Object.create(null);return u=>{let t=JSON.stringify(u);return e[t]?!0:(e[t]=!0,!1)}}function Gn(e,u){let t=[],r=[];for(let n of e)u(n)?t.push(n):r.push(n);return[t,r]}function Hn(e){return e===Math.floor(e)}function Yn(e,u){if(e===u)return 0;let t=typeof e,r=typeof u,n=["undefined","object","boolean","number","string"];return t!==r?n.indexOf(t)-n.indexOf(r):t!=="string"?Number(e)-Number(u):e.localeCompare(u)}function Zn(e){return(...u)=>{let t=e(...u);return typeof t=="string"?new Error(t):t}}function Fu(e){return e===void 0?{}:e}function ct(e){if(typeof e=="string")return{text:e};let{text:u,list:t}=e;return Qn((u||t)!==void 0,"Unexpected `expected` result, there should be at least one field."),t?{text:u,list:{title:t.title,values:t.values.map(ct)}}:{text:u}}function du(e,u){return e===!0?!0:e===!1?{value:u}:e}function pu(e,u,t=!1){return e===!1?!1:e===!0?t?!0:[{value:u}]:"value"in e?[e]:e.length===0?!1:e}function hu(e,u){return typeof e=="string"||"key"in e?{from:u,to:e}:"from"in e?{from:e.from,to:e.to}:{from:u,to:e.to}}function Ie(e,u){return e===void 0?[]:Array.isArray(e)?e.map(t=>hu(t,u)):[hu(e,u)]}function Cu(e,u){let t=Ie(typeof e=="object"&&"redirect"in e?e.redirect:e,u);return t.length===0?{remain:u,redirect:t}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:t}:{redirect:t}}function Qn(e,u){if(!e)throw new Error(u)}var Xn=class extends J{constructor(e){super(e),this._choices=Jn(e.choices.map(u=>u&&typeof u=="object"?u:{value:u}),"value")}expected({descriptor:e}){let u=Array.from(this._choices.keys()).map(n=>this._choices.get(n)).filter(({hidden:n})=>!n).map(n=>n.value).sort(Yn).map(e.value),t=u.slice(0,-2),r=u.slice(-2);return{text:t.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:u}}}validate(e){return this._choices.has(e)}deprecated(e){let u=this._choices.get(e);return u&&u.deprecated?{value:e}:!1}forward(e){let u=this._choices.get(e);return u?u.forward:void 0}redirect(e){let u=this._choices.get(e);return u?u.redirect:void 0}},eD=class extends J{expected(){return"a number"}validate(e,u){return typeof e=="number"}},uD=class extends eD{expected(){return"an integer"}validate(e,u){return u.normalizeValidateResult(super.validate(e,u),e)===!0&&Hn(e)}},Eu=class extends J{expected(){return"a string"}validate(e){return typeof e=="string"}},tD=ue,rD=lt,nD=jn,DD=Pn,iD=class{constructor(e,u){let{logger:t=console,loggerPrintWidth:r=80,descriptor:n=tD,unknown:D=rD,invalid:i=nD,deprecated:o=DD,missing:a=()=>!1,required:s=()=>!1,preprocess:l=c=>c,postprocess:F=()=>Fe}=u||{};this._utils={descriptor:n,logger:t||{warn:()=>{}},loggerPrintWidth:r,schemas:Un(e,"name"),normalizeDefaultResult:Fu,normalizeExpectedResult:ct,normalizeDeprecatedResult:pu,normalizeForwardResult:Ie,normalizeRedirectResult:Cu,normalizeValidateResult:du},this._unknownHandler=D,this._invalidHandler=Zn(i),this._deprecatedHandler=o,this._identifyMissing=(c,d)=>!(c in d)||a(c,d),this._identifyRequired=s,this._preprocess=l,this._postprocess=F,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=qn()}normalize(e){let u={},t=[this._preprocess(e,this._utils)],r=()=>{for(;t.length!==0;){let n=t.shift(),D=this._applyNormalization(n,u);t.push(...D)}};r();for(let n of Object.keys(this._utils.schemas)){let D=this._utils.schemas[n];if(!(n in u)){let i=Fu(D.default(this._utils));"value"in i&&t.push({[n]:i.value})}}r();for(let n of Object.keys(this._utils.schemas)){if(!(n in u))continue;let D=this._utils.schemas[n],i=u[n],o=D.postprocess(i,this._utils);o!==Fe&&(this._applyValidation(o,n,D),u[n]=o)}return this._applyPostprocess(u),this._applyRequiredCheck(u),u}_applyNormalization(e,u){let t=[],{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(e);for(let D of r){let i=this._utils.schemas[D],o=i.preprocess(e[D],this._utils);this._applyValidation(o,D,i);let a=({from:F,to:c})=>{t.push(typeof c=="string"?{[c]:F}:{[c.key]:c.value})},s=({value:F,redirectTo:c})=>{let d=pu(i.deprecated(F,this._utils),o,!0);if(d!==!1)if(d===!0)this._hasDeprecationWarned(D)||this._utils.logger.warn(this._deprecatedHandler(D,c,this._utils));else for(let{value:f}of d){let h={key:D,value:f};if(!this._hasDeprecationWarned(h)){let p=typeof c=="string"?{key:c,value:f}:c;this._utils.logger.warn(this._deprecatedHandler(h,p,this._utils))}}};Ie(i.forward(o,this._utils),o).forEach(a);let l=Cu(i.redirect(o,this._utils),o);if(l.redirect.forEach(a),"remain"in l){let F=l.remain;u[D]=D in u?i.overlap(u[D],F,this._utils):F,s({value:F})}for(let{from:F,to:c}of l.redirect)s({value:F,redirectTo:c})}for(let D of n){let i=e[D];this._applyUnknownHandler(D,i,u,(o,a)=>{t.push({[o]:a})})}return t}_applyRequiredCheck(e){for(let u of Object.keys(this._utils.schemas))if(this._identifyMissing(u,e)&&this._identifyRequired(u))throw this._invalidHandler(u,at,this._utils)}_partitionOptionKeys(e){let[u,t]=Gn(Object.keys(e).filter(r=>!this._identifyMissing(r,e)),r=>r in this._utils.schemas);return{knownKeys:u,unknownKeys:t}}_applyValidation(e,u,t){let r=du(t.validate(e,this._utils),e);if(r!==!0)throw this._invalidHandler(u,r.value,this._utils)}_applyUnknownHandler(e,u,t,r){let n=this._unknownHandler(e,u,this._utils);if(n)for(let D of Object.keys(n)){if(this._identifyMissing(D,n))continue;let i=n[D];D in this._utils.schemas?r(D,i):t[D]=i}}_applyPostprocess(e){let u=this._postprocess(e,this._utils);if(u!==Fe){if(u.delete)for(let t of u.delete)delete e[t];if(u.override){let{knownKeys:t,unknownKeys:r}=this._partitionOptionKeys(u.override);for(let n of t){let D=u.override[n];this._applyValidation(D,n,this._utils.schemas[n]),e[n]=D}for(let n of r){let D=u.override[n];this._applyUnknownHandler(n,D,e,(i,o)=>{let a=this._utils.schemas[i];this._applyValidation(o,i,a),e[i]=o})}}}}},Ne;function aD(e,u,{logger:t=!1,isCLI:r=!1,passThrough:n=!1,FlagSchema:D,descriptor:i}={}){if(r){if(!D)throw new Error("'FlagSchema' option is required.");if(!i)throw new Error("'descriptor' option is required.")}else i=ue;let o=n?Array.isArray(n)?(c,d)=>n.includes(c)?{[c]:d}:void 0:(c,d)=>({[c]:d}):(c,d,f)=>{let{_:h,...p}=f.schemas;return lt(c,d,{...f,schemas:p})},a=oD(u,{isCLI:r,FlagSchema:D}),s=new iD(a,{logger:t,unknown:o,descriptor:i}),l=t!==!1;l&&Ne&&(s._hasDeprecationWarned=Ne);let F=s.normalize(e);return l&&(Ne=s._hasDeprecationWarned),F}function oD(e,{isCLI:u,FlagSchema:t}){let r=[];u&&r.push(Wn.create({name:"_"}));for(let n of e)r.push(sD(n,{isCLI:u,optionInfos:e,FlagSchema:t})),n.alias&&u&&r.push(Vn.create({name:n.alias,sourceName:n.name}));return r}function sD(e,{isCLI:u,optionInfos:t,FlagSchema:r}){let{name:n}=e,D={name:n},i,o={};switch(e.type){case"int":i=uD,u&&(D.preprocess=Number);break;case"string":i=Eu;break;case"choice":i=Xn,D.choices=e.choices.map(a=>a?.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":i=Kn;break;case"flag":i=r,D.flags=t.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;case"path":i=Eu;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?D.validate=(a,s,l)=>e.exception(a)||s.validate(a,l):D.validate=(a,s,l)=>a===void 0||s.validate(a,l),e.redirect&&(o.redirect=a=>a?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),u&&!e.array){let a=D.preprocess||(s=>s);D.preprocess=(s,l,F)=>l.preprocess(a(Array.isArray(s)?y(0,s,-1):s),F)}return e.array?zn.create({...u?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...o,valueSchema:i.create(D)}):i.create({...D,...o})}var lD=aD,cD=Array.prototype.findLast??function(e){for(let u=this.length-1;u>=0;u--){let t=this[u];if(e(t,u,this))return t}},fD=oe("findLast",function(){if(Array.isArray(this))return cD}),ft=fD,FD=Symbol.for("PRETTIER_IS_FRONT_MATTER"),dD=[];function pD(e){return!!e?.[FD]}var Ge=pD,Ft=new Set(["yaml","toml"]),dt=({node:e})=>Ge(e)&&Ft.has(e.language);async function hD(e,u,t,r){let{node:n}=t,{language:D}=n;if(!Ft.has(D))return;let i=n.value.trim(),o;if(i){let a=D==="yaml"?D:Dt(r,{language:D});if(!a)return;o=i?await e(i,{parser:a}):""}else o=i;return Iu([n.startDelimiter,n.explicitLanguage??"",P,o,o?P:"",n.endDelimiter])}function CD(e,u){return dt({node:e})&&(delete u.end,delete u.raw,delete u.value),u}var ED=CD;function mD({node:e}){return e.raw}var gD=mD,pt=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),yD=e=>Object.keys(e).filter(u=>!pt.has(u));function BD(e,u){let t=e?r=>e(r,pt):yD;return u?new Proxy(t,{apply:(r,n,D)=>Ge(D[0])?dD:Reflect.apply(r,n,D)}):t}var mu=BD;function ht(e,u){if(!u)throw new Error("parserName is required.");let t=ft(0,e,n=>n.parsers&&Be(n.parsers,u));if(t)return t;let r=`Couldn't resolve parser "${u}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new tt(r)}function vD(e,u){if(!u)throw new Error("astFormat is required.");let t=ft(0,e,n=>n.printers&&Be(n.printers,u));if(t)return t;let r=`Couldn't find plugin for AST format "${u}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new tt(r)}function He({plugins:e,parser:u}){let t=ht(e,u);return Ct(t,u)}function Ct(e,u){let t=e.parsers[u];return typeof t=="function"?t():t}async function AD(e,u){let t=e.printers[u],r=typeof t=="function"?await t():t;return kD(r)}function bD(e){let{features:u,getVisitorKeys:t,embed:r,massageAstNode:n,print:D,...i}=e;u=_D(u);let o=u.experimental_frontMatterSupport;t=mu(t,o.massageAstNode||o.embed||o.print);let a=n;n&&o.massageAstNode&&(a=new Proxy(n,{apply(F,c,d){return ED(...d),Reflect.apply(F,c,d)}}));let s=r;if(r){let F;s=new Proxy(r,{get(c,d,f){return d==="getVisitorKeys"?(F??(F=r.getVisitorKeys?mu(r.getVisitorKeys,o.massageAstNode||o.embed):t),F):Reflect.get(c,d,f)},apply:(c,d,f)=>o.embed&&dt(...f)?hD:Reflect.apply(c,d,f)})}let l=D;return o.print&&(l=new Proxy(D,{apply(F,c,d){let[f]=d;return Ge(f.node)?gD(f):Reflect.apply(F,c,d)}})),{features:u,getVisitorKeys:t,embed:s,massageAstNode:a,print:l,...i}}var wD=new WeakMap;function kD(e){return Re(wD,e,bD)}var SD=["clean","embed","print"],xD=Object.fromEntries(SD.map(e=>[e,!1]));function ND(e){return{...xD,...e}}function _D(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:ND(e?.experimental_frontMatterSupport)}}var gu={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function OD(e,u={}){let t={...e};if(!t.parser){if(!t.filepath)throw new au("No parser and no file path given, couldn't infer a parser.");if(t.parser=Dt(t,{physicalFile:t.filepath}),!t.parser)throw new au(`No parser could be inferred for file "${t.filepath}".`)}let r=rt({plugins:e.plugins,showDeprecated:!0}).options,n={...gu,...Object.fromEntries(r.filter(F=>F.default!==void 0).map(F=>[F.name,F.default]))},D=ht(t.plugins,t.parser),i=await Ct(D,t.parser);t.astFormat=i.astFormat,t.locEnd=i.locEnd,t.locStart=i.locStart;let o=D.printers?.[i.astFormat]?D:vD(t.plugins,i.astFormat),a=await AD(o,i.astFormat);t.printer=a,t.getVisitorKeys=a.getVisitorKeys;let s=o.defaultOptions?Object.fromEntries(Object.entries(o.defaultOptions).filter(([,F])=>F!==void 0)):{},l={...n,...s};for(let[F,c]of Object.entries(l))t[F]??(t[F]=c);return t.parser==="json"&&(t.trailingComma="none"),lD(t,r,{passThrough:Object.keys(gu),...u})}var ne=OD,yu=/\r\n|[\n\r\u2028\u2029]/;function TD(e,u,t,r){let n={column:null,line:-1,...e.start},D={...n,...e.end},{linesAbove:i=2,linesBelow:o=3}=t||{},a=n.line-r,s=n.column,l=D.line-r,F=D.column,c=Math.max(a-(i+1),0),d=Math.min(u.length,l+o);a===-1&&(c=0),l===-1&&(d=u.length);let f=l-a,h={};if(f)for(let p=0;p<=f;p++){let C=p+a;if(s==null)h[C]=!0;else if(p===0){let E=u[C-1].length;h[C]=[s,E-s]}else if(p===f)h[C]=[0,F];else{let E=u[C-1].length;h[C]=[0,E]}}else if(s===F)s!=null?h[a]=[s,0]:h[a]=!0;else{let p=s??0,C=F??p;h[a]=[p,C-p]}return{start:c,end:d,markerLines:h}}function ID(e,u,t={},r){let{defs:n,highlight:D}={defs:{gutter:String,marker:String,message:String,reset:String},highlight:String},i=(t.startLine||1)-1,o=e.split(yu),{start:a,end:s,markerLines:l}=TD(u,o,t,i),F=u.start&&typeof u.start.column=="number",c=String(s+i).length,d=D(e).split(yu,s).slice(a,s).map((f,h)=>{let p=a+1+h,C=` ${` ${p+i}`.slice(-c)} |`,E=l[p],g=!l[p+1];if(E){let m="";if(Array.isArray(E)){let A=f.slice(0,E[0]).replace(/[^\t]/g," "),v=E[1]||1;m=[`
19
+ `,n.gutter(C.replace(/\d/g," "))," ",A,n.marker("^").repeat(v)].join(""),g&&t.message&&(m+=" "+n.message(t.message))}return[n.marker(">"),n.gutter(C),f.length>0?` ${f}`:"",m].join("")}else return` ${n.gutter(C)}${f.length>0?` ${f}`:""}`}).join(`
20
+ `);return t.message&&!F&&(d=`${" ".repeat(c+1)}${t.message}
21
+ ${d}`),n.reset(d)}function PD(e,u,t={}){return ID(e,u,t)}async function jD(e,u){let t=await He(u),r=t.preprocess?await t.preprocess(e,u):e;u.originalText=r;let n;try{n=await t.parse(r,u,u)}catch(D){LD(D,e)}return{text:r,ast:n}}function LD(e,u){let{loc:t}=e;if(t){let{start:r,end:n}=t;r&&(r={line:r.line,column:r.column-1}),n&&(n={line:n.line,column:n.column-1});let D=PD(u,{start:r,end:n},{});e.message+=`
22
+ `+D,e.codeFrame=D}throw e}var le=jD;async function $D(e,u,t,r,n){if(t.embeddedLanguageFormatting!=="auto")return;let{printer:D}=t,{embed:i}=D;if(!i)return;if(i.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:o}=D,{getVisitorKeys:a}=i,s=[];c();let l=e.stack;for(let{print:d,node:f,pathStack:h}of s)try{e.stack=h;let p=await d(F,u,e,t);p&&n.set(f,p)}catch(p){if(globalThis.PRETTIER_DEBUG)throw p}e.stack=l;function F(d,f){return RD(d,f,t,r)}function c(){let{node:d}=e;if(d===null||typeof d!="object"||o?.(e))return;for(let h of a(d))Array.isArray(d[h])?e.each(c,h):e.call(c,h);let f=i(e,t);if(f){if(typeof f=="function"){s.push({print:f,node:d,pathStack:[...e.stack]});return}n.set(d,f)}}}async function RD(e,u,t,r){let n=await ne({...t,...u,parentParser:t.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:D}=await le(e,n),i=await r(D,n);return Tu(i)}function MD(e,u,t,r){let{originalText:n,[Ce]:D,locStart:i,locEnd:o,[Symbol.for("printedComments")]:a}=u,{node:s}=e,l=i(s),F=o(s);for(let d of D)i(d)>=l&&o(d)<=F&&a.add(d);let{printPrettierIgnored:c}=u.printer;return c?c(e,u,t,r):n.slice(l,F)}var VD=MD;async function ve(e,u){({ast:e}=await Et(e,u));let t=new Map,r=new Zr(e),n=new Map;await $D(r,i,u,ve,n);let D=await Bu(r,u,i,void 0,n);if(Cn(u),u.cursorOffset>=0){if(u.nodeAfterCursor&&!u.nodeBeforeCursor)return[H,D];if(u.nodeBeforeCursor&&!u.nodeAfterCursor)return[D,H]}return D;function i(a,s){return a===void 0||a===r?o(s):Array.isArray(a)?r.call(()=>o(s),...a):r.call(()=>o(s),a)}function o(a){let s=r.node;if(s==null)return"";let l=Ue(s)&&a===void 0;if(l&&t.has(s))return t.get(s);let F=Bu(r,u,i,a,n);return l&&t.set(s,F),F}}function Bu(e,u,t,r,n){let{node:D}=e,{printer:i}=u,o;switch(i.hasPrettierIgnore?.(e)?o=VD(e,u,t,r):n.has(D)?o=n.get(D):o=i.print(e,u,t,r),D){case u.cursorNode:o=fe(o,a=>[H,a,H]);break;case u.nodeBeforeCursor:o=fe(o,a=>[a,H]);break;case u.nodeAfterCursor:o=fe(o,a=>[H,a]);break}return i.printComment&&Ju(D.comments)&&!i.willPrintOwnComments?.(e,u)&&(o=hn(e,o,u)),o}async function Et(e,u){let t=e.comments??[];u[Ce]=t,u[Symbol.for("printedComments")]=new Set,on(e,u);let{printer:{preprocess:r}}=u;return e=r?await r(e,u):e,{ast:e,comments:t}}function WD(e,u){let{cursorOffset:t,locStart:r,locEnd:n,getVisitorKeys:D}=u,i=d=>r(d)<=t&&n(d)>=t,o=e,a=[e];for(let d of rn(e,{getVisitorKeys:D,filter:i}))a.push(d),o=d;if(nn(o,{getVisitorKeys:D}))return{cursorNode:o};let s,l,F=-1,c=Number.POSITIVE_INFINITY;for(;a.length>0&&(s===void 0||l===void 0);){o=a.pop();let d=s!==void 0,f=l!==void 0;for(let h of ye(o,{getVisitorKeys:D})){if(!d){let p=n(h);p<=t&&p>F&&(s=h,F=p)}if(!f){let p=r(h);p>=t&&p<c&&(l=h,c=p)}}}return{nodeBeforeCursor:s,nodeAfterCursor:l}}var mt=WD;function zD(e,u){let{printer:t}=u,r=t.massageAstNode;if(!r)return e;let{getVisitorKeys:n}=t,{ignoredProperties:D}=r;return i(e);function i(o,a){if(!Ue(o))return o;if(Array.isArray(o))return o.map(c=>i(c,a)).filter(Boolean);let s={},l=new Set(n(o));for(let c in o)!Be(o,c)||D?.has(c)||(l.has(c)?s[c]=i(o[c],o):s[c]=o[c]);let F=r(o,s,a);if(F!==null)return F??s}}var KD=zD,UD=Array.prototype.findLastIndex??function(e){for(let u=this.length-1;u>=0;u--){let t=this[u];if(e(t,u,this))return u}return-1},JD=oe("findLastIndex",function(){if(Array.isArray(this))return UD}),qD=JD;function GD(e,u){return u=new Set(u),e.find(t=>gt.has(t.type)&&u.has(t))}function vu(e){let u=qD(0,e,t=>t.type!=="Program"&&t.type!=="File");return u===-1?e:e.slice(0,u+1)}function HD(e,u,{locStart:t,locEnd:r}){let[n,...D]=e,[i,...o]=u;if(n===i)return[n,i];let a=t(n);for(let l of vu(o))if(t(l)>=a)i=l;else break;let s=r(i);for(let l of vu(D)){if(r(l)<=s)n=l;else break;if(n===i)break}return[n,i]}function Pe(e,u,t,r,n=[],D,i){let{locStart:o,locEnd:a}=i,s=o(e),l=a(e);if(u>l||u<s||D==="rangeEnd"&&u===s||D==="rangeStart"&&u===l)return;let F=[e,...n],c=Yu(e,F,{cache:Zu,locStart:o,locEnd:a,getVisitorKeys:t.getVisitorKeys,filter:t.printer.canAttachComment,getChildren:t.printer.getCommentChildNodes});for(let d of c){let f=Pe(d,u,t,r,F,D,i);if(f)return f}if(r(e,n[0]))return F}function YD(e,u){return u!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var gt=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),ZD=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Au(e,u,t){if(!u)return!1;switch(e.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"__babel_estree":return YD(u.type,t?.type);case"json":case"json5":case"jsonc":case"json-stringify":return gt.has(u.type);case"graphql":return ZD.has(u.kind);case"vue":return u.tag!=="root"}return!1}function QD(e,u,t){let{rangeStart:r,rangeEnd:n}=u,D=e.slice(r,n).search(/\S/),i=D===-1;if(!i)for(r+=D;n>r&&!/\S/.test(e[n-1]);--n);let o=u.printer.features?.experimental_locForRangeFormat??u,a=Pe(t,r,u,(f,h)=>Au(u,f,h),[],"rangeStart",o);if(!a)return;let s=i?a:Pe(t,n,u,f=>Au(u,f),[],"rangeEnd",o);if(!s)return;let l,F;if(t.type==="JsonRoot"){let f=GD(a,s);l=f,F=f}else[l,F]=HD(a,s,u);let{locStart:c,locEnd:d}=o;return[Math.min(c(l),c(F)),Math.max(d(l),d(F))]}var yt="\uFEFF",bu=Symbol("cursor");async function Bt(e,u,t=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:n}=await le(e,u);u.cursorOffset>=0&&(u={...u,...mt(r,u)});let D=await ve(r,u);t>0&&(D=Pu([P,D],t,u.tabWidth));let i=ge(D,u);if(t>0){let a=i.formatted.trim();i.cursorNodeStart!==void 0&&(i.cursorNodeStart-=i.formatted.indexOf(a),i.cursorNodeStart<0&&(i.cursorNodeStart=0,i.cursorNodeText=i.cursorNodeText.trimStart()),i.cursorNodeStart+i.cursorNodeText.length>a.length&&(i.cursorNodeText=i.cursorNodeText.trimEnd())),i.formatted=a+$e(u.endOfLine)}let o=u[Ce];if(u.cursorOffset>=0){let a,s,l,F;if((u.cursorNode||u.nodeBeforeCursor||u.nodeAfterCursor)&&i.cursorNodeText)if(l=i.cursorNodeStart,F=i.cursorNodeText,u.cursorNode)a=u.locStart(u.cursorNode),s=n.slice(a,u.locEnd(u.cursorNode));else{if(!u.nodeBeforeCursor&&!u.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");a=u.nodeBeforeCursor?u.locEnd(u.nodeBeforeCursor):0;let C=u.nodeAfterCursor?u.locStart(u.nodeAfterCursor):n.length;s=n.slice(a,C)}else a=0,s=n,l=0,F=i.formatted;let c=u.cursorOffset-a;if(s===F)return{formatted:i.formatted,cursorOffset:l+c,comments:o};let d=s.split("");d.splice(c,0,bu);let f=F.split(""),h=Vt(d,f),p=l;for(let C of h)if(C.removed){if(C.value.includes(bu))break}else p+=C.count;return{formatted:i.formatted,cursorOffset:p,comments:o}}return{formatted:i.formatted,cursorOffset:-1,comments:o}}async function XD(e,u){let{ast:t,text:r}=await le(e,u),[n,D]=QD(r,u,t)??[0,0],i=r.slice(n,D),o=Math.min(n,r.lastIndexOf(`
23
+ `,n)+1),a=r.slice(o,n).match(/^\s*/)[0],s=Ke(a,u.tabWidth),l=await Bt(i,{...u,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:u.cursorOffset>n&&u.cursorOffset<=D?u.cursorOffset-n:-1,endOfLine:"lf"},s),F=l.formatted.trimEnd(),{cursorOffset:c}=u;c>D?c+=F.length-i.length:l.cursorOffset>=0&&(c=l.cursorOffset+n);let d=r.slice(0,n)+F+r.slice(D);if(u.endOfLine!=="lf"){let f=$e(u.endOfLine);c>=0&&f===`\r
24
+ `&&(c+=_u(d.slice(0,c),`
25
+ `)),d=pe(0,d,`
26
+ `,f)}return{formatted:d,cursorOffset:c,comments:l.comments}}function _e(e,u,t){return typeof u!="number"||Number.isNaN(u)||u<0||u>e.length?t:u}function wu(e,u){let{cursorOffset:t,rangeStart:r,rangeEnd:n}=u;return t=_e(e,t,-1),r=_e(e,r,0),n=_e(e,n,e.length),{...u,cursorOffset:t,rangeStart:r,rangeEnd:n}}function vt(e,u){let{cursorOffset:t,rangeStart:r,rangeEnd:n,endOfLine:D}=wu(e,u),i=e.charAt(0)===yt;if(i&&(e=e.slice(1),t--,r--,n--),D==="auto"&&(D=qt(e)),e.includes("\r")){let o=a=>_u(e.slice(0,Math.max(a,0)),`\r
27
+ `);t-=o(t),r-=o(r),n-=o(n),e=Yt(e)}return{hasBOM:i,text:e,options:wu(e,{...u,cursorOffset:t,rangeStart:r,rangeEnd:n,endOfLine:D})}}async function ku(e,u){let t=await He(u);return!t.hasPragma||t.hasPragma(e)}async function ei(e,u){return(await He(u)).hasIgnorePragma?.(e)}async function At(e,u){let{hasBOM:t,text:r,options:n}=vt(e,await ne(u));if(n.rangeStart>=n.rangeEnd&&r!==""||n.requirePragma&&!await ku(r,n)||n.checkIgnorePragma&&await ei(r,n))return{formatted:e,cursorOffset:u.cursorOffset,comments:[]};let D;return n.rangeStart>0||n.rangeEnd<r.length?D=await XD(r,n):(!n.requirePragma&&n.insertPragma&&n.printer.insertPragma&&!await ku(r,n)&&(r=n.printer.insertPragma(r)),D=await Bt(r,n)),t&&(D.formatted=yt+D.formatted,D.cursorOffset>=0&&D.cursorOffset++),D}async function ui(e,u,t){let{text:r,options:n}=vt(e,await ne(u)),D=await le(r,n);return t&&(t.preprocessForPrint&&(D.ast=await Et(D.ast,n)),t.massage&&(D.ast=KD(D.ast,n))),D}async function ti(e,u){u=await ne(u);let t=await ve(e,u);return ge(t,u)}async function ri(e,u){let t=wr(e),{formatted:r}=await At(t,{...u,parser:"__js_expression"});return r}async function ni(e,u){u=await ne(u);let{ast:t}=await le(e,u);return u.cursorOffset>=0&&(u={...u,...mt(t,u)}),ve(t,u)}async function Di(e,u){return ge(e,await ne(u))}var bt={};je(bt,{builders:()=>ii,printer:()=>ai,utils:()=>oi});var ii={join:Lu,line:$u,softline:vr,hardline:P,literalline:Mu,group:ju,conditionalGroup:mr,fill:Er,lineSuffix:Oe,lineSuffixBoundary:Ar,cursor:H,breakParent:me,ifBreak:gr,trim:br,indent:de,indentIfBreak:yr,align:re,addAlignmentToDoc:Pu,markAsRoot:Iu,dedentToRoot:hr,dedent:Cr,hardlineWithoutBreakParent:We,literallineWithoutBreakParent:Ru,label:Br,concat:e=>e},ai={printDocToString:ge},oi={willBreak:ir,traverseDoc:Me,findInDoc:Ve,mapDoc:Ee,removeLines:sr,stripTrailingHardline:Tu,replaceEndOfLine:fr,canBreak:dr},si="3.9.5",wt={};je(wt,{addDanglingComment:()=>q,addLeadingComment:()=>ie,addTrailingComment:()=>ae,getAlignmentSize:()=>Ke,getIndentSize:()=>pi,getMaxContinuousCount:()=>Ei,getNextNonSpaceNonCommentCharacter:()=>gi,getNextNonSpaceNonCommentCharacterIndex:()=>xi,getPreferredQuote:()=>vi,getStringWidth:()=>ze,hasNewline:()=>z,hasNewlineInRange:()=>bi,hasSpaces:()=>ki,isNextLineEmpty:()=>Ii,isNextLineEmptyAfterIndex:()=>Xe,isPreviousLineEmpty:()=>_i,makeString:()=>Ti,skip:()=>se,skipEverythingButNewLine:()=>Gu,skipInlineComment:()=>Ye,skipNewline:()=>Y,skipSpaces:()=>K,skipToLineEnd:()=>qu,skipTrailingComment:()=>Ze,skipWhitespace:()=>en});function li(e,u){if(u===!1)return!1;if(e.charAt(u)==="/"&&e.charAt(u+1)==="*"){for(let t=u+2;t<e.length;++t)if(e.charAt(t)==="*"&&e.charAt(t+1)==="/")return t+2}return u}var Ye=li;function ci(e,u){return u===!1?!1:e.charAt(u)==="/"&&e.charAt(u+1)==="/"?Gu(e,u):u}var Ze=ci;function fi(e,u){let t=null,r=u;for(;r!==t;)t=r,r=K(e,r),r=Ye(e,r),r=Ze(e,r),r=Y(e,r);return r}var Qe=fi;function Fi(e,u){let t=null,r=u;for(;r!==t;)t=r,r=qu(e,r),r=Ye(e,r),r=K(e,r);return r=Ze(e,r),r=Y(e,r),r!==!1&&z(e,r)}var Xe=Fi;function di(e,u){let t=e.lastIndexOf(`
28
+ `);return t===-1?0:Ke(e.slice(t+1).match(/^[\t ]*/)[0],u)}var pi=di;function hi(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ci(e,u){let t=e.matchAll(new RegExp(`(?:${hi(u)})+`,"g"));return t.reduce||(t=[...t]),t.reduce((r,[n])=>Math.max(r,n.length),0)/u.length}var Ei=Ci;function mi(e,u){let t=Qe(e,u);return t===!1?"":e.charAt(t)}var gi=mi,kt=Object.freeze({character:"'",codePoint:39}),St=Object.freeze({character:'"',codePoint:34}),yi=Object.freeze({preferred:kt,alternate:St}),Bi=Object.freeze({preferred:St,alternate:kt});function vi(e,u){let{preferred:t,alternate:r}=u===!0||u==="'"?yi:Bi,{length:n}=e,D=0,i=0;for(let o=0;o<n;o++){let a=e.charCodeAt(o);a===t.codePoint?D++:a===r.codePoint&&i++}return(D>i?r:t).character}function Ai(e,u,t){for(let r=u;r<t;++r)if(e.charAt(r)===`
29
+ `)return!0;return!1}var bi=Ai;function wi(e,u,t={}){return K(e,t.backwards?u-1:u,t)!==u}var ki=wi;function Si(e,u,t){return Qe(e,t(u))}function xi(e,u){return arguments.length===2||typeof u=="number"?Qe(e,u):Si(...arguments)}function Ni(e,u,t){return qe(e,t(u))}function _i(e,u){return arguments.length===2||typeof u=="number"?qe(e,u):Ni(...arguments)}function Oi(e,u,t){return Xe(e,t(u))}function Ti(e,u,t){let r=u==='"'?"'":'"',n=pe(0,e,/\\(.)|(["'])/gs,(D,i,o)=>i===r?i:o===u?"\\"+o:o||(t&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i));return u+n+u}function Ii(e,u){return arguments.length===2||typeof u=="number"?Xe(e,u):Oi(...arguments)}function G(e,u=1){return async(...t)=>{let r=t[u]??{},n=r.plugins??[];return t[u]={...r,plugins:Array.isArray(n)?n:Object.values(n)},await e(...t)}}var xt=G(At);async function Nt(e,u){let{formatted:t}=await xt(e,{...u,cursorOffset:-1});return t}async function Pi(e,u){return await Nt(e,u)===e}var ji=G(rt,0),Li={parse:G(ui),formatAST:G(ti),formatDoc:G(ri),printToDoc:G(ni),printDocToString:G(Di)};export{Li as __debug,Pi as check,Pt as default,bt as doc,Nt as format,xt as formatWithCursor,ji as getSupportInfo,wt as util,si as version};