intlayer-editor 8.1.6 → 8.1.8

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.
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vue-CWEOkb3q.js","assets/css-BtVcDqlU.js","assets/javascript-DLs729Nk.js","assets/typescript-Cju7JbYj.js","assets/json-D07AUpjp.js","assets/html-BOjX3v2Q.js","assets/html-derivative-Cswrtqyq.js","assets/bundle-web-ByiGWzob.js","assets/index-qInpFV_l.js","assets/index-rcOj3SU8.css"])))=>i.map(i=>d[i]);
2
- import { r as reactExports, j as jsxRuntimeExports, i as i$1, _ as __vitePreload } from "./index-qInpFV_l.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vue-CWEOkb3q.js","assets/css-BtVcDqlU.js","assets/javascript-DLs729Nk.js","assets/typescript-Cju7JbYj.js","assets/json-D07AUpjp.js","assets/html-BOjX3v2Q.js","assets/html-derivative-Cswrtqyq.js","assets/bundle-web-XXLowsEv.js","assets/index-DwSBwgdT.js","assets/index-B2i361gn.css"])))=>i.map(i=>d[i]);
2
+ import { r as reactExports, j as jsxRuntimeExports, i as i$1, _ as __vitePreload } from "./index-DwSBwgdT.js";
3
3
  const i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = async (e) => {
4
4
  if (i.has(e)) return i.get(e);
5
5
  let t;
@@ -42,31 +42,33 @@ const i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = async (e
42
42
  case `github-dark`:
43
43
  t = await __vitePreload(() => import("./github-dark-CvKoaIXY.js").then((n2) => n2.a), true ? [] : void 0);
44
44
  break;
45
- case `github-light`:
46
- t = await __vitePreload(() => import("./github-light-Dcx8we6r.js").then((n2) => n2.a), true ? [] : void 0);
47
- break;
48
45
  default:
49
46
  t = await __vitePreload(() => import("./github-light-Dcx8we6r.js").then((n2) => n2.a), true ? [] : void 0);
50
47
  break;
51
48
  }
52
49
  let n = t.default;
53
50
  return a.set(e, n), n;
54
- }, c = async (e, t, n) => {
55
- let r = n ? `github-dark` : `github-light`, [{ codeToHtml: i2 }, a2, c2] = await Promise.all([__vitePreload(() => import("./bundle-web-ByiGWzob.js"), true ? __vite__mapDeps([7,8,9]) : void 0), o(t), s(r)]);
56
- return i2(e, { lang: t, theme: c2, langs: [a2] });
57
- }, l = ({ children: i2, lang: a2, isDarkMode: o2 }) => {
58
- let [s2, l2] = reactExports.useState(null);
51
+ };
52
+ let c = null;
53
+ const l = async () => (c ||= __vitePreload(async () => {
54
+ const { createHighlighter: e } = await import("./bundle-web-XXLowsEv.js");
55
+ return { createHighlighter: e };
56
+ }, true ? __vite__mapDeps([7,8,9]) : void 0).then(({ createHighlighter: e }) => e({ langs: [], themes: [] })), c), u = async (e, t, n) => {
57
+ let r = n ? `github-dark` : `github-light`, [i2, a2, c2] = await Promise.all([l(), o(t), s(r)]);
58
+ return i2.getLoadedLanguages().includes(t) || await i2.loadLanguage(a2), i2.getLoadedThemes().includes(r) || await i2.loadTheme(c2), i2.codeToHtml(e, { lang: t, theme: r });
59
+ }, d = ({ children: i2, lang: a2, isDarkMode: o2 }) => {
60
+ let [s2, c2] = reactExports.useState(null);
59
61
  return reactExports.useEffect(() => {
60
62
  let e = false;
61
- return l2(null), c(i2, a2, o2).then((t) => {
62
- e || l2(t);
63
- }).catch(() => {
64
- e || l2(``);
63
+ return u(i2, a2, o2).then((t) => {
64
+ e || c2(t);
65
+ }).catch((t) => {
66
+ console.error(`Failed to highlight code:`, t), !e && s2 === null && c2(``);
65
67
  }), () => {
66
68
  e = true;
67
69
  };
68
- }, [i2, a2, o2]), jsxRuntimeExports.jsx(`div`, { className: `min-w-0 max-w-full overflow-auto bg-transparent [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden [&_pre::-webkit-scrollbar]:hidden [&_pre]:[-ms-overflow-style:none] [&_pre]:[scrollbar-width:none]`, style: { backgroundColor: `transparent`, minWidth: 0, maxWidth: `100%`, overflow: `auto` }, children: s2 ? jsxRuntimeExports.jsx(`div`, { dangerouslySetInnerHTML: { __html: s2 } }) : jsxRuntimeExports.jsx(i$1, { children: i2 }) });
70
+ }, [i2, a2, o2]), jsxRuntimeExports.jsx(`div`, { className: `min-w-0 max-w-full overflow-auto bg-transparent [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden [&_pre::-webkit-scrollbar]:hidden [&_pre]:[-ms-overflow-style:none] [&_pre]:[scrollbar-width:none]`, children: s2 ? jsxRuntimeExports.jsx(`div`, { dangerouslySetInnerHTML: { __html: s2 } }) : jsxRuntimeExports.jsx(i$1, { children: i2 }) });
69
71
  };
70
72
  export {
71
- l as CodeBlockShiki
73
+ d as CodeBlockShiki
72
74
  };
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-ChYFFmg7.js","assets/html-BOjX3v2Q.js","assets/javascript-DLs729Nk.js","assets/css-BtVcDqlU.js","assets/angular-ts-CpuGw9DZ.js","assets/scss-Dq-LbI_c.js","assets/astro-B0lt4qz0.js","assets/json-D07AUpjp.js","assets/typescript-Cju7JbYj.js","assets/postcss-kj1IbjVd.js","assets/tsx-B9RA6cgQ.js","assets/blade-DyeoExSN.js","assets/html-derivative-Cswrtqyq.js","assets/xml-BMzZeaqs.js","assets/java-BfXh-0uJ.js","assets/sql-DzUuSofg.js","assets/coffee-DJkIX6_2.js","assets/cpp-zh2ePAE_.js","assets/regexp-BxWeO75u.js","assets/glsl-CGsiYPcu.js","assets/c-C4VtT7JA.js","assets/graphql-oNSp8dGZ.js","assets/jsx-BPmvoin2.js","assets/haml-BJ44RGT2.js","assets/handlebars-DTnHNTeU.js","assets/yaml-B_vW5iTY.js","assets/http-B1QlEqj7.js","assets/bash-Bz2gZrDc.js","assets/hurl-Br_hZn4E.js","assets/csv-Ba84L8e5.js","assets/jinja-BAZ4h1JD.js","assets/jison-Bwp1bXaL.js","assets/julia-DijK_igD.js","assets/python-CrdIx4PZ.js","assets/r-Dpdc-Kyk.js","assets/marko-DdYN1N-r.js","assets/less-BAzLMJNR.js","assets/mdc-ucHOH9Vl.js","assets/markdown-F_EULe_G.js","assets/php-2B8X4n9S.js","assets/pug-C-LeC0-n.js","assets/svelte-CaHM8dOn.js","assets/ts-tags-DCkNjov3.js","assets/vue-CWEOkb3q.js","assets/vue-html-Df7OYD9X.js","assets/vue-vine-Bx34p5qN.js","assets/stylus-DXFa_2Jl.js"])))=>i.map(i=>d[i]);
2
- import { _ as __vitePreload } from "./index-qInpFV_l.js";
2
+ import { _ as __vitePreload } from "./index-DwSBwgdT.js";
3
3
  let ShikiError$2 = class ShikiError extends Error {
4
4
  constructor(message) {
5
5
  super(message);
@@ -5315,34 +5315,6 @@ function createPositionConverter(code) {
5315
5315
  posToIndex
5316
5316
  };
5317
5317
  }
5318
- function guessEmbeddedLanguages(code, _lang, highlighter) {
5319
- const langs = /* @__PURE__ */ new Set();
5320
- for (const match of code.matchAll(/:?lang=["']([^"']+)["']/g)) {
5321
- const lang = match[1].toLowerCase().trim();
5322
- if (lang)
5323
- langs.add(lang);
5324
- }
5325
- for (const match of code.matchAll(/(?:```|~~~)([\w-]+)/g)) {
5326
- const lang = match[1].toLowerCase().trim();
5327
- if (lang)
5328
- langs.add(lang);
5329
- }
5330
- for (const match of code.matchAll(/\\begin\{([\w-]+)\}/g)) {
5331
- const lang = match[1].toLowerCase().trim();
5332
- if (lang)
5333
- langs.add(lang);
5334
- }
5335
- for (const match of code.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)) {
5336
- const fullType = match[1].toLowerCase().trim();
5337
- const lang = fullType.includes("/") ? fullType.split("/").pop() : fullType;
5338
- if (lang)
5339
- langs.add(lang);
5340
- }
5341
- if (!highlighter)
5342
- return Array.from(langs);
5343
- const bundle = highlighter.getBundledLanguages();
5344
- return Array.from(langs).filter((l) => l && bundle[l]);
5345
- }
5346
5318
  const DEFAULT_COLOR_LIGHT_DARK = "light-dark()";
5347
5319
  const COLOR_KEYS = ["color", "background-color"];
5348
5320
  function splitToken(token, offsets) {
@@ -6084,7 +6056,7 @@ function dimColor(color) {
6084
6056
  return `var(${cssVarMatch[1]}-dim)`;
6085
6057
  return color;
6086
6058
  }
6087
- function codeToTokensBase$1(internal, code, options = {}) {
6059
+ function codeToTokensBase(internal, code, options = {}) {
6088
6060
  const {
6089
6061
  theme: themeName = internal.getLoadedThemes()[0]
6090
6062
  } = options;
@@ -6105,7 +6077,7 @@ function codeToTokensBase$1(internal, code, options = {}) {
6105
6077
  }
6106
6078
  return tokenizeWithTheme(code, _grammar, theme, colorMap, options);
6107
6079
  }
6108
- function getLastGrammarState$1(...args) {
6080
+ function getLastGrammarState(...args) {
6109
6081
  if (args.length === 2) {
6110
6082
  return getLastGrammarStateFromMap(args[1]);
6111
6083
  }
@@ -6296,10 +6268,10 @@ function explainThemeScope(themeSettingsSelectors, scope, parentScopes) {
6296
6268
  }
6297
6269
  return result;
6298
6270
  }
6299
- function codeToTokensWithThemes$1(internal, code, options) {
6271
+ function codeToTokensWithThemes(internal, code, options) {
6300
6272
  const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({ color: i[0], theme: i[1] }));
6301
6273
  const themedTokens = themes.map((t) => {
6302
- const tokens2 = codeToTokensBase$1(internal, code, {
6274
+ const tokens2 = codeToTokensBase(internal, code, {
6303
6275
  ...options,
6304
6276
  theme: t.theme
6305
6277
  });
@@ -6377,7 +6349,7 @@ function syncThemesTokenization(...themes) {
6377
6349
  }
6378
6350
  return outThemes;
6379
6351
  }
6380
- function codeToTokens$1(internal, code, options) {
6352
+ function codeToTokens(internal, code, options) {
6381
6353
  let bg;
6382
6354
  let fg;
6383
6355
  let tokens;
@@ -6393,7 +6365,7 @@ function codeToTokens$1(internal, code, options) {
6393
6365
  const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({ color: i[0], theme: i[1] })).sort((a, b) => a.color === defaultColor ? -1 : b.color === defaultColor ? 1 : 0);
6394
6366
  if (themes.length === 0)
6395
6367
  throw new ShikiError$2("`themes` option must not be empty");
6396
- const themeTokens = codeToTokensWithThemes$1(
6368
+ const themeTokens = codeToTokensWithThemes(
6397
6369
  internal,
6398
6370
  code,
6399
6371
  options
@@ -6413,7 +6385,7 @@ function codeToTokens$1(internal, code, options) {
6413
6385
  rootStyle = defaultColor ? void 0 : [fg, bg].join(";");
6414
6386
  } else if ("theme" in options) {
6415
6387
  const colorReplacements = resolveColorReplacements(options.theme, options);
6416
- tokens = codeToTokensBase$1(
6388
+ tokens = codeToTokensBase(
6417
6389
  internal,
6418
6390
  code,
6419
6391
  options
@@ -6457,11 +6429,11 @@ function mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePr
6457
6429
  return null;
6458
6430
  }).filter((i) => !!i).join(";");
6459
6431
  }
6460
- function codeToHast$1(internal, code, options, transformerContext = {
6432
+ function codeToHast(internal, code, options, transformerContext = {
6461
6433
  meta: {},
6462
6434
  options,
6463
- codeToHast: (_code, _options) => codeToHast$1(internal, _code, _options),
6464
- codeToTokens: (_code, _options) => codeToTokens$1(internal, _code, _options)
6435
+ codeToHast: (_code, _options) => codeToHast(internal, _code, _options),
6436
+ codeToTokens: (_code, _options) => codeToTokens(internal, _code, _options)
6465
6437
  }) {
6466
6438
  let input = code;
6467
6439
  for (const transformer of getTransformers(options))
@@ -6473,7 +6445,7 @@ function codeToHast$1(internal, code, options, transformerContext = {
6473
6445
  themeName,
6474
6446
  rootStyle,
6475
6447
  grammarState
6476
- } = codeToTokens$1(internal, input, options);
6448
+ } = codeToTokens(internal, input, options);
6477
6449
  const {
6478
6450
  mergeWhitespaces = true,
6479
6451
  mergeSameStyleTokens = false
@@ -6763,14 +6735,14 @@ function mergeAdjacentStyledTokens(tokens) {
6763
6735
  });
6764
6736
  }
6765
6737
  const hastToHtml = toHtml;
6766
- function codeToHtml$1(internal, code, options) {
6738
+ function codeToHtml(internal, code, options) {
6767
6739
  const context = {
6768
6740
  meta: {},
6769
6741
  options,
6770
- codeToHast: (_code, _options) => codeToHast$1(internal, _code, _options),
6771
- codeToTokens: (_code, _options) => codeToTokens$1(internal, _code, _options)
6742
+ codeToHast: (_code, _options) => codeToHast(internal, _code, _options),
6743
+ codeToTokens: (_code, _options) => codeToTokens(internal, _code, _options)
6772
6744
  };
6773
- let result = hastToHtml(codeToHast$1(internal, code, options, context));
6745
+ let result = hastToHtml(codeToHast(internal, code, options, context));
6774
6746
  for (const transformer of getTransformers(options))
6775
6747
  result = transformer.postprocess?.call(context, result, options) || result;
6776
6748
  return result;
@@ -6882,19 +6854,10 @@ async function resolveThemes(themes) {
6882
6854
  return resolved.filter((i) => !!i);
6883
6855
  }
6884
6856
  let _emitDeprecation = 3;
6885
- let _emitError = false;
6886
- function enableDeprecationWarnings(emitDeprecation = true, emitError = false) {
6887
- _emitDeprecation = emitDeprecation;
6888
- _emitError = emitError;
6889
- }
6890
6857
  function warnDeprecated(message, version = 3) {
6891
- if (!_emitDeprecation)
6892
- return;
6893
- if (typeof _emitDeprecation === "number" && version > _emitDeprecation)
6858
+ if (version > _emitDeprecation)
6894
6859
  return;
6895
- if (_emitError) {
6896
- throw new Error(`[SHIKI DEPRECATE]: ${message}`);
6897
- } else {
6860
+ {
6898
6861
  console.trace(`[SHIKI DEPRECATE]: ${message}`);
6899
6862
  }
6900
6863
  }
@@ -7213,55 +7176,18 @@ async function createShikiInternal(options) {
7213
7176
  async function createHighlighterCore(options) {
7214
7177
  const internal = await createShikiInternal(options);
7215
7178
  return {
7216
- getLastGrammarState: (...args) => getLastGrammarState$1(internal, ...args),
7217
- codeToTokensBase: (code, options2) => codeToTokensBase$1(internal, code, options2),
7218
- codeToTokensWithThemes: (code, options2) => codeToTokensWithThemes$1(internal, code, options2),
7219
- codeToTokens: (code, options2) => codeToTokens$1(internal, code, options2),
7220
- codeToHast: (code, options2) => codeToHast$1(internal, code, options2),
7221
- codeToHtml: (code, options2) => codeToHtml$1(internal, code, options2),
7179
+ getLastGrammarState: (...args) => getLastGrammarState(internal, ...args),
7180
+ codeToTokensBase: (code, options2) => codeToTokensBase(internal, code, options2),
7181
+ codeToTokensWithThemes: (code, options2) => codeToTokensWithThemes(internal, code, options2),
7182
+ codeToTokens: (code, options2) => codeToTokens(internal, code, options2),
7183
+ codeToHast: (code, options2) => codeToHast(internal, code, options2),
7184
+ codeToHtml: (code, options2) => codeToHtml(internal, code, options2),
7222
7185
  getBundledLanguages: () => ({}),
7223
7186
  getBundledThemes: () => ({}),
7224
7187
  ...internal,
7225
7188
  getInternalContext: () => internal
7226
7189
  };
7227
7190
  }
7228
- function createHighlighterCoreSync(options) {
7229
- const internal = createShikiInternalSync(options);
7230
- return {
7231
- getLastGrammarState: (...args) => getLastGrammarState$1(internal, ...args),
7232
- codeToTokensBase: (code, options2) => codeToTokensBase$1(internal, code, options2),
7233
- codeToTokensWithThemes: (code, options2) => codeToTokensWithThemes$1(internal, code, options2),
7234
- codeToTokens: (code, options2) => codeToTokens$1(internal, code, options2),
7235
- codeToHast: (code, options2) => codeToHast$1(internal, code, options2),
7236
- codeToHtml: (code, options2) => codeToHtml$1(internal, code, options2),
7237
- getBundledLanguages: () => ({}),
7238
- getBundledThemes: () => ({}),
7239
- ...internal,
7240
- getInternalContext: () => internal
7241
- };
7242
- }
7243
- function makeSingletonHighlighterCore(createHighlighter2) {
7244
- let _shiki;
7245
- async function getSingletonHighlighterCore2(options) {
7246
- if (!_shiki) {
7247
- _shiki = createHighlighter2({
7248
- ...options,
7249
- themes: options.themes || [],
7250
- langs: options.langs || []
7251
- });
7252
- return _shiki;
7253
- } else {
7254
- const s = await _shiki;
7255
- await Promise.all([
7256
- s.loadTheme(...options.themes || []),
7257
- s.loadLanguage(...options.langs || [])
7258
- ]);
7259
- return s;
7260
- }
7261
- }
7262
- return getSingletonHighlighterCore2;
7263
- }
7264
- const getSingletonHighlighterCore = /* @__PURE__ */ makeSingletonHighlighterCore(createHighlighterCore);
7265
7191
  function createBundledHighlighter(options) {
7266
7192
  const bundledLanguages2 = options.langs;
7267
7193
  const bundledThemes2 = options.themes;
@@ -7316,313 +7242,6 @@ function createBundledHighlighter(options) {
7316
7242
  }
7317
7243
  return createHighlighter2;
7318
7244
  }
7319
- function makeSingletonHighlighter(createHighlighter2) {
7320
- let _shiki;
7321
- async function getSingletonHighlighter2(options = {}) {
7322
- if (!_shiki) {
7323
- _shiki = createHighlighter2({
7324
- ...options,
7325
- themes: [],
7326
- langs: []
7327
- });
7328
- const s = await _shiki;
7329
- await Promise.all([
7330
- s.loadTheme(...options.themes || []),
7331
- s.loadLanguage(...options.langs || [])
7332
- ]);
7333
- return s;
7334
- } else {
7335
- const s = await _shiki;
7336
- await Promise.all([
7337
- s.loadTheme(...options.themes || []),
7338
- s.loadLanguage(...options.langs || [])
7339
- ]);
7340
- return s;
7341
- }
7342
- }
7343
- return getSingletonHighlighter2;
7344
- }
7345
- function createSingletonShorthands(createHighlighter2, config) {
7346
- const getSingletonHighlighter2 = makeSingletonHighlighter(createHighlighter2);
7347
- async function get(code, options) {
7348
- const shiki = await getSingletonHighlighter2({
7349
- langs: [options.lang],
7350
- themes: "theme" in options ? [options.theme] : Object.values(options.themes)
7351
- });
7352
- const langs = await config?.guessEmbeddedLanguages?.(code, options.lang, shiki);
7353
- if (langs) {
7354
- await shiki.loadLanguage(...langs);
7355
- }
7356
- return shiki;
7357
- }
7358
- return {
7359
- getSingletonHighlighter(options) {
7360
- return getSingletonHighlighter2(options);
7361
- },
7362
- async codeToHtml(code, options) {
7363
- const shiki = await get(code, options);
7364
- return shiki.codeToHtml(code, options);
7365
- },
7366
- async codeToHast(code, options) {
7367
- const shiki = await get(code, options);
7368
- return shiki.codeToHast(code, options);
7369
- },
7370
- async codeToTokens(code, options) {
7371
- const shiki = await get(code, options);
7372
- return shiki.codeToTokens(code, options);
7373
- },
7374
- async codeToTokensBase(code, options) {
7375
- const shiki = await get(code, options);
7376
- return shiki.codeToTokensBase(code, options);
7377
- },
7378
- async codeToTokensWithThemes(code, options) {
7379
- const shiki = await get(code, options);
7380
- return shiki.codeToTokensWithThemes(code, options);
7381
- },
7382
- async getLastGrammarState(code, options) {
7383
- const shiki = await getSingletonHighlighter2({
7384
- langs: [options.lang],
7385
- themes: [options.theme]
7386
- });
7387
- return shiki.getLastGrammarState(code, options);
7388
- }
7389
- };
7390
- }
7391
- const createdBundledHighlighter = createBundledHighlighter;
7392
- function createCssVariablesTheme(options = {}) {
7393
- const {
7394
- name = "css-variables",
7395
- variablePrefix = "--shiki-",
7396
- fontStyle = true
7397
- } = options;
7398
- const variable = (name2) => {
7399
- if (options.variableDefaults?.[name2])
7400
- return `var(${variablePrefix}${name2}, ${options.variableDefaults[name2]})`;
7401
- return `var(${variablePrefix}${name2})`;
7402
- };
7403
- const theme = {
7404
- name,
7405
- type: "dark",
7406
- colors: {
7407
- "editor.foreground": variable("foreground"),
7408
- "editor.background": variable("background"),
7409
- "terminal.ansiBlack": variable("ansi-black"),
7410
- "terminal.ansiRed": variable("ansi-red"),
7411
- "terminal.ansiGreen": variable("ansi-green"),
7412
- "terminal.ansiYellow": variable("ansi-yellow"),
7413
- "terminal.ansiBlue": variable("ansi-blue"),
7414
- "terminal.ansiMagenta": variable("ansi-magenta"),
7415
- "terminal.ansiCyan": variable("ansi-cyan"),
7416
- "terminal.ansiWhite": variable("ansi-white"),
7417
- "terminal.ansiBrightBlack": variable("ansi-bright-black"),
7418
- "terminal.ansiBrightRed": variable("ansi-bright-red"),
7419
- "terminal.ansiBrightGreen": variable("ansi-bright-green"),
7420
- "terminal.ansiBrightYellow": variable("ansi-bright-yellow"),
7421
- "terminal.ansiBrightBlue": variable("ansi-bright-blue"),
7422
- "terminal.ansiBrightMagenta": variable("ansi-bright-magenta"),
7423
- "terminal.ansiBrightCyan": variable("ansi-bright-cyan"),
7424
- "terminal.ansiBrightWhite": variable("ansi-bright-white")
7425
- },
7426
- tokenColors: [
7427
- {
7428
- scope: [
7429
- "keyword.operator.accessor",
7430
- "meta.group.braces.round.function.arguments",
7431
- "meta.template.expression",
7432
- "markup.fenced_code meta.embedded.block"
7433
- ],
7434
- settings: {
7435
- foreground: variable("foreground")
7436
- }
7437
- },
7438
- {
7439
- scope: "emphasis",
7440
- settings: {
7441
- fontStyle: "italic"
7442
- }
7443
- },
7444
- {
7445
- scope: ["strong", "markup.heading.markdown", "markup.bold.markdown"],
7446
- settings: {
7447
- fontStyle: "bold"
7448
- }
7449
- },
7450
- {
7451
- scope: ["markup.italic.markdown"],
7452
- settings: {
7453
- fontStyle: "italic"
7454
- }
7455
- },
7456
- {
7457
- scope: "meta.link.inline.markdown",
7458
- settings: {
7459
- fontStyle: "underline",
7460
- foreground: variable("token-link")
7461
- }
7462
- },
7463
- {
7464
- scope: ["string", "markup.fenced_code", "markup.inline"],
7465
- settings: {
7466
- foreground: variable("token-string")
7467
- }
7468
- },
7469
- {
7470
- scope: ["comment", "string.quoted.docstring.multi"],
7471
- settings: {
7472
- foreground: variable("token-comment")
7473
- }
7474
- },
7475
- {
7476
- scope: [
7477
- "constant.numeric",
7478
- "constant.language",
7479
- "constant.other.placeholder",
7480
- "constant.character.format.placeholder",
7481
- "variable.language.this",
7482
- "variable.other.object",
7483
- "variable.other.class",
7484
- "variable.other.constant",
7485
- "meta.property-name",
7486
- "meta.property-value",
7487
- "support"
7488
- ],
7489
- settings: {
7490
- foreground: variable("token-constant")
7491
- }
7492
- },
7493
- {
7494
- scope: [
7495
- "keyword",
7496
- "storage.modifier",
7497
- "storage.type",
7498
- "storage.control.clojure",
7499
- "entity.name.function.clojure",
7500
- "entity.name.tag.yaml",
7501
- "support.function.node",
7502
- "support.type.property-name.json",
7503
- "punctuation.separator.key-value",
7504
- "punctuation.definition.template-expression"
7505
- ],
7506
- settings: {
7507
- foreground: variable("token-keyword")
7508
- }
7509
- },
7510
- {
7511
- scope: "variable.parameter.function",
7512
- settings: {
7513
- foreground: variable("token-parameter")
7514
- }
7515
- },
7516
- {
7517
- scope: [
7518
- "support.function",
7519
- "entity.name.type",
7520
- "entity.other.inherited-class",
7521
- "meta.function-call",
7522
- "meta.instance.constructor",
7523
- "entity.other.attribute-name",
7524
- "entity.name.function",
7525
- "constant.keyword.clojure"
7526
- ],
7527
- settings: {
7528
- foreground: variable("token-function")
7529
- }
7530
- },
7531
- {
7532
- scope: [
7533
- "entity.name.tag",
7534
- "string.quoted",
7535
- "string.regexp",
7536
- "string.interpolated",
7537
- "string.template",
7538
- "string.unquoted.plain.out.yaml",
7539
- "keyword.other.template"
7540
- ],
7541
- settings: {
7542
- foreground: variable("token-string-expression")
7543
- }
7544
- },
7545
- {
7546
- scope: [
7547
- "punctuation.definition.arguments",
7548
- "punctuation.definition.dict",
7549
- "punctuation.separator",
7550
- "meta.function-call.arguments"
7551
- ],
7552
- settings: {
7553
- foreground: variable("token-punctuation")
7554
- }
7555
- },
7556
- {
7557
- // [Custom] Markdown links
7558
- scope: [
7559
- "markup.underline.link",
7560
- "punctuation.definition.metadata.markdown"
7561
- ],
7562
- settings: {
7563
- foreground: variable("token-link")
7564
- }
7565
- },
7566
- {
7567
- // [Custom] Markdown list
7568
- scope: ["beginning.punctuation.definition.list.markdown"],
7569
- settings: {
7570
- foreground: variable("token-string")
7571
- }
7572
- },
7573
- {
7574
- // [Custom] Markdown punctuation definition brackets
7575
- scope: [
7576
- "punctuation.definition.string.begin.markdown",
7577
- "punctuation.definition.string.end.markdown",
7578
- "string.other.link.title.markdown",
7579
- "string.other.link.description.markdown"
7580
- ],
7581
- settings: {
7582
- foreground: variable("token-keyword")
7583
- }
7584
- },
7585
- {
7586
- // [Custom] Diff
7587
- scope: [
7588
- "markup.inserted",
7589
- "meta.diff.header.to-file",
7590
- "punctuation.definition.inserted"
7591
- ],
7592
- settings: {
7593
- foreground: variable("token-inserted")
7594
- }
7595
- },
7596
- {
7597
- scope: [
7598
- "markup.deleted",
7599
- "meta.diff.header.from-file",
7600
- "punctuation.definition.deleted"
7601
- ],
7602
- settings: {
7603
- foreground: variable("token-deleted")
7604
- }
7605
- },
7606
- {
7607
- scope: [
7608
- "markup.changed",
7609
- "punctuation.definition.changed"
7610
- ],
7611
- settings: {
7612
- foreground: variable("token-changed")
7613
- }
7614
- }
7615
- ]
7616
- };
7617
- if (!fontStyle) {
7618
- theme.tokenColors = theme.tokenColors?.map((tokenColor) => {
7619
- if (tokenColor.settings?.fontStyle)
7620
- delete tokenColor.settings.fontStyle;
7621
- return tokenColor;
7622
- });
7623
- }
7624
- return theme;
7625
- }
7626
7245
  const bundledThemesInfo = [
7627
7246
  {
7628
7247
  "id": "andromeeda",
@@ -8790,18 +8409,6 @@ const createHighlighter = /* @__PURE__ */ createBundledHighlighter({
8790
8409
  themes: bundledThemes,
8791
8410
  engine: () => createOnigurumaEngine(__vitePreload(() => import("./wasm-DDgzZJey.js"), true ? [] : void 0))
8792
8411
  });
8793
- const {
8794
- codeToHtml,
8795
- codeToHast,
8796
- codeToTokensBase,
8797
- codeToTokens,
8798
- codeToTokensWithThemes,
8799
- getSingletonHighlighter,
8800
- getLastGrammarState
8801
- } = /* @__PURE__ */ createSingletonShorthands(
8802
- createHighlighter,
8803
- { guessEmbeddedLanguages }
8804
- );
8805
8412
  export {
8806
8413
  ShikiError$2 as ShikiError,
8807
8414
  addClassToHast,
@@ -8812,35 +8419,19 @@ export {
8812
8419
  bundledLanguagesInfo,
8813
8420
  bundledThemes,
8814
8421
  bundledThemesInfo,
8815
- codeToHast,
8816
- codeToHtml,
8817
- codeToTokens,
8818
- codeToTokensBase,
8819
- codeToTokensWithThemes,
8820
8422
  createBundledHighlighter,
8821
- createCssVariablesTheme,
8822
8423
  createHighlighter,
8823
8424
  createHighlighterCore,
8824
- createHighlighterCoreSync,
8825
8425
  createPositionConverter,
8826
8426
  createShikiInternal,
8827
8427
  createShikiInternalSync,
8828
- createSingletonShorthands,
8829
- createdBundledHighlighter,
8830
- enableDeprecationWarnings,
8831
8428
  flatTokenVariants,
8832
- getLastGrammarState,
8833
- getSingletonHighlighter,
8834
- getSingletonHighlighterCore,
8835
8429
  getTokenStyleObject,
8836
- guessEmbeddedLanguages,
8837
8430
  hastToHtml,
8838
8431
  isNoneTheme,
8839
8432
  isPlainLang,
8840
8433
  isSpecialLang,
8841
8434
  isSpecialTheme,
8842
- makeSingletonHighlighter,
8843
- makeSingletonHighlighterCore,
8844
8435
  normalizeGetter,
8845
8436
  normalizeTheme,
8846
8437
  resolveColorReplacements,