required-doc 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +248 -243
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8,83 +8,83 @@ var w = /* @__PURE__ */ l({
8
8
  return (e, t) => (m(), r(y(re)));
9
9
  }
10
10
  }), T = [], E = [], D = [], O = !0, k = [], A;
11
- function j(e) {
11
+ function ae(e) {
12
12
  T = e.components, E = e.pages, D = e.colors, O = e.options?.showThemeToggle ?? !0, k = e.options?.devices ?? [], A = e.options?.baseColors;
13
13
  }
14
- function ae() {
14
+ function oe() {
15
15
  return O;
16
16
  }
17
- function oe() {
17
+ function se() {
18
18
  return k;
19
19
  }
20
- function se() {
20
+ function ce() {
21
21
  return A;
22
22
  }
23
- function M() {
23
+ function j() {
24
24
  return T;
25
25
  }
26
- function ce() {
26
+ function le() {
27
27
  return E;
28
28
  }
29
- function N() {
29
+ function ue() {
30
30
  return D;
31
31
  }
32
- function P(e, t) {
32
+ function de(e, t) {
33
33
  return [...T, ...E].find((n) => n.kind === e && n.name === t);
34
34
  }
35
35
  //#endregion
36
36
  //#region src/lib/theme.ts
37
- var F = h(!1);
38
- ne(F, (e) => {
37
+ var M = h(!1);
38
+ ne(M, (e) => {
39
39
  document.documentElement.classList.toggle("dark", e);
40
40
  }, { immediate: !0 });
41
- function le() {
41
+ function fe() {
42
42
  return {
43
- isDark: F,
43
+ isDark: M,
44
44
  toggle: () => {
45
- F.value = !F.value;
45
+ M.value = !M.value;
46
46
  }
47
47
  };
48
48
  }
49
49
  //#endregion
50
50
  //#region src/catalog/CatalogView.vue?vue&type=script&setup=true&lang.ts
51
- var I = { class: "mx-auto min-h-screen max-w-3xl p-8" }, ue = { class: "mb-8 flex items-center" }, L = { class: "mb-10" }, de = { class: "space-y-2" }, fe = { class: "font-bold dark:text-gray-100" }, pe = { class: "ml-1 text-xs text-gray-400" }, me = { class: "text-sm text-gray-500 dark:text-gray-400" }, he = { class: "mb-10" }, R = { class: "space-y-2" }, z = { class: "font-bold dark:text-gray-100" }, ge = { class: "ml-1 text-xs text-gray-400" }, B = { class: "text-sm text-gray-500 dark:text-gray-400" }, _e = { class: "mb-2 rounded-lg border border-gray-300 bg-white p-4 dark:border-gray-700 dark:bg-gray-800" }, ve = { class: "space-y-2 text-sm" }, ye = { class: "flex gap-3" }, be = { class: "font-bold dark:text-gray-100" }, xe = { class: "flex gap-3" }, Se = { class: "flex-1" }, Ce = { class: "space-y-1" }, we = { class: "space-y-2" }, Te = "block rounded-lg border border-gray-300 bg-white p-4 transition hover:border-blue-500 dark:border-gray-700 dark:bg-gray-800 dark:hover:border-blue-400", Ee = /* @__PURE__ */ l({
51
+ var pe = { class: "mx-auto min-h-screen max-w-3xl p-8" }, N = { class: "mb-8 flex items-center" }, me = { class: "mb-10" }, he = { class: "space-y-2" }, ge = { class: "font-bold dark:text-gray-100" }, P = { class: "ml-1 text-xs text-gray-400" }, _e = { class: "text-sm text-gray-500 dark:text-gray-400" }, ve = { class: "mb-10" }, ye = { class: "space-y-2" }, be = { class: "font-bold dark:text-gray-100" }, xe = { class: "ml-1 text-xs text-gray-400" }, Se = { class: "text-sm text-gray-500 dark:text-gray-400" }, F = { class: "mb-2 rounded-lg border border-gray-300 bg-white p-4 dark:border-gray-700 dark:bg-gray-800" }, I = { class: "space-y-2 text-sm" }, Ce = { class: "flex gap-3" }, we = { class: "font-bold dark:text-gray-100" }, Te = { class: "flex gap-3" }, Ee = { class: "flex-1" }, De = { class: "space-y-1" }, Oe = { class: "space-y-2" }, ke = "block rounded-lg border border-gray-300 bg-white p-4 transition hover:border-blue-500 dark:border-gray-700 dark:bg-gray-800 dark:hover:border-blue-400", Ae = /* @__PURE__ */ l({
52
52
  __name: "CatalogView",
53
53
  setup(t) {
54
- let { isDark: n, toggle: r } = le(), l = ae(), u = oe(), f = M(), p = ce();
54
+ let { isDark: n, toggle: r } = fe(), l = oe(), u = se(), f = j(), p = le();
55
55
  function ee(e) {
56
56
  return e.minWidth === e.maxWidth ? `${e.maxWidth}px` : `${e.minWidth}–${e.maxWidth}px`;
57
57
  }
58
- return (t, h) => (m(), a("div", I, [
59
- o("div", ue, [h[1] ||= o("h1", { class: "text-2xl font-bold dark:text-gray-100" }, "要件書カタログ", -1), y(l) ? (m(), a("button", {
58
+ return (t, h) => (m(), a("div", pe, [
59
+ o("div", N, [h[1] ||= o("h1", { class: "text-2xl font-bold dark:text-gray-100" }, "要件書カタログ", -1), y(l) ? (m(), a("button", {
60
60
  key: 0,
61
61
  type: "button",
62
62
  class: "ml-auto rounded-md border border-gray-300 px-3 py-1 text-xs font-bold text-gray-600 transition hover:bg-gray-100 dark:border-gray-600 dark:text-gray-300 dark:hover:bg-gray-800",
63
63
  onClick: h[0] ||= (...e) => y(r) && y(r)(...e)
64
64
  }, v(y(n) ? "ライトモード" : "ダークモード"), 1)) : i("", !0)]),
65
- o("section", L, [h[2] ||= o("h2", { class: "mb-3 text-lg font-bold text-gray-700 dark:text-gray-300" }, "ページ", -1), o("ul", de, [(m(!0), a(e, null, g(y(p), (e) => (m(), a("li", { key: e.name }, [c(y(x), {
65
+ o("section", me, [h[2] ||= o("h2", { class: "mb-3 text-lg font-bold text-gray-700 dark:text-gray-300" }, "ページ", -1), o("ul", he, [(m(!0), a(e, null, g(y(p), (e) => (m(), a("li", { key: e.name }, [c(y(x), {
66
66
  to: `/pages/${e.name}`,
67
- class: d(Te)
67
+ class: d(ke)
68
68
  }, {
69
- default: b(() => [o("div", fe, [s(v(e.title) + " ", 1), o("span", pe, "(" + v(e.latest) + ")", 1)]), o("div", me, v(e.desc), 1)]),
69
+ default: b(() => [o("div", ge, [s(v(e.title) + " ", 1), o("span", P, "(" + v(e.latest) + ")", 1)]), o("div", _e, v(e.desc), 1)]),
70
70
  _: 2
71
71
  }, 1032, ["to"])]))), 128))])]),
72
- o("section", he, [h[3] ||= o("h2", { class: "mb-3 text-lg font-bold text-gray-700 dark:text-gray-300" }, "コンポーネント", -1), o("ul", R, [(m(!0), a(e, null, g(y(f), (e) => (m(), a("li", { key: e.name }, [c(y(x), {
72
+ o("section", ve, [h[3] ||= o("h2", { class: "mb-3 text-lg font-bold text-gray-700 dark:text-gray-300" }, "コンポーネント", -1), o("ul", ye, [(m(!0), a(e, null, g(y(f), (e) => (m(), a("li", { key: e.name }, [c(y(x), {
73
73
  to: `/components/${e.name}`,
74
- class: d(Te)
74
+ class: d(ke)
75
75
  }, {
76
- default: b(() => [o("div", z, [s(v(e.title) + " ", 1), o("span", ge, "(" + v(e.latest) + ")", 1)]), o("div", B, v(e.desc), 1)]),
76
+ default: b(() => [o("div", be, [s(v(e.title) + " ", 1), o("span", xe, "(" + v(e.latest) + ")", 1)]), o("div", Se, v(e.desc), 1)]),
77
77
  _: 2
78
78
  }, 1032, ["to"])]))), 128))])]),
79
79
  o("section", null, [
80
80
  h[8] ||= o("h2", { class: "mb-3 text-lg font-bold text-gray-700 dark:text-gray-300" }, "デザイン", -1),
81
- o("div", _e, [h[6] ||= o("div", { class: "mb-2 text-xs font-bold uppercase tracking-wide text-gray-400" }, "表示設定", -1), o("dl", ve, [o("div", ye, [h[4] ||= o("dt", { class: "w-28 shrink-0 text-gray-500 dark:text-gray-400" }, "ダークモード切替", -1), o("dd", be, v(y(l) ? "表示" : "非表示"), 1)]), o("div", xe, [h[5] ||= o("dt", { class: "w-28 shrink-0 text-gray-500 dark:text-gray-400" }, "端末", -1), o("dd", Se, [o("ul", Ce, [(m(!0), a(e, null, g(y(u), (e) => (m(), a("li", {
81
+ o("div", F, [h[6] ||= o("div", { class: "mb-2 text-xs font-bold uppercase tracking-wide text-gray-400" }, "表示設定", -1), o("dl", I, [o("div", Ce, [h[4] ||= o("dt", { class: "w-28 shrink-0 text-gray-500 dark:text-gray-400" }, "ダークモード切替", -1), o("dd", we, v(y(l) ? "表示" : "非表示"), 1)]), o("div", Te, [h[5] ||= o("dt", { class: "w-28 shrink-0 text-gray-500 dark:text-gray-400" }, "端末", -1), o("dd", Ee, [o("ul", De, [(m(!0), a(e, null, g(y(u), (e) => (m(), a("li", {
82
82
  key: e.id,
83
83
  class: "font-mono text-xs text-gray-700 dark:text-gray-200"
84
84
  }, v(e.label) + "(" + v(e.frame) + ") / 幅: " + v(ee(e)), 1))), 128))])])])])]),
85
- o("ul", we, [o("li", null, [c(y(x), {
85
+ o("ul", Oe, [o("li", null, [c(y(x), {
86
86
  to: "/colors",
87
- class: d(Te)
87
+ class: d(ke)
88
88
  }, {
89
89
  default: b(() => [...h[7] ||= [o("div", { class: "font-bold dark:text-gray-100" }, "カラー", -1), o("div", { class: "text-sm text-gray-500 dark:text-gray-400" }, "accentColor 等の色定義一覧", -1)]]),
90
90
  _: 1
@@ -95,7 +95,7 @@ var I = { class: "mx-auto min-h-screen max-w-3xl p-8" }, ue = { class: "mb-8 fle
95
95
  });
96
96
  //#endregion
97
97
  //#region node_modules/marked/lib/marked.esm.js
98
- function De() {
98
+ function je() {
99
99
  return {
100
100
  async: !1,
101
101
  breaks: !1,
@@ -109,22 +109,22 @@ function De() {
109
109
  walkTokens: null
110
110
  };
111
111
  }
112
- var V = De();
113
- function Oe(e) {
114
- V = e;
112
+ var L = je();
113
+ function Me(e) {
114
+ L = e;
115
115
  }
116
- var H = { exec: () => null };
117
- function U(e, t = "") {
116
+ var R = { exec: () => null };
117
+ function z(e, t = "") {
118
118
  let n = typeof e == "string" ? e : e.source, r = {
119
119
  replace: (e, t) => {
120
120
  let i = typeof t == "string" ? t : t.source;
121
- return i = i.replace(W.caret, "$1"), n = n.replace(e, i), r;
121
+ return i = i.replace(B.caret, "$1"), n = n.replace(e, i), r;
122
122
  },
123
123
  getRegex: () => new RegExp(n, t)
124
124
  };
125
125
  return r;
126
126
  }
127
- var W = {
127
+ var B = {
128
128
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
129
129
  outputLinkReplace: /\\([\[\]])/g,
130
130
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -181,111 +181,111 @@ var W = {
181
181
  fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
182
182
  headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
183
183
  htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
184
- }, ke = /^(?:[ \t]*(?:\n|$))+/, Ae = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, je = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, G = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Me = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ne = /(?:[*+-]|\d{1,9}[.)])/, Pe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Fe = U(Pe).replace(/bull/g, Ne).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ie = U(Pe).replace(/bull/g, Ne).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Le = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Re = /^[^\n]+/, ze = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Be = U(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ze).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ve = U(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ne).getRegex(), K = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", He = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ue = U("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", He).replace("tag", K).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), We = U(Le).replace("hr", G).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", K).getRegex(), Ge = {
185
- blockquote: U(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", We).getRegex(),
186
- code: Ae,
187
- def: Be,
188
- fences: je,
189
- heading: Me,
190
- hr: G,
191
- html: Ue,
192
- lheading: Fe,
193
- list: Ve,
194
- newline: ke,
195
- paragraph: We,
196
- table: H,
197
- text: Re
198
- }, Ke = U("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", G).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", K).getRegex(), qe = {
199
- ...Ge,
200
- lheading: Ie,
201
- table: Ke,
202
- paragraph: U(Le).replace("hr", G).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ke).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", K).getRegex()
203
- }, Je = {
204
- ...Ge,
205
- html: U("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", He).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
184
+ }, Ne = /^(?:[ \t]*(?:\n|$))+/, Pe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Fe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, V = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ie = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Le = /(?:[*+-]|\d{1,9}[.)])/, Re = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ze = z(Re).replace(/bull/g, Le).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Be = z(Re).replace(/bull/g, Le).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Ve = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, He = /^[^\n]+/, Ue = /(?!\s*\])(?:\\.|[^\[\]\\])+/, We = z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ue).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ge = z(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Le).getRegex(), H = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Ke = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, qe = z("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Ke).replace("tag", H).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Je = z(Ve).replace("hr", V).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", H).getRegex(), Ye = {
185
+ blockquote: z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Je).getRegex(),
186
+ code: Pe,
187
+ def: We,
188
+ fences: Fe,
189
+ heading: Ie,
190
+ hr: V,
191
+ html: qe,
192
+ lheading: ze,
193
+ list: Ge,
194
+ newline: Ne,
195
+ paragraph: Je,
196
+ table: R,
197
+ text: He
198
+ }, Xe = z("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", V).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", H).getRegex(), Ze = {
199
+ ...Ye,
200
+ lheading: Be,
201
+ table: Xe,
202
+ paragraph: z(Ve).replace("hr", V).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Xe).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", H).getRegex()
203
+ }, Qe = {
204
+ ...Ye,
205
+ html: z("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Ke).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
206
206
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
207
207
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
208
- fences: H,
208
+ fences: R,
209
209
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
210
- paragraph: U(Le).replace("hr", G).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Fe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
211
- }, Ye = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Xe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ze = /^( {2,}|\\)\n(?!\s*$)/, Qe = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, $e = /[\p{P}\p{S}]/u, et = /[\s\p{P}\p{S}]/u, tt = /[^\s\p{P}\p{S}]/u, nt = U(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, et).getRegex(), rt = /(?!~)[\p{P}\p{S}]/u, it = /(?!~)[\s\p{P}\p{S}]/u, at = /(?:[^\s\p{P}\p{S}]|~)/u, ot = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, st = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ct = U(st, "u").replace(/punct/g, $e).getRegex(), lt = U(st, "u").replace(/punct/g, rt).getRegex(), ut = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", dt = U(ut, "gu").replace(/notPunctSpace/g, tt).replace(/punctSpace/g, et).replace(/punct/g, $e).getRegex(), ft = U(ut, "gu").replace(/notPunctSpace/g, at).replace(/punctSpace/g, it).replace(/punct/g, rt).getRegex(), pt = U("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, tt).replace(/punctSpace/g, et).replace(/punct/g, $e).getRegex(), mt = U(/\\(punct)/, "gu").replace(/punct/g, $e).getRegex(), ht = U(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), gt = U(He).replace("(?:-->|$)", "-->").getRegex(), _t = U("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", gt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), vt = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, yt = U(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", vt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), bt = U(/^!?\[(label)\]\[(ref)\]/).replace("label", vt).replace("ref", ze).getRegex(), xt = U(/^!?\[(ref)\](?:\[\])?/).replace("ref", ze).getRegex(), St = {
212
- _backpedal: H,
213
- anyPunctuation: mt,
214
- autolink: ht,
215
- blockSkip: ot,
216
- br: Ze,
217
- code: Xe,
218
- del: H,
219
- emStrongLDelim: ct,
220
- emStrongRDelimAst: dt,
221
- emStrongRDelimUnd: pt,
222
- escape: Ye,
223
- link: yt,
224
- nolink: xt,
225
- punctuation: nt,
226
- reflink: bt,
227
- reflinkSearch: U("reflink|nolink(?!\\()", "g").replace("reflink", bt).replace("nolink", xt).getRegex(),
228
- tag: _t,
229
- text: Qe,
230
- url: H
231
- }, Ct = {
232
- ...St,
233
- link: U(/^!?\[(label)\]\((.*?)\)/).replace("label", vt).getRegex(),
234
- reflink: U(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", vt).getRegex()
235
- }, wt = {
236
- ...St,
237
- emStrongRDelimAst: ft,
238
- emStrongLDelim: lt,
239
- url: U(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
240
- _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
241
- del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
242
- text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
210
+ paragraph: z(Ve).replace("hr", V).replace("heading", " *#{1,6} *[^\n]").replace("lheading", ze).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
211
+ }, $e = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, et = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, tt = /^( {2,}|\\)\n(?!\s*$)/, nt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, U = /[\p{P}\p{S}]/u, rt = /[\s\p{P}\p{S}]/u, it = /[^\s\p{P}\p{S}]/u, at = z(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, rt).getRegex(), ot = /(?!~)[\p{P}\p{S}]/u, st = /(?!~)[\s\p{P}\p{S}]/u, ct = /(?:[^\s\p{P}\p{S}]|~)/u, lt = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, ut = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, dt = z(ut, "u").replace(/punct/g, U).getRegex(), ft = z(ut, "u").replace(/punct/g, ot).getRegex(), pt = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", mt = z(pt, "gu").replace(/notPunctSpace/g, it).replace(/punctSpace/g, rt).replace(/punct/g, U).getRegex(), ht = z(pt, "gu").replace(/notPunctSpace/g, ct).replace(/punctSpace/g, st).replace(/punct/g, ot).getRegex(), gt = z("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, it).replace(/punctSpace/g, rt).replace(/punct/g, U).getRegex(), _t = z(/\\(punct)/, "gu").replace(/punct/g, U).getRegex(), vt = z(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), yt = z(Ke).replace("(?:-->|$)", "-->").getRegex(), bt = z("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", yt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), W = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, xt = z(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", W).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), St = z(/^!?\[(label)\]\[(ref)\]/).replace("label", W).replace("ref", Ue).getRegex(), Ct = z(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ue).getRegex(), wt = {
212
+ _backpedal: R,
213
+ anyPunctuation: _t,
214
+ autolink: vt,
215
+ blockSkip: lt,
216
+ br: tt,
217
+ code: et,
218
+ del: R,
219
+ emStrongLDelim: dt,
220
+ emStrongRDelimAst: mt,
221
+ emStrongRDelimUnd: gt,
222
+ escape: $e,
223
+ link: xt,
224
+ nolink: Ct,
225
+ punctuation: at,
226
+ reflink: St,
227
+ reflinkSearch: z("reflink|nolink(?!\\()", "g").replace("reflink", St).replace("nolink", Ct).getRegex(),
228
+ tag: bt,
229
+ text: nt,
230
+ url: R
243
231
  }, Tt = {
244
232
  ...wt,
245
- br: U(Ze).replace("{2,}", "*").getRegex(),
246
- text: U(wt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
233
+ link: z(/^!?\[(label)\]\((.*?)\)/).replace("label", W).getRegex(),
234
+ reflink: z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", W).getRegex()
247
235
  }, Et = {
248
- normal: Ge,
249
- gfm: qe,
250
- pedantic: Je
251
- }, q = {
252
- normal: St,
253
- gfm: wt,
254
- breaks: Tt,
255
- pedantic: Ct
236
+ ...wt,
237
+ emStrongRDelimAst: ht,
238
+ emStrongLDelim: ft,
239
+ url: z(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
240
+ _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
241
+ del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
242
+ text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
256
243
  }, Dt = {
244
+ ...Et,
245
+ br: z(tt).replace("{2,}", "*").getRegex(),
246
+ text: z(Et.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
247
+ }, G = {
248
+ normal: Ye,
249
+ gfm: Ze,
250
+ pedantic: Qe
251
+ }, K = {
252
+ normal: wt,
253
+ gfm: Et,
254
+ breaks: Dt,
255
+ pedantic: Tt
256
+ }, Ot = {
257
257
  "&": "&amp;",
258
258
  "<": "&lt;",
259
259
  ">": "&gt;",
260
260
  "\"": "&quot;",
261
261
  "'": "&#39;"
262
- }, Ot = (e) => Dt[e];
263
- function J(e, t) {
262
+ }, kt = (e) => Ot[e];
263
+ function q(e, t) {
264
264
  if (t) {
265
- if (W.escapeTest.test(e)) return e.replace(W.escapeReplace, Ot);
266
- } else if (W.escapeTestNoEncode.test(e)) return e.replace(W.escapeReplaceNoEncode, Ot);
265
+ if (B.escapeTest.test(e)) return e.replace(B.escapeReplace, kt);
266
+ } else if (B.escapeTestNoEncode.test(e)) return e.replace(B.escapeReplaceNoEncode, kt);
267
267
  return e;
268
268
  }
269
- function kt(e) {
269
+ function At(e) {
270
270
  try {
271
- e = encodeURI(e).replace(W.percentDecode, "%");
271
+ e = encodeURI(e).replace(B.percentDecode, "%");
272
272
  } catch {
273
273
  return null;
274
274
  }
275
275
  return e;
276
276
  }
277
- function At(e, t) {
278
- let n = e.replace(W.findPipe, (e, t, n) => {
277
+ function jt(e, t) {
278
+ let n = e.replace(B.findPipe, (e, t, n) => {
279
279
  let r = !1, i = t;
280
280
  for (; --i >= 0 && n[i] === "\\";) r = !r;
281
281
  return r ? "|" : " |";
282
- }).split(W.splitPipe), r = 0;
282
+ }).split(B.splitPipe), r = 0;
283
283
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
284
284
  else for (; n.length < t;) n.push("");
285
- for (; r < n.length; r++) n[r] = n[r].trim().replace(W.slashPipe, "|");
285
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(B.slashPipe, "|");
286
286
  return n;
287
287
  }
288
- function Y(e, t, n) {
288
+ function J(e, t, n) {
289
289
  let r = e.length;
290
290
  if (r === 0) return "";
291
291
  let i = 0;
@@ -297,7 +297,7 @@ function Y(e, t, n) {
297
297
  }
298
298
  return e.slice(0, r - i);
299
299
  }
300
- function jt(e, t) {
300
+ function Mt(e, t) {
301
301
  if (e.indexOf(t[1]) === -1) return -1;
302
302
  let n = 0;
303
303
  for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
@@ -305,7 +305,7 @@ function jt(e, t) {
305
305
  else if (e[r] === t[1] && (n--, n < 0)) return r;
306
306
  return n > 0 ? -2 : -1;
307
307
  }
308
- function Mt(e, t, n, r, i) {
308
+ function Nt(e, t, n, r, i) {
309
309
  let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
310
310
  r.state.inLink = !0;
311
311
  let c = {
@@ -318,7 +318,7 @@ function Mt(e, t, n, r, i) {
318
318
  };
319
319
  return r.state.inLink = !1, c;
320
320
  }
321
- function Nt(e, t, n) {
321
+ function Pt(e, t, n) {
322
322
  let r = e.match(n.other.indentCodeCompensation);
323
323
  if (r === null) return t;
324
324
  let i = r[1];
@@ -329,12 +329,12 @@ function Nt(e, t, n) {
329
329
  return r.length >= i.length ? e.slice(i.length) : e;
330
330
  }).join("\n");
331
331
  }
332
- var Pt = class {
332
+ var Y = class {
333
333
  options;
334
334
  rules;
335
335
  lexer;
336
336
  constructor(e) {
337
- this.options = e || V;
337
+ this.options = e || L;
338
338
  }
339
339
  space(e) {
340
340
  let t = this.rules.block.newline.exec(e);
@@ -351,14 +351,14 @@ var Pt = class {
351
351
  type: "code",
352
352
  raw: t[0],
353
353
  codeBlockStyle: "indented",
354
- text: this.options.pedantic ? e : Y(e, "\n")
354
+ text: this.options.pedantic ? e : J(e, "\n")
355
355
  };
356
356
  }
357
357
  }
358
358
  fences(e) {
359
359
  let t = this.rules.block.fences.exec(e);
360
360
  if (t) {
361
- let e = t[0], n = Nt(e, t[3] || "", this.rules);
361
+ let e = t[0], n = Pt(e, t[3] || "", this.rules);
362
362
  return {
363
363
  type: "code",
364
364
  raw: e,
@@ -372,7 +372,7 @@ var Pt = class {
372
372
  if (t) {
373
373
  let e = t[2].trim();
374
374
  if (this.rules.other.endingHash.test(e)) {
375
- let t = Y(e, "#");
375
+ let t = J(e, "#");
376
376
  (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
377
377
  }
378
378
  return {
@@ -388,13 +388,13 @@ var Pt = class {
388
388
  let t = this.rules.block.hr.exec(e);
389
389
  if (t) return {
390
390
  type: "hr",
391
- raw: Y(t[0], "\n")
391
+ raw: J(t[0], "\n")
392
392
  };
393
393
  }
394
394
  blockquote(e) {
395
395
  let t = this.rules.block.blockquote.exec(e);
396
396
  if (t) {
397
- let e = Y(t[0], "\n").split("\n"), n = "", r = "", i = [];
397
+ let e = J(t[0], "\n").split("\n"), n = "", r = "", i = [];
398
398
  for (; e.length > 0;) {
399
399
  let t = !1, a = [], o;
400
400
  for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
@@ -508,7 +508,7 @@ ${c}` : c;
508
508
  table(e) {
509
509
  let t = this.rules.block.table.exec(e);
510
510
  if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
511
- let n = At(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
511
+ let n = jt(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
512
512
  type: "table",
513
513
  raw: t[0],
514
514
  header: [],
@@ -523,7 +523,7 @@ ${c}` : c;
523
523
  header: !0,
524
524
  align: a.align[e]
525
525
  });
526
- for (let e of i) a.rows.push(At(e, a.header.length).map((e, t) => ({
526
+ for (let e of i) a.rows.push(jt(e, a.header.length).map((e, t) => ({
527
527
  text: e,
528
528
  tokens: this.lexer.inline(e),
529
529
  header: !1,
@@ -588,10 +588,10 @@ ${c}` : c;
588
588
  let e = t[2].trim();
589
589
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
590
590
  if (!this.rules.other.endAngleBracket.test(e)) return;
591
- let t = Y(e.slice(0, -1), "\\");
591
+ let t = J(e.slice(0, -1), "\\");
592
592
  if ((e.length - t.length) % 2 == 0) return;
593
593
  } else {
594
- let e = jt(t[2], "()");
594
+ let e = Mt(t[2], "()");
595
595
  if (e === -2) return;
596
596
  if (e > -1) {
597
597
  let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
@@ -603,7 +603,7 @@ ${c}` : c;
603
603
  let e = this.rules.other.pedanticHrefTitle.exec(n);
604
604
  e && (n = e[1], r = e[3]);
605
605
  } else r = t[3] ? t[3].slice(1, -1) : "";
606
- return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Mt(t, {
606
+ return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Nt(t, {
607
607
  href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
608
608
  title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
609
609
  }, t[0], this.lexer, this.rules);
@@ -621,7 +621,7 @@ ${c}` : c;
621
621
  text: e
622
622
  };
623
623
  }
624
- return Mt(n, e, n[0], this.lexer, this.rules);
624
+ return Nt(n, e, n[0], this.lexer, this.rules);
625
625
  }
626
626
  }
627
627
  emStrong(e, t, n = "") {
@@ -747,22 +747,22 @@ ${c}` : c;
747
747
  tokenizer;
748
748
  inlineQueue;
749
749
  constructor(e) {
750
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || V, this.options.tokenizer = this.options.tokenizer || new Pt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
750
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || L, this.options.tokenizer = this.options.tokenizer || new Y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
751
751
  inLink: !1,
752
752
  inRawBlock: !1,
753
753
  top: !0
754
754
  };
755
755
  let t = {
756
- other: W,
757
- block: Et.normal,
758
- inline: q.normal
756
+ other: B,
757
+ block: G.normal,
758
+ inline: K.normal
759
759
  };
760
- this.options.pedantic ? (t.block = Et.pedantic, t.inline = q.pedantic) : this.options.gfm && (t.block = Et.gfm, this.options.breaks ? t.inline = q.breaks : t.inline = q.gfm), this.tokenizer.rules = t;
760
+ this.options.pedantic ? (t.block = G.pedantic, t.inline = K.pedantic) : this.options.gfm && (t.block = G.gfm, this.options.breaks ? t.inline = K.breaks : t.inline = K.gfm), this.tokenizer.rules = t;
761
761
  }
762
762
  static get rules() {
763
763
  return {
764
- block: Et,
765
- inline: q
764
+ block: G,
765
+ inline: K
766
766
  };
767
767
  }
768
768
  static lex(t, n) {
@@ -772,7 +772,7 @@ ${c}` : c;
772
772
  return new e(n).inlineTokens(t);
773
773
  }
774
774
  lex(e) {
775
- e = e.replace(W.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
775
+ e = e.replace(B.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
776
776
  for (let e = 0; e < this.inlineQueue.length; e++) {
777
777
  let t = this.inlineQueue[e];
778
778
  this.inlineTokens(t.src, t.tokens);
@@ -780,7 +780,7 @@ ${c}` : c;
780
780
  return this.inlineQueue = [], this.tokens;
781
781
  }
782
782
  blockTokens(e, t = [], n = !1) {
783
- for (this.options.pedantic && (e = e.replace(W.tabCharGlobal, " ").replace(W.spaceLine, "")); e;) {
783
+ for (this.options.pedantic && (e = e.replace(B.tabCharGlobal, " ").replace(B.spaceLine, "")); e;) {
784
784
  let r;
785
785
  if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
786
786
  if (r = this.tokenizer.space(e)) {
@@ -952,14 +952,14 @@ ${c}` : c;
952
952
  options;
953
953
  parser;
954
954
  constructor(e) {
955
- this.options = e || V;
955
+ this.options = e || L;
956
956
  }
957
957
  space(e) {
958
958
  return "";
959
959
  }
960
960
  code({ text: e, lang: t, escaped: n }) {
961
- let r = (t || "").match(W.notSpaceStart)?.[0], i = e.replace(W.endingNewline, "") + "\n";
962
- return r ? "<pre><code class=\"language-" + J(r) + "\">" + (n ? i : J(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : J(i, !0)) + "</code></pre>\n";
961
+ let r = (t || "").match(B.notSpaceStart)?.[0], i = e.replace(B.endingNewline, "") + "\n";
962
+ return r ? "<pre><code class=\"language-" + q(r) + "\">" + (n ? i : q(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : q(i, !0)) + "</code></pre>\n";
963
963
  }
964
964
  blockquote({ tokens: e }) {
965
965
  return `<blockquote>
@@ -989,7 +989,7 @@ ${this.parser.parse(e)}</blockquote>
989
989
  let t = "";
990
990
  if (e.task) {
991
991
  let n = this.checkbox({ checked: !!e.checked });
992
- e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = n + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = n + " " + J(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
992
+ e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = n + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = n + " " + q(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
993
993
  type: "text",
994
994
  raw: n + " ",
995
995
  text: n + " ",
@@ -1036,7 +1036,7 @@ ${e}</tr>
1036
1036
  return `<em>${this.parser.parseInline(e)}</em>`;
1037
1037
  }
1038
1038
  codespan({ text: e }) {
1039
- return `<code>${J(e, !0)}</code>`;
1039
+ return `<code>${q(e, !0)}</code>`;
1040
1040
  }
1041
1041
  br(e) {
1042
1042
  return "<br>";
@@ -1045,22 +1045,22 @@ ${e}</tr>
1045
1045
  return `<del>${this.parser.parseInline(e)}</del>`;
1046
1046
  }
1047
1047
  link({ href: e, title: t, tokens: n }) {
1048
- let r = this.parser.parseInline(n), i = kt(e);
1048
+ let r = this.parser.parseInline(n), i = At(e);
1049
1049
  if (i === null) return r;
1050
1050
  e = i;
1051
1051
  let a = "<a href=\"" + e + "\"";
1052
- return t && (a += " title=\"" + J(t) + "\""), a += ">" + r + "</a>", a;
1052
+ return t && (a += " title=\"" + q(t) + "\""), a += ">" + r + "</a>", a;
1053
1053
  }
1054
1054
  image({ href: e, title: t, text: n, tokens: r }) {
1055
1055
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1056
- let i = kt(e);
1057
- if (i === null) return J(n);
1056
+ let i = At(e);
1057
+ if (i === null) return q(n);
1058
1058
  e = i;
1059
1059
  let a = `<img src="${e}" alt="${n}"`;
1060
- return t && (a += ` title="${J(t)}"`), a += ">", a;
1060
+ return t && (a += ` title="${q(t)}"`), a += ">", a;
1061
1061
  }
1062
1062
  text(e) {
1063
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : J(e.text);
1063
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : q(e.text);
1064
1064
  }
1065
1065
  }, It = class {
1066
1066
  strong({ text: e }) {
@@ -1095,7 +1095,7 @@ ${e}</tr>
1095
1095
  renderer;
1096
1096
  textRenderer;
1097
1097
  constructor(e) {
1098
- this.options = e || V, this.options.renderer = this.options.renderer || new Ft(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new It();
1098
+ this.options = e || L, this.options.renderer = this.options.renderer || new Ft(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new It();
1099
1099
  }
1100
1100
  static parse(t, n) {
1101
1101
  return new e(n).parse(t);
@@ -1246,7 +1246,7 @@ ${e}</tr>
1246
1246
  options;
1247
1247
  block;
1248
1248
  constructor(e) {
1249
- this.options = e || V;
1249
+ this.options = e || L;
1250
1250
  }
1251
1251
  static passThroughHooks = /* @__PURE__ */ new Set([
1252
1252
  "preprocess",
@@ -1269,7 +1269,7 @@ ${e}</tr>
1269
1269
  return this.block ? Z.parse : Z.parseInline;
1270
1270
  }
1271
1271
  }, Q = new class {
1272
- defaults = De();
1272
+ defaults = je();
1273
1273
  options = this.setOptions;
1274
1274
  parse = this.parseMarkdown(!0);
1275
1275
  parseInline = this.parseMarkdown(!1);
@@ -1277,7 +1277,7 @@ ${e}</tr>
1277
1277
  Renderer = Ft;
1278
1278
  TextRenderer = It;
1279
1279
  Lexer = X;
1280
- Tokenizer = Pt;
1280
+ Tokenizer = Y;
1281
1281
  Hooks = Lt;
1282
1282
  constructor(...e) {
1283
1283
  this.use(...e);
@@ -1342,7 +1342,7 @@ ${e}</tr>
1342
1342
  n.renderer = t;
1343
1343
  }
1344
1344
  if (e.tokenizer) {
1345
- let t = this.defaults.tokenizer || new Pt(this.defaults);
1345
+ let t = this.defaults.tokenizer || new Y(this.defaults);
1346
1346
  for (let n in e.tokenizer) {
1347
1347
  if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
1348
1348
  if ([
@@ -1426,7 +1426,7 @@ ${e}</tr>
1426
1426
  onError(e, t) {
1427
1427
  return (n) => {
1428
1428
  if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
1429
- let e = "<p>An error occurred:</p><pre>" + J(n.message + "", !0) + "</pre>";
1429
+ let e = "<p>An error occurred:</p><pre>" + q(n.message + "", !0) + "</pre>";
1430
1430
  return t ? Promise.resolve(e) : e;
1431
1431
  }
1432
1432
  if (t) return Promise.reject(n);
@@ -1440,12 +1440,12 @@ function $(e, t) {
1440
1440
  //#endregion
1441
1441
  //#region src/lib/markdown.ts
1442
1442
  $.options = $.setOptions = function(e) {
1443
- return Q.setOptions(e), $.defaults = Q.defaults, Oe($.defaults), $;
1444
- }, $.getDefaults = De, $.defaults = V, $.use = function(...e) {
1445
- return Q.use(...e), $.defaults = Q.defaults, Oe($.defaults), $;
1443
+ return Q.setOptions(e), $.defaults = Q.defaults, Me($.defaults), $;
1444
+ }, $.getDefaults = je, $.defaults = L, $.use = function(...e) {
1445
+ return Q.use(...e), $.defaults = Q.defaults, Me($.defaults), $;
1446
1446
  }, $.walkTokens = function(e, t) {
1447
1447
  return Q.walkTokens(e, t);
1448
- }, $.parseInline = Q.parseInline, $.Parser = Z, $.parser = Z.parse, $.Renderer = Ft, $.TextRenderer = It, $.Lexer = X, $.lexer = X.lex, $.Tokenizer = Pt, $.Hooks = Lt, $.parse = $, $.options, $.setOptions, $.use, $.walkTokens, $.parseInline, Z.parse, X.lex, $.setOptions({
1448
+ }, $.parseInline = Q.parseInline, $.Parser = Z, $.parser = Z.parse, $.Renderer = Ft, $.TextRenderer = It, $.Lexer = X, $.lexer = X.lex, $.Tokenizer = Y, $.Hooks = Lt, $.parse = $, $.options, $.setOptions, $.use, $.walkTokens, $.parseInline, Z.parse, X.lex, $.setOptions({
1449
1449
  gfm: !0,
1450
1450
  breaks: !1
1451
1451
  });
@@ -1463,121 +1463,123 @@ var zt = {
1463
1463
  }, Jt = {
1464
1464
  key: 0,
1465
1465
  class: "text-gray-400"
1466
- }, Yt = {
1467
- key: 1,
1468
- class: "inline-flex overflow-hidden rounded-md border border-gray-300 text-xs font-bold dark:border-gray-600"
1469
- }, Xt = ["onClick"], Zt = { class: "rounded-md bg-white p-4 transition-colors dark:bg-gray-800" }, Qt = {
1466
+ }, Yt = ["onClick"], Xt = { class: "rounded-md bg-white p-4 transition-colors dark:bg-gray-800" }, Zt = {
1470
1467
  key: 0,
1471
1468
  class: "w-full"
1472
- }, $t = { class: "rounded-[2.5rem] bg-black p-3 shadow-xl" }, en = { class: "relative overflow-hidden rounded-[1.8rem]" }, tn = {
1469
+ }, Qt = { class: "rounded-[2.5rem] bg-black p-3 shadow-xl" }, $t = { class: "relative overflow-hidden rounded-[1.8rem]" }, en = {
1473
1470
  key: 0,
1474
1471
  class: "pointer-events-none absolute left-1/2 top-0 z-10 h-6 w-28 -translate-x-1/2 rounded-b-2xl bg-black"
1475
- }, nn = {
1472
+ }, tn = {
1476
1473
  key: 1,
1477
1474
  class: "w-full overflow-hidden rounded-xl border-2 border-gray-300 shadow-sm dark:border-gray-700"
1478
- }, rn = { class: "rounded-lg border border-gray-300 bg-white p-6 dark:border-gray-700 dark:bg-gray-800" }, an = ["innerHTML"], on = /* @__PURE__ */ l({
1475
+ }, nn = { class: "rounded-lg border border-gray-300 bg-white p-6 dark:border-gray-700 dark:bg-gray-800" }, rn = ["innerHTML"], an = {
1476
+ key: 1,
1477
+ class: "fixed inset-0 z-50 overflow-auto bg-[#e8eaed] dark:bg-[#141414]"
1478
+ }, on = /* @__PURE__ */ l({
1479
1479
  __name: "ReqScreen",
1480
1480
  props: {
1481
1481
  title: {},
1482
1482
  doc: {}
1483
1483
  },
1484
1484
  setup(n) {
1485
- let r = n, l = t(() => Rt(r.doc)), { isDark: te, toggle: re } = le(), ie = ae(), S = oe(), C = h(S[0]?.id ?? ""), w = t(() => S.find((e) => e.id === C.value) ?? S[0]);
1485
+ let r = n, l = t(() => Rt(r.doc)), { isDark: te, toggle: re } = fe(), ie = oe(), S = se(), C = h(S[0]?.id ?? ""), w = t(() => S.find((e) => e.id === C.value) ?? S[0]);
1486
1486
  function T(e) {
1487
1487
  return `${e}px`;
1488
1488
  }
1489
- let E = se(), D = t(() => {
1489
+ let E = ce(), D = t(() => {
1490
1490
  if (!E) return {};
1491
1491
  let e = te.value ? E.dark : E.light;
1492
1492
  return {
1493
1493
  background: e.bg,
1494
1494
  color: e.font
1495
1495
  };
1496
- }), O = h(null), k = h(null), A = h(0), j = h(0), M = h({});
1497
- function ce(e) {
1498
- let t = M.value[e.id] ?? e.minWidth;
1496
+ }), O = h(null), k = h(null), A = h(0), ae = h(0), j = h(!1), le = h(null), ue = t(() => {
1497
+ let e = w.value;
1498
+ return e ? {
1499
+ min: e.minWidth,
1500
+ max: e.maxWidth
1501
+ } : {
1502
+ min: 0,
1503
+ max: 0
1504
+ };
1505
+ });
1506
+ function de() {
1507
+ let e = w.value;
1508
+ if (!e) return 0;
1509
+ let t = le.value ?? e.minWidth;
1499
1510
  return Math.min(e.maxWidth, Math.max(e.minWidth, t));
1500
1511
  }
1501
- let N = t(() => w.value ? ce(w.value) : 0), P = t(() => !!w.value && w.value.minWidth < w.value.maxWidth), F = t(() => {
1502
- let e = N.value;
1512
+ let M = t(() => de()), pe = t(() => {
1513
+ let e = w.value;
1514
+ return !!e && e.minWidth < e.maxWidth;
1515
+ }), N = t(() => {
1516
+ if (j.value) return 1;
1517
+ let e = M.value;
1503
1518
  return !e || A.value === 0 ? 1 : Math.min(1, A.value / e);
1504
- }), I = t(() => N.value ? N.value * F.value : 0), ue = t(() => j.value * F.value), L = h(!1), de = 0, fe = 0;
1505
- function pe(e) {
1519
+ }), me = t(() => M.value ? M.value * N.value : 0), he = t(() => ae.value * N.value), ge = t(() => j.value && M.value > 0 && A.value > 0 && M.value < A.value), P = h(!1), _e = 0, ve = 0, ye = 1;
1520
+ function be(e) {
1506
1521
  let t = w.value;
1507
- return t ? Math.min(t.maxWidth, Math.max(t.minWidth, e)) : e;
1522
+ t && (le.value = Math.min(t.maxWidth, Math.max(t.minWidth, e)));
1508
1523
  }
1509
- function me(e) {
1510
- let t = w.value;
1511
- t && (M.value = {
1512
- ...M.value,
1513
- [t.id]: pe(e)
1514
- });
1524
+ function xe(e) {
1525
+ let t = M.value;
1526
+ C.value = e, be(t);
1515
1527
  }
1516
- function he(e) {
1517
- if (!w.value || !P.value) return;
1518
- e.preventDefault(), L.value = !0, de = e.clientX, fe = N.value, document.body.style.userSelect = "none", document.body.style.cursor = "ew-resize";
1519
- function t(e) {
1520
- let t = (e.clientX - de) / F.value;
1521
- me(fe + t);
1528
+ function Se(e) {
1529
+ if (j.value || !w.value || !pe.value) return;
1530
+ e.preventDefault(), e.stopPropagation();
1531
+ let t = e.currentTarget;
1532
+ t.setPointerCapture(e.pointerId), P.value = !0, _e = e.clientX, ve = M.value, ye = N.value, document.body.style.userSelect = "none", document.body.style.cursor = "ew-resize";
1533
+ function n(e) {
1534
+ if (!e.isPrimary) return;
1535
+ let t = (e.clientX - _e) / ye;
1536
+ be(ve + t);
1522
1537
  }
1523
- function n() {
1524
- L.value = !1, document.body.style.userSelect = "", document.body.style.cursor = "", window.removeEventListener("mousemove", t), window.removeEventListener("mouseup", n), u(z);
1538
+ function r(e) {
1539
+ e.isPrimary && (t.releasePointerCapture(e.pointerId), P.value = !1, document.body.style.userSelect = "", document.body.style.cursor = "", t.removeEventListener("pointermove", n), t.removeEventListener("pointerup", r), t.removeEventListener("pointercancel", r), u(I));
1525
1540
  }
1526
- window.addEventListener("mousemove", t), window.addEventListener("mouseup", n);
1541
+ t.addEventListener("pointermove", n), t.addEventListener("pointerup", r), t.addEventListener("pointercancel", r);
1527
1542
  }
1528
- let R = null;
1529
- function z() {
1530
- O.value && (A.value = O.value.clientWidth), k.value && (j.value = k.value.offsetHeight);
1543
+ let F = null;
1544
+ function I() {
1545
+ O.value && (A.value = O.value.clientWidth), k.value && (ae.value = k.value.offsetHeight);
1531
1546
  }
1532
- function ge() {
1533
- R?.disconnect(), O.value && R?.observe(O.value), k.value && R?.observe(k.value);
1547
+ function Ce() {
1548
+ F?.disconnect(), O.value && F?.observe(O.value), k.value && F?.observe(k.value);
1534
1549
  }
1535
- let B = h(!1);
1536
- function _e(e) {
1537
- e.key === "Escape" && (B.value = !1);
1550
+ function we(e) {
1551
+ e.key === "Escape" && (j.value = !1);
1538
1552
  }
1539
1553
  return ee(() => {
1540
- R = new ResizeObserver(() => z()), ge(), z(), window.addEventListener("keydown", _e);
1554
+ F = new ResizeObserver(() => I()), Ce(), I(), window.addEventListener("keydown", we);
1541
1555
  }), p(() => {
1542
- R?.disconnect(), window.removeEventListener("keydown", _e);
1556
+ F?.disconnect(), window.removeEventListener("keydown", we);
1543
1557
  }), ne([
1544
1558
  C,
1545
- B,
1546
- N
1559
+ j,
1560
+ M
1547
1561
  ], () => u(() => {
1548
- ge(), z();
1549
- })), (t, r) => B.value ? (m(), a("div", {
1550
- key: 1,
1551
- class: "fixed inset-0 z-50 overflow-auto",
1552
- style: f(D.value)
1553
- }, [o("button", {
1562
+ Ce(), I();
1563
+ })), (t, r) => j.value ? (m(), a("div", an, [o("button", {
1554
1564
  type: "button",
1555
1565
  class: "fixed right-4 top-4 z-10 rounded-md border border-gray-300 bg-white px-3 py-1 text-xs font-bold text-gray-700 shadow-sm transition hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-100 dark:hover:bg-gray-700",
1556
- onClick: r[2] ||= (e) => B.value = !1
1566
+ onClick: r[2] ||= (e) => j.value = !1
1557
1567
  }, " 閉じる(Esc) "), o("div", {
1558
1568
  ref_key: "areaRef",
1559
1569
  ref: O,
1560
- class: "min-h-full"
1570
+ class: "flex min-h-full justify-center"
1561
1571
  }, [w.value ? (m(), a("div", {
1562
1572
  key: 0,
1563
- class: "relative mx-auto overflow-hidden",
1564
- style: f({
1565
- width: I.value ? `${I.value}px` : "",
1566
- height: j.value ? `${ue.value}px` : "auto"
1567
- })
1573
+ class: d(["relative shrink-0", ge.value ? "border border-gray-300 shadow-lg dark:border-gray-600" : ""]),
1574
+ style: f({ width: T(M.value) })
1568
1575
  }, [o("div", {
1569
1576
  ref_key: "contentRef",
1570
1577
  ref: k,
1571
- class: "origin-top-left",
1572
1578
  style: f({
1573
- width: T(N.value),
1574
- transform: `scale(${F.value})`
1579
+ width: T(M.value),
1580
+ ...D.value
1575
1581
  })
1576
- }, [_(t.$slots, "mock")], 4), P.value ? (m(), a("div", {
1577
- key: 0,
1578
- class: "absolute inset-y-0 -right-1 z-20 flex w-3 cursor-ew-resize items-center justify-center opacity-60 hover:opacity-100",
1579
- onMousedown: he
1580
- }, [...r[8] ||= [o("div", { class: "h-10 w-1 rounded-full bg-gray-400 dark:bg-gray-500" }, null, -1)]], 32)) : i("", !0)], 4)) : i("", !0)], 512)], 4)) : (m(), a("div", zt, [o("header", Bt, [
1582
+ }, [_(t.$slots, "mock")], 4)], 6)) : i("", !0)], 512)])) : (m(), a("div", zt, [o("header", Bt, [
1581
1583
  c(y(x), {
1582
1584
  to: "/catalog",
1583
1585
  class: "text-sm text-gray-500 underline hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-100"
@@ -1591,8 +1593,8 @@ var zt = {
1591
1593
  o("button", {
1592
1594
  type: "button",
1593
1595
  class: "rounded-md border border-gray-300 px-3 py-1 text-xs font-bold text-gray-600 transition hover:bg-gray-100 dark:border-gray-600 dark:text-gray-300 dark:hover:bg-gray-700",
1594
- onClick: r[0] ||= (e) => B.value = !B.value
1595
- }, v(B.value ? "要件を表示" : "プレビュー"), 1),
1596
+ onClick: r[0] ||= (e) => j.value = !j.value
1597
+ }, v(j.value ? "要件を表示" : "プレビュー"), 1),
1596
1598
  y(ie) ? (m(), a("button", {
1597
1599
  key: 0,
1598
1600
  type: "button",
@@ -1600,47 +1602,50 @@ var zt = {
1600
1602
  onClick: r[1] ||= (...e) => y(re) && y(re)(...e)
1601
1603
  }, v(y(te) ? "ライトモード" : "ダークモード"), 1)) : i("", !0)
1602
1604
  ])
1603
- ]), o("div", Ut, [o("section", Wt, [o("div", Gt, [r[4] ||= o("span", { class: "text-xs font-bold uppercase tracking-wide text-gray-400" }, " 画面 mock ", -1), o("div", Kt, [w.value ? (m(), a("span", qt, [s(v(N.value) + "px ", 1), P.value ? (m(), a("span", Jt, "(" + v(w.value.minWidth) + "–" + v(w.value.maxWidth) + ")", 1)) : i("", !0)])) : i("", !0), y(S).length > 1 ? (m(), a("div", Yt, [(m(!0), a(e, null, g(y(S), (e) => (m(), a("button", {
1605
+ ]), o("div", Ut, [o("section", Wt, [o("div", Gt, [r[4] ||= o("span", { class: "text-xs font-bold uppercase tracking-wide text-gray-400" }, " 画面 mock ", -1), o("div", Kt, [w.value ? (m(), a("span", qt, [s(v(M.value) + "px ", 1), pe.value ? (m(), a("span", Jt, " (" + v(ue.value.min) + "–" + v(ue.value.max) + ") ", 1)) : i("", !0)])) : i("", !0), y(S).length > 1 ? (m(), a("div", {
1606
+ key: 1,
1607
+ class: d(["inline-flex overflow-hidden rounded-md border border-gray-300 text-xs font-bold dark:border-gray-600", P.value ? "pointer-events-none" : ""])
1608
+ }, [(m(!0), a(e, null, g(y(S), (e) => (m(), a("button", {
1604
1609
  key: e.id,
1605
1610
  type: "button",
1606
1611
  class: d(["px-3 py-1 transition", C.value === e.id ? "bg-gray-800 text-white dark:bg-gray-200 dark:text-gray-900" : "text-gray-600 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700"]),
1607
- onClick: (t) => C.value = e.id
1608
- }, v(e.label), 11, Xt))), 128))])) : i("", !0)])]), o("div", Zt, [o("div", {
1612
+ onClick: (t) => xe(e.id)
1613
+ }, v(e.label), 11, Yt))), 128))], 2)) : i("", !0)])]), o("div", Xt, [o("div", {
1609
1614
  ref_key: "areaRef",
1610
1615
  ref: O
1611
1616
  }, [w.value ? (m(), a("div", {
1612
1617
  key: 0,
1613
1618
  class: "relative mx-auto overflow-hidden",
1614
1619
  style: f({
1615
- width: I.value ? `${I.value}px` : "",
1616
- height: j.value ? `${ue.value}px` : "auto"
1620
+ width: me.value ? `${me.value}px` : "",
1621
+ height: ae.value ? `${he.value}px` : "auto"
1617
1622
  })
1618
1623
  }, [o("div", {
1619
1624
  ref_key: "contentRef",
1620
1625
  ref: k,
1621
1626
  class: "origin-top-left",
1622
1627
  style: f({
1623
- width: T(N.value),
1624
- transform: `scale(${F.value})`
1628
+ width: T(M.value),
1629
+ transform: `scale(${N.value})`
1625
1630
  })
1626
- }, [w.value.frame === "phone" || w.value.frame === "tablet" ? (m(), a("div", Qt, [o("div", $t, [o("div", en, [w.value.frame === "phone" ? (m(), a("div", tn)) : i("", !0), o("div", {
1631
+ }, [w.value.frame === "phone" || w.value.frame === "tablet" ? (m(), a("div", Zt, [o("div", Qt, [o("div", $t, [w.value.frame === "phone" ? (m(), a("div", en)) : i("", !0), o("div", {
1627
1632
  class: d(["px-4 pb-6", w.value.frame === "phone" ? "pt-9" : "pt-6"]),
1628
1633
  style: f(D.value)
1629
- }, [_(t.$slots, "mock"), r[5] ||= o("div", { class: "mx-auto mt-6 h-1 w-24 rounded-full bg-gray-300 dark:bg-gray-600" }, null, -1)], 6)])])])) : (m(), a("div", nn, [r[6] ||= o("div", { class: "flex items-center gap-2 border-b border-gray-300 bg-gray-800 px-3 py-2 dark:border-gray-700" }, [
1634
+ }, [_(t.$slots, "mock"), r[5] ||= o("div", { class: "mx-auto mt-6 h-1 w-24 rounded-full bg-gray-300 dark:bg-gray-600" }, null, -1)], 6)])])])) : (m(), a("div", tn, [r[6] ||= o("div", { class: "flex items-center gap-2 border-b border-gray-300 bg-gray-800 px-3 py-2 dark:border-gray-700" }, [
1630
1635
  o("span", { class: "h-3 w-3 rounded-full bg-red-400" }),
1631
1636
  o("span", { class: "h-3 w-3 rounded-full bg-yellow-400" }),
1632
1637
  o("span", { class: "h-3 w-3 rounded-full bg-green-400" })
1633
1638
  ], -1), o("div", {
1634
1639
  class: "p-4",
1635
1640
  style: f(D.value)
1636
- }, [_(t.$slots, "mock")], 4)]))], 4), P.value ? (m(), a("div", {
1641
+ }, [_(t.$slots, "mock")], 4)]))], 4), pe.value ? (m(), a("div", {
1637
1642
  key: 0,
1638
- class: d(["absolute inset-y-0 -right-1 z-20 flex w-3 cursor-ew-resize items-center justify-center", L.value ? "opacity-100" : "opacity-60 hover:opacity-100"]),
1639
- onMousedown: he
1640
- }, [o("div", { class: d(["h-10 w-1 rounded-full bg-gray-400 dark:bg-gray-500", L.value ? "bg-blue-500 dark:bg-blue-400" : ""]) }, null, 2)], 34)) : i("", !0)], 4)) : i("", !0)], 512)])]), o("section", rn, [r[7] ||= o("div", { class: "mb-3 text-xs font-bold uppercase tracking-wide text-gray-400" }, " 要件 ", -1), o("div", {
1643
+ class: d(["absolute inset-y-0 -right-1 z-20 flex w-3 cursor-ew-resize touch-none items-center justify-center", P.value ? "opacity-100" : "opacity-60 hover:opacity-100"]),
1644
+ onPointerdown: Se
1645
+ }, [o("div", { class: d(["h-10 w-1 rounded-full bg-gray-400 dark:bg-gray-500", P.value ? "bg-blue-500 dark:bg-blue-400" : ""]) }, null, 2)], 34)) : i("", !0)], 4)) : i("", !0)], 512)])]), o("section", nn, [r[7] ||= o("div", { class: "mb-3 text-xs font-bold uppercase tracking-wide text-gray-400" }, " 要件 ", -1), o("div", {
1641
1646
  class: "req-md",
1642
1647
  innerHTML: l.value
1643
- }, null, 8, an)])])]));
1648
+ }, null, 8, rn)])])]));
1644
1649
  }
1645
1650
  }), sn = { class: "flex items-center gap-2 text-sm" }, cn = ["value"], ln = ["value"], un = ["innerHTML"], dn = {
1646
1651
  key: 1,
@@ -1653,7 +1658,7 @@ var zt = {
1653
1658
  ver: {}
1654
1659
  },
1655
1660
  setup(n) {
1656
- let i = n, l = C(), u = t(() => P(i.kind, i.name)), d = t(() => i.ver || u.value?.latest || ""), f = t(() => u.value?.versions[d.value]), p = t(() => u.value ? Object.keys(u.value.versions) : []);
1661
+ let i = n, l = C(), u = t(() => de(i.kind, i.name)), d = t(() => i.ver || u.value?.latest || ""), f = t(() => u.value?.versions[d.value]), p = t(() => u.value ? Object.keys(u.value.versions) : []);
1657
1662
  function ee(e) {
1658
1663
  let t = e.target.value;
1659
1664
  l.push(`/${i.kind}s/${i.name}/${t}`);
@@ -1690,7 +1695,7 @@ var zt = {
1690
1695
  }, Sn = /* @__PURE__ */ l({
1691
1696
  __name: "ColorsView",
1692
1697
  setup(t) {
1693
- let { isDark: n, toggle: r } = le(), l = ae(), u = se(), p = [...u ? [{
1698
+ let { isDark: n, toggle: r } = fe(), l = oe(), u = ce(), p = [...u ? [{
1694
1699
  name: "baseBg",
1695
1700
  light: u.light.bg,
1696
1701
  dark: u.dark.bg,
@@ -1700,7 +1705,7 @@ var zt = {
1700
1705
  light: u.light.font,
1701
1706
  dark: u.dark.font,
1702
1707
  desc: "モックの基本文字色"
1703
- }] : [], ...N()];
1708
+ }] : [], ...ue()];
1704
1709
  return (t, u) => (m(), a("div", mn, [o("header", hn, [
1705
1710
  c(y(x), {
1706
1711
  to: "/catalog",
@@ -1742,7 +1747,7 @@ function Cn() {
1742
1747
  {
1743
1748
  path: "/catalog",
1744
1749
  name: "catalog",
1745
- component: Ee
1750
+ component: Ae
1746
1751
  },
1747
1752
  {
1748
1753
  path: "/colors",
@@ -1775,7 +1780,7 @@ function Cn() {
1775
1780
  //#endregion
1776
1781
  //#region src/createSpecViewer.ts
1777
1782
  function wn(e) {
1778
- j(e);
1783
+ ae(e);
1779
1784
  let t = n(w);
1780
1785
  return t.use(Cn()), t;
1781
1786
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "required-doc",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "files": ["dist", "style.css", "types.d.ts"],
6
6
  "main": "./dist/index.js",