Son CV dans un terminal web en Javascript! https://terminal-cv.gregandev.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terminal-cv/node_modules/prettier/parser-markdown.js

35 lines
172 KiB

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.markdown=t())}(this,(function(){"use strict";var e=function(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var u in n)t.call(n,u)&&(e[u]=n[u])}return e},t=Object.prototype.hasOwnProperty;var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function u(e){var t={exports:{}};return e(t,t.exports),t.exports}var i=void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},o=[],a=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,s=!1;function l(){s=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)o[t]=e[t],a[e.charCodeAt(t)]=t;a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63}function f(e){return o[e>>18&63]+o[e>>12&63]+o[e>>6&63]+o[63&e]}function D(e,t,r){for(var n,u=[],i=t;i<r;i+=3)n=(e[i]<<16)+(e[i+1]<<8)+e[i+2],u.push(f(n));return u.join("")}function p(e){var t;s||l();for(var r=e.length,n=r%3,u="",i=[],a=16383,c=0,f=r-n;c<f;c+=a)i.push(D(e,c,c+a>f?f:c+a));return 1===n?(t=e[r-1],u+=o[t>>2],u+=o[t<<4&63],u+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],u+=o[t>>10],u+=o[t>>4&63],u+=o[t<<2&63],u+="="),i.push(u),i.join("")}function h(e,t,r,n,u){var i,o,a=8*u-n-1,c=(1<<a)-1,s=c>>1,l=-7,f=r?u-1:0,D=r?-1:1,p=e[t+f];for(f+=D,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=D,l-=8);for(o=i&(1<<-l)-1,i>>=-l,l+=n;l>0;o=256*o+e[t+f],f+=D,l-=8);if(0===i)i=1-s;else{if(i===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),i-=s}return(p?-1:1)*o*Math.pow(2,i-n)}function d(e,t,r,n,u,i){var o,a,c,s=8*i-u-1,l=(1<<s)-1,f=l>>1,D=23===u?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+f>=1?D/c:D*Math.pow(2,1-f))*c>=2&&(o++,c/=2),o+f>=l?(a=0,o=l):o+f>=1?(a=(t*c-1)*Math.pow(2,u),o+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,u),o=0));u>=8;e[r+p]=255&a,p+=h,a/=256,u-=8);for(o=o<<u|a,s+=u;s>0;e[r+p]=255&o,p+=h,o/=256,s-=8);e[r+p-h]|=128*d}var g={}.toString,m=Array.isArray||function(e){return"[object Array]"==g.call(e)};function E(){return v.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function y(e,t){if(E()<t)throw new RangeError("Invalid typed array length");return v.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=v.prototype:(null===e&&(e=new v(t)),e.length=t),e}function v(e,t,r){if(!(v.TYPED_ARRAY_SUPPORT||this instanceof v))return new v(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return A(this,e)}return b(this,e,t,r)}function b(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);v.TYPED_ARRAY_SUPPORT?(e=t).__proto__=v.prototype:e=w(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!v.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|O(t,r),u=(e=y(e,n)).write(t,r);u!==n&&(e=e.slice(0,u));return e}(e,t,r):function(e,t){if(k(t)){var r=0|F(t.length);return 0===(e=y(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?y(e,0):w(e,t);if("Buffer"===t.type&&m(t.data))return w(e,t.data)}var n;throw new TypeError("First argument must be a string
/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/;var vr,br="",Cr=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var r=e.length*t;if(vr!==e||void 0===vr)vr=e,br="";else if(br.length>=r)return br.substr(0,r);for(;r>br.length&&t>1;)1&t&&(br+=e),t>>=1,e+=e;return br=(br+=e).substr(0,r)};var Ar=function(e){return String(e).replace(/\n+$/,"")};var wr=function(e,t,r){var n,u,i,o=-1,a=t.length,c="",s="",l="",f="";for(;++o<a;)if(n=t.charAt(o),i)if(i=!1,c+=l,s+=f,l="",f="","\n"===n)l=n,f=n;else for(c+=n,s+=n;++o<a;){if(!(n=t.charAt(o))||"\n"===n){f=n,l=n;break}c+=n,s+=n}else if(" "===n&&t.charAt(o+1)===n&&t.charAt(o+2)===n&&t.charAt(o+3)===n)l+=Fr,o+=3,i=!0;else if("\t"===n)l+=n,i=!0;else{for(u="";"\t"===n||" "===n;)u+=n,n=t.charAt(++o);if("\n"!==n)break;l+=u+n,f+=n}if(s)return!!r||e(c)({type:"code",lang:null,meta:null,value:Ar(s)})},Fr=Cr(" ",4);var kr=function(e,t,r){var n,u,i,o,a,c,s,l,f,D,p,h,d,g=this,m=g.options.gfm,E=t.length+1,y=0,v="";if(!m)return;for(;y<E&&((i=t.charAt(y))===Sr||i===Tr);)v+=i,y++;if(h=y,"~"!==(i=t.charAt(y))&&"`"!==i)return;y++,u=i,n=1,v+=i;for(;y<E&&(i=t.charAt(y))===u;)v+=i,n++,y++;if(n<3)return;for(;y<E&&((i=t.charAt(y))===Sr||i===Tr);)v+=i,y++;o="",s="";for(;y<E&&(i=t.charAt(y))!==Or&&("`"!==u||i!==u);)i===Sr||i===Tr?s+=i:(o+=s+i,s=""),y++;if((i=t.charAt(y))&&i!==Or)return;if(r)return!0;(d=e.now()).column+=v.length,d.offset+=v.length,v+=o,o=g.decode.raw(g.unescape(o),d),s&&(v+=s);s="",D="",p="",l="",f="";var b=!0;for(;y<E;)if(i=t.charAt(y),l+=D,f+=p,D="",p="",i===Or){for(b?(v+=i,b=!1):(D+=i,p+=i),s="",y++;y<E&&(i=t.charAt(y))===Sr;)s+=i,y++;if(D+=s,p+=s.slice(h),!(s.length>=4)){for(s="";y<E&&(i=t.charAt(y))===u;)s+=i,y++;if(D+=s,p+=s,!(s.length<n)){for(s="";y<E&&((i=t.charAt(y))===Sr||i===Tr);)D+=i,p+=i,y++;if(!i||i===Or)break}}}else l+=i,p+=i,y++;v+=l+D,y=-1,E=o.length;for(;++y<E;)if((i=o.charAt(y))===Sr||i===Tr)a||(a=o.slice(0,y));else if(a){c=o.slice(y);break}return e(v)({type:"code",lang:a||o||null,meta:c||null,value:f})},Or="\n",Tr="\t",Sr=" ";var Ir=u((function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}})),xr=function(e,t,r,n){var u,i,o=e.length,a=-1;for(;++a<o;)if(u=e[a],(void 0===(i=u[1]||{}).pedantic||i.pedantic===r.options.pedantic)&&(void 0===i.commonmark||i.commonmark===r.options.commonmark)&&t[u[0]].apply(r,n))return!0;return!1};var Rr=function(e,t,r){var n,u,i,o,a,c,s,l,f,D=this,p=D.offset,h=D.blockTokenizers,d=D.interruptBlockquote,g=e.now(),m=g.line,E=t.length,y=[],v=[],b=[],C=0;for(;C<E&&(" "===(u=t.charAt(C))||"\t"===u);)C++;if(">"!==t.charAt(C))return;if(r)return!0;C=0;for(;C<E;){for(o=t.indexOf("\n",C),s=C,l=!1,-1===o&&(o=E);C<E&&(" "===(u=t.charAt(C))||"\t"===u);)C++;if(">"===t.charAt(C)?(C++,l=!0," "===t.charAt(C)&&C++):C=s,a=t.slice(C,o),!l&&!Ir(a)){C=s;break}if(!l&&(i=t.slice(C),xr(d,h,D,[e,i,!0])))break;c=s===C?a:t.slice(s,o),b.push(C-s),y.push(c),v.push(a),C=o+1}C=-1,E=b.length,n=e(y.join("\n"));for(;++C<E;)p[m]=(p[m]||0)+b[C],m++;return f=D.enterBlock(),v=D.tokenizeBlock(v.join("\n"),g),f(),n({type:"blockquote",children:v})};var Br=function(e,t,r){var n,u,i,o=this.options.pedantic,a=t.length+1,c=-1,s=e.now(),l="",f="";for(;++c<a;){if((n=t.charAt(c))!==Lr&&n!==Nr){c--;break}l+=n}i=0;for(;++c<=a;){if((n=t.charAt(c))!==Pr){c--;break}l+=n,i++}if(i>6)return;if(!i||!o&&t.charAt(c+1)===Pr)return;a=t.length+1,u="";for(;++c<a;){if((n=t.charAt(c))!==Lr&&n!==Nr){c--;break}u+=n}if(!o&&0===u.length&&n&&"\n"!==n)return;if(r)return!0;l+=u,u="",f="";for(;++c<a&&(n=t.charAt(c))&&"\n"!==n;)if(n===Lr||n===Nr||n===Pr){for(;n===Lr||n===Nr;)u+=n,n=t.charAt(++c);if(o||!f||u||n!==Pr){for(;n===Pr;)u+=n,n=t.charAt(++c);for(;n===Lr||n===Nr;)u+=n,n=t.charAt(++c);c--}else f+=n}else f+=u+n,u="";return s.column+=l.length,s.offset+=l.length,e(l+=f+u)({type:"heading",depth:i,children:this.tokenizeInline(f,s)})},Nr="\t",Lr=" ",Pr="#";var qr=function(e,t,r){var n,u,i,o,a=-1,c=t.length+1,s="";for(;++a<c&&("\t"===(n=t.charAt(a))||" "===n);)s+=n;if("*"!==n&&"-"!==n&&"_
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/;var $u=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},Mu=Object.prototype.hasOwnProperty,zu=Object.prototype.toString,Gu=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,Yu=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===zu.call(e)},Hu=function(e){if(!e||"[object Object]"!==zu.call(e))return!1;var t,r=Mu.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Mu.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Mu.call(e,t)},Xu=function(e,t){Gu&&"__proto__"===t.name?Gu(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Wu=function(e,t){if("__proto__"===t){if(!Mu.call(e,t))return;if(Vu)return Vu(e,t).value}return e[t]},Zu=function e(){var t,r,n,u,i,o,a=arguments[0],c=1,s=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[1]||{},c=2),(null==a||"object"!=typeof a&&"function"!=typeof a)&&(a={});c<s;++c)if(null!=(t=arguments[c]))for(r in t)n=Wu(a,r),a!==(u=Wu(t,r))&&(l&&u&&(Hu(u)||(i=Yu(u)))?(i?(i=!1,o=n&&Yu(n)?n:[]):o=n&&Hu(n)?n:{},Xu(a,{name:r,newValue:e(l,o,u)})):void 0!==u&&Xu(a,{name:r,newValue:u}));return a},Ju=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype},Ku=[].slice,Qu=function(e,t){var r;return function(){var t,i=Ku.call(arguments,0),o=e.length>i.length;o&&i.push(n);try{t=e.apply(null,i)}catch(e){if(o&&r)throw e;return n(e)}o||(t&&"function"==typeof t.then?t.then(u,n):t instanceof Error?n(t):u(t))};function n(){r||(r=!0,t.apply(null,arguments))}function u(e){n(null,e)}};var ei=ri;ri.wrap=Qu;var ti=[].slice;function ri(){var e=[],t={run:function(){var t=-1,r=ti.call(arguments,0,-1),n=arguments[arguments.length-1];if("function"!=typeof n)throw new Error("Expected function as last argument, not "+n);function u(i){var o=e[++t],a=ti.call(arguments,0),c=a.slice(1),s=r.length,l=-1;if(i)n(i);else{for(;++l<s;)null!==c[l]&&void 0!==c[l]||(c[l]=r[l]);r=c,o?Qu(o,u).apply(null,r):n.apply(null,[null].concat(r))}}u.apply(null,[null].concat(r))},use:function(r){if("function"!=typeof r)throw new Error("Expected `fn` to be a function, not "+r);return e.push(r),t}};return t}var ni={}.hasOwnProperty,ui=function(e){if(!e||"object"!=typeof e)return"";if(ni.call(e,"position")||ni.call(e,"type"))return oi(e.position);if(ni.call(e,"start")||ni.call(e,"end"))return oi(e);if(ni.call(e,"line")||ni.call(e,"column"))return ii(e);return""};function ii(e){return e&&"object"==typeof e||(e={}),ai(e.line)+":"+ai(e.column)}function oi(e){return e&&"object"==typeof e||(e={}),ii(e.start)+"-"+ii(e.end)}function ai(e){return e&&"number"==typeof e?e:1}var ci=fi;function si(){}si.prototype=Error.prototype,fi.prototype=new si;var li=fi.prototype;function fi(e,t,r){var n,u,i;"string"==typeof t&&(r=t,t=null),n=function(e){var t,r=[null,null];"string"==typeof e&&(-1===(t=e.indexOf(":"))?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1)));return r}(r),u=ui(t)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(i=t,t=t.start):i.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=u,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=i,this.source=n[0],this.ruleId=n[1]}function Di(e,t){for(var r=0,n=e.length-1;n>=0;n--){var u=e[n];"."===u?e.splice(n,1):".."===u?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}li.file="",li.name="",li.reason="",li.message="",li.stack="",li.fatal=null,li.column=null,li.line=null;var pi=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,hi=function(e){return pi.exec(e).slice(1)};function di(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return(t?"/":"")+(e=Di(wi(e.split("/"),(function(e)
Print (to stderr) where a cursor at the given position would move to after formatting.
This option cannot be used with --range-start and --range-end.
`,cliCategory:ws},endOfLine:{since:"1.15.0",category:ks,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:Cs`
Maintain existing
(mixed values within one file are normalised by looking at what's used after the first line)
`}]},filepath:{since:"1.4.0",category:Os,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:Fs,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:Os,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:Fs},parser:{since:"0.0.10",category:ks,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:ks,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:As},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:ks,description:Cs`
Custom directory that contains prettier plugins in node_modules subdirectory.
Overrides default behavior when plugins are searched relatively to the location of Prettier.
Multiple values are accepted.
`,exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:As},printWidth:{since:"0.0.0",category:ks,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:Os,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Cs`
Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement.
This option cannot be used with --cursor-offset.
`,cliCategory:ws},rangeStart:{since:"1.4.0",category:Os,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Cs`
Format code starting at a given character offset.
The range will extend backwards to the start of the first line containing the selected statement.
This option cannot be used with --cursor-offset.
`,cliCategory:ws},requirePragma:{since:"1.7.0",category:Os,type:"boolean",default:!1,description:Cs`
Require either '@prettier' or '@format' to be present in the file's first docblock comment
in order for it to be formatted.
`,cliCategory:Fs},tabWidth:{type:"int",category:ks,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:ks,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:ks,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};const Ss=["cliName","cliCategory","cliDescription"],Is={compare:Es,lt:ys,gte:vs},xs="2.4.1",Rs={CATEGORY_CONFIG:As,CATEGORY_EDITOR:ws,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:Fs,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:ks,CATEGORY_SPECIAL:Os,options:Ts}.options;var Bs={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:r=!1,showInternal:n=!1}={}){const u=xs.split("-",1)[0],i=e.flatMap((e=>e.languages||[])).filter(s),o=(a=Object.assign({},...e.map((({options:e})=>e)),Rs),c="name",Object.entries(a).map((([e,t])=>Object.assign({[c]:e},t)))).filter((e=>s(e)&&l(e))).sort(((e,t)=>e.name===t.name?0:e.name<t.name?-1:1)).map((function(e){if(n)return e;return So(e,Ss)})).map((t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(s).sort(((e,t)=>Is.compare(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>s(e)&&l(e))),"parser"===t.name&&function(e,t,r){const n=new Set(e.choices.map((e=>e.value)));for(const u of t)if(u.parsers)for(const t of u.parsers)if(!n.has(t)){n.add(t);const i=r.find((e=>e.parsers&&e.parsers[t]));let o=u.name;i&&i.name&&(o+=` (plugin: ${i.name})`),e.choices.push({value:t,description:o})}}(t,i,e));const r=Object.fromEntries(e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).map((e=>[e.name,e.defaultOptions[t.name]])));return Object.assign(Object.assign({},t),{},{pluginDefaults:r})}));var a,c;return{languages:i,options:o};function s(e){return t||!("since"in e)||e.since&&Is.gte(u,e.since)}function l(e){return r||!("deprecated"in e)||e.deprecated&&Is.lt(u,e.deprecated)}}};const{getSupportInfo:Ns}=Bs,Ls=/[^\x20-\x7F]/;function Ps(e){return(t,r,n)=>{const u=n&&n.backwards;if(!1===r)return!1;const{length:i}=t;let o=r;for(;o>=0&&o<i;){const r=t.charAt(o);if(e instanceof RegExp){if(!e.test(r))return o}else if(!e.includes(r))return o;u?o--:o++}return(-1===o||o===i)&&o}}const qs=Ps(/\s/),js=Ps(" \t"),_s=Ps(",; \t"),Us=Ps(/[^\n\r]/);function $s(e,t){if(!1===t)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}function Ms(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?Us(e,t):t)}function zs(e,t,r){const n=r&&r.backwards;if(!1===t)return!1;const u=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&"\n"===u)return t-2;if("\n"===u||"\r"===u||"\u2028"===u||"\u2029"===u)return t-1}else{if("\r"===u&&"\n"===e.charAt(t+1))return t+2;if("\n"===u||"\r"===u||"\u2028"===u||"\u2029"===u)return t+1}return t}function Gs(e,t,r={}){const n=js(e,r.backwards?t-1:t,r);return n!==zs(e,n,r)}function Vs(e,t){let r=null,n=t;for(;n!==r;)r=n,n=_s(e,n),n=$s(e,n),n=js(e,n);return n=Ms(e,n),n=zs(e,n),!1!==n&&Gs(e,n)}function Ys(e,t){let r=null,n=t;for(;n!==r;)r=n,n=js(e,n),n=$s(e,n),n=Ms(e,n),n=zs(e,n);return n}function Hs(e,t,r){return Ys(e,r(t))}function Xs(e,t,r=0){let n=0;for(let u=r;u<e.length;++u)"\t"===e[u]?n=n+t-n%t:n++;return n}function Ws(e,t){const r=e.slice(1,-1),n={quote:'"',regex:/"/g},u={quote:"'",regex:/'/g},i="'"===t?u:n,o=i===u?n:u;let a=i.quote;if(r.includes(i.quote)||r.includes(o.quote)){a=(r.match(i.regex)||[]).length>(r.match(o.regex)||[]).length?o.quote:i.quote}return a}function Zs(e,t,r){const n='"'===t?"'":'"',u=e.replace(/\\(.)|(["'])/gs,((e,u,i)=>u===n?u:i===t?"\\"+i:i||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(u)?u:"\\"+u)));return t+u+t}function Js(e,t){(e