@pagelines/sdk 1.0.325 → 1.0.327

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as l, openBlock as d, createBlock as m, unref as t } from "vue";
2
- import { _ as f } from "./AgentProvider.vue_vue_type_script_setup_true_lang-CEs3o2R3.js";
3
- import { u as g } from "./index-BqWcASTa.js";
2
+ import { _ as f } from "./AgentProvider.vue_vue_type_script_setup_true_lang-D_Ftn3vK.js";
3
+ import { u as g } from "./index-CV0s99kQ.js";
4
4
  const y = /* @__PURE__ */ l({
5
5
  __name: "AgentWidgetInline",
6
6
  props: {
@@ -30,4 +30,4 @@ const y = /* @__PURE__ */ l({
30
30
  export {
31
31
  y as default
32
32
  };
33
- //# sourceMappingURL=AgentWidgetInline-CJHAa59b.js.map
33
+ //# sourceMappingURL=AgentWidgetInline-BRfRYhMT.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AgentWidgetInline-CJHAa59b.js","sources":["../widget/ui/AgentWidgetInline.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { PageLinesSDK } from '../../sdkClient'\nimport type { AgentConfig } from '../../agent/schema'\nimport type { ButtonIconPreset } from '../PLWidget'\nimport AgentProvider from '../../agent/ui/AgentProvider.vue'\nimport { useWidgetState } from '../composables/useWidgetState'\n\nconst props = defineProps<{\n sdk?: PageLinesSDK\n handle?: string\n agent?: AgentConfig\n context?: string\n firstMessage?: string\n buttonText?: string\n buttonIcon?: ButtonIconPreset\n chatOnly?: boolean\n}>()\n\nconst { currentAgent, currentContext, currentFirstMessage, currentButtonText, currentButtonIcon, update } = useWidgetState(props)\n\ndefineExpose({ update })\n</script>\n\n<template>\n <AgentProvider\n :sdk=\"sdk\"\n :handle=\"handle\"\n :agent=\"currentAgent\"\n :context=\"currentContext\"\n :first-message=\"currentFirstMessage\"\n :button-text=\"currentButtonText\"\n :button-icon=\"currentButtonIcon\"\n :chat-only=\"chatOnly\"\n />\n</template>\n"],"names":["props","__props","currentAgent","currentContext","currentFirstMessage","currentButtonText","currentButtonIcon","update","useWidgetState","__expose","_createBlock","AgentProvider","_unref"],"mappings":";;;;;;;;;;;;;;;;AAOA,UAAMA,IAAQC,GAWR,EAAE,cAAAC,GAAc,gBAAAC,GAAgB,qBAAAC,GAAqB,mBAAAC,GAAmB,mBAAAC,GAAmB,QAAAC,EAAA,IAAWC,EAAeR,CAAK;AAEhI,WAAAS,EAAa,EAAE,QAAAF,GAAQ,mBAIrBG,EASEC,GAAA;AAAA,MARC,KAAKV,EAAA;AAAA,MACL,QAAQA,EAAA;AAAA,MACR,OAAOW,EAAAV,CAAA;AAAA,MACP,SAASU,EAAAT,CAAA;AAAA,MACT,iBAAeS,EAAAR,CAAA;AAAA,MACf,eAAaQ,EAAAP,CAAA;AAAA,MACb,eAAaO,EAAAN,CAAA;AAAA,MACb,aAAWL,EAAA;AAAA,IAAA;;;"}
1
+ {"version":3,"file":"AgentWidgetInline-BRfRYhMT.js","sources":["../widget/ui/AgentWidgetInline.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { PageLinesSDK } from '../../sdkClient'\nimport type { AgentConfig } from '../../agent/schema'\nimport type { ButtonIconPreset } from '../PLWidget'\nimport AgentProvider from '../../agent/ui/AgentProvider.vue'\nimport { useWidgetState } from '../composables/useWidgetState'\n\nconst props = defineProps<{\n sdk?: PageLinesSDK\n handle?: string\n agent?: AgentConfig\n context?: string\n firstMessage?: string\n buttonText?: string\n buttonIcon?: ButtonIconPreset\n chatOnly?: boolean\n}>()\n\nconst { currentAgent, currentContext, currentFirstMessage, currentButtonText, currentButtonIcon, update } = useWidgetState(props)\n\ndefineExpose({ update })\n</script>\n\n<template>\n <AgentProvider\n :sdk=\"sdk\"\n :handle=\"handle\"\n :agent=\"currentAgent\"\n :context=\"currentContext\"\n :first-message=\"currentFirstMessage\"\n :button-text=\"currentButtonText\"\n :button-icon=\"currentButtonIcon\"\n :chat-only=\"chatOnly\"\n />\n</template>\n"],"names":["props","__props","currentAgent","currentContext","currentFirstMessage","currentButtonText","currentButtonIcon","update","useWidgetState","__expose","_createBlock","AgentProvider","_unref"],"mappings":";;;;;;;;;;;;;;;;AAOA,UAAMA,IAAQC,GAWR,EAAE,cAAAC,GAAc,gBAAAC,GAAgB,qBAAAC,GAAqB,mBAAAC,GAAmB,mBAAAC,GAAmB,QAAAC,EAAA,IAAWC,EAAeR,CAAK;AAEhI,WAAAS,EAAa,EAAE,QAAAF,GAAQ,mBAIrBG,EASEC,GAAA;AAAA,MARC,KAAKV,EAAA;AAAA,MACL,QAAQA,EAAA;AAAA,MACR,OAAOW,EAAAV,CAAA;AAAA,MACP,SAASU,EAAAT,CAAA;AAAA,MACT,iBAAeS,EAAAR,CAAA;AAAA,MACf,eAAaQ,EAAAP,CAAA;AAAA,MACb,eAAaO,EAAAN,CAAA;AAAA,MACb,aAAWL,EAAA;AAAA,IAAA;;;"}
@@ -2,8 +2,8 @@ var h = Object.defineProperty;
2
2
  var l = (t, o) => h(t, "name", { value: o, configurable: !0 });
3
3
  import { defineComponent as g, ref as v, onMounted as b, nextTick as C, openBlock as k, createBlock as y, withCtx as B, createVNode as T, unref as n } from "vue";
4
4
  import { _ } from "./FModal.vue_vue_type_script_setup_true_lang-DI6cyWhd.js";
5
- import { _ as M } from "./AgentProvider.vue_vue_type_script_setup_true_lang-CEs3o2R3.js";
6
- import { u as w } from "./index-BqWcASTa.js";
5
+ import { _ as M } from "./AgentProvider.vue_vue_type_script_setup_true_lang-D_Ftn3vK.js";
6
+ import { u as w } from "./index-CV0s99kQ.js";
7
7
  const $ = /* @__PURE__ */ g({
8
8
  __name: "AgentWidgetModal",
9
9
  props: {
@@ -62,4 +62,4 @@ const $ = /* @__PURE__ */ g({
62
62
  export {
63
63
  $ as default
64
64
  };
65
- //# sourceMappingURL=AgentWidgetModal-CCAJsZcm.js.map
65
+ //# sourceMappingURL=AgentWidgetModal-DZLVuspg.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AgentWidgetModal-CCAJsZcm.js","sources":["../widget/ui/AgentWidgetModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { PageLinesSDK } from '../../sdkClient'\nimport type { AgentConfig } from '../../agent/schema'\nimport type { ButtonIconPreset } from '../PLWidget'\nimport { nextTick, onMounted, ref } from 'vue'\nimport FModal from '@/ui/common/FModal.vue'\nimport AgentProvider from '../../agent/ui/AgentProvider.vue'\nimport { useWidgetState } from '../composables/useWidgetState'\n\nconst props = defineProps<{\n sdk?: PageLinesSDK\n handle?: string\n agent?: AgentConfig\n context?: string\n firstMessage?: string\n buttonText?: string\n buttonIcon?: ButtonIconPreset\n chatOnly?: boolean\n onClose?: () => void\n}>()\n\nconst { currentAgent, currentContext, currentFirstMessage, currentButtonText, currentButtonIcon, update } = useWidgetState(props)\nconst isVisible = ref(false)\n\n// Trigger transition after mount\nonMounted(async () => {\n await nextTick()\n // Small delay to ensure DOM is ready and transition fires\n setTimeout(() => {\n isVisible.value = true\n }, 10)\n})\n\nfunction close() {\n isVisible.value = false\n // Wait for transition to complete before calling onClose\n setTimeout(() => {\n if (props.onClose) {\n props.onClose()\n }\n }, 300) // Match FModal transition duration\n}\n\nfunction open() {\n isVisible.value = true\n}\n\ndefineExpose({ update, close, open })\n</script>\n\n<template>\n <FModal\n :vis=\"isVisible\"\n :disable-teleport=\"true\"\n modal-class=\"max-w-4xl h-[80vh] md:h-[600px]\"\n :has-close=\"false\"\n @update:vis=\"isVisible = $event\"\n @close=\"close\"\n >\n <AgentProvider\n :sdk=\"sdk\"\n :handle=\"handle\"\n :agent=\"currentAgent\"\n :context=\"currentContext\"\n :first-message=\"currentFirstMessage\"\n :button-text=\"currentButtonText\"\n :button-icon=\"currentButtonIcon\"\n :chat-only=\"chatOnly\"\n :has-close=\"true\"\n @close=\"close\"\n />\n </FModal>\n</template>\n"],"names":["props","__props","currentAgent","currentContext","currentFirstMessage","currentButtonText","currentButtonIcon","update","useWidgetState","isVisible","ref","onMounted","nextTick","close","__name","open","__expose","_createBlock","FModal","_cache","$event","_createVNode","AgentProvider","_unref"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA,UAAMA,IAAQC,GAYR,EAAE,cAAAC,GAAc,gBAAAC,GAAgB,qBAAAC,GAAqB,mBAAAC,GAAmB,mBAAAC,GAAmB,QAAAC,EAAA,IAAWC,EAAeR,CAAK,GAC1HS,IAAYC,EAAI,EAAK;AAG3B,IAAAC,EAAU,YAAY;AACpB,YAAMC,EAAA,GAEN,WAAW,MAAM;AACf,QAAAH,EAAU,QAAQ;AAAA,MACpB,GAAG,EAAE;AAAA,IACP,CAAC;AAED,aAASI,IAAQ;AACf,MAAAJ,EAAU,QAAQ,IAElB,WAAW,MAAM;AACf,QAAIT,EAAM,WACRA,EAAM,QAAA;AAAA,MAEV,GAAG,GAAG;AAAA,IACR;AARS,IAAAc,EAAAD,GAAA;AAUT,aAASE,IAAO;AACd,MAAAN,EAAU,QAAQ;AAAA,IACpB;AAFS,WAAAK,EAAAC,GAAA,SAITC,EAAa,EAAE,QAAAT,GAAQ,OAAAM,GAAO,MAAAE,EAAA,CAAM,mBAIlCE,EAoBSC,GAAA;AAAA,MAnBN,KAAKT,EAAA;AAAA,MACL,oBAAkB;AAAA,MACnB,eAAY;AAAA,MACX,aAAW;AAAA,MACX,gBAAUU,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEX,EAAA,QAAYW;AAAA,MACxB,SAAOP;AAAA,IAAA;iBAER,MAWE;AAAA,QAXFQ,EAWEC,GAAA;AAAA,UAVC,KAAKrB,EAAA;AAAA,UACL,QAAQA,EAAA;AAAA,UACR,OAAOsB,EAAArB,CAAA;AAAA,UACP,SAASqB,EAAApB,CAAA;AAAA,UACT,iBAAeoB,EAAAnB,CAAA;AAAA,UACf,eAAamB,EAAAlB,CAAA;AAAA,UACb,eAAakB,EAAAjB,CAAA;AAAA,UACb,aAAWL,EAAA;AAAA,UACX,aAAW;AAAA,UACX,SAAOY;AAAA,QAAA;;;;;;"}
1
+ {"version":3,"file":"AgentWidgetModal-DZLVuspg.js","sources":["../widget/ui/AgentWidgetModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { PageLinesSDK } from '../../sdkClient'\nimport type { AgentConfig } from '../../agent/schema'\nimport type { ButtonIconPreset } from '../PLWidget'\nimport { nextTick, onMounted, ref } from 'vue'\nimport FModal from '@/ui/common/FModal.vue'\nimport AgentProvider from '../../agent/ui/AgentProvider.vue'\nimport { useWidgetState } from '../composables/useWidgetState'\n\nconst props = defineProps<{\n sdk?: PageLinesSDK\n handle?: string\n agent?: AgentConfig\n context?: string\n firstMessage?: string\n buttonText?: string\n buttonIcon?: ButtonIconPreset\n chatOnly?: boolean\n onClose?: () => void\n}>()\n\nconst { currentAgent, currentContext, currentFirstMessage, currentButtonText, currentButtonIcon, update } = useWidgetState(props)\nconst isVisible = ref(false)\n\n// Trigger transition after mount\nonMounted(async () => {\n await nextTick()\n // Small delay to ensure DOM is ready and transition fires\n setTimeout(() => {\n isVisible.value = true\n }, 10)\n})\n\nfunction close() {\n isVisible.value = false\n // Wait for transition to complete before calling onClose\n setTimeout(() => {\n if (props.onClose) {\n props.onClose()\n }\n }, 300) // Match FModal transition duration\n}\n\nfunction open() {\n isVisible.value = true\n}\n\ndefineExpose({ update, close, open })\n</script>\n\n<template>\n <FModal\n :vis=\"isVisible\"\n :disable-teleport=\"true\"\n modal-class=\"max-w-4xl h-[80vh] md:h-[600px]\"\n :has-close=\"false\"\n @update:vis=\"isVisible = $event\"\n @close=\"close\"\n >\n <AgentProvider\n :sdk=\"sdk\"\n :handle=\"handle\"\n :agent=\"currentAgent\"\n :context=\"currentContext\"\n :first-message=\"currentFirstMessage\"\n :button-text=\"currentButtonText\"\n :button-icon=\"currentButtonIcon\"\n :chat-only=\"chatOnly\"\n :has-close=\"true\"\n @close=\"close\"\n />\n </FModal>\n</template>\n"],"names":["props","__props","currentAgent","currentContext","currentFirstMessage","currentButtonText","currentButtonIcon","update","useWidgetState","isVisible","ref","onMounted","nextTick","close","__name","open","__expose","_createBlock","FModal","_cache","$event","_createVNode","AgentProvider","_unref"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA,UAAMA,IAAQC,GAYR,EAAE,cAAAC,GAAc,gBAAAC,GAAgB,qBAAAC,GAAqB,mBAAAC,GAAmB,mBAAAC,GAAmB,QAAAC,EAAA,IAAWC,EAAeR,CAAK,GAC1HS,IAAYC,EAAI,EAAK;AAG3B,IAAAC,EAAU,YAAY;AACpB,YAAMC,EAAA,GAEN,WAAW,MAAM;AACf,QAAAH,EAAU,QAAQ;AAAA,MACpB,GAAG,EAAE;AAAA,IACP,CAAC;AAED,aAASI,IAAQ;AACf,MAAAJ,EAAU,QAAQ,IAElB,WAAW,MAAM;AACf,QAAIT,EAAM,WACRA,EAAM,QAAA;AAAA,MAEV,GAAG,GAAG;AAAA,IACR;AARS,IAAAc,EAAAD,GAAA;AAUT,aAASE,IAAO;AACd,MAAAN,EAAU,QAAQ;AAAA,IACpB;AAFS,WAAAK,EAAAC,GAAA,SAITC,EAAa,EAAE,QAAAT,GAAQ,OAAAM,GAAO,MAAAE,EAAA,CAAM,mBAIlCE,EAoBSC,GAAA;AAAA,MAnBN,KAAKT,EAAA;AAAA,MACL,oBAAkB;AAAA,MACnB,eAAY;AAAA,MACX,aAAW;AAAA,MACX,gBAAUU,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEX,EAAA,QAAYW;AAAA,MACxB,SAAOP;AAAA,IAAA;iBAER,MAWE;AAAA,QAXFQ,EAWEC,GAAA;AAAA,UAVC,KAAKrB,EAAA;AAAA,UACL,QAAQA,EAAA;AAAA,UACR,OAAOsB,EAAArB,CAAA;AAAA,UACP,SAASqB,EAAApB,CAAA;AAAA,UACT,iBAAeoB,EAAAnB,CAAA;AAAA,UACf,eAAamB,EAAAlB,CAAA;AAAA,UACb,eAAakB,EAAAjB,CAAA;AAAA,UACb,aAAWL,EAAA;AAAA,UACX,aAAW;AAAA,UACX,SAAOY;AAAA,QAAA;;;;;;"}
@@ -2,7 +2,7 @@ var En = Object.defineProperty;
2
2
  var ks = (l, t, e) => t in l ? En(l, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[t] = e;
3
3
  var h = (l, t) => En(l, "name", { value: t, configurable: !0 });
4
4
  var _ = (l, t, e) => ks(l, typeof t != "symbol" ? t + "" : t, e);
5
- import { defineComponent as xt, openBlock as A, createElementBlock as E, createElementVNode as w, normalizeClass as v, ref as ne, watch as Wt, unref as jt, Fragment as ve, toDisplayString as ce, computed as Q, onMounted as jn, nextTick as zt, createVNode as Nt, createCommentVNode as q, renderList as Pt, createTextVNode as xs, withDirectives as bs, normalizeStyle as ws, vModelText as ys, shallowRef as Ts, renderSlot as vs } from "vue";
5
+ import { defineComponent as xt, openBlock as A, createElementBlock as E, createElementVNode as w, normalizeClass as v, ref as ne, watch as Wt, unref as jt, Fragment as Le, toDisplayString as ce, computed as Q, onMounted as jn, nextTick as zt, createVNode as Nt, createCommentVNode as q, renderList as Pt, createTextVNode as xs, withDirectives as bs, normalizeStyle as ws, vModelText as ys, shallowRef as Ts, renderSlot as vs } from "vue";
6
6
  import { SettingsObject as Ss, Agent as dt, getDefaultAvatarUrl as qn, createLogger as As } from "@pagelines/core";
7
7
  import { P as Es } from "./sdkClient-6j3pmwVP.js";
8
8
  const _s = { class: "spinner max-w-sm" }, Rs = {
@@ -270,7 +270,7 @@ const Ds = { class: "relative flex-shrink-0" }, Cs = ["src", "alt"], Is = { clas
270
270
  }, null, 40, Cs)
271
271
  ], 2),
272
272
  w("div", Is, [
273
- l.isOnline ? (A(), E(ve, { key: 0 }, [
273
+ l.isOnline ? (A(), E(Le, { key: 0 }, [
274
274
  e[1] || (e[1] = w("div", {
275
275
  class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
276
276
  style: { "animation-duration": "3s" }
@@ -469,7 +469,7 @@ function Vn() {
469
469
  HTMLFormElement: d,
470
470
  DOMParser: m,
471
471
  trustedTypes: b
472
- } = l, O = c.prototype, D = qe(O, "cloneNode"), F = qe(O, "remove"), _e = qe(O, "nextSibling"), me = qe(O, "childNodes"), ee = qe(O, "parentNode");
472
+ } = l, O = c.prototype, D = qe(O, "cloneNode"), F = qe(O, "remove"), Ee = qe(O, "nextSibling"), me = qe(O, "childNodes"), ee = qe(O, "parentNode");
473
473
  if (typeof a == "function") {
474
474
  const k = e.createElement("template");
475
475
  k.content && k.content.ownerDocument && (e = k.content.ownerDocument);
@@ -535,28 +535,28 @@ function Vn() {
535
535
  value: null
536
536
  }
537
537
  }));
538
- let an = !0, St = !0, ln = !1, on = !0, Re = !1, nt = !0, ye = !1, At = !1, Et = !1, De = !1, st = !1, rt = !1, cn = !0, un = !1;
538
+ let an = !0, St = !0, ln = !1, on = !0, _e = !1, nt = !0, ye = !1, At = !1, Et = !1, Re = !1, st = !1, rt = !1, cn = !0, un = !1;
539
539
  const cs = "user-content-";
540
- let _t = !0, Fe = !1, Ce = {}, ie = null;
540
+ let _t = !0, Fe = !1, De = {}, ie = null;
541
541
  const Rt = S({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
542
542
  let hn = null;
543
543
  const pn = S({}, ["audio", "video", "img", "source", "image", "track"]);
544
544
  let Dt = null;
545
545
  const fn = S({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), it = "http://www.w3.org/1998/Math/MathML", at = "http://www.w3.org/2000/svg", fe = "http://www.w3.org/1999/xhtml";
546
- let Ie = fe, Ct = !1, It = null;
546
+ let Ce = fe, Ct = !1, It = null;
547
547
  const us = S({}, [it, at, fe], $t);
548
548
  let lt = S({}, ["mi", "mo", "mn", "ms", "mtext"]), ot = S({}, ["annotation-xml"]);
549
549
  const hs = S({}, ["title", "style", "font", "a", "script"]);
550
550
  let He = null;
551
551
  const ps = ["application/xhtml+xml", "text/html"], fs = "text/html";
552
- let U = null, Me = null;
552
+ let U = null, Ie = null;
553
553
  const ds = e.createElement("form"), dn = /* @__PURE__ */ h(function(i) {
554
554
  return i instanceof RegExp || i instanceof Function;
555
555
  }, "isRegexOrFunction"), Mt = /* @__PURE__ */ h(function() {
556
556
  let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
557
- if (!(Me && Me === i)) {
557
+ if (!(Ie && Ie === i)) {
558
558
  if ((!i || typeof i != "object") && (i = {}), i = le(i), He = // eslint-disable-next-line unicorn/prefer-includes
559
- ps.indexOf(i.PARSER_MEDIA_TYPE) === -1 ? fs : i.PARSER_MEDIA_TYPE, U = He === "application/xhtml+xml" ? $t : ft, x = K(i, "ALLOWED_TAGS") ? S({}, i.ALLOWED_TAGS, U) : L, C = K(i, "ALLOWED_ATTR") ? S({}, i.ALLOWED_ATTR, U) : he, It = K(i, "ALLOWED_NAMESPACES") ? S({}, i.ALLOWED_NAMESPACES, $t) : us, Dt = K(i, "ADD_URI_SAFE_ATTR") ? S(le(fn), i.ADD_URI_SAFE_ATTR, U) : fn, hn = K(i, "ADD_DATA_URI_TAGS") ? S(le(pn), i.ADD_DATA_URI_TAGS, U) : pn, ie = K(i, "FORBID_CONTENTS") ? S({}, i.FORBID_CONTENTS, U) : Rt, pe = K(i, "FORBID_TAGS") ? S({}, i.FORBID_TAGS, U) : le({}), tt = K(i, "FORBID_ATTR") ? S({}, i.FORBID_ATTR, U) : le({}), Ce = K(i, "USE_PROFILES") ? i.USE_PROFILES : !1, an = i.ALLOW_ARIA_ATTR !== !1, St = i.ALLOW_DATA_ATTR !== !1, ln = i.ALLOW_UNKNOWN_PROTOCOLS || !1, on = i.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Re = i.SAFE_FOR_TEMPLATES || !1, nt = i.SAFE_FOR_XML !== !1, ye = i.WHOLE_DOCUMENT || !1, De = i.RETURN_DOM || !1, st = i.RETURN_DOM_FRAGMENT || !1, rt = i.RETURN_TRUSTED_TYPE || !1, Et = i.FORCE_BODY || !1, cn = i.SANITIZE_DOM !== !1, un = i.SANITIZE_NAMED_PROPS || !1, _t = i.KEEP_CONTENT !== !1, Fe = i.IN_PLACE || !1, T = i.ALLOWED_URI_REGEXP || Zn, Ie = i.NAMESPACE || fe, lt = i.MATHML_TEXT_INTEGRATION_POINTS || lt, ot = i.HTML_INTEGRATION_POINTS || ot, z = i.CUSTOM_ELEMENT_HANDLING || {}, i.CUSTOM_ELEMENT_HANDLING && dn(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (z.tagNameCheck = i.CUSTOM_ELEMENT_HANDLING.tagNameCheck), i.CUSTOM_ELEMENT_HANDLING && dn(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (z.attributeNameCheck = i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), i.CUSTOM_ELEMENT_HANDLING && typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Re && (St = !1), st && (De = !0), Ce && (x = S({}, On), C = pt(null), Ce.html === !0 && (S(x, Ln), S(C, zn)), Ce.svg === !0 && (S(x, Bt), S(C, Gt), S(C, ut)), Ce.svgFilters === !0 && (S(x, Ft), S(C, Gt), S(C, ut)), Ce.mathMl === !0 && (S(x, Ht), S(C, Nn), S(C, ut))), K(i, "ADD_TAGS") || (ke.tagCheck = null), K(i, "ADD_ATTR") || (ke.attributeCheck = null), i.ADD_TAGS && (typeof i.ADD_TAGS == "function" ? ke.tagCheck = i.ADD_TAGS : (x === L && (x = le(x)), S(x, i.ADD_TAGS, U))), i.ADD_ATTR && (typeof i.ADD_ATTR == "function" ? ke.attributeCheck = i.ADD_ATTR : (C === he && (C = le(C)), S(C, i.ADD_ATTR, U))), i.ADD_URI_SAFE_ATTR && S(Dt, i.ADD_URI_SAFE_ATTR, U), i.FORBID_CONTENTS && (ie === Rt && (ie = le(ie)), S(ie, i.FORBID_CONTENTS, U)), i.ADD_FORBID_CONTENTS && (ie === Rt && (ie = le(ie)), S(ie, i.ADD_FORBID_CONTENTS, U)), _t && (x["#text"] = !0), ye && S(x, ["html", "head", "body"]), x.table && (S(x, ["tbody"]), delete pe.tbody), i.TRUSTED_TYPES_POLICY) {
559
+ ps.indexOf(i.PARSER_MEDIA_TYPE) === -1 ? fs : i.PARSER_MEDIA_TYPE, U = He === "application/xhtml+xml" ? $t : ft, x = K(i, "ALLOWED_TAGS") ? S({}, i.ALLOWED_TAGS, U) : L, C = K(i, "ALLOWED_ATTR") ? S({}, i.ALLOWED_ATTR, U) : he, It = K(i, "ALLOWED_NAMESPACES") ? S({}, i.ALLOWED_NAMESPACES, $t) : us, Dt = K(i, "ADD_URI_SAFE_ATTR") ? S(le(fn), i.ADD_URI_SAFE_ATTR, U) : fn, hn = K(i, "ADD_DATA_URI_TAGS") ? S(le(pn), i.ADD_DATA_URI_TAGS, U) : pn, ie = K(i, "FORBID_CONTENTS") ? S({}, i.FORBID_CONTENTS, U) : Rt, pe = K(i, "FORBID_TAGS") ? S({}, i.FORBID_TAGS, U) : le({}), tt = K(i, "FORBID_ATTR") ? S({}, i.FORBID_ATTR, U) : le({}), De = K(i, "USE_PROFILES") ? i.USE_PROFILES : !1, an = i.ALLOW_ARIA_ATTR !== !1, St = i.ALLOW_DATA_ATTR !== !1, ln = i.ALLOW_UNKNOWN_PROTOCOLS || !1, on = i.ALLOW_SELF_CLOSE_IN_ATTR !== !1, _e = i.SAFE_FOR_TEMPLATES || !1, nt = i.SAFE_FOR_XML !== !1, ye = i.WHOLE_DOCUMENT || !1, Re = i.RETURN_DOM || !1, st = i.RETURN_DOM_FRAGMENT || !1, rt = i.RETURN_TRUSTED_TYPE || !1, Et = i.FORCE_BODY || !1, cn = i.SANITIZE_DOM !== !1, un = i.SANITIZE_NAMED_PROPS || !1, _t = i.KEEP_CONTENT !== !1, Fe = i.IN_PLACE || !1, T = i.ALLOWED_URI_REGEXP || Zn, Ce = i.NAMESPACE || fe, lt = i.MATHML_TEXT_INTEGRATION_POINTS || lt, ot = i.HTML_INTEGRATION_POINTS || ot, z = i.CUSTOM_ELEMENT_HANDLING || {}, i.CUSTOM_ELEMENT_HANDLING && dn(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (z.tagNameCheck = i.CUSTOM_ELEMENT_HANDLING.tagNameCheck), i.CUSTOM_ELEMENT_HANDLING && dn(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (z.attributeNameCheck = i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), i.CUSTOM_ELEMENT_HANDLING && typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), _e && (St = !1), st && (Re = !0), De && (x = S({}, On), C = pt(null), De.html === !0 && (S(x, Ln), S(C, zn)), De.svg === !0 && (S(x, Bt), S(C, Gt), S(C, ut)), De.svgFilters === !0 && (S(x, Ft), S(C, Gt), S(C, ut)), De.mathMl === !0 && (S(x, Ht), S(C, Nn), S(C, ut))), K(i, "ADD_TAGS") || (ke.tagCheck = null), K(i, "ADD_ATTR") || (ke.attributeCheck = null), i.ADD_TAGS && (typeof i.ADD_TAGS == "function" ? ke.tagCheck = i.ADD_TAGS : (x === L && (x = le(x)), S(x, i.ADD_TAGS, U))), i.ADD_ATTR && (typeof i.ADD_ATTR == "function" ? ke.attributeCheck = i.ADD_ATTR : (C === he && (C = le(C)), S(C, i.ADD_ATTR, U))), i.ADD_URI_SAFE_ATTR && S(Dt, i.ADD_URI_SAFE_ATTR, U), i.FORBID_CONTENTS && (ie === Rt && (ie = le(ie)), S(ie, i.FORBID_CONTENTS, U)), i.ADD_FORBID_CONTENTS && (ie === Rt && (ie = le(ie)), S(ie, i.ADD_FORBID_CONTENTS, U)), _t && (x["#text"] = !0), ye && S(x, ["html", "head", "body"]), x.table && (S(x, ["tbody"]), delete pe.tbody), i.TRUSTED_TYPES_POLICY) {
560
560
  if (typeof i.TRUSTED_TYPES_POLICY.createHTML != "function")
561
561
  throw je('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
562
562
  if (typeof i.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -564,12 +564,12 @@ function Vn() {
564
564
  $ = i.TRUSTED_TYPES_POLICY, W = $.createHTML("");
565
565
  } else
566
566
  $ === void 0 && ($ = tr(b, s)), $ !== null && typeof W == "string" && (W = $.createHTML(""));
567
- Z && Z(i), Me = i;
567
+ Z && Z(i), Ie = i;
568
568
  }
569
569
  }, "_parseConfig"), gn = S({}, [...Bt, ...Ft, ...Ws]), mn = S({}, [...Ht, ...js]), gs = /* @__PURE__ */ h(function(i) {
570
570
  let u = ee(i);
571
571
  (!u || !u.tagName) && (u = {
572
- namespaceURI: Ie,
572
+ namespaceURI: Ce,
573
573
  tagName: "template"
574
574
  });
575
575
  const g = ft(i.tagName), N = ft(u.tagName);
@@ -596,7 +596,7 @@ function Vn() {
596
596
  });
597
597
  }
598
598
  if (u.removeAttribute(i), i === "is")
599
- if (De || st)
599
+ if (Re || st)
600
600
  try {
601
601
  ae(u);
602
602
  } catch {
@@ -614,22 +614,22 @@ function Vn() {
614
614
  const P = Ut(i, /^[\r\n\t ]+/);
615
615
  g = P && P[0];
616
616
  }
617
- He === "application/xhtml+xml" && Ie === fe && (i = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + i + "</body></html>");
617
+ He === "application/xhtml+xml" && Ce === fe && (i = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + i + "</body></html>");
618
618
  const N = $ ? $.createHTML(i) : i;
619
- if (Ie === fe)
619
+ if (Ce === fe)
620
620
  try {
621
621
  u = new m().parseFromString(N, He);
622
622
  } catch {
623
623
  }
624
624
  if (!u || !u.documentElement) {
625
- u = te.createDocument(Ie, "template", null);
625
+ u = te.createDocument(Ce, "template", null);
626
626
  try {
627
627
  u.documentElement.innerHTML = Ct ? W : N;
628
628
  } catch {
629
629
  }
630
630
  }
631
631
  const G = u.body || u.documentElement;
632
- return i && g && G.insertBefore(e.createTextNode(g), G.childNodes[0] || null), Ie === fe ? Je.call(u, ye ? "html" : "body")[0] : ye ? u.documentElement : G;
632
+ return i && g && G.insertBefore(e.createTextNode(g), G.childNodes[0] || null), Ce === fe ? Je.call(u, ye ? "html" : "body")[0] : ye ? u.documentElement : G;
633
633
  }, "_initDocument"), xn = /* @__PURE__ */ h(function(i) {
634
634
  return ue.call(
635
635
  i.ownerDocument || i,
@@ -645,7 +645,7 @@ function Vn() {
645
645
  }, "_isNode");
646
646
  function de(k, i, u) {
647
647
  ct(k, (g) => {
648
- g.call(t, i, u, Me);
648
+ g.call(t, i, u, Ie);
649
649
  });
650
650
  }
651
651
  h(de, "_executeHooks");
@@ -668,13 +668,13 @@ function Vn() {
668
668
  const P = G.length;
669
669
  for (let V = P - 1; V >= 0; --V) {
670
670
  const ge = D(G[V], !0);
671
- ge.__removalCount = (i.__removalCount || 0) + 1, N.insertBefore(ge, _e(i));
671
+ ge.__removalCount = (i.__removalCount || 0) + 1, N.insertBefore(ge, Ee(i));
672
672
  }
673
673
  }
674
674
  }
675
675
  return ae(i), !0;
676
676
  }
677
- return i instanceof c && !gs(i) || (g === "noscript" || g === "noembed" || g === "noframes") && j(/<\/no(script|embed|frames)/i, i.innerHTML) ? (ae(i), !0) : (Re && i.nodeType === Ye.text && (u = i.textContent, ct([$e, M, Ue], (N) => {
677
+ return i instanceof c && !gs(i) || (g === "noscript" || g === "noembed" || g === "noframes") && j(/<\/no(script|embed|frames)/i, i.innerHTML) ? (ae(i), !0) : (_e && i.nodeType === Ye.text && (u = i.textContent, ct([$e, M, Ue], (N) => {
678
678
  u = We(u, N, " ");
679
679
  }), i.textContent !== u && (Ge(t.removed, {
680
680
  element: i.cloneNode()
@@ -730,13 +730,13 @@ function Vn() {
730
730
  name: P,
731
731
  namespaceURI: V,
732
732
  value: ge
733
- } = G, Le = U(P), Ot = ge;
733
+ } = G, Me = U(P), Ot = ge;
734
734
  let H = P === "value" ? Ot : Fs(Ot);
735
- if (g.attrName = Le, g.attrValue = H, g.keepAttr = !0, g.forceKeepAttr = void 0, de(B.uponSanitizeAttribute, i, g), H = g.attrValue, un && (Le === "id" || Le === "name") && (Te(P, i), H = cs + H), nt && j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, H)) {
735
+ if (g.attrName = Me, g.attrValue = H, g.keepAttr = !0, g.forceKeepAttr = void 0, de(B.uponSanitizeAttribute, i, g), H = g.attrValue, un && (Me === "id" || Me === "name") && (Te(P, i), H = cs + H), nt && j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, H)) {
736
736
  Te(P, i);
737
737
  continue;
738
738
  }
739
- if (Le === "attributename" && Ut(H, "href")) {
739
+ if (Me === "attributename" && Ut(H, "href")) {
740
740
  Te(P, i);
741
741
  continue;
742
742
  }
@@ -750,16 +750,16 @@ function Vn() {
750
750
  Te(P, i);
751
751
  continue;
752
752
  }
753
- Re && ct([$e, M, Ue], (An) => {
753
+ _e && ct([$e, M, Ue], (An) => {
754
754
  H = We(H, An, " ");
755
755
  });
756
756
  const Sn = U(i.nodeName);
757
- if (!yn(Sn, Le, H)) {
757
+ if (!yn(Sn, Me, H)) {
758
758
  Te(P, i);
759
759
  continue;
760
760
  }
761
761
  if ($ && typeof b == "object" && typeof b.getAttributeType == "function" && !V)
762
- switch (b.getAttributeType(Sn, Le)) {
762
+ switch (b.getAttributeType(Sn, Me)) {
763
763
  case "TrustedHTML": {
764
764
  H = $.createHTML(H);
765
765
  break;
@@ -803,11 +803,11 @@ function Vn() {
803
803
  } else if (k instanceof o)
804
804
  u = kn("<!---->"), g = u.ownerDocument.importNode(k, !0), g.nodeType === Ye.element && g.nodeName === "BODY" || g.nodeName === "HTML" ? u = g : u.appendChild(g);
805
805
  else {
806
- if (!De && !Re && !ye && // eslint-disable-next-line unicorn/prefer-includes
806
+ if (!Re && !_e && !ye && // eslint-disable-next-line unicorn/prefer-includes
807
807
  k.indexOf("<") === -1)
808
808
  return $ && rt ? $.createHTML(k) : k;
809
809
  if (u = kn(k), !u)
810
- return De ? null : rt ? W : "";
810
+ return Re ? null : rt ? W : "";
811
811
  }
812
812
  u && Et && ae(u.firstChild);
813
813
  const P = xn(Fe ? k : u);
@@ -815,7 +815,7 @@ function Vn() {
815
815
  wn(N), vn(N), N.content instanceof r && ms(N.content);
816
816
  if (Fe)
817
817
  return k;
818
- if (De) {
818
+ if (Re) {
819
819
  if (st)
820
820
  for (G = Ke.call(u.ownerDocument); u.firstChild; )
821
821
  G.appendChild(u.firstChild);
@@ -825,16 +825,16 @@ function Vn() {
825
825
  }
826
826
  let V = ye ? u.outerHTML : u.innerHTML;
827
827
  return ye && x["!doctype"] && u.ownerDocument && u.ownerDocument.doctype && u.ownerDocument.doctype.name && j(Xn, u.ownerDocument.doctype.name) && (V = "<!DOCTYPE " + u.ownerDocument.doctype.name + `>
828
- ` + V), Re && ct([$e, M, Ue], (ge) => {
828
+ ` + V), _e && ct([$e, M, Ue], (ge) => {
829
829
  V = We(V, ge, " ");
830
830
  }), $ && rt ? $.createHTML(V) : V;
831
831
  }, t.setConfig = function() {
832
832
  let k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
833
833
  Mt(k), At = !0;
834
834
  }, t.clearConfig = function() {
835
- Me = null, At = !1;
835
+ Ie = null, At = !1;
836
836
  }, t.isValidAttribute = function(k, i, u) {
837
- Me || Mt({});
837
+ Ie || Mt({});
838
838
  const g = U(k), N = U(i);
839
839
  return yn(g, N, u);
840
840
  }, t.addHook = function(k, i) {
@@ -857,12 +857,12 @@ function Xt() {
857
857
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
858
858
  }
859
859
  h(Xt, "M");
860
- var Ee = Xt();
860
+ var Ae = Xt();
861
861
  function Qn(l) {
862
- Ee = l;
862
+ Ae = l;
863
863
  }
864
864
  h(Qn, "G");
865
- var Se = { exec: /* @__PURE__ */ h(() => null, "exec") };
865
+ var ve = { exec: /* @__PURE__ */ h(() => null, "exec") };
866
866
  function R(l, t = "") {
867
867
  let e = typeof l == "string" ? l : l.source, n = { replace: /* @__PURE__ */ h((s, r) => {
868
868
  let a = typeof r == "string" ? r : r.source;
@@ -877,8 +877,8 @@ var sr = (() => {
877
877
  } catch {
878
878
  return !1;
879
879
  }
880
- })(), Y = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ h((l) => new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), "nextBulletRegex"), hrRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), "hrRegex"), fencesBeginRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}(?:\`\`\`|~~~)`), "fencesBeginRegex"), headingBeginRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}#`), "headingBeginRegex"), htmlBeginRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}<(?:[a-z].*>|!--)`, "i"), "htmlBeginRegex"), blockquoteBeginRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}>`), "blockquoteBeginRegex") }, rr = /^(?:[ \t]*(?:\n|$))+/, ir = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ar = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Qe = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, lr = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Vt = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Kn = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Jn = R(Kn).replace(/bull/g, Vt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), or = R(Kn).replace(/bull/g, Vt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Qt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, cr = /^[^\n]+/, Kt = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ur = R(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Kt).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), hr = R(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Vt).getRegex(), bt = "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", Jt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, pr = R("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Jt).replace("tag", bt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), es = R(Qt).replace("hr", Qe).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[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", bt).getRegex(), fr = R(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", es).getRegex(), en = { blockquote: fr, code: ir, def: ur, fences: ar, heading: lr, hr: Qe, html: pr, lheading: Jn, list: hr, newline: rr, paragraph: es, table: Se, text: cr }, Un = R("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Qe).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", bt).getRegex(), dr = { ...en, lheading: or, table: Un, paragraph: R(Qt).replace("hr", Qe).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Un).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", bt).getRegex() }, gr = { ...en, html: R(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Jt).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: Se, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: R(Qt).replace("hr", Qe).replace("heading", ` *#{1,6} *[^
881
- ]`).replace("lheading", Jn).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, mr = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, kr = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ts = /^( {2,}|\\)\n(?!\s*$)/, xr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, wt = /[\p{P}\p{S}]/u, tn = /[\s\p{P}\p{S}]/u, ns = /[^\s\p{P}\p{S}]/u, br = R(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, tn).getRegex(), ss = /(?!~)[\p{P}\p{S}]/u, wr = /(?!~)[\s\p{P}\p{S}]/u, yr = /(?:[^\s\p{P}\p{S}]|~)/u, rs = /(?![*_])[\p{P}\p{S}]/u, Tr = /(?![*_])[\s\p{P}\p{S}]/u, vr = /(?:[^\s\p{P}\p{S}]|[*_])/u, Sr = R(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", sr ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), is = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ar = R(is, "u").replace(/punct/g, wt).getRegex(), Er = R(is, "u").replace(/punct/g, ss).getRegex(), as = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", _r = R(as, "gu").replace(/notPunctSpace/g, ns).replace(/punctSpace/g, tn).replace(/punct/g, wt).getRegex(), Rr = R(as, "gu").replace(/notPunctSpace/g, yr).replace(/punctSpace/g, wr).replace(/punct/g, ss).getRegex(), Dr = R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ns).replace(/punctSpace/g, tn).replace(/punct/g, wt).getRegex(), Cr = R(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, rs).getRegex(), Ir = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Mr = R(Ir, "gu").replace(/notPunctSpace/g, vr).replace(/punctSpace/g, Tr).replace(/punct/g, rs).getRegex(), Lr = R(/\\(punct)/, "gu").replace(/punct/g, wt).getRegex(), Or = R(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), zr = R(Jt).replace("(?:-->|$)", "-->").getRegex(), Nr = R("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", zr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Pr = R(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", gt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ls = R(/^!?\[(label)\]\[(ref)\]/).replace("label", gt).replace("ref", Kt).getRegex(), os = R(/^!?\[(ref)\](?:\[\])?/).replace("ref", Kt).getRegex(), $r = R("reflink|nolink(?!\\()", "g").replace("reflink", ls).replace("nolink", os).getRegex(), Bn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, nn = { _backpedal: Se, anyPunctuation: Lr, autolink: Or, blockSkip: Sr, br: ts, code: kr, del: Se, delLDelim: Se, delRDelim: Se, emStrongLDelim: Ar, emStrongRDelimAst: _r, emStrongRDelimUnd: Dr, escape: mr, link: Pr, nolink: os, punctuation: br, reflink: ls, reflinkSearch: $r, tag: Nr, text: xr, url: Se }, Ur = { ...nn, link: R(/^!?\[(label)\]\((.*?)\)/).replace("label", gt).getRegex(), reflink: R(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gt).getRegex() }, Zt = { ...nn, emStrongRDelimAst: Rr, emStrongLDelim: Er, delLDelim: Cr, delRDelim: Mr, url: R(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Bn).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: R(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Bn).getRegex() }, Br = { ...Zt, br: R(ts).replace("{2,}", "*").getRegex(), text: R(Zt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, ht = { normal: en, gfm: dr, pedantic: gr }, Ze = { normal: nn, gfm: Zt, breaks: Br, pedantic: Ur }, Fr = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Fn = /* @__PURE__ */ h((l) => Fr[l], "de");
880
+ })(), Y = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ h((l) => new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), "nextBulletRegex"), hrRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), "hrRegex"), fencesBeginRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}(?:\`\`\`|~~~)`), "fencesBeginRegex"), headingBeginRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}#`), "headingBeginRegex"), htmlBeginRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}<(?:[a-z].*>|!--)`, "i"), "htmlBeginRegex"), blockquoteBeginRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}>`), "blockquoteBeginRegex") }, rr = /^(?:[ \t]*(?:\n|$))+/, ir = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ar = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Qe = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, lr = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Vt = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Kn = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Jn = R(Kn).replace(/bull/g, Vt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), or = R(Kn).replace(/bull/g, Vt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Qt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, cr = /^[^\n]+/, Kt = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ur = R(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Kt).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), hr = R(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Vt).getRegex(), bt = "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", Jt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, pr = R("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Jt).replace("tag", bt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), es = R(Qt).replace("hr", Qe).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[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", bt).getRegex(), fr = R(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", es).getRegex(), en = { blockquote: fr, code: ir, def: ur, fences: ar, heading: lr, hr: Qe, html: pr, lheading: Jn, list: hr, newline: rr, paragraph: es, table: ve, text: cr }, Un = R("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Qe).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", bt).getRegex(), dr = { ...en, lheading: or, table: Un, paragraph: R(Qt).replace("hr", Qe).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Un).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", bt).getRegex() }, gr = { ...en, html: R(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Jt).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: ve, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: R(Qt).replace("hr", Qe).replace("heading", ` *#{1,6} *[^
881
+ ]`).replace("lheading", Jn).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, mr = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, kr = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ts = /^( {2,}|\\)\n(?!\s*$)/, xr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, wt = /[\p{P}\p{S}]/u, tn = /[\s\p{P}\p{S}]/u, ns = /[^\s\p{P}\p{S}]/u, br = R(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, tn).getRegex(), ss = /(?!~)[\p{P}\p{S}]/u, wr = /(?!~)[\s\p{P}\p{S}]/u, yr = /(?:[^\s\p{P}\p{S}]|~)/u, rs = /(?![*_])[\p{P}\p{S}]/u, Tr = /(?![*_])[\s\p{P}\p{S}]/u, vr = /(?:[^\s\p{P}\p{S}]|[*_])/u, Sr = R(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", sr ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), is = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ar = R(is, "u").replace(/punct/g, wt).getRegex(), Er = R(is, "u").replace(/punct/g, ss).getRegex(), as = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", _r = R(as, "gu").replace(/notPunctSpace/g, ns).replace(/punctSpace/g, tn).replace(/punct/g, wt).getRegex(), Rr = R(as, "gu").replace(/notPunctSpace/g, yr).replace(/punctSpace/g, wr).replace(/punct/g, ss).getRegex(), Dr = R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ns).replace(/punctSpace/g, tn).replace(/punct/g, wt).getRegex(), Cr = R(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, rs).getRegex(), Ir = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Mr = R(Ir, "gu").replace(/notPunctSpace/g, vr).replace(/punctSpace/g, Tr).replace(/punct/g, rs).getRegex(), Lr = R(/\\(punct)/, "gu").replace(/punct/g, wt).getRegex(), Or = R(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), zr = R(Jt).replace("(?:-->|$)", "-->").getRegex(), Nr = R("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", zr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Pr = R(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", gt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ls = R(/^!?\[(label)\]\[(ref)\]/).replace("label", gt).replace("ref", Kt).getRegex(), os = R(/^!?\[(ref)\](?:\[\])?/).replace("ref", Kt).getRegex(), $r = R("reflink|nolink(?!\\()", "g").replace("reflink", ls).replace("nolink", os).getRegex(), Bn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, nn = { _backpedal: ve, anyPunctuation: Lr, autolink: Or, blockSkip: Sr, br: ts, code: kr, del: ve, delLDelim: ve, delRDelim: ve, emStrongLDelim: Ar, emStrongRDelimAst: _r, emStrongRDelimUnd: Dr, escape: mr, link: Pr, nolink: os, punctuation: br, reflink: ls, reflinkSearch: $r, tag: Nr, text: xr, url: ve }, Ur = { ...nn, link: R(/^!?\[(label)\]\((.*?)\)/).replace("label", gt).getRegex(), reflink: R(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gt).getRegex() }, Zt = { ...nn, emStrongRDelimAst: Rr, emStrongLDelim: Er, delLDelim: Cr, delRDelim: Mr, url: R(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Bn).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: R(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Bn).getRegex() }, Br = { ...Zt, br: R(ts).replace("{2,}", "*").getRegex(), text: R(Zt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, ht = { normal: en, gfm: dr, pedantic: gr }, Ze = { normal: nn, gfm: Zt, breaks: Br, pedantic: Ur }, Fr = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Fn = /* @__PURE__ */ h((l) => Fr[l], "de");
882
882
  function oe(l, t) {
883
883
  if (t) {
884
884
  if (Y.escapeTest.test(l)) return l.replace(Y.escapeReplace, Fn);
@@ -960,7 +960,7 @@ var Oe, mt = (Oe = class {
960
960
  _(this, "options");
961
961
  _(this, "rules");
962
962
  _(this, "lexer");
963
- this.options = t || Ee;
963
+ this.options = t || Ae;
964
964
  }
965
965
  space(t) {
966
966
  let e = this.rules.block.newline.exec(t);
@@ -1052,15 +1052,15 @@ ${d}` : d;
1052
1052
  `, 1)[0], O = !m.trim(), D = 0;
1053
1053
  if (this.options.pedantic ? (D = 2, d = m.trimStart()) : O ? D = e[1].length + 1 : (D = m.search(this.rules.other.nonSpaceChar), D = D > 4 ? 1 : D, d = m.slice(D), D += e[1].length), O && this.rules.other.blankLine.test(b) && (f += b + `
1054
1054
  `, t = t.substring(b.length + 1), p = !0), !p) {
1055
- let F = this.rules.other.nextBulletRegex(D), _e = this.rules.other.hrRegex(D), me = this.rules.other.fencesBeginRegex(D), ee = this.rules.other.headingBeginRegex(D), $ = this.rules.other.htmlBeginRegex(D), W = this.rules.other.blockquoteBeginRegex(D);
1055
+ let F = this.rules.other.nextBulletRegex(D), Ee = this.rules.other.hrRegex(D), me = this.rules.other.fencesBeginRegex(D), ee = this.rules.other.headingBeginRegex(D), $ = this.rules.other.htmlBeginRegex(D), W = this.rules.other.blockquoteBeginRegex(D);
1056
1056
  for (; t; ) {
1057
1057
  let te = t.split(`
1058
1058
  `, 1)[0], ue;
1059
- if (b = te, this.options.pedantic ? (b = b.replace(this.rules.other.listReplaceNesting, " "), ue = b) : ue = b.replace(this.rules.other.tabCharGlobal, " "), me.test(b) || ee.test(b) || $.test(b) || W.test(b) || F.test(b) || _e.test(b)) break;
1059
+ if (b = te, this.options.pedantic ? (b = b.replace(this.rules.other.listReplaceNesting, " "), ue = b) : ue = b.replace(this.rules.other.tabCharGlobal, " "), me.test(b) || ee.test(b) || $.test(b) || W.test(b) || F.test(b) || Ee.test(b)) break;
1060
1060
  if (ue.search(this.rules.other.nonSpaceChar) >= D || !b.trim()) d += `
1061
1061
  ` + ue.slice(D);
1062
1062
  else {
1063
- if (O || m.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || me.test(m) || ee.test(m) || _e.test(m)) break;
1063
+ if (O || m.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || me.test(m) || ee.test(m) || Ee.test(m)) break;
1064
1064
  d += `
1065
1065
  ` + b;
1066
1066
  }
@@ -1272,7 +1272,7 @@ ${d}` : d;
1272
1272
  _(this, "state");
1273
1273
  _(this, "inlineQueue");
1274
1274
  _(this, "tokenizer");
1275
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || Ee, this.options.tokenizer = this.options.tokenizer || new mt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
1275
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || Ae, this.options.tokenizer = this.options.tokenizer || new mt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
1276
1276
  let e = { other: Y, block: ht.normal, inline: Ze.normal };
1277
1277
  this.options.pedantic ? (e.block = ht.pedantic, e.inline = Ze.pedantic) : this.options.gfm && (e.block = ht.gfm, this.options.breaks ? e.inline = Ze.breaks : e.inline = Ze.gfm), this.tokenizer.rules = e;
1278
1278
  }
@@ -1476,7 +1476,7 @@ ${d}` : d;
1476
1476
  constructor(t) {
1477
1477
  _(this, "options");
1478
1478
  _(this, "parser");
1479
- this.options = t || Ee;
1479
+ this.options = t || Ae;
1480
1480
  }
1481
1481
  space(t) {
1482
1482
  return "";
@@ -1625,7 +1625,7 @@ ${t}</tr>
1625
1625
  _(this, "options");
1626
1626
  _(this, "renderer");
1627
1627
  _(this, "textRenderer");
1628
- this.options = t || Ee, this.options.renderer = this.options.renderer || new kt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new sn();
1628
+ this.options = t || Ae, this.options.renderer = this.options.renderer || new kt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new sn();
1629
1629
  }
1630
1630
  static parse(t, e) {
1631
1631
  return new we(e).parse(t);
@@ -1773,7 +1773,7 @@ ${t}</tr>
1773
1773
  constructor(t) {
1774
1774
  _(this, "options");
1775
1775
  _(this, "block");
1776
- this.options = t || Ee;
1776
+ this.options = t || Ae;
1777
1777
  }
1778
1778
  preprocess(t) {
1779
1779
  return t;
@@ -1953,23 +1953,23 @@ Please report this to https://github.com/markedjs/marked.`, t) {
1953
1953
  throw n;
1954
1954
  };
1955
1955
  }
1956
- }, h(Pe, "B"), Pe), Ae = new jr();
1956
+ }, h(Pe, "B"), Pe), Se = new jr();
1957
1957
  function I(l, t) {
1958
- return Ae.parse(l, t);
1958
+ return Se.parse(l, t);
1959
1959
  }
1960
1960
  h(I, "g");
1961
1961
  I.options = I.setOptions = function(l) {
1962
- return Ae.setOptions(l), I.defaults = Ae.defaults, Qn(I.defaults), I;
1962
+ return Se.setOptions(l), I.defaults = Se.defaults, Qn(I.defaults), I;
1963
1963
  };
1964
1964
  I.getDefaults = Xt;
1965
- I.defaults = Ee;
1965
+ I.defaults = Ae;
1966
1966
  I.use = function(...l) {
1967
- return Ae.use(...l), I.defaults = Ae.defaults, Qn(I.defaults), I;
1967
+ return Se.use(...l), I.defaults = Se.defaults, Qn(I.defaults), I;
1968
1968
  };
1969
1969
  I.walkTokens = function(l, t) {
1970
- return Ae.walkTokens(l, t);
1970
+ return Se.walkTokens(l, t);
1971
1971
  };
1972
- I.parseInline = Ae.parseInline;
1972
+ I.parseInline = Se.parseInline;
1973
1973
  I.Parser = re;
1974
1974
  I.parser = re.parse;
1975
1975
  I.Renderer = kt;
@@ -2050,7 +2050,7 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
2050
2050
  return !L || L.sender !== x.sender;
2051
2051
  }
2052
2052
  h(O, "shouldShowAvatar");
2053
- const D = Q(() => l.chatController?.textState.value), F = Q(() => D.value?.isConnected ?? !1), _e = Q(() => D.value?.isThinking ?? !1), me = Q(() => D.value?.connectionStatus === "disconnected" && !!D.value?.error), ee = Q(() => D.value?.connectionStatus !== "connected" && !D.value?.error), $ = Q(() => D.value?.error), W = Q(() => l.chatController?.sharedMessages.value?.filter((y) => y.sender !== "system") ?? []), te = Q(() => !F.value), ue = Q(() => me.value ? "Agent is offline" : ee.value ? "Connecting..." : "Message"), Ke = Q(() => (c.value.trim() || m.value.length > 0) && !te.value && !b.value);
2053
+ const D = Q(() => l.chatController?.textState.value), F = Q(() => D.value?.isConnected ?? !1), Ee = Q(() => D.value?.isThinking ?? !1), me = Q(() => D.value?.connectionStatus === "disconnected" && !!D.value?.error), ee = Q(() => D.value?.connectionStatus !== "connected" && !D.value?.error), $ = Q(() => D.value?.error), W = Q(() => l.chatController?.sharedMessages.value?.filter((y) => y.sender !== "system") ?? []), te = Q(() => !F.value), ue = Q(() => me.value ? "Agent is offline" : ee.value ? "Connecting..." : "Message"), Ke = Q(() => (c.value.trim() || m.value.length > 0) && !te.value && !b.value);
2054
2054
  jn(async () => {
2055
2055
  if (l.chatController && !F.value)
2056
2056
  try {
@@ -2157,15 +2157,13 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
2157
2157
  class: v(["py-16 flex flex-col items-center justify-center gap-2 text-sm", M.value ? "text-theme-400" : "text-theme-600"])
2158
2158
  }, [
2159
2159
  Nt(_n, { class: "size-4" })
2160
- ], 2)) : (A(), E("div", {
2160
+ ], 2)) : r.value ? (A(), E("div", {
2161
2161
  key: 3,
2162
2162
  class: v(["flex items-center justify-center gap-1.5 py-2 text-[11px]", M.value ? "text-theme-300" : "text-white/30"])
2163
2163
  }, [
2164
- r.value ? (A(), E(ve, { key: 0 }, [
2165
- T[2] || (T[2] = w("i", { class: "i-tabler-tool size-3" }, null, -1)),
2166
- w("span", null, ce(r.value), 1)
2167
- ], 64)) : q("", !0)
2168
- ], 2)),
2164
+ T[2] || (T[2] = w("i", { class: "i-tabler-tool size-3" }, null, -1)),
2165
+ w("span", null, ce(r.value), 1)
2166
+ ], 2)) : q("", !0),
2169
2167
  w("div", {
2170
2168
  ref_key: "messagesContainer",
2171
2169
  ref: p,
@@ -2210,7 +2208,7 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
2210
2208
  w("span", null, ce(a.value.label), 1)
2211
2209
  ], 10, Qr)
2212
2210
  ])) : q("", !0),
2213
- (A(!0), E(ve, null, Pt(W.value, (x, L) => (A(), E(ve, {
2211
+ (A(!0), E(Le, null, Pt(W.value, (x, L) => (A(), E(Le, {
2214
2212
  key: x.id
2215
2213
  }, [
2216
2214
  et(W.value, L) ? (A(), E("div", Kr, [
@@ -2249,7 +2247,7 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
2249
2247
  key: 0,
2250
2248
  class: v(["mb-1 space-y-1", x.sender === "user" ? "flex flex-col items-end" : ""])
2251
2249
  }, [
2252
- (A(!0), E(ve, null, Pt(x.attachments, (C, he) => (A(), E(ve, { key: he }, [
2250
+ (A(!0), E(Le, null, Pt(x.attachments, (C, he) => (A(), E(Le, { key: he }, [
2253
2251
  C.type === "image" ? (A(), E("img", {
2254
2252
  key: 0,
2255
2253
  src: C.url,
@@ -2284,7 +2282,7 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
2284
2282
  ], 2)
2285
2283
  ], 2)
2286
2284
  ], 64))), 128)),
2287
- _e.value ? (A(), E("div", ri, [
2285
+ Ee.value ? (A(), E("div", ri, [
2288
2286
  w("div", ii, [
2289
2287
  w("img", {
2290
2288
  src: l.agent.avatarUrl.value,
@@ -2303,7 +2301,7 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
2303
2301
  ], 512),
2304
2302
  w("div", li, [
2305
2303
  m.value.length > 0 ? (A(), E("div", oi, [
2306
- (A(!0), E(ve, null, Pt(m.value, (x, L) => (A(), E("div", {
2304
+ (A(!0), E(Le, null, Pt(m.value, (x, L) => (A(), E("div", {
2307
2305
  key: L,
2308
2306
  class: "relative shrink-0 group"
2309
2307
  }, [
@@ -2380,7 +2378,7 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
2380
2378
  ])], 10, ki)
2381
2379
  ], 2),
2382
2380
  w("div", {
2383
- class: v(["hidden lg:block text-[10px] text-center mt-2", M.value ? "text-theme-300" : "text-white/40"])
2381
+ class: v(["text-[10px] text-center mt-2", M.value ? "text-theme-300" : "text-white/40"])
2384
2382
  }, " Press Enter to send, Shift+Enter for new line ", 2)
2385
2383
  ])
2386
2384
  ]));
@@ -2508,4 +2506,4 @@ export {
2508
2506
  Cn as h,
2509
2507
  Ai as p
2510
2508
  };
2511
- //# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-bmrI1vVo.js.map
2509
+ //# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-CnOmMDjt.js.map