@qtalo/qt-ui-library 0.1.5 → 0.1.6

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.
package/dist/index.js CHANGED
@@ -326,20 +326,20 @@ var html$1 = freeze(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.a
326
326
  function createDOMPurify() {
327
327
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal(), t = (e) => createDOMPurify(e);
328
328
  if (t.version = "3.3.1", t.removed = [], !e || !e.document || e.document.nodeType !== NODE_TYPE.document || !e.Element) return t.isSupported = !1, t;
329
- let { document: n } = e, r = n, i = r.currentScript, { DocumentFragment: a, HTMLTemplateElement: o, Node: s, Element: c, NodeFilter: l, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: f, DOMParser: p, trustedTypes: pa } = e, h = c.prototype, ma = lookupGetter(h, "cloneNode"), ha = lookupGetter(h, "remove"), g = lookupGetter(h, "nextSibling"), O = lookupGetter(h, "childNodes"), ga = lookupGetter(h, "parentNode");
329
+ let { document: n } = e, r = n, i = r.currentScript, { DocumentFragment: a, HTMLTemplateElement: o, Node: s, Element: c, NodeFilter: l, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: f, DOMParser: p, trustedTypes: ba } = e, h = c.prototype, xa = lookupGetter(h, "cloneNode"), Sa = lookupGetter(h, "remove"), g = lookupGetter(h, "nextSibling"), O = lookupGetter(h, "childNodes"), Ca = lookupGetter(h, "parentNode");
330
330
  if (typeof o == "function") {
331
331
  let e = n.createElement("template");
332
332
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
333
333
  }
334
- let A, _a = "", { implementation: va, createNodeIterator: ya, createDocumentFragment: ba, getElementsByTagName: xa } = n, { importNode: Sa } = r, R = _createHooksMap();
335
- t.isSupported = typeof entries == "function" && typeof ga == "function" && va && va.createHTMLDocument !== void 0;
336
- let { MUSTACHE_EXPR: Ca, ERB_EXPR: wa, TMPLIT_EXPR: Ta, DATA_ATTR: Ea, ARIA_ATTR: Da, IS_SCRIPT_OR_DATA: Oa, ATTR_WHITESPACE: ka, CUSTOM_ELEMENT: Aa } = EXPRESSIONS, { IS_ALLOWED_URI: ja } = EXPRESSIONS, B = null, Ma = addToSet({}, [
334
+ let A, wa = "", { implementation: Ta, createNodeIterator: Ea, createDocumentFragment: Da, getElementsByTagName: Oa } = n, { importNode: ka } = r, R = _createHooksMap();
335
+ t.isSupported = typeof entries == "function" && typeof Ca == "function" && Ta && Ta.createHTMLDocument !== void 0;
336
+ let { MUSTACHE_EXPR: Aa, ERB_EXPR: ja, TMPLIT_EXPR: Ma, DATA_ATTR: Na, ARIA_ATTR: Pa, IS_SCRIPT_OR_DATA: Fa, ATTR_WHITESPACE: Ia, CUSTOM_ELEMENT: La } = EXPRESSIONS, { IS_ALLOWED_URI: Ra } = EXPRESSIONS, B = null, za = addToSet({}, [
337
337
  ...html$1,
338
338
  ...svg$1,
339
339
  ...svgFilters,
340
340
  ...mathMl$1,
341
341
  ...text
342
- ]), V = null, Na = addToSet({}, [
342
+ ]), V = null, Ba = addToSet({}, [
343
343
  ...html,
344
344
  ...svg,
345
345
  ...mathMl,
@@ -363,7 +363,7 @@ function createDOMPurify() {
363
363
  enumerable: !0,
364
364
  value: !1
365
365
  }
366
- })), Pa = null, Fa = null, Ia = Object.seal(create(null, {
366
+ })), Va = null, Ha = null, Ua = Object.seal(create(null, {
367
367
  tagCheck: {
368
368
  writable: !0,
369
369
  configurable: !1,
@@ -376,7 +376,7 @@ function createDOMPurify() {
376
376
  enumerable: !0,
377
377
  value: null
378
378
  }
379
- })), La = !0, Ra = !0, za = !1, Ba = !0, Va = !1, Ha = !0, Ua = !1, Wa = !1, Ga = !1, Ka = !1, qa = !1, Ja = !1, Ya = !0, Xa = !1, Za = !0, Qa = !1, $a = {}, eo = null, to = addToSet({}, [
379
+ })), Wa = !0, Ga = !0, Ka = !1, qa = !0, Ja = !1, Ya = !0, Xa = !1, Za = !1, Qa = !1, $a = !1, eo = !1, to = !1, no = !0, ro = !1, io = !0, ao = !1, oo = {}, so = null, co = addToSet({}, [
380
380
  "annotation-xml",
381
381
  "audio",
382
382
  "colgroup",
@@ -402,14 +402,14 @@ function createDOMPurify() {
402
402
  "title",
403
403
  "video",
404
404
  "xmp"
405
- ]), no = null, ro = addToSet({}, [
405
+ ]), lo = null, uo = addToSet({}, [
406
406
  "audio",
407
407
  "video",
408
408
  "img",
409
409
  "source",
410
410
  "image",
411
411
  "track"
412
- ]), io = null, ao = addToSet({}, [
412
+ ]), fo = null, po = addToSet({}, [
413
413
  "alt",
414
414
  "class",
415
415
  "for",
@@ -424,58 +424,58 @@ function createDOMPurify() {
424
424
  "value",
425
425
  "style",
426
426
  "xmlns"
427
- ]), oo = "http://www.w3.org/1998/Math/MathML", so = "http://www.w3.org/2000/svg", co = "http://www.w3.org/1999/xhtml", lo = co, uo = !1, fo = null, po = addToSet({}, [
428
- oo,
429
- so,
430
- co
431
- ], stringToString), mo = addToSet({}, [
427
+ ]), mo = "http://www.w3.org/1998/Math/MathML", ho = "http://www.w3.org/2000/svg", go = "http://www.w3.org/1999/xhtml", _o = go, vo = !1, yo = null, bo = addToSet({}, [
428
+ mo,
429
+ ho,
430
+ go
431
+ ], stringToString), xo = addToSet({}, [
432
432
  "mi",
433
433
  "mo",
434
434
  "mn",
435
435
  "ms",
436
436
  "mtext"
437
- ]), ho = addToSet({}, ["annotation-xml"]), go = addToSet({}, [
437
+ ]), So = addToSet({}, ["annotation-xml"]), Co = addToSet({}, [
438
438
  "title",
439
439
  "style",
440
440
  "font",
441
441
  "a",
442
442
  "script"
443
- ]), _o = null, vo = ["application/xhtml+xml", "text/html"], Y = null, yo = null, bo = n.createElement("form"), xo = function(e) {
443
+ ]), wo = null, To = ["application/xhtml+xml", "text/html"], Y = null, Eo = null, Do = n.createElement("form"), Oo = function(e) {
444
444
  return e instanceof RegExp || e instanceof Function;
445
- }, So = function() {
445
+ }, ko = function() {
446
446
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
447
- if (!(yo && yo === e)) {
448
- if ((!e || typeof e != "object") && (e = {}), e = clone(e), _o = vo.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = _o === "application/xhtml+xml" ? stringToString : stringToLowerCase, B = objectHasOwnProperty(e, "ALLOWED_TAGS") ? addToSet({}, e.ALLOWED_TAGS, Y) : Ma, V = objectHasOwnProperty(e, "ALLOWED_ATTR") ? addToSet({}, e.ALLOWED_ATTR, Y) : Na, fo = objectHasOwnProperty(e, "ALLOWED_NAMESPACES") ? addToSet({}, e.ALLOWED_NAMESPACES, stringToString) : po, io = objectHasOwnProperty(e, "ADD_URI_SAFE_ATTR") ? addToSet(clone(ao), e.ADD_URI_SAFE_ATTR, Y) : ao, no = objectHasOwnProperty(e, "ADD_DATA_URI_TAGS") ? addToSet(clone(ro), e.ADD_DATA_URI_TAGS, Y) : ro, eo = objectHasOwnProperty(e, "FORBID_CONTENTS") ? addToSet({}, e.FORBID_CONTENTS, Y) : to, Pa = objectHasOwnProperty(e, "FORBID_TAGS") ? addToSet({}, e.FORBID_TAGS, Y) : clone({}), Fa = objectHasOwnProperty(e, "FORBID_ATTR") ? addToSet({}, e.FORBID_ATTR, Y) : clone({}), $a = objectHasOwnProperty(e, "USE_PROFILES") ? e.USE_PROFILES : !1, La = e.ALLOW_ARIA_ATTR !== !1, Ra = e.ALLOW_DATA_ATTR !== !1, za = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ba = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Va = e.SAFE_FOR_TEMPLATES || !1, Ha = e.SAFE_FOR_XML !== !1, Ua = e.WHOLE_DOCUMENT || !1, Ka = e.RETURN_DOM || !1, qa = e.RETURN_DOM_FRAGMENT || !1, Ja = e.RETURN_TRUSTED_TYPE || !1, Ga = e.FORCE_BODY || !1, Ya = e.SANITIZE_DOM !== !1, Xa = e.SANITIZE_NAMED_PROPS || !1, Za = e.KEEP_CONTENT !== !1, Qa = e.IN_PLACE || !1, ja = e.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, lo = e.NAMESPACE || co, mo = e.MATHML_TEXT_INTEGRATION_POINTS || mo, ho = e.HTML_INTEGRATION_POINTS || ho, H = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && xo(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (H.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && xo(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (H.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Va && (Ra = !1), qa && (Ka = !0), $a && (B = addToSet({}, text), V = [], $a.html === !0 && (addToSet(B, html$1), addToSet(V, html)), $a.svg === !0 && (addToSet(B, svg$1), addToSet(V, svg), addToSet(V, xml)), $a.svgFilters === !0 && (addToSet(B, svgFilters), addToSet(V, svg), addToSet(V, xml)), $a.mathMl === !0 && (addToSet(B, mathMl$1), addToSet(V, mathMl), addToSet(V, xml))), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? Ia.tagCheck = e.ADD_TAGS : (B === Ma && (B = clone(B)), addToSet(B, e.ADD_TAGS, Y))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? Ia.attributeCheck = e.ADD_ATTR : (V === Na && (V = clone(V)), addToSet(V, e.ADD_ATTR, Y))), e.ADD_URI_SAFE_ATTR && addToSet(io, e.ADD_URI_SAFE_ATTR, Y), e.FORBID_CONTENTS && (eo === to && (eo = clone(eo)), addToSet(eo, e.FORBID_CONTENTS, Y)), e.ADD_FORBID_CONTENTS && (eo === to && (eo = clone(eo)), addToSet(eo, e.ADD_FORBID_CONTENTS, Y)), Za && (B["#text"] = !0), Ua && addToSet(B, [
447
+ if (!(Eo && Eo === e)) {
448
+ if ((!e || typeof e != "object") && (e = {}), e = clone(e), wo = To.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = wo === "application/xhtml+xml" ? stringToString : stringToLowerCase, B = objectHasOwnProperty(e, "ALLOWED_TAGS") ? addToSet({}, e.ALLOWED_TAGS, Y) : za, V = objectHasOwnProperty(e, "ALLOWED_ATTR") ? addToSet({}, e.ALLOWED_ATTR, Y) : Ba, yo = objectHasOwnProperty(e, "ALLOWED_NAMESPACES") ? addToSet({}, e.ALLOWED_NAMESPACES, stringToString) : bo, fo = objectHasOwnProperty(e, "ADD_URI_SAFE_ATTR") ? addToSet(clone(po), e.ADD_URI_SAFE_ATTR, Y) : po, lo = objectHasOwnProperty(e, "ADD_DATA_URI_TAGS") ? addToSet(clone(uo), e.ADD_DATA_URI_TAGS, Y) : uo, so = objectHasOwnProperty(e, "FORBID_CONTENTS") ? addToSet({}, e.FORBID_CONTENTS, Y) : co, Va = objectHasOwnProperty(e, "FORBID_TAGS") ? addToSet({}, e.FORBID_TAGS, Y) : clone({}), Ha = objectHasOwnProperty(e, "FORBID_ATTR") ? addToSet({}, e.FORBID_ATTR, Y) : clone({}), oo = objectHasOwnProperty(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Wa = e.ALLOW_ARIA_ATTR !== !1, Ga = e.ALLOW_DATA_ATTR !== !1, Ka = e.ALLOW_UNKNOWN_PROTOCOLS || !1, qa = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ja = e.SAFE_FOR_TEMPLATES || !1, Ya = e.SAFE_FOR_XML !== !1, Xa = e.WHOLE_DOCUMENT || !1, $a = e.RETURN_DOM || !1, eo = e.RETURN_DOM_FRAGMENT || !1, to = e.RETURN_TRUSTED_TYPE || !1, Qa = e.FORCE_BODY || !1, no = e.SANITIZE_DOM !== !1, ro = e.SANITIZE_NAMED_PROPS || !1, io = e.KEEP_CONTENT !== !1, ao = e.IN_PLACE || !1, Ra = e.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, _o = e.NAMESPACE || go, xo = e.MATHML_TEXT_INTEGRATION_POINTS || xo, So = e.HTML_INTEGRATION_POINTS || So, H = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Oo(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (H.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Oo(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (H.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ja && (Ga = !1), eo && ($a = !0), oo && (B = addToSet({}, text), V = [], oo.html === !0 && (addToSet(B, html$1), addToSet(V, html)), oo.svg === !0 && (addToSet(B, svg$1), addToSet(V, svg), addToSet(V, xml)), oo.svgFilters === !0 && (addToSet(B, svgFilters), addToSet(V, svg), addToSet(V, xml)), oo.mathMl === !0 && (addToSet(B, mathMl$1), addToSet(V, mathMl), addToSet(V, xml))), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? Ua.tagCheck = e.ADD_TAGS : (B === za && (B = clone(B)), addToSet(B, e.ADD_TAGS, Y))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? Ua.attributeCheck = e.ADD_ATTR : (V === Ba && (V = clone(V)), addToSet(V, e.ADD_ATTR, Y))), e.ADD_URI_SAFE_ATTR && addToSet(fo, e.ADD_URI_SAFE_ATTR, Y), e.FORBID_CONTENTS && (so === co && (so = clone(so)), addToSet(so, e.FORBID_CONTENTS, Y)), e.ADD_FORBID_CONTENTS && (so === co && (so = clone(so)), addToSet(so, e.ADD_FORBID_CONTENTS, Y)), io && (B["#text"] = !0), Xa && addToSet(B, [
449
449
  "html",
450
450
  "head",
451
451
  "body"
452
- ]), B.table && (addToSet(B, ["tbody"]), delete Pa.tbody), e.TRUSTED_TYPES_POLICY) {
452
+ ]), B.table && (addToSet(B, ["tbody"]), delete Va.tbody), e.TRUSTED_TYPES_POLICY) {
453
453
  if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
454
454
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
455
- A = e.TRUSTED_TYPES_POLICY, _a = A.createHTML("");
456
- } else A === void 0 && (A = _createTrustedTypesPolicy(pa, i)), A !== null && typeof _a == "string" && (_a = A.createHTML(""));
457
- freeze && freeze(e), yo = e;
455
+ A = e.TRUSTED_TYPES_POLICY, wa = A.createHTML("");
456
+ } else A === void 0 && (A = _createTrustedTypesPolicy(ba, i)), A !== null && typeof wa == "string" && (wa = A.createHTML(""));
457
+ freeze && freeze(e), Eo = e;
458
458
  }
459
- }, Co = addToSet({}, [
459
+ }, Ao = addToSet({}, [
460
460
  ...svg$1,
461
461
  ...svgFilters,
462
462
  ...svgDisallowed
463
- ]), wo = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), To = function(e) {
464
- let t = ga(e);
463
+ ]), jo = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), Mo = function(e) {
464
+ let t = Ca(e);
465
465
  (!t || !t.tagName) && (t = {
466
- namespaceURI: lo,
466
+ namespaceURI: _o,
467
467
  tagName: "template"
468
468
  });
469
469
  let n = stringToLowerCase(e.tagName), r = stringToLowerCase(t.tagName);
470
- return fo[e.namespaceURI] ? e.namespaceURI === so ? t.namespaceURI === co ? n === "svg" : t.namespaceURI === oo ? n === "svg" && (r === "annotation-xml" || mo[r]) : !!Co[n] : e.namespaceURI === oo ? t.namespaceURI === co ? n === "math" : t.namespaceURI === so ? n === "math" && ho[r] : !!wo[n] : e.namespaceURI === co ? t.namespaceURI === so && !ho[r] || t.namespaceURI === oo && !mo[r] ? !1 : !wo[n] && (go[n] || !Co[n]) : !!(_o === "application/xhtml+xml" && fo[e.namespaceURI]) : !1;
471
- }, Eo = function(e) {
470
+ return yo[e.namespaceURI] ? e.namespaceURI === ho ? t.namespaceURI === go ? n === "svg" : t.namespaceURI === mo ? n === "svg" && (r === "annotation-xml" || xo[r]) : !!Ao[n] : e.namespaceURI === mo ? t.namespaceURI === go ? n === "math" : t.namespaceURI === ho ? n === "math" && So[r] : !!jo[n] : e.namespaceURI === go ? t.namespaceURI === ho && !So[r] || t.namespaceURI === mo && !xo[r] ? !1 : !jo[n] && (Co[n] || !Ao[n]) : !!(wo === "application/xhtml+xml" && yo[e.namespaceURI]) : !1;
471
+ }, No = function(e) {
472
472
  arrayPush(t.removed, { element: e });
473
473
  try {
474
- ga(e).removeChild(e);
474
+ Ca(e).removeChild(e);
475
475
  } catch {
476
- ha(e);
476
+ Sa(e);
477
477
  }
478
- }, Do = function(e, n) {
478
+ }, Po = function(e, n) {
479
479
  try {
480
480
  arrayPush(t.removed, {
481
481
  attribute: n.getAttributeNode(e),
@@ -487,87 +487,87 @@ function createDOMPurify() {
487
487
  from: n
488
488
  });
489
489
  }
490
- if (n.removeAttribute(e), e === "is") if (Ka || qa) try {
491
- Eo(n);
490
+ if (n.removeAttribute(e), e === "is") if ($a || eo) try {
491
+ No(n);
492
492
  } catch {}
493
493
  else try {
494
494
  n.setAttribute(e, "");
495
495
  } catch {}
496
- }, Oo = function(e) {
496
+ }, Fo = function(e) {
497
497
  let t = null, r = null;
498
- if (Ga) e = "<remove></remove>" + e;
498
+ if (Qa) e = "<remove></remove>" + e;
499
499
  else {
500
500
  let t = stringMatch(e, /^[\r\n\t ]+/);
501
501
  r = t && t[0];
502
502
  }
503
- _o === "application/xhtml+xml" && lo === co && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
503
+ wo === "application/xhtml+xml" && _o === go && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
504
504
  let i = A ? A.createHTML(e) : e;
505
- if (lo === co) try {
506
- t = new p().parseFromString(i, _o);
505
+ if (_o === go) try {
506
+ t = new p().parseFromString(i, wo);
507
507
  } catch {}
508
508
  if (!t || !t.documentElement) {
509
- t = va.createDocument(lo, "template", null);
509
+ t = Ta.createDocument(_o, "template", null);
510
510
  try {
511
- t.documentElement.innerHTML = uo ? _a : i;
511
+ t.documentElement.innerHTML = vo ? wa : i;
512
512
  } catch {}
513
513
  }
514
514
  let a = t.body || t.documentElement;
515
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), lo === co ? xa.call(t, Ua ? "html" : "body")[0] : Ua ? t.documentElement : a;
516
- }, ko = function(e) {
517
- return ya.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
518
- }, Ao = function(e) {
515
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), _o === go ? Oa.call(t, Xa ? "html" : "body")[0] : Xa ? t.documentElement : a;
516
+ }, Io = function(e) {
517
+ return Ea.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
518
+ }, Lo = function(e) {
519
519
  return e instanceof f && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof u) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
520
- }, jo = function(e) {
520
+ }, Ro = function(e) {
521
521
  return typeof s == "function" && e instanceof s;
522
522
  };
523
- function Mo(e, n, r) {
523
+ function zo(e, n, r) {
524
524
  arrayForEach(e, (e) => {
525
- e.call(t, n, r, yo);
525
+ e.call(t, n, r, Eo);
526
526
  });
527
527
  }
528
- let No = function(e) {
528
+ let Bo = function(e) {
529
529
  let n = null;
530
- if (Mo(R.beforeSanitizeElements, e, null), Ao(e)) return Eo(e), !0;
530
+ if (zo(R.beforeSanitizeElements, e, null), Lo(e)) return No(e), !0;
531
531
  let r = Y(e.nodeName);
532
- if (Mo(R.uponSanitizeElement, e, {
532
+ if (zo(R.uponSanitizeElement, e, {
533
533
  tagName: r,
534
534
  allowedTags: B
535
- }), Ha && e.hasChildNodes() && !jo(e.firstElementChild) && regExpTest(/<[/\w!]/g, e.innerHTML) && regExpTest(/<[/\w!]/g, e.textContent) || e.nodeType === NODE_TYPE.progressingInstruction || Ha && e.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, e.data)) return Eo(e), !0;
536
- if (!(Ia.tagCheck instanceof Function && Ia.tagCheck(r)) && (!B[r] || Pa[r])) {
537
- if (!Pa[r] && Fo(r) && (H.tagNameCheck instanceof RegExp && regExpTest(H.tagNameCheck, r) || H.tagNameCheck instanceof Function && H.tagNameCheck(r))) return !1;
538
- if (Za && !eo[r]) {
539
- let t = ga(e) || e.parentNode, n = O(e) || e.childNodes;
535
+ }), Ya && e.hasChildNodes() && !Ro(e.firstElementChild) && regExpTest(/<[/\w!]/g, e.innerHTML) && regExpTest(/<[/\w!]/g, e.textContent) || e.nodeType === NODE_TYPE.progressingInstruction || Ya && e.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, e.data)) return No(e), !0;
536
+ if (!(Ua.tagCheck instanceof Function && Ua.tagCheck(r)) && (!B[r] || Va[r])) {
537
+ if (!Va[r] && Ho(r) && (H.tagNameCheck instanceof RegExp && regExpTest(H.tagNameCheck, r) || H.tagNameCheck instanceof Function && H.tagNameCheck(r))) return !1;
538
+ if (io && !so[r]) {
539
+ let t = Ca(e) || e.parentNode, n = O(e) || e.childNodes;
540
540
  if (n && t) {
541
541
  let r = n.length;
542
542
  for (let i = r - 1; i >= 0; --i) {
543
- let r = ma(n[i], !0);
543
+ let r = xa(n[i], !0);
544
544
  r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, g(e));
545
545
  }
546
546
  }
547
547
  }
548
- return Eo(e), !0;
548
+ return No(e), !0;
549
549
  }
550
- return e instanceof c && !To(e) || (r === "noscript" || r === "noembed" || r === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Eo(e), !0) : (Va && e.nodeType === NODE_TYPE.text && (n = e.textContent, arrayForEach([
551
- Ca,
552
- wa,
553
- Ta
550
+ return e instanceof c && !Mo(e) || (r === "noscript" || r === "noembed" || r === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, e.innerHTML) ? (No(e), !0) : (Ja && e.nodeType === NODE_TYPE.text && (n = e.textContent, arrayForEach([
551
+ Aa,
552
+ ja,
553
+ Ma
554
554
  ], (e) => {
555
555
  n = stringReplace(n, e, " ");
556
- }), e.textContent !== n && (arrayPush(t.removed, { element: e.cloneNode() }), e.textContent = n)), Mo(R.afterSanitizeElements, e, null), !1);
557
- }, Po = function(e, t, r) {
558
- if (Ya && (t === "id" || t === "name") && (r in n || r in bo)) return !1;
559
- if (!(Ra && !Fa[t] && regExpTest(Ea, t)) && !(La && regExpTest(Da, t)) && !(Ia.attributeCheck instanceof Function && Ia.attributeCheck(t, e))) {
560
- if (!V[t] || Fa[t]) {
561
- if (!(Fo(e) && (H.tagNameCheck instanceof RegExp && regExpTest(H.tagNameCheck, e) || H.tagNameCheck instanceof Function && H.tagNameCheck(e)) && (H.attributeNameCheck instanceof RegExp && regExpTest(H.attributeNameCheck, t) || H.attributeNameCheck instanceof Function && H.attributeNameCheck(t, e)) || t === "is" && H.allowCustomizedBuiltInElements && (H.tagNameCheck instanceof RegExp && regExpTest(H.tagNameCheck, r) || H.tagNameCheck instanceof Function && H.tagNameCheck(r)))) return !1;
562
- } else if (!io[t] && !regExpTest(ja, stringReplace(r, ka, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && stringIndexOf(r, "data:") === 0 && no[e]) && !(za && !regExpTest(Oa, stringReplace(r, ka, ""))) && r) return !1;
556
+ }), e.textContent !== n && (arrayPush(t.removed, { element: e.cloneNode() }), e.textContent = n)), zo(R.afterSanitizeElements, e, null), !1);
557
+ }, Vo = function(e, t, r) {
558
+ if (no && (t === "id" || t === "name") && (r in n || r in Do)) return !1;
559
+ if (!(Ga && !Ha[t] && regExpTest(Na, t)) && !(Wa && regExpTest(Pa, t)) && !(Ua.attributeCheck instanceof Function && Ua.attributeCheck(t, e))) {
560
+ if (!V[t] || Ha[t]) {
561
+ if (!(Ho(e) && (H.tagNameCheck instanceof RegExp && regExpTest(H.tagNameCheck, e) || H.tagNameCheck instanceof Function && H.tagNameCheck(e)) && (H.attributeNameCheck instanceof RegExp && regExpTest(H.attributeNameCheck, t) || H.attributeNameCheck instanceof Function && H.attributeNameCheck(t, e)) || t === "is" && H.allowCustomizedBuiltInElements && (H.tagNameCheck instanceof RegExp && regExpTest(H.tagNameCheck, r) || H.tagNameCheck instanceof Function && H.tagNameCheck(r)))) return !1;
562
+ } else if (!fo[t] && !regExpTest(Ra, stringReplace(r, Ia, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && stringIndexOf(r, "data:") === 0 && lo[e]) && !(Ka && !regExpTest(Fa, stringReplace(r, Ia, ""))) && r) return !1;
563
563
  }
564
564
  return !0;
565
- }, Fo = function(e) {
566
- return e !== "annotation-xml" && stringMatch(e, Aa);
567
- }, Io = function(e) {
568
- Mo(R.beforeSanitizeAttributes, e, null);
565
+ }, Ho = function(e) {
566
+ return e !== "annotation-xml" && stringMatch(e, La);
567
+ }, Uo = function(e) {
568
+ zo(R.beforeSanitizeAttributes, e, null);
569
569
  let { attributes: n } = e;
570
- if (!n || Ao(e)) return;
570
+ if (!n || Lo(e)) return;
571
571
  let r = {
572
572
  attrName: "",
573
573
  attrValue: "",
@@ -577,36 +577,36 @@ function createDOMPurify() {
577
577
  }, i = n.length;
578
578
  for (; i--;) {
579
579
  let { name: a, namespaceURI: o, value: s } = n[i], c = Y(a), l = s, u = a === "value" ? l : stringTrim(l);
580
- if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, Mo(R.uponSanitizeAttribute, e, r), u = r.attrValue, Xa && (c === "id" || c === "name") && (Do(a, e), u = "user-content-" + u), Ha && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, u)) {
581
- Do(a, e);
580
+ if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, zo(R.uponSanitizeAttribute, e, r), u = r.attrValue, ro && (c === "id" || c === "name") && (Po(a, e), u = "user-content-" + u), Ya && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, u)) {
581
+ Po(a, e);
582
582
  continue;
583
583
  }
584
584
  if (c === "attributename" && stringMatch(u, "href")) {
585
- Do(a, e);
585
+ Po(a, e);
586
586
  continue;
587
587
  }
588
588
  if (r.forceKeepAttr) continue;
589
589
  if (!r.keepAttr) {
590
- Do(a, e);
590
+ Po(a, e);
591
591
  continue;
592
592
  }
593
- if (!Ba && regExpTest(/\/>/i, u)) {
594
- Do(a, e);
593
+ if (!qa && regExpTest(/\/>/i, u)) {
594
+ Po(a, e);
595
595
  continue;
596
596
  }
597
- Va && arrayForEach([
598
- Ca,
599
- wa,
600
- Ta
597
+ Ja && arrayForEach([
598
+ Aa,
599
+ ja,
600
+ Ma
601
601
  ], (e) => {
602
602
  u = stringReplace(u, e, " ");
603
603
  });
604
604
  let f = Y(e.nodeName);
605
- if (!Po(f, c, u)) {
606
- Do(a, e);
605
+ if (!Vo(f, c, u)) {
606
+ Po(a, e);
607
607
  continue;
608
608
  }
609
- if (A && typeof pa == "object" && typeof pa.getAttributeType == "function" && !o) switch (pa.getAttributeType(f, c)) {
609
+ if (A && typeof ba == "object" && typeof ba.getAttributeType == "function" && !o) switch (ba.getAttributeType(f, c)) {
610
610
  case "TrustedHTML":
611
611
  u = A.createHTML(u);
612
612
  break;
@@ -615,56 +615,56 @@ function createDOMPurify() {
615
615
  break;
616
616
  }
617
617
  if (u !== l) try {
618
- o ? e.setAttributeNS(o, a, u) : e.setAttribute(a, u), Ao(e) ? Eo(e) : arrayPop(t.removed);
618
+ o ? e.setAttributeNS(o, a, u) : e.setAttribute(a, u), Lo(e) ? No(e) : arrayPop(t.removed);
619
619
  } catch {
620
- Do(a, e);
620
+ Po(a, e);
621
621
  }
622
622
  }
623
- Mo(R.afterSanitizeAttributes, e, null);
624
- }, Lo = function e(t) {
625
- let n = null, r = ko(t);
626
- for (Mo(R.beforeSanitizeShadowDOM, t, null); n = r.nextNode();) Mo(R.uponSanitizeShadowNode, n, null), No(n), Io(n), n.content instanceof a && e(n.content);
627
- Mo(R.afterSanitizeShadowDOM, t, null);
623
+ zo(R.afterSanitizeAttributes, e, null);
624
+ }, Wo = function e(t) {
625
+ let n = null, r = Io(t);
626
+ for (zo(R.beforeSanitizeShadowDOM, t, null); n = r.nextNode();) zo(R.uponSanitizeShadowNode, n, null), Bo(n), Uo(n), n.content instanceof a && e(n.content);
627
+ zo(R.afterSanitizeShadowDOM, t, null);
628
628
  };
629
629
  return t.sanitize = function(e) {
630
630
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, c = null, l = null;
631
- if (uo = !e, uo && (e = "<!-->"), typeof e != "string" && !jo(e)) if (typeof e.toString == "function") {
631
+ if (vo = !e, vo && (e = "<!-->"), typeof e != "string" && !Ro(e)) if (typeof e.toString == "function") {
632
632
  if (e = e.toString(), typeof e != "string") throw typeErrorCreate("dirty is not a string, aborting");
633
633
  } else throw typeErrorCreate("toString is not a function");
634
634
  if (!t.isSupported) return e;
635
- if (Wa || So(n), t.removed = [], typeof e == "string" && (Qa = !1), Qa) {
635
+ if (Za || ko(n), t.removed = [], typeof e == "string" && (ao = !1), ao) {
636
636
  if (e.nodeName) {
637
637
  let t = Y(e.nodeName);
638
- if (!B[t] || Pa[t]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
638
+ if (!B[t] || Va[t]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
639
639
  }
640
- } else if (e instanceof s) i = Oo("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === NODE_TYPE.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o);
640
+ } else if (e instanceof s) i = Fo("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === NODE_TYPE.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o);
641
641
  else {
642
- if (!Ka && !Va && !Ua && e.indexOf("<") === -1) return A && Ja ? A.createHTML(e) : e;
643
- if (i = Oo(e), !i) return Ka ? null : Ja ? _a : "";
642
+ if (!$a && !Ja && !Xa && e.indexOf("<") === -1) return A && to ? A.createHTML(e) : e;
643
+ if (i = Fo(e), !i) return $a ? null : to ? wa : "";
644
644
  }
645
- i && Ga && Eo(i.firstChild);
646
- let u = ko(Qa ? e : i);
647
- for (; c = u.nextNode();) No(c), Io(c), c.content instanceof a && Lo(c.content);
648
- if (Qa) return e;
649
- if (Ka) {
650
- if (qa) for (l = ba.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
645
+ i && Qa && No(i.firstChild);
646
+ let u = Io(ao ? e : i);
647
+ for (; c = u.nextNode();) Bo(c), Uo(c), c.content instanceof a && Wo(c.content);
648
+ if (ao) return e;
649
+ if ($a) {
650
+ if (eo) for (l = Da.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
651
651
  else l = i;
652
- return (V.shadowroot || V.shadowrootmode) && (l = Sa.call(r, l, !0)), l;
652
+ return (V.shadowroot || V.shadowrootmode) && (l = ka.call(r, l, !0)), l;
653
653
  }
654
- let f = Ua ? i.outerHTML : i.innerHTML;
655
- return Ua && B["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), Va && arrayForEach([
656
- Ca,
657
- wa,
658
- Ta
654
+ let f = Xa ? i.outerHTML : i.innerHTML;
655
+ return Xa && B["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), Ja && arrayForEach([
656
+ Aa,
657
+ ja,
658
+ Ma
659
659
  ], (e) => {
660
660
  f = stringReplace(f, e, " ");
661
- }), A && Ja ? A.createHTML(f) : f;
661
+ }), A && to ? A.createHTML(f) : f;
662
662
  }, t.setConfig = function() {
663
- So(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Wa = !0;
663
+ ko(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Za = !0;
664
664
  }, t.clearConfig = function() {
665
- yo = null, Wa = !1;
665
+ Eo = null, Za = !1;
666
666
  }, t.isValidAttribute = function(e, t, n) {
667
- return yo || So({}), Po(Y(e), Y(t), n);
667
+ return Eo || ko({}), Vo(Y(e), Y(t), n);
668
668
  }, t.addHook = function(e, t) {
669
669
  typeof t == "function" && arrayPush(R[e], t);
670
670
  }, t.removeHook = function(e, t) {
@@ -20157,14 +20157,14 @@ ${c}` : c;
20157
20157
  if (this.options.pedantic ? (f = 2, s = c.trimStart()) : u ? f = t[1].length + 1 : (f = t[2].search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, s = c.slice(f), f += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
20158
20158
  let t = this.rules.other.nextBulletRegex(f), n = this.rules.other.hrRegex(f), i = this.rules.other.fencesBeginRegex(f), a = this.rules.other.headingBeginRegex(f), o = this.rules.other.htmlBeginRegex(f);
20159
20159
  for (; e;) {
20160
- let p = e.split("\n", 1)[0], pa;
20161
- if (l = p, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), pa = l) : pa = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || t.test(l) || n.test(l)) break;
20162
- if (pa.search(this.rules.other.nonSpaceChar) >= f || !l.trim()) s += "\n" + pa.slice(f);
20160
+ let p = e.split("\n", 1)[0], ba;
20161
+ if (l = p, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), ba = l) : ba = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || t.test(l) || n.test(l)) break;
20162
+ if (ba.search(this.rules.other.nonSpaceChar) >= f || !l.trim()) s += "\n" + ba.slice(f);
20163
20163
  else {
20164
20164
  if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
20165
20165
  s += "\n" + l;
20166
20166
  }
20167
- !u && !l.trim() && (u = !0), r += p + "\n", e = e.substring(p.length + 1), c = pa.slice(f);
20167
+ !u && !l.trim() && (u = !0), r += p + "\n", e = e.substring(p.length + 1), c = ba.slice(f);
20168
20168
  }
20169
20169
  }
20170
20170
  i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0)), i.items.push({
@@ -21275,28 +21275,41 @@ function normalizeContent(e) {
21275
21275
  ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))/i
21276
21276
  });
21277
21277
  }
21278
+ var TIME_FORMAT_OPTIONS = {
21279
+ hour: "2-digit",
21280
+ minute: "2-digit",
21281
+ hour12: !1
21282
+ };
21283
+ function isSameDay$1(e, t) {
21284
+ return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
21285
+ }
21286
+ function formatTime(e) {
21287
+ return e.toLocaleTimeString([], TIME_FORMAT_OPTIONS);
21288
+ }
21289
+ function getYesterday(e) {
21290
+ let t = new Date(e);
21291
+ return t.setDate(e.getDate() - 1), t;
21292
+ }
21293
+ function formatYear(e, t) {
21294
+ return t ? e.getFullYear().toString() : `'${e.getFullYear().toString().slice(-2)}`;
21295
+ }
21296
+ function formatDay(e, t) {
21297
+ return t ? `${e}${getOrdinal(e)}` : `${e}`;
21298
+ }
21299
+ function formatOlderDate(e, t, n) {
21300
+ let { longMonth: r, longYear: i, withOrdinal: a, showWeekday: o, includeTime: s } = n, c = e.getDate(), l = r ? "long" : "short", u = `${e.toLocaleDateString([], { month: l })} ${formatDay(c, a)}`;
21301
+ return e.getFullYear() !== t.getFullYear() && (u += `, ${formatYear(e, i)}`), o && (u = `${e.toLocaleDateString([], { weekday: "long" })}, ${u}`), s && (u += `, ${formatTime(e)}`), u;
21302
+ }
21278
21303
  function formatTimestamp(e, t = {}) {
21279
- let { todayAsText: n = !1, showWeekday: r = !1, longMonth: i = !1, longYear: a = !0, withOrdinal: o = !1, includeTime: s = !0 } = t, c = new Date(e), l = /* @__PURE__ */ new Date(), u = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), f = new Date(l);
21280
- if (f.setDate(l.getDate() - 1), u(c, l)) return n ? "Today" : c.toLocaleTimeString([], {
21281
- hour: "2-digit",
21282
- minute: "2-digit",
21283
- hour12: !1
21304
+ let { todayAsText: n = !1, showWeekday: r = !1, longMonth: i = !1, longYear: a = !0, withOrdinal: o = !1, includeTime: s = !0 } = t, c = new Date(e), l = /* @__PURE__ */ new Date();
21305
+ return isSameDay$1(c, l) ? n ? "Today" : formatTime(c) : isSameDay$1(c, getYesterday(l)) ? s ? `Yesterday, ${formatTime(c)}` : "Yesterday" : formatOlderDate(c, l, {
21306
+ todayAsText: n,
21307
+ showWeekday: r,
21308
+ longMonth: i,
21309
+ longYear: a,
21310
+ withOrdinal: o,
21311
+ includeTime: s
21284
21312
  });
21285
- if (u(c, f)) return "Yesterday";
21286
- let p = c.getDate(), pa = i ? "long" : "short", h = c.toLocaleDateString([], { month: pa }), ma = c.toLocaleDateString([], { weekday: "long" }), ha = o ? `${p}${getOrdinal(p)}` : `${p}`, g = c.getFullYear() !== l.getFullYear(), O = `${h} ${ha}`;
21287
- if (g) {
21288
- let e = a ? c.getFullYear() : `'${c.getFullYear().toString().slice(-2)}`;
21289
- O += `, ${e}`;
21290
- }
21291
- if (r && (O = `${ma}, ${O}`), s) {
21292
- let e = c.toLocaleTimeString([], {
21293
- hour: "2-digit",
21294
- minute: "2-digit",
21295
- hour12: !1
21296
- });
21297
- O += `, ${e}`;
21298
- }
21299
- return O;
21300
21313
  }
21301
21314
  function getOrdinal(e) {
21302
21315
  if (e % 100 >= 11 && e % 100 <= 13) return "th";
@@ -21371,7 +21384,7 @@ function Dropdown({ trigger: e, children: t, align: n = "start", disabled: r = !
21371
21384
  function O() {
21372
21385
  c.current &&= (clearTimeout(c.current), null), a(!0);
21373
21386
  }
21374
- function ga() {
21387
+ function Ca() {
21375
21388
  c.current = window.setTimeout(() => {
21376
21389
  a(!1);
21377
21390
  }, 120);
@@ -21390,7 +21403,7 @@ function Dropdown({ trigger: e, children: t, align: n = "start", disabled: r = !
21390
21403
  ref: o,
21391
21404
  className: "inline-flex",
21392
21405
  onMouseEnter: O,
21393
- onMouseLeave: ga,
21406
+ onMouseLeave: Ca,
21394
21407
  onClick: () => a((e) => !e),
21395
21408
  "aria-haspopup": "menu",
21396
21409
  "aria-expanded": i,
@@ -21398,7 +21411,7 @@ function Dropdown({ trigger: e, children: t, align: n = "start", disabled: r = !
21398
21411
  }), i && !r && createPortal(/* @__PURE__ */ jsx("div", {
21399
21412
  ref: s,
21400
21413
  onMouseEnter: O,
21401
- onMouseLeave: ga,
21414
+ onMouseLeave: Ca,
21402
21415
  style: {
21403
21416
  position: "fixed",
21404
21417
  top: f?.top ?? 0,
@@ -21416,7 +21429,7 @@ function Input({ type: e = "text", value: t, defaultValue: n, disabled: r = !1,
21416
21429
  let t = e.target.value;
21417
21430
  f || u(t), o?.(t);
21418
21431
  }
21419
- function ha(e) {
21432
+ function Sa(e) {
21420
21433
  s?.(e);
21421
21434
  }
21422
21435
  return /* @__PURE__ */ jsx("input", {
@@ -21427,7 +21440,7 @@ function Input({ type: e = "text", value: t, defaultValue: n, disabled: r = !1,
21427
21440
  "aria-disabled": r || void 0,
21428
21441
  "aria-invalid": i || void 0,
21429
21442
  onChange: h,
21430
- onKeyDown: ha,
21443
+ onKeyDown: Sa,
21431
21444
  className: cn("bg-transparent outline-none", r && "pointer-events-none", c)
21432
21445
  });
21433
21446
  }
@@ -21547,17 +21560,17 @@ function getVerticalAlign(e, t, n) {
21547
21560
  return n === "start" ? e.top : n === "end" ? e.bottom - t.height : e.top + e.height / 2 - t.height / 2;
21548
21561
  }
21549
21562
  function Tooltip({ children: e, content: t, position: n = "top", delay: r = 120, className: i }) {
21550
- let a = useRef(null), o = useRef(null), s = useRef(null), [c, f] = useState(!1), [O, ga] = useState(null), A = () => {
21563
+ let a = useRef(null), o = useRef(null), s = useRef(null), [c, f] = useState(!1), [O, Ca] = useState(null), A = () => {
21551
21564
  s.current &&= (clearTimeout(s.current), null), s.current = window.setTimeout(() => {
21552
21565
  f(!0);
21553
21566
  }, r);
21554
- }, _a = () => {
21567
+ }, wa = () => {
21555
21568
  s.current &&= (clearTimeout(s.current), null), f(!1);
21556
21569
  };
21557
21570
  return useLayoutEffect(() => {
21558
21571
  if (!c || !a.current || !o.current) return;
21559
21572
  let e = a.current.getBoundingClientRect(), t = o.current.getBoundingClientRect(), [r, i] = n.split("-"), s = i ?? "center", l = 0, u = 0;
21560
- r === "top" || r === "bottom" ? (l = r === "top" ? e.top - t.height - 4 : e.bottom + 4, u = getHorizontalAlign(e, t, s)) : (u = r === "left" ? e.left - t.width - 4 : e.right + 4, l = getVerticalAlign(e, t, s)), ga((e) => e && e.top === l && e.left === u ? e : {
21573
+ r === "top" || r === "bottom" ? (l = r === "top" ? e.top - t.height - 4 : e.bottom + 4, u = getHorizontalAlign(e, t, s)) : (u = r === "left" ? e.left - t.width - 4 : e.right + 4, l = getVerticalAlign(e, t, s)), Ca((e) => e && e.top === l && e.left === u ? e : {
21561
21574
  top: l,
21562
21575
  left: u
21563
21576
  });
@@ -21567,9 +21580,9 @@ function Tooltip({ children: e, content: t, position: n = "top", delay: r = 120,
21567
21580
  ref: a,
21568
21581
  className: "inline-flex",
21569
21582
  onMouseEnter: A,
21570
- onMouseLeave: _a,
21583
+ onMouseLeave: wa,
21571
21584
  onFocus: A,
21572
- onBlur: _a,
21585
+ onBlur: wa,
21573
21586
  children: e
21574
21587
  }), c && createPortal(/* @__PURE__ */ jsx("div", {
21575
21588
  ref: o,
@@ -22970,7 +22983,7 @@ function BulkActions({ totalItems: e = 0, selectedItems: t = 0, onSelectAll: n,
22970
22983
  function O(e) {
22971
22984
  p(e), a?.(e);
22972
22985
  }
22973
- let ga = {
22986
+ let Ca = {
22974
22987
  fire: [{
22975
22988
  id: "fire",
22976
22989
  tooltip: "Mark as fire",
@@ -23051,7 +23064,7 @@ function BulkActions({ totalItems: e = 0, selectedItems: t = 0, onSelectAll: n,
23051
23064
  }),
23052
23065
  /* @__PURE__ */ jsx("div", {
23053
23066
  className: "flex items-center divide-x divide-neutral-400-variant-1",
23054
- children: t > 0 && /* @__PURE__ */ jsx(Fragment$1, { children: Object.entries(ga).map(([e, t]) => /* @__PURE__ */ jsx("div", {
23067
+ children: t > 0 && /* @__PURE__ */ jsx(Fragment$1, { children: Object.entries(Ca).map(([e, t]) => /* @__PURE__ */ jsx("div", {
23055
23068
  className: "flex items-center gap-2 px-1",
23056
23069
  children: t.map((e) => /* @__PURE__ */ jsx(InfoTooltip, {
23057
23070
  content: e.tooltip,
@@ -23130,7 +23143,7 @@ function renderIcon(e, t) {
23130
23143
  });
23131
23144
  }
23132
23145
  function FilterButton({ variant: e = "custom", label: t, count: n, selected: r = !1, icon: i, classNames: a, disabled: o, ...s }) {
23133
- let c = !!o, l = filterButtonStyles({ selected: !c && r }), u = e === "custom" ? void 0 : FILTER_BUTTON_META[e], f = i ?? u?.icon, p = t ?? u?.label, pa = c ? "text-neutral-400" : r && u?.iconColor ? u.iconColor : "text-neutral-900 opacity-60 group-hover:opacity-80";
23146
+ let c = !!o, l = filterButtonStyles({ selected: !c && r }), u = e === "custom" ? void 0 : FILTER_BUTTON_META[e], f = i ?? u?.icon, p = t ?? u?.label, ba = c ? "text-neutral-400" : r && u?.iconColor ? u.iconColor : "text-neutral-900 opacity-60 group-hover:opacity-80";
23134
23147
  return /* @__PURE__ */ jsxs(Button, {
23135
23148
  ...s,
23136
23149
  disabled: o,
@@ -23138,7 +23151,7 @@ function FilterButton({ variant: e = "custom", label: t, count: n, selected: r =
23138
23151
  className: cn("group", l.root(), c && "border-neutral-300 bg-white hover:border-neutral-300", a?.root),
23139
23152
  children: [f && /* @__PURE__ */ jsx("span", {
23140
23153
  className: cn("flex items-center", a?.icon),
23141
- children: renderIcon(f, cn("shrink-0", pa))
23154
+ children: renderIcon(f, cn("shrink-0", ba))
23142
23155
  }), p && /* @__PURE__ */ jsxs("span", {
23143
23156
  className: cn(l.label(), c && "font-medium text-neutral-400", a?.label),
23144
23157
  children: [/* @__PURE__ */ jsx("span", { children: p }), typeof n == "number" && n > 0 && /* @__PURE__ */ jsxs("span", {
@@ -23317,7 +23330,7 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
23317
23330
  t,
23318
23331
  n
23319
23332
  ]);
23320
- let ga = useMemo(() => generateCalendarDays(g.year, g.month), [g.year, g.month]);
23333
+ let Ca = useMemo(() => generateCalendarDays(g.year, g.month), [g.year, g.month]);
23321
23334
  function A(t) {
23322
23335
  let o = t.getMonth(), s = t.getFullYear();
23323
23336
  if ((o !== g.month || s !== g.year) && O({
@@ -23335,7 +23348,7 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
23335
23348
  }), a());
23336
23349
  }
23337
23350
  }
23338
- function _a() {
23351
+ function wa() {
23339
23352
  O((e) => e.month === 0 ? {
23340
23353
  year: e.year - 1,
23341
23354
  month: 11
@@ -23344,7 +23357,7 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
23344
23357
  month: e.month - 1
23345
23358
  });
23346
23359
  }
23347
- function va() {
23360
+ function Ta() {
23348
23361
  O((e) => e.month === 11 ? {
23349
23362
  year: e.year + 1,
23350
23363
  month: 0
@@ -23353,7 +23366,7 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
23353
23366
  month: e.month + 1
23354
23367
  });
23355
23368
  }
23356
- let ya = getWeekdays();
23369
+ let Ea = getWeekdays();
23357
23370
  return /* @__PURE__ */ jsxs("div", {
23358
23371
  className: "mt-1 w-fit rounded-lg border border-neutral-400 bg-white p-2 shadow-lg",
23359
23372
  children: [
@@ -23365,7 +23378,7 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
23365
23378
  direction: "left",
23366
23379
  size: 20
23367
23380
  }),
23368
- onClick: _a,
23381
+ onClick: wa,
23369
23382
  className: "hover:opacity-60",
23370
23383
  "aria-label": "Previous month"
23371
23384
  }),
@@ -23382,7 +23395,7 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
23382
23395
  direction: "right",
23383
23396
  size: 20
23384
23397
  }),
23385
- onClick: va,
23398
+ onClick: Ta,
23386
23399
  className: "hover:opacity-60",
23387
23400
  "aria-label": "Next month"
23388
23401
  })
@@ -23390,17 +23403,17 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
23390
23403
  }),
23391
23404
  /* @__PURE__ */ jsx("div", {
23392
23405
  className: "mb-2 grid grid-cols-7",
23393
- children: ya.map((e) => /* @__PURE__ */ jsx("div", {
23406
+ children: Ea.map((e) => /* @__PURE__ */ jsx("div", {
23394
23407
  className: "flex items-center justify-center p-0.5 text-[9px] font-bold text-neutral-900",
23395
23408
  children: e
23396
23409
  }, e))
23397
23410
  }),
23398
23411
  /* @__PURE__ */ jsx("div", {
23399
23412
  className: "grid grid-cols-7",
23400
- children: ga.map(({ day: r, date: i, isCurrentMonth: a }) => {
23401
- let o = isToday(i), l = e === "single" && t && isSameDay(i, t), { startDate: u, endDate: f } = n, p = u && isSameDay(i, u), pa = f && isSameDay(i, f), h = u, ha = s;
23402
- e === "range" && u && !f && s && !isDateBefore(s, u) ? (h = u, ha = s) : (h = null, ha = null);
23403
- let g = e === "range" && (isDateInRange(i, u, f) || isDateInRange(i, h, ha)), O = l || p || pa;
23413
+ children: Ca.map(({ day: r, date: i, isCurrentMonth: a }) => {
23414
+ let o = isToday(i), l = e === "single" && t && isSameDay(i, t), { startDate: u, endDate: f } = n, p = u && isSameDay(i, u), ba = f && isSameDay(i, f), h = u, Sa = s;
23415
+ e === "range" && u && !f && s && !isDateBefore(s, u) ? (h = u, Sa = s) : (h = null, Sa = null);
23416
+ let g = e === "range" && (isDateInRange(i, u, f) || isDateInRange(i, h, Sa)), O = l || p || ba;
23404
23417
  return /* @__PURE__ */ jsx(Button, {
23405
23418
  type: "button",
23406
23419
  onClick: () => A(i),
@@ -23476,14 +23489,14 @@ function DatePicker({ mode: e = "single", value: t, defaultValue: n, onChange: r
23476
23489
  startDate: null,
23477
23490
  endDate: null
23478
23491
  };
23479
- function ha(t) {
23492
+ function Sa(t) {
23480
23493
  e === "single" && (u || s(t), r?.(t));
23481
23494
  }
23482
23495
  function g(t) {
23483
23496
  e === "range" && (u || l(t), r?.(t));
23484
23497
  }
23485
23498
  function O() {
23486
- e === "single" ? ha(null) : g({
23499
+ e === "single" ? Sa(null) : g({
23487
23500
  startDate: null,
23488
23501
  endDate: null
23489
23502
  });
@@ -23500,7 +23513,7 @@ function DatePicker({ mode: e = "single", value: t, defaultValue: n, onChange: r
23500
23513
  mode: e,
23501
23514
  selectedDate: f,
23502
23515
  selectedRange: p,
23503
- onDateSelect: ha,
23516
+ onDateSelect: Sa,
23504
23517
  onRangeSelect: g
23505
23518
  })
23506
23519
  }) });
@@ -23639,13 +23652,13 @@ function EventActionsList({ actions: e, className: t }) {
23639
23652
  }) })
23640
23653
  });
23641
23654
  }
23642
- function EventCard({ icon: e, sender: t, title: n, content: r, timestamp: i, workspace: a, read: o = !1, selected: s = !1, onSelect: c, checked: l = !1, onCheckedChange: u, statusBadges: f = {}, actions: p = {}, density: pa = "normal", className: h, style: g }) {
23655
+ function EventCard({ icon: e, sender: t, title: n, content: r, timestamp: i, workspace: a, read: o = !1, selected: s = !1, onSelect: c, checked: l = !1, onCheckedChange: u, statusBadges: f = {}, actions: p = {}, density: ba = "normal", className: h, style: g }) {
23643
23656
  return /* @__PURE__ */ jsx(Card, {
23644
23657
  as: Pressable,
23645
23658
  onPress: c,
23646
- className: cn("w-full rounded-lg border-[1.5px] border-primary-400 bg-white-variant-5 p-4 hover:bg-primary-light", o && "border-neutral-400", s && "border-primary-500 bg-primary-light", pa === "normal" ? `${EVENT_CARD_HEIGHT_SIZE.normal.style}` : `${EVENT_CARD_HEIGHT_SIZE.compact.style}`, h),
23659
+ className: cn("w-full rounded-lg border-[1.5px] border-primary-400 bg-white-variant-5 p-4 hover:bg-primary-light", o && "border-neutral-400", s && "border-primary-500 bg-primary-light", ba === "normal" ? `${EVENT_CARD_HEIGHT_SIZE.normal.style}` : `${EVENT_CARD_HEIGHT_SIZE.compact.style}`, h),
23647
23660
  style: g,
23648
- children: pa === "normal" ? /* @__PURE__ */ jsxs(CardLayout, {
23661
+ children: ba === "normal" ? /* @__PURE__ */ jsxs(CardLayout, {
23649
23662
  className: "gap-x-2 gap-y-1",
23650
23663
  children: [
23651
23664
  /* @__PURE__ */ jsx(CardSidebar, { children: /* @__PURE__ */ jsx(EventCheckbox, {
@@ -23700,7 +23713,7 @@ function EventCard({ icon: e, sender: t, title: n, content: r, timestamp: i, wor
23700
23713
  e,
23701
23714
  /* @__PURE__ */ jsx(EventStatusesList, {
23702
23715
  statusBadges: f,
23703
- density: pa
23716
+ density: ba
23704
23717
  }),
23705
23718
  /* @__PURE__ */ jsxs("div", {
23706
23719
  className: cn("flex min-w-0 items-center gap-2 text-sm font-bold whitespace-nowrap text-neutral-900", o && "font-medium"),
@@ -23862,7 +23875,7 @@ function MessageReplies({ replies: e }) {
23862
23875
  })
23863
23876
  }), /* @__PURE__ */ jsx(AccordionContent, {
23864
23877
  value: `replies-${t}`,
23865
- className: "ml-3 flex flex-col gap-4 border-l-2 border-neutral-500 p-4 pr-0",
23878
+ className: "ml-3 flex flex-col gap-4 border-l-2 border-neutral-500 pl-4",
23866
23879
  children: e.map((e) => /* @__PURE__ */ jsxs("div", {
23867
23880
  className: "flex gap-3",
23868
23881
  children: [/* @__PURE__ */ jsx(Avatar, {
@@ -24110,7 +24123,7 @@ function EventDetailHeader({ icon: e, subject: t, from: n, timestamp: r, isPrior
24110
24123
  }),
24111
24124
  /* @__PURE__ */ jsx("div", {
24112
24125
  className: "text-right text-xs leading-[1.2] font-semibold tracking-[0.12px] whitespace-nowrap text-neutral-800",
24113
- children: formatTimestamp(r)
24126
+ children: r
24114
24127
  }),
24115
24128
  /* @__PURE__ */ jsxs("div", {
24116
24129
  className: "flex items-center gap-2",