@quietmind/mdx-docs 0.1.2 → 0.1.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 +496 -253
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -1,43 +1,43 @@
1
- import { jsx as r, jsxs as p, Fragment as z } from "react/jsx-runtime";
2
- import X, { createContext as F, useContext as K, useState as T, Suspense as j, useEffect as b, useLayoutEffect as Y, useMemo as V, StrictMode as q } from "react";
3
- import { createRoot as Z } from "react-dom/client";
4
- import { AppBar as J, Toolbar as N, IconButton as v, Typography as Q, Box as c, useTheme as D, Tooltip as ee, CircularProgress as te, List as re, ListItem as oe, ListItemButton as ne, ListItemText as ae, Drawer as _, createTheme as ie, ThemeProvider as se, CssBaseline as de } from "@mui/material";
5
- import { Link as L, Routes as le, Route as P, useLocation as M, BrowserRouter as ce, useNavigate as pe } from "react-router-dom";
6
- import ue from "@mui/icons-material/DarkMode";
7
- import fe from "@mui/icons-material/LightMode";
8
- import me from "@mui/icons-material/Menu";
9
- import { MDXProvider as he } from "@mdx-js/react";
10
- import ge from "@mui/icons-material/Check";
11
- import be from "@mui/icons-material/ContentCopy";
12
- import { Highlight as $ } from "prism-react-renderer";
13
- import Se from "prismjs";
14
- const B = F(null), ye = ({ pages: e, site: t, children: o }) => /* @__PURE__ */ r(B.Provider, { value: { pages: e, site: t }, children: o }), A = () => {
15
- const e = K(B);
1
+ import { jsx as n, jsxs as m, Fragment as U } from "react/jsx-runtime";
2
+ import X, { createContext as Z, useContext as K, useState as F, Suspense as Y, useEffect as x, useLayoutEffect as q, useMemo as V, StrictMode as J } from "react";
3
+ import { createRoot as Q } from "react-dom/client";
4
+ import { AppBar as ee, Toolbar as P, IconButton as A, Typography as te, Box as g, useTheme as D, Tooltip as re, CircularProgress as ne, List as ae, ListItem as oe, ListItemButton as se, ListItemText as ie, Drawer as $, createTheme as le, ThemeProvider as ce, CssBaseline as de } from "@mui/material";
5
+ import { Link as L, Routes as ue, Route as I, useLocation as B, BrowserRouter as pe, useNavigate as ge } from "react-router-dom";
6
+ import fe from "@mui/icons-material/DarkMode";
7
+ import me from "@mui/icons-material/LightMode";
8
+ import he from "@mui/icons-material/Menu";
9
+ import { MDXProvider as be } from "@mdx-js/react";
10
+ import ye from "@mui/icons-material/Check";
11
+ import Se from "@mui/icons-material/ContentCopy";
12
+ import { Highlight as M } from "prism-react-renderer";
13
+ import xe from "prismjs";
14
+ const j = Z(null), we = ({ pages: e, site: t, children: r }) => /* @__PURE__ */ n(j.Provider, { value: { pages: e, site: t }, children: r }), E = () => {
15
+ const e = K(j);
16
16
  if (!e)
17
17
  throw new Error("useDocsContext must be used within a DocsProvider");
18
18
  return e;
19
19
  };
20
- function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: o }) {
21
- const { site: n } = A();
22
- return /* @__PURE__ */ r(
23
- J,
20
+ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
21
+ const { site: o } = E();
22
+ return /* @__PURE__ */ n(
23
+ ee,
24
24
  {
25
25
  position: "fixed",
26
- sx: { zIndex: (i) => i.zIndex.drawer + 1 },
27
- children: /* @__PURE__ */ p(N, { children: [
28
- /* @__PURE__ */ r(
29
- v,
26
+ sx: { zIndex: (l) => l.zIndex.drawer + 1 },
27
+ children: /* @__PURE__ */ m(P, { children: [
28
+ /* @__PURE__ */ n(
29
+ A,
30
30
  {
31
31
  color: "inherit",
32
32
  edge: "start",
33
- onClick: o,
33
+ onClick: r,
34
34
  "aria-label": "Toggle navigation menu",
35
35
  sx: { mr: 2, display: { sm: "none" } },
36
- children: /* @__PURE__ */ r(me, {})
36
+ children: /* @__PURE__ */ n(he, {})
37
37
  }
38
38
  ),
39
- /* @__PURE__ */ r(
40
- Q,
39
+ /* @__PURE__ */ n(
40
+ te,
41
41
  {
42
42
  variant: "h6",
43
43
  noWrap: !0,
@@ -50,12 +50,12 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: o }) {
50
50
  color: "inherit"
51
51
  }
52
52
  },
53
- children: n.name
53
+ children: o.name
54
54
  }
55
55
  ),
56
- /* @__PURE__ */ r(c, { sx: { flexGrow: 1 } }),
57
- /* @__PURE__ */ r(
58
- v,
56
+ /* @__PURE__ */ n(g, { sx: { flexGrow: 1 } }),
57
+ /* @__PURE__ */ n(
58
+ A,
59
59
  {
60
60
  onClick: () => t(!e),
61
61
  color: "inherit",
@@ -79,7 +79,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: o }) {
79
79
  outline: "none"
80
80
  }
81
81
  },
82
- children: e ? /* @__PURE__ */ r(fe, {}) : /* @__PURE__ */ r(ue, {})
82
+ children: e ? /* @__PURE__ */ n(me, {}) : /* @__PURE__ */ n(fe, {})
83
83
  }
84
84
  )
85
85
  ] })
@@ -87,15 +87,15 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: o }) {
87
87
  );
88
88
  }
89
89
  (function(e) {
90
- var t = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", o = {
90
+ var t = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", r = {
91
91
  pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
92
92
  lookbehind: !0,
93
93
  alias: "punctuation",
94
94
  // this looks reasonably well in all themes
95
95
  inside: null
96
96
  // see below
97
- }, n = {
98
- bash: o,
97
+ }, o = {
98
+ bash: r,
99
99
  environment: {
100
100
  pattern: RegExp("\\$" + t),
101
101
  alias: "constant"
@@ -206,7 +206,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: o }) {
206
206
  pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
207
207
  lookbehind: !0,
208
208
  greedy: !0,
209
- inside: n
209
+ inside: o
210
210
  },
211
211
  // Here-document with quotes around the tag
212
212
  // → No expansion (so no “inside”).
@@ -215,7 +215,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: o }) {
215
215
  lookbehind: !0,
216
216
  greedy: !0,
217
217
  inside: {
218
- bash: o
218
+ bash: r
219
219
  }
220
220
  },
221
221
  // “Normal” string
@@ -224,7 +224,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: o }) {
224
224
  pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
225
225
  lookbehind: !0,
226
226
  greedy: !0,
227
- inside: n
227
+ inside: o
228
228
  },
229
229
  {
230
230
  // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
@@ -237,7 +237,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: o }) {
237
237
  pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
238
238
  greedy: !0,
239
239
  inside: {
240
- entity: n.entity
240
+ entity: o.entity
241
241
  }
242
242
  }
243
243
  ],
@@ -245,7 +245,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: o }) {
245
245
  pattern: RegExp("\\$?" + t),
246
246
  alias: "constant"
247
247
  },
248
- variable: n.variable,
248
+ variable: o.variable,
249
249
  function: {
250
250
  pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
251
251
  lookbehind: !0
@@ -284,8 +284,8 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: o }) {
284
284
  pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
285
285
  lookbehind: !0
286
286
  }
287
- }, o.inside = e.languages.bash;
288
- for (var i = [
287
+ }, r.inside = e.languages.bash;
288
+ for (var l = [
289
289
  "comment",
290
290
  "function-name",
291
291
  "for-or-select",
@@ -301,13 +301,13 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: o }) {
301
301
  "operator",
302
302
  "punctuation",
303
303
  "number"
304
- ], a = n.variable[1].inside, s = 0; s < i.length; s++)
305
- a[i[s]] = e.languages.bash[i[s]];
304
+ ], s = o.variable[1].inside, i = 0; i < l.length; i++)
305
+ s[l[i]] = e.languages.bash[l[i]];
306
306
  e.languages.sh = e.languages.bash, e.languages.shell = e.languages.bash;
307
307
  })(Prism);
308
- var R = {}, C;
309
- function we() {
310
- return C || (C = 1, function(e) {
308
+ var O = {}, R;
309
+ function ve() {
310
+ return R || (R = 1, function(e) {
311
311
  var t = [
312
312
  // normal string
313
313
  /"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,
@@ -360,28 +360,28 @@ function we() {
360
360
  },
361
361
  output: /.(?:.*(?:[\r\n]|.$))*/
362
362
  }, e.languages["sh-session"] = e.languages.shellsession = e.languages["shell-session"];
363
- }(Prism)), R;
363
+ }(Prism)), O;
364
364
  }
365
- we();
365
+ ve();
366
366
  (function(e) {
367
- var t = /\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source, o = /(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g, function() {
367
+ var t = /\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source, r = /(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g, function() {
368
368
  return t;
369
- }), n = /"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source, i = /--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g, function() {
370
- return n;
371
- }), a = {
372
- pattern: RegExp(n),
369
+ }), o = /"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source, l = /--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g, function() {
370
+ return o;
371
+ }), s = {
372
+ pattern: RegExp(o),
373
373
  greedy: !0
374
- }, s = {
374
+ }, i = {
375
375
  pattern: /(^[ \t]*)#.*/m,
376
376
  lookbehind: !0,
377
377
  greedy: !0
378
378
  };
379
- function d(l, u) {
380
- return l = l.replace(/<OPT>/g, function() {
381
- return i;
379
+ function u(a, c) {
380
+ return a = a.replace(/<OPT>/g, function() {
381
+ return l;
382
382
  }).replace(/<SP>/g, function() {
383
- return o;
384
- }), RegExp(l, u);
383
+ return r;
384
+ }), RegExp(a, c);
385
385
  }
386
386
  e.languages.docker = {
387
387
  instruction: {
@@ -390,7 +390,7 @@ we();
390
390
  greedy: !0,
391
391
  inside: {
392
392
  options: {
393
- pattern: d(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source, "i"),
393
+ pattern: u(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source, "i"),
394
394
  lookbehind: !0,
395
395
  greedy: !0,
396
396
  inside: {
@@ -399,7 +399,7 @@ we();
399
399
  lookbehind: !0
400
400
  },
401
401
  string: [
402
- a,
402
+ s,
403
403
  {
404
404
  pattern: /(=)(?!["'])(?:[^\s\\]|\\.)+/,
405
405
  lookbehind: !0
@@ -412,19 +412,19 @@ we();
412
412
  keyword: [
413
413
  {
414
414
  // https://docs.docker.com/engine/reference/builder/#healthcheck
415
- pattern: d(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source, "i"),
415
+ pattern: u(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source, "i"),
416
416
  lookbehind: !0,
417
417
  greedy: !0
418
418
  },
419
419
  {
420
420
  // https://docs.docker.com/engine/reference/builder/#from
421
- pattern: d(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source, "i"),
421
+ pattern: u(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source, "i"),
422
422
  lookbehind: !0,
423
423
  greedy: !0
424
424
  },
425
425
  {
426
426
  // https://docs.docker.com/engine/reference/builder/#onbuild
427
- pattern: d(/(^ONBUILD<SP>)\w+/.source, "i"),
427
+ pattern: u(/(^ONBUILD<SP>)\w+/.source, "i"),
428
428
  lookbehind: !0,
429
429
  greedy: !0
430
430
  },
@@ -433,32 +433,32 @@ we();
433
433
  greedy: !0
434
434
  }
435
435
  ],
436
- comment: s,
437
- string: a,
436
+ comment: i,
437
+ string: s,
438
438
  variable: /\$(?:\w+|\{[^{}"'\\]*\})/,
439
439
  operator: /\\$/m
440
440
  }
441
441
  },
442
- comment: s
442
+ comment: i
443
443
  }, e.languages.dockerfile = e.languages.docker;
444
444
  })(Prism);
445
445
  (function(e) {
446
- var t = /[*&][^\s[\]{},]+/, o = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, n = "(?:" + o.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + o.source + ")?)", i = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
446
+ var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, o = "(?:" + r.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + r.source + ")?)", l = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
447
447
  return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
448
- }), a = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
449
- function s(d, l) {
450
- l = (l || "").replace(/m/g, "") + "m";
451
- var u = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
452
- return n;
448
+ }), s = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
449
+ function i(u, a) {
450
+ a = (a || "").replace(/m/g, "") + "m";
451
+ var c = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
452
+ return o;
453
453
  }).replace(/<<value>>/g, function() {
454
- return d;
454
+ return u;
455
455
  });
456
- return RegExp(u, l);
456
+ return RegExp(c, a);
457
457
  }
458
458
  e.languages.yaml = {
459
459
  scalar: {
460
460
  pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
461
- return n;
461
+ return o;
462
462
  })),
463
463
  lookbehind: !0,
464
464
  alias: "string"
@@ -466,9 +466,9 @@ we();
466
466
  comment: /#.*/,
467
467
  key: {
468
468
  pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
469
- return n;
469
+ return o;
470
470
  }).replace(/<<key>>/g, function() {
471
- return "(?:" + i + "|" + a + ")";
471
+ return "(?:" + l + "|" + s + ")";
472
472
  })),
473
473
  lookbehind: !0,
474
474
  greedy: !0,
@@ -480,38 +480,38 @@ we();
480
480
  alias: "important"
481
481
  },
482
482
  datetime: {
483
- pattern: s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
483
+ pattern: i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
484
484
  lookbehind: !0,
485
485
  alias: "number"
486
486
  },
487
487
  boolean: {
488
- pattern: s(/false|true/.source, "i"),
488
+ pattern: i(/false|true/.source, "i"),
489
489
  lookbehind: !0,
490
490
  alias: "important"
491
491
  },
492
492
  null: {
493
- pattern: s(/null|~/.source, "i"),
493
+ pattern: i(/null|~/.source, "i"),
494
494
  lookbehind: !0,
495
495
  alias: "important"
496
496
  },
497
497
  string: {
498
- pattern: s(a),
498
+ pattern: i(s),
499
499
  lookbehind: !0,
500
500
  greedy: !0
501
501
  },
502
502
  number: {
503
- pattern: s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
503
+ pattern: i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
504
504
  lookbehind: !0
505
505
  },
506
- tag: o,
506
+ tag: r,
507
507
  important: t,
508
508
  punctuation: /---|[:[\]{}\-,|>?]|\.\.\./
509
509
  }, e.languages.yml = e.languages.yaml;
510
510
  })(Prism);
511
511
  (function(e) {
512
512
  var t = /(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;
513
- function o(n) {
514
- return n.replace(/__/g, function() {
513
+ function r(o) {
514
+ return o.replace(/__/g, function() {
515
515
  return t;
516
516
  });
517
517
  }
@@ -521,13 +521,13 @@ we();
521
521
  greedy: !0
522
522
  },
523
523
  table: {
524
- pattern: RegExp(o(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source), "m"),
524
+ pattern: RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source), "m"),
525
525
  lookbehind: !0,
526
526
  greedy: !0,
527
527
  alias: "class-name"
528
528
  },
529
529
  key: {
530
- pattern: RegExp(o(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source), "m"),
530
+ pattern: RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source), "m"),
531
531
  lookbehind: !0,
532
532
  greedy: !0,
533
533
  alias: "property"
@@ -553,124 +553,367 @@ we();
553
553
  punctuation: /[.,=[\]{}]/
554
554
  };
555
555
  })(Prism);
556
- const xe = {
556
+ Prism.languages.javascript = Prism.languages.extend("clike", {
557
+ "class-name": [
558
+ Prism.languages.clike["class-name"],
559
+ {
560
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
561
+ lookbehind: !0
562
+ }
563
+ ],
564
+ keyword: [
565
+ {
566
+ pattern: /((?:^|\})\s*)catch\b/,
567
+ lookbehind: !0
568
+ },
569
+ {
570
+ pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
571
+ lookbehind: !0
572
+ }
573
+ ],
574
+ // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
575
+ function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
576
+ number: {
577
+ pattern: RegExp(
578
+ /(^|[^\w$])/.source + "(?:" + // constant
579
+ (/NaN|Infinity/.source + "|" + // binary integer
580
+ /0[bB][01]+(?:_[01]+)*n?/.source + "|" + // octal integer
581
+ /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + // hexadecimal integer
582
+ /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + // decimal bigint
583
+ /\d+(?:_\d+)*n/.source + "|" + // decimal number (integer or float) but no bigint
584
+ /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ")" + /(?![\w$])/.source
585
+ ),
586
+ lookbehind: !0
587
+ },
588
+ operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
589
+ });
590
+ Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;
591
+ Prism.languages.insertBefore("javascript", "keyword", {
592
+ regex: {
593
+ pattern: RegExp(
594
+ // lookbehind
595
+ // eslint-disable-next-line regexp/no-dupe-characters-character-class
596
+ /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + // Regex pattern:
597
+ // There are 2 regex patterns here. The RegExp set notation proposal added support for nested character
598
+ // classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible
599
+ // with the only syntax, so we have to define 2 different regex patterns.
600
+ /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + // `v` flag syntax. This supports 3 levels of nested character classes.
601
+ /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + // lookahead
602
+ /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source
603
+ ),
604
+ lookbehind: !0,
605
+ greedy: !0,
606
+ inside: {
607
+ "regex-source": {
608
+ pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
609
+ lookbehind: !0,
610
+ alias: "language-regex",
611
+ inside: Prism.languages.regex
612
+ },
613
+ "regex-delimiter": /^\/|\/$/,
614
+ "regex-flags": /^[a-z]+$/
615
+ }
616
+ },
617
+ // This must be declared before keyword because we use "function" inside the look-forward
618
+ "function-variable": {
619
+ pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
620
+ alias: "function"
621
+ },
622
+ parameter: [
623
+ {
624
+ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
625
+ lookbehind: !0,
626
+ inside: Prism.languages.javascript
627
+ },
628
+ {
629
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
630
+ lookbehind: !0,
631
+ inside: Prism.languages.javascript
632
+ },
633
+ {
634
+ pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
635
+ lookbehind: !0,
636
+ inside: Prism.languages.javascript
637
+ },
638
+ {
639
+ pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
640
+ lookbehind: !0,
641
+ inside: Prism.languages.javascript
642
+ }
643
+ ],
644
+ constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
645
+ });
646
+ Prism.languages.insertBefore("javascript", "string", {
647
+ hashbang: {
648
+ pattern: /^#!.*/,
649
+ greedy: !0,
650
+ alias: "comment"
651
+ },
652
+ "template-string": {
653
+ pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
654
+ greedy: !0,
655
+ inside: {
656
+ "template-punctuation": {
657
+ pattern: /^`|`$/,
658
+ alias: "string"
659
+ },
660
+ interpolation: {
661
+ pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
662
+ lookbehind: !0,
663
+ inside: {
664
+ "interpolation-punctuation": {
665
+ pattern: /^\$\{|\}$/,
666
+ alias: "punctuation"
667
+ },
668
+ rest: Prism.languages.javascript
669
+ }
670
+ },
671
+ string: /[\s\S]+/
672
+ }
673
+ },
674
+ "string-property": {
675
+ pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
676
+ lookbehind: !0,
677
+ greedy: !0,
678
+ alias: "property"
679
+ }
680
+ });
681
+ Prism.languages.insertBefore("javascript", "operator", {
682
+ "literal-property": {
683
+ pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
684
+ lookbehind: !0,
685
+ alias: "property"
686
+ }
687
+ });
688
+ Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "javascript"), Prism.languages.markup.tag.addAttribute(
689
+ /on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,
690
+ "javascript"
691
+ ));
692
+ Prism.languages.js = Prism.languages.javascript;
693
+ (function(e) {
694
+ var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, o = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, l = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
695
+ function s(a, c) {
696
+ return a = a.replace(/<S>/g, function() {
697
+ return r;
698
+ }).replace(/<BRACES>/g, function() {
699
+ return o;
700
+ }).replace(/<SPREAD>/g, function() {
701
+ return l;
702
+ }), RegExp(a, c);
703
+ }
704
+ l = s(l).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = s(
705
+ /<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source
706
+ ), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", {
707
+ spread: {
708
+ pattern: s(/<SPREAD>/.source),
709
+ inside: e.languages.jsx
710
+ }
711
+ }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", {
712
+ script: {
713
+ // Allow for two levels of nesting
714
+ pattern: s(/=<BRACES>/.source),
715
+ alias: "language-javascript",
716
+ inside: {
717
+ "script-punctuation": {
718
+ pattern: /^=(?=\{)/,
719
+ alias: "punctuation"
720
+ },
721
+ rest: e.languages.jsx
722
+ }
723
+ }
724
+ }, e.languages.jsx.tag);
725
+ var i = function(a) {
726
+ return a ? typeof a == "string" ? a : typeof a.content == "string" ? a.content : a.content.map(i).join("") : "";
727
+ }, u = function(a) {
728
+ for (var c = [], p = 0; p < a.length; p++) {
729
+ var d = a[p], h = !1;
730
+ if (typeof d != "string" && (d.type === "tag" && d.content[0] && d.content[0].type === "tag" ? d.content[0].content[0].content === "</" ? c.length > 0 && c[c.length - 1].tagName === i(d.content[0].content[1]) && c.pop() : d.content[d.content.length - 1].content === "/>" || c.push({
731
+ tagName: i(d.content[0].content[1]),
732
+ openedBraces: 0
733
+ }) : c.length > 0 && d.type === "punctuation" && d.content === "{" ? c[c.length - 1].openedBraces++ : c.length > 0 && c[c.length - 1].openedBraces > 0 && d.type === "punctuation" && d.content === "}" ? c[c.length - 1].openedBraces-- : h = !0), (h || typeof d == "string") && c.length > 0 && c[c.length - 1].openedBraces === 0) {
734
+ var f = i(d);
735
+ p < a.length - 1 && (typeof a[p + 1] == "string" || a[p + 1].type === "plain-text") && (f += i(a[p + 1]), a.splice(p + 1, 1)), p > 0 && (typeof a[p - 1] == "string" || a[p - 1].type === "plain-text") && (f = i(a[p - 1]) + f, a.splice(p - 1, 1), p--), a[p] = new e.Token("plain-text", f, null, f);
736
+ }
737
+ d.content && typeof d.content != "string" && u(d.content);
738
+ }
739
+ };
740
+ e.hooks.add("after-tokenize", function(a) {
741
+ a.language !== "jsx" && a.language !== "tsx" || u(a.tokens);
742
+ });
743
+ })(Prism);
744
+ var C = {}, N;
745
+ function Ae() {
746
+ return N || (N = 1, function(e) {
747
+ e.languages.typescript = e.languages.extend("javascript", {
748
+ "class-name": {
749
+ pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
750
+ lookbehind: !0,
751
+ greedy: !0,
752
+ inside: null
753
+ // see below
754
+ },
755
+ builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/
756
+ }), e.languages.typescript.keyword.push(
757
+ /\b(?:abstract|declare|is|keyof|readonly|require)\b/,
758
+ // keywords that have to be followed by an identifier
759
+ /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,
760
+ // This is for `import type *, {}`
761
+ /\btype\b(?=\s*(?:[\{*]|$))/
762
+ ), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
763
+ var t = e.languages.extend("typescript", {});
764
+ delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", {
765
+ decorator: {
766
+ pattern: /@[$\w\xA0-\uFFFF]+/,
767
+ inside: {
768
+ at: {
769
+ pattern: /^@/,
770
+ alias: "operator"
771
+ },
772
+ function: /^[\s\S]+/
773
+ }
774
+ },
775
+ "generic-function": {
776
+ // e.g. foo<T extends "bar" | "baz">( ...
777
+ pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
778
+ greedy: !0,
779
+ inside: {
780
+ function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
781
+ generic: {
782
+ pattern: /<[\s\S]+/,
783
+ // everything after the first <
784
+ alias: "class-name",
785
+ inside: t
786
+ }
787
+ }
788
+ }
789
+ }), e.languages.ts = e.languages.typescript;
790
+ }(Prism)), C;
791
+ }
792
+ Ae();
793
+ (function(e) {
794
+ var t = e.util.clone(e.languages.typescript);
795
+ e.languages.tsx = e.languages.extend("jsx", t), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"];
796
+ var r = e.languages.tsx.tag;
797
+ r.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + r.pattern.source + ")", r.pattern.flags), r.lookbehind = !0;
798
+ })(Prism);
799
+ const Fe = {
557
800
  sh: "bash",
558
801
  shell: "bash",
559
802
  zsh: "bash",
560
803
  console: "bash"
561
- }, Ee = ({ children: e, className: t = "", ...o }) => {
562
- const [n, i] = T(!1), a = D(), s = t.replace("language-", "") || "jsx", d = xe[s] ?? s;
563
- let l = "";
564
- typeof e == "string" ? l = e.trim() : e && typeof e == "object" && e.props && (typeof e.props.children == "string" ? l = e.props.children.trim() : Array.isArray(e.props.children) && (l = e.props.children.join("").trim()));
565
- const u = {
804
+ }, Ee = ({ children: e, className: t = "", ...r }) => {
805
+ const [o, l] = F(!1), s = D(), i = t.replace("language-", "") || "jsx", u = Fe[i] ?? i;
806
+ let a = "";
807
+ typeof e == "string" ? a = e.trim() : e && typeof e == "object" && e.props && (typeof e.props.children == "string" ? a = e.props.children.trim() : Array.isArray(e.props.children) && (a = e.props.children.join("").trim()));
808
+ const c = {
566
809
  plain: {
567
- color: a.palette.text.primary,
568
- backgroundColor: a.palette.background.paper
810
+ color: s.palette.text.primary,
811
+ backgroundColor: s.palette.background.paper
569
812
  },
570
813
  styles: [
571
814
  {
572
815
  types: ["comment", "prolog", "doctype", "cdata"],
573
816
  style: {
574
- color: a.palette.mode === "dark" ? "#6a737d" : "#6a7781"
817
+ color: s.palette.mode === "dark" ? "#6a737d" : "#6a7781"
575
818
  }
576
819
  },
577
820
  {
578
821
  types: ["punctuation"],
579
822
  style: {
580
- color: a.palette.mode === "dark" ? "#e1e4e8" : "#24292e"
823
+ color: s.palette.mode === "dark" ? "#e1e4e8" : "#24292e"
581
824
  }
582
825
  },
583
826
  {
584
827
  types: ["property", "tag", "boolean", "number", "constant", "symbol"],
585
828
  style: {
586
- color: a.palette.mode === "dark" ? "#79b8ff" : "#005cc5"
829
+ color: s.palette.mode === "dark" ? "#79b8ff" : "#005cc5"
587
830
  }
588
831
  },
589
832
  {
590
833
  types: ["selector", "attr-name", "string", "char", "builtin"],
591
834
  style: {
592
- color: a.palette.mode === "dark" ? "#a5d6ff" : "#032f62"
835
+ color: s.palette.mode === "dark" ? "#a5d6ff" : "#032f62"
593
836
  }
594
837
  },
595
838
  {
596
839
  types: ["operator", "entity", "url"],
597
840
  style: {
598
- color: (a.palette.mode === "dark", "#d73a49")
841
+ color: (s.palette.mode === "dark", "#d73a49")
599
842
  }
600
843
  },
601
844
  {
602
845
  types: ["atrule", "attr-value", "keyword"],
603
846
  style: {
604
- color: a.palette.mode === "dark" ? "#f97583" : "#d73a49"
847
+ color: s.palette.mode === "dark" ? "#f97583" : "#d73a49"
605
848
  }
606
849
  },
607
850
  {
608
851
  types: ["function"],
609
852
  style: {
610
- color: a.palette.mode === "dark" ? "#b392f0" : "#6f42c1"
853
+ color: s.palette.mode === "dark" ? "#b392f0" : "#6f42c1"
611
854
  }
612
855
  },
613
856
  {
614
857
  types: ["class-name"],
615
858
  style: {
616
- color: a.palette.mode === "dark" ? "#ffab70" : "#e36209"
859
+ color: s.palette.mode === "dark" ? "#ffab70" : "#e36209"
617
860
  }
618
861
  }
619
862
  ]
620
863
  };
621
- return /* @__PURE__ */ p(c, { sx: { position: "relative", my: 2 }, children: [
622
- /* @__PURE__ */ r(c, { sx: { position: "absolute", top: 4, right: 4, zIndex: 1 }, children: /* @__PURE__ */ r(ee, { title: n ? "Copied!" : "Copy", children: /* @__PURE__ */ r(
623
- v,
864
+ return /* @__PURE__ */ m(g, { sx: { position: "relative", my: 2 }, children: [
865
+ /* @__PURE__ */ n(g, { sx: { position: "absolute", top: 4, right: 4, zIndex: 1 }, children: /* @__PURE__ */ n(re, { title: o ? "Copied!" : "Copy", children: /* @__PURE__ */ n(
866
+ A,
624
867
  {
625
868
  size: "small",
626
869
  onClick: async () => {
627
870
  try {
628
- await navigator.clipboard.writeText(l), i(!0), setTimeout(() => i(!1), 1500);
871
+ await navigator.clipboard.writeText(a), l(!0), setTimeout(() => l(!1), 1500);
629
872
  } catch {
630
873
  }
631
874
  },
632
875
  color: "inherit",
633
- "aria-label": n ? "Code copied to clipboard" : "Copy code to clipboard",
876
+ "aria-label": o ? "Code copied to clipboard" : "Copy code to clipboard",
634
877
  sx: { width: 24, height: 24 },
635
- children: n ? /* @__PURE__ */ r(ge, { sx: { fontSize: 16 } }) : /* @__PURE__ */ r(be, { sx: { fontSize: 16 } })
878
+ children: o ? /* @__PURE__ */ n(ye, { sx: { fontSize: 16 } }) : /* @__PURE__ */ n(Se, { sx: { fontSize: 16 } })
636
879
  }
637
880
  ) }) }),
638
- /* @__PURE__ */ r($, { prism: Se, code: l, language: d, theme: u, children: ({ className: h, style: y, tokens: k, getLineProps: w, getTokenProps: x }) => /* @__PURE__ */ p(
639
- c,
881
+ /* @__PURE__ */ n(M, { prism: xe, code: a, language: u, theme: c, children: ({ className: d, style: h, tokens: f, getLineProps: w, getTokenProps: k }) => /* @__PURE__ */ m(
882
+ g,
640
883
  {
641
884
  sx: {
642
885
  border: 1,
643
886
  borderColor: "divider",
644
887
  borderRadius: 2,
645
888
  overflow: "hidden",
646
- backgroundColor: a.palette.background.paper,
889
+ backgroundColor: s.palette.background.paper,
647
890
  boxShadow: 1
648
891
  },
649
892
  children: [
650
- /* @__PURE__ */ r(
651
- c,
893
+ /* @__PURE__ */ n(
894
+ g,
652
895
  {
653
896
  sx: {
654
897
  px: 2,
655
898
  py: 1,
656
- backgroundColor: a.palette.mode === "dark" ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.04)",
899
+ backgroundColor: s.palette.mode === "dark" ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.04)",
657
900
  borderBottom: 1,
658
901
  borderColor: "divider",
659
902
  fontSize: "0.75rem",
660
- color: a.palette.text.secondary,
903
+ color: s.palette.text.secondary,
661
904
  fontFamily: "monospace",
662
905
  textTransform: "uppercase",
663
906
  letterSpacing: 0.5
664
907
  },
665
- children: d
908
+ children: u
666
909
  }
667
910
  ),
668
- /* @__PURE__ */ r(
911
+ /* @__PURE__ */ n(
669
912
  "pre",
670
913
  {
671
- className: h,
914
+ className: d,
672
915
  style: {
673
- ...y,
916
+ ...h,
674
917
  margin: 0,
675
918
  padding: 16,
676
919
  overflowX: "auto",
@@ -679,13 +922,13 @@ const xe = {
679
922
  overflowWrap: "break-word",
680
923
  whiteSpace: "pre-wrap"
681
924
  },
682
- ...o,
683
- children: k.map((f, g) => {
684
- const I = w({ line: f, key: g }), { key: E, ...H } = I;
685
- return /* @__PURE__ */ r("div", { ...H, children: f.map((G, O) => {
686
- const W = x({ token: G, key: O }), { key: He, ...U } = W;
687
- return /* @__PURE__ */ r("span", { ...U }, `${g}-${O}`);
688
- }) }, E);
925
+ ...r,
926
+ children: f.map((b, S) => {
927
+ const T = w({ line: b, key: S }), { key: v, ...H } = T;
928
+ return /* @__PURE__ */ n("div", { ...H, children: b.map((G, _) => {
929
+ const z = k({ token: G, key: _ }), { key: Ge, ...W } = z;
930
+ return /* @__PURE__ */ n("span", { ...W }, `${S}-${_}`);
931
+ }) }, v);
689
932
  })
690
933
  }
691
934
  )
@@ -693,69 +936,69 @@ const xe = {
693
936
  }
694
937
  ) })
695
938
  ] });
696
- }, ve = ({ children: e, ...t }) => {
697
- const o = D(), n = typeof e == "string" ? e.trim() : "", i = {
939
+ }, Te = ({ children: e, ...t }) => {
940
+ const r = D(), o = typeof e == "string" ? e.trim() : "", l = {
698
941
  plain: {
699
- color: o.palette.text.primary,
700
- backgroundColor: o.palette.mode === "dark" ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.08)"
942
+ color: r.palette.text.primary,
943
+ backgroundColor: r.palette.mode === "dark" ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.08)"
701
944
  },
702
945
  styles: [
703
946
  {
704
947
  types: ["comment", "prolog", "doctype", "cdata"],
705
948
  style: {
706
- color: o.palette.mode === "dark" ? "#6a737d" : "#6a7781"
949
+ color: r.palette.mode === "dark" ? "#6a737d" : "#6a7781"
707
950
  }
708
951
  },
709
952
  {
710
953
  types: ["punctuation"],
711
954
  style: {
712
- color: o.palette.mode === "dark" ? "#e1e4e8" : "#24292e"
955
+ color: r.palette.mode === "dark" ? "#e1e4e8" : "#24292e"
713
956
  }
714
957
  },
715
958
  {
716
959
  types: ["property", "tag", "boolean", "number", "constant", "symbol"],
717
960
  style: {
718
- color: o.palette.mode === "dark" ? "#79b8ff" : "#005cc5"
961
+ color: r.palette.mode === "dark" ? "#79b8ff" : "#005cc5"
719
962
  }
720
963
  },
721
964
  {
722
965
  types: ["selector", "attr-name", "string", "char", "builtin"],
723
966
  style: {
724
- color: o.palette.mode === "dark" ? "#a5d6ff" : "#032f62"
967
+ color: r.palette.mode === "dark" ? "#a5d6ff" : "#032f62"
725
968
  }
726
969
  },
727
970
  {
728
971
  types: ["operator", "entity", "url"],
729
972
  style: {
730
- color: (o.palette.mode === "dark", "#d73a49")
973
+ color: (r.palette.mode === "dark", "#d73a49")
731
974
  }
732
975
  },
733
976
  {
734
977
  types: ["atrule", "attr-value", "keyword"],
735
978
  style: {
736
- color: o.palette.mode === "dark" ? "#f97583" : "#d73a49"
979
+ color: r.palette.mode === "dark" ? "#f97583" : "#d73a49"
737
980
  }
738
981
  },
739
982
  {
740
983
  types: ["function"],
741
984
  style: {
742
- color: o.palette.mode === "dark" ? "#b392f0" : "#6f42c1"
985
+ color: r.palette.mode === "dark" ? "#b392f0" : "#6f42c1"
743
986
  }
744
987
  },
745
988
  {
746
989
  types: ["class-name"],
747
990
  style: {
748
- color: o.palette.mode === "dark" ? "#ffab70" : "#e36209"
991
+ color: r.palette.mode === "dark" ? "#ffab70" : "#e36209"
749
992
  }
750
993
  }
751
994
  ]
752
995
  };
753
- return /* @__PURE__ */ r($, { code: n, language: "jsx", theme: i, children: ({ className: a, style: s, tokens: d, getLineProps: l, getTokenProps: u }) => /* @__PURE__ */ r(
996
+ return /* @__PURE__ */ n(M, { code: o, language: "jsx", theme: l, children: ({ className: s, style: i, tokens: u, getLineProps: a, getTokenProps: c }) => /* @__PURE__ */ n(
754
997
  "code",
755
998
  {
756
- className: a,
999
+ className: s,
757
1000
  style: {
758
- ...s,
1001
+ ...i,
759
1002
  padding: "2px 4px",
760
1003
  borderRadius: "3px",
761
1004
  fontSize: "0.875em",
@@ -766,19 +1009,19 @@ const xe = {
766
1009
  maxWidth: "100%"
767
1010
  },
768
1011
  ...t,
769
- children: d.map((S, h) => {
770
- const y = l({ line: S, key: h }), { key: k, ...w } = y;
771
- return /* @__PURE__ */ r("div", { ...w, children: S.map((x, f) => {
772
- const g = u({ token: x, key: f }), { key: I, ...E } = g;
773
- return /* @__PURE__ */ r("span", { ...E }, `${h}-${f}`);
774
- }) }, k);
1012
+ children: u.map((p, d) => {
1013
+ const h = a({ line: p, key: d }), { key: f, ...w } = h;
1014
+ return /* @__PURE__ */ n("div", { ...w, children: p.map((k, b) => {
1015
+ const S = c({ token: k, key: b }), { key: T, ...v } = S;
1016
+ return /* @__PURE__ */ n("span", { ...v }, `${d}-${b}`);
1017
+ }) }, f);
775
1018
  })
776
1019
  }
777
1020
  ) });
778
- }, Te = (e) => e.filter((t) => !t.isDefault), Ae = (e) => e.find((t) => t.isDefault), Ie = (e) => e ? !!(e.startsWith("http://") || e.startsWith("https://") || e.startsWith("mailto:") || e.startsWith("tel:")) : !1, Oe = () => {
779
- const { pages: e } = A();
780
- return /* @__PURE__ */ r(
781
- c,
1021
+ }, _e = (e) => e.filter((t) => !t.isDefault), $e = (e) => e.find((t) => t.isDefault), Ie = (e) => e ? !!(e.startsWith("http://") || e.startsWith("https://") || e.startsWith("mailto:") || e.startsWith("tel:")) : !1, Oe = () => {
1022
+ const { pages: e } = E();
1023
+ return /* @__PURE__ */ n(
1024
+ g,
782
1025
  {
783
1026
  sx: {
784
1027
  width: "100%",
@@ -826,44 +1069,44 @@ const xe = {
826
1069
  }
827
1070
  }
828
1071
  },
829
- children: /* @__PURE__ */ r(
830
- he,
1072
+ children: /* @__PURE__ */ n(
1073
+ be,
831
1074
  {
832
1075
  components: {
833
1076
  // pre: CodeBlock,
834
- code: (t) => t.className ? /* @__PURE__ */ r(Ee, { ...t }) : /* @__PURE__ */ r(ve, { ...t }),
1077
+ code: (t) => t.className ? /* @__PURE__ */ n(Ee, { ...t }) : /* @__PURE__ */ n(Te, { ...t }),
835
1078
  a: (t) => {
836
- const o = Ie(t.href);
837
- return /* @__PURE__ */ r(
1079
+ const r = Ie(t.href);
1080
+ return /* @__PURE__ */ n(
838
1081
  "a",
839
1082
  {
840
1083
  ...t,
841
- target: o ? "_blank" : void 0,
842
- rel: o ? "noopener noreferrer" : void 0
1084
+ target: r ? "_blank" : void 0,
1085
+ rel: r ? "noopener noreferrer" : void 0
843
1086
  }
844
1087
  );
845
1088
  },
846
1089
  p: (t) => {
847
- const o = t.children && (Array.isArray(t.children) ? t.children.some(
848
- (s) => typeof s == "object" && s.type
849
- ) : typeof t.children == "object" && t.children.type), n = t.children && typeof t.children == "string" && t.children.length < 20, i = t.children && typeof t.children == "string" && (t.children.includes("Color Text") || t.children.includes("Text")), a = o || n || i;
850
- return o ? /* @__PURE__ */ r(z, { children: t.children }) : i ? /* @__PURE__ */ r("span", { style: { margin: 0, padding: 0 }, children: t.children }) : /* @__PURE__ */ r(
1090
+ const r = t.children && (Array.isArray(t.children) ? t.children.some(
1091
+ (i) => typeof i == "object" && i.type
1092
+ ) : typeof t.children == "object" && t.children.type), o = t.children && typeof t.children == "string" && t.children.length < 20, l = t.children && typeof t.children == "string" && (t.children.includes("Color Text") || t.children.includes("Text")), s = r || o || l;
1093
+ return r ? /* @__PURE__ */ n(U, { children: t.children }) : l ? /* @__PURE__ */ n("span", { style: { margin: 0, padding: 0 }, children: t.children }) : /* @__PURE__ */ n(
851
1094
  "p",
852
1095
  {
853
1096
  ...t,
854
1097
  style: {
855
- margin: a ? 0 : void 0,
856
- padding: a ? 0 : void 0
1098
+ margin: s ? 0 : void 0,
1099
+ padding: s ? 0 : void 0
857
1100
  }
858
1101
  }
859
1102
  );
860
1103
  }
861
1104
  },
862
- children: /* @__PURE__ */ r(
863
- j,
1105
+ children: /* @__PURE__ */ n(
1106
+ Y,
864
1107
  {
865
- fallback: /* @__PURE__ */ r(
866
- c,
1108
+ fallback: /* @__PURE__ */ n(
1109
+ g,
867
1110
  {
868
1111
  sx: {
869
1112
  display: "flex",
@@ -871,26 +1114,26 @@ const xe = {
871
1114
  alignItems: "center",
872
1115
  minHeight: "200px"
873
1116
  },
874
- children: /* @__PURE__ */ r(te, {})
1117
+ children: /* @__PURE__ */ n(ne, {})
875
1118
  }
876
1119
  ),
877
- children: /* @__PURE__ */ p(le, { children: [
1120
+ children: /* @__PURE__ */ m(ue, { children: [
878
1121
  e.map((t) => {
879
- const o = t.component;
880
- return /* @__PURE__ */ r(
881
- P,
1122
+ const r = t.component;
1123
+ return /* @__PURE__ */ n(
1124
+ I,
882
1125
  {
883
1126
  path: t.route,
884
- element: /* @__PURE__ */ r(o, {})
1127
+ element: /* @__PURE__ */ n(r, {})
885
1128
  },
886
1129
  t.route
887
1130
  );
888
1131
  }),
889
- /* @__PURE__ */ r(
890
- P,
1132
+ /* @__PURE__ */ n(
1133
+ I,
891
1134
  {
892
1135
  path: "*",
893
- element: X.createElement(Ae(e).component)
1136
+ element: X.createElement($e(e).component)
894
1137
  }
895
1138
  )
896
1139
  ] })
@@ -900,42 +1143,42 @@ const xe = {
900
1143
  )
901
1144
  }
902
1145
  );
903
- }, m = 240, _e = ({ mobileOpen: e, handleDrawerToggle: t }) => {
904
- const o = M(), { pages: n } = A(), i = Te(n);
905
- b(() => {
906
- const d = setTimeout(() => {
1146
+ }, y = 240, Re = ({ mobileOpen: e, handleDrawerToggle: t }) => {
1147
+ const r = B(), { pages: o } = E(), l = _e(o);
1148
+ x(() => {
1149
+ const u = setTimeout(() => {
907
1150
  document.body.style.overflow = "";
908
1151
  }, 100);
909
- return () => clearTimeout(d);
910
- }, [o.pathname]);
911
- const a = () => {
1152
+ return () => clearTimeout(u);
1153
+ }, [r.pathname]);
1154
+ const s = () => {
912
1155
  t();
913
- }, s = /* @__PURE__ */ p("div", { children: [
914
- /* @__PURE__ */ r(N, {}),
915
- /* @__PURE__ */ r(re, { children: i.map((d) => /* @__PURE__ */ r(oe, { disablePadding: !0, children: /* @__PURE__ */ r(
916
- ne,
1156
+ }, i = /* @__PURE__ */ m("div", { children: [
1157
+ /* @__PURE__ */ n(P, {}),
1158
+ /* @__PURE__ */ n(ae, { children: l.map((u) => /* @__PURE__ */ n(oe, { disablePadding: !0, children: /* @__PURE__ */ n(
1159
+ se,
917
1160
  {
918
1161
  component: L,
919
- to: d.route,
920
- onClick: () => a(),
1162
+ to: u.route,
1163
+ onClick: () => s(),
921
1164
  sx: {
922
1165
  "&:hover": {
923
1166
  color: "inherit"
924
1167
  }
925
1168
  },
926
- children: /* @__PURE__ */ r(ae, { primary: d.name })
1169
+ children: /* @__PURE__ */ n(ie, { primary: u.name })
927
1170
  }
928
- ) }, d.route)) })
1171
+ ) }, u.route)) })
929
1172
  ] });
930
- return /* @__PURE__ */ p(
931
- c,
1173
+ return /* @__PURE__ */ m(
1174
+ g,
932
1175
  {
933
1176
  component: "nav",
934
- sx: { width: { sm: m }, flexShrink: { sm: 0 } },
1177
+ sx: { width: { sm: y }, flexShrink: { sm: 0 } },
935
1178
  "aria-label": "sidebar navigation",
936
1179
  children: [
937
- /* @__PURE__ */ r(
938
- _,
1180
+ /* @__PURE__ */ n(
1181
+ $,
939
1182
  {
940
1183
  variant: "temporary",
941
1184
  open: e,
@@ -948,51 +1191,51 @@ const xe = {
948
1191
  display: { xs: "block", sm: "none" },
949
1192
  "& .MuiDrawer-paper": {
950
1193
  boxSizing: "border-box",
951
- width: { xs: "85vw", sm: m },
952
- maxWidth: m
1194
+ width: { xs: "85vw", sm: y },
1195
+ maxWidth: y
953
1196
  }
954
1197
  },
955
- children: s
1198
+ children: i
956
1199
  }
957
1200
  ),
958
- /* @__PURE__ */ r(
959
- _,
1201
+ /* @__PURE__ */ n(
1202
+ $,
960
1203
  {
961
1204
  variant: "permanent",
962
1205
  sx: {
963
1206
  display: { xs: "none", sm: "block" },
964
1207
  "& .MuiDrawer-paper": {
965
1208
  boxSizing: "border-box",
966
- width: m
1209
+ width: y
967
1210
  }
968
1211
  },
969
1212
  open: !0,
970
- children: s
1213
+ children: i
971
1214
  }
972
1215
  )
973
1216
  ]
974
1217
  }
975
1218
  );
976
- }, Pe = () => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-color-scheme: dark)").matches : !0, Re = () => {
1219
+ }, Ce = () => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-color-scheme: dark)").matches : !0, Ne = () => {
977
1220
  if (typeof window < "u") {
978
1221
  const e = localStorage.getItem("darkMode");
979
1222
  if (e !== null)
980
1223
  return JSON.parse(e);
981
1224
  }
982
- return Pe();
983
- }, Ce = () => {
984
- const [e, t] = T(Re);
985
- return b(() => {
1225
+ return Ce();
1226
+ }, Pe = () => {
1227
+ const [e, t] = F(Ne);
1228
+ return x(() => {
986
1229
  typeof window < "u" && localStorage.setItem("darkMode", JSON.stringify(e));
987
- }, [e]), b(() => {
1230
+ }, [e]), x(() => {
988
1231
  if (typeof window < "u" && window.matchMedia) {
989
- const o = window.matchMedia("(prefers-color-scheme: dark)"), n = (i) => {
990
- localStorage.getItem("darkMode") === null && t(i.matches);
1232
+ const r = window.matchMedia("(prefers-color-scheme: dark)"), o = (l) => {
1233
+ localStorage.getItem("darkMode") === null && t(l.matches);
991
1234
  };
992
- return o.addEventListener("change", n), () => o.removeEventListener("change", n);
1235
+ return r.addEventListener("change", o), () => r.removeEventListener("change", o);
993
1236
  }
994
1237
  }, []), { darkMode: e, setDarkMode: t };
995
- }, Ne = {
1238
+ }, De = {
996
1239
  palette: {
997
1240
  primary: {
998
1241
  main: "#90caf9",
@@ -1077,7 +1320,7 @@ const xe = {
1077
1320
  activatedOpacity: 0.24
1078
1321
  }
1079
1322
  }
1080
- }, De = {
1323
+ }, Le = {
1081
1324
  palette: {
1082
1325
  primary: {
1083
1326
  main: "#1976d2",
@@ -1161,9 +1404,9 @@ const xe = {
1161
1404
  activatedOpacity: 0.12
1162
1405
  }
1163
1406
  }
1164
- }, Le = (e = "light") => {
1165
- const t = e === "dark" ? Ne : De;
1166
- return ie({
1407
+ }, Be = (e = "light") => {
1408
+ const t = e === "dark" ? De : Le;
1409
+ return le({
1167
1410
  ...t,
1168
1411
  palette: {
1169
1412
  ...t.palette,
@@ -1195,45 +1438,45 @@ const xe = {
1195
1438
  }
1196
1439
  });
1197
1440
  }, Me = ({ children: e }) => {
1198
- const t = M(), o = pe();
1199
- return b(() => {
1200
- const n = new URLSearchParams(window.location.search), i = n.get("redirect");
1201
- if (i) {
1202
- n.delete("redirect");
1203
- const a = window.location.pathname + (n.toString() ? "?" + n.toString() : "");
1204
- window.history.replaceState({}, "", a), o(i);
1441
+ const t = B(), r = ge();
1442
+ return x(() => {
1443
+ const o = new URLSearchParams(window.location.search), l = o.get("redirect");
1444
+ if (l) {
1445
+ o.delete("redirect");
1446
+ const s = window.location.pathname + (o.toString() ? "?" + o.toString() : "");
1447
+ window.history.replaceState({}, "", s), r(l);
1205
1448
  }
1206
- }, [o]), Y(() => {
1449
+ }, [r]), q(() => {
1207
1450
  window.scrollTo({ top: 0, left: 0, behavior: "instant" });
1208
1451
  }, [t.pathname]), e;
1209
1452
  };
1210
- function $e() {
1211
- const { darkMode: e, setDarkMode: t } = Ce(), [o, n] = T(!1), i = V(
1212
- () => Le(e ? "dark" : "light"),
1453
+ function je() {
1454
+ const { darkMode: e, setDarkMode: t } = Pe(), [r, o] = F(!1), l = V(
1455
+ () => Be(e ? "dark" : "light"),
1213
1456
  [e]
1214
- ), a = () => {
1215
- n(!o);
1457
+ ), s = () => {
1458
+ o(!r);
1216
1459
  };
1217
- return /* @__PURE__ */ p(se, { theme: i, children: [
1218
- /* @__PURE__ */ r(de, {}),
1219
- /* @__PURE__ */ p(c, { sx: { display: "flex" }, children: [
1220
- /* @__PURE__ */ r(
1460
+ return /* @__PURE__ */ m(ce, { theme: l, children: [
1461
+ /* @__PURE__ */ n(de, {}),
1462
+ /* @__PURE__ */ m(g, { sx: { display: "flex" }, children: [
1463
+ /* @__PURE__ */ n(
1221
1464
  ke,
1222
1465
  {
1223
1466
  darkMode: e,
1224
1467
  setDarkMode: t,
1225
- handleDrawerToggle: a
1468
+ handleDrawerToggle: s
1226
1469
  }
1227
1470
  ),
1228
- /* @__PURE__ */ r(
1229
- _e,
1471
+ /* @__PURE__ */ n(
1472
+ Re,
1230
1473
  {
1231
- mobileOpen: o,
1232
- handleDrawerToggle: a
1474
+ mobileOpen: r,
1475
+ handleDrawerToggle: s
1233
1476
  }
1234
1477
  ),
1235
- /* @__PURE__ */ r(
1236
- c,
1478
+ /* @__PURE__ */ n(
1479
+ g,
1237
1480
  {
1238
1481
  component: "main",
1239
1482
  sx: {
@@ -1242,24 +1485,24 @@ function $e() {
1242
1485
  // Add top padding to account for AppBar
1243
1486
  px: { xs: 0.5, sm: 3 },
1244
1487
  // Reduce padding even more on very small screens
1245
- width: { sm: `calc(100% - ${m}px)` },
1488
+ width: { sm: `calc(100% - ${y}px)` },
1246
1489
  // Prevent horizontal overflow on very small screens
1247
1490
  overflowX: "hidden"
1248
1491
  },
1249
- children: /* @__PURE__ */ r(Oe, {})
1492
+ children: /* @__PURE__ */ n(Oe, {})
1250
1493
  }
1251
1494
  )
1252
1495
  ] })
1253
1496
  ] });
1254
1497
  }
1255
- function Be({ pages: e, site: t }) {
1256
- return /* @__PURE__ */ r(ye, { pages: e, site: t, children: /* @__PURE__ */ r(ce, { basename: "/", children: /* @__PURE__ */ r(Me, { children: /* @__PURE__ */ r($e, {}) }) }) });
1498
+ function He({ pages: e, site: t }) {
1499
+ return /* @__PURE__ */ n(we, { pages: e, site: t, children: /* @__PURE__ */ n(pe, { basename: "/", children: /* @__PURE__ */ n(Me, { children: /* @__PURE__ */ n(je, {}) }) }) });
1257
1500
  }
1258
- function Qe({ pages: e, site: t }) {
1259
- Z(document.getElementById("root")).render(
1260
- /* @__PURE__ */ r(q, { children: /* @__PURE__ */ r(Be, { pages: e, site: t }) })
1501
+ function rt({ pages: e, site: t }) {
1502
+ Q(document.getElementById("root")).render(
1503
+ /* @__PURE__ */ n(J, { children: /* @__PURE__ */ n(He, { pages: e, site: t }) })
1261
1504
  );
1262
1505
  }
1263
1506
  export {
1264
- Qe as createApp
1507
+ rt as createApp
1265
1508
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quietmind/mdx-docs",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "homepage": "https://mdxdocs.com",
6
6
  "exports": {
@@ -20,6 +20,7 @@
20
20
  "build:lib": "vite build --config vite.lib.config.js",
21
21
  "lint": "eslint .",
22
22
  "preview": "vite preview",
23
+ "release": "yarn build:lib && npm publish",
23
24
  "serve": "vite preview --host",
24
25
  "test": "vitest run",
25
26
  "test:watch": "vitest",