prettier 3.2.2 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -2
  3. data/README.md +23 -59
  4. data/lib/prettier.rb +7 -5
  5. data/node_modules/prettier/LICENSE +5205 -0
  6. data/node_modules/prettier/README.md +109 -0
  7. data/node_modules/prettier/{bin-prettier.js → bin/prettier.cjs} +10 -5
  8. data/node_modules/prettier/doc.d.ts +240 -0
  9. data/node_modules/prettier/doc.js +1257 -1309
  10. data/node_modules/prettier/doc.mjs +1312 -0
  11. data/node_modules/prettier/index.cjs +655 -0
  12. data/node_modules/prettier/index.d.ts +915 -0
  13. data/node_modules/prettier/index.mjs +21845 -0
  14. data/node_modules/prettier/internal/cli.mjs +6978 -0
  15. data/node_modules/prettier/internal/internal.mjs +6531 -0
  16. data/node_modules/prettier/package.json +179 -6
  17. data/node_modules/prettier/plugins/acorn.d.ts +6 -0
  18. data/node_modules/prettier/plugins/acorn.js +13 -0
  19. data/node_modules/prettier/plugins/acorn.mjs +13 -0
  20. data/node_modules/prettier/plugins/angular.d.ts +8 -0
  21. data/node_modules/prettier/plugins/angular.js +2 -0
  22. data/node_modules/prettier/plugins/angular.mjs +2 -0
  23. data/node_modules/prettier/plugins/babel.d.ts +17 -0
  24. data/node_modules/prettier/plugins/babel.js +16 -0
  25. data/node_modules/prettier/plugins/babel.mjs +16 -0
  26. data/node_modules/prettier/plugins/estree.d.ts +0 -0
  27. data/node_modules/prettier/plugins/estree.js +35 -0
  28. data/node_modules/prettier/plugins/estree.mjs +35 -0
  29. data/node_modules/prettier/plugins/flow.d.ts +5 -0
  30. data/node_modules/prettier/plugins/flow.js +21 -0
  31. data/node_modules/prettier/plugins/flow.mjs +21 -0
  32. data/node_modules/prettier/plugins/glimmer.d.ts +5 -0
  33. data/node_modules/prettier/plugins/glimmer.js +30 -0
  34. data/node_modules/prettier/plugins/glimmer.mjs +30 -0
  35. data/node_modules/prettier/plugins/graphql.d.ts +5 -0
  36. data/node_modules/prettier/plugins/graphql.js +29 -0
  37. data/node_modules/prettier/plugins/graphql.mjs +29 -0
  38. data/node_modules/prettier/plugins/html.d.ts +8 -0
  39. data/node_modules/prettier/plugins/html.js +19 -0
  40. data/node_modules/prettier/plugins/html.mjs +19 -0
  41. data/node_modules/prettier/plugins/markdown.d.ts +7 -0
  42. data/node_modules/prettier/plugins/markdown.js +59 -0
  43. data/node_modules/prettier/plugins/markdown.mjs +59 -0
  44. data/node_modules/prettier/plugins/meriyah.d.ts +5 -0
  45. data/node_modules/prettier/plugins/meriyah.js +5 -0
  46. data/node_modules/prettier/plugins/meriyah.mjs +5 -0
  47. data/node_modules/prettier/plugins/postcss.d.ts +7 -0
  48. data/node_modules/prettier/plugins/postcss.js +52 -0
  49. data/node_modules/prettier/plugins/postcss.mjs +52 -0
  50. data/node_modules/prettier/plugins/typescript.d.ts +5 -0
  51. data/node_modules/prettier/plugins/typescript.js +27 -0
  52. data/node_modules/prettier/plugins/typescript.mjs +27 -0
  53. data/node_modules/prettier/plugins/yaml.d.ts +5 -0
  54. data/node_modules/prettier/plugins/yaml.js +161 -0
  55. data/node_modules/prettier/plugins/yaml.mjs +161 -0
  56. data/node_modules/prettier/standalone.d.ts +33 -0
  57. data/node_modules/prettier/standalone.js +34 -0
  58. data/node_modules/prettier/standalone.mjs +34 -0
  59. data/package.json +15 -10
  60. data/src/plugin.js +210 -14
  61. data/src/server.rb +50 -87
  62. metadata +60 -28
  63. data/CONTRIBUTING.md +0 -185
  64. data/node_modules/prettier/cli.js +0 -15085
  65. data/node_modules/prettier/index.js +0 -37282
  66. data/node_modules/prettier/parser-angular.js +0 -2
  67. data/node_modules/prettier/parser-babel.js +0 -27
  68. data/node_modules/prettier/parser-espree.js +0 -26
  69. data/node_modules/prettier/parser-flow.js +0 -35
  70. data/node_modules/prettier/parser-glimmer.js +0 -27
  71. data/node_modules/prettier/parser-graphql.js +0 -15
  72. data/node_modules/prettier/parser-html.js +0 -36
  73. data/node_modules/prettier/parser-markdown.js +0 -76
  74. data/node_modules/prettier/parser-meriyah.js +0 -19
  75. data/node_modules/prettier/parser-postcss.js +0 -76
  76. data/node_modules/prettier/parser-typescript.js +0 -280
  77. data/node_modules/prettier/parser-yaml.js +0 -150
  78. data/node_modules/prettier/third-party.js +0 -8978
  79. data/src/getInfo.js +0 -23
  80. data/src/netcat.js +0 -13
  81. data/src/parseSync.js +0 -236
@@ -0,0 +1,34 @@
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 zu=Object.create;var et=Object.defineProperty;var Wu=Object.getOwnPropertyDescriptor;var Gu=Object.getOwnPropertyNames;var Uu=Object.getPrototypeOf,Ku=Object.prototype.hasOwnProperty;var Ot=(e,t)=>()=>(e&&(t=e(e=0)),t);var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ge=(e,t)=>{for(var r in t)et(e,r,{get:t[r],enumerable:!0})},jr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gu(t))!Ku.call(e,i)&&i!==r&&et(e,i,{get:()=>t[i],enumerable:!(n=Wu(t,i))||n.enumerable});return e};var kt=(e,t,r)=>(r=e!=null?zu(Uu(e)):{},jr(t||!e||!e.__esModule?et(r,"default",{value:e,enumerable:!0}):r,e)),Y=e=>jr(et({},"__esModule",{value:!0}),e);var Hu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var St=(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 ye=(e,t,r)=>(Hu(e,t,"access private method"),r);var Mr=E(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.default=Yr;function Yr(){}Yr.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 u=this;function o(p){return i?(setTimeout(function(){i(void 0,p)},0),!0):p}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var s=r.length,a=t.length,D=1,c=s+a;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var d=[{newPos:-1,components:[]}],l=this.extractCommon(d[0],r,t,0);if(d[0].newPos+1>=s&&l+1>=a)return o([{value:this.join(r),count:r.length}]);function F(){for(var p=-1*D;p<=D;p+=2){var m=void 0,h=d[p-1],C=d[p+1],g=(C?C.newPos:0)-p;h&&(d[p-1]=void 0);var y=h&&h.newPos+1<s,b=C&&0<=g&&g<a;if(!y&&!b){d[p]=void 0;continue}if(!y||b&&h.newPos<C.newPos?(m=Zu(C),u.pushComponent(m.components,void 0,!0)):(m=h,m.newPos++,u.pushComponent(m.components,!0,void 0)),g=u.extractCommon(m,r,t,p),m.newPos+1>=s&&g+1>=a)return o(Xu(u,m.components,r,t,u.useLongestToken));d[p]=m}D++}if(i)(function p(){setTimeout(function(){if(D>c)return i();F()||p()},0)})();else for(;D<=c;){var f=F();if(f)return f}},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 u=r.length,o=n.length,s=t.newPos,a=s-i,D=0;s+1<u&&a+1<o&&this.equals(r[s+1],n[a+1]);)s++,a++,D++;return D&&t.components.push({count:D}),t.newPos=s,a},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 Xu(e,t,r,n,i){for(var u=0,o=t.length,s=0,a=0;u<o;u++){var D=t[u];if(D.removed){if(D.value=e.join(n.slice(a,a+D.count)),a+=D.count,u&&t[u-1].added){var d=t[u-1];t[u-1]=t[u],t[u]=d}}else{if(!D.added&&i){var c=r.slice(s,s+D.count);c=c.map(function(F,f){var p=n[a+f];return p.length>F.length?p:F}),D.value=e.join(c)}else D.value=e.join(r.slice(s,s+D.count));s+=D.count,D.added||(a+=D.count)}}var l=t[o-1];return o>1&&typeof l.value=="string"&&(l.added||l.removed)&&e.equals("",l.value)&&(t[o-2].value+=l.value,t.pop()),t}function Zu(e){return{newPos:e.newPos,components:e.components.slice(0)}}});var qr=E(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.diffArrays=ti;ve.arrayDiff=void 0;var Qu=ei(Mr());function ei(e){return e&&e.__esModule?e:{default:e}}var Se=new Qu.default;ve.arrayDiff=Se;Se.tokenize=function(e){return e.slice()};Se.join=Se.removeEmpty=function(e){return e};function ti(e,t,r){return Se.diff(e,t,r)}});var ne={};ge(ne,{__assign:()=>Yt,__asyncDelegator:()=>Pi,__asyncGenerator:()=>Ni,__asyncValues:()=>Ri,__await:()=>ze,__awaiter:()=>wi,__classPrivateFieldGet:()=>Yi,__classPrivateFieldSet:()=>Mi,__createBinding:()=>ki,__decorate:()=>bi,__exportStar:()=>Si,__extends:()=>_i,__generator:()=>Oi,__importDefault:()=>ji,__importStar:()=>Li,__makeTemplateObject:()=>Ii,__metadata:()=>Bi,__param:()=>Ai,__read:()=>En,__rest:()=>xi,__spread:()=>vi,__spreadArrays:()=>Ti,__values:()=>Mt});function _i(e,t){jt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function xi(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 bi(e,t,r,n){var i=arguments.length,u=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(u=(i<3?o(u):i>3?o(t,r,u):o(t,r))||u);return i>3&&u&&Object.defineProperty(t,r,u),u}function Ai(e,t){return function(r,n){t(r,n,e)}}function Bi(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function wi(e,t,r,n){function i(u){return u instanceof r?u:new r(function(o){o(u)})}return new(r||(r=Promise))(function(u,o){function s(c){try{D(n.next(c))}catch(d){o(d)}}function a(c){try{D(n.throw(c))}catch(d){o(d)}}function D(c){c.done?u(c.value):i(c.value).then(s,a)}D((n=n.apply(e,t||[])).next())})}function Oi(e,t){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(D){return function(c){return a([D,c])}}function a(D){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(u=D[0]&2?i.return:D[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,D[1])).done)return u;switch(i=0,u&&(D=[D[0]&2,u.value]),D[0]){case 0:case 1:u=D;break;case 4:return r.label++,{value:D[1],done:!1};case 5:r.label++,i=D[1],D=[0];continue;case 7:D=r.ops.pop(),r.trys.pop();continue;default:if(u=r.trys,!(u=u.length>0&&u[u.length-1])&&(D[0]===6||D[0]===2)){r=0;continue}if(D[0]===3&&(!u||D[1]>u[0]&&D[1]<u[3])){r.label=D[1];break}if(D[0]===6&&r.label<u[1]){r.label=u[1],u=D;break}if(u&&r.label<u[2]){r.label=u[2],r.ops.push(D);break}u[2]&&r.ops.pop(),r.trys.pop();continue}D=t.call(e,r)}catch(c){D=[6,c],i=0}finally{n=u=0}if(D[0]&5)throw D[1];return{value:D[0]?D[1]:void 0,done:!0}}}function ki(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}function Si(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Mt(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 En(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return u}function vi(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(En(arguments[t]));return e}function Ti(){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 u=arguments[t],o=0,s=u.length;o<s;o++,i++)n[i]=u[o];return n}function ze(e){return this instanceof ze?(this.v=e,this):new ze(e)}function Ni(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,u=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(l){n[l]&&(i[l]=function(F){return new Promise(function(f,p){u.push([l,F,f,p])>1||s(l,F)})})}function s(l,F){try{a(n[l](F))}catch(f){d(u[0][3],f)}}function a(l){l.value instanceof ze?Promise.resolve(l.value.v).then(D,c):d(u[0][2],l)}function D(l){s("next",l)}function c(l){s("throw",l)}function d(l,F){l(F),u.shift(),u.length&&s(u[0][0],u[0][1])}}function Pi(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,u){t[i]=e[i]?function(o){return(r=!r)?{value:ze(e[i](o)),done:i==="return"}:u?u(o):o}:u}}function Ri(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 Mt=="function"?Mt(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(u){r[u]=e[u]&&function(o){return new Promise(function(s,a){o=e[u](o),i(s,a,o.done,o.value)})}}function i(u,o,s,a){Promise.resolve(a).then(function(D){u({value:D,done:s})},o)}}function Ii(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Li(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 ji(e){return e&&e.__esModule?e:{default:e}}function Yi(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function Mi(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 jt,Yt,ue=Ot(()=>{jt=function(e,t){return jt=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])},jt(e,t)};Yt=function(){return Yt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(t[u]=r[u])}return t},Yt.apply(this,arguments)}});var qt=E(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.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=>me.apiDescriptor.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${me.apiDescriptor.key(r)}: ${me.apiDescriptor.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>me.apiDescriptor.value({[e]:t})}});var Cn=E($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});var qi=(ue(),Y(ne));qi.__exportStar(qt(),$t)});var ft={};ge(ft,{default:()=>Vt});var M,Vt,We=Ot(()=>{M=e=>e;M.grey=M;M.red=M;M.bold=M;M.yellow=M;M.blue=M;M.default=M;Vt=M});var Wt=E(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});var gn=(We(),Y(ft));zt.commonDeprecatedHandler=(e,t,{descriptor:r})=>{let n=[`${gn.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${gn.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."}});var yn=E(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});var $i=(ue(),Y(ne));$i.__exportStar(Wt(),Gt)});var _n=E(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});var Ut=(We(),Y(ft));Kt.commonInvalidHandler=(e,t,r)=>[`Invalid ${Ut.default.red(r.descriptor.key(e))} value.`,`Expected ${Ut.default.blue(r.schemas[e].expected(r))},`,`but received ${Ut.default.red(r.descriptor.value(t))}.`].join(" ")});var Jt=E(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});var Vi=(ue(),Y(ne));Vi.__exportStar(_n(),Ht)});var An=E((Pa,bn)=>{"use strict";var Xt=[],xn=[];bn.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 u=0;u<n&&e.charCodeAt(u)===t.charCodeAt(u);)u++;if(n-=u,i-=u,n===0)return i;for(var o,s,a,D,c=0,d=0;c<n;)xn[u+c]=e.charCodeAt(u+c),Xt[c]=++c;for(;d<i;)for(o=t.charCodeAt(u+d),a=d++,s=d,c=0;c<n;c++)D=o===xn[u+c]?a:a+1,a=Xt[c],s=Xt[c]=a>s?D>s?s+1:D:D>a?a+1:D;return s}});var Qt=E(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});var Bn=(We(),Y(ft)),zi=An();Zt.levenUnknownHandler=(e,t,{descriptor:r,logger:n,schemas:i})=>{let u=[`Ignored unknown option ${Bn.default.yellow(r.pair({key:e,value:t}))}.`],o=Object.keys(i).sort().find(s=>zi(e,s)<3);o&&u.push(`Did you mean ${Bn.default.blue(r.key(o))}?`),n.warn(u.join(" "))}});var wn=E(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});var Wi=(ue(),Y(ne));Wi.__exportStar(Qt(),er)});var On=E(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});var tr=(ue(),Y(ne));tr.__exportStar(yn(),Ge);tr.__exportStar(Jt(),Ge);tr.__exportStar(wn(),Ge)});var ie=E(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});var Gi=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function kn(e,t){let r=new e(t),n=Object.create(r);for(let i of Gi)i in t&&(n[i]=Ui(t[i],r,pt.prototype[i].length));return n}dt.createSchema=kn;var pt=class{constructor(t){this.name=t.name}static create(t){return kn(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}};dt.Schema=pt;function Ui(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}});var Sn=E(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});var Ki=ie(),rr=class extends Ki.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}};nr.AliasSchema=rr});var vn=E(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});var Hi=ie(),ur=class extends Hi.Schema{expected(){return"anything"}validate(){return!0}};ir.AnySchema=ur});var Nn=E(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});var Ji=(ue(),Y(ne)),Xi=ie(),or=class extends Xi.Schema{constructor(t){var{valueSchema:r,name:n=r.name}=t,i=Ji.__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 u=r.normalizeValidateResult(this._valueSchema.validate(i,r),i);u!==!0&&n.push(u.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let i of t){let u=r.normalizeDeprecatedResult(this._valueSchema.deprecated(i,r),i);u!==!1&&n.push(...u.map(({value:o})=>({value:[o]})))}return n}forward(t,r){let n=[];for(let i of t){let u=r.normalizeForwardResult(this._valueSchema.forward(i,r),i);n.push(...u.map(Tn))}return n}redirect(t,r){let n=[],i=[];for(let u of t){let o=r.normalizeRedirectResult(this._valueSchema.redirect(u,r),u);"remain"in o&&n.push(o.remain),i.push(...o.redirect.map(Tn))}return n.length===0?{redirect:i}:{redirect:i,remain:n}}overlap(t,r){return t.concat(r)}};sr.ArraySchema=or;function Tn({from:e,to:t}){return{from:[e],to:t}}});var Pn=E(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});var Zi=ie(),ar=class extends Zi.Schema{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};Dr.BooleanSchema=ar});var Ft=E(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});function Qi(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}j.recordFromArray=Qi;function eo(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}j.mapFromArray=eo;function to(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}j.createAutoChecklist=to;function ro(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}j.partition=ro;function no(e){return e===Math.floor(e)}j.isInt=no;function uo(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)}j.comparePrimitive=uo;function io(e){return e===void 0?{}:e}j.normalizeDefaultResult=io;function oo(e,t){return e===!0?!0:e===!1?{value:t}:e}j.normalizeValidateResult=oo;function so(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}j.normalizeDeprecatedResult=so;function cr(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}}j.normalizeTransferResult=cr;function Rn(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>cr(r,t)):[cr(e,t)]}j.normalizeForwardResult=Rn;function ao(e,t){let r=Rn(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}}j.normalizeRedirectResult=ao});var Ln=E(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});var Do=ie(),In=Ft(),lr=class extends Do.Schema{constructor(t){super(t),this._choices=In.mapFromArray(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(u=>this._choices.get(u)).filter(u=>!u.deprecated).map(u=>u.value).sort(In.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}};fr.ChoiceSchema=lr});var Fr=E(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});var co=ie(),pr=class extends co.Schema{expected(){return"a number"}validate(t,r){return typeof t=="number"}};dr.NumberSchema=pr});var jn=E(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});var lo=Ft(),fo=Fr(),mr=class extends fo.NumberSchema{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&lo.isInt(t)}};hr.IntegerSchema=mr});var Yn=E(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});var po=ie(),Er=class extends po.Schema{expected(){return"a string"}validate(t){return typeof t=="string"}};Cr.StringSchema=Er});var Mn=E(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var ce=(ue(),Y(ne));ce.__exportStar(Sn(),Q);ce.__exportStar(vn(),Q);ce.__exportStar(Nn(),Q);ce.__exportStar(Pn(),Q);ce.__exportStar(Ln(),Q);ce.__exportStar(jn(),Q);ce.__exportStar(Fr(),Q);ce.__exportStar(Yn(),Q)});var qn=E(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});var Fo=qt(),mo=Wt(),ho=Jt(),Eo=Qt();Ae.defaultDescriptor=Fo.apiDescriptor;Ae.defaultUnknownHandler=Eo.levenUnknownHandler;Ae.defaultInvalidHandler=ho.commonInvalidHandler;Ae.defaultDeprecatedHandler=mo.commonDeprecatedHandler});var $n=E(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});var mt=qn(),q=Ft();Et.normalize=(e,t,r)=>new ht(t,r).normalize(e);var ht=class{constructor(t,r){let{logger:n=console,descriptor:i=mt.defaultDescriptor,unknown:u=mt.defaultUnknownHandler,invalid:o=mt.defaultInvalidHandler,deprecated:s=mt.defaultDeprecatedHandler}=r||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},schemas:q.recordFromArray(t,"name"),normalizeDefaultResult:q.normalizeDefaultResult,normalizeDeprecatedResult:q.normalizeDeprecatedResult,normalizeForwardResult:q.normalizeForwardResult,normalizeRedirectResult:q.normalizeRedirectResult,normalizeValidateResult:q.normalizeValidateResult},this._unknownHandler=u,this._invalidHandler=o,this._deprecatedHandler=s,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=q.createAutoChecklist()}normalize(t){let r={},n=[t],i=()=>{for(;n.length!==0;){let u=n.shift(),o=this._applyNormalization(u,r);n.push(...o)}};i();for(let u of Object.keys(this._utils.schemas)){let o=this._utils.schemas[u];if(!(u in r)){let s=q.normalizeDefaultResult(o.default(this._utils));"value"in s&&n.push({[u]:s.value})}}i();for(let u of Object.keys(this._utils.schemas)){let o=this._utils.schemas[u];u in r&&(r[u]=o.postprocess(r[u],this._utils))}return r}_applyNormalization(t,r){let n=[],[i,u]=q.partition(Object.keys(t),o=>o in this._utils.schemas);for(let o of i){let s=this._utils.schemas[o],a=s.preprocess(t[o],this._utils),D=q.normalizeValidateResult(s.validate(a,this._utils),a);if(D!==!0){let{value:f}=D,p=this._invalidHandler(o,f,this._utils);throw typeof p=="string"?new Error(p):p}let c=({from:f,to:p})=>{n.push(typeof p=="string"?{[p]:f}:{[p.key]:p.value})},d=({value:f,redirectTo:p})=>{let m=q.normalizeDeprecatedResult(s.deprecated(f,this._utils),a,!0);if(m!==!1)if(m===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,p,this._utils));else for(let{value:h}of m){let C={key:o,value:h};if(!this._hasDeprecationWarned(C)){let g=typeof p=="string"?{key:p,value:h}:p;this._utils.logger.warn(this._deprecatedHandler(C,g,this._utils))}}};q.normalizeForwardResult(s.forward(a,this._utils),a).forEach(c);let F=q.normalizeRedirectResult(s.redirect(a,this._utils),a);if(F.redirect.forEach(c),"remain"in F){let f=F.remain;r[o]=o in r?s.overlap(r[o],f,this._utils):f,d({value:f})}for(let{from:f,to:p}of F.redirect)d({value:f,redirectTo:p})}for(let o of u){let s=t[o],a=this._unknownHandler(o,s,this._utils);if(a)for(let D of Object.keys(a)){let c={[D]:a[D]};D in this._utils.schemas?n.push(c):Object.assign(r,c)}}return n}};Et.Normalizer=ht});var Vn=E(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});var Ue=(ue(),Y(ne));Ue.__exportStar(Cn(),he);Ue.__exportStar(On(),he);Ue.__exportStar(Mn(),he);Ue.__exportStar($n(),he);Ue.__exportStar(ie(),he)});var Jn={};ge(Jn,{getChalk:()=>wo,shouldHighlight:()=>Bo});var Bo,wo,Xn=Ot(()=>{We();Bo=()=>!1,wo=()=>Vt});var tu=E(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.codeFrameColumns=eu;gt.default=So;var xr=(Xn(),Y(Jn)),Zn=!1;function Oo(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var Qn=/\r\n|[\n\r\u2028\u2029]/;function ko(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:u=2,linesBelow:o=3}=r||{},s=n.line,a=n.column,D=i.line,c=i.column,d=Math.max(s-(u+1),0),l=Math.min(t.length,D+o);s===-1&&(d=0),D===-1&&(l=t.length);let F=D-s,f={};if(F)for(let p=0;p<=F;p++){let m=p+s;if(!a)f[m]=!0;else if(p===0){let h=t[m-1].length;f[m]=[a,h-a+1]}else if(p===F)f[m]=[0,c];else{let h=t[m-p].length;f[m]=[0,h]}}else a===c?a?f[s]=[a,0]:f[s]=!0:f[s]=[a,c-a];return{start:d,end:l,markerLines:f}}function eu(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,xr.shouldHighlight)(r),i=(0,xr.getChalk)(r),u=Oo(i),o=(p,m)=>n?p(m):m,s=e.split(Qn),{start:a,end:D,markerLines:c}=ko(t,s,r),d=t.start&&typeof t.start.column=="number",l=String(D).length,f=(n?(0,xr.default)(e,r):e).split(Qn,D).slice(a,D).map((p,m)=>{let h=a+1+m,g=` ${` ${h}`.slice(-l)} |`,y=c[h],b=!c[h+1];if(y){let se="";if(Array.isArray(y)){let G=p.slice(0,Math.max(y[0]-1,0)).replace(/[^\t]/g," "),ae=y[1]||1;se=[`
2
+ `,o(u.gutter,g.replace(/\d/g," "))," ",G,o(u.marker,"^").repeat(ae)].join(""),b&&r.message&&(se+=" "+o(u.message,r.message))}return[o(u.marker,">"),o(u.gutter,g),p.length>0?` ${p}`:"",se].join("")}else return` ${o(u.gutter,g)}${p.length>0?` ${p}`:""}`}).join(`
3
+ `);return r.message&&!d&&(f=`${" ".repeat(l+1)}${r.message}
4
+ ${f}`),n?i.reset(f):f}function So(e,t,r,n={}){if(!Zn){Zn=!0;let u="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let o=new Error(u);o.name="DeprecationWarning",console.warn(new Error(u))}}return r=Math.max(r,0),eu(e,{start:{column:r,line:t}},n)}});var xs={};ge(xs,{__debug:()=>_s,check:()=>gs,doc:()=>wt,format:()=>Vu,formatWithCursor:()=>$u,getSupportInfo:()=>ys,util:()=>Bt,version:()=>qu});var Ju=(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)},De=Ju;var Bu=kt(qr(),1);var U="string",V="array",K="cursor",v="indent",T="align",N="trim",A="group",w="fill",B="if-break",P="indent-if-break",R="line-suffix",I="line-suffix-boundary",x="line",k="label",O="break-parent",tt=new Set([K,v,T,N,A,w,B,P,R,I,x,k,O]);function ri(e){if(typeof e=="string")return U;if(Array.isArray(e))return V;if(!e)return;let{type:t}=e;if(tt.has(t))return t}var H=ri;var ni=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function ui(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
5
+ Expected it to be 'string' or 'object'.`;if(H(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ni([...tt].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
6
+ Expected it to be ${n}.`}var Tt=class extends Error{name="InvalidDocError";constructor(t){super(ui(t)),this.doc=t}},te=Tt;var $r={};function ii(e,t,r,n){let i=[e];for(;i.length>0;){let u=i.pop();if(u===$r){r(i.pop());continue}r&&i.push(u,$r);let o=H(u);if(!o)throw new te(u);if((t==null?void 0:t(u))!==!1)switch(o){case V:case w:{let s=o===V?u:u.parts;for(let a=s.length,D=a-1;D>=0;--D)i.push(s[D]);break}case B:i.push(u.flatContents,u.breakContents);break;case A:if(n&&u.expandedStates)for(let s=u.expandedStates.length,a=s-1;a>=0;--a)i.push(u.expandedStates[a]);else i.push(u.contents);break;case T:case v:case P:case k:case R:i.push(u.contents);break;case U:case K:case N:case I:case x:case O:break;default:throw new te(u)}}}var Te=ii;var Vr=()=>{},J=Vr,rt=Vr;function Fe(e){return J(e),{type:v,contents:e}}function de(e,t){return J(t),{type:T,contents:t,n:e}}function Nt(e,t={}){return J(e),rt(t.expandedStates,!0),{type:A,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function zr(e){return de(Number.NEGATIVE_INFINITY,e)}function Wr(e){return de({type:"root"},e)}function Gr(e){return de(-1,e)}function Ur(e,t){return Nt(e[0],{...t,expandedStates:e})}function nt(e){return rt(e),{type:w,parts:e}}function Kr(e,t="",r={}){return J(e),t!==""&&J(t),{type:B,breakContents:e,flatContents:t,groupId:r.groupId}}function Hr(e,t){return J(e),{type:P,contents:e,groupId:t.groupId,negate:t.negate}}function Ne(e){return J(e),{type:R,contents:e}}var Jr={type:I},_e={type:O},Xr={type:N},Pe={type:x,hard:!0},Pt={type:x,hard:!0,literal:!0},ut={type:x},Zr={type:x,soft:!0},X=[Pe,_e],it=[Pt,_e],Re={type:K};function Ie(e,t){J(e),rt(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function ot(e,t,r){J(e);let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=Fe(n);n=de(t%r,n),n=de(Number.NEGATIVE_INFINITY,n)}return n}function Qr(e,t){return J(t),e?{type:k,label:e,contents:t}:t}var oi=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},_=oi;function en(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
7
+ `?"crlf":"cr":"lf"}function Le(e){switch(e){case"cr":return"\r";case"crlf":return`\r
8
+ `;default:return`
9
+ `}}function Rt(e,t){let r;switch(t){case`
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 tn(e){return De(!1,e,/\r\n?/g,`
12
+ `)}var rn=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\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]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var nn={eastAsianWidth(e){var t=e.charCodeAt(0),r=e.length==2?e.charCodeAt(1):0,n=t;return 55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t&=1023,r&=1023,n=t<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":"N"}};var si=/[^\x20-\x7F]/;function ai(e){if(!e)return 0;if(!si.test(e))return e.length;e=e.replace(rn()," ");let t=0;for(let r of e){let n=r.codePointAt(0);if(n<=31||n>=127&&n<=159||n>=768&&n<=879)continue;let i=nn.eastAsianWidth(r);t+=i==="F"||i==="W"?2:1}return t}var je=ai;var sn=e=>{if(Array.isArray(e))return e;if(e.type!==w)throw new Error(`Expect doc to be 'array' or '${w}'.`);return e.parts};function Me(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(u){if(r.has(u))return r.get(u);let o=i(u);return r.set(u,o),o}function i(u){switch(H(u)){case V:return t(u.map(n));case w:return t({...u,parts:u.parts.map(n)});case B:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case A:{let{expandedStates:o,contents:s}=u;return o?(o=o.map(n),s=o[0]):s=n(s),t({...u,contents:s,expandedStates:o})}case T:case v:case P:case k:case R:return t({...u,contents:n(u.contents)});case U:case K:case N:case I:case x:case O:return t(u);default:throw new te(u)}}}function st(e,t,r){let n=r,i=!1;function u(o){if(i)return!1;let s=t(o);s!==void 0&&(i=!0,n=s)}return Te(e,u),n}function Di(e){if(e.type===A&&e.break||e.type===x&&e.hard||e.type===O)return!0}function an(e){return st(e,Di,!1)}function un(e){if(e.length>0){let t=_(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Dn(e){let t=new Set,r=[];function n(u){if(u.type===O&&un(r),u.type===A){if(r.push(u),t.has(u))return!1;t.add(u)}}function i(u){u.type===A&&r.pop().break&&un(r)}Te(e,n,i,!0)}function ci(e){return e.type===x&&!e.hard?e.soft?"":" ":e.type===B?e.flatContents:e}function cn(e){return Me(e,ci)}function on(e){for(e=[...e];e.length>=2&&_(!1,e,-2).type===x&&_(!1,e,-1).type===O;)e.length-=2;if(e.length>0){let t=Ye(_(!1,e,-1));e[e.length-1]=t}return e}function Ye(e){switch(H(e)){case T:case v:case P:case A:case R:case k:{let t=Ye(e.contents);return{...e,contents:t}}case B:return{...e,breakContents:Ye(e.breakContents),flatContents:Ye(e.flatContents)};case w:return{...e,parts:on(e.parts)};case V:return on(e);case U:return e.replace(/[\n\r]*$/,"");case K:case N:case I:case x:case O:break;default:throw new te(e)}return e}function at(e){return Ye(fi(e))}function li(e){switch(H(e)){case w:if(e.parts.every(t=>t===""))return"";break;case A:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===A&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case T:case v:case P:case R:if(!e.contents)return"";break;case B:if(!e.flatContents&&!e.breakContents)return"";break;case V:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof _(!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 U:case K:case N:case I:case x:case k:case O:break;default:throw new te(e)}return e}function fi(e){return Me(e,t=>li(t))}function ln(e,t=it){return Me(e,r=>typeof r=="string"?Ie(t,r.split(`
13
+ `)):r)}function pi(e){if(e.type===x)return!0}function fn(e){return st(e,pi,!1)}function Dt(e,t){return e.type===k?{...e,contents:t(e.contents)}:t(e)}var L=Symbol("MODE_BREAK"),Z=Symbol("MODE_FLAT"),qe=Symbol("cursor");function pn(){return{value:"",length:0,queue:[]}}function di(e,t){return It(e,{type:"indent"},t)}function Fi(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||pn():t<0?It(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:It(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function It(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",u=0,o=0,s=0;for(let f of n)switch(f.type){case"indent":c(),r.useTabs?a(1):D(r.tabWidth);break;case"stringAlign":c(),i+=f.n,u+=f.n.length;break;case"numberAlign":o+=1,s+=f.n;break;default:throw new Error(`Unexpected type '${f.type}'`)}return l(),{...e,value:i,length:u,queue:n};function a(f){i+=" ".repeat(f),u+=r.tabWidth*f}function D(f){i+=" ".repeat(f),u+=f}function c(){r.useTabs?d():l()}function d(){o>0&&a(o),F()}function l(){s>0&&D(s),F()}function F(){o=0,s=0}}function Lt(e){let t=0,r=0,n=e.length;e:for(;n--;){let i=e[n];if(i===qe){r++;continue}for(let u=i.length-1;u>=0;u--){let o=i[u];if(o===" "||o===" ")t++;else{e[n]=i.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(qe);return t}function ct(e,t,r,n,i,u){if(r===Number.POSITIVE_INFINITY)return!0;let o=t.length,s=[e],a=[];for(;r>=0;){if(s.length===0){if(o===0)return!0;s.push(t[--o]);continue}let{mode:D,doc:c}=s.pop();switch(H(c)){case U:a.push(c),r-=je(c);break;case V:case w:{let d=sn(c);for(let l=d.length-1;l>=0;l--)s.push({mode:D,doc:d[l]});break}case v:case T:case P:case k:s.push({mode:D,doc:c.contents});break;case N:r+=Lt(a);break;case A:{if(u&&c.break)return!1;let d=c.break?L:D,l=c.expandedStates&&d===L?_(!1,c.expandedStates,-1):c.contents;s.push({mode:d,doc:l});break}case B:{let l=(c.groupId?i[c.groupId]||Z:D)===L?c.breakContents:c.flatContents;l&&s.push({mode:D,doc:l});break}case x:if(D===L||c.hard)return!0;c.soft||(a.push(" "),r--);break;case R:n=!0;break;case I:if(n)return!1;break}}return!1}function xe(e,t){let r={},n=t.printWidth,i=Le(t.endOfLine),u=0,o=[{ind:pn(),mode:L,doc:e}],s=[],a=!1,D=[],c=0;for(Dn(e);o.length>0;){let{ind:l,mode:F,doc:f}=o.pop();switch(H(f)){case U:{let p=i!==`
14
+ `?De(!1,f,`
15
+ `,i):f;s.push(p),o.length>0&&(u+=je(p));break}case V:for(let p=f.length-1;p>=0;p--)o.push({ind:l,mode:F,doc:f[p]});break;case K:if(c>=2)throw new Error("There are too many 'cursor' in doc.");s.push(qe),c++;break;case v:o.push({ind:di(l,t),mode:F,doc:f.contents});break;case T:o.push({ind:Fi(l,f.n,t),mode:F,doc:f.contents});break;case N:u-=Lt(s);break;case A:switch(F){case Z:if(!a){o.push({ind:l,mode:f.break?L:Z,doc:f.contents});break}case L:{a=!1;let p={ind:l,mode:Z,doc:f.contents},m=n-u,h=D.length>0;if(!f.break&&ct(p,o,m,h,r))o.push(p);else if(f.expandedStates){let C=_(!1,f.expandedStates,-1);if(f.break){o.push({ind:l,mode:L,doc:C});break}else for(let g=1;g<f.expandedStates.length+1;g++)if(g>=f.expandedStates.length){o.push({ind:l,mode:L,doc:C});break}else{let y=f.expandedStates[g],b={ind:l,mode:Z,doc:y};if(ct(b,o,m,h,r)){o.push(b);break}}}else o.push({ind:l,mode:L,doc:f.contents});break}}f.id&&(r[f.id]=_(!1,o,-1).mode);break;case w:{let p=n-u,{parts:m}=f;if(m.length===0)break;let[h,C]=m,g={ind:l,mode:Z,doc:h},y={ind:l,mode:L,doc:h},b=ct(g,[],p,D.length>0,r,!0);if(m.length===1){b?o.push(g):o.push(y);break}let se={ind:l,mode:Z,doc:C},G={ind:l,mode:L,doc:C};if(m.length===2){b?o.push(se,g):o.push(G,y);break}m.splice(0,2);let ae={ind:l,mode:F,doc:nt(m)},Lr=m[0];ct({ind:l,mode:Z,doc:[h,C,Lr]},[],p,D.length>0,r,!0)?o.push(ae,se,g):b?o.push(ae,G,g):o.push(ae,G,y);break}case B:case P:{let p=f.groupId?r[f.groupId]:F;if(p===L){let m=f.type===B?f.breakContents:f.negate?f.contents:Fe(f.contents);m&&o.push({ind:l,mode:F,doc:m})}if(p===Z){let m=f.type===B?f.flatContents:f.negate?Fe(f.contents):f.contents;m&&o.push({ind:l,mode:F,doc:m})}break}case R:D.push({ind:l,mode:F,doc:f.contents});break;case I:D.length>0&&o.push({ind:l,mode:F,doc:Pe});break;case x:switch(F){case Z:if(f.hard)a=!0;else{f.soft||(s.push(" "),u+=1);break}case L:if(D.length>0){o.push({ind:l,mode:F,doc:f},...D.reverse()),D.length=0;break}f.literal?l.root?(s.push(i,l.root.value),u=l.root.length):(s.push(i),u=0):(u-=Lt(s),s.push(i+l.value),u=l.length);break}break;case k:o.push({ind:l,mode:F,doc:f.contents});break;case O:break;default:throw new te(f)}o.length===0&&D.length>0&&(o.push(...D.reverse()),D.length=0)}let d=s.indexOf(qe);if(d!==-1){let l=s.indexOf(qe,d+1),F=s.slice(0,d).join(""),f=s.slice(d+1,l).join(""),p=s.slice(l+1).join("");return{formatted:F+f+p,cursorNodeStart:F.length,cursorNodeText:f}}return{formatted:s.join("")}}function re(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...re(n));else{let i=re(n);i!==""&&r.push(i)}return r}return e.type===B?{...e,breakContents:re(e.breakContents),flatContents:re(e.flatContents)}:e.type===A?{...e,contents:re(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(re)}:e.type===w?{type:"fill",parts:e.parts.map(re)}:e.contents?{...e,contents:re(e.contents)}:e}function dn(e){let t=Object.create(null),r=new Set;return n(re(e));function n(u,o,s){var a,D;if(typeof u=="string")return JSON.stringify(u);if(Array.isArray(u)){let c=u.map(n).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(u.type===x){let c=((a=s==null?void 0:s[o+1])==null?void 0:a.type)===O;return u.literal?c?"literalline":"literallineWithoutBreakParent":u.hard?c?"hardline":"hardlineWithoutBreakParent":u.soft?"softline":"line"}if(u.type===O)return((D=s==null?void 0:s[o-1])==null?void 0:D.type)===x&&s[o-1].hard?void 0:"breakParent";if(u.type===N)return"trim";if(u.type===v)return"indent("+n(u.contents)+")";if(u.type===T)return u.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(u.contents)+")":u.n<0?"dedent("+n(u.contents)+")":u.n.type==="root"?"markAsRoot("+n(u.contents)+")":"align("+JSON.stringify(u.n)+", "+n(u.contents)+")";if(u.type===B)return"ifBreak("+n(u.breakContents)+(u.flatContents?", "+n(u.flatContents):"")+(u.groupId?(u.flatContents?"":', ""')+`, { groupId: ${i(u.groupId)} }`:"")+")";if(u.type===P){let c=[];u.negate&&c.push("negate: true"),u.groupId&&c.push(`groupId: ${i(u.groupId)}`);let d=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(u.contents)}${d})`}if(u.type===A){let c=[];u.break&&u.break!=="propagated"&&c.push("shouldBreak: true"),u.id&&c.push(`id: ${i(u.id)}`);let d=c.length>0?`, { ${c.join(", ")} }`:"";return u.expandedStates?`conditionalGroup([${u.expandedStates.map(l=>n(l)).join(",")}]${d})`:`group(${n(u.contents)}${d})`}if(u.type===w)return`fill([${u.parts.map(c=>n(c)).join(", ")}])`;if(u.type===R)return"lineSuffix("+n(u.contents)+")";if(u.type===I)return"lineSuffixBoundary";if(u.type===k)return`label(${JSON.stringify(u.label)}, ${n(u.contents)})`;throw new Error("Unknown doc type "+u.type)}function i(u){if(typeof u!="symbol")return JSON.stringify(String(u));if(u in t)return t[u];let o=u.description||"symbol";for(let s=0;;s++){let a=o+(s>0?` #${s}`:"");if(!r.has(a))return r.add(a),t[u]=`Symbol.for(${JSON.stringify(a)})`}}}function mi(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 be=mi;var $e=class extends Error{name="ConfigError"},Ve=class extends Error{name="UndefinedParserError"};var Fn={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.
16
+ 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
17
+ (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"},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).
18
+ The range will extend forwards to the end of the selected statement.
19
+ 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.
20
+ The range will extend backwards to the start of the first line containing the selected statement.
21
+ 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
22
+ 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 lt({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(i=>i.languages??[]),n=[];for(let i of Ei(Object.assign({},...e.map(({options:u})=>u),Fn)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(u=>!u.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...hi(i.choices,r,e)])),i.pluginDefaults=Object.fromEntries(e.filter(u=>{var o;return((o=u.defaultOptions)==null?void 0:o[i.name])!==void 0}).map(u=>[u.name,u.defaultOptions[i.name]])),n.push(i));return{languages:r,options:n}}function*hi(e,t,r){let n=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let u of i.parsers)if(!n.has(u)){n.add(u);let o=r.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,u)),s=i.name;o!=null&&o.name&&(s+=` (plugin: ${o.name})`),yield{value:u,description:s}}}}function Ei(e){let t=[];for(let[r,n]of Object.entries(e)){let i={name:r,...n};Array.isArray(i.default)&&(i.default=_(!1,i.default,-1).value),t.push(i)}return t}var Ci=e=>e.split(/[/\\]/).pop();function mn(e,t){if(!t)return;let r=Ci(t).toLowerCase();return e.find(n=>{var i,u;return((i=n.extensions)==null?void 0:i.some(o=>r.endsWith(o)))||((u=n.filenames)==null?void 0:u.some(o=>o.toLowerCase()===r))})}function gi(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function yi(e,t){let r=e.plugins.flatMap(i=>i.languages??[]),n=gi(r,t.language)??mn(r,t.physicalFile)??mn(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var hn=yi;var z=kt(Vn(),1),gr;function Co(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:u,descriptor:o}={}){if(n){if(!u)throw new Error("'FlagSchema' option is required.");if(!o)throw new Error("'descriptor' option is required.")}else o=z.default.apiDescriptor;let s=i?Array.isArray(i)?(l,F)=>i.includes(l)?{[l]:F}:void 0:(l,F)=>({[l]:F}):(l,F,f)=>{let{_:p,...m}=f.schemas;return z.default.levenUnknownHandler(l,F,{...f,schemas:m})},a=go(t,{isCLI:n,FlagSchema:u}),D=new z.default.Normalizer(a,{logger:r,unknown:s,descriptor:o}),c=r!==!1;c&&gr&&(D._hasDeprecationWarned=gr);let d=D.normalize(e);return c&&(gr=D._hasDeprecationWarned),d}function go(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(z.default.AnySchema.create({name:"_"}));for(let i of e)n.push(yo(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(z.default.AliasSchema.create({name:i.alias,sourceName:i.name}));return n}function yo(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e,u={name:i},o,s={};switch(e.type){case"int":o=z.default.IntegerSchema,t&&(u.preprocess=Number);break;case"string":o=z.default.StringSchema;break;case"choice":o=z.default.ChoiceSchema,u.choices=e.choices.map(a=>a!=null&&a.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":o=z.default.BooleanSchema;break;case"flag":o=n,u.flags=r.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;case"path":o=z.default.StringSchema;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?u.validate=(a,D,c)=>e.exception(a)||D.validate(a,c):u.validate=(a,D,c)=>a===void 0||D.validate(a,c),e.redirect&&(s.redirect=a=>a?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let a=u.preprocess||(D=>D);u.preprocess=(D,c,d)=>c.preprocess(a(Array.isArray(D)?_(!1,D,-1):D),d)}return e.array?z.default.ArraySchema.create({...t?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...s,valueSchema:o.create(u)}):o.create({...u,...s})}var zn=Co;function yr(e,t){if(!t)throw new Error("parserName is required.");for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t))return i}let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new $e(r)}function Wn(e,t){if(!t)throw new Error("astFormat is required.");for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t))return i}let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new $e(r)}function Ct({plugins:e,parser:t}){let r=yr(e,t);return _r(r,t)}function _r(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function Gn(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var Un={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function _o(e,t={}){var d;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=hn(r,{physicalFile:r.filepath}),!r.parser)throw new Ve(`No parser could be inferred for file "${r.filepath}".`)}else throw new Ve("No parser and no file path given, couldn't infer a parser.");let n=lt({plugins:e.plugins,showDeprecated:!0}).options,i={...Un,...Object.fromEntries(n.filter(l=>l.default!==void 0).map(l=>[l.name,l.default]))},u=yr(r.plugins,r.parser),o=await _r(u,r.parser);r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let s=(d=u.printers)!=null&&d[o.astFormat]?u:Wn(r.plugins,o.astFormat),a=await Gn(s,o.astFormat);r.printer=a;let D=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,l])=>l!==void 0)):{},c={...i,...D};for(let[l,F]of Object.entries(c))(r[l]===null||r[l]===void 0)&&(r[l]=F);return r.parser==="json"&&(r.trailingComma="none"),zn(r,n,{passThrough:Object.keys(Un),...t})}var le=_o;var Kn=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),xo=e=>Object.keys(e).filter(t=>!Kn.has(t));function bo(e){return e?t=>e(t,Kn):xo}var ee=bo;function Ao(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let i=ee(n),u=r.ignoredProperties??new Set;return o(e);function o(s,a){if(!(s!==null&&typeof s=="object"))return s;if(Array.isArray(s))return s.map(l=>o(l,a)).filter(Boolean);let D={},c=new Set(i(s));for(let l in s)!Object.prototype.hasOwnProperty.call(s,l)||u.has(l)||(c.has(l)?D[l]=o(s[l],s):D[l]=s[l]);let d=r(s,D,a);if(d!==null)return d??D}}var Hn=Ao;var ru=kt(tu(),1);async function vo(e,t){let r=await Ct(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let i;try{i=await r.parse(n,t,t)}catch(u){To(u,e)}return{text:n,ast:i}}function To(e,t){let{loc:r}=e;if(r){let n=(0,ru.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=`
23
+ `+n,e.codeFrame=n,e}throw e}var Ee=vo;var Ke,Ar,Be,yt,br=class{constructor(t){St(this,Ke);St(this,Be);this.stack=[t]}get key(){let{stack:t,siblings:r}=this;return _(!1,t,r===null?-2:-4)??null}get index(){return this.siblings===null?null:_(!1,this.stack,-2)}get node(){return _(!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=_(!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[...ye(this,Be,yt).call(this)]}getName(){let{stack:t}=this,{length:r}=t;return r>1?_(!1,t,-2):null}getValue(){return _(!1,this.stack,-1)}getNode(t=0){let r=ye(this,Ke,Ar).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,u=_(!1,n,-1);for(let o of r)u=u[o],n.push(o,u);try{return t(this)}finally{n.length=i}}callParent(t,r=0){let n=ye(this,Ke,Ar).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,u=_(!1,n,-1);for(let o of r)u=u[o],n.push(o,u);try{for(let o=0;o<u.length;++o)n.push(o,u[o]),t(this,o,u),n.length-=2}finally{n.length=i}}map(t,...r){let n=[];return this.each((i,u,o)=>{n[u]=t(i,u,o)},...r),n}match(...t){let r=this.stack.length-1,n=null,i=this.stack[r--];for(let u of t){if(i===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[r--],i=this.stack[r--]),u&&!u(i,n,o))return!1;n=this.stack[r--],i=this.stack[r--]}return!0}findAncestor(t){for(let r of ye(this,Be,yt).call(this))if(t(r))return r}hasAncestor(t){for(let r of ye(this,Be,yt).call(this))if(t(r))return!0;return!1}};Ke=new WeakSet,Ar=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},Be=new WeakSet,yt=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 nu=br;var He=()=>{};He.ok=He;He.strictEqual=He;var Je=He;function we(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=t,o=r;for(;o>=0&&o<u;){let s=t.charAt(o);if(e instanceof RegExp){if(!e.test(s))return o}else if(!e.includes(s))return o;i?o--:o++}return o===-1||o===u?o:!1}}var uu=we(/\s/),S=we(" "),_t=we(",; "),xt=we(/[^\n\r]/);function No(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===`
24
+ `)return t-2;if(i===`
25
+ `||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
26
+ `)return t+2;if(i===`
27
+ `||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var $=No;function Po(e,t,r={}){let n=S(e,r.backwards?t-1:t,r),i=$(e,n,r);return n!==i}var W=Po;function Ro(e){return Array.isArray(e)&&e.length>0}var Br=Ro;function Io(e){return e!==null&&typeof e=="object"}var iu=Io;function*wr(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=u=>iu(u)&&n(u);for(let u of r(e)){let o=e[u];if(Array.isArray(o))for(let s of o)i(s)&&(yield s);else i(o)&&(yield o)}}function*ou(e,t){let r=[e];for(let n=0;n<r.length;n++){let i=r[n];for(let u of wr(i,t))yield u,r.push(u)}}function Lo(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 Or(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Lo(e)}function fe(e,t){t.leading=!0,t.trailing=!1,Or(e,t)}function oe(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Or(e,t)}function pe(e,t){t.leading=!1,t.trailing=!0,Or(e,t)}var kr=new WeakMap;function bt(e,t){if(kr.has(e))return kr.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:i},locStart:u,locEnd:o}=t;if(!n)return[];let s=((r==null?void 0:r(e,t))??[...wr(e,{getVisitorKeys:ee(i)})]).flatMap(a=>n(a)?[a]:bt(a,t));return s.sort((a,D)=>u(a)-u(D)||o(a)-o(D)),kr.set(e,s),s}function au(e,t,r,n){let{locStart:i,locEnd:u}=r,o=i(t),s=u(t),a=bt(e,r),D,c,d=0,l=a.length;for(;d<l;){let F=d+l>>1,f=a[F],p=i(f),m=u(f);if(p<=o&&s<=m)return au(f,t,r,f);if(m<=o){D=f,d=F+1;continue}if(s<=p){c=f,l=F;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:F}=n,f=vr(F,t,r);D&&vr(F,D,r)!==f&&(D=null),c&&vr(F,c,r)!==f&&(c=null)}return{enclosingNode:n,precedingNode:D,followingNode:c}}var Sr=()=>!1;function Du(e,t){let{comments:r}=e;if(delete e.comments,!Br(r)||!t.printer.canAttachComment)return;let n=[],{locStart:i,locEnd:u,printer:{experimentalFeatures:{avoidAstMutation:o=!1}={},handleComments:s={}},originalText:a}=t,{ownLine:D=Sr,endOfLine:c=Sr,remaining:d=Sr}=s,l=r.map((F,f)=>({...au(e,F,t),comment:F,text:a,options:t,ast:e,isLastComment:r.length-1===f}));for(let[F,f]of l.entries()){let{comment:p,precedingNode:m,enclosingNode:h,followingNode:C,text:g,options:y,ast:b,isLastComment:se}=f;if(y.parser==="json"||y.parser==="json5"||y.parser==="__js_expression"||y.parser==="__ts_expression"||y.parser==="__vue_expression"||y.parser==="__vue_ts_expression"){if(i(p)-i(b)<=0){fe(b,p);continue}if(u(p)-u(b)>=0){pe(b,p);continue}}let G;if(o?G=[f]:(p.enclosingNode=h,p.precedingNode=m,p.followingNode=C,G=[p,g,y,b,se]),jo(g,y,l,F))p.placement="ownLine",D(...G)||(C?fe(C,p):m?pe(m,p):h?oe(h,p):oe(b,p));else if(Yo(g,y,l,F))p.placement="endOfLine",c(...G)||(m?pe(m,p):C?fe(C,p):h?oe(h,p):oe(b,p));else if(p.placement="remaining",!d(...G))if(m&&C){let ae=n.length;ae>0&&n[ae-1].followingNode!==C&&su(n,y),n.push(f)}else m?pe(m,p):C?fe(C,p):h?oe(h,p):oe(b,p)}if(su(n,t),!o)for(let F of r)delete F.precedingNode,delete F.enclosingNode,delete F.followingNode}var cu=e=>!/[\S\n\u2028\u2029]/.test(e);function jo(e,t,r,n){let{comment:i,precedingNode:u}=r[n],{locStart:o,locEnd:s}=t,a=o(i);if(u)for(let D=n-1;D>=0;D--){let{comment:c,precedingNode:d}=r[D];if(d!==u||!cu(e.slice(s(c),a)))break;a=o(c)}return W(e,a,{backwards:!0})}function Yo(e,t,r,n){let{comment:i,followingNode:u}=r[n],{locStart:o,locEnd:s}=t,a=s(i);if(u)for(let D=n+1;D<r.length;D++){let{comment:c,followingNode:d}=r[D];if(d!==u||!cu(e.slice(a,o(c))))break;a=s(c)}return W(e,a)}function su(e,t){var s,a;let r=e.length;if(r===0)return;let{precedingNode:n,followingNode:i}=e[0],u=t.locStart(i),o;for(o=r;o>0;--o){let{comment:D,precedingNode:c,followingNode:d}=e[o-1];Je.strictEqual(c,n),Je.strictEqual(d,i);let l=t.originalText.slice(t.locEnd(D),u);if(((a=(s=t.printer).isGap)==null?void 0:a.call(s,l,t))??/^[\s(]*$/.test(l))u=t.locStart(D);else break}for(let[D,{comment:c}]of e.entries())D<o?pe(n,c):fe(i,c);for(let D of[n,i])D.comments&&D.comments.length>1&&D.comments.sort((c,d)=>t.locStart(c)-t.locStart(d));e.length=0}function vr(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 Mo(e,t){let r=t-1;r=S(e,r,{backwards:!0}),r=$(e,r,{backwards:!0}),r=S(e,r,{backwards:!0});let n=$(e,r,{backwards:!0});return r!==n}var Xe=Mo;function lu(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function qo(e,t){var c;let r=e.node,n=[lu(e,t)],{printer:i,originalText:u,locStart:o,locEnd:s}=t;if((c=i.isBlockComment)==null?void 0:c.call(i,r)){let d=W(u,s(r))?W(u,o(r),{backwards:!0})?X:ut:" ";n.push(d)}else n.push(X);let D=$(u,S(u,s(r)));return D!==!1&&W(u,D)&&n.push(X),n}function $o(e,t,r){var D;let n=e.node,i=lu(e,t),{printer:u,originalText:o,locStart:s}=t,a=(D=u.isBlockComment)==null?void 0:D.call(u,n);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||W(o,s(n),{backwards:!0})){let c=Xe(o,s(n));return{doc:Ne([X,c?X:"",i]),isBlock:a,hasLineSuffix:!0}}return!a||r!=null&&r.hasLineSuffix?{doc:[Ne([" ",i]),_e],isBlock:a,hasLineSuffix:!0}:{doc:[" ",i],isBlock:a,hasLineSuffix:!1}}function Vo(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(a=>!n.has(a)).length===0)return{leading:"",trailing:""};let u=[],o=[],s;return e.each(()=>{let a=e.node;if(n!=null&&n.has(a))return;let{leading:D,trailing:c}=a;D?u.push(qo(e,t)):c&&(s=$o(e,t,s),o.push(s.doc))},"comments"),{leading:u,trailing:o}}function fu(e,t,r){let{leading:n,trailing:i}=Vo(e,r);return!n&&!i?t:Dt(t,u=>[n,u,i])}function pu(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}async function du(e,t,r,n,i){let{embeddedLanguageFormatting:u,printer:{embed:o,hasPrettierIgnore:s=()=>!1,getVisitorKeys:a}}=r;if(!o||u!=="auto")return;if(o.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 D=ee(o.getVisitorKeys??a),c=[];F();let d=e.stack;for(let{print:f,node:p,pathStack:m}of c)try{e.stack=m;let h=await f(l,t,e,r);h&&i.set(p,h)}catch(h){if(globalThis.PRETTIER_DEBUG)throw h}e.stack=d;function l(f,p){return zo(f,p,r,n)}function F(){let{node:f}=e;if(f===null||typeof f!="object"||s(e))return;for(let m of D(f))Array.isArray(f[m])?e.each(F,m):e.call(F,m);let p=o(e,r);if(p){if(typeof p=="function"){c.push({print:p,node:f,pathStack:[...e.stack]});return}i.set(f,p)}}}async function zo(e,t,r,n){let i=await le({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:u}=await Ee(e,i),o=await n(u,i);return at(o)}function Wo(e){return()=>{}}var Fu=Wo;function Go(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:u,[Symbol.for("printedComments")]:o}=t,{node:s}=e,a=i(s),D=u(s);for(let c of n)i(c)>=a&&u(c)<=D&&o.add(c);return r.slice(a,D)}var mu=Go;async function Ze(e,t){({ast:e}=await Tr(e,t));let r=new Map,n=new nu(e),i=Fu(t),u=new Map;await du(n,s,t,Ze,u);let o=await hu(n,t,s,void 0,u);return pu(t),o;function s(D,c){return D===void 0||D===n?a(c):Array.isArray(D)?n.call(()=>a(c),...D):n.call(()=>a(c),D)}function a(D){i(n);let c=n.node;if(c==null)return"";let d=c&&typeof c=="object"&&D===void 0;if(d&&r.has(c))return r.get(c);let l=hu(n,t,s,D,u);return d&&r.set(c,l),l}}function hu(e,t,r,n,i){var a;let{node:u}=e,{printer:o}=t,s;return(a=o.hasPrettierIgnore)!=null&&a.call(o,e)?s=mu(e,t):i.has(u)?s=i.get(u):s=o.print(e,t,r,n),o.printComment&&(!o.willPrintOwnComments||!o.willPrintOwnComments(e,t))&&(s=fu(e,s,t)),u===t.cursorNode&&(s=Dt(s,D=>[Re,D,Re])),s}async function Tr(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,Du(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}var Uo=({parser:e})=>e==="json"||e==="json5"||e==="json-stringify";function Ko(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(i=>gu.has(i.type)&&n.has(i))}function Eu(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 Ho(e,t,{locStart:r,locEnd:n}){let i=e.node,u=t.node;if(i===u)return{startNode:i,endNode:u};let o=r(e.node);for(let a of Eu(t.parentNodes))if(r(a)>=o)u=a;else break;let s=n(t.node);for(let a of Eu(e.parentNodes)){if(n(a)<=s)i=a;else break;if(i===u)break}return{startNode:i,endNode:u}}function Nr(e,t,r,n,i=[],u){let{locStart:o,locEnd:s}=r,a=o(e),D=s(e);if(!(t>D||t<a||u==="rangeEnd"&&t===a||u==="rangeStart"&&t===D)){for(let c of bt(e,r)){let d=Nr(c,t,r,n,[e,...i],u);if(d)return d}if(!n||n(e,i[0]))return{node:e,parentNodes:i}}}function Jo(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 gu=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),Xo=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Cu(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 Jo(t.type,r==null?void 0:r.type);case"json":case"json5":case"json-stringify":return gu.has(t.type);case"graphql":return Xo.has(t.kind);case"vue":return t.tag!=="root"}return!1}function yu(e,t,r){let{rangeStart:n,rangeEnd:i,locStart:u,locEnd:o}=t;Je.ok(i>n);let s=e.slice(n,i).search(/\S/),a=s===-1;if(!a)for(n+=s;i>n&&!/\S/.test(e[i-1]);--i);let D=Nr(r,n,t,(F,f)=>Cu(t,F,f),[],"rangeStart"),c=a?D:Nr(r,i,t,F=>Cu(t,F),[],"rangeEnd");if(!D||!c)return{rangeStart:0,rangeEnd:0};let d,l;if(Uo(t)){let F=Ko(D,c);d=F,l=F}else({startNode:d,endNode:l}=Ho(D,c,t));return{rangeStart:Math.min(u(d),u(l)),rangeEnd:Math.max(o(d),o(l))}}function Zo(e,t){let{cursorOffset:r,locStart:n,locEnd:i}=t,u=ee(t.printer.getVisitorKeys),o=a=>n(a)<=r&&i(a)>=r,s=e;for(let a of ou(e,{getVisitorKeys:u,filter:o}))s=a;return s}var _u=Zo;var wu="\uFEFF",xu=Symbol("cursor");async function Ou(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await Ee(e,t);t.cursorOffset>=0&&(t.cursorNode=_u(n,t));let u=await Ze(n,t,r);r>0&&(u=ot([X,u],r,t.tabWidth));let o=xe(u,t);if(r>0){let a=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(a)),o.formatted=a+Le(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let a,D,c,d,l;if(t.cursorNode&&o.cursorNodeText?(a=t.locStart(t.cursorNode),D=i.slice(a,t.locEnd(t.cursorNode)),c=t.cursorOffset-a,d=o.cursorNodeStart,l=o.cursorNodeText):(a=0,D=i,c=t.cursorOffset,d=0,l=o.formatted),D===l)return{formatted:o.formatted,cursorOffset:d+c,comments:s};let F=D.split("");F.splice(c,0,xu);let f=l.split(""),p=(0,Bu.diffArrays)(F,f),m=d;for(let h of p)if(h.removed){if(h.value.includes(xu))break}else m+=h.count;return{formatted:o.formatted,cursorOffset:m,comments:s}}return{formatted:o.formatted,cursorOffset:-1,comments:s}}async function Qo(e,t){let{ast:r,text:n}=await Ee(e,t),{rangeStart:i,rangeEnd:u}=yu(n,t,r),o=n.slice(i,u),s=Math.min(i,n.lastIndexOf(`
28
+ `,i)+1),a=n.slice(s,i).match(/^\s*/)[0],D=be(a,t.tabWidth),c=await Ou(o,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=u?t.cursorOffset-i:-1,endOfLine:"lf"},D),d=c.formatted.trimEnd(),{cursorOffset:l}=t;l>u?l+=d.length-o.length:c.cursorOffset>=0&&(l=c.cursorOffset+i);let F=n.slice(0,i)+d+n.slice(u);if(t.endOfLine!=="lf"){let f=Le(t.endOfLine);l>=0&&f===`\r
29
+ `&&(l+=Rt(F.slice(0,l),`
30
+ `)),F=De(!1,F,`
31
+ `,f)}return{formatted:F,cursorOffset:l,comments:c.comments}}function Pr(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function bu(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=Pr(e,r,-1),n=Pr(e,n,0),i=Pr(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function ku(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:u}=bu(e,t),o=e.charAt(0)===wu;if(o&&(e=e.slice(1),r--,n--,i--),u==="auto"&&(u=en(e)),e.includes("\r")){let s=a=>Rt(e.slice(0,Math.max(a,0)),`\r
32
+ `);r-=s(r),n-=s(n),i-=s(i),e=tn(e)}return{hasBOM:o,text:e,options:bu(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:u})}}async function Au(e,t){let r=await Ct(t);return!r.hasPragma||r.hasPragma(e)}async function Rr(e,t){let{hasBOM:r,text:n,options:i}=ku(e,await le(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await Au(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let u;return i.rangeStart>0||i.rangeEnd<n.length?u=await Qo(n,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await Au(n,i)&&(n=i.printer.insertPragma(n)),u=await Ou(n,i)),r&&(u.formatted=wu+u.formatted,u.cursorOffset>=0&&u.cursorOffset++),u}async function Su(e,t,r){let{text:n,options:i}=ku(e,await le(t)),u=await Ee(n,i);return r&&(r.preprocessForPrint&&(u.ast=await Tr(u.ast,i)),r.massage&&(u.ast=Hn(u.ast,i))),u}async function vu(e,t){t=await le(t);let r=await Ze(e,t);return xe(r,t)}async function Tu(e,t){let r=dn(e),{formatted:n}=await Rr(r,{...t,parser:"__js_expression"});return n}async function Nu(e,t){t=await le(t);let{ast:r}=await Ee(e,t);return Ze(r,t)}async function Pu(e,t){return xe(e,await le(t))}var Bt={};ge(Bt,{addDanglingComment:()=>oe,addLeadingComment:()=>fe,addTrailingComment:()=>pe,getAlignmentSize:()=>be,getIndentSize:()=>Iu,getMaxContinuousCount:()=>Ru,getNextNonSpaceNonCommentCharacter:()=>Yu,getNextNonSpaceNonCommentCharacterIndex:()=>fs,getStringWidth:()=>je,hasNewline:()=>W,hasNewlineInRange:()=>Lu,hasSpaces:()=>ju,isNextLineEmpty:()=>ms,isNextLineEmptyAfterIndex:()=>At,isPreviousLineEmpty:()=>ds,makeString:()=>Mu,skip:()=>we,skipEverythingButNewLine:()=>xt,skipInlineComment:()=>Oe,skipNewline:()=>$,skipSpaces:()=>S,skipToLineEnd:()=>_t,skipTrailingComment:()=>ke,skipWhitespace:()=>uu});function ts(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 Oe=ts;function rs(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?xt(e,t):t}var ke=rs;function ns(e,t){let r=null,n=t;for(;n!==r;)r=n,n=S(e,n),n=Oe(e,n),n=ke(e,n),n=$(e,n);return n}var Qe=ns;function us(e,t){let r=null,n=t;for(;n!==r;)r=n,n=_t(e,n),n=Oe(e,n),n=S(e,n);return n=ke(e,n),n=$(e,n),n!==!1&&W(e,n)}var At=us;function Ir(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function is(e,t){let r=e.match(new RegExp(`(${Ir(t)})+`,"g"));return r===null?0:r.reduce((n,i)=>Math.max(n,i.length/t.length),0)}var Ru=is;function os(e,t){let r=e.lastIndexOf(`
33
+ `);return r===-1?0:be(e.slice(r+1).match(/^[\t ]*/)[0],t)}var Iu=os;function ss(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
34
+ `)return!0;return!1}var Lu=ss;function as(e,t,r={}){return S(e,r.backwards?t-1:t,r)!==t}var ju=as;function Ds(e,t){let r=Qe(e,t);return r===!1?"":e.charAt(r)}var Yu=Ds;function cs(e,t,r){let n=t==='"'?"'":'"',u=De(!1,e,/\\(.)|(["'])/gs,(o,s,a)=>s===n?s:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(s)?s:"\\"+s));return t+u+t}var Mu=cs;function ls(e,t,r){return Qe(e,r(t))}function fs(e,t){return arguments.length===2||typeof t=="number"?Qe(e,t):ls(...arguments)}function ps(e,t,r){return Xe(e,r(t))}function ds(e,t){return arguments.length===2||typeof t=="number"?Xe(e,t):ps(...arguments)}function Fs(e,t,r){return At(e,r(t))}function ms(e,t){return arguments.length===2||typeof t=="number"?At(e,t):Fs(...arguments)}var wt={};ge(wt,{builders:()=>hs,printer:()=>Es,utils:()=>Cs});var hs={join:Ie,line:ut,softline:Zr,hardline:X,literalline:it,group:Nt,conditionalGroup:Ur,fill:nt,lineSuffix:Ne,lineSuffixBoundary:Jr,cursor:Re,breakParent:_e,ifBreak:Kr,trim:Xr,indent:Fe,indentIfBreak:Hr,align:de,addAlignmentToDoc:ot,markAsRoot:Wr,dedentToRoot:zr,dedent:Gr,hardlineWithoutBreakParent:Pe,literallineWithoutBreakParent:Pt,label:Qr,concat:e=>e},Es={printDocToString:xe},Cs={willBreak:an,traverseDoc:Te,findInDoc:st,mapDoc:Me,removeLines:cn,stripTrailingHardline:at,replaceEndOfLine:ln,canBreak:fn};var qu="3.0.0";function Ce(e,t=1){return async(...r)=>{let n=r[t]??{},i=n.plugins??[];return r[t]={...n,plugins:Array.isArray(i)?i:Object.values(i)},e(...r)}}var $u=Ce(Rr);async function Vu(e,t){let{formatted:r}=await $u(e,{...t,cursorOffset:-1});return r}async function gs(e,t){return await Vu(e,t)===e}var ys=Ce(lt,0),_s={parse:Ce(Su),formatAST:Ce(vu),formatDoc:Ce(Tu),printToDoc:Ce(Nu),printDocToString:Ce(Pu)};return Y(xs);});
@@ -0,0 +1,34 @@
1
+ var Wu=Object.create;var et=Object.defineProperty;var Gu=Object.getOwnPropertyDescriptor;var Uu=Object.getOwnPropertyNames;var Ku=Object.getPrototypeOf,Hu=Object.prototype.hasOwnProperty;var Ot=(e,t)=>()=>(e&&(t=e(e=0)),t);var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ge=(e,t)=>{for(var r in t)et(e,r,{get:t[r],enumerable:!0})},Yr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Uu(t))!Hu.call(e,i)&&i!==r&&et(e,i,{get:()=>t[i],enumerable:!(n=Gu(t,i))||n.enumerable});return e};var kt=(e,t,r)=>(r=e!=null?Wu(Ku(e)):{},Yr(t||!e||!e.__esModule?et(r,"default",{value:e,enumerable:!0}):r,e)),$=e=>Yr(et({},"__esModule",{value:!0}),e);var Ju=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var St=(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 ye=(e,t,r)=>(Ju(e,t,"access private method"),r);var qr=E(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.default=Mr;function Mr(){}Mr.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 u=this;function o(p){return i?(setTimeout(function(){i(void 0,p)},0),!0):p}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var s=r.length,a=t.length,D=1,c=s+a;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var d=[{newPos:-1,components:[]}],l=this.extractCommon(d[0],r,t,0);if(d[0].newPos+1>=s&&l+1>=a)return o([{value:this.join(r),count:r.length}]);function F(){for(var p=-1*D;p<=D;p+=2){var m=void 0,h=d[p-1],C=d[p+1],g=(C?C.newPos:0)-p;h&&(d[p-1]=void 0);var y=h&&h.newPos+1<s,b=C&&0<=g&&g<a;if(!y&&!b){d[p]=void 0;continue}if(!y||b&&h.newPos<C.newPos?(m=Qu(C),u.pushComponent(m.components,void 0,!0)):(m=h,m.newPos++,u.pushComponent(m.components,!0,void 0)),g=u.extractCommon(m,r,t,p),m.newPos+1>=s&&g+1>=a)return o(Zu(u,m.components,r,t,u.useLongestToken));d[p]=m}D++}if(i)(function p(){setTimeout(function(){if(D>c)return i();F()||p()},0)})();else for(;D<=c;){var f=F();if(f)return f}},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 u=r.length,o=n.length,s=t.newPos,a=s-i,D=0;s+1<u&&a+1<o&&this.equals(r[s+1],n[a+1]);)s++,a++,D++;return D&&t.components.push({count:D}),t.newPos=s,a},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 Zu(e,t,r,n,i){for(var u=0,o=t.length,s=0,a=0;u<o;u++){var D=t[u];if(D.removed){if(D.value=e.join(n.slice(a,a+D.count)),a+=D.count,u&&t[u-1].added){var d=t[u-1];t[u-1]=t[u],t[u]=d}}else{if(!D.added&&i){var c=r.slice(s,s+D.count);c=c.map(function(F,f){var p=n[a+f];return p.length>F.length?p:F}),D.value=e.join(c)}else D.value=e.join(r.slice(s,s+D.count));s+=D.count,D.added||(a+=D.count)}}var l=t[o-1];return o>1&&typeof l.value=="string"&&(l.added||l.removed)&&e.equals("",l.value)&&(t[o-2].value+=l.value,t.pop()),t}function Qu(e){return{newPos:e.newPos,components:e.components.slice(0)}}});var $r=E(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.diffArrays=ri;ve.arrayDiff=void 0;var ei=ti(qr());function ti(e){return e&&e.__esModule?e:{default:e}}var Se=new ei.default;ve.arrayDiff=Se;Se.tokenize=function(e){return e.slice()};Se.join=Se.removeEmpty=function(e){return e};function ri(e,t,r){return Se.diff(e,t,r)}});var ne={};ge(ne,{__assign:()=>Yt,__asyncDelegator:()=>Ri,__asyncGenerator:()=>Pi,__asyncValues:()=>Ii,__await:()=>ze,__awaiter:()=>Oi,__classPrivateFieldGet:()=>Mi,__classPrivateFieldSet:()=>qi,__createBinding:()=>Si,__decorate:()=>Ai,__exportStar:()=>vi,__extends:()=>xi,__generator:()=>ki,__importDefault:()=>Yi,__importStar:()=>ji,__makeTemplateObject:()=>Li,__metadata:()=>wi,__param:()=>Bi,__read:()=>Cn,__rest:()=>bi,__spread:()=>Ti,__spreadArrays:()=>Ni,__values:()=>Mt});function xi(e,t){jt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function bi(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 Ai(e,t,r,n){var i=arguments.length,u=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(u=(i<3?o(u):i>3?o(t,r,u):o(t,r))||u);return i>3&&u&&Object.defineProperty(t,r,u),u}function Bi(e,t){return function(r,n){t(r,n,e)}}function wi(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Oi(e,t,r,n){function i(u){return u instanceof r?u:new r(function(o){o(u)})}return new(r||(r=Promise))(function(u,o){function s(c){try{D(n.next(c))}catch(d){o(d)}}function a(c){try{D(n.throw(c))}catch(d){o(d)}}function D(c){c.done?u(c.value):i(c.value).then(s,a)}D((n=n.apply(e,t||[])).next())})}function ki(e,t){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(D){return function(c){return a([D,c])}}function a(D){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(u=D[0]&2?i.return:D[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,D[1])).done)return u;switch(i=0,u&&(D=[D[0]&2,u.value]),D[0]){case 0:case 1:u=D;break;case 4:return r.label++,{value:D[1],done:!1};case 5:r.label++,i=D[1],D=[0];continue;case 7:D=r.ops.pop(),r.trys.pop();continue;default:if(u=r.trys,!(u=u.length>0&&u[u.length-1])&&(D[0]===6||D[0]===2)){r=0;continue}if(D[0]===3&&(!u||D[1]>u[0]&&D[1]<u[3])){r.label=D[1];break}if(D[0]===6&&r.label<u[1]){r.label=u[1],u=D;break}if(u&&r.label<u[2]){r.label=u[2],r.ops.push(D);break}u[2]&&r.ops.pop(),r.trys.pop();continue}D=t.call(e,r)}catch(c){D=[6,c],i=0}finally{n=u=0}if(D[0]&5)throw D[1];return{value:D[0]?D[1]:void 0,done:!0}}}function Si(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}function vi(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Mt(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 Cn(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return u}function Ti(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Cn(arguments[t]));return e}function Ni(){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 u=arguments[t],o=0,s=u.length;o<s;o++,i++)n[i]=u[o];return n}function ze(e){return this instanceof ze?(this.v=e,this):new ze(e)}function Pi(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,u=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(l){n[l]&&(i[l]=function(F){return new Promise(function(f,p){u.push([l,F,f,p])>1||s(l,F)})})}function s(l,F){try{a(n[l](F))}catch(f){d(u[0][3],f)}}function a(l){l.value instanceof ze?Promise.resolve(l.value.v).then(D,c):d(u[0][2],l)}function D(l){s("next",l)}function c(l){s("throw",l)}function d(l,F){l(F),u.shift(),u.length&&s(u[0][0],u[0][1])}}function Ri(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,u){t[i]=e[i]?function(o){return(r=!r)?{value:ze(e[i](o)),done:i==="return"}:u?u(o):o}:u}}function Ii(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 Mt=="function"?Mt(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(u){r[u]=e[u]&&function(o){return new Promise(function(s,a){o=e[u](o),i(s,a,o.done,o.value)})}}function i(u,o,s,a){Promise.resolve(a).then(function(D){u({value:D,done:s})},o)}}function Li(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function ji(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 Yi(e){return e&&e.__esModule?e:{default:e}}function Mi(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function qi(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 jt,Yt,ue=Ot(()=>{jt=function(e,t){return jt=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])},jt(e,t)};Yt=function(){return Yt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(t[u]=r[u])}return t},Yt.apply(this,arguments)}});var qt=E(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.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=>me.apiDescriptor.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${me.apiDescriptor.key(r)}: ${me.apiDescriptor.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>me.apiDescriptor.value({[e]:t})}});var gn=E($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});var $i=(ue(),$(ne));$i.__exportStar(qt(),$t)});var ft={};ge(ft,{default:()=>Vt});var Y,Vt,We=Ot(()=>{Y=e=>e;Y.grey=Y;Y.red=Y;Y.bold=Y;Y.yellow=Y;Y.blue=Y;Y.default=Y;Vt=Y});var Wt=E(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});var yn=(We(),$(ft));zt.commonDeprecatedHandler=(e,t,{descriptor:r})=>{let n=[`${yn.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${yn.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."}});var _n=E(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});var Vi=(ue(),$(ne));Vi.__exportStar(Wt(),Gt)});var xn=E(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});var Ut=(We(),$(ft));Kt.commonInvalidHandler=(e,t,r)=>[`Invalid ${Ut.default.red(r.descriptor.key(e))} value.`,`Expected ${Ut.default.blue(r.schemas[e].expected(r))},`,`but received ${Ut.default.red(r.descriptor.value(t))}.`].join(" ")});var Jt=E(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});var zi=(ue(),$(ne));zi.__exportStar(xn(),Ht)});var Bn=E((Pa,An)=>{"use strict";var Xt=[],bn=[];An.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 u=0;u<n&&e.charCodeAt(u)===t.charCodeAt(u);)u++;if(n-=u,i-=u,n===0)return i;for(var o,s,a,D,c=0,d=0;c<n;)bn[u+c]=e.charCodeAt(u+c),Xt[c]=++c;for(;d<i;)for(o=t.charCodeAt(u+d),a=d++,s=d,c=0;c<n;c++)D=o===bn[u+c]?a:a+1,a=Xt[c],s=Xt[c]=a>s?D>s?s+1:D:D>a?a+1:D;return s}});var Qt=E(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});var wn=(We(),$(ft)),Wi=Bn();Zt.levenUnknownHandler=(e,t,{descriptor:r,logger:n,schemas:i})=>{let u=[`Ignored unknown option ${wn.default.yellow(r.pair({key:e,value:t}))}.`],o=Object.keys(i).sort().find(s=>Wi(e,s)<3);o&&u.push(`Did you mean ${wn.default.blue(r.key(o))}?`),n.warn(u.join(" "))}});var On=E(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});var Gi=(ue(),$(ne));Gi.__exportStar(Qt(),er)});var kn=E(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});var tr=(ue(),$(ne));tr.__exportStar(_n(),Ge);tr.__exportStar(Jt(),Ge);tr.__exportStar(On(),Ge)});var ie=E(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});var Ui=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Sn(e,t){let r=new e(t),n=Object.create(r);for(let i of Ui)i in t&&(n[i]=Ki(t[i],r,pt.prototype[i].length));return n}dt.createSchema=Sn;var pt=class{constructor(t){this.name=t.name}static create(t){return Sn(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}};dt.Schema=pt;function Ki(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}});var vn=E(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});var Hi=ie(),rr=class extends Hi.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}};nr.AliasSchema=rr});var Tn=E(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});var Ji=ie(),ur=class extends Ji.Schema{expected(){return"anything"}validate(){return!0}};ir.AnySchema=ur});var Pn=E(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});var Xi=(ue(),$(ne)),Zi=ie(),or=class extends Zi.Schema{constructor(t){var{valueSchema:r,name:n=r.name}=t,i=Xi.__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 u=r.normalizeValidateResult(this._valueSchema.validate(i,r),i);u!==!0&&n.push(u.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let i of t){let u=r.normalizeDeprecatedResult(this._valueSchema.deprecated(i,r),i);u!==!1&&n.push(...u.map(({value:o})=>({value:[o]})))}return n}forward(t,r){let n=[];for(let i of t){let u=r.normalizeForwardResult(this._valueSchema.forward(i,r),i);n.push(...u.map(Nn))}return n}redirect(t,r){let n=[],i=[];for(let u of t){let o=r.normalizeRedirectResult(this._valueSchema.redirect(u,r),u);"remain"in o&&n.push(o.remain),i.push(...o.redirect.map(Nn))}return n.length===0?{redirect:i}:{redirect:i,remain:n}}overlap(t,r){return t.concat(r)}};sr.ArraySchema=or;function Nn({from:e,to:t}){return{from:[e],to:t}}});var Rn=E(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});var Qi=ie(),ar=class extends Qi.Schema{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};Dr.BooleanSchema=ar});var Ft=E(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});function eo(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}j.recordFromArray=eo;function to(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}j.mapFromArray=to;function ro(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}j.createAutoChecklist=ro;function no(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}j.partition=no;function uo(e){return e===Math.floor(e)}j.isInt=uo;function io(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)}j.comparePrimitive=io;function oo(e){return e===void 0?{}:e}j.normalizeDefaultResult=oo;function so(e,t){return e===!0?!0:e===!1?{value:t}:e}j.normalizeValidateResult=so;function ao(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}j.normalizeDeprecatedResult=ao;function cr(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}}j.normalizeTransferResult=cr;function In(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>cr(r,t)):[cr(e,t)]}j.normalizeForwardResult=In;function Do(e,t){let r=In(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}}j.normalizeRedirectResult=Do});var jn=E(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});var co=ie(),Ln=Ft(),lr=class extends co.Schema{constructor(t){super(t),this._choices=Ln.mapFromArray(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(u=>this._choices.get(u)).filter(u=>!u.deprecated).map(u=>u.value).sort(Ln.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}};fr.ChoiceSchema=lr});var Fr=E(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});var lo=ie(),pr=class extends lo.Schema{expected(){return"a number"}validate(t,r){return typeof t=="number"}};dr.NumberSchema=pr});var Yn=E(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});var fo=Ft(),po=Fr(),mr=class extends po.NumberSchema{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&fo.isInt(t)}};hr.IntegerSchema=mr});var Mn=E(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});var Fo=ie(),Er=class extends Fo.Schema{expected(){return"a string"}validate(t){return typeof t=="string"}};Cr.StringSchema=Er});var qn=E(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var ce=(ue(),$(ne));ce.__exportStar(vn(),Q);ce.__exportStar(Tn(),Q);ce.__exportStar(Pn(),Q);ce.__exportStar(Rn(),Q);ce.__exportStar(jn(),Q);ce.__exportStar(Yn(),Q);ce.__exportStar(Fr(),Q);ce.__exportStar(Mn(),Q)});var $n=E(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});var mo=qt(),ho=Wt(),Eo=Jt(),Co=Qt();Ae.defaultDescriptor=mo.apiDescriptor;Ae.defaultUnknownHandler=Co.levenUnknownHandler;Ae.defaultInvalidHandler=Eo.commonInvalidHandler;Ae.defaultDeprecatedHandler=ho.commonDeprecatedHandler});var Vn=E(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});var mt=$n(),M=Ft();Et.normalize=(e,t,r)=>new ht(t,r).normalize(e);var ht=class{constructor(t,r){let{logger:n=console,descriptor:i=mt.defaultDescriptor,unknown:u=mt.defaultUnknownHandler,invalid:o=mt.defaultInvalidHandler,deprecated:s=mt.defaultDeprecatedHandler}=r||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},schemas:M.recordFromArray(t,"name"),normalizeDefaultResult:M.normalizeDefaultResult,normalizeDeprecatedResult:M.normalizeDeprecatedResult,normalizeForwardResult:M.normalizeForwardResult,normalizeRedirectResult:M.normalizeRedirectResult,normalizeValidateResult:M.normalizeValidateResult},this._unknownHandler=u,this._invalidHandler=o,this._deprecatedHandler=s,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=M.createAutoChecklist()}normalize(t){let r={},n=[t],i=()=>{for(;n.length!==0;){let u=n.shift(),o=this._applyNormalization(u,r);n.push(...o)}};i();for(let u of Object.keys(this._utils.schemas)){let o=this._utils.schemas[u];if(!(u in r)){let s=M.normalizeDefaultResult(o.default(this._utils));"value"in s&&n.push({[u]:s.value})}}i();for(let u of Object.keys(this._utils.schemas)){let o=this._utils.schemas[u];u in r&&(r[u]=o.postprocess(r[u],this._utils))}return r}_applyNormalization(t,r){let n=[],[i,u]=M.partition(Object.keys(t),o=>o in this._utils.schemas);for(let o of i){let s=this._utils.schemas[o],a=s.preprocess(t[o],this._utils),D=M.normalizeValidateResult(s.validate(a,this._utils),a);if(D!==!0){let{value:f}=D,p=this._invalidHandler(o,f,this._utils);throw typeof p=="string"?new Error(p):p}let c=({from:f,to:p})=>{n.push(typeof p=="string"?{[p]:f}:{[p.key]:p.value})},d=({value:f,redirectTo:p})=>{let m=M.normalizeDeprecatedResult(s.deprecated(f,this._utils),a,!0);if(m!==!1)if(m===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,p,this._utils));else for(let{value:h}of m){let C={key:o,value:h};if(!this._hasDeprecationWarned(C)){let g=typeof p=="string"?{key:p,value:h}:p;this._utils.logger.warn(this._deprecatedHandler(C,g,this._utils))}}};M.normalizeForwardResult(s.forward(a,this._utils),a).forEach(c);let F=M.normalizeRedirectResult(s.redirect(a,this._utils),a);if(F.redirect.forEach(c),"remain"in F){let f=F.remain;r[o]=o in r?s.overlap(r[o],f,this._utils):f,d({value:f})}for(let{from:f,to:p}of F.redirect)d({value:f,redirectTo:p})}for(let o of u){let s=t[o],a=this._unknownHandler(o,s,this._utils);if(a)for(let D of Object.keys(a)){let c={[D]:a[D]};D in this._utils.schemas?n.push(c):Object.assign(r,c)}}return n}};Et.Normalizer=ht});var zn=E(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});var Ue=(ue(),$(ne));Ue.__exportStar(gn(),he);Ue.__exportStar(kn(),he);Ue.__exportStar(qn(),he);Ue.__exportStar(Vn(),he);Ue.__exportStar(ie(),he)});var Xn={};ge(Xn,{getChalk:()=>Oo,shouldHighlight:()=>wo});var wo,Oo,Zn=Ot(()=>{We();wo=()=>!1,Oo=()=>Vt});var ru=E(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.codeFrameColumns=tu;gt.default=vo;var xr=(Zn(),$(Xn)),Qn=!1;function ko(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var eu=/\r\n|[\n\r\u2028\u2029]/;function So(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:u=2,linesBelow:o=3}=r||{},s=n.line,a=n.column,D=i.line,c=i.column,d=Math.max(s-(u+1),0),l=Math.min(t.length,D+o);s===-1&&(d=0),D===-1&&(l=t.length);let F=D-s,f={};if(F)for(let p=0;p<=F;p++){let m=p+s;if(!a)f[m]=!0;else if(p===0){let h=t[m-1].length;f[m]=[a,h-a+1]}else if(p===F)f[m]=[0,c];else{let h=t[m-p].length;f[m]=[0,h]}}else a===c?a?f[s]=[a,0]:f[s]=!0:f[s]=[a,c-a];return{start:d,end:l,markerLines:f}}function tu(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,xr.shouldHighlight)(r),i=(0,xr.getChalk)(r),u=ko(i),o=(p,m)=>n?p(m):m,s=e.split(eu),{start:a,end:D,markerLines:c}=So(t,s,r),d=t.start&&typeof t.start.column=="number",l=String(D).length,f=(n?(0,xr.default)(e,r):e).split(eu,D).slice(a,D).map((p,m)=>{let h=a+1+m,g=` ${` ${h}`.slice(-l)} |`,y=c[h],b=!c[h+1];if(y){let se="";if(Array.isArray(y)){let G=p.slice(0,Math.max(y[0]-1,0)).replace(/[^\t]/g," "),ae=y[1]||1;se=[`
2
+ `,o(u.gutter,g.replace(/\d/g," "))," ",G,o(u.marker,"^").repeat(ae)].join(""),b&&r.message&&(se+=" "+o(u.message,r.message))}return[o(u.marker,">"),o(u.gutter,g),p.length>0?` ${p}`:"",se].join("")}else return` ${o(u.gutter,g)}${p.length>0?` ${p}`:""}`}).join(`
3
+ `);return r.message&&!d&&(f=`${" ".repeat(l+1)}${r.message}
4
+ ${f}`),n?i.reset(f):f}function vo(e,t,r,n={}){if(!Qn){Qn=!0;let u="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let o=new Error(u);o.name="DeprecationWarning",console.warn(new Error(u))}}return r=Math.max(r,0),tu(e,{start:{column:r,line:t}},n)}});var Lr={};ge(Lr,{__debug:()=>xs,check:()=>ys,doc:()=>wt,format:()=>zu,formatWithCursor:()=>Vu,getSupportInfo:()=>_s,util:()=>Bt,version:()=>$u});var Xu=(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)},De=Xu;var wu=kt($r(),1);var U="string",V="array",K="cursor",v="indent",T="align",N="trim",A="group",w="fill",B="if-break",P="indent-if-break",R="line-suffix",I="line-suffix-boundary",x="line",k="label",O="break-parent",tt=new Set([K,v,T,N,A,w,B,P,R,I,x,k,O]);function ni(e){if(typeof e=="string")return U;if(Array.isArray(e))return V;if(!e)return;let{type:t}=e;if(tt.has(t))return t}var H=ni;var ui=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function ii(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
5
+ Expected it to be 'string' or 'object'.`;if(H(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ui([...tt].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
6
+ Expected it to be ${n}.`}var Tt=class extends Error{name="InvalidDocError";constructor(t){super(ii(t)),this.doc=t}},te=Tt;var Vr={};function oi(e,t,r,n){let i=[e];for(;i.length>0;){let u=i.pop();if(u===Vr){r(i.pop());continue}r&&i.push(u,Vr);let o=H(u);if(!o)throw new te(u);if((t==null?void 0:t(u))!==!1)switch(o){case V:case w:{let s=o===V?u:u.parts;for(let a=s.length,D=a-1;D>=0;--D)i.push(s[D]);break}case B:i.push(u.flatContents,u.breakContents);break;case A:if(n&&u.expandedStates)for(let s=u.expandedStates.length,a=s-1;a>=0;--a)i.push(u.expandedStates[a]);else i.push(u.contents);break;case T:case v:case P:case k:case R:i.push(u.contents);break;case U:case K:case N:case I:case x:case O:break;default:throw new te(u)}}}var Te=oi;var zr=()=>{},J=zr,rt=zr;function Fe(e){return J(e),{type:v,contents:e}}function de(e,t){return J(t),{type:T,contents:t,n:e}}function Nt(e,t={}){return J(e),rt(t.expandedStates,!0),{type:A,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Wr(e){return de(Number.NEGATIVE_INFINITY,e)}function Gr(e){return de({type:"root"},e)}function Ur(e){return de(-1,e)}function Kr(e,t){return Nt(e[0],{...t,expandedStates:e})}function nt(e){return rt(e),{type:w,parts:e}}function Hr(e,t="",r={}){return J(e),t!==""&&J(t),{type:B,breakContents:e,flatContents:t,groupId:r.groupId}}function Jr(e,t){return J(e),{type:P,contents:e,groupId:t.groupId,negate:t.negate}}function Ne(e){return J(e),{type:R,contents:e}}var Xr={type:I},_e={type:O},Zr={type:N},Pe={type:x,hard:!0},Pt={type:x,hard:!0,literal:!0},ut={type:x},Qr={type:x,soft:!0},X=[Pe,_e],it=[Pt,_e],Re={type:K};function Ie(e,t){J(e),rt(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function ot(e,t,r){J(e);let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=Fe(n);n=de(t%r,n),n=de(Number.NEGATIVE_INFINITY,n)}return n}function en(e,t){return J(t),e?{type:k,label:e,contents:t}:t}var si=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},_=si;function tn(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
7
+ `?"crlf":"cr":"lf"}function Le(e){switch(e){case"cr":return"\r";case"crlf":return`\r
8
+ `;default:return`
9
+ `}}function Rt(e,t){let r;switch(t){case`
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 rn(e){return De(!1,e,/\r\n?/g,`
12
+ `)}var nn=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\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]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var un={eastAsianWidth(e){var t=e.charCodeAt(0),r=e.length==2?e.charCodeAt(1):0,n=t;return 55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t&=1023,r&=1023,n=t<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":"N"}};var ai=/[^\x20-\x7F]/;function Di(e){if(!e)return 0;if(!ai.test(e))return e.length;e=e.replace(nn()," ");let t=0;for(let r of e){let n=r.codePointAt(0);if(n<=31||n>=127&&n<=159||n>=768&&n<=879)continue;let i=un.eastAsianWidth(r);t+=i==="F"||i==="W"?2:1}return t}var je=Di;var an=e=>{if(Array.isArray(e))return e;if(e.type!==w)throw new Error(`Expect doc to be 'array' or '${w}'.`);return e.parts};function Me(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(u){if(r.has(u))return r.get(u);let o=i(u);return r.set(u,o),o}function i(u){switch(H(u)){case V:return t(u.map(n));case w:return t({...u,parts:u.parts.map(n)});case B:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case A:{let{expandedStates:o,contents:s}=u;return o?(o=o.map(n),s=o[0]):s=n(s),t({...u,contents:s,expandedStates:o})}case T:case v:case P:case k:case R:return t({...u,contents:n(u.contents)});case U:case K:case N:case I:case x:case O:return t(u);default:throw new te(u)}}}function st(e,t,r){let n=r,i=!1;function u(o){if(i)return!1;let s=t(o);s!==void 0&&(i=!0,n=s)}return Te(e,u),n}function ci(e){if(e.type===A&&e.break||e.type===x&&e.hard||e.type===O)return!0}function Dn(e){return st(e,ci,!1)}function on(e){if(e.length>0){let t=_(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function cn(e){let t=new Set,r=[];function n(u){if(u.type===O&&on(r),u.type===A){if(r.push(u),t.has(u))return!1;t.add(u)}}function i(u){u.type===A&&r.pop().break&&on(r)}Te(e,n,i,!0)}function li(e){return e.type===x&&!e.hard?e.soft?"":" ":e.type===B?e.flatContents:e}function ln(e){return Me(e,li)}function sn(e){for(e=[...e];e.length>=2&&_(!1,e,-2).type===x&&_(!1,e,-1).type===O;)e.length-=2;if(e.length>0){let t=Ye(_(!1,e,-1));e[e.length-1]=t}return e}function Ye(e){switch(H(e)){case T:case v:case P:case A:case R:case k:{let t=Ye(e.contents);return{...e,contents:t}}case B:return{...e,breakContents:Ye(e.breakContents),flatContents:Ye(e.flatContents)};case w:return{...e,parts:sn(e.parts)};case V:return sn(e);case U:return e.replace(/[\n\r]*$/,"");case K:case N:case I:case x:case O:break;default:throw new te(e)}return e}function at(e){return Ye(pi(e))}function fi(e){switch(H(e)){case w:if(e.parts.every(t=>t===""))return"";break;case A:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===A&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case T:case v:case P:case R:if(!e.contents)return"";break;case B:if(!e.flatContents&&!e.breakContents)return"";break;case V:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof _(!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 U:case K:case N:case I:case x:case k:case O:break;default:throw new te(e)}return e}function pi(e){return Me(e,t=>fi(t))}function fn(e,t=it){return Me(e,r=>typeof r=="string"?Ie(t,r.split(`
13
+ `)):r)}function di(e){if(e.type===x)return!0}function pn(e){return st(e,di,!1)}function Dt(e,t){return e.type===k?{...e,contents:t(e.contents)}:t(e)}var L=Symbol("MODE_BREAK"),Z=Symbol("MODE_FLAT"),qe=Symbol("cursor");function dn(){return{value:"",length:0,queue:[]}}function Fi(e,t){return It(e,{type:"indent"},t)}function mi(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||dn():t<0?It(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:It(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function It(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",u=0,o=0,s=0;for(let f of n)switch(f.type){case"indent":c(),r.useTabs?a(1):D(r.tabWidth);break;case"stringAlign":c(),i+=f.n,u+=f.n.length;break;case"numberAlign":o+=1,s+=f.n;break;default:throw new Error(`Unexpected type '${f.type}'`)}return l(),{...e,value:i,length:u,queue:n};function a(f){i+=" ".repeat(f),u+=r.tabWidth*f}function D(f){i+=" ".repeat(f),u+=f}function c(){r.useTabs?d():l()}function d(){o>0&&a(o),F()}function l(){s>0&&D(s),F()}function F(){o=0,s=0}}function Lt(e){let t=0,r=0,n=e.length;e:for(;n--;){let i=e[n];if(i===qe){r++;continue}for(let u=i.length-1;u>=0;u--){let o=i[u];if(o===" "||o===" ")t++;else{e[n]=i.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(qe);return t}function ct(e,t,r,n,i,u){if(r===Number.POSITIVE_INFINITY)return!0;let o=t.length,s=[e],a=[];for(;r>=0;){if(s.length===0){if(o===0)return!0;s.push(t[--o]);continue}let{mode:D,doc:c}=s.pop();switch(H(c)){case U:a.push(c),r-=je(c);break;case V:case w:{let d=an(c);for(let l=d.length-1;l>=0;l--)s.push({mode:D,doc:d[l]});break}case v:case T:case P:case k:s.push({mode:D,doc:c.contents});break;case N:r+=Lt(a);break;case A:{if(u&&c.break)return!1;let d=c.break?L:D,l=c.expandedStates&&d===L?_(!1,c.expandedStates,-1):c.contents;s.push({mode:d,doc:l});break}case B:{let l=(c.groupId?i[c.groupId]||Z:D)===L?c.breakContents:c.flatContents;l&&s.push({mode:D,doc:l});break}case x:if(D===L||c.hard)return!0;c.soft||(a.push(" "),r--);break;case R:n=!0;break;case I:if(n)return!1;break}}return!1}function xe(e,t){let r={},n=t.printWidth,i=Le(t.endOfLine),u=0,o=[{ind:dn(),mode:L,doc:e}],s=[],a=!1,D=[],c=0;for(cn(e);o.length>0;){let{ind:l,mode:F,doc:f}=o.pop();switch(H(f)){case U:{let p=i!==`
14
+ `?De(!1,f,`
15
+ `,i):f;s.push(p),o.length>0&&(u+=je(p));break}case V:for(let p=f.length-1;p>=0;p--)o.push({ind:l,mode:F,doc:f[p]});break;case K:if(c>=2)throw new Error("There are too many 'cursor' in doc.");s.push(qe),c++;break;case v:o.push({ind:Fi(l,t),mode:F,doc:f.contents});break;case T:o.push({ind:mi(l,f.n,t),mode:F,doc:f.contents});break;case N:u-=Lt(s);break;case A:switch(F){case Z:if(!a){o.push({ind:l,mode:f.break?L:Z,doc:f.contents});break}case L:{a=!1;let p={ind:l,mode:Z,doc:f.contents},m=n-u,h=D.length>0;if(!f.break&&ct(p,o,m,h,r))o.push(p);else if(f.expandedStates){let C=_(!1,f.expandedStates,-1);if(f.break){o.push({ind:l,mode:L,doc:C});break}else for(let g=1;g<f.expandedStates.length+1;g++)if(g>=f.expandedStates.length){o.push({ind:l,mode:L,doc:C});break}else{let y=f.expandedStates[g],b={ind:l,mode:Z,doc:y};if(ct(b,o,m,h,r)){o.push(b);break}}}else o.push({ind:l,mode:L,doc:f.contents});break}}f.id&&(r[f.id]=_(!1,o,-1).mode);break;case w:{let p=n-u,{parts:m}=f;if(m.length===0)break;let[h,C]=m,g={ind:l,mode:Z,doc:h},y={ind:l,mode:L,doc:h},b=ct(g,[],p,D.length>0,r,!0);if(m.length===1){b?o.push(g):o.push(y);break}let se={ind:l,mode:Z,doc:C},G={ind:l,mode:L,doc:C};if(m.length===2){b?o.push(se,g):o.push(G,y);break}m.splice(0,2);let ae={ind:l,mode:F,doc:nt(m)},jr=m[0];ct({ind:l,mode:Z,doc:[h,C,jr]},[],p,D.length>0,r,!0)?o.push(ae,se,g):b?o.push(ae,G,g):o.push(ae,G,y);break}case B:case P:{let p=f.groupId?r[f.groupId]:F;if(p===L){let m=f.type===B?f.breakContents:f.negate?f.contents:Fe(f.contents);m&&o.push({ind:l,mode:F,doc:m})}if(p===Z){let m=f.type===B?f.flatContents:f.negate?Fe(f.contents):f.contents;m&&o.push({ind:l,mode:F,doc:m})}break}case R:D.push({ind:l,mode:F,doc:f.contents});break;case I:D.length>0&&o.push({ind:l,mode:F,doc:Pe});break;case x:switch(F){case Z:if(f.hard)a=!0;else{f.soft||(s.push(" "),u+=1);break}case L:if(D.length>0){o.push({ind:l,mode:F,doc:f},...D.reverse()),D.length=0;break}f.literal?l.root?(s.push(i,l.root.value),u=l.root.length):(s.push(i),u=0):(u-=Lt(s),s.push(i+l.value),u=l.length);break}break;case k:o.push({ind:l,mode:F,doc:f.contents});break;case O:break;default:throw new te(f)}o.length===0&&D.length>0&&(o.push(...D.reverse()),D.length=0)}let d=s.indexOf(qe);if(d!==-1){let l=s.indexOf(qe,d+1),F=s.slice(0,d).join(""),f=s.slice(d+1,l).join(""),p=s.slice(l+1).join("");return{formatted:F+f+p,cursorNodeStart:F.length,cursorNodeText:f}}return{formatted:s.join("")}}function re(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...re(n));else{let i=re(n);i!==""&&r.push(i)}return r}return e.type===B?{...e,breakContents:re(e.breakContents),flatContents:re(e.flatContents)}:e.type===A?{...e,contents:re(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(re)}:e.type===w?{type:"fill",parts:e.parts.map(re)}:e.contents?{...e,contents:re(e.contents)}:e}function Fn(e){let t=Object.create(null),r=new Set;return n(re(e));function n(u,o,s){var a,D;if(typeof u=="string")return JSON.stringify(u);if(Array.isArray(u)){let c=u.map(n).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(u.type===x){let c=((a=s==null?void 0:s[o+1])==null?void 0:a.type)===O;return u.literal?c?"literalline":"literallineWithoutBreakParent":u.hard?c?"hardline":"hardlineWithoutBreakParent":u.soft?"softline":"line"}if(u.type===O)return((D=s==null?void 0:s[o-1])==null?void 0:D.type)===x&&s[o-1].hard?void 0:"breakParent";if(u.type===N)return"trim";if(u.type===v)return"indent("+n(u.contents)+")";if(u.type===T)return u.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(u.contents)+")":u.n<0?"dedent("+n(u.contents)+")":u.n.type==="root"?"markAsRoot("+n(u.contents)+")":"align("+JSON.stringify(u.n)+", "+n(u.contents)+")";if(u.type===B)return"ifBreak("+n(u.breakContents)+(u.flatContents?", "+n(u.flatContents):"")+(u.groupId?(u.flatContents?"":', ""')+`, { groupId: ${i(u.groupId)} }`:"")+")";if(u.type===P){let c=[];u.negate&&c.push("negate: true"),u.groupId&&c.push(`groupId: ${i(u.groupId)}`);let d=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(u.contents)}${d})`}if(u.type===A){let c=[];u.break&&u.break!=="propagated"&&c.push("shouldBreak: true"),u.id&&c.push(`id: ${i(u.id)}`);let d=c.length>0?`, { ${c.join(", ")} }`:"";return u.expandedStates?`conditionalGroup([${u.expandedStates.map(l=>n(l)).join(",")}]${d})`:`group(${n(u.contents)}${d})`}if(u.type===w)return`fill([${u.parts.map(c=>n(c)).join(", ")}])`;if(u.type===R)return"lineSuffix("+n(u.contents)+")";if(u.type===I)return"lineSuffixBoundary";if(u.type===k)return`label(${JSON.stringify(u.label)}, ${n(u.contents)})`;throw new Error("Unknown doc type "+u.type)}function i(u){if(typeof u!="symbol")return JSON.stringify(String(u));if(u in t)return t[u];let o=u.description||"symbol";for(let s=0;;s++){let a=o+(s>0?` #${s}`:"");if(!r.has(a))return r.add(a),t[u]=`Symbol.for(${JSON.stringify(a)})`}}}function hi(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 be=hi;var $e=class extends Error{name="ConfigError"},Ve=class extends Error{name="UndefinedParserError"};var mn={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.
16
+ 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
17
+ (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"},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).
18
+ The range will extend forwards to the end of the selected statement.
19
+ 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.
20
+ The range will extend backwards to the start of the first line containing the selected statement.
21
+ 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
22
+ 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 lt({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(i=>i.languages??[]),n=[];for(let i of Ci(Object.assign({},...e.map(({options:u})=>u),mn)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(u=>!u.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...Ei(i.choices,r,e)])),i.pluginDefaults=Object.fromEntries(e.filter(u=>{var o;return((o=u.defaultOptions)==null?void 0:o[i.name])!==void 0}).map(u=>[u.name,u.defaultOptions[i.name]])),n.push(i));return{languages:r,options:n}}function*Ei(e,t,r){let n=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let u of i.parsers)if(!n.has(u)){n.add(u);let o=r.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,u)),s=i.name;o!=null&&o.name&&(s+=` (plugin: ${o.name})`),yield{value:u,description:s}}}}function Ci(e){let t=[];for(let[r,n]of Object.entries(e)){let i={name:r,...n};Array.isArray(i.default)&&(i.default=_(!1,i.default,-1).value),t.push(i)}return t}var gi=e=>e.split(/[/\\]/).pop();function hn(e,t){if(!t)return;let r=gi(t).toLowerCase();return e.find(n=>{var i,u;return((i=n.extensions)==null?void 0:i.some(o=>r.endsWith(o)))||((u=n.filenames)==null?void 0:u.some(o=>o.toLowerCase()===r))})}function yi(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function _i(e,t){let r=e.plugins.flatMap(i=>i.languages??[]),n=yi(r,t.language)??hn(r,t.physicalFile)??hn(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var En=_i;var z=kt(zn(),1),gr;function go(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:u,descriptor:o}={}){if(n){if(!u)throw new Error("'FlagSchema' option is required.");if(!o)throw new Error("'descriptor' option is required.")}else o=z.default.apiDescriptor;let s=i?Array.isArray(i)?(l,F)=>i.includes(l)?{[l]:F}:void 0:(l,F)=>({[l]:F}):(l,F,f)=>{let{_:p,...m}=f.schemas;return z.default.levenUnknownHandler(l,F,{...f,schemas:m})},a=yo(t,{isCLI:n,FlagSchema:u}),D=new z.default.Normalizer(a,{logger:r,unknown:s,descriptor:o}),c=r!==!1;c&&gr&&(D._hasDeprecationWarned=gr);let d=D.normalize(e);return c&&(gr=D._hasDeprecationWarned),d}function yo(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(z.default.AnySchema.create({name:"_"}));for(let i of e)n.push(_o(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(z.default.AliasSchema.create({name:i.alias,sourceName:i.name}));return n}function _o(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e,u={name:i},o,s={};switch(e.type){case"int":o=z.default.IntegerSchema,t&&(u.preprocess=Number);break;case"string":o=z.default.StringSchema;break;case"choice":o=z.default.ChoiceSchema,u.choices=e.choices.map(a=>a!=null&&a.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":o=z.default.BooleanSchema;break;case"flag":o=n,u.flags=r.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;case"path":o=z.default.StringSchema;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?u.validate=(a,D,c)=>e.exception(a)||D.validate(a,c):u.validate=(a,D,c)=>a===void 0||D.validate(a,c),e.redirect&&(s.redirect=a=>a?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let a=u.preprocess||(D=>D);u.preprocess=(D,c,d)=>c.preprocess(a(Array.isArray(D)?_(!1,D,-1):D),d)}return e.array?z.default.ArraySchema.create({...t?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...s,valueSchema:o.create(u)}):o.create({...u,...s})}var Wn=go;function yr(e,t){if(!t)throw new Error("parserName is required.");for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t))return i}let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new $e(r)}function Gn(e,t){if(!t)throw new Error("astFormat is required.");for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t))return i}let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new $e(r)}function Ct({plugins:e,parser:t}){let r=yr(e,t);return _r(r,t)}function _r(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function Un(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var Kn={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function xo(e,t={}){var d;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=En(r,{physicalFile:r.filepath}),!r.parser)throw new Ve(`No parser could be inferred for file "${r.filepath}".`)}else throw new Ve("No parser and no file path given, couldn't infer a parser.");let n=lt({plugins:e.plugins,showDeprecated:!0}).options,i={...Kn,...Object.fromEntries(n.filter(l=>l.default!==void 0).map(l=>[l.name,l.default]))},u=yr(r.plugins,r.parser),o=await _r(u,r.parser);r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let s=(d=u.printers)!=null&&d[o.astFormat]?u:Gn(r.plugins,o.astFormat),a=await Un(s,o.astFormat);r.printer=a;let D=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,l])=>l!==void 0)):{},c={...i,...D};for(let[l,F]of Object.entries(c))(r[l]===null||r[l]===void 0)&&(r[l]=F);return r.parser==="json"&&(r.trailingComma="none"),Wn(r,n,{passThrough:Object.keys(Kn),...t})}var le=xo;var Hn=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),bo=e=>Object.keys(e).filter(t=>!Hn.has(t));function Ao(e){return e?t=>e(t,Hn):bo}var ee=Ao;function Bo(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let i=ee(n),u=r.ignoredProperties??new Set;return o(e);function o(s,a){if(!(s!==null&&typeof s=="object"))return s;if(Array.isArray(s))return s.map(l=>o(l,a)).filter(Boolean);let D={},c=new Set(i(s));for(let l in s)!Object.prototype.hasOwnProperty.call(s,l)||u.has(l)||(c.has(l)?D[l]=o(s[l],s):D[l]=s[l]);let d=r(s,D,a);if(d!==null)return d??D}}var Jn=Bo;var nu=kt(ru(),1);async function To(e,t){let r=await Ct(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let i;try{i=await r.parse(n,t,t)}catch(u){No(u,e)}return{text:n,ast:i}}function No(e,t){let{loc:r}=e;if(r){let n=(0,nu.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=`
23
+ `+n,e.codeFrame=n,e}throw e}var Ee=To;var Ke,Ar,Be,yt,br=class{constructor(t){St(this,Ke);St(this,Be);this.stack=[t]}get key(){let{stack:t,siblings:r}=this;return _(!1,t,r===null?-2:-4)??null}get index(){return this.siblings===null?null:_(!1,this.stack,-2)}get node(){return _(!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=_(!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[...ye(this,Be,yt).call(this)]}getName(){let{stack:t}=this,{length:r}=t;return r>1?_(!1,t,-2):null}getValue(){return _(!1,this.stack,-1)}getNode(t=0){let r=ye(this,Ke,Ar).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,u=_(!1,n,-1);for(let o of r)u=u[o],n.push(o,u);try{return t(this)}finally{n.length=i}}callParent(t,r=0){let n=ye(this,Ke,Ar).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,u=_(!1,n,-1);for(let o of r)u=u[o],n.push(o,u);try{for(let o=0;o<u.length;++o)n.push(o,u[o]),t(this,o,u),n.length-=2}finally{n.length=i}}map(t,...r){let n=[];return this.each((i,u,o)=>{n[u]=t(i,u,o)},...r),n}match(...t){let r=this.stack.length-1,n=null,i=this.stack[r--];for(let u of t){if(i===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[r--],i=this.stack[r--]),u&&!u(i,n,o))return!1;n=this.stack[r--],i=this.stack[r--]}return!0}findAncestor(t){for(let r of ye(this,Be,yt).call(this))if(t(r))return r}hasAncestor(t){for(let r of ye(this,Be,yt).call(this))if(t(r))return!0;return!1}};Ke=new WeakSet,Ar=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},Be=new WeakSet,yt=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 uu=br;var He=()=>{};He.ok=He;He.strictEqual=He;var Je=He;function we(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=t,o=r;for(;o>=0&&o<u;){let s=t.charAt(o);if(e instanceof RegExp){if(!e.test(s))return o}else if(!e.includes(s))return o;i?o--:o++}return o===-1||o===u?o:!1}}var iu=we(/\s/),S=we(" "),_t=we(",; "),xt=we(/[^\n\r]/);function Po(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===`
24
+ `)return t-2;if(i===`
25
+ `||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
26
+ `)return t+2;if(i===`
27
+ `||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var q=Po;function Ro(e,t,r={}){let n=S(e,r.backwards?t-1:t,r),i=q(e,n,r);return n!==i}var W=Ro;function Io(e){return Array.isArray(e)&&e.length>0}var Br=Io;function Lo(e){return e!==null&&typeof e=="object"}var ou=Lo;function*wr(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=u=>ou(u)&&n(u);for(let u of r(e)){let o=e[u];if(Array.isArray(o))for(let s of o)i(s)&&(yield s);else i(o)&&(yield o)}}function*su(e,t){let r=[e];for(let n=0;n<r.length;n++){let i=r[n];for(let u of wr(i,t))yield u,r.push(u)}}function jo(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 Or(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=jo(e)}function fe(e,t){t.leading=!0,t.trailing=!1,Or(e,t)}function oe(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Or(e,t)}function pe(e,t){t.leading=!1,t.trailing=!0,Or(e,t)}var kr=new WeakMap;function bt(e,t){if(kr.has(e))return kr.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:i},locStart:u,locEnd:o}=t;if(!n)return[];let s=((r==null?void 0:r(e,t))??[...wr(e,{getVisitorKeys:ee(i)})]).flatMap(a=>n(a)?[a]:bt(a,t));return s.sort((a,D)=>u(a)-u(D)||o(a)-o(D)),kr.set(e,s),s}function Du(e,t,r,n){let{locStart:i,locEnd:u}=r,o=i(t),s=u(t),a=bt(e,r),D,c,d=0,l=a.length;for(;d<l;){let F=d+l>>1,f=a[F],p=i(f),m=u(f);if(p<=o&&s<=m)return Du(f,t,r,f);if(m<=o){D=f,d=F+1;continue}if(s<=p){c=f,l=F;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:F}=n,f=vr(F,t,r);D&&vr(F,D,r)!==f&&(D=null),c&&vr(F,c,r)!==f&&(c=null)}return{enclosingNode:n,precedingNode:D,followingNode:c}}var Sr=()=>!1;function cu(e,t){let{comments:r}=e;if(delete e.comments,!Br(r)||!t.printer.canAttachComment)return;let n=[],{locStart:i,locEnd:u,printer:{experimentalFeatures:{avoidAstMutation:o=!1}={},handleComments:s={}},originalText:a}=t,{ownLine:D=Sr,endOfLine:c=Sr,remaining:d=Sr}=s,l=r.map((F,f)=>({...Du(e,F,t),comment:F,text:a,options:t,ast:e,isLastComment:r.length-1===f}));for(let[F,f]of l.entries()){let{comment:p,precedingNode:m,enclosingNode:h,followingNode:C,text:g,options:y,ast:b,isLastComment:se}=f;if(y.parser==="json"||y.parser==="json5"||y.parser==="__js_expression"||y.parser==="__ts_expression"||y.parser==="__vue_expression"||y.parser==="__vue_ts_expression"){if(i(p)-i(b)<=0){fe(b,p);continue}if(u(p)-u(b)>=0){pe(b,p);continue}}let G;if(o?G=[f]:(p.enclosingNode=h,p.precedingNode=m,p.followingNode=C,G=[p,g,y,b,se]),Yo(g,y,l,F))p.placement="ownLine",D(...G)||(C?fe(C,p):m?pe(m,p):h?oe(h,p):oe(b,p));else if(Mo(g,y,l,F))p.placement="endOfLine",c(...G)||(m?pe(m,p):C?fe(C,p):h?oe(h,p):oe(b,p));else if(p.placement="remaining",!d(...G))if(m&&C){let ae=n.length;ae>0&&n[ae-1].followingNode!==C&&au(n,y),n.push(f)}else m?pe(m,p):C?fe(C,p):h?oe(h,p):oe(b,p)}if(au(n,t),!o)for(let F of r)delete F.precedingNode,delete F.enclosingNode,delete F.followingNode}var lu=e=>!/[\S\n\u2028\u2029]/.test(e);function Yo(e,t,r,n){let{comment:i,precedingNode:u}=r[n],{locStart:o,locEnd:s}=t,a=o(i);if(u)for(let D=n-1;D>=0;D--){let{comment:c,precedingNode:d}=r[D];if(d!==u||!lu(e.slice(s(c),a)))break;a=o(c)}return W(e,a,{backwards:!0})}function Mo(e,t,r,n){let{comment:i,followingNode:u}=r[n],{locStart:o,locEnd:s}=t,a=s(i);if(u)for(let D=n+1;D<r.length;D++){let{comment:c,followingNode:d}=r[D];if(d!==u||!lu(e.slice(a,o(c))))break;a=s(c)}return W(e,a)}function au(e,t){var s,a;let r=e.length;if(r===0)return;let{precedingNode:n,followingNode:i}=e[0],u=t.locStart(i),o;for(o=r;o>0;--o){let{comment:D,precedingNode:c,followingNode:d}=e[o-1];Je.strictEqual(c,n),Je.strictEqual(d,i);let l=t.originalText.slice(t.locEnd(D),u);if(((a=(s=t.printer).isGap)==null?void 0:a.call(s,l,t))??/^[\s(]*$/.test(l))u=t.locStart(D);else break}for(let[D,{comment:c}]of e.entries())D<o?pe(n,c):fe(i,c);for(let D of[n,i])D.comments&&D.comments.length>1&&D.comments.sort((c,d)=>t.locStart(c)-t.locStart(d));e.length=0}function vr(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 qo(e,t){let r=t-1;r=S(e,r,{backwards:!0}),r=q(e,r,{backwards:!0}),r=S(e,r,{backwards:!0});let n=q(e,r,{backwards:!0});return r!==n}var Xe=qo;function fu(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function $o(e,t){var c;let r=e.node,n=[fu(e,t)],{printer:i,originalText:u,locStart:o,locEnd:s}=t;if((c=i.isBlockComment)==null?void 0:c.call(i,r)){let d=W(u,s(r))?W(u,o(r),{backwards:!0})?X:ut:" ";n.push(d)}else n.push(X);let D=q(u,S(u,s(r)));return D!==!1&&W(u,D)&&n.push(X),n}function Vo(e,t,r){var D;let n=e.node,i=fu(e,t),{printer:u,originalText:o,locStart:s}=t,a=(D=u.isBlockComment)==null?void 0:D.call(u,n);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||W(o,s(n),{backwards:!0})){let c=Xe(o,s(n));return{doc:Ne([X,c?X:"",i]),isBlock:a,hasLineSuffix:!0}}return!a||r!=null&&r.hasLineSuffix?{doc:[Ne([" ",i]),_e],isBlock:a,hasLineSuffix:!0}:{doc:[" ",i],isBlock:a,hasLineSuffix:!1}}function zo(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(a=>!n.has(a)).length===0)return{leading:"",trailing:""};let u=[],o=[],s;return e.each(()=>{let a=e.node;if(n!=null&&n.has(a))return;let{leading:D,trailing:c}=a;D?u.push($o(e,t)):c&&(s=Vo(e,t,s),o.push(s.doc))},"comments"),{leading:u,trailing:o}}function pu(e,t,r){let{leading:n,trailing:i}=zo(e,r);return!n&&!i?t:Dt(t,u=>[n,u,i])}function du(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}async function Fu(e,t,r,n,i){let{embeddedLanguageFormatting:u,printer:{embed:o,hasPrettierIgnore:s=()=>!1,getVisitorKeys:a}}=r;if(!o||u!=="auto")return;if(o.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 D=ee(o.getVisitorKeys??a),c=[];F();let d=e.stack;for(let{print:f,node:p,pathStack:m}of c)try{e.stack=m;let h=await f(l,t,e,r);h&&i.set(p,h)}catch(h){if(globalThis.PRETTIER_DEBUG)throw h}e.stack=d;function l(f,p){return Wo(f,p,r,n)}function F(){let{node:f}=e;if(f===null||typeof f!="object"||s(e))return;for(let m of D(f))Array.isArray(f[m])?e.each(F,m):e.call(F,m);let p=o(e,r);if(p){if(typeof p=="function"){c.push({print:p,node:f,pathStack:[...e.stack]});return}i.set(f,p)}}}async function Wo(e,t,r,n){let i=await le({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:u}=await Ee(e,i),o=await n(u,i);return at(o)}function Go(e){return()=>{}}var mu=Go;function Uo(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:u,[Symbol.for("printedComments")]:o}=t,{node:s}=e,a=i(s),D=u(s);for(let c of n)i(c)>=a&&u(c)<=D&&o.add(c);return r.slice(a,D)}var hu=Uo;async function Ze(e,t){({ast:e}=await Tr(e,t));let r=new Map,n=new uu(e),i=mu(t),u=new Map;await Fu(n,s,t,Ze,u);let o=await Eu(n,t,s,void 0,u);return du(t),o;function s(D,c){return D===void 0||D===n?a(c):Array.isArray(D)?n.call(()=>a(c),...D):n.call(()=>a(c),D)}function a(D){i(n);let c=n.node;if(c==null)return"";let d=c&&typeof c=="object"&&D===void 0;if(d&&r.has(c))return r.get(c);let l=Eu(n,t,s,D,u);return d&&r.set(c,l),l}}function Eu(e,t,r,n,i){var a;let{node:u}=e,{printer:o}=t,s;return(a=o.hasPrettierIgnore)!=null&&a.call(o,e)?s=hu(e,t):i.has(u)?s=i.get(u):s=o.print(e,t,r,n),o.printComment&&(!o.willPrintOwnComments||!o.willPrintOwnComments(e,t))&&(s=pu(e,s,t)),u===t.cursorNode&&(s=Dt(s,D=>[Re,D,Re])),s}async function Tr(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,cu(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}var Ko=({parser:e})=>e==="json"||e==="json5"||e==="json-stringify";function Ho(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(i=>yu.has(i.type)&&n.has(i))}function Cu(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 Jo(e,t,{locStart:r,locEnd:n}){let i=e.node,u=t.node;if(i===u)return{startNode:i,endNode:u};let o=r(e.node);for(let a of Cu(t.parentNodes))if(r(a)>=o)u=a;else break;let s=n(t.node);for(let a of Cu(e.parentNodes)){if(n(a)<=s)i=a;else break;if(i===u)break}return{startNode:i,endNode:u}}function Nr(e,t,r,n,i=[],u){let{locStart:o,locEnd:s}=r,a=o(e),D=s(e);if(!(t>D||t<a||u==="rangeEnd"&&t===a||u==="rangeStart"&&t===D)){for(let c of bt(e,r)){let d=Nr(c,t,r,n,[e,...i],u);if(d)return d}if(!n||n(e,i[0]))return{node:e,parentNodes:i}}}function Xo(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 yu=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),Zo=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function gu(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 Xo(t.type,r==null?void 0:r.type);case"json":case"json5":case"json-stringify":return yu.has(t.type);case"graphql":return Zo.has(t.kind);case"vue":return t.tag!=="root"}return!1}function _u(e,t,r){let{rangeStart:n,rangeEnd:i,locStart:u,locEnd:o}=t;Je.ok(i>n);let s=e.slice(n,i).search(/\S/),a=s===-1;if(!a)for(n+=s;i>n&&!/\S/.test(e[i-1]);--i);let D=Nr(r,n,t,(F,f)=>gu(t,F,f),[],"rangeStart"),c=a?D:Nr(r,i,t,F=>gu(t,F),[],"rangeEnd");if(!D||!c)return{rangeStart:0,rangeEnd:0};let d,l;if(Ko(t)){let F=Ho(D,c);d=F,l=F}else({startNode:d,endNode:l}=Jo(D,c,t));return{rangeStart:Math.min(u(d),u(l)),rangeEnd:Math.max(o(d),o(l))}}function Qo(e,t){let{cursorOffset:r,locStart:n,locEnd:i}=t,u=ee(t.printer.getVisitorKeys),o=a=>n(a)<=r&&i(a)>=r,s=e;for(let a of su(e,{getVisitorKeys:u,filter:o}))s=a;return s}var xu=Qo;var Ou="\uFEFF",bu=Symbol("cursor");async function ku(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await Ee(e,t);t.cursorOffset>=0&&(t.cursorNode=xu(n,t));let u=await Ze(n,t,r);r>0&&(u=ot([X,u],r,t.tabWidth));let o=xe(u,t);if(r>0){let a=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(a)),o.formatted=a+Le(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let a,D,c,d,l;if(t.cursorNode&&o.cursorNodeText?(a=t.locStart(t.cursorNode),D=i.slice(a,t.locEnd(t.cursorNode)),c=t.cursorOffset-a,d=o.cursorNodeStart,l=o.cursorNodeText):(a=0,D=i,c=t.cursorOffset,d=0,l=o.formatted),D===l)return{formatted:o.formatted,cursorOffset:d+c,comments:s};let F=D.split("");F.splice(c,0,bu);let f=l.split(""),p=(0,wu.diffArrays)(F,f),m=d;for(let h of p)if(h.removed){if(h.value.includes(bu))break}else m+=h.count;return{formatted:o.formatted,cursorOffset:m,comments:s}}return{formatted:o.formatted,cursorOffset:-1,comments:s}}async function es(e,t){let{ast:r,text:n}=await Ee(e,t),{rangeStart:i,rangeEnd:u}=_u(n,t,r),o=n.slice(i,u),s=Math.min(i,n.lastIndexOf(`
28
+ `,i)+1),a=n.slice(s,i).match(/^\s*/)[0],D=be(a,t.tabWidth),c=await ku(o,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=u?t.cursorOffset-i:-1,endOfLine:"lf"},D),d=c.formatted.trimEnd(),{cursorOffset:l}=t;l>u?l+=d.length-o.length:c.cursorOffset>=0&&(l=c.cursorOffset+i);let F=n.slice(0,i)+d+n.slice(u);if(t.endOfLine!=="lf"){let f=Le(t.endOfLine);l>=0&&f===`\r
29
+ `&&(l+=Rt(F.slice(0,l),`
30
+ `)),F=De(!1,F,`
31
+ `,f)}return{formatted:F,cursorOffset:l,comments:c.comments}}function Pr(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function Au(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=Pr(e,r,-1),n=Pr(e,n,0),i=Pr(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function Su(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:u}=Au(e,t),o=e.charAt(0)===Ou;if(o&&(e=e.slice(1),r--,n--,i--),u==="auto"&&(u=tn(e)),e.includes("\r")){let s=a=>Rt(e.slice(0,Math.max(a,0)),`\r
32
+ `);r-=s(r),n-=s(n),i-=s(i),e=rn(e)}return{hasBOM:o,text:e,options:Au(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:u})}}async function Bu(e,t){let r=await Ct(t);return!r.hasPragma||r.hasPragma(e)}async function Rr(e,t){let{hasBOM:r,text:n,options:i}=Su(e,await le(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await Bu(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let u;return i.rangeStart>0||i.rangeEnd<n.length?u=await es(n,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await Bu(n,i)&&(n=i.printer.insertPragma(n)),u=await ku(n,i)),r&&(u.formatted=Ou+u.formatted,u.cursorOffset>=0&&u.cursorOffset++),u}async function vu(e,t,r){let{text:n,options:i}=Su(e,await le(t)),u=await Ee(n,i);return r&&(r.preprocessForPrint&&(u.ast=await Tr(u.ast,i)),r.massage&&(u.ast=Jn(u.ast,i))),u}async function Tu(e,t){t=await le(t);let r=await Ze(e,t);return xe(r,t)}async function Nu(e,t){let r=Fn(e),{formatted:n}=await Rr(r,{...t,parser:"__js_expression"});return n}async function Pu(e,t){t=await le(t);let{ast:r}=await Ee(e,t);return Ze(r,t)}async function Ru(e,t){return xe(e,await le(t))}var Bt={};ge(Bt,{addDanglingComment:()=>oe,addLeadingComment:()=>fe,addTrailingComment:()=>pe,getAlignmentSize:()=>be,getIndentSize:()=>Lu,getMaxContinuousCount:()=>Iu,getNextNonSpaceNonCommentCharacter:()=>Mu,getNextNonSpaceNonCommentCharacterIndex:()=>ps,getStringWidth:()=>je,hasNewline:()=>W,hasNewlineInRange:()=>ju,hasSpaces:()=>Yu,isNextLineEmpty:()=>hs,isNextLineEmptyAfterIndex:()=>At,isPreviousLineEmpty:()=>Fs,makeString:()=>qu,skip:()=>we,skipEverythingButNewLine:()=>xt,skipInlineComment:()=>Oe,skipNewline:()=>q,skipSpaces:()=>S,skipToLineEnd:()=>_t,skipTrailingComment:()=>ke,skipWhitespace:()=>iu});function rs(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 Oe=rs;function ns(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?xt(e,t):t}var ke=ns;function us(e,t){let r=null,n=t;for(;n!==r;)r=n,n=S(e,n),n=Oe(e,n),n=ke(e,n),n=q(e,n);return n}var Qe=us;function is(e,t){let r=null,n=t;for(;n!==r;)r=n,n=_t(e,n),n=Oe(e,n),n=S(e,n);return n=ke(e,n),n=q(e,n),n!==!1&&W(e,n)}var At=is;function Ir(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function os(e,t){let r=e.match(new RegExp(`(${Ir(t)})+`,"g"));return r===null?0:r.reduce((n,i)=>Math.max(n,i.length/t.length),0)}var Iu=os;function ss(e,t){let r=e.lastIndexOf(`
33
+ `);return r===-1?0:be(e.slice(r+1).match(/^[\t ]*/)[0],t)}var Lu=ss;function as(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
34
+ `)return!0;return!1}var ju=as;function Ds(e,t,r={}){return S(e,r.backwards?t-1:t,r)!==t}var Yu=Ds;function cs(e,t){let r=Qe(e,t);return r===!1?"":e.charAt(r)}var Mu=cs;function ls(e,t,r){let n=t==='"'?"'":'"',u=De(!1,e,/\\(.)|(["'])/gs,(o,s,a)=>s===n?s:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(s)?s:"\\"+s));return t+u+t}var qu=ls;function fs(e,t,r){return Qe(e,r(t))}function ps(e,t){return arguments.length===2||typeof t=="number"?Qe(e,t):fs(...arguments)}function ds(e,t,r){return Xe(e,r(t))}function Fs(e,t){return arguments.length===2||typeof t=="number"?Xe(e,t):ds(...arguments)}function ms(e,t,r){return At(e,r(t))}function hs(e,t){return arguments.length===2||typeof t=="number"?At(e,t):ms(...arguments)}var wt={};ge(wt,{builders:()=>Es,printer:()=>Cs,utils:()=>gs});var Es={join:Ie,line:ut,softline:Qr,hardline:X,literalline:it,group:Nt,conditionalGroup:Kr,fill:nt,lineSuffix:Ne,lineSuffixBoundary:Xr,cursor:Re,breakParent:_e,ifBreak:Hr,trim:Zr,indent:Fe,indentIfBreak:Jr,align:de,addAlignmentToDoc:ot,markAsRoot:Gr,dedentToRoot:Wr,dedent:Ur,hardlineWithoutBreakParent:Pe,literallineWithoutBreakParent:Pt,label:en,concat:e=>e},Cs={printDocToString:xe},gs={willBreak:Dn,traverseDoc:Te,findInDoc:st,mapDoc:Me,removeLines:ln,stripTrailingHardline:at,replaceEndOfLine:fn,canBreak:pn};var $u="3.0.0";function Ce(e,t=1){return async(...r)=>{let n=r[t]??{},i=n.plugins??[];return r[t]={...n,plugins:Array.isArray(i)?i:Object.values(i)},e(...r)}}var Vu=Ce(Rr);async function zu(e,t){let{formatted:r}=await Vu(e,{...t,cursorOffset:-1});return r}async function ys(e,t){return await zu(e,t)===e}var _s=Ce(lt,0),xs={parse:Ce(vu),formatAST:Ce(Tu),formatDoc:Ce(Nu),printToDoc:Ce(Pu),printDocToString:Ce(Ru)};var bl=Lr;export{xs as __debug,ys as check,bl as default,wt as doc,zu as format,Vu as formatWithCursor,_s as getSupportInfo,Bt as util,$u as version};
data/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@prettier/plugin-ruby",
3
- "version": "3.2.2",
3
+ "version": "4.0.0",
4
4
  "description": "prettier plugin for the Ruby programming language",
5
+ "type": "module",
5
6
  "main": "src/plugin.js",
6
7
  "scripts": {
7
8
  "checkFormat": "prettier --check '**/*'",
8
9
  "lint": "eslint --cache .",
9
- "test": "jest"
10
+ "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
10
11
  },
11
12
  "repository": {
12
13
  "type": "git",
@@ -19,13 +20,13 @@
19
20
  },
20
21
  "homepage": "https://github.com/prettier/plugin-ruby#readme",
21
22
  "dependencies": {
22
- "prettier": ">=2.3.0"
23
+ "prettier": ">=3.0.0"
23
24
  },
24
25
  "devDependencies": {
25
- "eslint": "^8.15.0",
26
- "eslint-config-prettier": "^8.0.0",
26
+ "eslint": "^8.35.0",
27
+ "eslint-config-prettier": "^8.7.0",
27
28
  "husky": "^8.0.1",
28
- "jest": "^29.0.0",
29
+ "jest": "^29.5.0",
29
30
  "pretty-quick": "^3.1.2"
30
31
  },
31
32
  "eslintConfig": {
@@ -34,12 +35,15 @@
34
35
  "prettier"
35
36
  ],
36
37
  "env": {
37
- "es6": true,
38
38
  "jest": true,
39
39
  "node": true
40
40
  },
41
+ "parserOptions": {
42
+ "ecmaVersion": 2020,
43
+ "sourceType": "module"
44
+ },
41
45
  "rules": {
42
- "no-unused-vars": "off"
46
+ "no-undef": "off"
43
47
  }
44
48
  },
45
49
  "jest": {
@@ -48,7 +52,8 @@
48
52
  "setupFilesAfterEnv": [
49
53
  "./test/js/setupTests.js"
50
54
  ],
51
- "testRegex": ".test.js$"
55
+ "testRegex": ".test.js$",
56
+ "transform": {}
52
57
  },
53
58
  "husky": {
54
59
  "hooks": {
@@ -58,7 +63,7 @@
58
63
  "prettier": {
59
64
  "trailingComma": "none",
60
65
  "plugins": [
61
- "."
66
+ "./src/plugin.js"
62
67
  ]
63
68
  }
64
69
  }