diff --git "a/src/backend/gradio_mediagallery/templates/component/index.js" "b/src/backend/gradio_mediagallery/templates/component/index.js"
new file mode 100644--- /dev/null
+++ "b/src/backend/gradio_mediagallery/templates/component/index.js"
@@ -0,0 +1,35887 @@
+var fm = Object.defineProperty;
+var Ul = (r) => {
+ throw TypeError(r);
+};
+var gm = (r, e, t) => e in r ? fm(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
+var Ie = (r, e, t) => gm(r, typeof e != "symbol" ? e + "" : e, t), Jr = (r, e, t) => e.has(r) || Ul("Cannot " + t);
+var hn = (r, e, t) => (Jr(r, e, "read from private field"), t ? t.call(r) : e.get(r)), ea = (r, e, t) => e.has(r) ? Ul("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), Gl = (r, e, t, i) => (Jr(r, e, "write to private field"), i ? i.call(r, t) : e.set(r, t), t), Es = (r, e, t) => (Jr(r, e, "access private method"), t);
+const {
+ SvelteComponent: mm,
+ append_hydration: ro,
+ assign: pm,
+ attr: et,
+ binding_callbacks: _m,
+ children: qn,
+ claim_element: Rh,
+ claim_space: wh,
+ claim_svg_element: ta,
+ create_slot: ym,
+ detach: ci,
+ element: Fh,
+ empty: Vl,
+ get_all_dirty_from_scope: vm,
+ get_slot_changes: Em,
+ get_spread_update: Sm,
+ init: bm,
+ insert_hydration: es,
+ listen: Tm,
+ noop: Am,
+ safe_not_equal: Dm,
+ set_dynamic_element_data: Kl,
+ set_style: me,
+ space: Ph,
+ svg_element: ia,
+ toggle_class: ze,
+ transition_in: Oh,
+ transition_out: $h,
+ update_slot_base: Im
+} = window.__gradio__svelte__internal;
+function Hl(r) {
+ let e, t, i, n, s;
+ return {
+ c() {
+ e = ia("svg"), t = ia("line"), i = ia("line"), this.h();
+ },
+ l(a) {
+ e = ta(a, "svg", { class: !0, xmlns: !0, viewBox: !0 });
+ var o = qn(e);
+ t = ta(o, "line", {
+ x1: !0,
+ y1: !0,
+ x2: !0,
+ y2: !0,
+ stroke: !0,
+ "stroke-width": !0
+ }), qn(t).forEach(ci), i = ta(o, "line", {
+ x1: !0,
+ y1: !0,
+ x2: !0,
+ y2: !0,
+ stroke: !0,
+ "stroke-width": !0
+ }), qn(i).forEach(ci), o.forEach(ci), this.h();
+ },
+ h() {
+ et(t, "x1", "1"), et(t, "y1", "9"), et(t, "x2", "9"), et(t, "y2", "1"), et(t, "stroke", "gray"), et(t, "stroke-width", "0.5"), et(i, "x1", "5"), et(i, "y1", "9"), et(i, "x2", "9"), et(i, "y2", "5"), et(i, "stroke", "gray"), et(i, "stroke-width", "0.5"), et(e, "class", "resize-handle svelte-239wnu"), et(e, "xmlns", "http://www.w3.org/2000/svg"), et(e, "viewBox", "0 0 10 10");
+ },
+ m(a, o) {
+ es(a, e, o), ro(e, t), ro(e, i), n || (s = Tm(
+ e,
+ "mousedown",
+ /*resize*/
+ r[27]
+ ), n = !0);
+ },
+ p: Am,
+ d(a) {
+ a && ci(e), n = !1, s();
+ }
+ };
+}
+function xm(r) {
+ var d;
+ let e, t, i, n, s;
+ const a = (
+ /*#slots*/
+ r[31].default
+ ), o = ym(
+ a,
+ r,
+ /*$$scope*/
+ r[30],
+ null
+ );
+ let l = (
+ /*resizable*/
+ r[19] && Hl(r)
+ ), u = [
+ { "data-testid": (
+ /*test_id*/
+ r[11]
+ ) },
+ { id: (
+ /*elem_id*/
+ r[6]
+ ) },
+ {
+ class: i = "block " + /*elem_classes*/
+ (((d = r[7]) == null ? void 0 : d.join(" ")) || "") + " svelte-239wnu"
+ },
+ {
+ dir: n = /*rtl*/
+ r[20] ? "rtl" : "ltr"
+ }
+ ], c = {};
+ for (let h = 0; h < u.length; h += 1)
+ c = pm(c, u[h]);
+ return {
+ c() {
+ e = Fh(
+ /*tag*/
+ r[25]
+ ), o && o.c(), t = Ph(), l && l.c(), this.h();
+ },
+ l(h) {
+ e = Rh(
+ h,
+ /*tag*/
+ (r[25] || "null").toUpperCase(),
+ {
+ "data-testid": !0,
+ id: !0,
+ class: !0,
+ dir: !0
+ }
+ );
+ var f = qn(e);
+ o && o.l(f), t = wh(f), l && l.l(f), f.forEach(ci), this.h();
+ },
+ h() {
+ Kl(
+ /*tag*/
+ r[25]
+ )(e, c), ze(
+ e,
+ "hidden",
+ /*visible*/
+ r[14] === !1 || /*visible*/
+ r[14] === "hidden"
+ ), ze(
+ e,
+ "padded",
+ /*padding*/
+ r[10]
+ ), ze(
+ e,
+ "flex",
+ /*flex*/
+ r[1]
+ ), ze(
+ e,
+ "border_focus",
+ /*border_mode*/
+ r[9] === "focus"
+ ), ze(
+ e,
+ "border_contrast",
+ /*border_mode*/
+ r[9] === "contrast"
+ ), ze(e, "hide-container", !/*explicit_call*/
+ r[12] && !/*container*/
+ r[13]), ze(
+ e,
+ "fullscreen",
+ /*fullscreen*/
+ r[0]
+ ), ze(
+ e,
+ "animating",
+ /*fullscreen*/
+ r[0] && /*preexpansionBoundingRect*/
+ r[24] !== null
+ ), ze(
+ e,
+ "auto-margin",
+ /*scale*/
+ r[17] === null
+ ), me(
+ e,
+ "height",
+ /*fullscreen*/
+ r[0] ? void 0 : (
+ /*get_dimension*/
+ r[26](
+ /*height*/
+ r[2]
+ )
+ )
+ ), me(
+ e,
+ "min-height",
+ /*fullscreen*/
+ r[0] ? void 0 : (
+ /*get_dimension*/
+ r[26](
+ /*min_height*/
+ r[3]
+ )
+ )
+ ), me(
+ e,
+ "max-height",
+ /*fullscreen*/
+ r[0] ? void 0 : (
+ /*get_dimension*/
+ r[26](
+ /*max_height*/
+ r[4]
+ )
+ )
+ ), me(
+ e,
+ "--start-top",
+ /*preexpansionBoundingRect*/
+ r[24] ? `${/*preexpansionBoundingRect*/
+ r[24].top}px` : "0px"
+ ), me(
+ e,
+ "--start-left",
+ /*preexpansionBoundingRect*/
+ r[24] ? `${/*preexpansionBoundingRect*/
+ r[24].left}px` : "0px"
+ ), me(
+ e,
+ "--start-width",
+ /*preexpansionBoundingRect*/
+ r[24] ? `${/*preexpansionBoundingRect*/
+ r[24].width}px` : "0px"
+ ), me(
+ e,
+ "--start-height",
+ /*preexpansionBoundingRect*/
+ r[24] ? `${/*preexpansionBoundingRect*/
+ r[24].height}px` : "0px"
+ ), me(
+ e,
+ "width",
+ /*fullscreen*/
+ r[0] ? void 0 : typeof /*width*/
+ r[5] == "number" ? `calc(min(${/*width*/
+ r[5]}px, 100%))` : (
+ /*get_dimension*/
+ r[26](
+ /*width*/
+ r[5]
+ )
+ )
+ ), me(
+ e,
+ "border-style",
+ /*variant*/
+ r[8]
+ ), me(
+ e,
+ "overflow",
+ /*allow_overflow*/
+ r[15] ? (
+ /*overflow_behavior*/
+ r[16]
+ ) : "hidden"
+ ), me(
+ e,
+ "flex-grow",
+ /*scale*/
+ r[17]
+ ), me(e, "min-width", `calc(min(${/*min_width*/
+ r[18]}px, 100%))`), me(e, "border-width", "var(--block-border-width)");
+ },
+ m(h, f) {
+ es(h, e, f), o && o.m(e, null), ro(e, t), l && l.m(e, null), r[32](e), s = !0;
+ },
+ p(h, f) {
+ var g;
+ o && o.p && (!s || f[0] & /*$$scope*/
+ 1073741824) && Im(
+ o,
+ a,
+ h,
+ /*$$scope*/
+ h[30],
+ s ? Em(
+ a,
+ /*$$scope*/
+ h[30],
+ f,
+ null
+ ) : vm(
+ /*$$scope*/
+ h[30]
+ ),
+ null
+ ), /*resizable*/
+ h[19] ? l ? l.p(h, f) : (l = Hl(h), l.c(), l.m(e, null)) : l && (l.d(1), l = null), Kl(
+ /*tag*/
+ h[25]
+ )(e, c = Sm(u, [
+ (!s || f[0] & /*test_id*/
+ 2048) && { "data-testid": (
+ /*test_id*/
+ h[11]
+ ) },
+ (!s || f[0] & /*elem_id*/
+ 64) && { id: (
+ /*elem_id*/
+ h[6]
+ ) },
+ (!s || f[0] & /*elem_classes*/
+ 128 && i !== (i = "block " + /*elem_classes*/
+ (((g = h[7]) == null ? void 0 : g.join(" ")) || "") + " svelte-239wnu")) && { class: i },
+ (!s || f[0] & /*rtl*/
+ 1048576 && n !== (n = /*rtl*/
+ h[20] ? "rtl" : "ltr")) && { dir: n }
+ ])), ze(
+ e,
+ "hidden",
+ /*visible*/
+ h[14] === !1 || /*visible*/
+ h[14] === "hidden"
+ ), ze(
+ e,
+ "padded",
+ /*padding*/
+ h[10]
+ ), ze(
+ e,
+ "flex",
+ /*flex*/
+ h[1]
+ ), ze(
+ e,
+ "border_focus",
+ /*border_mode*/
+ h[9] === "focus"
+ ), ze(
+ e,
+ "border_contrast",
+ /*border_mode*/
+ h[9] === "contrast"
+ ), ze(e, "hide-container", !/*explicit_call*/
+ h[12] && !/*container*/
+ h[13]), ze(
+ e,
+ "fullscreen",
+ /*fullscreen*/
+ h[0]
+ ), ze(
+ e,
+ "animating",
+ /*fullscreen*/
+ h[0] && /*preexpansionBoundingRect*/
+ h[24] !== null
+ ), ze(
+ e,
+ "auto-margin",
+ /*scale*/
+ h[17] === null
+ ), f[0] & /*fullscreen, height*/
+ 5 && me(
+ e,
+ "height",
+ /*fullscreen*/
+ h[0] ? void 0 : (
+ /*get_dimension*/
+ h[26](
+ /*height*/
+ h[2]
+ )
+ )
+ ), f[0] & /*fullscreen, min_height*/
+ 9 && me(
+ e,
+ "min-height",
+ /*fullscreen*/
+ h[0] ? void 0 : (
+ /*get_dimension*/
+ h[26](
+ /*min_height*/
+ h[3]
+ )
+ )
+ ), f[0] & /*fullscreen, max_height*/
+ 17 && me(
+ e,
+ "max-height",
+ /*fullscreen*/
+ h[0] ? void 0 : (
+ /*get_dimension*/
+ h[26](
+ /*max_height*/
+ h[4]
+ )
+ )
+ ), f[0] & /*preexpansionBoundingRect*/
+ 16777216 && me(
+ e,
+ "--start-top",
+ /*preexpansionBoundingRect*/
+ h[24] ? `${/*preexpansionBoundingRect*/
+ h[24].top}px` : "0px"
+ ), f[0] & /*preexpansionBoundingRect*/
+ 16777216 && me(
+ e,
+ "--start-left",
+ /*preexpansionBoundingRect*/
+ h[24] ? `${/*preexpansionBoundingRect*/
+ h[24].left}px` : "0px"
+ ), f[0] & /*preexpansionBoundingRect*/
+ 16777216 && me(
+ e,
+ "--start-width",
+ /*preexpansionBoundingRect*/
+ h[24] ? `${/*preexpansionBoundingRect*/
+ h[24].width}px` : "0px"
+ ), f[0] & /*preexpansionBoundingRect*/
+ 16777216 && me(
+ e,
+ "--start-height",
+ /*preexpansionBoundingRect*/
+ h[24] ? `${/*preexpansionBoundingRect*/
+ h[24].height}px` : "0px"
+ ), f[0] & /*fullscreen, width*/
+ 33 && me(
+ e,
+ "width",
+ /*fullscreen*/
+ h[0] ? void 0 : typeof /*width*/
+ h[5] == "number" ? `calc(min(${/*width*/
+ h[5]}px, 100%))` : (
+ /*get_dimension*/
+ h[26](
+ /*width*/
+ h[5]
+ )
+ )
+ ), f[0] & /*variant*/
+ 256 && me(
+ e,
+ "border-style",
+ /*variant*/
+ h[8]
+ ), f[0] & /*allow_overflow, overflow_behavior*/
+ 98304 && me(
+ e,
+ "overflow",
+ /*allow_overflow*/
+ h[15] ? (
+ /*overflow_behavior*/
+ h[16]
+ ) : "hidden"
+ ), f[0] & /*scale*/
+ 131072 && me(
+ e,
+ "flex-grow",
+ /*scale*/
+ h[17]
+ ), f[0] & /*min_width*/
+ 262144 && me(e, "min-width", `calc(min(${/*min_width*/
+ h[18]}px, 100%))`);
+ },
+ i(h) {
+ s || (Oh(o, h), s = !0);
+ },
+ o(h) {
+ $h(o, h), s = !1;
+ },
+ d(h) {
+ h && ci(e), o && o.d(h), l && l.d(), r[32](null);
+ }
+ };
+}
+function ql(r) {
+ let e;
+ return {
+ c() {
+ e = Fh("div"), this.h();
+ },
+ l(t) {
+ e = Rh(t, "DIV", { class: !0 }), qn(e).forEach(ci), this.h();
+ },
+ h() {
+ et(e, "class", "placeholder svelte-239wnu"), me(
+ e,
+ "height",
+ /*placeholder_height*/
+ r[22] + "px"
+ ), me(
+ e,
+ "width",
+ /*placeholder_width*/
+ r[23] + "px"
+ );
+ },
+ m(t, i) {
+ es(t, e, i);
+ },
+ p(t, i) {
+ i[0] & /*placeholder_height*/
+ 4194304 && me(
+ e,
+ "height",
+ /*placeholder_height*/
+ t[22] + "px"
+ ), i[0] & /*placeholder_width*/
+ 8388608 && me(
+ e,
+ "width",
+ /*placeholder_width*/
+ t[23] + "px"
+ );
+ },
+ d(t) {
+ t && ci(e);
+ }
+ };
+}
+function Lm(r) {
+ let e, t, i, n = (
+ /*tag*/
+ r[25] && xm(r)
+ ), s = (
+ /*fullscreen*/
+ r[0] && ql(r)
+ );
+ return {
+ c() {
+ n && n.c(), e = Ph(), s && s.c(), t = Vl();
+ },
+ l(a) {
+ n && n.l(a), e = wh(a), s && s.l(a), t = Vl();
+ },
+ m(a, o) {
+ n && n.m(a, o), es(a, e, o), s && s.m(a, o), es(a, t, o), i = !0;
+ },
+ p(a, o) {
+ /*tag*/
+ a[25] && n.p(a, o), /*fullscreen*/
+ a[0] ? s ? s.p(a, o) : (s = ql(a), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null);
+ },
+ i(a) {
+ i || (Oh(n, a), i = !0);
+ },
+ o(a) {
+ $h(n, a), i = !1;
+ },
+ d(a) {
+ a && (ci(e), ci(t)), n && n.d(a), s && s.d(a);
+ }
+ };
+}
+function km(r, e, t) {
+ let { $$slots: i = {}, $$scope: n } = e, { height: s = void 0 } = e, { min_height: a = void 0 } = e, { max_height: o = void 0 } = e, { width: l = void 0 } = e, { elem_id: u = "" } = e, { elem_classes: c = [] } = e, { variant: d = "solid" } = e, { border_mode: h = "base" } = e, { padding: f = !0 } = e, { type: g = "normal" } = e, { test_id: m = void 0 } = e, { explicit_call: p = !1 } = e, { container: v = !0 } = e, { visible: _ = !0 } = e, { allow_overflow: y = !0 } = e, { overflow_behavior: S = "auto" } = e, { scale: b = null } = e, { min_width: A = 0 } = e, { flex: T = !1 } = e, { resizable: D = !1 } = e, { rtl: I = !1 } = e, { fullscreen: x = !1 } = e, k = x, R, N = g === "fieldset" ? "fieldset" : "div", K = 0, U = 0, $ = null;
+ function B(L) {
+ x && L.key === "Escape" && t(0, x = !1);
+ }
+ const O = (L) => {
+ if (L !== void 0) {
+ if (typeof L == "number")
+ return L + "px";
+ if (typeof L == "string")
+ return L;
+ }
+ }, V = (L) => {
+ let M = L.clientY;
+ const z = (Z) => {
+ const te = Z.clientY - M;
+ M = Z.clientY, t(21, R.style.height = `${R.offsetHeight + te}px`, R);
+ }, ee = () => {
+ window.removeEventListener("mousemove", z), window.removeEventListener("mouseup", ee);
+ };
+ window.addEventListener("mousemove", z), window.addEventListener("mouseup", ee);
+ };
+ function q(L) {
+ _m[L ? "unshift" : "push"](() => {
+ R = L, t(21, R);
+ });
+ }
+ return r.$$set = (L) => {
+ "height" in L && t(2, s = L.height), "min_height" in L && t(3, a = L.min_height), "max_height" in L && t(4, o = L.max_height), "width" in L && t(5, l = L.width), "elem_id" in L && t(6, u = L.elem_id), "elem_classes" in L && t(7, c = L.elem_classes), "variant" in L && t(8, d = L.variant), "border_mode" in L && t(9, h = L.border_mode), "padding" in L && t(10, f = L.padding), "type" in L && t(28, g = L.type), "test_id" in L && t(11, m = L.test_id), "explicit_call" in L && t(12, p = L.explicit_call), "container" in L && t(13, v = L.container), "visible" in L && t(14, _ = L.visible), "allow_overflow" in L && t(15, y = L.allow_overflow), "overflow_behavior" in L && t(16, S = L.overflow_behavior), "scale" in L && t(17, b = L.scale), "min_width" in L && t(18, A = L.min_width), "flex" in L && t(1, T = L.flex), "resizable" in L && t(19, D = L.resizable), "rtl" in L && t(20, I = L.rtl), "fullscreen" in L && t(0, x = L.fullscreen), "$$scope" in L && t(30, n = L.$$scope);
+ }, r.$$.update = () => {
+ r.$$.dirty[0] & /*fullscreen, old_fullscreen, element*/
+ 538968065 && x !== k && (t(29, k = x), x ? (t(24, $ = R.getBoundingClientRect()), t(22, K = R.offsetHeight), t(23, U = R.offsetWidth), window.addEventListener("keydown", B)) : (t(24, $ = null), window.removeEventListener("keydown", B))), r.$$.dirty[0] & /*visible*/
+ 16384 && (_ || t(1, T = !1));
+ }, [
+ x,
+ T,
+ s,
+ a,
+ o,
+ l,
+ u,
+ c,
+ d,
+ h,
+ f,
+ m,
+ p,
+ v,
+ _,
+ y,
+ S,
+ b,
+ A,
+ D,
+ I,
+ R,
+ K,
+ U,
+ $,
+ N,
+ O,
+ V,
+ g,
+ k,
+ n,
+ i,
+ q
+ ];
+}
+class Cm extends mm {
+ constructor(e) {
+ super(), bm(
+ this,
+ e,
+ km,
+ Lm,
+ Dm,
+ {
+ height: 2,
+ min_height: 3,
+ max_height: 4,
+ width: 5,
+ elem_id: 6,
+ elem_classes: 7,
+ variant: 8,
+ border_mode: 9,
+ padding: 10,
+ type: 28,
+ test_id: 11,
+ explicit_call: 12,
+ container: 13,
+ visible: 14,
+ allow_overflow: 15,
+ overflow_behavior: 16,
+ scale: 17,
+ min_width: 18,
+ flex: 1,
+ resizable: 19,
+ rtl: 20,
+ fullscreen: 0
+ },
+ null,
+ [-1, -1]
+ );
+ }
+}
+function zo() {
+ return {
+ async: !1,
+ breaks: !1,
+ extensions: null,
+ gfm: !0,
+ hooks: null,
+ pedantic: !1,
+ renderer: null,
+ silent: !1,
+ tokenizer: null,
+ walkTokens: null
+ };
+}
+let un = zo();
+function Mh(r) {
+ un = r;
+}
+const Bh = /[&<>"']/, Rm = new RegExp(Bh.source, "g"), Nh = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, wm = new RegExp(Nh.source, "g"), Fm = {
+ "&": "&",
+ "<": "<",
+ ">": ">",
+ '"': """,
+ "'": "'"
+}, zl = (r) => Fm[r];
+function xt(r, e) {
+ if (e) {
+ if (Bh.test(r))
+ return r.replace(Rm, zl);
+ } else if (Nh.test(r))
+ return r.replace(wm, zl);
+ return r;
+}
+const Pm = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
+function Om(r) {
+ return r.replace(Pm, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : ""));
+}
+const $m = /(^|[^\[])\^/g;
+function be(r, e) {
+ let t = typeof r == "string" ? r : r.source;
+ e = e || "";
+ const i = {
+ replace: (n, s) => {
+ let a = typeof s == "string" ? s : s.source;
+ return a = a.replace($m, "$1"), t = t.replace(n, a), i;
+ },
+ getRegex: () => new RegExp(t, e)
+ };
+ return i;
+}
+function Wl(r) {
+ try {
+ r = encodeURI(r).replace(/%25/g, "%");
+ } catch {
+ return null;
+ }
+ return r;
+}
+const zn = { exec: () => null };
+function jl(r, e) {
+ const t = r.replace(/\|/g, (s, a, o) => {
+ let l = !1, u = a;
+ for (; --u >= 0 && o[u] === "\\"; )
+ l = !l;
+ return l ? "|" : " |";
+ }), i = t.split(/ \|/);
+ let n = 0;
+ if (i[0].trim() || i.shift(), i.length > 0 && !i[i.length - 1].trim() && i.pop(), e)
+ if (i.length > e)
+ i.splice(e);
+ else
+ for (; i.length < e; )
+ i.push("");
+ for (; n < i.length; n++)
+ i[n] = i[n].trim().replace(/\\\|/g, "|");
+ return i;
+}
+function Ss(r, e, t) {
+ const i = r.length;
+ if (i === 0)
+ return "";
+ let n = 0;
+ for (; n < i && r.charAt(i - n - 1) === e; )
+ n++;
+ return r.slice(0, i - n);
+}
+function Mm(r, e) {
+ if (r.indexOf(e[1]) === -1)
+ return -1;
+ let t = 0;
+ for (let i = 0; i < r.length; i++)
+ if (r[i] === "\\")
+ i++;
+ else if (r[i] === e[0])
+ t++;
+ else if (r[i] === e[1] && (t--, t < 0))
+ return i;
+ return -1;
+}
+function Yl(r, e, t, i) {
+ const n = e.href, s = e.title ? xt(e.title) : null, a = r[1].replace(/\\([\[\]])/g, "$1");
+ if (r[0].charAt(0) !== "!") {
+ i.state.inLink = !0;
+ const o = {
+ type: "link",
+ raw: t,
+ href: n,
+ title: s,
+ text: a,
+ tokens: i.inlineTokens(a)
+ };
+ return i.state.inLink = !1, o;
+ }
+ return {
+ type: "image",
+ raw: t,
+ href: n,
+ title: s,
+ text: xt(a)
+ };
+}
+function Bm(r, e) {
+ const t = r.match(/^(\s+)(?:```)/);
+ if (t === null)
+ return e;
+ const i = t[1];
+ return e.split(`
+`).map((n) => {
+ const s = n.match(/^\s+/);
+ if (s === null)
+ return n;
+ const [a] = s;
+ return a.length >= i.length ? n.slice(i.length) : n;
+ }).join(`
+`);
+}
+class mr {
+ // set by the lexer
+ constructor(e) {
+ Ie(this, "options");
+ Ie(this, "rules");
+ // set by the lexer
+ Ie(this, "lexer");
+ this.options = e || un;
+ }
+ space(e) {
+ const t = this.rules.block.newline.exec(e);
+ if (t && t[0].length > 0)
+ return {
+ type: "space",
+ raw: t[0]
+ };
+ }
+ code(e) {
+ const t = this.rules.block.code.exec(e);
+ if (t) {
+ const i = t[0].replace(/^ {1,4}/gm, "");
+ return {
+ type: "code",
+ raw: t[0],
+ codeBlockStyle: "indented",
+ text: this.options.pedantic ? i : Ss(i, `
+`)
+ };
+ }
+ }
+ fences(e) {
+ const t = this.rules.block.fences.exec(e);
+ if (t) {
+ const i = t[0], n = Bm(i, t[3] || "");
+ return {
+ type: "code",
+ raw: i,
+ lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2],
+ text: n
+ };
+ }
+ }
+ heading(e) {
+ const t = this.rules.block.heading.exec(e);
+ if (t) {
+ let i = t[2].trim();
+ if (/#$/.test(i)) {
+ const n = Ss(i, "#");
+ (this.options.pedantic || !n || / $/.test(n)) && (i = n.trim());
+ }
+ return {
+ type: "heading",
+ raw: t[0],
+ depth: t[1].length,
+ text: i,
+ tokens: this.lexer.inline(i)
+ };
+ }
+ }
+ hr(e) {
+ const t = this.rules.block.hr.exec(e);
+ if (t)
+ return {
+ type: "hr",
+ raw: t[0]
+ };
+ }
+ blockquote(e) {
+ const t = this.rules.block.blockquote.exec(e);
+ if (t) {
+ let i = t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g, `
+ $1`);
+ i = Ss(i.replace(/^ *>[ \t]?/gm, ""), `
+`);
+ const n = this.lexer.state.top;
+ this.lexer.state.top = !0;
+ const s = this.lexer.blockTokens(i);
+ return this.lexer.state.top = n, {
+ type: "blockquote",
+ raw: t[0],
+ tokens: s,
+ text: i
+ };
+ }
+ }
+ list(e) {
+ let t = this.rules.block.list.exec(e);
+ if (t) {
+ let i = t[1].trim();
+ const n = i.length > 1, s = {
+ type: "list",
+ raw: "",
+ ordered: n,
+ start: n ? +i.slice(0, -1) : "",
+ loose: !1,
+ items: []
+ };
+ i = n ? `\\d{1,9}\\${i.slice(-1)}` : `\\${i}`, this.options.pedantic && (i = n ? i : "[*+-]");
+ const a = new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`);
+ let o = "", l = "", u = !1;
+ for (; e; ) {
+ let c = !1;
+ if (!(t = a.exec(e)) || this.rules.block.hr.test(e))
+ break;
+ o = t[0], e = e.substring(o.length);
+ let d = t[2].split(`
+`, 1)[0].replace(/^\t+/, (v) => " ".repeat(3 * v.length)), h = e.split(`
+`, 1)[0], f = 0;
+ this.options.pedantic ? (f = 2, l = d.trimStart()) : (f = t[2].search(/[^ ]/), f = f > 4 ? 1 : f, l = d.slice(f), f += t[1].length);
+ let g = !1;
+ if (!d && /^ *$/.test(h) && (o += h + `
+`, e = e.substring(h.length + 1), c = !0), !c) {
+ const v = new RegExp(`^ {0,${Math.min(3, f - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), _ = new RegExp(`^ {0,${Math.min(3, f - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), y = new RegExp(`^ {0,${Math.min(3, f - 1)}}(?:\`\`\`|~~~)`), S = new RegExp(`^ {0,${Math.min(3, f - 1)}}#`);
+ for (; e; ) {
+ const b = e.split(`
+`, 1)[0];
+ if (h = b, this.options.pedantic && (h = h.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), y.test(h) || S.test(h) || v.test(h) || _.test(e))
+ break;
+ if (h.search(/[^ ]/) >= f || !h.trim())
+ l += `
+` + h.slice(f);
+ else {
+ if (g || d.search(/[^ ]/) >= 4 || y.test(d) || S.test(d) || _.test(d))
+ break;
+ l += `
+` + h;
+ }
+ !g && !h.trim() && (g = !0), o += b + `
+`, e = e.substring(b.length + 1), d = h.slice(f);
+ }
+ }
+ s.loose || (u ? s.loose = !0 : /\n *\n *$/.test(o) && (u = !0));
+ let m = null, p;
+ this.options.gfm && (m = /^\[[ xX]\] /.exec(l), m && (p = m[0] !== "[ ] ", l = l.replace(/^\[[ xX]\] +/, ""))), s.items.push({
+ type: "list_item",
+ raw: o,
+ task: !!m,
+ checked: p,
+ loose: !1,
+ text: l,
+ tokens: []
+ }), s.raw += o;
+ }
+ s.items[s.items.length - 1].raw = o.trimEnd(), s.items[s.items.length - 1].text = l.trimEnd(), s.raw = s.raw.trimEnd();
+ for (let c = 0; c < s.items.length; c++)
+ if (this.lexer.state.top = !1, s.items[c].tokens = this.lexer.blockTokens(s.items[c].text, []), !s.loose) {
+ const d = s.items[c].tokens.filter((f) => f.type === "space"), h = d.length > 0 && d.some((f) => /\n.*\n/.test(f.raw));
+ s.loose = h;
+ }
+ if (s.loose)
+ for (let c = 0; c < s.items.length; c++)
+ s.items[c].loose = !0;
+ return s;
+ }
+ }
+ html(e) {
+ const t = this.rules.block.html.exec(e);
+ if (t)
+ return {
+ type: "html",
+ block: !0,
+ raw: t[0],
+ pre: t[1] === "pre" || t[1] === "script" || t[1] === "style",
+ text: t[0]
+ };
+ }
+ def(e) {
+ const t = this.rules.block.def.exec(e);
+ if (t) {
+ const i = t[1].toLowerCase().replace(/\s+/g, " "), n = t[2] ? t[2].replace(/^<(.*)>$/, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", s = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
+ return {
+ type: "def",
+ tag: i,
+ raw: t[0],
+ href: n,
+ title: s
+ };
+ }
+ }
+ table(e) {
+ const t = this.rules.block.table.exec(e);
+ if (!t || !/[:|]/.test(t[2]))
+ return;
+ const i = jl(t[1]), n = t[2].replace(/^\||\| *$/g, "").split("|"), s = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(`
+`) : [], a = {
+ type: "table",
+ raw: t[0],
+ header: [],
+ align: [],
+ rows: []
+ };
+ if (i.length === n.length) {
+ for (const o of n)
+ /^ *-+: *$/.test(o) ? a.align.push("right") : /^ *:-+: *$/.test(o) ? a.align.push("center") : /^ *:-+ *$/.test(o) ? a.align.push("left") : a.align.push(null);
+ for (const o of i)
+ a.header.push({
+ text: o,
+ tokens: this.lexer.inline(o)
+ });
+ for (const o of s)
+ a.rows.push(jl(o, a.header.length).map((l) => ({
+ text: l,
+ tokens: this.lexer.inline(l)
+ })));
+ return a;
+ }
+ }
+ lheading(e) {
+ const t = this.rules.block.lheading.exec(e);
+ if (t)
+ return {
+ type: "heading",
+ raw: t[0],
+ depth: t[2].charAt(0) === "=" ? 1 : 2,
+ text: t[1],
+ tokens: this.lexer.inline(t[1])
+ };
+ }
+ paragraph(e) {
+ const t = this.rules.block.paragraph.exec(e);
+ if (t) {
+ const i = t[1].charAt(t[1].length - 1) === `
+` ? t[1].slice(0, -1) : t[1];
+ return {
+ type: "paragraph",
+ raw: t[0],
+ text: i,
+ tokens: this.lexer.inline(i)
+ };
+ }
+ }
+ text(e) {
+ const t = this.rules.block.text.exec(e);
+ if (t)
+ return {
+ type: "text",
+ raw: t[0],
+ text: t[0],
+ tokens: this.lexer.inline(t[0])
+ };
+ }
+ escape(e) {
+ const t = this.rules.inline.escape.exec(e);
+ if (t)
+ return {
+ type: "escape",
+ raw: t[0],
+ text: xt(t[1])
+ };
+ }
+ tag(e) {
+ const t = this.rules.inline.tag.exec(e);
+ if (t)
+ return !this.lexer.state.inLink && /^/i.test(t[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && /^<(pre|code|kbd|script)(\s|>)/i.test(t[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && /^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0]) && (this.lexer.state.inRawBlock = !1), {
+ type: "html",
+ raw: t[0],
+ inLink: this.lexer.state.inLink,
+ inRawBlock: this.lexer.state.inRawBlock,
+ block: !1,
+ text: t[0]
+ };
+ }
+ link(e) {
+ const t = this.rules.inline.link.exec(e);
+ if (t) {
+ const i = t[2].trim();
+ if (!this.options.pedantic && /^$/.test(i))
+ return;
+ const a = Ss(i.slice(0, -1), "\\");
+ if ((i.length - a.length) % 2 === 0)
+ return;
+ } else {
+ const a = Mm(t[2], "()");
+ if (a > -1) {
+ const l = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + a;
+ t[2] = t[2].substring(0, a), t[0] = t[0].substring(0, l).trim(), t[3] = "";
+ }
+ }
+ let n = t[2], s = "";
+ if (this.options.pedantic) {
+ const a = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);
+ a && (n = a[1], s = a[3]);
+ } else
+ s = t[3] ? t[3].slice(1, -1) : "";
+ return n = n.trim(), /^$/.test(i) ? n = n.slice(1) : n = n.slice(1, -1)), Yl(t, {
+ href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
+ title: s && s.replace(this.rules.inline.anyPunctuation, "$1")
+ }, t[0], this.lexer);
+ }
+ }
+ reflink(e, t) {
+ let i;
+ if ((i = this.rules.inline.reflink.exec(e)) || (i = this.rules.inline.nolink.exec(e))) {
+ const n = (i[2] || i[1]).replace(/\s+/g, " "), s = t[n.toLowerCase()];
+ if (!s) {
+ const a = i[0].charAt(0);
+ return {
+ type: "text",
+ raw: a,
+ text: a
+ };
+ }
+ return Yl(i, s, i[0], this.lexer);
+ }
+ }
+ emStrong(e, t, i = "") {
+ let n = this.rules.inline.emStrongLDelim.exec(e);
+ if (!n || n[3] && i.match(/[\p{L}\p{N}]/u))
+ return;
+ if (!(n[1] || n[2] || "") || !i || this.rules.inline.punctuation.exec(i)) {
+ const a = [...n[0]].length - 1;
+ let o, l, u = a, c = 0;
+ const d = n[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
+ for (d.lastIndex = 0, t = t.slice(-1 * e.length + a); (n = d.exec(t)) != null; ) {
+ if (o = n[1] || n[2] || n[3] || n[4] || n[5] || n[6], !o)
+ continue;
+ if (l = [...o].length, n[3] || n[4]) {
+ u += l;
+ continue;
+ } else if ((n[5] || n[6]) && a % 3 && !((a + l) % 3)) {
+ c += l;
+ continue;
+ }
+ if (u -= l, u > 0)
+ continue;
+ l = Math.min(l, l + u + c);
+ const h = [...n[0]][0].length, f = e.slice(0, a + n.index + h + l);
+ if (Math.min(a, l) % 2) {
+ const m = f.slice(1, -1);
+ return {
+ type: "em",
+ raw: f,
+ text: m,
+ tokens: this.lexer.inlineTokens(m)
+ };
+ }
+ const g = f.slice(2, -2);
+ return {
+ type: "strong",
+ raw: f,
+ text: g,
+ tokens: this.lexer.inlineTokens(g)
+ };
+ }
+ }
+ }
+ codespan(e) {
+ const t = this.rules.inline.code.exec(e);
+ if (t) {
+ let i = t[2].replace(/\n/g, " ");
+ const n = /[^ ]/.test(i), s = /^ /.test(i) && / $/.test(i);
+ return n && s && (i = i.substring(1, i.length - 1)), i = xt(i, !0), {
+ type: "codespan",
+ raw: t[0],
+ text: i
+ };
+ }
+ }
+ br(e) {
+ const t = this.rules.inline.br.exec(e);
+ if (t)
+ return {
+ type: "br",
+ raw: t[0]
+ };
+ }
+ del(e) {
+ const t = this.rules.inline.del.exec(e);
+ if (t)
+ return {
+ type: "del",
+ raw: t[0],
+ text: t[2],
+ tokens: this.lexer.inlineTokens(t[2])
+ };
+ }
+ autolink(e) {
+ const t = this.rules.inline.autolink.exec(e);
+ if (t) {
+ let i, n;
+ return t[2] === "@" ? (i = xt(t[1]), n = "mailto:" + i) : (i = xt(t[1]), n = i), {
+ type: "link",
+ raw: t[0],
+ text: i,
+ href: n,
+ tokens: [
+ {
+ type: "text",
+ raw: i,
+ text: i
+ }
+ ]
+ };
+ }
+ }
+ url(e) {
+ var i;
+ let t;
+ if (t = this.rules.inline.url.exec(e)) {
+ let n, s;
+ if (t[2] === "@")
+ n = xt(t[0]), s = "mailto:" + n;
+ else {
+ let a;
+ do
+ a = t[0], t[0] = ((i = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : i[0]) ?? "";
+ while (a !== t[0]);
+ n = xt(t[0]), t[1] === "www." ? s = "http://" + t[0] : s = t[0];
+ }
+ return {
+ type: "link",
+ raw: t[0],
+ text: n,
+ href: s,
+ tokens: [
+ {
+ type: "text",
+ raw: n,
+ text: n
+ }
+ ]
+ };
+ }
+ }
+ inlineText(e) {
+ const t = this.rules.inline.text.exec(e);
+ if (t) {
+ let i;
+ return this.lexer.state.inRawBlock ? i = t[0] : i = xt(t[0]), {
+ type: "text",
+ raw: t[0],
+ text: i
+ };
+ }
+ }
+}
+const Nm = /^(?: *(?:\n|$))+/, Um = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Gm = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, us = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Vm = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Uh = /(?:[*+-]|\d{1,9}[.)])/, Gh = be(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, Uh).replace(/blockCode/g, / {4}/).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/).getRegex(), Wo = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Km = /^[^\n]+/, jo = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Hm = be(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", jo).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), qm = be(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Uh).getRegex(), Gr = "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", Yo = /|$))/, zm = be("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\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", Yo).replace("tag", Gr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Vh = be(Wo).replace("hr", us).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", Gr).getRegex(), Wm = be(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Vh).getRegex(), Xo = {
+ blockquote: Wm,
+ code: Um,
+ def: Hm,
+ fences: Gm,
+ heading: Vm,
+ hr: us,
+ html: zm,
+ lheading: Gh,
+ list: qm,
+ newline: Nm,
+ paragraph: Vh,
+ table: zn,
+ text: Km
+}, Xl = be("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", us).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\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", Gr).getRegex(), jm = {
+ ...Xo,
+ table: Xl,
+ paragraph: be(Wo).replace("hr", us).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Xl).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", Gr).getRegex()
+}, Ym = {
+ ...Xo,
+ html: be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)| ${e}
+` : "' + (i ? e : xt(e, !0)) + `
+`;
+ }
+ blockquote(e) {
+ return `" + (i ? e : xt(e, !0)) + `
+${e}
+`;
+ }
+ html(e, t) {
+ return e;
+ }
+ heading(e, t, i) {
+ return `
+`;
+ }
+ list(e, t, i) {
+ const n = t ? "ol" : "ul", s = t && i !== 1 ? ' start="' + i + '"' : "";
+ return "<" + n + s + `>
+` + e + "" + n + `>
+`;
+ }
+ listitem(e, t, i) {
+ return `
${e}`;
+ }
+ br() {
+ return "An error occurred:
" + xt(i.message + "", !0) + ""; + return t ? Promise.resolve(n) : n; + } + if (t) + return Promise.reject(i); + throw i; + }; +}; +const en = new dp(); +function ve(r, e) { + return en.parse(r, e); +} +ve.options = ve.setOptions = function(r) { + return en.setOptions(r), ve.defaults = en.defaults, Mh(ve.defaults), ve; +}; +ve.getDefaults = zo; +ve.defaults = un; +ve.use = function(...r) { + return en.use(...r), ve.defaults = en.defaults, Mh(ve.defaults), ve; +}; +ve.walkTokens = function(r, e) { + return en.walkTokens(r, e); +}; +ve.parseInline = en.parseInline; +ve.Parser = hi; +ve.parser = hi.parse; +ve.Renderer = _r; +ve.TextRenderer = Zo; +ve.Lexer = di; +ve.lexer = di.lex; +ve.Tokenizer = mr; +ve.Hooks = Wn; +ve.parse = ve; +ve.options; +ve.setOptions; +ve.use; +ve.walkTokens; +ve.parseInline; +hi.parse; +di.lex; +const hp = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uA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uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, fp = Object.hasOwnProperty; +class jh { + /** + * Create a new slug class. + */ + constructor() { + this.occurrences, this.reset(); + } + /** + * Generate a unique slug. + * + * Tracks previously generated slugs: repeated calls with the same value + * will result in different slugs. + * Use the `slug` function to get same slugs. + * + * @param {string} value + * String of text to slugify + * @param {boolean} [maintainCase=false] + * Keep the current case, otherwise make all lowercase + * @return {string} + * A unique slug string + */ + slug(e, t) { + const i = this; + let n = gp(e, t === !0); + const s = n; + for (; fp.call(i.occurrences, n); ) + i.occurrences[s]++, n = s + "-" + i.occurrences[s]; + return i.occurrences[n] = 0, n; + } + /** + * Reset - Forget all previous slugs + * + * @return void + */ + reset() { + this.occurrences = /* @__PURE__ */ Object.create(null); + } +} +function gp(r, e) { + return typeof r != "string" ? "" : (e || (r = r.toLowerCase()), r.replace(hp, "").replace(/ /g, "-")); +} +new jh(); +var Ql = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, mp = { exports: {} }; +(function(r) { + var e = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {}; + /** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT