@pagelines/sdk 1.0.559 → 1.0.561

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.
@@ -255,9 +255,9 @@ Current User:
255
255
  }, "onDone"), g = /* @__PURE__ */ p((k) => {
256
256
  const A = this.sharedMessages.value, C = A[A.length - 1];
257
257
  if (C?.id === l && !C.text && (this.sharedMessages.value = A.slice(0, -1)), typeof k == "object" && k.code && k.error) {
258
- const { bucket: ne, actionUrl: G, actionLabel: ae, help: B } = k;
259
- if (ne !== void 0 || Xs.has(k.code)) {
260
- const ye = ne ?? (bs.has(k.code) ? "account" : "error"), Te = {
258
+ const { bucket: ee, actionUrl: G, actionLabel: ae, help: B } = k;
259
+ if (ee !== void 0 || Xs.has(k.code)) {
260
+ const ye = ee ?? (bs.has(k.code) ? "account" : "error"), Te = {
261
261
  code: k.code,
262
262
  bucket: ye,
263
263
  ...ae ? { actionLabel: ae } : {},
@@ -328,24 +328,24 @@ function qn(a) {
328
328
  return a ? typeof a == "string" ? a : a.src || "" : "";
329
329
  }
330
330
  p(qn, "getImageSrc");
331
- function oa(a) {
331
+ function la(a) {
332
332
  return qn(a.cover) || qn(a.avatar) || ms(a.name);
333
333
  }
334
- p(oa, "getAgentAvatarUrl");
334
+ p(la, "getAgentAvatarUrl");
335
335
  function Yn(a) {
336
336
  const t = a.target;
337
337
  t.dataset.fallbackUsed || (t.dataset.fallbackUsed = "true", t.src = ms());
338
338
  }
339
339
  p(Yn, "handleImageError");
340
- function ca(a) {
340
+ function oa(a) {
341
341
  const { template: t, agent: e } = a;
342
342
  return t.replace(/{name}/g, e.name || "Assistant").replace(/{title}/g, e.title || "").replace(/{handle}/g, e.handle || "").replace(/{orgName}/g, e.org?.name || "");
343
343
  }
344
- p(ca, "parseButtonTemplate");
344
+ p(oa, "parseButtonTemplate");
345
345
  const Qs = {
346
346
  key: 0,
347
347
  class: "absolute inset-0 flex items-center justify-center"
348
- }, ua = /* @__PURE__ */ ve({
348
+ }, ca = /* @__PURE__ */ ve({
349
349
  __name: "ElAgentButton",
350
350
  props: {
351
351
  theme: { default: "primary" },
@@ -390,7 +390,7 @@ const Qs = {
390
390
  ], 2)
391
391
  ], 2));
392
392
  }
393
- }), Ks = ["value"], ha = /* @__PURE__ */ ve({
393
+ }), Ks = ["value"], ua = /* @__PURE__ */ ve({
394
394
  __name: "AgentInputEmail",
395
395
  props: {
396
396
  modelValue: { default: "" }
@@ -413,7 +413,7 @@ const Qs = {
413
413
  onInput: i[0] || (i[0] = (s) => e("update:modelValue", s.target.value))
414
414
  }, null, 40, Ks));
415
415
  }
416
- }), Js = ["placeholder", "value"], pa = /* @__PURE__ */ ve({
416
+ }), Js = ["placeholder", "value"], ha = /* @__PURE__ */ ve({
417
417
  __name: "AgentInputOneTimeCode",
418
418
  props: {
419
419
  modelValue: {},
@@ -608,16 +608,16 @@ function yi(a) {
608
608
  return a;
609
609
  }
610
610
  p(yi, "cleanArray");
611
- function ee(a) {
611
+ function te(a) {
612
612
  const t = Xe(null);
613
613
  for (const n of xs(a)) {
614
614
  var e = ci(n, 2);
615
615
  const i = e[0], s = e[1];
616
- H(a, i) && (se(s) ? t[i] = yi(s) : s && typeof s == "object" && s.constructor === Object ? t[i] = ee(s) : t[i] = s);
616
+ H(a, i) && (se(s) ? t[i] = yi(s) : s && typeof s == "object" && s.constructor === Object ? t[i] = te(s) : t[i] = s);
617
617
  }
618
618
  return t;
619
619
  }
620
- p(ee, "clone");
620
+ p(te, "clone");
621
621
  function wi(a) {
622
622
  switch (typeof a) {
623
623
  case "string":
@@ -739,7 +739,7 @@ function ys() {
739
739
  a.DocumentFragment;
740
740
  const s = a.HTMLTemplateElement, l = a.Node, o = a.Element, h = a.NodeFilter, c = a.NamedNodeMap;
741
741
  c === void 0 && (a.NamedNodeMap || a.MozNamedAttrMap), a.HTMLFormElement;
742
- const x = a.DOMParser, f = a.trustedTypes, g = o.prototype, w = xe(g, "cloneNode"), k = xe(g, "remove"), A = xe(g, "nextSibling"), C = xe(g, "childNodes"), z = xe(g, "parentNode"), Z = xe(g, "shadowRoot"), ne = xe(g, "attributes"), G = l && l.prototype ? xe(l.prototype, "nodeType") : null, ae = l && l.prototype ? xe(l.prototype, "nodeName") : null;
742
+ const x = a.DOMParser, f = a.trustedTypes, g = o.prototype, w = xe(g, "cloneNode"), k = xe(g, "remove"), A = xe(g, "nextSibling"), C = xe(g, "childNodes"), z = xe(g, "parentNode"), Z = xe(g, "shadowRoot"), ee = xe(g, "attributes"), G = l && l.prototype ? xe(l.prototype, "nodeType") : null, ae = l && l.prototype ? xe(l.prototype, "nodeName") : null;
743
743
  if (typeof s == "function") {
744
744
  const b = e.createElement("template");
745
745
  b.content && b.content.ownerDocument && (e = b.content.ownerDocument);
@@ -808,10 +808,10 @@ function ys() {
808
808
  let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
809
809
  if (He && He === r)
810
810
  return;
811
- (!r || typeof r != "object") && (r = {}), r = ee(r), at = // eslint-disable-next-line unicorn/prefer-includes
812
- Ms.indexOf(r.PARSER_MEDIA_TYPE) === -1 ? Ls : r.PARSER_MEDIA_TYPE, W = at === "application/xhtml+xml" ? Kt : ht, E = H(r, "ALLOWED_TAGS") && se(r.ALLOWED_TAGS) ? R({}, r.ALLOWED_TAGS, W) : X, P = H(r, "ALLOWED_ATTR") && se(r.ALLOWED_ATTR) ? R({}, r.ALLOWED_ATTR, W) : Pe, qt = H(r, "ALLOWED_NAMESPACES") && se(r.ALLOWED_NAMESPACES) ? R({}, r.ALLOWED_NAMESPACES, Kt) : Ds, Gt = H(r, "ADD_URI_SAFE_ATTR") && se(r.ADD_URI_SAFE_ATTR) ? R(ee(_n), r.ADD_URI_SAFE_ATTR, W) : _n, An = H(r, "ADD_DATA_URI_TAGS") && se(r.ADD_DATA_URI_TAGS) ? R(ee(En), r.ADD_DATA_URI_TAGS, W) : En, fe = H(r, "FORBID_CONTENTS") && se(r.FORBID_CONTENTS) ? R({}, r.FORBID_CONTENTS, W) : jt, st = H(r, "FORBID_TAGS") && se(r.FORBID_TAGS) ? R({}, r.FORBID_TAGS, W) : ee({}), xt = H(r, "FORBID_ATTR") && se(r.FORBID_ATTR) ? R({}, r.FORBID_ATTR, W) : ee({}), Fe = H(r, "USE_PROFILES") ? r.USE_PROFILES && typeof r.USE_PROFILES == "object" ? ee(r.USE_PROFILES) : r.USE_PROFILES : !1, kn = r.ALLOW_ARIA_ATTR !== !1, Bt = r.ALLOW_DATA_ATTR !== !1, yn = r.ALLOW_UNKNOWN_PROTOCOLS || !1, wn = r.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = r.SAFE_FOR_TEMPLATES || !1, it = r.SAFE_FOR_XML !== !1, Ce = r.WHOLE_DOCUMENT || !1, Be = r.RETURN_DOM || !1, kt = r.RETURN_DOM_FRAGMENT || !1, yt = r.RETURN_TRUSTED_TYPE || !1, Ut = r.FORCE_BODY || !1, vn = r.SANITIZE_DOM !== !1, Tn = r.SANITIZE_NAMED_PROPS || !1, Ht = r.KEEP_CONTENT !== !1, rt = r.IN_PLACE || !1, y = vi(r.ALLOWED_URI_REGEXP) ? r.ALLOWED_URI_REGEXP : rs, Ue = typeof r.NAMESPACE == "string" ? r.NAMESPACE : ge, Yt = H(r, "MATHML_TEXT_INTEGRATION_POINTS") && r.MATHML_TEXT_INTEGRATION_POINTS && typeof r.MATHML_TEXT_INTEGRATION_POINTS == "object" ? ee(r.MATHML_TEXT_INTEGRATION_POINTS) : R({}, ["mi", "mo", "mn", "ms", "mtext"]), Vt = H(r, "HTML_INTEGRATION_POINTS") && r.HTML_INTEGRATION_POINTS && typeof r.HTML_INTEGRATION_POINTS == "object" ? ee(r.HTML_INTEGRATION_POINTS) : R({}, ["annotation-xml"]);
813
- const u = H(r, "CUSTOM_ELEMENT_HANDLING") && r.CUSTOM_ELEMENT_HANDLING && typeof r.CUSTOM_ELEMENT_HANDLING == "object" ? ee(r.CUSTOM_ELEMENT_HANDLING) : Xe(null);
814
- if (F = Xe(null), H(u, "tagNameCheck") && Rn(u.tagNameCheck) && (F.tagNameCheck = u.tagNameCheck), H(u, "attributeNameCheck") && Rn(u.attributeNameCheck) && (F.attributeNameCheck = u.attributeNameCheck), H(u, "allowCustomizedBuiltInElements") && typeof u.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = u.allowCustomizedBuiltInElements), Ae && (Bt = !1), kt && (Be = !0), Fe && (E = R({}, ns), P = Xe(null), Fe.html === !0 && (R(E, ts), R(P, ss)), Fe.svg === !0 && (R(E, Jt), R(P, nn), R(P, _t)), Fe.svgFilters === !0 && (R(E, en), R(P, nn), R(P, _t)), Fe.mathMl === !0 && (R(E, tn), R(P, is), R(P, _t))), Se.tagCheck = null, Se.attributeCheck = null, H(r, "ADD_TAGS") && (typeof r.ADD_TAGS == "function" ? Se.tagCheck = r.ADD_TAGS : se(r.ADD_TAGS) && (E === X && (E = ee(E)), R(E, r.ADD_TAGS, W))), H(r, "ADD_ATTR") && (typeof r.ADD_ATTR == "function" ? Se.attributeCheck = r.ADD_ATTR : se(r.ADD_ATTR) && (P === Pe && (P = ee(P)), R(P, r.ADD_ATTR, W))), H(r, "ADD_URI_SAFE_ATTR") && se(r.ADD_URI_SAFE_ATTR) && R(Gt, r.ADD_URI_SAFE_ATTR, W), H(r, "FORBID_CONTENTS") && se(r.FORBID_CONTENTS) && (fe === jt && (fe = ee(fe)), R(fe, r.FORBID_CONTENTS, W)), H(r, "ADD_FORBID_CONTENTS") && se(r.ADD_FORBID_CONTENTS) && (fe === jt && (fe = ee(fe)), R(fe, r.ADD_FORBID_CONTENTS, W)), Ht && (E["#text"] = !0), Ce && R(E, ["html", "head", "body"]), E.table && (R(E, ["tbody"]), delete st.tbody), r.TRUSTED_TYPES_POLICY) {
811
+ (!r || typeof r != "object") && (r = {}), r = te(r), at = // eslint-disable-next-line unicorn/prefer-includes
812
+ Ms.indexOf(r.PARSER_MEDIA_TYPE) === -1 ? Ls : r.PARSER_MEDIA_TYPE, W = at === "application/xhtml+xml" ? Kt : ht, E = H(r, "ALLOWED_TAGS") && se(r.ALLOWED_TAGS) ? R({}, r.ALLOWED_TAGS, W) : X, P = H(r, "ALLOWED_ATTR") && se(r.ALLOWED_ATTR) ? R({}, r.ALLOWED_ATTR, W) : Pe, qt = H(r, "ALLOWED_NAMESPACES") && se(r.ALLOWED_NAMESPACES) ? R({}, r.ALLOWED_NAMESPACES, Kt) : Ds, Gt = H(r, "ADD_URI_SAFE_ATTR") && se(r.ADD_URI_SAFE_ATTR) ? R(te(_n), r.ADD_URI_SAFE_ATTR, W) : _n, An = H(r, "ADD_DATA_URI_TAGS") && se(r.ADD_DATA_URI_TAGS) ? R(te(En), r.ADD_DATA_URI_TAGS, W) : En, fe = H(r, "FORBID_CONTENTS") && se(r.FORBID_CONTENTS) ? R({}, r.FORBID_CONTENTS, W) : jt, st = H(r, "FORBID_TAGS") && se(r.FORBID_TAGS) ? R({}, r.FORBID_TAGS, W) : te({}), xt = H(r, "FORBID_ATTR") && se(r.FORBID_ATTR) ? R({}, r.FORBID_ATTR, W) : te({}), Fe = H(r, "USE_PROFILES") ? r.USE_PROFILES && typeof r.USE_PROFILES == "object" ? te(r.USE_PROFILES) : r.USE_PROFILES : !1, kn = r.ALLOW_ARIA_ATTR !== !1, Bt = r.ALLOW_DATA_ATTR !== !1, yn = r.ALLOW_UNKNOWN_PROTOCOLS || !1, wn = r.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = r.SAFE_FOR_TEMPLATES || !1, it = r.SAFE_FOR_XML !== !1, Ce = r.WHOLE_DOCUMENT || !1, Be = r.RETURN_DOM || !1, kt = r.RETURN_DOM_FRAGMENT || !1, yt = r.RETURN_TRUSTED_TYPE || !1, Ut = r.FORCE_BODY || !1, vn = r.SANITIZE_DOM !== !1, Tn = r.SANITIZE_NAMED_PROPS || !1, Ht = r.KEEP_CONTENT !== !1, rt = r.IN_PLACE || !1, y = vi(r.ALLOWED_URI_REGEXP) ? r.ALLOWED_URI_REGEXP : rs, Ue = typeof r.NAMESPACE == "string" ? r.NAMESPACE : ge, Yt = H(r, "MATHML_TEXT_INTEGRATION_POINTS") && r.MATHML_TEXT_INTEGRATION_POINTS && typeof r.MATHML_TEXT_INTEGRATION_POINTS == "object" ? te(r.MATHML_TEXT_INTEGRATION_POINTS) : R({}, ["mi", "mo", "mn", "ms", "mtext"]), Vt = H(r, "HTML_INTEGRATION_POINTS") && r.HTML_INTEGRATION_POINTS && typeof r.HTML_INTEGRATION_POINTS == "object" ? te(r.HTML_INTEGRATION_POINTS) : R({}, ["annotation-xml"]);
813
+ const u = H(r, "CUSTOM_ELEMENT_HANDLING") && r.CUSTOM_ELEMENT_HANDLING && typeof r.CUSTOM_ELEMENT_HANDLING == "object" ? te(r.CUSTOM_ELEMENT_HANDLING) : Xe(null);
814
+ if (F = Xe(null), H(u, "tagNameCheck") && Rn(u.tagNameCheck) && (F.tagNameCheck = u.tagNameCheck), H(u, "attributeNameCheck") && Rn(u.attributeNameCheck) && (F.attributeNameCheck = u.attributeNameCheck), H(u, "allowCustomizedBuiltInElements") && typeof u.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = u.allowCustomizedBuiltInElements), Ae && (Bt = !1), kt && (Be = !0), Fe && (E = R({}, ns), P = Xe(null), Fe.html === !0 && (R(E, ts), R(P, ss)), Fe.svg === !0 && (R(E, Jt), R(P, nn), R(P, _t)), Fe.svgFilters === !0 && (R(E, en), R(P, nn), R(P, _t)), Fe.mathMl === !0 && (R(E, tn), R(P, is), R(P, _t))), Se.tagCheck = null, Se.attributeCheck = null, H(r, "ADD_TAGS") && (typeof r.ADD_TAGS == "function" ? Se.tagCheck = r.ADD_TAGS : se(r.ADD_TAGS) && (E === X && (E = te(E)), R(E, r.ADD_TAGS, W))), H(r, "ADD_ATTR") && (typeof r.ADD_ATTR == "function" ? Se.attributeCheck = r.ADD_ATTR : se(r.ADD_ATTR) && (P === Pe && (P = te(P)), R(P, r.ADD_ATTR, W))), H(r, "ADD_URI_SAFE_ATTR") && se(r.ADD_URI_SAFE_ATTR) && R(Gt, r.ADD_URI_SAFE_ATTR, W), H(r, "FORBID_CONTENTS") && se(r.FORBID_CONTENTS) && (fe === jt && (fe = te(fe)), R(fe, r.FORBID_CONTENTS, W)), H(r, "ADD_FORBID_CONTENTS") && se(r.ADD_FORBID_CONTENTS) && (fe === jt && (fe = te(fe)), R(fe, r.ADD_FORBID_CONTENTS, W)), Ht && (E["#text"] = !0), Ce && R(E, ["html", "head", "body"]), E.table && (R(E, ["tbody"]), delete st.tbody), r.TRUSTED_TYPES_POLICY) {
815
815
  if (typeof r.TRUSTED_TYPES_POLICY.createHTML != "function")
816
816
  throw ct('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
817
817
  if (typeof r.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -819,7 +819,7 @@ function ys() {
819
819
  B = r.TRUSTED_TYPES_POLICY, K = B.createHTML("");
820
820
  } else
821
821
  B === void 0 && (B = Ni(f, i)), B !== null && typeof K == "string" && (K = B.createHTML(""));
822
- (q.uponSanitizeElement.length > 0 || q.uponSanitizeAttribute.length > 0) && E === X && (E = ee(E)), q.uponSanitizeAttribute.length > 0 && P === Pe && (P = ee(P)), re && re(r), He = r;
822
+ (q.uponSanitizeElement.length > 0 || q.uponSanitizeAttribute.length > 0) && E === X && (E = te(E)), q.uponSanitizeAttribute.length > 0 && P === Pe && (P = te(P)), re && re(r), He = r;
823
823
  }, "_parseConfig"), In = R({}, [...Jt, ...en, ...Ti]), Cn = R({}, [...tn, ...Si]), zs = /* @__PURE__ */ p(function(r) {
824
824
  let u = z(r);
825
825
  (!u || !u.tagName) && (u = {
@@ -915,7 +915,7 @@ function ys() {
915
915
  // makes the direct read diverge from the cached read; a clean form
916
916
  // (same-realm OR foreign-realm) has both reads pointing at the same
917
917
  // canonical NamedNodeMap.
918
- r.attributes !== ne(r) || typeof r.removeAttribute != "function" || typeof r.setAttribute != "function" || typeof r.namespaceURI != "string" || typeof r.insertBefore != "function" || typeof r.hasChildNodes != "function" || // NodeType clobbering probe. Cached Node.prototype.nodeType getter
918
+ r.attributes !== ee(r) || typeof r.removeAttribute != "function" || typeof r.setAttribute != "function" || typeof r.namespaceURI != "string" || typeof r.insertBefore != "function" || typeof r.hasChildNodes != "function" || // NodeType clobbering probe. Cached Node.prototype.nodeType getter
919
919
  // returns the integer 1 for any Element regardless of realm; direct
920
920
  // read on a clobbered form (e.g. <input name="nodeType">) returns
921
921
  // the named child element. Cheap addition — nodeType is read from
@@ -1200,7 +1200,7 @@ p(Ve, "E");
1200
1200
  function L(a, t = "") {
1201
1201
  let e = typeof a == "string" ? a : a.source, n = { replace: /* @__PURE__ */ p((i, s) => {
1202
1202
  let l = typeof s == "string" ? s : s.source;
1203
- return l = l.replace(te.caret, "$1"), e = e.replace(i, l), n;
1203
+ return l = l.replace(ne.caret, "$1"), e = e.replace(i, l), n;
1204
1204
  }, "replace"), getRegex: /* @__PURE__ */ p(() => new RegExp(e, t), "getRegex") };
1205
1205
  return n;
1206
1206
  }
@@ -1211,18 +1211,18 @@ var $i = ((a = "") => {
1211
1211
  } catch {
1212
1212
  return !1;
1213
1213
  }
1214
- })(), te = { 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__ */ p((a) => new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: Ve((a) => new RegExp(`^ {0,${a}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: Ve((a) => new RegExp(`^ {0,${a}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: Ve((a) => new RegExp(`^ {0,${a}}(?:\`\`\`|~~~)`)), headingBeginRegex: Ve((a) => new RegExp(`^ {0,${a}}#`)), htmlBeginRegex: Ve((a) => new RegExp(`^ {0,${a}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: Ve((a) => new RegExp(`^ {0,${a}}>`)) }, Pi = /^(?:[ \t]*(?:\n|$))+/, Bi = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Fi = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, dt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ui = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, un = / {0,3}(?:[*+-]|\d{1,9}[.)])/, vs = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ts = L(vs).replace(/bull/g, un).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(), Hi = L(vs).replace(/bull/g, un).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(), hn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ji = /^[^\n]+/, pn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Gi = L(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", pn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Wi = L(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, un).getRegex(), zt = "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", dn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, qi = L("^ {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", dn).replace("tag", zt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ss = L(hn).replace("hr", dt).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", zt).getRegex(), Yi = L(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ss).getRegex(), fn = { blockquote: Yi, code: Bi, def: Gi, fences: Fi, heading: Ui, hr: dt, html: qi, lheading: Ts, list: Wi, newline: Pi, paragraph: Ss, table: Oe, text: ji }, ls = L("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", dt).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", zt).getRegex(), Vi = { ...fn, lheading: Hi, table: ls, paragraph: L(hn).replace("hr", dt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ls).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", zt).getRegex() }, Zi = { ...fn, html: L(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", dn).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: Oe, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: L(hn).replace("hr", dt).replace("heading", ` *#{1,6} *[^
1214
+ })(), ne = { 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__ */ p((a) => new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: Ve((a) => new RegExp(`^ {0,${a}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: Ve((a) => new RegExp(`^ {0,${a}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: Ve((a) => new RegExp(`^ {0,${a}}(?:\`\`\`|~~~)`)), headingBeginRegex: Ve((a) => new RegExp(`^ {0,${a}}#`)), htmlBeginRegex: Ve((a) => new RegExp(`^ {0,${a}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: Ve((a) => new RegExp(`^ {0,${a}}>`)) }, Pi = /^(?:[ \t]*(?:\n|$))+/, Bi = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Fi = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, dt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ui = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, un = / {0,3}(?:[*+-]|\d{1,9}[.)])/, vs = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ts = L(vs).replace(/bull/g, un).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(), Hi = L(vs).replace(/bull/g, un).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(), hn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ji = /^[^\n]+/, pn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Gi = L(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", pn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Wi = L(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, un).getRegex(), zt = "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", dn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, qi = L("^ {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", dn).replace("tag", zt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ss = L(hn).replace("hr", dt).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", zt).getRegex(), Yi = L(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ss).getRegex(), fn = { blockquote: Yi, code: Bi, def: Gi, fences: Fi, heading: Ui, hr: dt, html: qi, lheading: Ts, list: Wi, newline: Pi, paragraph: Ss, table: Oe, text: ji }, ls = L("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", dt).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", zt).getRegex(), Vi = { ...fn, lheading: Hi, table: ls, paragraph: L(hn).replace("hr", dt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ls).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", zt).getRegex() }, Zi = { ...fn, html: L(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", dn).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: Oe, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: L(hn).replace("hr", dt).replace("heading", ` *#{1,6} *[^
1215
1215
  ]`).replace("lheading", Ts).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Xi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Qi = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, As = /^( {2,}|\\)\n(?!\s*$)/, Ki = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, tt = /[\p{P}\p{S}]/u, $t = /[\s\p{P}\p{S}]/u, gn = /[^\s\p{P}\p{S}]/u, Ji = L(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, $t).getRegex(), Es = /(?!~)[\p{P}\p{S}]/u, er = /(?!~)[\s\p{P}\p{S}]/u, tr = /(?:[^\s\p{P}\p{S}]|~)/u, nr = L(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", $i ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), _s = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, sr = L(_s, "u").replace(/punct/g, tt).getRegex(), ir = L(_s, "u").replace(/punct/g, Es).getRegex(), Rs = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", rr = L(Rs, "gu").replace(/notPunctSpace/g, gn).replace(/punctSpace/g, $t).replace(/punct/g, tt).getRegex(), ar = L(Rs, "gu").replace(/notPunctSpace/g, tr).replace(/punctSpace/g, er).replace(/punct/g, Es).getRegex(), lr = L("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, gn).replace(/punctSpace/g, $t).replace(/punct/g, tt).getRegex(), or = L(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, tt).getRegex(), cr = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", ur = L(cr, "gu").replace(/notPunctSpace/g, gn).replace(/punctSpace/g, $t).replace(/punct/g, tt).getRegex(), hr = L(/\\(punct)/, "gu").replace(/punct/g, tt).getRegex(), pr = L(/^<(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(), dr = L(dn).replace("(?:-->|$)", "-->").getRegex(), fr = L("^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", dr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ot = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, gr = L(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Ot).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Is = L(/^!?\[(label)\]\[(ref)\]/).replace("label", Ot).replace("ref", pn).getRegex(), Cs = L(/^!?\[(ref)\](?:\[\])?/).replace("ref", pn).getRegex(), mr = L("reflink|nolink(?!\\()", "g").replace("reflink", Is).replace("nolink", Cs).getRegex(), os = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, mn = { _backpedal: Oe, anyPunctuation: hr, autolink: pr, blockSkip: nr, br: As, code: Qi, del: Oe, delLDelim: Oe, delRDelim: Oe, emStrongLDelim: sr, emStrongRDelimAst: rr, emStrongRDelimUnd: lr, escape: Xi, link: gr, nolink: Cs, punctuation: Ji, reflink: Is, reflinkSearch: mr, tag: fr, text: Ki, url: Oe }, br = { ...mn, link: L(/^!?\[(label)\]\((.*?)\)/).replace("label", Ot).getRegex(), reflink: L(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Ot).getRegex() }, ln = { ...mn, emStrongRDelimAst: ar, emStrongLDelim: ir, delLDelim: or, delRDelim: ur, url: L(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", os).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: L(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", os).getRegex() }, xr = { ...ln, br: L(As).replace("{2,}", "*").getRegex(), text: L(ln.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Rt = { normal: fn, gfm: Vi, pedantic: Zi }, ut = { normal: mn, gfm: ln, breaks: xr, pedantic: br }, kr = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, cs = /* @__PURE__ */ p((a) => kr[a], "ge");
1216
1216
  function ke(a, t) {
1217
1217
  if (t) {
1218
- if (te.escapeTest.test(a)) return a.replace(te.escapeReplace, cs);
1219
- } else if (te.escapeTestNoEncode.test(a)) return a.replace(te.escapeReplaceNoEncode, cs);
1218
+ if (ne.escapeTest.test(a)) return a.replace(ne.escapeReplace, cs);
1219
+ } else if (ne.escapeTestNoEncode.test(a)) return a.replace(ne.escapeReplaceNoEncode, cs);
1220
1220
  return a;
1221
1221
  }
1222
1222
  p(ke, "O");
1223
1223
  function us(a) {
1224
1224
  try {
1225
- a = encodeURI(a).replace(te.percentDecode, "%");
1225
+ a = encodeURI(a).replace(ne.percentDecode, "%");
1226
1226
  } catch {
1227
1227
  return null;
1228
1228
  }
@@ -1230,14 +1230,14 @@ function us(a) {
1230
1230
  }
1231
1231
  p(us, "V");
1232
1232
  function hs(a, t) {
1233
- let e = a.replace(te.findPipe, (s, l, o) => {
1233
+ let e = a.replace(ne.findPipe, (s, l, o) => {
1234
1234
  let h = !1, c = l;
1235
1235
  for (; --c >= 0 && o[c] === "\\"; ) h = !h;
1236
1236
  return h ? "|" : " |";
1237
- }), n = e.split(te.splitPipe), i = 0;
1237
+ }), n = e.split(ne.splitPipe), i = 0;
1238
1238
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
1239
1239
  else for (; n.length < t; ) n.push("");
1240
- for (; i < n.length; i++) n[i] = n[i].trim().replace(te.slashPipe, "|");
1240
+ for (; i < n.length; i++) n[i] = n[i].trim().replace(ne.slashPipe, "|");
1241
1241
  return n;
1242
1242
  }
1243
1243
  p(hs, "Y");
@@ -1253,7 +1253,7 @@ p(Ee, "$");
1253
1253
  function ps(a) {
1254
1254
  let t = a.split(`
1255
1255
  `), e = t.length - 1;
1256
- for (; e >= 0 && te.blankLine.test(t[e]); ) e--;
1256
+ for (; e >= 0 && ne.blankLine.test(t[e]); ) e--;
1257
1257
  return t.length - e <= 2 ? a : t.slice(0, e + 1).join(`
1258
1258
  `);
1259
1259
  }
@@ -1394,15 +1394,15 @@ ${f}` : f;
1394
1394
  `, 1)[0], k = !g.trim(), A = 0;
1395
1395
  if (this.options.pedantic ? (A = 2, f = g.trimStart()) : k ? A = e[1].length + 1 : (A = g.search(this.rules.other.nonSpaceChar), A = A > 4 ? 1 : A, f = g.slice(A), A += e[1].length), k && this.rules.other.blankLine.test(w) && (x += w + `
1396
1396
  `, t = t.substring(w.length + 1), c = !0), !c) {
1397
- let C = this.rules.other.nextBulletRegex(A), z = this.rules.other.hrRegex(A), Z = this.rules.other.fencesBeginRegex(A), ne = this.rules.other.headingBeginRegex(A), G = this.rules.other.htmlBeginRegex(A), ae = this.rules.other.blockquoteBeginRegex(A);
1397
+ let C = this.rules.other.nextBulletRegex(A), z = this.rules.other.hrRegex(A), Z = this.rules.other.fencesBeginRegex(A), ee = this.rules.other.headingBeginRegex(A), G = this.rules.other.htmlBeginRegex(A), ae = this.rules.other.blockquoteBeginRegex(A);
1398
1398
  for (; t; ) {
1399
1399
  let B = t.split(`
1400
1400
  `, 1)[0], K;
1401
- if (w = B, this.options.pedantic ? (w = w.replace(this.rules.other.listReplaceNesting, " "), K = w) : K = w.replace(this.rules.other.tabCharGlobal, " "), Z.test(w) || ne.test(w) || G.test(w) || ae.test(w) || C.test(w) || z.test(w)) break;
1401
+ if (w = B, this.options.pedantic ? (w = w.replace(this.rules.other.listReplaceNesting, " "), K = w) : K = w.replace(this.rules.other.tabCharGlobal, " "), Z.test(w) || ee.test(w) || G.test(w) || ae.test(w) || C.test(w) || z.test(w)) break;
1402
1402
  if (K.search(this.rules.other.nonSpaceChar) >= A || !w.trim()) f += `
1403
1403
  ` + K.slice(A);
1404
1404
  else {
1405
- if (k || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Z.test(g) || ne.test(g) || z.test(g)) break;
1405
+ if (k || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Z.test(g) || ee.test(g) || z.test(g)) break;
1406
1406
  f += `
1407
1407
  ` + w;
1408
1408
  }
@@ -1624,7 +1624,7 @@ ${f}` : f;
1624
1624
  O(this, "inlineQueue");
1625
1625
  O(this, "tokenizer");
1626
1626
  this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || Le, 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 };
1627
- let e = { other: te, block: Rt.normal, inline: ut.normal };
1627
+ let e = { other: ne, block: Rt.normal, inline: ut.normal };
1628
1628
  this.options.pedantic ? (e.block = Rt.pedantic, e.inline = ut.pedantic) : this.options.gfm && (e.block = Rt.gfm, this.options.breaks ? e.inline = ut.breaks : e.inline = ut.gfm), this.tokenizer.rules = e;
1629
1629
  }
1630
1630
  static get rules() {
@@ -1637,7 +1637,7 @@ ${f}` : f;
1637
1637
  return new Re(e).inlineTokens(t);
1638
1638
  }
1639
1639
  lex(t) {
1640
- t = t.replace(te.carriageReturn, `
1640
+ t = t.replace(ne.carriageReturn, `
1641
1641
  `), this.blockTokens(t, this.tokens);
1642
1642
  for (let e = 0; e < this.inlineQueue.length; e++) {
1643
1643
  let n = this.inlineQueue[e];
@@ -1646,7 +1646,7 @@ ${f}` : f;
1646
1646
  return this.inlineQueue = [], this.tokens;
1647
1647
  }
1648
1648
  blockTokens(t, e = [], n = !1) {
1649
- this.tokenizer.lexer = this, this.options.pedantic && (t = t.replace(te.tabCharGlobal, " ").replace(te.spaceLine, ""));
1649
+ this.tokenizer.lexer = this, this.options.pedantic && (t = t.replace(ne.tabCharGlobal, " ").replace(ne.spaceLine, ""));
1650
1650
  let i = 1 / 0;
1651
1651
  for (; t; ) {
1652
1652
  if (t.length < i) i = t.length;
@@ -1845,7 +1845,7 @@ ${f}` : f;
1845
1845
  return "";
1846
1846
  }
1847
1847
  code({ text: t, lang: e, escaped: n }) {
1848
- let i = (e || "").match(te.notSpaceStart)?.[0], s = t.replace(te.endingNewline, "") + `
1848
+ let i = (e || "").match(ne.notSpaceStart)?.[0], s = t.replace(ne.endingNewline, "") + `
1849
1849
  `;
1850
1850
  return i ? '<pre><code class="language-' + ke(i) + '">' + (n ? s : ke(s, !0)) + `</code></pre>
1851
1851
  ` : "<pre><code>" + (n ? s : ke(s, !0)) + `</code></pre>
@@ -2429,12 +2429,13 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2429
2429
  }), (c, x) => (T(), S("div", {
2430
2430
  ref_key: "viewport",
2431
2431
  ref: e,
2432
- class: "overflow-y-auto overflow-x-hidden min-h-0 [overflow-anchor:none] [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",
2432
+ class: "overflow-y-auto overflow-x-hidden min-h-0 flex flex-col [overflow-anchor:none] [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",
2433
2433
  onScrollPassive: o
2434
2434
  }, [
2435
2435
  v("div", {
2436
2436
  ref_key: "content",
2437
- ref: n
2437
+ ref: n,
2438
+ class: "flex-1 flex flex-col"
2438
2439
  }, [
2439
2440
  on(c.$slots, "default")
2440
2441
  ], 512)
@@ -2443,32 +2444,32 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2443
2444
  }), _r = { class: "@container/chat flex flex-col h-full relative" }, Rr = {
2444
2445
  key: 0,
2445
2446
  class: "pb-4"
2446
- }, Ir = { class: "pt-4 pb-[120px] px-3 space-y-1" }, Cr = {
2447
+ }, Ir = {
2447
2448
  key: 0,
2448
2449
  class: "flex flex-col items-center justify-center px-4 min-h-full"
2449
- }, Dr = { class: "relative mb-4 size-20 @sm/chat:size-24" }, Or = ["src", "alt"], Mr = ["title"], Lr = {
2450
+ }, Cr = { class: "relative mb-4 size-20 @sm/chat:size-24" }, Dr = ["src", "alt"], Or = ["title"], Mr = {
2450
2451
  key: 0,
2451
2452
  class: "flex items-center gap-3 py-3 px-2"
2452
- }, Nr = ["data-issue-code", "data-issue-bucket"], zr = { class: "max-w-[85%] min-w-0" }, $r = ["href"], Pr = ["data-test"], Br = {
2453
+ }, Lr = ["data-issue-code", "data-issue-bucket"], Nr = { class: "max-w-[85%] min-w-0" }, zr = ["href"], $r = ["data-test"], Pr = {
2453
2454
  key: 0,
2454
2455
  class: "flex-shrink-0 size-7 @sm/chat:size-8"
2455
- }, Fr = ["src", "alt"], Ur = ["src", "alt"], Hr = ["src"], jr = ["href"], Gr = {
2456
+ }, Br = ["src", "alt"], Fr = ["src", "alt"], Ur = ["src"], Hr = ["href"], jr = {
2456
2457
  key: 1,
2457
2458
  "data-test": "messaging-thinking-indicator",
2458
2459
  class: "flex gap-2 justify-start items-center mb-4"
2459
- }, Wr = ["src", "alt"], qr = {
2460
+ }, Gr = ["src", "alt"], Wr = {
2460
2461
  key: 0,
2461
2462
  class: "flex items-center gap-2 px-2 pb-2 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
2462
- }, Yr = ["src", "alt"], Vr = { class: "max-w-20 truncate" }, Zr = ["onClick"], Xr = {
2463
+ }, qr = ["src", "alt"], Yr = { class: "max-w-20 truncate" }, Vr = ["onClick"], Zr = {
2463
2464
  key: 0,
2464
2465
  class: "shrink-0 flex items-center justify-center size-14"
2465
- }, Qr = ["disabled"], Kr = {
2466
+ }, Xr = ["disabled"], Qr = {
2466
2467
  key: 0,
2467
2468
  class: "i-svg-spinners-ring-resize size-4"
2468
- }, Jr = {
2469
+ }, Kr = {
2469
2470
  key: 1,
2470
2471
  class: "i-tabler-paperclip size-5"
2471
- }, ea = ["placeholder", "disabled"], ta = ["disabled"], da = /* @__PURE__ */ ve({
2472
+ }, Jr = ["placeholder", "disabled"], ea = ["disabled"], pa = /* @__PURE__ */ ve({
2472
2473
  __name: "ElAgentChat",
2473
2474
  props: {
2474
2475
  chatController: {},
@@ -2502,9 +2503,9 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2502
2503
  return !E || E.sender !== y.sender;
2503
2504
  }
2504
2505
  p(g, "shouldShowAvatar");
2505
- const w = j(() => a.chatController?.textState.value), k = j(() => w.value?.isConnected ?? !1), A = j(() => w.value?.isThinking ?? !1), C = j(() => w.value?.connectionStatus === "disconnected" && !!w.value?.error), z = j(() => w.value?.connectionStatus !== "connected" && !w.value?.error), Z = j(() => w.value?.error), ne = j(() => a.chatController?.sharedMessages.value ?? []), G = j(() => {
2506
+ const w = j(() => a.chatController?.textState.value), k = j(() => w.value?.isConnected ?? !1), A = j(() => w.value?.isThinking ?? !1), C = j(() => w.value?.connectionStatus === "disconnected" && !!w.value?.error), z = j(() => w.value?.connectionStatus !== "connected" && !w.value?.error), Z = j(() => w.value?.error), ee = j(() => a.chatController?.sharedMessages.value ?? []), G = j(() => {
2506
2507
  if (!A.value) return;
2507
- const I = ne.value, m = I[I.length - 1];
2508
+ const I = ee.value, m = I[I.length - 1];
2508
2509
  return m?.sender === "agent" || m?.sender === "system" ? m.id : void 0;
2509
2510
  }), ae = j(() => A.value ? G.value === void 0 : !1), B = j(() => w.value?.sendBlockedReason), K = j(() => !k.value || B.value !== void 0), ye = j(() => C.value ? "Agent is offline" : z.value ? "Connecting..." : B.value === "agent_deleted" ? "This assistant was deleted" : B.value === "account" ? "Resolve the billing issue above to continue" : "Message"), Te = j(() => (n.value.trim() || h.value.length > 0) && !K.value && !c.value), M = j(() => a.variant === "light"), ft = j(
2510
2511
  () => M.value ? "bg-gradient-to-r from-transparent via-black/5 to-transparent" : "bg-gradient-to-r from-transparent via-white/5 to-transparent"
@@ -2610,14 +2611,16 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2610
2611
  class: "flex-1"
2611
2612
  }, {
2612
2613
  default: Fs(() => [
2613
- v("div", Ir, [
2614
- ne.value.length === 0 && !z.value && !C.value ? (T(), S("div", Cr, [
2615
- v("div", Dr, [
2614
+ v("div", {
2615
+ class: _(ee.value.length === 0 ? "flex-1 flex flex-col items-center justify-center px-3" : "pt-4 pb-[120px] px-3 space-y-1")
2616
+ }, [
2617
+ ee.value.length === 0 && !z.value && !C.value ? (T(), S("div", Ir, [
2618
+ v("div", Cr, [
2616
2619
  v("img", {
2617
2620
  src: a.agent.avatarUrl.value,
2618
2621
  alt: a.agent.displayName.value,
2619
2622
  class: _(["size-full rounded-full object-cover ring-1", M.value ? "ring-black/5" : "ring-white/10"])
2620
- }, null, 10, Or),
2623
+ }, null, 10, Dr),
2621
2624
  k.value ? (T(), S("span", {
2622
2625
  key: 0,
2623
2626
  class: _(["absolute top-[85%] left-[85%] -translate-x-1/2 -translate-y-1/2 size-[18%] min-w-2.5 min-h-2.5 flex items-center justify-center rounded-full", M.value ? "bg-white" : "bg-theme-900"])
@@ -2639,18 +2642,18 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2639
2642
  class: _([e.value.icon, "size-3"])
2640
2643
  }, null, 2),
2641
2644
  v("span", null, he(e.value.label), 1)
2642
- ], 10, Mr)
2645
+ ], 10, Or)
2643
2646
  ])) : V("", !0),
2644
- (T(!0), S(Ze, null, Qt(ne.value, (y, E) => (T(), S(Ze, {
2647
+ (T(!0), S(Ze, null, Qt(ee.value, (y, E) => (T(), S(Ze, {
2645
2648
  key: y.id
2646
2649
  }, [
2647
- mt(ne.value, E) ? (T(), S("div", Lr, [
2650
+ mt(ee.value, E) ? (T(), S("div", Mr, [
2648
2651
  v("div", {
2649
2652
  class: _(["flex-1 h-px", ft.value])
2650
2653
  }, null, 2),
2651
2654
  v("span", {
2652
2655
  class: _(["text-[10px] @sm/chat:text-[11px] font-medium shrink-0 tracking-widest uppercase", nt.value])
2653
- }, he(mt(ne.value, E)), 3),
2656
+ }, he(mt(ee.value, E)), 3),
2654
2657
  v("div", {
2655
2658
  class: _(["flex-1 h-px", ft.value])
2656
2659
  }, null, 2)
@@ -2662,7 +2665,7 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2662
2665
  "data-issue-bucket": y.issue?.bucket,
2663
2666
  class: "flex gap-2 items-end justify-start mb-4"
2664
2667
  }, [
2665
- v("div", zr, [
2668
+ v("div", Nr, [
2666
2669
  v("div", {
2667
2670
  class: _(["mb-1 pl-1 text-[11px] font-medium", M.value ? "text-theme-500" : "text-white/45"])
2668
2671
  }, " System Message ", 2),
@@ -2691,10 +2694,10 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2691
2694
  }, [
2692
2695
  Hn(he(y.issue.actionLabel) + " ", 1),
2693
2696
  m[11] || (m[11] = v("i", { class: "i-tabler-arrow-right size-3" }, null, -1))
2694
- ], 10, $r)) : V("", !0)
2697
+ ], 10, zr)) : V("", !0)
2695
2698
  ], 2)
2696
2699
  ])
2697
- ], 8, Nr)) : y.sender === "system" ? (T(), S("div", {
2700
+ ], 8, Lr)) : y.sender === "system" ? (T(), S("div", {
2698
2701
  key: 2,
2699
2702
  "data-test": "messaging-system-status-msg",
2700
2703
  class: _(["flex items-start gap-2 px-3 py-2 text-[13px] leading-relaxed", M.value ? "text-theme-500" : "text-white/60"])
@@ -2712,16 +2715,16 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2712
2715
  class: _(["flex gap-2 items-end", {
2713
2716
  "justify-end": y.sender === "user",
2714
2717
  "justify-start": y.sender === "agent",
2715
- "mb-4": g(ne.value, E)
2718
+ "mb-4": g(ee.value, E)
2716
2719
  }])
2717
2720
  }, [
2718
- y.sender === "agent" ? (T(), S("div", Br, [
2719
- g(ne.value, E) ? (T(), S("img", {
2721
+ y.sender === "agent" ? (T(), S("div", Pr, [
2722
+ g(ee.value, E) ? (T(), S("img", {
2720
2723
  key: 0,
2721
2724
  src: a.agent.avatarUrl.value,
2722
2725
  alt: a.agent.displayName.value,
2723
2726
  class: _(["size-6 @sm/chat:size-7 rounded-full object-cover shadow-sm", M.value ? "ring-1 ring-black/5" : ""])
2724
- }, null, 10, Fr)) : V("", !0)
2727
+ }, null, 10, Br)) : V("", !0)
2725
2728
  ])) : V("", !0),
2726
2729
  v("div", {
2727
2730
  class: _(y.sender === "user" ? "max-w-[75%]" : "max-w-[85%]")
@@ -2736,12 +2739,12 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2736
2739
  src: X.src,
2737
2740
  alt: X.filename,
2738
2741
  class: "rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"
2739
- }, null, 8, Ur)) : X.type === "audio" ? (T(), S("audio", {
2742
+ }, null, 8, Fr)) : X.type === "audio" ? (T(), S("audio", {
2740
2743
  key: 1,
2741
2744
  src: X.src,
2742
2745
  controls: "",
2743
2746
  class: "max-w-full"
2744
- }, null, 8, Hr)) : (T(), S("a", {
2747
+ }, null, 8, Ur)) : (T(), S("a", {
2745
2748
  key: 2,
2746
2749
  href: X.src,
2747
2750
  target: "_blank",
@@ -2750,7 +2753,7 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2750
2753
  }, [
2751
2754
  m[13] || (m[13] = v("i", { class: "i-tabler-file size-3.5" }, null, -1)),
2752
2755
  Hn(" " + he(X.filename), 1)
2753
- ], 10, jr))
2756
+ ], 10, Hr))
2754
2757
  ], 64))), 128))
2755
2758
  ], 2)) : V("", !0),
2756
2759
  y.text ? (T(), S("div", {
@@ -2768,14 +2771,14 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2768
2771
  }, null, 8, ["text", "inverted", "streaming"])
2769
2772
  ], 2)) : V("", !0)
2770
2773
  ], 2)
2771
- ], 10, Pr))
2774
+ ], 10, $r))
2772
2775
  ], 64))), 128)),
2773
- ae.value ? (T(), S("div", Gr, [
2776
+ ae.value ? (T(), S("div", jr, [
2774
2777
  v("img", {
2775
2778
  src: a.agent.avatarUrl.value,
2776
2779
  alt: a.agent.displayName.value,
2777
2780
  class: _(["size-7 @sm/chat:size-8 flex-shrink-0 rounded-full object-cover shadow-sm", M.value ? "ring-1 ring-black/5" : ""])
2778
- }, null, 10, Wr),
2781
+ }, null, 10, Gr),
2779
2782
  v("div", {
2780
2783
  class: _(["rounded-2xl px-3.5 py-2.5 flex items-center", M.value ? "bg-theme-100" : "bg-white/15 backdrop-blur-sm"])
2781
2784
  }, [
@@ -2784,14 +2787,14 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2784
2787
  }, null, 2)
2785
2788
  ], 2)
2786
2789
  ])) : V("", !0)
2787
- ])
2790
+ ], 2)
2788
2791
  ]),
2789
2792
  _: 1
2790
2793
  }, 512),
2791
2794
  v("div", {
2792
2795
  class: _(["absolute bottom-0 left-0 right-0 z-30 px-5 pb-4 pt-3", M.value ? "bg-gradient-to-t from-theme-50/90 via-theme-50/55 to-transparent" : "bg-gradient-to-t from-black/80 via-black/70 to-black/40"])
2793
2796
  }, [
2794
- h.value.length > 0 ? (T(), S("div", qr, [
2797
+ h.value.length > 0 ? (T(), S("div", Wr, [
2795
2798
  (T(!0), S(Ze, null, Qt(h.value, (y, E) => (T(), S("div", {
2796
2799
  key: E,
2797
2800
  class: "relative shrink-0 group"
@@ -2801,21 +2804,21 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2801
2804
  src: y.src,
2802
2805
  alt: y.filename,
2803
2806
  class: _(["size-14 rounded-xl object-cover border", M.value ? "border-black/10" : "border-white/20"])
2804
- }, null, 10, Yr)) : (T(), S("div", {
2807
+ }, null, 10, qr)) : (T(), S("div", {
2805
2808
  key: 1,
2806
2809
  class: _(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border", M.value ? "border-black/10 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
2807
2810
  }, [
2808
2811
  m[14] || (m[14] = v("i", { class: "i-tabler-file size-4" }, null, -1)),
2809
- v("span", Vr, he(y.filename), 1)
2812
+ v("span", Yr, he(y.filename), 1)
2810
2813
  ], 2)),
2811
2814
  v("button", {
2812
2815
  class: "absolute -top-1.5 -right-1.5 size-5 flex items-center justify-center rounded-full bg-theme-800 text-white text-xs scale-0 group-hover:scale-100 transition-transform cursor-pointer",
2813
2816
  onClick: /* @__PURE__ */ p((X) => Pt(E), "onClick")
2814
2817
  }, [...m[15] || (m[15] = [
2815
2818
  v("i", { class: "i-tabler-x size-3" }, null, -1)
2816
- ])], 8, Zr)
2819
+ ])], 8, Vr)
2817
2820
  ]))), 128)),
2818
- c.value ? (T(), S("div", Xr, [
2821
+ c.value ? (T(), S("div", Zr, [
2819
2822
  Ge(jn, { class: "size-5" })
2820
2823
  ])) : V("", !0)
2821
2824
  ])) : V("", !0),
@@ -2840,8 +2843,8 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2840
2843
  disabled: K.value || c.value || !a.uploadFn,
2841
2844
  onClick: m[4] || (m[4] = (y) => a.uploadFn && ze())
2842
2845
  }, [
2843
- c.value ? (T(), S("i", Kr)) : (T(), S("i", Jr))
2844
- ], 10, Qr),
2846
+ c.value ? (T(), S("i", Qr)) : (T(), S("i", Kr))
2847
+ ], 10, Xr),
2845
2848
  Us(v("textarea", {
2846
2849
  ref_key: "textarea",
2847
2850
  ref: l,
@@ -2856,7 +2859,7 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2856
2859
  onKeydown: q,
2857
2860
  onFocus: m[6] || (m[6] = (y) => i.value = !0),
2858
2861
  onBlur: m[7] || (m[7] = (y) => i.value = !1)
2859
- }, null, 42, ea), [
2862
+ }, null, 42, Jr), [
2860
2863
  [Hs, n.value]
2861
2864
  ]),
2862
2865
  v("button", {
@@ -2866,15 +2869,15 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2866
2869
  onClick: m[8] || (m[8] = (y) => gt())
2867
2870
  }, [...m[16] || (m[16] = [
2868
2871
  v("i", { class: "i-tabler-arrow-up size-5" }, null, -1)
2869
- ])], 10, ta)
2872
+ ])], 10, ea)
2870
2873
  ], 2)
2871
2874
  ], 2)
2872
2875
  ]));
2873
2876
  }
2874
- }), na = { class: "agent-wrap" }, sa = {
2877
+ }), ta = { class: "agent-wrap" }, na = {
2875
2878
  key: 0,
2876
2879
  class: "flex items-center justify-center h-full"
2877
- }, fa = /* @__PURE__ */ ve({
2880
+ }, da = /* @__PURE__ */ ve({
2878
2881
  __name: "AgentWrap",
2879
2882
  props: {
2880
2883
  sdk: {},
@@ -2968,8 +2971,8 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2968
2971
  }
2969
2972
  });
2970
2973
  }
2971
- }), (o, h) => (T(), S("div", na, [
2972
- i.value ? (T(), S("div", sa, [...h[0] || (h[0] = [
2974
+ }), (o, h) => (T(), S("div", ta, [
2975
+ i.value ? (T(), S("div", na, [...h[0] || (h[0] = [
2973
2976
  v("div", { class: "animate-spin rounded-full size-6 border-b-2 border-white" }, null, -1)
2974
2977
  ])])) : s.value ? on(o.$slots, "default", {
2975
2978
  key: 1,
@@ -2986,15 +2989,15 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2986
2989
  });
2987
2990
  export {
2988
2991
  Wn as A,
2989
- fa as _,
2990
- da as a,
2991
- ha as b,
2992
- ua as c,
2993
- pa as d,
2992
+ da as _,
2993
+ pa as a,
2994
+ ua as b,
2995
+ ca as c,
2996
+ ha as d,
2994
2997
  jn as e,
2995
2998
  ri as f,
2996
- oa as g,
2999
+ la as g,
2997
3000
  Yn as h,
2998
- ca as p
3001
+ oa as p
2999
3002
  };
3000
3003
  //# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang.js.map