@duskmoon-dev/el-markdown 0.7.1 → 0.8.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.
@@ -3,25 +3,43 @@ var __getProtoOf = Object.getPrototypeOf;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ function __accessProp(key) {
7
+ return this[key];
8
+ }
9
+ var __toESMCache_node;
10
+ var __toESMCache_esm;
6
11
  var __toESM = (mod, isNodeMode, target) => {
12
+ var canCache = mod != null && typeof mod === "object";
13
+ if (canCache) {
14
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
15
+ var cached = cache.get(mod);
16
+ if (cached)
17
+ return cached;
18
+ }
7
19
  target = mod != null ? __create(__getProtoOf(mod)) : {};
8
20
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
9
21
  for (let key of __getOwnPropNames(mod))
10
22
  if (!__hasOwnProp.call(to, key))
11
23
  __defProp(to, key, {
12
- get: () => mod[key],
24
+ get: __accessProp.bind(mod, key),
13
25
  enumerable: true
14
26
  });
27
+ if (canCache)
28
+ cache.set(mod, to);
15
29
  return to;
16
30
  };
17
31
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
32
+ var __returnValue = (v) => v;
33
+ function __exportSetter(name, newValue) {
34
+ this[name] = __returnValue.bind(null, newValue);
35
+ }
18
36
  var __export = (target, all) => {
19
37
  for (var name in all)
20
38
  __defProp(target, name, {
21
39
  get: all[name],
22
40
  enumerable: true,
23
41
  configurable: true,
24
- set: (newValue) => all[name] = () => newValue
42
+ set: __exportSetter.bind(all, name)
25
43
  });
26
44
  };
27
45
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
@@ -8594,28 +8612,6 @@ function toAlignment(value) {
8594
8612
  const code = typeof value === "string" ? value.codePointAt(0) : 0;
8595
8613
  return code === 67 || code === 99 ? 99 : code === 76 || code === 108 ? 108 : code === 82 || code === 114 ? 114 : 0;
8596
8614
  }
8597
-
8598
- // ../../node_modules/.bun/zwitch@2.0.4/node_modules/zwitch/index.js
8599
- var own3 = {}.hasOwnProperty;
8600
- function zwitch(key, options) {
8601
- const settings = options || {};
8602
- function one2(value, ...parameters) {
8603
- let fn = one2.invalid;
8604
- const handlers = one2.handlers;
8605
- if (value && own3.call(value, key)) {
8606
- const id = String(value[key]);
8607
- fn = own3.call(handlers, id) ? handlers[id] : one2.unknown;
8608
- }
8609
- if (fn) {
8610
- return fn.call(this, value, ...parameters);
8611
- }
8612
- }
8613
- one2.handlers = settings.handlers || {};
8614
- one2.invalid = settings.invalid;
8615
- one2.unknown = settings.unknown;
8616
- return one2;
8617
- }
8618
-
8619
8615
  // ../../node_modules/.bun/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js
8620
8616
  function blockquote(node2, _, state, info) {
8621
8617
  const exit2 = state.enter("blockquote");
@@ -10870,364 +10866,328 @@ function remarkGfm(options) {
10870
10866
  fromMarkdownExtensions.push(gfmFromMarkdown());
10871
10867
  toMarkdownExtensions.push(gfmToMarkdown(settings));
10872
10868
  }
10873
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js
10874
- function blockquote2(state, node2) {
10875
- const result = {
10876
- type: "element",
10877
- tagName: "blockquote",
10878
- properties: {},
10879
- children: state.wrap(state.all(node2), true)
10880
- };
10881
- state.patch(node2, result);
10882
- return state.applyData(node2, result);
10883
- }
10884
-
10885
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/break.js
10886
- function hardBreak2(state, node2) {
10887
- const result = { type: "element", tagName: "br", properties: {}, children: [] };
10888
- state.patch(node2, result);
10889
- return [state.applyData(node2, result), { type: "text", value: `
10890
- ` }];
10891
- }
10892
-
10893
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/code.js
10894
- function code3(state, node2) {
10895
- const value = node2.value ? node2.value + `
10896
- ` : "";
10897
- const properties = {};
10898
- const language = node2.lang ? node2.lang.split(/\s+/) : [];
10899
- if (language.length > 0) {
10900
- properties.className = ["language-" + language[0]];
10901
- }
10902
- let result = {
10903
- type: "element",
10904
- tagName: "code",
10905
- properties,
10906
- children: [{ type: "text", value }]
10907
- };
10908
- if (node2.meta) {
10909
- result.data = { meta: node2.meta };
10910
- }
10911
- state.patch(node2, result);
10912
- result = state.applyData(node2, result);
10913
- result = { type: "element", tagName: "pre", properties: {}, children: [result] };
10914
- state.patch(node2, result);
10915
- return result;
10916
- }
10869
+ // ../../node_modules/.bun/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.js
10870
+ var VOID = -1;
10871
+ var PRIMITIVE = 0;
10872
+ var ARRAY = 1;
10873
+ var OBJECT = 2;
10874
+ var DATE = 3;
10875
+ var REGEXP = 4;
10876
+ var MAP = 5;
10877
+ var SET = 6;
10878
+ var ERROR = 7;
10879
+ var BIGINT = 8;
10917
10880
 
10918
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/delete.js
10919
- function strikethrough(state, node2) {
10920
- const result = {
10921
- type: "element",
10922
- tagName: "del",
10923
- properties: {},
10924
- children: state.all(node2)
10881
+ // ../../node_modules/.bun/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.js
10882
+ var env = typeof self === "object" ? self : globalThis;
10883
+ var deserializer = ($, _) => {
10884
+ const as = (out, index2) => {
10885
+ $.set(index2, out);
10886
+ return out;
10925
10887
  };
10926
- state.patch(node2, result);
10927
- return state.applyData(node2, result);
10928
- }
10929
-
10930
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js
10931
- function emphasis2(state, node2) {
10932
- const result = {
10933
- type: "element",
10934
- tagName: "em",
10935
- properties: {},
10936
- children: state.all(node2)
10888
+ const unpair = (index2) => {
10889
+ if ($.has(index2))
10890
+ return $.get(index2);
10891
+ const [type, value] = _[index2];
10892
+ switch (type) {
10893
+ case PRIMITIVE:
10894
+ case VOID:
10895
+ return as(value, index2);
10896
+ case ARRAY: {
10897
+ const arr = as([], index2);
10898
+ for (const index3 of value)
10899
+ arr.push(unpair(index3));
10900
+ return arr;
10901
+ }
10902
+ case OBJECT: {
10903
+ const object = as({}, index2);
10904
+ for (const [key, index3] of value)
10905
+ object[unpair(key)] = unpair(index3);
10906
+ return object;
10907
+ }
10908
+ case DATE:
10909
+ return as(new Date(value), index2);
10910
+ case REGEXP: {
10911
+ const { source, flags } = value;
10912
+ return as(new RegExp(source, flags), index2);
10913
+ }
10914
+ case MAP: {
10915
+ const map3 = as(new Map, index2);
10916
+ for (const [key, index3] of value)
10917
+ map3.set(unpair(key), unpair(index3));
10918
+ return map3;
10919
+ }
10920
+ case SET: {
10921
+ const set = as(new Set, index2);
10922
+ for (const index3 of value)
10923
+ set.add(unpair(index3));
10924
+ return set;
10925
+ }
10926
+ case ERROR: {
10927
+ const { name, message } = value;
10928
+ return as(new env[name](message), index2);
10929
+ }
10930
+ case BIGINT:
10931
+ return as(BigInt(value), index2);
10932
+ case "BigInt":
10933
+ return as(Object(BigInt(value)), index2);
10934
+ case "ArrayBuffer":
10935
+ return as(new Uint8Array(value).buffer, value);
10936
+ case "DataView": {
10937
+ const { buffer } = new Uint8Array(value);
10938
+ return as(new DataView(buffer), value);
10939
+ }
10940
+ }
10941
+ return as(new env[type](value), index2);
10937
10942
  };
10938
- state.patch(node2, result);
10939
- return state.applyData(node2, result);
10940
- }
10943
+ return unpair;
10944
+ };
10945
+ var deserialize = (serialized) => deserializer(new Map, serialized)(0);
10941
10946
 
10942
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js
10943
- function footnoteReference2(state, node2) {
10944
- const clobberPrefix = typeof state.options.clobberPrefix === "string" ? state.options.clobberPrefix : "user-content-";
10945
- const id = String(node2.identifier).toUpperCase();
10946
- const safeId = normalizeUri(id.toLowerCase());
10947
- const index2 = state.footnoteOrder.indexOf(id);
10948
- let counter;
10949
- let reuseCounter = state.footnoteCounts.get(id);
10950
- if (reuseCounter === undefined) {
10951
- reuseCounter = 0;
10952
- state.footnoteOrder.push(id);
10953
- counter = state.footnoteOrder.length;
10954
- } else {
10955
- counter = index2 + 1;
10947
+ // ../../node_modules/.bun/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.js
10948
+ var EMPTY = "";
10949
+ var { toString: toString2 } = {};
10950
+ var { keys } = Object;
10951
+ var typeOf = (value) => {
10952
+ const type = typeof value;
10953
+ if (type !== "object" || !value)
10954
+ return [PRIMITIVE, type];
10955
+ const asString = toString2.call(value).slice(8, -1);
10956
+ switch (asString) {
10957
+ case "Array":
10958
+ return [ARRAY, EMPTY];
10959
+ case "Object":
10960
+ return [OBJECT, EMPTY];
10961
+ case "Date":
10962
+ return [DATE, EMPTY];
10963
+ case "RegExp":
10964
+ return [REGEXP, EMPTY];
10965
+ case "Map":
10966
+ return [MAP, EMPTY];
10967
+ case "Set":
10968
+ return [SET, EMPTY];
10969
+ case "DataView":
10970
+ return [ARRAY, asString];
10956
10971
  }
10957
- reuseCounter += 1;
10958
- state.footnoteCounts.set(id, reuseCounter);
10959
- const link2 = {
10960
- type: "element",
10961
- tagName: "a",
10962
- properties: {
10963
- href: "#" + clobberPrefix + "fn-" + safeId,
10964
- id: clobberPrefix + "fnref-" + safeId + (reuseCounter > 1 ? "-" + reuseCounter : ""),
10965
- dataFootnoteRef: true,
10966
- ariaDescribedBy: ["footnote-label"]
10967
- },
10968
- children: [{ type: "text", value: String(counter) }]
10969
- };
10970
- state.patch(node2, link2);
10971
- const sup = {
10972
- type: "element",
10973
- tagName: "sup",
10974
- properties: {},
10975
- children: [link2]
10976
- };
10977
- state.patch(node2, sup);
10978
- return state.applyData(node2, sup);
10979
- }
10980
-
10981
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/heading.js
10982
- function heading2(state, node2) {
10983
- const result = {
10984
- type: "element",
10985
- tagName: "h" + node2.depth,
10986
- properties: {},
10987
- children: state.all(node2)
10972
+ if (asString.includes("Array"))
10973
+ return [ARRAY, asString];
10974
+ if (asString.includes("Error"))
10975
+ return [ERROR, asString];
10976
+ return [OBJECT, asString];
10977
+ };
10978
+ var shouldSkip = ([TYPE, type]) => TYPE === PRIMITIVE && (type === "function" || type === "symbol");
10979
+ var serializer = (strict, json, $, _) => {
10980
+ const as = (out, value) => {
10981
+ const index2 = _.push(out) - 1;
10982
+ $.set(value, index2);
10983
+ return index2;
10988
10984
  };
10989
- state.patch(node2, result);
10990
- return state.applyData(node2, result);
10991
- }
10992
-
10993
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/html.js
10994
- function html2(state, node2) {
10995
- if (state.options.allowDangerousHtml) {
10996
- const result = { type: "raw", value: node2.value };
10997
- state.patch(node2, result);
10998
- return state.applyData(node2, result);
10999
- }
11000
- return;
11001
- }
11002
-
11003
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/revert.js
11004
- function revert(state, node2) {
11005
- const subtype = node2.referenceType;
11006
- let suffix = "]";
11007
- if (subtype === "collapsed") {
11008
- suffix += "[]";
11009
- } else if (subtype === "full") {
11010
- suffix += "[" + (node2.label || node2.identifier) + "]";
11011
- }
11012
- if (node2.type === "imageReference") {
11013
- return [{ type: "text", value: "![" + node2.alt + suffix }];
11014
- }
11015
- const contents = state.all(node2);
11016
- const head = contents[0];
11017
- if (head && head.type === "text") {
11018
- head.value = "[" + head.value;
11019
- } else {
11020
- contents.unshift({ type: "text", value: "[" });
11021
- }
11022
- const tail = contents[contents.length - 1];
11023
- if (tail && tail.type === "text") {
11024
- tail.value += suffix;
11025
- } else {
11026
- contents.push({ type: "text", value: suffix });
11027
- }
11028
- return contents;
11029
- }
10985
+ const pair = (value) => {
10986
+ if ($.has(value))
10987
+ return $.get(value);
10988
+ let [TYPE, type] = typeOf(value);
10989
+ switch (TYPE) {
10990
+ case PRIMITIVE: {
10991
+ let entry = value;
10992
+ switch (type) {
10993
+ case "bigint":
10994
+ TYPE = BIGINT;
10995
+ entry = value.toString();
10996
+ break;
10997
+ case "function":
10998
+ case "symbol":
10999
+ if (strict)
11000
+ throw new TypeError("unable to serialize " + type);
11001
+ entry = null;
11002
+ break;
11003
+ case "undefined":
11004
+ return as([VOID], value);
11005
+ }
11006
+ return as([TYPE, entry], value);
11007
+ }
11008
+ case ARRAY: {
11009
+ if (type) {
11010
+ let spread = value;
11011
+ if (type === "DataView") {
11012
+ spread = new Uint8Array(value.buffer);
11013
+ } else if (type === "ArrayBuffer") {
11014
+ spread = new Uint8Array(value);
11015
+ }
11016
+ return as([type, [...spread]], value);
11017
+ }
11018
+ const arr = [];
11019
+ const index2 = as([TYPE, arr], value);
11020
+ for (const entry of value)
11021
+ arr.push(pair(entry));
11022
+ return index2;
11023
+ }
11024
+ case OBJECT: {
11025
+ if (type) {
11026
+ switch (type) {
11027
+ case "BigInt":
11028
+ return as([type, value.toString()], value);
11029
+ case "Boolean":
11030
+ case "Number":
11031
+ case "String":
11032
+ return as([type, value.valueOf()], value);
11033
+ }
11034
+ }
11035
+ if (json && "toJSON" in value)
11036
+ return pair(value.toJSON());
11037
+ const entries = [];
11038
+ const index2 = as([TYPE, entries], value);
11039
+ for (const key of keys(value)) {
11040
+ if (strict || !shouldSkip(typeOf(value[key])))
11041
+ entries.push([pair(key), pair(value[key])]);
11042
+ }
11043
+ return index2;
11044
+ }
11045
+ case DATE:
11046
+ return as([TYPE, value.toISOString()], value);
11047
+ case REGEXP: {
11048
+ const { source, flags } = value;
11049
+ return as([TYPE, { source, flags }], value);
11050
+ }
11051
+ case MAP: {
11052
+ const entries = [];
11053
+ const index2 = as([TYPE, entries], value);
11054
+ for (const [key, entry] of value) {
11055
+ if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))
11056
+ entries.push([pair(key), pair(entry)]);
11057
+ }
11058
+ return index2;
11059
+ }
11060
+ case SET: {
11061
+ const entries = [];
11062
+ const index2 = as([TYPE, entries], value);
11063
+ for (const entry of value) {
11064
+ if (strict || !shouldSkip(typeOf(entry)))
11065
+ entries.push(pair(entry));
11066
+ }
11067
+ return index2;
11068
+ }
11069
+ }
11070
+ const { message } = value;
11071
+ return as([TYPE, { name: type, message }], value);
11072
+ };
11073
+ return pair;
11074
+ };
11075
+ var serialize2 = (value, { json, lossy } = {}) => {
11076
+ const _ = [];
11077
+ return serializer(!(json || lossy), !!json, new Map, _)(value), _;
11078
+ };
11030
11079
 
11031
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js
11032
- function imageReference2(state, node2) {
11033
- const id = String(node2.identifier).toUpperCase();
11034
- const definition3 = state.definitionById.get(id);
11035
- if (!definition3) {
11036
- return revert(state, node2);
11037
- }
11038
- const properties = { src: normalizeUri(definition3.url || ""), alt: node2.alt };
11039
- if (definition3.title !== null && definition3.title !== undefined) {
11040
- properties.title = definition3.title;
11041
- }
11042
- const result = { type: "element", tagName: "img", properties, children: [] };
11043
- state.patch(node2, result);
11044
- return state.applyData(node2, result);
11045
- }
11080
+ // ../../node_modules/.bun/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.js
11081
+ var esm_default = typeof structuredClone === "function" ? (any, options) => options && (("json" in options) || ("lossy" in options)) ? deserialize(serialize2(any, options)) : structuredClone(any) : (any, options) => deserialize(serialize2(any, options));
11046
11082
 
11047
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image.js
11048
- function image2(state, node2) {
11049
- const properties = { src: normalizeUri(node2.url) };
11050
- if (node2.alt !== null && node2.alt !== undefined) {
11051
- properties.alt = node2.alt;
11052
- }
11053
- if (node2.title !== null && node2.title !== undefined) {
11054
- properties.title = node2.title;
11083
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/footer.js
11084
+ function defaultFootnoteBackContent(_, rereferenceIndex) {
11085
+ const result = [{ type: "text", value: "↩" }];
11086
+ if (rereferenceIndex > 1) {
11087
+ result.push({
11088
+ type: "element",
11089
+ tagName: "sup",
11090
+ properties: {},
11091
+ children: [{ type: "text", value: String(rereferenceIndex) }]
11092
+ });
11055
11093
  }
11056
- const result = { type: "element", tagName: "img", properties, children: [] };
11057
- state.patch(node2, result);
11058
- return state.applyData(node2, result);
11094
+ return result;
11059
11095
  }
11060
-
11061
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js
11062
- function inlineCode2(state, node2) {
11063
- const text5 = { type: "text", value: node2.value.replace(/\r?\n|\r/g, " ") };
11064
- state.patch(node2, text5);
11065
- const result = {
11066
- type: "element",
11067
- tagName: "code",
11068
- properties: {},
11069
- children: [text5]
11070
- };
11071
- state.patch(node2, result);
11072
- return state.applyData(node2, result);
11096
+ function defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) {
11097
+ return "Back to reference " + (referenceIndex + 1) + (rereferenceIndex > 1 ? "-" + rereferenceIndex : "");
11073
11098
  }
11074
-
11075
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js
11076
- function linkReference2(state, node2) {
11077
- const id = String(node2.identifier).toUpperCase();
11078
- const definition3 = state.definitionById.get(id);
11079
- if (!definition3) {
11080
- return revert(state, node2);
11099
+ function footer(state) {
11100
+ const clobberPrefix = typeof state.options.clobberPrefix === "string" ? state.options.clobberPrefix : "user-content-";
11101
+ const footnoteBackContent = state.options.footnoteBackContent || defaultFootnoteBackContent;
11102
+ const footnoteBackLabel = state.options.footnoteBackLabel || defaultFootnoteBackLabel;
11103
+ const footnoteLabel = state.options.footnoteLabel || "Footnotes";
11104
+ const footnoteLabelTagName = state.options.footnoteLabelTagName || "h2";
11105
+ const footnoteLabelProperties = state.options.footnoteLabelProperties || {
11106
+ className: ["sr-only"]
11107
+ };
11108
+ const listItems = [];
11109
+ let referenceIndex = -1;
11110
+ while (++referenceIndex < state.footnoteOrder.length) {
11111
+ const definition3 = state.footnoteById.get(state.footnoteOrder[referenceIndex]);
11112
+ if (!definition3) {
11113
+ continue;
11114
+ }
11115
+ const content3 = state.all(definition3);
11116
+ const id = String(definition3.identifier).toUpperCase();
11117
+ const safeId = normalizeUri(id.toLowerCase());
11118
+ let rereferenceIndex = 0;
11119
+ const backReferences = [];
11120
+ const counts = state.footnoteCounts.get(id);
11121
+ while (counts !== undefined && ++rereferenceIndex <= counts) {
11122
+ if (backReferences.length > 0) {
11123
+ backReferences.push({ type: "text", value: " " });
11124
+ }
11125
+ let children = typeof footnoteBackContent === "string" ? footnoteBackContent : footnoteBackContent(referenceIndex, rereferenceIndex);
11126
+ if (typeof children === "string") {
11127
+ children = { type: "text", value: children };
11128
+ }
11129
+ backReferences.push({
11130
+ type: "element",
11131
+ tagName: "a",
11132
+ properties: {
11133
+ href: "#" + clobberPrefix + "fnref-" + safeId + (rereferenceIndex > 1 ? "-" + rereferenceIndex : ""),
11134
+ dataFootnoteBackref: "",
11135
+ ariaLabel: typeof footnoteBackLabel === "string" ? footnoteBackLabel : footnoteBackLabel(referenceIndex, rereferenceIndex),
11136
+ className: ["data-footnote-backref"]
11137
+ },
11138
+ children: Array.isArray(children) ? children : [children]
11139
+ });
11140
+ }
11141
+ const tail = content3[content3.length - 1];
11142
+ if (tail && tail.type === "element" && tail.tagName === "p") {
11143
+ const tailTail = tail.children[tail.children.length - 1];
11144
+ if (tailTail && tailTail.type === "text") {
11145
+ tailTail.value += " ";
11146
+ } else {
11147
+ tail.children.push({ type: "text", value: " " });
11148
+ }
11149
+ tail.children.push(...backReferences);
11150
+ } else {
11151
+ content3.push(...backReferences);
11152
+ }
11153
+ const listItem2 = {
11154
+ type: "element",
11155
+ tagName: "li",
11156
+ properties: { id: clobberPrefix + "fn-" + safeId },
11157
+ children: state.wrap(content3, true)
11158
+ };
11159
+ state.patch(definition3, listItem2);
11160
+ listItems.push(listItem2);
11081
11161
  }
11082
- const properties = { href: normalizeUri(definition3.url || "") };
11083
- if (definition3.title !== null && definition3.title !== undefined) {
11084
- properties.title = definition3.title;
11162
+ if (listItems.length === 0) {
11163
+ return;
11085
11164
  }
11086
- const result = {
11165
+ return {
11087
11166
  type: "element",
11088
- tagName: "a",
11089
- properties,
11090
- children: state.all(node2)
11091
- };
11092
- state.patch(node2, result);
11093
- return state.applyData(node2, result);
11094
- }
11095
-
11096
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link.js
11097
- function link2(state, node2) {
11098
- const properties = { href: normalizeUri(node2.url) };
11099
- if (node2.title !== null && node2.title !== undefined) {
11100
- properties.title = node2.title;
11101
- }
11102
- const result = {
11103
- type: "element",
11104
- tagName: "a",
11105
- properties,
11106
- children: state.all(node2)
11107
- };
11108
- state.patch(node2, result);
11109
- return state.applyData(node2, result);
11110
- }
11111
-
11112
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list-item.js
11113
- function listItem2(state, node2, parent) {
11114
- const results = state.all(node2);
11115
- const loose = parent ? listLoose(parent) : listItemLoose(node2);
11116
- const properties = {};
11117
- const children = [];
11118
- if (typeof node2.checked === "boolean") {
11119
- const head = results[0];
11120
- let paragraph2;
11121
- if (head && head.type === "element" && head.tagName === "p") {
11122
- paragraph2 = head;
11123
- } else {
11124
- paragraph2 = { type: "element", tagName: "p", properties: {}, children: [] };
11125
- results.unshift(paragraph2);
11126
- }
11127
- if (paragraph2.children.length > 0) {
11128
- paragraph2.children.unshift({ type: "text", value: " " });
11129
- }
11130
- paragraph2.children.unshift({
11131
- type: "element",
11132
- tagName: "input",
11133
- properties: { type: "checkbox", checked: node2.checked, disabled: true },
11134
- children: []
11135
- });
11136
- properties.className = ["task-list-item"];
11137
- }
11138
- let index2 = -1;
11139
- while (++index2 < results.length) {
11140
- const child = results[index2];
11141
- if (loose || index2 !== 0 || child.type !== "element" || child.tagName !== "p") {
11142
- children.push({ type: "text", value: `
11143
- ` });
11144
- }
11145
- if (child.type === "element" && child.tagName === "p" && !loose) {
11146
- children.push(...child.children);
11147
- } else {
11148
- children.push(child);
11149
- }
11150
- }
11151
- const tail = results[results.length - 1];
11152
- if (tail && (loose || tail.type !== "element" || tail.tagName !== "p")) {
11153
- children.push({ type: "text", value: `
11154
- ` });
11155
- }
11156
- const result = { type: "element", tagName: "li", properties, children };
11157
- state.patch(node2, result);
11158
- return state.applyData(node2, result);
11159
- }
11160
- function listLoose(node2) {
11161
- let loose = false;
11162
- if (node2.type === "list") {
11163
- loose = node2.spread || false;
11164
- const children = node2.children;
11165
- let index2 = -1;
11166
- while (!loose && ++index2 < children.length) {
11167
- loose = listItemLoose(children[index2]);
11168
- }
11169
- }
11170
- return loose;
11171
- }
11172
- function listItemLoose(node2) {
11173
- const spread = node2.spread;
11174
- return spread === null || spread === undefined ? node2.children.length > 1 : spread;
11175
- }
11176
-
11177
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list.js
11178
- function list3(state, node2) {
11179
- const properties = {};
11180
- const results = state.all(node2);
11181
- let index2 = -1;
11182
- if (typeof node2.start === "number" && node2.start !== 1) {
11183
- properties.start = node2.start;
11184
- }
11185
- while (++index2 < results.length) {
11186
- const child = results[index2];
11187
- if (child.type === "element" && child.tagName === "li" && child.properties && Array.isArray(child.properties.className) && child.properties.className.includes("task-list-item")) {
11188
- properties.className = ["contains-task-list"];
11189
- break;
11190
- }
11191
- }
11192
- const result = {
11193
- type: "element",
11194
- tagName: node2.ordered ? "ol" : "ul",
11195
- properties,
11196
- children: state.wrap(results, true)
11197
- };
11198
- state.patch(node2, result);
11199
- return state.applyData(node2, result);
11200
- }
11201
-
11202
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js
11203
- function paragraph2(state, node2) {
11204
- const result = {
11205
- type: "element",
11206
- tagName: "p",
11207
- properties: {},
11208
- children: state.all(node2)
11209
- };
11210
- state.patch(node2, result);
11211
- return state.applyData(node2, result);
11212
- }
11213
-
11214
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/root.js
11215
- function root2(state, node2) {
11216
- const result = { type: "root", children: state.wrap(state.all(node2)) };
11217
- state.patch(node2, result);
11218
- return state.applyData(node2, result);
11219
- }
11220
-
11221
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/strong.js
11222
- function strong2(state, node2) {
11223
- const result = {
11224
- type: "element",
11225
- tagName: "strong",
11226
- properties: {},
11227
- children: state.all(node2)
11167
+ tagName: "section",
11168
+ properties: { dataFootnotes: true, className: ["footnotes"] },
11169
+ children: [
11170
+ {
11171
+ type: "element",
11172
+ tagName: footnoteLabelTagName,
11173
+ properties: {
11174
+ ...esm_default(footnoteLabelProperties),
11175
+ id: "footnote-label"
11176
+ },
11177
+ children: [{ type: "text", value: footnoteLabel }]
11178
+ },
11179
+ { type: "text", value: `
11180
+ ` },
11181
+ {
11182
+ type: "element",
11183
+ tagName: "ol",
11184
+ properties: {},
11185
+ children: state.wrap(listItems, true)
11186
+ },
11187
+ { type: "text", value: `
11188
+ ` }
11189
+ ]
11228
11190
  };
11229
- state.patch(node2, result);
11230
- return state.applyData(node2, result);
11231
11191
  }
11232
11192
 
11233
11193
  // ../../node_modules/.bun/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.js
@@ -11253,83 +11213,56 @@ function position2(node2) {
11253
11213
  return { start, end };
11254
11214
  }
11255
11215
  }
11256
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table.js
11257
- function table(state, node2) {
11258
- const rows = state.all(node2);
11259
- const firstRow = rows.shift();
11260
- const tableContent = [];
11261
- if (firstRow) {
11262
- const head = {
11263
- type: "element",
11264
- tagName: "thead",
11265
- properties: {},
11266
- children: state.wrap([firstRow], true)
11267
- };
11268
- state.patch(node2.children[0], head);
11269
- tableContent.push(head);
11270
- }
11271
- if (rows.length > 0) {
11272
- const body = {
11273
- type: "element",
11274
- tagName: "tbody",
11275
- properties: {},
11276
- children: state.wrap(rows, true)
11277
- };
11278
- const start = pointStart(node2.children[1]);
11279
- const end = pointEnd(node2.children[node2.children.length - 1]);
11280
- if (start && end)
11281
- body.position = { start, end };
11282
- tableContent.push(body);
11283
- }
11216
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js
11217
+ function blockquote2(state, node2) {
11284
11218
  const result = {
11285
11219
  type: "element",
11286
- tagName: "table",
11220
+ tagName: "blockquote",
11287
11221
  properties: {},
11288
- children: state.wrap(tableContent, true)
11222
+ children: state.wrap(state.all(node2), true)
11289
11223
  };
11290
11224
  state.patch(node2, result);
11291
11225
  return state.applyData(node2, result);
11292
11226
  }
11293
11227
 
11294
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-row.js
11295
- function tableRow(state, node2, parent) {
11296
- const siblings = parent ? parent.children : undefined;
11297
- const rowIndex = siblings ? siblings.indexOf(node2) : 1;
11298
- const tagName = rowIndex === 0 ? "th" : "td";
11299
- const align = parent && parent.type === "table" ? parent.align : undefined;
11300
- const length = align ? align.length : node2.children.length;
11301
- let cellIndex = -1;
11302
- const cells = [];
11303
- while (++cellIndex < length) {
11304
- const cell = node2.children[cellIndex];
11305
- const properties = {};
11306
- const alignValue = align ? align[cellIndex] : undefined;
11307
- if (alignValue) {
11308
- properties.align = alignValue;
11309
- }
11310
- let result2 = { type: "element", tagName, properties, children: [] };
11311
- if (cell) {
11312
- result2.children = state.all(cell);
11313
- state.patch(cell, result2);
11314
- result2 = state.applyData(cell, result2);
11315
- }
11316
- cells.push(result2);
11228
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/break.js
11229
+ function hardBreak2(state, node2) {
11230
+ const result = { type: "element", tagName: "br", properties: {}, children: [] };
11231
+ state.patch(node2, result);
11232
+ return [state.applyData(node2, result), { type: "text", value: `
11233
+ ` }];
11234
+ }
11235
+
11236
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/code.js
11237
+ function code3(state, node2) {
11238
+ const value = node2.value ? node2.value + `
11239
+ ` : "";
11240
+ const properties = {};
11241
+ const language = node2.lang ? node2.lang.split(/\s+/) : [];
11242
+ if (language.length > 0) {
11243
+ properties.className = ["language-" + language[0]];
11317
11244
  }
11318
- const result = {
11245
+ let result = {
11319
11246
  type: "element",
11320
- tagName: "tr",
11321
- properties: {},
11322
- children: state.wrap(cells, true)
11247
+ tagName: "code",
11248
+ properties,
11249
+ children: [{ type: "text", value }]
11323
11250
  };
11251
+ if (node2.meta) {
11252
+ result.data = { meta: node2.meta };
11253
+ }
11324
11254
  state.patch(node2, result);
11325
- return state.applyData(node2, result);
11255
+ result = state.applyData(node2, result);
11256
+ result = { type: "element", tagName: "pre", properties: {}, children: [result] };
11257
+ state.patch(node2, result);
11258
+ return result;
11326
11259
  }
11327
11260
 
11328
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js
11329
- function tableCell(state, node2) {
11261
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/delete.js
11262
+ function strikethrough(state, node2) {
11330
11263
  const result = {
11331
11264
  type: "element",
11332
- tagName: "td",
11265
+ tagName: "del",
11333
11266
  properties: {},
11334
11267
  children: state.all(node2)
11335
11268
  };
@@ -11337,422 +11270,485 @@ function tableCell(state, node2) {
11337
11270
  return state.applyData(node2, result);
11338
11271
  }
11339
11272
 
11340
- // ../../node_modules/.bun/trim-lines@3.0.1/node_modules/trim-lines/index.js
11341
- var tab = 9;
11342
- var space = 32;
11343
- function trimLines(value) {
11344
- const source = String(value);
11345
- const search2 = /\r?\n|\r/g;
11346
- let match = search2.exec(source);
11347
- let last = 0;
11348
- const lines = [];
11349
- while (match) {
11350
- lines.push(trimLine(source.slice(last, match.index), last > 0, true), match[0]);
11351
- last = match.index + match[0].length;
11352
- match = search2.exec(source);
11273
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js
11274
+ function emphasis2(state, node2) {
11275
+ const result = {
11276
+ type: "element",
11277
+ tagName: "em",
11278
+ properties: {},
11279
+ children: state.all(node2)
11280
+ };
11281
+ state.patch(node2, result);
11282
+ return state.applyData(node2, result);
11283
+ }
11284
+
11285
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js
11286
+ function footnoteReference2(state, node2) {
11287
+ const clobberPrefix = typeof state.options.clobberPrefix === "string" ? state.options.clobberPrefix : "user-content-";
11288
+ const id = String(node2.identifier).toUpperCase();
11289
+ const safeId = normalizeUri(id.toLowerCase());
11290
+ const index2 = state.footnoteOrder.indexOf(id);
11291
+ let counter;
11292
+ let reuseCounter = state.footnoteCounts.get(id);
11293
+ if (reuseCounter === undefined) {
11294
+ reuseCounter = 0;
11295
+ state.footnoteOrder.push(id);
11296
+ counter = state.footnoteOrder.length;
11297
+ } else {
11298
+ counter = index2 + 1;
11353
11299
  }
11354
- lines.push(trimLine(source.slice(last), last > 0, false));
11355
- return lines.join("");
11300
+ reuseCounter += 1;
11301
+ state.footnoteCounts.set(id, reuseCounter);
11302
+ const link2 = {
11303
+ type: "element",
11304
+ tagName: "a",
11305
+ properties: {
11306
+ href: "#" + clobberPrefix + "fn-" + safeId,
11307
+ id: clobberPrefix + "fnref-" + safeId + (reuseCounter > 1 ? "-" + reuseCounter : ""),
11308
+ dataFootnoteRef: true,
11309
+ ariaDescribedBy: ["footnote-label"]
11310
+ },
11311
+ children: [{ type: "text", value: String(counter) }]
11312
+ };
11313
+ state.patch(node2, link2);
11314
+ const sup = {
11315
+ type: "element",
11316
+ tagName: "sup",
11317
+ properties: {},
11318
+ children: [link2]
11319
+ };
11320
+ state.patch(node2, sup);
11321
+ return state.applyData(node2, sup);
11356
11322
  }
11357
- function trimLine(value, start, end) {
11358
- let startIndex = 0;
11359
- let endIndex = value.length;
11360
- if (start) {
11361
- let code4 = value.codePointAt(startIndex);
11362
- while (code4 === tab || code4 === space) {
11363
- startIndex++;
11364
- code4 = value.codePointAt(startIndex);
11365
- }
11323
+
11324
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/heading.js
11325
+ function heading2(state, node2) {
11326
+ const result = {
11327
+ type: "element",
11328
+ tagName: "h" + node2.depth,
11329
+ properties: {},
11330
+ children: state.all(node2)
11331
+ };
11332
+ state.patch(node2, result);
11333
+ return state.applyData(node2, result);
11334
+ }
11335
+
11336
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/html.js
11337
+ function html2(state, node2) {
11338
+ if (state.options.allowDangerousHtml) {
11339
+ const result = { type: "raw", value: node2.value };
11340
+ state.patch(node2, result);
11341
+ return state.applyData(node2, result);
11366
11342
  }
11367
- if (end) {
11368
- let code4 = value.codePointAt(endIndex - 1);
11369
- while (code4 === tab || code4 === space) {
11370
- endIndex--;
11371
- code4 = value.codePointAt(endIndex - 1);
11372
- }
11343
+ return;
11344
+ }
11345
+
11346
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/revert.js
11347
+ function revert(state, node2) {
11348
+ const subtype = node2.referenceType;
11349
+ let suffix = "]";
11350
+ if (subtype === "collapsed") {
11351
+ suffix += "[]";
11352
+ } else if (subtype === "full") {
11353
+ suffix += "[" + (node2.label || node2.identifier) + "]";
11373
11354
  }
11374
- return endIndex > startIndex ? value.slice(startIndex, endIndex) : "";
11355
+ if (node2.type === "imageReference") {
11356
+ return [{ type: "text", value: "![" + node2.alt + suffix }];
11357
+ }
11358
+ const contents = state.all(node2);
11359
+ const head = contents[0];
11360
+ if (head && head.type === "text") {
11361
+ head.value = "[" + head.value;
11362
+ } else {
11363
+ contents.unshift({ type: "text", value: "[" });
11364
+ }
11365
+ const tail = contents[contents.length - 1];
11366
+ if (tail && tail.type === "text") {
11367
+ tail.value += suffix;
11368
+ } else {
11369
+ contents.push({ type: "text", value: suffix });
11370
+ }
11371
+ return contents;
11375
11372
  }
11376
11373
 
11377
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/text.js
11378
- function text5(state, node2) {
11379
- const result = { type: "text", value: trimLines(String(node2.value)) };
11374
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js
11375
+ function imageReference2(state, node2) {
11376
+ const id = String(node2.identifier).toUpperCase();
11377
+ const definition3 = state.definitionById.get(id);
11378
+ if (!definition3) {
11379
+ return revert(state, node2);
11380
+ }
11381
+ const properties = { src: normalizeUri(definition3.url || ""), alt: node2.alt };
11382
+ if (definition3.title !== null && definition3.title !== undefined) {
11383
+ properties.title = definition3.title;
11384
+ }
11385
+ const result = { type: "element", tagName: "img", properties, children: [] };
11380
11386
  state.patch(node2, result);
11381
11387
  return state.applyData(node2, result);
11382
11388
  }
11383
11389
 
11384
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js
11385
- function thematicBreak3(state, node2) {
11390
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image.js
11391
+ function image2(state, node2) {
11392
+ const properties = { src: normalizeUri(node2.url) };
11393
+ if (node2.alt !== null && node2.alt !== undefined) {
11394
+ properties.alt = node2.alt;
11395
+ }
11396
+ if (node2.title !== null && node2.title !== undefined) {
11397
+ properties.title = node2.title;
11398
+ }
11399
+ const result = { type: "element", tagName: "img", properties, children: [] };
11400
+ state.patch(node2, result);
11401
+ return state.applyData(node2, result);
11402
+ }
11403
+
11404
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js
11405
+ function inlineCode2(state, node2) {
11406
+ const text5 = { type: "text", value: node2.value.replace(/\r?\n|\r/g, " ") };
11407
+ state.patch(node2, text5);
11386
11408
  const result = {
11387
11409
  type: "element",
11388
- tagName: "hr",
11410
+ tagName: "code",
11389
11411
  properties: {},
11390
- children: []
11412
+ children: [text5]
11391
11413
  };
11392
11414
  state.patch(node2, result);
11393
11415
  return state.applyData(node2, result);
11394
11416
  }
11395
11417
 
11396
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/index.js
11397
- var handlers = {
11398
- blockquote: blockquote2,
11399
- break: hardBreak2,
11400
- code: code3,
11401
- delete: strikethrough,
11402
- emphasis: emphasis2,
11403
- footnoteReference: footnoteReference2,
11404
- heading: heading2,
11405
- html: html2,
11406
- imageReference: imageReference2,
11407
- image: image2,
11408
- inlineCode: inlineCode2,
11409
- linkReference: linkReference2,
11410
- link: link2,
11411
- listItem: listItem2,
11412
- list: list3,
11413
- paragraph: paragraph2,
11414
- root: root2,
11415
- strong: strong2,
11416
- table,
11417
- tableCell,
11418
- tableRow,
11419
- text: text5,
11420
- thematicBreak: thematicBreak3,
11421
- toml: ignore,
11422
- yaml: ignore,
11423
- definition: ignore,
11424
- footnoteDefinition: ignore
11425
- };
11426
- function ignore() {
11427
- return;
11418
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js
11419
+ function linkReference2(state, node2) {
11420
+ const id = String(node2.identifier).toUpperCase();
11421
+ const definition3 = state.definitionById.get(id);
11422
+ if (!definition3) {
11423
+ return revert(state, node2);
11424
+ }
11425
+ const properties = { href: normalizeUri(definition3.url || "") };
11426
+ if (definition3.title !== null && definition3.title !== undefined) {
11427
+ properties.title = definition3.title;
11428
+ }
11429
+ const result = {
11430
+ type: "element",
11431
+ tagName: "a",
11432
+ properties,
11433
+ children: state.all(node2)
11434
+ };
11435
+ state.patch(node2, result);
11436
+ return state.applyData(node2, result);
11428
11437
  }
11429
11438
 
11430
- // ../../node_modules/.bun/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.js
11431
- var VOID = -1;
11432
- var PRIMITIVE = 0;
11433
- var ARRAY = 1;
11434
- var OBJECT = 2;
11435
- var DATE = 3;
11436
- var REGEXP = 4;
11437
- var MAP = 5;
11438
- var SET = 6;
11439
- var ERROR = 7;
11440
- var BIGINT = 8;
11441
-
11442
- // ../../node_modules/.bun/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.js
11443
- var env = typeof self === "object" ? self : globalThis;
11444
- var deserializer = ($, _) => {
11445
- const as = (out, index2) => {
11446
- $.set(index2, out);
11447
- return out;
11439
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link.js
11440
+ function link2(state, node2) {
11441
+ const properties = { href: normalizeUri(node2.url) };
11442
+ if (node2.title !== null && node2.title !== undefined) {
11443
+ properties.title = node2.title;
11444
+ }
11445
+ const result = {
11446
+ type: "element",
11447
+ tagName: "a",
11448
+ properties,
11449
+ children: state.all(node2)
11448
11450
  };
11449
- const unpair = (index2) => {
11450
- if ($.has(index2))
11451
- return $.get(index2);
11452
- const [type, value] = _[index2];
11453
- switch (type) {
11454
- case PRIMITIVE:
11455
- case VOID:
11456
- return as(value, index2);
11457
- case ARRAY: {
11458
- const arr = as([], index2);
11459
- for (const index3 of value)
11460
- arr.push(unpair(index3));
11461
- return arr;
11462
- }
11463
- case OBJECT: {
11464
- const object = as({}, index2);
11465
- for (const [key, index3] of value)
11466
- object[unpair(key)] = unpair(index3);
11467
- return object;
11468
- }
11469
- case DATE:
11470
- return as(new Date(value), index2);
11471
- case REGEXP: {
11472
- const { source, flags } = value;
11473
- return as(new RegExp(source, flags), index2);
11474
- }
11475
- case MAP: {
11476
- const map3 = as(new Map, index2);
11477
- for (const [key, index3] of value)
11478
- map3.set(unpair(key), unpair(index3));
11479
- return map3;
11480
- }
11481
- case SET: {
11482
- const set = as(new Set, index2);
11483
- for (const index3 of value)
11484
- set.add(unpair(index3));
11485
- return set;
11486
- }
11487
- case ERROR: {
11488
- const { name, message } = value;
11489
- return as(new env[name](message), index2);
11490
- }
11491
- case BIGINT:
11492
- return as(BigInt(value), index2);
11493
- case "BigInt":
11494
- return as(Object(BigInt(value)), index2);
11495
- case "ArrayBuffer":
11496
- return as(new Uint8Array(value).buffer, value);
11497
- case "DataView": {
11498
- const { buffer } = new Uint8Array(value);
11499
- return as(new DataView(buffer), value);
11500
- }
11451
+ state.patch(node2, result);
11452
+ return state.applyData(node2, result);
11453
+ }
11454
+
11455
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list-item.js
11456
+ function listItem2(state, node2, parent) {
11457
+ const results = state.all(node2);
11458
+ const loose = parent ? listLoose(parent) : listItemLoose(node2);
11459
+ const properties = {};
11460
+ const children = [];
11461
+ if (typeof node2.checked === "boolean") {
11462
+ const head = results[0];
11463
+ let paragraph2;
11464
+ if (head && head.type === "element" && head.tagName === "p") {
11465
+ paragraph2 = head;
11466
+ } else {
11467
+ paragraph2 = { type: "element", tagName: "p", properties: {}, children: [] };
11468
+ results.unshift(paragraph2);
11501
11469
  }
11502
- return as(new env[type](value), index2);
11503
- };
11504
- return unpair;
11505
- };
11506
- var deserialize = (serialized) => deserializer(new Map, serialized)(0);
11470
+ if (paragraph2.children.length > 0) {
11471
+ paragraph2.children.unshift({ type: "text", value: " " });
11472
+ }
11473
+ paragraph2.children.unshift({
11474
+ type: "element",
11475
+ tagName: "input",
11476
+ properties: { type: "checkbox", checked: node2.checked, disabled: true },
11477
+ children: []
11478
+ });
11479
+ properties.className = ["task-list-item"];
11480
+ }
11481
+ let index2 = -1;
11482
+ while (++index2 < results.length) {
11483
+ const child = results[index2];
11484
+ if (loose || index2 !== 0 || child.type !== "element" || child.tagName !== "p") {
11485
+ children.push({ type: "text", value: `
11486
+ ` });
11487
+ }
11488
+ if (child.type === "element" && child.tagName === "p" && !loose) {
11489
+ children.push(...child.children);
11490
+ } else {
11491
+ children.push(child);
11492
+ }
11493
+ }
11494
+ const tail = results[results.length - 1];
11495
+ if (tail && (loose || tail.type !== "element" || tail.tagName !== "p")) {
11496
+ children.push({ type: "text", value: `
11497
+ ` });
11498
+ }
11499
+ const result = { type: "element", tagName: "li", properties, children };
11500
+ state.patch(node2, result);
11501
+ return state.applyData(node2, result);
11502
+ }
11503
+ function listLoose(node2) {
11504
+ let loose = false;
11505
+ if (node2.type === "list") {
11506
+ loose = node2.spread || false;
11507
+ const children = node2.children;
11508
+ let index2 = -1;
11509
+ while (!loose && ++index2 < children.length) {
11510
+ loose = listItemLoose(children[index2]);
11511
+ }
11512
+ }
11513
+ return loose;
11514
+ }
11515
+ function listItemLoose(node2) {
11516
+ const spread = node2.spread;
11517
+ return spread === null || spread === undefined ? node2.children.length > 1 : spread;
11518
+ }
11507
11519
 
11508
- // ../../node_modules/.bun/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.js
11509
- var EMPTY = "";
11510
- var { toString: toString2 } = {};
11511
- var { keys } = Object;
11512
- var typeOf = (value) => {
11513
- const type = typeof value;
11514
- if (type !== "object" || !value)
11515
- return [PRIMITIVE, type];
11516
- const asString = toString2.call(value).slice(8, -1);
11517
- switch (asString) {
11518
- case "Array":
11519
- return [ARRAY, EMPTY];
11520
- case "Object":
11521
- return [OBJECT, EMPTY];
11522
- case "Date":
11523
- return [DATE, EMPTY];
11524
- case "RegExp":
11525
- return [REGEXP, EMPTY];
11526
- case "Map":
11527
- return [MAP, EMPTY];
11528
- case "Set":
11529
- return [SET, EMPTY];
11530
- case "DataView":
11531
- return [ARRAY, asString];
11520
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list.js
11521
+ function list3(state, node2) {
11522
+ const properties = {};
11523
+ const results = state.all(node2);
11524
+ let index2 = -1;
11525
+ if (typeof node2.start === "number" && node2.start !== 1) {
11526
+ properties.start = node2.start;
11532
11527
  }
11533
- if (asString.includes("Array"))
11534
- return [ARRAY, asString];
11535
- if (asString.includes("Error"))
11536
- return [ERROR, asString];
11537
- return [OBJECT, asString];
11538
- };
11539
- var shouldSkip = ([TYPE, type]) => TYPE === PRIMITIVE && (type === "function" || type === "symbol");
11540
- var serializer = (strict, json, $, _) => {
11541
- const as = (out, value) => {
11542
- const index2 = _.push(out) - 1;
11543
- $.set(value, index2);
11544
- return index2;
11545
- };
11546
- const pair = (value) => {
11547
- if ($.has(value))
11548
- return $.get(value);
11549
- let [TYPE, type] = typeOf(value);
11550
- switch (TYPE) {
11551
- case PRIMITIVE: {
11552
- let entry = value;
11553
- switch (type) {
11554
- case "bigint":
11555
- TYPE = BIGINT;
11556
- entry = value.toString();
11557
- break;
11558
- case "function":
11559
- case "symbol":
11560
- if (strict)
11561
- throw new TypeError("unable to serialize " + type);
11562
- entry = null;
11563
- break;
11564
- case "undefined":
11565
- return as([VOID], value);
11566
- }
11567
- return as([TYPE, entry], value);
11568
- }
11569
- case ARRAY: {
11570
- if (type) {
11571
- let spread = value;
11572
- if (type === "DataView") {
11573
- spread = new Uint8Array(value.buffer);
11574
- } else if (type === "ArrayBuffer") {
11575
- spread = new Uint8Array(value);
11576
- }
11577
- return as([type, [...spread]], value);
11578
- }
11579
- const arr = [];
11580
- const index2 = as([TYPE, arr], value);
11581
- for (const entry of value)
11582
- arr.push(pair(entry));
11583
- return index2;
11584
- }
11585
- case OBJECT: {
11586
- if (type) {
11587
- switch (type) {
11588
- case "BigInt":
11589
- return as([type, value.toString()], value);
11590
- case "Boolean":
11591
- case "Number":
11592
- case "String":
11593
- return as([type, value.valueOf()], value);
11594
- }
11595
- }
11596
- if (json && "toJSON" in value)
11597
- return pair(value.toJSON());
11598
- const entries = [];
11599
- const index2 = as([TYPE, entries], value);
11600
- for (const key of keys(value)) {
11601
- if (strict || !shouldSkip(typeOf(value[key])))
11602
- entries.push([pair(key), pair(value[key])]);
11603
- }
11604
- return index2;
11605
- }
11606
- case DATE:
11607
- return as([TYPE, value.toISOString()], value);
11608
- case REGEXP: {
11609
- const { source, flags } = value;
11610
- return as([TYPE, { source, flags }], value);
11611
- }
11612
- case MAP: {
11613
- const entries = [];
11614
- const index2 = as([TYPE, entries], value);
11615
- for (const [key, entry] of value) {
11616
- if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))
11617
- entries.push([pair(key), pair(entry)]);
11618
- }
11619
- return index2;
11620
- }
11621
- case SET: {
11622
- const entries = [];
11623
- const index2 = as([TYPE, entries], value);
11624
- for (const entry of value) {
11625
- if (strict || !shouldSkip(typeOf(entry)))
11626
- entries.push(pair(entry));
11627
- }
11628
- return index2;
11629
- }
11528
+ while (++index2 < results.length) {
11529
+ const child = results[index2];
11530
+ if (child.type === "element" && child.tagName === "li" && child.properties && Array.isArray(child.properties.className) && child.properties.className.includes("task-list-item")) {
11531
+ properties.className = ["contains-task-list"];
11532
+ break;
11630
11533
  }
11631
- const { message } = value;
11632
- return as([TYPE, { name: type, message }], value);
11534
+ }
11535
+ const result = {
11536
+ type: "element",
11537
+ tagName: node2.ordered ? "ol" : "ul",
11538
+ properties,
11539
+ children: state.wrap(results, true)
11633
11540
  };
11634
- return pair;
11635
- };
11636
- var serialize2 = (value, { json, lossy } = {}) => {
11637
- const _ = [];
11638
- return serializer(!(json || lossy), !!json, new Map, _)(value), _;
11639
- };
11541
+ state.patch(node2, result);
11542
+ return state.applyData(node2, result);
11543
+ }
11640
11544
 
11641
- // ../../node_modules/.bun/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.js
11642
- var esm_default = typeof structuredClone === "function" ? (any, options) => options && (("json" in options) || ("lossy" in options)) ? deserialize(serialize2(any, options)) : structuredClone(any) : (any, options) => deserialize(serialize2(any, options));
11545
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js
11546
+ function paragraph2(state, node2) {
11547
+ const result = {
11548
+ type: "element",
11549
+ tagName: "p",
11550
+ properties: {},
11551
+ children: state.all(node2)
11552
+ };
11553
+ state.patch(node2, result);
11554
+ return state.applyData(node2, result);
11555
+ }
11643
11556
 
11644
- // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/footer.js
11645
- function defaultFootnoteBackContent(_, rereferenceIndex) {
11646
- const result = [{ type: "text", value: "↩" }];
11647
- if (rereferenceIndex > 1) {
11648
- result.push({
11557
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/root.js
11558
+ function root2(state, node2) {
11559
+ const result = { type: "root", children: state.wrap(state.all(node2)) };
11560
+ state.patch(node2, result);
11561
+ return state.applyData(node2, result);
11562
+ }
11563
+
11564
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/strong.js
11565
+ function strong2(state, node2) {
11566
+ const result = {
11567
+ type: "element",
11568
+ tagName: "strong",
11569
+ properties: {},
11570
+ children: state.all(node2)
11571
+ };
11572
+ state.patch(node2, result);
11573
+ return state.applyData(node2, result);
11574
+ }
11575
+
11576
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table.js
11577
+ function table(state, node2) {
11578
+ const rows = state.all(node2);
11579
+ const firstRow = rows.shift();
11580
+ const tableContent = [];
11581
+ if (firstRow) {
11582
+ const head = {
11583
+ type: "element",
11584
+ tagName: "thead",
11585
+ properties: {},
11586
+ children: state.wrap([firstRow], true)
11587
+ };
11588
+ state.patch(node2.children[0], head);
11589
+ tableContent.push(head);
11590
+ }
11591
+ if (rows.length > 0) {
11592
+ const body = {
11649
11593
  type: "element",
11650
- tagName: "sup",
11594
+ tagName: "tbody",
11651
11595
  properties: {},
11652
- children: [{ type: "text", value: String(rereferenceIndex) }]
11653
- });
11596
+ children: state.wrap(rows, true)
11597
+ };
11598
+ const start = pointStart(node2.children[1]);
11599
+ const end = pointEnd(node2.children[node2.children.length - 1]);
11600
+ if (start && end)
11601
+ body.position = { start, end };
11602
+ tableContent.push(body);
11654
11603
  }
11655
- return result;
11656
- }
11657
- function defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) {
11658
- return "Back to reference " + (referenceIndex + 1) + (rereferenceIndex > 1 ? "-" + rereferenceIndex : "");
11659
- }
11660
- function footer(state) {
11661
- const clobberPrefix = typeof state.options.clobberPrefix === "string" ? state.options.clobberPrefix : "user-content-";
11662
- const footnoteBackContent = state.options.footnoteBackContent || defaultFootnoteBackContent;
11663
- const footnoteBackLabel = state.options.footnoteBackLabel || defaultFootnoteBackLabel;
11664
- const footnoteLabel = state.options.footnoteLabel || "Footnotes";
11665
- const footnoteLabelTagName = state.options.footnoteLabelTagName || "h2";
11666
- const footnoteLabelProperties = state.options.footnoteLabelProperties || {
11667
- className: ["sr-only"]
11604
+ const result = {
11605
+ type: "element",
11606
+ tagName: "table",
11607
+ properties: {},
11608
+ children: state.wrap(tableContent, true)
11668
11609
  };
11669
- const listItems = [];
11670
- let referenceIndex = -1;
11671
- while (++referenceIndex < state.footnoteOrder.length) {
11672
- const definition3 = state.footnoteById.get(state.footnoteOrder[referenceIndex]);
11673
- if (!definition3) {
11674
- continue;
11610
+ state.patch(node2, result);
11611
+ return state.applyData(node2, result);
11612
+ }
11613
+
11614
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-row.js
11615
+ function tableRow(state, node2, parent) {
11616
+ const siblings = parent ? parent.children : undefined;
11617
+ const rowIndex = siblings ? siblings.indexOf(node2) : 1;
11618
+ const tagName = rowIndex === 0 ? "th" : "td";
11619
+ const align = parent && parent.type === "table" ? parent.align : undefined;
11620
+ const length = align ? align.length : node2.children.length;
11621
+ let cellIndex = -1;
11622
+ const cells = [];
11623
+ while (++cellIndex < length) {
11624
+ const cell = node2.children[cellIndex];
11625
+ const properties = {};
11626
+ const alignValue = align ? align[cellIndex] : undefined;
11627
+ if (alignValue) {
11628
+ properties.align = alignValue;
11675
11629
  }
11676
- const content3 = state.all(definition3);
11677
- const id = String(definition3.identifier).toUpperCase();
11678
- const safeId = normalizeUri(id.toLowerCase());
11679
- let rereferenceIndex = 0;
11680
- const backReferences = [];
11681
- const counts = state.footnoteCounts.get(id);
11682
- while (counts !== undefined && ++rereferenceIndex <= counts) {
11683
- if (backReferences.length > 0) {
11684
- backReferences.push({ type: "text", value: " " });
11685
- }
11686
- let children = typeof footnoteBackContent === "string" ? footnoteBackContent : footnoteBackContent(referenceIndex, rereferenceIndex);
11687
- if (typeof children === "string") {
11688
- children = { type: "text", value: children };
11689
- }
11690
- backReferences.push({
11691
- type: "element",
11692
- tagName: "a",
11693
- properties: {
11694
- href: "#" + clobberPrefix + "fnref-" + safeId + (rereferenceIndex > 1 ? "-" + rereferenceIndex : ""),
11695
- dataFootnoteBackref: "",
11696
- ariaLabel: typeof footnoteBackLabel === "string" ? footnoteBackLabel : footnoteBackLabel(referenceIndex, rereferenceIndex),
11697
- className: ["data-footnote-backref"]
11698
- },
11699
- children: Array.isArray(children) ? children : [children]
11700
- });
11630
+ let result2 = { type: "element", tagName, properties, children: [] };
11631
+ if (cell) {
11632
+ result2.children = state.all(cell);
11633
+ state.patch(cell, result2);
11634
+ result2 = state.applyData(cell, result2);
11701
11635
  }
11702
- const tail = content3[content3.length - 1];
11703
- if (tail && tail.type === "element" && tail.tagName === "p") {
11704
- const tailTail = tail.children[tail.children.length - 1];
11705
- if (tailTail && tailTail.type === "text") {
11706
- tailTail.value += " ";
11707
- } else {
11708
- tail.children.push({ type: "text", value: " " });
11709
- }
11710
- tail.children.push(...backReferences);
11711
- } else {
11712
- content3.push(...backReferences);
11636
+ cells.push(result2);
11637
+ }
11638
+ const result = {
11639
+ type: "element",
11640
+ tagName: "tr",
11641
+ properties: {},
11642
+ children: state.wrap(cells, true)
11643
+ };
11644
+ state.patch(node2, result);
11645
+ return state.applyData(node2, result);
11646
+ }
11647
+
11648
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js
11649
+ function tableCell(state, node2) {
11650
+ const result = {
11651
+ type: "element",
11652
+ tagName: "td",
11653
+ properties: {},
11654
+ children: state.all(node2)
11655
+ };
11656
+ state.patch(node2, result);
11657
+ return state.applyData(node2, result);
11658
+ }
11659
+
11660
+ // ../../node_modules/.bun/trim-lines@3.0.1/node_modules/trim-lines/index.js
11661
+ var tab = 9;
11662
+ var space = 32;
11663
+ function trimLines(value) {
11664
+ const source = String(value);
11665
+ const search2 = /\r?\n|\r/g;
11666
+ let match = search2.exec(source);
11667
+ let last = 0;
11668
+ const lines = [];
11669
+ while (match) {
11670
+ lines.push(trimLine(source.slice(last, match.index), last > 0, true), match[0]);
11671
+ last = match.index + match[0].length;
11672
+ match = search2.exec(source);
11673
+ }
11674
+ lines.push(trimLine(source.slice(last), last > 0, false));
11675
+ return lines.join("");
11676
+ }
11677
+ function trimLine(value, start, end) {
11678
+ let startIndex = 0;
11679
+ let endIndex = value.length;
11680
+ if (start) {
11681
+ let code4 = value.codePointAt(startIndex);
11682
+ while (code4 === tab || code4 === space) {
11683
+ startIndex++;
11684
+ code4 = value.codePointAt(startIndex);
11713
11685
  }
11714
- const listItem3 = {
11715
- type: "element",
11716
- tagName: "li",
11717
- properties: { id: clobberPrefix + "fn-" + safeId },
11718
- children: state.wrap(content3, true)
11719
- };
11720
- state.patch(definition3, listItem3);
11721
- listItems.push(listItem3);
11722
11686
  }
11723
- if (listItems.length === 0) {
11724
- return;
11687
+ if (end) {
11688
+ let code4 = value.codePointAt(endIndex - 1);
11689
+ while (code4 === tab || code4 === space) {
11690
+ endIndex--;
11691
+ code4 = value.codePointAt(endIndex - 1);
11692
+ }
11725
11693
  }
11726
- return {
11694
+ return endIndex > startIndex ? value.slice(startIndex, endIndex) : "";
11695
+ }
11696
+
11697
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/text.js
11698
+ function text5(state, node2) {
11699
+ const result = { type: "text", value: trimLines(String(node2.value)) };
11700
+ state.patch(node2, result);
11701
+ return state.applyData(node2, result);
11702
+ }
11703
+
11704
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js
11705
+ function thematicBreak3(state, node2) {
11706
+ const result = {
11727
11707
  type: "element",
11728
- tagName: "section",
11729
- properties: { dataFootnotes: true, className: ["footnotes"] },
11730
- children: [
11731
- {
11732
- type: "element",
11733
- tagName: footnoteLabelTagName,
11734
- properties: {
11735
- ...esm_default(footnoteLabelProperties),
11736
- id: "footnote-label"
11737
- },
11738
- children: [{ type: "text", value: footnoteLabel }]
11739
- },
11740
- { type: "text", value: `
11741
- ` },
11742
- {
11743
- type: "element",
11744
- tagName: "ol",
11745
- properties: {},
11746
- children: state.wrap(listItems, true)
11747
- },
11748
- { type: "text", value: `
11749
- ` }
11750
- ]
11708
+ tagName: "hr",
11709
+ properties: {},
11710
+ children: []
11751
11711
  };
11712
+ state.patch(node2, result);
11713
+ return state.applyData(node2, result);
11714
+ }
11715
+
11716
+ // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/index.js
11717
+ var handlers = {
11718
+ blockquote: blockquote2,
11719
+ break: hardBreak2,
11720
+ code: code3,
11721
+ delete: strikethrough,
11722
+ emphasis: emphasis2,
11723
+ footnoteReference: footnoteReference2,
11724
+ heading: heading2,
11725
+ html: html2,
11726
+ imageReference: imageReference2,
11727
+ image: image2,
11728
+ inlineCode: inlineCode2,
11729
+ linkReference: linkReference2,
11730
+ link: link2,
11731
+ listItem: listItem2,
11732
+ list: list3,
11733
+ paragraph: paragraph2,
11734
+ root: root2,
11735
+ strong: strong2,
11736
+ table,
11737
+ tableCell,
11738
+ tableRow,
11739
+ text: text5,
11740
+ thematicBreak: thematicBreak3,
11741
+ toml: ignore,
11742
+ yaml: ignore,
11743
+ definition: ignore,
11744
+ footnoteDefinition: ignore
11745
+ };
11746
+ function ignore() {
11747
+ return;
11752
11748
  }
11753
11749
 
11754
11750
  // ../../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/state.js
11755
- var own4 = {}.hasOwnProperty;
11751
+ var own3 = {}.hasOwnProperty;
11756
11752
  var emptyOptions3 = {};
11757
11753
  function createState(tree, options) {
11758
11754
  const settings = options || emptyOptions3;
@@ -11786,7 +11782,7 @@ function createState(tree, options) {
11786
11782
  function one2(node2, parent) {
11787
11783
  const type = node2.type;
11788
11784
  const handle2 = state.handlers[type];
11789
- if (own4.call(state.handlers, type) && handle2) {
11785
+ if (own3.call(state.handlers, type) && handle2) {
11790
11786
  return handle2(state, node2, parent);
11791
11787
  }
11792
11788
  if (state.options.passThrough && state.options.passThrough.includes(type)) {
@@ -11860,7 +11856,7 @@ function applyData(from, to) {
11860
11856
  }
11861
11857
  function defaultUnknownHandler(state, node2) {
11862
11858
  const data = node2.data || {};
11863
- const result = "value" in node2 && !(own4.call(data, "hProperties") || own4.call(data, "hChildren")) ? { type: "text", value: node2.value } : {
11859
+ const result = "value" in node2 && !(own3.call(data, "hProperties") || own3.call(data, "hChildren")) ? { type: "text", value: node2.value } : {
11864
11860
  type: "element",
11865
11861
  tagName: "div",
11866
11862
  properties: {},
@@ -25976,6 +25972,27 @@ function camelcase($0) {
25976
25972
  var html4 = merge([aria, html3, xlink, xmlns, xml2], "html");
25977
25973
  var svg2 = merge([aria, svg, xlink, xmlns, xml2], "svg");
25978
25974
 
25975
+ // ../../node_modules/.bun/zwitch@2.0.4/node_modules/zwitch/index.js
25976
+ var own4 = {}.hasOwnProperty;
25977
+ function zwitch(key, options) {
25978
+ const settings = options || {};
25979
+ function one2(value, ...parameters) {
25980
+ let fn = one2.invalid;
25981
+ const handlers3 = one2.handlers;
25982
+ if (value && own4.call(value, key)) {
25983
+ const id = String(value[key]);
25984
+ fn = own4.call(handlers3, id) ? handlers3[id] : one2.unknown;
25985
+ }
25986
+ if (fn) {
25987
+ return fn.call(this, value, ...parameters);
25988
+ }
25989
+ }
25990
+ one2.handlers = settings.handlers || {};
25991
+ one2.invalid = settings.invalid;
25992
+ one2.unknown = settings.unknown;
25993
+ return one2;
25994
+ }
25995
+
25979
25996
  // ../../node_modules/.bun/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js
25980
25997
  var defaultSubsetRegex = /["&'<>`]/g;
25981
25998
  var surrogatePairsRegex = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
@@ -26510,10 +26527,10 @@ function siblings(increment2) {
26510
26527
 
26511
26528
  // ../../node_modules/.bun/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.js
26512
26529
  var own6 = {}.hasOwnProperty;
26513
- function omission(handlers2) {
26530
+ function omission(handlers3) {
26514
26531
  return omit;
26515
26532
  function omit(node2, index2, parent) {
26516
- return own6.call(handlers2, node2.tagName) && handlers2[node2.tagName](node2, index2, parent);
26533
+ return own6.call(handlers3, node2.tagName) && handlers3[node2.tagName](node2, index2, parent);
26517
26534
  }
26518
26535
  }
26519
26536
 
@@ -27610,5 +27627,5 @@ function register() {
27610
27627
  // src/register.ts
27611
27628
  register();
27612
27629
 
27613
- //# debugId=68449F03E5E7E0A764756E2164756E21
27630
+ //# debugId=1B8CD5A6EB93D23164756E2164756E21
27614
27631
  //# sourceMappingURL=register.js.map