@likec4/mcp 1.57.0 → 1.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
  2. package/dist/chunks/libs/@hono/mcp.mjs +2 -2
  3. package/dist/chunks/libs/@logtape/logtape.mjs +4 -3
  4. package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +1 -1
  5. package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
  6. package/dist/chunks/libs/chevrotain.mjs +25 -25
  7. package/dist/chunks/libs/fdir.mjs +1 -1
  8. package/dist/chunks/libs/hast-util-to-html.mjs +2 -2
  9. package/dist/chunks/libs/langium.mjs +2 -2
  10. package/dist/chunks/libs/mdast-util-find-and-replace.mjs +1 -1
  11. package/dist/chunks/libs/mdast-util-from-markdown.mjs +2 -2
  12. package/dist/chunks/libs/mdast-util-gfm.mjs +5 -5
  13. package/dist/chunks/libs/mdast-util-to-hast.mjs +2 -2
  14. package/dist/chunks/libs/merge-error-cause.mjs +2 -2
  15. package/dist/chunks/libs/nano-spawn.mjs +2 -2
  16. package/dist/chunks/libs/pretty-ms.mjs +1 -1
  17. package/dist/chunks/libs/remeda.mjs +1 -1
  18. package/dist/chunks/libs/ufo.mjs +1 -1
  19. package/dist/chunks/libs/unified.mjs +1 -1
  20. package/dist/chunks/libs/unstorage.mjs +1 -1
  21. package/dist/chunks/libs/which.mjs +1 -1
  22. package/dist/chunks/src.mjs +124 -105
  23. package/dist/cli.mjs +5 -1
  24. package/package.json +21 -21
  25. package/dist/chunks/libs/@chevrotain/utils.mjs +0 -1
  26. package/dist/chunks/libs/bail.mjs +0 -1
  27. package/dist/chunks/libs/ccount.mjs +0 -1
  28. package/dist/chunks/libs/character-entities-html4.mjs +0 -1
  29. package/dist/chunks/libs/character-entities-legacy.mjs +0 -1
  30. package/dist/chunks/libs/citty.mjs +0 -5
  31. package/dist/chunks/libs/comma-separated-tokens.mjs +0 -1
  32. package/dist/chunks/libs/decode-named-character-reference.mjs +0 -1
  33. package/dist/chunks/libs/defu.mjs +0 -1
  34. package/dist/chunks/libs/destr.mjs +0 -1
  35. package/dist/chunks/libs/devlop.mjs +0 -1
  36. package/dist/chunks/libs/escape-string-regexp.mjs +0 -1
  37. package/dist/chunks/libs/extend.mjs +0 -1
  38. package/dist/chunks/libs/is-error-instance.mjs +0 -1
  39. package/dist/chunks/libs/is-plain-obj.mjs +0 -1
  40. package/dist/chunks/libs/isexe.mjs +0 -1
  41. package/dist/chunks/libs/longest-streak.mjs +0 -1
  42. package/dist/chunks/libs/natural-compare-lite.mjs +0 -9
  43. package/dist/chunks/libs/ohash.mjs +0 -1
  44. package/dist/chunks/libs/p-limit.mjs +0 -1
  45. package/dist/chunks/libs/p-timeout.mjs +0 -1
  46. package/dist/chunks/libs/parse-ms.mjs +0 -1
  47. package/dist/chunks/libs/rehype-sanitize.mjs +0 -1
  48. package/dist/chunks/libs/rehype-stringify.mjs +0 -1
  49. package/dist/chunks/libs/remark-gfm.mjs +0 -1
  50. package/dist/chunks/libs/remark-parse.mjs +0 -1
  51. package/dist/chunks/libs/safe-stringify.mjs +0 -1
  52. package/dist/chunks/libs/strip-indent.mjs +0 -1
  53. package/dist/chunks/libs/tinyrainbow.mjs +0 -1
  54. package/dist/chunks/libs/trough.mjs +0 -1
  55. package/dist/chunks/libs/ts-graphviz.mjs +0 -1
  56. package/dist/chunks/libs/unctx.mjs +0 -1
  57. package/dist/chunks/libs/word-wrap.mjs +0 -12
package/dist/cli.mjs CHANGED
@@ -1,2 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import"./chunks/rolldown-runtime.mjs";import{n as e,r as t}from"./chunks/src.mjs";import{n,t as r}from"./chunks/libs/citty.mjs";import{resolve as i}from"node:path";n(r({meta:{name:`likec4-mcp-server`,description:`LikeC4 MCP server`},args:{stdio:{type:`boolean`,description:`use stdio transport (default)`,required:!1},http:{type:`boolean`,description:`use streamable http transport`,required:!1},port:{type:`string`,description:`change http port`,valueHint:`number`,required:!1},graphviz:{type:`enum`,options:[`binary`,`wasm`],description:`use binary or wasm graphviz`,default:`wasm`,required:!1},watch:{type:`boolean`,description:`disable watch for changes`,default:!0,required:!1},workspace:{type:`positional`,description:`change workspace, can be set by LIKEC4_WORKSPACE env`,valueHint:`directory`,required:!1,default:process.env.LIKEC4_WORKSPACE||`.`}},setup({args:e}){if(e.stdio&&(e.http||e.port))throw Error(`stdio and http are mutually exclusive`)},async run({args:n}){let r=n.stdio||!n.http&&!n.port,a=n.port?parseInt(n.port):33335,o=i(n.workspace||`.`);n.watch&&t.warn`watch for changes enabled, use ${`--no-watch`} to consume less resources`,await e({workspacePath:o,graphviz:n.graphviz,mcp:r?`stdio`:{port:a},configureLogger:!0,watch:n.watch})}})).catch(e=>{t.error(e),process.exit(1)});export{};
2
+ import{i as e}from"./chunks/rolldown-runtime.mjs";import{n as t,r as n}from"./chunks/src.mjs";import{resolve as r}from"node:path";import{parseArgs as i}from"node:util";const a=/\d/,o=[`-`,`_`,`/`,`.`];function isUppercase(e=``){if(!a.test(e))return e!==e.toLowerCase()}function splitByCase(e,t){let n=t??o,r=[];if(!e||typeof e!=`string`)return r;let i=``,a,s;for(let t of e){let e=n.includes(t);if(e===!0){r.push(i),i=``,a=void 0;continue}let o=isUppercase(t);if(s===!1){if(a===!1&&o===!0){r.push(i),i=t,a=o;continue}if(a===!0&&o===!1&&i.length>1){let e=i.at(-1);r.push(i.slice(0,Math.max(0,i.length-1))),i=e+t,a=o;continue}}i+=t,a=o,s=e}return r.push(i),r}function upperFirst(e){return e?e[0].toUpperCase()+e.slice(1):``}function lowerFirst(e){return e?e[0].toLowerCase()+e.slice(1):``}function pascalCase(e,t){return e?(Array.isArray(e)?e:splitByCase(e)).map(e=>upperFirst(t?.normalize?e.toLowerCase():e)).join(``):``}function camelCase(e,t){return lowerFirst(pascalCase(e||``,t))}function kebabCase(e,t){return e?(Array.isArray(e)?e:splitByCase(e)).map(e=>e.toLowerCase()).join(t??`-`):``}function snakeCase(e){return kebabCase(e||``,`_`)}function toArray(e){return Array.isArray(e)?e:e===void 0?[]:[e]}function formatLineColumns(e,t=``){let n=[];for(let t of e)for(let[e,r]of t.entries())n[e]=Math.max(n[e]||0,r.length);return e.map(e=>e.map((e,r)=>t+e[r===0?`padStart`:`padEnd`](n[r])).join(` `)).join(`
3
+ `)}function resolveValue(e){return typeof e==`function`?e():e}var CLIError=class extends Error{code;constructor(e,t){super(e),this.name=`CLIError`,this.code=t}};function parseRawArgs(e=[],t={}){let n=new Set(t.boolean||[]),r=new Set(t.string||[]),a=t.alias||{},o=t.default||{},s=new Map,c=new Map;for(let[e,t]of Object.entries(a)){let n=t;for(let t of n)s.set(e,t),c.has(t)||c.set(t,[]),c.get(t).push(e),s.set(t,e),c.has(e)||c.set(e,[]),c.get(e).push(t)}let l={};function getType(e){if(n.has(e))return`boolean`;let t=c.get(e)||[];for(let e of t)if(n.has(e))return`boolean`;return`string`}function isStringType(e){if(r.has(e))return!0;let t=c.get(e)||[];for(let e of t)if(r.has(e))return!0;return!1}let u=new Set([...n,...r,...Object.keys(a),...Object.values(a).flat(),...Object.keys(o)]);for(let e of u)l[e]||(l[e]={type:getType(e),default:o[e]});for(let[e,t]of s.entries())e.length===1&&l[t]&&!l[t].short&&(l[t].short=e);let d=[],f={};for(let t=0;t<e.length;t++){let n=e[t];if(n===`--`){d.push(...e.slice(t));break}if(n.startsWith(`--no-`)){let e=n.slice(5);f[e]=!0;continue}d.push(n)}let p;try{p=i({args:d,options:Object.keys(l).length>0?l:void 0,allowPositionals:!0,strict:!1})}catch{p={values:{},positionals:d}}let m={_:[]};m._=p.positionals;for(let[e,t]of Object.entries(p.values)){let n=t;getType(e)===`boolean`&&typeof t==`string`?n=t!==`false`:isStringType(e)&&typeof t==`boolean`&&(n=``),m[e]=n}for(let[e]of Object.entries(f)){m[e]=!1;let t=s.get(e);t&&(m[t]=!1);let n=c.get(e);if(n)for(let e of n)m[e]=!1}for(let[e,t]of s.entries())m[e]!==void 0&&m[t]===void 0&&(m[t]=m[e]),m[t]!==void 0&&m[e]===void 0&&(m[e]=m[t]),m[e]!==m[t]&&o[t]===m[t]&&(m[t]=m[e]);return m}const s=(()=>{let e=globalThis.process?.env??{};return e.NO_COLOR===`1`||e.TERM===`dumb`||e.TEST||e.CI})(),_c=(e,t=39)=>n=>s?n:`\u001B[${e}m${n}\u001B[${t}m`,c=_c(1,22),l=_c(36),u=_c(90),d=_c(4,24);function parseArgs$1(e,t){let n={boolean:[],string:[],alias:{},default:{}},r=resolveArgs(t);for(let e of r){if(e.type===`positional`)continue;e.type===`string`||e.type===`enum`?n.string.push(e.name):e.type===`boolean`&&n.boolean.push(e.name),e.default!==void 0&&(n.default[e.name]=e.default),e.alias&&(n.alias[e.name]=e.alias);let t=camelCase(e.name),r=kebabCase(e.name);if(t!==e.name||r!==e.name){let i=toArray(n.alias[e.name]||[]);t!==e.name&&!i.includes(t)&&i.push(t),r!==e.name&&!i.includes(r)&&i.push(r),i.length>0&&(n.alias[e.name]=i)}}let i=parseRawArgs(e,n),[...a]=i._,o=new Proxy(i,{get(e,t){return e[t]??e[camelCase(t)]??e[kebabCase(t)]}});for(let[,e]of r.entries())if(e.type===`positional`){let t=a.shift();if(t!==void 0)o[e.name]=t;else if(e.default===void 0&&e.required!==!1)throw new CLIError(`Missing required positional argument: ${e.name.toUpperCase()}`,`EARG`);else o[e.name]=e.default}else if(e.type===`enum`){let t=o[e.name],n=e.options||[];if(t!==void 0&&n.length>0&&!n.includes(t))throw new CLIError(`Invalid value for argument: ${l(`--${e.name}`)} (${l(t)}). Expected one of: ${n.map(e=>l(e)).join(`, `)}.`,`EARG`)}else if(e.required&&o[e.name]===void 0)throw new CLIError(`Missing required argument: --${e.name}`,`EARG`);return o}e(parseArgs$1,`parseArgs`);function resolveArgs(e){let t=[];for(let[n,r]of Object.entries(e||{}))t.push({...r,name:n,alias:toArray(r.alias)});return t}async function resolvePlugins(e){return Promise.all(e.map(e=>resolveValue(e)))}function defineCommand(e){return e}async function runCommand(e,t){let n=await resolveValue(e.args||{}),r=parseArgs$1(t.rawArgs,n),i={rawArgs:t.rawArgs,args:r,data:t.data,cmd:e},a=await resolvePlugins(e.plugins??[]),o,s;try{for(let e of a)await e.setup?.(i);typeof e.setup==`function`&&await e.setup(i);let r=await resolveValue(e.subCommands);if(r&&Object.keys(r).length>0){let i=findSubCommandIndex(t.rawArgs,n),a=t.rawArgs[i];if(a){let e=await _findSubCommand(r,a);if(!e)throw new CLIError(`Unknown command ${l(a)}`,`E_UNKNOWN_COMMAND`);await runCommand(e,{rawArgs:t.rawArgs.slice(i+1)})}else{let n=await resolveValue(e.default);if(n){if(e.run)throw new CLIError(`Cannot specify both 'run' and 'default' on the same command.`,`E_DEFAULT_CONFLICT`);let i=await _findSubCommand(r,n);if(!i)throw new CLIError(`Default sub command ${l(n)} not found in subCommands.`,`E_UNKNOWN_COMMAND`);await runCommand(i,{rawArgs:t.rawArgs})}else if(!e.run)throw new CLIError(`No command specified.`,`E_NO_COMMAND`)}}typeof e.run==`function`&&(o=await e.run(i))}catch(e){s=e}let c=[];if(typeof e.cleanup==`function`)try{await e.cleanup(i)}catch(e){c.push(e)}for(let e of[...a].reverse())try{await e.cleanup?.(i)}catch(e){c.push(e)}if(s)throw s;if(c.length===1)throw c[0];if(c.length>1)throw Error(`Multiple cleanup errors`,{cause:c});return{result:o}}async function resolveSubCommand(e,t,n){let r=await resolveValue(e.subCommands);if(r&&Object.keys(r).length>0){let n=findSubCommandIndex(t,await resolveValue(e.args||{})),i=t[n],a=await _findSubCommand(r,i);if(a)return resolveSubCommand(a,t.slice(n+1),e)}return[e,n]}async function _findSubCommand(e,t){if(t in e)return resolveValue(e[t]);for(let n of Object.values(e)){let e=await resolveValue(n),r=await resolveValue(e?.meta);if(r?.alias&&toArray(r.alias).includes(t))return e}}function findSubCommandIndex(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(r===`--`)return-1;if(r.startsWith(`-`)){!r.includes(`=`)&&_isValueFlag(r,t)&&n++;continue}return n}return-1}function _isValueFlag(e,t){let n=e.replace(/^-{1,2}/,``),r=camelCase(n);for(let[e,i]of Object.entries(t))if(!(i.type!==`string`&&i.type!==`enum`)&&(r===camelCase(e)||(Array.isArray(i.alias)?i.alias:i.alias?[i.alias]:[]).includes(n)))return!0;return!1}async function showUsage(e,t){try{console.log(await renderUsage(e,t)+`
4
+ `)}catch(e){console.error(e)}}const f=/^no[-A-Z]/;async function renderUsage(e,t){let n=await resolveValue(e.meta||{}),r=resolveArgs(await resolveValue(e.args||{})),i=await resolveValue(t?.meta||{}),a=`${i.name?`${i.name} `:``}`+(n.name||process.argv[1]),o=[],s=[],p=[],m=[];for(let e of r)if(e.type===`positional`){let t=e.name.toUpperCase(),n=e.required!==!1&&e.default===void 0;s.push([l(t+renderValueHint(e)),renderDescription(e,n)]),m.push(n?`<${t}>`:`[${t}]`)}else{let t=e.required===!0&&e.default===void 0,n=[...(e.alias||[]).map(e=>`-${e}`),`--${e.name}`].join(`, `)+renderValueHint(e);if(o.push([l(n),renderDescription(e,t)]),e.type===`boolean`&&(e.default===!0||e.negativeDescription)&&!f.test(e.name)){let n=[...(e.alias||[]).map(e=>`--no-${e}`),`--no-${e.name}`].join(`, `);o.push([l(n),[e.negativeDescription,t?u(`(Required)`):``].filter(Boolean).join(` `)])}t&&m.push(`--${e.name}`+renderValueHint(e))}if(e.subCommands){let t=[],n=await resolveValue(e.subCommands);for(let[e,r]of Object.entries(n)){let n=await resolveValue((await resolveValue(r))?.meta);if(n?.hidden)continue;let i=toArray(n?.alias),a=[e,...i].join(`, `);p.push([l(a),n?.description||``]),t.push(e,...i)}m.push(t.join(`|`))}let h=[],g=n.version||i.version;h.push(u(`${n.description} (${a+(g?` v${g}`:``)})`),``);let _=o.length>0||s.length>0;return h.push(`${d(c(`USAGE`))} ${l(`${a}${_?` [OPTIONS]`:``} ${m.join(` `)}`)}`,``),s.length>0&&(h.push(d(c(`ARGUMENTS`)),``),h.push(formatLineColumns(s,` `)),h.push(``)),o.length>0&&(h.push(d(c(`OPTIONS`)),``),h.push(formatLineColumns(o,` `)),h.push(``)),p.length>0&&(h.push(d(c(`COMMANDS`)),``),h.push(formatLineColumns(p,` `)),h.push(``,`Use ${l(`${a} <command> --help`)} for more information about a command.`)),h.filter(e=>typeof e==`string`).join(`
5
+ `)}function renderValueHint(e){let t=e.valueHint?`=<${e.valueHint}>`:``,n=t||`=<${snakeCase(e.name)}>`;return!e.type||e.type===`positional`||e.type===`boolean`?t:e.type===`enum`&&e.options?.length?`=<${e.options.join(`|`)}>`:n}function renderDescription(e,t){let n=t?u(`(Required)`):``,r=e.default===void 0?``:u(`(Default: ${e.default})`);return[e.description,n,r].filter(Boolean).join(` `)}async function runMain(e,t={}){let n=t.rawArgs||process.argv.slice(2),r=t.showUsage||showUsage;try{let t=await _resolveBuiltinFlags(e);if(t.help.length>0&&n.some(e=>t.help.includes(e)))await r(...await resolveSubCommand(e,n)),process.exit(0);else if(n.length===1&&t.version.includes(n[0])){let t=typeof e.meta==`function`?await e.meta():await e.meta;if(!t?.version)throw new CLIError(`No version specified`,`E_NO_VERSION`);console.log(t.version)}else await runCommand(e,{rawArgs:n})}catch(t){t instanceof CLIError?(await r(...await resolveSubCommand(e,n)),console.error(t.message)):console.error(t,`
6
+ `),process.exit(1)}}async function _resolveBuiltinFlags(e){let t=await resolveValue(e.args||{}),n=new Set,r=new Set;for(let[e,i]of Object.entries(t)){n.add(e);for(let e of toArray(i.alias))r.add(e)}return{help:_getBuiltinFlags(`help`,`h`,n,r),version:_getBuiltinFlags(`version`,`v`,n,r)}}function _getBuiltinFlags(e,t,n,r){return n.has(e)||r.has(e)?[]:n.has(t)||r.has(t)?[`--${e}`]:[`--${e}`,`-${t}`]}runMain(defineCommand({meta:{name:`likec4-mcp-server`,description:`LikeC4 MCP server`},args:{stdio:{type:`boolean`,description:`use stdio transport (default)`,required:!1},http:{type:`boolean`,description:`use streamable http transport`,required:!1},port:{type:`string`,description:`change http port`,valueHint:`number`,required:!1},graphviz:{type:`enum`,options:[`binary`,`wasm`],description:`use binary or wasm graphviz`,default:`wasm`,required:!1},watch:{type:`boolean`,description:`disable watch for changes`,default:!0,required:!1},workspace:{type:`positional`,description:`change workspace, can be set by LIKEC4_WORKSPACE env`,valueHint:`directory`,required:!1,default:process.env.LIKEC4_WORKSPACE||`.`}},setup({args:e}){if(e.stdio&&(e.http||e.port))throw Error(`stdio and http are mutually exclusive`)},async run({args:e}){let i=e.stdio||!e.http&&!e.port,a=e.port?parseInt(e.port):33335,o=r(e.workspace||`.`);e.watch&&n.warn`watch for changes enabled, use ${`--no-watch`} to consume less resources`,await t({workspacePath:o,graphviz:e.graphviz,mcp:i?`stdio`:{port:a},configureLogger:!0,watch:e.watch})}})).catch(e=>{n.error(e),process.exit(1)});export{};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@likec4/mcp",
3
3
  "description": "Model Context Protocol server for LikeC4",
4
4
  "license": "MIT",
5
- "version": "1.57.0",
5
+ "version": "1.58.0",
6
6
  "bugs": "https://github.com/likec4/likec4/issues",
7
7
  "homepage": "https://likec4.dev",
8
8
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -41,40 +41,40 @@
41
41
  "server"
42
42
  ],
43
43
  "dependencies": {
44
- "@hpcc-js/wasm-graphviz": "1.21.2",
44
+ "@hpcc-js/wasm-graphviz": "1.21.6",
45
45
  "bundle-require": "^5.1.0",
46
- "esbuild": "0.27.4",
47
- "std-env": "^3.10.0"
46
+ "esbuild": "0.28.0",
47
+ "std-env": "^4.1.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@hono/mcp": "^0.2.5",
50
+ "@hono/mcp": "^0.3.0",
51
51
  "@hono/node-server": "^1.19.14",
52
52
  "@modelcontextprotocol/sdk": "^1.29.0",
53
53
  "@types/node": "~22.19.19",
54
- "@vitest/ui": "4.1.3",
54
+ "@vitest/ui": "4.1.8",
55
55
  "citty": "^0.2.2",
56
56
  "defu": "^6.1.7",
57
57
  "hono": "^4.12.14",
58
58
  "langium": "3.5.0",
59
- "remeda": "^2.33.7",
59
+ "remeda": "^2.37.0",
60
60
  "tinyrainbow": "^3.1.0",
61
- "tsdown": "^0.22.0",
62
- "tsx": "4.21.0",
63
- "turbo": "2.9.14",
64
- "typescript": "5.9.3",
61
+ "tsdown": "^0.22.1",
62
+ "tsx": "4.22.4",
63
+ "turbo": "2.9.16",
64
+ "typescript": "6.0.3",
65
65
  "type-fest": "^4.41.0",
66
66
  "unctx": "^2.5.0",
67
- "vitest": "4.1.3",
67
+ "vitest": "4.1.8",
68
68
  "vscode-uri": "3.1.0",
69
- "zod": "^4.3.6",
70
- "@likec4/config": "1.57.0",
71
- "@likec4/language-server": "1.57.0",
72
- "@likec4/core": "1.57.0",
73
- "@likec4/language-services": "1.57.0",
74
- "@likec4/devops": "1.57.0",
75
- "@likec4/log": "1.57.0",
76
- "@likec4/layouts": "1.57.0",
77
- "@likec4/tsconfig": "1.57.0"
69
+ "zod": "^4.4.3",
70
+ "@likec4/config": "1.58.0",
71
+ "@likec4/core": "1.58.0",
72
+ "@likec4/devops": "1.58.0",
73
+ "@likec4/language-server": "1.58.0",
74
+ "@likec4/language-services": "1.58.0",
75
+ "@likec4/layouts": "1.58.0",
76
+ "@likec4/log": "1.58.0",
77
+ "@likec4/tsconfig": "1.58.0"
78
78
  },
79
79
  "scripts": {
80
80
  "typecheck": "tsc -b --verbose",
@@ -1 +0,0 @@
1
- import"../../rolldown-runtime.mjs";function PRINT_ERROR(e){console&&console.error&&console.error(`Error: ${e}`)}function PRINT_WARNING(e){console&&console.warn&&console.warn(`Warning: ${e}`)}function timer(e){let t=new Date().getTime(),n=e();return{time:new Date().getTime()-t,value:n}}function toFastProperties(e){function FakeConstructor(){}FakeConstructor.prototype=e;let t=new FakeConstructor;function fakeAccess(){return typeof t.bar}return fakeAccess(),fakeAccess(),e}export{PRINT_WARNING as i,timer as n,PRINT_ERROR as r,toFastProperties as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";function bail(e){if(e)throw e}export{bail as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";function ccount(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}export{ccount as t};
@@ -1 +0,0 @@
1
- const e={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`};export{e as t};
@@ -1 +0,0 @@
1
- const e=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`);export{e as t};
@@ -1,5 +0,0 @@
1
- import{i as e}from"../rolldown-runtime.mjs";import{parseArgs as t}from"node:util";const n=/\d/,r=[`-`,`_`,`/`,`.`];function isUppercase(e=``){if(!n.test(e))return e!==e.toLowerCase()}function splitByCase(e,t){let n=t??r,i=[];if(!e||typeof e!=`string`)return i;let a=``,o,s;for(let t of e){let e=n.includes(t);if(e===!0){i.push(a),a=``,o=void 0;continue}let r=isUppercase(t);if(s===!1){if(o===!1&&r===!0){i.push(a),a=t,o=r;continue}if(o===!0&&r===!1&&a.length>1){let e=a.at(-1);i.push(a.slice(0,Math.max(0,a.length-1))),a=e+t,o=r;continue}}a+=t,o=r,s=e}return i.push(a),i}function upperFirst(e){return e?e[0].toUpperCase()+e.slice(1):``}function lowerFirst(e){return e?e[0].toLowerCase()+e.slice(1):``}function pascalCase(e,t){return e?(Array.isArray(e)?e:splitByCase(e)).map(e=>upperFirst(t?.normalize?e.toLowerCase():e)).join(``):``}function camelCase(e,t){return lowerFirst(pascalCase(e||``,t))}function kebabCase(e,t){return e?(Array.isArray(e)?e:splitByCase(e)).map(e=>e.toLowerCase()).join(t??`-`):``}function snakeCase(e){return kebabCase(e||``,`_`)}function toArray(e){return Array.isArray(e)?e:e===void 0?[]:[e]}function formatLineColumns(e,t=``){let n=[];for(let t of e)for(let[e,r]of t.entries())n[e]=Math.max(n[e]||0,r.length);return e.map(e=>e.map((e,r)=>t+e[r===0?`padStart`:`padEnd`](n[r])).join(` `)).join(`
2
- `)}function resolveValue(e){return typeof e==`function`?e():e}var CLIError=class extends Error{code;constructor(e,t){super(e),this.name=`CLIError`,this.code=t}};function parseRawArgs(e=[],n={}){let r=new Set(n.boolean||[]),i=new Set(n.string||[]),a=n.alias||{},o=n.default||{},s=new Map,c=new Map;for(let[e,t]of Object.entries(a)){let n=t;for(let t of n)s.set(e,t),c.has(t)||c.set(t,[]),c.get(t).push(e),s.set(t,e),c.has(e)||c.set(e,[]),c.get(e).push(t)}let l={};function getType(e){if(r.has(e))return`boolean`;let t=c.get(e)||[];for(let e of t)if(r.has(e))return`boolean`;return`string`}function isStringType(e){if(i.has(e))return!0;let t=c.get(e)||[];for(let e of t)if(i.has(e))return!0;return!1}let u=new Set([...r,...i,...Object.keys(a),...Object.values(a).flat(),...Object.keys(o)]);for(let e of u)l[e]||(l[e]={type:getType(e),default:o[e]});for(let[e,t]of s.entries())e.length===1&&l[t]&&!l[t].short&&(l[t].short=e);let d=[],f={};for(let t=0;t<e.length;t++){let n=e[t];if(n===`--`){d.push(...e.slice(t));break}if(n.startsWith(`--no-`)){let e=n.slice(5);f[e]=!0;continue}d.push(n)}let p;try{p=t({args:d,options:Object.keys(l).length>0?l:void 0,allowPositionals:!0,strict:!1})}catch{p={values:{},positionals:d}}let m={_:[]};m._=p.positionals;for(let[e,t]of Object.entries(p.values)){let n=t;getType(e)===`boolean`&&typeof t==`string`?n=t!==`false`:isStringType(e)&&typeof t==`boolean`&&(n=``),m[e]=n}for(let[e]of Object.entries(f)){m[e]=!1;let t=s.get(e);t&&(m[t]=!1);let n=c.get(e);if(n)for(let e of n)m[e]=!1}for(let[e,t]of s.entries())m[e]!==void 0&&m[t]===void 0&&(m[t]=m[e]),m[t]!==void 0&&m[e]===void 0&&(m[e]=m[t]),m[e]!==m[t]&&o[t]===m[t]&&(m[t]=m[e]);return m}const i=(()=>{let e=globalThis.process?.env??{};return e.NO_COLOR===`1`||e.TERM===`dumb`||e.TEST||e.CI})(),_c=(e,t=39)=>n=>i?n:`\u001B[${e}m${n}\u001B[${t}m`,a=_c(1,22),o=_c(36),s=_c(90),c=_c(4,24);function parseArgs$1(e,t){let n={boolean:[],string:[],alias:{},default:{}},r=resolveArgs(t);for(let e of r){if(e.type===`positional`)continue;e.type===`string`||e.type===`enum`?n.string.push(e.name):e.type===`boolean`&&n.boolean.push(e.name),e.default!==void 0&&(n.default[e.name]=e.default),e.alias&&(n.alias[e.name]=e.alias);let t=camelCase(e.name),r=kebabCase(e.name);if(t!==e.name||r!==e.name){let i=toArray(n.alias[e.name]||[]);t!==e.name&&!i.includes(t)&&i.push(t),r!==e.name&&!i.includes(r)&&i.push(r),i.length>0&&(n.alias[e.name]=i)}}let i=parseRawArgs(e,n),[...a]=i._,s=new Proxy(i,{get(e,t){return e[t]??e[camelCase(t)]??e[kebabCase(t)]}});for(let[,e]of r.entries())if(e.type===`positional`){let t=a.shift();if(t!==void 0)s[e.name]=t;else if(e.default===void 0&&e.required!==!1)throw new CLIError(`Missing required positional argument: ${e.name.toUpperCase()}`,`EARG`);else s[e.name]=e.default}else if(e.type===`enum`){let t=s[e.name],n=e.options||[];if(t!==void 0&&n.length>0&&!n.includes(t))throw new CLIError(`Invalid value for argument: ${o(`--${e.name}`)} (${o(t)}). Expected one of: ${n.map(e=>o(e)).join(`, `)}.`,`EARG`)}else if(e.required&&s[e.name]===void 0)throw new CLIError(`Missing required argument: --${e.name}`,`EARG`);return s}e(parseArgs$1,`parseArgs`);function resolveArgs(e){let t=[];for(let[n,r]of Object.entries(e||{}))t.push({...r,name:n,alias:toArray(r.alias)});return t}async function resolvePlugins(e){return Promise.all(e.map(e=>resolveValue(e)))}function defineCommand(e){return e}async function runCommand(e,t){let n=await resolveValue(e.args||{}),r=parseArgs$1(t.rawArgs,n),i={rawArgs:t.rawArgs,args:r,data:t.data,cmd:e},a=await resolvePlugins(e.plugins??[]),s,c;try{for(let e of a)await e.setup?.(i);typeof e.setup==`function`&&await e.setup(i);let r=await resolveValue(e.subCommands);if(r&&Object.keys(r).length>0){let i=findSubCommandIndex(t.rawArgs,n),a=t.rawArgs[i];if(a){let e=await _findSubCommand(r,a);if(!e)throw new CLIError(`Unknown command ${o(a)}`,`E_UNKNOWN_COMMAND`);await runCommand(e,{rawArgs:t.rawArgs.slice(i+1)})}else{let n=await resolveValue(e.default);if(n){if(e.run)throw new CLIError(`Cannot specify both 'run' and 'default' on the same command.`,`E_DEFAULT_CONFLICT`);let i=await _findSubCommand(r,n);if(!i)throw new CLIError(`Default sub command ${o(n)} not found in subCommands.`,`E_UNKNOWN_COMMAND`);await runCommand(i,{rawArgs:t.rawArgs})}else if(!e.run)throw new CLIError(`No command specified.`,`E_NO_COMMAND`)}}typeof e.run==`function`&&(s=await e.run(i))}catch(e){c=e}let l=[];if(typeof e.cleanup==`function`)try{await e.cleanup(i)}catch(e){l.push(e)}for(let e of[...a].reverse())try{await e.cleanup?.(i)}catch(e){l.push(e)}if(c)throw c;if(l.length===1)throw l[0];if(l.length>1)throw Error(`Multiple cleanup errors`,{cause:l});return{result:s}}async function resolveSubCommand(e,t,n){let r=await resolveValue(e.subCommands);if(r&&Object.keys(r).length>0){let n=findSubCommandIndex(t,await resolveValue(e.args||{})),i=t[n],a=await _findSubCommand(r,i);if(a)return resolveSubCommand(a,t.slice(n+1),e)}return[e,n]}async function _findSubCommand(e,t){if(t in e)return resolveValue(e[t]);for(let n of Object.values(e)){let e=await resolveValue(n),r=await resolveValue(e?.meta);if(r?.alias&&toArray(r.alias).includes(t))return e}}function findSubCommandIndex(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(r===`--`)return-1;if(r.startsWith(`-`)){!r.includes(`=`)&&_isValueFlag(r,t)&&n++;continue}return n}return-1}function _isValueFlag(e,t){let n=e.replace(/^-{1,2}/,``),r=camelCase(n);for(let[e,i]of Object.entries(t))if(!(i.type!==`string`&&i.type!==`enum`)&&(r===camelCase(e)||(Array.isArray(i.alias)?i.alias:i.alias?[i.alias]:[]).includes(n)))return!0;return!1}async function showUsage(e,t){try{console.log(await renderUsage(e,t)+`
3
- `)}catch(e){console.error(e)}}const l=/^no[-A-Z]/;async function renderUsage(e,t){let n=await resolveValue(e.meta||{}),r=resolveArgs(await resolveValue(e.args||{})),i=await resolveValue(t?.meta||{}),u=`${i.name?`${i.name} `:``}`+(n.name||process.argv[1]),d=[],f=[],p=[],m=[];for(let e of r)if(e.type===`positional`){let t=e.name.toUpperCase(),n=e.required!==!1&&e.default===void 0;f.push([o(t+renderValueHint(e)),renderDescription(e,n)]),m.push(n?`<${t}>`:`[${t}]`)}else{let t=e.required===!0&&e.default===void 0,n=[...(e.alias||[]).map(e=>`-${e}`),`--${e.name}`].join(`, `)+renderValueHint(e);if(d.push([o(n),renderDescription(e,t)]),e.type===`boolean`&&(e.default===!0||e.negativeDescription)&&!l.test(e.name)){let n=[...(e.alias||[]).map(e=>`--no-${e}`),`--no-${e.name}`].join(`, `);d.push([o(n),[e.negativeDescription,t?s(`(Required)`):``].filter(Boolean).join(` `)])}t&&m.push(`--${e.name}`+renderValueHint(e))}if(e.subCommands){let t=[],n=await resolveValue(e.subCommands);for(let[e,r]of Object.entries(n)){let n=await resolveValue((await resolveValue(r))?.meta);if(n?.hidden)continue;let i=toArray(n?.alias),a=[e,...i].join(`, `);p.push([o(a),n?.description||``]),t.push(e,...i)}m.push(t.join(`|`))}let h=[],g=n.version||i.version;h.push(s(`${n.description} (${u+(g?` v${g}`:``)})`),``);let _=d.length>0||f.length>0;return h.push(`${c(a(`USAGE`))} ${o(`${u}${_?` [OPTIONS]`:``} ${m.join(` `)}`)}`,``),f.length>0&&(h.push(c(a(`ARGUMENTS`)),``),h.push(formatLineColumns(f,` `)),h.push(``)),d.length>0&&(h.push(c(a(`OPTIONS`)),``),h.push(formatLineColumns(d,` `)),h.push(``)),p.length>0&&(h.push(c(a(`COMMANDS`)),``),h.push(formatLineColumns(p,` `)),h.push(``,`Use ${o(`${u} <command> --help`)} for more information about a command.`)),h.filter(e=>typeof e==`string`).join(`
4
- `)}function renderValueHint(e){let t=e.valueHint?`=<${e.valueHint}>`:``,n=t||`=<${snakeCase(e.name)}>`;return!e.type||e.type===`positional`||e.type===`boolean`?t:e.type===`enum`&&e.options?.length?`=<${e.options.join(`|`)}>`:n}function renderDescription(e,t){let n=t?s(`(Required)`):``,r=e.default===void 0?``:s(`(Default: ${e.default})`);return[e.description,n,r].filter(Boolean).join(` `)}async function runMain(e,t={}){let n=t.rawArgs||process.argv.slice(2),r=t.showUsage||showUsage;try{let t=await _resolveBuiltinFlags(e);if(t.help.length>0&&n.some(e=>t.help.includes(e)))await r(...await resolveSubCommand(e,n)),process.exit(0);else if(n.length===1&&t.version.includes(n[0])){let t=typeof e.meta==`function`?await e.meta():await e.meta;if(!t?.version)throw new CLIError(`No version specified`,`E_NO_VERSION`);console.log(t.version)}else await runCommand(e,{rawArgs:n})}catch(t){t instanceof CLIError?(await r(...await resolveSubCommand(e,n)),console.error(t.message)):console.error(t,`
5
- `),process.exit(1)}}async function _resolveBuiltinFlags(e){let t=await resolveValue(e.args||{}),n=new Set,r=new Set;for(let[e,i]of Object.entries(t)){n.add(e);for(let e of toArray(i.alias))r.add(e)}return{help:_getBuiltinFlags(`help`,`h`,n,r),version:_getBuiltinFlags(`version`,`v`,n,r)}}function _getBuiltinFlags(e,t,n,r){return n.has(e)||r.has(e)?[]:n.has(t)||r.has(t)?[`--${e}`]:[`--${e}`,`-${t}`]}export{runMain as n,defineCommand as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";function stringify(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}export{stringify as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";import{t as e}from"./character-entities.mjs";const t={}.hasOwnProperty;function decodeNamedCharacterReference(n){return t.call(e,n)?e[n]:!1}export{decodeNamedCharacterReference as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";function isPlainObject(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function _defu(e,t,n=`.`,r){if(!isPlainObject(t))return _defu(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:isPlainObject(a)&&isPlainObject(i[t])?i[t]=_defu(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function createDefu(e){return(...t)=>t.reduce((t,n)=>_defu(t,n,``,e),{})}const e=createDefu();export{e as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";const e=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,t=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,n=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function jsonParseTransform(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){warnKeyDropped(e);return}return t}function warnKeyDropped(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function destr(r,i={}){if(typeof r!=`string`)return r;if(r[0]===`"`&&r[r.length-1]===`"`&&r.indexOf(`\\`)===-1)return r.slice(1,-1);let a=r.trim();if(a.length<=9)switch(a.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!n.test(r)){if(i.strict)throw SyntaxError(`[destr] Invalid JSON`);return r}try{if(e.test(r)||t.test(r)){if(i.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(r,jsonParseTransform)}return JSON.parse(r)}catch(e){if(i.strict)throw e;return r}}export{destr as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";function ok(){}export{ok as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";function escapeStringRegexp(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}export{escapeStringRegexp as t};
@@ -1 +0,0 @@
1
- import{t as e}from"../rolldown-runtime.mjs";var t=e(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function isArray(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function isPlainObject(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function setProperty(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function getProperty(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function extend(){var e,t,n,r,i,a,u=arguments[0],d=1,f=arguments.length,p=!1;for(typeof u==`boolean`&&(p=u,u=arguments[1]||{},d=2),(u==null||typeof u!=`object`&&typeof u!=`function`)&&(u={});d<f;++d)if(e=arguments[d],e!=null)for(t in e)n=l(u,t),r=l(e,t),u!==r&&(p&&r&&(s(r)||(i=o(r)))?(i?(i=!1,a=n&&o(n)?n:[]):a=n&&s(n)?n:{},c(u,{name:t,newValue:extend(p,a,r)})):r!==void 0&&c(u,{name:t,newValue:r}));return u}}));export{t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";const isErrorInstance=e=>isInstanceOfError(e)||hasErrorTag(e),isInstanceOfError=e=>{try{return e instanceof Error}catch{return!1}},hasErrorTag=t=>{try{return e.has(Object.prototype.toString.call(t))}catch{return!1}},e=new Set([`[object Error]`,`[object DOMException]`,`[object DOMError]`,`[object Exception]`]);export{isErrorInstance as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";function isPlainObject(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}export{isPlainObject as t};
@@ -1 +0,0 @@
1
- import{i as e,n as t,r as n}from"../rolldown-runtime.mjs";import{stat as r}from"node:fs/promises";import{statSync as i}from"node:fs";var a=n({isexe:()=>o,sync:()=>s}),o,s,c,checkMode,l=t((()=>{o=e(async(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return c(await r(e),t)}catch(e){let t=e;if(n||t.code===`EACCES`)return!1;throw t}},`isexe`),s=e((e,t={})=>{let{ignoreErrors:n=!1}=t;try{return c(i(e),t)}catch(e){let t=e;if(n||t.code===`EACCES`)return!1;throw t}},`sync`),c=e((e,t)=>e.isFile()&&checkMode(e,t),`checkStat`),checkMode=(e,t)=>{let n=t.uid??process.getuid?.(),r=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??r[0];if(n===void 0||i===void 0)throw Error(`cannot get uid or gid`);let a=new Set([i,...r]),o=e.mode,s=e.uid,c=e.gid;return!!(o&1||o&8&&a.has(c)||o&64&&s===n||o&72&&n===0)}})),u=n({isexe:()=>d,sync:()=>f}),d,f,checkPathExt,checkStat,p=t((()=>{d=e(async(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return checkStat(await r(e),e,t)}catch(e){let t=e;if(n||t.code===`EACCES`)return!1;throw t}},`isexe`),f=e((e,t={})=>{let{ignoreErrors:n=!1}=t;try{return checkStat(i(e),e,t)}catch(e){let t=e;if(n||t.code===`EACCES`)return!1;throw t}},`sync`),checkPathExt=(e,t)=>{let{pathExt:n=process.env.PATHEXT||``}=t,r=n.split(`;`);if(r.indexOf(``)!==-1)return!0;for(let t=0;t<r.length;t++){let n=r[t].toLowerCase(),i=e.substring(e.length-n.length).toLowerCase();if(n&&i===n)return!0}return!1},checkStat=(e,t,n)=>e.isFile()&&checkPathExt(t,n)})),m=t((()=>{})),h=n({isexe:()=>_,posix:()=>a,sync:()=>v,win32:()=>u}),g,_,v,y=t((()=>{l(),p(),m(),g=(process.env._ISEXE_TEST_PLATFORM_||process.platform)===`win32`?u:a,_=g.isexe,v=g.sync}));export{h as n,y as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";function longestStreak(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}export{longestStreak as t};
@@ -1,9 +0,0 @@
1
- import{t as e}from"../rolldown-runtime.mjs";var t=e(((e,t)=>{
2
- /*
3
- * @version 1.4.0
4
- * @date 2015-10-26
5
- * @stability 3 - Stable
6
- * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
7
- * @license MIT License
8
- */
9
- var naturalCompare=function(e,t){var n,r,i=1,a=0,o=0,s=String.alphabet;function getCode(e,t,r){if(r){for(n=t;r=getCode(e,n),r<76&&r>65;)++n;return+e.slice(t-1,n)}return r=s&&s.indexOf(e.charAt(t)),r>-1?r+76:(r=e.charCodeAt(t)||0,r<45||r>127?r:r<46?65:r<48?r-1:r<58?r+18:r<65?r-11:r<91?r+11:r<97?r-37:r<123?r+5:r-63)}if((e+=``)!=(t+=``)){for(;i;)if(r=getCode(e,a++),i=getCode(t,o++),r<76&&i<76&&r>66&&i>66&&(r=getCode(e,a,a),i=getCode(t,o,a=n),o=n),r!=i)return r<i?-1:1}return 0};try{t.exports=naturalCompare}catch{String.naturalCompare=naturalCompare}}));export{t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";import{createHash as e}from"node:crypto";function serialize(e){return typeof e==`string`?`'${e}'`:new t().serialize(e)}const t=function(){class o{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let e of[`Error`,`RegExp`,`URL`])o.prototype[`$`+e]=function(t){return`${e}(${t})`};for(let e of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])o.prototype[`$`+e]=function(t){return`${e}[${t.join(`,`)}]`};for(let e of[`BigInt64Array`,`BigUint64Array`])o.prototype[`$`+e]=function(t){return`${e}[${t.join(`n,`)}${t.length>0?`n`:``}]`};return o}(),n=globalThis.process?.getBuiltinModule?.(`crypto`)?.hash,r=`sha256`,i=`base64url`;function digest(t){if(n)return n(r,t,i);let a=e(r).update(t);return globalThis.process?.versions?.webcontainer?a.digest().toString(i):a.digest(i)}function hash(e){return digest(serialize(e))}export{hash as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";var Node=class{value;next;constructor(e){this.value=e}},Queue=class{#e;#t;#n;constructor(){this.clear()}enqueue(e){let t=new Node(e);this.#e?(this.#t.next=t,this.#t=t):(this.#e=t,this.#t=t),this.#n++}dequeue(){let e=this.#e;if(e)return this.#e=this.#e.next,this.#n--,this.#e||(this.#t=void 0),e.value}peek(){if(this.#e)return this.#e.value}clear(){this.#e=void 0,this.#t=void 0,this.#n=0}get size(){return this.#n}*[Symbol.iterator](){let e=this.#e;for(;e;)yield e.value,e=e.next}*drain(){for(;this.#e;)yield this.dequeue()}};function pLimit(e){let t=!1;if(typeof e==`object`&&({concurrency:e,rejectOnClear:t=!1}=e),validateConcurrency(e),typeof t!=`boolean`)throw TypeError("Expected `rejectOnClear` to be a boolean");let n=new Queue,r=0,resumeNext=()=>{r<e&&n.size>0&&(r++,n.dequeue().run())},next=()=>{r--,resumeNext()},run=async(e,t,n)=>{let r=(async()=>e(...n))();t(r);try{await r}catch{}next()},enqueue=(t,i,a,o)=>{let s={reject:a};new Promise(e=>{s.run=e,n.enqueue(s)}).then(run.bind(void 0,t,i,o)),r<e&&resumeNext()},generator=(e,...t)=>new Promise((n,r)=>{enqueue(e,n,r,t)});return Object.defineProperties(generator,{activeCount:{get:()=>r},pendingCount:{get:()=>n.size},clearQueue:{value(){if(!t){n.clear();return}let e=AbortSignal.abort().reason;for(;n.size>0;)n.dequeue().reject(e)}},concurrency:{get:()=>e,set(t){validateConcurrency(t),e=t,queueMicrotask(()=>{for(;r<e&&n.size>0;)resumeNext()})}},map:{async value(e,t){let n=Array.from(e,(e,n)=>this(t,e,n));return Promise.all(n)}}}),generator}function validateConcurrency(e){if(!((Number.isInteger(e)||e===1/0)&&e>0))throw TypeError("Expected `concurrency` to be a number from 1 and up")}export{pLimit as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";var e=class TimeoutError extends Error{name=`TimeoutError`;constructor(e,t){super(e,t),Error.captureStackTrace?.(this,TimeoutError)}};const getAbortedReason=e=>e.reason??new DOMException(`This operation was aborted.`,`AbortError`);function pTimeout(t,n){let{milliseconds:r,fallback:i,message:a,customTimers:o={setTimeout,clearTimeout},signal:s}=n,c,abortHandler,l=new Promise((n,l)=>{if(typeof r!=`number`||Math.sign(r)!==1)throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(s?.aborted){l(getAbortedReason(s));return}if(s&&(abortHandler=()=>{l(getAbortedReason(s))},s.addEventListener(`abort`,abortHandler,{once:!0})),t.then(n,l),r===1/0)return;let u=new e;c=o.setTimeout.call(void 0,()=>{if(i){try{n(i())}catch(e){l(e)}return}typeof t.cancel==`function`&&t.cancel(),a===!1?n():a instanceof Error?l(a):(u.message=a??`Promise timed out after ${r} milliseconds`,l(u))},r)}).finally(()=>{l.clear(),abortHandler&&s&&s.removeEventListener(`abort`,abortHandler)});return l.clear=()=>{o.clearTimeout.call(void 0,c),c=void 0},l}export{pTimeout as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";const toZeroIfInfinity=e=>Number.isFinite(e)?e:0;function parseNumber(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(toZeroIfInfinity(e*1e3)%1e3),nanoseconds:Math.trunc(toZeroIfInfinity(e*1e6)%1e3)}}function parseBigint(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}function parseMilliseconds(e){switch(typeof e){case`number`:if(Number.isFinite(e))return parseNumber(e);break;case`bigint`:return parseBigint(e)}throw TypeError(`Expected a finite number or bigint`)}export{parseMilliseconds as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";import{t as e}from"./hast-util-sanitize.mjs";function rehypeSanitize(t){return function(n){return e(n,t)}}export{rehypeSanitize as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";import{t as e}from"./hast-util-to-html.mjs";function rehypeStringify(t){let n=this,r={...n.data(`settings`),...t};n.compiler=compiler;function compiler(t){return e(t,r)}}export{rehypeStringify as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";import{n as e,t}from"./mdast-util-gfm.mjs";import{t as n}from"./micromark-extension-gfm.mjs";const r={};function remarkGfm(i){let a=this,o=i||r,s=a.data(),c=s.micromarkExtensions||=[],l=s.fromMarkdownExtensions||=[],u=s.toMarkdownExtensions||=[];c.push(n(o)),l.push(t()),u.push(e(o))}export{remarkGfm as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";import{t as e}from"./mdast-util-from-markdown.mjs";function remarkParse(t){let n=this;n.parser=parser;function parser(r){return e(r,{...n.data(`settings`),...t,extensions:n.data(`micromarkExtensions`)||[],mdastExtensions:n.data(`fromMarkdownExtensions`)||[]})}}export{remarkParse as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";function serializeValue(e,t,n,r){if(typeof e?.toJSON==`function`&&(e=e.toJSON()),!(typeof e==`object`&&e))return e;if(t.has(e)){if(!n)return`[Circular]`;let r=t.get(e);return`[Circular ${r===``?`*`:`*${r}`}]`}t.set(e,r);let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))i[a]=serializeValue(o,t,n,r===``?a:`${r}.${a}`);return t.delete(e),i}function safeStringify(e,{indentation:t,trace:n}={}){let r=serializeValue(e,new WeakMap,n,``);return JSON.stringify(r,void 0,t)}export{safeStringify as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";function stripIndent(e){let t=e.match(/^[ \t]*(?=\S)/gm);if(!t)return e;let n=1/0;for(let e of t)n=Math.min(n,e.length);return n===0||n===1/0?e:e.replace(RegExp(`^[ \\t]{${n}}`,`gm`),``)}function dedent(e){return stripIndent(e.replace(/^(?:[ \t]*\r?\n)+|(?:\r?\n[ \t]*)+$/g,``))}export{dedent as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";var e={reset:[0,0],bold:[1,22,`\x1B[22m\x1B[1m`],dim:[2,22,`\x1B[22m\x1B[2m`],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]};function i(e){return String(e)}i.open=``,i.close=``;function B(){let e=typeof process<`u`?process:void 0,t=e?.env||{},r=t.FORCE_TTY!==`false`,o=e?.argv||[];return!(`NO_COLOR`in t||o.includes(`--no-color`))&&(`FORCE_COLOR`in t||o.includes(`--color`)||e?.platform===`win32`||r&&t.TERM!==`dumb`||`CI`in t)||typeof window<`u`&&!!window.chrome}function C({force:t}={}){let r=t||B(),a=(e,t,r,o)=>{let s=``,c=0;do s+=e.substring(c,o)+r,c=o+t.length,o=e.indexOf(t,c);while(~o);return s+e.substring(c)},l=(e,t,r=e)=>{let n=o=>{let s=String(o),c=s.indexOf(t,e.length);return~c?e+a(s,t,r,c)+t:e+s+t};return n.open=e,n.close=t,n},o={isColorSupported:r},f=e=>`\x1B[${e}m`;for(let t in e){let s=e[t];o[t]=r?l(f(s[0]),f(s[1]),s[2]):i}return o}var t=C();export{t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";function trough(){let e=[],t={run,use};return t;function run(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);next(null,...t);function next(i,...a){let o=e[++n],s=-1;if(i){r(i);return}for(;++s<t.length;)(a[s]===null||a[s]===void 0)&&(a[s]=t[s]);t=a,o?wrap(o,next)(...a):r(null,...a)}}function use(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function wrap(e,t){let n;return wrapped;function wrapped(...t){let r=e.length>t.length,i;r&&t.push(done);try{i=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return done(t)}r||(i&&i.then&&typeof i.then==`function`?i.then(then,done):i instanceof Error?done(i):then(i))}function done(e,...r){n||(n=!0,t(e,...r))}function then(e){done(null,e)}}export{trough as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";import{t as e}from"./@ts-graphviz/core.mjs";import{n as t,r,t as i}from"./@ts-graphviz/ast.mjs";const a=new Proxy(Object.freeze({}),{get:(e,t)=>t});function f(e,t){return(...r)=>{let i=e?this.Digraph:this.Graph,a=r.find(e=>typeof e==`string`),o=r.find(e=>typeof e==`object`),s=r.find(e=>typeof e==`function`),c=new i(a,t,o);return c.with(this),typeof s==`function`&&s(c),c}}function n(e,t=r){return Object.freeze({digraph:f.call(t,!0,e),graph:f.call(t,!1,e)})}const o=n(!1),s=o.digraph;o.graph,n(!0);function O(e,r){return t(i(e,r?.convert),r?.print)}e();export{O as n,a as r,s as t};
@@ -1 +0,0 @@
1
- import"../rolldown-runtime.mjs";function createContext(e={}){let t,n=!1,checkConflict=e=>{if(t&&t!==e)throw Error(`Context conflict`)},i;if(e.asyncContext){let t=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;t?i=new t:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}let _getCurrentInstance=()=>{if(i){let e=i.getStore();if(e!==void 0)return e}return t};return{use:()=>{let e=_getCurrentInstance();if(e===void 0)throw Error(`Context is not available`);return e},tryUse:()=>_getCurrentInstance(),set:(e,r)=>{r||checkConflict(e),t=e,n=!0},unset:()=>{t=void 0,n=!1},call:(e,r)=>{checkConflict(e),t=e;try{return i?i.run(e,r):r()}finally{n||(t=void 0)}},async callAsync(e,a){t=e;let onRestore=()=>{t=e},onLeave=()=>t===e?onRestore:void 0;r.add(onLeave);try{let r=i?i.run(e,a):a();return n||(t=void 0),await r}finally{r.delete(onLeave)}}}}function createNamespace(e={}){let t={};return{get(n,r={}){return t[n]||(t[n]=createContext({...e,...r})),t[n]}}}const e=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof global<`u`?global:typeof window<`u`?window:{},t=`__unctx__`;e[t]||(e[t]=createNamespace());const n=`__unctx_async_handlers__`,r=e[n]||(e[n]=new Set);export{createContext as t};
@@ -1,12 +0,0 @@
1
- import{t as e}from"../rolldown-runtime.mjs";var t=e(((e,t)=>{
2
- /*!
3
- * word-wrap <https://github.com/jonschlinkert/word-wrap>
4
- *
5
- * Copyright (c) 2014-2023, Jon Schlinkert.
6
- * Released under the MIT License.
7
- */
8
- function trimEnd(e){let t=e.length-1,n=e[t];for(;n===` `||n===` `;)n=e[--t];return e.substring(0,t+1)}function trimTabAndSpaces(e){return e.split(`
9
- `).map(e=>trimEnd(e)).join(`
10
- `)}t.exports=function(e,t){if(t||={},e==null)return e;var n=t.width||50,r=typeof t.indent==`string`?t.indent:` `,i=t.newline||`
11
- `+r,a=typeof t.escape==`function`?t.escape:identity,o=`.{1,`+n+`}`;t.cut!==!0&&(o+=`([\\s​]+|$)|[^\\s​]+?([\\s​]+|$)`);var s=new RegExp(o,`g`),c=r+(e.match(s)||[]).map(function(e){return e.slice(-1)===`
12
- `&&(e=e.slice(0,e.length-1)),a(e)}).join(i);return t.trim===!0&&(c=trimTabAndSpaces(c)),c};function identity(e){return e}}));export{t};