prettier 3.0.0-alpha.4 → 3.0.0-alpha.6

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 (50) hide show
  1. package/LICENSE +849 -415
  2. package/README.md +3 -3
  3. package/doc.d.ts +248 -0
  4. package/doc.js +274 -199
  5. package/doc.mjs +269 -194
  6. package/index.cjs +380 -201
  7. package/index.d.ts +903 -0
  8. package/index.mjs +7539 -5795
  9. package/internal/cli.mjs +2025 -3219
  10. package/internal/third-party.mjs +2948 -5593
  11. package/package.json +32 -1
  12. package/plugins/acorn-and-espree.d.ts +10 -0
  13. package/plugins/acorn-and-espree.js +12 -12
  14. package/plugins/acorn-and-espree.mjs +12 -12
  15. package/plugins/angular.d.ts +12 -0
  16. package/plugins/angular.js +2 -2
  17. package/plugins/angular.mjs +2 -2
  18. package/plugins/babel.d.ts +17 -0
  19. package/plugins/babel.js +13 -13
  20. package/plugins/babel.mjs +13 -13
  21. package/plugins/flow.d.ts +9 -0
  22. package/plugins/flow.js +20 -20
  23. package/plugins/flow.mjs +20 -20
  24. package/plugins/glimmer.d.ts +9 -0
  25. package/plugins/glimmer.js +18 -17
  26. package/plugins/glimmer.mjs +18 -17
  27. package/plugins/graphql.d.ts +9 -0
  28. package/plugins/graphql.js +7 -7
  29. package/plugins/graphql.mjs +7 -7
  30. package/plugins/html.d.ts +12 -0
  31. package/plugins/html.js +17 -28
  32. package/plugins/html.mjs +17 -28
  33. package/plugins/markdown.d.ts +11 -0
  34. package/plugins/markdown.js +28 -29
  35. package/plugins/markdown.mjs +28 -29
  36. package/plugins/meriyah.d.ts +9 -0
  37. package/plugins/meriyah.js +5 -6
  38. package/plugins/meriyah.mjs +5 -6
  39. package/plugins/postcss.d.ts +11 -0
  40. package/plugins/postcss.js +32 -43
  41. package/plugins/postcss.mjs +32 -43
  42. package/plugins/typescript.d.ts +9 -0
  43. package/plugins/typescript.js +18 -27
  44. package/plugins/typescript.mjs +18 -27
  45. package/plugins/yaml.d.ts +9 -0
  46. package/plugins/yaml.js +108 -108
  47. package/plugins/yaml.mjs +108 -108
  48. package/standalone.d.ts +33 -0
  49. package/standalone.js +74 -80
  50. package/standalone.mjs +74 -80
package/standalone.js CHANGED
@@ -1,105 +1,99 @@
1
- (function(e){function n(t){var f=t();return f}if(typeof exports=="object"&&typeof module=="object")module.exports=n(e);else if(typeof define=="function"&&define.amd)define(function(){return n(e)});else{var o=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};o.prettier=n(e)}})(function(){"use strict";var $d=Object.create;var Cn=Object.defineProperty;var qd=Object.getOwnPropertyDescriptor;var Wd=Object.getOwnPropertyNames;var Vd=Object.getPrototypeOf,Jd=Object.prototype.hasOwnProperty;var Hd=(e,t,r)=>t in e?Cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var bi=(e,t)=>()=>(e&&(t=e(e=0)),t);var H=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fe=(e,t)=>{for(var r in t)Cn(e,r,{get:t[r],enumerable:!0})},xc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Wd(t))!Jd.call(e,i)&&i!==r&&Cn(e,i,{get:()=>t[i],enumerable:!(n=qd(t,i))||n.enumerable});return e};var Vr=(e,t,r)=>(r=e!=null?$d(Vd(e)):{},xc(t||!e||!e.__esModule?Cn(r,"default",{value:e,enumerable:!0}):r,e)),ze=e=>xc(Cn({},"__esModule",{value:!0}),e);var vi=(e,t,r)=>(Hd(e,typeof t!="symbol"?t+"":t,r),r),Gd=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var Sc=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)};var Nu=(e,t,r)=>(Gd(e,t,"access private method"),r);var h,l=bi(()=>{h={env:{},argv:[]}});var Tc=H(Ou=>{"use strict";l();Object.defineProperty(Ou,"__esModule",{value:!0});Ou.default=Ac;function Ac(){}Ac.prototype={diff:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.callback;typeof n=="function"&&(i=n,n={}),this.options=n;var s=this;function u(E){return i?(setTimeout(function(){i(void 0,E)},0),!0):E}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var a=r.length,o=t.length,c=1,p=a+o;n.maxEditLength&&(p=Math.min(p,n.maxEditLength));var f=[{newPos:-1,components:[]}],m=this.extractCommon(f[0],r,t,0);if(f[0].newPos+1>=a&&m+1>=o)return u([{value:this.join(r),count:r.length}]);function d(){for(var E=-1*c;E<=c;E+=2){var T=void 0,b=f[E-1],k=f[E+1],A=(k?k.newPos:0)-E;b&&(f[E-1]=void 0);var F=b&&b.newPos+1<a,v=k&&0<=A&&A<o;if(!F&&!v){f[E]=void 0;continue}if(!F||v&&b.newPos<k.newPos?(T=Yd(k),s.pushComponent(T.components,void 0,!0)):(T=b,T.newPos++,s.pushComponent(T.components,!0,void 0)),A=s.extractCommon(T,r,t,E),T.newPos+1>=a&&A+1>=o)return u(Kd(s,T.components,r,t,s.useLongestToken));f[E]=T}c++}if(i)(function E(){setTimeout(function(){if(c>p)return i();d()||E()},0)})();else for(;c<=p;){var y=d();if(y)return y}},pushComponent:function(t,r,n){var i=t[t.length-1];i&&i.added===r&&i.removed===n?t[t.length-1]={count:i.count+1,added:r,removed:n}:t.push({count:1,added:r,removed:n})},extractCommon:function(t,r,n,i){for(var s=r.length,u=n.length,a=t.newPos,o=a-i,c=0;a+1<s&&o+1<u&&this.equals(r[a+1],n[o+1]);)a++,o++,c++;return c&&t.components.push({count:c}),t.newPos=a,o},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function Kd(e,t,r,n,i){for(var s=0,u=t.length,a=0,o=0;s<u;s++){var c=t[s];if(c.removed){if(c.value=e.join(n.slice(o,o+c.count)),o+=c.count,s&&t[s-1].added){var f=t[s-1];t[s-1]=t[s],t[s]=f}}else{if(!c.added&&i){var p=r.slice(a,a+c.count);p=p.map(function(d,y){var E=n[o+y];return E.length>d.length?E:d}),c.value=e.join(p)}else c.value=e.join(r.slice(a,a+c.count));a+=c.count,c.added||(o+=c.count)}}var m=t[u-1];return u>1&&typeof m.value=="string"&&(m.added||m.removed)&&e.equals("",m.value)&&(t[u-2].value+=m.value,t.pop()),t}function Yd(e){return{newPos:e.newPos,components:e.components.slice(0)}}});var Fc=H(Sn=>{"use strict";l();Object.defineProperty(Sn,"__esModule",{value:!0});Sn.diffArrays=Qd;Sn.arrayDiff=void 0;var zd=Xd(Tc());function Xd(e){return e&&e.__esModule?e:{default:e}}var xn=new zd.default;Sn.arrayDiff=xn;xn.tokenize=function(e){return e.slice()};xn.join=xn.removeEmpty=function(e){return e};function Qd(e,t,r){return xn.diff(e,t,r)}});var kc=H((RA,Bc)=>{"use strict";l();Bc.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\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\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\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\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|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\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]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\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-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var Ht={};fe(Ht,{__assign:()=>ca,__asyncDelegator:()=>QD,__asyncGenerator:()=>XD,__asyncValues:()=>ZD,__await:()=>kn,__awaiter:()=>HD,__classPrivateFieldGet:()=>ng,__classPrivateFieldSet:()=>ig,__createBinding:()=>UD,__decorate:()=>WD,__exportStar:()=>KD,__extends:()=>$D,__generator:()=>GD,__importDefault:()=>rg,__importStar:()=>tg,__makeTemplateObject:()=>eg,__metadata:()=>JD,__param:()=>VD,__read:()=>Kc,__rest:()=>qD,__spread:()=>YD,__spreadArrays:()=>zD,__values:()=>la});function $D(e,t){oa(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function qD(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function WD(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(u=e[a])&&(s=(i<3?u(s):i>3?u(t,r,s):u(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function VD(e,t){return function(r,n){t(r,n,e)}}function JD(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function HD(e,t,r,n){function i(s){return s instanceof r?s:new r(function(u){u(s)})}return new(r||(r=Promise))(function(s,u){function a(p){try{c(n.next(p))}catch(f){u(f)}}function o(p){try{c(n.throw(p))}catch(f){u(f)}}function c(p){p.done?s(p.value):i(p.value).then(a,o)}c((n=n.apply(e,t||[])).next())})}function GD(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(c){return function(p){return o([c,p])}}function o(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(p){c=[6,p],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function UD(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}function KD(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function la(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Kc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){u={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return s}function YD(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Kc(arguments[t]));return e}function zD(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var s=arguments[t],u=0,a=s.length;u<a;u++,i++)n[i]=s[u];return n}function kn(e){return this instanceof kn?(this.v=e,this):new kn(e)}function XD(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,s=[];return i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i;function u(m){n[m]&&(i[m]=function(d){return new Promise(function(y,E){s.push([m,d,y,E])>1||a(m,d)})})}function a(m,d){try{o(n[m](d))}catch(y){f(s[0][3],y)}}function o(m){m.value instanceof kn?Promise.resolve(m.value.v).then(c,p):f(s[0][2],m)}function c(m){a("next",m)}function p(m){a("throw",m)}function f(m,d){m(d),s.shift(),s.length&&a(s[0][0],s[0][1])}}function QD(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,s){t[i]=e[i]?function(u){return(r=!r)?{value:kn(e[i](u)),done:i==="return"}:s?s(u):u}:s}}function ZD(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof la=="function"?la(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=e[s]&&function(u){return new Promise(function(a,o){u=e[s](u),i(a,o,u.done,u.value)})}}function i(s,u,a,o){Promise.resolve(o).then(function(c){s({value:c,done:a})},u)}}function eg(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function tg(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function rg(e){return e&&e.__esModule?e:{default:e}}function ng(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function ig(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}var oa,ca,Gt=bi(()=>{l();oa=function(e,t){return oa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},oa(e,t)};ca=function(){return ca=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},ca.apply(this,arguments)}});var pa=H(Ar=>{"use strict";l();Object.defineProperty(Ar,"__esModule",{value:!0});Ar.apiDescriptor={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(r=>Ar.apiDescriptor.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Ar.apiDescriptor.key(r)}: ${Ar.apiDescriptor.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>Ar.apiDescriptor.value({[e]:t})}});var Yc=H(fa=>{"use strict";l();Object.defineProperty(fa,"__esModule",{value:!0});var sg=(Gt(),ze(Ht));sg.__exportStar(pa(),fa)});var Wi={};fe(Wi,{default:()=>ma});var Ze,ma,Pn=bi(()=>{l();Ze=e=>e;Ze.grey=Ze;Ze.red=Ze;Ze.bold=Ze;Ze.yellow=Ze;Ze.blue=Ze;Ze.default=Ze;ma=Ze});var da=H(ya=>{"use strict";l();Object.defineProperty(ya,"__esModule",{value:!0});var zc=(Pn(),ze(Wi));ya.commonDeprecatedHandler=(e,t,{descriptor:r})=>{let n=[`${zc.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${zc.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."}});var Xc=H(Da=>{"use strict";l();Object.defineProperty(Da,"__esModule",{value:!0});var ug=(Gt(),ze(Ht));ug.__exportStar(da(),Da)});var Qc=H(ha=>{"use strict";l();Object.defineProperty(ha,"__esModule",{value:!0});var ga=(Pn(),ze(Wi));ha.commonInvalidHandler=(e,t,r)=>[`Invalid ${ga.default.red(r.descriptor.key(e))} value.`,`Expected ${ga.default.blue(r.schemas[e].expected(r))},`,`but received ${ga.default.red(r.descriptor.value(t))}.`].join(" ")});var Ca=H(Ea=>{"use strict";l();Object.defineProperty(Ea,"__esModule",{value:!0});var ag=(Gt(),ze(Ht));ag.__exportStar(Qc(),Ea)});var tl=H((OF,el)=>{"use strict";l();var xa=[],Zc=[];el.exports=function(e,t){if(e===t)return 0;var r=e;e.length>t.length&&(e=t,t=r);var n=e.length,i=t.length;if(n===0)return i;if(i===0)return n;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;if(n===0)return i;for(var s=0;s<n&&e.charCodeAt(s)===t.charCodeAt(s);)s++;if(n-=s,i-=s,n===0)return i;for(var u,a,o,c,p=0,f=0;p<n;)Zc[s+p]=e.charCodeAt(s+p),xa[p]=++p;for(;f<i;)for(u=t.charCodeAt(s+f),o=f++,a=f,p=0;p<n;p++)c=u===Zc[s+p]?o:o+1,o=xa[p],a=xa[p]=o>a?c>a?a+1:c:c>o?o+1:c;return a}});var Aa=H(Sa=>{"use strict";l();Object.defineProperty(Sa,"__esModule",{value:!0});var rl=(Pn(),ze(Wi)),og=tl();Sa.levenUnknownHandler=(e,t,{descriptor:r,logger:n,schemas:i})=>{let s=[`Ignored unknown option ${rl.default.yellow(r.pair({key:e,value:t}))}.`],u=Object.keys(i).sort().find(a=>og(e,a)<3);u&&s.push(`Did you mean ${rl.default.blue(r.key(u))}?`),n.warn(s.join(" "))}});var nl=H(Ta=>{"use strict";l();Object.defineProperty(Ta,"__esModule",{value:!0});var cg=(Gt(),ze(Ht));cg.__exportStar(Aa(),Ta)});var il=H(wn=>{"use strict";l();Object.defineProperty(wn,"__esModule",{value:!0});var Fa=(Gt(),ze(Ht));Fa.__exportStar(Xc(),wn);Fa.__exportStar(Ca(),wn);Fa.__exportStar(nl(),wn)});var Ut=H(Ji=>{"use strict";l();Object.defineProperty(Ji,"__esModule",{value:!0});var lg=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function sl(e,t){let r=new e(t),n=Object.create(r);for(let i of lg)i in t&&(n[i]=pg(t[i],r,Vi.prototype[i].length));return n}Ji.createSchema=sl;var Vi=class{constructor(t){this.name=t.name}static create(t){return sl(this,t)}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return t}};Ji.Schema=Vi;function pg(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}});var ul=H(va=>{"use strict";l();Object.defineProperty(va,"__esModule",{value:!0});var fg=Ut(),ba=class extends fg.Schema{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}};va.AliasSchema=ba});var al=H(ka=>{"use strict";l();Object.defineProperty(ka,"__esModule",{value:!0});var mg=Ut(),Ba=class extends mg.Schema{expected(){return"anything"}validate(){return!0}};ka.AnySchema=Ba});var cl=H(wa=>{"use strict";l();Object.defineProperty(wa,"__esModule",{value:!0});var yg=(Gt(),ze(Ht)),dg=Ut(),Pa=class extends dg.Schema{constructor(t){var{valueSchema:r,name:n=r.name}=t,i=yg.__rest(t,["valueSchema","name"]);super(Object.assign({},i,{name:n})),this._valueSchema=r}expected(t){return`an array of ${this._valueSchema.expected(t)}`}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let i of t){let s=r.normalizeValidateResult(this._valueSchema.validate(i,r),i);s!==!0&&n.push(s.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let i of t){let s=r.normalizeDeprecatedResult(this._valueSchema.deprecated(i,r),i);s!==!1&&n.push(...s.map(({value:u})=>({value:[u]})))}return n}forward(t,r){let n=[];for(let i of t){let s=r.normalizeForwardResult(this._valueSchema.forward(i,r),i);n.push(...s.map(ol))}return n}redirect(t,r){let n=[],i=[];for(let s of t){let u=r.normalizeRedirectResult(this._valueSchema.redirect(s,r),s);"remain"in u&&n.push(u.remain),i.push(...u.redirect.map(ol))}return n.length===0?{redirect:i}:{redirect:i,remain:n}}overlap(t,r){return t.concat(r)}};wa.ArraySchema=Pa;function ol({from:e,to:t}){return{from:[e],to:t}}});var ll=H(_a=>{"use strict";l();Object.defineProperty(_a,"__esModule",{value:!0});var Dg=Ut(),Ia=class extends Dg.Schema{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};_a.BooleanSchema=Ia});var Hi=H(He=>{"use strict";l();Object.defineProperty(He,"__esModule",{value:!0});function gg(e,t){let r=Object.create(null);for(let n of e){let i=n[t];if(r[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r[i]=n}return r}He.recordFromArray=gg;function hg(e,t){let r=new Map;for(let n of e){let i=n[t];if(r.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r.set(i,n)}return r}He.mapFromArray=hg;function Eg(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}He.createAutoChecklist=Eg;function Cg(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}He.partition=Cg;function xg(e){return e===Math.floor(e)}He.isInt=xg;function Sg(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}He.comparePrimitive=Sg;function Ag(e){return e===void 0?{}:e}He.normalizeDefaultResult=Ag;function Tg(e,t){return e===!0?!0:e===!1?{value:t}:e}He.normalizeValidateResult=Tg;function Fg(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}He.normalizeDeprecatedResult=Fg;function La(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}He.normalizeTransferResult=La;function pl(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>La(r,t)):[La(e,t)]}He.normalizeForwardResult=pl;function bg(e,t){let r=pl(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}He.normalizeRedirectResult=bg});var ml=H(Oa=>{"use strict";l();Object.defineProperty(Oa,"__esModule",{value:!0});var vg=Ut(),fl=Hi(),Na=class extends vg.Schema{constructor(t){super(t),this._choices=fl.mapFromArray(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(s=>this._choices.get(s)).filter(s=>!s.deprecated).map(s=>s.value).sort(fl.comparePrimitive).map(t.value),n=r.slice(0,-2),i=r.slice(-2);return n.concat(i.join(" or ")).join(", ")}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return r&&r.deprecated?{value:t}:!1}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}};Oa.ChoiceSchema=Na});var Ra=H(ja=>{"use strict";l();Object.defineProperty(ja,"__esModule",{value:!0});var Bg=Ut(),Ma=class extends Bg.Schema{expected(){return"a number"}validate(t,r){return typeof t=="number"}};ja.NumberSchema=Ma});var yl=H(qa=>{"use strict";l();Object.defineProperty(qa,"__esModule",{value:!0});var kg=Hi(),Pg=Ra(),$a=class extends Pg.NumberSchema{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&kg.isInt(t)}};qa.IntegerSchema=$a});var dl=H(Va=>{"use strict";l();Object.defineProperty(Va,"__esModule",{value:!0});var wg=Ut(),Wa=class extends wg.Schema{expected(){return"a string"}validate(t){return typeof t=="string"}};Va.StringSchema=Wa});var Dl=H(Lt=>{"use strict";l();Object.defineProperty(Lt,"__esModule",{value:!0});var ar=(Gt(),ze(Ht));ar.__exportStar(ul(),Lt);ar.__exportStar(al(),Lt);ar.__exportStar(cl(),Lt);ar.__exportStar(ll(),Lt);ar.__exportStar(ml(),Lt);ar.__exportStar(yl(),Lt);ar.__exportStar(Ra(),Lt);ar.__exportStar(dl(),Lt)});var gl=H(Qr=>{"use strict";l();Object.defineProperty(Qr,"__esModule",{value:!0});var Ig=pa(),_g=da(),Lg=Ca(),Ng=Aa();Qr.defaultDescriptor=Ig.apiDescriptor;Qr.defaultUnknownHandler=Ng.levenUnknownHandler;Qr.defaultInvalidHandler=Lg.commonInvalidHandler;Qr.defaultDeprecatedHandler=_g.commonDeprecatedHandler});var hl=H(Ki=>{"use strict";l();Object.defineProperty(Ki,"__esModule",{value:!0});var Gi=gl(),et=Hi();Ki.normalize=(e,t,r)=>new Ui(t,r).normalize(e);var Ui=class{constructor(t,r){let{logger:n=console,descriptor:i=Gi.defaultDescriptor,unknown:s=Gi.defaultUnknownHandler,invalid:u=Gi.defaultInvalidHandler,deprecated:a=Gi.defaultDeprecatedHandler}=r||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},schemas:et.recordFromArray(t,"name"),normalizeDefaultResult:et.normalizeDefaultResult,normalizeDeprecatedResult:et.normalizeDeprecatedResult,normalizeForwardResult:et.normalizeForwardResult,normalizeRedirectResult:et.normalizeRedirectResult,normalizeValidateResult:et.normalizeValidateResult},this._unknownHandler=s,this._invalidHandler=u,this._deprecatedHandler=a,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=et.createAutoChecklist()}normalize(t){let r={},n=[t],i=()=>{for(;n.length!==0;){let s=n.shift(),u=this._applyNormalization(s,r);n.push(...u)}};i();for(let s of Object.keys(this._utils.schemas)){let u=this._utils.schemas[s];if(!(s in r)){let a=et.normalizeDefaultResult(u.default(this._utils));"value"in a&&n.push({[s]:a.value})}}i();for(let s of Object.keys(this._utils.schemas)){let u=this._utils.schemas[s];s in r&&(r[s]=u.postprocess(r[s],this._utils))}return r}_applyNormalization(t,r){let n=[],[i,s]=et.partition(Object.keys(t),u=>u in this._utils.schemas);for(let u of i){let a=this._utils.schemas[u],o=a.preprocess(t[u],this._utils),c=et.normalizeValidateResult(a.validate(o,this._utils),o);if(c!==!0){let{value:y}=c,E=this._invalidHandler(u,y,this._utils);throw typeof E=="string"?new Error(E):E}let p=({from:y,to:E})=>{n.push(typeof E=="string"?{[E]:y}:{[E.key]:E.value})},f=({value:y,redirectTo:E})=>{let T=et.normalizeDeprecatedResult(a.deprecated(y,this._utils),o,!0);if(T!==!1)if(T===!0)this._hasDeprecationWarned(u)||this._utils.logger.warn(this._deprecatedHandler(u,E,this._utils));else for(let{value:b}of T){let k={key:u,value:b};if(!this._hasDeprecationWarned(k)){let A=typeof E=="string"?{key:E,value:b}:E;this._utils.logger.warn(this._deprecatedHandler(k,A,this._utils))}}};et.normalizeForwardResult(a.forward(o,this._utils),o).forEach(p);let d=et.normalizeRedirectResult(a.redirect(o,this._utils),o);if(d.redirect.forEach(p),"remain"in d){let y=d.remain;r[u]=u in r?a.overlap(r[u],y,this._utils):y,f({value:y})}for(let{from:y,to:E}of d.redirect)f({value:y,redirectTo:E})}for(let u of s){let a=t[u],o=this._unknownHandler(u,a,this._utils);if(o)for(let c of Object.keys(o)){let p={[c]:o[c]};c in this._utils.schemas?n.push(p):Object.assign(r,p)}}return n}};Ki.Normalizer=Ui});var El=H(Tr=>{"use strict";l();Object.defineProperty(Tr,"__esModule",{value:!0});var In=(Gt(),ze(Ht));In.__exportStar(Yc(),Tr);In.__exportStar(il(),Tr);In.__exportStar(Dl(),Tr);In.__exportStar(hl(),Tr);In.__exportStar(Ut(),Tr)});var Cl={};fe(Cl,{getChalk:()=>$g,shouldHighlight:()=>Rg});var Rg,$g,xl=bi(()=>{l();Pn();Rg=()=>!1,$g=()=>ma});var Fl=H(Yi=>{"use strict";l();Object.defineProperty(Yi,"__esModule",{value:!0});Yi.codeFrameColumns=Tl;Yi.default=Vg;var Ga=(xl(),ze(Cl)),Sl=!1;function qg(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var Al=/\r\n|[\n\r\u2028\u2029]/;function Wg(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:u=3}=r||{},a=n.line,o=n.column,c=i.line,p=i.column,f=Math.max(a-(s+1),0),m=Math.min(t.length,c+u);a===-1&&(f=0),c===-1&&(m=t.length);let d=c-a,y={};if(d)for(let E=0;E<=d;E++){let T=E+a;if(!o)y[T]=!0;else if(E===0){let b=t[T-1].length;y[T]=[o,b-o+1]}else if(E===d)y[T]=[0,p];else{let b=t[T-E].length;y[T]=[0,b]}}else o===p?o?y[a]=[o,0]:y[a]=!0:y[a]=[o,p-o];return{start:f,end:m,markerLines:y}}function Tl(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,Ga.shouldHighlight)(r),i=(0,Ga.getChalk)(r),s=qg(i),u=(E,T)=>n?E(T):T,a=e.split(Al),{start:o,end:c,markerLines:p}=Wg(t,a,r),f=t.start&&typeof t.start.column=="number",m=String(c).length,y=(n?(0,Ga.default)(e,r):e).split(Al,c).slice(o,c).map((E,T)=>{let b=o+1+T,A=` ${` ${b}`.slice(-m)} |`,F=p[b],v=!p[b+1];if(F){let M="";if(Array.isArray(F)){let W=E.slice(0,Math.max(F[0]-1,0)).replace(/[^\t]/g," "),V=F[1]||1;M=[`
2
- `,u(s.gutter,A.replace(/\d/g," "))," ",W,u(s.marker,"^").repeat(V)].join(""),v&&r.message&&(M+=" "+u(s.message,r.message))}return[u(s.marker,">"),u(s.gutter,A),E.length>0?` ${E}`:"",M].join("")}else return` ${u(s.gutter,A)}${E.length>0?` ${E}`:""}`}).join(`
3
- `);return r.message&&!f&&(y=`${" ".repeat(m+1)}${r.message}
4
- ${y}`),n?i.reset(y):y}function Vg(e,t,r,n={}){if(!Sl){Sl=!0;let s="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(h.emitWarning)h.emitWarning(s,"DeprecationWarning");else{let u=new Error(s);u.name="DeprecationWarning",console.warn(new Error(s))}}return r=Math.max(r,0),Tl(e,{start:{column:r,line:t}},n)}});var Pp=H(kr=>{"use strict";l();Object.defineProperty(kr,"__esModule",{value:!0});kr.extract=a0;kr.parse=c0;kr.parseWithComments=kp;kr.print=l0;kr.strip=o0;var r0=/\*\/$/,n0=/^\/\*\*?/,vp=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,i0=/(^|\s+)\/\/([^\r\n]*)/g,Tp=/^(\r?\n)+/,s0=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Fp=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,u0=/(\r?\n|^) *\* ?/g,Bp=[];function a0(e){let t=e.match(vp);return t?t[0].trimLeft():""}function o0(e){let t=e.match(vp);return t&&t[0]?e.substring(t[0].length):e}function c0(e){return kp(e).pragmas}function kp(e){let t=`
5
- `;e=e.replace(n0,"").replace(r0,"").replace(u0,"$1");let r="";for(;r!==e;)r=e,e=e.replace(s0,`${t}$1 $2${t}`);e=e.replace(Tp,"").trimRight();let n=Object.create(null),i=e.replace(Fp,"").replace(Tp,"").trimRight(),s;for(;s=Fp.exec(e);){let u=s[2].replace(i0,"");typeof n[s[1]]=="string"||Array.isArray(n[s[1]])?n[s[1]]=Bp.concat(n[s[1]],u):n[s[1]]=u}return{comments:i,pragmas:n}}function l0({comments:e="",pragmas:t={}}){let r=`
6
- `,n="/**",i=" *",s=" */",u=Object.keys(t),a=u.map(c=>bp(c,t[c])).reduce((c,p)=>c.concat(p),[]).map(c=>`${i} ${c}${r}`).join("");if(!e){if(u.length===0)return"";if(u.length===1&&!Array.isArray(t[u[0]])){let c=t[u[0]];return`${n} ${bp(u[0],c)[0]}${s}`}}let o=e.split(r).map(c=>`${i} ${c}`).join(r)+r;return n+r+(e?o:"")+(e&&u.length?i+r:"")+a+s}function bp(e,t){return Bp.concat(t).map(r=>`@${e} ${r}`.trim())}});var Nd=H((UO,DA)=>{DA.exports="3.0.0-alpha.4"});var xA={};fe(xA,{__debug:()=>CA,check:()=>hA,doc:()=>Lu,format:()=>Md,formatWithCursor:()=>Od,getSupportInfo:()=>EA,util:()=>_u,version:()=>jd.default});l();l();var Hl=Vr(Fc(),1);var _i={};fe(_i,{printDocToString:()=>wt});l();l();var Zd=(e,t,r,...n)=>{if(!(e&&t==null))return t.at?t.at(r,...n):t[r<0?t.length+r:r]},P=Zd;l();function bc(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
7
- `?"crlf":"cr":"lf"}function An(e){switch(e){case"cr":return"\r";case"crlf":return`\r
1
+ (function(t){function e(){var o=t();return o.default||o}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 tD=Object.create;var Bi=Object.defineProperty;var rD=Object.getOwnPropertyDescriptor;var nD=Object.getOwnPropertyNames;var iD=Object.getPrototypeOf,sD=Object.prototype.hasOwnProperty;var Wu=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fe=(e,t)=>{for(var r in t)Bi(e,r,{get:t[r],enumerable:!0})},Tc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nD(t))!sD.call(e,i)&&i!==r&&Bi(e,i,{get:()=>t[i],enumerable:!(n=rD(t,i))||n.enumerable});return e};var xr=(e,t,r)=>(r=e!=null?tD(iD(e)):{},Tc(t||!e||!e.__esModule?Bi(r,"default",{value:e,enumerable:!0}):r,e)),rt=e=>Tc(Bi({},"__esModule",{value:!0}),e);var qu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var Ut=(e,t,r)=>(qu(e,t,"read from private field"),r?r.call(e):t.get(e)),Tn=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ac=(e,t,r,n)=>(qu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Jr=(e,t,r)=>(qu(e,t,"access private method"),r);var bc=U(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.default=Fc;function Fc(){}Fc.prototype={diff:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.callback;typeof n=="function"&&(i=n,n={}),this.options=n;var s=this;function u(g){return i?(setTimeout(function(){i(void 0,g)},0),!0):g}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var a=r.length,o=t.length,c=1,l=a+o;n.maxEditLength&&(l=Math.min(l,n.maxEditLength));var p=[{newPos:-1,components:[]}],f=this.extractCommon(p[0],r,t,0);if(p[0].newPos+1>=a&&f+1>=o)return u([{value:this.join(r),count:r.length}]);function d(){for(var g=-1*c;g<=c;g+=2){var x=void 0,S=p[g-1],F=p[g+1],k=(F?F.newPos:0)-g;S&&(p[g-1]=void 0);var v=S&&S.newPos+1<a,T=F&&0<=k&&k<o;if(!v&&!T){p[g]=void 0;continue}if(!v||T&&S.newPos<F.newPos?(x=oD(F),s.pushComponent(x.components,void 0,!0)):(x=S,x.newPos++,s.pushComponent(x.components,!0,void 0)),k=s.extractCommon(x,r,t,g),x.newPos+1>=a&&k+1>=o)return u(aD(s,x.components,r,t,s.useLongestToken));p[g]=x}c++}if(i)(function g(){setTimeout(function(){if(c>l)return i();d()||g()},0)})();else for(;c<=l;){var m=d();if(m)return m}},pushComponent:function(t,r,n){var i=t[t.length-1];i&&i.added===r&&i.removed===n?t[t.length-1]={count:i.count+1,added:r,removed:n}:t.push({count:1,added:r,removed:n})},extractCommon:function(t,r,n,i){for(var s=r.length,u=n.length,a=t.newPos,o=a-i,c=0;a+1<s&&o+1<u&&this.equals(r[a+1],n[o+1]);)a++,o++,c++;return c&&t.components.push({count:c}),t.newPos=a,o},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function aD(e,t,r,n,i){for(var s=0,u=t.length,a=0,o=0;s<u;s++){var c=t[s];if(c.removed){if(c.value=e.join(n.slice(o,o+c.count)),o+=c.count,s&&t[s-1].added){var p=t[s-1];t[s-1]=t[s],t[s]=p}}else{if(!c.added&&i){var l=r.slice(a,a+c.count);l=l.map(function(d,m){var g=n[o+m];return g.length>d.length?g:d}),c.value=e.join(l)}else c.value=e.join(r.slice(a,a+c.count));a+=c.count,c.added||(o+=c.count)}}var f=t[u-1];return u>1&&typeof f.value=="string"&&(f.added||f.removed)&&e.equals("",f.value)&&(t[u-2].value+=f.value,t.pop()),t}function oD(e){return{newPos:e.newPos,components:e.components.slice(0)}}});var vc=U(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.diffArrays=pD;Fn.arrayDiff=void 0;var cD=lD(bc());function lD(e){return e&&e.__esModule?e:{default:e}}var An=new cD.default;Fn.arrayDiff=An;An.tokenize=function(e){return e.slice()};An.join=An.removeEmpty=function(e){return e};function pD(e,t,r){return An.diff(e,t,r)}});var wc=U((sA,Pc)=>{"use strict";Pc.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\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\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\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\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|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\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]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\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-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var Qt={};fe(Qt,{__assign:()=>ua,__asyncDelegator:()=>qD,__asyncGenerator:()=>WD,__asyncValues:()=>VD,__await:()=>Pn,__awaiter:()=>OD,__classPrivateFieldGet:()=>UD,__classPrivateFieldSet:()=>KD,__createBinding:()=>MD,__decorate:()=>_D,__exportStar:()=>jD,__extends:()=>PD,__generator:()=>ND,__importDefault:()=>HD,__importStar:()=>GD,__makeTemplateObject:()=>JD,__metadata:()=>ID,__param:()=>LD,__read:()=>Wc,__rest:()=>wD,__spread:()=>RD,__spreadArrays:()=>$D,__values:()=>aa});function PD(e,t){sa(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function wD(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function _D(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(u=e[a])&&(s=(i<3?u(s):i>3?u(t,r,s):u(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function LD(e,t){return function(r,n){t(r,n,e)}}function ID(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function OD(e,t,r,n){function i(s){return s instanceof r?s:new r(function(u){u(s)})}return new(r||(r=Promise))(function(s,u){function a(l){try{c(n.next(l))}catch(p){u(p)}}function o(l){try{c(n.throw(l))}catch(p){u(p)}}function c(l){l.done?s(l.value):i(l.value).then(a,o)}c((n=n.apply(e,t||[])).next())})}function ND(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(c){return function(l){return o([c,l])}}function o(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function MD(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}function jD(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function aa(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Wc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){u={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return s}function RD(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Wc(arguments[t]));return e}function $D(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var s=arguments[t],u=0,a=s.length;u<a;u++,i++)n[i]=s[u];return n}function Pn(e){return this instanceof Pn?(this.v=e,this):new Pn(e)}function WD(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,s=[];return i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i;function u(f){n[f]&&(i[f]=function(d){return new Promise(function(m,g){s.push([f,d,m,g])>1||a(f,d)})})}function a(f,d){try{o(n[f](d))}catch(m){p(s[0][3],m)}}function o(f){f.value instanceof Pn?Promise.resolve(f.value.v).then(c,l):p(s[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function p(f,d){f(d),s.shift(),s.length&&a(s[0][0],s[0][1])}}function qD(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,s){t[i]=e[i]?function(u){return(r=!r)?{value:Pn(e[i](u)),done:i==="return"}:s?s(u):u}:s}}function VD(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof aa=="function"?aa(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=e[s]&&function(u){return new Promise(function(a,o){u=e[s](u),i(a,o,u.done,u.value)})}}function i(s,u,a,o){Promise.resolve(o).then(function(c){s({value:c,done:a})},u)}}function JD(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function GD(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function HD(e){return e&&e.__esModule?e:{default:e}}function UD(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function KD(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}var sa,ua,Zt=Wu(()=>{sa=function(e,t){return sa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},sa(e,t)};ua=function(){return ua=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},ua.apply(this,arguments)}});var oa=U(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.apiDescriptor={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(r=>Ar.apiDescriptor.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Ar.apiDescriptor.key(r)}: ${Ar.apiDescriptor.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>Ar.apiDescriptor.value({[e]:t})}});var qc=U(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});var YD=(Zt(),rt(Qt));YD.__exportStar(oa(),ca)});var $i={};fe($i,{default:()=>la});var it,la,wn=Wu(()=>{it=e=>e;it.grey=it;it.red=it;it.bold=it;it.yellow=it;it.blue=it;it.default=it;la=it});var fa=U(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});var Vc=(wn(),rt($i));pa.commonDeprecatedHandler=(e,t,{descriptor:r})=>{let n=[`${Vc.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Vc.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."}});var Jc=U(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});var zD=(Zt(),rt(Qt));zD.__exportStar(fa(),ma)});var Gc=U(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});var da=(wn(),rt($i));ya.commonInvalidHandler=(e,t,r)=>[`Invalid ${da.default.red(r.descriptor.key(e))} value.`,`Expected ${da.default.blue(r.schemas[e].expected(r))},`,`but received ${da.default.red(r.descriptor.value(t))}.`].join(" ")});var ga=U(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var XD=(Zt(),rt(Qt));XD.__exportStar(Gc(),Da)});var Kc=U((tF,Uc)=>{"use strict";var ha=[],Hc=[];Uc.exports=function(e,t){if(e===t)return 0;var r=e;e.length>t.length&&(e=t,t=r);var n=e.length,i=t.length;if(n===0)return i;if(i===0)return n;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;if(n===0)return i;for(var s=0;s<n&&e.charCodeAt(s)===t.charCodeAt(s);)s++;if(n-=s,i-=s,n===0)return i;for(var u,a,o,c,l=0,p=0;l<n;)Hc[s+l]=e.charCodeAt(s+l),ha[l]=++l;for(;p<i;)for(u=t.charCodeAt(s+p),o=p++,a=p,l=0;l<n;l++)c=u===Hc[s+l]?o:o+1,o=ha[l],a=ha[l]=o>a?c>a?a+1:c:c>o?o+1:c;return a}});var Ca=U(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var Yc=(wn(),rt($i)),QD=Kc();Ea.levenUnknownHandler=(e,t,{descriptor:r,logger:n,schemas:i})=>{let s=[`Ignored unknown option ${Yc.default.yellow(r.pair({key:e,value:t}))}.`],u=Object.keys(i).sort().find(a=>QD(e,a)<3);u&&s.push(`Did you mean ${Yc.default.blue(r.key(u))}?`),n.warn(s.join(" "))}});var zc=U(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var ZD=(Zt(),rt(Qt));ZD.__exportStar(Ca(),xa)});var Xc=U(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});var Sa=(Zt(),rt(Qt));Sa.__exportStar(Jc(),_n);Sa.__exportStar(ga(),_n);Sa.__exportStar(zc(),_n)});var er=U(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});var eg=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Qc(e,t){let r=new e(t),n=Object.create(r);for(let i of eg)i in t&&(n[i]=tg(t[i],r,Wi.prototype[i].length));return n}qi.createSchema=Qc;var Wi=class{constructor(t){this.name=t.name}static create(t){return Qc(this,t)}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return t}};qi.Schema=Wi;function tg(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}});var Zc=U(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var rg=er(),Ta=class extends rg.Schema{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}};Aa.AliasSchema=Ta});var el=U(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var ng=er(),Fa=class extends ng.Schema{expected(){return"anything"}validate(){return!0}};ba.AnySchema=Fa});var rl=U(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var ig=(Zt(),rt(Qt)),sg=er(),va=class extends sg.Schema{constructor(t){var{valueSchema:r,name:n=r.name}=t,i=ig.__rest(t,["valueSchema","name"]);super(Object.assign({},i,{name:n})),this._valueSchema=r}expected(t){return`an array of ${this._valueSchema.expected(t)}`}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let i of t){let s=r.normalizeValidateResult(this._valueSchema.validate(i,r),i);s!==!0&&n.push(s.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let i of t){let s=r.normalizeDeprecatedResult(this._valueSchema.deprecated(i,r),i);s!==!1&&n.push(...s.map(({value:u})=>({value:[u]})))}return n}forward(t,r){let n=[];for(let i of t){let s=r.normalizeForwardResult(this._valueSchema.forward(i,r),i);n.push(...s.map(tl))}return n}redirect(t,r){let n=[],i=[];for(let s of t){let u=r.normalizeRedirectResult(this._valueSchema.redirect(s,r),s);"remain"in u&&n.push(u.remain),i.push(...u.redirect.map(tl))}return n.length===0?{redirect:i}:{redirect:i,remain:n}}overlap(t,r){return t.concat(r)}};Ba.ArraySchema=va;function tl({from:e,to:t}){return{from:[e],to:t}}});var nl=U(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var ug=er(),ka=class extends ug.Schema{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};Pa.BooleanSchema=ka});var Vi=U(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});function ag(e,t){let r=Object.create(null);for(let n of e){let i=n[t];if(r[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r[i]=n}return r}Ye.recordFromArray=ag;function og(e,t){let r=new Map;for(let n of e){let i=n[t];if(r.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r.set(i,n)}return r}Ye.mapFromArray=og;function cg(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}Ye.createAutoChecklist=cg;function lg(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}Ye.partition=lg;function pg(e){return e===Math.floor(e)}Ye.isInt=pg;function fg(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}Ye.comparePrimitive=fg;function mg(e){return e===void 0?{}:e}Ye.normalizeDefaultResult=mg;function dg(e,t){return e===!0?!0:e===!1?{value:t}:e}Ye.normalizeValidateResult=dg;function yg(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}Ye.normalizeDeprecatedResult=yg;function wa(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}Ye.normalizeTransferResult=wa;function il(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>wa(r,t)):[wa(e,t)]}Ye.normalizeForwardResult=il;function Dg(e,t){let r=il(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}Ye.normalizeRedirectResult=Dg});var ul=U(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});var gg=er(),sl=Vi(),_a=class extends gg.Schema{constructor(t){super(t),this._choices=sl.mapFromArray(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(s=>this._choices.get(s)).filter(s=>!s.deprecated).map(s=>s.value).sort(sl.comparePrimitive).map(t.value),n=r.slice(0,-2),i=r.slice(-2);return n.concat(i.join(" or ")).join(", ")}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return r&&r.deprecated?{value:t}:!1}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}};La.ChoiceSchema=_a});var Na=U(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var hg=er(),Ia=class extends hg.Schema{expected(){return"a number"}validate(t,r){return typeof t=="number"}};Oa.NumberSchema=Ia});var al=U(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var Eg=Vi(),Cg=Na(),Ma=class extends Cg.NumberSchema{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&Eg.isInt(t)}};ja.IntegerSchema=Ma});var ol=U($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var xg=er(),Ra=class extends xg.Schema{expected(){return"a string"}validate(t){return typeof t=="string"}};$a.StringSchema=Ra});var cl=U(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});var or=(Zt(),rt(Qt));or.__exportStar(Zc(),Rt);or.__exportStar(el(),Rt);or.__exportStar(rl(),Rt);or.__exportStar(nl(),Rt);or.__exportStar(ul(),Rt);or.__exportStar(al(),Rt);or.__exportStar(Na(),Rt);or.__exportStar(ol(),Rt)});var ll=U(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});var Sg=oa(),Tg=fa(),Ag=ga(),Fg=Ca();Ur.defaultDescriptor=Sg.apiDescriptor;Ur.defaultUnknownHandler=Fg.levenUnknownHandler;Ur.defaultInvalidHandler=Ag.commonInvalidHandler;Ur.defaultDeprecatedHandler=Tg.commonDeprecatedHandler});var pl=U(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});var Ji=ll(),st=Vi();Hi.normalize=(e,t,r)=>new Gi(t,r).normalize(e);var Gi=class{constructor(t,r){let{logger:n=console,descriptor:i=Ji.defaultDescriptor,unknown:s=Ji.defaultUnknownHandler,invalid:u=Ji.defaultInvalidHandler,deprecated:a=Ji.defaultDeprecatedHandler}=r||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},schemas:st.recordFromArray(t,"name"),normalizeDefaultResult:st.normalizeDefaultResult,normalizeDeprecatedResult:st.normalizeDeprecatedResult,normalizeForwardResult:st.normalizeForwardResult,normalizeRedirectResult:st.normalizeRedirectResult,normalizeValidateResult:st.normalizeValidateResult},this._unknownHandler=s,this._invalidHandler=u,this._deprecatedHandler=a,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=st.createAutoChecklist()}normalize(t){let r={},n=[t],i=()=>{for(;n.length!==0;){let s=n.shift(),u=this._applyNormalization(s,r);n.push(...u)}};i();for(let s of Object.keys(this._utils.schemas)){let u=this._utils.schemas[s];if(!(s in r)){let a=st.normalizeDefaultResult(u.default(this._utils));"value"in a&&n.push({[s]:a.value})}}i();for(let s of Object.keys(this._utils.schemas)){let u=this._utils.schemas[s];s in r&&(r[s]=u.postprocess(r[s],this._utils))}return r}_applyNormalization(t,r){let n=[],[i,s]=st.partition(Object.keys(t),u=>u in this._utils.schemas);for(let u of i){let a=this._utils.schemas[u],o=a.preprocess(t[u],this._utils),c=st.normalizeValidateResult(a.validate(o,this._utils),o);if(c!==!0){let{value:m}=c,g=this._invalidHandler(u,m,this._utils);throw typeof g=="string"?new Error(g):g}let l=({from:m,to:g})=>{n.push(typeof g=="string"?{[g]:m}:{[g.key]:g.value})},p=({value:m,redirectTo:g})=>{let x=st.normalizeDeprecatedResult(a.deprecated(m,this._utils),o,!0);if(x!==!1)if(x===!0)this._hasDeprecationWarned(u)||this._utils.logger.warn(this._deprecatedHandler(u,g,this._utils));else for(let{value:S}of x){let F={key:u,value:S};if(!this._hasDeprecationWarned(F)){let k=typeof g=="string"?{key:g,value:S}:g;this._utils.logger.warn(this._deprecatedHandler(F,k,this._utils))}}};st.normalizeForwardResult(a.forward(o,this._utils),o).forEach(l);let d=st.normalizeRedirectResult(a.redirect(o,this._utils),o);if(d.redirect.forEach(l),"remain"in d){let m=d.remain;r[u]=u in r?a.overlap(r[u],m,this._utils):m,p({value:m})}for(let{from:m,to:g}of d.redirect)p({value:m,redirectTo:g})}for(let u of s){let a=t[u],o=this._unknownHandler(u,a,this._utils);if(o)for(let c of Object.keys(o)){let l={[c]:o[c]};c in this._utils.schemas?n.push(l):Object.assign(r,l)}}return n}};Hi.Normalizer=Gi});var fl=U(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});var Ln=(Zt(),rt(Qt));Ln.__exportStar(qc(),Fr);Ln.__exportStar(Xc(),Fr);Ln.__exportStar(cl(),Fr);Ln.__exportStar(pl(),Fr);Ln.__exportStar(er(),Fr)});var ml={};fe(ml,{getChalk:()=>Pg,shouldHighlight:()=>kg});var kg,Pg,dl=Wu(()=>{wn();kg=()=>!1,Pg=()=>la});var hl=U(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.codeFrameColumns=gl;Ui.default=Lg;var Va=(dl(),rt(ml)),yl=!1;function wg(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var Dl=/\r\n|[\n\r\u2028\u2029]/;function _g(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:u=3}=r||{},a=n.line,o=n.column,c=i.line,l=i.column,p=Math.max(a-(s+1),0),f=Math.min(t.length,c+u);a===-1&&(p=0),c===-1&&(f=t.length);let d=c-a,m={};if(d)for(let g=0;g<=d;g++){let x=g+a;if(!o)m[x]=!0;else if(g===0){let S=t[x-1].length;m[x]=[o,S-o+1]}else if(g===d)m[x]=[0,l];else{let S=t[x-g].length;m[x]=[0,S]}}else o===l?o?m[a]=[o,0]:m[a]=!0:m[a]=[o,l-o];return{start:p,end:f,markerLines:m}}function gl(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,Va.shouldHighlight)(r),i=(0,Va.getChalk)(r),s=wg(i),u=(g,x)=>n?g(x):x,a=e.split(Dl),{start:o,end:c,markerLines:l}=_g(t,a,r),p=t.start&&typeof t.start.column=="number",f=String(c).length,m=(n?(0,Va.default)(e,r):e).split(Dl,c).slice(o,c).map((g,x)=>{let S=o+1+x,k=` ${` ${S}`.slice(-f)} |`,v=l[S],T=!l[S+1];if(v){let _="";if(Array.isArray(v)){let b=g.slice(0,Math.max(v[0]-1,0)).replace(/[^\t]/g," "),w=v[1]||1;_=[`
2
+ `,u(s.gutter,k.replace(/\d/g," "))," ",b,u(s.marker,"^").repeat(w)].join(""),T&&r.message&&(_+=" "+u(s.message,r.message))}return[u(s.marker,">"),u(s.gutter,k),g.length>0?` ${g}`:"",_].join("")}else return` ${u(s.gutter,k)}${g.length>0?` ${g}`:""}`}).join(`
3
+ `);return r.message&&!p&&(m=`${" ".repeat(f+1)}${r.message}
4
+ ${m}`),n?i.reset(m):m}function Lg(e,t,r,n={}){if(!yl){yl=!0;let s="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let u=new Error(s);u.name="DeprecationWarning",console.warn(new Error(s))}}return r=Math.max(r,0),gl(e,{start:{column:r,line:t}},n)}});var Np=U(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.extract=p0;Pr.parse=m0;Pr.parseWithComments=Op;Pr.print=d0;Pr.strip=f0;var u0=/\*\/$/,a0=/^\/\*\*?/,Lp=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o0=/(^|\s+)\/\/([^\r\n]*)/g,Pp=/^(\r?\n)+/,c0=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,wp=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,l0=/(\r?\n|^) *\* ?/g,Ip=[];function p0(e){let t=e.match(Lp);return t?t[0].trimLeft():""}function f0(e){let t=e.match(Lp);return t&&t[0]?e.substring(t[0].length):e}function m0(e){return Op(e).pragmas}function Op(e){let t=`
5
+ `;e=e.replace(a0,"").replace(u0,"").replace(l0,"$1");let r="";for(;r!==e;)r=e,e=e.replace(c0,`${t}$1 $2${t}`);e=e.replace(Pp,"").trimRight();let n=Object.create(null),i=e.replace(wp,"").replace(Pp,"").trimRight(),s;for(;s=wp.exec(e);){let u=s[2].replace(o0,"");typeof n[s[1]]=="string"||Array.isArray(n[s[1]])?n[s[1]]=Ip.concat(n[s[1]],u):n[s[1]]=u}return{comments:i,pragmas:n}}function d0({comments:e="",pragmas:t={}}){let r=`
6
+ `,n="/**",i=" *",s=" */",u=Object.keys(t),a=u.map(c=>_p(c,t[c])).reduce((c,l)=>c.concat(l),[]).map(c=>`${i} ${c}${r}`).join("");if(!e){if(u.length===0)return"";if(u.length===1&&!Array.isArray(t[u[0]])){let c=t[u[0]];return`${n} ${_p(u[0],c)[0]}${s}`}}let o=e.split(r).map(c=>`${i} ${c}`).join(r)+r;return n+r+(e?o:"")+(e&&u.length?i+r:"")+a+s}function _p(e,t){return Ip.concat(t).map(r=>`@${e} ${r}`.trim())}});var nc=U((W8,od)=>{"use strict";od.exports=Ox;function Ox(e){return String(e).replace(/\s+/g," ")}});var UT={};fe(UT,{__debug:()=>HT,check:()=>JT,doc:()=>Ru,format:()=>eD,formatWithCursor:()=>Zy,getSupportInfo:()=>GT,util:()=>ju,version:()=>Qy});var uD=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},I=uD;var Jl=xr(vc(),1);var Ni={};fe(Ni,{printDocToString:()=>jt});var fD=(e,t,r)=>{if(!(e&&t==null))return t.at?t.at(r):t[r<0?t.length+r:r]},P=fD;function Bc(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
7
+ `?"crlf":"cr":"lf"}function bn(e){switch(e){case"cr":return"\r";case"crlf":return`\r
8
8
  `;default:return`
9
- `}}function Mu(e,t){let r;switch(t){case`
9
+ `}}function Ju(e,t){let r;switch(t){case`
10
10
  `:r=/\n/g;break;case"\r":r=/\r/g;break;case`\r
11
- `:r=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function vc(e){return e.replace(/\r\n?/g,`
12
- `)}l();l();l();l();function ju({onlyFirst:e=!1}={}){let t=["[\\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(t,e?void 0:"g")}function Ru(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(ju(),"")}l();function $u(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 Pc=Vr(kc(),1);function qu(e){if(typeof e!="string"||e.length===0||(e=Ru(e),e.length===0))return 0;e=e.replace((0,Pc.default)()," ");let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=$u(n)?2:1)}return t}var eD=/[^\x20-\x7F]/;function tD(e){return e?eD.test(e)?qu(e):e.length:0}var ve=tD;l();var mt="string",at="array",yt="cursor",Ne="indent",Oe="align",Me="trim",oe="group",ye="fill",ge="if-break",je="indent-if-break",Re="line-suffix",$e="line-suffix-boundary",ue="line",qe="label",xe="break-parent",Bi=new Set([yt,Ne,Oe,Me,oe,ye,ge,je,Re,$e,ue,qe,xe]);var ki={};fe(ki,{addAlignmentToDoc:()=>Fn,align:()=>X,breakParent:()=>K,concat:()=>nD,conditionalGroup:()=>ke,cursor:()=>Tn,dedent:()=>Be,dedentToRoot:()=>rr,fill:()=>ee,group:()=>g,hardline:()=>D,hardlineWithoutBreakParent:()=>Dr,ifBreak:()=>I,indent:()=>x,indentIfBreak:()=>qt,join:()=>B,label:()=>Xe,line:()=>S,lineSuffix:()=>Jr,lineSuffixBoundary:()=>ot,literalline:()=>dt,literallineWithoutBreakParent:()=>wc,markAsRoot:()=>Bt,softline:()=>C,trim:()=>rD});l();function x(e){return{type:Ne,contents:e}}function X(e,t){return{type:Oe,contents:t,n:e}}function g(e,t={}){return{type:oe,id:t.id,contents:e,break:Boolean(t.shouldBreak),expandedStates:t.expandedStates}}function rr(e){return X(Number.NEGATIVE_INFINITY,e)}function Bt(e){return X({type:"root"},e)}function Be(e){return X(-1,e)}function ke(e,t){return g(e[0],{...t,expandedStates:e})}function ee(e){return{type:ye,parts:e}}function I(e,t="",r={}){return{type:ge,breakContents:e,flatContents:t,groupId:r.groupId}}function qt(e,t){return{type:je,contents:e,groupId:t.groupId,negate:t.negate}}function Jr(e){return{type:Re,contents:e}}var ot={type:$e},K={type:xe},rD={type:Me},Dr={type:ue,hard:!0},wc={type:ue,hard:!0,literal:!0},S={type:ue},C={type:ue,soft:!0},D=[Dr,K],dt=[wc,K],Tn={type:yt};function B(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function Fn(e,t,r){let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=x(n);n=X(t%r,n),n=X(Number.NEGATIVE_INFINITY,n)}return n}function Xe(e,t){return e?{type:qe,label:e,contents:t}:t}var nD=e=>e;var wi={};fe(wi,{canBreak:()=>Ku,cleanDoc:()=>kt,findInDoc:()=>Ju,getDocParts:()=>gr,getDocType:()=>ct,mapDoc:()=>Qe,normalizeDoc:()=>Uu,normalizeParts:()=>Vu,propagateBreaks:()=>Hu,removeLines:()=>ir,replaceEndOfLine:()=>j,stripTrailingHardline:()=>Gu,traverseDoc:()=>Pi,willBreak:()=>ae});l();l();function iD(e){if(typeof e=="string")return mt;if(Array.isArray(e))return at;if(!e)return;let{type:t}=e;if(Bi.has(t))return t}var ct=iD;l();l();var sD=e=>[...e.slice(0,-1),`or ${P(!1,e,-1)}`].join(", ");function uD(e){let t=e===null?null:typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
13
- Expected it to be 'string' or 'object'.`;if(ct(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=sD([...Bi].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
14
- Expected it to be ${n}.`}var Wu=class extends Error{constructor(r){super(uD(r));vi(this,"name","InvalidDocError");this.doc=r}},nr=Wu;var Ic={};function aD(e,t,r,n){let i=[e];for(;i.length>0;){let s=i.pop();if(s===Ic){r(i.pop());continue}if(r&&i.push(s,Ic),(t==null?void 0:t(s))===!1)continue;let u=ct(s);switch(u){case at:case ye:{let a=u===at?s:s.parts;for(let o=a.length,c=o-1;c>=0;--c)i.push(a[c]);break}case ge:i.push(s.flatContents,s.breakContents);break;case oe:if(n&&s.expandedStates)for(let a=s.expandedStates.length,o=a-1;o>=0;--o)i.push(s.expandedStates[o]);else i.push(s.contents);break;case Oe:case Ne:case je:case qe:case Re:i.push(s.contents);break;case mt:case yt:case Me:case $e:case ue:case xe:break;default:throw new nr(s)}}}var Pi=aD;var gr=e=>{if(Array.isArray(e))return e;if(e.type!==ye)throw new Error(`Expect doc to be 'array' or '${ye}'.`);return e.parts};function Qe(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let u=i(s);return r.set(s,u),u}function i(s){switch(ct(s)){case at:return t(s.map(n));case ye:return t({...s,parts:s.parts.map(n)});case ge:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case oe:{let{expandedStates:u,contents:a}=s;return u?(u=u.map(n),a=u[0]):a=n(a),t({...s,contents:a,expandedStates:u})}case Oe:case Ne:case je:case qe:case Re:return t({...s,contents:n(s.contents)});case mt:case yt:case Me:case $e:case ue:case xe:return t(s);default:throw new nr(s)}}}function Ju(e,t,r){let n=r,i=!1;function s(u){if(i)return!1;let a=t(u);a!==void 0&&(i=!0,n=a)}return Pi(e,s),n}function oD(e){if(e.type===oe&&e.break||e.type===ue&&e.hard||e.type===xe)return!0}function ae(e){return Ju(e,oD,!1)}function _c(e){if(e.length>0){let t=P(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Hu(e){let t=new Set,r=[];function n(s){if(s.type===xe&&_c(r),s.type===oe){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===oe&&r.pop().break&&_c(r)}Pi(e,n,i,!0)}function cD(e){return e.type===ue&&!e.hard?e.soft?"":" ":e.type===ge?e.flatContents:e}function ir(e){return Qe(e,cD)}function Lc(e){for(e=[...e];e.length>=2&&P(!1,e,-2).type===ue&&P(!1,e,-1).type===xe;)e.length-=2;if(e.length>0){let t=bn(P(!1,e,-1));e[e.length-1]=t}return e}function bn(e){switch(ct(e)){case Oe:case Ne:case je:case oe:case Re:case qe:{let t=bn(e.contents);return{...e,contents:t}}case ge:return{...e,breakContents:bn(e.breakContents),flatContents:bn(e.flatContents)};case ye:return{...e,parts:Lc(e.parts)};case at:return Lc(e);case mt:return e.replace(/[\n\r]*$/,"");case yt:case Me:case $e:case ue:case xe:break;default:throw new nr(e)}return e}function Gu(e){return bn(kt(e))}function lD(e){switch(ct(e)){case ye:if(e.parts.every(t=>t===""))return"";break;case oe:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===oe&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Oe:case Ne:case je:case Re:if(!e.contents)return"";break;case ge:if(!e.flatContents&&!e.breakContents)return"";break;case at:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof P(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case mt:case yt:case Me:case $e:case ue:case qe:case xe:break;default:throw new nr(e)}return e}function kt(e){return Qe(e,t=>lD(t))}function Vu(e){let t=[],r=e.filter(Boolean);for(;r.length>0;){let n=r.shift();if(!!n){if(Array.isArray(n)){r.unshift(...n);continue}if(t.length>0&&typeof P(!1,t,-1)=="string"&&typeof n=="string"){t[t.length-1]+=n;continue}t.push(n)}}return t}function Uu(e){return Qe(e,t=>Array.isArray(t)?Vu(t):t.parts?{...t,parts:Vu(t.parts)}:t)}function j(e,t=dt){return Qe(e,r=>typeof r=="string"?B(t,r.split(`
15
- `)):r)}function pD(e){if(e.type===ue)return!0}function Ku(e){return Ju(e,pD,!1)}var We=Symbol("MODE_BREAK"),Pt=Symbol("MODE_FLAT"),vn=Symbol("cursor");function Nc(){return{value:"",length:0,queue:[]}}function fD(e,t){return Yu(e,{type:"indent"},t)}function mD(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||Nc():t<0?Yu(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Yu(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Yu(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",s=0,u=0,a=0;for(let y of n)switch(y.type){case"indent":p(),r.useTabs?o(1):c(r.tabWidth);break;case"stringAlign":p(),i+=y.n,s+=y.n.length;break;case"numberAlign":u+=1,a+=y.n;break;default:throw new Error(`Unexpected type '${y.type}'`)}return m(),{...e,value:i,length:s,queue:n};function o(y){i+=" ".repeat(y),s+=r.tabWidth*y}function c(y){i+=" ".repeat(y),s+=y}function p(){r.useTabs?f():m()}function f(){u>0&&o(u),d()}function m(){a>0&&c(a),d()}function d(){u=0,a=0}}function zu(e){let t=0,r=0,n=e.length;e:for(;n--;){let i=e[n];if(i===vn){r++;continue}for(let s=i.length-1;s>=0;s--){let u=i[s];if(u===" "||u===" ")t++;else{e[n]=i.slice(0,s+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(vn);return t}function Ii(e,t,r,n,i,s){let u=t.length,a=[e],o=[];for(;r>=0;){if(a.length===0){if(u===0)return!0;a.push(t[--u]);continue}let{mode:c,doc:p}=a.pop();switch(ct(p)){case mt:o.push(p),r-=ve(p);break;case at:case ye:{let f=gr(p);for(let m=f.length-1;m>=0;m--)a.push({mode:c,doc:f[m]});break}case Ne:case Oe:case je:case qe:a.push({mode:c,doc:p.contents});break;case Me:r+=zu(o);break;case oe:{if(s&&p.break)return!1;let f=p.break?We:c,m=p.expandedStates&&f===We?P(!1,p.expandedStates,-1):p.contents;a.push({mode:f,doc:m});break}case ge:{let m=(p.groupId?i[p.groupId]||Pt:c)===We?p.breakContents:p.flatContents;m&&a.push({mode:c,doc:m});break}case ue:if(c===We||p.hard)return!0;p.soft||(o.push(" "),r--);break;case Re:n=!0;break;case $e:if(n)return!1;break}}return!1}function wt(e,t){let r={},n=t.printWidth,i=An(t.endOfLine),s=0,u=[{ind:Nc(),mode:We,doc:e}],a=[],o=!1,c=[],p=0;for(;u.length>0;){let{ind:m,mode:d,doc:y}=u.pop();switch(ct(y)){case mt:{let E=i!==`
16
- `?y.replace(/\n/g,i):y;a.push(E),s+=ve(E);break}case at:for(let E=y.length-1;E>=0;E--)u.push({ind:m,mode:d,doc:y[E]});break;case yt:if(p>=2)throw new Error("There are too many 'cursor' in doc.");a.push(vn),p++;break;case Ne:u.push({ind:fD(m,t),mode:d,doc:y.contents});break;case Oe:u.push({ind:mD(m,y.n,t),mode:d,doc:y.contents});break;case Me:s-=zu(a);break;case oe:switch(d){case Pt:if(!o){u.push({ind:m,mode:y.break?We:Pt,doc:y.contents});break}case We:{o=!1;let E={ind:m,mode:Pt,doc:y.contents},T=n-s,b=c.length>0;if(!y.break&&Ii(E,u,T,b,r))u.push(E);else if(y.expandedStates){let k=P(!1,y.expandedStates,-1);if(y.break){u.push({ind:m,mode:We,doc:k});break}else for(let A=1;A<y.expandedStates.length+1;A++)if(A>=y.expandedStates.length){u.push({ind:m,mode:We,doc:k});break}else{let F=y.expandedStates[A],v={ind:m,mode:Pt,doc:F};if(Ii(v,u,T,b,r)){u.push(v);break}}}else u.push({ind:m,mode:We,doc:y.contents});break}}y.id&&(r[y.id]=P(!1,u,-1).mode);break;case ye:{let E=n-s,{parts:T}=y;if(T.length===0)break;let[b,k]=T,A={ind:m,mode:Pt,doc:b},F={ind:m,mode:We,doc:b},v=Ii(A,[],E,c.length>0,r,!0);if(T.length===1){v?u.push(A):u.push(F);break}let M={ind:m,mode:Pt,doc:k},W={ind:m,mode:We,doc:k};if(T.length===2){v?u.push(M,A):u.push(W,F);break}T.splice(0,2);let V={ind:m,mode:d,doc:ee(T)},z=T[0];Ii({ind:m,mode:Pt,doc:[b,k,z]},[],E,c.length>0,r,!0)?u.push(V,M,A):v?u.push(V,W,A):u.push(V,W,F);break}case ge:case je:{let E=y.groupId?r[y.groupId]:d;if(E===We){let T=y.type===ge?y.breakContents:y.negate?y.contents:x(y.contents);T&&u.push({ind:m,mode:d,doc:T})}if(E===Pt){let T=y.type===ge?y.flatContents:y.negate?x(y.contents):y.contents;T&&u.push({ind:m,mode:d,doc:T})}break}case Re:c.push({ind:m,mode:d,doc:y.contents});break;case $e:c.length>0&&u.push({ind:m,mode:d,doc:Dr});break;case ue:switch(d){case Pt:if(y.hard)o=!0;else{y.soft||(a.push(" "),s+=1);break}case We:if(c.length>0){u.push({ind:m,mode:d,doc:y},...c.reverse()),c.length=0;break}y.literal?m.root?(a.push(i,m.root.value),s=m.root.length):(a.push(i),s=0):(s-=zu(a),a.push(i+m.value),s=m.length);break}break;case qe:u.push({ind:m,mode:d,doc:y.contents});break;case xe:break;default:throw new nr(y)}u.length===0&&c.length>0&&(u.push(...c.reverse()),c.length=0)}let f=a.indexOf(vn);if(f!==-1){let m=a.indexOf(vn,f+1),d=a.slice(0,f).join(""),y=a.slice(f+1,m).join(""),E=a.slice(m+1).join("");return{formatted:d+y+E,cursorNodeStart:d.length,cursorNodeText:y}}return{formatted:a.join("")}}var Li={};fe(Li,{printDocToDebug:()=>Xu});l();function Wt(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...Wt(n));else{let i=Wt(n);i!==""&&r.push(i)}return r}return e.type===ge?{...e,breakContents:Wt(e.breakContents),flatContents:Wt(e.flatContents)}:e.type===oe?{...e,contents:Wt(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(Wt)}:e.type===ye?{type:"fill",parts:e.parts.map(Wt)}:e.contents?{...e,contents:Wt(e.contents)}:e}function Xu(e){let t=Object.create(null),r=new Set;return n(Wt(e));function n(s,u,a){if(typeof s=="string")return JSON.stringify(s);if(Array.isArray(s)){let o=s.map(n).filter(Boolean);return o.length===1?o[0]:`[${o.join(", ")}]`}if(s.type===ue){let o=Array.isArray(a)&&a[u+1]&&a[u+1].type===xe;return s.literal?o?"literalline":"literallineWithoutBreakParent":s.hard?o?"hardline":"hardlineWithoutBreakParent":s.soft?"softline":"line"}if(s.type===xe)return Array.isArray(a)&&a[u-1]&&a[u-1].type===ue&&a[u-1].hard?void 0:"breakParent";if(s.type===Me)return"trim";if(s.type===Ne)return"indent("+n(s.contents)+")";if(s.type===Oe)return s.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(s.contents)+")":s.n<0?"dedent("+n(s.contents)+")":s.n.type==="root"?"markAsRoot("+n(s.contents)+")":"align("+JSON.stringify(s.n)+", "+n(s.contents)+")";if(s.type===ge)return"ifBreak("+n(s.breakContents)+(s.flatContents?", "+n(s.flatContents):"")+(s.groupId?(s.flatContents?"":', ""')+`, { groupId: ${i(s.groupId)} }`:"")+")";if(s.type===je){let o=[];s.negate&&o.push("negate: true"),s.groupId&&o.push(`groupId: ${i(s.groupId)}`);let c=o.length>0?`, { ${o.join(", ")} }`:"";return`indentIfBreak(${n(s.contents)}${c})`}if(s.type===oe){let o=[];s.break&&s.break!=="propagated"&&o.push("shouldBreak: true"),s.id&&o.push(`id: ${i(s.id)}`);let c=o.length>0?`, { ${o.join(", ")} }`:"";return s.expandedStates?`conditionalGroup([${s.expandedStates.map(p=>n(p)).join(",")}]${c})`:`group(${n(s.contents)}${c})`}if(s.type===ye)return`fill([${s.parts.map(o=>n(o)).join(", ")}])`;if(s.type===Re)return"lineSuffix("+n(s.contents)+")";if(s.type===$e)return"lineSuffixBoundary";if(s.type===qe)return`label(${JSON.stringify(s.label)}, ${n(s.contents)})`;throw new Error("Unknown doc type "+s.type)}function i(s){if(typeof s!="symbol")return JSON.stringify(String(s));if(s in t)return t[s];let u=s.description||"symbol";for(let a=0;;a++){let o=u+(a>0?` #${a}`:"");if(!r.has(o))return r.add(o),t[s]=`Symbol.for(${JSON.stringify(o)})`}}}l();l();function Ni(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}l();function hr(e){return(t,r,n)=>{let i=n&&n.backwards;if(r===!1)return!1;let{length:s}=t,u=r;for(;u>=0&&u<s;){let a=t.charAt(u);if(e instanceof RegExp){if(!e.test(a))return u}else if(!e.includes(a))return u;i?u--:u++}return u===-1||u===s?u:!1}}var Qu=hr(/\s/),lt=hr(" "),Oi=hr(",; "),Hr=hr(/[^\n\r]/);l();function yD(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var Gr=yD;l();function dD(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Hr(e,t):t}var Ur=dD;l();function DD(e,t,r){let n=r&&r.backwards;if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===`
11
+ `:r=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function kc(e){return I(!1,e,/\r\n?/g,`
12
+ `)}function Gu({onlyFirst:e=!1}={}){let t=["[\\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(t,e?void 0:"g")}function Hu(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Gu(),"")}function Uu(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 _c=xr(wc(),1);function Ku(e){if(typeof e!="string"||e.length===0||(e=Hu(e),e.length===0))return 0;e=e.replace((0,_c.default)()," ");let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=Uu(n)?2:1)}return t}var mD=/[^\x20-\x7F]/;function dD(e){return e?mD.test(e)?Ku(e):e.length:0}var $e=dD;var Ft="string",dt="array",bt="cursor",We="indent",qe="align",Ve="trim",me="group",he="fill",Se="if-break",Je="indent-if-break",Ge="line-suffix",He="line-suffix-boundary",oe="line",Ue="label",Ae="break-parent",ki=new Set([bt,We,qe,Ve,me,he,Se,Je,Ge,He,oe,Ue,Ae]);var Li={};fe(Li,{addAlignmentToDoc:()=>vn,align:()=>Q,breakParent:()=>K,concat:()=>CD,conditionalGroup:()=>Le,cursor:()=>_i,dedent:()=>_e,dedentToRoot:()=>sr,fill:()=>ie,group:()=>D,hardline:()=>y,hardlineWithoutBreakParent:()=>Sr,ifBreak:()=>L,indent:()=>E,indentIfBreak:()=>Yt,join:()=>A,label:()=>Ie,line:()=>C,lineSuffix:()=>Gr,lineSuffixBoundary:()=>Dt,literalline:()=>Bt,literallineWithoutBreakParent:()=>Oc,markAsRoot:()=>Ot,softline:()=>h,trim:()=>ED});function yD(e){if(typeof e=="string")return Ft;if(Array.isArray(e))return dt;if(!e)return;let{type:t}=e;if(ki.has(t))return t}var yt=yD;var DD=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function gD(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
13
+ Expected it to be 'string' or 'object'.`;if(yt(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=DD([...ki].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
14
+ Expected it to be ${n}.`}var Yu=class extends Error{name="InvalidDocError";constructor(t){super(gD(t)),this.doc=t}},Kt=Yu;var Lc={};function hD(e,t,r,n){let i=[e];for(;i.length>0;){let s=i.pop();if(s===Lc){r(i.pop());continue}r&&i.push(s,Lc);let u=yt(s);if(!u)throw new Kt(s);if((t==null?void 0:t(s))!==!1)switch(u){case dt:case he:{let a=u===dt?s:s.parts;for(let o=a.length,c=o-1;c>=0;--c)i.push(a[c]);break}case Se:i.push(s.flatContents,s.breakContents);break;case me:if(n&&s.expandedStates)for(let a=s.expandedStates.length,o=a-1;o>=0;--o)i.push(s.expandedStates[o]);else i.push(s.contents);break;case qe:case We:case Je:case Ue:case Ge:i.push(s.contents);break;case Ft:case bt:case Ve:case He:case oe:case Ae:break;default:throw new Kt(s)}}}var Pi=hD;var Ic=()=>{},vt=Ic,wi=Ic;function E(e){return vt(e),{type:We,contents:e}}function Q(e,t){return vt(t),{type:qe,contents:t,n:e}}function D(e,t={}){return vt(e),wi(t.expandedStates,!0),{type:me,id:t.id,contents:e,break:Boolean(t.shouldBreak),expandedStates:t.expandedStates}}function sr(e){return Q(Number.NEGATIVE_INFINITY,e)}function Ot(e){return Q({type:"root"},e)}function _e(e){return Q(-1,e)}function Le(e,t){return D(e[0],{...t,expandedStates:e})}function ie(e){return wi(e),{type:he,parts:e}}function L(e,t="",r={}){return vt(e),t!==""&&vt(t),{type:Se,breakContents:e,flatContents:t,groupId:r.groupId}}function Yt(e,t){return vt(e),{type:Je,contents:e,groupId:t.groupId,negate:t.negate}}function Gr(e){return vt(e),{type:Ge,contents:e}}var Dt={type:He},K={type:Ae},ED={type:Ve},Sr={type:oe,hard:!0},Oc={type:oe,hard:!0,literal:!0},C={type:oe},h={type:oe,soft:!0},y=[Sr,K],Bt=[Oc,K],_i={type:bt};function A(e,t){vt(e),wi(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function vn(e,t,r){vt(e);let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=E(n);n=Q(t%r,n),n=Q(Number.NEGATIVE_INFINITY,n)}return n}function Ie(e,t){return vt(t),e?{type:Ue,label:e,contents:t}:t}var CD=e=>e;var Ii={};fe(Ii,{canBreak:()=>ta,cleanDoc:()=>Nt,findInDoc:()=>Xu,getDocParts:()=>Tr,getDocType:()=>yt,mapDoc:()=>nt,normalizeDoc:()=>ea,normalizeParts:()=>zu,propagateBreaks:()=>Qu,removeLines:()=>ur,replaceEndOfLine:()=>$,stripTrailingHardline:()=>Zu,traverseDoc:()=>Pi,willBreak:()=>ce});var Tr=e=>{if(Array.isArray(e))return e;if(e.type!==he)throw new Error(`Expect doc to be 'array' or '${he}'.`);return e.parts};function nt(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let u=i(s);return r.set(s,u),u}function i(s){switch(yt(s)){case dt:return t(s.map(n));case he:return t({...s,parts:s.parts.map(n)});case Se:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case me:{let{expandedStates:u,contents:a}=s;return u?(u=u.map(n),a=u[0]):a=n(a),t({...s,contents:a,expandedStates:u})}case qe:case We:case Je:case Ue:case Ge:return t({...s,contents:n(s.contents)});case Ft:case bt:case Ve:case He:case oe:case Ae:return t(s);default:throw new Kt(s)}}}function Xu(e,t,r){let n=r,i=!1;function s(u){if(i)return!1;let a=t(u);a!==void 0&&(i=!0,n=a)}return Pi(e,s),n}function xD(e){if(e.type===me&&e.break||e.type===oe&&e.hard||e.type===Ae)return!0}function ce(e){return Xu(e,xD,!1)}function Nc(e){if(e.length>0){let t=P(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Qu(e){let t=new Set,r=[];function n(s){if(s.type===Ae&&Nc(r),s.type===me){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===me&&r.pop().break&&Nc(r)}Pi(e,n,i,!0)}function SD(e){return e.type===oe&&!e.hard?e.soft?"":" ":e.type===Se?e.flatContents:e}function ur(e){return nt(e,SD)}function Mc(e){for(e=[...e];e.length>=2&&P(!1,e,-2).type===oe&&P(!1,e,-1).type===Ae;)e.length-=2;if(e.length>0){let t=Bn(P(!1,e,-1));e[e.length-1]=t}return e}function Bn(e){switch(yt(e)){case qe:case We:case Je:case me:case Ge:case Ue:{let t=Bn(e.contents);return{...e,contents:t}}case Se:return{...e,breakContents:Bn(e.breakContents),flatContents:Bn(e.flatContents)};case he:return{...e,parts:Mc(e.parts)};case dt:return Mc(e);case Ft:return e.replace(/[\n\r]*$/,"");case bt:case Ve:case He:case oe:case Ae:break;default:throw new Kt(e)}return e}function Zu(e){return Bn(Nt(e))}function TD(e){switch(yt(e)){case he:if(e.parts.every(t=>t===""))return"";break;case me:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===me&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case qe:case We:case Je:case Ge:if(!e.contents)return"";break;case Se:if(!e.flatContents&&!e.breakContents)return"";break;case dt:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof P(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case Ft:case bt:case Ve:case He:case oe:case Ue:case Ae:break;default:throw new Kt(e)}return e}function Nt(e){return nt(e,t=>TD(t))}function zu(e){let t=[],r=e.filter(Boolean);for(;r.length>0;){let n=r.shift();if(n){if(Array.isArray(n)){r.unshift(...n);continue}if(t.length>0&&typeof P(!1,t,-1)=="string"&&typeof n=="string"){t[t.length-1]+=n;continue}t.push(n)}}return t}function ea(e){return nt(e,t=>Array.isArray(t)?zu(t):t.parts?{...t,parts:zu(t.parts)}:t)}function $(e,t=Bt){return nt(e,r=>typeof r=="string"?A(t,r.split(`
15
+ `)):r)}function AD(e){if(e.type===oe)return!0}function ta(e){return Xu(e,AD,!1)}var Ke=Symbol("MODE_BREAK"),Mt=Symbol("MODE_FLAT"),kn=Symbol("cursor");function jc(){return{value:"",length:0,queue:[]}}function FD(e,t){return ra(e,{type:"indent"},t)}function bD(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||jc():t<0?ra(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:ra(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function ra(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",s=0,u=0,a=0;for(let m of n)switch(m.type){case"indent":l(),r.useTabs?o(1):c(r.tabWidth);break;case"stringAlign":l(),i+=m.n,s+=m.n.length;break;case"numberAlign":u+=1,a+=m.n;break;default:throw new Error(`Unexpected type '${m.type}'`)}return f(),{...e,value:i,length:s,queue:n};function o(m){i+=" ".repeat(m),s+=r.tabWidth*m}function c(m){i+=" ".repeat(m),s+=m}function l(){r.useTabs?p():f()}function p(){u>0&&o(u),d()}function f(){a>0&&c(a),d()}function d(){u=0,a=0}}function na(e){let t=0,r=0,n=e.length;e:for(;n--;){let i=e[n];if(i===kn){r++;continue}for(let s=i.length-1;s>=0;s--){let u=i[s];if(u===" "||u===" ")t++;else{e[n]=i.slice(0,s+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(kn);return t}function Oi(e,t,r,n,i,s){let u=t.length,a=[e],o=[];for(;r>=0;){if(a.length===0){if(u===0)return!0;a.push(t[--u]);continue}let{mode:c,doc:l}=a.pop();switch(yt(l)){case Ft:o.push(l),r-=$e(l);break;case dt:case he:{let p=Tr(l);for(let f=p.length-1;f>=0;f--)a.push({mode:c,doc:p[f]});break}case We:case qe:case Je:case Ue:a.push({mode:c,doc:l.contents});break;case Ve:r+=na(o);break;case me:{if(s&&l.break)return!1;let p=l.break?Ke:c,f=l.expandedStates&&p===Ke?P(!1,l.expandedStates,-1):l.contents;a.push({mode:p,doc:f});break}case Se:{let f=(l.groupId?i[l.groupId]||Mt:c)===Ke?l.breakContents:l.flatContents;f&&a.push({mode:c,doc:f});break}case oe:if(c===Ke||l.hard)return!0;l.soft||(o.push(" "),r--);break;case Ge:n=!0;break;case He:if(n)return!1;break}}return!1}function jt(e,t){let r={},n=t.printWidth,i=bn(t.endOfLine),s=0,u=[{ind:jc(),mode:Ke,doc:e}],a=[],o=!1,c=[],l=0;for(;u.length>0;){let{ind:f,mode:d,doc:m}=u.pop();switch(yt(m)){case Ft:{let g=i!==`
16
+ `?I(!1,m,`
17
+ `,i):m;a.push(g),u.length>0&&(s+=$e(g));break}case dt:for(let g=m.length-1;g>=0;g--)u.push({ind:f,mode:d,doc:m[g]});break;case bt:if(l>=2)throw new Error("There are too many 'cursor' in doc.");a.push(kn),l++;break;case We:u.push({ind:FD(f,t),mode:d,doc:m.contents});break;case qe:u.push({ind:bD(f,m.n,t),mode:d,doc:m.contents});break;case Ve:s-=na(a);break;case me:switch(d){case Mt:if(!o){u.push({ind:f,mode:m.break?Ke:Mt,doc:m.contents});break}case Ke:{o=!1;let g={ind:f,mode:Mt,doc:m.contents},x=n-s,S=c.length>0;if(!m.break&&Oi(g,u,x,S,r))u.push(g);else if(m.expandedStates){let F=P(!1,m.expandedStates,-1);if(m.break){u.push({ind:f,mode:Ke,doc:F});break}else for(let k=1;k<m.expandedStates.length+1;k++)if(k>=m.expandedStates.length){u.push({ind:f,mode:Ke,doc:F});break}else{let v=m.expandedStates[k],T={ind:f,mode:Mt,doc:v};if(Oi(T,u,x,S,r)){u.push(T);break}}}else u.push({ind:f,mode:Ke,doc:m.contents});break}}m.id&&(r[m.id]=P(!1,u,-1).mode);break;case he:{let g=n-s,{parts:x}=m;if(x.length===0)break;let[S,F]=x,k={ind:f,mode:Mt,doc:S},v={ind:f,mode:Ke,doc:S},T=Oi(k,[],g,c.length>0,r,!0);if(x.length===1){T?u.push(k):u.push(v);break}let _={ind:f,mode:Mt,doc:F},b={ind:f,mode:Ke,doc:F};if(x.length===2){T?u.push(_,k):u.push(b,v);break}x.splice(0,2);let w={ind:f,mode:d,doc:ie(x)},j=x[0];Oi({ind:f,mode:Mt,doc:[S,F,j]},[],g,c.length>0,r,!0)?u.push(w,_,k):T?u.push(w,b,k):u.push(w,b,v);break}case Se:case Je:{let g=m.groupId?r[m.groupId]:d;if(g===Ke){let x=m.type===Se?m.breakContents:m.negate?m.contents:E(m.contents);x&&u.push({ind:f,mode:d,doc:x})}if(g===Mt){let x=m.type===Se?m.flatContents:m.negate?E(m.contents):m.contents;x&&u.push({ind:f,mode:d,doc:x})}break}case Ge:c.push({ind:f,mode:d,doc:m.contents});break;case He:c.length>0&&u.push({ind:f,mode:d,doc:Sr});break;case oe:switch(d){case Mt:if(m.hard)o=!0;else{m.soft||(a.push(" "),s+=1);break}case Ke:if(c.length>0){u.push({ind:f,mode:d,doc:m},...c.reverse()),c.length=0;break}m.literal?f.root?(a.push(i,f.root.value),s=f.root.length):(a.push(i),s=0):(s-=na(a),a.push(i+f.value),s=f.length);break}break;case Ue:u.push({ind:f,mode:d,doc:m.contents});break;case Ae:break;default:throw new Kt(m)}u.length===0&&c.length>0&&(u.push(...c.reverse()),c.length=0)}let p=a.indexOf(kn);if(p!==-1){let f=a.indexOf(kn,p+1),d=a.slice(0,p).join(""),m=a.slice(p+1,f).join(""),g=a.slice(f+1).join("");return{formatted:d+m+g,cursorNodeStart:d.length,cursorNodeText:m}}return{formatted:a.join("")}}var Mi={};fe(Mi,{printDocToDebug:()=>ia});function zt(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...zt(n));else{let i=zt(n);i!==""&&r.push(i)}return r}return e.type===Se?{...e,breakContents:zt(e.breakContents),flatContents:zt(e.flatContents)}:e.type===me?{...e,contents:zt(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(zt)}:e.type===he?{type:"fill",parts:e.parts.map(zt)}:e.contents?{...e,contents:zt(e.contents)}:e}function ia(e){let t=Object.create(null),r=new Set;return n(zt(e));function n(s,u,a){var o,c;if(typeof s=="string")return JSON.stringify(s);if(Array.isArray(s)){let l=s.map(n).filter(Boolean);return l.length===1?l[0]:`[${l.join(", ")}]`}if(s.type===oe){let l=((o=a==null?void 0:a[u+1])==null?void 0:o.type)===Ae;return s.literal?l?"literalline":"literallineWithoutBreakParent":s.hard?l?"hardline":"hardlineWithoutBreakParent":s.soft?"softline":"line"}if(s.type===Ae)return((c=a==null?void 0:a[u-1])==null?void 0:c.type)===oe&&a[u-1].hard?void 0:"breakParent";if(s.type===Ve)return"trim";if(s.type===We)return"indent("+n(s.contents)+")";if(s.type===qe)return s.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(s.contents)+")":s.n<0?"dedent("+n(s.contents)+")":s.n.type==="root"?"markAsRoot("+n(s.contents)+")":"align("+JSON.stringify(s.n)+", "+n(s.contents)+")";if(s.type===Se)return"ifBreak("+n(s.breakContents)+(s.flatContents?", "+n(s.flatContents):"")+(s.groupId?(s.flatContents?"":', ""')+`, { groupId: ${i(s.groupId)} }`:"")+")";if(s.type===Je){let l=[];s.negate&&l.push("negate: true"),s.groupId&&l.push(`groupId: ${i(s.groupId)}`);let p=l.length>0?`, { ${l.join(", ")} }`:"";return`indentIfBreak(${n(s.contents)}${p})`}if(s.type===me){let l=[];s.break&&s.break!=="propagated"&&l.push("shouldBreak: true"),s.id&&l.push(`id: ${i(s.id)}`);let p=l.length>0?`, { ${l.join(", ")} }`:"";return s.expandedStates?`conditionalGroup([${s.expandedStates.map(f=>n(f)).join(",")}]${p})`:`group(${n(s.contents)}${p})`}if(s.type===he)return`fill([${s.parts.map(l=>n(l)).join(", ")}])`;if(s.type===Ge)return"lineSuffix("+n(s.contents)+")";if(s.type===He)return"lineSuffixBoundary";if(s.type===Ue)return`label(${JSON.stringify(s.label)}, ${n(s.contents)})`;throw new Error("Unknown doc type "+s.type)}function i(s){if(typeof s!="symbol")return JSON.stringify(String(s));if(s in t)return t[s];let u=s.description||"symbol";for(let a=0;;a++){let o=u+(a>0?` #${a}`:"");if(!r.has(o))return r.add(o),t[s]=`Symbol.for(${JSON.stringify(o)})`}}}function vD(e,t,r=0){let n=0;for(let i=r;i<e.length;++i)e[i]===" "?n=n+t-n%t:n++;return n}var Hr=vD;var ji=class extends Error{};var Ri=class extends Error{},Xt=class extends Error{};var BD=(e,t)=>Object.entries(e).map(([r,n])=>({[t]:r,...n})),Rc=BD;var $c={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.
18
+ This option cannot be used with --range-start and --range-end.`,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
19
+ (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:"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"}]},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"},pluginSearchDirs:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:`Custom directory that contains prettier plugins in node_modules subdirectory.
20
+ Overrides default behavior when plugins are searched relatively to the location of Prettier.
21
+ Multiple values are accepted.`,exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin-search-dir",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).
22
+ The range will extend forwards to the end of the selected statement.
23
+ This option cannot be used with --cursor-offset.`,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.
24
+ The range will extend backwards to the start of the first line containing the selected statement.
25
+ This option cannot be used with --cursor-offset.`,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
26
+ 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 ar({plugins:e=[],showDeprecated:t=!1,showInternal:r=!1}={}){let n=e.flatMap(a=>a.languages||[]),i=Rc(Object.assign({},...e.map(({options:a})=>a),$c),"name").filter(a=>s(a)).sort((a,o)=>a.name===o.name?0:a.name<o.name?-1:1).map(u).map(a=>{a={...a},Array.isArray(a.default)&&(a.default=P(!1,a.default,-1).value),Array.isArray(a.choices)&&(a.choices=a.choices.filter(c=>s(c)),a.name==="parser"&&kD(a,n,e));let o=Object.fromEntries(e.filter(c=>{var l;return((l=c.defaultOptions)==null?void 0:l[a.name])!==void 0}).map(c=>[c.name,c.defaultOptions[a.name]]));return{...a,pluginDefaults:o}});return{languages:n,options:i};function s(a){return t||!a.deprecated}function u(a){if(r)return a;let{cliName:o,cliCategory:c,cliDescription:l,...p}=a;return p}}function kD(e,t,r){let n=new Set(e.choices.map(i=>i.value));for(let i of t)if(i.parsers){for(let s of i.parsers)if(!n.has(s)){n.add(s);let u=r.find(o=>{var c;return(c=o.parsers)==null?void 0:c[s]}),a=i.name;u!=null&&u.name&&(a+=` (plugin: ${u.name})`),e.choices.push({value:s,description:a})}}}var ut=xr(fl(),1),Wa;function bg(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:s,descriptor:u}={}){if(n){if(!s)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=ut.default.apiDescriptor;let a=i?Array.isArray(i)?(f,d)=>i.includes(f)?{[f]:d}:void 0:(f,d)=>({[f]:d}):(f,d,m)=>{let{_:g,...x}=m.schemas;return ut.default.levenUnknownHandler(f,d,{...m,schemas:x})},o=vg(t,{isCLI:n,FlagSchema:s}),c=new ut.default.Normalizer(o,{logger:r,unknown:a,descriptor:u}),l=r!==!1;l&&Wa&&(c._hasDeprecationWarned=Wa);let p=c.normalize(e);return l&&(Wa=c._hasDeprecationWarned),n&&p["plugin-search"]===!1&&(p["plugin-search-dir"]=!1),p}function vg(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(ut.default.AnySchema.create({name:"_"}));for(let i of e)n.push(Bg(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(ut.default.AliasSchema.create({name:i.alias,sourceName:i.name}));return n}function Bg(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e;if(i==="plugin-search-dir"||i==="pluginSearchDirs")return ut.default.AnySchema.create({name:i,preprocess(o){return o===!1||(o=Array.isArray(o)?o:[o]),o},validate(o){return o===!1?!0:o.every(c=>typeof c=="string")},expected(){return"false or paths to plugin search dir"}});let s={name:i},u,a={};switch(e.type){case"int":u=ut.default.IntegerSchema,t&&(s.preprocess=Number);break;case"string":u=ut.default.StringSchema;break;case"choice":u=ut.default.ChoiceSchema,s.choices=e.choices.map(o=>o!=null&&o.redirect?{...o,redirect:{to:{key:e.name,value:o.redirect}}}:o);break;case"boolean":u=ut.default.BooleanSchema;break;case"flag":u=n,s.flags=r.flatMap(o=>[o.alias,o.description&&o.name,o.oppositeDescription&&`no-${o.name}`].filter(Boolean));break;case"path":u=ut.default.StringSchema;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?s.validate=(o,c,l)=>e.exception(o)||c.validate(o,l):s.validate=(o,c,l)=>o===void 0||c.validate(o,l),e.redirect&&(a.redirect=o=>o?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(a.deprecated=!0),t&&!e.array){let o=s.preprocess||(c=>c);s.preprocess=(c,l,p)=>l.preprocess(o(Array.isArray(c)?P(!1,c,-1):c),p)}return e.array?ut.default.ArraySchema.create({...t?{preprocess:o=>Array.isArray(o)?o:[o]}:{},...a,valueSchema:u.create(s)}):u.create({...s,...a})}var qa=bg;var El=xr(hl(),1);function In({plugins:e,parser:t}){for(let r=e.length-1;r>=0;r--){let{parsers:n}=e[r];if(n&&Object.prototype.hasOwnProperty.call(n,t)){let i=n[t];return typeof i=="function"?i():i}}throw new ji(`Couldn't resolve parser "${t}". Parsers must be explicitly added to the standalone bundle.`)}async function br(e,t){let r=await In(t),n=r.preprocess?r.preprocess(e,t):e,i;try{i=await r.parse(n,t,t)}catch(s){Ig(s,e)}return{text:n,ast:i}}function Ig(e,t){let{loc:r}=e;if(r){let n=(0,El.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=`
27
+ `+n,e.codeFrame=n,e}throw e}function Cl(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];i==="."?e.splice(n,1):i===".."?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var Og=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Ga=function(e){return Og.exec(e).slice(1)};function Ja(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!n)continue;e=n+"/"+e,t=n.charAt(0)==="/"}return e=Cl(Ha(e.split("/"),function(i){return!!i}),!t).join("/"),(t?"/":"")+e||"."}function xl(e){var t=Sl(e),r=Vg(e,-1)==="/";return e=Cl(Ha(e.split("/"),function(n){return!!n}),!t).join("/"),!e&&!t&&(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function Sl(e){return e.charAt(0)==="/"}function Ng(){var e=Array.prototype.slice.call(arguments,0);return xl(Ha(e,function(t,r){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))}function Mg(e,t){e=Ja(e).substr(1),t=Ja(t).substr(1);function r(c){for(var l=0;l<c.length&&c[l]==="";l++);for(var p=c.length-1;p>=0&&c[p]==="";p--);return l>p?[]:c.slice(l,p-l+1)}for(var n=r(e.split("/")),i=r(t.split("/")),s=Math.min(n.length,i.length),u=s,a=0;a<s;a++)if(n[a]!==i[a]){u=a;break}for(var o=[],a=u;a<n.length;a++)o.push("..");return o=o.concat(i.slice(u)),o.join("/")}var jg="/",Rg=":";function $g(e){var t=Ga(e),r=t[0],n=t[1];return!r&&!n?".":(n&&(n=n.substr(0,n.length-1)),r+n)}function Wg(e,t){var r=Ga(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r}function qg(e){return Ga(e)[3]}var Tl={extname:qg,basename:Wg,dirname:$g,sep:jg,delimiter:Rg,relative:Mg,join:Ng,isAbsolute:Sl,normalize:xl,resolve:Ja};function Ha(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}var Vg="ab".substr(-1)==="b"?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)};function Jg(e,t){let r=Tl.basename(e).toLowerCase(),{languages:n}=ar({plugins:t}),i=n.find(s=>{var u,a;return((u=s.extensions)==null?void 0:u.some(o=>r.endsWith(o)))||((a=s.filenames)==null?void 0:a.some(o=>o.toLowerCase()===r))});return i==null?void 0:i.parsers[0]}var Al=Jg;var Fl={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function Gg(e,t={}){let r={...e},n=ar({plugins:e.plugins,showDeprecated:!0}).options,i={...Fl,...Object.fromEntries(n.filter(c=>c.default!==void 0).map(c=>[c.name,c.default]))};if(!r.parser){if(!r.filepath)(t.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."),r.parser="babel";else if(r.parser=Al(r.filepath,r.plugins),!r.parser)throw new Ri(`No parser could be inferred for file: ${r.filepath}`)}let s=await In(qa(r,[n.find(c=>c.name==="parser")],{passThrough:!0,logger:!1}));r.astFormat=s.astFormat,r.locEnd=s.locEnd,r.locStart=s.locStart;let u=Hg(r);r.printer=u.printers[r.astFormat];let a=Object.fromEntries(n.filter(c=>{var l;return((l=c.pluginDefaults)==null?void 0:l[u.name])!==void 0}).map(c=>[c.name,c.pluginDefaults[u.name]])),o={...i,...a};for(let[c,l]of Object.entries(o))(r[c]===null||r[c]===void 0)&&(r[c]=l);return r.parser==="json"&&(r.trailingComma="none"),qa(r,n,{passThrough:Object.keys(Fl),...t})}function Hg(e){let{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");let r=e.plugins.find(n=>{var i;return(i=n.printers)==null?void 0:i[t]});if(!r)throw new Error(`Couldn't find plugin for AST format "${t}"`);return r}var cr=Gg;var bl=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Ug=e=>Object.keys(e).filter(t=>!bl.has(t));function Kg(e){return e?t=>e(t,bl):Ug}var lr=Kg;function Yg(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let i=lr(n),s=r.ignoredProperties??new Set;return u(e);function u(a,o){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a))return a.map(f=>u(f,o)).filter(Boolean);let c={},l=new Set(i(a));for(let f in a)!Object.prototype.hasOwnProperty.call(a,f)||s.has(f)||(l.has(f)?c[f]=u(a[f],a):c[f]=a[f]);let p=r(a,c,o);if(p!==null)return p??c}}var vl=Yg;var On=()=>{};On.ok=On;On.strictEqual=On;var gt=On;function Kr(e){return(t,r,n)=>{let i=Boolean(n==null?void 0:n.backwards);if(r===!1)return!1;let{length:s}=t,u=r;for(;u>=0&&u<s;){let a=t.charAt(u);if(e instanceof RegExp){if(!e.test(a))return u}else if(!e.includes(a))return u;i?u--:u++}return u===-1||u===s?u:!1}}var Bl=Kr(/\s/),Oe=Kr(" "),Ki=Kr(",; "),Nn=Kr(/[^\n\r]/);function zg(e,t,r){let n=Boolean(r==null?void 0:r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===`
17
28
  `)return t-2;if(i===`
18
29
  `||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
19
30
  `)return t+2;if(i===`
20
- `||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var Dt=DD;l();function gD(e,t){let r=null,n=t;for(;n!==r;)r=n,n=lt(e,n),n=Gr(e,n),n=Ur(e,n),n=Dt(e,n);return n}var Kr=gD;l();function hD(e){return Array.isArray(e)&&e.length>0}var L=hD;function Q(e,t,r={}){let n=lt(e,r.backwards?t-1:t,r),i=Dt(e,n,r);return n!==i}function It(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
21
- `)return!0;return!1}function Yr(e,t,r){let n=r(t)-1;n=lt(e,n,{backwards:!0}),n=Dt(e,n,{backwards:!0}),n=lt(e,n,{backwards:!0});let i=Dt(e,n,{backwards:!0});return n!==i}function Er(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Oi(e,n),n=Gr(e,n),n=lt(e,n);return n=Ur(e,n),n=Dt(e,n),n!==!1&&Q(e,n)}function Cr(e,t,r){return Er(e,r(t))}function Vt(e,t,r){return Kr(e,r(t))}function gt(e,t,r){return e.charAt(Vt(e,t,r))}function Oc(e,t,r={}){return lt(e,r.backwards?t-1:t,r)!==t}function Bn(e,t,r=0){let n=0;for(let i=r;i<e.length;++i)e[i]===" "?n=n+t-n%t:n++;return n}function Mi(e,t){let r=e.lastIndexOf(`
22
- `);return r===-1?0:Bn(e.slice(r+1).match(/^[\t ]*/)[0],t)}function xr(e,t){let r={quote:'"',regex:/"/g,escaped:"&quot;"},n={quote:"'",regex:/'/g,escaped:"&apos;"},i=t==="'"?n:r,s=i===n?r:n,u=i;if(e.includes(i.quote)||e.includes(s.quote)){let a=(e.match(i.regex)||[]).length,o=(e.match(s.regex)||[]).length;u=a>o?s:i}return u}function _t(e,t){let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":xr(r,t.singleQuote?"'":'"').quote;return Zu(r,n,!(t.parser==="css"||t.parser==="less"||t.parser==="scss"||t.__embeddedInHtml))}function Zu(e,t,r){let n=t==='"'?"'":'"',i=/\\(.)|(["'])/gs,s=e.replace(i,(u,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return t+s+t}function Ve(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function zr(e,t){let r=e.match(new RegExp(`(${Ni(t)})+`,"g"));return r===null?0:r.reduce((n,i)=>Math.max(n,i.length/t.length),0)}function Mc(e,t){let r=e.match(new RegExp(`(${Ni(t)})+`,"g"));if(r===null)return 0;let n=new Map,i=0;for(let s of r){let u=s.length/t.length;n.set(u,!0),u>i&&(i=u)}for(let s=1;s<i;s++)if(!n.get(s))return s;return i+1}function ea(e,t){var n;((n=e.comments)!=null?n:e.comments=[]).push(t),t.printed=!1,t.nodeDescription=ED(e)}function Z(e,t){t.leading=!0,t.trailing=!1,ea(e,t)}function ce(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),ea(e,t)}function Y(e,t){t.leading=!1,t.trailing=!0,ea(e,t)}function Je(e){return e&&e.type==="front-matter"}function ji(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}function ED(e){let t=e.type||e.kind||"(unknown type)",r=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 r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}l();l();function jc(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];i==="."?e.splice(n,1):i===".."?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var CD=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,ra=function(e){return CD.exec(e).slice(1)};function ta(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!n)continue;e=n+"/"+e,t=n.charAt(0)==="/"}return e=jc(na(e.split("/"),function(i){return!!i}),!t).join("/"),(t?"/":"")+e||"."}function Rc(e){var t=$c(e),r=BD(e,-1)==="/";return e=jc(na(e.split("/"),function(n){return!!n}),!t).join("/"),!e&&!t&&(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function $c(e){return e.charAt(0)==="/"}function xD(){var e=Array.prototype.slice.call(arguments,0);return Rc(na(e,function(t,r){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))}function SD(e,t){e=ta(e).substr(1),t=ta(t).substr(1);function r(c){for(var p=0;p<c.length&&c[p]==="";p++);for(var f=c.length-1;f>=0&&c[f]==="";f--);return p>f?[]:c.slice(p,f-p+1)}for(var n=r(e.split("/")),i=r(t.split("/")),s=Math.min(n.length,i.length),u=s,a=0;a<s;a++)if(n[a]!==i[a]){u=a;break}for(var o=[],a=u;a<n.length;a++)o.push("..");return o=o.concat(i.slice(u)),o.join("/")}var AD="/",TD=":";function FD(e){var t=ra(e),r=t[0],n=t[1];return!r&&!n?".":(n&&(n=n.substr(0,n.length-1)),r+n)}function bD(e,t){var r=ra(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r}function vD(e){return ra(e)[3]}var qc={extname:vD,basename:bD,dirname:FD,sep:AD,delimiter:TD,relative:SD,join:xD,isAbsolute:$c,normalize:Rc,resolve:ta};function na(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}var BD="ab".substr(-1)==="b"?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)};l();var Ri=class extends Error{};var $i=class extends Error{},Jt=class extends Error{};l();l();var kD=(e,t)=>Object.entries(e).map(([r,n])=>({[t]:r,...n})),Wc=kD;l();l();function qi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function Vc(){return typeof WeakMap<"u"?new WeakMap:PD()}function PD(){return{add:qi,delete:qi,get:qi,set:qi,has:function(e){return!1}}}var wD=Object.prototype.hasOwnProperty,sa=function(e,t){return wD.call(e,t)};function ia(e,t){for(var r in t)sa(t,r)&&(e[r]=t[r]);return e}var ID=/^[ \t]*(?:\r\n|\r|\n)/,_D=/(?:\r\n|\r|\n)[ \t]*$/,LD=/^(?:[\r\n]|$)/,ND=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,OD=/^[ \t]*[\r\n][ \t\r\n]*$/;function Jc(e,t,r){var n=0,i=e[0].match(ND);i&&(n=i[1].length);var s="(\\r\\n|\\r|\\n).{0,"+n+"}",u=new RegExp(s,"g");t&&(e=e.slice(1));var a=r.newline,o=r.trimLeadingNewline,c=r.trimTrailingNewline,p=typeof a=="string",f=e.length,m=e.map(function(d,y){return d=d.replace(u,"$1"),y===0&&o&&(d=d.replace(ID,"")),y===f-1&&c&&(d=d.replace(_D,"")),p&&(d=d.replace(/\r\n|\n|\r/g,function(E){return a})),d});return m}function MD(e,t){for(var r="",n=0,i=e.length;n<i;n++)r+=e[n],n<i-1&&(r+=t[n]);return r}function jD(e){return sa(e,"raw")&&sa(e,"length")}function Hc(e){var t=Vc(),r=Vc();function n(s){for(var u=[],a=1;a<arguments.length;a++)u[a-1]=arguments[a];if(jD(s)){var o=s,c=(u[0]===n||u[0]===sr)&&OD.test(o[0])&&LD.test(o[1]),p=c?r:t,f=p.get(o);if(f||(f=Jc(o,c,e),p.set(o,f)),u.length===0)return f[0];var m=MD(f,c?u.slice(1):u);return m}else return Hc(ia(ia({},e),s||{}))}var i=ia(n,{string:function(s){return Jc([s],!1,e)[0]}});return i}var sr=Hc({trimLeadingNewline:!0,trimTrailingNewline:!0});var Gc="Config",ua="Editor";var aa="Other";var ur="Global",Xr="Special",Uc={cursorOffset:{category:Xr,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:sr`
23
- Print (to stderr) where a cursor at the given position would move to after formatting.
24
- This option cannot be used with --range-start and --range-end.
25
- `,cliCategory:ua},endOfLine:{category:ur,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:sr`
26
- Maintain existing
27
- (mixed values within one file are normalised by looking at what's used after the first line)
28
- `}]},filepath:{category:Xr,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:aa,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:Xr,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:aa},parser:{category:ur,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:"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"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:ur,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:Gc},pluginSearchDirs:{type:"path",array:!0,default:[{value:[]}],category:ur,description:sr`
29
- Custom directory that contains prettier plugins in node_modules subdirectory.
30
- Overrides default behavior when plugins are searched relatively to the location of Prettier.
31
- Multiple values are accepted.
32
- `,exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin-search-dir",cliCategory:Gc},printWidth:{category:ur,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{category:Xr,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:sr`
33
- Format code ending at a given character offset (exclusive).
34
- The range will extend forwards to the end of the selected statement.
35
- This option cannot be used with --cursor-offset.
36
- `,cliCategory:ua},rangeStart:{category:Xr,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:sr`
37
- Format code starting at a given character offset.
38
- The range will extend backwards to the start of the first line containing the selected statement.
39
- This option cannot be used with --cursor-offset.
40
- `,cliCategory:ua},requirePragma:{category:Xr,type:"boolean",default:!1,description:sr`
41
- Require either '@prettier' or '@format' to be present in the file's first docblock comment
42
- in order for it to be formatted.
43
- `,cliCategory:aa},tabWidth:{type:"int",category:ur,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{category:ur,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:ur,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 Sr({plugins:e=[],showDeprecated:t=!1,showInternal:r=!1}={}){let n=e.flatMap(a=>a.languages||[]),i=Wc(Object.assign({},...e.map(({options:a})=>a),Uc),"name").filter(a=>s(a)).sort((a,o)=>a.name===o.name?0:a.name<o.name?-1:1).map(u).map(a=>{a={...a},Array.isArray(a.default)&&(a.default=P(!1,a.default,-1).value),Array.isArray(a.choices)&&(a.choices=a.choices.filter(c=>s(c)),a.name==="parser"&&RD(a,n,e));let o=Object.fromEntries(e.filter(c=>c.defaultOptions&&c.defaultOptions[a.name]!==void 0).map(c=>[c.name,c.defaultOptions[a.name]]));return{...a,pluginDefaults:o}});return{languages:n,options:i};function s(a){return t||!a.deprecated}function u(a){if(r)return a;let{cliName:o,cliCategory:c,cliDescription:p,...f}=a;return f}}function RD(e,t,r){let n=new Set(e.choices.map(i=>i.value));for(let i of t)if(i.parsers){for(let s of i.parsers)if(!n.has(s)){n.add(s);let u=r.find(o=>o.parsers&&o.parsers[s]),a=i.name;u&&u.name&&(a+=` (plugin: ${u.name})`),e.choices.push({value:s,description:a})}}}l();l();var tt=Vr(El(),1),Ja;function Og(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:s,descriptor:u}={}){if(n){if(!s)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=tt.default.apiDescriptor;let a=i?Array.isArray(i)?(m,d)=>i.includes(m)?{[m]:d}:void 0:(m,d)=>({[m]:d}):(m,d,y)=>{let{_:E,...T}=y.schemas;return tt.default.levenUnknownHandler(m,d,{...y,schemas:T})},o=Mg(t,{isCLI:n,FlagSchema:s}),c=new tt.default.Normalizer(o,{logger:r,unknown:a,descriptor:u}),p=r!==!1;p&&Ja&&(c._hasDeprecationWarned=Ja);let f=c.normalize(e);return p&&(Ja=c._hasDeprecationWarned),n&&f["plugin-search"]===!1&&(f["plugin-search-dir"]=!1),f}function Mg(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(tt.default.AnySchema.create({name:"_"}));for(let i of e)n.push(jg(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(tt.default.AliasSchema.create({name:i.alias,sourceName:i.name}));return n}function jg(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e;if(i==="plugin-search-dir"||i==="pluginSearchDirs")return tt.default.AnySchema.create({name:i,preprocess(o){return o===!1||(o=Array.isArray(o)?o:[o]),o},validate(o){return o===!1?!0:o.every(c=>typeof c=="string")},expected(){return"false or paths to plugin search dir"}});let s={name:i},u,a={};switch(e.type){case"int":u=tt.default.IntegerSchema,t&&(s.preprocess=Number);break;case"string":u=tt.default.StringSchema;break;case"choice":u=tt.default.ChoiceSchema,s.choices=e.choices.map(o=>typeof o=="object"&&o.redirect?{...o,redirect:{to:{key:e.name,value:o.redirect}}}:o);break;case"boolean":u=tt.default.BooleanSchema;break;case"flag":u=n,s.flags=r.flatMap(o=>[o.alias,o.description&&o.name,o.oppositeDescription&&`no-${o.name}`].filter(Boolean));break;case"path":u=tt.default.StringSchema;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?s.validate=(o,c,p)=>e.exception(o)||c.validate(o,p):s.validate=(o,c,p)=>o===void 0||c.validate(o,p),e.redirect&&(a.redirect=o=>o?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(a.deprecated=!0),t&&!e.array){let o=s.preprocess||(c=>c);s.preprocess=(c,p,f)=>p.preprocess(o(Array.isArray(c)?P(!1,c,-1):c),f)}return e.array?tt.default.ArraySchema.create({...t?{preprocess:o=>Array.isArray(o)?o:[o]}:{},...a,valueSchema:u.create(s)}):u.create({...s,...a})}var Ha=Og;l();function _n({plugins:e,parser:t}){for(let r=e.length-1;r>=0;r--){let{parsers:n}=e[r];if(n&&Object.prototype.hasOwnProperty.call(n,t)){let i=n[t];return typeof i=="function"?i():i}}throw new Ri(`Couldn't resolve parser "${t}". Parsers must be explicitly added to the standalone bundle.`)}async function Fr(e,t){let r=await _n(t),n=r.preprocess?r.preprocess(e,t):e,i;try{i=await r.parse(n,t,t)}catch(s){await Jg(s,e)}return{text:n,ast:i}}async function Jg(e,t){let{loc:r}=e;if(r){let{codeFrameColumns:n}=await Promise.resolve().then(()=>Vr(Fl(),1)),i=n(t,r,{highlightCode:!0});throw e.message+=`
44
- `+i,e.codeFrame=i,e}throw e}var bl={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function or(e,t={}){let r={...e},n=Sr({plugins:e.plugins,showDeprecated:!0}).options,i={...bl,...Object.fromEntries(n.filter(c=>c.default!==void 0).map(c=>[c.name,c.default]))};if(!r.parser){if(!r.filepath)(t.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."),r.parser="babel";else if(r.parser=Gg(r.filepath,r.plugins),!r.parser)throw new $i(`No parser could be inferred for file: ${r.filepath}`)}let s=await _n(Ha(r,[n.find(c=>c.name==="parser")],{passThrough:!0,logger:!1}));r.astFormat=s.astFormat,r.locEnd=s.locEnd,r.locStart=s.locStart;let u=Hg(r);r.printer=u.printers[r.astFormat];let a=Object.fromEntries(n.filter(c=>c.pluginDefaults&&c.pluginDefaults[u.name]!==void 0).map(c=>[c.name,c.pluginDefaults[u.name]])),o={...i,...a};for(let[c,p]of Object.entries(o))(r[c]===null||r[c]===void 0)&&(r[c]=p);return r.parser==="json"&&(r.trailingComma="none"),Ha(r,n,{passThrough:Object.keys(bl),...t})}function Hg(e){let{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");let r=e.plugins.find(n=>n.printers&&n.printers[t]);if(!r)throw new Error(`Couldn't find plugin for AST format "${t}"`);return r}function Gg(e,t){let r=qc.basename(e).toLowerCase(),{languages:n}=Sr({plugins:t}),i=n.find(s=>s.extensions&&s.extensions.some(u=>r.endsWith(u))||s.filenames&&s.filenames.some(u=>u.toLowerCase()===r));return i&&i.parsers[0]}l();l();var vl=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Ug=e=>Object.keys(e).filter(t=>!vl.has(t));function Kg(e){return e?t=>e(t,vl):Ug}var cr=Kg;function Yg(e,t){var a;let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let i=cr(n),s=(a=r.ignoredProperties)!=null?a:new Set;return u(e);function u(o,c){if(!(o!==null&&typeof o=="object"))return o;if(Array.isArray(o))return o.map(d=>u(d,c)).filter(Boolean);let p={},f=new Set(i(o));for(let d in o)!Object.prototype.hasOwnProperty.call(o,d)||s.has(d)||(f.has(d)?p[d]=u(o[d],o):p[d]=o[d]);let m=r(o,p,c);if(m!==null)return m!=null?m:p}}var Bl=Yg;l();l();var Ln=()=>{};Ln.ok=Ln;Ln.strictEqual=Ln;var Ge=Ln;var Ua=new WeakMap;function zi(e,t){var o;if(Ua.has(e))return Ua.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:i},locStart:s,locEnd:u}=t;if(!n)return[];let a=((o=r==null?void 0:r(e,t))!=null?o:cr(i)(e).flatMap(c=>e[c])).flatMap(c=>c!==null&&typeof c=="object"?n(c)?c:zi(c,t):[]);return a.sort((c,p)=>s(c)-s(p)||u(c)-u(p)),Ua.set(e,a),a}function Pl(e,t,r,n){let{locStart:i,locEnd:s}=r,u=i(t),a=s(t),o=zi(e,r),c,p,f=0,m=o.length;for(;f<m;){let d=f+m>>1,y=o[d],E=i(y),T=s(y);if(E<=u&&a<=T)return Pl(y,t,r,y);if(T<=u){c=y,f=d+1;continue}if(a<=E){p=y,m=d;continue}throw new Error("Comment location overlaps with node location")}if(n&&n.type==="TemplateLiteral"){let{quasis:d}=n,y=Ya(d,t,r);c&&Ya(d,c,r)!==y&&(c=null),p&&Ya(d,p,r)!==y&&(p=null)}return{enclosingNode:n,precedingNode:c,followingNode:p}}var Ka=()=>!1;function Xi(e,t,r,n){if(!L(e)||!n.printer.canAttachComment)return;let i=[],{locStart:s,locEnd:u,printer:{handleComments:a={}}}=n,{avoidAstMutation:o,ownLine:c=Ka,endOfLine:p=Ka,remaining:f=Ka}=a,m=e.map((d,y)=>({...Pl(t,d,n),comment:d,text:r,options:n,ast:t,isLastComment:e.length-1===y}));for(let[d,y]of m.entries()){let{comment:E,precedingNode:T,enclosingNode:b,followingNode:k,text:A,options:F,ast:v,isLastComment:M}=y;if(F.parser==="json"||F.parser==="json5"||F.parser==="__js_expression"||F.parser==="__vue_expression"||F.parser==="__vue_ts_expression"){if(s(E)-s(v)<=0){Z(v,E);continue}if(u(E)-u(v)>=0){Y(v,E);continue}}let W;if(o?W=[y]:(E.enclosingNode=b,E.precedingNode=T,E.followingNode=k,W=[E,A,F,v,M]),zg(A,F,m,d))E.placement="ownLine",c(...W)||(k?Z(k,E):T?Y(T,E):b?ce(b,E):ce(v,E));else if(Xg(A,F,m,d))E.placement="endOfLine",p(...W)||(T?Y(T,E):k?Z(k,E):b?ce(b,E):ce(v,E));else if(E.placement="remaining",!f(...W))if(T&&k){let V=i.length;V>0&&i[V-1].followingNode!==k&&kl(i,A,F),i.push(y)}else T?Y(T,E):k?Z(k,E):b?ce(b,E):ce(v,E)}if(kl(i,r,n),!o)for(let d of e)delete d.precedingNode,delete d.enclosingNode,delete d.followingNode}var wl=e=>!/[\S\n\u2028\u2029]/.test(e);function zg(e,t,r,n){let{comment:i,precedingNode:s}=r[n],{locStart:u,locEnd:a}=t,o=u(i);if(s)for(let c=n-1;c>=0;c--){let{comment:p,precedingNode:f}=r[c];if(f!==s||!wl(e.slice(a(p),o)))break;o=u(p)}return Q(e,o,{backwards:!0})}function Xg(e,t,r,n){let{comment:i,followingNode:s}=r[n],{locStart:u,locEnd:a}=t,o=a(i);if(s)for(let c=n+1;c<r.length;c++){let{comment:p,followingNode:f}=r[c];if(f!==s||!wl(e.slice(o,u(p))))break;o=a(p)}return Q(e,o)}function kl(e,t,r){var o,c,p;let n=e.length;if(n===0)return;let{precedingNode:i,followingNode:s}=e[0],u=r.locStart(s),a;for(a=n;a>0;--a){let{comment:f,precedingNode:m,followingNode:d}=e[a-1];Ge.strictEqual(m,i),Ge.strictEqual(d,s);let y=t.slice(r.locEnd(f),u);if((p=(c=(o=r.printer).isGap)==null?void 0:c.call(o,y,r))!=null?p:/^[\s(]*$/.test(y))u=r.locStart(f);else break}for(let[f,{comment:m}]of e.entries())f<a?Y(i,m):Z(s,m);for(let f of[i,s])f.comments&&f.comments.length>1&&f.comments.sort((m,d)=>r.locStart(m)-r.locStart(d));e.length=0}function za(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function Ya(e,t,r){let n=r.locStart(t)-1;for(let i=1;i<e.length;++i)if(n<r.locStart(e[i]))return i-1;return 0}function Qg(e,t){let r=e.node,n=[za(e,t)],{printer:i,originalText:s,locStart:u,locEnd:a}=t;if(i.isBlockComment&&i.isBlockComment(r)){let p=Q(s,a(r))?Q(s,u(r),{backwards:!0})?D:S:" ";n.push(p)}else n.push(D);let c=Dt(s,lt(s,a(r)));return c!==!1&&Q(s,c)&&n.push(D),n}function Zg(e,t,r){var c;let n=e.node,i=za(e,t),{printer:s,originalText:u,locStart:a}=t,o=(c=s.isBlockComment)==null?void 0:c.call(s,n);if((r==null?void 0:r.hasLineSuffix)&&!(r!=null&&r.isBlock)||Q(u,a(n),{backwards:!0})){let p=Yr(u,n,a);return{doc:Jr([D,p?D:"",i]),isBlock:o,hasLineSuffix:!0}}return!o||(r==null?void 0:r.hasLineSuffix)?{doc:[Jr([" ",i]),K],isBlock:o,hasLineSuffix:!0}:{doc:[" ",i],isBlock:o,hasLineSuffix:!1}}function q(e,t,r,n){let i=[],{node:s}=e;return!s||!s.comments||(e.each(()=>{let u=e.node;!u.leading&&!u.trailing&&(!n||n(u))&&i.push(za(e,t))},"comments"),i.length===0)?"":r?B(D,i):x([D,B(D,i)])}function Xa(e,t,r){let n=e.node;if(!n)return{};let i=n.comments||[];r&&(i=i.filter(c=>!r.has(c)));let s=n===t.cursorNode;if(i.length===0){let c=s?Tn:"";return{leading:c,trailing:c}}let u=[],a=[],o;return e.each(()=>{let c=e.node;if(r&&r.has(c))return;let{leading:p,trailing:f}=c;p?u.push(Qg(e,t)):f&&(o=Zg(e,t,o),a.push(o.doc))},"comments"),s&&(u.unshift(Tn),a.push(Tn)),{leading:u,trailing:a}}function he(e,t,r,n){let{leading:i,trailing:s}=Xa(e,r,n);return!i&&!s?t:Xe(typeof t.label=="object"&&{commented:!0,...t.label},[i,t,s])}function Qi(e){if(!!e)for(let t of e){if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed}}l();l();var Nn,Za,Qa=class{constructor(t){Sc(this,Nn);this.stack=[t]}get key(){var n;let{stack:t,siblings:r}=this;return(n=P(!1,t,r===null?-2:-4))!=null?n:null}get index(){return this.siblings===null?null:P(!1,this.stack,-2)}get node(){return P(!1,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:t}=this,r=P(!1,t,-3);return Array.isArray(r)?r:null}get next(){let{siblings:t}=this;return t===null?null:t[this.index+1]}get previous(){let{siblings:t}=this;return t===null?null:t[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:t,index:r}=this;return t!==null&&r===t.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}getName(){let{stack:t}=this,{length:r}=t;return r>1?P(!1,t,-2):null}getValue(){return P(!1,this.stack,-1)}getNode(t=0){let r=Nu(this,Nn,Za).call(this,t);return r===-1?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:i}=n,s=P(!1,n,-1);for(let u of r)s=s[u],n.push(u,s);try{return t(this)}finally{n.length=i}}callParent(t,r=0){let n=Nu(this,Nn,Za).call(this,r+1),i=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...i)}}each(t,...r){let{stack:n}=this,{length:i}=n,s=P(!1,n,-1);for(let u of r)s=s[u],n.push(u,s);try{for(let u=0;u<s.length;++u)n.push(u,s[u]),t(this,u,s),n.length-=2}finally{n.length=i}}map(t,...r){let n=[];return this.each((i,s,u)=>{n[s]=t(i,s,u)},...r),n}match(...t){let r=this.stack.length-1,n=null,i=this.stack[r--];for(let s of t){if(i===void 0)return!1;let u=null;if(typeof n=="number"&&(u=n,n=this.stack[r--],i=this.stack[r--]),s&&!s(i,n,u))return!1;n=this.stack[r--],i=this.stack[r--]}return!0}findAncestor(t){let r=this.stack.length-1,n=null,i=this.stack[r--];for(;i;){let s=null;if(typeof n=="number"&&(s=n,n=this.stack[r--],i=this.stack[r--]),n!==null&&t(i,n,s))return i;n=this.stack[r--],i=this.stack[r--]}}};Nn=new WeakSet,Za=function(t){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--t<0)return n;return-1};var Il=Qa;l();async function _l(e,t,r,n,i){var y;let{embeddedLanguageFormatting:s,printer:{embed:u,hasPrettierIgnore:a=()=>!1,getVisitorKeys:o}}=r;if(!u||s!=="auto")return;if(u.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/en/plugins.html#optional-embed");let c=cr((y=u.getVisitorKeys)!=null?y:o),p=[];d();let f=e.stack;for(let{print:E,node:T,pathStack:b}of p)try{e.stack=b;let k=await E(m,t,e,r);k&&i.set(T,k)}catch(k){if(globalThis.PRETTIER_DEBUG)throw k}e.stack=f;function m(E,T){return eh(E,T,r,n)}function d(){let{node:E}=e;if(E===null||typeof E!="object"||a(e))return;for(let b of c(E))Array.isArray(E[b])?e.each(d,b):e.call(d,b);let T=u(e,r);if(!!T){if(typeof T=="function"){p.push({print:T,node:E,pathStack:[...e.stack]});return}i.set(E,T)}}}async function eh(e,t,r,n){let i=await or({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),s=await Fr(e,i),{ast:u}=s;e=s.text;let a=u.comments;delete u.comments,Xi(a,u,e,i),i[Symbol.for("comments")]=a||[],i[Symbol.for("tokens")]=u.tokens||[];let o=await n(u,i);return Qi(a),Gu(o)}l();function th(e){return()=>{}}var Ll=th;async function Ol(e,t,r=0){let{printer:n}=t;n.preprocess&&(e=await n.preprocess(e,t));let i=new Map,s=new Il(e),u=Ll(t),a=new Map;await _l(s,c,t,Ol,a);let o=await Nl(s,t,c,void 0,a);return r>0&&(o=Fn([D,o],r,t.tabWidth)),Hu(o),o;function c(f,m){return f===void 0||f===s?p(m):Array.isArray(f)?s.call(()=>p(m),...f):s.call(()=>p(m),f)}function p(f){u(s);let m=s.node;if(m==null)return"";let d=m&&typeof m=="object"&&f===void 0;if(d&&i.has(m))return i.get(m);let y=Nl(s,t,c,f,a);return d&&i.set(m,y),y}}function rh(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:s}=t,u=i(e),a=s(e),o=new Set;for(let c of n)i(c)>=u&&s(c)<=a&&(c.printed=!0,o.add(c));return{doc:r.slice(u,a),printedComments:o}}function Nl(e,t,r,n,i){let{node:s}=e,{printer:u}=t,a,o;return u.hasPrettierIgnore&&u.hasPrettierIgnore(e)?{doc:a,printedComments:o}=rh(s,t):i.has(s)?a=i.get(s):a=u.print(e,t,r,n),(!u.willPrintOwnComments||!u.willPrintOwnComments(e,t))&&(a=he(e,a,t,o)),a}var Zi=Ol;l();var nh=({parser:e})=>e==="json"||e==="json5"||e==="json-stringify";function ih(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(i=>Rl.has(i.type)&&n.has(i))}function Ml(e){let t=e.length-1;for(;;){let r=e[t];if(r&&(r.type==="Program"||r.type==="File"))t--;else break}return e.slice(0,t+1)}function sh(e,t,{locStart:r,locEnd:n}){let i=e.node,s=t.node;if(i===s)return{startNode:i,endNode:s};let u=r(e.node);for(let o of Ml(t.parentNodes))if(r(o)>=u)s=o;else break;let a=n(t.node);for(let o of Ml(e.parentNodes)){if(n(o)<=a)i=o;else break;if(i===s)break}return{startNode:i,endNode:s}}function On(e,t,r,n,i=[],s){let{locStart:u,locEnd:a}=r,o=u(e),c=a(e);if(!(t>c||t<o||s==="rangeEnd"&&t===o||s==="rangeStart"&&t===c)){for(let p of zi(e,r)){let f=On(p,t,r,n,[e,...i],s);if(f)return f}if(!n||n(e,i[0]))return{node:e,parentNodes:i}}}function uh(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var Rl=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),ah=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function jl(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return uh(t.type,r&&r.type);case"json":case"json5":case"json-stringify":return Rl.has(t.type);case"graphql":return ah.has(t.kind);case"vue":return t.tag!=="root"}return!1}function $l(e,t,r){let{rangeStart:n,rangeEnd:i,locStart:s,locEnd:u}=t;Ge.ok(i>n);let a=e.slice(n,i).search(/\S/),o=a===-1;if(!o)for(n+=a;i>n&&!/\S/.test(e[i-1]);--i);let c=On(r,n,t,(d,y)=>jl(t,d,y),[],"rangeStart"),p=o?c:On(r,i,t,d=>jl(t,d),[],"rangeEnd");if(!c||!p)return{rangeStart:0,rangeEnd:0};let f,m;if(nh(t)){let d=ih(c,p);f=d,m=d}else({startNode:f,endNode:m}=sh(c,p,t));return{rangeStart:Math.min(s(f),s(m)),rangeEnd:Math.max(u(f),u(m))}}var Gl="\uFEFF",ql=Symbol("cursor");function to(e,t,r){let n=t.comments;return n&&(delete t.comments,Xi(n,t,e,r)),r[Symbol.for("comments")]=n||[],r[Symbol.for("tokens")]=t.tokens||[],r.originalText=e,n}async function Ul(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await Fr(e,t);if(t.cursorOffset>=0){let o=On(n,t.cursorOffset,t);o&&o.node&&(t.cursorNode=o.node)}let s=to(i,n,t),u=await Zi(n,t,r),a=wt(u,t);if(Qi(s),r>0){let o=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(o)),a.formatted=o+An(t.endOfLine)}if(t.cursorOffset>=0){let o,c,p,f,m;if(t.cursorNode&&a.cursorNodeText?(o=t.locStart(t.cursorNode),c=i.slice(o,t.locEnd(t.cursorNode)),p=t.cursorOffset-o,f=a.cursorNodeStart,m=a.cursorNodeText):(o=0,c=i,p=t.cursorOffset,f=0,m=a.formatted),c===m)return{formatted:a.formatted,cursorOffset:f+p,comments:s};let d=c.split("");d.splice(p,0,ql);let y=m.split(""),E=(0,Hl.diffArrays)(d,y),T=f;for(let b of E)if(b.removed){if(b.value.includes(ql))break}else T+=b.count;return{formatted:a.formatted,cursorOffset:T,comments:s}}return{formatted:a.formatted,cursorOffset:-1,comments:s}}async function oh(e,t){let{ast:r,text:n}=await Fr(e,t),{rangeStart:i,rangeEnd:s}=$l(n,t,r),u=n.slice(i,s),a=Math.min(i,n.lastIndexOf(`
45
- `,i)+1),o=n.slice(a,i).match(/^\s*/)[0],c=Bn(o,t.tabWidth),p=await Ul(u,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=s?t.cursorOffset-i:-1,endOfLine:"lf"},c),f=p.formatted.trimEnd(),{cursorOffset:m}=t;m>s?m+=f.length-u.length:p.cursorOffset>=0&&(m=p.cursorOffset+i);let d=n.slice(0,i)+f+n.slice(s);if(t.endOfLine!=="lf"){let y=An(t.endOfLine);m>=0&&y===`\r
46
- `&&(m+=Mu(d.slice(0,m),`
47
- `)),d=d.replace(/\n/g,y)}return{formatted:d,cursorOffset:m,comments:p.comments}}function eo(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function Wl(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=eo(e,r,-1),n=eo(e,n,0),i=eo(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function Kl(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=Wl(e,t),u=e.charAt(0)===Gl;if(u&&(e=e.slice(1),r--,n--,i--),s==="auto"&&(s=bc(e)),e.includes("\r")){let a=o=>Mu(e.slice(0,Math.max(o,0)),`\r
48
- `);r-=a(r),n-=a(n),i-=a(i),e=vc(e)}return{hasBOM:u,text:e,options:Wl(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s})}}async function Vl(e,t){let r=await _n(t);return!r.hasPragma||r.hasPragma(e)}async function Jl(e,t){let{hasBOM:r,text:n,options:i}=Kl(e,await or(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await Vl(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let s;return i.rangeStart>0||i.rangeEnd<n.length?s=await oh(n,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await Vl(n,i)&&(n=i.printer.insertPragma(n)),s=await Ul(n,i)),r&&(s.formatted=Gl+s.formatted,s.cursorOffset>=0&&s.cursorOffset++),s}var ch={formatWithCursor:Jl,async parse(e,t,r){let{text:n,options:i}=Kl(e,await or(t)),s=await Fr(n,i);return r&&(r.massage&&(s.ast=Bl(s.ast,i)),r.preprocessForPrint&&(to(s.text,s.ast,i),i.printer.preprocess&&(s.ast=await i.printer.preprocess(s.ast,i)))),s},async formatAST(e,t){t=await or(t);let r=await Zi(e,t);return wt(r,t)},async formatDoc(e,t){let r=Xu(e),{formatted:n}=await Jl(r,{...t,parser:"__js_expression"});return n},async printToDoc(e,t){t=await or(t);let{ast:r,text:n}=await Fr(e,t);return to(n,r,t),Zi(r,t)},async printDocToString(e,t){return wt(e,await or(t))}},br=ch;var Cc={};fe(Cc,{css:()=>tu,graphql:()=>au,handlebars:()=>uu,html:()=>bu,js:()=>Js,markdown:()=>pu,yaml:()=>Iu});l();var Js={};fe(Js,{languages:()=>Rf,options:()=>$f,parsers:()=>qf,printers:()=>pC});l();l();l();var ro=class extends Error{constructor(r,n,i="type"){super(`Unexpected ${n} node ${i}: ${JSON.stringify(r[i])}.`);vi(this,"name","UnexpectedNodeError");this.node=r}},me=ro;l();l();l();var lh=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,ph=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,fh=Array.from({length:128},(e,t)=>t>=97&&t<=122||t>=65&&t<=90||t===36||t===95),mh=Array.from({length:128},(e,t)=>t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===36||t===95);function yh(e){return e<128?fh[e]:ph.test(String.fromCodePoint(e))}function dh(e){return e<128?mh[e]:lh.test(String.fromCodePoint(e))}function Dh(e){if(e.length===0||!yh(e.charCodeAt(0)))return!1;for(let t=1,r=e.length;t<r;++t)if(!dh(e.charCodeAt(t)))return!1;return!0}var Yl=Dh;l();function J(e,t){let{ignoreDecorators:r}=t||{};if(!r){let n=e.declaration&&e.declaration.decorators||e.decorators;if(L(n))return J(n[0])}return e.range?e.range[0]:e.start}function $(e){return e.range?e.range[1]:e.end}function es(e,t){let r=J(e);return Number.isInteger(r)&&r===J(t)}function gh(e,t){let r=$(e);return Number.isInteger(r)&&r===$(t)}function zl(e,t){return es(e,t)&&gh(e,t)}l();l();l();var Mn=null;function jn(e){if(Mn!==null&&typeof Mn.property){let t=Mn;return Mn=jn.prototype=null,t}return Mn=jn.prototype=e==null?Object.create(null):e,new jn}var hh=10;for(let e=0;e<=hh;e++)jn();function no(e){return jn(e)}function Eh(e,t="type"){no(e);function r(n){let i=n[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var Te=Eh;var Xl={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body","interpreter"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","exported","assertions"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","mixins","implements","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","mixins","implements","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation","initializer"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members","modifiers"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body","modifiers"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value","typeParameters"],PrivateIdentifier:[],Property:["key","value","decorators"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value","decorators"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],SpreadProperty:["argument"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],BigIntTypeAnnotation:[],QualifiedTypeofIdentifier:["id","qualification"]};var xh=Te(Xl),ts=xh;l();var Sh=new Set(["Block","CommentBlock","MultiLine"]),Ah=e=>Sh.has(e==null?void 0:e.type),Ee=Ah;l();function Th(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let i=r[n];if(n===0)return e.type==="Identifier"&&e.name===i;if(e.type!=="MemberExpression"||e.optional||e.computed||e.property.type!=="Identifier"||e.property.name!==i)return!1;e=e.object}}function Fh(e,t){return t.some(r=>Th(e,r))}var Ql=Fh;function vr(e,t){if(e===null||typeof e!="object")return!1;if(Array.isArray(e))return e.some(n=>vr(n,t));let r=t(e);return typeof r=="boolean"?r:ts(e).some(n=>vr(e[n],t))}function en(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||O(e)||U(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||e.type==="TSAsExpression"||e.type==="TSNonNullExpression"}function tp(e){var t,r,n,i,s,u;return e.expressions?e.expressions[0]:(u=(s=(i=(n=(r=(t=e.left)!=null?t:e.test)!=null?r:e.callee)!=null?n:e.object)!=null?i:e.tag)!=null?s:e.argument)!=null?u:e.expression}function ns(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function Kt(e){return e=new Set(e),t=>e.has(t==null?void 0:t.type)}var Yt=Kt(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang"]),bh=Kt(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function is(e){let t=e.parent;return e.getName()==="declaration"&&bh(t)?t:null}var zt=Kt(["BooleanLiteral","DirectiveLiteral","Literal","NullLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","RegExpLiteral","StringLiteral","TemplateLiteral","TSTypeLiteral","JSXText"]);function it(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function ss(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&it(e.argument)}function Se(e){return e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"}function oo(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&Boolean(e.regex)}var Ue=Kt(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Zr=Kt(["FunctionExpression","ArrowFunctionExpression"]);function vh(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function io(e){return O(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var re=Kt(["JSXElement","JSXFragment"]);function us(e,t){if(e.parentParser!=="markdown"&&e.parentParser!=="mdx")return!1;let{node:r}=t;if(!r.expression||!re(r.expression))return!1;let{parent:n}=t;return n.type==="Program"&&n.body.length===1}function co(e){return e.kind==="get"||e.kind==="set"}function lo(e){return co(e)||es(e,e.value)}function as(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&e.value.type==="FunctionTypeAnnotation"&&!e.static&&!lo(e)}function rp(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!es(e,e.typeAnnotation)}var Pe=Kt(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function lr(e){return U(e)||e.type==="BindExpression"&&Boolean(e.object)}var Bh=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);function tn(e){return e?!!((e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference")&&!e.typeParameters||Bh.has(e.type)):!1}function kh(e){let t=/^(?:before|after)(?:Each|All)$/;return e.callee.type==="Identifier"&&t.test(e.callee.name)&&e.arguments.length===1}var Ph=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function wh(e){return Ql(e,Ph)}function Br(e,t){if(e.type!=="CallExpression")return!1;if(e.arguments.length===1){if(io(e)&&t&&Br(t))return Zr(e.arguments[0]);if(kh(e))return io(e.arguments[0])}else if((e.arguments.length===2||e.arguments.length===3)&&(e.arguments[0].type==="TemplateLiteral"||Se(e.arguments[0]))&&wh(e.callee))return e.arguments[2]&&!it(e.arguments[2])?!1:(e.arguments.length===2?Zr(e.arguments[1]):vh(e.arguments[1])&&ne(e.arguments[1]).length<=1)||io(e.arguments[1]);return!1}var O=Kt(["CallExpression","OptionalCallExpression"]),U=Kt(["MemberExpression","OptionalMemberExpression"]);function np(e){let t="expressions";e.type==="TSTemplateLiteralType"&&(t="types");let r=e[t];return r.length===0?!1:r.every(n=>{if(w(n))return!1;if(n.type==="Identifier"||n.type==="ThisExpression")return!0;if(U(n)){let i=n;for(;U(i);)if(i.property.type!=="Identifier"&&i.property.type!=="Literal"&&i.property.type!=="StringLiteral"&&i.property.type!=="NumericLiteral"||(i=i.object,w(i)))return!1;return i.type==="Identifier"||i.type==="ThisExpression"}return!1})}function os(e,t){return e==="+"||e==="-"?e+t:t}function ht(e,t){return re(t)?rn(t):w(t,_.Leading,r=>Q(e,$(r)))}function po(e,t){return t.parser!=="json"&&Se(e.key)&&de(e.key).slice(1,-1)===e.key.value&&(Yl(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||fo(e.key.value)&&String(Number(e.key.value))===e.key.value&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function fo(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function Zl(e){return e.quasis.some(t=>t.value.raw.includes(`
49
- `))}function cs(e,t){return(e.type==="TemplateLiteral"&&Zl(e)||e.type==="TaggedTemplateExpression"&&Zl(e.quasi))&&!Q(t,J(e),{backwards:!0})}function ls(e){if(!w(e))return!1;let t=P(!1,Et(e,_.Dangling),-1);return t&&!Ee(t)}function ip(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Zr(r)){if(t+=1,t>1)return!0}else if(O(r)){for(let n of r.arguments)if(Zr(n))return!0}return!1}function ps(e){let{node:t}=e,{parent:r}=e;return O(t)&&O(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0}var Ih=new Set(["!","-","+","~"]);function nt(e,t=2){var n;if(t<=0)return!1;let r=i=>nt(i,t-1);if(oo(e))return ve((n=e.pattern)!=null?n:e.regex.pattern)<=5;if(e.type==="Literal"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="BooleanLiteral"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="StringLiteral"||e.type==="Identifier"||e.type==="ThisExpression"||e.type==="Super"||e.type==="PrivateName"||e.type==="PrivateIdentifier"||e.type==="ArgumentPlaceholder"||e.type==="Import")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(i=>!i.value.raw.includes(`
50
- `))&&e.expressions.every(r);if(e.type==="ObjectExpression")return e.properties.every(i=>!i.computed&&(i.shorthand||i.value&&r(i.value)));if(e.type==="ArrayExpression")return e.elements.every(i=>i===null||r(i));if(pr(e)){if(e.type==="ImportExpression"||nt(e.callee,t)){let i=st(e);return i.length<=t&&i.every(r)}return!1}return U(e)?nt(e.object,t)&&nt(e.property,t):e.type==="UnaryExpression"&&Ih.has(e.operator)||e.type==="UpdateExpression"?nt(e.argument,t):e.type==="TSNonNullExpression"?nt(e.expression,t):!1}function de(e){var t,r;return(r=(t=e.extra)==null?void 0:t.raw)!=null?r:e.raw}function sp(e){return e}function up(e){return e.filepath&&/\.tsx$/i.test(e.filepath)}function le(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function rt(e,t){switch(e=Lh(e),e.type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return t;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return rt(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:rt(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:rt(e.callee,t);case"ConditionalExpression":return rt(e.test,t);case"UpdateExpression":return!e.prefix&&rt(e.argument,t);case"BindExpression":return e.object&&rt(e.object,t);case"SequenceExpression":return rt(e.expressions[0],t);case"TSAsExpression":case"TSNonNullExpression":return rt(e.expression,t);default:return!1}}var ep={"==":!0,"!=":!0,"===":!0,"!==":!0},rs={"*":!0,"/":!0,"%":!0},ao={">>":!0,">>>":!0,"<<":!0};function $n(e,t){return!(Rn(t)!==Rn(e)||e==="**"||ep[e]&&ep[t]||t==="%"&&rs[e]||e==="%"&&rs[t]||t!==e&&rs[t]&&rs[e]||ao[e]&&ao[t])}var _h=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function Rn(e){return _h.get(e)}function Lh(e){for(;e.left;)e=e.left;return e}function ap(e){return Boolean(ao[e])||e==="|"||e==="^"||e==="&"}function op(e){var r;if(e.rest)return!0;let t=ne(e);return((r=P(!1,t,-1))==null?void 0:r.type)==="RestElement"}var so=new WeakMap;function ne(e){if(so.has(e))return so.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),so.set(e,t),t}function cp(e,t){let{node:r}=e,n=0,i=s=>t(s,n++);r.this&&e.call(i,"this"),Array.isArray(r.parameters)?e.each(i,"parameters"):Array.isArray(r.params)&&e.each(i,"params"),r.rest&&e.call(i,"rest")}var uo=new WeakMap;function st(e){if(uo.has(e))return uo.get(e);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.attributes&&t.push(e.attributes)),uo.set(e,t),t}function fs(e,t){let{node:r}=e;r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.attributes&&e.call(n=>t(n,1),"attributes")):e.each(t,"arguments")}function mo(e,t){if(e.type==="ImportExpression"){if(t===0||t===(e.attributes?-2:-1))return"source";if(e.attributes&&(t===1||t===-1))return"attributes";throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return["arguments",t]}function qn(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function rn(e){return e&&(e.prettierIgnore||w(e,_.PrettierIgnore))}var _={Leading:1<<1,Trailing:1<<2,Dangling:1<<3,Block:1<<4,Line:1<<5,PrettierIgnore:1<<6,First:1<<7,Last:1<<8},lp=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,i)=>!(e&_.Leading&&!r.leading||e&_.Trailing&&!r.trailing||e&_.Dangling&&(r.leading||r.trailing)||e&_.Block&&!Ee(r)||e&_.Line&&!Yt(r)||e&_.First&&n!==0||e&_.Last&&n!==i.length-1||e&_.PrettierIgnore&&!qn(r)||t&&!t(r))};function w(e,t,r){if(!L(e==null?void 0:e.comments))return!1;let n=lp(t,r);return n?e.comments.some(n):!0}function Et(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=lp(t,r);return n?e.comments.filter(n):e.comments}var Ce=(e,{originalText:t})=>Er(t,$(e));function pr(e){return O(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function we(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!e.method&&e.kind==="init")}function yo(e){return Boolean(e.__isUsingHackPipeline)}var ms=Symbol("ifWithoutBlockAndSameLineComment");l();l();function ys(e,t,r){let{node:n}=e;if(n.type==="TemplateLiteral"&&Mh(e)){let p=Nh(e,r,t);if(p)return p}let s="expressions";n.type==="TSTemplateLiteralType"&&(s="types");let u=[],a=e.map(t,s),o=np(n);o&&(a=a.map(p=>wt(p,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted)),u.push(ot,"`");let c=0;return e.each(({index:p,node:f})=>{if(u.push(t()),f.tail)return;let{tabWidth:m}=r,d=f.value.raw,y=d.includes(`
51
- `)?Mi(d,m):c;c=y;let E=a[p];if(!o){let b=n[s][p];(w(b)||U(b)||b.type==="ConditionalExpression"||b.type==="SequenceExpression"||b.type==="TSAsExpression"||Pe(b))&&(E=[x([C,E]),C])}let T=y===0&&d.endsWith(`
52
- `)?X(Number.NEGATIVE_INFINITY,E):Fn(E,y,m);u.push(g(["${",T,ot,"}"]))},"quasis"),u.push("`"),u}function pp(e){let t=e("quasi");return Xe(t.label&&{tagged:!0,...t.label},[e("tag"),e("typeParameters"),ot,t])}function Nh(e,t,r){let{node:n}=e,i=n.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(i.length>1||i.some(s=>s.length>0)){t.__inJestEach=!0;let s=e.map(r,"expressions");t.__inJestEach=!1;let u=[],a=s.map(m=>"${"+wt(m,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let m=1;m<n.quasis.length;m++){let d=P(!1,o,-1),y=a[m-1];d.cells.push(y),y.includes(`
53
- `)&&(d.hasLineBreak=!0),n.quasis[m].value.raw.includes(`
54
- `)&&o.push({hasLineBreak:!1,cells:[]})}let c=Math.max(i.length,...o.map(m=>m.cells.length)),p=Array.from({length:c}).fill(0),f=[{cells:i},...o.filter(m=>m.cells.length>0)];for(let{cells:m}of f.filter(d=>!d.hasLineBreak))for(let[d,y]of m.entries())p[d]=Math.max(p[d],ve(y));return u.push(ot,"`",x([D,B(D,f.map(m=>B(" | ",m.cells.map((d,y)=>m.hasLineBreak?d:d+" ".repeat(p[y]-ve(d))))))]),D,"`"),u}}function Oh(e,t){let{node:r}=e,n=t();return w(r)&&(n=g([x([C,n]),C])),["${",n,ot,"}"]}function nn(e,t){return e.map(r=>Oh(r,t),"expressions")}function ds(e,t){return Qe(e,r=>typeof r=="string"?t?r.replace(/(\\*)`/g,"$1$1\\`"):Do(r):r)}function Do(e){return e.replace(/([\\`]|\${)/g,"\\$1")}function Mh({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}async function jh(e,t,r){let{node:n}=r,i=n.quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(o,c)=>"\\".repeat(c.length/2)+"`"),s=Rh(i),u=s!=="";u&&(i=i.replace(new RegExp(`^${s}`,"gm"),""));let a=ds(await e(i,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",u?x([C,a]):[dt,rr(a)],C,"`"]}function Rh(e){let t=e.match(/^([^\S\n]*)\S/m);return t===null?"":t[1]}var fp=jh;l();async function $h(e,t,r){let{node:n}=r,i=n.quasis.map(p=>p.value.raw),s=0,u=i.reduce((p,f,m)=>m===0?f:p+"@prettier-placeholder-"+s+++"-id"+f,""),a=await e(u,{parser:"scss"}),o=nn(r,t),c=qh(a,o);if(!c)throw new Error("Couldn't insert all the expressions");return["`",x([D,c]),C,"`"]}function qh(e,t){if(!L(t))return e;let r=0,n=Qe(kt(e),i=>typeof i!="string"||!i.includes("@prettier-placeholder")?i:i.split(/@prettier-placeholder-(\d+)-id/).map((s,u)=>u%2===0?j(s):(r++,t[s])));return t.length===r?n:null}var mp=$h;l();async function Wh(e,t,r){let{node:n}=r,i=n.quasis.length,s=nn(r,t),u=[];for(let a=0;a<i;a++){let o=n.quasis[a],c=a===0,p=a===i-1,f=o.value.cooked,m=f.split(`
55
- `),d=m.length,y=s[a],E=d>2&&m[0].trim()===""&&m[1].trim()==="",T=d>2&&m[d-1].trim()===""&&m[d-2].trim()==="",b=m.every(A=>/^\s*(?:#[^\n\r]*)?$/.test(A));if(!p&&/#[^\n\r]*$/.test(m[d-1]))return null;let k=null;b?k=Vh(m):k=await e(f,{parser:"graphql"}),k?(k=ds(k,!1),!c&&E&&u.push(""),u.push(k),!p&&T&&u.push("")):!c&&!p&&E&&u.push(""),y&&u.push(y)}return["`",x([D,B(D,u)]),D,"`"]}function Vh(e){let t=[],r=!1,n=e.map(i=>i.trim());for(let[i,s]of n.entries())s!==""&&(n[i-1]===""&&r?t.push([D,s]):t.push(s),r=!0);return t.length===0?null:B(D,t)}var yp=Wh;l();var go=0;async function dp(e,t,r,n,i){let{node:s}=n,u=go;go=go+1>>>0;let a=b=>`PRETTIER_HTML_PLACEHOLDER_${b}_${u}_IN_JS`,o=s.quasis.map((b,k,A)=>k===A.length-1?b.value.cooked:b.value.cooked+a(k)).join(""),c=nn(n,r),p=new RegExp(a("(\\d+)"),"g"),f=0,m=await t(o,{parser:e,__onHtmlRoot(b){f=b.children.length}}),d=Qe(m,b=>{if(typeof b!="string")return b;let k=[],A=b.split(p);for(let F=0;F<A.length;F++){let v=A[F];if(F%2===0){v&&(v=Do(v),i.__embeddedInHtml&&(v=v.replace(/<\/(script)\b/gi,"<\\/$1")),k.push(v));continue}let M=Number(v);k.push(c[M])}return k}),y=/^\s/.test(o)?" ":"",E=/\s$/.test(o)?" ":"",T=i.htmlWhitespaceSensitivity==="ignore"?D:y&&E?S:null;return T?g(["`",x([T,g(d)]),T,"`"]):Xe({hug:!1},g(["`",y,f>1?x(g(d)):g(d),E,"`"]))}var Dp=dp.bind(void 0,"html"),gp=dp.bind(void 0,"angular");function Jh(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||e0(t))return;let r=Hh(e);if(r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":async(...n)=>{let i=await r(...n);return i&&Xe({embed:!0,...i.label},i)}}function Hh(e){if(Uh(e)||zh(e)||Xh(e)||Kh(e))return mp;if(Qh(e))return yp;if(Zh(e))return Dp;if(Yh(e))return gp;if(Gh(e))return fp}function Gh({node:e,parent:t}){return t&&t.type==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}function Uh({node:e,parent:t,grandparent:r}){return r&&e.quasis&&t.type==="JSXExpressionContainer"&&r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(n=>n.name.name==="jsx")||t&&t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="css"||t&&t.type==="TaggedTemplateExpression"&&t.tag.type==="MemberExpression"&&t.tag.object.name==="css"&&(t.tag.property.name==="global"||t.tag.property.name==="resolve")}function Kh(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="ArrayExpression"&&r==="elements",(t,r)=>we(t)&&t.key.type==="Identifier"&&t.key.name==="styles"&&r==="value",...Ep)}function Yh(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>we(t)&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...Ep)}var Ep=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function zh({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return Ds(t.object)||hp(t);case"CallExpression":return Ds(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Ds(t.callee.object.object)||hp(t.callee.object))||t.callee.object.type==="CallExpression"&&Ds(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function Xh({parent:e,grandparent:t}){return t&&e.type==="JSXExpressionContainer"&&t.type==="JSXAttribute"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}function Ds(e){return e.type==="Identifier"&&e.name==="styled"}function hp(e){return/^[A-Z]/.test(e.object.name)&&e.property.name==="extend"}function Qh({node:e,parent:t}){return Cp(e,"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}function Cp(e,t){return w(e,_.Block|_.Leading,({value:r})=>r===` ${t} `)}function Zh(e){return Cp(e.node,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}function e0({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var xp=Jh;l();var t0=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),sn=e=>{for(let t of e.quasis)delete t.value};function Sp(e,t,r){var i;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&t.value&&(t.value=t.value.toLowerCase()),(e.type==="BigIntLiteral"||e.type==="Literal")&&t.bigint&&(t.bigint=t.bigint.toLowerCase()),e.type==="DecimalLiteral"&&(t.value=Number(t.value)),e.type==="Literal"&&t.decimal&&(t.decimal=Number(t.decimal)),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&typeof e.key=="object"&&e.key&&(e.key.type==="Literal"||e.key.type==="NumericLiteral"||e.key.type==="StringLiteral"||e.key.type==="Identifier")&&delete t.key,e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(s=>s.name.name==="jsx"))for(let{type:s,expression:u}of t.children)s==="JSXExpressionContainer"&&u.type==="TemplateLiteral"&&sn(u);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&sn(t.value.expression),e.type==="JSXAttribute"&&e.value&&e.value.type==="Literal"&&/["']|&quot;|&apos;/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|&quot;|&apos;/g,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let s=e.expression.arguments[0].properties;for(let[u,a]of t.expression.arguments[0].properties.entries())switch(s[u].key.name){case"styles":a.value.type==="ArrayExpression"&&sn(a.value.elements[0]);break;case"template":a.value.type==="TemplateLiteral"&&sn(a.value);break}}if(e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&sn(t.quasi),e.type==="TemplateLiteral"&&(((i=e.leadingComments)==null?void 0:i.some(u=>Ee(u)&&["GraphQL","HTML"].some(a=>u.value===` ${a} `)))||r.type==="CallExpression"&&r.callee.name==="graphql"||!e.leadingComments)&&sn(t),e.type==="InterpreterDirective"&&(t.value=t.value.trimEnd()),(e.type==="TSIntersectionType"||e.type==="TSUnionType")&&e.types.length===1)return t.types[0]}Sp.ignoredProperties=t0;var Ap=Sp;l();var fr=Vr(Pp(),1);l();function p0(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
56
- `);return t===-1?e:e.slice(0,t)}var wp=p0;function f0(e){let t=wp(e);t&&(e=e.slice(t.length+1));let r=(0,fr.extract)(e),{pragmas:n,comments:i}=(0,fr.parseWithComments)(r);return{shebang:t,text:e,pragmas:n,comments:i}}function gs(e){let{shebang:t,text:r,pragmas:n,comments:i}=f0(e),s=(0,fr.strip)(r),u=(0,fr.print)({pragmas:{format:"",...n},comments:i.trimStart()});return(t?`${t}
31
+ `||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var at=zg;function Xg(e,t,r={}){let n=Oe(e,r.backwards?t-1:t,r),i=at(e,n,r);return n!==i}var Y=Xg;function Qg(e){return Array.isArray(e)&&e.length>0}var N=Qg;function Zg(e){let t=e.type||e.kind||"(unknown type)",r=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 r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Ua(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Zg(e)}function Z(e,t){t.leading=!0,t.trailing=!1,Ua(e,t)}function de(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Ua(e,t)}function X(e,t){t.leading=!1,t.trailing=!0,Ua(e,t)}var Ka=new WeakMap;function Yi(e,t){if(Ka.has(e))return Ka.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:i},locStart:s,locEnd:u}=t;if(!n)return[];let a=((r==null?void 0:r(e,t))??lr(i)(e).flatMap(o=>e[o])).flatMap(o=>o!==null&&typeof o=="object"?n(o)?o:Yi(o,t):[]);return a.sort((o,c)=>s(o)-s(c)||u(o)-u(c)),Ka.set(e,a),a}function Pl(e,t,r,n){let{locStart:i,locEnd:s}=r,u=i(t),a=s(t),o=Yi(e,r),c,l,p=0,f=o.length;for(;p<f;){let d=p+f>>1,m=o[d],g=i(m),x=s(m);if(g<=u&&a<=x)return Pl(m,t,r,m);if(x<=u){c=m,p=d+1;continue}if(a<=g){l=m,f=d;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:d}=n,m=za(d,t,r);c&&za(d,c,r)!==m&&(c=null),l&&za(d,l,r)!==m&&(l=null)}return{enclosingNode:n,precedingNode:c,followingNode:l}}var Ya=()=>!1;function eh(e,t,r,n){if(!N(e)||!n.printer.canAttachComment)return;let i=[],{locStart:s,locEnd:u,printer:{handleComments:a={}}}=n,{avoidAstMutation:o,ownLine:c=Ya,endOfLine:l=Ya,remaining:p=Ya}=a,f=e.map((d,m)=>({...Pl(t,d,n),comment:d,text:r,options:n,ast:t,isLastComment:e.length-1===m}));for(let[d,m]of f.entries()){let{comment:g,precedingNode:x,enclosingNode:S,followingNode:F,text:k,options:v,ast:T,isLastComment:_}=m;if(v.parser==="json"||v.parser==="json5"||v.parser==="__js_expression"||v.parser==="__vue_expression"||v.parser==="__vue_ts_expression"){if(s(g)-s(T)<=0){Z(T,g);continue}if(u(g)-u(T)>=0){X(T,g);continue}}let b;if(o?b=[m]:(g.enclosingNode=S,g.precedingNode=x,g.followingNode=F,b=[g,k,v,T,_]),th(k,v,f,d))g.placement="ownLine",c(...b)||(F?Z(F,g):x?X(x,g):S?de(S,g):de(T,g));else if(rh(k,v,f,d))g.placement="endOfLine",l(...b)||(x?X(x,g):F?Z(F,g):S?de(S,g):de(T,g));else if(g.placement="remaining",!p(...b))if(x&&F){let w=i.length;w>0&&i[w-1].followingNode!==F&&kl(i,k,v),i.push(m)}else x?X(x,g):F?Z(F,g):S?de(S,g):de(T,g)}if(kl(i,r,n),!o)for(let d of e)delete d.precedingNode,delete d.enclosingNode,delete d.followingNode}var wl=e=>!/[\S\n\u2028\u2029]/.test(e);function th(e,t,r,n){let{comment:i,precedingNode:s}=r[n],{locStart:u,locEnd:a}=t,o=u(i);if(s)for(let c=n-1;c>=0;c--){let{comment:l,precedingNode:p}=r[c];if(p!==s||!wl(e.slice(a(l),o)))break;o=u(l)}return Y(e,o,{backwards:!0})}function rh(e,t,r,n){let{comment:i,followingNode:s}=r[n],{locStart:u,locEnd:a}=t,o=a(i);if(s)for(let c=n+1;c<r.length;c++){let{comment:l,followingNode:p}=r[c];if(p!==s||!wl(e.slice(o,u(l))))break;o=a(l)}return Y(e,o)}function kl(e,t,r){var o,c;let n=e.length;if(n===0)return;let{precedingNode:i,followingNode:s}=e[0],u=r.locStart(s),a;for(a=n;a>0;--a){let{comment:l,precedingNode:p,followingNode:f}=e[a-1];gt.strictEqual(p,i),gt.strictEqual(f,s);let d=t.slice(r.locEnd(l),u);if(((c=(o=r.printer).isGap)==null?void 0:c.call(o,d,r))??/^[\s(]*$/.test(d))u=r.locStart(l);else break}for(let[l,{comment:p}]of e.entries())l<a?X(i,p):Z(s,p);for(let l of[i,s])l.comments&&l.comments.length>1&&l.comments.sort((p,f)=>r.locStart(p)-r.locStart(f));e.length=0}function za(e,t,r){let n=r.locStart(t)-1;for(let i=1;i<e.length;++i)if(n<r.locStart(e[i]))return i-1;return 0}function Yr(e,t,r){let{comments:n}=t;return n&&(delete t.comments,eh(n,t,e,r)),r[Symbol.for("comments")]=n||[],r[Symbol.for("tokens")]=t.tokens||[],r.originalText=e,n}function nh(e,t){let r=t-1;r=Oe(e,r,{backwards:!0}),r=at(e,r,{backwards:!0}),r=Oe(e,r,{backwards:!0});let n=at(e,r,{backwards:!0});return r!==n}var vr=nh;var ih=()=>!0;function Xa(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function sh(e,t){var l;let r=e.node,n=[Xa(e,t)],{printer:i,originalText:s,locStart:u,locEnd:a}=t;if((l=i.isBlockComment)==null?void 0:l.call(i,r)){let p=Y(s,a(r))?Y(s,u(r),{backwards:!0})?y:C:" ";n.push(p)}else n.push(y);let c=at(s,Oe(s,a(r)));return c!==!1&&Y(s,c)&&n.push(y),n}function uh(e,t,r){var c;let n=e.node,i=Xa(e,t),{printer:s,originalText:u,locStart:a}=t,o=(c=s.isBlockComment)==null?void 0:c.call(s,n);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||Y(u,a(n),{backwards:!0})){let l=vr(u,a(n));return{doc:Gr([y,l?y:"",i]),isBlock:o,hasLineSuffix:!0}}return!o||r!=null&&r.hasLineSuffix?{doc:[Gr([" ",i]),K],isBlock:o,hasLineSuffix:!0}:{doc:[" ",i],isBlock:o,hasLineSuffix:!1}}function J(e,t,r={}){let{node:n}=e;if(!N(n==null?void 0:n.comments))return"";let{indent:i=!1,marker:s,filter:u=ih}=r,a=[];if(e.each(({node:c})=>{c.leading||c.trailing||c.marker!==s||!u(c)||a.push(Xa(e,t))},"comments"),a.length===0)return"";let o=A(y,a);return i?E([y,o]):o}function Qa(e,t,r){let n=e.node;if(!n)return{};let i=n.comments||[];if(r&&(i=i.filter(o=>!r.has(o))),i.length===0)return{leading:"",trailing:""};let s=[],u=[],a;return e.each(()=>{let o=e.node;if(r!=null&&r.has(o))return;let{leading:c,trailing:l}=o;c?s.push(sh(e,t)):l&&(a=uh(e,t,a),u.push(a.doc))},"comments"),{leading:s,trailing:u}}function Ee(e,t,r,n){let{leading:i,trailing:s}=Qa(e,r,n);return!i&&!s?t:Ie(typeof t.label=="object"&&{commented:!0,...t.label},[i,t,s])}function zi(e){if(e)for(let t of e){if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed}}var Mn,eo,zr,Xi,Za=class{constructor(t){Tn(this,Mn);Tn(this,zr);this.stack=[t]}get key(){let{stack:t,siblings:r}=this;return P(!1,t,r===null?-2:-4)??null}get index(){return this.siblings===null?null:P(!1,this.stack,-2)}get node(){return this.stack[this.stack.length-1]}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:t}=this,r=P(!1,t,-3);return Array.isArray(r)?r:null}get next(){let{siblings:t}=this;return t===null?null:t[this.index+1]}get previous(){let{siblings:t}=this;return t===null?null:t[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:t,index:r}=this;return t!==null&&r===t.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...Jr(this,zr,Xi).call(this)]}getName(){let{stack:t}=this,{length:r}=t;return r>1?P(!1,t,-2):null}getValue(){return P(!1,this.stack,-1)}getNode(t=0){let r=Jr(this,Mn,eo).call(this,t);return r===-1?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:i}=n,s=P(!1,n,-1);for(let u of r)s=s[u],n.push(u,s);try{return t(this)}finally{n.length=i}}callParent(t,r=0){let n=Jr(this,Mn,eo).call(this,r+1),i=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...i)}}each(t,...r){let{stack:n}=this,{length:i}=n,s=P(!1,n,-1);for(let u of r)s=s[u],n.push(u,s);try{for(let u=0;u<s.length;++u)n.push(u,s[u]),t(this,u,s),n.length-=2}finally{n.length=i}}map(t,...r){let n=[];return this.each((i,s,u)=>{n[s]=t(i,s,u)},...r),n}match(...t){let r=this.stack.length-1,n=null,i=this.stack[r--];for(let s of t){if(i===void 0)return!1;let u=null;if(typeof n=="number"&&(u=n,n=this.stack[r--],i=this.stack[r--]),s&&!s(i,n,u))return!1;n=this.stack[r--],i=this.stack[r--]}return!0}findAncestor(t){for(let r of Jr(this,zr,Xi).call(this))if(t(r))return r}hasAncestor(t){for(let r of Jr(this,zr,Xi).call(this))if(t(r))return!0;return!1}};Mn=new WeakSet,eo=function(t){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--t<0)return n;return-1},zr=new WeakSet,Xi=function*(){let{stack:t}=this;for(let r=t.length-3;r>=0;r-=2){let n=t[r];Array.isArray(n)||(yield n)}};var _l=Za;async function Ll(e,t,r,n,i){let{embeddedLanguageFormatting:s,printer:{embed:u,hasPrettierIgnore:a=()=>!1,getVisitorKeys:o}}=r;if(!u||s!=="auto")return;if(u.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/en/plugins.html#optional-embed");let c=lr(u.getVisitorKeys??o),l=[];d();let p=e.stack;for(let{print:m,node:g,pathStack:x}of l)try{e.stack=x;let S=await m(f,t,e,r);S&&i.set(g,S)}catch(S){if(globalThis.PRETTIER_DEBUG)throw S}e.stack=p;function f(m,g){return ah(m,g,r,n)}function d(){let{node:m}=e;if(m===null||typeof m!="object"||a(e))return;for(let x of c(m))Array.isArray(m[x])?e.each(d,x):e.call(d,x);let g=u(e,r);if(g){if(typeof g=="function"){l.push({print:g,node:m,pathStack:[...e.stack]});return}i.set(m,g)}}}async function ah(e,t,r,n){let i=await cr({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),s=await br(e,i),{ast:u}=s;e=s.text;let a=Yr(e,u,i),o=await n(u,i);return zi(a),Zu(o)}function oh(e){return()=>{}}var Il=oh;async function Nl(e,t,r=0){let{printer:n}=t;n.preprocess&&(e=await n.preprocess(e,t));let i=new Map,s=new _l(e),u=Il(t),a=new Map;await Ll(s,c,t,Nl,a);let o=await Ol(s,t,c,void 0,a);return r>0&&(o=vn([y,o],r,t.tabWidth)),Qu(o),o;function c(p,f){return p===void 0||p===s?l(f):Array.isArray(p)?s.call(()=>l(f),...p):s.call(()=>l(f),p)}function l(p){u(s);let f=s.node;if(f==null)return"";let d=f&&typeof f=="object"&&p===void 0;if(d&&i.has(f))return i.get(f);let m=Ol(s,t,c,p,a);return d&&i.set(f,m),m}}function ch(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:s}=t,u=i(e),a=s(e),o=new Set;for(let c of n)i(c)>=u&&s(c)<=a&&(c.printed=!0,o.add(c));return{doc:r.slice(u,a),printedComments:o}}function Ol(e,t,r,n,i){var c;let{node:s}=e,{printer:u}=t,a,o;return(c=u.hasPrettierIgnore)!=null&&c.call(u,e)?{doc:a,printedComments:o}=ch(s,t):i.has(s)?a=i.get(s):a=u.print(e,t,r,n),(!u.willPrintOwnComments||!u.willPrintOwnComments(e,t))&&(a=Ee(e,a,t,o)),s===t.cursorNode&&(a=Ie(typeof a.label=="object"&&{commented:!0,...a.label},[_i,a,_i])),a}var Qi=Nl;var lh=({parser:e})=>e==="json"||e==="json5"||e==="json-stringify";function ph(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(i=>Rl.has(i.type)&&n.has(i))}function Ml(e){let t=e.length-1;for(;;){let r=e[t];if((r==null?void 0:r.type)==="Program"||(r==null?void 0:r.type)==="File")t--;else break}return e.slice(0,t+1)}function fh(e,t,{locStart:r,locEnd:n}){let i=e.node,s=t.node;if(i===s)return{startNode:i,endNode:s};let u=r(e.node);for(let o of Ml(t.parentNodes))if(r(o)>=u)s=o;else break;let a=n(t.node);for(let o of Ml(e.parentNodes)){if(n(o)<=a)i=o;else break;if(i===s)break}return{startNode:i,endNode:s}}function jn(e,t,r,n,i=[],s){let{locStart:u,locEnd:a}=r,o=u(e),c=a(e);if(!(t>c||t<o||s==="rangeEnd"&&t===o||s==="rangeStart"&&t===c)){for(let l of Yi(e,r)){let p=jn(l,t,r,n,[e,...i],s);if(p)return p}if(!n||n(e,i[0]))return{node:e,parentNodes:i}}}function mh(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var Rl=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),dh=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function jl(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return mh(t.type,r==null?void 0:r.type);case"json":case"json5":case"json-stringify":return Rl.has(t.type);case"graphql":return dh.has(t.kind);case"vue":return t.tag!=="root"}return!1}function $l(e,t,r){let{rangeStart:n,rangeEnd:i,locStart:s,locEnd:u}=t;gt.ok(i>n);let a=e.slice(n,i).search(/\S/),o=a===-1;if(!o)for(n+=a;i>n&&!/\S/.test(e[i-1]);--i);let c=jn(r,n,t,(d,m)=>jl(t,d,m),[],"rangeStart"),l=o?c:jn(r,i,t,d=>jl(t,d),[],"rangeEnd");if(!c||!l)return{rangeStart:0,rangeEnd:0};let p,f;if(lh(t)){let d=ph(c,l);p=d,f=d}else({startNode:p,endNode:f}=fh(c,l,t));return{rangeStart:Math.min(s(p),s(f)),rangeEnd:Math.max(u(p),u(f))}}var Gl="\uFEFF",Wl=Symbol("cursor");async function Hl(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await br(e,t);if(t.cursorOffset>=0){let o=jn(n,t.cursorOffset,t);o!=null&&o.node&&(t.cursorNode=o.node)}let s=Yr(i,n,t),u=await Qi(n,t,r),a=jt(u,t);if(zi(s),r>0){let o=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(o)),a.formatted=o+bn(t.endOfLine)}if(t.cursorOffset>=0){let o,c,l,p,f;if(t.cursorNode&&a.cursorNodeText?(o=t.locStart(t.cursorNode),c=i.slice(o,t.locEnd(t.cursorNode)),l=t.cursorOffset-o,p=a.cursorNodeStart,f=a.cursorNodeText):(o=0,c=i,l=t.cursorOffset,p=0,f=a.formatted),c===f)return{formatted:a.formatted,cursorOffset:p+l,comments:s};let d=c.split("");d.splice(l,0,Wl);let m=f.split(""),g=(0,Jl.diffArrays)(d,m),x=p;for(let S of g)if(S.removed){if(S.value.includes(Wl))break}else x+=S.count;return{formatted:a.formatted,cursorOffset:x,comments:s}}return{formatted:a.formatted,cursorOffset:-1,comments:s}}async function yh(e,t){let{ast:r,text:n}=await br(e,t),{rangeStart:i,rangeEnd:s}=$l(n,t,r),u=n.slice(i,s),a=Math.min(i,n.lastIndexOf(`
32
+ `,i)+1),o=n.slice(a,i).match(/^\s*/)[0],c=Hr(o,t.tabWidth),l=await Hl(u,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=s?t.cursorOffset-i:-1,endOfLine:"lf"},c),p=l.formatted.trimEnd(),{cursorOffset:f}=t;f>s?f+=p.length-u.length:l.cursorOffset>=0&&(f=l.cursorOffset+i);let d=n.slice(0,i)+p+n.slice(s);if(t.endOfLine!=="lf"){let m=bn(t.endOfLine);f>=0&&m===`\r
33
+ `&&(f+=Ju(d.slice(0,f),`
34
+ `)),d=I(!1,d,`
35
+ `,m)}return{formatted:d,cursorOffset:f,comments:l.comments}}function to(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function ql(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=to(e,r,-1),n=to(e,n,0),i=to(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function Ul(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=ql(e,t),u=e.charAt(0)===Gl;if(u&&(e=e.slice(1),r--,n--,i--),s==="auto"&&(s=Bc(e)),e.includes("\r")){let a=o=>Ju(e.slice(0,Math.max(o,0)),`\r
36
+ `);r-=a(r),n-=a(n),i-=a(i),e=kc(e)}return{hasBOM:u,text:e,options:ql(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s})}}async function Vl(e,t){let r=await In(t);return!r.hasPragma||r.hasPragma(e)}async function ro(e,t){let{hasBOM:r,text:n,options:i}=Ul(e,await cr(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await Vl(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let s;return i.rangeStart>0||i.rangeEnd<n.length?s=await yh(n,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await Vl(n,i)&&(n=i.printer.insertPragma(n)),s=await Hl(n,i)),r&&(s.formatted=Gl+s.formatted,s.cursorOffset>=0&&s.cursorOffset++),s}async function Kl(e,t,r){let{text:n,options:i}=Ul(e,await cr(t)),s=await br(n,i);return r&&(r.massage&&(s.ast=vl(s.ast,i)),r.preprocessForPrint&&(Yr(s.text,s.ast,i),i.printer.preprocess&&(s.ast=await i.printer.preprocess(s.ast,i)))),s}async function Yl(e,t){t=await cr(t);let r=await Qi(e,t);return jt(r,t)}async function zl(e,t){let r=ia(e),{formatted:n}=await ro(r,{...t,parser:"__js_expression"});return n}async function Xl(e,t){t=await cr(t);let{ast:r,text:n}=await br(e,t);return Yr(n,r,t),Qi(r,t)}async function Ql(e,t){return jt(e,await cr(t))}var Sc={};fe(Sc,{css:()=>uu,graphql:()=>fu,handlebars:()=>pu,html:()=>Pu,js:()=>zs,json:()=>Mu,markdown:()=>Du,yaml:()=>Nu});var zs={};fe(zs,{languages:()=>qf,options:()=>Vf,parsers:()=>BC,printers:()=>vC});var gh=()=>{},ze=gh;var Zl=void 0;var no=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},ee=no;var hh=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,Eh=e=>hh.test(e),ep=Eh;function Ch(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var Xr=Ch;function xh(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Nn(e,t):t}var Qr=xh;function Sh(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ki(e,n),n=Xr(e,n),n=Oe(e,n);return n=Qr(e,n),n=at(e,n),n!==!1&&Y(e,n)}var ot=Sh;function te(e){var n;let t=e.range?e.range[0]:e.start,r=((n=e.declaration)==null?void 0:n.decorators)??e.decorators;return N(r)?Math.min(te(r[0]),t):t}function q(e){return e.range?e.range[1]:e.end}function pr(e,t){let r=te(e);return Number.isInteger(r)&&r===te(t)}function Th(e,t){let r=q(e);return Number.isInteger(r)&&r===q(t)}function tp(e,t){return pr(e,t)&&Th(e,t)}var Rn=null;function $n(e){if(Rn!==null&&typeof Rn.property){let t=Rn;return Rn=$n.prototype=null,t}return Rn=$n.prototype=e??Object.create(null),new $n}var Ah=10;for(let e=0;e<=Ah;e++)$n();function io(e){return $n(e)}function Fh(e,t="type"){io(e);function r(n){let i=n[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var Be=Fh;var rp={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","exported","assertions"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value","decorators"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value","decorators"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],BigIntTypeAnnotation:[],QualifiedTypeofIdentifier:["id","qualification"],DeclareEnum:["id","body"],TupleTypeSpreadElement:["label","typeAnnotation"],TupleTypeLabeledElement:["label","elementType","variance"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var bh=Be(rp),Zi=bh;var vh=new Set(["Block","CommentBlock","MultiLine"]),Bh=e=>vh.has(e==null?void 0:e.type),Fe=Bh;function kh(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let i=r[n];if(n===0)return e.type==="Identifier"&&e.name===i;if(e.type!=="MemberExpression"||e.optional||e.computed||e.property.type!=="Identifier"||e.property.name!==i)return!1;e=e.object}}function Ph(e,t){return t.some(r=>kh(e,r))}var np=Ph;function Br(e,t){if(e===null||typeof e!="object")return!1;if(Array.isArray(e))return e.some(n=>Br(n,t));let r=t(e);return typeof r=="boolean"?r:Zi(e).some(n=>Br(e[n],t))}function en(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||R(e)||G(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||ht(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function up(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function ts(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function le(e){return e=new Set(e),t=>e.has(t==null?void 0:t.type)}var qn=le(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),ap=le(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),z=le(["ArrayExpression","TupleExpression"]),ye=le(["ObjectExpression","RecordExpression"]);function lt(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function rs(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&lt(e.argument)}function De(e){return e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"}function co(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&Boolean(e.regex)}var Xe=le(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Zr=le(["FunctionExpression","ArrowFunctionExpression"]);function wh(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function so(e){return R(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var ue=le(["JSXElement","JSXFragment"]);function ns(e,t){if(e.parentParser!=="markdown"&&e.parentParser!=="mdx")return!1;let{node:r}=t;if(!r.expression||!ue(r.expression))return!1;let{parent:n}=t;return n.type==="Program"&&n.body.length===1}function lo(e){return e.kind==="get"||e.kind==="set"}function po(e){return lo(e)||pr(e,e.value)}function is(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&e.value.type==="FunctionTypeAnnotation"&&!e.static&&!po(e)}function op(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!pr(e,e.typeAnnotation)}var Ne=le(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function fr(e){return G(e)||e.type==="BindExpression"&&Boolean(e.object)}var _h=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","NeverTypeAnnotation","TSNeverKeyword","UndefinedTypeAnnotation","TSUndefinedKeyword","UnknownTypeAnnotation","TSUnknownKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSObjectKeyword"]);function tn(e){return e?!!((e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference")&&!e.typeParameters||_h.has(e.type)):!1}function Lh(e){let t=/^(?:before|after)(?:Each|All)$/;return e.callee.type==="Identifier"&&e.arguments.length===1&&t.test(e.callee.name)}var Ih=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function Oh(e){return np(e,Ih)}function kr(e,t){if(e.type!=="CallExpression")return!1;if(e.arguments.length===1){if(so(e)&&t&&kr(t))return Zr(e.arguments[0]);if(Lh(e))return so(e.arguments[0])}else if((e.arguments.length===2||e.arguments.length===3)&&(e.arguments[0].type==="TemplateLiteral"||De(e.arguments[0]))&&Oh(e.callee))return e.arguments[2]&&!lt(e.arguments[2])?!1:(e.arguments.length===2?Zr(e.arguments[1]):wh(e.arguments[1])&&ae(e.arguments[1]).length<=1)||so(e.arguments[1]);return!1}var R=le(["CallExpression","OptionalCallExpression"]),G=le(["MemberExpression","OptionalMemberExpression"]);function cp(e){let t="expressions";e.type==="TSTemplateLiteralType"&&(t="types");let r=e[t];return r.length===0?!1:r.every(n=>{if(B(n))return!1;if(n.type==="Identifier"||n.type==="ThisExpression")return!0;if(n.type==="ChainExpression"&&(n=n.expression),G(n)){let i=n;for(;G(i);)if(i.property.type!=="Identifier"&&i.property.type!=="Literal"&&i.property.type!=="StringLiteral"&&i.property.type!=="NumericLiteral"||(i=i.object,B(i)))return!1;return i.type==="Identifier"||i.type==="ThisExpression"}return!1})}function ss(e,t){return e==="+"||e==="-"?e+t:t}function kt(e,t){return ue(t)?rn(t):B(t,O.Leading,r=>Y(e,q(r)))}function fo(e,t){return t.parser!=="json"&&De(e.key)&&be(e.key).slice(1,-1)===e.key.value&&(ep(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||mo(e.key.value)&&String(Number(e.key.value))===e.key.value&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function mo(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function ip(e){return e.quasis.some(t=>t.value.raw.includes(`
37
+ `))}function us(e,t){return(e.type==="TemplateLiteral"&&ip(e)||e.type==="TaggedTemplateExpression"&&ip(e.quasi))&&!Y(t,te(e),{backwards:!0})}function as(e){if(!B(e))return!1;let t=P(!1,Gn(e,O.Dangling),-1);return t&&!Fe(t)}function lp(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Zr(r)){if(t+=1,t>1)return!0}else if(R(r)){for(let n of r.arguments)if(Zr(n))return!0}return!1}function os(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&R(t)&&R(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var Nh=new Set(["!","-","+","~"]);function ct(e,t=2){if(t<=0)return!1;let r=n=>ct(n,t-1);if(co(e))return $e(e.pattern??e.regex.pattern)<=5;if(e.type==="Literal"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="BooleanLiteral"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="StringLiteral"||e.type==="Identifier"||e.type==="ThisExpression"||e.type==="Super"||e.type==="PrivateName"||e.type==="PrivateIdentifier"||e.type==="ArgumentPlaceholder"||e.type==="Import")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(`
38
+ `))&&e.expressions.every(r);if(ye(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(z(e))return e.elements.every(n=>n===null||r(n));if(mr(e)){if(e.type==="ImportExpression"||ct(e.callee,t)){let n=pt(e);return n.length<=t&&n.every(r)}return!1}return G(e)?ct(e.object,t)&&ct(e.property,t):e.type==="UnaryExpression"&&Nh.has(e.operator)||e.type==="UpdateExpression"?ct(e.argument,t):e.type==="TSNonNullExpression"?ct(e.expression,t):!1}function be(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function pp(e){return e}function fp(e){return e.filepath&&/\.tsx$/i.test(e.filepath)}function ke(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function Te(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return Te(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return Te(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:Te(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:Te(e.callee,t);case"ConditionalExpression":return Te(e.test,t);case"UpdateExpression":return!e.prefix&&Te(e.argument,t);case"BindExpression":return e.object&&Te(e.object,t);case"SequenceExpression":return Te(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return Te(e.expression,t);default:return t(e)}}var sp={"==":!0,"!=":!0,"===":!0,"!==":!0},es={"*":!0,"/":!0,"%":!0},oo={">>":!0,">>>":!0,"<<":!0};function Vn(e,t){return!(Wn(t)!==Wn(e)||e==="**"||sp[e]&&sp[t]||t==="%"&&es[e]||e==="%"&&es[t]||t!==e&&es[t]&&es[e]||oo[e]&&oo[t])}var Mh=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function Wn(e){return Mh.get(e)}function mp(e){return Boolean(oo[e])||e==="|"||e==="^"||e==="&"}function dp(e){var r;if(e.rest)return!0;let t=ae(e);return((r=P(!1,t,-1))==null?void 0:r.type)==="RestElement"}var uo=new WeakMap;function ae(e){if(uo.has(e))return uo.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),uo.set(e,t),t}function yp(e,t){let{node:r}=e,n=0,i=s=>t(s,n++);r.this&&e.call(i,"this"),Array.isArray(r.parameters)?e.each(i,"parameters"):Array.isArray(r.params)&&e.each(i,"params"),r.rest&&e.call(i,"rest")}var ao=new WeakMap;function pt(e){if(ao.has(e))return ao.get(e);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.attributes&&t.push(e.attributes)),ao.set(e,t),t}function cs(e,t){let{node:r}=e;r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.attributes&&e.call(n=>t(n,1),"attributes")):e.each(t,"arguments")}function yo(e,t){if(e.type==="ImportExpression"){if(t===0||t===(e.attributes?-2:-1))return"source";if(e.attributes&&(t===1||t===-1))return"attributes";throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return["arguments",t]}function Jn(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function rn(e){return(e==null?void 0:e.prettierIgnore)||B(e,O.PrettierIgnore)}var O={Leading:1<<1,Trailing:1<<2,Dangling:1<<3,Block:1<<4,Line:1<<5,PrettierIgnore:1<<6,First:1<<7,Last:1<<8},Dp=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,i)=>!(e&O.Leading&&!r.leading||e&O.Trailing&&!r.trailing||e&O.Dangling&&(r.leading||r.trailing)||e&O.Block&&!Fe(r)||e&O.Line&&!qn(r)||e&O.First&&n!==0||e&O.Last&&n!==i.length-1||e&O.PrettierIgnore&&!Jn(r)||t&&!t(r))};function B(e,t,r){if(!N(e==null?void 0:e.comments))return!1;let n=Dp(t,r);return n?e.comments.some(n):!0}function Gn(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=Dp(t,r);return n?e.comments.filter(n):e.comments}var Ce=(e,{originalText:t})=>ot(t,q(e));function mr(e){return R(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Me(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!e.method&&e.kind==="init")}function Do(e){return Boolean(e.__isUsingHackPipeline)}var ls=Symbol("ifWithoutBlockAndSameLineComment"),ht=le(["TSAsExpression","TSSatisfiesExpression"]);function jh(e,t){let r=e.lastIndexOf(`
39
+ `);return r===-1?0:Hr(e.slice(r+1).match(/^[\t ]*/)[0],t)}var ps=jh;function fs(e,t,r){let{node:n}=e;if(n.type==="TemplateLiteral"&&Wh(e)){let l=Rh(e,r,t);if(l)return l}let s="expressions";n.type==="TSTemplateLiteralType"&&(s="types");let u=[],a=e.map(t,s),o=cp(n);o&&(a=a.map(l=>jt(l,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted)),u.push(Dt,"`");let c=0;return e.each(({index:l,node:p})=>{if(u.push(t()),p.tail)return;let{tabWidth:f}=r,d=p.value.raw,m=d.includes(`
40
+ `)?ps(d,f):c;c=m;let g=a[l];if(!o){let S=n[s][l];(B(S)||G(S)||S.type==="ConditionalExpression"||S.type==="SequenceExpression"||ht(S)||Ne(S))&&(g=[E([h,g]),h])}let x=m===0&&d.endsWith(`
41
+ `)?Q(Number.NEGATIVE_INFINITY,g):vn(g,m,f);u.push(D(["${",x,Dt,"}"]))},"quasis"),u.push("`"),u}function gp(e){let t=e("quasi");return Ie(t.label&&{tagged:!0,...t.label},[e("tag"),e("typeParameters"),Dt,t])}function Rh(e,t,r){let{node:n}=e,i=n.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(i.length>1||i.some(s=>s.length>0)){t.__inJestEach=!0;let s=e.map(r,"expressions");t.__inJestEach=!1;let u=[],a=s.map(f=>"${"+jt(f,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let f=1;f<n.quasis.length;f++){let d=P(!1,o,-1),m=a[f-1];d.cells.push(m),m.includes(`
42
+ `)&&(d.hasLineBreak=!0),n.quasis[f].value.raw.includes(`
43
+ `)&&o.push({hasLineBreak:!1,cells:[]})}let c=Math.max(i.length,...o.map(f=>f.cells.length)),l=Array.from({length:c}).fill(0),p=[{cells:i},...o.filter(f=>f.cells.length>0)];for(let{cells:f}of p.filter(d=>!d.hasLineBreak))for(let[d,m]of f.entries())l[d]=Math.max(l[d],$e(m));return u.push(Dt,"`",E([y,A(y,p.map(f=>A(" | ",f.cells.map((d,m)=>f.hasLineBreak?d:d+" ".repeat(l[m]-$e(d))))))]),y,"`"),u}}function $h(e,t){let{node:r}=e,n=t();return B(r)&&(n=D([E([h,n]),h])),["${",n,Dt,"}"]}function nn(e,t){return e.map(r=>$h(r,t),"expressions")}function ms(e,t){return nt(e,r=>typeof r=="string"?t?I(!1,r,/(\\*)`/g,"$1$1\\`"):go(r):r)}function go(e){return I(!1,e,/([\\`]|\${)/g,"\\$1")}function Wh({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}async function qh(e,t,r){let{node:n}=r,i=I(!1,n.quasis[0].value.raw,/((?:\\\\)*)\\`/g,(o,c)=>"\\".repeat(c.length/2)+"`"),s=Vh(i),u=s!=="";u&&(i=I(!1,i,new RegExp(`^${s}`,"gm"),""));let a=ms(await e(i,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",u?E([h,a]):[Bt,sr(a)],h,"`"]}function Vh(e){let t=e.match(/^([^\S\n]*)\S/m);return t===null?"":t[1]}var hp=qh;async function Jh(e,t,r){let{node:n}=r,i=n.quasis.map(l=>l.value.raw),s=0,u=i.reduce((l,p,f)=>f===0?p:l+"@prettier-placeholder-"+s+++"-id"+p,""),a=await e(u,{parser:"scss"}),o=nn(r,t),c=Gh(a,o);if(!c)throw new Error("Couldn't insert all the expressions");return["`",E([y,c]),h,"`"]}function Gh(e,t){if(!N(t))return e;let r=0,n=nt(Nt(e),i=>typeof i!="string"||!i.includes("@prettier-placeholder")?i:i.split(/@prettier-placeholder-(\d+)-id/).map((s,u)=>u%2===0?$(s):(r++,t[s])));return t.length===r?n:null}var Ep=Jh;async function Hh(e,t,r){let{node:n}=r,i=n.quasis.length,s=nn(r,t),u=[];for(let a=0;a<i;a++){let o=n.quasis[a],c=a===0,l=a===i-1,p=o.value.cooked,f=p.split(`
44
+ `),d=f.length,m=s[a],g=d>2&&f[0].trim()===""&&f[1].trim()==="",x=d>2&&f[d-1].trim()===""&&f[d-2].trim()==="",S=f.every(k=>/^\s*(?:#[^\n\r]*)?$/.test(k));if(!l&&/#[^\n\r]*$/.test(f[d-1]))return null;let F=null;S?F=Uh(f):F=await e(p,{parser:"graphql"}),F?(F=ms(F,!1),!c&&g&&u.push(""),u.push(F),!l&&x&&u.push("")):!c&&!l&&g&&u.push(""),m&&u.push(m)}return["`",E([y,A(y,u)]),y,"`"]}function Uh(e){let t=[],r=!1,n=e.map(i=>i.trim());for(let[i,s]of n.entries())s!==""&&(n[i-1]===""&&r?t.push([y,s]):t.push(s),r=!0);return t.length===0?null:A(y,t)}var Cp=Hh;var ho=0;async function xp(e,t,r,n,i){let{node:s}=n,u=ho;ho=ho+1>>>0;let a=S=>`PRETTIER_HTML_PLACEHOLDER_${S}_${u}_IN_JS`,o=s.quasis.map((S,F,k)=>F===k.length-1?S.value.cooked:S.value.cooked+a(F)).join(""),c=nn(n,r),l=new RegExp(a("(\\d+)"),"g"),p=0,f=await t(o,{parser:e,__onHtmlRoot(S){p=S.children.length}}),d=nt(f,S=>{if(typeof S!="string")return S;let F=[],k=S.split(l);for(let v=0;v<k.length;v++){let T=k[v];if(v%2===0){T&&(T=go(T),i.__embeddedInHtml&&(T=I(!1,T,/<\/(?=script\b)/gi,"<\\/")),F.push(T));continue}let _=Number(T);F.push(c[_])}return F}),m=/^\s/.test(o)?" ":"",g=/\s$/.test(o)?" ":"",x=i.htmlWhitespaceSensitivity==="ignore"?y:m&&g?C:null;return x?D(["`",E([x,D(d)]),x,"`"]):Ie({hug:!1},D(["`",m,p>1?E(D(d)):D(d),g,"`"]))}var Sp=xp.bind(void 0,"html"),Tp=xp.bind(void 0,"angular");function Kh(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||i0(t))return;let r=Yh(e);if(r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":async(...n)=>{let i=await r(...n);return i&&Ie({embed:!0,...i.label},i)}}function Yh(e){if(Xh(e)||e0(e)||t0(e)||Qh(e))return Ep;if(r0(e))return Cp;if(n0(e))return Sp;if(Zh(e))return Tp;if(zh(e))return hp}function zh({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}function Xh({node:e,parent:t,grandparent:r}){return r&&e.quasis&&t.type==="JSXExpressionContainer"&&r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(n=>n.name.name==="jsx")||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="css"||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="MemberExpression"&&t.tag.object.name==="css"&&(t.tag.property.name==="global"||t.tag.property.name==="resolve")}function Qh(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>z(t)&&r==="elements",(t,r)=>Me(t)&&t.key.type==="Identifier"&&t.key.name==="styles"&&r==="value",...Fp)}function Zh(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Me(t)&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...Fp)}var Fp=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function e0({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return ds(t.object)||Ap(t);case"CallExpression":return ds(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(ds(t.callee.object.object)||Ap(t.callee.object))||t.callee.object.type==="CallExpression"&&ds(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function t0({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}function ds(e){return e.type==="Identifier"&&e.name==="styled"}function Ap(e){return/^[A-Z]/.test(e.object.name)&&e.property.name==="extend"}function r0({node:e,parent:t}){return bp(e,"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}function bp(e,t){return B(e,O.Block|O.Leading,({value:r})=>r===` ${t} `)}function n0(e){return bp(e.node,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}function i0({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var vp=Kh;var s0=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),sn=e=>{for(let t of e.quasis)delete t.value};function Bp(e,t,r){var i,s;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&t.value&&(t.value=t.value.toLowerCase()),(e.type==="BigIntLiteral"||e.type==="Literal")&&t.bigint&&(t.bigint=t.bigint.toLowerCase()),e.type==="DecimalLiteral"&&(t.value=Number(t.value)),e.type==="Literal"&&t.decimal&&(t.decimal=Number(t.decimal)),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&typeof e.key=="object"&&e.key&&(e.key.type==="Literal"||e.key.type==="NumericLiteral"||e.key.type==="StringLiteral"||e.key.type==="Identifier")&&delete t.key,e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(u=>u.name.name==="jsx"))for(let{type:u,expression:a}of t.children)u==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&sn(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&sn(t.value.expression),e.type==="JSXAttribute"&&((i=e.value)==null?void 0:i.type)==="Literal"&&/["']|&quot;|&apos;/.test(e.value.value)&&(t.value.value=I(!1,t.value.value,/["']|&quot;|&apos;/g,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let u=e.expression.arguments[0].properties;for(let[a,o]of t.expression.arguments[0].properties.entries())switch(u[a].key.name){case"styles":z(o.value)&&sn(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&sn(o.value);break}}if(e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&sn(t.quasi),e.type==="TemplateLiteral"&&((s=e.leadingComments)!=null&&s.some(a=>Fe(a)&&["GraphQL","HTML"].some(o=>a.value===` ${o} `))||r.type==="CallExpression"&&r.callee.name==="graphql"||!e.leadingComments)&&sn(t),(e.type==="TSIntersectionType"||e.type==="TSUnionType")&&e.types.length===1)return t.types[0];e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&([t.type,t.expression.type]=[t.expression.type,t.type])}Bp.ignoredProperties=s0;var kp=Bp;var dr=xr(Np(),1);function y0(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
45
+ `);return t===-1?e:e.slice(0,t)}var Mp=y0;function D0(e){let t=Mp(e);t&&(e=e.slice(t.length+1));let r=(0,dr.extract)(e),{pragmas:n,comments:i}=(0,dr.parseWithComments)(r);return{shebang:t,text:e,pragmas:n,comments:i}}function ys(e){let{shebang:t,text:r,pragmas:n,comments:i}=D0(e),s=(0,dr.strip)(r),u=(0,dr.print)({pragmas:{format:"",...n},comments:i.trimStart()});return(t?`${t}
57
46
  `:"")+u+(s.startsWith(`
58
47
  `)?`
59
48
  `:`
60
49
 
61
- `)+s}var bo={};fe(bo,{canAttachComment:()=>aE,getCommentChildNodes:()=>oE,handleComments:()=>Es,hasPrettierIgnore:()=>cE,isBlockComment:()=>Ee,isGap:()=>lE,printComment:()=>Yp,willPrintOwnComments:()=>Co});l();l();l();function ho(e,t){if(e.isRoot)return!1;let{node:r,key:n,parent:i}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&D0(r)&&Wn(e))return!0;if(m0(r))return!1;if(r.type==="Identifier")return!!(r.extra&&r.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.name)||n==="left"&&r.name==="async"&&i.type==="ForOfStatement"&&!i.await);switch(i.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"))return!0;break;case"ExportDefaultDeclaration":return Ip(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"){let s=!1,u=!1,a=r;for(;a;)switch(a.type){case"MemberExpression":u=!0,a=a.object;break;case"CallExpression":if(u||s)return t.parser!=="typescript";s=!0,a=a.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return t.parser!=="typescript";default:return!0}return!0}break;case"ExpressionStatement":if(rt(r,!0))return!0;break;case"ArrowFunctionExpression":if(n==="body"&&r.type!=="SequenceExpression"&&rt(r,!1))return!0;break}switch(r.type){case"UpdateExpression":if(i.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&i.operator==="+"||r.operator==="--"&&i.operator==="-");case"UnaryExpression":switch(i.type){case"UnaryExpression":return r.operator===i.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&i.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(i.type==="UpdateExpression"||r.operator==="in"&&y0(e))return!0;if(r.operator==="|>"&&r.extra&&r.extra.parenthesized){let s=e.grandparent;if(s.type==="BinaryExpression"&&s.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(i.type){case"TSAsExpression":return r.type!=="TSAsExpression";case"ConditionalExpression":return r.type==="TSAsExpression";case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||r.type==="TSAsExpression");case"LogicalExpression":if(r.type==="LogicalExpression")return i.operator!==r.operator;case"BinaryExpression":{let{operator:s,type:u}=r;if(!s&&u!=="TSTypeAssertion")return!0;let a=Rn(s),o=i.operator,c=Rn(o);return c>a||n==="right"&&c===a||c===a&&!$n(o,s)?!0:c<a&&s==="%"?o==="+"||o==="-":!!ap(o)}default:return!1}case"SequenceExpression":switch(i.type){case"ReturnStatement":return!1;case"ForStatement":return!1;case"ExpressionStatement":return n!=="expression";case"ArrowFunctionExpression":return n!=="body";default:return!0}case"YieldExpression":if(i.type==="UnaryExpression"||i.type==="AwaitExpression"||i.type==="TSAsExpression"||i.type==="TSNonNullExpression")return!0;case"AwaitExpression":switch(i.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"BinaryExpression":return!(!r.argument&&i.operator==="|>");default:return!1}case"TSConditionalType":if(n==="extendsType"&&i.type==="TSConditionalType")return!0;case"TSFunctionType":case"TSConstructorType":if(n==="extendsType"&&i.type==="TSConditionalType"){let s=(r.returnType||r.typeAnnotation).typeAnnotation;if(s.type==="TSInferType"&&s.typeParameter.constraint)return!0}if(n==="checkType"&&i.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((i.type==="TSUnionType"||i.type==="TSIntersectionType")&&i.types.length>1&&(!r.types||r.types.length>1))return!0;case"TSInferType":if(r.type==="TSInferType"&&i.type==="TSRestType")return!1;case"TSTypeOperator":return i.type==="TSArrayType"||i.type==="TSOptionalType"||i.type==="TSRestType"||n==="objectType"&&i.type==="TSIndexedAccessType"||i.type==="TSTypeOperator"||i.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"ArrayTypeAnnotation":return i.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return i.type==="ArrayTypeAnnotation"||i.type==="NullableTypeAnnotation"||i.type==="IntersectionTypeAnnotation"||i.type==="UnionTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType");case"NullableTypeAnnotation":return i.type==="ArrayTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{let s=i.type==="NullableTypeAnnotation"?e.grandparent:i;return s.type==="UnionTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="ArrayTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||s.type==="NullableTypeAnnotation"||i.type==="FunctionTypeParam"&&i.name===null&&ne(r).some(u=>u.typeAnnotation&&u.typeAnnotation.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return n==="objectType"&&i.type==="IndexedAccessType";case"TypeofTypeAnnotation":return n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType");case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&i.type==="ExpressionStatement"&&!i.directive){let s=e.grandparent;return s.type==="Program"||s.type==="BlockStatement"}return n==="object"&&i.type==="MemberExpression"&&typeof r.value=="number";case"AssignmentExpression":{let s=e.grandparent;return n==="body"&&i.type==="ArrowFunctionExpression"?!0:n==="key"&&(i.type==="ClassProperty"||i.type==="PropertyDefinition")&&i.computed||(n==="init"||n==="update")&&i.type==="ForStatement"?!1:i.type==="ExpressionStatement"?r.left.type==="ObjectPattern":!(n==="key"&&i.type==="TSPropertySignature"||i.type==="AssignmentExpression"||i.type==="SequenceExpression"&&s&&s.type==="ForStatement"&&(s.init===i||s.update===i)||n==="value"&&i.type==="Property"&&s&&s.type==="ObjectPattern"&&s.properties.includes(i)||i.type==="NGChainedExpression")}case"ConditionalExpression":switch(i.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(i.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(i.type){case"BinaryExpression":return i.operator!=="|>"||r.extra&&r.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":if(L(r.decorators))return!0;switch(i.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":{let s=e.grandparent;if(n==="object"&&i.type==="MemberExpression"||n==="callee"&&(i.type==="CallExpression"||i.type==="NewExpression")||i.type==="TSNonNullExpression"&&s.type==="MemberExpression"&&s.object===i)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(i.type==="BindExpression"||i.type==="NewExpression")){let s=r;for(;s;)switch(s.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":s=s.object;break;case"TaggedTemplateExpression":s=s.tag;break;case"TSNonNullExpression":s=s.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(i.type==="BindExpression"||i.type==="NewExpression")||n==="object"&&U(i);case"NGPipeExpression":return!(i.type==="NGRoot"||i.type==="NGMicrosyntaxExpression"||i.type==="ObjectProperty"&&!(r.extra&&r.extra.parenthesized)||i.type==="ArrayExpression"||n==="arguments"&&O(i)||n==="right"&&i.type==="NGPipeExpression"||n==="property"&&i.type==="MemberExpression"||i.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&i.type==="BinaryExpression"&&i.operator==="<"||i.type!=="ArrayExpression"&&i.type!=="ArrowFunctionExpression"&&i.type!=="AssignmentExpression"&&i.type!=="AssignmentPattern"&&i.type!=="BinaryExpression"&&i.type!=="NewExpression"&&i.type!=="ConditionalExpression"&&i.type!=="ExpressionStatement"&&i.type!=="JsExpressionRoot"&&i.type!=="JSXAttribute"&&i.type!=="JSXElement"&&i.type!=="JSXExpressionContainer"&&i.type!=="JSXFragment"&&i.type!=="LogicalExpression"&&!O(i)&&!we(i)&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&i.type!=="TypeCastExpression"&&i.type!=="VariableDeclarator"&&i.type!=="YieldExpression";case"TypeAnnotation":return n==="returnType"&&i.type==="ArrowFunctionExpression"&&d0(r)}return!1}function m0(e){return e.type==="BlockStatement"||e.type==="BreakStatement"||e.type==="ClassBody"||e.type==="ClassDeclaration"||e.type==="ClassMethod"||e.type==="ClassProperty"||e.type==="PropertyDefinition"||e.type==="ClassPrivateProperty"||e.type==="ContinueStatement"||e.type==="DebuggerStatement"||e.type==="DeclareClass"||e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"||e.type==="DeclareFunction"||e.type==="DeclareInterface"||e.type==="DeclareModule"||e.type==="DeclareModuleExports"||e.type==="DeclareVariable"||e.type==="DoWhileStatement"||e.type==="EnumDeclaration"||e.type==="ExportAllDeclaration"||e.type==="ExportDefaultDeclaration"||e.type==="ExportNamedDeclaration"||e.type==="ExpressionStatement"||e.type==="ForInStatement"||e.type==="ForOfStatement"||e.type==="ForStatement"||e.type==="FunctionDeclaration"||e.type==="IfStatement"||e.type==="ImportDeclaration"||e.type==="InterfaceDeclaration"||e.type==="LabeledStatement"||e.type==="MethodDefinition"||e.type==="ReturnStatement"||e.type==="SwitchStatement"||e.type==="ThrowStatement"||e.type==="TryStatement"||e.type==="TSDeclareFunction"||e.type==="TSEnumDeclaration"||e.type==="TSImportEqualsDeclaration"||e.type==="TSInterfaceDeclaration"||e.type==="TSModuleDeclaration"||e.type==="TSNamespaceExportDeclaration"||e.type==="TypeAlias"||e.type==="VariableDeclaration"||e.type==="WhileStatement"||e.type==="WithStatement"}function y0(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if(n&&n.type==="ForStatement"&&n.init===r)return!0;r=n}return!1}function d0(e){return vr(e,t=>t.type==="ObjectTypeAnnotation"&&vr(t,r=>r.type==="FunctionTypeAnnotation"||void 0)||void 0)}function D0(e){switch(e.type){case"ObjectExpression":return!0;default:return!1}}function Wn(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(Wn);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(Wn);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(Wn);break;case"UnaryExpression":if(t.prefix)return e.callParent(Wn);break}return!1}function Ip(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!ho(e,t):!en(r)||n.type!=="ExportDefaultDeclaration"&&ho(e,t)?!1:e.call(i=>Ip(i,t),...ns(e,r))}var pt=ho;var Eo=e=>e===""||e===S||e===D||e===C;function g0(e,t,r){let{node:n}=e;if(n.type==="JSXElement"&&w0(n))return[r("openingElement"),r("closingElement")];let i=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),s=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[i,...e.map(r,"children"),s];n.children=n.children.map(A=>I0(A)?{type:"JSXText",value:" ",raw:" "}:A);let u=n.children.some(re),a=n.children.filter(A=>A.type==="JSXExpressionContainer").length>1,o=n.type==="JSXElement"&&n.openingElement.attributes.length>1,c=ae(i)||u||o||a,p=e.parent.rootMarker==="mdx",f=t.singleQuote?"{' '}":'{" "}',m=p?" ":I([f,C]," "),d=n.openingElement&&n.openingElement.name&&n.openingElement.name.name==="fbt",y=h0(e,t,r,m,d),E=n.children.some(A=>Vn(A));for(let A=y.length-2;A>=0;A--){let F=y[A]===""&&y[A+1]==="",v=y[A]===D&&y[A+1]===""&&y[A+2]===D,M=(y[A]===C||y[A]===D)&&y[A+1]===""&&y[A+2]===m,W=y[A]===m&&y[A+1]===""&&(y[A+2]===C||y[A+2]===D),V=y[A]===m&&y[A+1]===""&&y[A+2]===m,z=y[A]===C&&y[A+1]===""&&y[A+2]===D||y[A]===D&&y[A+1]===""&&y[A+2]===C;v&&E||F||M||V||z?y.splice(A,2):W&&y.splice(A+1,2)}for(;y.length>0&&Eo(P(!1,y,-1));)y.pop();for(;y.length>1&&Eo(y[0])&&Eo(y[1]);)y.shift(),y.shift();let T=[];for(let[A,F]of y.entries()){if(F===m){if(A===1&&y[A-1]===""){if(y.length===2){T.push(f);continue}T.push([f,D]);continue}else if(A===y.length-1){T.push(f);continue}else if(y[A-1]===""&&y[A-2]===D){T.push(f);continue}}T.push(F),ae(F)&&(c=!0)}let b=E?ee(T):g(T,{shouldBreak:!0});if(p)return b;let k=g([i,x([D,b]),D,s]);return c?k:ke([g([i,...y,s]),k])}function h0(e,t,r,n,i){let s=[];return e.each((u,a,o)=>{let c=u.node;if(zt(c)){let p=de(c);if(Vn(c)){let f=p.split(hs);if(f[0]===""){if(s.push(""),f.shift(),/\n/.test(f[0])){let d=o[a+1];s.push(Lp(i,f[1],c,d))}else s.push(n);f.shift()}let m;if(P(!1,f,-1)===""&&(f.pop(),m=f.pop()),f.length===0)return;for(let[d,y]of f.entries())d%2===1?s.push(S):s.push(y);if(m!==void 0)if(/\n/.test(m)){let d=o[a+1];s.push(Lp(i,P(!1,s,-1),c,d))}else s.push(n);else{let d=o[a+1];s.push(_p(i,P(!1,s,-1),c,d))}}else/\n/.test(p)?p.match(/\n/g).length>1&&s.push("",D):s.push("",n)}else{let p=r();s.push(p);let f=o[a+1];if(f&&Vn(f)){let d=P0(de(f)).split(hs)[0];s.push(_p(i,d,c,f))}else s.push(D)}},"children"),s}function _p(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?t.length===1?C:D:C}function Lp(e,t,r,n){return e?D:t.length===1?r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?D:C:D}function E0(e,t,r){let{parent:n}=e;if(!n||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[n.type])return t;let s=e.match(void 0,a=>a.type==="ArrowFunctionExpression",O,a=>a.type==="JSXExpressionContainer"),u=pt(e,r);return g([u?"":I("("),x([C,t]),C,u?"":I(")")],{shouldBreak:s})}function C0(e,t,r){let{node:n}=e,i=[];if(i.push(r("name")),n.value){let s;if(Se(n.value)){let a=de(n.value).slice(1,-1).replace(/&apos;/g,"'").replace(/&quot;/g,'"'),{escaped:o,quote:c,regex:p}=xr(a,t.jsxSingleQuote?"'":'"');a=a.replace(p,o),s=[c,a,c]}else s=r("value");i.push("=",s)}return i}function x0(e,t,r){let{node:n}=e,i=(s,u)=>s.type==="JSXEmptyExpression"||!w(s)&&(s.type==="ArrayExpression"||s.type==="ObjectExpression"||s.type==="ArrowFunctionExpression"||s.type==="AwaitExpression"&&(i(s.argument,s)||s.argument.type==="JSXElement")||O(s)||s.type==="FunctionExpression"||s.type==="TemplateLiteral"||s.type==="TaggedTemplateExpression"||s.type==="DoExpression"||re(u)&&(s.type==="ConditionalExpression"||Pe(s)));return i(n.expression,e.parent)?g(["{",r("expression"),ot,"}"]):g(["{",x([C,r("expression")]),C,ot,"}"])}function S0(e,t,r){let{node:n}=e,i=n.name&&w(n.name)||n.typeParameters&&w(n.typeParameters);if(n.selfClosing&&n.attributes.length===0&&!i)return["<",r("name"),r("typeParameters")," />"];if(n.attributes&&n.attributes.length===1&&n.attributes[0].value&&Se(n.attributes[0].value)&&!n.attributes[0].value.value.includes(`
62
- `)&&!i&&!w(n.attributes[0]))return g(["<",r("name"),r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let s=n.attributes&&n.attributes.some(a=>a.value&&Se(a.value)&&a.value.value.includes(`
63
- `)),u=t.singleAttributePerLine&&n.attributes.length>1?D:S;return g(["<",r("name"),r("typeParameters"),x(e.map(()=>[u,r()],"attributes")),...A0(n,t,i)],{shouldBreak:s})}function A0(e,t,r){return e.selfClosing?[S,"/>"]:T0(e,t,r)?[">"]:[C,">"]}function T0(e,t,r){let n=e.attributes.length>0&&w(P(!1,e.attributes,-1),_.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function F0(e,t,r){let{node:n}=e,i=[];i.push("</");let s=r("name");return w(n.name,_.Leading|_.Line)?i.push(x([D,s]),D):w(n.name,_.Leading|_.Block)?i.push(" ",s):i.push(s),i.push(">"),i}function b0(e,t){let{node:r}=e,n=w(r),i=w(r,_.Line),s=r.type==="JSXOpeningFragment";return[s?"<":"</",x([i?D:n&&!s?" ":"",q(e,t,!0)]),i?D:"",">"]}function v0(e,t,r){let n=he(e,g0(e,t,r),t);return E0(e,n,t)}function B0(e,t){let{node:r}=e,n=w(r,_.Line);return[q(e,t,!n),n?D:""]}function Np(e,t,r){let{node:n}=e;return["{",e.call(i=>{let s=["...",r()],u=i.getValue();return!w(u)||!Co(i)?s:[x([C,he(i,s,t)]),C]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Op(e,t,r){let{node:n}=e;if(!!n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return C0(e,t,r);case"JSXIdentifier":return String(n.name);case"JSXNamespacedName":return B(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return B(".",[r("object"),r("property")]);case"JSXSpreadAttribute":return Np(e,t,r);case"JSXSpreadChild":return Np(e,t,r);case"JSXExpressionContainer":return x0(e,t,r);case"JSXFragment":case"JSXElement":return v0(e,t,r);case"JSXOpeningElement":return S0(e,t,r);case"JSXClosingElement":return F0(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return b0(e,t);case"JSXEmptyExpression":return B0(e,t);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");default:throw new me(n,"JSX")}}var Mp=`
64
- \r `,hs=new RegExp("(["+Mp+"]+)"),k0=new RegExp("[^"+Mp+"]"),P0=e=>e.replace(new RegExp("(?:^"+hs.source+"|"+hs.source+"$)"),"");function w0(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return zt(t)&&!Vn(t)}function Vn(e){return zt(e)&&(k0.test(de(e))||!/\n/.test(de(e)))}function I0(e){return e.type==="JSXExpressionContainer"&&zt(e.expression)&&e.expression.value===" "&&!w(e.expression)}function jp(e){let{node:t,parent:r}=e;if(!r||!t||!re(t)||!re(r))return!1;let{index:n}=e,i=null;for(let s=n;s>0;s--){let u=r.children[s-1];if(!(u.type==="JSXText"&&!Vn(u))){i=u;break}}return(i==null?void 0:i.type)==="JSXExpressionContainer"&&i.expression.type==="JSXEmptyExpression"&&rn(i.expression)}var Es={};fe(Es,{avoidAstMutation:()=>iE,endOfLine:()=>N0,ownLine:()=>L0,remaining:()=>O0});l();l();function _0(e){return Ee(e)&&e.value[0]==="*"&&/@type\b/.test(e.value)}var Rp=_0;function L0(e){return[Gp,Vp,j0,So,Ao,$p,qp,z0,K0,Fo,Hp,X0,Wp,Jp,To].some(t=>t(e))}function N0(e){return[M0,Vp,R0,Hp,So,Ao,$p,qp,Jp,U0,Y0,Fo,eE,To,nE].some(t=>t(e))}function O0(e){return[Gp,So,Ao,$0,G0,Wp,Fo,H0,J0,rE,To,tE].some(t=>t(e))}function Pr(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?Z(r,t):ce(e,t)}function xo(e,t){e.type==="BlockStatement"?Pr(e,t):Z(e,t)}function M0({comment:e,followingNode:t}){return t&&Rp(e)?(Z(t,e),!0):!1}function So({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if(gt(i,e,$)===")")return Y(t,e),!0;if(t===r.consequent&&n===r.alternate){if(t.type==="BlockStatement")Y(t,e);else{let u=e.type==="SingleLine"||e.loc.start.line===e.loc.end.line,a=e.loc.start.line===t.loc.start.line;u&&a?ce(t,e,ms):ce(r,e)}return!0}return n.type==="BlockStatement"?(Pr(n,e),!0):n.type==="IfStatement"?(xo(n.consequent,e),!0):r.consequent===n?(Z(n,e),!0):!1}function Ao({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){return(r==null?void 0:r.type)!=="WhileStatement"||!n?!1:gt(i,e,$)===")"?(Y(t,e),!0):n.type==="BlockStatement"?(Pr(n,e),!0):r.body===n?(Z(n,e),!0):!1}function $p({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TryStatement"&&(r==null?void 0:r.type)!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?(Y(t,e),!0):n.type==="BlockStatement"?(Pr(n,e),!0):n.type==="TryStatement"?(xo(n.finalizer,e),!0):n.type==="CatchClause"?(xo(n.body,e),!0):!1}function j0({comment:e,enclosingNode:t,followingNode:r}){return U(t)&&(r==null?void 0:r.type)==="Identifier"?(Z(t,e),!0):!1}function R0({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){let s=t&&!It(i,$(t),J(e));return(!t||!s)&&((r==null?void 0:r.type)==="ConditionalExpression"||(r==null?void 0:r.type)==="TSConditionalType")&&n?(Z(n,e),!0):!1}function $0({comment:e,precedingNode:t,enclosingNode:r}){return we(r)&&r.shorthand&&r.key===t&&r.value.type==="AssignmentPattern"?(Y(r.value.left,e),!0):!1}var q0=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function qp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(q0.has(r==null?void 0:r.type)){if(L(r.decorators)&&!(n&&n.type==="Decorator"))return Y(P(!1,r.decorators,-1),e),!0;if(r.body&&n===r.body)return Pr(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return Y(t,e),!0;for(let i of["implements","extends","mixins"])if(r[i]&&n===r[i][0])return t&&(t===r.id||t===r.typeParameters||t===r.superClass)?Y(t,e):ce(r,e,i),!0}}return!1}var W0=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition"]);function Wp({comment:e,precedingNode:t,enclosingNode:r,text:n}){return r&&t&&gt(n,e,$)==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&gt(n,t,$)!==":"?(Y(t,e),!0):(t==null?void 0:t.type)==="Decorator"&&W0.has(r==null?void 0:r.type)?(Y(t,e),!0):!1}var V0=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function J0({comment:e,precedingNode:t,enclosingNode:r,text:n}){return gt(n,e,$)!=="("?!1:t&&V0.has(r==null?void 0:r.type)?(Y(t,e),!0):!1}function H0({comment:e,enclosingNode:t,text:r}){if((t==null?void 0:t.type)!=="ArrowFunctionExpression")return!1;let n=Vt(r,e,$);return n!==!1&&r.slice(n,n+2)==="=>"?(ce(t,e),!0):!1}function G0({comment:e,enclosingNode:t,text:r}){return gt(r,e,$)!==")"?!1:t&&(Up(t)&&ne(t).length===0||pr(t)&&st(t).length===0)?(ce(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&ne(t.value).length===0?(ce(t.value,e),!0):!1}function Vp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){if((t==null?void 0:t.type)==="FunctionTypeParam"&&(r==null?void 0:r.type)==="FunctionTypeAnnotation"&&(n==null?void 0:n.type)!=="FunctionTypeParam")return Y(t,e),!0;if(((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern")&&r&&Up(r)&&gt(i,e,$)===")")return Y(t,e),!0;if((r==null?void 0:r.type)==="FunctionDeclaration"&&(n==null?void 0:n.type)==="BlockStatement"){let s=(()=>{let u=ne(r);if(u.length>0)return Kr(i,$(P(!1,u,-1)));let a=Kr(i,$(r.id));return a!==!1&&Kr(i,a+1)})();if(J(e)>s)return Pr(n,e),!0}return!1}function Jp({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(Z(t,e),!0):!1}function To({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(Y(t,e),!0):!1}function U0({comment:e,precedingNode:t,enclosingNode:r}){return O(r)&&t&&r.callee===t&&r.arguments.length>0?(Z(r.arguments[0],e),!0):!1}function K0({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)==="UnionTypeAnnotation"||(r==null?void 0:r.type)==="TSUnionType"?(qn(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(Y(t,e),!0):!1):(((n==null?void 0:n.type)==="UnionTypeAnnotation"||(n==null?void 0:n.type)==="TSUnionType")&&qn(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function Y0({comment:e,enclosingNode:t}){return we(t)?(Z(t,e),!0):!1}function Fo({comment:e,enclosingNode:t,followingNode:r,ast:n,isLastComment:i}){return n&&n.body&&n.body.length===0?(i?ce(n,e):Z(n,e),!0):(t==null?void 0:t.type)==="Program"&&(t==null?void 0:t.body.length)===0&&!L(t.directives)?(i?ce(t,e):Z(t,e),!0):(r==null?void 0:r.type)==="Program"&&(r==null?void 0:r.body.length)===0&&(t==null?void 0:t.type)==="ModuleExpression"?(ce(r,e),!0):!1}function z0({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement"?(Z(t,e),!0):!1}function Hp({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return Z(r,e),!0;let i=(t==null?void 0:t.type)==="ImportSpecifier"&&(r==null?void 0:r.type)==="ImportDeclaration",s=(t==null?void 0:t.type)==="ExportSpecifier"&&(r==null?void 0:r.type)==="ExportNamedDeclaration";return(i||s)&&Q(n,$(e))?(Y(t,e),!0):!1}function X0({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(Z(t,e),!0):!1}var Q0=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),Z0=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function eE({comment:e,enclosingNode:t,followingNode:r}){return Q0.has(t==null?void 0:t.type)&&r&&(Z0.has(r.type)||Ee(e))?(Z(r,e),!0):!1}function tE({comment:e,enclosingNode:t,followingNode:r,text:n}){return!r&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&gt(n,e,$)===";"?(Y(t,e),!0):!1}function Gp({comment:e,enclosingNode:t,followingNode:r}){if(qn(e)&&(t==null?void 0:t.type)==="TSMappedType"&&(r==null?void 0:r.type)==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function rE({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TSMappedType"?!1:(n==null?void 0:n.type)==="TSTypeParameter"&&n.name?(Z(n.name,e),!0):(t==null?void 0:t.type)==="TSTypeParameter"&&t.constraint?(Y(t.constraint,e),!0):!1}function nE({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test?!1:(r.type==="BlockStatement"&&Yt(e)?Pr(r,e):ce(t,e),!0)}function Up(e){return e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression"||e.type==="FunctionDeclaration"||e.type==="ObjectMethod"||e.type==="ClassMethod"||e.type==="TSDeclareFunction"||e.type==="TSCallSignatureDeclaration"||e.type==="TSConstructSignatureDeclaration"||e.type==="TSMethodSignature"||e.type==="TSConstructorType"||e.type==="TSFunctionType"||e.type==="TSDeclareMethod"}var iE=!0;l();l();function sE(e){let t=`*${e.value}*`.split(`
65
- `);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Kp=sE;function Yp(e,t){let r=e.node;if(Yt(r))return t.originalText.slice(J(r),$(r)).trimEnd();if(Ee(r))return Kp(r)?uE(r):["/*",j(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function uE(e){let t=e.value.split(`
66
- `);return["/*",B(D,t.map((r,n)=>n===0?r.trimEnd():" "+(n<t.length-1?r.trim():r.trimStart()))),"*/"]}function aE(e){return e.type&&!Ee(e)&&!Yt(e)&&e.type!=="EmptyStatement"&&e.type!=="TemplateElement"&&e.type!=="Import"&&e.type!=="TSEmptyBodyFunctionExpression"}function oE(e,t){if((t.parser==="typescript"||t.parser==="flow"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree")&&e.type==="MethodDefinition"&&e.value&&e.value.type==="FunctionExpression"&&ne(e.value).length===0&&!e.value.returnType&&!L(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function cE(e){return rn(e.node)||jp(e)}function Co({node:e,parent:t}){return(e&&re(e)||t&&(t.type==="JSXSpreadAttribute"||t.type==="JSXSpreadChild"||t.type==="UnionTypeAnnotation"||t.type==="TSUnionType"||(t.type==="ClassDeclaration"||t.type==="ClassExpression")&&t.superClass===e))&&(!rn(e)||t.type==="UnionTypeAnnotation"||t.type==="TSUnionType")}function lE(e,{parser:t}){if(t==="flow"||t==="babel-flow")return e=e.replace(/[\s(]/g,""),e===""||e==="/*"||e==="/*::"}l();function pE(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":case"__vue_ts_expression":return{...e,type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker};default:return e}}var Cs=pE;l();function zp(e,t,r){var s;let{node:n,isRoot:i}=e;if(i&&((s=t.__onHtmlBindingRoot)==null||s.call(t,n,t)),n.type==="File"&&(t.__isVueBindings||t.__isVueForBindingLeft)){let u=e.map(r,"program","body",0,"params");if(u.length===1)return u[0];let a=B([",",S],u);return t.__isVueForBindingLeft?["(",x([C,g(a)]),C,")"]:a}}function vo(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return vo(e.object)}return!1;case"Identifier":return!0;default:return!1}}l();l();var fE=0;function xs(e,t,r){let{node:n}=e,{parent:i}=e,s=e.grandparent,u=n!==i.body&&(i.type==="IfStatement"||i.type==="WhileStatement"||i.type==="SwitchStatement"||i.type==="DoWhileStatement"),a=yo(t)&&n.operator==="|>",o=Bo(e,r,t,!1,u);if(u)return o;if(a)return g(o);if(O(i)&&i.callee===n||i.type==="UnaryExpression"||U(i)&&!i.computed)return g([x([C,...o]),C]);let c=i.type==="ReturnStatement"||i.type==="ThrowStatement"||i.type==="JSXExpressionContainer"&&s.type==="JSXAttribute"||n.operator!=="|"&&i.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(i.type==="NGRoot"&&t.parser==="__ng_binding"||i.type==="NGMicrosyntaxExpression"&&s.type==="NGMicrosyntax"&&s.body.length===1)||n===i.body&&i.type==="ArrowFunctionExpression"||n!==i.body&&i.type==="ForStatement"||i.type==="ConditionalExpression"&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&!O(s)||i.type==="TemplateLiteral",p=i.type==="AssignmentExpression"||i.type==="VariableDeclarator"||i.type==="ClassProperty"||i.type==="PropertyDefinition"||i.type==="TSAbstractPropertyDefinition"||i.type==="ClassPrivateProperty"||we(i),f=Pe(n.left)&&$n(n.operator,n.left.operator);if(c||un(n)&&!f||!un(n)&&p)return g(o);if(o.length===0)return"";let m=re(n.right),d=o.findIndex(A=>typeof A!="string"&&!Array.isArray(A)&&A.type===oe),y=o.slice(0,d===-1?1:d+1),E=o.slice(y.length,m?-1:void 0),T=Symbol("logicalChain-"+ ++fE),b=g([...y,x(E)],{id:T});if(!m)return b;let k=P(!1,o,-1);return g([b,qt(k,{groupId:T})])}function Bo(e,t,r,n,i){let{node:s}=e;if(!Pe(s))return[g(t())];let u=[];$n(s.operator,s.left.operator)?u=e.call(E=>Bo(E,t,r,!0,i),"left"):u.push(g(t("left")));let a=un(s),o=(s.operator==="|>"||s.type==="NGPipeExpression"||s.operator==="|"&&r.parser==="__vue_expression")&&!ht(r.originalText,s.right),c=s.type==="NGPipeExpression"?"|":s.operator,p=s.type==="NGPipeExpression"&&s.arguments.length>0?g(x([S,": ",B([S,": "],e.map(t,"arguments").map(E=>X(2,g(E))))])):"",f;if(a)f=[c," ",t("right"),p];else{let T=yo(r)&&c==="|>"?e.call(b=>Bo(b,t,r,!0,i),"right"):t("right");f=[o?S:"",c,o?" ":S,T,p]}let{parent:m}=e,d=w(s.left,_.Trailing|_.Line),y=d||!(i&&s.type==="LogicalExpression")&&m.type!==s.type&&s.left.type!==s.type&&s.right.type!==s.type;if(u.push(o?"":" ",y?g(f,{shouldBreak:d}):f),n&&w(s)){let E=kt(he(e,u,r));return Array.isArray(E)||E.type===ye?gr(E):[E]}return u}function un(e){return e.type!=="LogicalExpression"?!1:!!(e.right.type==="ObjectExpression"&&e.right.properties.length>0||e.right.type==="ArrayExpression"&&e.right.elements.length>0||re(e.right))}function Qp(e,t,r){let{node:n}=e;if(!!n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),w(n.node)?" //"+Et(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return xs(e,t,r);case"NGChainedExpression":return g(B([";",S],e.map(()=>mE(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":Xp(e)?" ":[";",S],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:i,parent:s}=e,u=Xp(e)||(i===1&&(n.key.name==="then"||n.key.name==="else")||i===2&&n.key.name==="else"&&s.body[i-1].type==="NGMicrosyntaxKeyedExpression"&&s.body[i-1].key.name==="then")&&s.body[0].type==="NGMicrosyntaxExpression";return[r("key"),u?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new me(n,"Angular")}}function Xp({node:e,index:t,parent:r}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1&&r.body[0].type==="NGMicrosyntaxLet"&&r.body[0].value===null}function mE(e){return vr(e.node,t=>{switch(t.type){case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}l();l();l();l();l();l();l();l();l();l();function ie(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression"&&t.computed?"?.":"?"}function Ss(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}function Ct(e,t,r){let n=e.node;return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function ut(e,t,r){let{node:n}=e;if(!n.typeAnnotation)return"";let i=e.parent;return[i.type==="DeclareFunction"&&i.id===n?"":": ",r("typeAnnotation")]}function As(e,t,r){return["::",r("callee")]}function Jn(e,t,r){let{node:n}=e;return L(n.modifiers)?[B(" ",e.map(r,"modifiers"))," "]:""}function Xt(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?[" ",t]:x([S,t])}function Ts(e,t,r){return["...",r("argument"),ut(e,t,r)]}function ko(e,t,r,n){let{node:i}=e;return w(i,_.Dangling)?g([t,q(e,n),C,r]):[t,r]}function Zp(e,t,r){let{node:n}=e,i=[],s=n.type==="TupleExpression"?"#[":"[",u="]";if(n.elements.length===0)i.push(ko(e,s,u,t));else{let a=P(!1,n.elements,-1),o=!(a&&a.type==="RestElement"),c=a===null,p=Symbol("array"),f=!t.__inJestEach&&n.elements.length>1&&n.elements.every((y,E,T)=>{let b=y&&y.type;if(b!=="ArrayExpression"&&b!=="ObjectExpression")return!1;let k=T[E+1];if(k&&b!==k.type)return!1;let A=b==="ArrayExpression"?"elements":"properties";return y[A]&&y[A].length>1}),m=Po(n,t),d=o?c?",":le(t)?m?I(",","",{groupId:p}):I(","):"":"";i.push(g([s,x([C,m?yE(e,t,r,d):[wr(e,t,"elements",r),d],q(e,t,!0)]),C,u],{shouldBreak:f,id:p}))}return i.push(ie(e),ut(e,t,r)),i}function Po(e,t){return e.elements.length>1&&e.elements.every(r=>r&&(it(r)||ss(r)&&!w(r.argument))&&!w(r,_.Trailing|_.Line,n=>!Q(t.originalText,J(n),{backwards:!0})))}function wr(e,t,r,n){let i=[],s=[];return e.each(u=>{i.push(s,g(n())),s=[",",S],u.node&&Ce(u.node,t)&&s.push(C)},r),i}function yE(e,t,r,n){let i=[];return e.each((s,u,a)=>{let o=u===a.length-1;i.push([r(),o?n:","]),o||i.push(Ce(s.node,t)?[D,D]:w(a[u+1],_.Leading|_.Line)?D:S)},"elements"),ee(i)}function dE(e,t,r){let{node:n}=e,i=st(n);if(i.length===0)return["(",q(e,t,!0),")"];if(hE(i))return["(",r(["arguments",0]),", ",r(["arguments",1]),")"];let s=!1,u=i.length-1,a=[];fs(e,({node:m},d)=>{let y=r();d===u||(Ce(m,t)?(s=!0,y=[y,",",D,D]):y=[y,",",S]),a.push(y)});let c=!(n.type==="ImportExpression"||n.callee.type==="Import")&&le(t,"all")?",":"";function p(){return g(["(",x([S,...a]),c,S,")"],{shouldBreak:!0})}if(s||e.parent.type!=="Decorator"&&ip(i))return p();if(gE(i)){let m=a.slice(1);if(m.some(ae))return p();let d;try{d=r(mo(n,0),{expandFirstArg:!0})}catch(y){if(y instanceof Jt)return p();throw y}return ae(d)?[K,ke([["(",g(d,{shouldBreak:!0}),", ",...m,")"],p()])]:ke([["(",d,", ",...m,")"],["(",g(d,{shouldBreak:!0}),", ",...m,")"],p()])}if(DE(i,a,t)){let m=a.slice(0,-1);if(m.some(ae))return p();let d;try{d=r(mo(n,-1),{expandLastArg:!0})}catch(y){if(y instanceof Jt)return p();throw y}return ae(d)?[K,ke([["(",...m,g(d,{shouldBreak:!0}),")"],p()])]:ke([["(",...m,d,")"],["(",...m,g(d,{shouldBreak:!0}),")"],p()])}let f=["(",x([C,...a]),I(c),C,")"];return ps(e)?f:g(f,{shouldBreak:a.some(ae)||s})}function Hn(e,t=!1){return e.type==="ObjectExpression"&&(e.properties.length>0||w(e))||e.type==="ArrayExpression"&&(e.elements.length>0||w(e))||e.type==="TSTypeAssertion"&&Hn(e.expression)||e.type==="TSAsExpression"&&Hn(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||EE(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&Hn(e.body,!0)||e.body.type==="ObjectExpression"||e.body.type==="ArrayExpression"||!t&&(O(e.body)||e.body.type==="ConditionalExpression")||re(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function DE(e,t,r){var s,u;let n=P(!1,e,-1);if(e.length===1){let a=P(!1,t,-1);if(((s=a.label)==null?void 0:s.embed)&&((u=a.label)==null?void 0:u.hug)!==!1)return!0}let i=P(!1,e,-2);return!w(n,_.Leading)&&!w(n,_.Trailing)&&Hn(n)&&(!i||i.type!==n.type)&&(e.length!==2||i.type!=="ArrowFunctionExpression"||n.type!=="ArrayExpression")&&!(e.length>1&&n.type==="ArrayExpression"&&Po(n,r))}function gE(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&CE(r)?!0:!w(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&ef(r)&&!Hn(r)}function ef(e){var t;if(e.type==="ParenthesizedExpression")return ef(e.expression);if(e.type==="TSAsExpression"){let{typeAnnotation:r}=e;return r.type==="TSArrayType"&&(r=r.elementType,r.type==="TSArrayType"&&(r=r.elementType)),(r.type==="GenericTypeAnnotation"||r.type==="TSTypeReference")&&((t=r.typeParameters)==null?void 0:t.params.length)===1&&(r=r.typeParameters.params[0]),tn(r)&&nt(e.expression,1)}return pr(e)&&st(e).length>1?!1:Pe(e)?nt(e.left,1)&&nt(e.right,1):oo(e)||nt(e)}function hE(e){return e.length===2&&e[0].type==="ArrowFunctionExpression"&&ne(e[0]).length===0&&e[0].body.type==="BlockStatement"&&e[1].type==="ArrayExpression"&&!e.some(t=>w(t))}function EE(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||w(e,_.Dangling))}function CE(e){return e.type==="ObjectExpression"&&e.properties.length===1&&we(e.properties[0])&&e.properties[0].key.type==="Identifier"&&e.properties[0].key.name==="type"&&Se(e.properties[0].value)&&e.properties[0].value.value==="module"}var Gn=dE;l();function tf(e,t,r){var p;let{node:n}=e,{parent:i}=e,s,u=0;do s=e.getParentNode(u),u++;while(s&&(U(s)||s.type==="TSNonNullExpression"));let a=r("object"),o=wo(e,t,r),c=s&&(s.type==="NewExpression"||s.type==="BindExpression"||s.type==="AssignmentExpression"&&s.left.type!=="Identifier")||n.computed||n.object.type==="Identifier"&&n.property.type==="Identifier"&&!U(i)||(i.type==="AssignmentExpression"||i.type==="VariableDeclarator")&&(O(n.object)&&n.object.arguments.length>0||n.object.type==="TSNonNullExpression"&&O(n.object.expression)&&n.object.expression.arguments.length>0||((p=a.label)==null?void 0:p.memberChain));return Xe(a.label,[a,c?o:g(x([C,o]))])}function wo(e,t,r){let n=r("property"),{node:i}=e,s=ie(e);return i.computed?!i.property||it(i.property)?[s,"[",n,"]"]:g([s,"[",x([C,n]),C,"]"]):[s,".",n]}function xE(e,t,r){let{parent:n}=e,i=!n||n.type==="ExpressionStatement",s=[];function u(N){let{originalText:G}=t,te=Vt(G,N,$);return G.charAt(te)===")"?te!==!1&&Er(G,te+1):Ce(N,t)}function a(N){let{node:G}=N;O(G)&&(lr(G.callee)||O(G.callee))?(s.unshift({node:G,printed:[he(N,[ie(N),Ct(N,t,r),Gn(N,t,r)],t),u(G)?D:""]}),N.call(te=>a(te),"callee")):lr(G)?(s.unshift({node:G,needsParens:pt(N,t),printed:he(N,U(G)?wo(N,t,r):As(N,t,r),t)}),N.call(te=>a(te),"object")):G.type==="TSNonNullExpression"?(s.unshift({node:G,printed:he(N,"!",t)}),N.call(te=>a(te),"expression")):s.unshift({node:G,printed:r()})}let{node:o}=e;s.unshift({node:o,printed:[ie(e),Ct(e,t,r),Gn(e,t,r)]}),o.callee&&e.call(N=>a(N),"callee");let c=[],p=[s[0]],f=1;for(;f<s.length&&(s[f].node.type==="TSNonNullExpression"||O(s[f].node)||U(s[f].node)&&s[f].node.computed&&it(s[f].node.property));++f)p.push(s[f]);if(!O(s[0].node))for(;f+1<s.length&&(lr(s[f].node)&&lr(s[f+1].node));++f)p.push(s[f]);c.push(p),p=[];let m=!1;for(;f<s.length;++f){if(m&&lr(s[f].node)){if(s[f].node.computed&&it(s[f].node.property)){p.push(s[f]);continue}c.push(p),p=[],m=!1}(O(s[f].node)||s[f].node.type==="ImportExpression")&&(m=!0),p.push(s[f]),w(s[f].node,_.Trailing)&&(c.push(p),p=[],m=!1)}p.length>0&&c.push(p);function d(N){return/^[A-Z]|^[$_]+$/.test(N)}function y(N){return N.length<=t.tabWidth}function E(N){let G=N[1].length>0&&N[1][0].node.computed;if(N[0].length===1){let Ae=N[0][0].node;return Ae.type==="ThisExpression"||Ae.type==="Identifier"&&(d(Ae.name)||i&&y(Ae.name)||G)}let te=P(!1,N[0],-1).node;return U(te)&&te.property.type==="Identifier"&&(d(te.property.name)||G)}let T=c.length>=2&&!w(c[1][0].node)&&E(c);function b(N){let G=N.map(te=>te.printed);return N.length>0&&P(!1,N,-1).needsParens?["(",...G,")"]:G}function k(N){return N.length===0?"":x(g([D,B(D,N.map(b))]))}let A=c.map(b),F=A,v=T?3:2,M=c.flat(),W=M.slice(1,-1).some(N=>w(N.node,_.Leading))||M.slice(0,-1).some(N=>w(N.node,_.Trailing))||c[v]&&w(c[v][0].node,_.Leading);if(c.length<=v&&!W)return ps(e)?F:g(F);let V=P(!1,c[T?1:0],-1).node,z=!O(V)&&u(V),R=[b(c[0]),T?c.slice(1,2).map(b):"",z?D:"",k(c.slice(T?2:1))],se=s.map(({node:N})=>N).filter(O);function pe(){let N=P(!1,P(!1,c,-1),-1).node,G=P(!1,A,-1);return O(N)&&ae(G)&&se.slice(0,-1).some(te=>te.arguments.some(Zr))}let Ye;return W||se.length>2&&se.some(N=>!N.arguments.every(G=>nt(G)))||A.slice(0,-1).some(ae)||pe()?Ye=g(R):Ye=[ae(F)||z?K:"",ke([F,R])],Xe({memberChain:!0},Ye)}var rf=xE;function Fs(e,t,r){var f;let{node:n,parent:i}=e,s=n.type==="NewExpression",u=n.type==="ImportExpression",a=ie(e),o=st(n),c=o.length===1&&cs(o[0],t.originalText);if(c||o.length>0&&!s&&!u&&(SE(n,i)||Br(n,i))){let m=[];if(fs(e,()=>{m.push(r())}),!(c&&((f=m[0].label)==null?void 0:f.embed)))return[s?"new ":"",r("callee"),a,Ct(e,t,r),"(",B(", ",m),")"]}if(!u&&!s&&lr(n.callee)&&!e.call(m=>pt(m,t),"callee"))return rf(e,t,r);let p=[s?"new ":"",u?"import":r("callee"),a,Ct(e,t,r),Gn(e,t,r)];return u||O(n.callee)?g(p):p}function SE(e,t){if(e.callee.type!=="Identifier")return!1;if(e.callee.name==="require")return!0;if(e.callee.name==="define"){let r=st(e);return t.type==="ExpressionStatement"&&(r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&Se(r[0])&&r[1].type==="ArrayExpression")}return!1}function mr(e,t,r,n,i,s){let u=AE(e,t,r,n,s),a=s?r(s,{assignmentLayout:u}):"";switch(u){case"break-after-operator":return g([g(n),i,g(x([S,a]))]);case"never-break-after-operator":return g([g(n),i," ",a]);case"fluid":{let o=Symbol("assignment");return g([g(n),i,g(x(S),{id:o}),ot,qt(a,{groupId:o})])}case"break-lhs":return g([n,i," ",g(a)]);case"chain":return[g(n),i,S,a];case"chain-tail":return[g(n),i,x([S,a])];case"chain-tail-arrow-chain":return[g(n),i,a];case"only-left":return n}}function sf(e,t,r){let{node:n}=e;return mr(e,t,r,r("left"),[" ",n.operator],"right")}function uf(e,t,r){return mr(e,t,r,r("id")," =","init")}function AE(e,t,r,n,i){let{node:s}=e,u=s[i];if(!u)return"only-left";let a=!bs(u);if(e.match(bs,af,f=>!a||f.type!=="ExpressionStatement"&&f.type!=="VariableDeclaration"))return a?u.type==="ArrowFunctionExpression"&&u.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&bs(u.right)||ht(t.originalText,u))return"break-after-operator";if(u.type==="CallExpression"&&u.callee.name==="require"||t.parser==="json5"||t.parser==="json")return"never-break-after-operator";if(FE(s)||bE(s)||kE(s)||Io(s)&&Ku(n))return"break-lhs";let p=_E(s,n,t);return e.call(()=>TE(e,t,r,p),i)?"break-after-operator":p||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="BooleanLiteral"||it(u)||u.type==="ClassExpression"?"never-break-after-operator":"fluid"}function TE(e,t,r,n){let i=e.node;if(Pe(i)&&!un(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:a}=i;return Pe(a)&&!un(a)}case"ClassExpression":return L(i.decorators)}if(n)return!1;let s=i,u=[];for(;;)if(s.type==="UnaryExpression")s=s.argument,u.push("argument");else if(s.type==="TSNonNullExpression")s=s.expression,u.push("expression");else break;return!!(Se(s)||e.call(()=>of(e,t,r),...u))}function FE(e){if(af(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>we(r)&&(!r.shorthand||r.value&&r.value.type==="AssignmentPattern"))}return!1}function bs(e){return e.type==="AssignmentExpression"}function af(e){return bs(e)||e.type==="VariableDeclarator"}function bE(e){let t=vE(e);if(L(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}function vE(e){return BE(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function BE(e){return e.type==="TSTypeAliasDeclaration"||e.type==="TypeAlias"}function kE(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=nf(t.typeAnnotation);return L(r)&&r.length>1&&r.some(n=>L(nf(n))||n.type==="TSConditionalType")}function Io(e){return e.type==="VariableDeclarator"&&e.init&&e.init.type==="ArrowFunctionExpression"}function nf(e){return PE(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function PE(e){return e.type==="TSTypeReference"||e.type==="GenericTypeAnnotation"}function of(e,t,r,n=!1){var u;let{node:i}=e,s=()=>of(e,t,r,!0);if(i.type==="TSNonNullExpression")return e.call(s,"expression");if(O(i)){if((u=Fs(e,t,r).label)!=null&&u.memberChain)return!1;let o=st(i);return!(o.length===0||o.length===1&&IE(o[0],t))||LE(i,r)?!1:e.call(s,"callee")}return U(i)?e.call(s,"object"):n&&(i.type==="Identifier"||i.type==="ThisExpression")}var wE=.25;function IE(e,{printWidth:t}){if(w(e))return!1;let r=t*wE;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=r||ss(e)&&!w(e.argument))return!0;let n=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return n?n.length<=r:Se(e)?de(e).length<=r:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(`
67
- `):zt(e)}function _E(e,t,r){if(!we(e))return!1;t=kt(t);let n=3;return typeof t=="string"&&ve(t)<r.tabWidth+n}function LE(e,t){let r=NE(e);if(L(r)){if(r.length>1)return!0;if(r.length===1){let i=r[0];if(i.type==="TSUnionType"||i.type==="UnionTypeAnnotation"||i.type==="TSIntersectionType"||i.type==="IntersectionTypeAnnotation"||i.type==="TSTypeLiteral"||i.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(ae(t(n)))return!0}return!1}function NE(e){return e.typeParameters&&e.typeParameters.params||e.typeArguments&&e.typeArguments.params}l();function Qt(e,t,r,n,i){let s=e.node,u=ne(s),a=i?Ct(e,r,t):"";if(u.length===0)return[a,"(",q(e,r,!0,y=>gt(r.originalText,y,$)===")"),")"];let{parent:o}=e,c=Br(o),p=_o(s),f=[];if(cp(e,(y,E)=>{let T=E===u.length-1;T&&s.rest&&f.push("..."),f.push(t()),!T&&(f.push(","),c||p?f.push(" "):Ce(u[E],r)?f.push(D,D):f.push(S))}),n&&!ME(e)){if(ae(a)||ae(f))throw new Jt;return g([ir(a),"(",ir(f),")"])}let m=u.every(y=>!y.decorators);return p&&m?[a,"(",...f,")"]:c?[a,"(",...f,")"]:(as(o)||rp(o)||o.type==="TypeAlias"||o.type==="UnionTypeAnnotation"||o.type==="TSUnionType"||o.type==="IntersectionTypeAnnotation"||o.type==="FunctionTypeAnnotation"&&o.returnType===s)&&u.length===1&&u[0].name===null&&s.this!==u[0]&&u[0].typeAnnotation&&s.typeParameters===null&&tn(u[0].typeAnnotation)&&!s.rest?r.arrowParens==="always"?["(",...f,")"]:f:[a,"(",x([C,...f]),I(!op(s)&&le(r,"all")?",":""),C,")"]}function _o(e){if(!e)return!1;let t=ne(e);if(t.length!==1)return!1;let[r]=t;return!w(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&Ue(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&Ue(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||r.right.type==="ObjectExpression"&&r.right.properties.length===0||r.right.type==="ArrayExpression"&&r.right.elements.length===0))}function OE(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function Ir(e,t){let r=OE(e);if(!r)return!1;let n=e.typeParameters&&e.typeParameters.params;if(n){if(n.length>1)return!1;if(n.length===1){let i=n[0];if(i.constraint||i.default)return!1}}return ne(e).length===1&&(Ue(r)||ae(t))}function ME(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function Lo(e){if(tn(e)||Ue(e))return!0;if(e.type==="UnionTypeAnnotation"||e.type==="TSUnionType"){let t=e.types.filter(n=>n.type==="VoidTypeAnnotation"||n.type==="TSVoidKeyword"||n.type==="NullLiteralTypeAnnotation"||n.type==="TSNullKeyword").length,r=e.types.some(n=>n.type==="ObjectTypeAnnotation"||n.type==="TSTypeLiteral"||n.type==="GenericTypeAnnotation"||n.type==="TSTypeReference");if(e.types.length-1===t&&r)return!0}return!1}function No(e,t,r){let n=t.semi?";":"",{node:i}=e,s=[];return s.push("opaque type ",r("id"),r("typeParameters")),i.supertype&&s.push(": ",r("supertype")),i.impltype&&s.push(" = ",r("impltype")),s.push(n),s}function Un(e,t,r){let n=t.semi?";":"",{node:i}=e,s=[];i.declare&&s.push("declare "),s.push("type ",r("id"),r("typeParameters"));let u=i.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[mr(e,t,r,s," =",u),n]}function vs(e,t,r){let{node:n}=e,i=e.map(r,"types"),s=[],u=!1;for(let a=0;a<i.length;++a)a===0?s.push(i[a]):Ue(n.types[a-1])&&Ue(n.types[a])?s.push([" & ",u?x(i[a]):i[a]]):!Ue(n.types[a-1])&&!Ue(n.types[a])?s.push(x([" &",S,i[a]])):(a>1&&(u=!0),s.push(" & ",a>1?x(i[a]):i[a]));return g(s)}function Bs(e,t,r){let{node:n}=e,{parent:i}=e,s=i.type!=="TypeParameterInstantiation"&&i.type!=="TSTypeParameterInstantiation"&&i.type!=="GenericTypeAnnotation"&&i.type!=="TSTypeReference"&&i.type!=="TSTypeAssertion"&&i.type!=="TupleTypeAnnotation"&&i.type!=="TSTupleType"&&!(i.type==="FunctionTypeParam"&&!i.name&&e.grandparent.this!==i)&&!((i.type==="TypeAlias"||i.type==="VariableDeclarator"||i.type==="TSTypeAliasDeclaration")&&ht(t.originalText,n)),u=Lo(n),a=e.map(p=>{let f=r();return u||(f=X(2,f)),he(p,f,t)},"types");if(u)return B(" | ",a);let o=s&&!ht(t.originalText,n),c=[I([o?S:"","| "]),B([S,"| "],a)];return pt(e,t)?g([x(c),C]):i.type==="TupleTypeAnnotation"&&i.types.length>1||i.type==="TSTupleType"&&i.elementTypes.length>1?g([x([I(["(",C]),c]),C,I(")")]):g(s?x(c):c)}function ks(e,t,r){let{node:n}=e,i=[],{parent:s}=e,u=e.grandparent,a=e.getParentNode(2),o=n.type==="TSFunctionType"||!((s.type==="ObjectTypeProperty"||s.type==="ObjectTypeInternalSlot")&&!s.variance&&!s.optional&&J(s)===J(n)||s.type==="ObjectTypeCallProperty"||a&&a.type==="DeclareFunction"),c=o&&(s.type==="TypeAnnotation"||s.type==="TSTypeAnnotation"),p=c&&o&&(s.type==="TypeAnnotation"||s.type==="TSTypeAnnotation")&&u.type==="ArrowFunctionExpression";as(s)&&(o=!0,c=!0),p&&i.push("(");let f=Qt(e,r,t,!1,!0),m=n.returnType||n.predicate||n.typeAnnotation?[o?" => ":": ",n.returnType?r("returnType"):"",n.predicate?r("predicate"):"",n.typeAnnotation?r("typeAnnotation"):""]:"",d=Ir(n,m);return i.push(d?g(f):f),m&&i.push(m),p&&i.push(")"),g(i)}function Ps(e,t,r){let{node:n}=e,i=n.type==="TSTupleType"?"elementTypes":"types",u=n[i].length===0,a="[",o="]";return u?ko(e,a,o,t):g([a,x([C,wr(e,t,i,r)]),I(le(t,"all")?",":""),C,o])}function ws(e,t,r){let{node:n}=e,i=n.type==="OptionalIndexedAccessType"&&n.optional?"?.[":"[";return[r("objectType"),i,r("indexType"),"]"]}function Oo(e,t,r){let{node:n}=e;return[n.postfix?"":r,t("typeAnnotation"),n.postfix?r:""]}var Kn=ji("typeParameters");function _r(e,t,r,n){let{node:i}=e;if(!i[n])return"";if(!Array.isArray(i[n]))return r(n);let s=e.getNode(2),u=s&&Br(s);if(!e.match(p=>!(p[n].length===1&&Ue(p[n][0])),void 0,(p,f)=>f==="typeAnnotation",p=>p.type==="Identifier",Io)&&(u||i[n].length===0||i[n].length===1&&(i[n][0].type==="NullableTypeAnnotation"||Lo(i[n][0]))))return["<",B(", ",e.map(r,n)),jE(e,t),">"];let c=i.type==="TSTypeParameterInstantiation"?"":ne(i).length===1&&up(t)&&!i[n][0].constraint&&e.parent.type==="ArrowFunctionExpression"?",":le(t,"all")?I(","):"";return g(["<",x([C,B([",",S],e.map(r,n))]),c,C,">"],{id:Kn(i)})}function jE(e,t){let{node:r}=e;if(!w(r,_.Dangling))return"";let n=!w(r,_.Line),i=q(e,t,n);return n?i:[i,D]}function Is(e,t,r){let{node:n}=e,i=[],{parent:s}=e,u=n.type==="TSTypeParameter"?r("name"):n.name;return s.type==="TSMappedType"?(s.readonly&&i.push(os(s.readonly,"readonly")," "),i.push("[",u),n.constraint&&i.push(" in ",r("constraint")),s.nameType&&i.push(" as ",e.callParent(()=>r("nameType"))),i.push("]"),i):(n.variance&&i.push(r("variance")),n.in&&i.push("in "),n.out&&i.push("out "),i.push(u),n.bound&&i.push(": ",r("bound")),n.constraint&&i.push(" extends ",r("constraint")),n.default&&i.push(" = ",r("default")),i)}l();l();var _s=new WeakMap;function Zt(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:i}=e,{key:s}=n;if(n.type==="ClassPrivateProperty"&&s.type==="Identifier")return["#",r("key")];if(t.quoteProps==="consistent"&&!_s.has(i)){let u=(i.properties||i.body||i.members).some(a=>!a.computed&&a.key&&Se(a.key)&&!po(a,t));_s.set(i,u)}if((s.type==="Identifier"||it(s)&&fo(Ve(de(s)))&&String(s.value)===Ve(de(s))&&!(t.parser==="typescript"||t.parser==="babel-ts"))&&(t.parser==="json"||t.quoteProps==="consistent"&&_s.get(i))){let u=_t(JSON.stringify(s.type==="Identifier"?s.name:s.value.toString()),t);return e.call(a=>he(a,u,t),"key")}return po(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!_s.get(i))?e.call(u=>he(u,/^\d/.test(s.value)?Ve(s.value):s.value,t),"key"):r("key")}function cf(e,t,r){let{node:n}=e;return n.shorthand?r("value"):mr(e,t,r,Zt(e,t,r),":","value")}function Ns(e,t,r,n){let{node:i}=e,s=!1;if((i.type==="FunctionDeclaration"||i.type==="FunctionExpression")&&(n==null?void 0:n.expandLastArg)){let{parent:p}=e;O(p)&&(st(p).length>1||ne(i).every(f=>f.type==="Identifier"&&!f.typeAnnotation))&&(s=!0)}let u=[];i.type==="TSDeclareFunction"&&i.declare&&u.push("declare "),i.async&&u.push("async "),i.generator?u.push("function* "):u.push("function "),i.id&&u.push(t("id"));let a=Qt(e,t,r,s),o=jo(e,t),c=Ir(i,o);return u.push(Ct(e,r,t),g([c?g(a):a,o]),i.body?" ":"",t("body")),r.semi&&(i.declare||!i.body)&&u.push(";"),u}function Yn(e,t,r){let{node:n}=e,{kind:i}=n,s=n.value||n,u=[];return!i||i==="init"||i==="method"||i==="constructor"?s.async&&u.push("async "):(Ge.ok(i==="get"||i==="set"),u.push(i," ")),s.generator&&u.push("*"),u.push(Zt(e,t,r),n.optional||n.key.optional?"?":""),n===s?u.push(Ls(e,t,r)):s.type==="FunctionExpression"?u.push(e.call(a=>Ls(a,t,r),"value")):u.push(r("value")),u}function Ls(e,t,r){let{node:n}=e,i=Qt(e,r,t),s=jo(e,r),u=Ir(n,s),a=[Ct(e,t,r),g([u?g(i):i,s])];return n.body?a.push(" ",r("body")):a.push(t.semi?";":""),a}function RE(e,t,r,n){let{node:i}=e,s=[];if(i.async&&s.push("async "),Mo(e,t))s.push(r(["params",0]));else{let a=n&&(n.expandLastArg||n.expandFirstArg),o=jo(e,r);if(a){if(ae(o))throw new Jt;o=g(ir(o))}s.push(g([Qt(e,r,t,a,!0),o]))}let u=q(e,t,!0,a=>{let o=Vt(t.originalText,a,$);return o!==!1&&t.originalText.slice(o,o+2)==="=>"});return u&&s.push(" ",u),s}function $E(e,t,r,n,i,s){let u=e.getName(),{parent:a}=e,o=pr(a)&&u==="callee",c=Boolean(t&&t.assignmentLayout),p=s.body.type!=="BlockStatement"&&s.body.type!=="ObjectExpression"&&s.body.type!=="SequenceExpression",f=o&&p||t&&t.assignmentLayout==="chain-tail-arrow-chain",m=Symbol("arrow-chain");return(pr(a)&&!o||Pe(a))&&(r=[Be(r[0]),...r.slice(1)]),s.body.type==="SequenceExpression"&&(i=g(["(",x([C,i]),C,")"])),g([g(x([o||c?C:"",g(B([" =>",S],r),{shouldBreak:n})]),{id:m,shouldBreak:f})," =>",qt(p?x([S,i]):[" ",i],{groupId:m}),o?I(C,"",{groupId:m}):""])}function lf(e,t,r,n){var m,d;let{node:i}=e,s=[],u=[],a=!1;if(function y(){let E=RE(e,t,r,n);if(s.length===0)s.push(E);else{let{leading:T,trailing:b}=Xa(e,t);s.push([T,E]),u.unshift(b)}a=a||i.returnType&&ne(i).length>0||i.typeParameters||ne(i).some(T=>T.type!=="Identifier"),i.body.type!=="ArrowFunctionExpression"||(n==null?void 0:n.expandLastArg)?u.unshift(r("body",n)):(i=i.body,e.call(y,"body"))}(),s.length>1)return $E(e,n,s,a,u,i);let o=s;if(o.push(" =>"),!ht(t.originalText,i.body)&&(i.body.type==="ArrayExpression"||i.body.type==="ObjectExpression"||i.body.type==="BlockStatement"||re(i.body)||((m=u[0].label)==null?void 0:m.hug)!==!1&&(((d=u[0].label)==null?void 0:d.embed)||cs(i.body,t.originalText))||i.body.type==="ArrowFunctionExpression"||i.body.type==="DoExpression"))return g([...o," ",u]);if(i.body.type==="SequenceExpression")return g([...o,g([" (",x([C,u]),C,")"])]);let c=((n==null?void 0:n.expandLastArg)||e.parent.type==="JSXExpressionContainer")&&!w(i),p=(n==null?void 0:n.expandLastArg)&&le(t,"all"),f=i.body.type==="ConditionalExpression"&&!rt(i.body,!1);return g([...o,g([x([S,f?I("","("):"",u,f?I("",")"):""]),c?[I(p?",":""),C]:""])])}function qE(e){let t=ne(e);return t.length===1&&!e.typeParameters&&!w(e,_.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!w(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function Mo(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return qE(r)}return!1}function jo(e,t){let{node:r}=e,i=[t("returnType")];return r.returnType&&r.returnType.typeAnnotation&&i.unshift(": "),r.predicate&&i.push(r.returnType?" ":": ",t("predicate")),i}function pf(e,t,r){let{node:n}=e,i=t.semi?";":"",s=[];n.argument&&(WE(t,n.argument)?s.push([" (",x([D,r("argument")]),D,")"]):Pe(n.argument)||n.argument.type==="SequenceExpression"?s.push(g([I(" ("," "),x([C,r("argument")]),C,I(")")])):s.push(" ",r("argument")));let u=Et(n),a=P(!1,u,-1),o=a&&Yt(a);return o&&s.push(i),w(n,_.Dangling)&&s.push(" ",q(e,t,!0)),o||s.push(i),s}function ff(e,t,r){return["return",pf(e,t,r)]}function mf(e,t,r){return["throw",pf(e,t,r)]}function WE(e,t){if(ht(e.originalText,t))return!0;if(en(t)){let r=t,n;for(;n=tp(r);)if(r=n,ht(e.originalText,r))return!0}return!1}l();function Ro(e,t,r){let{node:n}=e;return g([B(S,e.map(r,"decorators")),Df(n,t)?D:S])}function yf(e,t,r){return[B(D,e.map(r,"declaration","decorators")),D]}function df(e,t,r){let{node:n}=e,{decorators:i}=n;if(!L(i)||$o(e.parent))return;let s=n.type==="ClassExpression"||n.type==="ClassDeclaration"||Df(n,t);return[is(e)?D:s?K:"",B(S,e.map(r,"decorators")),S]}function Df(e,t){return e.decorators.some(r=>Q(t.originalText,$(r)))}function $o(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=e.declaration&&e.declaration.decorators;return L(t)&&J(e,{ignoreDecorators:!0})>J(t[0])}function Os(e,t,r){let{node:n}=e,i=[];n.declare&&i.push("declare "),n.abstract&&i.push("abstract "),i.push("class");let s=n.id&&w(n.id,_.Trailing)||n.typeParameters&&w(n.typeParameters,_.Trailing)||n.superClass&&w(n.superClass)||L(n.extends)||L(n.mixins)||L(n.implements),u=[],a=[];if(n.id&&u.push(" ",r("id")),u.push(r("typeParameters")),n.superClass){let o=[JE(e,t,r),r("superTypeParameters")],c=e.call(p=>["extends ",he(p,o,t)],"superClass");s?a.push(S,g(c)):a.push(" ",c)}else a.push(qo(e,t,r,"extends"));if(a.push(qo(e,t,r,"mixins"),qo(e,t,r,"implements")),s){let o;hf(n)?o=[...u,x(a)]:o=x([...u,a]),i.push(g(o,{id:gf(n)}))}else i.push(...u,...a);return i.push(" ",r("body")),i}var gf=ji("heritageGroup");function Ms(e){return I(D,"",{groupId:gf(e)})}function VE(e){return["superClass","extends","mixins","implements"].filter(t=>Boolean(e[t])).length>1}function hf(e){return e.typeParameters&&!w(e.typeParameters,_.Trailing|_.Line)&&!VE(e)}function qo(e,t,r,n){let{node:i}=e;if(!L(i[n]))return"";let s=q(e,t,!0,({marker:u})=>u===n);return[hf(i)?I(" ",S,{groupId:Kn(i.typeParameters)}):S,s,s&&D,n,g(x([S,B([",",S],e.map(r,n))]))]}function JE(e,t,r){let n=r("superClass"),{parent:i}=e;return i.type==="AssignmentExpression"?g(I(["(",x([C,n]),C,")"],n)):n}function js(e,t,r){let{node:n}=e,i=[];return L(n.decorators)&&i.push(Ro(e,t,r)),n.accessibility&&i.push(n.accessibility+" "),n.readonly&&i.push("readonly "),n.declare&&i.push("declare "),n.static&&i.push("static "),(n.type==="TSAbstractMethodDefinition"||n.abstract)&&i.push("abstract "),n.override&&i.push("override "),i.push(Yn(e,t,r)),i}function Rs(e,t,r){let{node:n}=e,i=[],s=t.semi?";":"";return L(n.decorators)&&i.push(Ro(e,t,r)),n.accessibility&&i.push(n.accessibility+" "),n.declare&&i.push("declare "),n.static&&i.push("static "),(n.type==="TSAbstractPropertyDefinition"||n.abstract)&&i.push("abstract "),n.override&&i.push("override "),n.readonly&&i.push("readonly "),n.variance&&i.push(r("variance")),n.type==="ClassAccessorProperty"&&i.push("accessor "),i.push(Zt(e,t,r),ie(e),Ss(e),ut(e,t,r)),[mr(e,t,r,i," =",n.type==="TSAbstractPropertyDefinition"?void 0:"value"),s]}l();function zn(e,t,r){let{node:n}=e,i=[];n.declare&&i.push("declare "),n.type==="TSInterfaceDeclaration"&&i.push(n.abstract?"abstract ":"",Jn(e,t,r)),i.push("interface");let s=[],u=[];n.type!=="InterfaceTypeAnnotation"&&s.push(" ",r("id"),r("typeParameters"));let a=n.typeParameters&&!w(n.typeParameters,_.Trailing|_.Line);return L(n.extends)&&u.push(a?I(" ",S,{groupId:Kn(n.typeParameters)}):S,"extends ",(n.extends.length===1?sp:x)(B([",",S],e.map(r,"extends")))),n.id&&w(n.id,_.Trailing)||L(n.extends)?a?i.push(g([...s,x(u)])):i.push(g(x([...s,...u]))):i.push(...s,...u),i.push(" ",r("body")),g(i)}l();function Ef(e,t,r){let{node:n}=e,i=t.semi?";":"",s=[],{importKind:u}=n;return s.push("import"),u&&u!=="value"&&s.push(" ",u),s.push(Cf(e,t,r),Wo(e,t,r),Vo(e,t,r),i),s}function $s(e,t,r){let{node:n}=e,i=[];$o(n)&&i.push(yf(e,t,r));let{type:s,exportKind:u,declaration:a}=n;return i.push("export"),(n.default||s==="ExportDefaultDeclaration")&&i.push(" default"),w(n,_.Dangling)&&(i.push(" ",q(e,t,!0)),ls(n)&&i.push(D)),a?i.push(" ",r("declaration")):i.push(u==="type"?" type":"",Cf(e,t,r),Wo(e,t,r),Vo(e,t,r)),HE(n,t)&&i.push(";"),i}function qs(e,t,r){let{node:n}=e,i=t.semi?";":"",s=[],{exportKind:u,exported:a}=n;return s.push("export"),u==="type"&&s.push(" type"),s.push(" *"),a&&s.push(" as ",r("exported")),s.push(Wo(e,t,r),Vo(e,t,r),i),s}function HE(e,t){if(!t.semi)return!1;let{type:r,declaration:n}=e,i=e.default||r==="ExportDefaultDeclaration";if(!n)return!0;let{type:s}=n;return!!(i&&s!=="ClassDeclaration"&&s!=="FunctionDeclaration"&&s!=="TSInterfaceDeclaration"&&s!=="DeclareClass"&&s!=="DeclareFunction"&&s!=="TSDeclareFunction"&&s!=="EnumDeclaration")}function Wo(e,t,r){let{node:n}=e;if(!n.source)return"";let i=[];return xf(n,t)||i.push(" from"),i.push(" ",r("source")),i}function Cf(e,t,r){let{node:n}=e;if(xf(n,t))return"";let i=[" "];if(L(n.specifiers)){let s=[],u=[];e.each(()=>{let a=e.node.type;if(a==="ExportNamespaceSpecifier"||a==="ExportDefaultSpecifier"||a==="ImportNamespaceSpecifier"||a==="ImportDefaultSpecifier")s.push(r());else if(a==="ExportSpecifier"||a==="ImportSpecifier")u.push(r());else throw new Error(`Unknown specifier type ${JSON.stringify(a)}`)},"specifiers"),i.push(B(", ",s)),u.length>0&&(s.length>0&&i.push(", "),u.length>1||s.length>0||n.specifiers.some(o=>w(o))?i.push(g(["{",x([t.bracketSpacing?S:C,B([",",S],u)]),I(le(t)?",":""),t.bracketSpacing?S:C,"}"])):i.push(["{",t.bracketSpacing?" ":"",...u,t.bracketSpacing?" ":"","}"]))}else i.push("{}");return i}function xf(e,t){let{type:r,importKind:n,source:i,specifiers:s}=e;return r!=="ImportDeclaration"||L(s)||n==="type"?!1:!/{\s*}/.test(t.originalText.slice(J(e),J(i)))}function Vo(e,t,r){let{node:n}=e;return L(n.assertions)?[" assert {",t.bracketSpacing?" ":"",B(", ",e.map(r,"assertions")),t.bracketSpacing?" ":"","}"]:""}function Sf(e,t,r){let{node:n}=e,{type:i}=n,s=[],u=i==="ImportSpecifier"?n.importKind:n.exportKind;u&&u!=="value"&&s.push(u," ");let a=i.startsWith("Import"),o=a?"imported":"local",c=a?"local":"exported",p=n[o],f=n[c],m="",d="";return i==="ExportNamespaceSpecifier"||i==="ImportNamespaceSpecifier"?m="*":p&&(m=r(o)),f&&!GE(n)&&(d=r(c)),s.push(m,m&&d?" as ":"",d),s}function GE(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!zl(t,r))return!1;if(Se(t))return t.value===r.value&&de(t)===de(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}l();function an(e,t,r){var A;let n=t.semi?";":"",{node:i}=e,s=i.type==="ObjectTypeAnnotation",u=[i.type==="TSTypeLiteral"?"members":i.type==="TSInterfaceBody"?"body":"properties"];s&&u.push("indexers","callProperties","internalSlots");let a=u.flatMap(F=>e.map(v=>{let{node:M}=v;return{node:M,printed:r(),loc:J(M)}},F));u.length>1&&a.sort((F,v)=>F.loc-v.loc);let{parent:o}=e,c=s&&o&&(o.type==="InterfaceDeclaration"||o.type==="DeclareInterface"||o.type==="DeclareClass")&&e.getName()==="body",p=i.type==="TSInterfaceBody"||c||i.type==="ObjectPattern"&&o.type!=="FunctionDeclaration"&&o.type!=="FunctionExpression"&&o.type!=="ArrowFunctionExpression"&&o.type!=="ObjectMethod"&&o.type!=="ClassMethod"&&o.type!=="ClassPrivateMethod"&&o.type!=="AssignmentPattern"&&o.type!=="CatchClause"&&i.properties.some(F=>F.value&&(F.value.type==="ObjectPattern"||F.value.type==="ArrayPattern"))||i.type!=="ObjectPattern"&&a.length>0&&It(t.originalText,J(i),a[0].loc),f=c?";":i.type==="TSInterfaceBody"||i.type==="TSTypeLiteral"?I(n,";"):",",m=i.type==="RecordExpression"?"#{":i.exact?"{|":"{",d=i.exact?"|}":"}",y=[],E=a.map(F=>{let v=[...y,g(F.printed)];return y=[f,S],(F.node.type==="TSPropertySignature"||F.node.type==="TSMethodSignature"||F.node.type==="TSConstructSignatureDeclaration")&&w(F.node,_.PrettierIgnore)&&y.shift(),Ce(F.node,t)&&y.push(D),v});if(i.inexact){let F;if(w(i,_.Dangling)){let v=w(i,_.Line);F=[q(e,t,!0),v||Q(t.originalText,$(P(!1,Et(i),-1)))?D:S,"..."]}else F=["..."];E.push([...y,...F])}let T=(A=P(!1,a,-1))==null?void 0:A.node,b=!(i.inexact||T&&(T.type==="RestElement"||(T.type==="TSPropertySignature"||T.type==="TSCallSignatureDeclaration"||T.type==="TSMethodSignature"||T.type==="TSConstructSignatureDeclaration")&&w(T,_.PrettierIgnore))),k;if(E.length===0){if(!w(i,_.Dangling))return[m,d,ut(e,t,r)];k=g([m,q(e,t),C,d,ie(e),ut(e,t,r)])}else k=[c&&L(i.properties)?Ms(o):"",m,x([t.bracketSpacing?S:C,...E]),I(b&&(f!==","||le(t))?f:""),t.bracketSpacing?S:C,d,ie(e),ut(e,t,r)];return e.match(F=>F.type==="ObjectPattern"&&!F.decorators,Jo)||Ue(i)&&(e.match(void 0,(F,v)=>v==="typeAnnotation",(F,v)=>v==="typeAnnotation",Jo)||e.match(void 0,(F,v)=>F.type==="FunctionTypeParam"&&v==="typeAnnotation",Jo))||!p&&e.match(F=>F.type==="ObjectPattern",F=>F.type==="AssignmentExpression"||F.type==="VariableDeclarator")?k:g(k,{shouldBreak:p})}function Jo(e,t){return(t==="params"||t==="parameters"||t==="this"||t==="rest")&&_o(e)}function Af(e,t,r){let{node:n}=e,i=t.semi?";":"",s=[];switch(n.type){case"DeclareClass":return Nt(e,Os(e,t,r));case"DeclareFunction":return Nt(e,["function ",r("id"),n.predicate?" ":"",r("predicate"),i]);case"DeclareModule":return Nt(e,["module ",r("id")," ",r("body")]);case"DeclareModuleExports":return Nt(e,["module.exports",": ",r("typeAnnotation"),i]);case"DeclareVariable":return Nt(e,["var ",r("id"),i]);case"DeclareOpaqueType":return Nt(e,No(e,t,r));case"DeclareInterface":return Nt(e,zn(e,t,r));case"DeclareTypeAlias":return Nt(e,Un(e,t,r));case"DeclareExportDeclaration":return Nt(e,$s(e,t,r));case"DeclareExportAllDeclaration":return Nt(e,qs(e,t,r));case"OpaqueType":return No(e,t,r);case"TypeAlias":return Un(e,t,r);case"IntersectionTypeAnnotation":return vs(e,t,r);case"UnionTypeAnnotation":return Bs(e,t,r);case"FunctionTypeAnnotation":return ks(e,t,r);case"TupleTypeAnnotation":return Ps(e,t,r);case"GenericTypeAnnotation":return[r("id"),_r(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return ws(e,t,r);case"TypeAnnotation":return r("typeAnnotation");case"TypeParameter":return Is(e,t,r);case"TypeofTypeAnnotation":return["typeof ",r("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[r("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(n.value);case"EnumDeclaration":return["enum ",r("id")," ",r("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if(n.type==="EnumSymbolBody"||n.explicitType){let u=null;switch(n.type){case"EnumBooleanBody":u="boolean";break;case"EnumNumberBody":u="number";break;case"EnumStringBody":u="string";break;case"EnumSymbolBody":u="symbol";break}s.push("of ",u," ")}if(n.members.length===0&&!n.hasUnknownMembers)s.push(g(["{",q(e,t),C,"}"]));else{let u=n.members.length>0?[D,wr(e,t,"members",r),n.hasUnknownMembers||le(t)?",":""]:[];s.push(g(["{",x([...u,...n.hasUnknownMembers?[D,"..."]:[]]),q(e,t,!0),D,"}"]))}return s;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[r("id")," = ",typeof n.init=="object"?r("init"):String(n.init)];case"EnumDefaultedMember":return r("id");case"FunctionTypeParam":{let u=n.name?r("name"):e.parent.this===n?"this":"";return[u,ie(e),u?": ":"",r("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return zn(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:u}=n;return Ge.ok(u==="plus"||u==="minus"),u==="plus"?"+":"-"}case"ObjectTypeCallProperty":return n.static&&s.push("static "),s.push(r("value")),s;case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value")];case"ObjectTypeProperty":{let u="";return n.proto?u="proto ":n.static&&(u="static "),[u,co(n)?n.kind+" ":"",n.variance?r("variance"):"",Zt(e,t,r),ie(e),lo(n)?"":": ",r("value")]}case"ObjectTypeAnnotation":return an(e,t,r);case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",ie(e),n.method?"":": ",r("value")];case"ObjectTypeSpreadProperty":return Ts(e,t,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"StringLiteralTypeAnnotation":return j(_t(de(n),t));case"NumberLiteralTypeAnnotation":Ge.strictEqual(typeof n.value,"number");case"BigIntLiteralTypeAnnotation":return n.extra?Ve(n.extra.raw):Ve(n.raw);case"TypeCastExpression":return["(",r("expression"),ut(e,t,r),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return _r(e,t,r,"params");case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",r("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(n.type))}}function Nt(e,t){let r=is(e);return r?(Ge.strictEqual(r.type,"DeclareExportDeclaration"),t):["declare ",t]}l();l();function UE({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Tf=UE;l();function KE(e){let t=[e];for(let r=0;r<t.length;r++){let n=t[r];for(let i of["test","consequent","alternate"]){let s=n[i];if(re(s))return!0;s.type==="ConditionalExpression"&&t.push(s)}}return!1}function YE(e,t,r){let{node:n}=e,i=n.type==="ConditionalExpression",s=i?"alternate":"falseType",{parent:u}=e,a=i?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return u.type===n.type&&u[s]===n?X(2,a):a}var zE=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]);function XE(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let i=0;!r;i++){let s=e.getParentNode(i);if(O(s)&&s.callee===n||U(s)&&s.object===n||s.type==="TSNonNullExpression"&&s.expression===n){n=s;continue}s.type==="NewExpression"&&s.callee===n||s.type==="TSAsExpression"&&s.expression===n?(r=e.getParentNode(i+1),n=s):r=s}return n===t?!1:r[zE.get(r.type)]===n}function Ws(e,t,r){let{node:n}=e,i=n.type==="ConditionalExpression",s=i?"consequent":"trueType",u=i?"alternate":"falseType",a=i?["test"]:["checkType","extendsType"],o=n[s],c=n[u],p=[],f=!1,{parent:m}=e,d=m.type===n.type&&a.some(R=>m[R]===n),y=m.type===n.type&&!d,E,T,b=0;do T=E||n,E=e.getParentNode(b),b++;while(E&&E.type===n.type&&a.every(R=>E[R]!==T));let k=E||m,A=T;if(i&&(re(n[a[0]])||re(o)||re(c)||KE(A))){f=!0,y=!0;let R=pe=>[I("("),x([C,pe]),C,I(")")],se=pe=>pe.type==="NullLiteral"||pe.type==="Literal"&&pe.value===null||pe.type==="Identifier"&&pe.name==="undefined";p.push(" ? ",se(o)?r(s):R(r(s))," : ",c.type===n.type||se(c)?r(u):R(r(u)))}else{let R=[S,"? ",o.type===n.type?I("","("):"",X(2,r(s)),o.type===n.type?I("",")"):"",S,": ",c.type===n.type?r(u):X(2,r(u))];p.push(m.type!==n.type||m[u]===n||d?R:t.useTabs?Be(x(R)):X(Math.max(0,t.tabWidth-2),R))}let v=[...a.map(R=>Et(n[R])),Et(o),Et(c)].flat().some(R=>Ee(R)&&It(t.originalText,J(R),$(R))),M=R=>m===k?g(R,{shouldBreak:v}):v?[R,K]:R,W=!f&&(U(m)||m.type==="NGPipeExpression"&&m.left===n)&&!m.computed,V=XE(e),z=M([YE(e,t,r),y?p:x(p),i&&W&&!V?C:""]);return d||V?g([x([C,z]),C]):z}l();l();function Ff(e,t,r,n){let{node:i}=e,s=[],u=i.type==="ClassBody",a=QE(i[n]);return e.each((o,c,p)=>{let{node:f}=o;if(f.type==="EmptyStatement")return;let m=r();!t.semi&&!u&&!us(t,o)&&ZE(o,t)?w(f,_.Leading)?s.push(r([],{needsSemi:!0})):s.push(";",m):s.push(m),!t.semi&&u&&kf(f)&&eC(f,p[c+1])&&s.push(";"),f!==a&&(s.push(D),Ce(f,t)&&s.push(D))},n),s}function QE(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r.type!=="EmptyStatement")return r}}function ZE(e,t){let{node:r}=e;return r.type!=="ExpressionStatement"?!1:e.call(n=>bf(n,t),"expression")}function bf(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!Mo(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:i}=r;if(n&&(i==="+"||i==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(re(r))return!0}return pt(e,t)?!0:en(r)?e.call(n=>bf(n,t),...ns(e,r)):!1}function vf(e,t,r){return Ff(e,t,r,"body")}function Bf(e,t,r){return Ff(e,t,r,"consequent")}var kf=({type:e})=>e==="ClassProperty"||e==="PropertyDefinition"||e==="ClassPrivateProperty"||e==="ClassAccessorProperty";function eC(e,t){let r=e.key&&e.key.name;if((r==="static"||r==="get"||r==="set")&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility)return!1;if(!t.computed){let n=t.key&&t.key.name;if(n==="in"||n==="instanceof")return!0}if(kf(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let i=t.value?t.value.generator:t.generator;return!!(t.computed||i)}case"TSIndexSignature":return!0}return!1}function Vs(e,t,r){let{node:n}=e,i=[];if(n.type==="StaticBlock"&&i.push("static "),n.type==="ClassBody"&&L(n.body)){let{parent:u}=e;i.push(Ms(u))}i.push("{");let s=Ho(e,t,r);if(s)i.push(x([D,s]),D);else{let{parent:u}=e,a=e.grandparent;u.type==="ArrowFunctionExpression"||u.type==="FunctionExpression"||u.type==="FunctionDeclaration"||u.type==="ObjectMethod"||u.type==="ClassMethod"||u.type==="ClassPrivateMethod"||u.type==="ForStatement"||u.type==="WhileStatement"||u.type==="DoWhileStatement"||u.type==="DoExpression"||u.type==="CatchClause"&&!a.finalizer||u.type==="TSModuleDeclaration"||u.type==="TSDeclareFunction"||n.type==="StaticBlock"||n.type==="ClassBody"||i.push(D)}return i.push("}"),i}function Ho(e,t,r){let{node:n}=e,i=L(n.directives),s=n.body.some(o=>o.type!=="EmptyStatement"),u=w(n,_.Dangling);if(!i&&!s&&!u)return"";let a=[];if(i&&e.each((o,c,p)=>{a.push(r()),(c<p.length-1||s||u)&&(a.push(D),Ce(o.node,t)&&a.push(D))},"directives"),s&&a.push(vf(e,t,r)),u&&a.push(q(e,t,!0)),n.type==="Program"){let{parent:o}=e;(!o||o.type!=="ModuleExpression")&&a.push(D)}return a}function Pf(e,t,r){let{node:n}=e;if(!n.type.startsWith("TS"))return;if(Tf(n))return n.type.slice(2,-7).toLowerCase();let i=t.semi?";":"",s=[];switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":{let u=!(n.expression.type==="ArrayExpression"||n.expression.type==="ObjectExpression"),a=g(["<",x([C,r("typeAnnotation")]),C,">"]),o=[I("("),x([C,r("expression")]),C,I(")")];return u?ke([[a,r("expression")],[a,g(o,{shouldBreak:!0})],[a,r("expression")]]):g([a,r("expression")])}case"TSDeclareFunction":return Ns(e,r,t);case"TSExportAssignment":return["export = ",r("expression"),i];case"TSModuleBlock":return Vs(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return an(e,t,r);case"TSTypeAliasDeclaration":return Un(e,t,r);case"TSQualifiedName":return B(".",[r("left"),r("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return js(e,t,r);case"TSAbstractPropertyDefinition":return Rs(e,t,r);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return s.push(r("expression")),n.typeParameters&&s.push(r("typeParameters")),s;case"TSTemplateLiteralType":return ys(e,r,t);case"TSNamedTupleMember":return[r("label"),n.optional?"?":"",": ",r("elementType")];case"TSRestType":return["...",r("typeAnnotation")];case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return zn(e,t,r);case"TSClassImplements":return[r("expression"),r("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return _r(e,t,r,"params");case"TSTypeParameter":return Is(e,t,r);case"TSAsExpression":{s.push(r("expression")," as ",r("typeAnnotation"));let{parent:u}=e;return O(u)&&u.callee===n||U(u)&&u.object===n?g([x([C,...s]),C]):s}case"TSArrayType":return[r("elementType"),"[]"];case"TSPropertySignature":return n.readonly&&s.push("readonly "),s.push(Zt(e,t,r),ie(e)),n.typeAnnotation&&s.push(": ",r("typeAnnotation")),n.initializer&&s.push(" = ",r("initializer")),s;case"TSParameterProperty":return n.accessibility&&s.push(n.accessibility+" "),n.export&&s.push("export "),n.static&&s.push("static "),n.override&&s.push("override "),n.readonly&&s.push("readonly "),s.push(r("parameter")),s;case"TSTypeQuery":return["typeof ",r("exprName"),r("typeParameters")];case"TSIndexSignature":{let{parent:u}=e,a=n.parameters.length>1?I(le(t)?",":""):"",o=g([x([C,B([", ",C],e.map(r,"parameters"))]),a,C]);return[n.export?"export ":"",n.accessibility?[n.accessibility," "]:"",n.static?"static ":"",n.readonly?"readonly ":"",n.declare?"declare ":"","[",n.parameters?o:"",n.typeAnnotation?"]: ":"]",n.typeAnnotation?r("typeAnnotation"):"",u.type==="ClassBody"?i:""]}case"TSTypePredicate":return[n.asserts?"asserts ":"",r("parameterName"),n.typeAnnotation?[" is ",r("typeAnnotation")]:""];case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[n.isTypeOf?"typeof ":"","import(",r(n.parameter?"parameter":"argument"),")",n.qualifier?[".",r("qualifier")]:"",_r(e,t,r,"typeParameters")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return ws(e,t,r);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if(n.type==="TSConstructorType"&&n.abstract&&s.push("abstract "),n.type!=="TSCallSignatureDeclaration"&&s.push("new "),s.push(g(Qt(e,r,t,!1,!0))),n.returnType||n.typeAnnotation){let u=n.type==="TSConstructorType";s.push(u?" => ":": ",r("returnType"),r("typeAnnotation"))}return s;case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":{let u=It(t.originalText,J(n),$(n));return g(["{",x([t.bracketSpacing?S:C,r("typeParameter"),n.optional?os(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation"),I(i)]),q(e,t,!0),t.bracketSpacing?S:C,"}"],{shouldBreak:u})}case"TSMethodSignature":{let u=n.kind&&n.kind!=="method"?`${n.kind} `:"";s.push(n.accessibility?[n.accessibility," "]:"",u,n.export?"export ":"",n.static?"static ":"",n.readonly?"readonly ":"",n.abstract?"abstract ":"",n.declare?"declare ":"",n.computed?"[":"",r("key"),n.computed?"]":"",ie(e));let a=Qt(e,r,t,!1,!0),o=n.returnType?"returnType":"typeAnnotation",c=n[o],p=c?r(o):"",f=Ir(n,p);return s.push(f?g(a):a),c&&s.push(": ",g(p)),g(s)}case"TSNamespaceExportDeclaration":return s.push("export as namespace ",r("id")),t.semi&&s.push(";"),g(s);case"TSEnumDeclaration":return n.declare&&s.push("declare "),n.modifiers&&s.push(Jn(e,t,r)),n.const&&s.push("const "),s.push("enum ",r("id")," "),n.members.length===0?s.push(g(["{",q(e,t),C,"}"])):s.push(g(["{",x([D,wr(e,t,"members",r),le(t,"es5")?",":""]),q(e,t,!0),D,"}"])),s;case"TSEnumMember":return n.computed?s.push("[",r("id"),"]"):s.push(r("id")),n.initializer&&s.push(" = ",r("initializer")),s;case"TSImportEqualsDeclaration":return n.isExport&&s.push("export "),s.push("import "),n.importKind&&n.importKind!=="value"&&s.push(n.importKind," "),s.push(r("id")," = ",r("moduleReference")),t.semi&&s.push(";"),g(s);case"TSExternalModuleReference":return["require(",r("expression"),")"];case"TSModuleDeclaration":{let{parent:u}=e,a=zt(n.id),o=u.type==="TSModuleDeclaration",c=n.body&&n.body.type==="TSModuleDeclaration";if(o)s.push(".");else{n.declare&&s.push("declare "),s.push(Jn(e,t,r));let p=t.originalText.slice(J(n),J(n.id));n.id.type==="Identifier"&&n.id.name==="global"&&!/namespace|module/.test(p)||s.push(a||/(?:^|\s)module(?:\s|$)/.test(p)?"module ":"namespace ")}return s.push(r("id")),c?s.push(r("body")):n.body?s.push(" ",g(r("body"))):s.push(i),s}case"TSConditionalType":return Ws(e,t,r);case"TSInferType":return["infer"," ",r("typeParameter")];case"TSIntersectionType":return vs(e,t,r);case"TSUnionType":return Bs(e,t,r);case"TSFunctionType":return ks(e,t,r);case"TSTupleType":return Ps(e,t,r);case"TSTypeReference":return[r("typeName"),_r(e,t,r,"typeParameters")];case"TSTypeAnnotation":return r("typeAnnotation");case"TSEmptyBodyFunctionExpression":return Ls(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Oo(e,r,"?");case"TSJSDocNonNullableType":return Oo(e,r,"!");case"TSInstantiationExpression":return[r("expression"),r("typeParameters")];default:throw new me(n,"TypeScript")}}l();function _f(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return If(r);case"BigIntLiteral":return wf(r.bigint||r.extra.raw);case"NumericLiteral":return Ve(r.extra.raw);case"StringLiteral":return j(_t(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DecimalLiteral":return Ve(r.value)+"m";case"Literal":{if(r.regex)return If(r.regex);if(r.bigint)return wf(r.raw);if(r.decimal)return Ve(r.decimal)+"m";let{value:n}=r;return typeof n=="number"?Ve(r.raw):typeof n=="string"?j(_t(r.raw,t)):String(n)}}}function wf(e){return e.toLowerCase()}function If({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function tC(e,t,r,n){let{node:i}=e,s=rC(e,t,r,n);if(!s)return"";let{type:u}=i;if(u==="ClassMethod"||u==="ClassPrivateMethod"||u==="ClassProperty"||u==="ClassAccessorProperty"||u==="PropertyDefinition"||u==="TSAbstractPropertyDefinition"||u==="ClassPrivateProperty"||u==="MethodDefinition"||u==="TSAbstractMethodDefinition"||u==="TSDeclareMethod")return s;let a=[s],o=df(e,t,r),c=i.type==="ClassExpression"&&o;if(o&&(a=[...o,s],!c))return g(a);let p=pt(e,t),f=n==null?void 0:n.needsSemi;return p?(c&&(a=[x([S,...a])]),a.unshift("("),f&&a.unshift(";"),c&&a.push(S),a.push(")"),a):(f&&a.unshift(";"),a.length===1&&a[0]===s?s:a)}function rC(e,t,r,n){for(let a of[_f,zp,Qp,Op,Af,Pf]){let o=a(e,t,r);if(typeof o<"u")return o}let{node:i}=e,s=t.semi?";":"",u=[];switch(i.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[r("node"),D];case"File":return i.program.interpreter&&u.push(r(["program","interpreter"])),u.push(r("program")),u;case"Program":return Ho(e,t,r);case"EmptyStatement":return"";case"ExpressionStatement":{if(i.directive)return[Lf(i.expression,t),s];if(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding"){let{parent:o}=e;if(o.type==="Program"&&o.body.length===1&&o.body[0]===i)return[r("expression"),vo(i.expression)?";":""]}let a=q(e,t,!0,({marker:o})=>o===ms);return[r("expression"),us(t,e)?"":s,a?[" ",a]:""]}case"ParenthesizedExpression":return!w(i.expression)&&(i.expression.type==="ObjectExpression"||i.expression.type==="ArrayExpression")?["(",r("expression"),")"]:g(["(",x([C,r("expression")]),C,")"]);case"AssignmentExpression":return sf(e,t,r);case"VariableDeclarator":return uf(e,t,r);case"BinaryExpression":case"LogicalExpression":return xs(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return tf(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return i.object&&u.push(r("object")),u.push(g(x([C,As(e,t,r)]))),u;case"Identifier":return[i.name,ie(e),Ss(e),ut(e,t,r)];case"V8IntrinsicIdentifier":return["%",i.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return Ts(e,t,r);case"FunctionDeclaration":case"FunctionExpression":return Ns(e,r,t,n);case"ArrowFunctionExpression":return lf(e,t,r,n);case"YieldExpression":return u.push("yield"),i.delegate&&u.push("*"),i.argument&&u.push(" ",r("argument")),u;case"AwaitExpression":if(u.push("await"),i.argument){u.push(" ",r("argument"));let{parent:a}=e;if(O(a)&&a.callee===i||U(a)&&a.object===i){u=[x([C,...u]),C];let o=e.findAncestor(c=>c.type==="AwaitExpression"||c.type==="BlockStatement");if((o==null?void 0:o.type)!=="AwaitExpression")return g(u)}}return u;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return $s(e,t,r);case"ExportAllDeclaration":return qs(e,t,r);case"ImportDeclaration":return Ef(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Sf(e,t,r);case"ImportAttribute":return[r("key"),": ",r("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return Vs(e,t,r);case"ThrowStatement":return mf(e,t,r);case"ReturnStatement":return ff(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Fs(e,t,r);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return an(e,t,r);case"ObjectProperty":case"Property":return i.method||i.kind==="get"||i.kind==="set"?Yn(e,t,r):cf(e,t,r);case"ObjectMethod":return Yn(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Zp(e,t,r);case"SequenceExpression":{let{parent:a}=e;if(a.type==="ExpressionStatement"||a.type==="ForStatement"){let o=[];return e.each((c,p)=>{p===0?o.push(r()):o.push(",",x([S,r()]))},"expressions"),g(o)}return g(B([",",S],e.map(r,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),s];case"DirectiveLiteral":return Lf(i,t);case"UnaryExpression":return u.push(i.operator),/[a-z]$/.test(i.operator)&&u.push(" "),w(i.argument)?u.push(g(["(",x([C,r("argument")]),C,")"])):u.push(r("argument")),u;case"UpdateExpression":return u.push(r("argument"),i.operator),i.prefix&&u.reverse(),u;case"ConditionalExpression":return Ws(e,t,r);case"VariableDeclaration":{let a=e.map(r,"declarations"),o=e.parent,c=o.type==="ForStatement"||o.type==="ForInStatement"||o.type==="ForOfStatement",p=i.declarations.some(m=>m.init),f;return a.length===1&&!w(i.declarations[0])?f=a[0]:a.length>0&&(f=x(a[0])),u=[i.declare?"declare ":"",i.kind,f?[" ",f]:"",x(a.slice(1).map(m=>[",",p&&!c?D:S,m]))],c&&o.body!==i||u.push(s),g(u)}case"WithStatement":return g(["with (",r("object"),")",Xt(i.body,r("body"))]);case"IfStatement":{let a=Xt(i.consequent,r("consequent")),o=g(["if (",g([x([C,r("test")]),C]),")",a]);if(u.push(o),i.alternate){let c=w(i.consequent,_.Trailing|_.Line)||ls(i),p=i.consequent.type==="BlockStatement"&&!c;u.push(p?" ":D),w(i,_.Dangling)&&u.push(q(e,t,!0),c?D:" "),u.push("else",g(Xt(i.alternate,r("alternate"),i.alternate.type==="IfStatement")))}return u}case"ForStatement":{let a=Xt(i.body,r("body")),o=q(e,t,!0),c=o?[o,C]:"";return!i.init&&!i.test&&!i.update?[c,g(["for (;;)",a])]:[c,g(["for (",g([x([C,r("init"),";",S,r("test"),";",S,r("update")]),C]),")",a])]}case"WhileStatement":return g(["while (",g([x([C,r("test")]),C]),")",Xt(i.body,r("body"))]);case"ForInStatement":return g(["for (",r("left")," in ",r("right"),")",Xt(i.body,r("body"))]);case"ForOfStatement":return g(["for",i.await?" await":""," (",r("left")," of ",r("right"),")",Xt(i.body,r("body"))]);case"DoWhileStatement":{let a=Xt(i.body,r("body"));return u=[g(["do",a])],i.body.type==="BlockStatement"?u.push(" "):u.push(D),u.push("while (",g([x([C,r("test")]),C]),")",s),u}case"DoExpression":return[i.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return u.push(i.type==="BreakStatement"?"break":"continue"),i.label&&u.push(" ",r("label")),u.push(s),u;case"LabeledStatement":return i.body.type==="EmptyStatement"?[r("label"),":;"]:[r("label"),": ",r("body")];case"TryStatement":return["try ",r("block"),i.handler?[" ",r("handler")]:"",i.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(i.param){let a=w(i.param,c=>!Ee(c)||c.leading&&Q(t.originalText,$(c))||c.trailing&&Q(t.originalText,J(c),{backwards:!0})),o=r("param");return["catch ",a?["(",x([C,o]),C,") "]:["(",o,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[g(["switch (",x([C,r("discriminant")]),C,")"])," {",i.cases.length>0?x([D,B(D,e.map((a,o,c)=>{let p=a.node;return[r(),o!==c.length-1&&Ce(p,t)?D:""]},"cases"))]):"",D,"}"];case"SwitchCase":{i.test?u.push("case ",r("test"),":"):u.push("default:"),w(i,_.Dangling)&&u.push(" ",q(e,t,!0));let a=i.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=Bf(e,t,r);u.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:x([D,o]))}return u}case"DebuggerStatement":return["debugger",s];case"ClassDeclaration":case"ClassExpression":return Os(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return js(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":return Rs(e,t,r);case"TemplateElement":return j(i.value.raw);case"TemplateLiteral":return ys(e,r,t);case"TaggedTemplateExpression":return pp(r);case"PrivateIdentifier":return["#",i.name];case"PrivateName":return["#",r("id")];case"InterpreterDirective":return u.push("#!",i.value,D),Ce(i,t)&&u.push(D),u;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{u.push("module {");let a=r("body");return a&&u.push(x([D,a]),D),u.push("}"),u}default:throw new me(i,"ESTree")}}function Lf(e,t){let r=de(e),n=r.slice(1,-1);if(n.includes('"')||n.includes("'"))return r;let i=t.singleQuote?"'":'"';return i+n+i}var nC={preprocess:Cs,print:tC,embed:xp,insertPragma:gs,massageAstNode:Ap,getVisitorKeys:ts,...bo},Nf=nC;l();l();var iC={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},Of=iC;function sC(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),D];case"ArrayExpression":{if(n.elements.length===0)return"[]";let i=e.map(()=>e.node===null?"null":r(),"elements");return["[",x([D,B([",",D],i)]),D,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",x([D,B([",",D],e.map(r,"properties"))]),D,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(n.value);case"Identifier":{let{parent:i}=e;return i&&i.type==="ObjectProperty"&&i.key===n?JSON.stringify(n.name):n.name}case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(n.type))}}var uC=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Mf(e,t){let{type:r}=e;if(r==="ObjectProperty"&&e.key.type==="Identifier"){t.key={type:"StringLiteral",value:e.key.name};return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,i]of e.elements.entries())i===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}Mf.ignoredProperties=uC;var aC={preprocess:Cs,print:sC,massageAstNode:Mf,getVisitorKeys:Te(Of)},jf=aC;var Rf=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",extensions:[".jsx"],parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]},{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json",".eslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}];l();l();var Xn="Common",cC={bracketSpacing:{category:Xn,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:Xn,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:Xn,type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:Xn,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:Xn,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},De=cC;var on="JavaScript",lC={arrowParens:{category:on,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:De.bracketSameLine,bracketSpacing:De.bracketSpacing,jsxBracketSameLine:{category:on,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:on,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:De.singleQuote,jsxSingleQuote:{category:on,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:on,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:on,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:De.singleAttributePerLine},$f=lC;l();var qf=void 0;var pC={estree:Nf,"estree-json":jf};var tu={};fe(tu,{languages:()=>Cm,options:()=>xm,parsers:()=>Sm,printers:()=>LC});l();l();l();var fC=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function Wf(e,t,r){if(Je(e)&&e.lang==="yaml"&&delete t.value,e.type==="css-comment"&&r.type==="css-root"&&r.nodes.length>0&&((r.nodes[0]===e||Je(r.nodes[0])&&r.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||r.type==="css-root"&&P(!1,r.nodes,-1)===e))return null;if(e.type==="value-root"&&delete t.text,(e.type==="media-query"||e.type==="media-query-list"||e.type==="media-feature-expression")&&delete t.value,e.type==="css-rule"&&delete t.params,e.type==="selector-combinator"&&(t.value=t.value.replace(/\s+/g," ")),e.type==="media-feature"&&(t.value=t.value.replace(/ /g,"")),(e.type==="value-word"&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||e.type==="media-feature"||e.type==="selector-root-invalid"||e.type==="selector-pseudo")&&(t.value=t.value.toLowerCase()),e.type==="css-decl"&&(t.prop=t.prop.toLowerCase()),(e.type==="css-atrule"||e.type==="css-import")&&(t.name=t.name.toLowerCase()),e.type==="value-number"&&(t.unit=t.unit.toLowerCase()),e.type==="value-unknown"&&(t.value=t.value.replace(/;$/g,"")),(e.type==="media-feature"||e.type==="media-keyword"||e.type==="media-type"||e.type==="media-unknown"||e.type==="media-url"||e.type==="media-value"||e.type==="selector-attribute"||e.type==="selector-string"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="value-string")&&t.value&&(t.value=mC(t.value)),e.type==="selector-attribute"&&(t.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(t.namespace=t.namespace.trim(),t.namespace.length===0&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),(e.type==="media-value"||e.type==="media-type"||e.type==="value-number"||e.type==="selector-root-invalid"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="selector-tag")&&t.value&&(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(n,i,s)=>{let u=Number(i);return Number.isNaN(u)?n:u+s.toLowerCase()})),e.type==="selector-tag"){let n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}if(e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete t.value,e.type==="selector-unknown"&&delete t.value,e.type==="value-comma_group"){let n=e.groups.findIndex(i=>i.type==="value-number"&&i.unit==="...");n!==-1&&(t.groups[n].unit="",t.groups.splice(n+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}}Wf.ignoredProperties=fC;function mC(e){return e.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}var Vf=Wf;l();l();async function yC(e,t){if(e.lang==="yaml"){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return Bt([e.startDelimiter,D,n,n?D:"",e.endDelimiter])}}var cn=yC;function Jf(e){let{node:t}=e;if(t.type==="front-matter")return async r=>{let n=await cn(t,r);return n?[n,D]:void 0}}Jf.getVisitorKeys=e=>e.type==="css-root"?["frontMatter"]:[];var Hf=Jf;l();l();var dC=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function DC(e){let t=e.match(dC);if(!t)return{content:e};let{startDelimiter:r,language:n,value:i="",endDelimiter:s}=t.groups,u=n.trim()||"yaml";if(r==="+++"&&(u="toml"),u!=="yaml"&&r!==s)return{content:e};let[a]=t;return{frontMatter:{type:"front-matter",lang:u,value:i,startDelimiter:r,endDelimiter:s,raw:a.replace(/\n$/,"")},content:a.replace(/[^\n]/g," ")+e.slice(a.length)}}var Hs=DC;function Gf(e){let{frontMatter:t,content:r}=Hs(e);return(t?t.raw+`
50
+ `)+s}var Bo={};fe(Bo,{canAttachComment:()=>gE,getCommentChildNodes:()=>hE,handleComments:()=>hs,hasPrettierIgnore:()=>EE,isBlockComment:()=>Fe,isGap:()=>CE,printComment:()=>Zp,willPrintOwnComments:()=>So});function g0(e,t){let r={quote:'"',regex:/"/g,escaped:"&quot;"},n={quote:"'",regex:/'/g,escaped:"&apos;"},i=t==="'"?n:r,s=i===n?r:n,u=i;if(e.includes(i.quote)||e.includes(s.quote)){let a=(e.match(i.regex)||[]).length,o=(e.match(s.regex)||[]).length;u=a>o?s:i}return u}var yr=g0;function wr(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Et,Eo=class{constructor(t){Tn(this,Et,void 0);Ac(this,Et,new Set(t))}getLeadingWhitespaceCount(t){let r=Ut(this,Et),n=0;for(let i=0;i<t.length&&r.has(t.charAt(i));i++)n++;return n}getTrailingWhitespaceCount(t){let r=Ut(this,Et),n=0;for(let i=t.length-1;i>=0&&r.has(t.charAt(i));i--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return Ut(this,Et).has(t.charAt(0))}hasTrailingWhitespace(t){return Ut(this,Et).has(P(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${wr([...Ut(this,Et)].join(""))}]+`,i=new RegExp(r?`(${n})`:n);return t.split(i)}hasWhitespaceCharacter(t){let r=Ut(this,Et);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=Ut(this,Et);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=Ut(this,Et);return Array.prototype.every.call(t,n=>r.has(n))}};Et=new WeakMap;var Ds=Eo;function Co(e,t){var s,u,a,o,c,l;if(e.isRoot)return!1;let{node:r,key:n,parent:i}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&x0(r)&&Hn(e))return!0;if(h0(r))return!1;if(r.type==="Identifier"){if((s=r.extra)!=null&&s.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.name)||n==="left"&&(r.name==="async"&&!i.await||r.name==="let")&&i.type==="ForOfStatement")return!0;if(r.name==="let"){let p=(u=e.findAncestor(f=>f.type==="ForOfStatement"))==null?void 0:u.left;if(p&&Te(p,f=>f===r))return!0}if(n==="object"&&r.name==="let"&&i.type==="MemberExpression"&&i.computed&&!i.optional){let p=e.findAncestor(d=>d.type==="ExpressionStatement"||d.type==="ForStatement"||d.type==="ForInStatement"),f=p?p.type==="ExpressionStatement"?p.expression:p.type==="ForStatement"?p.init:p.left:void 0;if(f&&Te(f,d=>d===r))return!0}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let p=(a=e.findAncestor(f=>f.type==="ExpressionStatement"))==null?void 0:a.expression;if(p&&Te(p,f=>f===r))return!0}switch(i.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"))return!0;break;case"ExportDefaultDeclaration":return jp(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"){if(G(r)&&r.computed)return!0;let p=!1,f=!1,d=r;for(;d;)switch(d.type){case"MemberExpression":f=!0,d=d.object;break;case"CallExpression":if(f||p)return t.parser!=="typescript";p=!0,d=d.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return t.parser!=="typescript";default:return!0}return!0}break;case"ArrowFunctionExpression":if(n==="body"&&r.type!=="SequenceExpression"&&Te(r,p=>p.type==="ObjectExpression"))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(p,f)=>f==="returnType"&&p.type==="ArrowFunctionExpression")&&C0(r))return!0;break}switch(r.type){case"UpdateExpression":if(i.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&i.operator==="+"||r.operator==="--"&&i.operator==="-");case"UnaryExpression":switch(i.type){case"UnaryExpression":return r.operator===i.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&i.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(i.type==="UpdateExpression"||r.operator==="in"&&E0(e))return!0;if(r.operator==="|>"&&((o=r.extra)!=null&&o.parenthesized)){let p=e.grandparent;if(p.type==="BinaryExpression"&&p.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(i.type){case"TSAsExpression":case"TSSatisfiesExpression":return!ht(r);case"ConditionalExpression":return ht(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||ht(r));case"LogicalExpression":if(r.type==="LogicalExpression")return i.operator!==r.operator;case"BinaryExpression":{let{operator:p,type:f}=r;if(!p&&f!=="TSTypeAssertion")return!0;let d=Wn(p),m=i.operator,g=Wn(m);return g>d||n==="right"&&g===d||g===d&&!Vn(m,p)?!0:g<d&&p==="%"?m==="+"||m==="-":!!mp(m)}default:return!1}case"SequenceExpression":switch(i.type){case"ReturnStatement":return!1;case"ForStatement":return!1;case"ExpressionStatement":return n!=="expression";case"ArrowFunctionExpression":return n!=="body";default:return!0}case"YieldExpression":if(i.type==="AwaitExpression")return!0;case"AwaitExpression":switch(i.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"BinaryExpression":return!(!r.argument&&i.operator==="|>");default:return!1}case"TSFunctionType":if(e.match(p=>p.type==="TSFunctionType",(p,f)=>f==="typeAnnotation"&&p.type==="TSTypeAnnotation",(p,f)=>f==="returnType"&&p.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":if(n==="extendsType"&&i.type==="TSConditionalType"){if(r.type==="TSConditionalType")return!0;let{typeAnnotation:p}=r.returnType||r.typeAnnotation;if(p.type==="TSTypePredicate"&&p.typeAnnotation&&(p=p.typeAnnotation.typeAnnotation),p.type==="TSInferType"&&p.typeParameter.constraint)return!0}if(n==="checkType"&&i.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((i.type==="TSUnionType"||i.type==="TSIntersectionType")&&i.types.length>1&&(!r.types||r.types.length>1))return!0;case"TSInferType":if(r.type==="TSInferType"&&i.type==="TSRestType")return!1;case"TSTypeOperator":return i.type==="TSArrayType"||i.type==="TSOptionalType"||i.type==="TSRestType"||n==="objectType"&&i.type==="TSIndexedAccessType"||i.type==="TSTypeOperator"||i.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&i.type==="TSIndexedAccessType"||n==="elementType"&&i.type==="TSArrayType";case"ArrayTypeAnnotation":return i.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return i.type==="ArrayTypeAnnotation"||i.type==="NullableTypeAnnotation"||i.type==="IntersectionTypeAnnotation"||i.type==="UnionTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType");case"NullableTypeAnnotation":return i.type==="ArrayTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{if(e.match(void 0,(f,d)=>d==="typeAnnotation"&&f.type==="TypeAnnotation",(f,d)=>d==="returnType"&&f.type==="ArrowFunctionExpression"))return!0;let p=i.type==="NullableTypeAnnotation"?e.grandparent:i;return p.type==="UnionTypeAnnotation"||p.type==="IntersectionTypeAnnotation"||p.type==="ArrayTypeAnnotation"||n==="objectType"&&(p.type==="IndexedAccessType"||p.type==="OptionalIndexedAccessType")||p.type==="NullableTypeAnnotation"||i.type==="FunctionTypeParam"&&i.name===null&&ae(r).some(f=>{var d;return((d=f.typeAnnotation)==null?void 0:d.type)==="NullableTypeAnnotation"})}case"OptionalIndexedAccessType":return n==="objectType"&&i.type==="IndexedAccessType";case"TypeofTypeAnnotation":return n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType");case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&i.type==="ExpressionStatement"&&!i.directive){let p=e.grandparent;return p.type==="Program"||p.type==="BlockStatement"}return n==="object"&&i.type==="MemberExpression"&&typeof r.value=="number";case"AssignmentExpression":{let p=e.grandparent;return n==="body"&&i.type==="ArrowFunctionExpression"?!0:n==="key"&&(i.type==="ClassProperty"||i.type==="PropertyDefinition")&&i.computed||(n==="init"||n==="update")&&i.type==="ForStatement"?!1:i.type==="ExpressionStatement"?r.left.type==="ObjectPattern":!(n==="key"&&i.type==="TSPropertySignature"||i.type==="AssignmentExpression"||i.type==="SequenceExpression"&&p.type==="ForStatement"&&(p.init===i||p.update===i)||n==="value"&&i.type==="Property"&&p.type==="ObjectPattern"&&p.properties.includes(i)||i.type==="NGChainedExpression")}case"ConditionalExpression":switch(i.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(i.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(i.type){case"BinaryExpression":return i.operator!=="|>"||((c=r.extra)==null?void 0:c.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":if(N(r.decorators))return!0;switch(i.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(S0(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(i.type==="BindExpression"||i.type==="NewExpression")){let p=r;for(;p;)switch(p.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":p=p.object;break;case"TaggedTemplateExpression":p=p.tag;break;case"TSNonNullExpression":p=p.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(i.type==="BindExpression"||i.type==="NewExpression")||n==="object"&&G(i);case"NGPipeExpression":return!(i.type==="NGRoot"||i.type==="NGMicrosyntaxExpression"||i.type==="ObjectProperty"&&!((l=r.extra)!=null&&l.parenthesized)||z(i)||n==="arguments"&&R(i)||n==="right"&&i.type==="NGPipeExpression"||n==="property"&&i.type==="MemberExpression"||i.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&i.type==="BinaryExpression"&&i.operator==="<"||!z(i)&&i.type!=="ArrowFunctionExpression"&&i.type!=="AssignmentExpression"&&i.type!=="AssignmentPattern"&&i.type!=="BinaryExpression"&&i.type!=="NewExpression"&&i.type!=="ConditionalExpression"&&i.type!=="ExpressionStatement"&&i.type!=="JsExpressionRoot"&&i.type!=="JSXAttribute"&&i.type!=="JSXElement"&&i.type!=="JSXExpressionContainer"&&i.type!=="JSXFragment"&&i.type!=="LogicalExpression"&&!R(i)&&!Me(i)&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&i.type!=="TypeCastExpression"&&i.type!=="VariableDeclarator"&&i.type!=="YieldExpression"}return!1}var h0=le(["BlockStatement","BreakStatement","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function E0(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if((n==null?void 0:n.type)==="ForStatement"&&n.init===r)return!0;r=n}return!1}function C0(e){return Br(e,t=>t.type==="ObjectTypeAnnotation"&&Br(t,r=>r.type==="FunctionTypeAnnotation"||void 0)||void 0)}function x0(e){return ye(e)}function Hn(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(Hn);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(Hn);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(Hn);break;case"UnaryExpression":if(t.prefix)return e.callParent(Hn);break}return!1}function jp(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!Co(e,t):!en(r)||n.type!=="ExportDefaultDeclaration"&&Co(e,t)?!1:e.call(()=>jp(e,t),...ts(r))}function S0(e){let{node:t,parent:r,grandparent:n,key:i}=e;return!!((t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression")&&(i==="object"&&r.type==="MemberExpression"||i==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression")||r.type==="TSNonNullExpression"&&n.type==="MemberExpression"&&n.object===r)||e.match(()=>t.type==="CallExpression"||t.type==="MemberExpression",(s,u)=>u==="expression"&&s.type==="ChainExpression")&&(e.match(void 0,void 0,(s,u)=>u==="callee"&&(s.type==="CallExpression"&&!s.optional||s.type==="NewExpression")||u==="object"&&s.type==="MemberExpression"&&!s.optional)||e.match(void 0,void 0,(s,u)=>u==="expression"&&s.type==="TSNonNullExpression",(s,u)=>u==="object"&&s.type==="MemberExpression"))||e.match(()=>t.type==="CallExpression"||t.type==="MemberExpression",(s,u)=>u==="expression"&&s.type==="TSNonNullExpression",(s,u)=>u==="expression"&&s.type==="ChainExpression",(s,u)=>u==="object"&&s.type==="MemberExpression"))}var Ct=Co;var gs=new Ds(`
51
+ \r `),xo=e=>e===""||e===C||e===y||e===h;function T0(e,t,r){var k,v;let{node:n}=e;if(n.type==="JSXElement"&&M0(n))return[r("openingElement"),r("closingElement")];let i=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),s=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[i,...e.map(r,"children"),s];n.children=n.children.map(T=>j0(T)?{type:"JSXText",value:" ",raw:" "}:T);let u=n.children.some(ue),a=n.children.filter(T=>T.type==="JSXExpressionContainer").length>1,o=n.type==="JSXElement"&&n.openingElement.attributes.length>1,c=ce(i)||u||o||a,l=e.parent.rootMarker==="mdx",p=t.singleQuote?"{' '}":'{" "}',f=l?" ":L([p,h]," "),d=((v=(k=n.openingElement)==null?void 0:k.name)==null?void 0:v.name)==="fbt",m=A0(e,t,r,f,d),g=n.children.some(T=>Un(T));for(let T=m.length-2;T>=0;T--){let _=m[T]===""&&m[T+1]==="",b=m[T]===y&&m[T+1]===""&&m[T+2]===y,w=(m[T]===h||m[T]===y)&&m[T+1]===""&&m[T+2]===f,j=m[T]===f&&m[T+1]===""&&(m[T+2]===h||m[T+2]===y),H=m[T]===f&&m[T+1]===""&&m[T+2]===f,W=m[T]===h&&m[T+1]===""&&m[T+2]===y||m[T]===y&&m[T+1]===""&&m[T+2]===h;b&&g||_||w||H||W?m.splice(T,2):j&&m.splice(T+1,2)}for(;m.length>0&&xo(P(!1,m,-1));)m.pop();for(;m.length>1&&xo(m[0])&&xo(m[1]);)m.shift(),m.shift();let x=[];for(let[T,_]of m.entries()){if(_===f){if(T===1&&m[T-1]===""){if(m.length===2){x.push(p);continue}x.push([p,y]);continue}else if(T===m.length-1){x.push(p);continue}else if(m[T-1]===""&&m[T-2]===y){x.push(p);continue}}x.push(_),ce(_)&&(c=!0)}let S=g?ie(x):D(x,{shouldBreak:!0});if(l)return S;let F=D([i,E([y,S]),y,s]);return c?F:Le([D([i,...m,s]),F])}function A0(e,t,r,n,i){let s=[];return e.each(({node:u,next:a})=>{if(u.type==="JSXText"){let o=be(u);if(Un(u)){let c=gs.split(o,!0);c[0]===""&&(s.push(""),c.shift(),/\n/.test(c[0])?s.push($p(i,c[1],u,a)):s.push(n),c.shift());let l;if(P(!1,c,-1)===""&&(c.pop(),l=c.pop()),c.length===0)return;for(let[p,f]of c.entries())p%2===1?s.push(C):s.push(f);l!==void 0?/\n/.test(l)?s.push($p(i,P(!1,s,-1),u,a)):s.push(n):s.push(Rp(i,P(!1,s,-1),u,a))}else/\n/.test(o)?o.match(/\n/g).length>1&&s.push("",y):s.push("",n)}else{let o=r();if(s.push(o),a&&Un(a)){let l=gs.trim(be(a)),[p]=gs.split(l);s.push(Rp(i,p,u,a))}else s.push(y)}},"children"),s}function Rp(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?h:y:h}function $p(e,t,r,n){return e?y:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?y:h:y}var F0=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function b0(e,t,r){let{parent:n}=e;if(F0.has(n.type))return t;let i=e.match(void 0,u=>u.type==="ArrowFunctionExpression",R,u=>u.type==="JSXExpressionContainer"),s=Ct(e,r);return D([s?"":L("("),E([h,t]),h,s?"":L(")")],{shouldBreak:i})}function v0(e,t,r){let{node:n}=e,i=[];if(i.push(r("name")),n.value){let s;if(De(n.value)){let u=be(n.value),a=I(!1,I(!1,u.slice(1,-1),"&apos;","'"),"&quot;",'"'),{escaped:o,quote:c,regex:l}=yr(a,t.jsxSingleQuote?"'":'"');a=a.replace(l,o),s=e.call(()=>Ee(e,$(c+a+c),t),"value")}else s=r("value");i.push("=",s)}return i}function B0(e,t,r){let{node:n}=e,i=(s,u)=>s.type==="JSXEmptyExpression"||!B(s)&&(z(s)||ye(s)||s.type==="ArrowFunctionExpression"||s.type==="AwaitExpression"&&(i(s.argument,s)||s.argument.type==="JSXElement")||R(s)||s.type==="ChainExpression"&&R(s.expression)||s.type==="FunctionExpression"||s.type==="TemplateLiteral"||s.type==="TaggedTemplateExpression"||s.type==="DoExpression"||ue(u)&&(s.type==="ConditionalExpression"||Ne(s)));return i(n.expression,e.parent)?D(["{",r("expression"),Dt,"}"]):D(["{",E([h,r("expression")]),h,Dt,"}"])}function k0(e,t,r){var a,o;let{node:n}=e,i=B(n.name)||B(n.typeParameters);if(n.selfClosing&&n.attributes.length===0&&!i)return["<",r("name"),r("typeParameters")," />"];if(((a=n.attributes)==null?void 0:a.length)===1&&n.attributes[0].value&&De(n.attributes[0].value)&&!n.attributes[0].value.value.includes(`
52
+ `)&&!i&&!B(n.attributes[0]))return D(["<",r("name"),r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let s=(o=n.attributes)==null?void 0:o.some(c=>c.value&&De(c.value)&&c.value.value.includes(`
53
+ `)),u=t.singleAttributePerLine&&n.attributes.length>1?y:C;return D(["<",r("name"),r("typeParameters"),E(e.map(()=>[u,r()],"attributes")),...P0(n,t,i)],{shouldBreak:s})}function P0(e,t,r){return e.selfClosing?[C,"/>"]:w0(e,t,r)?[">"]:[h,">"]}function w0(e,t,r){let n=e.attributes.length>0&&B(P(!1,e.attributes,-1),O.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function _0(e,t,r){let{node:n}=e,i=[];i.push("</");let s=r("name");return B(n.name,O.Leading|O.Line)?i.push(E([y,s]),y):B(n.name,O.Leading|O.Block)?i.push(" ",s):i.push(s),i.push(">"),i}function L0(e,t){let{node:r}=e,n=B(r),i=B(r,O.Line),s=r.type==="JSXOpeningFragment";return[s?"<":"</",E([i?y:n&&!s?" ":"",J(e,t)]),i?y:"",">"]}function I0(e,t,r){let n=Ee(e,T0(e,t,r),t);return b0(e,n,t)}function O0(e,t){let{node:r}=e,n=B(r,O.Line);return[J(e,t,{indent:n}),n?y:""]}function N0(e,t,r){let{node:n}=e;return["{",e.call(({node:i})=>{let s=["...",r()];return!B(i)||!So(e)?s:[E([h,Ee(e,s,t)]),h]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Wp(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return v0(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return A(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return A(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return N0(e,t,r);case"JSXExpressionContainer":return B0(e,t,r);case"JSXFragment":case"JSXElement":return I0(e,t,r);case"JSXOpeningElement":return k0(e,t,r);case"JSXClosingElement":return _0(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return L0(e,t);case"JSXEmptyExpression":return O0(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new ee(n,"JSX")}}function M0(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Un(t)}function Un(e){return e.type==="JSXText"&&(gs.hasNonWhitespaceCharacter(be(e))||!/\n/.test(be(e)))}function j0(e){return e.type==="JSXExpressionContainer"&&De(e.expression)&&e.expression.value===" "&&!B(e.expression)}function qp(e){let{node:t,parent:r}=e;if(!ue(t)||!ue(r))return!1;let{index:n,siblings:i}=e,s;for(let u=n;u>0;u--){let a=i[u-1];if(!(a.type==="JSXText"&&!Un(a))){s=a;break}}return(s==null?void 0:s.type)==="JSXExpressionContainer"&&s.expression.type==="JSXEmptyExpression"&&rn(s.expression)}var hs={};fe(hs,{avoidAstMutation:()=>mE,endOfLine:()=>J0,ownLine:()=>V0,remaining:()=>G0});function R0(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Oe(e,n),n=Xr(e,n),n=Qr(e,n),n=at(e,n);return n}var Qe=R0;function $0(e,t){let r=Qe(e,t);return r===!1?"":e.charAt(r)}var ft=$0;function W0(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
54
+ `)return!0;return!1}var $t=W0;function q0(e){return Fe(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value)}var Vp=q0;function V0(e){return[zp,Up,U0,Ao,Fo,Jp,Gp,sE,nE,vo,Yp,uE,Hp,Kp,bo].some(t=>t(e))}function J0(e){return[H0,Up,K0,Yp,Ao,Fo,Jp,Gp,Kp,rE,iE,vo,cE,bo,fE].some(t=>t(e))}function G0(e){return[zp,Ao,Fo,Y0,tE,Hp,vo,eE,Z0,pE,bo,lE].some(t=>t(e))}function _r(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?Z(r,t):de(e,t)}function To(e,t){e.type==="BlockStatement"?_r(e,t):Z(e,t)}function H0({comment:e,followingNode:t}){return t&&Vp(e)?(Z(t,e),!0):!1}function Ao({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if(ft(i,q(e))===")")return X(t,e),!0;if(t===r.consequent&&n===r.alternate){if(t.type==="BlockStatement")X(t,e);else{let u=e.type==="SingleLine"||e.loc.start.line===e.loc.end.line,a=e.loc.start.line===t.loc.start.line;u&&a?de(t,e,ls):de(r,e)}return!0}return n.type==="BlockStatement"?(_r(n,e),!0):n.type==="IfStatement"?(To(n.consequent,e),!0):r.consequent===n?(Z(n,e),!0):!1}function Fo({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){return(r==null?void 0:r.type)!=="WhileStatement"||!n?!1:ft(i,q(e))===")"?(X(t,e),!0):n.type==="BlockStatement"?(_r(n,e),!0):r.body===n?(Z(n,e),!0):!1}function Jp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TryStatement"&&(r==null?void 0:r.type)!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?(X(t,e),!0):n.type==="BlockStatement"?(_r(n,e),!0):n.type==="TryStatement"?(To(n.finalizer,e),!0):n.type==="CatchClause"?(To(n.body,e),!0):!1}function U0({comment:e,enclosingNode:t,followingNode:r}){return G(t)&&(r==null?void 0:r.type)==="Identifier"?(Z(t,e),!0):!1}function K0({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){let s=t&&!$t(i,q(t),te(e));return(!t||!s)&&((r==null?void 0:r.type)==="ConditionalExpression"||(r==null?void 0:r.type)==="TSConditionalType")&&n?(Z(n,e),!0):!1}function Y0({comment:e,precedingNode:t,enclosingNode:r}){return Me(r)&&r.shorthand&&r.key===t&&r.value.type==="AssignmentPattern"?(X(r.value.left,e),!0):!1}var z0=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function Gp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(z0.has(r==null?void 0:r.type)){if(N(r.decorators)&&(n==null?void 0:n.type)!=="Decorator")return X(P(!1,r.decorators,-1),e),!0;if(r.body&&n===r.body)return _r(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return X(t,e),!0;for(let i of["implements","extends","mixins"])if(r[i]&&n===r[i][0])return t&&(t===r.id||t===r.typeParameters||t===r.superClass)?X(t,e):de(r,e,i),!0}}return!1}var X0=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function Hp({comment:e,precedingNode:t,enclosingNode:r,text:n}){return r&&t&&ft(n,q(e))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&ft(n,q(t))!==":"?(X(t,e),!0):(t==null?void 0:t.type)==="Decorator"&&X0.has(r==null?void 0:r.type)?(X(t,e),!0):!1}var Q0=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function Z0({comment:e,precedingNode:t,enclosingNode:r,text:n}){return ft(n,q(e))!=="("?!1:t&&Q0.has(r==null?void 0:r.type)?(X(t,e),!0):!1}function eE({comment:e,enclosingNode:t,text:r}){if((t==null?void 0:t.type)!=="ArrowFunctionExpression")return!1;let n=Qe(r,q(e));return n!==!1&&r.slice(n,n+2)==="=>"?(de(t,e),!0):!1}function tE({comment:e,enclosingNode:t,text:r}){return ft(r,q(e))!==")"?!1:t&&(Xp(t)&&ae(t).length===0||mr(t)&&pt(t).length===0)?(de(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&ae(t.value).length===0?(de(t.value,e),!0):!1}function Up({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){if((t==null?void 0:t.type)==="FunctionTypeParam"&&(r==null?void 0:r.type)==="FunctionTypeAnnotation"&&(n==null?void 0:n.type)!=="FunctionTypeParam")return X(t,e),!0;if(((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern")&&r&&Xp(r)&&ft(i,q(e))===")")return X(t,e),!0;if((r==null?void 0:r.type)==="FunctionDeclaration"&&(n==null?void 0:n.type)==="BlockStatement"){let s=(()=>{let u=ae(r);if(u.length>0)return Qe(i,q(P(!1,u,-1)));let a=Qe(i,q(r.id));return a!==!1&&Qe(i,a+1)})();if(te(e)>s)return _r(n,e),!0}return!1}function Kp({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(Z(t,e),!0):!1}function bo({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(X(t,e),!0):!1}function rE({comment:e,precedingNode:t,enclosingNode:r}){return R(r)&&t&&r.callee===t&&r.arguments.length>0?(Z(r.arguments[0],e),!0):!1}function nE({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)==="UnionTypeAnnotation"||(r==null?void 0:r.type)==="TSUnionType"?(Jn(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(X(t,e),!0):!1):(((n==null?void 0:n.type)==="UnionTypeAnnotation"||(n==null?void 0:n.type)==="TSUnionType")&&Jn(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function iE({comment:e,enclosingNode:t}){return Me(t)?(Z(t,e),!0):!1}function vo({comment:e,enclosingNode:t,followingNode:r,ast:n,isLastComment:i}){var s;return((s=n==null?void 0:n.body)==null?void 0:s.length)===0?(i?de(n,e):Z(n,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!N(t.directives)?(i?de(t,e):Z(t,e),!0):(r==null?void 0:r.type)==="Program"&&r.body.length===0&&(t==null?void 0:t.type)==="ModuleExpression"?(de(r,e),!0):!1}function sE({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement"?(Z(t,e),!0):!1}function Yp({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return Z(r,e),!0;let i=(t==null?void 0:t.type)==="ImportSpecifier"&&(r==null?void 0:r.type)==="ImportDeclaration",s=(t==null?void 0:t.type)==="ExportSpecifier"&&(r==null?void 0:r.type)==="ExportNamedDeclaration";return(i||s)&&Y(n,q(e))?(X(t,e),!0):!1}function uE({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(Z(t,e),!0):!1}var aE=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),oE=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function cE({comment:e,enclosingNode:t,followingNode:r}){return aE.has(t==null?void 0:t.type)&&r&&(oE.has(r.type)||Fe(e))?(Z(r,e),!0):!1}function lE({comment:e,enclosingNode:t,followingNode:r,text:n}){return!r&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&ft(n,q(e))===";"?(X(t,e),!0):!1}function zp({comment:e,enclosingNode:t,followingNode:r}){if(Jn(e)&&(t==null?void 0:t.type)==="TSMappedType"&&(r==null?void 0:r.type)==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function pE({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TSMappedType"?!1:(n==null?void 0:n.type)==="TSTypeParameter"&&n.name?(Z(n.name,e),!0):(t==null?void 0:t.type)==="TSTypeParameter"&&t.constraint?(X(t.constraint,e),!0):!1}function fE({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&qn(e)?_r(r,e):de(t,e),!0)}var Xp=le(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),mE=!0;function dE(e){let t=`*${e.value}*`.split(`
55
+ `);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Qp=dE;function Zp(e,t){let r=e.node;if(qn(r))return t.originalText.slice(te(r),q(r)).trimEnd();if(Fe(r))return Qp(r)?yE(r):["/*",$(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function yE(e){let t=e.value.split(`
56
+ `);return["/*",A(y,t.map((r,n)=>n===0?r.trimEnd():" "+(n<t.length-1?r.trim():r.trimStart()))),"*/"]}var DE=new Set(["EmptyStatement","TemplateElement","Import","TSEmptyBodyFunctionExpression","ChainExpression"]);function gE(e){return!DE.has(e.type)}function hE(e,t){var r;if((t.parser==="typescript"||t.parser==="flow"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree")&&e.type==="MethodDefinition"&&((r=e.value)==null?void 0:r.type)==="FunctionExpression"&&ae(e.value).length===0&&!e.value.returnType&&!N(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function EE(e){return rn(e.node)||qp(e)}function So({node:e,parent:t}){return(ue(e)||t&&(t.type==="JSXSpreadAttribute"||t.type==="JSXSpreadChild"||t.type==="UnionTypeAnnotation"||t.type==="TSUnionType"||(t.type==="ClassDeclaration"||t.type==="ClassExpression")&&t.superClass===e))&&(!rn(e)||t.type==="UnionTypeAnnotation"||t.type==="TSUnionType")}function CE(e,{parser:t}){if(t==="flow"||t==="babel-flow")return e=I(!1,e,/[\s(]/g,""),e===""||e==="/*"||e==="/*::"}function ef(e,t,r){var s;let{node:n,isRoot:i}=e;if(i&&((s=t.__onHtmlBindingRoot)==null||s.call(t,n,t)),n.type==="File"&&(t.__isVueBindings||t.__isVueForBindingLeft)){let u=e.map(r,"program","body",0,"params");if(u.length===1)return u[0];let a=A([",",C],u);return t.__isVueForBindingLeft?["(",E([h,D(a)]),h,")"]:a}}function ko(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return ko(e.object)}return!1;case"Identifier":return!0;default:return!1}}var xE=0;function Es(e,t,r){let{node:n,parent:i,grandparent:s,key:u}=e,a=u!=="body"&&(i.type==="IfStatement"||i.type==="WhileStatement"||i.type==="SwitchStatement"||i.type==="DoWhileStatement"),o=Do(t)&&n.operator==="|>",c=Po(e,r,t,!1,a);if(a)return c;if(o)return D(c);if(R(i)&&i.callee===n||i.type==="UnaryExpression"||G(i)&&!i.computed)return D([E([h,...c]),h]);let l=i.type==="ReturnStatement"||i.type==="ThrowStatement"||i.type==="JSXExpressionContainer"&&s.type==="JSXAttribute"||n.operator!=="|"&&i.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(i.type==="NGRoot"&&t.parser==="__ng_binding"||i.type==="NGMicrosyntaxExpression"&&s.type==="NGMicrosyntax"&&s.body.length===1)||n===i.body&&i.type==="ArrowFunctionExpression"||n!==i.body&&i.type==="ForStatement"||i.type==="ConditionalExpression"&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&!R(s)||i.type==="TemplateLiteral",p=i.type==="AssignmentExpression"||i.type==="VariableDeclarator"||i.type==="ClassProperty"||i.type==="PropertyDefinition"||i.type==="TSAbstractPropertyDefinition"||i.type==="ClassPrivateProperty"||Me(i),f=Ne(n.left)&&Vn(n.operator,n.left.operator);if(l||un(n)&&!f||!un(n)&&p)return D(c);if(c.length===0)return"";let d=ue(n.right),m=c.findIndex(v=>typeof v!="string"&&!Array.isArray(v)&&v.type===me),g=c.slice(0,m===-1?1:m+1),x=c.slice(g.length,d?-1:void 0),S=Symbol("logicalChain-"+ ++xE),F=D([...g,E(x)],{id:S});if(!d)return F;let k=P(!1,c,-1);return D([F,Yt(k,{groupId:S})])}function Po(e,t,r,n,i){let{node:s}=e;if(!Ne(s))return[D(t())];let u=[];Vn(s.operator,s.left.operator)?u=e.call(g=>Po(g,t,r,!0,i),"left"):u.push(D(t("left")));let a=un(s),o=(s.operator==="|>"||s.type==="NGPipeExpression"||s.operator==="|"&&r.parser==="__vue_expression")&&!kt(r.originalText,s.right),c=s.type==="NGPipeExpression"?"|":s.operator,l=s.type==="NGPipeExpression"&&s.arguments.length>0?D(E([C,": ",A([C,": "],e.map(()=>Q(2,D(t())),"arguments"))])):"",p;if(a)p=[c," ",t("right"),l];else{let x=Do(r)&&c==="|>"?e.call(S=>Po(S,t,r,!0,i),"right"):t("right");p=[o?C:"",c,o?" ":C,x,l]}let{parent:f}=e,d=B(s.left,O.Trailing|O.Line),m=d||!(i&&s.type==="LogicalExpression")&&f.type!==s.type&&s.left.type!==s.type&&s.right.type!==s.type;if(u.push(o?"":" ",m?D(p,{shouldBreak:d}):p),n&&B(s)){let g=Nt(Ee(e,u,r));return Array.isArray(g)||g.type===he?Tr(g):[g]}return u}function un(e){return e.type!=="LogicalExpression"?!1:!!(ye(e.right)&&e.right.properties.length>0||z(e.right)&&e.right.elements.length>0||ue(e.right))}function rf(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),B(n.node)?" //"+Gn(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return Es(e,t,r);case"NGChainedExpression":return D(A([";",C],e.map(()=>SE(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":tf(e)?" ":[";",C],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:i,parent:s}=e,u=tf(e)||(i===1&&(n.key.name==="then"||n.key.name==="else")||i===2&&n.key.name==="else"&&s.body[i-1].type==="NGMicrosyntaxKeyedExpression"&&s.body[i-1].key.name==="then")&&s.body[0].type==="NGMicrosyntaxExpression";return[r("key"),u?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new ee(n,"Angular")}}function tf({node:e,index:t,parent:r}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1&&r.body[0].type==="NGMicrosyntaxLet"&&r.body[0].value===null}function SE(e){return Br(e.node,t=>{switch(t.type){case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}function TE(e,t,r){let n=t==='"'?"'":'"',s=I(!1,e,/\\(.)|(["'])/gs,(u,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return t+s+t}var Cs=TE;function AE(e,t){let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":yr(r,t.singleQuote?"'":'"').quote;return Cs(r,n,!(t.parser==="css"||t.parser==="less"||t.parser==="scss"||t.__embeddedInHtml))}var Wt=AE;function FE(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var mt=FE;function bE(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var xs=bE;function ne(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":R(t)||G(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function Ss(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var vE=new Set(["DeclareClass","DeclareFunction","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function pe(e){let{node:t}=e;return t.declare||vE.has(t.type)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var BE=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function an({node:e}){return e.abstract||BE.has(e.type)?"abstract ":""}function Pt(e,t,r){let n=e.node;return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function Ts(e,t,r){return["::",r("callee")]}function tr(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?[" ",t]:E([C,t])}function As(e,t){return["...",t("argument"),re(e,t)]}function on(e){return e.accessibility?e.accessibility+" ":""}function kE(e,t,r,n){let{node:i}=e;return B(i,O.Dangling)?D([r,J(e,t,{indent:!0}),h,n]):[r,n]}function cn(e,t,r){let{node:n}=e,i=[],s=n.type==="TupleExpression"?"#[":"[",u="]",a=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",o=n[a];if(o.length===0)i.push(kE(e,t,s,u));else{let c=P(!1,o,-1),l=(c==null?void 0:c.type)!=="RestElement",p=c===null,f=Symbol("array"),d=!t.__inJestEach&&o.length>1&&o.every((x,S,F)=>{let k=x==null?void 0:x.type;if(!z(x)&&!ye(x))return!1;let v=F[S+1];if(v&&k!==v.type)return!1;let T=z(x)?"elements":"properties";return x[T]&&x[T].length>1}),m=wo(n,t),g=l?p?",":ke(t)?m?L(",","",{groupId:f}):L(","):"":"";i.push(D([s,E([h,m?wE(e,t,r,g):[PE(e,t,a,r),g],J(e,t)]),h,u],{shouldBreak:d,id:f}))}return i.push(ne(e),re(e,r)),i}function wo(e,t){return z(e)&&e.elements.length>1&&e.elements.every(r=>r&&(lt(r)||rs(r)&&!B(r.argument))&&!B(r,O.Trailing|O.Line,n=>!Y(t.originalText,te(n),{backwards:!0})))}function PE(e,t,r,n){let i=[];return e.each(({node:s,isLast:u})=>{i.push(s?D(n()):""),u||i.push([",",C,s&&Ce(s,t)?h:""])},r),i}function wE(e,t,r,n){let i=[];return e.each(({node:s,isLast:u,next:a})=>{i.push([r(),u?n:","]),u||i.push(Ce(s,t)?[y,y]:B(a,O.Leading|O.Line)?y:C)},"elements"),ie(i)}function _E(e,t,r){let{node:n}=e,i=pt(n);if(i.length===0)return["(",J(e,t),")"];if(OE(i))return["(",r(["arguments",0]),", ",r(["arguments",1]),")"];let s=!1,u=i.length-1,a=[];cs(e,({node:f},d)=>{let m=r();d===u||(Ce(f,t)?(s=!0,m=[m,",",y,y]):m=[m,",",C]),a.push(m)});let c=!(n.type==="ImportExpression"||n.callee.type==="Import")&&ke(t,"all")?",":"";function l(){return D(["(",E([C,...a]),c,C,")"],{shouldBreak:!0})}if(s||e.parent.type!=="Decorator"&&lp(i))return l();if(IE(i)){let f=a.slice(1);if(f.some(ce))return l();let d;try{d=r(yo(n,0),{expandFirstArg:!0})}catch(m){if(m instanceof Xt)return l();throw m}return ce(d)?[K,Le([["(",D(d,{shouldBreak:!0}),", ",...f,")"],l()])]:Le([["(",d,", ",...f,")"],["(",D(d,{shouldBreak:!0}),", ",...f,")"],l()])}if(LE(i,a,t)){let f=a.slice(0,-1);if(f.some(ce))return l();let d;try{d=r(yo(n,-1),{expandLastArg:!0})}catch(m){if(m instanceof Xt)return l();throw m}return ce(d)?[K,Le([["(",...f,D(d,{shouldBreak:!0}),")"],l()])]:Le([["(",...f,d,")"],["(",...f,D(d,{shouldBreak:!0}),")"],l()])}let p=["(",E([h,...a]),L(c),h,")"];return os(e)?p:D(p,{shouldBreak:a.some(ce)||s})}function Kn(e,t=!1){return ye(e)&&(e.properties.length>0||B(e))||z(e)&&(e.elements.length>0||B(e))||e.type==="TSTypeAssertion"&&Kn(e.expression)||ht(e)&&Kn(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||NE(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&Kn(e.body,!0)||ye(e.body)||z(e.body)||!t&&(R(e.body)||e.body.type==="ConditionalExpression")||ue(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function LE(e,t,r){var s,u;let n=P(!1,e,-1);if(e.length===1){let a=P(!1,t,-1);if((s=a.label)!=null&&s.embed&&((u=a.label)==null?void 0:u.hug)!==!1)return!0}let i=P(!1,e,-2);return!B(n,O.Leading)&&!B(n,O.Trailing)&&Kn(n)&&(!i||i.type!==n.type)&&(e.length!==2||i.type!=="ArrowFunctionExpression"||!z(n))&&!(e.length>1&&wo(n,r))}function IE(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&ME(r)?!0:!B(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&nf(r)&&!Kn(r)}function nf(e){var t;if(e.type==="ParenthesizedExpression")return nf(e.expression);if(ht(e)){let{typeAnnotation:r}=e;return r.type==="TSArrayType"&&(r=r.elementType,r.type==="TSArrayType"&&(r=r.elementType)),(r.type==="GenericTypeAnnotation"||r.type==="TSTypeReference")&&((t=r.typeParameters)==null?void 0:t.params.length)===1&&(r=r.typeParameters.params[0]),tn(r)&&ct(e.expression,1)}return mr(e)&&pt(e).length>1?!1:Ne(e)?ct(e.left,1)&&ct(e.right,1):co(e)||ct(e)}function OE(e){return e.length===2&&e[0].type==="ArrowFunctionExpression"&&ae(e[0]).length===0&&e[0].body.type==="BlockStatement"&&e[1].type==="ArrayExpression"&&!e.some(t=>B(t))}function NE(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||B(e,O.Dangling))}function ME(e){return e.type==="ObjectExpression"&&e.properties.length===1&&Me(e.properties[0])&&e.properties[0].key.type==="Identifier"&&e.properties[0].key.name==="type"&&De(e.properties[0].value)&&e.properties[0].value.value==="module"}var Yn=_E;function sf(e,t,r){var c;let n=r("object"),i=_o(e,t,r),{node:s,parent:u}=e,a=e.findAncestor(l=>!(G(l)||l.type==="TSNonNullExpression")),o=a&&(a.type==="NewExpression"||a.type==="BindExpression"||a.type==="AssignmentExpression"&&a.left.type!=="Identifier")||s.computed||s.object.type==="Identifier"&&s.property.type==="Identifier"&&!G(u)||(u.type==="AssignmentExpression"||u.type==="VariableDeclarator")&&(R(s.object)&&s.object.arguments.length>0||s.object.type==="TSNonNullExpression"&&R(s.object.expression)&&s.object.expression.arguments.length>0||((c=n.label)==null?void 0:c.memberChain));return Ie(n.label,[n,o?i:D(E([h,i]))])}function _o(e,t,r){let n=r("property"),{node:i}=e,s=ne(e);return i.computed?!i.property||lt(i.property)?[s,"[",n,"]"]:D([s,"[",E([h,n]),h,"]"]):[s,".",n]}function jE(e,t,r){let{parent:n}=e,i=!n||n.type==="ExpressionStatement",s=[];function u(M){let{originalText:V}=t,se=Qe(V,q(M));return V.charAt(se)===")"?se!==!1&&ot(V,se+1):Ce(M,t)}function a(M){let{node:V}=M;R(V)&&(fr(V.callee)||R(V.callee))?(s.unshift({node:V,printed:[Ee(M,[ne(M),Pt(M,t,r),Yn(M,t,r)],t),u(V)?y:""]}),M.call(se=>a(se),"callee")):fr(V)?(s.unshift({node:V,needsParens:Ct(M,t),printed:Ee(M,G(V)?_o(M,t,r):Ts(M,t,r),t)}),M.call(se=>a(se),"object")):V.type==="TSNonNullExpression"?(s.unshift({node:V,printed:Ee(M,"!",t)}),M.call(se=>a(se),"expression")):s.unshift({node:V,printed:r()})}let{node:o}=e;s.unshift({node:o,printed:[ne(e),Pt(e,t,r),Yn(e,t,r)]}),o.callee&&e.call(M=>a(M),"callee");let c=[],l=[s[0]],p=1;for(;p<s.length&&(s[p].node.type==="TSNonNullExpression"||R(s[p].node)||G(s[p].node)&&s[p].node.computed&&lt(s[p].node.property));++p)l.push(s[p]);if(!R(s[0].node))for(;p+1<s.length&&(fr(s[p].node)&&fr(s[p+1].node));++p)l.push(s[p]);c.push(l),l=[];let f=!1;for(;p<s.length;++p){if(f&&fr(s[p].node)){if(s[p].node.computed&&lt(s[p].node.property)){l.push(s[p]);continue}c.push(l),l=[],f=!1}(R(s[p].node)||s[p].node.type==="ImportExpression")&&(f=!0),l.push(s[p]),B(s[p].node,O.Trailing)&&(c.push(l),l=[],f=!1)}l.length>0&&c.push(l);function d(M){return/^[A-Z]|^[$_]+$/.test(M)}function m(M){return M.length<=t.tabWidth}function g(M){var $u;let V=($u=M[1][0])==null?void 0:$u.node.computed;if(M[0].length===1){let vi=M[0][0].node;return vi.type==="ThisExpression"||vi.type==="Identifier"&&(d(vi.name)||i&&m(vi.name)||V)}let se=P(!1,M[0],-1).node;return G(se)&&se.property.type==="Identifier"&&(d(se.property.name)||V)}let x=c.length>=2&&!B(c[1][0].node)&&g(c);function S(M){let V=M.map(se=>se.printed);return M.length>0&&P(!1,M,-1).needsParens?["(",...V,")"]:V}function F(M){return M.length===0?"":E(D([y,A(y,M.map(S))]))}let k=c.map(S),v=k,T=x?3:2,_=c.flat(),b=_.slice(1,-1).some(M=>B(M.node,O.Leading))||_.slice(0,-1).some(M=>B(M.node,O.Trailing))||c[T]&&B(c[T][0].node,O.Leading);if(c.length<=T&&!b)return os(e)?v:D(v);let w=P(!1,c[x?1:0],-1).node,j=!R(w)&&u(w),H=[S(c[0]),x?c.slice(1,2).map(S):"",j?y:"",F(c.slice(x?2:1))],W=s.map(({node:M})=>M).filter(R);function tt(){let M=P(!1,P(!1,c,-1),-1).node,V=P(!1,k,-1);return R(M)&&ce(V)&&W.slice(0,-1).some(se=>se.arguments.some(Zr))}let ve;return b||W.length>2&&W.some(M=>!M.arguments.every(V=>ct(V)))||k.slice(0,-1).some(ce)||tt()?ve=D(H):ve=[ce(v)||j?K:"",Le([v,H])],Ie({memberChain:!0},ve)}var uf=jE;function Fs(e,t,r){var p;let{node:n,parent:i}=e,s=n.type==="NewExpression",u=n.type==="ImportExpression",a=ne(e),o=pt(n),c=o.length===1&&us(o[0],t.originalText);if(c||o.length>0&&!s&&!u&&(RE(n,i)||kr(n,i))){let f=[];if(cs(e,()=>{f.push(r())}),!(c&&((p=f[0].label)!=null&&p.embed)))return[s?"new ":"",r("callee"),a,Pt(e,t,r),"(",A(", ",f),")"]}if(!u&&!s&&fr(n.callee)&&!e.call(f=>Ct(f,t),"callee"))return uf(e,t,r);let l=[s?"new ":"",u?"import":r("callee"),a,Pt(e,t,r),Yn(e,t,r)];return u||R(n.callee)?D(l):l}function RE(e,t){if(e.callee.type!=="Identifier")return!1;if(e.callee.name==="require")return!0;if(e.callee.name==="define"){let r=pt(e);return t.type==="ExpressionStatement"&&(r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&De(r[0])&&r[1].type==="ArrayExpression")}return!1}function cf(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return af(r);case"BigIntLiteral":return bs(r.extra.raw);case"NumericLiteral":return mt(r.extra.raw);case"StringLiteral":return $(Wt(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DecimalLiteral":return mt(r.value)+"m";case"DirectiveLiteral":return of(r.extra.raw,t);case"Literal":{if(r.regex)return af(r.regex);if(r.bigint)return bs(r.raw);if(r.decimal)return mt(r.decimal)+"m";let{value:n}=r;return typeof n=="number"?mt(r.raw):typeof n=="string"?$E(e)?of(r.raw,t):$(Wt(r.raw,t)):String(n)}}}function $E(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&t.directive}function bs(e){return e.toLowerCase()}function af({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function of(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}var lf=le(["Literal","BigIntLiteral","BooleanLiteral","DecimalLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]);function Dr(e,t,r,n,i,s){let u=WE(e,t,r,n,s),a=s?r(s,{assignmentLayout:u}):"";switch(u){case"break-after-operator":return D([D(n),i,D(E([C,a]))]);case"never-break-after-operator":return D([D(n),i," ",a]);case"fluid":{let o=Symbol("assignment");return D([D(n),i,D(E(C),{id:o}),Dt,Yt(a,{groupId:o})])}case"break-lhs":return D([n,i," ",D(a)]);case"chain":return[D(n),i,C,a];case"chain-tail":return[D(n),i,E([C,a])];case"chain-tail-arrow-chain":return[D(n),i,a];case"only-left":return n}}function ff(e,t,r){let{node:n}=e;return Dr(e,t,r,r("left"),[" ",n.operator],"right")}function mf(e,t,r){return Dr(e,t,r,r("id")," =","init")}function WE(e,t,r,n,i){let{node:s}=e,u=s[i];if(!u)return"only-left";let a=!vs(u);if(e.match(vs,df,p=>!a||p.type!=="ExpressionStatement"&&p.type!=="VariableDeclaration"))return a?u.type==="ArrowFunctionExpression"&&u.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&vs(u.right)||kt(t.originalText,u))return"break-after-operator";if(u.type==="CallExpression"&&u.callee.name==="require"||t.parser==="json5"||t.parser==="json")return"never-break-after-operator";if(VE(s)||JE(s)||UE(s)||Lo(s)&&ta(n))return"break-lhs";let l=XE(s,n,t);return e.call(()=>qE(e,t,r,l),i)?"break-after-operator":l||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="BooleanLiteral"||lt(u)||u.type==="ClassExpression"?"never-break-after-operator":"fluid"}function qE(e,t,r,n){let i=e.node;if(Ne(i)&&!un(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:a}=i;return Ne(a)&&!un(a)}case"ClassExpression":return N(i.decorators)}if(n)return!1;let s=i,u=[];for(;;)if(s.type==="UnaryExpression")s=s.argument,u.push("argument");else if(s.type==="TSNonNullExpression")s=s.expression,u.push("expression");else break;return!!(De(s)||e.call(()=>yf(e,t,r),...u))}function VE(e){if(df(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>{var n;return Me(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function vs(e){return e.type==="AssignmentExpression"}function df(e){return vs(e)||e.type==="VariableDeclarator"}function JE(e){let t=HE(e);if(N(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}var GE=le(["TSTypeAliasDeclaration","TypeAlias"]);function HE(e){var t;if(GE(e))return(t=e.typeParameters)==null?void 0:t.params}function UE(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=pf(t.typeAnnotation);return N(r)&&r.length>1&&r.some(n=>N(pf(n))||n.type==="TSConditionalType")}function Lo(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}var KE=le(["TSTypeReference","GenericTypeAnnotation"]);function pf(e){var t;if(KE(e))return(t=e.typeParameters)==null?void 0:t.params}function yf(e,t,r,n=!1){var u;let{node:i}=e,s=()=>yf(e,t,r,!0);if(i.type==="ChainExpression"||i.type==="TSNonNullExpression")return e.call(s,"expression");if(R(i)){if((u=Fs(e,t,r).label)!=null&&u.memberChain)return!1;let o=pt(i);return!(o.length===0||o.length===1&&zE(o[0],t))||QE(i,r)?!1:e.call(s,"callee")}return G(i)?e.call(s,"object"):n&&(i.type==="Identifier"||i.type==="ThisExpression")}var YE=.25;function zE(e,{printWidth:t}){if(B(e))return!1;let r=t*YE;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=r||rs(e)&&!B(e.argument))return!0;let n=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return n?n.length<=r:De(e)?be(e).length<=r:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(`
57
+ `):lf(e)}function XE(e,t,r){if(!Me(e))return!1;t=Nt(t);let n=3;return typeof t=="string"&&$e(t)<r.tabWidth+n}function QE(e,t){let r=ZE(e);if(N(r)){if(r.length>1)return!0;if(r.length===1){let i=r[0];if(i.type==="TSUnionType"||i.type==="UnionTypeAnnotation"||i.type==="TSIntersectionType"||i.type==="IntersectionTypeAnnotation"||i.type==="TSTypeLiteral"||i.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(ce(t(n)))return!0}return!1}function ZE(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function gr(e,t,r,n,i){let s=e.node,u=ae(s),a=i?Pt(e,r,t):"";if(u.length===0)return[a,"(",J(e,r,{filter:m=>ft(r.originalText,q(m))===")"}),")"];let{parent:o}=e,c=kr(o),l=Io(s),p=[];if(yp(e,(m,g)=>{let x=g===u.length-1;x&&s.rest&&p.push("..."),p.push(t()),!x&&(p.push(","),c||l?p.push(" "):Ce(u[g],r)?p.push(y,y):p.push(C))}),n&&!tC(e)){if(ce(a)||ce(p))throw new Xt;return D([ur(a),"(",ur(p),")"])}let f=u.every(m=>!m.decorators);return l&&f?[a,"(",...p,")"]:c?[a,"(",...p,")"]:(is(o)||op(o)||o.type==="TypeAlias"||o.type==="UnionTypeAnnotation"||o.type==="TSUnionType"||o.type==="IntersectionTypeAnnotation"||o.type==="FunctionTypeAnnotation"&&o.returnType===s)&&u.length===1&&u[0].name===null&&s.this!==u[0]&&u[0].typeAnnotation&&s.typeParameters===null&&tn(u[0].typeAnnotation)&&!s.rest?r.arrowParens==="always"?["(",...p,")"]:p:[a,"(",E([h,...p]),L(!dp(s)&&ke(r,"all")?",":""),h,")"]}function Io(e){if(!e)return!1;let t=ae(e);if(t.length!==1)return!1;let[r]=t;return!B(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&Xe(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&Xe(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||ye(r.right)&&r.right.properties.length===0||z(r.right)&&r.right.elements.length===0))}function eC(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function Lr(e,t){var i;let r=eC(e);if(!r)return!1;let n=(i=e.typeParameters)==null?void 0:i.params;if(n){if(n.length>1)return!1;if(n.length===1){let s=n[0];if(s.constraint||s.default)return!1}}return ae(e).length===1&&(Xe(r)||ce(t))}function tC(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function Oo(e){if(tn(e)||Xe(e))return!0;if(e.type==="UnionTypeAnnotation"||e.type==="TSUnionType"){let t=e.types.filter(i=>i.type==="VoidTypeAnnotation"||i.type==="TSVoidKeyword"||i.type==="NullLiteralTypeAnnotation"||i.type==="TSNullKeyword").length,r=e.types.some(i=>i.type==="ObjectTypeAnnotation"||i.type==="TSTypeLiteral"||i.type==="GenericTypeAnnotation"||i.type==="TSTypeReference"),n=e.types.some(i=>B(i));if(e.types.length-1===t&&r&&!n)return!0}return!1}function Df(e,t,r){let n=t.semi?";":"",{node:i}=e,s=[pe(e),"opaque type ",r("id"),r("typeParameters")];return i.supertype&&s.push(": ",r("supertype")),i.impltype&&s.push(" = ",r("impltype")),s.push(n),s}function Bs(e,t,r){let n=t.semi?";":"",{node:i}=e,s=[pe(e)];s.push("type ",r("id"),r("typeParameters"));let u=i.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[Dr(e,t,r,s," =",u),n]}function ks(e,t,r){let{node:n}=e,i=e.map(r,"types"),s=[],u=!1;for(let a=0;a<i.length;++a)a===0?s.push(i[a]):Xe(n.types[a-1])&&Xe(n.types[a])?s.push([" & ",u?E(i[a]):i[a]]):!Xe(n.types[a-1])&&!Xe(n.types[a])?s.push(E([" &",C,i[a]])):(a>1&&(u=!0),s.push(" & ",a>1?E(i[a]):i[a]));return D(s)}function Ps(e,t,r){let{node:n}=e,{parent:i}=e,s=i.type!=="TypeParameterInstantiation"&&i.type!=="TSTypeParameterInstantiation"&&i.type!=="GenericTypeAnnotation"&&i.type!=="TSTypeReference"&&i.type!=="TSTypeAssertion"&&i.type!=="TupleTypeAnnotation"&&i.type!=="TSTupleType"&&!(i.type==="FunctionTypeParam"&&!i.name&&e.grandparent.this!==i)&&!((i.type==="TypeAlias"||i.type==="VariableDeclarator"||i.type==="TSTypeAliasDeclaration")&&kt(t.originalText,n)),u=Oo(n),a=e.map(l=>{let p=r();return u||(p=Q(2,p)),Ee(l,p,t)},"types");if(u)return A(" | ",a);let o=s&&!kt(t.originalText,n),c=[L([o?C:"","| "]),A([C,"| "],a)];return Ct(e,t)?D([E(c),h]):(i.type==="TupleTypeAnnotation"||i.type==="TSTupleType")&&i[i.type==="TupleTypeAnnotation"&&i.types?"types":"elementTypes"].length>1?D([E([L(["(",h]),c]),h,L(")")]):D(s?E(c):c)}function rC(e){var n;let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(is(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&pr(r,t)||r.type==="ObjectTypeCallProperty"||((n=e.getParentNode(2))==null?void 0:n.type)==="DeclareFunction"))}function ws(e,t,r){let{node:n}=e,i=[an(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&i.push("new ");let s=gr(e,r,t,!1,!0),u=[];return n.type==="FunctionTypeAnnotation"?u.push(rC(e)?" => ":": ",r("returnType")):u.push(re(e,r,n.returnType?"returnType":"typeAnnotation")),Lr(n,u)&&(s=D(s)),i.push(s,u),D(i)}function _s(e,t,r){return[r("objectType"),ne(e),"[",r("indexType"),"]"]}function No(e,t,r){let{node:n}=e;return[n.postfix?"":r,re(e,t),n.postfix?r:""]}function Ls(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function Is(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}var nC=new WeakSet;function re(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let i=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let s=e.call(gf,r);(s==="=>"||s===":"&&B(n,O.Leading))&&(i=!0),nC.add(n)}return i?[" ",t(r)]:t(r)}var gf=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")?"":":";function Os(e,t,r){let n=gf(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}var zn=xs("typeParameters");function Ir(e,t,r,n){let{node:i}=e;if(!i[n])return"";if(!Array.isArray(i[n]))return r(n);let s=e.getNode(2),u=s&&kr(s),a=e.match(l=>!(l[n].length===1&&Xe(l[n][0])),void 0,(l,p)=>p==="typeAnnotation",l=>l.type==="Identifier",Lo);if(i[n].length===0||!a&&(u||i[n].length===1&&(i[n][0].type==="NullableTypeAnnotation"||Oo(i[n][0]))))return["<",A(", ",e.map(r,n)),iC(e,t),">"];let c=i.type==="TSTypeParameterInstantiation"?"":ae(i).length===1&&fp(t)&&!i[n][0].constraint&&e.parent.type==="ArrowFunctionExpression"?",":ke(t)?L(","):"";return D(["<",E([h,A([",",C],e.map(r,n))]),c,h,">"],{id:zn(i)})}function iC(e,t){let{node:r}=e;if(!B(r,O.Dangling))return"";let n=!B(r,O.Line),i=J(e,t,{indent:!n});return n?i:[i,y]}function Ns(e,t,r){let{node:n,parent:i}=e,s=[n.type==="TSTypeParameter"&&n.const?"const ":""],u=n.type==="TSTypeParameter"?r("name"):n.name;return i.type==="TSMappedType"?(i.readonly&&s.push(ss(i.readonly,"readonly")," "),s.push("[",u),n.constraint&&s.push(" in ",r("constraint")),i.nameType&&s.push(" as ",e.callParent(()=>r("nameType"))),s.push("]"),s):(n.variance&&s.push(r("variance")),n.in&&s.push("in "),n.out&&s.push("out "),s.push(u),n.bound&&s.push(re(e,r,"bound")),n.constraint&&s.push(" extends ",r("constraint")),n.default&&s.push(" = ",r("default")),s)}var Ms=new WeakMap;function rr(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:i}=e,{key:s}=n;if(t.quoteProps==="consistent"&&!Ms.has(i)){let u=(i.properties||i.body||i.members).some(a=>!a.computed&&a.key&&De(a.key)&&!fo(a,t));Ms.set(i,u)}if((s.type==="Identifier"||lt(s)&&mo(mt(be(s)))&&String(s.value)===mt(be(s))&&!(t.parser==="typescript"||t.parser==="babel-ts"))&&(t.parser==="json"||t.quoteProps==="consistent"&&Ms.get(i))){let u=Wt(JSON.stringify(s.type==="Identifier"?s.name:s.value.toString()),t);return e.call(a=>Ee(a,u,t),"key")}return fo(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Ms.get(i))?e.call(u=>Ee(u,/^\d/.test(s.value)?mt(s.value):s.value,t),"key"):r("key")}function hf(e,t,r){let{node:n}=e;return n.shorthand?r("value"):Dr(e,t,r,rr(e,t,r),":","value")}var sC=e=>e.type==="ObjectMethod"||e.type==="ClassMethod"||e.type==="ClassPrivateMethod"||e.type==="MethodDefinition"||e.type==="TSAbstractMethodDefinition"||e.type==="TSDeclareMethod"||(e.type==="Property"||e.type==="ObjectProperty")&&(e.method||e.kind==="get"||e.kind==="set"),uC=e=>e.node.type==="FunctionExpression"&&e.key==="value"&&sC(e.parent);function js(e,t,r,n){if(uC(e))return Rs(e,r,t);let{node:i}=e,s=!1;if((i.type==="FunctionDeclaration"||i.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:l}=e;R(l)&&(pt(l).length>1||ae(i).every(p=>p.type==="Identifier"&&!p.typeAnnotation))&&(s=!0)}let u=[pe(e),i.async?"async ":"",`function${i.generator?"*":""} `,i.id?t("id"):""],a=gr(e,t,r,s),o=jo(e,t),c=Lr(i,o);return u.push(Pt(e,r,t),D([c?D(a):a,o]),i.body?" ":"",t("body")),r.semi&&(i.declare||!i.body)&&u.push(";"),u}function Xn(e,t,r){let{node:n}=e,{kind:i}=n,s=n.value||n,u=[];return!i||i==="init"||i==="method"||i==="constructor"?s.async&&u.push("async "):(gt.ok(i==="get"||i==="set"),u.push(i," ")),s.generator&&u.push("*"),u.push(rr(e,t,r),n.optional||n.key.optional?"?":"",n===s?Rs(e,t,r):r("value")),u}function Rs(e,t,r){let{node:n}=e,i=gr(e,r,t),s=jo(e,r),u=Lr(n,s),a=[Pt(e,t,r),D([u?D(i):i,s])];return n.body?a.push(" ",r("body")):a.push(t.semi?";":""),a}function aC(e,t,r,n){let{node:i}=e,s=[];if(i.async&&s.push("async "),Mo(e,t))s.push(r(["params",0]));else{let a=(n==null?void 0:n.expandLastArg)||(n==null?void 0:n.expandFirstArg),o=jo(e,r);if(a){if(ce(o))throw new Xt;o=D(ur(o))}s.push(D([gr(e,r,t,a,!0),o]))}let u=J(e,t,{filter(a){let o=Qe(t.originalText,q(a));return o!==!1&&t.originalText.slice(o,o+2)==="=>"}});return u&&s.push(" ",u),s}function oC(e,t,r,n,i,s){let{parent:u,key:a}=e,o=mr(u)&&a==="callee",c=Boolean(t==null?void 0:t.assignmentLayout),l=s.body.type!=="BlockStatement"&&!ye(s.body)&&s.body.type!=="SequenceExpression",p=o&&l||(t==null?void 0:t.assignmentLayout)==="chain-tail-arrow-chain",f=Symbol("arrow-chain");return(mr(u)&&!o||Ne(u))&&(r=[_e(r[0]),...r.slice(1)]),s.body.type==="SequenceExpression"&&(i=D(["(",E([h,i]),h,")"])),D([D(E([o||c?h:"",D(A([" =>",C],r),{shouldBreak:n})]),{id:f,shouldBreak:p})," =>",Yt(l?E([C,i]):[" ",i],{groupId:f}),o?L(h,"",{groupId:f}):""])}function Ef(e,t,r,n){var f,d;let{node:i}=e,s=[],u=[],a=!1;if(function m(){let g=aC(e,t,r,n);if(s.length===0)s.push(g);else{let{leading:x,trailing:S}=Qa(e,t);s.push([x,g]),u.unshift(S)}a=a||i.returnType&&ae(i).length>0||i.typeParameters||ae(i).some(x=>x.type!=="Identifier"),i.body.type!=="ArrowFunctionExpression"||n!=null&&n.expandLastArg?u.unshift(r("body",n)):(i=i.body,e.call(m,"body"))}(),s.length>1)return oC(e,n,s,a,u,i);let o=s;if(o.push(" =>"),!kt(t.originalText,i.body)&&(z(i.body)||ye(i.body)||i.body.type==="BlockStatement"||ue(i.body)||((f=u[0].label)==null?void 0:f.hug)!==!1&&((d=u[0].label)!=null&&d.embed||us(i.body,t.originalText))||i.body.type==="ArrowFunctionExpression"||i.body.type==="DoExpression"))return D([...o," ",u]);if(i.body.type==="SequenceExpression")return D([...o,D([" (",E([h,u]),h,")"])]);let c=((n==null?void 0:n.expandLastArg)||e.parent.type==="JSXExpressionContainer")&&!B(i),l=(n==null?void 0:n.expandLastArg)&&ke(t,"all"),p=i.body.type==="ConditionalExpression"&&!Te(i.body,m=>m.type==="ObjectExpression");return D([...o,D([E([C,p?L("","("):"",u,p?L("",")"):""]),c?[L(l?",":""),h]:""])])}function cC(e){let t=ae(e);return t.length===1&&!e.typeParameters&&!B(e,O.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!B(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function Mo(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return cC(r)}return!1}function jo(e,t){let{node:r}=e,i=[re(e,t,"returnType")];return r.predicate&&i.push(r.returnType?" ":": ",t("predicate")),i}function Cf(e,t,r){let{node:n}=e,i=t.semi?";":"",s=[];if(n.argument){let o=r("argument");lC(t,n.argument)?o=["(",E([y,o]),y,")"]:(Ne(n.argument)||n.argument.type==="SequenceExpression")&&(o=D([L("("),E([h,o]),h,L(")")])),s.push(" ",o)}let u=B(n,O.Dangling),a=i&&u&&B(n,O.Last|O.Line);return a&&s.push(i),u&&s.push(" ",J(e,t)),a||s.push(i),s}function xf(e,t,r){return["return",Cf(e,t,r)]}function Sf(e,t,r){return["throw",Cf(e,t,r)]}function lC(e,t){if(kt(e.originalText,t))return!0;if(en(t)){let r=t,n;for(;n=up(r);)if(r=n,kt(e.originalText,r))return!0}return!1}function Ro(e,t,r){let{node:n}=e;return D([A(C,e.map(r,"decorators")),Ff(n,t)?y:C])}function Tf(e,t,r){return[A(y,e.map(r,"declaration","decorators")),y]}function Af(e,t,r){let{node:n,parent:i}=e,{decorators:s}=n;if(!N(s)||$o(i))return;let u=n.type==="ClassExpression"||n.type==="ClassDeclaration"||Ff(n,t);return[e.key==="declaration"&&ap(i)?y:u?K:"",A(C,e.map(r,"decorators")),C]}function Ff(e,t){return e.decorators.some(r=>Y(t.originalText,q(r)))}function $o(e){var r;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=(r=e.declaration)==null?void 0:r.decorators;return N(t)&&pr(e,t[0])}var bf=le(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function $s(e,t,r){let{node:n}=e,i=[pe(e),an(e),"class"],s=B(n.id,O.Trailing)||B(n.typeParameters,O.Trailing)||B(n.superClass)||N(n.extends)||N(n.mixins)||N(n.implements),u=[],a=[];if(n.id&&u.push(" ",r("id")),u.push(r("typeParameters")),n.superClass){let o=[fC(e,t,r),r("superTypeParameters")],c=e.call(l=>["extends ",Ee(l,o,t)],"superClass");s?a.push(C,D(c)):a.push(" ",c)}else a.push(Wo(e,t,r,"extends"));if(a.push(Wo(e,t,r,"mixins"),Wo(e,t,r,"implements")),s){let o;Bf(n)?o=[...u,E(a)]:o=E([...u,a]),i.push(D(o,{id:vf(n)}))}else i.push(...u,...a);return i.push(" ",r("body")),i}var vf=xs("heritageGroup");function qo(e){return L(y,"",{groupId:vf(e)})}function pC(e){return["extends","mixins","implements"].reduce((t,r)=>t+(Array.isArray(e[r])?e[r].length:0),e.superClass?1:0)>1}function Bf(e){return e.typeParameters&&!B(e.typeParameters,O.Trailing|O.Line)&&!pC(e)}function Wo(e,t,r,n){let{node:i}=e;if(!N(i[n]))return"";let s=J(e,t,{marker:n});return[Bf(i)?L(" ",C,{groupId:zn(i.typeParameters)}):C,s,s&&y,n,D(E([C,A([",",C],e.map(r,n))]))]}function fC(e,t,r){let n=r("superClass"),{parent:i}=e;return i.type==="AssignmentExpression"?D(L(["(",E([h,n]),h,")"],n)):n}function Ws(e,t,r){let{node:n}=e,i=[];return N(n.decorators)&&i.push(Ro(e,t,r)),i.push(on(n)),n.static&&i.push("static "),i.push(an(e)),n.override&&i.push("override "),i.push(Xn(e,t,r)),i}function qs(e,t,r){let{node:n}=e,i=[],s=t.semi?";":"";N(n.decorators)&&i.push(Ro(e,t,r)),i.push(on(n),pe(e)),n.static&&i.push("static "),i.push(an(e)),n.override&&i.push("override "),n.readonly&&i.push("readonly "),n.variance&&i.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&i.push("accessor "),i.push(rr(e,t,r),ne(e),Ss(e),re(e,r));let u=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[Dr(e,t,r,i," =",u?void 0:"value"),s]}function kf(e,t,r){let{node:n}=e,i=[];return e.each(({node:s,next:u,isLast:a})=>{i.push(r()),!t.semi&&bf(s)&&mC(s,u)&&i.push(";"),a||(i.push(y),Ce(s,t)&&i.push(y))},"body"),B(n,O.Dangling)&&i.push(J(e,t)),[N(n.body)?qo(e.parent):"","{",i.length>0?[E([y,i]),y]:"","}"]}function mC(e,t){var i;let{type:r,name:n}=e.key;if(!e.computed&&r==="Identifier"&&(n==="static"||n==="get"||n==="set"||n==="accessor")&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility)return!1;if(!t.computed){let s=(i=t.key)==null?void 0:i.name;if(s==="in"||s==="instanceof")return!0}if(bf(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let u=t.value?t.value.generator:t.generator;return!!(t.computed||u)}case"TSIndexSignature":return!0}return!1}function Vs(e,t,r){let{node:n}=e,i=[pe(e),"interface"],s=[],u=[];n.type!=="InterfaceTypeAnnotation"&&s.push(" ",r("id"),r("typeParameters"));let a=n.typeParameters&&!B(n.typeParameters,O.Trailing|O.Line);return N(n.extends)&&u.push(a?L(" ",C,{groupId:zn(n.typeParameters)}):C,"extends ",(n.extends.length===1?pp:E)(A([",",C],e.map(r,"extends")))),B(n.id,O.Trailing)||N(n.extends)?a?i.push(D([...s,E(u)])):i.push(D(E([...s,...u]))):i.push(...s,...u),i.push(" ",r("body")),D(i)}function Pf(e,t,r){let{node:n}=e,i=t.semi?";":"",s=[],{importKind:u}=n;return s.push("import"),n.module&&s.push(" module"),u&&u!=="value"&&s.push(" ",u),s.push(wf(e,t,r),Vo(e,t,r),Jo(e,t,r),i),s}function Js(e,t,r){let{node:n}=e,i=[];$o(n)&&i.push(Tf(e,t,r));let{type:s,exportKind:u,declaration:a}=n;return i.push(pe(e),"export"),(n.default||s==="ExportDefaultDeclaration")&&i.push(" default"),B(n,O.Dangling)&&(i.push(" ",J(e,t)),as(n)&&i.push(y)),a?i.push(" ",r("declaration")):i.push(u==="type"?" type":"",wf(e,t,r),Vo(e,t,r),Jo(e,t,r)),dC(n,t)&&i.push(";"),i}function Gs(e,t,r){let{node:n}=e,i=t.semi?";":"",s=[pe(e),"export"],{exportKind:u,exported:a}=n;return u==="type"&&s.push(" type"),s.push(" *"),a&&s.push(" as ",r("exported")),s.push(Vo(e,t,r),Jo(e,t,r),i),s}function dC(e,t){if(!t.semi)return!1;let{type:r,declaration:n}=e,i=e.default||r==="ExportDefaultDeclaration";if(!n)return!0;let{type:s}=n;return!!(i&&s!=="ClassDeclaration"&&s!=="FunctionDeclaration"&&s!=="TSInterfaceDeclaration"&&s!=="DeclareClass"&&s!=="DeclareFunction"&&s!=="TSDeclareFunction"&&s!=="EnumDeclaration")}function Vo(e,t,r){let{node:n}=e;if(!n.source)return"";let i=[];return _f(n,t)||i.push(" from"),i.push(" ",r("source")),i}function wf(e,t,r){let{node:n}=e;if(_f(n,t))return"";let i=[" "];if(N(n.specifiers)){let s=[],u=[];e.each(()=>{let a=e.node.type;if(a==="ExportNamespaceSpecifier"||a==="ExportDefaultSpecifier"||a==="ImportNamespaceSpecifier"||a==="ImportDefaultSpecifier")s.push(r());else if(a==="ExportSpecifier"||a==="ImportSpecifier")u.push(r());else throw new ee(n,"specifier")},"specifiers"),i.push(A(", ",s)),u.length>0&&(s.length>0&&i.push(", "),u.length>1||s.length>0||n.specifiers.some(o=>B(o))?i.push(D(["{",E([t.bracketSpacing?C:h,A([",",C],u)]),L(ke(t)?",":""),t.bracketSpacing?C:h,"}"])):i.push(["{",t.bracketSpacing?" ":"",...u,t.bracketSpacing?" ":"","}"]))}else i.push("{}");return i}function _f(e,t){let{type:r,importKind:n,source:i,specifiers:s}=e;return r!=="ImportDeclaration"||N(s)||n==="type"?!1:!/{\s*}/.test(t.originalText.slice(te(e),te(i)))}function Jo(e,t,r){let{node:n}=e;return N(n.assertions)?[" assert {",t.bracketSpacing?" ":"",A(", ",e.map(r,"assertions")),t.bracketSpacing?" ":"","}"]:""}function Lf(e,t,r){let{node:n}=e,{type:i}=n,s=[],u=i==="ImportSpecifier"?n.importKind:n.exportKind;u&&u!=="value"&&s.push(u," ");let a=i.startsWith("Import"),o=a?"imported":"local",c=a?"local":"exported",l=n[o],p=n[c],f="",d="";return i==="ExportNamespaceSpecifier"||i==="ImportNamespaceSpecifier"?f="*":l&&(f=r(o)),p&&!yC(n)&&(d=r(c)),s.push(f,f&&d?" as ":"",d),s}function yC(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!tp(t,r))return!1;if(De(t))return t.value===r.value&&be(t)===be(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function hr(e,t,r){var T;let n=t.semi?";":"",{node:i}=e,s=i.type==="ObjectTypeAnnotation",u=i.type==="TSEnumDeclaration"||i.type==="EnumBooleanBody"||i.type==="EnumNumberBody"||i.type==="EnumStringBody"||i.type==="EnumSymbolBody",a=[i.type==="TSTypeLiteral"||u?"members":i.type==="TSInterfaceBody"?"body":"properties"];s&&a.push("indexers","callProperties","internalSlots");let o=a.flatMap(_=>e.map(({node:b})=>({node:b,printed:r(),loc:te(b)}),_));a.length>1&&o.sort((_,b)=>_.loc-b.loc);let{parent:c,key:l}=e,p=s&&l==="body"&&(c.type==="InterfaceDeclaration"||c.type==="DeclareInterface"||c.type==="DeclareClass"),f=i.type==="TSInterfaceBody"||u||p||i.type==="ObjectPattern"&&c.type!=="FunctionDeclaration"&&c.type!=="FunctionExpression"&&c.type!=="ArrowFunctionExpression"&&c.type!=="ObjectMethod"&&c.type!=="ClassMethod"&&c.type!=="ClassPrivateMethod"&&c.type!=="AssignmentPattern"&&c.type!=="CatchClause"&&i.properties.some(_=>_.value&&(_.value.type==="ObjectPattern"||_.value.type==="ArrayPattern"))||i.type!=="ObjectPattern"&&o.length>0&&$t(t.originalText,te(i),o[0].loc),d=p?";":i.type==="TSInterfaceBody"||i.type==="TSTypeLiteral"?L(n,";"):",",m=i.type==="RecordExpression"?"#{":i.exact?"{|":"{",g=i.exact?"|}":"}",x=[],S=o.map(_=>{let b=[...x,D(_.printed)];return x=[d,C],(_.node.type==="TSPropertySignature"||_.node.type==="TSMethodSignature"||_.node.type==="TSConstructSignatureDeclaration")&&B(_.node,O.PrettierIgnore)&&x.shift(),Ce(_.node,t)&&x.push(y),b});if(i.inexact||i.hasUnknownMembers){let _;if(B(i,O.Dangling)){let b=B(i,O.Line);_=[J(e,t),b||Y(t.originalText,q(P(!1,Gn(i),-1)))?y:C,"..."]}else _=["..."];S.push([...x,..._])}let F=(T=P(!1,o,-1))==null?void 0:T.node,k=!(i.inexact||i.hasUnknownMembers||F&&(F.type==="RestElement"||(F.type==="TSPropertySignature"||F.type==="TSCallSignatureDeclaration"||F.type==="TSMethodSignature"||F.type==="TSConstructSignatureDeclaration")&&B(F,O.PrettierIgnore))),v;if(S.length===0){if(!B(i,O.Dangling))return[m,g,re(e,r)];v=D([m,J(e,t,{indent:!0}),h,g,ne(e),re(e,r)])}else v=[p&&N(i.properties)?qo(c):"",m,E([t.bracketSpacing?C:h,...S]),L(k&&(d!==","||ke(t))?d:""),t.bracketSpacing?C:h,g,ne(e),re(e,r)];return e.match(_=>_.type==="ObjectPattern"&&!_.decorators,Go)||Xe(i)&&(e.match(void 0,(_,b)=>b==="typeAnnotation",(_,b)=>b==="typeAnnotation",Go)||e.match(void 0,(_,b)=>_.type==="FunctionTypeParam"&&b==="typeAnnotation",Go))||!f&&e.match(_=>_.type==="ObjectPattern",_=>_.type==="AssignmentExpression"||_.type==="VariableDeclarator")?v:D(v,{shouldBreak:f})}function Go(e,t){return(t==="params"||t==="parameters"||t==="this"||t==="rest")&&Io(e)}function If(e,t,r){return hr(e,r,t)}function Hs(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let i="";return r.initializer&&(i=t("initializer")),r.init&&(i=t("init")),i?[n," = ",i]:n}function Of(e,t,r){let{node:n}=e,i;if(n.type==="EnumSymbolBody"||n.explicitType)switch(n.type){case"EnumBooleanBody":i="boolean";break;case"EnumNumberBody":i="number";break;case"EnumStringBody":i="string";break;case"EnumSymbolBody":i="symbol";break}return[i?`of ${i} `:"",If(e,t,r)]}function Us(e,t,r){let{node:n}=e;return[pe(e),n.const?"const ":"","enum ",t("id")," ",n.type==="TSEnumDeclaration"?If(e,t,r):t("body")]}function Nf(e,t,r){let{node:n}=e,i=t.semi?";":"";switch(n.type){case"DeclareClass":return $s(e,t,r);case"DeclareFunction":return[pe(e),"function ",r("id"),n.predicate?" ":"",r("predicate"),i];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",re(e,r),i];case"DeclareVariable":return[pe(e),n.kind??"var"," ",r("id"),i];case"DeclareExportDeclaration":return Js(e,t,r);case"DeclareExportAllDeclaration":return Gs(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return Df(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return Bs(e,t,r);case"IntersectionTypeAnnotation":return ks(e,t,r);case"UnionTypeAnnotation":return Ps(e,t,r);case"FunctionTypeAnnotation":return ws(e,t,r);case"TupleTypeAnnotation":return cn(e,t,r);case"TupleTypeLabeledElement":return Is(e,t,r);case"TupleTypeSpreadElement":return Ls(e,t,r);case"GenericTypeAnnotation":return[r("id"),Ir(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return _s(e,t,r);case"TypeAnnotation":return Os(e,t,r);case"TypeParameter":return Ns(e,t,r);case"TypeofTypeAnnotation":return["typeof ",r("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[r("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(n.value);case"DeclareEnum":case"EnumDeclaration":return Us(e,r,t);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return Of(e,r,t);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":return Hs(e,r);case"FunctionTypeParam":{let s=n.name?r("name"):e.parent.this===n?"this":"";return[s,ne(e),s?": ":"",r("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Vs(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:s}=n;return gt.ok(s==="plus"||s==="minus"),s==="plus"?"+":"-"}case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value")];case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value")];case"ObjectTypeProperty":{let s="";return n.proto?s="proto ":n.static&&(s="static "),[s,lo(n)?n.kind+" ":"",n.variance?r("variance"):"",rr(e,t,r),ne(e),po(n)?"":": ",r("value")]}case"ObjectTypeAnnotation":return hr(e,t,r);case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",ne(e),n.method?"":": ",r("value")];case"ObjectTypeSpreadProperty":return As(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"StringLiteralTypeAnnotation":return $(Wt(be(n),t));case"NumberLiteralTypeAnnotation":return mt(n.raw??n.extra.raw);case"BigIntLiteralTypeAnnotation":return bs(n.raw??n.extra.raw);case"TypeCastExpression":return["(",r("expression"),re(e,r),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Ir(e,t,r,"params");case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",r("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"NeverTypeAnnotation":return"never";case"UndefinedTypeAnnotation":return"undefined";case"UnknownTypeAnnotation":return"unknown";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new ee(n,"Flow")}}function DC({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Mf=DC;function gC(e){let t=[e];for(let r=0;r<t.length;r++){let n=t[r];for(let i of["test","consequent","alternate"]){let s=n[i];if(ue(s))return!0;s.type==="ConditionalExpression"&&t.push(s)}}return!1}function hC(e,t,r){let{node:n}=e,i=n.type==="ConditionalExpression",s=i?"alternate":"falseType",{parent:u}=e,a=i?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return u.type===n.type&&u[s]===n?Q(2,a):a}var EC=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]);function CC(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let i=0;!r;i++){let s=e.getParentNode(i);if(s.type==="ChainExpression"&&s.expression===n||R(s)&&s.callee===n||G(s)&&s.object===n||s.type==="TSNonNullExpression"&&s.expression===n){n=s;continue}s.type==="NewExpression"&&s.callee===n||ht(s)&&s.expression===n?(r=e.getParentNode(i+1),n=s):r=s}return n===t?!1:r[EC.get(r.type)]===n}function Ks(e,t,r){let{node:n}=e,i=n.type==="ConditionalExpression",s=i?"consequent":"trueType",u=i?"alternate":"falseType",a=i?["test"]:["checkType","extendsType"],o=n[s],c=n[u],l=[],p=!1,{parent:f}=e,d=f.type===n.type&&a.some(j=>f[j]===n),m=f.type===n.type&&!d,g,x,S=0;do x=g||n,g=e.getParentNode(S),S++;while(g&&g.type===n.type&&a.every(j=>g[j]!==x));let F=g||f,k=x;if(i&&(ue(n[a[0]])||ue(o)||ue(c)||gC(k))){p=!0,m=!0;let j=W=>[L("("),E([h,W]),h,L(")")],H=W=>W.type==="NullLiteral"||W.type==="Literal"&&W.value===null||W.type==="Identifier"&&W.name==="undefined";l.push(" ? ",H(o)?r(s):j(r(s))," : ",c.type===n.type||H(c)?r(u):j(r(u)))}else{let j=[C,"? ",o.type===n.type?L("","("):"",Q(2,r(s)),o.type===n.type?L("",")"):"",C,": ",c.type===n.type?r(u):Q(2,r(u))];l.push(f.type!==n.type||f[u]===n||d?j:t.useTabs?_e(E(j)):Q(Math.max(0,t.tabWidth-2),j))}let v=[s,u,...a].some(j=>B(n[j],H=>Fe(H)&&$t(t.originalText,te(H),q(H)))),T=j=>f===F?D(j,{shouldBreak:v}):v?[j,K]:j,_=!p&&(G(f)||f.type==="NGPipeExpression"&&f.left===n)&&!f.computed,b=CC(e),w=T([hC(e,t,r),m?l:E(l),i&&_&&!b?h:""]);return d||b?D([E([h,w]),h]):w}function Qn(e,t,r,n){let{node:i}=e,s=[],u=xC(i[n]);return e.each(({node:a})=>{a.type!=="EmptyStatement"&&(s.push(r()),a!==u&&(s.push(y),Ce(a,t)&&s.push(y)))},n),s}function xC(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r.type!=="EmptyStatement")return r}}function Ys(e,t,r){let{node:n}=e,i=[];n.type==="StaticBlock"&&i.push("static "),i.push("{");let s=Ho(e,t,r);if(s)i.push(E([y,s]),y);else{let{parent:u}=e,a=e.grandparent;u.type==="ArrowFunctionExpression"||u.type==="FunctionExpression"||u.type==="FunctionDeclaration"||u.type==="ObjectMethod"||u.type==="ClassMethod"||u.type==="ClassPrivateMethod"||u.type==="ForStatement"||u.type==="WhileStatement"||u.type==="DoWhileStatement"||u.type==="DoExpression"||u.type==="CatchClause"&&!a.finalizer||u.type==="TSModuleDeclaration"||u.type==="TSDeclareFunction"||n.type==="StaticBlock"||i.push(y)}return i.push("}"),i}function Ho(e,t,r){var o;let{node:n}=e,i=N(n.directives),s=n.body.some(c=>c.type!=="EmptyStatement"),u=B(n,O.Dangling);if(!i&&!s&&!u)return"";let a=[];return i&&(a.push(Qn(e,t,r,"directives")),(s||u)&&(a.push(y),Ce(P(!1,n.directives,-1),t)&&a.push(y))),s&&a.push(Qn(e,t,r,"body")),u&&a.push(J(e,t)),n.type==="Program"&&((o=e.parent)==null?void 0:o.type)!=="ModuleExpression"&&a.push(y),a}function jf(e,t,r){var u;let{node:n}=e;if(!n.type.startsWith("TS"))return;if(Mf(n))return n.type.slice(2,-7).toLowerCase();let i=t.semi?";":"",s=[];switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":{let a=!(z(n.expression)||ye(n.expression)),o=D(["<",E([h,r("typeAnnotation")]),h,">"]),c=[L("("),E([h,r("expression")]),h,L(")")];return a?Le([[o,r("expression")],[o,D(c,{shouldBreak:!0})],[o,r("expression")]]):D([o,r("expression")])}case"TSDeclareFunction":return js(e,r,t);case"TSExportAssignment":return["export = ",r("expression"),i];case"TSModuleBlock":return Ys(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return hr(e,t,r);case"TSTypeAliasDeclaration":return Bs(e,t,r);case"TSQualifiedName":return A(".",[r("left"),r("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return Ws(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return qs(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[r("expression"),r("typeParameters")];case"TSTemplateLiteralType":return fs(e,r,t);case"TSNamedTupleMember":return Is(e,t,r);case"TSRestType":return Ls(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Vs(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Ir(e,t,r,"params");case"TSTypeParameter":return Ns(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":{let a=n.type==="TSAsExpression"?"as":"satisfies";s.push(r("expression"),` ${a} `,r("typeAnnotation"));let{parent:o}=e;return R(o)&&o.callee===n||G(o)&&o.object===n?D([E([h,...s]),h]):s}case"TSArrayType":return[r("elementType"),"[]"];case"TSPropertySignature":return[n.readonly?"readonly ":"",rr(e,t,r),ne(e),re(e,r)];case"TSParameterProperty":return[on(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return["typeof ",r("exprName"),r("typeParameters")];case"TSIndexSignature":{let a=n.parameters.length>1?L(ke(t)?",":""):"",o=D([E([h,A([", ",h],e.map(r,"parameters"))]),a,h]),c=e.parent.type==="ClassBody"&&e.key==="body";return[c&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?o:"","]",re(e,r),c?i:""]}case"TSTypePredicate":return[n.asserts?"asserts ":"",r("parameterName"),n.typeAnnotation?[" is ",re(e,r)]:""];case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[n.isTypeOf?"typeof ":"","import(",r(n.parameter?"parameter":"argument"),")",n.qualifier?[".",r("qualifier")]:"",Ir(e,t,r,"typeParameters")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return _s(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":{let a=$t(t.originalText,te(n),q(n));return D(["{",E([t.bracketSpacing?C:h,r("typeParameter"),n.optional?ss(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation"),L(i)]),J(e,t),t.bracketSpacing?C:h,"}"],{shouldBreak:a})}case"TSMethodSignature":{let a=n.kind&&n.kind!=="method"?`${n.kind} `:"";s.push(on(n),a,n.computed?"[":"",r("key"),n.computed?"]":"",ne(e));let o=gr(e,r,t,!1,!0),c=n.returnType?"returnType":"typeAnnotation",l=n[c],p=l?re(e,r,c):"",f=Lr(n,p);return s.push(f?D(o):o),l&&s.push(D(p)),D(s)}case"TSNamespaceExportDeclaration":return s.push("export as namespace ",r("id")),t.semi&&s.push(";"),D(s);case"TSEnumDeclaration":return Us(e,r,t);case"TSEnumMember":return Hs(e,r);case"TSImportEqualsDeclaration":return n.isExport&&s.push("export "),s.push("import "),n.importKind&&n.importKind!=="value"&&s.push(n.importKind," "),s.push(r("id")," = ",r("moduleReference")),t.semi&&s.push(";"),D(s);case"TSExternalModuleReference":return["require(",r("expression"),")"];case"TSModuleDeclaration":{let{parent:a}=e,o=a.type==="TSModuleDeclaration",c=((u=n.body)==null?void 0:u.type)==="TSModuleDeclaration";if(o)s.push(".");else if(s.push(pe(e)),!(n.kind==="global"||n.global)){let p=n.kind??(De(n.id)||/(?:^|\s)module(?:\s|$)/.test(t.originalText.slice(te(n),te(n.id)))?"module":"namespace");s.push(p," ")}return s.push(r("id")),c?s.push(r("body")):n.body?s.push(" ",D(r("body"))):s.push(i),s}case"TSConditionalType":return Ks(e,t,r);case"TSInferType":return["infer"," ",r("typeParameter")];case"TSIntersectionType":return ks(e,t,r);case"TSUnionType":return Ps(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return ws(e,t,r);case"TSTupleType":return cn(e,t,r);case"TSTypeReference":return[r("typeName"),Ir(e,t,r,"typeParameters")];case"TSTypeAnnotation":return Os(e,t,r);case"TSEmptyBodyFunctionExpression":return Rs(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return No(e,r,"?");case"TSJSDocNonNullableType":return No(e,r,"!");default:throw new ee(n,"TypeScript")}}function Rf(e,t){if(t.semi||ns(t,e))return!1;let{node:r,key:n,parent:i}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(i.type==="Program"||i.type==="BlockStatement"||i.type==="StaticBlock"||i.type==="TSModuleBlock")||n==="consequent"&&i.type==="SwitchCase")&&e.call(()=>$f(e,t),"expression"))}function $f(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!Mo(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:i}=r;if(n&&(i==="+"||i==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(ue(r))return!0}return Ct(e,t)?!0:en(r)?e.call(()=>$f(e,t),...ts(r)):!1}function SC(e,t,r,n){let{node:i}=e,s=TC(e,t,r,n);if(!s)return"";let{type:u}=i;if(u==="ClassMethod"||u==="ClassPrivateMethod"||u==="ClassProperty"||u==="ClassAccessorProperty"||u==="AccessorProperty"||u==="TSAbstractAccessorProperty"||u==="PropertyDefinition"||u==="TSAbstractPropertyDefinition"||u==="ClassPrivateProperty"||u==="MethodDefinition"||u==="TSAbstractMethodDefinition"||u==="TSDeclareMethod")return s;let a=[s],o=Af(e,t,r),c=i.type==="ClassExpression"&&o;if(o&&(a=[...o,s],!c))return D(a);let l=Ct(e,t),p=Rf(e,t);return l?(c&&(a=[E([C,...a])]),a.unshift("("),p&&a.unshift(";"),c&&a.push(C),a.push(")"),a):(p&&a.unshift(";"),a.length===1&&a[0]===s?s:a)}function TC(e,t,r,n){for(let a of[cf,ef,rf,Wp,Nf,jf]){let o=a(e,t,r);if(o!==void 0)return o}let{node:i}=e,s=t.semi?";":"",u=[];switch(i.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[r("node"),y];case"File":return r("program");case"Program":return Ho(e,t,r);case"EmptyStatement":return"";case"ExpressionStatement":{if(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding"){let{parent:o}=e;if(o.type==="Program"&&o.body.length===1&&o.body[0]===i)return[r("expression"),ko(i.expression)?";":""]}let a=J(e,t,{marker:ls});return[r("expression"),ns(t,e)?"":s,a?[" ",a]:""]}case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!B(i.expression)&&(ye(i.expression)||z(i.expression))?["(",r("expression"),")"]:D(["(",E([h,r("expression")]),h,")"]);case"AssignmentExpression":return ff(e,t,r);case"VariableDeclarator":return mf(e,t,r);case"BinaryExpression":case"LogicalExpression":return Es(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return sf(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return i.object&&u.push(r("object")),u.push(D(E([h,Ts(e,t,r)]))),u;case"Identifier":return[i.name,ne(e),Ss(e),re(e,r)];case"V8IntrinsicIdentifier":return["%",i.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return As(e,r);case"FunctionDeclaration":case"FunctionExpression":return js(e,r,t,n);case"ArrowFunctionExpression":return Ef(e,t,r,n);case"YieldExpression":return u.push("yield"),i.delegate&&u.push("*"),i.argument&&u.push(" ",r("argument")),u;case"AwaitExpression":if(u.push("await"),i.argument){u.push(" ",r("argument"));let{parent:a}=e;if(R(a)&&a.callee===i||G(a)&&a.object===i){u=[E([h,...u]),h];let o=e.findAncestor(c=>c.type==="AwaitExpression"||c.type==="BlockStatement");if((o==null?void 0:o.type)!=="AwaitExpression"||!Te(o.argument,c=>c===i))return D(u)}}return u;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return Js(e,t,r);case"ExportAllDeclaration":return Gs(e,t,r);case"ImportDeclaration":return Pf(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Lf(e,t,r);case"ImportAttribute":return[r("key"),": ",r("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":return Ys(e,t,r);case"ClassBody":return kf(e,t,r);case"ThrowStatement":return Sf(e,t,r);case"ReturnStatement":return xf(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Fs(e,t,r);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return hr(e,t,r);case"ObjectProperty":case"Property":return i.method||i.kind==="get"||i.kind==="set"?Xn(e,t,r):hf(e,t,r);case"ObjectMethod":return Xn(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return cn(e,t,r);case"SequenceExpression":{let{parent:a}=e;if(a.type==="ExpressionStatement"||a.type==="ForStatement"){let o=[];return e.each(({isFirst:c})=>{c?o.push(r()):o.push(",",E([C,r()]))},"expressions"),D(o)}return D(A([",",C],e.map(r,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),s];case"UnaryExpression":return u.push(i.operator),/[a-z]$/.test(i.operator)&&u.push(" "),B(i.argument)?u.push(D(["(",E([h,r("argument")]),h,")"])):u.push(r("argument")),u;case"UpdateExpression":return u.push(r("argument"),i.operator),i.prefix&&u.reverse(),u;case"ConditionalExpression":return Ks(e,t,r);case"VariableDeclaration":{let a=e.map(r,"declarations"),o=e.parent,c=o.type==="ForStatement"||o.type==="ForInStatement"||o.type==="ForOfStatement",l=i.declarations.some(f=>f.init),p;return a.length===1&&!B(i.declarations[0])?p=a[0]:a.length>0&&(p=E(a[0])),u=[pe(e),i.kind,p?[" ",p]:"",E(a.slice(1).map(f=>[",",l&&!c?y:C,f]))],c&&o.body!==i||u.push(s),D(u)}case"WithStatement":return D(["with (",r("object"),")",tr(i.body,r("body"))]);case"IfStatement":{let a=tr(i.consequent,r("consequent")),o=D(["if (",D([E([h,r("test")]),h]),")",a]);if(u.push(o),i.alternate){let c=B(i.consequent,O.Trailing|O.Line)||as(i),l=i.consequent.type==="BlockStatement"&&!c;u.push(l?" ":y),B(i,O.Dangling)&&u.push(J(e,t),c?y:" "),u.push("else",D(tr(i.alternate,r("alternate"),i.alternate.type==="IfStatement")))}return u}case"ForStatement":{let a=tr(i.body,r("body")),o=J(e,t),c=o?[o,h]:"";return!i.init&&!i.test&&!i.update?[c,D(["for (;;)",a])]:[c,D(["for (",D([E([h,r("init"),";",C,r("test"),";",C,r("update")]),h]),")",a])]}case"WhileStatement":return D(["while (",D([E([h,r("test")]),h]),")",tr(i.body,r("body"))]);case"ForInStatement":return D(["for (",r("left")," in ",r("right"),")",tr(i.body,r("body"))]);case"ForOfStatement":return D(["for",i.await?" await":""," (",r("left")," of ",r("right"),")",tr(i.body,r("body"))]);case"DoWhileStatement":{let a=tr(i.body,r("body"));return u=[D(["do",a])],i.body.type==="BlockStatement"?u.push(" "):u.push(y),u.push("while (",D([E([h,r("test")]),h]),")",s),u}case"DoExpression":return[i.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return u.push(i.type==="BreakStatement"?"break":"continue"),i.label&&u.push(" ",r("label")),u.push(s),u;case"LabeledStatement":return i.body.type==="EmptyStatement"?[r("label"),":;"]:[r("label"),": ",r("body")];case"TryStatement":return["try ",r("block"),i.handler?[" ",r("handler")]:"",i.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(i.param){let a=B(i.param,c=>!Fe(c)||c.leading&&Y(t.originalText,q(c))||c.trailing&&Y(t.originalText,te(c),{backwards:!0})),o=r("param");return["catch ",a?["(",E([h,o]),h,") "]:["(",o,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[D(["switch (",E([h,r("discriminant")]),h,")"])," {",i.cases.length>0?E([y,A(y,e.map(({node:a,isLast:o})=>[r(),!o&&Ce(a,t)?y:""],"cases"))]):"",y,"}"];case"SwitchCase":{i.test?u.push("case ",r("test"),":"):u.push("default:"),B(i,O.Dangling)&&u.push(" ",J(e,t));let a=i.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=Qn(e,t,r,"consequent");u.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:E([y,o]))}return u}case"DebuggerStatement":return["debugger",s];case"ClassDeclaration":case"ClassExpression":return $s(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Ws(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return qs(e,t,r);case"TemplateElement":return $(i.value.raw);case"TemplateLiteral":return fs(e,r,t);case"TaggedTemplateExpression":return gp(r);case"PrivateIdentifier":return["#",i.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{u.push("module {");let a=r("body");return a&&u.push(E([y,a]),y),u.push("}"),u}case"InterpreterDirective":default:throw new ee(i,"ESTree")}}var AC={print:SC,embed:vp,insertPragma:ys,massageAstNode:kp,getVisitorKeys:Zi,...Bo},Wf=AC;var qf=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}];var Zn="Common",FC={bracketSpacing:{category:Zn,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:Zn,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:Zn,type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:Zn,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:Zn,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},xe=FC;var ln="JavaScript",bC={arrowParens:{category:ln,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:xe.bracketSameLine,bracketSpacing:xe.bracketSpacing,jsxBracketSameLine:{category:ln,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:ln,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:xe.singleQuote,jsxSingleQuote:{category:ln,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:ln,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:ln,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:xe.singleAttributePerLine},Vf=bC;var vC={estree:Wf},BC=ze(Zl);var uu={};fe(uu,{languages:()=>Am,options:()=>Fm,parsers:()=>XC,printers:()=>zC});var Jf=void 0;function kC(e){return(e==null?void 0:e.type)==="front-matter"}var Ze=kC;var PC=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function Gf(e,t,r){if(Ze(e)&&e.lang==="yaml"&&delete t.value,e.type==="css-comment"&&r.type==="css-root"&&r.nodes.length>0&&((r.nodes[0]===e||Ze(r.nodes[0])&&r.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||r.type==="css-root"&&P(!1,r.nodes,-1)===e))return null;if(e.type==="value-root"&&delete t.text,(e.type==="media-query"||e.type==="media-query-list"||e.type==="media-feature-expression")&&delete t.value,e.type==="css-rule"&&delete t.params,e.type==="selector-combinator"&&(t.value=I(!1,t.value,/\s+/g," ")),e.type==="media-feature"&&(t.value=I(!1,t.value," ","")),(e.type==="value-word"&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||e.type==="media-feature"||e.type==="selector-root-invalid"||e.type==="selector-pseudo")&&(t.value=t.value.toLowerCase()),e.type==="css-decl"&&(t.prop=t.prop.toLowerCase()),(e.type==="css-atrule"||e.type==="css-import")&&(t.name=t.name.toLowerCase()),e.type==="value-number"&&(t.unit=t.unit.toLowerCase()),e.type==="value-unknown"&&(t.value=I(!1,t.value,/;$/g,"")),(e.type==="media-feature"||e.type==="media-keyword"||e.type==="media-type"||e.type==="media-unknown"||e.type==="media-url"||e.type==="media-value"||e.type==="selector-attribute"||e.type==="selector-string"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="value-string")&&t.value&&(t.value=wC(t.value)),e.type==="selector-attribute"&&(t.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(t.namespace=t.namespace.trim(),t.namespace.length===0&&(t.namespace=!0)),t.value&&(t.value=I(!1,t.value.trim(),/^["']|["']$/g,""),delete t.quoted)),(e.type==="media-value"||e.type==="media-type"||e.type==="value-number"||e.type==="selector-root-invalid"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="selector-tag")&&t.value&&(t.value=I(!1,t.value,/([\d+.Ee-]+)([A-Za-z]*)/g,(n,i,s)=>{let u=Number(i);return Number.isNaN(u)?n:u+s.toLowerCase()})),e.type==="selector-tag"){let n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}if(e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete t.value,e.type==="selector-unknown"&&delete t.value,e.type==="value-comma_group"){let n=e.groups.findIndex(i=>i.type==="value-number"&&i.unit==="...");n!==-1&&(t.groups[n].unit="",t.groups.splice(n+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(e.type==="value-comma_group"&&e.groups.some(n=>n.type==="value-atword"&&n.value.endsWith("[")||n.type==="value-word"&&n.value.startsWith("]")))return{type:"value-atword",value:e.groups.map(n=>n.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}Gf.ignoredProperties=PC;function wC(e){return I(!1,I(!1,e,"'",'"'),/\\([^\dA-Fa-f])/g,"$1")}var Hf=Gf;async function _C(e,t){if(e.lang==="yaml"){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return Ot([e.startDelimiter,y,n,n?y:"",e.endDelimiter])}}var pn=_C;function Uf(e){let{node:t}=e;if(t.type==="front-matter")return async r=>{let n=await pn(t,r);return n?[n,y]:void 0}}Uf.getVisitorKeys=e=>e.type==="css-root"?["frontMatter"]:[];var Kf=Uf;var LC=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function IC(e){let t=e.match(LC);if(!t)return{content:e};let{startDelimiter:r,language:n,value:i="",endDelimiter:s}=t.groups,u=n.trim()||"yaml";if(r==="+++"&&(u="toml"),u!=="yaml"&&r!==s)return{content:e};let[a]=t;return{frontMatter:{type:"front-matter",lang:u,value:i,startDelimiter:r,endDelimiter:s,raw:a.replace(/\n$/,"")},content:I(!1,a,/[^\n]/g," ")+e.slice(a.length)}}var Xs=IC;function Yf(e){let{frontMatter:t,content:r}=Xs(e);return(t?t.raw+`
68
58
 
69
- `:"")+gs(r)}l();var gC={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},Uf=gC;l();var hC=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 xt(e,t){return e.findAncestor(r=>r.type===t)}function Kf(e){var r;let t=xt(e,"css-decl");return(r=t==null?void 0:t.prop)==null?void 0:r.toLowerCase()}var EC=new Set(["initial","inherit","unset","revert"]);function Yf(e){return EC.has(e.toLowerCase())}function zf(e,t){let r=xt(e,"css-atrule");return(r==null?void 0:r.name)&&r.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())}function Lr(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function Qn(e,t){var n;let r=xt(e,"value-func");return((n=r==null?void 0:r.value)==null?void 0:n.toLowerCase())===t}function Xf(e){var n;let t=xt(e,"css-rule"),r=(n=t==null?void 0:t.raws)==null?void 0:n.selector;return r&&(r.startsWith(":import")||r.startsWith(":export"))}function Zn(e,t){let r=Array.isArray(t)?t:[t],n=xt(e,"css-atrule");return n&&r.includes(n.name.toLowerCase())}function Qf(e){let{node:t}=e,r=xt(e,"css-atrule");return(r==null?void 0:r.name)==="import"&&t.groups[0].value==="url"&&t.groups.length===2}function Zf(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function em(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function Gs(e,t){var n;let r=(n=e.parent)==null?void 0:n.nodes;return r&&r.indexOf(t)===r.length-1}function tm(e){let{selector:t}=e;return t?typeof t=="string"&&/^@.+:.*$/.test(t)||t.value&&/^@.+:.*$/.test(t.value):!1}function rm(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function nm(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function im(e){return e.type==="value-word"&&e.value==="in"}function Us(e){return e.type==="value-operator"&&e.value==="*"}function ei(e){return e.type==="value-operator"&&e.value==="/"}function er(e){return e.type==="value-operator"&&e.value==="+"}function Nr(e){return e.type==="value-operator"&&e.value==="-"}function CC(e){return e.type==="value-operator"&&e.value==="%"}function Ks(e){return Us(e)||ei(e)||er(e)||Nr(e)||CC(e)}function sm(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function um(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function Ys(e,t){return t.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function Uo(e){var t;return((t=e.raws)==null?void 0:t.params)&&/^\(\s*\)$/.test(e.raws.params)}function Ko(e){return e.name.startsWith("prettier-placeholder")}function am(e){return e.prop.startsWith("@prettier-placeholder")}function om(e,t){return e.value==="$$"&&e.type==="value-func"&&(t==null?void 0:t.type)==="value-word"&&!t.raws.before}function cm(e){var t,r;return((t=e.value)==null?void 0:t.type)==="value-root"&&((r=e.value.group)==null?void 0:r.type)==="value-value"&&e.prop.toLowerCase()==="composes"}function lm(e){var t,r,n;return((n=(r=(t=e.value)==null?void 0:t.group)==null?void 0:r.group)==null?void 0:n.type)==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function Or(e){var t;return((t=e.raws)==null?void 0:t.before)===""}function zs(e){var t,r;return e.type==="value-comma_group"&&((r=(t=e.groups)==null?void 0:t[1])==null?void 0:r.type)==="value-colon"}function Go(e){var t;return e.type==="value-paren_group"&&((t=e.groups)==null?void 0:t[0])&&zs(e.groups[0])}function pm(e,t){var s;if(t.parser!=="scss")return!1;let{node:r}=e;if(r.groups.length===0)return!1;let n=e.grandparent;if(!Go(r)&&!(n&&Go(n)))return!1;let i=xt(e,"css-decl");return!!((s=i==null?void 0:i.prop)!=null&&s.startsWith("$")||Go(n)||n.type==="value-func")}function Yo(e){return e.type==="value-comment"&&e.inline}function Xs(e){return e.type==="value-word"&&e.value==="#"}function zo(e){return e.type==="value-word"&&e.value==="{"}function Qs(e){return e.type==="value-word"&&e.value==="}"}function ti(e){return["value-word","value-atword"].includes(e.type)}function Zs(e){return(e==null?void 0:e.type)==="value-colon"}function fm(e,t){if(!zs(t))return!1;let{groups:r}=t,n=r.indexOf(e);return n===-1?!1:Zs(r[n+1])}function mm(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function ym(e){return e.type!=="value-func"?!1:hC.has(e.value.toLowerCase())}function ln(e){return/\/\//.test(e.split(/[\n\r]/).pop())}function ri(e){return(e==null?void 0:e.type)==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function dm(e,t){var r,n;if(((r=e.open)==null?void 0:r.value)!=="("||((n=e.close)==null?void 0:n.value)!==")"||e.groups.some(i=>i.type!=="value-comma_group"))return!1;if(t.type==="value-comma_group"){let i=t.groups.indexOf(e)-1,s=t.groups[i];if((s==null?void 0:s.type)==="value-word"&&s.value==="with")return!0}return!1}function eu(e){var t,r;return e.type==="value-paren_group"&&((t=e.open)==null?void 0:t.value)==="("&&((r=e.close)==null?void 0:r.value)===")"}l();l();function St(e){return e.source.startOffset}function At(e){return e.source.endOffset}l();var Xo={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",cqw:"cqw",cqh:"cqh",cqi:"cqi",cqb:"cqb",cqmin:"cqmin",cqmax:"cqmax"};function SC(e){let t=e.toLowerCase();return Object.prototype.hasOwnProperty.call(Xo,t)?Xo[t]:e}var Dm=SC;var AC=Te(Uf);function TC(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function FC(e,t,r){var i,s;let{node:n}=e;switch(n.type){case"front-matter":return[n.raw,D];case"css-root":{let u=ni(e,t,r),a=n.raws.after.trim();return[n.frontMatter?[r("frontMatter"),D]:"",u,a?` ${a}`:"",n.nodes.length>0?D:""]}case"css-comment":{let u=n.inline||n.raws.inline,a=t.originalText.slice(St(n),At(n));return u?a.trimEnd():a}case"css-rule":return[r("selector"),n.important?" !important":"",n.nodes?[n.selector&&n.selector.type==="selector-unknown"&&ln(n.selector.value)?S:n.selector?" ":"","{",n.nodes.length>0?x([D,ni(e,t,r)]):"",D,"}",tm(n)?";":""]:";"];case"css-decl":{let u=e.parent,{between:a}=n.raws,o=a.trim(),c=o===":",p=typeof n.value=="string"&&/^ *$/.test(n.value),f=typeof n.value=="string"?n.value:r("value");return f=cm(n)?ir(f):f,!c&&ln(o)&&(f=x([D,Be(f)])),[n.raws.before.replace(/[\s;]/g,""),Xf(e)?n.prop:Lr(n.prop),o.startsWith("//")?" ":"",o,n.extend||p?"":" ",t.parser==="less"&&n.extend&&n.selector?["extend(",r("selector"),")"]:"",f,n.raws.important?n.raws.important.replace(/\s*!\s*important/i," !important"):n.important?" !important":"",n.raws.scssDefault?n.raws.scssDefault.replace(/\s*!default/i," !default"):n.scssDefault?" !default":"",n.raws.scssGlobal?n.raws.scssGlobal.replace(/\s*!global/i," !global"):n.scssGlobal?" !global":"",n.nodes?[" {",x([C,ni(e,t,r)]),C,"}"]:am(n)&&!u.raws.semicolon&&t.originalText[At(n)-1]!==";"?"":t.__isHTMLStyleAttribute&&Gs(e,n)?I(";"):";"]}case"css-atrule":{let u=e.parent,a=Ko(n)&&!u.raws.semicolon&&t.originalText[At(n)-1]!==";";if(t.parser==="less"){if(n.mixin)return[r("selector"),n.important?" !important":"",a?"":";"];if(n.function)return[n.name,typeof n.params=="string"?n.params:r("params"),a?"":";"];if(n.variable)return["@",n.name,": ",n.value?r("value"):"",n.raws.between.trim()?n.raws.between.trim()+" ":"",n.nodes?["{",x([n.nodes.length>0?C:"",ni(e,t,r)]),C,"}"]:"",a?"":";"]}let o=n.name==="import"&&n.params&&n.params.type==="value-unknown"&&n.params.value.endsWith(";");return["@",Uo(n)||n.name.endsWith(":")?n.name:Lr(n.name),n.params?[Uo(n)?"":Ko(n)?n.raws.afterName===""?"":n.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(n.raws.afterName)?[D,D]:/^\s*\n/.test(n.raws.afterName)?D:" ":" ",typeof n.params=="string"?n.params:r("params")]:"",n.selector?x([" ",r("selector")]):"",n.value?g([" ",r("value"),Ys(n,t)?lm(n)?" ":S:""]):n.name==="else"?" ":"",n.nodes?[Ys(n,t)?"":n.selector&&!n.selector.nodes&&typeof n.selector.value=="string"&&ln(n.selector.value)||!n.selector&&typeof n.params=="string"&&ln(n.params)?S:" ","{",x([n.nodes.length>0?C:"",ni(e,t,r)]),C,"}"]:a||o?"":";"]}case"media-query-list":{let u=[];return e.each(a=>{let{node:o}=a;o.type==="media-query"&&o.value===""||u.push(r())},"nodes"),g(x(B(S,u)))}case"media-query":return[B(" ",e.map(r,"nodes")),Gs(e,n)?"":","];case"media-type":return pn(Ot(n.value,t));case"media-feature-expression":return n.nodes?["(",...e.map(r,"nodes"),")"]:n.value;case"media-feature":return Lr(Ot(n.value.replace(/ +/g," "),t));case"media-colon":return[n.value," "];case"media-value":return pn(Ot(n.value,t));case"media-keyword":return Ot(n.value,t);case"media-url":return Ot(n.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),t);case"media-unknown":return n.value;case"selector-root":return g([Zn(e,"custom-selector")?[xt(e,"css-atrule").customSelector,S]:"",B([",",Zn(e,["extend","custom-selector","nest"])?S:D],e.map(r,"nodes"))]);case"selector-selector":return g(x(e.map(r,"nodes")));case"selector-comment":return n.value;case"selector-string":return Ot(n.value,t);case"selector-tag":{let u=e.parent,a=u&&u.nodes.indexOf(n),o=a&&u.nodes[a-1];return[n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",o.type==="selector-nesting"?n.value:pn(zf(e,n.value)?n.value.toLowerCase():n.value)]}case"selector-id":return["#",n.value];case"selector-class":return[".",pn(Ot(n.value,t))];case"selector-attribute":return["[",n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",n.attribute.trim(),(i=n.operator)!=null?i:"",n.value?PC(Ot(n.value.trim(),t),t):"",n.insensitive?" i":"","]"];case"selector-combinator":{if(n.value==="+"||n.value===">"||n.value==="~"||n.value===">>>"){let o=e.parent;return[o.type==="selector-selector"&&o.nodes[0]===n?"":S,n.value,Gs(e,n)?"":" "]}let u=n.value.trim().startsWith("(")?S:"",a=pn(Ot(n.value.trim(),t))||S;return[u,a]}case"selector-universal":return[n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",n.value];case"selector-pseudo":return[Lr(n.value),L(n.nodes)?g(["(",x([C,B([",",S],e.map(r,"nodes"))]),C,")"]):""];case"selector-nesting":return n.value;case"selector-unknown":{let u=xt(e,"css-rule");if(u&&u.isSCSSNesterProperty)return pn(Ot(Lr(n.value),t));let a=e.parent;if(a.raws&&a.raws.selector){let c=St(a),p=c+a.raws.selector.length;return t.originalText.slice(c,p).trim()}let o=e.grandparent;if(a.type==="value-paren_group"&&o&&o.type==="value-func"&&o.value==="selector"){let c=At(a.open)+1,p=St(a.close),f=t.originalText.slice(c,p).trim();return ln(f)?[K,f]:f}return n.value}case"value-value":case"value-root":return r("group");case"value-comment":return t.originalText.slice(St(n),At(n));case"value-comma_group":{let u=e.parent,a=e.grandparent,o=Kf(e),c=o&&u.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),p=xt(e,"css-atrule"),f=p&&Ys(p,t),m=n.groups.some(k=>Yo(k)),d=e.map(r,"groups"),y=[],E=Qn(e,"url"),T=!1,b=!1;for(let k=0;k<n.groups.length;++k){y.push(d[k]);let A=n.groups[k-1],F=n.groups[k],v=n.groups[k+1],M=n.groups[k+2];if(E){(v&&er(v)||er(F))&&y.push(" ");continue}if(Zn(e,"forward")&&F.type==="value-word"&&F.value&&A!==void 0&&A.type==="value-word"&&A.value==="as"&&v.type==="value-operator"&&v.value==="*"||!v||F.type==="value-word"&&F.value.endsWith("-")&&ri(v))continue;let W=F.type==="value-string"&&F.value.startsWith("#{"),V=T&&v.type==="value-string"&&v.value.endsWith("}");if(W||V){T=!T;continue}if(T||Zs(F)||Zs(v)||F.type==="value-atword"&&F.value===""||F.value==="~"||F.type!=="value-string"&&F.value&&F.value.includes("\\")&&v&&v.type!=="value-comment"||A&&A.value&&A.value.indexOf("\\")===A.value.length-1&&F.type==="value-operator"&&F.value==="/"||F.value==="\\"||om(F,v)||Xs(F)||zo(F)||Qs(v)||zo(v)&&Or(v)||Qs(F)&&Or(v)||F.value==="--"&&Xs(v))continue;let z=Ks(F),R=Ks(v);if((z&&Xs(v)||R&&Qs(F))&&Or(v)||!A&&ei(F)||Qn(e,"calc")&&(er(F)||er(v)||Nr(F)||Nr(v))&&Or(v))continue;let se=(er(F)||Nr(F))&&k===0&&(v.type==="value-number"||v.isHex)&&a&&ym(a)&&!Or(v),pe=M&&M.type==="value-func"||M&&ti(M)||F.type==="value-func"||ti(F),Ye=v.type==="value-func"||ti(v)||A&&A.type==="value-func"||A&&ti(A);if(!(!(Us(v)||Us(F))&&!Qn(e,"calc")&&!se&&(ei(v)&&!pe||ei(F)&&!Ye||er(v)&&!pe||er(F)&&!Ye||Nr(v)||Nr(F))&&(Or(v)||z&&(!A||A&&Ks(A))))){if(Yo(F)){if(u.type==="value-paren_group"){y.push(Be(D));continue}y.push(D);continue}if(f&&(sm(v)||um(v)||nm(v)||im(F)||rm(F))){y.push(" ");continue}if(p&&p.name.toLowerCase()==="namespace"){y.push(" ");continue}if(c){F.source&&v.source&&F.source.start.line!==v.source.start.line?(y.push(D),b=!0):y.push(" ");continue}if(R){y.push(" ");continue}if(!(v&&v.value==="...")&&!(ri(F)&&ri(v)&&At(F)===St(v))){if(ri(F)&&eu(v)&&At(F)===St(v.open)){y.push(C);continue}if(F.value==="with"&&eu(v)){y.push(" ");continue}((s=F.value)==null?void 0:s.endsWith("#"))&&v.value==="{"&&eu(v.group)||y.push(S)}}}return m&&y.push(K),b&&y.unshift(D),f?g(x(y)):Qf(e)?g(ee(y)):g(x(ee(y)))}case"value-paren_group":{let u=e.parent,a=e.map(()=>{let b=e.node;return typeof b=="string"?b:r()},"groups");if(u&&Zf(u)&&(n.groups.length===1||n.groups.length>0&&n.groups[0].type==="value-comma_group"&&n.groups[0].groups.length>0&&n.groups[0].groups[0].type==="value-word"&&n.groups[0].groups[0].value.startsWith("data:")))return[n.open?r("open"):"",B(",",a),n.close?r("close"):""];if(!n.open)return g(x(ee(B([",",S],a))));let o=pm(e,t),c=P(!1,n.groups,-1),p=c&&c.type==="value-comment",f=fm(n,u),m=dm(n,u),d=em(u),y=m||o&&!f,E=m||f,T=g([n.open?r("open"):"",x([C,B([S],e.map((b,k)=>{let A=b.node,F=k===n.groups.length-1,M=!F||d&&(()=>Boolean(A.source&&t.originalText.slice(St(A),St(n.close)).trimEnd().endsWith(",")))(),W=[r(),M?",":""];if(zs(A)&&A.type==="value-comma_group"&&A.groups&&A.groups[0].type!=="value-paren_group"&&A.groups[2]&&A.groups[2].type==="value-paren_group"){let V=gr(W[0].contents.contents);return V[1]=g(V[1]),g(Be(W))}if(!F&&A.type==="value-comma_group"&&L(A.groups)){let V=P(!1,A.groups,-1);V.source&&Cr(t.originalText,V,At)&&W.push(D)}return W},"groups"))]),I(!p&&t.parser==="scss"&&o&&TC(t)?",":""),C,n.close?r("close"):""],{shouldBreak:y});return E?Be(T):T}case"value-func":return[n.value,Zn(e,"supports")&&mm(n)?" ":"",r("group")];case"value-paren":return n.value;case"value-number":return[hm(n.value),Dm(n.unit)];case"value-operator":return n.value;case"value-word":return n.isColor&&n.isHex||Yf(n.value)?n.value.toLowerCase():n.value;case"value-colon":{let u=e.parent,a=u&&u.groups.indexOf(n),o=a&&u.groups[a-1];return[n.value,o&&typeof o.value=="string"&&o.value.endsWith("\\")||Qn(e,"url")?"":S]}case"value-string":return _t(n.raws.quote+n.value+n.raws.quote,t);case"value-atword":return["@",n.value];case"value-unicode-range":return n.value;case"value-unknown":return n.value;case"value-comma":default:throw new me(n,"PostCSS")}}function ni(e,t,r){let n=[];return e.each((i,s,u)=>{let a=u[s-1];if(a&&a.type==="css-comment"&&a.text.trim()==="prettier-ignore"){let o=i.getValue();n.push(t.originalText.slice(St(o),At(o)))}else n.push(r());s!==u.length-1&&(u[s+1].type==="css-comment"&&!Q(t.originalText,St(u[s+1]),{backwards:!0})&&!Je(u[s])||u[s+1].type==="css-atrule"&&u[s+1].name==="else"&&u[s].type!=="css-comment"?n.push(" "):(n.push(t.__isHTMLStyleAttribute?S:D),Cr(t.originalText,i.getValue(),At)&&!Je(u[s])&&n.push(D)))},"nodes"),n}var gm=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,bC=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,vC=/[A-Za-z]+/g,BC=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,kC=new RegExp(gm.source+`|(${BC.source})?(${bC.source})(${vC.source})?`,"g");function Ot(e,t){return e.replace(gm,r=>_t(r,t))}function PC(e,t){let r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function pn(e){return e.replace(kC,(t,r,n,i,s)=>!n&&i?hm(i)+Lr(s||""):t)}function hm(e){return Ve(e).replace(/\.0(?=$|e)/,"")}var wC={print:FC,embed:Hf,insertPragma:Gf,massageAstNode:Vf,getVisitorKeys:AC},Em=wC;var Cm=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}];l();var _C={singleQuote:De.singleQuote},xm=_C;l();var Sm=void 0;var LC={postcss:Em};var uu={};fe(uu,{languages:()=>Jm,parsers:()=>Hm,printers:()=>ux});l();l();l();function ii(e){return e.loc.start.offset}function Qo(e){return e.loc.end.offset}l();function Am(e,t){if(e.type==="TextNode"){let r=e.chars.trim();if(!r)return null;t.chars=r.replace(/[\t\n\f\r ]+/g," ")}e.type==="AttrNode"&&e.name.toLowerCase()==="class"&&delete t.value}Am.ignoredProperties=new Set(["loc","selfClosing"]);var Tm=Am;l();l();var Fm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];function NC(e){return e.toUpperCase()===e}function OC(e){return e.type==="ElementNode"&&typeof e.tag=="string"&&!e.tag.startsWith(":")&&(NC(e.tag[0])||e.tag.includes("."))}var MC=new Set(Fm);function Zo(e){return MC.has(e.tag)||OC(e)&&e.children.every(t=>ru(t))}function ru(e){return e.type==="TextNode"&&!/\S/.test(e.chars)}function bm(e){return(e==null?void 0:e.type)==="MustacheCommentStatement"&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}function vm(e){return bm(e.node)||e.isInArray&&(e.key==="children"||e.key==="body"||e.key==="parts")&&bm(e.siblings[e.index-2])}var Bm={Program:["body"],Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],PartialStatement:["name","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],PathHead:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"],NamedBlock:["attributes","modifiers","children","comments"],SimpleElement:["attributes","modifiers","children","comments"],Component:["head","attributes","modifiers","children","comments"]};var RC=Te(Bm),Mm=2;function $C(e,t,r){var s,u,a,o,c,p,f,m,d;let{node:n}=e,i=t.singleQuote?"'":'"';switch(n.type){case"Block":case"Program":case"Template":return g(e.map(r,"body"));case"ElementNode":{let y=g(WC(e,r)),E=t.htmlWhitespaceSensitivity==="ignore"&&((s=e.next)==null?void 0:s.type)==="ElementNode"?C:"";if(Zo(n))return[y,E];let T=["</",n.tag,">"];return n.children.length===0?[y,x(T),E]:t.htmlWhitespaceSensitivity==="ignore"?[y,x(km(e,t,r)),D,x(T),E]:[y,x(g(km(e,t,r))),x(T),E]}case"BlockStatement":return KC(e)?[YC(e,r),Im(e,r,t),_m(e,r,t)]:[GC(e,r),g([Im(e,r,t),_m(e,r,t),zC(e,r,t)])];case"ElementModifierStatement":return g(["{{",Om(e,r),"}}"]);case"MustacheStatement":return g([nu(n),Om(e,r),iu(n)]);case"SubExpression":return g(["(",nx(e,r),C,")"]);case"AttrNode":{let{name:y,value:E}=n,T=E.type==="TextNode";if(T&&E.chars===""&&ii(E)===Qo(E))return y;let k=T?xr(E.chars,i).quote:E.type==="ConcatStatement"?xr(E.parts.filter(F=>F.type==="TextNode").map(F=>F.chars).join(""),i).quote:"",A=r("value");return[y,"=",k,y==="class"&&k?g(x(A)):A,k]}case"ConcatStatement":return e.map(r,"parts");case"Hash":return B(S,e.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let y=n.chars.replace(/{{/g,"\\{{"),E=ZC(e);if(E){if(E==="class"){let z=y.trim().split(/\s+/).join(" "),R=!1,se=!1;return e.parent.type==="ConcatStatement"&&(((u=e.previous)==null?void 0:u.type)==="MustacheStatement"&&/^\s/.test(y)&&(R=!0),((a=e.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/.test(y)&&z!==""&&(se=!0)),[R?S:"",z,se?S:""]}return j(y)}let b=/^[\t\n\f\r ]*$/.test(y),{isFirst:k,isLast:A}=e;if(t.htmlWhitespaceSensitivity!=="ignore"){let z=/^[\t\n\f\r ]*/,R=/[\t\n\f\r ]*$/,se=A&&e.parent.type==="Template",pe=k&&e.parent.type==="Template";if(b){if(pe||se)return"";let Ae=[S],Fi=fn(y);return Fi&&(Ae=si(Fi)),A&&(Ae=Ae.map(Rd=>Be(Rd))),Ae}let[Ye]=y.match(z),[N]=y.match(R),G=[];if(Ye){G=[S];let Ae=fn(Ye);Ae&&(G=si(Ae)),y=y.replace(z,"")}let te=[];if(N){if(!se){te=[S];let Ae=fn(N);Ae&&(te=si(Ae)),A&&(te=te.map(Fi=>Be(Fi)))}y=y.replace(R,"")}return[...G,ee(Lm(y)),...te]}let F=fn(y),v=ex(y),M=tx(y);if((k||A)&&b&&(e.parent.type==="Block"||e.parent.type==="ElementNode"||e.parent.type==="Template"))return"";b&&F?(v=Math.min(F,Mm),M=0):((((o=e.next)==null?void 0:o.type)==="BlockStatement"||((c=e.next)==null?void 0:c.type)==="ElementNode")&&(M=Math.max(M,1)),(((p=e.previous)==null?void 0:p.type)==="BlockStatement"||((f=e.previous)==null?void 0:f.type)==="ElementNode")&&(v=Math.max(v,1)));let W="",V="";return M===0&&((m=e.next)==null?void 0:m.type)==="MustacheStatement"&&(V=" "),v===0&&((d=e.previous)==null?void 0:d.type)==="MustacheStatement"&&(W=" "),k&&(v=0,W=""),A&&(M=0,V=""),y=y.replace(/^[\t\n\f\r ]+/g,W).replace(/[\t\n\f\r ]+$/,V),[...si(v),ee(Lm(y)),...si(M)]}case"MustacheCommentStatement":{let y=ii(n),E=Qo(n),T=t.originalText.charAt(y+2)==="~",b=t.originalText.charAt(E-3)==="~",k=n.value.includes("}}")?"--":"";return["{{",T?"~":"","!",k,n.value,k,b?"~":"","}}"]}case"PathExpression":return n.original;case"BooleanLiteral":return String(n.value);case"CommentStatement":return["<!--",n.value,"-->"];case"StringLiteral":if(rx(e)){let y=t.singleQuote?'"':"'";return Nm(n.value,y)}return Nm(n.value,i);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new me(n,"Handlebars")}}function qC(e,t){return ii(e)-ii(t)}function WC(e,t){let{node:r}=e,n=["attributes","modifiers","comments"].filter(s=>L(r[s])),i=n.flatMap(s=>r[s]).sort(qC);for(let s of n)e.each(({node:u})=>{let a=i.indexOf(u);i.splice(a,1,[S,t()])},s);return L(r.blockParams)&&i.push(S,Wm(r)),["<",r.tag,x(i),VC(r)]}function km(e,t,r){let{node:n}=e,i=n.children.every(s=>ru(s));return t.htmlWhitespaceSensitivity==="ignore"&&i?"":e.map(({isFirst:s})=>{let u=r();return s&&t.htmlWhitespaceSensitivity==="ignore"?[C,u]:u},"children")}function VC(e){return Zo(e)?I([C,"/>"],[" />",C]):I([C,">"],">")}function nu(e){let t=e.escaped===!1?"{{{":"{{",r=e.strip&&e.strip.open?"~":"";return[t,r]}function iu(e){let t=e.escaped===!1?"}}}":"}}";return[e.strip&&e.strip.close?"~":"",t]}function JC(e){let t=nu(e),r=e.openStrip.open?"~":"";return[t,r,"#"]}function HC(e){let t=iu(e);return[e.openStrip.close?"~":"",t]}function Pm(e){let t=nu(e),r=e.closeStrip.open?"~":"";return[t,r,"/"]}function wm(e){let t=iu(e);return[e.closeStrip.close?"~":"",t]}function jm(e){let t=nu(e),r=e.inverseStrip.open?"~":"";return[t,r]}function Rm(e){let t=iu(e);return[e.inverseStrip.close?"~":"",t]}function GC(e,t){let{node:r}=e,n=JC(r),i=HC(r),s=[ec(e,t)],u=su(e,t);if(u&&s.push(S,u),L(r.program.blockParams)){let a=Wm(r.program);s.push(S,a)}return g([n,x(s),C,i])}function UC(e,t){return[t.htmlWhitespaceSensitivity==="ignore"?D:"",jm(e),"else",Rm(e)]}function KC(e){var n;let{grandparent:t,node:r}=e;return((n=t==null?void 0:t.inverse)==null?void 0:n.body.length)===1&&t.inverse.body[0]===r&&t.inverse.body[0].path.parts[0]===t.path.parts[0]}function YC(e,t){let{grandparent:r}=e;return[jm(r),"else ",r.inverse.body[0].path.parts[0]," ",su(e,t),Rm(r)]}function zC(e,t,r){let{node:n}=e;return r.htmlWhitespaceSensitivity==="ignore"?[$m(n)?C:D,Pm(n),t("path"),wm(n)]:[Pm(n),t("path"),wm(n)]}function $m(e){return e.type==="BlockStatement"&&e.program.body.every(t=>ru(t))}function XC(e){return qm(e)&&e.inverse.body.length===1&&e.inverse.body[0].type==="BlockStatement"&&e.inverse.body[0].path.parts[0]===e.path.parts[0]}function qm(e){return e.type==="BlockStatement"&&e.inverse}function Im(e,t,r){let{node:n}=e;if($m(n))return"";let i=t("program");return r.htmlWhitespaceSensitivity==="ignore"?x([D,i]):x(i)}function _m(e,t,r){let{node:n}=e,i=t("inverse"),s=r.htmlWhitespaceSensitivity==="ignore"?[D,i]:i;return XC(n)?s:qm(n)?[UC(n,r),x(s)]:""}function Lm(e){return B(S,QC(e))}function QC(e){return e.split(/[\t\n\f\r ]+/)}function ZC(e){for(let t=0;t<2;t++){let r=e.getParentNode(t);if(r&&r.type==="AttrNode")return r.name.toLowerCase()}}function fn(e){return e=typeof e=="string"?e:"",e.split(`
70
- `).length-1}function ex(e){e=typeof e=="string"?e:"";let t=(e.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return fn(t)}function tx(e){e=typeof e=="string"?e:"";let t=(e.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return fn(t)}function si(e=0){return Array.from({length:Math.min(e,Mm)}).fill(D)}function Nm(e,t){let{quote:r,regex:n}=xr(e,t);return[r,e.replace(n,`\\${r}`),r]}function rx(e){let t=0,r=e.getParentNode(t);for(;(r==null?void 0:r.type)==="SubExpression";)t++,r=e.getParentNode(t);return!!(r&&e.getParentNode(t+1).type==="ConcatStatement"&&e.getParentNode(t+2).type==="AttrNode")}function nx(e,t){let r=ec(e,t),n=su(e,t);return n?x([r,S,g(n)]):r}function Om(e,t){let r=ec(e,t),n=su(e,t);return n?[x([r,S,n]),C]:r}function ec(e,t){return t("path")}function su(e,t){var i;let{node:r}=e,n=[];return r.params.length>0&&n.push(...e.map(t,"params")),((i=r.hash)==null?void 0:i.pairs.length)>0&&n.push(t("hash")),n.length===0?"":B(S,n)}function Wm(e){return["as |",e.blockParams.join(" "),"|"]}var ix={print:$C,massageAstNode:Tm,hasPrettierIgnore:vm,getVisitorKeys:RC},Vm=ix;var Jm=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];l();var Hm=void 0;var ux={glimmer:Vm};var au={};fe(au,{languages:()=>Qm,options:()=>Zm,parsers:()=>ey,printers:()=>hx});l();l();l();function Gm(e){return`# @format
59
+ `:"")+ys(r)}var OC={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},zf=OC;var NC=Be(zf),Xf=NC;var MC=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 Qf(e){var t,r;return(r=(t=e.findAncestor(n=>n.type==="css-decl"))==null?void 0:t.prop)==null?void 0:r.toLowerCase()}var jC=new Set(["initial","inherit","unset","revert"]);function Zf(e){return jC.has(e.toLowerCase())}function em(e,t){var n;let r=e.findAncestor(i=>i.type==="css-atrule");return((n=r==null?void 0:r.name)==null?void 0:n.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(t.toLowerCase())}function Or(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function ei(e,t){var n;let r=e.findAncestor(i=>i.type==="value-func");return((n=r==null?void 0:r.value)==null?void 0:n.toLowerCase())===t}function tm(e){var n;let t=e.findAncestor(i=>i.type==="css-rule"),r=(n=t==null?void 0:t.raws)==null?void 0:n.selector;return r&&(r.startsWith(":import")||r.startsWith(":export"))}function ti(e,t){let r=Array.isArray(t)?t:[t],n=e.findAncestor(i=>i.type==="css-atrule");return n&&r.includes(n.name.toLowerCase())}function rm(e){var r;let{node:t}=e;return t.groups[0].value==="url"&&t.groups.length===2&&((r=e.findAncestor(n=>n.type==="css-atrule"))==null?void 0:r.name)==="import"}function nm(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function im(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function Qs(e,t){var n;let r=(n=e.parent)==null?void 0:n.nodes;return r&&r.indexOf(t)===r.length-1}function sm(e){let{selector:t}=e;return t?typeof t=="string"&&/^@.+:.*$/.test(t)||t.value&&/^@.+:.*$/.test(t.value):!1}function um(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function am(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function om(e){return e.type==="value-word"&&e.value==="in"}function Zs(e){return e.type==="value-operator"&&e.value==="*"}function ri(e){return e.type==="value-operator"&&e.value==="/"}function nr(e){return e.type==="value-operator"&&e.value==="+"}function Nr(e){return e.type==="value-operator"&&e.value==="-"}function RC(e){return e.type==="value-operator"&&e.value==="%"}function eu(e){return Zs(e)||ri(e)||nr(e)||Nr(e)||RC(e)}function cm(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function lm(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function tu(e,t){return t.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function Ko(e){var t;return((t=e.raws)==null?void 0:t.params)&&/^\(\s*\)$/.test(e.raws.params)}function Yo(e){return e.name.startsWith("prettier-placeholder")}function pm(e){return e.prop.startsWith("@prettier-placeholder")}function fm(e,t){return e.value==="$$"&&e.type==="value-func"&&(t==null?void 0:t.type)==="value-word"&&!t.raws.before}function mm(e){var t,r;return((t=e.value)==null?void 0:t.type)==="value-root"&&((r=e.value.group)==null?void 0:r.type)==="value-value"&&e.prop.toLowerCase()==="composes"}function dm(e){var t,r,n;return((n=(r=(t=e.value)==null?void 0:t.group)==null?void 0:r.group)==null?void 0:n.type)==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function Mr(e){var t;return((t=e.raws)==null?void 0:t.before)===""}function ru(e){var t,r;return e.type==="value-comma_group"&&((r=(t=e.groups)==null?void 0:t[1])==null?void 0:r.type)==="value-colon"}function Uo(e){var t;return e.type==="value-paren_group"&&((t=e.groups)==null?void 0:t[0])&&ru(e.groups[0])}function ym(e,t){var s;if(t.parser!=="scss")return!1;let{node:r}=e;if(r.groups.length===0)return!1;let n=e.grandparent;if(!Uo(r)&&!(n&&Uo(n)))return!1;let i=e.findAncestor(u=>u.type==="css-decl");return!!((s=i==null?void 0:i.prop)!=null&&s.startsWith("$")||Uo(n)||n.type==="value-func")}function zo(e){return e.type==="value-comment"&&e.inline}function nu(e){return e.type==="value-word"&&e.value==="#"}function Xo(e){return e.type==="value-word"&&e.value==="{"}function iu(e){return e.type==="value-word"&&e.value==="}"}function ni(e){return["value-word","value-atword"].includes(e.type)}function su(e){return(e==null?void 0:e.type)==="value-colon"}function Dm(e,t){if(!ru(t))return!1;let{groups:r}=t,n=r.indexOf(e);return n===-1?!1:su(r[n+1])}function gm(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function hm(e){return e.type!=="value-func"?!1:MC.has(e.value.toLowerCase())}function fn(e){return/\/\//.test(e.split(/[\n\r]/).pop())}function ii(e){return(e==null?void 0:e.type)==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function Em(e,t){var r,n;if(((r=e.open)==null?void 0:r.value)!=="("||((n=e.close)==null?void 0:n.value)!==")"||e.groups.some(i=>i.type!=="value-comma_group"))return!1;if(t.type==="value-comma_group"){let i=t.groups.indexOf(e)-1,s=t.groups[i];if((s==null?void 0:s.type)==="value-word"&&s.value==="with")return!0}return!1}function si(e){var t,r;return e.type==="value-paren_group"&&((t=e.open)==null?void 0:t.value)==="("&&((r=e.close)==null?void 0:r.value)===")"}function xt(e){return e.source.startOffset}function St(e){return e.source.endOffset}var Qo=new Map([["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"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"]]);function $C(e){let t=e.toLowerCase();return Qo.has(t)?Qo.get(t):e}var Cm=$C;function WC(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function qC(e,t,r){var i,s,u,a,o;let{node:n}=e;switch(n.type){case"front-matter":return[n.raw,y];case"css-root":{let c=ui(e,t,r),l=n.raws.after.trim();return l.startsWith(";")&&(l=l.slice(1).trim()),[n.frontMatter?[r("frontMatter"),y]:"",c,l?` ${l}`:"",n.nodes.length>0?y:""]}case"css-comment":{let c=n.inline||n.raws.inline,l=t.originalText.slice(xt(n),St(n));return c?l.trimEnd():l}case"css-rule":return[r("selector"),n.important?" !important":"",n.nodes?[((i=n.selector)==null?void 0:i.type)==="selector-unknown"&&fn(n.selector.value)?C:n.selector?" ":"","{",n.nodes.length>0?E([y,ui(e,t,r)]):"",y,"}",sm(n)?";":""]:";"];case"css-decl":{let c=e.parent,{between:l}=n.raws,p=l.trim(),f=p===":",d=typeof n.value=="string"&&/^ *$/.test(n.value),m=typeof n.value=="string"?n.value:r("value");return m=mm(n)?ur(m):m,!f&&fn(p)&&(m=E([y,_e(m)])),[I(!1,n.raws.before,/[\s;]/g,""),c.type==="css-atrule"&&c.variable||tm(e)?n.prop:Or(n.prop),p.startsWith("//")?" ":"",p,n.extend||d?"":" ",t.parser==="less"&&n.extend&&n.selector?["extend(",r("selector"),")"]:"",m,n.raws.important?n.raws.important.replace(/\s*!\s*important/i," !important"):n.important?" !important":"",n.raws.scssDefault?n.raws.scssDefault.replace(/\s*!default/i," !default"):n.scssDefault?" !default":"",n.raws.scssGlobal?n.raws.scssGlobal.replace(/\s*!global/i," !global"):n.scssGlobal?" !global":"",n.nodes?[" {",E([h,ui(e,t,r)]),h,"}"]:pm(n)&&!c.raws.semicolon&&t.originalText[St(n)-1]!==";"?"":t.__isHTMLStyleAttribute&&Qs(e,n)?L(";"):";"]}case"css-atrule":{let c=e.parent,l=Yo(n)&&!c.raws.semicolon&&t.originalText[St(n)-1]!==";";if(t.parser==="less"){if(n.mixin)return[r("selector"),n.important?" !important":"",l?"":";"];if(n.function)return[n.name,typeof n.params=="string"?n.params:r("params"),l?"":";"];if(n.variable)return["@",n.name,": ",n.value?r("value"):"",n.raws.between.trim()?n.raws.between.trim()+" ":"",n.nodes?["{",E([n.nodes.length>0?h:"",ui(e,t,r)]),h,"}"]:"",l?"":";"]}let p=n.name==="import"&&((s=n.params)==null?void 0:s.type)==="value-unknown"&&n.params.value.endsWith(";");return["@",Ko(n)||n.name.endsWith(":")?n.name:Or(n.name),n.params?[Ko(n)?"":Yo(n)?n.raws.afterName===""?"":n.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(n.raws.afterName)?[y,y]:/^\s*\n/.test(n.raws.afterName)?y:" ":" ",typeof n.params=="string"?n.params:r("params")]:"",n.selector?E([" ",r("selector")]):"",n.value?D([" ",r("value"),tu(n,t)?dm(n)?" ":C:""]):n.name==="else"?" ":"",n.nodes?[tu(n,t)?"":n.selector&&!n.selector.nodes&&typeof n.selector.value=="string"&&fn(n.selector.value)||!n.selector&&typeof n.params=="string"&&fn(n.params)?C:" ","{",E([n.nodes.length>0?h:"",ui(e,t,r)]),h,"}"]:l||p?"":";"]}case"media-query-list":{let c=[];return e.each(({node:l})=>{l.type==="media-query"&&l.value===""||c.push(r())},"nodes"),D(E(A(C,c)))}case"media-query":return[A(" ",e.map(r,"nodes")),Qs(e,n)?"":","];case"media-type":return mn(qt(n.value,t));case"media-feature-expression":return n.nodes?["(",...e.map(r,"nodes"),")"]:n.value;case"media-feature":return Or(qt(I(!1,n.value,/ +/g," "),t));case"media-colon":return[n.value," "];case"media-value":return mn(qt(n.value,t));case"media-keyword":return qt(n.value,t);case"media-url":return qt(I(!1,I(!1,n.value,/^url\(\s+/gi,"url("),/\s+\)$/g,")"),t);case"media-unknown":return n.value;case"selector-root":return D([ti(e,"custom-selector")?[e.findAncestor(c=>c.type==="css-atrule").customSelector,C]:"",A([",",ti(e,["extend","custom-selector","nest"])?C:y],e.map(r,"nodes"))]);case"selector-selector":return D(E(e.map(r,"nodes")));case"selector-comment":return n.value;case"selector-string":return qt(n.value,t);case"selector-tag":return[n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",((u=e.previous)==null?void 0:u.type)==="selector-nesting"?n.value:mn(em(e,n.value)?n.value.toLowerCase():n.value)];case"selector-id":return["#",n.value];case"selector-class":return[".",mn(qt(n.value,t))];case"selector-attribute":return["[",n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",n.attribute.trim(),n.operator??"",n.value?UC(qt(n.value.trim(),t),t):"",n.insensitive?" i":"","]"];case"selector-combinator":{if(n.value==="+"||n.value===">"||n.value==="~"||n.value===">>>"){let p=e.parent;return[p.type==="selector-selector"&&p.nodes[0]===n?"":C,n.value,Qs(e,n)?"":" "]}let c=n.value.trim().startsWith("(")?C:"",l=mn(qt(n.value.trim(),t))||C;return[c,l]}case"selector-universal":return[n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",n.value];case"selector-pseudo":return[Or(n.value),N(n.nodes)?D(["(",E([h,A([",",C],e.map(r,"nodes"))]),h,")"]):""];case"selector-nesting":return n.value;case"selector-unknown":{let c=e.findAncestor(f=>f.type==="css-rule");if(c!=null&&c.isSCSSNesterProperty)return mn(qt(Or(n.value),t));let l=e.parent;if((a=l.raws)!=null&&a.selector){let f=xt(l),d=f+l.raws.selector.length;return t.originalText.slice(f,d).trim()}let p=e.grandparent;if(l.type==="value-paren_group"&&(p==null?void 0:p.type)==="value-func"&&p.value==="selector"){let f=St(l.open)+1,d=xt(l.close),m=t.originalText.slice(f,d).trim();return fn(m)?[K,m]:m}return n.value}case"value-value":case"value-root":return r("group");case"value-comment":return t.originalText.slice(xt(n),St(n));case"value-comma_group":{let c=e.parent,l=e.grandparent,p=Qf(e),f=p&&c.type==="value-value"&&(p==="grid"||p.startsWith("grid-template")),d=e.findAncestor(T=>T.type==="css-atrule"),m=d&&tu(d,t),g=n.groups.some(T=>zo(T)),x=e.map(r,"groups"),S=[],F=ei(e,"url"),k=!1,v=!1;for(let T=0;T<n.groups.length;++T){S.push(x[T]);let _=n.groups[T-1],b=n.groups[T],w=n.groups[T+1],j=n.groups[T+2];if(F){(w&&nr(w)||nr(b))&&S.push(" ");continue}if(ti(e,"forward")&&b.type==="value-word"&&b.value&&_!==void 0&&_.type==="value-word"&&_.value==="as"&&w.type==="value-operator"&&w.value==="*"||!w||b.type==="value-word"&&b.value.endsWith("-")&&ii(w))continue;if(b.type==="value-string"&&b.quoted){let V=b.value.lastIndexOf("#{"),se=b.value.lastIndexOf("}");V!==-1&&se!==-1?k=V>se:V!==-1?k=!0:se!==-1&&(k=!1)}if(k||su(b)||su(w)||b.type==="value-atword"&&(b.value===""||b.value.endsWith("["))||w.type==="value-word"&&w.value.startsWith("]")||b.value==="~"||b.type!=="value-string"&&b.value&&b.value.includes("\\")&&w&&w.type!=="value-comment"||_!=null&&_.value&&_.value.indexOf("\\")===_.value.length-1&&b.type==="value-operator"&&b.value==="/"||b.value==="\\"||fm(b,w)||nu(b)||Xo(b)||iu(w)||Xo(w)&&Mr(w)||iu(b)&&Mr(w)||b.value==="--"&&nu(w))continue;let H=eu(b),W=eu(w);if((H&&nu(w)||W&&iu(b))&&Mr(w)||!_&&ri(b)||ei(e,"calc")&&(nr(b)||nr(w)||Nr(b)||Nr(w))&&Mr(w))continue;let tt=(nr(b)||Nr(b))&&T===0&&(w.type==="value-number"||w.isHex)&&l&&hm(l)&&!Mr(w),ve=(j==null?void 0:j.type)==="value-func"||j&&ni(j)||b.type==="value-func"||ni(b),M=w.type==="value-func"||ni(w)||(_==null?void 0:_.type)==="value-func"||_&&ni(_);if(!(!(Zs(w)||Zs(b))&&!ei(e,"calc")&&!tt&&(ri(w)&&!ve||ri(b)&&!M||nr(w)&&!ve||nr(b)&&!M||Nr(w)||Nr(b))&&(Mr(w)||H&&(!_||_&&eu(_))))&&!((t.parser==="scss"||t.parser==="less")&&H&&b.value==="-"&&si(w)&&St(b)===xt(w.open)&&w.open.value==="(")){if(zo(b)){if(c.type==="value-paren_group"){S.push(_e(y));continue}S.push(y);continue}if(m&&(cm(w)||lm(w)||am(w)||om(b)||um(b))){S.push(" ");continue}if(d&&d.name.toLowerCase()==="namespace"){S.push(" ");continue}if(f){b.source&&w.source&&b.source.start.line!==w.source.start.line?(S.push(y),v=!0):S.push(" ");continue}if(W){S.push(" ");continue}if((w==null?void 0:w.value)!=="..."&&!(ii(b)&&ii(w)&&St(b)===xt(w))){if(ii(b)&&si(w)&&St(b)===xt(w.open)){S.push(h);continue}if(b.value==="with"&&si(w)){S.push(" ");continue}(o=b.value)!=null&&o.endsWith("#")&&w.value==="{"&&si(w.group)||S.push(C)}}}return g&&S.push(K),v&&S.unshift(y),m?D(E(S)):rm(e)?D(ie(S)):D(E(ie(S)))}case"value-paren_group":{let c=e.parent,l=e.map(()=>{let v=e.node;return typeof v=="string"?v:r()},"groups");if(c&&nm(c)&&(n.groups.length===1||n.groups.length>0&&n.groups[0].type==="value-comma_group"&&n.groups[0].groups.length>0&&n.groups[0].groups[0].type==="value-word"&&n.groups[0].groups[0].value.startsWith("data:")))return[n.open?r("open"):"",A(",",l),n.close?r("close"):""];if(!n.open)return D(E(ie(A([",",C],l))));let p=ym(e,t),f=P(!1,n.groups,-1),d=(f==null?void 0:f.type)==="value-comment",m=Dm(n,c),g=Em(n,c),x=im(c),S=g||p&&!m,F=g||m,k=D([n.open?r("open"):"",E([h,A([C],e.map(({node:v,isLast:T,index:_})=>{var H;let w=!T||x&&(()=>Boolean(v.source&&t.originalText.slice(xt(v),xt(n.close)).trimEnd().endsWith(",")))(),j=[l[_],w?",":""];if(ru(v)&&v.type==="value-comma_group"&&v.groups&&v.groups[0].type!=="value-paren_group"&&((H=v.groups[2])==null?void 0:H.type)==="value-paren_group"){let W=Tr(j[0].contents.contents);W[1]=D(W[1]),j=[D(_e(j))]}if(!T&&v.type==="value-comma_group"&&N(v.groups)){let W=P(!1,v.groups,-1);!W.source&&W.close&&(W=W.close),W.source&&ot(t.originalText,St(W))&&j.push(y)}return j},"groups"))]),L(!d&&t.parser==="scss"&&p&&WC(t)?",":""),h,n.close?r("close"):""],{shouldBreak:S});return F?_e(k):k}case"value-func":return[n.value,ti(e,"supports")&&gm(n)?" ":"",r("group")];case"value-paren":return n.value;case"value-number":return[Sm(n.value),Cm(n.unit)];case"value-operator":return n.value;case"value-word":return n.isColor&&n.isHex||Zf(n.value)?n.value.toLowerCase():n.value;case"value-colon":{let{previous:c}=e;return[n.value,typeof(c==null?void 0:c.value)=="string"&&c.value.endsWith("\\")||ei(e,"url")?"":C]}case"value-string":return Wt(n.raws.quote+n.value+n.raws.quote,t);case"value-atword":return["@",n.value];case"value-unicode-range":return n.value;case"value-unknown":return n.value;case"value-comma":default:throw new ee(n,"PostCSS")}}function ui(e,t,r){let n=[];return e.each(()=>{let{node:i,previous:s}=e;if((s==null?void 0:s.type)==="css-comment"&&s.text.trim()==="prettier-ignore"?n.push(t.originalText.slice(xt(i),St(i))):n.push(r()),e.isLast)return;let{next:u}=e;u.type==="css-comment"&&!Y(t.originalText,xt(u),{backwards:!0})&&!Ze(i)||u.type==="css-atrule"&&u.name==="else"&&i.type!=="css-comment"?n.push(" "):(n.push(t.__isHTMLStyleAttribute?C:y),ot(t.originalText,St(i))&&!Ze(i)&&n.push(y))},"nodes"),n}var xm=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,VC=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,JC=/[A-Za-z]+/g,GC=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,HC=new RegExp(xm.source+`|(${GC.source})?(${VC.source})(${JC.source})?`,"g");function qt(e,t){return I(!1,e,xm,r=>Wt(r,t))}function UC(e,t){let r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function mn(e){return e.replace(HC,(t,r,n,i,s)=>!n&&i?Sm(i)+Or(s||""):t)}function Sm(e){return mt(e).replace(/\.0(?=$|e)/,"")}var KC={print:qC,embed:Kf,insertPragma:Yf,massageAstNode:Hf,getVisitorKeys:Xf},Tm=KC;var Am=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}];var YC={singleQuote:xe.singleQuote},Fm=YC;var zC={postcss:Tm},XC=ze(Jf);var pu={};fe(pu,{languages:()=>Ym,parsers:()=>Tx,printers:()=>Sx});var bm=void 0;var QC=[" ",`
60
+ `,"\f","\r"," "],ZC=new Ds(QC),ge=ZC;function ai(e){return e.loc.start.offset}function Zo(e){return e.loc.end.offset}function vm(e,t){if(e.type==="TextNode"){let r=e.chars.trim();if(!r)return null;t.chars=ge.split(r).join(" ")}e.type==="AttrNode"&&e.name.toLowerCase()==="class"&&delete t.value}vm.ignoredProperties=new Set(["loc","selfClosing"]);var Bm=vm;var km=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function wm(e){return e.toUpperCase()===e}function ex(e){return e.type==="ElementNode"&&typeof e.tag=="string"&&!e.tag.startsWith(":")&&(wm(e.tag[0])||e.tag.includes("."))}var tx=new Set(km);function rx(e){return tx.has(e.toLowerCase())&&!wm(e[0])}function ec(e){return e.selfClosing===!0||rx(e.tag)||ex(e)&&e.children.every(t=>au(t))}function au(e){return e.type==="TextNode"&&!/\S/.test(e.chars)}function Pm(e){return(e==null?void 0:e.type)==="MustacheCommentStatement"&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}function _m(e){return Pm(e.node)||e.isInArray&&(e.key==="children"||e.key==="body"||e.key==="parts")&&Pm(e.siblings[e.index-2])}var Lm={Program:["body"],Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],PartialStatement:["name","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],PathHead:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"],NamedBlock:["attributes","modifiers","children","comments"],SimpleElement:["attributes","modifiers","children","comments"],Component:["head","attributes","modifiers","children","comments"]};var nx=Be(Lm),Im=nx;var Vm=2;function ix(e,t,r){var s,u,a,o,c,l,p,f,d;let{node:n}=e,i=t.singleQuote?"'":'"';switch(n.type){case"Block":case"Program":case"Template":return D(e.map(r,"body"));case"ElementNode":{let m=D(ux(e,r)),g=t.htmlWhitespaceSensitivity==="ignore"&&((s=e.next)==null?void 0:s.type)==="ElementNode"?h:"";if(ec(n))return[m,g];let x=["</",n.tag,">"];return n.children.length===0?[m,E(x),g]:t.htmlWhitespaceSensitivity==="ignore"?[m,E(Om(e,t,r)),y,E(x),g]:[m,E(D(Om(e,t,r))),E(x),g]}case"BlockStatement":return fx(e)?[mx(e,r),jm(e,r,t),Rm(e,r,t)]:[lx(e,r),D([jm(e,r,t),Rm(e,r,t),dx(e,r,t)])];case"ElementModifierStatement":return D(["{{",qm(e,r),"}}"]);case"MustacheStatement":return D([ou(n),qm(e,r),cu(n)]);case"SubExpression":return D(["(",Cx(e,r),h,")"]);case"AttrNode":{let{name:m,value:g}=n,x=g.type==="TextNode";if(x&&g.chars===""&&ai(g)===Zo(g))return m;let F=x?yr(g.chars,i).quote:g.type==="ConcatStatement"?yr(g.parts.filter(v=>v.type==="TextNode").map(v=>v.chars).join(""),i).quote:"",k=r("value");return[m,"=",F,m==="class"&&F?D(E(k)):k,F]}case"ConcatStatement":return e.map(r,"parts");case"Hash":return A(C,e.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let m=I(!1,n.chars,"{{","\\{{"),g=Dx(e);if(g){if(g==="class"){let w=m.trim().split(/\s+/).join(" "),j=!1,H=!1;return e.parent.type==="ConcatStatement"&&(((u=e.previous)==null?void 0:u.type)==="MustacheStatement"&&/^\s/.test(m)&&(j=!0),((a=e.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/.test(m)&&w!==""&&(H=!0)),[j?C:"",w,H?C:""]}return $(m)}let x=ge.isWhitespaceOnly(m),{isFirst:S,isLast:F}=e;if(t.htmlWhitespaceSensitivity!=="ignore"){let w=F&&e.parent.type==="Template",j=S&&e.parent.type==="Template";if(x){if(j||w)return"";let M=[C],V=dn(m);return V&&(M=oi(V)),F&&(M=M.map(se=>_e(se))),M}let H=ge.getLeadingWhitespace(m),W=[];if(H){W=[C];let M=dn(H);M&&(W=oi(M)),m=m.slice(H.length)}let tt=ge.getTrailingWhitespace(m),ve=[];if(tt){if(!w){ve=[C];let M=dn(tt);M&&(ve=oi(M)),F&&(ve=ve.map(V=>_e(V)))}m=m.slice(0,-tt.length)}return[...W,ie($m(m)),...ve]}let k=dn(m),v=gx(m),T=hx(m);if((S||F)&&x&&(e.parent.type==="Block"||e.parent.type==="ElementNode"||e.parent.type==="Template"))return"";x&&k?(v=Math.min(k,Vm),T=0):((((o=e.next)==null?void 0:o.type)==="BlockStatement"||((c=e.next)==null?void 0:c.type)==="ElementNode")&&(T=Math.max(T,1)),(((l=e.previous)==null?void 0:l.type)==="BlockStatement"||((p=e.previous)==null?void 0:p.type)==="ElementNode")&&(v=Math.max(v,1)));let _="",b="";return T===0&&((f=e.next)==null?void 0:f.type)==="MustacheStatement"&&(b=" "),v===0&&((d=e.previous)==null?void 0:d.type)==="MustacheStatement"&&(_=" "),S&&(v=0,_=""),F&&(T=0,b=""),ge.hasLeadingWhitespace(m)&&(m=_+ge.trimStart(m)),ge.hasTrailingWhitespace(m)&&(m=ge.trimEnd(m)+b),[...oi(v),ie($m(m)),...oi(T)]}case"MustacheCommentStatement":{let m=ai(n),g=Zo(n),x=t.originalText.charAt(m+2)==="~",S=t.originalText.charAt(g-3)==="~",F=n.value.includes("}}")?"--":"";return["{{",x?"~":"","!",F,n.value,F,S?"~":"","}}"]}case"PathExpression":return n.original;case"BooleanLiteral":return String(n.value);case"CommentStatement":return["<!--",n.value,"-->"];case"StringLiteral":if(Ex(e)){let m=t.singleQuote?'"':"'";return Wm(n.value,m)}return Wm(n.value,i);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new ee(n,"Handlebars")}}function sx(e,t){return ai(e)-ai(t)}function ux(e,t){let{node:r}=e,n=["attributes","modifiers","comments"].filter(s=>N(r[s])),i=n.flatMap(s=>r[s]).sort(sx);for(let s of n)e.each(({node:u})=>{let a=i.indexOf(u);i.splice(a,1,[C,t()])},s);return N(r.blockParams)&&i.push(C,rc(r)),["<",r.tag,E(i),ax(r)]}function Om(e,t,r){let{node:n}=e,i=n.children.every(s=>au(s));return t.htmlWhitespaceSensitivity==="ignore"&&i?"":e.map(({isFirst:s})=>{let u=r();return s&&t.htmlWhitespaceSensitivity==="ignore"?[h,u]:u},"children")}function ax(e){return ec(e)?L([h,"/>"],[" />",h]):L([h,">"],">")}function ou(e){var n;let t=e.escaped===!1?"{{{":"{{",r=(n=e.strip)!=null&&n.open?"~":"";return[t,r]}function cu(e){var n;let t=e.escaped===!1?"}}}":"}}";return[(n=e.strip)!=null&&n.close?"~":"",t]}function ox(e){let t=ou(e),r=e.openStrip.open?"~":"";return[t,r,"#"]}function cx(e){let t=cu(e);return[e.openStrip.close?"~":"",t]}function Nm(e){let t=ou(e),r=e.closeStrip.open?"~":"";return[t,r,"/"]}function Mm(e){let t=cu(e);return[e.closeStrip.close?"~":"",t]}function Jm(e){let t=ou(e),r=e.inverseStrip.open?"~":"";return[t,r]}function Gm(e){let t=cu(e);return[e.inverseStrip.close?"~":"",t]}function lx(e,t){let{node:r}=e,n=[],i=lu(e,t);return i&&n.push(D(i)),N(r.program.blockParams)&&n.push(rc(r.program)),D([ox(r),tc(e,t),n.length>0?E([C,A(C,n)]):"",h,cx(r)])}function px(e,t){return[t.htmlWhitespaceSensitivity==="ignore"?y:"",Jm(e),"else",Gm(e)]}function fx(e){var n;let{grandparent:t,node:r}=e;return((n=t==null?void 0:t.inverse)==null?void 0:n.body.length)===1&&t.inverse.body[0]===r&&t.inverse.body[0].path.parts[0]===t.path.parts[0]}function mx(e,t){let{node:r,grandparent:n}=e;return D([Jm(n),["else"," ",n.inverse.body[0].path.parts[0]],E([C,D(lu(e,t)),...N(r.program.blockParams)?[C,rc(r.program)]:[]]),h,Gm(n)])}function dx(e,t,r){let{node:n}=e;return r.htmlWhitespaceSensitivity==="ignore"?[Hm(n)?h:y,Nm(n),t("path"),Mm(n)]:[Nm(n),t("path"),Mm(n)]}function Hm(e){return e.type==="BlockStatement"&&e.program.body.every(t=>au(t))}function yx(e){return Um(e)&&e.inverse.body.length===1&&e.inverse.body[0].type==="BlockStatement"&&e.inverse.body[0].path.parts[0]===e.path.parts[0]}function Um(e){return e.type==="BlockStatement"&&e.inverse}function jm(e,t,r){let{node:n}=e;if(Hm(n))return"";let i=t("program");return r.htmlWhitespaceSensitivity==="ignore"?E([y,i]):E(i)}function Rm(e,t,r){let{node:n}=e,i=t("inverse"),s=r.htmlWhitespaceSensitivity==="ignore"?[y,i]:i;return yx(n)?s:Um(n)?[px(n,r),E(s)]:""}function $m(e){return A(C,ge.split(e))}function Dx(e){for(let t=0;t<2;t++){let r=e.getParentNode(t);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function dn(e){return e=typeof e=="string"?e:"",e.split(`
61
+ `).length-1}function gx(e){e=typeof e=="string"?e:"";let t=(e.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return dn(t)}function hx(e){e=typeof e=="string"?e:"";let t=(e.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return dn(t)}function oi(e=0){return Array.from({length:Math.min(e,Vm)}).fill(y)}function Wm(e,t){let{quote:r,regex:n}=yr(e,t);return[r,e.replace(n,`\\${r}`),r]}function Ex(e){let{ancestors:t}=e,r=t.findIndex(n=>n.type!=="SubExpression");return r!==-1&&t[r+1].type==="ConcatStatement"&&t[r+2].type==="AttrNode"}function Cx(e,t){let r=tc(e,t),n=lu(e,t);return n?E([r,C,D(n)]):r}function qm(e,t){let r=tc(e,t),n=lu(e,t);return n?[E([r,C,n]),h]:r}function tc(e,t){return t("path")}function lu(e,t){var i;let{node:r}=e,n=[];return r.params.length>0&&n.push(...e.map(t,"params")),((i=r.hash)==null?void 0:i.pairs.length)>0&&n.push(t("hash")),n.length===0?"":A(C,n)}function rc(e){return["as |",e.blockParams.join(" "),"|"]}var xx={print:ix,massageAstNode:Bm,hasPrettierIgnore:_m,getVisitorKeys:Im},Km=xx;var Ym=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var Sx={glimmer:Km},Tx=ze(bm);var fu={};fe(fu,{languages:()=>sd,options:()=>ud,parsers:()=>Ix,printers:()=>Lx});var zm=void 0;function Xm(e){return`# @format
71
62
 
72
- `+e}l();function Um(e){return e.kind==="Comment"?e.start:e.loc.start}function Km(e){return e.kind==="Comment"?e.end:e.loc.end}var Ym={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};l();function ox(e,t,r){let{node:n}=e;if(!n.description)return"";let i=[r("description")];return n.kind==="InputValueDefinition"&&!n.description.block?i.push(S):i.push(D),i}var Mt=ox;var cx=Te(Ym,"kind");function lx(e,t,r){let{node:n}=e;switch(n.kind){case"Document":return[...B(D,jt(e,t,r,"definitions")),D];case"OperationDefinition":{let i=t.originalText[Um(n)]!=="{",s=Boolean(n.name);return[i?n.operation:"",i&&s?[" ",r("name")]:"",i&&!s&&L(n.variableDefinitions)?" ":"",L(n.variableDefinitions)?g(["(",x([C,B([I("",", "),C],e.map(r,"variableDefinitions"))]),C,")"]):"",Ie(e,r,n),n.selectionSet?!i&&!s?"":" ":"",r("selectionSet")]}case"FragmentDefinition":return["fragment ",r("name"),L(n.variableDefinitions)?g(["(",x([C,B([I("",", "),C],e.map(r,"variableDefinitions"))]),C,")"]):""," on ",r("typeCondition"),Ie(e,r,n)," ",r("selectionSet")];case"SelectionSet":return["{",x([D,B(D,jt(e,t,r,"selections"))]),D,"}"];case"Field":return g([n.alias?[r("alias"),": "]:"",r("name"),n.arguments.length>0?g(["(",x([C,B([I("",", "),C],jt(e,t,r,"arguments"))]),C,")"]):"",Ie(e,r,n),n.selectionSet?" ":"",r("selectionSet")]);case"Name":return n.value;case"StringValue":if(n.block){let i=n.value.replace(/"""/g,"\\$&").split(`
73
- `);return i.length===1&&(i[0]=i[0].trim()),i.every(s=>s==="")&&(i.length=0),B(D,['"""',...i,'"""'])}return['"',n.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return n.value;case"BooleanValue":return n.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",r("name")];case"ListValue":return g(["[",x([C,B([I("",", "),C],e.map(r,"values"))]),C,"]"]);case"ObjectValue":return g(["{",t.bracketSpacing&&n.fields.length>0?" ":"",x([C,B([I("",", "),C],e.map(r,"fields"))]),C,I("",t.bracketSpacing&&n.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[r("name"),": ",r("value")];case"Directive":return["@",r("name"),n.arguments.length>0?g(["(",x([C,B([I("",", "),C],jt(e,t,r,"arguments"))]),C,")"]):""];case"NamedType":return r("name");case"VariableDefinition":return[r("variable"),": ",r("type"),n.defaultValue?[" = ",r("defaultValue")]:"",Ie(e,r,n)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:i}=n,s=[];return i.endsWith("TypeDefinition")?s.push(Mt(e,t,r)):s.push("extend "),i.startsWith("ObjectType")?s.push("type"):i.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",r("name")),!i.startsWith("InputObjectType")&&n.interfaces.length>0&&s.push(" implements ",...mx(e,t,r)),s.push(Ie(e,r,n)),n.fields.length>0&&s.push([" {",x([D,B(D,jt(e,t,r,"fields"))]),D,"}"]),s}case"FieldDefinition":return[Mt(e,t,r),r("name"),n.arguments.length>0?g(["(",x([C,B([I("",", "),C],jt(e,t,r,"arguments"))]),C,")"]):"",": ",r("type"),Ie(e,r,n)];case"DirectiveDefinition":return[Mt(e,t,r),"directive ","@",r("name"),n.arguments.length>0?g(["(",x([C,B([I("",", "),C],jt(e,t,r,"arguments"))]),C,")"]):"",n.repeatable?" repeatable":""," on ",...B(" | ",e.map(r,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[Mt(e,t,r),n.kind==="EnumTypeExtension"?"extend ":"","enum ",r("name"),Ie(e,r,n),n.values.length>0?[" {",x([D,B(D,jt(e,t,r,"values"))]),D,"}"]:""];case"EnumValueDefinition":return[Mt(e,t,r),r("name"),Ie(e,r,n)];case"InputValueDefinition":return[Mt(e,t,r),r("name"),": ",r("type"),n.defaultValue?[" = ",r("defaultValue")]:"",Ie(e,r,n)];case"SchemaExtension":return["extend schema",Ie(e,r,n),...n.operationTypes.length>0?[" {",x([D,B(D,jt(e,t,r,"operationTypes"))]),D,"}"]:[]];case"SchemaDefinition":return[Mt(e,t,r),"schema",Ie(e,r,n)," {",n.operationTypes.length>0?x([D,B(D,jt(e,t,r,"operationTypes"))]):"",D,"}"];case"OperationTypeDefinition":return[n.operation,": ",r("type")];case"FragmentSpread":return["...",r("name"),Ie(e,r,n)];case"InlineFragment":return["...",n.typeCondition?[" on ",r("typeCondition")]:"",Ie(e,r,n)," ",r("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return g([Mt(e,t,r),g([n.kind==="UnionTypeExtension"?"extend ":"","union ",r("name"),Ie(e,r,n),n.types.length>0?[" =",I(""," "),x([I([S," "]),B([S,"| "],e.map(r,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[Mt(e,t,r),n.kind==="ScalarTypeExtension"?"extend ":"","scalar ",r("name"),Ie(e,r,n)];case"NonNullType":return[r("type"),"!"];case"ListType":return["[",r("type"),"]"];default:throw new me(n,"Graphql","kind")}}function Ie(e,t,r){if(r.directives.length===0)return"";let n=B(S,e.map(t,"directives"));return r.kind==="FragmentDefinition"||r.kind==="OperationDefinition"?g([S,n]):[" ",g(x([C,n]))]}function jt(e,t,r,n){return e.map(({isLast:i,node:s})=>{let u=r();return!i&&Cr(t.originalText,s,Km)?[u,D]:u},n)}function px(e){return e.kind!=="Comment"}function fx(e){let t=e.node;if(t.kind==="Comment")return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function mx(e,t,r){let{node:n}=e,i=[],{interfaces:s}=n,u=e.map(r,"interfaces");for(let a=0;a<s.length;a++){let o=s[a];i.push(u[a]);let c=s[a+1];if(c){let f=t.originalText.slice(o.loc.end,c.loc.start).includes("#");i.push(" &",f?S:" ")}}return i}function zm(e,t){e.kind==="StringValue"&&e.block&&!e.value.includes(`
74
- `)&&(t.value=t.value.trim())}zm.ignoredProperties=new Set(["loc","comments"]);function yx(e){var r;let{node:t}=e;return(r=t==null?void 0:t.comments)==null?void 0:r.some(n=>n.value.trim()==="prettier-ignore")}var dx={print:lx,massageAstNode:zm,hasPrettierIgnore:yx,insertPragma:Gm,printComment:fx,canAttachComment:px,getVisitorKeys:cx},Xm=dx;var Qm=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}];l();var gx={bracketSpacing:De.bracketSpacing},Zm=gx;l();var ey=void 0;var hx={graphql:Xm};var pu={};fe(pu,{languages:()=>xy,options:()=>Sy,parsers:()=>Ay,printers:()=>Zx});l();l();l();l();function Ex(e,t){let{languages:r}=Sr({plugins:t.plugins}),n=r.find(({name:i})=>i.toLowerCase()===e)||r.find(({aliases:i})=>Array.isArray(i)&&i.includes(e))||r.find(({extensions:i})=>Array.isArray(i)&&i.includes(`.${e}`));return n&&n.parsers[0]}var ui=Ex;l();l();function ai(e){return e.position.start.offset}function oi(e){return e.position.end.offset}var ty="(?:[\\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])?",ry="[\\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]",ci="[\\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\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]";var nc=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],ny=[...nc,"tableCell","paragraph","heading"],Cx=new RegExp(ry),rc=new RegExp(ci),Mr="non-cjk",tr="cj-letter",yr="k-letter",li="cjk-punctuation";function ou(e){let t=[],r=e.split(/([\t\n ]+)/);for(let[i,s]of r.entries()){if(i%2===1){t.push({type:"whitespace",value:/\n/.test(s)?`
75
- `:" "});continue}if((i===0||i===r.length-1)&&s==="")continue;let u=s.split(new RegExp(`(${ty})`));for(let[a,o]of u.entries())if(!((a===0||a===u.length-1)&&o==="")){if(a%2===0){o!==""&&n({type:"word",value:o,kind:Mr,hasLeadingPunctuation:rc.test(o[0]),hasTrailingPunctuation:rc.test(P(!1,o,-1))});continue}n(rc.test(o)?{type:"word",value:o,kind:li,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:o,kind:Cx.test(o)?yr:tr,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return t;function n(i){let s=P(!1,t,-1);(s==null?void 0:s.type)==="word"&&!u(Mr,li)&&![s.value,i.value].some(a=>/\u3000/.test(a))&&t.push({type:"whitespace",value:""}),t.push(i);function u(a,o){return s.kind===a&&i.kind===o||s.kind===o&&i.kind===a}}}function mn(e,t){let[,r,n,i]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:r,marker:n,leadingSpaces:i}}function iy(e,t){if(!e.ordered||e.children.length<2)return!1;let r=Number(mn(e.children[0],t.originalText).numberText),n=Number(mn(e.children[1],t.originalText).numberText);if(r===0&&e.children.length>2){let i=Number(mn(e.children[2],t.originalText).numberText);return n===1&&i===1}return n===1}function cu(e,t){let{value:r}=e;return e.position.end.offset===t.length&&r.endsWith(`
63
+ `+e}function Qm(e){return e.kind==="Comment"?e.start:e.loc.start}function Zm(e){return e.kind==="Comment"?e.end:e.loc.end}var ed={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};var Ax=Be(ed,"kind"),td=Ax;function Fx(e,t,r){let{node:n}=e;if(!n.description)return"";let i=[r("description")];return n.kind==="InputValueDefinition"&&!n.description.block?i.push(C):i.push(y),i}var Vt=Fx;function bx(e,t,r){let{node:n}=e;switch(n.kind){case"Document":return[...A(y,Jt(e,t,r,"definitions")),y];case"OperationDefinition":{let i=t.originalText[Qm(n)]!=="{",s=Boolean(n.name);return[i?n.operation:"",i&&s?[" ",r("name")]:"",i&&!s&&N(n.variableDefinitions)?" ":"",rd(e,r),je(e,r,n),!i&&!s?"":" ",r("selectionSet")]}case"FragmentDefinition":return["fragment ",r("name"),rd(e,r)," on ",r("typeCondition"),je(e,r,n)," ",r("selectionSet")];case"SelectionSet":return["{",E([y,A(y,Jt(e,t,r,"selections"))]),y,"}"];case"Field":return D([n.alias?[r("alias"),": "]:"",r("name"),n.arguments.length>0?D(["(",E([h,A([L("",", "),h],Jt(e,t,r,"arguments"))]),h,")"]):"",je(e,r,n),n.selectionSet?" ":"",r("selectionSet")]);case"Name":return n.value;case"StringValue":if(n.block){let i=I(!1,n.value,'"""','\\"""').split(`
64
+ `);return i.length===1&&(i[0]=i[0].trim()),i.every(s=>s==="")&&(i.length=0),A(y,['"""',...i,'"""'])}return['"',I(!1,I(!1,n.value,/["\\]/g,"\\$&"),`
65
+ `,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return n.value;case"BooleanValue":return n.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",r("name")];case"ListValue":return D(["[",E([h,A([L("",", "),h],e.map(r,"values"))]),h,"]"]);case"ObjectValue":{let i=t.bracketSpacing&&n.fields.length>0?" ":"";return D(["{",i,E([h,A([L("",", "),h],e.map(r,"fields"))]),h,L("",i),"}"])}case"ObjectField":case"Argument":return[r("name"),": ",r("value")];case"Directive":return["@",r("name"),n.arguments.length>0?D(["(",E([h,A([L("",", "),h],Jt(e,t,r,"arguments"))]),h,")"]):""];case"NamedType":return r("name");case"VariableDefinition":return[r("variable"),": ",r("type"),n.defaultValue?[" = ",r("defaultValue")]:"",je(e,r,n)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:i}=n,s=[];return i.endsWith("TypeDefinition")?s.push(Vt(e,t,r)):s.push("extend "),i.startsWith("ObjectType")?s.push("type"):i.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",r("name")),!i.startsWith("InputObjectType")&&n.interfaces.length>0&&s.push(" implements ",...kx(e,t,r)),s.push(je(e,r,n)),n.fields.length>0&&s.push([" {",E([y,A(y,Jt(e,t,r,"fields"))]),y,"}"]),s}case"FieldDefinition":return[Vt(e,t,r),r("name"),n.arguments.length>0?D(["(",E([h,A([L("",", "),h],Jt(e,t,r,"arguments"))]),h,")"]):"",": ",r("type"),je(e,r,n)];case"DirectiveDefinition":return[Vt(e,t,r),"directive ","@",r("name"),n.arguments.length>0?D(["(",E([h,A([L("",", "),h],Jt(e,t,r,"arguments"))]),h,")"]):"",n.repeatable?" repeatable":""," on ",...A(" | ",e.map(r,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[Vt(e,t,r),n.kind==="EnumTypeExtension"?"extend ":"","enum ",r("name"),je(e,r,n),n.values.length>0?[" {",E([y,A(y,Jt(e,t,r,"values"))]),y,"}"]:""];case"EnumValueDefinition":return[Vt(e,t,r),r("name"),je(e,r,n)];case"InputValueDefinition":return[Vt(e,t,r),r("name"),": ",r("type"),n.defaultValue?[" = ",r("defaultValue")]:"",je(e,r,n)];case"SchemaExtension":return["extend schema",je(e,r,n),...n.operationTypes.length>0?[" {",E([y,A(y,Jt(e,t,r,"operationTypes"))]),y,"}"]:[]];case"SchemaDefinition":return[Vt(e,t,r),"schema",je(e,r,n)," {",n.operationTypes.length>0?E([y,A(y,Jt(e,t,r,"operationTypes"))]):"",y,"}"];case"OperationTypeDefinition":return[n.operation,": ",r("type")];case"FragmentSpread":return["...",r("name"),je(e,r,n)];case"InlineFragment":return["...",n.typeCondition?[" on ",r("typeCondition")]:"",je(e,r,n)," ",r("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return D([Vt(e,t,r),D([n.kind==="UnionTypeExtension"?"extend ":"","union ",r("name"),je(e,r,n),n.types.length>0?[" =",L(""," "),E([L([C," "]),A([C,"| "],e.map(r,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[Vt(e,t,r),n.kind==="ScalarTypeExtension"?"extend ":"","scalar ",r("name"),je(e,r,n)];case"NonNullType":return[r("type"),"!"];case"ListType":return["[",r("type"),"]"];default:throw new ee(n,"Graphql","kind")}}function je(e,t,r){if(r.directives.length===0)return"";let n=A(C,e.map(t,"directives"));return r.kind==="FragmentDefinition"||r.kind==="OperationDefinition"?D([C,n]):[" ",D(E([h,n]))]}function Jt(e,t,r,n){return e.map(({isLast:i,node:s})=>{let u=r();return!i&&ot(t.originalText,Zm(s))?[u,y]:u},n)}function vx(e){return e.kind!=="Comment"}function Bx(e){let t=e.node;if(t.kind==="Comment")return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function kx(e,t,r){let{node:n}=e,i=[],{interfaces:s}=n,u=e.map(r,"interfaces");for(let a=0;a<s.length;a++){let o=s[a];i.push(u[a]);let c=s[a+1];if(c){let p=t.originalText.slice(o.loc.end,c.loc.start).includes("#");i.push(" &",p?C:" ")}}return i}function rd(e,t){let{node:r}=e;return N(r.variableDefinitions)?D(["(",E([h,A([L("",", "),h],e.map(t,"variableDefinitions"))]),h,")"]):""}function nd(e,t){e.kind==="StringValue"&&e.block&&!e.value.includes(`
66
+ `)&&(t.value=t.value.trim())}nd.ignoredProperties=new Set(["loc","comments"]);function Px(e){var r;let{node:t}=e;return(r=t==null?void 0:t.comments)==null?void 0:r.some(n=>n.value.trim()==="prettier-ignore")}var wx={print:bx,massageAstNode:nd,hasPrettierIgnore:Px,insertPragma:Xm,printComment:Bx,canAttachComment:vx,getVisitorKeys:td},id=wx;var sd=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}];var _x={bracketSpacing:xe.bracketSpacing},ud=_x;var Lx={graphql:id},Ix=ze(zm);var Du={};fe(Du,{languages:()=>Od,options:()=>Nd,parsers:()=>gS,printers:()=>DS});var ad=void 0;var Ld=xr(nc(),1);function Nx(e,t){let r=e.match(new RegExp(`(${wr(t)})+`,"g"));if(r===null)return 0;let n=new Map,i=0;for(let s of r){let u=s.length/t.length;n.set(u,!0),u>i&&(i=u)}for(let s=1;s<i;s++)if(!n.get(s))return s;return i+1}var cd=Nx;function Mx(e,t){let r=e.match(new RegExp(`(${wr(t)})+`,"g"));return r===null?0:r.reduce((n,i)=>Math.max(n,i.length/t.length),0)}var yn=Mx;function jx(e,t){let{languages:r}=ar({plugins:t.plugins}),n=r.find(({name:i})=>i.toLowerCase()===e)??r.find(({aliases:i})=>i==null?void 0:i.includes(e))??r.find(({extensions:i})=>i==null?void 0:i.includes(`.${e}`));return n==null?void 0:n.parsers[0]}var ci=jx;function li(e){return e.position.start.offset}function pi(e){return e.position.end.offset}var ld="(?:[\\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])?",pd=new RegExp("[\\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]",""),fi="[\\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\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]";var sc=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),fd=new Set([...sc,"tableCell","paragraph","heading"]),ic=new RegExp(fi),jr="non-cjk",ir="cj-letter",Er="k-letter",mi="cjk-punctuation";function mu(e){let t=[],r=e.split(/([\t\n ]+)/);for(let[i,s]of r.entries()){if(i%2===1){t.push({type:"whitespace",value:/\n/.test(s)?`
67
+ `:" "});continue}if((i===0||i===r.length-1)&&s==="")continue;let u=s.split(new RegExp(`(${ld})`));for(let[a,o]of u.entries())if(!((a===0||a===u.length-1)&&o==="")){if(a%2===0){o!==""&&n({type:"word",value:o,kind:jr,hasLeadingPunctuation:ic.test(o[0]),hasTrailingPunctuation:ic.test(P(!1,o,-1))});continue}n(ic.test(o)?{type:"word",value:o,kind:mi,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:o,kind:pd.test(o)?Er:ir,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return t;function n(i){let s=P(!1,t,-1);(s==null?void 0:s.type)==="word"&&!u(jr,mi)&&![s.value,i.value].some(a=>/\u3000/.test(a))&&t.push({type:"whitespace",value:""}),t.push(i);function u(a,o){return s.kind===a&&i.kind===o||s.kind===o&&i.kind===a}}}function Dn(e,t){let[,r,n,i]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:r,marker:n,leadingSpaces:i}}function md(e,t){if(!e.ordered||e.children.length<2)return!1;let r=Number(Dn(e.children[0],t.originalText).numberText),n=Number(Dn(e.children[1],t.originalText).numberText);if(r===0&&e.children.length>2){let i=Number(Dn(e.children[2],t.originalText).numberText);return n===1&&i===1}return n===1}function du(e,t){let{value:r}=e;return e.position.end.offset===t.length&&r.endsWith(`
76
68
  `)&&t.endsWith(`
77
- `)?r.slice(0,-1):r}function yn(e,t){return function r(n,i,s){let u={...t(n,i,s)};return u.children&&(u.children=u.children.map((a,o)=>r(a,o,[u,...s]))),u}(e,null,[])}function ic(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[t]=e.children;return ai(e)===ai(t)&&oi(e)===oi(t)}function sc(e,t){let r=Array.isArray(t)?t:[t],n=-1,i;for(;i=e.getParentNode(++n);)if(r.includes(i.type))return n;return-1}function pi(e,t){let r=sc(e,t);return r===-1?null:e.getParentNode(r)}function xx(e,t){let{node:r}=e;if(r.type==="code"&&r.lang!==null){let n=ui(r.lang,t);if(n)return async i=>{let s=t.__inJsTemplate?"~":"`",u=s.repeat(Math.max(3,zr(r.value,s)+1)),a={parser:n};r.lang==="tsx"&&(a.filepath="dummy.tsx");let o=await i(cu(r,t.originalText),a);return Bt([u,r.lang,r.meta?" "+r.meta:"",D,j(o),D,u])}}switch(r.type){case"front-matter":return n=>cn(r,n);case"import":case"export":return n=>n(r.value,{parser:"babel"});case"jsx":return n=>n(`<$>${r.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var sy=xx;l();var uy=["format","prettier"];function ay(e){let t=`@(${uy.join("|")})`,r=new RegExp([`<!--\\s*${t}\\s*-->`,`{\\s*\\/\\*\\s*${t}\\s*\\*\\/\\s*}`,`<!--.*\r?
69
+ `)?r.slice(0,-1):r}function gn(e,t){return function r(n,i,s){let u={...t(n,i,s)};return u.children&&(u.children=u.children.map((a,o)=>r(a,o,[u,...s]))),u}(e,null,[])}function uc(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[t]=e.children;return li(e)===li(t)&&pi(e)===pi(t)}function Rx(e,t){let{node:r}=e;if(r.type==="code"&&r.lang!==null){let n=ci(r.lang,t);if(n)return async i=>{let s=t.__inJsTemplate?"~":"`",u=s.repeat(Math.max(3,yn(r.value,s)+1)),a={parser:n};r.lang==="tsx"&&(a.filepath="dummy.tsx");let o=await i(du(r,t.originalText),a);return Ot([u,r.lang,r.meta?" "+r.meta:"",y,$(o),y,u])}}switch(r.type){case"front-matter":return n=>pn(r,n);case"import":case"export":return n=>n(r.value,{parser:"babel"});case"jsx":return n=>n(`<$>${r.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var dd=Rx;var yd=["format","prettier"];function Dd(e){let t=`@(${yd.join("|")})`,r=new RegExp([`<!--\\s*${t}\\s*-->`,`{\\s*\\/\\*\\s*${t}\\s*\\*\\/\\s*}`,`<!--.*\r?
78
70
  [\\s\\S]*(^|
79
71
  )[^\\S
80
72
  ]*${t}[^\\S
81
73
  ]*($|
82
74
  )[\\s\\S]*
83
- .*-->`].join("|"),"m"),n=e.match(r);return(n==null?void 0:n.index)===0}var oy=e=>{let t=Hs(e),r=`<!-- @${uy[0]} -->`;return t.frontMatter?`${t.frontMatter.raw}
75
+ .*-->`].join("|"),"m"),n=e.match(r);return(n==null?void 0:n.index)===0}var gd=e=>{let t=Xs(e),r=`<!-- @${yd[0]} -->`;return t.frontMatter?`${t.frontMatter.raw}
84
76
 
85
77
  ${r}
86
78
 
87
79
  ${t.content}`:`${r}
88
80
 
89
- ${t.content}`};l();var Sx=/^.$/su;function Ax(e,t){return e=Tx(e,t),e=bx(e),e=Bx(e,t),e=kx(e,t),e=vx(e),e}function Tx(e,t){return yn(e,r=>r.type!=="text"||r.value==="*"||r.value==="_"||!Sx.test(r.value)||r.position.end.offset-r.position.start.offset===r.value.length?r:{...r,value:t.originalText.slice(r.position.start.offset,r.position.end.offset)})}function Fx(e,t,r){return yn(e,n=>{if(!n.children)return n;let i=n.children.reduce((s,u)=>{let a=P(!1,s,-1);return a&&t(a,u)?s.splice(-1,1,r(a,u)):s.push(u),s},[]);return{...n,children:i}})}function bx(e){return Fx(e,(t,r)=>t.type==="text"&&r.type==="text",(t,r)=>({type:"text",value:t.value+r.value,position:{start:t.position.start,end:r.position.end}}))}function vx(e){return yn(e,(t,r,[n])=>{if(t.type!=="text")return t;let{value:i}=t;return n.type==="paragraph"&&(r===0&&(i=i.trimStart()),r===n.children.length-1&&(i=i.trimEnd())),{type:"sentence",position:t.position,children:ou(i)}})}function Bx(e,t){return yn(e,(r,n,i)=>{if(r.type==="code"){let s=/^\n?(?: {4,}|\t)/.test(t.originalText.slice(r.position.start.offset,r.position.end.offset));if(r.isIndented=s,s)for(let u=0;u<i.length;u++){let a=i[u];if(a.hasIndentedCodeblock)break;a.type==="list"&&(a.hasIndentedCodeblock=!0)}}return r})}function kx(e,t){return yn(e,(i,s,u)=>{if(i.type==="list"&&i.children.length>0){for(let a=0;a<u.length;a++){let o=u[a];if(o.type==="list"&&!o.isAligned)return i.isAligned=!1,i}i.isAligned=n(i)}return i});function r(i){return i.children.length===0?-1:i.children[0].position.start.column-1}function n(i){if(!i.ordered)return!0;let[s,u]=i.children;if(mn(s,t.originalText).leadingSpaces.length>1)return!0;let o=r(s);if(o===-1)return!1;if(i.children.length===1)return o%t.tabWidth===0;let c=r(u);return o!==c?!1:o%t.tabWidth===0?!0:mn(u,t.originalText).leadingSpaces.length>1}}var cy=Ax;l();var Px=new Set(["position","raw"]);function ly(e,t,r){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete t.value,e.type==="list"&&delete t.isAligned,(e.type==="list"||e.type==="listItem")&&(delete t.spread,delete t.loose),e.type==="text"||(e.type==="inlineCode"&&(t.value=e.value.replace(/\n/g," ")),e.type==="wikiLink"&&(t.value=e.value.trim().replace(/[\t\n]+/g," ")),(e.type==="definition"||e.type==="linkReference")&&(t.label=e.label.trim().replace(/[\t\n ]+/g," ").toLowerCase()),(e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(t.title=e.title.replace(/\\(["')])/g,"$1")),r&&r.type==="root"&&r.children.length>0&&(r.children[0]===e||Je(r.children[0])&&r.children[1]===e)&&e.type==="html"&&ay(e.value)))return null}ly.ignoredProperties=Px;var py=ly;l();var wx={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},fy=wx;l();var Ix=["heading","tableCell","link","wikiLink"],_x=new Set(`$(\xA3\xA5\xB7'"\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u301D\uFE59\uFE5B\uFF04\uFF08\uFF3B\uFF5B\uFFE1\uFFE5[{\u2035\uFE34\uFE35\uFE37\uFE39\uFE3B\uFE3D\uFE3F\uFE41\uFE43\uFE4F\u3018\uFF5F\xAB`),Lx=new Set(`!%),.:;?]}\xA2\xB0\xB7'"\u2020\u2021\u203A\u2103\u2236\u3001\u3002\u3003\u3006\u3015\u3017\u301E\uFE5A\uFE5C\uFF01\uFF02\uFF05\uFF07\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFF5E\u2013\u2014\u2022\u3009\u300B\u300D\uFE30\uFE31\uFE32\uFE33\uFE50\uFE51\uFE52\uFE53\uFE54\uFE55\uFE56\uFE58\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE57\uFF5C\uFF64\u300F\u3011\u3019\u301F\uFF60\xBB\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\u2010\u30A0\u301C\uFF5E\u203C\u2047\u2048\u2049\u30FB`),my=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function Nx({parent:e}){if(e.usesCJSpaces===void 0){let t={" ":0,"":0},{children:r}=e;for(let n=1;n<r.length-1;++n){let i=r[n];if(i.type==="whitespace"&&(i.value===" "||i.value==="")){let s=r[n-1].kind,u=r[n+1].kind;(s===tr&&u===Mr||s===Mr&&u===tr)&&++t[i.value]}}e.usesCJSpaces=t[" "]>t[""]}return e.usesCJSpaces}function Ox(e,t){if(t)return!0;let{previous:r,next:n}=e;if(!r||!n)return!0;let i=r.kind,s=n.kind;return dy(i)&&dy(s)||i===yr&&s===tr||s===yr&&i===tr?!0:i===li||s===li||i===tr&&s===tr?!1:my.has(n.value[0])||my.has(P(!1,r.value,-1))?!0:r.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:Nx(e)}function yy(e){return e===Mr||e===tr||e===yr}function dy(e){return e===Mr||e===yr}function Mx(e,t,r,n,i){if(r!=="always"||pi(e,Ix))return!1;if(n)return t!=="";if(t===" ")return!0;let{previous:s,next:u}=e;return!(t===""&&((s==null?void 0:s.kind)===yr&&yy(u==null?void 0:u.kind)||(u==null?void 0:u.kind)===yr&&yy(s==null?void 0:s.kind))||!i&&(u&&Lx.has(u.value[0])||s&&_x.has(P(!1,s.value,-1))))}function uc(e,t,r,n){if(r==="preserve"&&t===`
90
- `)return D;let i=t===" "||t===`
91
- `&&Ox(e,n);return Mx(e,t,r,n,i)?i?S:C:i?" ":""}var jx=Te(fy),Rx=new Set(["listItem","definition","footnoteDefinition"]);function $x(e,t,r){var i,s,u;let{node:n}=e;if(Ux(e))return ou(t.originalText.slice(n.position.start.offset,n.position.end.offset)).map(a=>a.type==="word"?a.value:uc(e,a.value,t.proseWrap,!0));switch(n.type){case"front-matter":return t.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":[Uu(Jx(e,t,r)),D];case"paragraph":return Fe(e,t,r,{postprocessor:ee});case"sentence":return Fe(e,t,r);case"word":{let a=n.value.replace(/\*/g,"\\$&").replace(new RegExp([`(^|${ci})(_+)`,`(_+)(${ci}|$)`].join("|"),"g"),(p,f,m,d,y)=>(m?`${f}${m}`:`${d}${y}`).replace(/_/g,"\\_")),o=(p,f,m)=>p.type==="sentence"&&m===0,c=(p,f,m)=>ic(p.children[m-1]);return a!==n.value&&(e.match(void 0,o,c)||e.match(void 0,o,(p,f,m)=>p.type==="emphasis"&&m===0,c))&&(a=a.replace(/^(\\?[*_])+/,p=>p.replace(/\\/g,""))),a}case"whitespace":{let{next:a}=e,o=a&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(a.value)?"never":t.proseWrap;return uc(e,n.value,o)}case"emphasis":{let a;if(ic(n.children[0]))a=t.originalText[n.position.start.offset];else{let{previous:o,next:c}=e;a=(o==null?void 0:o.type)==="sentence"&&((i=P(!1,o.children,-1))==null?void 0:i.type)==="word"&&!P(!1,o.children,-1).hasTrailingPunctuation||(c==null?void 0:c.type)==="sentence"&&((s=c.children[0])==null?void 0:s.type)==="word"&&!c.children[0].hasLeadingPunctuation||pi(e,"emphasis")?"*":"_"}return[a,Fe(e,t,r),a]}case"strong":return["**",Fe(e,t,r),"**"];case"delete":return["~~",Fe(e,t,r),"~~"];case"inlineCode":{let a=t.proseWrap==="preserve"?n.value:n.value.replace(/\n/g," "),o=Mc(a,"`"),c="`".repeat(o||1),p=a.startsWith("`")||a.endsWith("`")||/^[\n ]/.test(a)&&/[\n ]$/.test(a)&&/[^\n ]/.test(a)?" ":"";return[c,p,a,p,c]}case"wikiLink":{let a="";return t.proseWrap==="preserve"?a=n.value:a=n.value.replace(/[\t\n]+/g," "),["[[",a,"]]"]}case"link":switch(t.originalText[n.position.start.offset]){case"<":{let a="mailto:";return["<",n.url.startsWith(a)&&t.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+a.length)!==a?n.url.slice(a.length):n.url,">"]}case"[":return["[",Fe(e,t,r),"](",ac(n.url,")"),lu(n.title,t),")"];default:return t.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return["![",n.alt||"","](",ac(n.url,")"),lu(n.title,t),")"];case"blockquote":return["> ",X("> ",Fe(e,t,r))];case"heading":return["#".repeat(n.depth)+" ",Fe(e,t,r)];case"code":{if(n.isIndented){let c=" ".repeat(4);return X(c,[c,j(n.value,D)])}let a=t.__inJsTemplate?"~":"`",o=a.repeat(Math.max(3,zr(n.value,a)+1));return[o,n.lang||"",n.meta?" "+n.meta:"",D,j(cu(n,t.originalText),D),D,o]}case"html":{let{parent:a}=e,o=a.type==="root"&&P(!1,a.children,-1)===n?n.value.trimEnd():n.value,c=/^<!--.*-->$/s.test(o);return j(o,c?D:Bt(dt))}case"list":{let a=gy(n,e.parent),o=iy(n,t);return Fe(e,t,r,{processor(c,p){let f=d(),m=c.node;if(m.children.length===2&&m.children[1].type==="html"&&m.children[0].position.start.column!==m.children[1].position.start.column)return[f,Dy(c,t,r,f)];return[f,X(" ".repeat(f.length),Dy(c,t,r,f))];function d(){let y=n.ordered?(p===0?n.start:o?1:n.start+p)+(a%2===0?". ":") "):a%2===0?"- ":"* ";return n.isAligned||n.hasIndentedCodeblock?qx(y,t):y}}})}case"thematicBreak":{let a=sc(e,"list");return a===-1?"---":gy(e.getParentNode(a),e.getParentNode(a+1))%2===0?"***":"---"}case"linkReference":return["[",Fe(e,t,r),"]",n.referenceType==="full"?["[",n.identifier,"]"]:n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","][",n.identifier,"]"];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let a=t.proseWrap==="always"?S:" ";return g(["[",n.identifier,"]:",x([a,ac(n.url),n.title===null?"":[a,lu(n.title,t,!1)]])])}case"footnote":return["[^",Fe(e,t,r),"]"];case"footnoteReference":return["[^",n.identifier,"]"];case"footnoteDefinition":{let a=n.children.length===1&&n.children[0].type==="paragraph"&&(t.proseWrap==="never"||t.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return["[^",n.identifier,"]: ",a?Fe(e,t,r):g([X(" ".repeat(4),Fe(e,t,r,{processor:(o,c)=>c===0?g([C,r()]):r()})),((u=e.next)==null?void 0:u.type)==="footnoteDefinition"?C:""])]}case"table":return Vx(e,t,r);case"tableCell":return Fe(e,t,r);case"break":return/\s/.test(t.originalText[n.position.start.offset])?[" ",Bt(dt)]:["\\",D];case"liquidNode":return j(n.value,D);case"import":case"export":case"jsx":return n.value;case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",D,n.value?[j(n.value,D),D]:"","$$"];case"inlineMath":return t.originalText.slice(ai(n),oi(n));case"tableRow":case"listItem":case"text":default:throw new me(n,"Markdown")}}function Dy(e,t,r,n){let{node:i}=e,s=i.checked===null?"":i.checked?"[x] ":"[ ] ";return[s,Fe(e,t,r,{processor(u,a){if(a===0&&u.node.type!=="list")return X(" ".repeat(s.length),r());let o=" ".repeat(Kx(t.tabWidth-n.length,0,3));return[o,X(o,r())]}})]}function qx(e,t){let r=n();return e+" ".repeat(r>=4?0:r);function n(){let i=e.length%t.tabWidth;return i===0?0:t.tabWidth-i}}function gy(e,t){return Wx(e,t,r=>r.ordered===e.ordered)}function Wx(e,t,r){let n=-1;for(let i of t.children)if(i.type===e.type&&r(i)?n++:n=-1,i===e)return n}function Vx(e,t,r){let{node:n}=e,i=[],s=e.map(f=>f.map((m,d)=>{let y=wt(r(),t).formatted,E=ve(y);return i[d]=Math.max(i[d]||3,E),{text:y,width:E}},"children"),"children"),u=o(!1);if(t.proseWrap!=="never")return[K,u];let a=o(!0);return[K,g(I(a,u))];function o(f){let m=[p(s[0],f),c(f)];return s.length>1&&m.push(B(Dr,s.slice(1).map(d=>p(d,f)))),B(Dr,m)}function c(f){return`| ${i.map((d,y)=>{let E=n.align[y],T=E==="center"||E==="left"?":":"-",b=E==="center"||E==="right"?":":"-",k=f?"-":"-".repeat(d-2);return`${T}${k}${b}`}).join(" | ")} |`}function p(f,m){return`| ${f.map(({text:y,width:E},T)=>{if(m)return y;let b=i[T]-E,k=n.align[T],A=0;k==="right"?A=b:k==="center"&&(A=Math.floor(b/2));let F=b-A;return`${" ".repeat(A)}${y}${" ".repeat(F)}`}).join(" | ")} |`}}function Jx(e,t,r){let n=[],i=null,{children:s}=e.node;for(let[u,a]of s.entries())switch(oc(a)){case"start":i===null&&(i={index:u,offset:a.position.end.offset});break;case"end":i!==null&&(n.push({start:i,end:{index:u,offset:a.position.start.offset}}),i=null);break;default:break}return Fe(e,t,r,{processor(u,a){if(n.length>0){let o=n[0];if(a===o.start.index)return[hy(s[o.start.index]),t.originalText.slice(o.start.offset,o.end.offset),hy(s[o.end.index])];if(o.start.index<a&&a<o.end.index)return!1;if(a===o.end.index)return n.shift(),!1}return r()}})}function Fe(e,t,r,n={}){let{postprocessor:i}=n,s=n.processor||(()=>r()),{node:u}=e,a=[],o;return e.each((c,p)=>{let f=c.node,m=s(c,p);if(m!==!1){let d={parts:a,prevNode:o,parentNode:u,options:t};Hx(f,d)&&(a.push(D),(Gx(f,d)||Ey(f,d))&&a.push(D),Ey(f,d)&&a.push(D)),a.push(m),o=f}},"children"),i?i(a):a}function hy(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function oc(e){let t;if(e.type==="html")t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let r;e.type==="esComment"?r=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(r=e.children[0]),r&&(t=r.value.match(/^prettier-ignore(?:-(start|end))?$/))}return t?t[1]||"next":!1}function Hx(e,t){let r=t.parts.length===0,n=nc.includes(e.type),i=e.type==="html"&&ny.includes(t.parentNode.type);return!r&&!n&&!i}function Gx(e,t){var c,p,f;let n=(t.prevNode&&t.prevNode.type)===e.type&&Rx.has(e.type),i=t.parentNode.type==="listItem"&&!t.parentNode.loose,s=((c=t.prevNode)==null?void 0:c.type)==="listItem"&&t.prevNode.loose,u=oc(t.prevNode)==="next",a=e.type==="html"&&((p=t.prevNode)==null?void 0:p.type)==="html"&&t.prevNode.position.end.line+1===e.position.start.line,o=e.type==="html"&&t.parentNode.type==="listItem"&&((f=t.prevNode)==null?void 0:f.type)==="paragraph"&&t.prevNode.position.end.line+1===e.position.start.line;return s||!(n||i||u||a||o)}function Ey(e,t){var i;let r=((i=t.prevNode)==null?void 0:i.type)==="list",n=e.type==="code"&&e.isIndented;return r&&n}function Ux(e){let t=pi(e,["linkReference","imageReference"]);return t&&(t.type!=="linkReference"||t.referenceType!=="full")}function ac(e,t=[]){let r=[" ",...Array.isArray(t)?t:[t]];return new RegExp(r.map(n=>`\\${n}`).join("|")).test(e)?`<${e}>`:e}function lu(e,t,r=!0){if(!e)return"";if(r)return" "+lu(e,t,!1);if(e=e.replace(/\\(["')])/g,"$1"),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=e.split("'").length-1,i=e.split('"').length-1,s=n>i?'"':i>n||t.singleQuote?"'":'"';return e=e.replace(/\\/,"\\\\"),e=e.replace(new RegExp(`(${s})`,"g"),"\\$1"),`${s}${e}${s}`}function Kx(e,t,r){return e<t?t:e>r?r:e}function Yx(e){return e.index>0&&oc(e.previous)==="next"}var zx={preprocess:cy,print:$x,embed:sy,massageAstNode:py,hasPrettierIgnore:Yx,insertPragma:oy,getVisitorKeys:jx},Cy=zx;var xy=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"source.gfm",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"source.gfm",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];l();var Qx={proseWrap:De.proseWrap,singleQuote:De.singleQuote},Sy=Qx;l();var Ay=void 0;var Zx={mdast:Cy};var bu={};fe(bu,{languages:()=>pd,options:()=>md,parsers:()=>yd,printers:()=>zS});l();l();l();var eS=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens"]);function Ty(e,t){if(e.type==="text"||e.type==="comment"||Je(e)||e.type==="yaml"||e.type==="toml")return null;e.type==="attribute"&&delete t.value,e.type==="docType"&&delete t.value}Ty.ignoredProperties=eS;var Fy=Ty;l();var by="inline",vy={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},By="normal",ky={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};l();function tS(e){return e.type==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var mu=tS;var rS=new Set([" ",`
92
- `,"\f","\r"," "]),nS=e=>e.replace(/^[\t\n\f\r ]+/,""),wy=e=>e.replace(/[\t\n\f\r ]+$/,""),Iy=e=>nS(wy(e)),iS=e=>e.replace(/^[\t\f\r ]*\n/g,""),cc=e=>iS(wy(e)),sS=e=>e.split(/[\t\n\f\r ]+/),uS=e=>e.match(/^[\t\n\f\r ]*/)[0],_y=e=>{let[,t,r,n]=e.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:t,trailingWhitespace:n,text:r}},Ly=e=>/[\t\n\f\r ]/.test(e);function yu(e,t){return!!(e.type==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.type==="ieConditionalComment"&&!e.complete||jr(e)&&e.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||hu(e,t)&&!Tt(e)&&e.type!=="interpolation")}function fi(e){return e.type==="attribute"||!e.parent||!e.prev?!1:aS(e.prev)}function aS(e){return e.type==="comment"&&e.value.trim()==="prettier-ignore"}function Ke(e){return e.type==="text"||e.type==="comment"}function Tt(e){return e.type==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||mu(e)&&(e.name==="script"||e.name==="style"))}function Ny(e){return e.children&&!Tt(e)}function Oy(e){return Tt(e)||e.type==="interpolation"||lc(e)}function lc(e){return Uy(e).startsWith("pre")}function My(e,t){let r=n();if(r&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf)return e.type==="interpolation";return r;function n(){return Je(e)?!1:(e.type==="text"||e.type==="interpolation")&&e.prev&&(e.prev.type==="text"||e.prev.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:jr(e.parent)?!0:!(!e.prev&&(e.parent.type==="root"||jr(e)&&e.parent||Tt(e.parent)||di(e.parent,t)||!pS(e.parent.cssDisplay))||e.prev&&!yS(e.prev.cssDisplay))}}function jy(e,t){return Je(e)?!1:(e.type==="text"||e.type==="interpolation")&&e.next&&(e.next.type==="text"||e.next.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:jr(e.parent)?!0:!(!e.next&&(e.parent.type==="root"||jr(e)&&e.parent||Tt(e.parent)||di(e.parent,t)||!fS(e.parent.cssDisplay))||e.next&&!mS(e.next.cssDisplay))}function Ry(e){return dS(e.cssDisplay)&&!Tt(e)}function mi(e){return Je(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function $y(e){return pc(e)||e.type==="element"&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some(t=>cS(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.type!=="text"&&Wy(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Vy(e.lastChild))}function pc(e){return e.type==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function du(e){return Jy(e)||e.prev&&oS(e.prev)||qy(e)}function oS(e){return Jy(e)||e.type==="element"&&e.fullName==="br"||qy(e)}function qy(e){return Wy(e)&&Vy(e)}function Wy(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.type==="root"||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function Vy(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.type==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Jy(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function Du(e){return e.lastChild?Du(e.lastChild):e}function cS(e){return e.children&&e.children.some(t=>t.type!=="text")}function Py(e){let{type:t,lang:r}=e.attrMap;if(t==="module"||t==="text/javascript"||t==="text/babel"||t==="application/javascript"||r==="jsx")return"babel";if(t==="application/x-typescript"||r==="ts"||r==="tsx")return"typescript";if(t==="text/markdown")return"markdown";if(t==="text/html")return"html";if(t&&(t.endsWith("json")||t.endsWith("importmap"))||t==="speculationrules")return"json";if(t==="text/x-handlebars-template")return"glimmer"}function lS(e,t){let{lang:r}=e.attrMap;if(!r||r==="postcss"||r==="css")return"css";if(r==="scss")return"scss";if(r==="less")return"less";if(r==="stylus")return ui("stylus",t)}function fc(e,t){if(e.name==="script"&&!e.attrMap.src)return!e.attrMap.lang&&!e.attrMap.type?"babel":Py(e);if(e.name==="style")return lS(e,t);if(t&&hu(e,t))return Py(e)||!("src"in e.attrMap)&&ui(e.attrMap.lang,t)}function yi(e){return e==="block"||e==="list-item"||e.startsWith("table")}function pS(e){return!yi(e)&&e!=="inline-block"}function fS(e){return!yi(e)&&e!=="inline-block"}function mS(e){return!yi(e)}function yS(e){return!yi(e)}function dS(e){return!yi(e)&&e!=="inline-block"}function jr(e){return Uy(e).startsWith("pre")}function Hy(e,t){let r=0;for(let n=e.stack.length-1;n>=0;n--){let i=e.stack[n];i&&typeof i=="object"&&!Array.isArray(i)&&t(i)&&r++}return r}function DS(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function Gy(e,t){if(e.prev&&e.prev.type==="comment"){let n=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(n)return n[1]}let r=!1;if(e.type==="element"&&e.namespace==="svg")if(DS(e,n=>n.fullName==="svg:foreignObject"))r=!0;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return t.parser==="vue"&&e.parent&&e.parent.type==="root"?"block":e.type==="element"&&(!e.namespace||r||mu(e))&&vy[e.name]||by}}function Uy(e){return e.type==="element"&&(!e.namespace||mu(e))&&ky[e.name]||By}function gS(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(`
93
- `)){if(r.length===0)continue;if(!rS.has(r[0]))return 0;let n=uS(r).length;r.length!==n&&n<t&&(t=n)}return t===Number.POSITIVE_INFINITY?0:t}function mc(e,t=gS(e)){return t===0?e:e.split(`
81
+ ${t.content}`};var $x=/^.$/su;function Wx(e,t){return e=qx(e,t),e=Jx(e),e=Hx(e,t),e=Ux(e,t),e=Gx(e),e}function qx(e,t){return gn(e,r=>r.type!=="text"||r.value==="*"||r.value==="_"||!$x.test(r.value)||r.position.end.offset-r.position.start.offset===r.value.length?r:{...r,value:t.originalText.slice(r.position.start.offset,r.position.end.offset)})}function Vx(e,t,r){return gn(e,n=>{if(!n.children)return n;let i=n.children.reduce((s,u)=>{let a=P(!1,s,-1);return a&&t(a,u)?s.splice(-1,1,r(a,u)):s.push(u),s},[]);return{...n,children:i}})}function Jx(e){return Vx(e,(t,r)=>t.type==="text"&&r.type==="text",(t,r)=>({type:"text",value:t.value+r.value,position:{start:t.position.start,end:r.position.end}}))}function Gx(e){return gn(e,(t,r,[n])=>{if(t.type!=="text")return t;let{value:i}=t;return n.type==="paragraph"&&(r===0&&(i=i.trimStart()),r===n.children.length-1&&(i=i.trimEnd())),{type:"sentence",position:t.position,children:mu(i)}})}function Hx(e,t){return gn(e,(r,n,i)=>{if(r.type==="code"){let s=/^\n?(?: {4,}|\t)/.test(t.originalText.slice(r.position.start.offset,r.position.end.offset));if(r.isIndented=s,s)for(let u=0;u<i.length;u++){let a=i[u];if(a.hasIndentedCodeblock)break;a.type==="list"&&(a.hasIndentedCodeblock=!0)}}return r})}function Ux(e,t){return gn(e,(i,s,u)=>{if(i.type==="list"&&i.children.length>0){for(let a=0;a<u.length;a++){let o=u[a];if(o.type==="list"&&!o.isAligned)return i.isAligned=!1,i}i.isAligned=n(i)}return i});function r(i){return i.children.length===0?-1:i.children[0].position.start.column-1}function n(i){if(!i.ordered)return!0;let[s,u]=i.children;if(Dn(s,t.originalText).leadingSpaces.length>1)return!0;let o=r(s);if(o===-1)return!1;if(i.children.length===1)return o%t.tabWidth===0;let c=r(u);return o!==c?!1:o%t.tabWidth===0?!0:Dn(u,t.originalText).leadingSpaces.length>1}}var hd=Wx;var Ed=xr(nc(),1);var Kx=new Set(["position","raw"]);function Cd(e,t,r){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete t.value,e.type==="list"&&delete t.isAligned,(e.type==="list"||e.type==="listItem")&&delete t.spread,e.type==="text"||(e.type==="inlineCode"&&(t.value=I(!1,e.value,`
82
+ `," ")),e.type==="wikiLink"&&(t.value=I(!1,e.value.trim(),/[\t\n]+/g," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(t.label=(0,Ed.default)(e.label)),(e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(t.title=I(!1,e.title,/\\(?=["')])/g,"")),(r==null?void 0:r.type)==="root"&&r.children.length>0&&(r.children[0]===e||Ze(r.children[0])&&r.children[1]===e)&&e.type==="html"&&Dd(e.value)))return null}Cd.ignoredProperties=Kx;var xd=Cd;var Yx={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},Sd=Yx;var zx=Be(Sd),Td=zx;var Xx=new Set(["heading","tableCell","link","wikiLink"]),Qx=new Set(`$(\xA3\xA5\xB7'"\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u301D\uFE59\uFE5B\uFF04\uFF08\uFF3B\uFF5B\uFFE1\uFFE5[{\u2035\uFE34\uFE35\uFE37\uFE39\uFE3B\uFE3D\uFE3F\uFE41\uFE43\uFE4F\u3018\uFF5F\xAB`),Zx=new Set(`!%),.:;?]}\xA2\xB0\xB7'"\u2020\u2021\u203A\u2103\u2236\u3001\u3002\u3003\u3006\u3015\u3017\u301E\uFE5A\uFE5C\uFF01\uFF02\uFF05\uFF07\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFF5E\u2013\u2014\u2022\u3009\u300B\u300D\uFE30\uFE31\uFE32\uFE33\uFE50\uFE51\uFE52\uFE53\uFE54\uFE55\uFE56\uFE58\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE57\uFF5C\uFF64\u300F\u3011\u3019\u301F\uFF60\xBB\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\u2010\u30A0\u301C\uFF5E\u203C\u2047\u2048\u2049\u30FB`),Ad=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function eS({parent:e}){if(e.usesCJSpaces===void 0){let t={" ":0,"":0},{children:r}=e;for(let n=1;n<r.length-1;++n){let i=r[n];if(i.type==="whitespace"&&(i.value===" "||i.value==="")){let s=r[n-1].kind,u=r[n+1].kind;(s===ir&&u===jr||s===jr&&u===ir)&&++t[i.value]}}e.usesCJSpaces=t[" "]>t[""]}return e.usesCJSpaces}function tS(e,t){if(t)return!0;let{previous:r,next:n}=e;if(!r||!n)return!0;let i=r.kind,s=n.kind;return bd(i)&&bd(s)||i===Er&&s===ir||s===Er&&i===ir?!0:i===mi||s===mi||i===ir&&s===ir?!1:Ad.has(n.value[0])||Ad.has(P(!1,r.value,-1))?!0:r.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:eS(e)}function Fd(e){return e===jr||e===ir||e===Er}function bd(e){return e===jr||e===Er}function rS(e,t,r,n,i){if(r!=="always"||e.hasAncestor(o=>Xx.has(o.type)))return!1;if(n)return t!=="";if(t===" ")return!0;let{previous:s,next:u}=e;return!(t===""&&((s==null?void 0:s.kind)===Er&&Fd(u==null?void 0:u.kind)||(u==null?void 0:u.kind)===Er&&Fd(s==null?void 0:s.kind))||!i&&(u&&Zx.has(u.value[0])||s&&Qx.has(P(!1,s.value,-1))))}function ac(e,t,r,n){if(r==="preserve"&&t===`
83
+ `)return y;let i=t===" "||t===`
84
+ `&&tS(e,n);return rS(e,t,r,n,i)?i?C:h:i?" ":""}var nS=new Set(["listItem","definition","footnoteDefinition"]);function iS(e,t,r){var i,s,u;let{node:n}=e;if(pS(e))return mu(t.originalText.slice(n.position.start.offset,n.position.end.offset)).map(a=>a.type==="word"?a.value:ac(e,a.value,t.proseWrap,!0));switch(n.type){case"front-matter":return t.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":[ea(oS(e,t,r)),y];case"paragraph":return Pe(e,t,r,{postprocessor:ie});case"sentence":return Pe(e,t,r);case"word":{let a=I(!1,I(!1,n.value,"*","\\*"),new RegExp([`(^|${fi})(_+)`,`(_+)(${fi}|$)`].join("|"),"g"),(l,p,f,d,m)=>I(!1,f?`${p}${f}`:`${d}${m}`,"_","\\_")),o=(l,p,f)=>l.type==="sentence"&&f===0,c=(l,p,f)=>uc(l.children[f-1]);return a!==n.value&&(e.match(void 0,o,c)||e.match(void 0,o,(l,p,f)=>l.type==="emphasis"&&f===0,c))&&(a=a.replace(/^(\\?[*_])+/,l=>I(!1,l,"\\",""))),a}case"whitespace":{let{next:a}=e,o=a&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(a.value)?"never":t.proseWrap;return ac(e,n.value,o)}case"emphasis":{let a;if(uc(n.children[0]))a=t.originalText[n.position.start.offset];else{let{previous:o,next:c}=e;a=(o==null?void 0:o.type)==="sentence"&&((i=P(!1,o.children,-1))==null?void 0:i.type)==="word"&&!P(!1,o.children,-1).hasTrailingPunctuation||(c==null?void 0:c.type)==="sentence"&&((s=c.children[0])==null?void 0:s.type)==="word"&&!c.children[0].hasLeadingPunctuation||e.hasAncestor(p=>p.type==="emphasis")?"*":"_"}return[a,Pe(e,t,r),a]}case"strong":return["**",Pe(e,t,r),"**"];case"delete":return["~~",Pe(e,t,r),"~~"];case"inlineCode":{let a=t.proseWrap==="preserve"?n.value:I(!1,n.value,`
85
+ `," "),o=cd(a,"`"),c="`".repeat(o||1),l=a.startsWith("`")||a.endsWith("`")||/^[\n ]/.test(a)&&/[\n ]$/.test(a)&&/[^\n ]/.test(a)?" ":"";return[c,l,a,l,c]}case"wikiLink":{let a="";return t.proseWrap==="preserve"?a=n.value:a=I(!1,n.value,/[\t\n]+/g," "),["[[",a,"]]"]}case"link":switch(t.originalText[n.position.start.offset]){case"<":{let a="mailto:";return["<",n.url.startsWith(a)&&t.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+a.length)!==a?n.url.slice(a.length):n.url,">"]}case"[":return["[",Pe(e,t,r),"](",oc(n.url,")"),yu(n.title,t),")"];default:return t.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return["![",n.alt||"","](",oc(n.url,")"),yu(n.title,t),")"];case"blockquote":return["> ",Q("> ",Pe(e,t,r))];case"heading":return["#".repeat(n.depth)+" ",Pe(e,t,r)];case"code":{if(n.isIndented){let c=" ".repeat(4);return Q(c,[c,$(n.value,y)])}let a=t.__inJsTemplate?"~":"`",o=a.repeat(Math.max(3,yn(n.value,a)+1));return[o,n.lang||"",n.meta?" "+n.meta:"",y,$(du(n,t.originalText),y),y,o]}case"html":{let{parent:a,isLast:o}=e,c=a.type==="root"&&o?n.value.trimEnd():n.value,l=/^<!--.*-->$/s.test(c);return $(c,l?y:Ot(Bt))}case"list":{let a=Bd(n,e.parent),o=md(n,t);return Pe(e,t,r,{processor(c){let l=f(),p=c.node;if(p.children.length===2&&p.children[1].type==="html"&&p.children[0].position.start.column!==p.children[1].position.start.column)return[l,vd(c,t,r,l)];return[l,Q(" ".repeat(l.length),vd(c,t,r,l))];function f(){let d=n.ordered?(c.isFirst?n.start:o?1:n.start+c.index)+(a%2===0?". ":") "):a%2===0?"- ":"* ";return n.isAligned||n.hasIndentedCodeblock?sS(d,t):d}}})}case"thematicBreak":{let{ancestors:a}=e,o=a.findIndex(l=>l.type==="list");return o===-1?"---":Bd(a[o],a[o+1])%2===0?"***":"---"}case"linkReference":return["[",Pe(e,t,r),"]",n.referenceType==="full"?cc(n):n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","]",cc(n)];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let a=t.proseWrap==="always"?C:" ";return D([cc(n),":",E([a,oc(n.url),n.title===null?"":[a,yu(n.title,t,!1)]])])}case"footnote":return["[^",Pe(e,t,r),"]"];case"footnoteReference":return _d(n);case"footnoteDefinition":{let a=n.children.length===1&&n.children[0].type==="paragraph"&&(t.proseWrap==="never"||t.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return[_d(n),": ",a?Pe(e,t,r):D([Q(" ".repeat(4),Pe(e,t,r,{processor:({isFirst:o})=>o?D([h,r()]):r()})),((u=e.next)==null?void 0:u.type)==="footnoteDefinition"?h:""])]}case"table":return aS(e,t,r);case"tableCell":return Pe(e,t,r);case"break":return/\s/.test(t.originalText[n.position.start.offset])?[" ",Ot(Bt)]:["\\",y];case"liquidNode":return $(n.value,y);case"import":case"export":case"jsx":return n.value;case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",y,n.value?[$(n.value,y),y]:"","$$"];case"inlineMath":return t.originalText.slice(li(n),pi(n));case"tableRow":case"listItem":case"text":default:throw new ee(n,"Markdown")}}function vd(e,t,r,n){let{node:i}=e,s=i.checked===null?"":i.checked?"[x] ":"[ ] ";return[s,Pe(e,t,r,{processor({node:u,isFirst:a}){if(a&&u.type!=="list")return Q(" ".repeat(s.length),r());let o=" ".repeat(fS(t.tabWidth-n.length,0,3));return[o,Q(o,r())]}})]}function sS(e,t){let r=n();return e+" ".repeat(r>=4?0:r);function n(){let i=e.length%t.tabWidth;return i===0?0:t.tabWidth-i}}function Bd(e,t){return uS(e,t,r=>r.ordered===e.ordered)}function uS(e,t,r){let n=-1;for(let i of t.children)if(i.type===e.type&&r(i)?n++:n=-1,i===e)return n}function aS(e,t,r){let{node:n}=e,i=[],s=e.map(()=>e.map(({index:p})=>{let f=jt(r(),t).formatted,d=$e(f);return i[p]=Math.max(i[p]||3,d),{text:f,width:d}},"children"),"children"),u=o(!1);if(t.proseWrap!=="never")return[K,u];let a=o(!0);return[K,D(L(a,u))];function o(p){let f=[l(s[0],p),c(p)];return s.length>1&&f.push(A(Sr,s.slice(1).map(d=>l(d,p)))),A(Sr,f)}function c(p){return`| ${i.map((d,m)=>{let g=n.align[m],x=g==="center"||g==="left"?":":"-",S=g==="center"||g==="right"?":":"-",F=p?"-":"-".repeat(d-2);return`${x}${F}${S}`}).join(" | ")} |`}function l(p,f){return`| ${p.map(({text:m,width:g},x)=>{if(f)return m;let S=i[x]-g,F=n.align[x],k=0;F==="right"?k=S:F==="center"&&(k=Math.floor(S/2));let v=S-k;return`${" ".repeat(k)}${m}${" ".repeat(v)}`}).join(" | ")} |`}}function oS(e,t,r){let n=[],i=null,{children:s}=e.node;for(let[u,a]of s.entries())switch(lc(a)){case"start":i===null&&(i={index:u,offset:a.position.end.offset});break;case"end":i!==null&&(n.push({start:i,end:{index:u,offset:a.position.start.offset}}),i=null);break;default:break}return Pe(e,t,r,{processor({index:u}){if(n.length>0){let a=n[0];if(u===a.start.index)return[kd(s[a.start.index]),t.originalText.slice(a.start.offset,a.end.offset),kd(s[a.end.index])];if(a.start.index<u&&u<a.end.index)return!1;if(u===a.end.index)return n.shift(),!1}return r()}})}function Pe(e,t,r,n={}){let{postprocessor:i=a=>a,processor:s=()=>r()}=n,u=[];return e.each(()=>{let a=s(e);a!==!1&&(u.length>0&&cS(e)&&(u.push(y),(lS(e,t)||wd(e))&&u.push(y),wd(e)&&u.push(y)),u.push(a))},"children"),i(u)}function kd(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function lc(e){let t;if(e.type==="html")t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let r;e.type==="esComment"?r=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(r=e.children[0]),r&&(t=r.value.match(/^prettier-ignore(?:-(start|end))?$/))}return t?t[1]||"next":!1}function cS({node:e,parent:t}){let r=sc.has(e.type),n=e.type==="html"&&fd.has(t.type);return!r&&!n}function Pd(e,t){return e.type==="listItem"&&(e.spread||t.originalText.charAt(e.position.end.offset-1)===`
86
+ `)}function lS({node:e,previous:t,parent:r},n){if(Pd(t,n))return!0;let u=t.type===e.type&&nS.has(e.type),a=r.type==="listItem"&&!Pd(r,n),o=lc(t)==="next",c=e.type==="html"&&t.type==="html"&&t.position.end.line+1===e.position.start.line,l=e.type==="html"&&r.type==="listItem"&&t.type==="paragraph"&&t.position.end.line+1===e.position.start.line;return!(u||a||o||c||l)}function wd({node:e,previous:t}){let r=t.type==="list",n=e.type==="code"&&e.isIndented;return r&&n}function pS(e){let t=e.findAncestor(r=>r.type==="linkReference"||r.type==="imageReference");return t&&(t.type!=="linkReference"||t.referenceType!=="full")}function oc(e,t=[]){let r=[" ",...Array.isArray(t)?t:[t]];return new RegExp(r.map(n=>`\\${n}`).join("|")).test(e)?`<${e}>`:e}function yu(e,t,r=!0){if(!e)return"";if(r)return" "+yu(e,t,!1);if(e=I(!1,e,/\\(?=["')])/g,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=e.split("'").length-1,i=e.split('"').length-1,s=n>i?'"':i>n||t.singleQuote?"'":'"';return e=I(!1,e,"\\","\\\\"),e=I(!1,e,new RegExp(`(${s})`,"g"),"\\$1"),`${s}${e}${s}`}function fS(e,t,r){return e<t?t:e>r?r:e}function mS(e){return e.index>0&&lc(e.previous)==="next"}function cc(e){return`[${(0,Ld.default)(e.label)}]`}function _d(e){return`[^${e.label}]`}var dS={preprocess:hd,print:iS,embed:dd,massageAstNode:xd,hasPrettierIgnore:mS,insertPragma:gd,getVisitorKeys:Td},Id=dS;var Od=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"source.gfm",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"source.gfm",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];var yS={proseWrap:xe.proseWrap,singleQuote:xe.singleQuote},Nd=yS;var DS={mdast:Id},gS=ze(ad);var Pu={};fe(Pu,{languages:()=>Sy,options:()=>Ay,parsers:()=>lT,printers:()=>cT});var Md=void 0;var hS=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens"]);function jd(e,t){if(e.type==="text"||e.type==="comment"||Ze(e)||e.type==="yaml"||e.type==="toml")return null;e.type==="attribute"&&delete t.value,e.type==="docType"&&delete t.value}jd.ignoredProperties=hS;var Rd=jd;var $d="inline",Wd={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},qd="normal",Vd={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function ES(e){return e.type==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var gu=ES;var CS=e=>I(!1,e,/^[\t\f\r ]*\n/g,""),pc=e=>CS(ge.trimEnd(e)),Gd=e=>{let t=e,r=ge.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=ge.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function hu(e,t){return!!(e.type==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.type==="ieConditionalComment"&&!e.complete||Rr(e)&&e.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||Su(e,t)&&!wt(e)&&e.type!=="interpolation")}function di(e){return e.type==="attribute"||!e.parent||!e.prev?!1:xS(e.prev)}function xS(e){return e.type==="comment"&&e.value.trim()==="prettier-ignore"}function et(e){return e.type==="text"||e.type==="comment"}function wt(e){return e.type==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||gu(e)&&(e.name==="script"||e.name==="style"))}function Hd(e){return e.children&&!wt(e)}function Ud(e){return wt(e)||e.type==="interpolation"||fc(e)}function fc(e){return ny(e).startsWith("pre")}function Kd(e,t){var i,s;let r=n();if(r&&!e.prev&&((s=(i=e.parent)==null?void 0:i.tagDefinition)!=null&&s.ignoreFirstLf))return e.type==="interpolation";return r;function n(){return Ze(e)?!1:(e.type==="text"||e.type==="interpolation")&&e.prev&&(e.prev.type==="text"||e.prev.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:Rr(e.parent)?!0:!(!e.prev&&(e.parent.type==="root"||Rr(e)&&e.parent||wt(e.parent)||gi(e.parent,t)||!FS(e.parent.cssDisplay))||e.prev&&!BS(e.prev.cssDisplay))}}function Yd(e,t){return Ze(e)?!1:(e.type==="text"||e.type==="interpolation")&&e.next&&(e.next.type==="text"||e.next.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:Rr(e.parent)?!0:!(!e.next&&(e.parent.type==="root"||Rr(e)&&e.parent||wt(e.parent)||gi(e.parent,t)||!bS(e.parent.cssDisplay))||e.next&&!vS(e.next.cssDisplay))}function zd(e){return kS(e.cssDisplay)&&!wt(e)}function yi(e){return Ze(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function Xd(e){return mc(e)||e.type==="element"&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some(t=>TS(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.type!=="text"&&Zd(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||ey(e.lastChild))}function mc(e){return e.type==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function Eu(e){return ty(e)||e.prev&&SS(e.prev)||Qd(e)}function SS(e){return ty(e)||e.type==="element"&&e.fullName==="br"||Qd(e)}function Qd(e){return Zd(e)&&ey(e)}function Zd(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.type==="root"||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function ey(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.type==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function ty(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function Cu(e){return e.lastChild?Cu(e.lastChild):e}function TS(e){var t;return(t=e.children)==null?void 0:t.some(r=>r.type!=="text")}function Jd(e){let{type:t,lang:r}=e.attrMap;if(t==="module"||t==="text/javascript"||t==="text/babel"||t==="application/javascript"||r==="jsx")return"babel";if(t==="application/x-typescript"||r==="ts"||r==="tsx")return"typescript";if(t==="text/markdown")return"markdown";if(t==="text/html")return"html";if(t&&(t.endsWith("json")||t.endsWith("importmap"))||t==="speculationrules")return"json";if(t==="text/x-handlebars-template")return"glimmer"}function AS(e,t){let{lang:r}=e.attrMap;if(!r||r==="postcss"||r==="css")return"css";if(r==="scss")return"scss";if(r==="less")return"less";if(r==="stylus")return ci("stylus",t)}function dc(e,t){if(e.name==="script"&&!e.attrMap.src)return!e.attrMap.lang&&!e.attrMap.type?"babel":Jd(e);if(e.name==="style")return AS(e,t);if(t&&Su(e,t))return Jd(e)||!("src"in e.attrMap)&&ci(e.attrMap.lang,t)}function Di(e){return e==="block"||e==="list-item"||e.startsWith("table")}function FS(e){return!Di(e)&&e!=="inline-block"}function bS(e){return!Di(e)&&e!=="inline-block"}function vS(e){return!Di(e)}function BS(e){return!Di(e)}function kS(e){return!Di(e)&&e!=="inline-block"}function Rr(e){return ny(e).startsWith("pre")}function PS(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function ry(e,t){var n,i;if(((n=e.prev)==null?void 0:n.type)==="comment"){let s=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(s)return s[1]}let r=!1;if(e.type==="element"&&e.namespace==="svg")if(PS(e,s=>s.fullName==="svg:foreignObject"))r=!0;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return t.parser==="vue"&&((i=e.parent)==null?void 0:i.type)==="root"?"block":e.type==="element"&&(!e.namespace||r||gu(e))&&Wd[e.name]||$d}}function ny(e){return e.type==="element"&&(!e.namespace||gu(e))&&Vd[e.name]||qd}function wS(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(`
87
+ `)){if(r.length===0)continue;let n=ge.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n<t&&(t=n)}return t===Number.POSITIVE_INFINITY?0:t}function yc(e,t=wS(e)){return t===0?e:e.split(`
94
88
  `).map(r=>r.slice(t)).join(`
95
- `)}function yc(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function gu(e){return e.replace(/&apos;/g,"'").replace(/&quot;/g,'"')}var hS=new Set(["template","style","script"]);function di(e,t){return dn(e,t)&&!hS.has(e.fullName)}function dn(e,t){return t.parser==="vue"&&e.type==="element"&&e.parent.type==="root"&&e.fullName.toLowerCase()!=="html"}function hu(e,t){return dn(e,t)&&(di(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function Ky(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function Yy(e,t){let r=e.parent;if(!dn(r,t))return!1;let n=r.fullName,i=e.fullName;return n==="script"&&i==="setup"||n==="style"&&i==="vars"}function Eu(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?j(t):j(mc(cc(t)),D):B(S,sS(t))}function zy(e,t){return dn(e,t)&&e.name==="script"}l();l();l();l();var Ft=class{constructor(t,r,n=t,i=null){this.start=t,this.end=r,this.fullStart=n,this.details=i}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Xy;(function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"})(Xy||(Xy={}));var CS=[SS,AS,FS,vS,BS,wS,kS,PS,IS,bS,_S];function xS(e,t){for(let r of CS)r(e,t);return e}function SS(e){e.walk(t=>{if(t.type==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].type==="text"&&t.children[0].value[0]===`
96
- `){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1)}})}function AS(e){let t=r=>r.type==="element"&&r.prev&&r.prev.type==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&r.firstChild&&r.firstChild.type==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset;e.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let i=r.children[n];if(!t(i))continue;let s=i.prev,u=i.firstChild;r.removeChild(s),n--;let a=new Ft(s.sourceSpan.start,u.sourceSpan.end),o=new Ft(a.start,i.sourceSpan.end);i.condition=s.condition,i.sourceSpan=o,i.startSourceSpan=a,i.removeChild(u)}})}function TS(e,t,r){e.walk(n=>{if(n.children)for(let i=0;i<n.children.length;i++){let s=n.children[i];if(s.type!=="text"&&!t(s))continue;s.type!=="text"&&(s.type="text",s.value=r(s));let u=s.prev;!u||u.type!=="text"||(u.value+=s.value,u.sourceSpan=new Ft(u.sourceSpan.start,s.sourceSpan.end),n.removeChild(s),i--)}})}function FS(e){return TS(e,t=>t.type==="cdata",t=>`<![CDATA[${t.value}]]>`)}function bS(e){let t=r=>r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!Ly(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&r.prev&&r.prev.type==="text"&&r.next&&r.next.type==="text";e.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let i=r.children[n];if(!t(i))continue;let s=i.prev,u=i.next;s.value+=`<${i.rawName}>`+i.firstChild.value+`</${i.rawName}>`+u.value,s.sourceSpan=new Ft(s.sourceSpan.start,u.sourceSpan.end),s.isTrailingSpaceSensitive=u.isTrailingSpaceSensitive,s.hasTrailingSpaces=u.hasTrailingSpaces,r.removeChild(i),n--,r.removeChild(u)}})}function vS(e,t){if(t.parser==="html")return;let r=/{{(.+?)}}/s;e.walk(n=>{if(!!Ny(n))for(let i of n.children){if(i.type!=="text")continue;let s=i.sourceSpan.start,u=null,a=i.value.split(r);for(let o=0;o<a.length;o++,s=u){let c=a[o];if(o%2===0){u=s.moveBy(c.length),c.length>0&&n.insertChildBefore(i,{type:"text",value:c,sourceSpan:new Ft(s,u)});continue}u=s.moveBy(c.length+4),n.insertChildBefore(i,{type:"interpolation",sourceSpan:new Ft(s,u),children:c.length===0?[]:[{type:"text",value:c,sourceSpan:new Ft(s.moveBy(2),u.moveBy(-2))}]})}n.removeChild(i)}})}function BS(e){e.walk(t=>{if(!t.children)return;if(t.children.length===0||t.children.length===1&&t.children[0].type==="text"&&Iy(t.children[0].value).length===0){t.hasDanglingSpaces=t.children.length>0,t.children=[];return}let r=Oy(t),n=lc(t);if(!r)for(let i=0;i<t.children.length;i++){let s=t.children[i];if(s.type!=="text")continue;let{leadingWhitespace:u,text:a,trailingWhitespace:o}=_y(s.value),c=s.prev,p=s.next;a?(s.value=a,s.sourceSpan=new Ft(s.sourceSpan.start.moveBy(u.length),s.sourceSpan.end.moveBy(-o.length)),u&&(c&&(c.hasTrailingSpaces=!0),s.hasLeadingSpaces=!0),o&&(s.hasTrailingSpaces=!0,p&&(p.hasLeadingSpaces=!0))):(t.removeChild(s),i--,(u||o)&&(c&&(c.hasTrailingSpaces=!0),p&&(p.hasLeadingSpaces=!0)))}t.isWhitespaceSensitive=r,t.isIndentationSensitive=n})}function kS(e){e.walk(t=>{t.isSelfClosing=!t.children||t.type==="element"&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)})}function PS(e,t){e.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function wS(e,t){e.walk(r=>{r.cssDisplay=Gy(r,t)})}function IS(e,t){e.walk(r=>{let{children:n}=r;if(!!n){if(n.length===0){r.isDanglingSpaceSensitive=Ry(r);return}for(let i of n)i.isLeadingSpaceSensitive=My(i,t),i.isTrailingSpaceSensitive=jy(i,t);for(let i=0;i<n.length;i++){let s=n[i];s.isLeadingSpaceSensitive=(i===0||s.prev.isTrailingSpaceSensitive)&&s.isLeadingSpaceSensitive,s.isTrailingSpaceSensitive=(i===n.length-1||s.next.isLeadingSpaceSensitive)&&s.isTrailingSpaceSensitive}}})}function _S(e,t){if(t.parser==="vue"){let r=e.children.find(i=>zy(i,t));if(!r)return;let{lang:n}=r.attrMap;(n==="ts"||n==="typescript")&&(t.__should_parse_vue_template_with_ts=!0)}}var Qy=xS;l();function Zy(e){return`<!-- @format -->
89
+ `)}function Dc(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function xu(e){return I(!1,I(!1,e,"&apos;","'"),"&quot;",'"')}var _S=new Set(["template","style","script"]);function gi(e,t){return hn(e,t)&&!_S.has(e.fullName)}function hn(e,t){return t.parser==="vue"&&e.type==="element"&&e.parent.type==="root"&&e.fullName.toLowerCase()!=="html"}function Su(e,t){return hn(e,t)&&(gi(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function iy(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function sy(e,t){let r=e.parent;if(!hn(r,t))return!1;let n=r.fullName,i=e.fullName;return n==="script"&&i==="setup"||n==="style"&&i==="vars"}function Tu(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?$(t):$(yc(pc(t)),y):A(C,ge.split(t))}function uy(e,t){return hn(e,t)&&e.name==="script"}var _t=class{constructor(t,r,n=t,i=null){this.start=t,this.end=r,this.fullStart=n,this.details=i}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},ay;(function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"})(ay||(ay={}));var IS=[NS,MS,RS,WS,qS,GS,VS,JS,HS,$S,US];function OS(e,t){for(let r of IS)r(e,t);return e}function NS(e){e.walk(t=>{if(t.type==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].type==="text"&&t.children[0].value[0]===`
90
+ `){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1)}})}function MS(e){let t=r=>{var n,i;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((i=r.firstChild)==null?void 0:i.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};e.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let i=r.children[n];if(!t(i))continue;let s=i.prev,u=i.firstChild;r.removeChild(s),n--;let a=new _t(s.sourceSpan.start,u.sourceSpan.end),o=new _t(a.start,i.sourceSpan.end);i.condition=s.condition,i.sourceSpan=o,i.startSourceSpan=a,i.removeChild(u)}})}function jS(e,t,r){e.walk(n=>{if(n.children)for(let i=0;i<n.children.length;i++){let s=n.children[i];if(s.type!=="text"&&!t(s))continue;s.type!=="text"&&(s.type="text",s.value=r(s));let u=s.prev;!u||u.type!=="text"||(u.value+=s.value,u.sourceSpan=new _t(u.sourceSpan.start,s.sourceSpan.end),n.removeChild(s),i--)}})}function RS(e){return jS(e,t=>t.type==="cdata",t=>`<![CDATA[${t.value}]]>`)}function $S(e){let t=r=>{var n,i;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!ge.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((i=r.next)==null?void 0:i.type)==="text"};e.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let i=r.children[n];if(!t(i))continue;let s=i.prev,u=i.next;s.value+=`<${i.rawName}>`+i.firstChild.value+`</${i.rawName}>`+u.value,s.sourceSpan=new _t(s.sourceSpan.start,u.sourceSpan.end),s.isTrailingSpaceSensitive=u.isTrailingSpaceSensitive,s.hasTrailingSpaces=u.hasTrailingSpaces,r.removeChild(i),n--,r.removeChild(u)}})}function WS(e,t){if(t.parser==="html")return;let r=/{{(.+?)}}/s;e.walk(n=>{if(Hd(n))for(let i of n.children){if(i.type!=="text")continue;let s=i.sourceSpan.start,u=null,a=i.value.split(r);for(let o=0;o<a.length;o++,s=u){let c=a[o];if(o%2===0){u=s.moveBy(c.length),c.length>0&&n.insertChildBefore(i,{type:"text",value:c,sourceSpan:new _t(s,u)});continue}u=s.moveBy(c.length+4),n.insertChildBefore(i,{type:"interpolation",sourceSpan:new _t(s,u),children:c.length===0?[]:[{type:"text",value:c,sourceSpan:new _t(s.moveBy(2),u.moveBy(-2))}]})}n.removeChild(i)}})}function qS(e){e.walk(t=>{if(!t.children)return;if(t.children.length===0||t.children.length===1&&t.children[0].type==="text"&&ge.trim(t.children[0].value).length===0){t.hasDanglingSpaces=t.children.length>0,t.children=[];return}let r=Ud(t),n=fc(t);if(!r)for(let i=0;i<t.children.length;i++){let s=t.children[i];if(s.type!=="text")continue;let{leadingWhitespace:u,text:a,trailingWhitespace:o}=Gd(s.value),c=s.prev,l=s.next;a?(s.value=a,s.sourceSpan=new _t(s.sourceSpan.start.moveBy(u.length),s.sourceSpan.end.moveBy(-o.length)),u&&(c&&(c.hasTrailingSpaces=!0),s.hasLeadingSpaces=!0),o&&(s.hasTrailingSpaces=!0,l&&(l.hasLeadingSpaces=!0))):(t.removeChild(s),i--,(u||o)&&(c&&(c.hasTrailingSpaces=!0),l&&(l.hasLeadingSpaces=!0)))}t.isWhitespaceSensitive=r,t.isIndentationSensitive=n})}function VS(e){e.walk(t=>{t.isSelfClosing=!t.children||t.type==="element"&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)})}function JS(e,t){e.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function GS(e,t){e.walk(r=>{r.cssDisplay=ry(r,t)})}function HS(e,t){e.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=zd(r);return}for(let i of n)i.isLeadingSpaceSensitive=Kd(i,t),i.isTrailingSpaceSensitive=Yd(i,t);for(let i=0;i<n.length;i++){let s=n[i];s.isLeadingSpaceSensitive=(i===0||s.prev.isTrailingSpaceSensitive)&&s.isLeadingSpaceSensitive,s.isTrailingSpaceSensitive=(i===n.length-1||s.next.isLeadingSpaceSensitive)&&s.isTrailingSpaceSensitive}}})}function US(e,t){if(t.parser==="vue"){let r=e.children.find(i=>uy(i,t));if(!r)return;let{lang:n}=r.attrMap;(n==="ts"||n==="typescript")&&(t.__should_parse_vue_template_with_ts=!0)}}var oy=OS;function cy(e){return`<!-- @format -->
97
91
 
98
- `+e.replace(/^\s*\n/,"")}l();function Dn(e){return e.sourceSpan.start.offset}function gn(e){return e.sourceSpan.end.offset}l();l();function Di(e,t){return[e.isSelfClosing?"":LS(e,t),gi(e,t)]}function LS(e,t){return e.lastChild&&qr(e.lastChild)?"":[NS(e,t),Cu(e,t)]}function gi(e,t){return(e.next?Rt(e.next):$r(e.parent))?"":[Rr(e,t),bt(e,t)]}function NS(e,t){return $r(e)?Rr(e.lastChild,t):""}function bt(e,t){return qr(e)?Cu(e.parent,t):hi(e)?xu(e.next):""}function Cu(e,t){if(Ge(!e.isSelfClosing),ed(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function Rr(e,t){if(ed(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function ed(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(fi(e)||yu(e.parent,t))}function Rt(e){return e.prev&&e.prev.type!=="docType"&&!Ke(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function $r(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!Ke(Du(e.lastChild))&&!jr(e)}function qr(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Ke(Du(e))}function hi(e){return e.next&&!Ke(e.next)&&Ke(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function OS(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return t?t[1]?t[1].split(/\s+/):!0:!1}function Ei(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function MS(e,t,r){let{node:n}=e;if(!L(n.attrs))return n.isSelfClosing?" ":"";let i=n.prev&&n.prev.type==="comment"&&OS(n.prev.value),s=typeof i=="boolean"?()=>i:Array.isArray(i)?f=>i.includes(f.rawName):()=>!1,u=e.map(f=>{let m=f.node;return s(m)?j(t.originalText.slice(Dn(m),gn(m))):r()},"attrs"),a=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,c=t.singleAttributePerLine&&n.attrs.length>1&&!dn(n,t)?D:S,p=[x([a?" ":S,B(c,u)])];return n.firstChild&&Ei(n.firstChild)||n.isSelfClosing&&$r(n.parent)||a?p.push(n.isSelfClosing?" ":""):p.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?S:C),p}function jS(e){return e.firstChild&&Ei(e.firstChild)?"":Su(e)}function Ci(e,t,r){let{node:n}=e;return[xi(n,t),MS(e,t,r),n.isSelfClosing?"":jS(n)]}function xi(e,t){return e.prev&&hi(e.prev)?"":[vt(e,t),xu(e)]}function vt(e,t){return Ei(e)?Su(e.parent):Rt(e)?Rr(e.prev,t):""}function xu(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${e.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return e.value==="html"?"<!doctype":"<!DOCTYPE";case"element":if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function Su(e){switch(Ge(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return"><!--<![endif]-->";default:return">"}}l();l();function RS(e){function t(A){return A===" "||A===" "||A===`
99
- `||A==="\f"||A==="\r"}function r(A){var F,v=A.exec(e.substring(E));if(v)return F=v[0],E+=F.length,F}for(var n=e.length,i=/^[ \t\n\r\u000c]+/,s=/^[, \t\n\r\u000c]+/,u=/^[^ \t\n\r\u000c]+/,a=/[,]+$/,o=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,p,f,m,d,y,E=0,T=[];;){if(r(s),E>=n)return T;p=r(u),f=[],p.slice(-1)===","?(p=p.replace(a,""),k()):b()}function b(){for(r(i),m="",d="in descriptor";;){if(y=e.charAt(E),d==="in descriptor")if(t(y))m&&(f.push(m),m="",d="after descriptor");else if(y===","){E+=1,m&&f.push(m),k();return}else if(y==="(")m=m+y,d="in parens";else if(y===""){m&&f.push(m),k();return}else m=m+y;else if(d==="in parens")if(y===")")m=m+y,d="in descriptor";else if(y===""){f.push(m),k();return}else m=m+y;else if(d==="after descriptor"&&!t(y))if(y===""){k();return}else d="in descriptor",E-=1;E+=1}}function k(){var A=!1,F,v,M,W,V={},z,R,se,pe,Ye;for(W=0;W<f.length;W++)z=f[W],R=z[z.length-1],se=z.substring(0,z.length-1),pe=parseInt(se,10),Ye=parseFloat(se),o.test(se)&&R==="w"?((F||v)&&(A=!0),pe===0?A=!0:F=pe):c.test(se)&&R==="x"?((F||v||M)&&(A=!0),Ye<0?A=!0:v=Ye):o.test(se)&&R==="h"?((M||v)&&(A=!0),pe===0?A=!0:M=pe):A=!0;if(!A)V.url=p,F&&(V.w=F),v&&(V.d=v),M&&(V.h=M),T.push(V);else throw new SyntaxError("Invalid srcset descriptor found in '"+e+"' at '"+z+"'.")}}var td=RS;function rd(e){let t=td(e),r=t.some(({w:d})=>d),n=t.some(({h:d})=>d),i=t.some(({d})=>d);if(r+n+i>1)throw new Error("Mixed descriptor in srcset is not supported");let s=r?"w":n?"h":"d",u=r?"w":n?"h":"x",a=d=>Math.max(...d),o=t.map(d=>d.url),c=a(o.map(d=>d.length)),p=t.map(d=>d[s]).map(d=>d?d.toString():""),f=p.map(d=>{let y=d.indexOf(".");return y===-1?d.length:y}),m=a(f);return B([",",S],o.map((d,y)=>{let E=[d],T=p[y];if(T){let b=c-d.length+1,k=m-f[y],A=" ".repeat(b+k);E.push(I(A," "),T+u)}return E}))}function nd(e){return e.trim().split(/\s+/).join(" ")}l();async function id(e,t){let{left:r,operator:n,right:i}=$S(e);return[g(await t(`function _(${r}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",n," ",await t(i,{parser:"__js_expression"})]}function $S(e){let t=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,i=e.match(t);if(!i)return;let s={};if(s.for=i[3].trim(),!s.for)return;let u=i[1].trim().replace(n,""),a=u.match(r);a?(s.alias=u.replace(r,""),s.iterator1=a[1].trim(),a[2]&&(s.iterator2=a[2].trim())):s.alias=u;let o=[s.alias,s.iterator1,s.iterator2];if(!o.some((c,p)=>!c&&(p===0||o.slice(p+1).some(Boolean))))return{left:o.filter(Boolean).join(","),operator:i[2],right:s.for}}function sd(e,t){return t(`function _(${e}) {}`,{parser:"babel",__isVueBindings:!0})}function ud(e){let t=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,n=e.trim();return t.test(n)||r.test(n)}l();function qS(e,t){let r=e.startSourceSpan.end.offset;e.firstChild&&Ei(e.firstChild)&&(r-=Su(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&qr(e.lastChild)?n+=Cu(e,t).length:$r(e)&&(n-=Rr(e.lastChild,t).length),t.originalText.slice(r,n)}var Au=qS;async function WS(e,t,r){let n=f=>new RegExp(f.join("|")).test(e.fullName),i=()=>gu(e.value),s=!1,u=(f,m)=>{let d=f.type==="NGRoot"?f.node.type==="NGMicrosyntax"&&f.node.body.length===1&&f.node.body[0].type==="NGMicrosyntaxExpression"?f.node.body[0].expression:f.node:f.type==="JsExpressionRoot"?f.node:f;d&&(d.type==="ObjectExpression"||d.type==="ArrayExpression"||m.parser==="__vue_expression"&&(d.type==="TemplateLiteral"||d.type==="StringLiteral"))&&(s=!0)},a=f=>g(f),o=(f,m=!0)=>g([x([C,f]),m?C:""]),c=f=>s?a(f):o(f),p=(f,m)=>t(f,{__onHtmlBindingRoot:u,__embeddedInHtml:!0,...m});if(e.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"))return o(rd(i()));if(e.fullName==="class"&&!r.parentParser){let f=i();if(!f.includes("{{"))return nd(f)}if(e.fullName==="style"&&!r.parentParser){let f=i();if(!f.includes("{{"))return o(await p(f,{parser:"css",__isHTMLStyleAttribute:!0}))}if(r.parser==="vue"){if(e.fullName==="v-for")return id(i(),p);if(Ky(e)||Yy(e,r))return sd(i(),p);let f=["^@","^v-on:"],m=["^:","^v-bind:"],d=["^v-"];if(n(f)){let y=i(),E=ud(y)?"__js_expression":r.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return c(await p(y,{parser:E}))}if(n(m))return c(await p(i(),{parser:"__vue_expression"}));if(n(d))return c(await p(i(),{parser:"__js_expression"}))}if(r.parser==="angular"){let f=(k,A)=>p(k,{...A,trailingComma:"none"}),m=["^\\*"],d=["^\\(.+\\)$","^on-"],y=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],E=["^i18n(-.+)?$"];if(n(d))return c(await f(i(),{parser:"__ng_action"}));if(n(y))return c(await f(i(),{parser:"__ng_binding"}));if(n(E)){let k=i().trim();return o(ee(Eu(e,k)),!k.includes("@@"))}if(n(m))return c(await f(i(),{parser:"__ng_directive"}));let T=/{{(.+?)}}/s,b=i();if(T.test(b)){let k=[];for(let[A,F]of b.split(T).entries())if(A%2===0)k.push(j(F));else try{k.push(g(["{{",x([S,await f(F,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),S,"}}"]))}catch{k.push("{{",j(F),"}}")}return g(k)}}return null}function VS(e,t){let{node:r}=e;switch(r.type){case"element":if(Tt(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&hu(r,t)){let n=fc(r,t);return n?async(i,s)=>{let u=Au(r,t),a=/^\s*$/.test(u),o="";return a||(o=await i(cc(u),{parser:n,__embeddedInHtml:!0}),a=o===""),[vt(r,t),g(Ci(e,t,s)),a?"":D,o,a?"":D,Di(r,t),bt(r,t)]}:void 0}break;case"text":if(Tt(r.parent)){let n=fc(r.parent,t);if(n)return async i=>{let s=n==="markdown"?mc(r.value.replace(/^[^\S\n]*\n/,"")):r.value,u={parser:n,__embeddedInHtml:!0};if(t.parser==="html"&&n==="babel"){let a="script",{attrMap:o}=r.parent;o&&(o.type==="module"||o.type==="text/babel"&&o["data-type"]==="module")&&(a="module"),u.__babelSourceType=a}return[K,vt(r,t),await i(s,u,{stripTrailingHardline:!0}),bt(r,t)]}}else if(r.parent.type==="interpolation")return async n=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?(i.parser="__ng_interpolation",i.trailingComma="none"):t.parser==="vue"?i.parser=t.__should_parse_vue_template_with_ts?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[x([S,await n(r.value,i)]),r.parent.next&&Rt(r.parent.next)?" ":S]};break;case"attribute":if(!r.value)break;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))?[r.rawName,"=",r.value]:t.parser==="lwc"&&/^{.*}$/s.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))?[r.rawName,"=",r.value]:async n=>{let i=await WS(r,(s,u)=>n(s,{__isInHtmlAttribute:!0,__embeddedInHtml:!0,...u}),t);if(i)return[r.rawName,'="',g(Qe(i,s=>typeof s=="string"?s.replace(/"/g,"&quot;"):s)),'"']};case"front-matter":return n=>cn(r,n)}}var ad=VS;l();l();function Si(e,t,r){let n=e.node;return fi(n)?[vt(n,t),j(t.originalText.slice(Dn(n)+(n.prev&&hi(n.prev)?xu(n).length:0),gn(n)-(n.next&&Rt(n.next)?Rr(n,t).length:0))),bt(n,t)]:r()}function Tu(e,t){return Ke(e)&&Ke(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?du(t)?D:S:"":du(t)?D:C:hi(e)&&(fi(t)||t.firstChild||t.isSelfClosing||t.type==="element"&&t.attrs.length>0)||e.type==="element"&&e.isSelfClosing&&Rt(t)?"":!t.isLeadingSpaceSensitive||du(t)||Rt(t)&&e.lastChild&&qr(e.lastChild)&&e.lastChild.lastChild&&qr(e.lastChild.lastChild)?D:t.hasLeadingSpaces?S:C}function Fu(e,t,r){let{node:n}=e;if(pc(n))return[K,...e.map(s=>{let u=s.node,a=u.prev?Tu(u.prev,u):"";return[a?[a,mi(u.prev)?D:""]:"",Si(s,t,r)]},"children")];let i=n.children.map(()=>Symbol(""));return e.map((s,u)=>{let a=s.node;if(Ke(a)){if(a.prev&&Ke(a.prev)){let y=Tu(a.prev,a);if(y)return mi(a.prev)?[D,D,Si(s,t,r)]:[y,Si(s,t,r)]}return Si(s,t,r)}let o=[],c=[],p=[],f=[],m=a.prev?Tu(a.prev,a):"",d=a.next?Tu(a,a.next):"";return m&&(mi(a.prev)?o.push(D,D):m===D?o.push(D):Ke(a.prev)?c.push(m):c.push(I("",C,{groupId:i[u-1]}))),d&&(mi(a)?Ke(a.next)&&f.push(D,D):d===D?Ke(a.next)&&f.push(D):p.push(d)),[...o,g([...c,g([Si(s,t,r),...p],{id:i[u]})]),...f]},"children")}function od(e,t,r){let{node:n}=e;if(yu(n,t))return[vt(n,t),g(Ci(e,t,r)),j(Au(n,t)),...Di(n,t),bt(n,t)];let i=n.children.length===1&&n.firstChild.type==="interpolation"&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id"),u=p=>g([g(Ci(e,t,r),{id:s}),p,Di(n,t)]),a=p=>i?qt(p,{groupId:s}):(Tt(n)||di(n,t))&&n.parent.type==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?p:x(p),o=()=>i?I(C,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?S:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?rr(C):C,c=()=>(n.next?Rt(n.next):$r(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":i?I(C,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?S:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*Hy(e,f=>f.parent&&f.parent.type!=="root")}}$`).test(n.lastChild.value)?"":C;return n.children.length===0?u(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?S:""):u([$y(n)?K:"",a([o(),Fu(e,t,r)]),c()])}l();var JS={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[]},cd=JS;var HS=Te(cd);function GS(e,t,r){let{node:n}=e;switch(n.type){case"front-matter":return j(n.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),[g(Fu(e,t,r)),D];case"element":case"ieConditionalComment":return od(e,t,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[xi(n),gi(n)];case"interpolation":return[xi(n,t),...e.map(r,"children"),gi(n,t)];case"text":{if(n.parent.type==="interpolation"){let s=/\n[^\S\n]*$/,u=s.test(n.value),a=u?n.value.replace(s,""):n.value;return[j(a),u?D:""]}let i=kt([vt(n,t),...Eu(n),bt(n,t)]);return Array.isArray(i)?ee(i):i}case"docType":return[g([xi(n,t)," ",n.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),gi(n,t)];case"comment":return[vt(n,t),j(t.originalText.slice(Dn(n),gn(n))),bt(n,t)];case"attribute":{if(n.value===null)return n.rawName;let i=gu(n.value),s=yc(i,"'"),u=yc(i,'"'),a=s<u?"'":'"';return[n.rawName,"=",a,j(a==='"'?i.replace(/"/g,"&quot;"):i.replace(/'/g,"&apos;")),a]}case"cdata":default:throw new me(n,"HTML")}}var US={preprocess:Qy,print:GS,insertPragma:Zy,massageAstNode:Fy,embed:ad,getVisitorKeys:HS},ld=US;var pd=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}];l();var fd="HTML",YS={bracketSameLine:De.bracketSameLine,htmlWhitespaceSensitivity:{category:fd,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:De.singleAttributePerLine,vueIndentScriptAndStyle:{category:fd,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},md=YS;l();var yd=void 0;var zS={html:ld};var Iu={};fe(Iu,{languages:()=>Id,options:()=>_d,parsers:()=>Ld,printers:()=>dA});l();l();l();function dd(e){return/^\s*@(?:prettier|format)\s*$/.test(e)}function Dd(e){return`# @format
92
+ `+e.replace(/^\s*\n/,"")}function En(e){return e.sourceSpan.start.offset}function Cn(e){return e.sourceSpan.end.offset}function hi(e,t){return[e.isSelfClosing?"":KS(e,t),Ei(e,t)]}function KS(e,t){return e.lastChild&&qr(e.lastChild)?"":[YS(e,t),Au(e,t)]}function Ei(e,t){return(e.next?Gt(e.next):Wr(e.parent))?"":[$r(e,t),Lt(e,t)]}function YS(e,t){return Wr(e)?$r(e.lastChild,t):""}function Lt(e,t){return qr(e)?Au(e.parent,t):Ci(e)?Fu(e.next):""}function Au(e,t){if(gt(!e.isSelfClosing),ly(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function $r(e,t){if(ly(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function ly(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(di(e)||hu(e.parent,t))}function Gt(e){return e.prev&&e.prev.type!=="docType"&&!et(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Wr(e){var t;return((t=e.lastChild)==null?void 0:t.isTrailingSpaceSensitive)&&!e.lastChild.hasTrailingSpaces&&!et(Cu(e.lastChild))&&!Rr(e)}function qr(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&et(Cu(e))}function Ci(e){return e.next&&!et(e.next)&&et(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function zS(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return t?t[1]?t[1].split(/\s+/):!0:!1}function xi(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function XS(e,t,r){var p;let{node:n}=e;if(!N(n.attrs))return n.isSelfClosing?" ":"";let i=((p=n.prev)==null?void 0:p.type)==="comment"&&zS(n.prev.value),s=typeof i=="boolean"?()=>i:Array.isArray(i)?f=>i.includes(f.rawName):()=>!1,u=e.map(({node:f})=>s(f)?$(t.originalText.slice(En(f),Cn(f))):r(),"attrs"),a=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,c=t.singleAttributePerLine&&n.attrs.length>1&&!hn(n,t)?y:C,l=[E([a?" ":C,A(c,u)])];return n.firstChild&&xi(n.firstChild)||n.isSelfClosing&&Wr(n.parent)||a?l.push(n.isSelfClosing?" ":""):l.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?C:h),l}function QS(e){return e.firstChild&&xi(e.firstChild)?"":bu(e)}function Si(e,t,r){let{node:n}=e;return[Ti(n,t),XS(e,t,r),n.isSelfClosing?"":QS(n)]}function Ti(e,t){return e.prev&&Ci(e.prev)?"":[It(e,t),Fu(e)]}function It(e,t){return xi(e)?bu(e.parent):Gt(e)?$r(e.prev,t):""}function Fu(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${e.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return e.value==="html"?"<!doctype":"<!DOCTYPE";case"element":if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function bu(e){switch(gt(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return"><!--<![endif]-->";default:return">"}}function ZS(e){function t(k){return k===" "||k===" "||k===`
93
+ `||k==="\f"||k==="\r"}function r(k){var v,T=k.exec(e.substring(g));if(T)return v=T[0],g+=v.length,v}for(var n=e.length,i=/^[ \t\n\r\u000c]+/,s=/^[, \t\n\r\u000c]+/,u=/^[^ \t\n\r\u000c]+/,a=/[,]+$/,o=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,l,p,f,d,m,g=0,x=[];;){if(r(s),g>=n)return x;l=r(u),p=[],l.slice(-1)===","?(l=l.replace(a,""),F()):S()}function S(){for(r(i),f="",d="in descriptor";;){if(m=e.charAt(g),d==="in descriptor")if(t(m))f&&(p.push(f),f="",d="after descriptor");else if(m===","){g+=1,f&&p.push(f),F();return}else if(m==="(")f=f+m,d="in parens";else if(m===""){f&&p.push(f),F();return}else f=f+m;else if(d==="in parens")if(m===")")f=f+m,d="in descriptor";else if(m===""){p.push(f),F();return}else f=f+m;else if(d==="after descriptor"&&!t(m))if(m===""){F();return}else d="in descriptor",g-=1;g+=1}}function F(){var k=!1,v,T,_,b,w={},j,H,W,tt,ve;for(b=0;b<p.length;b++)j=p[b],H=j[j.length-1],W=j.substring(0,j.length-1),tt=parseInt(W,10),ve=parseFloat(W),o.test(W)&&H==="w"?((v||T)&&(k=!0),tt===0?k=!0:v=tt):c.test(W)&&H==="x"?((v||T||_)&&(k=!0),ve<0?k=!0:T=ve):o.test(W)&&H==="h"?((_||T)&&(k=!0),tt===0?k=!0:_=tt):k=!0;if(!k)w.url=l,v&&(w.w=v),T&&(w.d=T),_&&(w.h=_),x.push(w);else throw new SyntaxError("Invalid srcset descriptor found in '"+e+"' at '"+j+"'.")}}var py=ZS;function fy(e){let t=py(e),r=t.some(({w:d})=>d),n=t.some(({h:d})=>d),i=t.some(({d})=>d);if(r+n+i>1)throw new Error("Mixed descriptor in srcset is not supported");let s=r?"w":n?"h":"d",u=r?"w":n?"h":"x",a=d=>Math.max(...d),o=t.map(d=>d.url),c=a(o.map(d=>d.length)),l=t.map(d=>d[s]).map(d=>d?d.toString():""),p=l.map(d=>{let m=d.indexOf(".");return m===-1?d.length:m}),f=a(p);return A([",",C],o.map((d,m)=>{let g=[d],x=l[m];if(x){let S=c-d.length+1,F=f-p[m],k=" ".repeat(S+F);g.push(L(k," "),x+u)}return g}))}function my(e){return e.trim().split(/\s+/).join(" ")}async function dy(e,t){let{left:r,operator:n,right:i}=eT(e);return[D(await t(`function _(${r}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",n," ",await t(i,{parser:"__js_expression"})]}function eT(e){let t=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,i=e.match(t);if(!i)return;let s={};if(s.for=i[3].trim(),!s.for)return;let u=I(!1,i[1].trim(),n,""),a=u.match(r);a?(s.alias=u.replace(r,""),s.iterator1=a[1].trim(),a[2]&&(s.iterator2=a[2].trim())):s.alias=u;let o=[s.alias,s.iterator1,s.iterator2];if(!o.some((c,l)=>!c&&(l===0||o.slice(l+1).some(Boolean))))return{left:o.filter(Boolean).join(","),operator:i[2],right:s.for}}function yy(e,t){return t(`function _(${e}) {}`,{parser:"babel",__isVueBindings:!0})}function Dy(e){let t=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,n=e.trim();return t.test(n)||r.test(n)}function tT(e,t){let r=e.startSourceSpan.end.offset;e.firstChild&&xi(e.firstChild)&&(r-=bu(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&qr(e.lastChild)?n+=Au(e,t).length:Wr(e)&&(n-=$r(e.lastChild,t).length),t.originalText.slice(r,n)}var vu=tT;async function rT(e,t,r){let n=p=>new RegExp(p.join("|")).test(e.fullName),i=()=>xu(e.value),s=!1,u=(p,f)=>{let d=p.type==="NGRoot"?p.node.type==="NGMicrosyntax"&&p.node.body.length===1&&p.node.body[0].type==="NGMicrosyntaxExpression"?p.node.body[0].expression:p.node:p.type==="JsExpressionRoot"?p.node:p;d&&(d.type==="ObjectExpression"||d.type==="ArrayExpression"||f.parser==="__vue_expression"&&(d.type==="TemplateLiteral"||d.type==="StringLiteral"))&&(s=!0)},a=p=>D(p),o=(p,f=!0)=>D([E([h,p]),f?h:""]),c=p=>s?a(p):o(p),l=(p,f)=>t(p,{__onHtmlBindingRoot:u,__embeddedInHtml:!0,...f});if(e.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"))return o(fy(i()));if(e.fullName==="class"&&!r.parentParser){let p=i();if(!p.includes("{{"))return my(p)}if(e.fullName==="style"&&!r.parentParser){let p=i();if(!p.includes("{{"))return o(await l(p,{parser:"css",__isHTMLStyleAttribute:!0}))}if(r.parser==="vue"){if(e.fullName==="v-for")return dy(i(),l);if(iy(e)||sy(e,r))return yy(i(),l);let p=["^@","^v-on:"],f=["^:","^v-bind:"],d=["^v-"];if(n(p)){let m=i(),g=Dy(m)?"__js_expression":r.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return c(await l(m,{parser:g}))}if(n(f))return c(await l(i(),{parser:"__vue_expression"}));if(n(d))return c(await l(i(),{parser:"__js_expression"}))}if(r.parser==="angular"){let p=(F,k)=>l(F,{...k,trailingComma:"none"}),f=["^\\*"],d=["^\\(.+\\)$","^on-"],m=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],g=["^i18n(-.+)?$"];if(n(d))return c(await p(i(),{parser:"__ng_action"}));if(n(m))return c(await p(i(),{parser:"__ng_binding"}));if(n(g)){let F=i().trim();return o(ie(Tu(e,F)),!F.includes("@@"))}if(n(f))return c(await p(i(),{parser:"__ng_directive"}));let x=/{{(.+?)}}/s,S=i();if(x.test(S)){let F=[];for(let[k,v]of S.split(x).entries())if(k%2===0)F.push($(v));else try{F.push(D(["{{",E([C,await p(v,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),C,"}}"]))}catch{F.push("{{",$(v),"}}")}return D(F)}}return null}function nT(e,t){let{node:r}=e;switch(r.type){case"element":if(wt(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&Su(r,t)){let n=dc(r,t);return n?async(i,s)=>{let u=vu(r,t),a=/^\s*$/.test(u),o="";return a||(o=await i(pc(u),{parser:n,__embeddedInHtml:!0}),a=o===""),[It(r,t),D(Si(e,t,s)),a?"":y,o,a?"":y,hi(r,t),Lt(r,t)]}:void 0}break;case"text":if(wt(r.parent)){let n=dc(r.parent,t);if(n)return async i=>{let s=n==="markdown"?yc(r.value.replace(/^[^\S\n]*\n/,"")):r.value,u={parser:n,__embeddedInHtml:!0};if(t.parser==="html"&&n==="babel"){let a="script",{attrMap:o}=r.parent;o&&(o.type==="module"||o.type==="text/babel"&&o["data-type"]==="module")&&(a="module"),u.__babelSourceType=a}return[K,It(r,t),await i(s,u,{stripTrailingHardline:!0}),Lt(r,t)]}}else if(r.parent.type==="interpolation")return async n=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?(i.parser="__ng_interpolation",i.trailingComma="none"):t.parser==="vue"?i.parser=t.__should_parse_vue_template_with_ts?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[E([C,await n(r.value,i)]),r.parent.next&&Gt(r.parent.next)?" ":C]};break;case"attribute":if(!r.value)break;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))?[r.rawName,"=",r.value]:t.parser==="lwc"&&/^{.*}$/s.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))?[r.rawName,"=",r.value]:async n=>{let i=await rT(r,(s,u)=>n(s,{__isInHtmlAttribute:!0,__embeddedInHtml:!0,...u}),t);if(i)return[r.rawName,'="',D(nt(i,s=>typeof s=="string"?I(!1,s,'"',"&quot;"):s)),'"']};case"front-matter":return n=>pn(r,n)}}var gy=nT;function Ai(e,t,r){let n=e.node;return di(n)?[It(n,t),$(t.originalText.slice(En(n)+(n.prev&&Ci(n.prev)?Fu(n).length:0),Cn(n)-(n.next&&Gt(n.next)?$r(n,t).length:0))),Lt(n,t)]:r()}function Bu(e,t){return et(e)&&et(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Eu(t)?y:C:"":Eu(t)?y:h:Ci(e)&&(di(t)||t.firstChild||t.isSelfClosing||t.type==="element"&&t.attrs.length>0)||e.type==="element"&&e.isSelfClosing&&Gt(t)?"":!t.isLeadingSpaceSensitive||Eu(t)||Gt(t)&&e.lastChild&&qr(e.lastChild)&&e.lastChild.lastChild&&qr(e.lastChild.lastChild)?y:t.hasLeadingSpaces?C:h}function ku(e,t,r){let{node:n}=e;if(mc(n))return[K,...e.map(s=>{let u=s.node,a=u.prev?Bu(u.prev,u):"";return[a?[a,yi(u.prev)?y:""]:"",Ai(s,t,r)]},"children")];let i=n.children.map(()=>Symbol(""));return e.map((s,u)=>{let a=s.node;if(et(a)){if(a.prev&&et(a.prev)){let m=Bu(a.prev,a);if(m)return yi(a.prev)?[y,y,Ai(s,t,r)]:[m,Ai(s,t,r)]}return Ai(s,t,r)}let o=[],c=[],l=[],p=[],f=a.prev?Bu(a.prev,a):"",d=a.next?Bu(a,a.next):"";return f&&(yi(a.prev)?o.push(y,y):f===y?o.push(y):et(a.prev)?c.push(f):c.push(L("",h,{groupId:i[u-1]}))),d&&(yi(a)?et(a.next)&&p.push(y,y):d===y?et(a.next)&&p.push(y):l.push(d)),[...o,D([...c,D([Ai(s,t,r),...l],{id:i[u]})]),...p]},"children")}function hy(e,t,r){let{node:n}=e;if(hu(n,t))return[It(n,t),D(Si(e,t,r)),$(vu(n,t)),...hi(n,t),Lt(n,t)];let i=n.children.length===1&&n.firstChild.type==="interpolation"&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id"),u=l=>D([D(Si(e,t,r),{id:s}),l,hi(n,t)]),a=l=>i?Yt(l,{groupId:s}):(wt(n)||gi(n,t))&&n.parent.type==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?l:E(l),o=()=>i?L(h,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?C:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?sr(h):h,c=()=>(n.next?Gt(n.next):Wr(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":i?L(h,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?C:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`).test(n.lastChild.value)?"":h;return n.children.length===0?u(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?C:""):u([Xd(n)?K:"",a([o(),ku(e,t,r)]),c()])}var iT={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[]},Ey=iT;var sT=Be(Ey),Cy=sT;function uT(e,t,r){let{node:n}=e;switch(n.type){case"front-matter":return $(n.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),[D(ku(e,t,r)),y];case"element":case"ieConditionalComment":return hy(e,t,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Ti(n),Ei(n)];case"interpolation":return[Ti(n,t),...e.map(r,"children"),Ei(n,t)];case"text":{if(n.parent.type==="interpolation"){let s=/\n[^\S\n]*$/,u=s.test(n.value),a=u?n.value.replace(s,""):n.value;return[$(a),u?y:""]}let i=Nt([It(n,t),...Tu(n),Lt(n,t)]);return Array.isArray(i)?ie(i):i}case"docType":return[D([Ti(n,t)," ",I(!1,n.value.replace(/^html\b/i,"html"),/\s+/g," ")]),Ei(n,t)];case"comment":return[It(n,t),$(t.originalText.slice(En(n),Cn(n))),Lt(n,t)];case"attribute":{if(n.value===null)return n.rawName;let i=xu(n.value),s=Dc(i,"'"),u=Dc(i,'"'),a=s<u?"'":'"';return[n.rawName,"=",a,$(a==='"'?I(!1,i,'"',"&quot;"):I(!1,i,"'","&apos;")),a]}case"cdata":default:throw new ee(n,"HTML")}}var aT={preprocess:oy,print:uT,insertPragma:cy,massageAstNode:Rd,embed:gy,getVisitorKeys:Cy},xy=aT;var Sy=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}];var Ty="HTML",oT={bracketSameLine:xe.bracketSameLine,htmlWhitespaceSensitivity:{category:Ty,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:xe.singleAttributePerLine,vueIndentScriptAndStyle:{category:Ty,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Ay=oT;var cT={html:xy},lT=ze(Md);var Nu={};fe(Nu,{languages:()=>Vy,options:()=>Jy,parsers:()=>kT,printers:()=>BT});var Fy=void 0;function by(e){return/^\s*@(?:prettier|format)\s*$/.test(e)}function vy(e){return`# @format
100
94
 
101
- ${e}`}l();function vu(e){return e.position.start.offset}l();function gd(e,t){let{node:r}=e;if(r.type==="root"&&t.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(t.filepath))return async n=>{let i=await n(t.originalText,{parser:"json"});return i?[i,D]:void 0}}gd.getVisitorKeys=()=>[];var hd=gd;l();function Cd(e,t){let r=0,n=e.stack.length-1;for(let i=0;i<n;i++){let s=e.stack[i];_e(s)&&t(s)&&r++}return r}function _e(e,t){return e&&typeof e.type=="string"&&(!t||t.includes(e.type))}function dc(e,t,r){return t("children"in e?{...e,children:e.children.map(n=>dc(n,t,e))}:e,r)}function hn(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!1})}function xd(e,t){let r=0,n=t.length;for(let i=e.position.end.offset-1;i<n;i++){let s=t[i];if(s===`
102
- `&&r++,r===1&&/\S/.test(s))return!1;if(r===2)return!0}return!1}function Bu(e){let{node:t}=e;switch(t.type){case"tag":case"anchor":case"comment":return!1}let r=e.stack.length;for(let n=1;n<r;n++){let i=e.stack[n],s=e.stack[n-1];if(Array.isArray(s)&&typeof i=="number"&&i!==s.length-1)return!1}return!0}function ku(e){return L(e.children)?ku(P(!1,e.children,-1)):e}function Ed(e){return e.value.trim()==="prettier-ignore"}function Sd(e){let{node:t}=e;if(t.type==="documentBody"){let r=e.parent.head;return Le(r)&&Ed(P(!1,r.endComments,-1))}return $t(t)&&Ed(P(!1,t.leadingComments,-1))}function En(e){return!L(e.children)&&!XS(e)}function XS(e){return $t(e)||dr(e)||Dc(e)||ft(e)||Le(e)}function $t(e){return L(e==null?void 0:e.leadingComments)}function dr(e){return L(e==null?void 0:e.middleComments)}function Dc(e){return e==null?void 0:e.indicatorComment}function ft(e){return e==null?void 0:e.trailingComment}function Le(e){return L(e==null?void 0:e.endComments)}function Ad(e){let t=[],r;for(let n of e.split(/( +)/))n!==" "?r===" "?t.push(n):t.push((t.pop()||"")+n):r===void 0&&t.unshift(""),r=n;return r===" "&&t.push((t.pop()||"")+" "),t[0]===""&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}function Td(e,t,r){let n=t.split(`
103
- `).map((i,s,u)=>s===0&&s===u.length-1?i:s!==0&&s!==u.length-1?i.trim():s===0?i.trimEnd():i.trimStart());return r.proseWrap==="preserve"?n.map(i=>i.length===0?[]:[i]):n.map(i=>i.length===0?[]:Ad(i)).reduce((i,s,u)=>u!==0&&n[u-1].length>0&&s.length>0&&!(e==="quoteDouble"&&P(!1,P(!1,i,-1),-1).endsWith("\\"))?[...i.slice(0,-1),[...P(!1,i,-1),...s]]:[...i,s],[]).map(i=>r.proseWrap==="never"?[i.join(" ")]:i)}function Fd(e,{parentIndent:t,isLastDescendant:r,options:n}){let i=e.position.start.line===e.position.end.line?"":n.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1],s;if(e.indent===null){let o=i.match(/^(?<leadingSpace> *)[^\n\r ]/m);s=o?o.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else s=e.indent-1+t;let u=i.split(`
104
- `).map(o=>o.slice(s));if(n.proseWrap==="preserve"||e.type==="blockLiteral")return a(u.map(o=>o.length===0?[]:[o]));return a(u.map(o=>o.length===0?[]:Ad(o)).reduce((o,c,p)=>p!==0&&u[p-1].length>0&&c.length>0&&!/^\s/.test(c[0])&&!/^\s|\s$/.test(P(!1,o,-1))?[...o.slice(0,-1),[...P(!1,o,-1),...c]]:[...o,c],[]).map(o=>o.reduce((c,p)=>c.length>0&&/\s$/.test(P(!1,c,-1))?[...c.slice(0,-1),P(!1,c,-1)+" "+p]:[...c,p],[])).map(o=>n.proseWrap==="never"?[o.join(" ")]:o));function a(o){if(e.chomping==="keep")return P(!1,o,-1).length===0?o.slice(0,-1):o;let c=0;for(let p=o.length-1;p>=0&&o[p].length===0;p--)c++;return c===0?o:c>=2&&!r?o.slice(0,-(c-1)):o.slice(0,-c)}}function Ai(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}l();var QS=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([e,t])=>[e,[...t,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),bd=QS;l();function ZS(e){return dc(e,eA)}function eA(e){switch(e.type){case"document":hn(e,"head",()=>e.children[0]),hn(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":hn(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":hn(e,"key",()=>e.children[0]),hn(e,"value",()=>e.children[1]);break}return e}var vd=ZS;l();var gc=new WeakMap;function Pu(e,t){let{node:r,root:n}=e,i;return gc.has(n)?i=gc.get(n):(i=new Set,gc.set(n,i)),!i.has(r.position.end.line)&&(i.add(r.position.end.line),xd(r,t)&&!hc(e.parent))?C:""}function hc(e){return Le(e)&&!_e(e,["documentHead","documentBody","flowMapping","flowSequence"])}function be(e,t){return X(" ".repeat(e),t)}l();function wu(e,t,r){let{node:n}=e,i=n.type==="flowMapping",s=i?"{":"[",u=i?"}":"]",a=C;i&&n.children.length>0&&r.bracketSpacing&&(a=S);let o=P(!1,n.children,-1),c=o&&o.type==="flowMappingItem"&&En(o.key)&&En(o.value);return[s,be(r.tabWidth,[a,tA(e,t,r),r.trailingComma==="none"?"":I(","),Le(n)?[D,B(D,e.map(t,"endComments"))]:""]),c?"":a,u]}function tA(e,t,r){return e.map(({isLast:n,node:i,next:s})=>[t(),n?"":[",",S,i.position.start.line!==s.position.start.line?Pu(e,r.originalText):""]],"children")}l();function rA(e,t,r){var b;let{node:n,parent:i}=e,{key:s,value:u}=n,a=En(s),o=En(u);if(a&&o)return": ";let c=t("key"),p=nA(n)?" ":"";if(o)return n.type==="flowMappingItem"&&i.type==="flowMapping"?c:n.type==="mappingItem"&&Ec(s.content,r)&&!ft(s.content)&&((b=i.tag)==null?void 0:b.value)!=="tag:yaml.org,2002:set"?[c,p,":"]:["? ",be(2,c)];let f=t("value");if(a)return[": ",be(2,f)];if($t(u)||!Ai(s.content))return["? ",be(2,c),D,...e.map(()=>[t(),D],"value","leadingComments"),": ",be(2,f)];if(iA(s.content)&&!$t(s.content)&&!dr(s.content)&&!ft(s.content)&&!Le(s)&&!$t(u.content)&&!dr(u.content)&&!Le(u)&&Ec(u.content,r))return[c,p,": ",f];let m=Symbol("mappingKey"),d=g([I("? "),g(be(2,c),{id:m})]),y=[D,": ",be(2,f)],E=[p,":"];$t(u.content)||Le(u)&&u.content&&!_e(u.content,["mapping","sequence"])||i.type==="mapping"&&ft(s.content)&&Ai(u.content)||_e(u.content,["mapping","sequence"])&&u.content.tag===null&&u.content.anchor===null?E.push(D):u.content&&E.push(S),E.push(f);let T=be(r.tabWidth,E);return Ec(s.content,r)&&!$t(s.content)&&!dr(s.content)&&!Le(s)?ke([[c,T]]):ke([[d,I(y,T,{groupId:m})]])}function Ec(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(t.proseWrap==="preserve")return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes(`
105
- `);case"always":return!/[\n ]/.test(e.value);default:return!1}}function nA(e){return e.key.content&&e.key.content.type==="alias"}function iA(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}var Bd=rA;l();function sA(e,t,r){let{node:n}=e,i=Cd(e,c=>_e(c,["sequence","mapping"])),s=Bu(e),u=[n.type==="blockFolded"?">":"|"];n.indent!==null&&u.push(n.indent.toString()),n.chomping!=="clip"&&u.push(n.chomping==="keep"?"+":"-"),Dc(n)&&u.push(" ",t("indicatorComment"));let a=Fd(n,{parentIndent:i,isLastDescendant:s,options:r}),o=[];for(let[c,p]of a.entries())c===0&&o.push(D),o.push(ee(B(S,p))),c!==a.length-1?o.push(p.length===0?D:Bt(dt)):n.chomping==="keep"&&s&&o.push(rr(p.length===0?D:dt));return n.indent===null?u.push(Be(be(r.tabWidth,o))):u.push(rr(be(n.indent-1+i,o))),u}var kd=sA;var uA=Te(bd);function aA(e,t,r){let{node:n}=e,i=[];n.type!=="mappingValue"&&$t(n)&&i.push([B(D,e.map(r,"leadingComments")),D]);let{tag:s,anchor:u}=n;s&&i.push(r("tag")),s&&u&&i.push(" "),u&&i.push(r("anchor"));let a="";return _e(n,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Bu(e)&&(a=Pu(e,t.originalText)),(s||u)&&(_e(n,["sequence","mapping"])&&!dr(n)?i.push(D):i.push(" ")),dr(n)&&i.push([n.middleComments.length===1?"":D,B(D,e.map(r,"middleComments")),D]),Sd(e)?i.push(j(t.originalText.slice(n.position.start.offset,n.position.end.offset).trimEnd())):i.push(g(oA(e,t,r))),ft(n)&&!_e(n,["document","documentHead"])&&i.push(Jr([n.type==="mappingValue"&&!n.content?"":" ",e.parent.type==="mappingKey"&&e.getParentNode(2).type==="mapping"&&Ai(n)?"":K,r("trailingComment")])),hc(n)&&i.push(be(n.type==="sequenceItem"?2:0,[D,B(D,e.map(({node:o})=>[Yr(t.originalText,o,vu)?D:"",r()],"endComments"))])),i.push(a),i}function oA(e,t,r){let{node:n}=e;switch(n.type){case"root":{let i=[];e.each(({node:u,next:a,isFirst:o})=>{o||i.push(D),i.push(r()),Pd(u,a)?(i.push(D,"..."),ft(u)&&i.push(" ",r("trailingComment"))):a&&!ft(a.head)&&i.push(D,"---")},"children");let s=ku(n);return(!_e(s,["blockLiteral","blockFolded"])||s.chomping!=="keep")&&i.push(D),i}case"document":{let i=[];return lA(e,t)==="head"&&((n.head.children.length>0||n.head.endComments.length>0)&&i.push(r("head")),ft(n.head)?i.push(["---"," ",r(["head","trailingComment"])]):i.push("---")),cA(n)&&i.push(r("body")),B(D,i)}case"documentHead":return B(D,[...e.map(r,"children"),...e.map(r,"endComments")]);case"documentBody":{let{children:i,endComments:s}=n,u="";if(i.length>0&&s.length>0){let a=ku(n);_e(a,["blockFolded","blockLiteral"])?a.chomping!=="keep"&&(u=[D,D]):u=D}return[B(D,e.map(r,"children")),u,B(D,e.map(r,"endComments"))]}case"directive":return["%",B(" ",[n.name,...n.parameters])];case"comment":return["#",n.value];case"alias":return["*",n.value];case"tag":return t.originalText.slice(n.position.start.offset,n.position.end.offset);case"anchor":return["&",n.value];case"plain":return Ti(n.type,t.originalText.slice(n.position.start.offset,n.position.end.offset),t);case"quoteDouble":case"quoteSingle":{let i="'",s='"',u=t.originalText.slice(n.position.start.offset+1,n.position.end.offset-1);if(n.type==="quoteSingle"&&u.includes("\\")||n.type==="quoteDouble"&&/\\[^"]/.test(u)){let o=n.type==="quoteDouble"?s:i;return[o,Ti(n.type,u,t),o]}if(u.includes(s))return[i,Ti(n.type,n.type==="quoteDouble"?u.replace(/\\"/g,s).replace(/'/g,i.repeat(2)):u,t),i];if(u.includes(i))return[s,Ti(n.type,n.type==="quoteSingle"?u.replace(/''/g,i):u,t),s];let a=t.singleQuote?i:s;return[a,Ti(n.type,u,t),a]}case"blockFolded":case"blockLiteral":return kd(e,r,t);case"mapping":case"sequence":return B(D,e.map(r,"children"));case"sequenceItem":return["- ",be(2,n.content?r("content"):"")];case"mappingKey":case"mappingValue":return n.content?r("content"):"";case"mappingItem":case"flowMappingItem":return Bd(e,r,t);case"flowMapping":return wu(e,r,t);case"flowSequence":return wu(e,r,t);case"flowSequenceItem":return r("content");default:throw new me(n,"YAML")}}function cA(e){return e.body.children.length>0||Le(e.body)}function Pd(e,t){return ft(e)||t&&(t.head.children.length>0||Le(t.head))}function lA(e,t){let r=e.node;if(e.isFirst&&/---(?:\s|$)/.test(t.originalText.slice(vu(r),vu(r)+4))||r.head.children.length>0||Le(r.head)||ft(r.head))return"head";let n=e.next;return Pd(r,n)?!1:n?"root":!1}function Ti(e,t,r){let n=Td(e,t,r);return B(D,n.map(i=>ee(B(S,i))))}function pA(e,t){if(_e(t))switch(delete t.position,t.type){case"comment":if(dd(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote";break}}var fA={preprocess:vd,embed:hd,print:aA,massageAstNode:pA,insertPragma:Dd,getVisitorKeys:uA},wd=fA;var Id=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"]}];l();var yA={bracketSpacing:De.bracketSpacing,singleQuote:De.singleQuote,proseWrap:De.proseWrap},_d=yA;l();var Ld=void 0;var dA={yaml:wd};var _u={};fe(_u,{addDanglingComment:()=>ce,addLeadingComment:()=>Z,addTrailingComment:()=>Y,getAlignmentSize:()=>Bn,getIndentSize:()=>Mi,getMaxContinuousCount:()=>zr,getNextNonSpaceNonCommentCharacterIndex:()=>Vt,getStringWidth:()=>ve,hasNewline:()=>Q,hasNewlineInRange:()=>It,hasSpaces:()=>Oc,isNextLineEmpty:()=>Cr,isNextLineEmptyAfterIndex:()=>Er,isPreviousLineEmpty:()=>Yr,makeString:()=>Zu,skip:()=>hr,skipEverythingButNewLine:()=>Hr,skipInlineComment:()=>Gr,skipNewline:()=>Dt,skipSpaces:()=>lt,skipToLineEnd:()=>Oi,skipTrailingComment:()=>Ur,skipWhitespace:()=>Qu});l();var Lu={};fe(Lu,{builders:()=>ki,debug:()=>Li,printer:()=>_i,utils:()=>wi});l();var jd=Vr(Nd(),1),gA=Object.values(Cc);function Wr(e,t=1){return async(...r)=>{let n=r[t]||{},i=n.plugins||[];return r[t]={...n,plugins:[...gA,...Array.isArray(i)?i:Object.values(i)]},e(...r)}}var Od=Wr(br.formatWithCursor);async function Md(e,t){let{formatted:r}=await Od(e,{...t,cursorOffset:-1});return r}async function hA(e,t){return await Md(e,t)===e}var EA=Wr(Sr,0),CA={parse:Wr(br.parse),formatAST:Wr(br.formatAST),formatDoc:Wr(br.formatDoc),printToDoc:Wr(br.printToDoc),printDocToString:Wr(br.printDocToString)};return ze(xA);});
95
+ ${e}`}function wu(e){return e.position.start.offset}function By(e,t){let{node:r}=e;if(r.type==="root"&&t.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(t.filepath))return async n=>{let i=await n(t.originalText,{parser:"json"});return i?[i,y]:void 0}}By.getVisitorKeys=()=>[];var ky=By;function Tt(e,t){return typeof(e==null?void 0:e.type)=="string"&&(!t||t.includes(e.type))}function gc(e,t,r){return t("children"in e?{...e,children:e.children.map(n=>gc(n,t,e))}:e,r)}function xn(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!1})}function wy(e,t){let r=0,n=t.length;for(let i=e.position.end.offset-1;i<n;i++){let s=t[i];if(s===`
96
+ `&&r++,r===1&&/\S/.test(s))return!1;if(r===2)return!0}return!1}function _u(e){let{node:t}=e;switch(t.type){case"tag":case"anchor":case"comment":return!1}let r=e.stack.length;for(let n=1;n<r;n++){let i=e.stack[n],s=e.stack[n-1];if(Array.isArray(s)&&typeof i=="number"&&i!==s.length-1)return!1}return!0}function Lu(e){return N(e.children)?Lu(P(!1,e.children,-1)):e}function Py(e){return e.value.trim()==="prettier-ignore"}function _y(e){let{node:t}=e;if(t.type==="documentBody"){let r=e.parent.head;return Re(r)&&Py(P(!1,r.endComments,-1))}return Ht(t)&&Py(P(!1,t.leadingComments,-1))}function Sn(e){return!N(e.children)&&!pT(e)}function pT(e){return Ht(e)||Cr(e)||hc(e)||At(e)||Re(e)}function Ht(e){return N(e==null?void 0:e.leadingComments)}function Cr(e){return N(e==null?void 0:e.middleComments)}function hc(e){return e==null?void 0:e.indicatorComment}function At(e){return e==null?void 0:e.trailingComment}function Re(e){return N(e==null?void 0:e.endComments)}function Ly(e){let t=[],r;for(let n of e.split(/( +)/))n!==" "?r===" "?t.push(n):t.push((t.pop()||"")+n):r===void 0&&t.unshift(""),r=n;return r===" "&&t.push((t.pop()||"")+" "),t[0]===""&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}function Iy(e,t,r){let n=t.split(`
97
+ `).map((i,s,u)=>s===0&&s===u.length-1?i:s!==0&&s!==u.length-1?i.trim():s===0?i.trimEnd():i.trimStart());return r.proseWrap==="preserve"?n.map(i=>i.length===0?[]:[i]):n.map(i=>i.length===0?[]:Ly(i)).reduce((i,s,u)=>u!==0&&n[u-1].length>0&&s.length>0&&!(e==="quoteDouble"&&P(!1,P(!1,i,-1),-1).endsWith("\\"))?[...i.slice(0,-1),[...P(!1,i,-1),...s]]:[...i,s],[]).map(i=>r.proseWrap==="never"?[i.join(" ")]:i)}function Oy(e,{parentIndent:t,isLastDescendant:r,options:n}){let i=e.position.start.line===e.position.end.line?"":n.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1],s;if(e.indent===null){let o=i.match(/^(?<leadingSpace> *)[^\n\r ]/m);s=o?o.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else s=e.indent-1+t;let u=i.split(`
98
+ `).map(o=>o.slice(s));if(n.proseWrap==="preserve"||e.type==="blockLiteral")return a(u.map(o=>o.length===0?[]:[o]));return a(u.map(o=>o.length===0?[]:Ly(o)).reduce((o,c,l)=>l!==0&&u[l-1].length>0&&c.length>0&&!/^\s/.test(c[0])&&!/^\s|\s$/.test(P(!1,o,-1))?[...o.slice(0,-1),[...P(!1,o,-1),...c]]:[...o,c],[]).map(o=>o.reduce((c,l)=>c.length>0&&/\s$/.test(P(!1,c,-1))?[...c.slice(0,-1),P(!1,c,-1)+" "+l]:[...c,l],[])).map(o=>n.proseWrap==="never"?[o.join(" ")]:o));function a(o){if(e.chomping==="keep")return P(!1,o,-1).length===0?o.slice(0,-1):o;let c=0;for(let l=o.length-1;l>=0&&o[l].length===0;l--)c++;return c===0?o:c>=2&&!r?o.slice(0,-(c-1)):o.slice(0,-c)}}function Fi(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var fT=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([e,t])=>[e,[...t,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),Ny=fT;var mT=Be(Ny),My=mT;function dT(e){return gc(e,yT)}function yT(e){switch(e.type){case"document":xn(e,"head",()=>e.children[0]),xn(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":xn(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":xn(e,"key",()=>e.children[0]),xn(e,"value",()=>e.children[1]);break}return e}var jy=dT;var Ec=new WeakMap;function Iu(e,t){let{node:r,root:n}=e,i;return Ec.has(n)?i=Ec.get(n):(i=new Set,Ec.set(n,i)),!i.has(r.position.end.line)&&(i.add(r.position.end.line),wy(r,t)&&!Cc(e.parent))?h:""}function Cc(e){return Re(e)&&!Tt(e,["documentHead","documentBody","flowMapping","flowSequence"])}function we(e,t){return Q(" ".repeat(e),t)}function Ou(e,t,r){let{node:n}=e,i=n.type==="flowMapping",s=i?"{":"[",u=i?"}":"]",a=h;i&&n.children.length>0&&r.bracketSpacing&&(a=C);let o=P(!1,n.children,-1),c=(o==null?void 0:o.type)==="flowMappingItem"&&Sn(o.key)&&Sn(o.value);return[s,we(r.tabWidth,[a,DT(e,t,r),r.trailingComma==="none"?"":L(","),Re(n)?[y,A(y,e.map(t,"endComments"))]:""]),c?"":a,u]}function DT(e,t,r){return e.map(({isLast:n,node:i,next:s})=>[t(),n?"":[",",C,i.position.start.line!==s.position.start.line?Iu(e,r.originalText):""]],"children")}function gT(e,t,r){var S;let{node:n,parent:i}=e,{key:s,value:u}=n,a=Sn(s),o=Sn(u);if(a&&o)return": ";let c=t("key"),l=hT(n)?" ":"";if(o)return n.type==="flowMappingItem"&&i.type==="flowMapping"?c:n.type==="mappingItem"&&xc(s.content,r)&&!At(s.content)&&((S=i.tag)==null?void 0:S.value)!=="tag:yaml.org,2002:set"?[c,l,":"]:["? ",we(2,c)];let p=t("value");if(a)return[": ",we(2,p)];if(Ht(u)||!Fi(s.content))return["? ",we(2,c),y,...e.map(()=>[t(),y],"value","leadingComments"),": ",we(2,p)];if(ET(s.content)&&!Ht(s.content)&&!Cr(s.content)&&!At(s.content)&&!Re(s)&&!Ht(u.content)&&!Cr(u.content)&&!Re(u)&&xc(u.content,r))return[c,l,": ",p];let f=Symbol("mappingKey"),d=D([L("? "),D(we(2,c),{id:f})]),m=[y,": ",we(2,p)],g=[l,":"];Ht(u.content)||Re(u)&&u.content&&!Tt(u.content,["mapping","sequence"])||i.type==="mapping"&&At(s.content)&&Fi(u.content)||Tt(u.content,["mapping","sequence"])&&u.content.tag===null&&u.content.anchor===null?g.push(y):u.content&&g.push(C),g.push(p);let x=we(r.tabWidth,g);return xc(s.content,r)&&!Ht(s.content)&&!Cr(s.content)&&!Re(s)?Le([[c,x]]):Le([[d,L(m,x,{groupId:f})]])}function xc(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(t.proseWrap==="preserve")return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes(`
99
+ `);case"always":return!/[\n ]/.test(e.value);default:return!1}}function hT(e){var t;return((t=e.key.content)==null?void 0:t.type)==="alias"}function ET(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}var Ry=gT;function CT(e,t,r){let{node:n}=e,i=e.ancestors.filter(c=>c.type==="sequence"||c.type==="mapping").length,s=_u(e),u=[n.type==="blockFolded"?">":"|"];n.indent!==null&&u.push(n.indent.toString()),n.chomping!=="clip"&&u.push(n.chomping==="keep"?"+":"-"),hc(n)&&u.push(" ",t("indicatorComment"));let a=Oy(n,{parentIndent:i,isLastDescendant:s,options:r}),o=[];for(let[c,l]of a.entries())c===0&&o.push(y),o.push(ie(A(C,l))),c!==a.length-1?o.push(l.length===0?y:Ot(Bt)):n.chomping==="keep"&&s&&o.push(sr(l.length===0?y:Bt));return n.indent===null?u.push(_e(we(r.tabWidth,o))):u.push(sr(we(n.indent-1+i,o))),u}var $y=CT;function xT(e,t,r){let{node:n}=e,i=[];n.type!=="mappingValue"&&Ht(n)&&i.push([A(y,e.map(r,"leadingComments")),y]);let{tag:s,anchor:u}=n;s&&i.push(r("tag")),s&&u&&i.push(" "),u&&i.push(r("anchor"));let a="";return Tt(n,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!_u(e)&&(a=Iu(e,t.originalText)),(s||u)&&(Tt(n,["sequence","mapping"])&&!Cr(n)?i.push(y):i.push(" ")),Cr(n)&&i.push([n.middleComments.length===1?"":y,A(y,e.map(r,"middleComments")),y]),_y(e)?i.push($(t.originalText.slice(n.position.start.offset,n.position.end.offset).trimEnd())):i.push(D(ST(e,t,r))),At(n)&&!Tt(n,["document","documentHead"])&&i.push(Gr([n.type==="mappingValue"&&!n.content?"":" ",e.parent.type==="mappingKey"&&e.getParentNode(2).type==="mapping"&&Fi(n)?"":K,r("trailingComment")])),Cc(n)&&i.push(we(n.type==="sequenceItem"?2:0,[y,A(y,e.map(({node:o})=>[vr(t.originalText,wu(o))?y:"",r()],"endComments"))])),i.push(a),i}function ST(e,t,r){let{node:n}=e;switch(n.type){case"root":{let i=[];e.each(({node:u,next:a,isFirst:o})=>{o||i.push(y),i.push(r()),Wy(u,a)?(i.push(y,"..."),At(u)&&i.push(" ",r("trailingComment"))):a&&!At(a.head)&&i.push(y,"---")},"children");let s=Lu(n);return(!Tt(s,["blockLiteral","blockFolded"])||s.chomping!=="keep")&&i.push(y),i}case"document":{let i=[];return AT(e,t)==="head"&&((n.head.children.length>0||n.head.endComments.length>0)&&i.push(r("head")),At(n.head)?i.push(["---"," ",r(["head","trailingComment"])]):i.push("---")),TT(n)&&i.push(r("body")),A(y,i)}case"documentHead":return A(y,[...e.map(r,"children"),...e.map(r,"endComments")]);case"documentBody":{let{children:i,endComments:s}=n,u="";if(i.length>0&&s.length>0){let a=Lu(n);Tt(a,["blockFolded","blockLiteral"])?a.chomping!=="keep"&&(u=[y,y]):u=y}return[A(y,e.map(r,"children")),u,A(y,e.map(r,"endComments"))]}case"directive":return["%",A(" ",[n.name,...n.parameters])];case"comment":return["#",n.value];case"alias":return["*",n.value];case"tag":return t.originalText.slice(n.position.start.offset,n.position.end.offset);case"anchor":return["&",n.value];case"plain":return bi(n.type,t.originalText.slice(n.position.start.offset,n.position.end.offset),t);case"quoteDouble":case"quoteSingle":{let i="'",s='"',u=t.originalText.slice(n.position.start.offset+1,n.position.end.offset-1);if(n.type==="quoteSingle"&&u.includes("\\")||n.type==="quoteDouble"&&/\\[^"]/.test(u)){let o=n.type==="quoteDouble"?s:i;return[o,bi(n.type,u,t),o]}if(u.includes(s))return[i,bi(n.type,n.type==="quoteDouble"?I(!1,I(!1,u,'\\"',s),"'",i.repeat(2)):u,t),i];if(u.includes(i))return[s,bi(n.type,n.type==="quoteSingle"?I(!1,u,"''",i):u,t),s];let a=t.singleQuote?i:s;return[a,bi(n.type,u,t),a]}case"blockFolded":case"blockLiteral":return $y(e,r,t);case"mapping":case"sequence":return A(y,e.map(r,"children"));case"sequenceItem":return["- ",we(2,n.content?r("content"):"")];case"mappingKey":case"mappingValue":return n.content?r("content"):"";case"mappingItem":case"flowMappingItem":return Ry(e,r,t);case"flowMapping":return Ou(e,r,t);case"flowSequence":return Ou(e,r,t);case"flowSequenceItem":return r("content");default:throw new ee(n,"YAML")}}function TT(e){return e.body.children.length>0||Re(e.body)}function Wy(e,t){return At(e)||t&&(t.head.children.length>0||Re(t.head))}function AT(e,t){let r=e.node;if(e.isFirst&&/---(?:\s|$)/.test(t.originalText.slice(wu(r),wu(r)+4))||r.head.children.length>0||Re(r.head)||At(r.head))return"head";let n=e.next;return Wy(r,n)?!1:n?"root":!1}function bi(e,t,r){let n=Iy(e,t,r);return A(y,n.map(i=>ie(A(C,i))))}function FT(e,t){if(Tt(t))switch(delete t.position,t.type){case"comment":if(by(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote";break}}var bT={preprocess:jy,embed:ky,print:xT,massageAstNode:FT,insertPragma:vy,getVisitorKeys:My},qy=bT;var Vy=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"]}];var vT={bracketSpacing:xe.bracketSpacing,singleQuote:xe.singleQuote,proseWrap:xe.proseWrap},Jy=vT;var BT={yaml:qy},kT=ze(Fy);var Mu={};fe(Mu,{languages:()=>zy,printers:()=>OT});var PT={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},Gy=PT;var wT=Be(Gy),Hy=wT;function _T(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),y];case"ArrayExpression":{if(n.elements.length===0)return"[]";let i=e.map(()=>e.node===null?"null":r(),"elements");return["[",E([y,A([",",y],i)]),y,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",E([y,A([",",y],e.map(r,"properties"))]),y,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return Uy(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return Uy(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new ee(n,"JSON")}}function Uy(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var LT=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Ky(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,i]of e.elements.entries())i===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}Ky.ignoredProperties=LT;var IT={print:_T,massageAstNode:Ky,getVisitorKeys:Hy},Yy=IT;var zy=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json",".eslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}];var OT={"estree-json":Yy};var ju={};fe(ju,{addDanglingComment:()=>de,addLeadingComment:()=>Z,addTrailingComment:()=>X,getAlignmentSize:()=>Hr,getIndentSize:()=>ps,getMaxContinuousCount:()=>yn,getNextNonSpaceNonCommentCharacter:()=>ft,getNextNonSpaceNonCommentCharacterIndex:()=>jT,getStringWidth:()=>$e,hasNewline:()=>Y,hasNewlineInRange:()=>$t,hasSpaces:()=>Xy,isNextLineEmpty:()=>qT,isNextLineEmptyAfterIndex:()=>ot,isPreviousLineEmpty:()=>$T,makeString:()=>Cs,skip:()=>Kr,skipEverythingButNewLine:()=>Nn,skipInlineComment:()=>Xr,skipNewline:()=>at,skipSpaces:()=>Oe,skipToLineEnd:()=>Ki,skipTrailingComment:()=>Qr,skipWhitespace:()=>Bl});function NT(e,t,r={}){return Oe(e,r.backwards?t-1:t,r)!==t}var Xy=NT;function MT(e,t,r){return Qe(e,r(t))}function jT(e,t){return arguments.length===2||typeof t=="number"?Qe(e,t):MT(...arguments)}function RT(e,t,r){return vr(e,r(t))}function $T(e,t){return arguments.length===2||typeof t=="number"?vr(e,t):RT(...arguments)}function WT(e,t,r){return ot(e,r(t))}function qT(e,t){return arguments.length===2||typeof t=="number"?ot(e,t):WT(...arguments)}var Ru={};fe(Ru,{builders:()=>Li,debug:()=>Mi,printer:()=>Ni,utils:()=>Ii});var Qy="3.0.0-alpha.6";var VT=Object.values(Sc);function Vr(e,t=1){return async(...r)=>{let n=r[t]||{},i=n.plugins||[];return r[t]={...n,plugins:[...VT,...Array.isArray(i)?i:Object.values(i)]},e(...r)}}var Zy=Vr(ro);async function eD(e,t){let{formatted:r}=await Zy(e,{...t,cursorOffset:-1});return r}async function JT(e,t){return await eD(e,t)===e}var GT=Vr(ar,0),HT={parse:Vr(Kl),formatAST:Vr(Yl),formatDoc:Vr(zl),printToDoc:Vr(Xl),printDocToString:Vr(Ql)};return rt(UT);});