@fairfox/polly 0.88.1 → 0.89.0

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.
Files changed (102) hide show
  1. package/dist/cli/polly.js +4 -4
  2. package/dist/cli/polly.js.map +2 -2
  3. package/dist/gallery/gallery.css +51 -59
  4. package/dist/gallery/gallery.js +1155 -1047
  5. package/dist/src/actions/index.js +5 -78
  6. package/dist/src/actions/index.js.map +2 -2
  7. package/dist/src/background/index.js +126 -152
  8. package/dist/src/background/index.js.map +4 -4
  9. package/dist/src/background/message-router.js +126 -152
  10. package/dist/src/background/message-router.js.map +4 -4
  11. package/dist/src/client/index.js +186 -259
  12. package/dist/src/client/index.js.map +5 -5
  13. package/dist/src/elysia/index.js +21 -35
  14. package/dist/src/elysia/index.js.map +2 -2
  15. package/dist/src/index.js +218 -246
  16. package/dist/src/index.js.map +10 -10
  17. package/dist/src/mesh.js +49 -61
  18. package/dist/src/mesh.js.map +4 -4
  19. package/dist/src/peer.js +23 -52
  20. package/dist/src/peer.js.map +2 -2
  21. package/dist/src/polly-ui/Button.d.ts +7 -0
  22. package/dist/src/polly-ui/Collapsible.d.ts +3 -1
  23. package/dist/src/polly-ui/Layout.d.ts +16 -1
  24. package/dist/src/polly-ui/index.css +47 -59
  25. package/dist/src/polly-ui/index.js +112 -124
  26. package/dist/src/polly-ui/index.js.map +13 -13
  27. package/dist/src/polly-ui/markdown.js +72 -145
  28. package/dist/src/polly-ui/markdown.js.map +2 -2
  29. package/dist/src/polly-ui/styles.css +47 -59
  30. package/dist/src/polly-ui/theme.css +10 -0
  31. package/dist/src/shared/adapters/index.js +31 -44
  32. package/dist/src/shared/adapters/index.js.map +2 -2
  33. package/dist/src/shared/lib/context-helpers.js +126 -152
  34. package/dist/src/shared/lib/context-helpers.js.map +4 -4
  35. package/dist/src/shared/lib/errors.js +1 -74
  36. package/dist/src/shared/lib/errors.js.map +2 -2
  37. package/dist/src/shared/lib/guards.js +1 -74
  38. package/dist/src/shared/lib/guards.js.map +2 -2
  39. package/dist/src/shared/lib/message-bus.js +126 -152
  40. package/dist/src/shared/lib/message-bus.js.map +4 -4
  41. package/dist/src/shared/lib/resource.js +16 -27
  42. package/dist/src/shared/lib/resource.js.map +5 -5
  43. package/dist/src/shared/lib/state.js +13 -26
  44. package/dist/src/shared/lib/state.js.map +2 -2
  45. package/dist/src/shared/lib/test-helpers.js +1 -74
  46. package/dist/src/shared/lib/test-helpers.js.map +2 -2
  47. package/dist/src/shared/state/app-state.js +35 -46
  48. package/dist/src/shared/state/app-state.js.map +5 -5
  49. package/dist/src/shared/types/messages.js +1 -74
  50. package/dist/src/shared/types/messages.js.map +2 -2
  51. package/dist/tools/bdd/src/cli.js +11 -15
  52. package/dist/tools/bdd/src/cli.js.map +2 -2
  53. package/dist/tools/bdd/src/index.js +11 -19
  54. package/dist/tools/bdd/src/index.js.map +2 -2
  55. package/dist/tools/gallery/src/cli.js +1 -18
  56. package/dist/tools/gallery/src/cli.js.map +2 -2
  57. package/dist/tools/init/src/cli.js +1 -18
  58. package/dist/tools/init/src/cli.js.map +2 -2
  59. package/dist/tools/mutate/src/cli.js +8 -25
  60. package/dist/tools/mutate/src/cli.js.map +2 -2
  61. package/dist/tools/mutate/src/index.js +8 -26
  62. package/dist/tools/mutate/src/index.js.map +2 -2
  63. package/dist/tools/quality/src/cli.js +39 -46
  64. package/dist/tools/quality/src/cli.js.map +3 -3
  65. package/dist/tools/quality/src/css/check-layout.d.ts +5 -3
  66. package/dist/tools/quality/src/index.js +39 -47
  67. package/dist/tools/quality/src/index.js.map +3 -3
  68. package/dist/tools/test/src/adapters/index.js +4 -77
  69. package/dist/tools/test/src/adapters/index.js.map +2 -2
  70. package/dist/tools/test/src/browser/index.js +1 -74
  71. package/dist/tools/test/src/browser/index.js.map +2 -2
  72. package/dist/tools/test/src/browser/run.js +5 -22
  73. package/dist/tools/test/src/browser/run.js.map +2 -2
  74. package/dist/tools/test/src/contrast/index.js +1 -74
  75. package/dist/tools/test/src/contrast/index.js.map +2 -2
  76. package/dist/tools/test/src/coverage-policy/cli.js +13 -25
  77. package/dist/tools/test/src/coverage-policy/cli.js.map +2 -2
  78. package/dist/tools/test/src/coverage-policy/index.js +11 -23
  79. package/dist/tools/test/src/coverage-policy/index.js.map +2 -2
  80. package/dist/tools/test/src/e2e-mesh/index.js +18 -43
  81. package/dist/tools/test/src/e2e-mesh/index.js.map +2 -2
  82. package/dist/tools/test/src/e2e-relay/index.js +615 -623
  83. package/dist/tools/test/src/e2e-relay/index.js.map +2 -2
  84. package/dist/tools/test/src/index.js +30 -103
  85. package/dist/tools/test/src/index.js.map +5 -5
  86. package/dist/tools/test/src/test-utils.js +1 -74
  87. package/dist/tools/test/src/test-utils.js.map +2 -2
  88. package/dist/tools/test/src/tiers/cli.js +1 -18
  89. package/dist/tools/test/src/tiers/cli.js.map +2 -2
  90. package/dist/tools/test/src/tiers/worker.js +11 -15
  91. package/dist/tools/test/src/tiers/worker.js.map +2 -2
  92. package/dist/tools/test/src/visual/index.js +1112 -1134
  93. package/dist/tools/test/src/visual/index.js.map +3 -3
  94. package/dist/tools/verify/src/cli.js +103 -169
  95. package/dist/tools/verify/src/cli.js.map +2 -2
  96. package/dist/tools/verify/src/config.js +1 -74
  97. package/dist/tools/verify/src/config.js.map +2 -2
  98. package/dist/tools/verify/src/stryker/index.js +1 -19
  99. package/dist/tools/verify/src/stryker/index.js.map +2 -2
  100. package/dist/tools/visualize/src/cli.js +69 -85
  101. package/dist/tools/visualize/src/cli.js.map +2 -2
  102. package/package.json +1 -1
@@ -1,76 +1,3 @@
1
- var __create = Object.create;
2
- var __getProtoOf = Object.getPrototypeOf;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- function __accessProp(key) {
8
- return this[key];
9
- }
10
- var __toESMCache_node;
11
- var __toESMCache_esm;
12
- var __toESM = (mod, isNodeMode, target) => {
13
- var canCache = mod != null && typeof mod === "object";
14
- if (canCache) {
15
- var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
- var cached = cache.get(mod);
17
- if (cached)
18
- return cached;
19
- }
20
- target = mod != null ? __create(__getProtoOf(mod)) : {};
21
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
- if (mod && typeof mod === "object" || typeof mod === "function") {
23
- for (let key of __getOwnPropNames(mod))
24
- if (!__hasOwnProp.call(to, key))
25
- __defProp(to, key, {
26
- get: __accessProp.bind(mod, key),
27
- enumerable: true
28
- });
29
- }
30
- if (canCache)
31
- cache.set(mod, to);
32
- return to;
33
- };
34
- var __toCommonJS = (from) => {
35
- var entry = (__moduleCache ??= new WeakMap).get(from), desc;
36
- if (entry)
37
- return entry;
38
- entry = __defProp({}, "__esModule", { value: true });
39
- if (from && typeof from === "object" || typeof from === "function") {
40
- for (var key of __getOwnPropNames(from))
41
- if (!__hasOwnProp.call(entry, key))
42
- __defProp(entry, key, {
43
- get: __accessProp.bind(from, key),
44
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
45
- });
46
- }
47
- __moduleCache.set(from, entry);
48
- return entry;
49
- };
50
- var __moduleCache;
51
- var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
52
- var __returnValue = (v) => v;
53
- function __exportSetter(name, newValue) {
54
- this[name] = __returnValue.bind(null, newValue);
55
- }
56
- var __export = (target, all) => {
57
- for (var name in all)
58
- __defProp(target, name, {
59
- get: all[name],
60
- enumerable: true,
61
- configurable: true,
62
- set: __exportSetter.bind(all, name)
63
- });
64
- };
65
- var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
66
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
67
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
68
- }) : x)(function(x) {
69
- if (typeof require !== "undefined")
70
- return require.apply(this, arguments);
71
- throw Error('Dynamic require of "' + x + '" is not supported');
72
- });
73
-
74
1
  // ../../node_modules/.bun/dompurify@3.4.14/node_modules/dompurify/dist/purify.es.mjs
75
2
  /*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */
76
3
  function _arrayLikeToArray(r, a) {
@@ -93,8 +20,8 @@ function _iterableToArrayLimit(r, l) {
93
20
  else
94
21
  for (;!(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true)
95
22
  ;
96
- } catch (r2) {
97
- o = true, n = r2;
23
+ } catch (r) {
24
+ o = true, n = r;
98
25
  } finally {
99
26
  try {
100
27
  if (!f && t.return != null && (u = t.return(), Object(u) !== u))
@@ -134,17 +61,17 @@ var _ref = typeof Reflect !== "undefined" && Reflect;
134
61
  var apply = _ref.apply;
135
62
  var construct = _ref.construct;
136
63
  if (!freeze) {
137
- freeze = function freeze2(x) {
64
+ freeze = function freeze(x) {
138
65
  return x;
139
66
  };
140
67
  }
141
68
  if (!seal) {
142
- seal = function seal2(x) {
69
+ seal = function seal(x) {
143
70
  return x;
144
71
  };
145
72
  }
146
73
  if (!apply) {
147
- apply = function apply2(func, thisArg) {
74
+ apply = function apply(func, thisArg) {
148
75
  for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2;_key < _len; _key++) {
149
76
  args[_key - 2] = arguments[_key];
150
77
  }
@@ -152,7 +79,7 @@ if (!apply) {
152
79
  };
153
80
  }
154
81
  if (!construct) {
155
- construct = function construct2(Func) {
82
+ construct = function construct(Func) {
156
83
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1;_key2 < _len2; _key2++) {
157
84
  args[_key2 - 1] = arguments[_key2];
158
85
  }
@@ -362,10 +289,10 @@ var LITERAL_TEXT_CLOSE = function() {
362
289
  });
363
290
  return freeze(map);
364
291
  }();
365
- var getGlobal = function getGlobal2() {
292
+ var getGlobal = function getGlobal() {
366
293
  return typeof window === "undefined" ? null : window;
367
294
  };
368
- var _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes, purifyHostElement) {
295
+ var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
369
296
  if (typeof trustedTypes !== "object" || typeof trustedTypes.createPolicy !== "function") {
370
297
  return null;
371
298
  }
@@ -377,8 +304,8 @@ var _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes
377
304
  const policyName = "dompurify" + (suffix ? "#" + suffix : "");
378
305
  try {
379
306
  return trustedTypes.createPolicy(policyName, {
380
- createHTML(html2) {
381
- return html2;
307
+ createHTML(html) {
308
+ return html;
382
309
  },
383
310
  createScriptURL(scriptUrl) {
384
311
  return scriptUrl;
@@ -389,7 +316,7 @@ var _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes
389
316
  return null;
390
317
  }
391
318
  };
392
- var _createHooksMap = function _createHooksMap2() {
319
+ var _createHooksMap = function _createHooksMap() {
393
320
  return {
394
321
  afterSanitizeAttributes: [],
395
322
  afterSanitizeElements: [],
@@ -402,10 +329,10 @@ var _createHooksMap = function _createHooksMap2() {
402
329
  uponSanitizeShadowNode: []
403
330
  };
404
331
  };
405
- var _resolveSetOption = function _resolveSetOption2(cfg, key, fallback, options) {
332
+ var _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options) {
406
333
  return objectHasOwnProperty(cfg, key) && arrayIsArray(cfg[key]) ? addToSet(options.base ? clone(options.base) : {}, cfg[key], options.transform) : fallback;
407
334
  };
408
- var _resolveObjectOption = function _resolveObjectOption2(cfg, key, makeFallback) {
335
+ var _resolveObjectOption = function _resolveObjectOption(cfg, key, makeFallback) {
409
336
  const value = objectHasOwnProperty(cfg, key) ? cfg[key] : undefined;
410
337
  return value && typeof value === "object" ? clone(value) : makeFallback();
411
338
  };
@@ -437,10 +364,10 @@ function createDOMPurify() {
437
364
  const getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeType") : null;
438
365
  const getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeName") : null;
439
366
  const getOwnerDocument = Node && Node.prototype ? lookupGetter(Node.prototype, "ownerDocument") : null;
440
- const _readNodeType = function _readNodeType2(node) {
367
+ const _readNodeType = function _readNodeType(node) {
441
368
  return getNodeType ? getNodeType(node) : node.nodeType;
442
369
  };
443
- const _readNodeName = function _readNodeName2(node) {
370
+ const _readNodeName = function _readNodeName(node) {
444
371
  return getNodeName ? getNodeName(node) : node.nodeName;
445
372
  };
446
373
  if (typeof HTMLTemplateElement === "function") {
@@ -454,21 +381,21 @@ function createDOMPurify() {
454
381
  let defaultTrustedTypesPolicy;
455
382
  let defaultTrustedTypesPolicyResolved = false;
456
383
  let IN_TRUSTED_TYPES_POLICY = 0;
457
- const _assertNotInTrustedTypesPolicy = function _assertNotInTrustedTypesPolicy2() {
384
+ const _assertNotInTrustedTypesPolicy = function _assertNotInTrustedTypesPolicy() {
458
385
  if (IN_TRUSTED_TYPES_POLICY > 0) {
459
386
  throw typeErrorCreate("A configured TRUSTED_TYPES_POLICY callback (createHTML or " + "createScriptURL) must not call DOMPurify.sanitize, as that causes " + "infinite recursion. Do not pass a policy whose callbacks wrap " + 'DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted ' + 'Types" section of the README.');
460
387
  }
461
388
  };
462
- const _createTrustedHTML = function _createTrustedHTML2(html2) {
389
+ const _createTrustedHTML = function _createTrustedHTML(html) {
463
390
  _assertNotInTrustedTypesPolicy();
464
391
  IN_TRUSTED_TYPES_POLICY++;
465
392
  try {
466
- return trustedTypesPolicy.createHTML(html2);
393
+ return trustedTypesPolicy.createHTML(html);
467
394
  } finally {
468
395
  IN_TRUSTED_TYPES_POLICY--;
469
396
  }
470
397
  };
471
- const _createTrustedScriptURL = function _createTrustedScriptURL2(scriptUrl) {
398
+ const _createTrustedScriptURL = function _createTrustedScriptURL(scriptUrl) {
472
399
  _assertNotInTrustedTypesPolicy();
473
400
  IN_TRUSTED_TYPES_POLICY++;
474
401
  try {
@@ -477,14 +404,14 @@ function createDOMPurify() {
477
404
  IN_TRUSTED_TYPES_POLICY--;
478
405
  }
479
406
  };
480
- const _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy2() {
407
+ const _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy() {
481
408
  if (!defaultTrustedTypesPolicyResolved) {
482
409
  defaultTrustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
483
410
  defaultTrustedTypesPolicyResolved = true;
484
411
  }
485
412
  return defaultTrustedTypesPolicy;
486
413
  };
487
- const _document = document, implementation = _document.implementation, createNodeIterator = _document.createNodeIterator, createDocumentFragment = _document.createDocumentFragment, getElementsByTagName = _document.getElementsByTagName;
414
+ const _document = document, { implementation, createNodeIterator, createDocumentFragment, getElementsByTagName } = _document;
488
415
  const importNode = originalDocument.importNode;
489
416
  let hooks = _createHooksMap();
490
417
  DOMPurify.isSupported = typeof entries === "function" && typeof getParentNode === "function" && implementation && implementation.createHTMLDocument !== undefined;
@@ -601,10 +528,10 @@ function createDOMPurify() {
601
528
  let transformCaseFunc = null;
602
529
  let CONFIG = null;
603
530
  const formElement = document.createElement("form");
604
- const isRegexOrFunction = function isRegexOrFunction2(testValue) {
531
+ const isRegexOrFunction = function isRegexOrFunction(testValue) {
605
532
  return testValue instanceof RegExp || testValue instanceof Function;
606
533
  };
607
- const _parseConfig = function _parseConfig2() {
534
+ const _parseConfig = function _parseConfig() {
608
535
  let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
609
536
  if (CONFIG && CONFIG === cfg) {
610
537
  return;
@@ -773,7 +700,7 @@ function createDOMPurify() {
773
700
  };
774
701
  const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
775
702
  const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
776
- const _checkSvgNamespace = function _checkSvgNamespace2(tagName, parent, parentTagName) {
703
+ const _checkSvgNamespace = function _checkSvgNamespace(tagName, parent, parentTagName) {
777
704
  if (parent.namespaceURI === HTML_NAMESPACE) {
778
705
  return tagName === "svg";
779
706
  }
@@ -782,7 +709,7 @@ function createDOMPurify() {
782
709
  }
783
710
  return Boolean(ALL_SVG_TAGS[tagName]);
784
711
  };
785
- const _checkMathMlNamespace = function _checkMathMlNamespace2(tagName, parent, parentTagName) {
712
+ const _checkMathMlNamespace = function _checkMathMlNamespace(tagName, parent, parentTagName) {
786
713
  if (parent.namespaceURI === HTML_NAMESPACE) {
787
714
  return tagName === "math";
788
715
  }
@@ -791,7 +718,7 @@ function createDOMPurify() {
791
718
  }
792
719
  return Boolean(ALL_MATHML_TAGS[tagName]);
793
720
  };
794
- const _checkHtmlNamespace = function _checkHtmlNamespace2(tagName, parent, parentTagName) {
721
+ const _checkHtmlNamespace = function _checkHtmlNamespace(tagName, parent, parentTagName) {
795
722
  if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
796
723
  return false;
797
724
  }
@@ -800,7 +727,7 @@ function createDOMPurify() {
800
727
  }
801
728
  return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
802
729
  };
803
- const _checkValidNamespace = function _checkValidNamespace2(element) {
730
+ const _checkValidNamespace = function _checkValidNamespace(element) {
804
731
  let parent = getParentNode(element);
805
732
  if (!parent || !parent.tagName) {
806
733
  parent = {
@@ -827,7 +754,7 @@ function createDOMPurify() {
827
754
  }
828
755
  return false;
829
756
  };
830
- const _forceRemove = function _forceRemove2(node) {
757
+ const _forceRemove = function _forceRemove(node) {
831
758
  arrayPush(DOMPurify.removed, {
832
759
  element: node
833
760
  });
@@ -840,16 +767,16 @@ function createDOMPurify() {
840
767
  }
841
768
  }
842
769
  };
843
- const _stripAttributeNode = function _stripAttributeNode2(element, attribute, name) {
770
+ const _stripAttributeNode = function _stripAttributeNode(element, attribute, name) {
844
771
  try {
845
772
  element.removeAttributeNode(attribute);
846
773
  } catch (_) {
847
774
  try {
848
775
  element.removeAttribute(name);
849
- } catch (_2) {}
776
+ } catch (_) {}
850
777
  }
851
778
  };
852
- const _neutralizeRoot = function _neutralizeRoot2(root) {
779
+ const _neutralizeRoot = function _neutralizeRoot(root) {
853
780
  _neutralizeSubtree(root);
854
781
  const childNodes = getChildNodes(root);
855
782
  if (childNodes) {
@@ -874,7 +801,7 @@ function createDOMPurify() {
874
801
  }
875
802
  }
876
803
  };
877
- const _removeAttribute = function _removeAttribute2(name, element, attr) {
804
+ const _removeAttribute = function _removeAttribute(name, element, attr) {
878
805
  if (!attr) {
879
806
  try {
880
807
  attr = element.getAttributeNode(name);
@@ -895,7 +822,7 @@ function createDOMPurify() {
895
822
  } catch (_) {
896
823
  try {
897
824
  element.removeAttribute(name);
898
- } catch (_2) {}
825
+ } catch (_) {}
899
826
  }
900
827
  if (name === "is") {
901
828
  if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
@@ -909,7 +836,7 @@ function createDOMPurify() {
909
836
  }
910
837
  }
911
838
  };
912
- const _stripDisallowedAttributes = function _stripDisallowedAttributes2(element) {
839
+ const _stripDisallowedAttributes = function _stripDisallowedAttributes(element) {
913
840
  const attributes = getAttributes(element);
914
841
  if (!attributes) {
915
842
  return;
@@ -923,7 +850,7 @@ function createDOMPurify() {
923
850
  _stripAttributeNode(element, attribute, name);
924
851
  }
925
852
  };
926
- const _neutralizeSubtree = function _neutralizeSubtree2(root) {
853
+ const _neutralizeSubtree = function _neutralizeSubtree(root) {
927
854
  const stack = [root];
928
855
  while (stack.length > 0) {
929
856
  const node = stack.pop();
@@ -939,7 +866,7 @@ function createDOMPurify() {
939
866
  }
940
867
  }
941
868
  };
942
- const _isPatchLinkageAttribute = function _isPatchLinkageAttribute2(lcName, lcTag) {
869
+ const _isPatchLinkageAttribute = function _isPatchLinkageAttribute(lcName, lcTag) {
943
870
  if (!SAFE_FOR_XML) {
944
871
  return false;
945
872
  }
@@ -948,7 +875,7 @@ function createDOMPurify() {
948
875
  }
949
876
  return lcName === "for" && lcTag !== "label" && lcTag !== "output";
950
877
  };
951
- const _neutralizePatchLinkage = function _neutralizePatchLinkage2(root) {
878
+ const _neutralizePatchLinkage = function _neutralizePatchLinkage(root) {
952
879
  if (!SAFE_FOR_XML) {
953
880
  return;
954
881
  }
@@ -982,7 +909,7 @@ function createDOMPurify() {
982
909
  }
983
910
  }
984
911
  };
985
- const _initDocument = function _initDocument2(dirty) {
912
+ const _initDocument = function _initDocument(dirty) {
986
913
  let doc = null;
987
914
  let leadingWhitespace = null;
988
915
  if (FORCE_BODY) {
@@ -1015,11 +942,11 @@ function createDOMPurify() {
1015
942
  }
1016
943
  return WHOLE_DOCUMENT ? doc.documentElement : body;
1017
944
  };
1018
- const _createNodeIterator = function _createNodeIterator2(root) {
945
+ const _createNodeIterator = function _createNodeIterator(root) {
1019
946
  const doc = getOwnerDocument ? getOwnerDocument(root) : root.ownerDocument;
1020
947
  return createNodeIterator.call(doc || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
1021
948
  };
1022
- const _stripTemplateExpressions = function _stripTemplateExpressions2(value) {
949
+ const _stripTemplateExpressions = function _stripTemplateExpressions(value) {
1023
950
  value = stringReplace(value, MUSTACHE_EXPR$1, " ");
1024
951
  value = stringReplace(value, ERB_EXPR$1, " ");
1025
952
  value = stringReplace(value, TMPLIT_EXPR$1, " ");
@@ -1044,7 +971,7 @@ function createDOMPurify() {
1044
971
  });
1045
972
  }
1046
973
  };
1047
- const _isClobbered = function _isClobbered2(element) {
974
+ const _isClobbered = function _isClobbered(element) {
1048
975
  const realTagName = getNodeName ? getNodeName(element) : null;
1049
976
  if (typeof realTagName !== "string") {
1050
977
  return false;
@@ -1054,7 +981,7 @@ function createDOMPurify() {
1054
981
  }
1055
982
  return typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || element.attributes !== getAttributes(element) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function" || element.nodeType !== getNodeType(element) || element.childNodes !== getChildNodes(element);
1056
983
  };
1057
- const _isDocumentFragment = function _isDocumentFragment2(value) {
984
+ const _isDocumentFragment = function _isDocumentFragment(value) {
1058
985
  if (!getNodeType || typeof value !== "object" || value === null) {
1059
986
  return false;
1060
987
  }
@@ -1064,7 +991,7 @@ function createDOMPurify() {
1064
991
  return false;
1065
992
  }
1066
993
  };
1067
- const _isNode = function _isNode2(value) {
994
+ const _isNode = function _isNode(value) {
1068
995
  if (!getNodeType || typeof value !== "object" || value === null) {
1069
996
  return false;
1070
997
  }
@@ -1074,15 +1001,15 @@ function createDOMPurify() {
1074
1001
  return false;
1075
1002
  }
1076
1003
  };
1077
- function _executeHooks(hooks2, currentNode, data) {
1078
- if (hooks2.length === 0) {
1004
+ function _executeHooks(hooks, currentNode, data) {
1005
+ if (hooks.length === 0) {
1079
1006
  return;
1080
1007
  }
1081
- arrayForEach(hooks2, (hook) => {
1008
+ arrayForEach(hooks, (hook) => {
1082
1009
  hook.call(DOMPurify, currentNode, data, CONFIG);
1083
1010
  });
1084
1011
  }
1085
- const _isUnsafeNode = function _isUnsafeNode2(currentNode, tagName) {
1012
+ const _isUnsafeNode = function _isUnsafeNode(currentNode, tagName) {
1086
1013
  if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.innerHTML)) {
1087
1014
  return true;
1088
1015
  }
@@ -1097,7 +1024,7 @@ function createDOMPurify() {
1097
1024
  }
1098
1025
  return false;
1099
1026
  };
1100
- const _matchesNameCheck = function _matchesNameCheck2(check, name) {
1027
+ const _matchesNameCheck = function _matchesNameCheck(check, name) {
1101
1028
  if (check instanceof RegExp) {
1102
1029
  return regExpTest(check, name);
1103
1030
  }
@@ -1109,7 +1036,7 @@ function createDOMPurify() {
1109
1036
  }
1110
1037
  return false;
1111
1038
  };
1112
- const _sanitizeDisallowedNode = function _sanitizeDisallowedNode2(currentNode, tagName, root) {
1039
+ const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName, root) {
1113
1040
  if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
1114
1041
  return false;
1115
1042
  }
@@ -1127,13 +1054,13 @@ function createDOMPurify() {
1127
1054
  _forceRemove(currentNode);
1128
1055
  return true;
1129
1056
  };
1130
- const _forkSharedAllowlist = function _forkSharedAllowlist2(hookList, set, defaultSet, setConfigSet) {
1057
+ const _forkSharedAllowlist = function _forkSharedAllowlist(hookList, set, defaultSet, setConfigSet) {
1131
1058
  if (hookList.length === 0) {
1132
1059
  return set;
1133
1060
  }
1134
1061
  return set === defaultSet || set === setConfigSet ? clone(set) : set;
1135
1062
  };
1136
- const _handleHookDetachedNode = function _handleHookDetachedNode2(currentNode, root) {
1063
+ const _handleHookDetachedNode = function _handleHookDetachedNode(currentNode, root) {
1137
1064
  if (currentNode === root || getParentNode(currentNode) !== null) {
1138
1065
  return false;
1139
1066
  }
@@ -1142,7 +1069,7 @@ function createDOMPurify() {
1142
1069
  }
1143
1070
  return true;
1144
1071
  };
1145
- const _sanitizeElements = function _sanitizeElements2(currentNode, root) {
1072
+ const _sanitizeElements = function _sanitizeElements(currentNode, root) {
1146
1073
  _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
1147
1074
  if (_handleHookDetachedNode(currentNode, root)) {
1148
1075
  return true;
@@ -1192,7 +1119,7 @@ function createDOMPurify() {
1192
1119
  _executeHooks(hooks.afterSanitizeElements, currentNode, null);
1193
1120
  return false;
1194
1121
  };
1195
- const _isValidAttribute = function _isValidAttribute2(lcTag, lcName, value) {
1122
+ const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
1196
1123
  if (FORBID_ATTR[lcName]) {
1197
1124
  return false;
1198
1125
  }
@@ -1227,10 +1154,10 @@ function createDOMPurify() {
1227
1154
  return !value;
1228
1155
  };
1229
1156
  const RESERVED_CUSTOM_ELEMENT_NAMES = addToSet({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]);
1230
- const _isBasicCustomElement = function _isBasicCustomElement2(tagName) {
1157
+ const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
1231
1158
  return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT$1, tagName);
1232
1159
  };
1233
- const _applyTrustedTypesToAttribute = function _applyTrustedTypesToAttribute2(lcTag, lcName, namespaceURI, value) {
1160
+ const _applyTrustedTypesToAttribute = function _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value) {
1234
1161
  if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function" && !namespaceURI) {
1235
1162
  switch (trustedTypes.getAttributeType(lcTag, lcName)) {
1236
1163
  case "TrustedHTML": {
@@ -1243,7 +1170,7 @@ function createDOMPurify() {
1243
1170
  }
1244
1171
  return value;
1245
1172
  };
1246
- const _setAttributeValue = function _setAttributeValue2(currentNode, name, namespaceURI, value) {
1173
+ const _setAttributeValue = function _setAttributeValue(currentNode, name, namespaceURI, value) {
1247
1174
  try {
1248
1175
  if (namespaceURI) {
1249
1176
  currentNode.setAttributeNS(namespaceURI, name, value);
@@ -1259,7 +1186,7 @@ function createDOMPurify() {
1259
1186
  _removeAttribute(name, currentNode);
1260
1187
  }
1261
1188
  };
1262
- const _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
1189
+ const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
1263
1190
  _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
1264
1191
  const attributes = currentNode.attributes;
1265
1192
  if (!attributes || _isClobbered(currentNode)) {
@@ -1345,7 +1272,7 @@ function createDOMPurify() {
1345
1272
  }
1346
1273
  _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
1347
1274
  };
1348
- const _sanitizeAttachedShadowRoots = function _sanitizeAttachedShadowRoots2(root) {
1275
+ const _sanitizeAttachedShadowRoots = function _sanitizeAttachedShadowRoots(root) {
1349
1276
  const stack = [{
1350
1277
  node: root,
1351
1278
  shadow: null
@@ -2516,7 +2443,7 @@ var L = class {
2516
2443
  return e;
2517
2444
  }
2518
2445
  };
2519
- var b = class l2 {
2446
+ var b = class l {
2520
2447
  options;
2521
2448
  renderer;
2522
2449
  textRenderer;
@@ -2524,10 +2451,10 @@ var b = class l2 {
2524
2451
  this.options = e || T, this.options.renderer = this.options.renderer || new y, this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new L;
2525
2452
  }
2526
2453
  static parse(e, t) {
2527
- return new l2(t).parse(e);
2454
+ return new l(t).parse(e);
2528
2455
  }
2529
2456
  static parseInline(e, t) {
2530
- return new l2(t).parseInline(e);
2457
+ return new l(t).parseInline(e);
2531
2458
  }
2532
2459
  parse(e) {
2533
2460
  this.renderer.parser = this;
@@ -2878,19 +2805,19 @@ Please report this to https://github.com/markedjs/marked.`, e) {
2878
2805
  }
2879
2806
  };
2880
2807
  var M = new D;
2881
- function g(l3, e) {
2882
- return M.parse(l3, e);
2808
+ function g(l, e) {
2809
+ return M.parse(l, e);
2883
2810
  }
2884
- g.options = g.setOptions = function(l3) {
2885
- return M.setOptions(l3), g.defaults = M.defaults, G(g.defaults), g;
2811
+ g.options = g.setOptions = function(l) {
2812
+ return M.setOptions(l), g.defaults = M.defaults, G(g.defaults), g;
2886
2813
  };
2887
2814
  g.getDefaults = z;
2888
2815
  g.defaults = T;
2889
- g.use = function(...l3) {
2890
- return M.use(...l3), g.defaults = M.defaults, G(g.defaults), g;
2816
+ g.use = function(...l) {
2817
+ return M.use(...l), g.defaults = M.defaults, G(g.defaults), g;
2891
2818
  };
2892
- g.walkTokens = function(l3, e) {
2893
- return M.walkTokens(l3, e);
2819
+ g.walkTokens = function(l, e) {
2820
+ return M.walkTokens(l, e);
2894
2821
  };
2895
2822
  g.parseInline = M.parseInline;
2896
2823
  g.Parser = b;
@@ -2913,8 +2840,8 @@ var Vt = x.lex;
2913
2840
  // src/polly-ui/markdown.tsx
2914
2841
  import { jsxDEV } from "preact/jsx-dev-runtime";
2915
2842
  function renderMarkdown(value) {
2916
- const html2 = g.parse(value, { async: false });
2917
- const clean = purify.sanitize(html2);
2843
+ const html = g.parse(value, { async: false });
2844
+ const clean = purify.sanitize(html);
2918
2845
  return /* @__PURE__ */ jsxDEV("div", {
2919
2846
  "data-polly-ui": true,
2920
2847
  "data-polly-markdown": true,
@@ -2925,4 +2852,4 @@ export {
2925
2852
  renderMarkdown
2926
2853
  };
2927
2854
 
2928
- //# debugId=395AB57AA9F5395664756E2164756E21
2855
+ //# debugId=D02D5618C03860D364756E2164756E21