@pagelines/sdk 1.0.572 → 1.0.573

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,8 +1,8 @@
1
1
  var Fn = Object.defineProperty;
2
2
  var Ps = (a, t, e) => t in a ? Fn(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
- var p = (a, t) => Fn(a, "name", { value: t, configurable: !0 });
3
+ var d = (a, t) => Fn(a, "name", { value: t, configurable: !0 });
4
4
  var O = (a, t, e) => Ps(a, typeof t != "symbol" ? t + "" : t, e);
5
- import { defineComponent as ve, openBlock as T, createElementBlock as S, createElementVNode as v, normalizeClass as _, ref as ie, watch as Ct, computed as j, createCommentVNode as V, renderSlot as on, onMounted as Nt, unref as sn, Fragment as Ze, toDisplayString as he, shallowRef as fs, onBeforeUnmount as gs, nextTick as Bs, createVNode as Ge, withCtx as Fs, renderList as Qt, createBlock as Un, withModifiers as Et, createTextVNode as Hn, withDirectives as Us, vModelText as Hs } from "vue";
5
+ import { defineComponent as ve, openBlock as T, createElementBlock as S, createElementVNode as v, normalizeClass as _, ref as ie, watch as Ct, computed as G, createCommentVNode as V, renderSlot as on, onMounted as Nt, unref as sn, Fragment as Ze, toDisplayString as he, shallowRef as fs, onBeforeUnmount as gs, nextTick as Bs, createVNode as Ge, withCtx as Fs, renderList as Kt, createBlock as Un, withModifiers as Et, createTextVNode as Hn, withDirectives as Us, vModelText as Hs } from "vue";
6
6
  import { SettingsObject as js, Agent as Dt, getDefaultAvatarUrl as ms, createLogger as Gs } from "@pagelines/core";
7
7
  import { P as Ws } from "./sdkClient.js";
8
8
  const qs = { class: "spinner max-w-sm" }, Ys = {
@@ -218,30 +218,30 @@ Current User:
218
218
  this.addMessage(e, "user", n), this.updateState(this.textState, { isThinking: !0 });
219
219
  const l = `stream-${Date.now()}`;
220
220
  let o = !1, h = !1;
221
- const c = /* @__PURE__ */ p((k, A = "assistant") => {
221
+ const c = /* @__PURE__ */ d((y, A = "assistant") => {
222
222
  o || (o = !0, this.sharedMessages.value = [
223
223
  ...this.sharedMessages.value,
224
224
  { id: l, text: "", sender: A === "system" ? "system" : "agent", timestamp: (/* @__PURE__ */ new Date()).toISOString() }
225
225
  ]);
226
226
  const C = this.sharedMessages.value, z = C[C.length - 1];
227
- z?.id === l && (z.text += k, this.sharedMessages.value = [...C]);
228
- }, "onDelta"), x = /* @__PURE__ */ p((k) => {
227
+ z?.id === l && (z.text += y, this.sharedMessages.value = [...C]);
228
+ }, "onDelta"), k = /* @__PURE__ */ d((y) => {
229
229
  h = !0, o = !0;
230
- const A = this.sharedMessages.value, C = A.findIndex((z) => z.id === k.id);
230
+ const A = this.sharedMessages.value, C = A.findIndex((z) => z.id === y.id);
231
231
  if (C >= 0)
232
232
  this.sharedMessages.value = [
233
233
  ...A.slice(0, C),
234
- k,
234
+ y,
235
235
  ...A.slice(C + 1)
236
236
  ];
237
237
  else {
238
238
  const z = A[A.length - 1];
239
- this.sharedMessages.value = z?.id === l ? [...A.slice(0, -1), k] : [...A, k];
239
+ this.sharedMessages.value = z?.id === l ? [...A.slice(0, -1), y] : [...A, y];
240
240
  }
241
- k.sender === "system" && k.issue?.bucket === "account" ? this.updateState(this.textState, { sendBlockedReason: "account" }) : k.sender === "system" && k.issue?.code && Gn.has(k.issue.code) && this.updateState(this.textState, { sendBlockedReason: "agent_deleted" });
242
- }, "onMessage"), f = /* @__PURE__ */ p((k) => {
241
+ y.sender === "system" && y.issue?.bucket === "account" ? this.updateState(this.textState, { sendBlockedReason: "account" }) : y.sender === "system" && y.issue?.code && Gn.has(y.issue.code) && this.updateState(this.textState, { sendBlockedReason: "agent_deleted" });
242
+ }, "onMessage"), g = /* @__PURE__ */ d((y) => {
243
243
  if (!o && !h) {
244
- g("empty_stream — assistant returned no content");
244
+ m("empty_stream — assistant returned no content");
245
245
  return;
246
246
  }
247
247
  const A = this.sharedMessages.value, C = A[A.length - 1];
@@ -251,39 +251,39 @@ Current User:
251
251
  Z.pattern.test(z) && (console.debug(`[chat] filtered directive: ${Z.label}`), z = z.replace(Z.pattern, "").trim(), Z.pattern.lastIndex = 0);
252
252
  z ? z !== C.text && (C.text = z, this.sharedMessages.value = [...A]) : this.sharedMessages.value = A.slice(0, -1);
253
253
  }
254
- k && (this.conversationId = k), this.updateState(this.textState, { isThinking: !1 });
255
- }, "onDone"), g = /* @__PURE__ */ p((k) => {
254
+ y && (this.conversationId = y), this.updateState(this.textState, { isThinking: !1 });
255
+ }, "onDone"), m = /* @__PURE__ */ d((y) => {
256
256
  const A = this.sharedMessages.value, C = A[A.length - 1];
257
- if (C?.id === l && !C.text && (this.sharedMessages.value = A.slice(0, -1)), typeof k == "object" && k.code && k.error) {
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
- code: k.code,
257
+ if (C?.id === l && !C.text && (this.sharedMessages.value = A.slice(0, -1)), typeof y == "object" && y.code && y.error) {
258
+ const { bucket: ee, actionUrl: H, actionLabel: ae, help: B } = y;
259
+ if (ee !== void 0 || Xs.has(y.code)) {
260
+ const ye = ee ?? (bs.has(y.code) ? "account" : "error"), Te = {
261
+ code: y.code,
262
262
  bucket: ye,
263
263
  ...ae ? { actionLabel: ae } : {},
264
- ...G ? { actionUrl: G } : {},
264
+ ...H ? { actionUrl: H } : {},
265
265
  ...B ? { help: B } : {}
266
266
  };
267
- this.addMessage(k.error, "system", void 0, Te), ye === "account" ? this.updateState(this.textState, { isThinking: !1, sendBlockedReason: "account" }) : Gn.has(k.code) ? this.updateState(this.textState, { isThinking: !1, sendBlockedReason: "agent_deleted" }) : this.updateState(this.textState, { isThinking: !1 });
267
+ this.addMessage(y.error, "system", void 0, Te), ye === "account" ? this.updateState(this.textState, { isThinking: !1, sendBlockedReason: "account" }) : Gn.has(y.code) ? this.updateState(this.textState, { isThinking: !1, sendBlockedReason: "agent_deleted" }) : this.updateState(this.textState, { isThinking: !1 });
268
268
  } else
269
- this.handleError(new Error(k.error));
269
+ this.handleError(new Error(y.error));
270
270
  return;
271
271
  }
272
- const z = typeof k == "string" ? k : k.error, Z = this.mapChatError(z);
272
+ const z = typeof y == "string" ? y : y.error, Z = this.mapChatError(z);
273
273
  this.isTransientError(z) ? (this.logger.warn("Chat turn failed (transient):", { raw: z, friendly: Z }), this.addMessage(Z, "system"), this.updateState(this.textState, { isThinking: !1 })) : this.handleError(new Error(Z), z);
274
- }, "onError"), w = /* @__PURE__ */ p((k) => {
275
- this.addMessage(k, "system");
274
+ }, "onError"), w = /* @__PURE__ */ d((y) => {
275
+ this.addMessage(y, "system");
276
276
  }, "onStatus");
277
277
  try {
278
- const k = i ? i({
278
+ const y = i ? i({
279
279
  message: e,
280
280
  attachments: n,
281
281
  conversationId: this.conversationId,
282
282
  history: this.buildHistory(),
283
283
  onDelta: c,
284
- onMessage: x,
285
- onDone: f,
286
- onError: g,
284
+ onMessage: k,
285
+ onDone: g,
286
+ onError: m,
287
287
  onStatus: w
288
288
  }) : s.chat.chatStreamPublic({
289
289
  handle: this._agent.handle.value,
@@ -292,17 +292,17 @@ Current User:
292
292
  anonymousId: s.user.generateAnonId(),
293
293
  context: this.getDynamicSettings().context || void 0,
294
294
  onDelta: c,
295
- onMessage: x,
296
- onDone: f,
297
- onError: g,
295
+ onMessage: k,
296
+ onDone: g,
297
+ onError: m,
298
298
  onStatus: w
299
299
  });
300
300
  await Promise.race([
301
- k,
301
+ y,
302
302
  new Promise((A, C) => setTimeout(() => C(new Error("timed out")), Zs))
303
303
  ]);
304
- } catch (k) {
305
- g(k.message || "Something went wrong");
304
+ } catch (y) {
305
+ m(y.message || "Something went wrong");
306
306
  }
307
307
  }
308
308
  buildHistory() {
@@ -322,30 +322,30 @@ Current User:
322
322
  await this.endConversation();
323
323
  }
324
324
  };
325
- p(xn, "AgentChatController");
325
+ d(xn, "AgentChatController");
326
326
  let Wn = xn;
327
327
  function qn(a) {
328
328
  return a ? typeof a == "string" ? a : a.src || "" : "";
329
329
  }
330
- p(qn, "getImageSrc");
331
- function la(a) {
330
+ d(qn, "getImageSrc");
331
+ function oa(a) {
332
332
  return qn(a.cover) || qn(a.avatar) || ms(a.name);
333
333
  }
334
- p(la, "getAgentAvatarUrl");
334
+ d(oa, "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
- p(Yn, "handleImageError");
340
- function oa(a) {
339
+ d(Yn, "handleImageError");
340
+ function ca(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(oa, "parseButtonTemplate");
345
- const Qs = {
344
+ d(ca, "parseButtonTemplate");
345
+ const Ks = {
346
346
  key: 0,
347
347
  class: "absolute inset-0 flex items-center justify-center"
348
- }, ca = /* @__PURE__ */ ve({
348
+ }, ua = /* @__PURE__ */ ve({
349
349
  __name: "ElAgentButton",
350
350
  props: {
351
351
  theme: { default: "primary" },
@@ -355,16 +355,16 @@ const Qs = {
355
355
  iconAfter: {}
356
356
  },
357
357
  setup(a) {
358
- const t = j(() => ({
358
+ const t = G(() => ({
359
359
  primary: "bg-primary-600 border-primary-400 hover:border-primary-300 hover:bg-primary-500",
360
360
  green: "bg-green-600 border-green-400 hover:border-green-300 hover:bg-green-500",
361
361
  red: "bg-red-600 border-red-400 hover:border-red-300 hover:bg-red-500",
362
362
  default: "bg-white/10 border-white/20 hover:border-white/40 hover:bg-white/20"
363
- })[a.theme]), e = j(() => ({
363
+ })[a.theme]), e = G(() => ({
364
364
  sm: "px-4 py-2 text-sm",
365
365
  md: "px-6 py-3 text-base",
366
366
  lg: "px-8 py-4 text-base"
367
- })[a.size]), n = j(() => ({
367
+ })[a.size]), n = G(() => ({
368
368
  sm: "size-4",
369
369
  md: "size-4",
370
370
  lg: "size-5"
@@ -372,7 +372,7 @@ const Qs = {
372
372
  return (i, s) => (T(), S("button", {
373
373
  class: _(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer", [t.value, e.value]])
374
374
  }, [
375
- a.loading ? (T(), S("div", Qs, [...s[0] || (s[0] = [
375
+ a.loading ? (T(), S("div", Ks, [...s[0] || (s[0] = [
376
376
  v("i", { class: "i-svg-spinners-90-ring-with-bg size-5" }, null, -1)
377
377
  ])])) : V("", !0),
378
378
  v("span", {
@@ -390,7 +390,7 @@ const Qs = {
390
390
  ], 2)
391
391
  ], 2));
392
392
  }
393
- }), Ks = ["value"], ua = /* @__PURE__ */ ve({
393
+ }), Qs = ["value"], ha = /* @__PURE__ */ ve({
394
394
  __name: "AgentInputEmail",
395
395
  props: {
396
396
  modelValue: { default: "" }
@@ -411,9 +411,9 @@ const Qs = {
411
411
  class: "w-full px-6 py-3 text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-colors",
412
412
  style: { "font-size": "16px" },
413
413
  onInput: i[0] || (i[0] = (s) => e("update:modelValue", s.target.value))
414
- }, null, 40, Ks));
414
+ }, null, 40, Qs));
415
415
  }
416
- }), Js = ["placeholder", "value"], ha = /* @__PURE__ */ ve({
416
+ }), Js = ["placeholder", "value"], da = /* @__PURE__ */ ve({
417
417
  __name: "AgentInputOneTimeCode",
418
418
  props: {
419
419
  modelValue: {},
@@ -422,7 +422,7 @@ const Qs = {
422
422
  },
423
423
  emits: ["update:modelValue", "autoSubmit"],
424
424
  setup(a, { emit: t }) {
425
- const e = a, n = t, i = ie(null), s = j(() => "0".repeat(e.length));
425
+ const e = a, n = t, i = ie(null), s = G(() => "0".repeat(e.length));
426
426
  Nt(() => {
427
427
  e.focusFirst && !("ontouchstart" in window) && i.value?.focus();
428
428
  });
@@ -430,7 +430,7 @@ const Qs = {
430
430
  const h = o.target.value.replace(/\D/g, "").slice(0, e.length);
431
431
  n("update:modelValue", h), h.length === e.length && n("autoSubmit", h);
432
432
  }
433
- return p(l, "onInput"), (o, h) => (T(), S("input", {
433
+ return d(l, "onInput"), (o, h) => (T(), S("input", {
434
434
  ref_key: "input",
435
435
  ref: i,
436
436
  name: "one-time-code",
@@ -509,19 +509,19 @@ function Vn(a, t) {
509
509
  for (var e = 0, n = Array(t); e < t; e++) n[e] = a[e];
510
510
  return n;
511
511
  }
512
- p(Vn, "_arrayLikeToArray");
512
+ d(Vn, "_arrayLikeToArray");
513
513
  function ai(a) {
514
514
  if (Array.isArray(a)) return a;
515
515
  }
516
- p(ai, "_arrayWithHoles");
516
+ d(ai, "_arrayWithHoles");
517
517
  function li(a, t) {
518
518
  var e = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
519
519
  if (e != null) {
520
520
  var n, i, s, l, o = [], h = !0, c = !1;
521
521
  try {
522
522
  if (s = (e = e.call(a)).next, t !== 0) for (; !(h = (n = s.call(e)).done) && (o.push(n.value), o.length !== t); h = !0) ;
523
- } catch (x) {
524
- c = !0, i = x;
523
+ } catch (k) {
524
+ c = !0, i = k;
525
525
  } finally {
526
526
  try {
527
527
  if (!h && e.return != null && (l = e.return(), Object(l) !== l)) return;
@@ -532,16 +532,16 @@ function li(a, t) {
532
532
  return o;
533
533
  }
534
534
  }
535
- p(li, "_iterableToArrayLimit");
535
+ d(li, "_iterableToArrayLimit");
536
536
  function oi() {
537
537
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
538
538
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
539
539
  }
540
- p(oi, "_nonIterableRest");
540
+ d(oi, "_nonIterableRest");
541
541
  function ci(a, t) {
542
542
  return ai(a) || li(a, t) || ui(a, t) || oi();
543
543
  }
544
- p(ci, "_slicedToArray");
544
+ d(ci, "_slicedToArray");
545
545
  function ui(a, t) {
546
546
  if (a) {
547
547
  if (typeof a == "string") return Vn(a, t);
@@ -549,26 +549,26 @@ function ui(a, t) {
549
549
  return e === "Object" && a.constructor && (e = a.constructor.name), e === "Map" || e === "Set" ? Array.from(a) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? Vn(a, t) : void 0;
550
550
  }
551
551
  }
552
- p(ui, "_unsupportedIterableToArray");
553
- const xs = Object.entries, Zn = Object.setPrototypeOf, hi = Object.isFrozen, pi = Object.getPrototypeOf, di = Object.getOwnPropertyDescriptor;
552
+ d(ui, "_unsupportedIterableToArray");
553
+ const xs = Object.entries, Zn = Object.setPrototypeOf, hi = Object.isFrozen, di = Object.getPrototypeOf, pi = Object.getOwnPropertyDescriptor;
554
554
  let re = Object.freeze, oe = Object.seal, Xe = Object.create, ks = typeof Reflect < "u" && Reflect, rn = ks.apply, an = ks.construct;
555
- re || (re = /* @__PURE__ */ p(function(t) {
555
+ re || (re = /* @__PURE__ */ d(function(t) {
556
556
  return t;
557
557
  }, "freeze"));
558
- oe || (oe = /* @__PURE__ */ p(function(t) {
558
+ oe || (oe = /* @__PURE__ */ d(function(t) {
559
559
  return t;
560
560
  }, "seal"));
561
- rn || (rn = /* @__PURE__ */ p(function(t, e) {
561
+ rn || (rn = /* @__PURE__ */ d(function(t, e) {
562
562
  for (var n = arguments.length, i = new Array(n > 2 ? n - 2 : 0), s = 2; s < n; s++)
563
563
  i[s - 2] = arguments[s];
564
564
  return t.apply(e, i);
565
565
  }, "apply"));
566
- an || (an = /* @__PURE__ */ p(function(t) {
566
+ an || (an = /* @__PURE__ */ d(function(t) {
567
567
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
568
568
  n[i - 1] = arguments[i];
569
569
  return new t(...n);
570
570
  }, "construct"));
571
- const We = Y(Array.prototype.forEach), fi = Y(Array.prototype.lastIndexOf), Xn = Y(Array.prototype.pop), qe = Y(Array.prototype.push), gi = Y(Array.prototype.splice), se = Array.isArray, ht = Y(String.prototype.toLowerCase), Kt = Y(String.prototype.toString), Qn = Y(String.prototype.match), Ye = Y(String.prototype.replace), Kn = Y(String.prototype.indexOf), mi = Y(String.prototype.trim), bi = Y(Number.prototype.toString), xi = Y(Boolean.prototype.toString), Jn = typeof BigInt > "u" ? null : Y(BigInt.prototype.toString), es = typeof Symbol > "u" ? null : Y(Symbol.prototype.toString), H = Y(Object.prototype.hasOwnProperty), ot = Y(Object.prototype.toString), J = Y(RegExp.prototype.test), ct = ki(TypeError);
571
+ const We = Y(Array.prototype.forEach), fi = Y(Array.prototype.lastIndexOf), Xn = Y(Array.prototype.pop), qe = Y(Array.prototype.push), gi = Y(Array.prototype.splice), se = Array.isArray, ht = Y(String.prototype.toLowerCase), Qt = Y(String.prototype.toString), Kn = Y(String.prototype.match), Ye = Y(String.prototype.replace), Qn = Y(String.prototype.indexOf), mi = Y(String.prototype.trim), bi = Y(Number.prototype.toString), xi = Y(Boolean.prototype.toString), Jn = typeof BigInt > "u" ? null : Y(BigInt.prototype.toString), es = typeof Symbol > "u" ? null : Y(Symbol.prototype.toString), j = Y(Object.prototype.hasOwnProperty), ot = Y(Object.prototype.toString), J = Y(RegExp.prototype.test), ct = ki(TypeError);
572
572
  function Y(a) {
573
573
  return function(t) {
574
574
  t instanceof RegExp && (t.lastIndex = 0);
@@ -577,7 +577,7 @@ function Y(a) {
577
577
  return rn(a, t, n);
578
578
  };
579
579
  }
580
- p(Y, "unapply");
580
+ d(Y, "unapply");
581
581
  function ki(a) {
582
582
  return function() {
583
583
  for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
@@ -585,7 +585,7 @@ function ki(a) {
585
585
  return an(a, e);
586
586
  };
587
587
  }
588
- p(ki, "unconstruct");
588
+ d(ki, "unconstruct");
589
589
  function R(a, t) {
590
590
  let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ht;
591
591
  if (Zn && Zn(a, null), !se(t))
@@ -601,23 +601,23 @@ function R(a, t) {
601
601
  }
602
602
  return a;
603
603
  }
604
- p(R, "addToSet");
604
+ d(R, "addToSet");
605
605
  function yi(a) {
606
606
  for (let t = 0; t < a.length; t++)
607
- H(a, t) || (a[t] = null);
607
+ j(a, t) || (a[t] = null);
608
608
  return a;
609
609
  }
610
- p(yi, "cleanArray");
610
+ d(yi, "cleanArray");
611
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] = te(s) : t[i] = s);
616
+ j(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(te, "clone");
620
+ d(te, "clone");
621
621
  function wi(a) {
622
622
  switch (typeof a) {
623
623
  case "string":
@@ -647,24 +647,24 @@ function wi(a) {
647
647
  return ot(a);
648
648
  }
649
649
  }
650
- p(wi, "stringifyValue");
650
+ d(wi, "stringifyValue");
651
651
  function xe(a, t) {
652
652
  for (; a !== null; ) {
653
- const n = di(a, t);
653
+ const n = pi(a, t);
654
654
  if (n) {
655
655
  if (n.get)
656
656
  return Y(n.get);
657
657
  if (typeof n.value == "function")
658
658
  return Y(n.value);
659
659
  }
660
- a = pi(a);
660
+ a = di(a);
661
661
  }
662
662
  function e() {
663
663
  return null;
664
664
  }
665
- return p(e, "fallbackValue"), e;
665
+ return d(e, "fallbackValue"), e;
666
666
  }
667
- p(xe, "lookupGetter");
667
+ d(xe, "lookupGetter");
668
668
  function vi(a) {
669
669
  try {
670
670
  return J(a, ""), !0;
@@ -672,7 +672,7 @@ function vi(a) {
672
672
  return !1;
673
673
  }
674
674
  }
675
- p(vi, "isRegex");
675
+ d(vi, "isRegex");
676
676
  const ts = re(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Jt = re(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), en = re(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ti = re(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), tn = re(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Si = re(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ns = re(["#text"]), ss = re(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), nn = re(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), is = re(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), _t = re(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ai = oe(/{{[\w\W]*|^[\w\W]*}}/g), Ei = oe(/<%[\w\W]*|^[\w\W]*%>/g), _i = oe(/\${[\w\W]*/g), Ri = oe(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ii = oe(/^aria-[\-\w]+$/), rs = oe(
677
677
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
678
678
  // eslint-disable-line no-useless-escape
@@ -695,9 +695,9 @@ const ts = re(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
695
695
  documentFragment: 11,
696
696
  notation: 12
697
697
  // Deprecated
698
- }, Li = /* @__PURE__ */ p(function() {
698
+ }, Li = /* @__PURE__ */ d(function() {
699
699
  return typeof window > "u" ? null : window;
700
- }, "getGlobal"), Ni = /* @__PURE__ */ p(function(t, e) {
700
+ }, "getGlobal"), Ni = /* @__PURE__ */ d(function(t, e) {
701
701
  if (typeof t != "object" || typeof t.createPolicy != "function")
702
702
  return null;
703
703
  let n = null;
@@ -716,7 +716,7 @@ const ts = re(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
716
716
  } catch {
717
717
  return console.warn("TrustedTypes policy " + s + " could not be created."), null;
718
718
  }
719
- }, "_createTrustedTypesPolicy"), as = /* @__PURE__ */ p(function() {
719
+ }, "_createTrustedTypesPolicy"), as = /* @__PURE__ */ d(function() {
720
720
  return {
721
721
  afterSanitizeAttributes: [],
722
722
  afterSanitizeElements: [],
@@ -731,7 +731,7 @@ const ts = re(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
731
731
  }, "_createHooksMap");
732
732
  function ys() {
733
733
  let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Li();
734
- const t = /* @__PURE__ */ p((b) => ys(b), "DOMPurify");
734
+ const t = /* @__PURE__ */ d((x) => ys(x), "DOMPurify");
735
735
  if (t.version = "3.4.7", t.removed = [], !a || !a.document || a.document.nodeType !== be.document || !a.Element)
736
736
  return t.isSupported = !1, t;
737
737
  let e = a.document;
@@ -739,17 +739,17 @@ 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"), ee = xe(g, "attributes"), G = l && l.prototype ? xe(l.prototype, "nodeType") : null, ae = l && l.prototype ? xe(l.prototype, "nodeName") : null;
742
+ const k = a.DOMParser, g = a.trustedTypes, m = o.prototype, w = xe(m, "cloneNode"), y = xe(m, "remove"), A = xe(m, "nextSibling"), C = xe(m, "childNodes"), z = xe(m, "parentNode"), Z = xe(m, "shadowRoot"), ee = xe(m, "attributes"), H = l && l.prototype ? xe(l.prototype, "nodeType") : null, ae = l && l.prototype ? xe(l.prototype, "nodeName") : null;
743
743
  if (typeof s == "function") {
744
- const b = e.createElement("template");
745
- b.content && b.content.ownerDocument && (e = b.content.ownerDocument);
744
+ const x = e.createElement("template");
745
+ x.content && x.content.ownerDocument && (e = x.content.ownerDocument);
746
746
  }
747
- let B, K = "";
747
+ let B, Q = "";
748
748
  const ye = e, Te = ye.implementation, M = ye.createNodeIterator, ft = ye.createDocumentFragment, nt = ye.getElementsByTagName, gt = n.importNode;
749
749
  let q = as();
750
750
  t.isSupported = typeof xs == "function" && typeof z == "function" && Te && Te.createHTMLDocument !== void 0;
751
- const Ne = Ai, ze = Ei, $e = _i, Pt = Ri, mt = Ii, bt = Ci, I = Di, m = Mi;
752
- let y = rs, E = null;
751
+ const Ne = Ai, ze = Ei, $e = _i, Pt = Ri, mt = Ii, bt = Ci, I = Di, b = Mi;
752
+ let p = rs, E = null;
753
753
  const X = R({}, [...ts, ...Jt, ...en, ...tn, ...ns]);
754
754
  let P = null;
755
755
  const Pe = R({}, [...ss, ...nn, ...is, ..._t]);
@@ -796,48 +796,48 @@ function ys() {
796
796
  let Gt = null;
797
797
  const _n = R({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), wt = "http://www.w3.org/1998/Math/MathML", vt = "http://www.w3.org/2000/svg", ge = "http://www.w3.org/1999/xhtml";
798
798
  let Ue = ge, Wt = !1, qt = null;
799
- const Ds = R({}, [wt, vt, ge], Kt);
799
+ const Ds = R({}, [wt, vt, ge], Qt);
800
800
  let Yt = R({}, ["mi", "mo", "mn", "ms", "mtext"]), Vt = R({}, ["annotation-xml"]);
801
801
  const Os = R({}, ["title", "style", "font", "a", "script"]);
802
802
  let at = null;
803
803
  const Ms = ["application/xhtml+xml", "text/html"], Ls = "text/html";
804
804
  let W = null, He = null;
805
- const Ns = e.createElement("form"), Rn = /* @__PURE__ */ p(function(r) {
805
+ const Ns = e.createElement("form"), Rn = /* @__PURE__ */ d(function(r) {
806
806
  return r instanceof RegExp || r instanceof Function;
807
- }, "isRegexOrFunction"), Zt = /* @__PURE__ */ p(function() {
807
+ }, "isRegexOrFunction"), Zt = /* @__PURE__ */ d(function() {
808
808
  let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
809
809
  if (He && He === r)
810
810
  return;
811
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) {
812
+ Ms.indexOf(r.PARSER_MEDIA_TYPE) === -1 ? Ls : r.PARSER_MEDIA_TYPE, W = at === "application/xhtml+xml" ? Qt : ht, E = j(r, "ALLOWED_TAGS") && se(r.ALLOWED_TAGS) ? R({}, r.ALLOWED_TAGS, W) : X, P = j(r, "ALLOWED_ATTR") && se(r.ALLOWED_ATTR) ? R({}, r.ALLOWED_ATTR, W) : Pe, qt = j(r, "ALLOWED_NAMESPACES") && se(r.ALLOWED_NAMESPACES) ? R({}, r.ALLOWED_NAMESPACES, Qt) : Ds, Gt = j(r, "ADD_URI_SAFE_ATTR") && se(r.ADD_URI_SAFE_ATTR) ? R(te(_n), r.ADD_URI_SAFE_ATTR, W) : _n, An = j(r, "ADD_DATA_URI_TAGS") && se(r.ADD_DATA_URI_TAGS) ? R(te(En), r.ADD_DATA_URI_TAGS, W) : En, fe = j(r, "FORBID_CONTENTS") && se(r.FORBID_CONTENTS) ? R({}, r.FORBID_CONTENTS, W) : jt, st = j(r, "FORBID_TAGS") && se(r.FORBID_TAGS) ? R({}, r.FORBID_TAGS, W) : te({}), xt = j(r, "FORBID_ATTR") && se(r.FORBID_ATTR) ? R({}, r.FORBID_ATTR, W) : te({}), Fe = j(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, p = vi(r.ALLOWED_URI_REGEXP) ? r.ALLOWED_URI_REGEXP : rs, Ue = typeof r.NAMESPACE == "string" ? r.NAMESPACE : ge, Yt = j(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 = j(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 = j(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), j(u, "tagNameCheck") && Rn(u.tagNameCheck) && (F.tagNameCheck = u.tagNameCheck), j(u, "attributeNameCheck") && Rn(u.attributeNameCheck) && (F.attributeNameCheck = u.attributeNameCheck), j(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, j(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))), j(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))), j(r, "ADD_URI_SAFE_ATTR") && se(r.ADD_URI_SAFE_ATTR) && R(Gt, r.ADD_URI_SAFE_ATTR, W), j(r, "FORBID_CONTENTS") && se(r.FORBID_CONTENTS) && (fe === jt && (fe = te(fe)), R(fe, r.FORBID_CONTENTS, W)), j(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")
818
818
  throw ct('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
819
- B = r.TRUSTED_TYPES_POLICY, K = B.createHTML("");
819
+ B = r.TRUSTED_TYPES_POLICY, Q = B.createHTML("");
820
820
  } else
821
- B === void 0 && (B = Ni(f, i)), B !== null && typeof K == "string" && (K = B.createHTML(""));
821
+ B === void 0 && (B = Ni(g, i)), B !== null && typeof Q == "string" && (Q = B.createHTML(""));
822
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
- }, "_parseConfig"), In = R({}, [...Jt, ...en, ...Ti]), Cn = R({}, [...tn, ...Si]), zs = /* @__PURE__ */ p(function(r) {
823
+ }, "_parseConfig"), In = R({}, [...Jt, ...en, ...Ti]), Cn = R({}, [...tn, ...Si]), zs = /* @__PURE__ */ d(function(r) {
824
824
  let u = z(r);
825
825
  (!u || !u.tagName) && (u = {
826
826
  namespaceURI: Ue,
827
827
  tagName: "template"
828
828
  });
829
- const d = ht(r.tagName), $ = ht(u.tagName);
830
- return qt[r.namespaceURI] ? r.namespaceURI === vt ? u.namespaceURI === ge ? d === "svg" : u.namespaceURI === wt ? d === "svg" && ($ === "annotation-xml" || Yt[$]) : !!In[d] : r.namespaceURI === wt ? u.namespaceURI === ge ? d === "math" : u.namespaceURI === vt ? d === "math" && Vt[$] : !!Cn[d] : r.namespaceURI === ge ? u.namespaceURI === vt && !Vt[$] || u.namespaceURI === wt && !Yt[$] ? !1 : !Cn[d] && (Os[d] || !In[d]) : !!(at === "application/xhtml+xml" && qt[r.namespaceURI]) : !1;
831
- }, "_checkValidNamespace"), ce = /* @__PURE__ */ p(function(r) {
829
+ const f = ht(r.tagName), $ = ht(u.tagName);
830
+ return qt[r.namespaceURI] ? r.namespaceURI === vt ? u.namespaceURI === ge ? f === "svg" : u.namespaceURI === wt ? f === "svg" && ($ === "annotation-xml" || Yt[$]) : !!In[f] : r.namespaceURI === wt ? u.namespaceURI === ge ? f === "math" : u.namespaceURI === vt ? f === "math" && Vt[$] : !!Cn[f] : r.namespaceURI === ge ? u.namespaceURI === vt && !Vt[$] || u.namespaceURI === wt && !Yt[$] ? !1 : !Cn[f] && (Os[f] || !In[f]) : !!(at === "application/xhtml+xml" && qt[r.namespaceURI]) : !1;
831
+ }, "_checkValidNamespace"), ce = /* @__PURE__ */ d(function(r) {
832
832
  qe(t.removed, {
833
833
  element: r
834
834
  });
835
835
  try {
836
836
  z(r).removeChild(r);
837
837
  } catch {
838
- k(r);
838
+ y(r);
839
839
  }
840
- }, "_forceRemove"), De = /* @__PURE__ */ p(function(r, u) {
840
+ }, "_forceRemove"), De = /* @__PURE__ */ d(function(r, u) {
841
841
  try {
842
842
  qe(t.removed, {
843
843
  attribute: u.getAttributeNode(r),
@@ -860,31 +860,31 @@ function ys() {
860
860
  u.setAttribute(r, "");
861
861
  } catch {
862
862
  }
863
- }, "_removeAttribute"), Dn = /* @__PURE__ */ p(function(r) {
864
- let u = null, d = null;
863
+ }, "_removeAttribute"), Dn = /* @__PURE__ */ d(function(r) {
864
+ let u = null, f = null;
865
865
  if (Ut)
866
866
  r = "<remove></remove>" + r;
867
867
  else {
868
- const U = Qn(r, /^[\r\n\t ]+/);
869
- d = U && U[0];
868
+ const U = Kn(r, /^[\r\n\t ]+/);
869
+ f = U && U[0];
870
870
  }
871
871
  at === "application/xhtml+xml" && Ue === ge && (r = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + r + "</body></html>");
872
872
  const $ = B ? B.createHTML(r) : r;
873
873
  if (Ue === ge)
874
874
  try {
875
- u = new x().parseFromString($, at);
875
+ u = new k().parseFromString($, at);
876
876
  } catch {
877
877
  }
878
878
  if (!u || !u.documentElement) {
879
879
  u = Te.createDocument(Ue, "template", null);
880
880
  try {
881
- u.documentElement.innerHTML = Wt ? K : $;
881
+ u.documentElement.innerHTML = Wt ? Q : $;
882
882
  } catch {
883
883
  }
884
884
  }
885
885
  const D = u.body || u.documentElement;
886
- return r && d && D.insertBefore(e.createTextNode(d), D.childNodes[0] || null), Ue === ge ? nt.call(u, Ce ? "html" : "body")[0] : Ce ? u.documentElement : D;
887
- }, "_initDocument"), On = /* @__PURE__ */ p(function(r) {
886
+ return r && f && D.insertBefore(e.createTextNode(f), D.childNodes[0] || null), Ue === ge ? nt.call(u, Ce ? "html" : "body")[0] : Ce ? u.documentElement : D;
887
+ }, "_initDocument"), On = /* @__PURE__ */ d(function(r) {
888
888
  return M.call(
889
889
  r.ownerDocument || r,
890
890
  r,
@@ -892,7 +892,7 @@ function ys() {
892
892
  h.SHOW_ELEMENT | h.SHOW_COMMENT | h.SHOW_TEXT | h.SHOW_PROCESSING_INSTRUCTION | h.SHOW_CDATA_SECTION,
893
893
  null
894
894
  );
895
- }, "_createNodeIterator"), Mn = /* @__PURE__ */ p(function(r) {
895
+ }, "_createNodeIterator"), Mn = /* @__PURE__ */ d(function(r) {
896
896
  r.normalize();
897
897
  const u = M.call(
898
898
  r.ownerDocument || r,
@@ -901,14 +901,14 @@ function ys() {
901
901
  h.SHOW_TEXT | h.SHOW_COMMENT | h.SHOW_CDATA_SECTION | h.SHOW_PROCESSING_INSTRUCTION,
902
902
  null
903
903
  );
904
- let d = u.nextNode();
905
- for (; d; ) {
906
- let $ = d.data;
904
+ let f = u.nextNode();
905
+ for (; f; ) {
906
+ let $ = f.data;
907
907
  We([Ne, ze, $e], (D) => {
908
908
  $ = Ye($, D, " ");
909
- }), d.data = $, d = u.nextNode();
909
+ }), f.data = $, f = u.nextNode();
910
910
  }
911
- }, "_scrubTemplateExpressions"), Tt = /* @__PURE__ */ p(function(r) {
911
+ }, "_scrubTemplateExpressions"), Tt = /* @__PURE__ */ d(function(r) {
912
912
  const u = ae ? ae(r) : null;
913
913
  return typeof u != "string" || W(u) !== "form" ? !1 : typeof r.nodeName != "string" || typeof r.textContent != "string" || typeof r.removeChild != "function" || // Realm-safe NamedNodeMap detection: equality against the cached
914
914
  // prototype getter. Clobbered .attributes (e.g. <input name="attributes">)
@@ -922,7 +922,7 @@ function ys() {
922
922
  // an internal slot, no serialization cost — and removes a residual
923
923
  // clobbering surface used by several mXSS / PI / comment branches
924
924
  // in _sanitizeElements that compare currentNode.nodeType directly.
925
- r.nodeType !== G(r) || // HTMLFormElement has [LegacyOverrideBuiltIns]: a descendant named
925
+ r.nodeType !== H(r) || // HTMLFormElement has [LegacyOverrideBuiltIns]: a descendant named
926
926
  // "childNodes" shadows the prototype getter. Direct reads of
927
927
  // form.childNodes from a clobbered form return the named child
928
928
  // instead of the real NodeList, so any walk that reads it directly
@@ -934,43 +934,43 @@ function ys() {
934
934
  // carry a numeric .length, which a typeof-based probe would miss
935
935
  // (e.g. HTMLSelectElement.length is a defined unsigned-long).
936
936
  r.childNodes !== C(r);
937
- }, "_isClobbered"), lt = /* @__PURE__ */ p(function(r) {
938
- if (!G || typeof r != "object" || r === null)
937
+ }, "_isClobbered"), lt = /* @__PURE__ */ d(function(r) {
938
+ if (!H || typeof r != "object" || r === null)
939
939
  return !1;
940
940
  try {
941
- return G(r) === be.documentFragment;
941
+ return H(r) === be.documentFragment;
942
942
  } catch {
943
943
  return !1;
944
944
  }
945
- }, "_isDocumentFragment"), St = /* @__PURE__ */ p(function(r) {
946
- if (!G || typeof r != "object" || r === null)
945
+ }, "_isDocumentFragment"), St = /* @__PURE__ */ d(function(r) {
946
+ if (!H || typeof r != "object" || r === null)
947
947
  return !1;
948
948
  try {
949
- return typeof G(r) == "number";
949
+ return typeof H(r) == "number";
950
950
  } catch {
951
951
  return !1;
952
952
  }
953
953
  }, "_isNode");
954
- function we(b, r, u) {
955
- We(b, (d) => {
956
- d.call(t, r, u, He);
954
+ function we(x, r, u) {
955
+ We(x, (f) => {
956
+ f.call(t, r, u, He);
957
957
  });
958
958
  }
959
- p(we, "_executeHooks");
960
- const Ln = /* @__PURE__ */ p(function(r) {
959
+ d(we, "_executeHooks");
960
+ const Ln = /* @__PURE__ */ d(function(r) {
961
961
  let u = null;
962
962
  if (we(q.beforeSanitizeElements, r, null), Tt(r))
963
963
  return ce(r), !0;
964
- const d = W(r.nodeName);
964
+ const f = W(r.nodeName);
965
965
  if (we(q.uponSanitizeElement, r, {
966
- tagName: d,
966
+ tagName: f,
967
967
  allowedTags: E
968
- }), it && r.hasChildNodes() && !St(r.firstElementChild) && J(/<[/\w!]/g, r.innerHTML) && J(/<[/\w!]/g, r.textContent) || it && r.namespaceURI === ge && d === "style" && St(r.firstElementChild) || r.nodeType === be.progressingInstruction || it && r.nodeType === be.comment && J(/<[/\w]/g, r.data))
968
+ }), it && r.hasChildNodes() && !St(r.firstElementChild) && J(/<[/\w!]/g, r.innerHTML) && J(/<[/\w!]/g, r.textContent) || it && r.namespaceURI === ge && f === "style" && St(r.firstElementChild) || r.nodeType === be.progressingInstruction || it && r.nodeType === be.comment && J(/<[/\w]/g, r.data))
969
969
  return ce(r), !0;
970
- if (st[d] || !(Se.tagCheck instanceof Function && Se.tagCheck(d)) && !E[d]) {
971
- if (!st[d] && zn(d) && (F.tagNameCheck instanceof RegExp && J(F.tagNameCheck, d) || F.tagNameCheck instanceof Function && F.tagNameCheck(d)))
970
+ if (st[f] || !(Se.tagCheck instanceof Function && Se.tagCheck(f)) && !E[f]) {
971
+ if (!st[f] && zn(f) && (F.tagNameCheck instanceof RegExp && J(F.tagNameCheck, f) || F.tagNameCheck instanceof Function && F.tagNameCheck(f)))
972
972
  return !1;
973
- if (Ht && !fe[d]) {
973
+ if (Ht && !fe[f]) {
974
974
  const D = z(r), U = C(r);
975
975
  if (U && D) {
976
976
  const le = U.length;
@@ -982,13 +982,13 @@ function ys() {
982
982
  }
983
983
  return ce(r), !0;
984
984
  }
985
- return (G ? G(r) : r.nodeType) === be.element && !zs(r) || (d === "noscript" || d === "noembed" || d === "noframes") && J(/<\/no(script|embed|frames)/i, r.innerHTML) ? (ce(r), !0) : (Ae && r.nodeType === be.text && (u = r.textContent, We([Ne, ze, $e], (D) => {
985
+ return (H ? H(r) : r.nodeType) === be.element && !zs(r) || (f === "noscript" || f === "noembed" || f === "noframes") && J(/<\/no(script|embed|frames)/i, r.innerHTML) ? (ce(r), !0) : (Ae && r.nodeType === be.text && (u = r.textContent, We([Ne, ze, $e], (D) => {
986
986
  u = Ye(u, D, " ");
987
987
  }), r.textContent !== u && (qe(t.removed, {
988
988
  element: r.cloneNode()
989
989
  }), r.textContent = u)), we(q.afterSanitizeElements, r, null), !1);
990
- }, "_sanitizeElements"), Nn = /* @__PURE__ */ p(function(r, u, d) {
991
- if (xt[u] || vn && (u === "id" || u === "name") && (d in e || d in Ns))
990
+ }, "_sanitizeElements"), Nn = /* @__PURE__ */ d(function(r, u, f) {
991
+ if (xt[u] || vn && (u === "id" || u === "name") && (f in e || f in Ns))
992
992
  return !1;
993
993
  const $ = P[u] || Se.attributeCheck instanceof Function && Se.attributeCheck(u, r);
994
994
  if (!(Bt && !xt[u] && J(Pt, u))) {
@@ -1000,13 +1000,13 @@ function ys() {
1000
1000
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
1001
1001
  !(zn(r) && (F.tagNameCheck instanceof RegExp && J(F.tagNameCheck, r) || F.tagNameCheck instanceof Function && F.tagNameCheck(r)) && (F.attributeNameCheck instanceof RegExp && J(F.attributeNameCheck, u) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(u, r)) || // Alternative, second condition checks if it's an `is`-attribute, AND
1002
1002
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1003
- u === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && J(F.tagNameCheck, d) || F.tagNameCheck instanceof Function && F.tagNameCheck(d)))
1003
+ u === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && J(F.tagNameCheck, f) || F.tagNameCheck instanceof Function && F.tagNameCheck(f)))
1004
1004
  ) return !1;
1005
1005
  } else if (!Gt[u]) {
1006
- if (!J(y, Ye(d, I, ""))) {
1007
- if (!((u === "src" || u === "xlink:href" || u === "href") && r !== "script" && Kn(d, "data:") === 0 && An[r])) {
1008
- if (!(yn && !J(bt, Ye(d, I, "")))) {
1009
- if (d)
1006
+ if (!J(p, Ye(f, I, ""))) {
1007
+ if (!((u === "src" || u === "xlink:href" || u === "href") && r !== "script" && Qn(f, "data:") === 0 && An[r])) {
1008
+ if (!(yn && !J(bt, Ye(f, I, "")))) {
1009
+ if (f)
1010
1010
  return !1;
1011
1011
  }
1012
1012
  }
@@ -1015,14 +1015,14 @@ function ys() {
1015
1015
  }
1016
1016
  }
1017
1017
  return !0;
1018
- }, "_isValidAttribute"), $s = R({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), zn = /* @__PURE__ */ p(function(r) {
1019
- return !$s[ht(r)] && J(m, r);
1020
- }, "_isBasicCustomElement"), $n = /* @__PURE__ */ p(function(r) {
1018
+ }, "_isValidAttribute"), $s = R({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), zn = /* @__PURE__ */ d(function(r) {
1019
+ return !$s[ht(r)] && J(b, r);
1020
+ }, "_isBasicCustomElement"), $n = /* @__PURE__ */ d(function(r) {
1021
1021
  we(q.beforeSanitizeAttributes, r, null);
1022
1022
  const u = r.attributes;
1023
1023
  if (!u || Tt(r))
1024
1024
  return;
1025
- const d = {
1025
+ const f = {
1026
1026
  attrName: "",
1027
1027
  attrValue: "",
1028
1028
  keepAttr: !0,
@@ -1032,72 +1032,72 @@ function ys() {
1032
1032
  let $ = u.length;
1033
1033
  for (; $--; ) {
1034
1034
  const D = u[$], U = D.name, le = D.namespaceURI, me = D.value, ue = W(U), Xt = me;
1035
- let Q = U === "value" ? Xt : mi(Xt);
1036
- if (d.attrName = ue, d.attrValue = Q, d.keepAttr = !0, d.forceKeepAttr = void 0, we(q.uponSanitizeAttribute, r, d), Q = d.attrValue, Tn && (ue === "id" || ue === "name") && Kn(Q, Sn) !== 0 && (De(U, r), Q = Sn + Q), it && J(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Q)) {
1035
+ let K = U === "value" ? Xt : mi(Xt);
1036
+ if (f.attrName = ue, f.attrValue = K, f.keepAttr = !0, f.forceKeepAttr = void 0, we(q.uponSanitizeAttribute, r, f), K = f.attrValue, Tn && (ue === "id" || ue === "name") && Qn(K, Sn) !== 0 && (De(U, r), K = Sn + K), it && J(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, K)) {
1037
1037
  De(U, r);
1038
1038
  continue;
1039
1039
  }
1040
- if (ue === "attributename" && Qn(Q, "href")) {
1040
+ if (ue === "attributename" && Kn(K, "href")) {
1041
1041
  De(U, r);
1042
1042
  continue;
1043
1043
  }
1044
- if (d.forceKeepAttr)
1044
+ if (f.forceKeepAttr)
1045
1045
  continue;
1046
- if (!d.keepAttr) {
1046
+ if (!f.keepAttr) {
1047
1047
  De(U, r);
1048
1048
  continue;
1049
1049
  }
1050
- if (!wn && J(/\/>/i, Q)) {
1050
+ if (!wn && J(/\/>/i, K)) {
1051
1051
  De(U, r);
1052
1052
  continue;
1053
1053
  }
1054
1054
  Ae && We([Ne, ze, $e], (Bn) => {
1055
- Q = Ye(Q, Bn, " ");
1055
+ K = Ye(K, Bn, " ");
1056
1056
  });
1057
1057
  const Pn = W(r.nodeName);
1058
- if (!Nn(Pn, ue, Q)) {
1058
+ if (!Nn(Pn, ue, K)) {
1059
1059
  De(U, r);
1060
1060
  continue;
1061
1061
  }
1062
- if (B && typeof f == "object" && typeof f.getAttributeType == "function" && !le)
1063
- switch (f.getAttributeType(Pn, ue)) {
1062
+ if (B && typeof g == "object" && typeof g.getAttributeType == "function" && !le)
1063
+ switch (g.getAttributeType(Pn, ue)) {
1064
1064
  case "TrustedHTML": {
1065
- Q = B.createHTML(Q);
1065
+ K = B.createHTML(K);
1066
1066
  break;
1067
1067
  }
1068
1068
  case "TrustedScriptURL": {
1069
- Q = B.createScriptURL(Q);
1069
+ K = B.createScriptURL(K);
1070
1070
  break;
1071
1071
  }
1072
1072
  }
1073
- if (Q !== Xt)
1073
+ if (K !== Xt)
1074
1074
  try {
1075
- le ? r.setAttributeNS(le, U, Q) : r.setAttribute(U, Q), Tt(r) ? ce(r) : Xn(t.removed);
1075
+ le ? r.setAttributeNS(le, U, K) : r.setAttribute(U, K), Tt(r) ? ce(r) : Xn(t.removed);
1076
1076
  } catch {
1077
1077
  De(U, r);
1078
1078
  }
1079
1079
  }
1080
1080
  we(q.afterSanitizeAttributes, r, null);
1081
- }, "_sanitizeAttributes"), At = /* @__PURE__ */ p(function(r) {
1081
+ }, "_sanitizeAttributes"), At = /* @__PURE__ */ d(function(r) {
1082
1082
  let u = null;
1083
- const d = On(r);
1084
- for (we(q.beforeSanitizeShadowDOM, r, null); u = d.nextNode(); )
1085
- if (we(q.uponSanitizeShadowNode, u, null), Ln(u), $n(u), lt(u.content) && At(u.content), (G ? G(u) : u.nodeType) === be.element) {
1083
+ const f = On(r);
1084
+ for (we(q.beforeSanitizeShadowDOM, r, null); u = f.nextNode(); )
1085
+ if (we(q.uponSanitizeShadowNode, u, null), Ln(u), $n(u), lt(u.content) && At(u.content), (H ? H(u) : u.nodeType) === be.element) {
1086
1086
  const D = Z ? Z(u) : u.shadowRoot;
1087
1087
  lt(D) && (je(D), At(D));
1088
1088
  }
1089
1089
  we(q.afterSanitizeShadowDOM, r, null);
1090
- }, "_sanitizeShadowDOM"), je = /* @__PURE__ */ p(function(r) {
1091
- const u = G ? G(r) : r.nodeType;
1090
+ }, "_sanitizeShadowDOM"), je = /* @__PURE__ */ d(function(r) {
1091
+ const u = H ? H(r) : r.nodeType;
1092
1092
  if (u === be.element) {
1093
1093
  const D = Z ? Z(r) : r.shadowRoot;
1094
1094
  lt(D) && (je(D), At(D));
1095
1095
  }
1096
- const d = C ? C(r) : r.childNodes;
1097
- if (!d)
1096
+ const f = C ? C(r) : r.childNodes;
1097
+ if (!f)
1098
1098
  return;
1099
1099
  const $ = [];
1100
- We(d, (D) => {
1100
+ We(f, (D) => {
1101
1101
  qe($, D);
1102
1102
  });
1103
1103
  for (const D of $)
@@ -1110,37 +1110,37 @@ function ys() {
1110
1110
  }
1111
1111
  }
1112
1112
  }, "_sanitizeAttachedShadowRoots");
1113
- return t.sanitize = function(b) {
1114
- let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, u = null, d = null, $ = null, D = null;
1115
- if (Wt = !b, Wt && (b = "<!-->"), typeof b != "string" && !St(b) && (b = wi(b), typeof b != "string"))
1113
+ return t.sanitize = function(x) {
1114
+ let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, u = null, f = null, $ = null, D = null;
1115
+ if (Wt = !x, Wt && (x = "<!-->"), typeof x != "string" && !St(x) && (x = wi(x), typeof x != "string"))
1116
1116
  throw ct("dirty is not a string, aborting");
1117
1117
  if (!t.isSupported)
1118
- return b;
1119
- if (Ft || Zt(r), t.removed = [], typeof b == "string" && (rt = !1), rt) {
1120
- const me = ae ? ae(b) : b.nodeName;
1118
+ return x;
1119
+ if (Ft || Zt(r), t.removed = [], typeof x == "string" && (rt = !1), rt) {
1120
+ const me = ae ? ae(x) : x.nodeName;
1121
1121
  if (typeof me == "string") {
1122
1122
  const ue = W(me);
1123
1123
  if (!E[ue] || st[ue])
1124
1124
  throw ct("root node is forbidden and cannot be sanitized in-place");
1125
1125
  }
1126
- if (Tt(b))
1126
+ if (Tt(x))
1127
1127
  throw ct("root node is clobbered and cannot be sanitized in-place");
1128
- je(b);
1129
- } else if (St(b))
1130
- u = Dn("<!---->"), d = u.ownerDocument.importNode(b, !0), d.nodeType === be.element && d.nodeName === "BODY" || d.nodeName === "HTML" ? u = d : u.appendChild(d), je(d);
1128
+ je(x);
1129
+ } else if (St(x))
1130
+ u = Dn("<!---->"), f = u.ownerDocument.importNode(x, !0), f.nodeType === be.element && f.nodeName === "BODY" || f.nodeName === "HTML" ? u = f : u.appendChild(f), je(f);
1131
1131
  else {
1132
1132
  if (!Be && !Ae && !Ce && // eslint-disable-next-line unicorn/prefer-includes
1133
- b.indexOf("<") === -1)
1134
- return B && yt ? B.createHTML(b) : b;
1135
- if (u = Dn(b), !u)
1136
- return Be ? null : yt ? K : "";
1133
+ x.indexOf("<") === -1)
1134
+ return B && yt ? B.createHTML(x) : x;
1135
+ if (u = Dn(x), !u)
1136
+ return Be ? null : yt ? Q : "";
1137
1137
  }
1138
1138
  u && Ut && ce(u.firstChild);
1139
- const U = On(rt ? b : u);
1139
+ const U = On(rt ? x : u);
1140
1140
  for (; $ = U.nextNode(); )
1141
1141
  Ln($), $n($), lt($.content) && At($.content);
1142
1142
  if (rt)
1143
- return Ae && Mn(b), b;
1143
+ return Ae && Mn(x), x;
1144
1144
  if (Be) {
1145
1145
  if (Ae && Mn(u), kt)
1146
1146
  for (D = ft.call(u.ownerDocument); u.firstChild; )
@@ -1155,40 +1155,40 @@ function ys() {
1155
1155
  le = Ye(le, me, " ");
1156
1156
  }), B && yt ? B.createHTML(le) : le;
1157
1157
  }, t.setConfig = function() {
1158
- let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1159
- Zt(b), Ft = !0;
1158
+ let x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1159
+ Zt(x), Ft = !0;
1160
1160
  }, t.clearConfig = function() {
1161
1161
  He = null, Ft = !1;
1162
- }, t.isValidAttribute = function(b, r, u) {
1162
+ }, t.isValidAttribute = function(x, r, u) {
1163
1163
  He || Zt({});
1164
- const d = W(b), $ = W(r);
1165
- return Nn(d, $, u);
1166
- }, t.addHook = function(b, r) {
1167
- typeof r == "function" && qe(q[b], r);
1168
- }, t.removeHook = function(b, r) {
1164
+ const f = W(x), $ = W(r);
1165
+ return Nn(f, $, u);
1166
+ }, t.addHook = function(x, r) {
1167
+ typeof r == "function" && qe(q[x], r);
1168
+ }, t.removeHook = function(x, r) {
1169
1169
  if (r !== void 0) {
1170
- const u = fi(q[b], r);
1171
- return u === -1 ? void 0 : gi(q[b], u, 1)[0];
1170
+ const u = fi(q[x], r);
1171
+ return u === -1 ? void 0 : gi(q[x], u, 1)[0];
1172
1172
  }
1173
- return Xn(q[b]);
1174
- }, t.removeHooks = function(b) {
1175
- q[b] = [];
1173
+ return Xn(q[x]);
1174
+ }, t.removeHooks = function(x) {
1175
+ q[x] = [];
1176
1176
  }, t.removeAllHooks = function() {
1177
1177
  q = as();
1178
1178
  }, t;
1179
1179
  }
1180
- p(ys, "createDOMPurify");
1180
+ d(ys, "createDOMPurify");
1181
1181
  var zi = ys();
1182
1182
  function cn() {
1183
1183
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
1184
1184
  }
1185
- p(cn, "M");
1185
+ d(cn, "M");
1186
1186
  var Le = cn();
1187
1187
  function ws(a) {
1188
1188
  Le = a;
1189
1189
  }
1190
- p(ws, "N");
1191
- var Oe = { exec: /* @__PURE__ */ p(() => null, "exec") };
1190
+ d(ws, "N");
1191
+ var Oe = { exec: /* @__PURE__ */ d(() => null, "exec") };
1192
1192
  function Ve(a) {
1193
1193
  let t = [];
1194
1194
  return (e) => {
@@ -1196,30 +1196,30 @@ function Ve(a) {
1196
1196
  return i || (i = a(n), t[n] = i), i;
1197
1197
  };
1198
1198
  }
1199
- p(Ve, "E");
1199
+ d(Ve, "E");
1200
1200
  function L(a, t = "") {
1201
- let e = typeof a == "string" ? a : a.source, n = { replace: /* @__PURE__ */ p((i, s) => {
1201
+ let e = typeof a == "string" ? a : a.source, n = { replace: /* @__PURE__ */ d((i, s) => {
1202
1202
  let l = typeof s == "string" ? s : s.source;
1203
1203
  return l = l.replace(ne.caret, "$1"), e = e.replace(i, l), n;
1204
- }, "replace"), getRegex: /* @__PURE__ */ p(() => new RegExp(e, t), "getRegex") };
1204
+ }, "replace"), getRegex: /* @__PURE__ */ d(() => new RegExp(e, t), "getRegex") };
1205
1205
  return n;
1206
1206
  }
1207
- p(L, "d");
1207
+ d(L, "d");
1208
1208
  var $i = ((a = "") => {
1209
1209
  try {
1210
1210
  return !!new RegExp("(?<=1)(?<!1)" + a);
1211
1211
  } catch {
1212
1212
  return !1;
1213
1213
  }
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
- ]`).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");
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__ */ d((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|$)|$)/, pt = /^ {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]+/, dn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Gi = L(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", dn).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", pn = /<!--(?:-?>|[\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", pn).replace("tag", zt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ss = L(hn).replace("hr", pt).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: pt, 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", pt).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", pt).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", pn).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", pt).replace("heading", ` *#{1,6} *[^
1215
+ ]`).replace("lheading", Ts).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Xi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ki = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, As = /^( {2,}|\\)\n(?!\s*$)/, Qi = /^(`+|[^`])(?:(?= {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(), dr = 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(), pr = L(pn).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", pr).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", dn).getRegex(), Cs = L(/^!?\[(ref)\](?:\[\])?/).replace("ref", dn).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: dr, blockSkip: nr, br: As, code: Ki, 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: Qi, 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__ */ d((a) => kr[a], "ge");
1216
1216
  function ke(a, t) {
1217
1217
  if (t) {
1218
1218
  if (ne.escapeTest.test(a)) return a.replace(ne.escapeReplace, cs);
1219
1219
  } else if (ne.escapeTestNoEncode.test(a)) return a.replace(ne.escapeReplaceNoEncode, cs);
1220
1220
  return a;
1221
1221
  }
1222
- p(ke, "O");
1222
+ d(ke, "O");
1223
1223
  function us(a) {
1224
1224
  try {
1225
1225
  a = encodeURI(a).replace(ne.percentDecode, "%");
@@ -1228,7 +1228,7 @@ function us(a) {
1228
1228
  }
1229
1229
  return a;
1230
1230
  }
1231
- p(us, "V");
1231
+ d(us, "V");
1232
1232
  function hs(a, t) {
1233
1233
  let e = a.replace(ne.findPipe, (s, l, o) => {
1234
1234
  let h = !1, c = l;
@@ -1240,7 +1240,7 @@ function hs(a, t) {
1240
1240
  for (; i < n.length; i++) n[i] = n[i].trim().replace(ne.slashPipe, "|");
1241
1241
  return n;
1242
1242
  }
1243
- p(hs, "Y");
1243
+ d(hs, "Y");
1244
1244
  function Ee(a, t, e) {
1245
1245
  let n = a.length;
1246
1246
  if (n === 0) return "";
@@ -1249,15 +1249,15 @@ function Ee(a, t, e) {
1249
1249
  i++;
1250
1250
  return a.slice(0, n - i);
1251
1251
  }
1252
- p(Ee, "$");
1253
- function ps(a) {
1252
+ d(Ee, "$");
1253
+ function ds(a) {
1254
1254
  let t = a.split(`
1255
1255
  `), e = t.length - 1;
1256
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
  }
1260
- p(ps, "ee");
1260
+ d(ds, "ee");
1261
1261
  function yr(a, t) {
1262
1262
  if (a.indexOf(t[1]) === -1) return -1;
1263
1263
  let e = 0;
@@ -1266,7 +1266,7 @@ function yr(a, t) {
1266
1266
  else if (a[n] === t[1] && (e--, e < 0)) return n;
1267
1267
  return e > 0 ? -2 : -1;
1268
1268
  }
1269
- p(yr, "fe");
1269
+ d(yr, "fe");
1270
1270
  function wr(a, t = 0) {
1271
1271
  let e = t, n = "";
1272
1272
  for (let i of a) if (i === " ") {
@@ -1275,14 +1275,14 @@ function wr(a, t = 0) {
1275
1275
  } else n += i, e++;
1276
1276
  return n;
1277
1277
  }
1278
- p(wr, "me");
1279
- function ds(a, t, e, n, i) {
1278
+ d(wr, "me");
1279
+ function ps(a, t, e, n, i) {
1280
1280
  let s = t.href, l = t.title || null, o = a[1].replace(i.other.outputLinkReplace, "$1");
1281
1281
  n.state.inLink = !0;
1282
1282
  let h = { type: a[0].charAt(0) === "!" ? "image" : "link", raw: e, href: s, title: l, text: o, tokens: n.inlineTokens(o) };
1283
1283
  return n.state.inLink = !1, h;
1284
1284
  }
1285
- p(ds, "xe");
1285
+ d(ps, "xe");
1286
1286
  function vr(a, t, e) {
1287
1287
  let n = a.match(e.other.indentCodeCompensation);
1288
1288
  if (n === null) return t;
@@ -1296,8 +1296,8 @@ function vr(a, t, e) {
1296
1296
  }).join(`
1297
1297
  `);
1298
1298
  }
1299
- p(vr, "st");
1300
- var Qe, Mt = (Qe = class {
1299
+ d(vr, "st");
1300
+ var Ke, Mt = (Ke = class {
1301
1301
  constructor(t) {
1302
1302
  O(this, "options");
1303
1303
  O(this, "rules");
@@ -1311,7 +1311,7 @@ var Qe, Mt = (Qe = class {
1311
1311
  code(t) {
1312
1312
  let e = this.rules.block.code.exec(t);
1313
1313
  if (e) {
1314
- let n = this.options.pedantic ? e[0] : ps(e[0]), i = n.replace(this.rules.other.codeRemoveIndent, "");
1314
+ let n = this.options.pedantic ? e[0] : ds(e[0]), i = n.replace(this.rules.other.codeRemoveIndent, "");
1315
1315
  return { type: "code", raw: n, codeBlockStyle: "indented", text: i };
1316
1316
  }
1317
1317
  }
@@ -1351,27 +1351,27 @@ var Qe, Mt = (Qe = class {
1351
1351
  else if (!o) h.push(n[c]);
1352
1352
  else break;
1353
1353
  n = n.slice(c);
1354
- let x = h.join(`
1355
- `), f = x.replace(this.rules.other.blockquoteSetextReplace, `
1354
+ let k = h.join(`
1355
+ `), g = k.replace(this.rules.other.blockquoteSetextReplace, `
1356
1356
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
1357
1357
  i = i ? `${i}
1358
- ${x}` : x, s = s ? `${s}
1359
- ${f}` : f;
1360
- let g = this.lexer.state.top;
1361
- if (this.lexer.state.top = !0, this.lexer.blockTokens(f, l, !0), this.lexer.state.top = g, n.length === 0) break;
1358
+ ${k}` : k, s = s ? `${s}
1359
+ ${g}` : g;
1360
+ let m = this.lexer.state.top;
1361
+ if (this.lexer.state.top = !0, this.lexer.blockTokens(g, l, !0), this.lexer.state.top = m, n.length === 0) break;
1362
1362
  let w = l.at(-1);
1363
1363
  if (w?.type === "code") break;
1364
1364
  if (w?.type === "blockquote") {
1365
- let k = w, A = k.raw + `
1365
+ let y = w, A = y.raw + `
1366
1366
  ` + n.join(`
1367
1367
  `), C = this.blockquote(A);
1368
- l[l.length - 1] = C, i = i.substring(0, i.length - k.raw.length) + C.raw, s = s.substring(0, s.length - k.text.length) + C.text;
1368
+ l[l.length - 1] = C, i = i.substring(0, i.length - y.raw.length) + C.raw, s = s.substring(0, s.length - y.text.length) + C.text;
1369
1369
  break;
1370
1370
  } else if (w?.type === "list") {
1371
- let k = w, A = k.raw + `
1371
+ let y = w, A = y.raw + `
1372
1372
  ` + n.join(`
1373
1373
  `), C = this.list(A);
1374
- l[l.length - 1] = C, i = i.substring(0, i.length - w.raw.length) + C.raw, s = s.substring(0, s.length - k.raw.length) + C.raw, n = A.substring(l.at(-1).raw.length).split(`
1374
+ l[l.length - 1] = C, i = i.substring(0, i.length - w.raw.length) + C.raw, s = s.substring(0, s.length - y.raw.length) + C.raw, n = A.substring(l.at(-1).raw.length).split(`
1375
1375
  `);
1376
1376
  continue;
1377
1377
  }
@@ -1386,31 +1386,31 @@ ${f}` : f;
1386
1386
  n = i ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = i ? n : "[*+-]");
1387
1387
  let l = this.rules.other.listItemRegex(n), o = !1;
1388
1388
  for (; t; ) {
1389
- let c = !1, x = "", f = "";
1389
+ let c = !1, k = "", g = "";
1390
1390
  if (!(e = l.exec(t)) || this.rules.block.hr.test(t)) break;
1391
- x = e[0], t = t.substring(x.length);
1392
- let g = wr(e[2].split(`
1391
+ k = e[0], t = t.substring(k.length);
1392
+ let m = wr(e[2].split(`
1393
1393
  `, 1)[0], e[1].length), w = t.split(`
1394
- `, 1)[0], k = !g.trim(), A = 0;
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 + `
1394
+ `, 1)[0], y = !m.trim(), A = 0;
1395
+ if (this.options.pedantic ? (A = 2, g = m.trimStart()) : y ? A = e[1].length + 1 : (A = m.search(this.rules.other.nonSpaceChar), A = A > 4 ? 1 : A, g = m.slice(A), A += e[1].length), y && this.rules.other.blankLine.test(w) && (k += 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), ee = 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), H = this.rules.other.htmlBeginRegex(A), ae = this.rules.other.blockquoteBeginRegex(A);
1398
1398
  for (; t; ) {
1399
1399
  let B = t.split(`
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) || ee.test(w) || G.test(w) || ae.test(w) || C.test(w) || z.test(w)) break;
1402
- if (K.search(this.rules.other.nonSpaceChar) >= A || !w.trim()) f += `
1403
- ` + K.slice(A);
1400
+ `, 1)[0], Q;
1401
+ if (w = B, this.options.pedantic ? (w = w.replace(this.rules.other.listReplaceNesting, " "), Q = w) : Q = w.replace(this.rules.other.tabCharGlobal, " "), Z.test(w) || ee.test(w) || H.test(w) || ae.test(w) || C.test(w) || z.test(w)) break;
1402
+ if (Q.search(this.rules.other.nonSpaceChar) >= A || !w.trim()) g += `
1403
+ ` + Q.slice(A);
1404
1404
  else {
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
- f += `
1405
+ if (y || m.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Z.test(m) || ee.test(m) || z.test(m)) break;
1406
+ g += `
1407
1407
  ` + w;
1408
1408
  }
1409
- k = !w.trim(), x += B + `
1410
- `, t = t.substring(B.length + 1), g = K.slice(A);
1409
+ y = !w.trim(), k += B + `
1410
+ `, t = t.substring(B.length + 1), m = Q.slice(A);
1411
1411
  }
1412
1412
  }
1413
- s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(x) && (o = !0)), s.items.push({ type: "list_item", raw: x, task: !!this.options.gfm && this.rules.other.listIsTask.test(f), loose: !1, text: f, tokens: [] }), s.raw += x;
1413
+ s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(k) && (o = !0)), s.items.push({ type: "list_item", raw: k, task: !!this.options.gfm && this.rules.other.listIsTask.test(g), loose: !1, text: g, tokens: [] }), s.raw += k;
1414
1414
  }
1415
1415
  let h = s.items.at(-1);
1416
1416
  if (h) h.raw = h.raw.trimEnd(), h.text = h.text.trimEnd();
@@ -1418,27 +1418,27 @@ ${f}` : f;
1418
1418
  s.raw = s.raw.trimEnd();
1419
1419
  for (let c of s.items) {
1420
1420
  this.lexer.state.top = !1, c.tokens = this.lexer.blockTokens(c.text, []);
1421
- let x = c.tokens[0];
1422
- if (c.task && (x?.type === "text" || x?.type === "paragraph")) {
1423
- c.text = c.text.replace(this.rules.other.listReplaceTask, ""), x.raw = x.raw.replace(this.rules.other.listReplaceTask, ""), x.text = x.text.replace(this.rules.other.listReplaceTask, "");
1424
- for (let g = this.lexer.inlineQueue.length - 1; g >= 0; g--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)) {
1425
- this.lexer.inlineQueue[g].src = this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask, "");
1421
+ let k = c.tokens[0];
1422
+ if (c.task && (k?.type === "text" || k?.type === "paragraph")) {
1423
+ c.text = c.text.replace(this.rules.other.listReplaceTask, ""), k.raw = k.raw.replace(this.rules.other.listReplaceTask, ""), k.text = k.text.replace(this.rules.other.listReplaceTask, "");
1424
+ for (let m = this.lexer.inlineQueue.length - 1; m >= 0; m--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[m].src)) {
1425
+ this.lexer.inlineQueue[m].src = this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask, "");
1426
1426
  break;
1427
1427
  }
1428
- let f = this.rules.other.listTaskCheckbox.exec(c.raw);
1429
- if (f) {
1430
- let g = { type: "checkbox", raw: f[0] + " ", checked: f[0] !== "[ ]" };
1431
- c.checked = g.checked, s.loose ? c.tokens[0] && ["paragraph", "text"].includes(c.tokens[0].type) && "tokens" in c.tokens[0] && c.tokens[0].tokens ? (c.tokens[0].raw = g.raw + c.tokens[0].raw, c.tokens[0].text = g.raw + c.tokens[0].text, c.tokens[0].tokens.unshift(g)) : c.tokens.unshift({ type: "paragraph", raw: g.raw, text: g.raw, tokens: [g] }) : c.tokens.unshift(g);
1428
+ let g = this.rules.other.listTaskCheckbox.exec(c.raw);
1429
+ if (g) {
1430
+ let m = { type: "checkbox", raw: g[0] + " ", checked: g[0] !== "[ ]" };
1431
+ c.checked = m.checked, s.loose ? c.tokens[0] && ["paragraph", "text"].includes(c.tokens[0].type) && "tokens" in c.tokens[0] && c.tokens[0].tokens ? (c.tokens[0].raw = m.raw + c.tokens[0].raw, c.tokens[0].text = m.raw + c.tokens[0].text, c.tokens[0].tokens.unshift(m)) : c.tokens.unshift({ type: "paragraph", raw: m.raw, text: m.raw, tokens: [m] }) : c.tokens.unshift(m);
1432
1432
  }
1433
1433
  } else c.task && (c.task = !1);
1434
1434
  if (!s.loose) {
1435
- let f = c.tokens.filter((w) => w.type === "space"), g = f.length > 0 && f.some((w) => this.rules.other.anyLine.test(w.raw));
1436
- s.loose = g;
1435
+ let g = c.tokens.filter((w) => w.type === "space"), m = g.length > 0 && g.some((w) => this.rules.other.anyLine.test(w.raw));
1436
+ s.loose = m;
1437
1437
  }
1438
1438
  }
1439
1439
  if (s.loose) for (let c of s.items) {
1440
1440
  c.loose = !0;
1441
- for (let x of c.tokens) x.type === "text" && (x.type = "paragraph");
1441
+ for (let k of c.tokens) k.type === "text" && (k.type = "paragraph");
1442
1442
  }
1443
1443
  return s;
1444
1444
  }
@@ -1446,7 +1446,7 @@ ${f}` : f;
1446
1446
  html(t) {
1447
1447
  let e = this.rules.block.html.exec(t);
1448
1448
  if (e) {
1449
- let n = ps(e[0]);
1449
+ let n = ds(e[0]);
1450
1450
  return { type: "html", block: !0, raw: n, pre: e[1] === "pre" || e[1] === "script" || e[1] === "style", text: n };
1451
1451
  }
1452
1452
  }
@@ -1520,7 +1520,7 @@ ${f}` : f;
1520
1520
  let l = this.rules.other.pedanticHrefTitle.exec(i);
1521
1521
  l && (i = l[1], s = l[3]);
1522
1522
  } else s = e[3] ? e[3].slice(1, -1) : "";
1523
- return i = i.trim(), this.rules.other.startAngleBracket.test(i) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? i = i.slice(1) : i = i.slice(1, -1)), ds(e, { href: i && i.replace(this.rules.inline.anyPunctuation, "$1"), title: s && s.replace(this.rules.inline.anyPunctuation, "$1") }, e[0], this.lexer, this.rules);
1523
+ return i = i.trim(), this.rules.other.startAngleBracket.test(i) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? i = i.slice(1) : i = i.slice(1, -1)), ps(e, { href: i && i.replace(this.rules.inline.anyPunctuation, "$1"), title: s && s.replace(this.rules.inline.anyPunctuation, "$1") }, e[0], this.lexer, this.rules);
1524
1524
  }
1525
1525
  }
1526
1526
  reflink(t, e) {
@@ -1531,14 +1531,14 @@ ${f}` : f;
1531
1531
  let l = n[0].charAt(0);
1532
1532
  return { type: "text", raw: l, text: l };
1533
1533
  }
1534
- return ds(n, s, n[0], this.lexer, this.rules);
1534
+ return ps(n, s, n[0], this.lexer, this.rules);
1535
1535
  }
1536
1536
  }
1537
1537
  emStrong(t, e, n = "") {
1538
1538
  let i = this.rules.inline.emStrongLDelim.exec(t);
1539
1539
  if (!(!i || !i[1] && !i[2] && !i[3] && !i[4] || i[4] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(i[1] || i[3]) || !n || this.rules.inline.punctuation.exec(n))) {
1540
- let s = [...i[0]].length - 1, l, o, h = s, c = 0, x = i[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
1541
- for (x.lastIndex = 0, e = e.slice(-1 * t.length + s); (i = x.exec(e)) !== null; ) {
1540
+ let s = [...i[0]].length - 1, l, o, h = s, c = 0, k = i[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
1541
+ for (k.lastIndex = 0, e = e.slice(-1 * t.length + s); (i = k.exec(e)) !== null; ) {
1542
1542
  if (l = i[1] || i[2] || i[3] || i[4] || i[5] || i[6], !l) continue;
1543
1543
  if (o = [...l].length, i[3] || i[4]) {
1544
1544
  h += o;
@@ -1549,13 +1549,13 @@ ${f}` : f;
1549
1549
  }
1550
1550
  if (h -= o, h > 0) continue;
1551
1551
  o = Math.min(o, o + h + c);
1552
- let f = [...i[0]][0].length, g = t.slice(0, s + i.index + f + o);
1552
+ let g = [...i[0]][0].length, m = t.slice(0, s + i.index + g + o);
1553
1553
  if (Math.min(s, o) % 2) {
1554
- let k = g.slice(1, -1);
1555
- return { type: "em", raw: g, text: k, tokens: this.lexer.inlineTokens(k) };
1554
+ let y = m.slice(1, -1);
1555
+ return { type: "em", raw: m, text: y, tokens: this.lexer.inlineTokens(y) };
1556
1556
  }
1557
- let w = g.slice(2, -2);
1558
- return { type: "strong", raw: g, text: w, tokens: this.lexer.inlineTokens(w) };
1557
+ let w = m.slice(2, -2);
1558
+ return { type: "strong", raw: m, text: w, tokens: this.lexer.inlineTokens(w) };
1559
1559
  }
1560
1560
  }
1561
1561
  }
@@ -1582,8 +1582,8 @@ ${f}` : f;
1582
1582
  }
1583
1583
  if (h -= o, h > 0) continue;
1584
1584
  o = Math.min(o, o + h);
1585
- let x = [...i[0]][0].length, f = t.slice(0, s + i.index + x + o), g = f.slice(s, -s);
1586
- return { type: "del", raw: f, text: g, tokens: this.lexer.inlineTokens(g) };
1585
+ let k = [...i[0]][0].length, g = t.slice(0, s + i.index + k + o), m = g.slice(s, -s);
1586
+ return { type: "del", raw: g, text: m, tokens: this.lexer.inlineTokens(m) };
1587
1587
  }
1588
1588
  }
1589
1589
  }
@@ -1616,7 +1616,7 @@ ${f}` : f;
1616
1616
  return { type: "text", raw: e[0], text: e[0], escaped: n };
1617
1617
  }
1618
1618
  }
1619
- }, p(Qe, "w"), Qe), Re, pe = (Re = class {
1619
+ }, d(Ke, "w"), Ke), Re, de = (Re = class {
1620
1620
  constructor(t) {
1621
1621
  O(this, "tokens");
1622
1622
  O(this, "options");
@@ -1716,8 +1716,8 @@ ${f}` : f;
1716
1716
  let l = t;
1717
1717
  if (this.options.extensions?.startBlock) {
1718
1718
  let o = 1 / 0, h = t.slice(1), c;
1719
- this.options.extensions.startBlock.forEach((x) => {
1720
- c = x.call({ lexer: this }, h), typeof c == "number" && c >= 0 && (o = Math.min(o, c));
1719
+ this.options.extensions.startBlock.forEach((k) => {
1720
+ c = k.call({ lexer: this }, h), typeof c == "number" && c >= 0 && (o = Math.min(o, c));
1721
1721
  }), o < 1 / 0 && o >= 0 && (l = t.substring(0, o + 1));
1722
1722
  }
1723
1723
  if (this.state.top && (s = this.tokenizer.paragraph(l))) {
@@ -1767,7 +1767,7 @@ ${f}` : f;
1767
1767
  }
1768
1768
  l || (o = ""), l = !1;
1769
1769
  let c;
1770
- if (this.options.extensions?.inline?.some((f) => (c = f.call({ lexer: this }, t, e)) ? (t = t.substring(c.raw.length), e.push(c), !0) : !1)) continue;
1770
+ if (this.options.extensions?.inline?.some((g) => (c = g.call({ lexer: this }, t, e)) ? (t = t.substring(c.raw.length), e.push(c), !0) : !1)) continue;
1771
1771
  if (c = this.tokenizer.escape(t)) {
1772
1772
  t = t.substring(c.raw.length), e.push(c);
1773
1773
  continue;
@@ -1782,8 +1782,8 @@ ${f}` : f;
1782
1782
  }
1783
1783
  if (c = this.tokenizer.reflink(t, this.tokens.links)) {
1784
1784
  t = t.substring(c.raw.length);
1785
- let f = e.at(-1);
1786
- c.type === "text" && f?.type === "text" ? (f.raw += c.raw, f.text += c.text) : e.push(c);
1785
+ let g = e.at(-1);
1786
+ c.type === "text" && g?.type === "text" ? (g.raw += c.raw, g.text += c.text) : e.push(c);
1787
1787
  continue;
1788
1788
  }
1789
1789
  if (c = this.tokenizer.emStrong(t, n, o)) {
@@ -1810,17 +1810,17 @@ ${f}` : f;
1810
1810
  t = t.substring(c.raw.length), e.push(c);
1811
1811
  continue;
1812
1812
  }
1813
- let x = t;
1813
+ let k = t;
1814
1814
  if (this.options.extensions?.startInline) {
1815
- let f = 1 / 0, g = t.slice(1), w;
1816
- this.options.extensions.startInline.forEach((k) => {
1817
- w = k.call({ lexer: this }, g), typeof w == "number" && w >= 0 && (f = Math.min(f, w));
1818
- }), f < 1 / 0 && f >= 0 && (x = t.substring(0, f + 1));
1815
+ let g = 1 / 0, m = t.slice(1), w;
1816
+ this.options.extensions.startInline.forEach((y) => {
1817
+ w = y.call({ lexer: this }, m), typeof w == "number" && w >= 0 && (g = Math.min(g, w));
1818
+ }), g < 1 / 0 && g >= 0 && (k = t.substring(0, g + 1));
1819
1819
  }
1820
- if (c = this.tokenizer.inlineText(x)) {
1820
+ if (c = this.tokenizer.inlineText(k)) {
1821
1821
  t = t.substring(c.raw.length), c.raw.slice(-1) !== "_" && (o = c.raw.slice(-1)), l = !0;
1822
- let f = e.at(-1);
1823
- f?.type === "text" ? (f.raw += c.raw, f.text += c.text) : e.push(c);
1822
+ let g = e.at(-1);
1823
+ g?.type === "text" ? (g.raw += c.raw, g.text += c.text) : e.push(c);
1824
1824
  continue;
1825
1825
  }
1826
1826
  if (t) {
@@ -1835,7 +1835,7 @@ ${f}` : f;
1835
1835
  if (this.options.silent) console.error(e);
1836
1836
  else throw new Error(e);
1837
1837
  }
1838
- }, p(Re, "l"), Re), Ke, Lt = (Ke = class {
1838
+ }, d(Re, "l"), Re), Qe, Lt = (Qe = class {
1839
1839
  constructor(t) {
1840
1840
  O(this, "options");
1841
1841
  O(this, "parser");
@@ -1952,7 +1952,7 @@ ${t}</tr>
1952
1952
  text(t) {
1953
1953
  return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : ke(t.text);
1954
1954
  }
1955
- }, p(Ke, "y"), Ke), Je, bn = (Je = class {
1955
+ }, d(Qe, "y"), Qe), Je, bn = (Je = class {
1956
1956
  strong({ text: t }) {
1957
1957
  return t;
1958
1958
  }
@@ -1983,7 +1983,7 @@ ${t}</tr>
1983
1983
  checkbox({ raw: t }) {
1984
1984
  return t;
1985
1985
  }
1986
- }, p(Je, "L"), Je), Ie, de = (Ie = class {
1986
+ }, d(Je, "L"), Je), Ie, pe = (Ie = class {
1987
1987
  constructor(t) {
1988
1988
  O(this, "options");
1989
1989
  O(this, "renderer");
@@ -2134,7 +2134,7 @@ ${t}</tr>
2134
2134
  }
2135
2135
  return n;
2136
2136
  }
2137
- }, p(Ie, "l"), Ie), _e, pt = (_e = class {
2137
+ }, d(Ie, "l"), Ie), _e, dt = (_e = class {
2138
2138
  constructor(t) {
2139
2139
  O(this, "options");
2140
2140
  O(this, "block");
@@ -2153,23 +2153,23 @@ ${t}</tr>
2153
2153
  return t;
2154
2154
  }
2155
2155
  provideLexer(t = this.block) {
2156
- return t ? pe.lex : pe.lexInline;
2156
+ return t ? de.lex : de.lexInline;
2157
2157
  }
2158
2158
  provideParser(t = this.block) {
2159
- return t ? de.parse : de.parseInline;
2159
+ return t ? pe.parse : pe.parseInline;
2160
2160
  }
2161
- }, p(_e, "P"), O(_e, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), O(_e, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _e), et, Tr = (et = class {
2161
+ }, d(_e, "P"), O(_e, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), O(_e, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _e), et, Tr = (et = class {
2162
2162
  constructor(...t) {
2163
2163
  O(this, "defaults", cn());
2164
2164
  O(this, "options", this.setOptions);
2165
2165
  O(this, "parse", this.parseMarkdown(!0));
2166
2166
  O(this, "parseInline", this.parseMarkdown(!1));
2167
- O(this, "Parser", de);
2167
+ O(this, "Parser", pe);
2168
2168
  O(this, "Renderer", Lt);
2169
2169
  O(this, "TextRenderer", bn);
2170
- O(this, "Lexer", pe);
2170
+ O(this, "Lexer", de);
2171
2171
  O(this, "Tokenizer", Mt);
2172
- O(this, "Hooks", pt);
2172
+ O(this, "Hooks", dt);
2173
2173
  this.use(...t);
2174
2174
  }
2175
2175
  walkTokens(t, e) {
@@ -2221,9 +2221,9 @@ ${t}</tr>
2221
2221
  if (!(l in s)) throw new Error(`renderer '${l}' does not exist`);
2222
2222
  if (["options", "parser"].includes(l)) continue;
2223
2223
  let o = l, h = n.renderer[o], c = s[o];
2224
- s[o] = (...x) => {
2225
- let f = h.apply(s, x);
2226
- return f === !1 && (f = c.apply(s, x)), f || "";
2224
+ s[o] = (...k) => {
2225
+ let g = h.apply(s, k);
2226
+ return g === !1 && (g = c.apply(s, k)), g || "";
2227
2227
  };
2228
2228
  }
2229
2229
  i.renderer = s;
@@ -2234,33 +2234,33 @@ ${t}</tr>
2234
2234
  if (!(l in s)) throw new Error(`tokenizer '${l}' does not exist`);
2235
2235
  if (["options", "rules", "lexer"].includes(l)) continue;
2236
2236
  let o = l, h = n.tokenizer[o], c = s[o];
2237
- s[o] = (...x) => {
2238
- let f = h.apply(s, x);
2239
- return f === !1 && (f = c.apply(s, x)), f;
2237
+ s[o] = (...k) => {
2238
+ let g = h.apply(s, k);
2239
+ return g === !1 && (g = c.apply(s, k)), g;
2240
2240
  };
2241
2241
  }
2242
2242
  i.tokenizer = s;
2243
2243
  }
2244
2244
  if (n.hooks) {
2245
- let s = this.defaults.hooks || new pt();
2245
+ let s = this.defaults.hooks || new dt();
2246
2246
  for (let l in n.hooks) {
2247
2247
  if (!(l in s)) throw new Error(`hook '${l}' does not exist`);
2248
2248
  if (["options", "block"].includes(l)) continue;
2249
2249
  let o = l, h = n.hooks[o], c = s[o];
2250
- pt.passThroughHooks.has(l) ? s[o] = (x) => {
2251
- if (this.defaults.async && pt.passThroughHooksRespectAsync.has(l)) return (async () => {
2252
- let g = await h.call(s, x);
2253
- return c.call(s, g);
2250
+ dt.passThroughHooks.has(l) ? s[o] = (k) => {
2251
+ if (this.defaults.async && dt.passThroughHooksRespectAsync.has(l)) return (async () => {
2252
+ let m = await h.call(s, k);
2253
+ return c.call(s, m);
2254
2254
  })();
2255
- let f = h.call(s, x);
2256
- return c.call(s, f);
2257
- } : s[o] = (...x) => {
2255
+ let g = h.call(s, k);
2256
+ return c.call(s, g);
2257
+ } : s[o] = (...k) => {
2258
2258
  if (this.defaults.async) return (async () => {
2259
- let g = await h.apply(s, x);
2260
- return g === !1 && (g = await c.apply(s, x)), g;
2259
+ let m = await h.apply(s, k);
2260
+ return m === !1 && (m = await c.apply(s, k)), m;
2261
2261
  })();
2262
- let f = h.apply(s, x);
2263
- return f === !1 && (f = c.apply(s, x)), f;
2262
+ let g = h.apply(s, k);
2263
+ return g === !1 && (g = c.apply(s, k)), g;
2264
2264
  };
2265
2265
  }
2266
2266
  i.hooks = s;
@@ -2279,10 +2279,10 @@ ${t}</tr>
2279
2279
  return this.defaults = { ...this.defaults, ...t }, this;
2280
2280
  }
2281
2281
  lexer(t, e) {
2282
- return pe.lex(t, e ?? this.defaults);
2282
+ return de.lex(t, e ?? this.defaults);
2283
2283
  }
2284
2284
  parser(t, e) {
2285
- return de.parse(t, e ?? this.defaults);
2285
+ return pe.parse(t, e ?? this.defaults);
2286
2286
  }
2287
2287
  parseMarkdown(t) {
2288
2288
  return (e, n) => {
@@ -2291,16 +2291,16 @@ ${t}</tr>
2291
2291
  if (typeof e > "u" || e === null) return l(new Error("marked(): input parameter is undefined or null"));
2292
2292
  if (typeof e != "string") return l(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e) + ", string expected"));
2293
2293
  if (s.hooks && (s.hooks.options = s, s.hooks.block = t), s.async) return (async () => {
2294
- let o = s.hooks ? await s.hooks.preprocess(e) : e, h = await (s.hooks ? await s.hooks.provideLexer(t) : t ? pe.lex : pe.lexInline)(o, s), c = s.hooks ? await s.hooks.processAllTokens(h) : h;
2294
+ let o = s.hooks ? await s.hooks.preprocess(e) : e, h = await (s.hooks ? await s.hooks.provideLexer(t) : t ? de.lex : de.lexInline)(o, s), c = s.hooks ? await s.hooks.processAllTokens(h) : h;
2295
2295
  s.walkTokens && await Promise.all(this.walkTokens(c, s.walkTokens));
2296
- let x = await (s.hooks ? await s.hooks.provideParser(t) : t ? de.parse : de.parseInline)(c, s);
2297
- return s.hooks ? await s.hooks.postprocess(x) : x;
2296
+ let k = await (s.hooks ? await s.hooks.provideParser(t) : t ? pe.parse : pe.parseInline)(c, s);
2297
+ return s.hooks ? await s.hooks.postprocess(k) : k;
2298
2298
  })().catch(l);
2299
2299
  try {
2300
2300
  s.hooks && (e = s.hooks.preprocess(e));
2301
- let o = (s.hooks ? s.hooks.provideLexer(t) : t ? pe.lex : pe.lexInline)(e, s);
2301
+ let o = (s.hooks ? s.hooks.provideLexer(t) : t ? de.lex : de.lexInline)(e, s);
2302
2302
  s.hooks && (o = s.hooks.processAllTokens(o)), s.walkTokens && this.walkTokens(o, s.walkTokens);
2303
- let h = (s.hooks ? s.hooks.provideParser(t) : t ? de.parse : de.parseInline)(o, s);
2303
+ let h = (s.hooks ? s.hooks.provideParser(t) : t ? pe.parse : pe.parseInline)(o, s);
2304
2304
  return s.hooks && (h = s.hooks.postprocess(h)), h;
2305
2305
  } catch (o) {
2306
2306
  return l(o);
@@ -2318,11 +2318,11 @@ Please report this to https://github.com/markedjs/marked.`, t) {
2318
2318
  throw n;
2319
2319
  };
2320
2320
  }
2321
- }, p(et, "q"), et), Me = new Tr();
2321
+ }, d(et, "q"), et), Me = new Tr();
2322
2322
  function N(a, t) {
2323
2323
  return Me.parse(a, t);
2324
2324
  }
2325
- p(N, "g");
2325
+ d(N, "g");
2326
2326
  N.options = N.setOptions = function(a) {
2327
2327
  return Me.setOptions(a), N.defaults = Me.defaults, ws(N.defaults), N;
2328
2328
  };
@@ -2335,22 +2335,22 @@ N.walkTokens = function(a, t) {
2335
2335
  return Me.walkTokens(a, t);
2336
2336
  };
2337
2337
  N.parseInline = Me.parseInline;
2338
- N.Parser = de;
2339
- N.parser = de.parse;
2338
+ N.Parser = pe;
2339
+ N.parser = pe.parse;
2340
2340
  N.Renderer = Lt;
2341
2341
  N.TextRenderer = bn;
2342
- N.Lexer = pe;
2343
- N.lexer = pe.lex;
2342
+ N.Lexer = de;
2343
+ N.lexer = de.lex;
2344
2344
  N.Tokenizer = Mt;
2345
- N.Hooks = pt;
2345
+ N.Hooks = dt;
2346
2346
  N.parse = N;
2347
2347
  N.options;
2348
2348
  N.setOptions;
2349
2349
  N.use;
2350
2350
  N.walkTokens;
2351
2351
  N.parseInline;
2352
- de.parse;
2353
- pe.lex;
2352
+ pe.parse;
2353
+ de.lex;
2354
2354
  const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2355
2355
  __name: "ChatRichText",
2356
2356
  props: {
@@ -2389,7 +2389,7 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2389
2389
  }
2390
2390
  return c ? `<a href="${l}">${o}</a>` : `<a href="${l}" target="_blank" rel="noopener noreferrer">${o}</a>`;
2391
2391
  }, N.setOptions({ breaks: !0, gfm: !0, renderer: i });
2392
- const s = j(() => {
2392
+ const s = G(() => {
2393
2393
  const l = e.value;
2394
2394
  if (!l) return "";
2395
2395
  const o = N.parse(l, { async: !1 });
@@ -2409,16 +2409,16 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2409
2409
  const c = e.value;
2410
2410
  c && (c.scrollTop = c.scrollHeight);
2411
2411
  }
2412
- p(l, "scrollToBottom");
2412
+ d(l, "scrollToBottom");
2413
2413
  function o() {
2414
2414
  const c = e.value;
2415
2415
  c && (i = c.scrollHeight - c.scrollTop - c.clientHeight <= Ar);
2416
2416
  }
2417
- p(o, "onScroll");
2417
+ d(o, "onScroll");
2418
2418
  function h() {
2419
2419
  i = !0, l();
2420
2420
  }
2421
- return p(h, "pin"), t({ pin: h }), Nt(() => {
2421
+ return d(h, "pin"), t({ pin: h }), Nt(() => {
2422
2422
  requestAnimationFrame(() => {
2423
2423
  l(), requestAnimationFrame(l);
2424
2424
  }), n.value && (s = new ResizeObserver(() => {
@@ -2426,7 +2426,7 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2426
2426
  }), s.observe(n.value));
2427
2427
  }), gs(() => {
2428
2428
  s?.disconnect();
2429
- }), (c, x) => (T(), S("div", {
2429
+ }), (c, k) => (T(), S("div", {
2430
2430
  ref_key: "viewport",
2431
2431
  ref: e,
2432
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",
@@ -2450,26 +2450,26 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2450
2450
  }, Cr = { class: "relative mb-4 size-20 @sm/chat:size-24" }, Dr = ["src", "alt"], Or = ["title"], Mr = {
2451
2451
  key: 0,
2452
2452
  class: "flex items-center gap-3 py-3 px-2"
2453
- }, Lr = ["data-issue-code", "data-issue-bucket"], Nr = { class: "max-w-[85%] min-w-0" }, zr = ["href"], $r = ["data-test"], Pr = {
2453
+ }, Lr = ["data-message-id", "data-message-sender", "data-conversation-id", "data-message-sequence", "data-system-kind", "data-issue-code", "data-issue-bucket", "data-issue-action-label", "data-issue-action-url", "data-streaming"], Nr = { class: "max-w-[85%] min-w-0" }, zr = ["href"], $r = ["data-message-id", "data-message-sender", "data-conversation-id", "data-message-sequence", "data-system-kind", "data-issue-code", "data-issue-bucket", "data-streaming"], Pr = ["data-test", "data-message-id", "data-message-sender", "data-conversation-id", "data-message-sequence", "data-system-kind", "data-streaming"], Br = {
2454
2454
  key: 0,
2455
2455
  class: "flex-shrink-0 size-7 @sm/chat:size-8"
2456
- }, Br = ["src", "alt"], Fr = ["src", "alt"], Ur = ["src"], Hr = ["href"], jr = {
2456
+ }, Fr = ["src", "alt"], Ur = ["src", "alt"], Hr = ["src"], jr = ["href"], Gr = {
2457
2457
  key: 1,
2458
2458
  "data-test": "messaging-thinking-indicator",
2459
2459
  class: "flex gap-2 justify-start items-center mb-4"
2460
- }, Gr = ["src", "alt"], Wr = {
2460
+ }, Wr = ["src", "alt"], qr = {
2461
2461
  key: 0,
2462
2462
  class: "flex items-center gap-2 px-2 pb-2 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
2463
- }, qr = ["src", "alt"], Yr = { class: "max-w-20 truncate" }, Vr = ["onClick"], Zr = {
2463
+ }, Yr = ["src", "alt"], Vr = { class: "max-w-20 truncate" }, Zr = ["onClick"], Xr = {
2464
2464
  key: 0,
2465
2465
  class: "shrink-0 flex items-center justify-center size-14"
2466
- }, Xr = ["disabled"], Qr = {
2466
+ }, Kr = ["disabled"], Qr = {
2467
2467
  key: 0,
2468
2468
  class: "i-svg-spinners-ring-resize size-4"
2469
- }, Kr = {
2469
+ }, Jr = {
2470
2470
  key: 1,
2471
2471
  class: "i-tabler-paperclip size-5"
2472
- }, Jr = ["placeholder", "disabled"], ea = ["disabled"], pa = /* @__PURE__ */ ve({
2472
+ }, ea = ["placeholder", "disabled"], ta = ["disabled"], pa = /* @__PURE__ */ ve({
2473
2473
  __name: "ElAgentChat",
2474
2474
  props: {
2475
2475
  chatController: {},
@@ -2486,91 +2486,91 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2486
2486
  private: { icon: "i-tabler-lock", label: "Private", tooltip: "Only you can see this conversation" },
2487
2487
  org: { icon: "i-tabler-users", label: "Workspace", tooltip: "Visible to workspace members" },
2488
2488
  public: { icon: "i-tabler-globe", label: "Public", tooltip: "Anyone with the link can see this" }
2489
- }, e = j(() => {
2489
+ }, e = G(() => {
2490
2490
  const I = { ...t[a.scope] };
2491
2491
  return a.scope === "org" && a.scopeName && (I.label = a.scopeName, I.tooltip = `Visible to ${a.scopeName} members`), I;
2492
2492
  }), n = ie(""), i = ie(!1), s = ie(), l = ie(), o = ie(), h = ie([]), c = ie(!1);
2493
- function x(I) {
2493
+ function k(I) {
2494
2494
  return I ? /\[[^\]]+\]\([^)]+\)/.test(I) : !1;
2495
2495
  }
2496
- p(x, "containsMarkdownLink");
2497
- function f(I) {
2498
- return I.sender === "system" && (!!I.issue || I.id === G.value);
2496
+ d(k, "containsMarkdownLink");
2497
+ function g(I) {
2498
+ return I.sender === "system" && (!!I.issue || I.id === H.value);
2499
2499
  }
2500
- p(f, "isSystemExplainerMessage");
2501
- function g(I, m) {
2502
- const y = I[m], E = I[m + 1];
2503
- return !E || E.sender !== y.sender;
2500
+ d(g, "isSystemExplainerMessage");
2501
+ function m(I, b) {
2502
+ const p = I[b], E = I[b + 1];
2503
+ return !E || E.sender !== p.sender;
2504
2504
  }
2505
- p(g, "shouldShowAvatar");
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(() => {
2505
+ d(m, "shouldShowAvatar");
2506
+ const w = G(() => a.chatController?.textState.value), y = G(() => w.value?.isConnected ?? !1), A = G(() => w.value?.isThinking ?? !1), C = G(() => w.value?.connectionStatus === "disconnected" && !!w.value?.error), z = G(() => w.value?.connectionStatus !== "connected" && !w.value?.error), Z = G(() => w.value?.error), ee = G(() => a.chatController?.sharedMessages.value ?? []), H = G(() => {
2507
2507
  if (!A.value) return;
2508
- const I = ee.value, m = I[I.length - 1];
2509
- return m?.sender === "agent" || m?.sender === "system" ? m.id : void 0;
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(
2508
+ const I = ee.value, b = I[I.length - 1];
2509
+ return b?.sender === "agent" || b?.sender === "system" ? b.id : void 0;
2510
+ }), ae = G(() => A.value ? H.value === void 0 : !1), B = G(() => w.value?.sendBlockedReason), Q = G(() => !y.value || B.value !== void 0), ye = G(() => 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 = G(() => (n.value.trim() || h.value.length > 0) && !Q.value && !c.value), M = G(() => a.variant === "light"), ft = G(
2511
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"
2512
- ), nt = j(() => M.value ? "text-theme-300" : "text-white/30");
2512
+ ), nt = G(() => M.value ? "text-theme-300" : "text-white/30");
2513
2513
  Nt(async () => {
2514
- a.chatController && !k.value && await a.chatController.startTextConversation();
2514
+ a.chatController && !y.value && await a.chatController.startTextConversation();
2515
2515
  });
2516
2516
  async function gt() {
2517
- const I = n.value.trim(), m = h.value.length > 0;
2518
- if (!I && !m || !a.chatController || K.value || c.value)
2517
+ const I = n.value.trim(), b = h.value.length > 0;
2518
+ if (!I && !b || !a.chatController || Q.value || c.value)
2519
2519
  return;
2520
- const y = n.value, E = m ? [...h.value] : void 0;
2521
- n.value = "", h.value = [], l.value && (l.value.style.height = "auto", l.value.focus()), s.value?.pin(), await a.chatController.sendChatMessage(y, E);
2520
+ const p = n.value, E = b ? [...h.value] : void 0;
2521
+ n.value = "", h.value = [], l.value && (l.value.style.height = "auto", l.value.focus()), s.value?.pin(), await a.chatController.sendChatMessage(p, E);
2522
2522
  }
2523
- p(gt, "sendMessage");
2523
+ d(gt, "sendMessage");
2524
2524
  async function q(I) {
2525
2525
  I.key === "Enter" && !I.shiftKey && (I.preventDefault(), await gt());
2526
2526
  }
2527
- p(q, "handleKeydown");
2527
+ d(q, "handleKeydown");
2528
2528
  function Ne() {
2529
2529
  l.value && (l.value.style.height = "auto", l.value.style.height = `${Math.min(l.value.scrollHeight, 150)}px`);
2530
2530
  }
2531
- p(Ne, "adjustTextareaHeight"), Ct(n, () => Bs(() => Ne()));
2531
+ d(Ne, "adjustTextareaHeight"), Ct(n, () => Bs(() => Ne()));
2532
2532
  function ze() {
2533
2533
  o.value?.click();
2534
2534
  }
2535
- p(ze, "triggerFileInput");
2535
+ d(ze, "triggerFileInput");
2536
2536
  async function $e(I) {
2537
- const m = I.target, y = m.files?.[0];
2538
- if (!(!y || !a.uploadFn)) {
2537
+ const b = I.target, p = b.files?.[0];
2538
+ if (!(!p || !a.uploadFn)) {
2539
2539
  c.value = !0;
2540
2540
  try {
2541
- const E = await a.uploadFn(y);
2541
+ const E = await a.uploadFn(p);
2542
2542
  h.value = [...h.value, E];
2543
2543
  } catch (E) {
2544
2544
  const X = E instanceof Error ? E.message : "Couldn't attach that file.";
2545
2545
  a.chatController?.notify(`Upload failed — ${X}`);
2546
2546
  } finally {
2547
- c.value = !1, m.value = "";
2547
+ c.value = !1, b.value = "";
2548
2548
  }
2549
2549
  }
2550
2550
  }
2551
- p($e, "handleFileSelect");
2551
+ d($e, "handleFileSelect");
2552
2552
  function Pt(I) {
2553
- h.value = h.value.filter((m, y) => y !== I);
2553
+ h.value = h.value.filter((b, p) => p !== I);
2554
2554
  }
2555
- p(Pt, "removeAttachment");
2556
- function mt(I, m) {
2557
- if (m === 0) {
2558
- const F = I[m];
2555
+ d(Pt, "removeAttachment");
2556
+ function mt(I, b) {
2557
+ if (b === 0) {
2558
+ const F = I[b];
2559
2559
  return F?.timestamp ? bt(new Date(F.timestamp)) : null;
2560
2560
  }
2561
- const y = I[m - 1], E = I[m];
2562
- if (!y?.timestamp || !E?.timestamp) return null;
2563
- const X = new Date(y.timestamp).getTime();
2561
+ const p = I[b - 1], E = I[b];
2562
+ if (!p?.timestamp || !E?.timestamp) return null;
2563
+ const X = new Date(p.timestamp).getTime();
2564
2564
  return new Date(E.timestamp).getTime() - X > 36e5 ? bt(new Date(E.timestamp)) : null;
2565
2565
  }
2566
- p(mt, "shouldShowTimeDivider");
2566
+ d(mt, "shouldShowTimeDivider");
2567
2567
  function bt(I) {
2568
- const m = /* @__PURE__ */ new Date(), y = I.toDateString() === m.toDateString(), E = new Date(m);
2568
+ const b = /* @__PURE__ */ new Date(), p = I.toDateString() === b.toDateString(), E = new Date(b);
2569
2569
  E.setDate(E.getDate() - 1);
2570
2570
  const X = I.toDateString() === E.toDateString(), P = I.toLocaleTimeString("en-US", { hour: "numeric", minute: "2-digit" });
2571
- if (y) return P;
2571
+ if (p) return P;
2572
2572
  if (X) return `Yesterday, ${P}`;
2573
- const Pe = I.getFullYear() === m.getFullYear();
2573
+ const Pe = I.getFullYear() === b.getFullYear();
2574
2574
  return `${I.toLocaleDateString("en-US", {
2575
2575
  weekday: "long",
2576
2576
  month: "short",
@@ -2578,11 +2578,11 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2578
2578
  ...Pe ? {} : { year: "numeric" }
2579
2579
  })}, ${P}`;
2580
2580
  }
2581
- return p(bt, "formatTimeDivider"), (I, m) => (T(), S("div", _r, [
2581
+ return d(bt, "formatTimeDivider"), (I, b) => (T(), S("div", _r, [
2582
2582
  M.value ? V("", !0) : (T(), S("div", Rr, [
2583
2583
  Ge(ri, {
2584
2584
  agent: a.agent,
2585
- "is-online": k.value
2585
+ "is-online": y.value
2586
2586
  }, null, 8, ["agent", "is-online"])
2587
2587
  ])),
2588
2588
  C.value ? (T(), S("div", {
@@ -2602,7 +2602,7 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2602
2602
  key: 3,
2603
2603
  class: _(["flex items-center justify-center gap-1.5 py-2 text-[11px]", nt.value])
2604
2604
  }, [
2605
- m[9] || (m[9] = v("i", { class: "i-tabler-tool size-3" }, null, -1)),
2605
+ b[9] || (b[9] = v("i", { class: "i-tabler-tool size-3" }, null, -1)),
2606
2606
  v("span", null, he(a.setupHint), 1)
2607
2607
  ], 2)) : V("", !0),
2608
2608
  Ge(Er, {
@@ -2621,10 +2621,10 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2621
2621
  alt: a.agent.displayName.value,
2622
2622
  class: _(["size-full rounded-full object-cover ring-1", M.value ? "ring-black/5" : "ring-white/10"])
2623
2623
  }, null, 10, Dr),
2624
- k.value ? (T(), S("span", {
2624
+ y.value ? (T(), S("span", {
2625
2625
  key: 0,
2626
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"])
2627
- }, [...m[10] || (m[10] = [
2627
+ }, [...b[10] || (b[10] = [
2628
2628
  v("span", { class: "size-[70%] inline-flex rounded-full bg-emerald-500" }, null, -1)
2629
2629
  ])], 2)) : V("", !0)
2630
2630
  ]),
@@ -2644,8 +2644,8 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2644
2644
  v("span", null, he(e.value.label), 1)
2645
2645
  ], 10, Or)
2646
2646
  ])) : V("", !0),
2647
- (T(!0), S(Ze, null, Qt(ee.value, (y, E) => (T(), S(Ze, {
2648
- key: y.id
2647
+ (T(!0), S(Ze, null, Kt(ee.value, (p, E) => (T(), S(Ze, {
2648
+ key: p.id
2649
2649
  }, [
2650
2650
  mt(ee.value, E) ? (T(), S("div", Mr, [
2651
2651
  v("div", {
@@ -2658,11 +2658,19 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2658
2658
  class: _(["flex-1 h-px", ft.value])
2659
2659
  }, null, 2)
2660
2660
  ])) : V("", !0),
2661
- f(y) ? (T(), S("div", {
2661
+ g(p) ? (T(), S("div", {
2662
2662
  key: 1,
2663
2663
  "data-test": "messaging-system-msg",
2664
- "data-issue-code": y.issue?.code,
2665
- "data-issue-bucket": y.issue?.bucket,
2664
+ "data-message-id": p.id,
2665
+ "data-message-sender": p.sender,
2666
+ "data-conversation-id": p.conversationId,
2667
+ "data-message-sequence": p.sequence,
2668
+ "data-system-kind": p.systemKind,
2669
+ "data-issue-code": p.issue?.code,
2670
+ "data-issue-bucket": p.issue?.bucket,
2671
+ "data-issue-action-label": p.issue?.actionLabel,
2672
+ "data-issue-action-url": p.issue?.actionUrl,
2673
+ "data-streaming": p.id === H.value ? "true" : void 0,
2666
2674
  class: "flex gap-2 items-end justify-start mb-4"
2667
2675
  }, [
2668
2676
  v("div", Nr, [
@@ -2672,113 +2680,127 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2672
2680
  v("div", {
2673
2681
  class: _(["rounded-2xl rounded-bl-[4px] px-3.5 py-2 border system-msg-content", M.value ? "bg-theme-100 border-theme-200 text-theme-800" : "bg-white/[0.18] border-white/15 text-white/90"])
2674
2682
  }, [
2675
- y.text ? (T(), Un(It, {
2683
+ p.text ? (T(), Un(It, {
2676
2684
  key: 0,
2677
- text: y.text,
2685
+ text: p.text,
2678
2686
  inverted: !M.value,
2679
- streaming: y.id === G.value,
2680
- onClick: m[0] || (m[0] = Et(() => {
2687
+ streaming: p.id === H.value,
2688
+ onClick: b[0] || (b[0] = Et(() => {
2681
2689
  }, ["stop"]))
2682
- }, null, 8, ["text", "inverted", "streaming"])) : y.issue?.help ? (T(), Un(It, {
2690
+ }, null, 8, ["text", "inverted", "streaming"])) : p.issue?.help ? (T(), Un(It, {
2683
2691
  key: 1,
2684
- text: y.issue.help,
2692
+ text: p.issue.help,
2685
2693
  inverted: !M.value
2686
2694
  }, null, 8, ["text", "inverted"])) : V("", !0),
2687
- y.issue?.actionUrl && !x(y.text) ? (T(), S("a", {
2695
+ p.issue?.actionUrl && !k(p.text) ? (T(), S("a", {
2688
2696
  key: 2,
2689
- href: y.issue.actionUrl,
2697
+ href: p.issue.actionUrl,
2690
2698
  "data-test": "messaging-system-msg-action",
2691
2699
  class: _(["mt-2 text-[12px] font-medium inline-flex items-center gap-1", M.value ? "text-theme-900 hover:text-theme-700" : "text-white hover:text-white/80"]),
2692
- onClick: m[1] || (m[1] = Et(() => {
2700
+ onClick: b[1] || (b[1] = Et(() => {
2693
2701
  }, ["stop"]))
2694
2702
  }, [
2695
- Hn(he(y.issue.actionLabel) + " ", 1),
2696
- m[11] || (m[11] = v("i", { class: "i-tabler-arrow-right size-3" }, null, -1))
2703
+ Hn(he(p.issue.actionLabel) + " ", 1),
2704
+ b[11] || (b[11] = v("i", { class: "i-tabler-arrow-right size-3" }, null, -1))
2697
2705
  ], 10, zr)) : V("", !0)
2698
2706
  ], 2)
2699
2707
  ])
2700
- ], 8, Lr)) : y.sender === "system" ? (T(), S("div", {
2708
+ ], 8, Lr)) : p.sender === "system" ? (T(), S("div", {
2701
2709
  key: 2,
2702
2710
  "data-test": "messaging-system-status-msg",
2711
+ "data-message-id": p.id,
2712
+ "data-message-sender": p.sender,
2713
+ "data-conversation-id": p.conversationId,
2714
+ "data-message-sequence": p.sequence,
2715
+ "data-system-kind": p.systemKind,
2716
+ "data-issue-code": p.issue?.code,
2717
+ "data-issue-bucket": p.issue?.bucket,
2718
+ "data-streaming": p.id === H.value ? "true" : void 0,
2703
2719
  class: _(["flex items-start gap-2 px-3 py-2 text-[13px] leading-relaxed", M.value ? "text-theme-500" : "text-white/60"])
2704
2720
  }, [
2705
- m[12] || (m[12] = v("i", { class: "i-tabler-info-circle size-4 mt-0.5 shrink-0" }, null, -1)),
2721
+ b[12] || (b[12] = v("i", { class: "i-tabler-info-circle size-4 mt-0.5 shrink-0" }, null, -1)),
2706
2722
  Ge(It, {
2707
- text: y.text,
2723
+ text: p.text,
2708
2724
  inverted: !M.value,
2709
- onClick: m[2] || (m[2] = Et(() => {
2725
+ onClick: b[2] || (b[2] = Et(() => {
2710
2726
  }, ["stop"]))
2711
2727
  }, null, 8, ["text", "inverted"])
2712
- ], 2)) : (T(), S("div", {
2728
+ ], 10, $r)) : (T(), S("div", {
2713
2729
  key: 3,
2714
- "data-test": y.sender === "agent" ? "messaging-assistant-msg" : y.sender === "user" ? "messaging-user-msg" : void 0,
2730
+ "data-test": p.sender === "agent" ? "messaging-assistant-msg" : p.sender === "user" ? "messaging-user-msg" : void 0,
2731
+ "data-message-id": p.id,
2732
+ "data-message-sender": p.sender,
2733
+ "data-conversation-id": p.conversationId,
2734
+ "data-message-sequence": p.sequence,
2735
+ "data-system-kind": p.systemKind,
2736
+ "data-streaming": p.id === H.value ? "true" : void 0,
2715
2737
  class: _(["flex gap-2 items-end", {
2716
- "justify-end": y.sender === "user",
2717
- "justify-start": y.sender === "agent",
2718
- "mb-4": g(ee.value, E)
2738
+ "justify-end": p.sender === "user",
2739
+ "justify-start": p.sender === "agent",
2740
+ "mb-4": m(ee.value, E)
2719
2741
  }])
2720
2742
  }, [
2721
- y.sender === "agent" ? (T(), S("div", Pr, [
2722
- g(ee.value, E) ? (T(), S("img", {
2743
+ p.sender === "agent" ? (T(), S("div", Br, [
2744
+ m(ee.value, E) ? (T(), S("img", {
2723
2745
  key: 0,
2724
2746
  src: a.agent.avatarUrl.value,
2725
2747
  alt: a.agent.displayName.value,
2726
2748
  class: _(["size-6 @sm/chat:size-7 rounded-full object-cover shadow-sm", M.value ? "ring-1 ring-black/5" : ""])
2727
- }, null, 10, Br)) : V("", !0)
2749
+ }, null, 10, Fr)) : V("", !0)
2728
2750
  ])) : V("", !0),
2729
2751
  v("div", {
2730
- class: _(y.sender === "user" ? "max-w-[75%]" : "max-w-[85%]")
2752
+ class: _(p.sender === "user" ? "max-w-[75%]" : "max-w-[85%]")
2731
2753
  }, [
2732
- y.attachments?.length ? (T(), S("div", {
2754
+ p.attachments?.length ? (T(), S("div", {
2733
2755
  key: 0,
2734
- class: _(["mb-1 space-y-1", y.sender === "user" ? "flex flex-col items-end" : ""])
2756
+ class: _(["mb-1 space-y-1", p.sender === "user" ? "flex flex-col items-end" : ""])
2735
2757
  }, [
2736
- (T(!0), S(Ze, null, Qt(y.attachments, (X, P) => (T(), S(Ze, { key: P }, [
2758
+ (T(!0), S(Ze, null, Kt(p.attachments, (X, P) => (T(), S(Ze, { key: P }, [
2737
2759
  X.type === "image" ? (T(), S("img", {
2738
2760
  key: 0,
2739
2761
  src: X.src,
2740
2762
  alt: X.filename,
2741
2763
  class: "rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"
2742
- }, null, 8, Fr)) : X.type === "audio" ? (T(), S("audio", {
2764
+ }, null, 8, Ur)) : X.type === "audio" ? (T(), S("audio", {
2743
2765
  key: 1,
2744
2766
  src: X.src,
2745
2767
  controls: "",
2746
2768
  class: "max-w-full"
2747
- }, null, 8, Ur)) : (T(), S("a", {
2769
+ }, null, 8, Hr)) : (T(), S("a", {
2748
2770
  key: 2,
2749
2771
  href: X.src,
2750
2772
  target: "_blank",
2751
2773
  rel: "noopener",
2752
2774
  class: _(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", M.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
2753
2775
  }, [
2754
- m[13] || (m[13] = v("i", { class: "i-tabler-file size-3.5" }, null, -1)),
2776
+ b[13] || (b[13] = v("i", { class: "i-tabler-file size-3.5" }, null, -1)),
2755
2777
  Hn(" " + he(X.filename), 1)
2756
- ], 10, Hr))
2778
+ ], 10, jr))
2757
2779
  ], 64))), 128))
2758
2780
  ], 2)) : V("", !0),
2759
- y.text ? (T(), S("div", {
2781
+ p.text ? (T(), S("div", {
2760
2782
  key: 1,
2761
2783
  class: _(["rounded-2xl px-3.5 py-2", [
2762
- y.sender === "user" ? "bg-primary-500 text-white rounded-br-[4px]" : M.value ? "bg-theme-50 text-theme-800 border border-black/[0.02] rounded-bl-[4px]" : "bg-white/15 backdrop-blur-sm text-white/95 rounded-bl-[4px]"
2784
+ p.sender === "user" ? "bg-primary-500 text-white rounded-br-[4px]" : M.value ? "bg-theme-50 text-theme-800 border border-black/[0.02] rounded-bl-[4px]" : "bg-white/15 backdrop-blur-sm text-white/95 rounded-bl-[4px]"
2763
2785
  ]])
2764
2786
  }, [
2765
2787
  Ge(It, {
2766
- text: y.text,
2767
- inverted: y.sender === "user" || !M.value,
2768
- streaming: y.id === G.value,
2769
- onClick: m[3] || (m[3] = Et(() => {
2788
+ text: p.text,
2789
+ inverted: p.sender === "user" || !M.value,
2790
+ streaming: p.id === H.value,
2791
+ onClick: b[3] || (b[3] = Et(() => {
2770
2792
  }, ["stop"]))
2771
2793
  }, null, 8, ["text", "inverted", "streaming"])
2772
2794
  ], 2)) : V("", !0)
2773
2795
  ], 2)
2774
- ], 10, $r))
2796
+ ], 10, Pr))
2775
2797
  ], 64))), 128)),
2776
- ae.value ? (T(), S("div", jr, [
2798
+ ae.value ? (T(), S("div", Gr, [
2777
2799
  v("img", {
2778
2800
  src: a.agent.avatarUrl.value,
2779
2801
  alt: a.agent.displayName.value,
2780
2802
  class: _(["size-7 @sm/chat:size-8 flex-shrink-0 rounded-full object-cover shadow-sm", M.value ? "ring-1 ring-black/5" : ""])
2781
- }, null, 10, Gr),
2803
+ }, null, 10, Wr),
2782
2804
  v("div", {
2783
2805
  class: _(["rounded-2xl px-3.5 py-2.5 flex items-center", M.value ? "bg-theme-100" : "bg-white/15 backdrop-blur-sm"])
2784
2806
  }, [
@@ -2794,31 +2816,31 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2794
2816
  v("div", {
2795
2817
  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"])
2796
2818
  }, [
2797
- h.value.length > 0 ? (T(), S("div", Wr, [
2798
- (T(!0), S(Ze, null, Qt(h.value, (y, E) => (T(), S("div", {
2819
+ h.value.length > 0 ? (T(), S("div", qr, [
2820
+ (T(!0), S(Ze, null, Kt(h.value, (p, E) => (T(), S("div", {
2799
2821
  key: E,
2800
2822
  class: "relative shrink-0 group"
2801
2823
  }, [
2802
- y.type === "image" ? (T(), S("img", {
2824
+ p.type === "image" ? (T(), S("img", {
2803
2825
  key: 0,
2804
- src: y.src,
2805
- alt: y.filename,
2826
+ src: p.src,
2827
+ alt: p.filename,
2806
2828
  class: _(["size-14 rounded-xl object-cover border", M.value ? "border-black/10" : "border-white/20"])
2807
- }, null, 10, qr)) : (T(), S("div", {
2829
+ }, null, 10, Yr)) : (T(), S("div", {
2808
2830
  key: 1,
2809
2831
  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"])
2810
2832
  }, [
2811
- m[14] || (m[14] = v("i", { class: "i-tabler-file size-4" }, null, -1)),
2812
- v("span", Yr, he(y.filename), 1)
2833
+ b[14] || (b[14] = v("i", { class: "i-tabler-file size-4" }, null, -1)),
2834
+ v("span", Vr, he(p.filename), 1)
2813
2835
  ], 2)),
2814
2836
  v("button", {
2815
2837
  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",
2816
- onClick: /* @__PURE__ */ p((X) => Pt(E), "onClick")
2817
- }, [...m[15] || (m[15] = [
2838
+ onClick: /* @__PURE__ */ d((X) => Pt(E), "onClick")
2839
+ }, [...b[15] || (b[15] = [
2818
2840
  v("i", { class: "i-tabler-x size-3" }, null, -1)
2819
- ])], 8, Vr)
2841
+ ])], 8, Zr)
2820
2842
  ]))), 128)),
2821
- c.value ? (T(), S("div", Zr, [
2843
+ c.value ? (T(), S("div", Xr, [
2822
2844
  Ge(jn, { class: "size-5" })
2823
2845
  ])) : V("", !0)
2824
2846
  ])) : V("", !0),
@@ -2840,44 +2862,44 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2840
2862
  M.value ? "text-theme-400 hover:text-theme-600 hover:bg-black/5" : "text-white/50 hover:text-white/80 hover:bg-white/10",
2841
2863
  c.value ? "opacity-50 pointer-events-none" : ""
2842
2864
  ]]),
2843
- disabled: K.value || c.value || !a.uploadFn,
2844
- onClick: m[4] || (m[4] = (y) => a.uploadFn && ze())
2865
+ disabled: Q.value || c.value || !a.uploadFn,
2866
+ onClick: b[4] || (b[4] = (p) => a.uploadFn && ze())
2845
2867
  }, [
2846
- c.value ? (T(), S("i", Qr)) : (T(), S("i", Kr))
2847
- ], 10, Xr),
2868
+ c.value ? (T(), S("i", Qr)) : (T(), S("i", Jr))
2869
+ ], 10, Kr),
2848
2870
  Us(v("textarea", {
2849
2871
  ref_key: "textarea",
2850
2872
  ref: l,
2851
- "onUpdate:modelValue": m[5] || (m[5] = (y) => n.value = y),
2873
+ "onUpdate:modelValue": b[5] || (b[5] = (p) => n.value = p),
2852
2874
  "data-test": "messaging-input",
2853
2875
  rows: "1",
2854
2876
  enterkeyhint: "send",
2855
2877
  placeholder: ye.value,
2856
- disabled: K.value,
2878
+ disabled: Q.value,
2857
2879
  style: { fontSize: "16px", resize: "none" },
2858
2880
  class: _(["flex-1 min-w-0 bg-transparent px-1 py-2 focus:outline-none disabled:opacity-50 overflow-y-auto leading-relaxed [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", M.value ? "text-theme-800 placeholder-theme-400" : "text-white placeholder-white/50"]),
2859
2881
  onKeydown: q,
2860
- onFocus: m[6] || (m[6] = (y) => i.value = !0),
2861
- onBlur: m[7] || (m[7] = (y) => i.value = !1)
2862
- }, null, 42, Jr), [
2882
+ onFocus: b[6] || (b[6] = (p) => i.value = !0),
2883
+ onBlur: b[7] || (b[7] = (p) => i.value = !1)
2884
+ }, null, 42, ea), [
2863
2885
  [Hs, n.value]
2864
2886
  ]),
2865
2887
  v("button", {
2866
2888
  "data-test": "messaging-send-btn",
2867
2889
  class: _(["shrink-0 flex items-center justify-center rounded-full transition-transform duration-200 mb-0.5 mr-0.5 size-9 @sm/chat:size-10", Te.value ? "bg-primary-500 text-white hover:scale-105 active:scale-95 cursor-pointer" : M.value ? "bg-black/5 text-black/20" : "bg-white/10 text-white/30"]),
2868
2890
  disabled: !Te.value,
2869
- onClick: m[8] || (m[8] = (y) => gt())
2870
- }, [...m[16] || (m[16] = [
2891
+ onClick: b[8] || (b[8] = (p) => gt())
2892
+ }, [...b[16] || (b[16] = [
2871
2893
  v("i", { class: "i-tabler-arrow-up size-5" }, null, -1)
2872
- ])], 10, ea)
2894
+ ])], 10, ta)
2873
2895
  ], 2)
2874
2896
  ], 2)
2875
2897
  ]));
2876
2898
  }
2877
- }), ta = { class: "agent-wrap" }, na = {
2899
+ }), na = { class: "agent-wrap" }, sa = {
2878
2900
  key: 0,
2879
2901
  class: "flex items-center justify-center h-full"
2880
- }, da = /* @__PURE__ */ ve({
2902
+ }, fa = /* @__PURE__ */ ve({
2881
2903
  __name: "AgentWrap",
2882
2904
  props: {
2883
2905
  sdk: {},
@@ -2971,8 +2993,8 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2971
2993
  }
2972
2994
  });
2973
2995
  }
2974
- }), (o, h) => (T(), S("div", ta, [
2975
- i.value ? (T(), S("div", na, [...h[0] || (h[0] = [
2996
+ }), (o, h) => (T(), S("div", na, [
2997
+ i.value ? (T(), S("div", sa, [...h[0] || (h[0] = [
2976
2998
  v("div", { class: "animate-spin rounded-full size-6 border-b-2 border-white" }, null, -1)
2977
2999
  ])])) : s.value ? on(o.$slots, "default", {
2978
3000
  key: 1,
@@ -2989,15 +3011,15 @@ const Sr = ["innerHTML"], It = /* @__PURE__ */ ve({
2989
3011
  });
2990
3012
  export {
2991
3013
  Wn as A,
2992
- da as _,
3014
+ fa as _,
2993
3015
  pa as a,
2994
- ua as b,
2995
- ca as c,
2996
- ha as d,
3016
+ ha as b,
3017
+ ua as c,
3018
+ da as d,
2997
3019
  jn as e,
2998
3020
  ri as f,
2999
- la as g,
3021
+ oa as g,
3000
3022
  Yn as h,
3001
- oa as p
3023
+ ca as p
3002
3024
  };
3003
3025
  //# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang.js.map