@descope/flow-components 2.2.54 → 2.2.56

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 (40) hide show
  1. package/dist/fm/222.js +1 -1
  2. package/dist/fm/222.js.map +1 -1
  3. package/dist/fm/467.js +3577 -3577
  4. package/dist/fm/467.js.LICENSE.txt +1 -1
  5. package/dist/fm/467.js.map +1 -1
  6. package/dist/fm/530.js +1 -1
  7. package/dist/fm/530.js.map +1 -1
  8. package/dist/fm/985.js +1 -1
  9. package/dist/fm/985.js.map +1 -1
  10. package/dist/fm/@mf-types/compiled-types/Grid/Columns/GridCustomColumn.d.ts +0 -7
  11. package/dist/fm/@mf-types/compiled-types/Grid/Columns/GridItemDetailsColumn.d.ts +0 -7
  12. package/dist/fm/@mf-types/compiled-types/Grid/Columns/GridSelectionColumn.d.ts +0 -7
  13. package/dist/fm/@mf-types/compiled-types/Grid/Columns/GridTextColumn.d.ts +0 -7
  14. package/dist/fm/@mf-types/compiled-types/Grid/Columns/index.d.ts +4 -4
  15. package/dist/fm/__federation_expose_componentClasses.js +1 -1
  16. package/dist/fm/__federation_expose_componentClasses.js.map +1 -1
  17. package/dist/fm/__federation_expose_components.js +1 -1
  18. package/dist/fm/__federation_expose_theme.js +1 -1
  19. package/dist/fm/__federation_expose_theme.js.map +1 -1
  20. package/dist/fm/flowComponents.js +1 -1
  21. package/dist/fm/flowComponents.js.map +1 -1
  22. package/dist/fm/main.js +1 -1
  23. package/dist/fm/main.js.map +1 -1
  24. package/dist/fm/mf-manifest.json +1 -1
  25. package/dist/fm/mf-stats.json +1 -1
  26. package/dist/index.cjs.js +151 -80
  27. package/dist/index.d.ts +0 -28
  28. package/dist/index.esm.js +1 -1
  29. package/dist/types/Grid/Columns/GridCustomColumn.d.ts +0 -7
  30. package/dist/types/Grid/Columns/GridItemDetailsColumn.d.ts +0 -7
  31. package/dist/types/Grid/Columns/GridSelectionColumn.d.ts +0 -7
  32. package/dist/types/Grid/Columns/GridTextColumn.d.ts +0 -7
  33. package/dist/types/Grid/Columns/gridJsxTypes.d.ts +11 -0
  34. package/dist/types/Grid/Columns/index.d.ts +4 -4
  35. package/package.json +2 -2
  36. package/dist/fm/@mf-types/componentClasses.d.ts +0 -2
  37. package/dist/fm/@mf-types/components.d.ts +0 -2
  38. package/dist/fm/@mf-types/theme.d.ts +0 -2
  39. package/dist/fm/@mf-types.d.ts +0 -3
  40. package/dist/fm/@mf-types.zip +0 -0
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "2.2.54",
8
+ "buildVersion": "2.2.56",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "2.2.54",
8
+ "buildVersion": "2.2.56",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -27,7 +27,7 @@ var hasRequiredLodash_merge;
27
27
  function requireLodash_merge () {
28
28
  if (hasRequiredLodash_merge) return lodash_merge.exports;
29
29
  hasRequiredLodash_merge = 1;
30
- (function (module, exports) {
30
+ (function (module, exports$1) {
31
31
  /** Used as the size to enable large array optimizations. */
32
32
  var LARGE_ARRAY_SIZE = 200;
33
33
 
@@ -111,7 +111,7 @@ function requireLodash_merge () {
111
111
  var root = freeGlobal || freeSelf || Function('return this')();
112
112
 
113
113
  /** Detect free variable `exports`. */
114
- var freeExports = exports && !exports.nodeType && exports;
114
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
115
115
 
116
116
  /** Detect free variable `module`. */
117
117
  var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
@@ -4396,7 +4396,7 @@ function requireColor () {
4396
4396
  return color;
4397
4397
  }
4398
4398
 
4399
- /*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */
4399
+ /*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
4400
4400
 
4401
4401
  var purify_cjs;
4402
4402
  var hasRequiredPurify_cjs;
@@ -4589,7 +4589,7 @@ function requirePurify_cjs () {
4589
4589
  }
4590
4590
 
4591
4591
  const html$1 = freeze(['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']);
4592
- const svg$1 = freeze(['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', 'slot', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
4592
+ const svg$1 = freeze(['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']);
4593
4593
  const svgFilters = freeze(['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']);
4594
4594
  // List of SVG elements that are disallowed by default.
4595
4595
  // We still need to know them so that we can do namespace
@@ -4603,7 +4603,7 @@ function requirePurify_cjs () {
4603
4603
  const text = freeze(['#text']);
4604
4604
 
4605
4605
  const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', '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', 'slot']);
4606
- const svg = freeze(['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', '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']);
4606
+ const svg = freeze(['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']);
4607
4607
  const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', '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']);
4608
4608
  const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
4609
4609
 
@@ -4701,7 +4701,7 @@ function requirePurify_cjs () {
4701
4701
  function createDOMPurify() {
4702
4702
  let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
4703
4703
  const DOMPurify = root => createDOMPurify(root);
4704
- DOMPurify.version = '3.2.7';
4704
+ DOMPurify.version = '3.3.1';
4705
4705
  DOMPurify.removed = [];
4706
4706
  if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
4707
4707
  // Not running in a browser, provide a factory function
@@ -4812,6 +4812,21 @@ function requirePurify_cjs () {
4812
4812
  let FORBID_TAGS = null;
4813
4813
  /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
4814
4814
  let FORBID_ATTR = null;
4815
+ /* Config object to store ADD_TAGS/ADD_ATTR functions (when used as functions) */
4816
+ const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
4817
+ tagCheck: {
4818
+ writable: true,
4819
+ configurable: false,
4820
+ enumerable: true,
4821
+ value: null
4822
+ },
4823
+ attributeCheck: {
4824
+ writable: true,
4825
+ configurable: false,
4826
+ enumerable: true,
4827
+ value: null
4828
+ }
4829
+ }));
4815
4830
  /* Decide if ARIA attributes are okay */
4816
4831
  let ALLOW_ARIA_ATTR = true;
4817
4832
  /* Decide if custom data attributes are okay */
@@ -5004,16 +5019,24 @@ function requirePurify_cjs () {
5004
5019
  }
5005
5020
  /* Merge configuration parameters */
5006
5021
  if (cfg.ADD_TAGS) {
5007
- if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
5008
- ALLOWED_TAGS = clone(ALLOWED_TAGS);
5022
+ if (typeof cfg.ADD_TAGS === 'function') {
5023
+ EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
5024
+ } else {
5025
+ if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
5026
+ ALLOWED_TAGS = clone(ALLOWED_TAGS);
5027
+ }
5028
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
5009
5029
  }
5010
- addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
5011
5030
  }
5012
5031
  if (cfg.ADD_ATTR) {
5013
- if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
5014
- ALLOWED_ATTR = clone(ALLOWED_ATTR);
5032
+ if (typeof cfg.ADD_ATTR === 'function') {
5033
+ EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
5034
+ } else {
5035
+ if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
5036
+ ALLOWED_ATTR = clone(ALLOWED_ATTR);
5037
+ }
5038
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
5015
5039
  }
5016
- addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
5017
5040
  }
5018
5041
  if (cfg.ADD_URI_SAFE_ATTR) {
5019
5042
  addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
@@ -5024,6 +5047,12 @@ function requirePurify_cjs () {
5024
5047
  }
5025
5048
  addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
5026
5049
  }
5050
+ if (cfg.ADD_FORBID_CONTENTS) {
5051
+ if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
5052
+ FORBID_CONTENTS = clone(FORBID_CONTENTS);
5053
+ }
5054
+ addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
5055
+ }
5027
5056
  /* Add #text in case KEEP_CONTENT is set to true */
5028
5057
  if (KEEP_CONTENT) {
5029
5058
  ALLOWED_TAGS['#text'] = true;
@@ -5321,7 +5350,7 @@ function requirePurify_cjs () {
5321
5350
  return true;
5322
5351
  }
5323
5352
  /* Remove element if anything forbids its presence */
5324
- if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
5353
+ if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
5325
5354
  /* Check if we have a custom element to handle */
5326
5355
  if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
5327
5356
  if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
@@ -5393,7 +5422,7 @@ function requirePurify_cjs () {
5393
5422
  (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
5394
5423
  XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
5395
5424
  We don't need to check the value; it's always URI safe. */
5396
- if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
5425
+ if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
5397
5426
  if (
5398
5427
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
5399
5428
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
@@ -6373,11 +6402,11 @@ var hasRequiredDecode_codepoint;
6373
6402
  function requireDecode_codepoint () {
6374
6403
  if (hasRequiredDecode_codepoint) return decode_codepoint;
6375
6404
  hasRequiredDecode_codepoint = 1;
6376
- (function (exports) {
6405
+ (function (exports$1) {
6377
6406
  // Adapted from https://github.com/mathiasbynens/he/blob/36afe179392226cf1b6ccdb16ebbb7a5a844d93a/src/he.js#L106-L134
6378
6407
  var _a;
6379
- Object.defineProperty(exports, "__esModule", { value: true });
6380
- exports.replaceCodePoint = exports.fromCodePoint = void 0;
6408
+ Object.defineProperty(exports$1, "__esModule", { value: true });
6409
+ exports$1.replaceCodePoint = exports$1.fromCodePoint = void 0;
6381
6410
  var decodeMap = new Map([
6382
6411
  [0, 65533],
6383
6412
  // C1 Unicode control character reference replacements
@@ -6412,7 +6441,7 @@ function requireDecode_codepoint () {
6412
6441
  /**
6413
6442
  * Polyfill for `String.fromCodePoint`. It is used to create a string from a Unicode code point.
6414
6443
  */
6415
- exports.fromCodePoint =
6444
+ exports$1.fromCodePoint =
6416
6445
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
6417
6446
  (_a = String.fromCodePoint) !== null && _a !== void 0 ? _a : function (codePoint) {
6418
6447
  var output = "";
@@ -6436,7 +6465,7 @@ function requireDecode_codepoint () {
6436
6465
  }
6437
6466
  return (_a = decodeMap.get(codePoint)) !== null && _a !== void 0 ? _a : codePoint;
6438
6467
  }
6439
- exports.replaceCodePoint = replaceCodePoint;
6468
+ exports$1.replaceCodePoint = replaceCodePoint;
6440
6469
  /**
6441
6470
  * Replace the code point if relevant, then convert it to a string.
6442
6471
  *
@@ -6445,9 +6474,9 @@ function requireDecode_codepoint () {
6445
6474
  * @returns The decoded code point.
6446
6475
  */
6447
6476
  function decodeCodePoint(codePoint) {
6448
- return (0, exports.fromCodePoint)(replaceCodePoint(codePoint));
6477
+ return (0, exports$1.fromCodePoint)(replaceCodePoint(codePoint));
6449
6478
  }
6450
- exports.default = decodeCodePoint;
6479
+ exports$1.default = decodeCodePoint;
6451
6480
 
6452
6481
  } (decode_codepoint));
6453
6482
  return decode_codepoint;
@@ -6458,7 +6487,7 @@ var hasRequiredDecode;
6458
6487
  function requireDecode () {
6459
6488
  if (hasRequiredDecode) return decode;
6460
6489
  hasRequiredDecode = 1;
6461
- (function (exports) {
6490
+ (function (exports$1) {
6462
6491
  var __createBinding = (decode && decode.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6463
6492
  if (k2 === undefined) k2 = k;
6464
6493
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -6485,17 +6514,17 @@ function requireDecode () {
6485
6514
  var __importDefault = (decode && decode.__importDefault) || function (mod) {
6486
6515
  return (mod && mod.__esModule) ? mod : { "default": mod };
6487
6516
  };
6488
- Object.defineProperty(exports, "__esModule", { value: true });
6489
- exports.decodeXML = exports.decodeHTMLStrict = exports.decodeHTMLAttribute = exports.decodeHTML = exports.determineBranch = exports.EntityDecoder = exports.DecodingMode = exports.BinTrieFlags = exports.fromCodePoint = exports.replaceCodePoint = exports.decodeCodePoint = exports.xmlDecodeTree = exports.htmlDecodeTree = void 0;
6517
+ Object.defineProperty(exports$1, "__esModule", { value: true });
6518
+ exports$1.decodeXML = exports$1.decodeHTMLStrict = exports$1.decodeHTMLAttribute = exports$1.decodeHTML = exports$1.determineBranch = exports$1.EntityDecoder = exports$1.DecodingMode = exports$1.BinTrieFlags = exports$1.fromCodePoint = exports$1.replaceCodePoint = exports$1.decodeCodePoint = exports$1.xmlDecodeTree = exports$1.htmlDecodeTree = void 0;
6490
6519
  var decode_data_html_js_1 = __importDefault(/*@__PURE__*/ requireDecodeDataHtml());
6491
- exports.htmlDecodeTree = decode_data_html_js_1.default;
6520
+ exports$1.htmlDecodeTree = decode_data_html_js_1.default;
6492
6521
  var decode_data_xml_js_1 = __importDefault(/*@__PURE__*/ requireDecodeDataXml());
6493
- exports.xmlDecodeTree = decode_data_xml_js_1.default;
6522
+ exports$1.xmlDecodeTree = decode_data_xml_js_1.default;
6494
6523
  var decode_codepoint_js_1 = __importStar(/*@__PURE__*/ requireDecode_codepoint());
6495
- exports.decodeCodePoint = decode_codepoint_js_1.default;
6524
+ exports$1.decodeCodePoint = decode_codepoint_js_1.default;
6496
6525
  var decode_codepoint_js_2 = /*@__PURE__*/ requireDecode_codepoint();
6497
- Object.defineProperty(exports, "replaceCodePoint", { enumerable: true, get: function () { return decode_codepoint_js_2.replaceCodePoint; } });
6498
- Object.defineProperty(exports, "fromCodePoint", { enumerable: true, get: function () { return decode_codepoint_js_2.fromCodePoint; } });
6526
+ Object.defineProperty(exports$1, "replaceCodePoint", { enumerable: true, get: function () { return decode_codepoint_js_2.replaceCodePoint; } });
6527
+ Object.defineProperty(exports$1, "fromCodePoint", { enumerable: true, get: function () { return decode_codepoint_js_2.fromCodePoint; } });
6499
6528
  var CharCodes;
6500
6529
  (function (CharCodes) {
6501
6530
  CharCodes[CharCodes["NUM"] = 35] = "NUM";
@@ -6518,7 +6547,7 @@ function requireDecode () {
6518
6547
  BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
6519
6548
  BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH";
6520
6549
  BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
6521
- })(BinTrieFlags = exports.BinTrieFlags || (exports.BinTrieFlags = {}));
6550
+ })(BinTrieFlags = exports$1.BinTrieFlags || (exports$1.BinTrieFlags = {}));
6522
6551
  function isNumber(code) {
6523
6552
  return code >= CharCodes.ZERO && code <= CharCodes.NINE;
6524
6553
  }
@@ -6556,7 +6585,7 @@ function requireDecode () {
6556
6585
  DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
6557
6586
  /** Entities in attributes have limitations on ending characters. */
6558
6587
  DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
6559
- })(DecodingMode = exports.DecodingMode || (exports.DecodingMode = {}));
6588
+ })(DecodingMode = exports$1.DecodingMode || (exports$1.DecodingMode = {}));
6560
6589
  /**
6561
6590
  * Token decoder with support of writing partial entities.
6562
6591
  */
@@ -6872,7 +6901,7 @@ function requireDecode () {
6872
6901
  };
6873
6902
  return EntityDecoder;
6874
6903
  }());
6875
- exports.EntityDecoder = EntityDecoder;
6904
+ exports$1.EntityDecoder = EntityDecoder;
6876
6905
  /**
6877
6906
  * Creates a function that decodes entities in a string.
6878
6907
  *
@@ -6948,7 +6977,7 @@ function requireDecode () {
6948
6977
  }
6949
6978
  return -1;
6950
6979
  }
6951
- exports.determineBranch = determineBranch;
6980
+ exports$1.determineBranch = determineBranch;
6952
6981
  var htmlDecoder = getDecoder(decode_data_html_js_1.default);
6953
6982
  var xmlDecoder = getDecoder(decode_data_xml_js_1.default);
6954
6983
  /**
@@ -6962,7 +6991,7 @@ function requireDecode () {
6962
6991
  if (mode === void 0) { mode = DecodingMode.Legacy; }
6963
6992
  return htmlDecoder(str, mode);
6964
6993
  }
6965
- exports.decodeHTML = decodeHTML;
6994
+ exports$1.decodeHTML = decodeHTML;
6966
6995
  /**
6967
6996
  * Decodes an HTML string in an attribute.
6968
6997
  *
@@ -6972,7 +7001,7 @@ function requireDecode () {
6972
7001
  function decodeHTMLAttribute(str) {
6973
7002
  return htmlDecoder(str, DecodingMode.Attribute);
6974
7003
  }
6975
- exports.decodeHTMLAttribute = decodeHTMLAttribute;
7004
+ exports$1.decodeHTMLAttribute = decodeHTMLAttribute;
6976
7005
  /**
6977
7006
  * Decodes an HTML string, requiring all entities to be terminated by a semicolon.
6978
7007
  *
@@ -6982,7 +7011,7 @@ function requireDecode () {
6982
7011
  function decodeHTMLStrict(str) {
6983
7012
  return htmlDecoder(str, DecodingMode.Strict);
6984
7013
  }
6985
- exports.decodeHTMLStrict = decodeHTMLStrict;
7014
+ exports$1.decodeHTMLStrict = decodeHTMLStrict;
6986
7015
  /**
6987
7016
  * Decodes an XML string, requiring all entities to be terminated by a semicolon.
6988
7017
  *
@@ -6992,7 +7021,7 @@ function requireDecode () {
6992
7021
  function decodeXML(str) {
6993
7022
  return xmlDecoder(str, DecodingMode.Strict);
6994
7023
  }
6995
- exports.decodeXML = decodeXML;
7024
+ exports$1.decodeXML = decodeXML;
6996
7025
 
6997
7026
  } (decode));
6998
7027
  return decode;
@@ -7028,10 +7057,10 @@ var hasRequired_escape;
7028
7057
  function require_escape () {
7029
7058
  if (hasRequired_escape) return _escape;
7030
7059
  hasRequired_escape = 1;
7031
- (function (exports) {
7032
- Object.defineProperty(exports, "__esModule", { value: true });
7033
- exports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.escape = exports.encodeXML = exports.getCodePoint = exports.xmlReplacer = void 0;
7034
- exports.xmlReplacer = /["&'<>$\x80-\uFFFF]/g;
7060
+ (function (exports$1) {
7061
+ Object.defineProperty(exports$1, "__esModule", { value: true });
7062
+ exports$1.escapeText = exports$1.escapeAttribute = exports$1.escapeUTF8 = exports$1.escape = exports$1.encodeXML = exports$1.getCodePoint = exports$1.xmlReplacer = void 0;
7063
+ exports$1.xmlReplacer = /["&'<>$\x80-\uFFFF]/g;
7035
7064
  var xmlCodeMap = new Map([
7036
7065
  [34, "&quot;"],
7037
7066
  [38, "&amp;"],
@@ -7040,7 +7069,7 @@ function require_escape () {
7040
7069
  [62, "&gt;"],
7041
7070
  ]);
7042
7071
  // For compatibility with node < 4, we wrap `codePointAt`
7043
- exports.getCodePoint =
7072
+ exports$1.getCodePoint =
7044
7073
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
7045
7074
  String.prototype.codePointAt != null
7046
7075
  ? function (str, index) { return str.codePointAt(index); }
@@ -7064,7 +7093,7 @@ function require_escape () {
7064
7093
  var ret = "";
7065
7094
  var lastIdx = 0;
7066
7095
  var match;
7067
- while ((match = exports.xmlReplacer.exec(str)) !== null) {
7096
+ while ((match = exports$1.xmlReplacer.exec(str)) !== null) {
7068
7097
  var i = match.index;
7069
7098
  var char = str.charCodeAt(i);
7070
7099
  var next = xmlCodeMap.get(char);
@@ -7073,14 +7102,14 @@ function require_escape () {
7073
7102
  lastIdx = i + 1;
7074
7103
  }
7075
7104
  else {
7076
- ret += "".concat(str.substring(lastIdx, i), "&#x").concat((0, exports.getCodePoint)(str, i).toString(16), ";");
7105
+ ret += "".concat(str.substring(lastIdx, i), "&#x").concat((0, exports$1.getCodePoint)(str, i).toString(16), ";");
7077
7106
  // Increase by 1 if we have a surrogate pair
7078
- lastIdx = exports.xmlReplacer.lastIndex += Number((char & 0xfc00) === 0xd800);
7107
+ lastIdx = exports$1.xmlReplacer.lastIndex += Number((char & 0xfc00) === 0xd800);
7079
7108
  }
7080
7109
  }
7081
7110
  return ret + str.substr(lastIdx);
7082
7111
  }
7083
- exports.encodeXML = encodeXML;
7112
+ exports$1.encodeXML = encodeXML;
7084
7113
  /**
7085
7114
  * Encodes all non-ASCII characters, as well as characters not valid in XML
7086
7115
  * documents using numeric hexadecimal reference (eg. `&#xfc;`).
@@ -7090,7 +7119,7 @@ function require_escape () {
7090
7119
  *
7091
7120
  * @param data String to escape.
7092
7121
  */
7093
- exports.escape = encodeXML;
7122
+ exports$1.escape = encodeXML;
7094
7123
  /**
7095
7124
  * Creates a function that escapes all characters matched by the given regular
7096
7125
  * expression using the given map of characters to escape to their entities.
@@ -7125,14 +7154,14 @@ function require_escape () {
7125
7154
  *
7126
7155
  * @param data String to escape.
7127
7156
  */
7128
- exports.escapeUTF8 = getEscaper(/[&<>'"]/g, xmlCodeMap);
7157
+ exports$1.escapeUTF8 = getEscaper(/[&<>'"]/g, xmlCodeMap);
7129
7158
  /**
7130
7159
  * Encodes all characters that have to be escaped in HTML attributes,
7131
7160
  * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
7132
7161
  *
7133
7162
  * @param data String to escape.
7134
7163
  */
7135
- exports.escapeAttribute = getEscaper(/["&\u00A0]/g, new Map([
7164
+ exports$1.escapeAttribute = getEscaper(/["&\u00A0]/g, new Map([
7136
7165
  [34, "&quot;"],
7137
7166
  [38, "&amp;"],
7138
7167
  [160, "&nbsp;"],
@@ -7143,7 +7172,7 @@ function require_escape () {
7143
7172
  *
7144
7173
  * @param data String to escape.
7145
7174
  */
7146
- exports.escapeText = getEscaper(/[&<>\u00A0]/g, new Map([
7175
+ exports$1.escapeText = getEscaper(/[&<>\u00A0]/g, new Map([
7147
7176
  [38, "&amp;"],
7148
7177
  [60, "&lt;"],
7149
7178
  [62, "&gt;"],
@@ -7243,9 +7272,9 @@ var hasRequiredLib$1;
7243
7272
  function requireLib$1 () {
7244
7273
  if (hasRequiredLib$1) return lib$1;
7245
7274
  hasRequiredLib$1 = 1;
7246
- (function (exports) {
7247
- Object.defineProperty(exports, "__esModule", { value: true });
7248
- exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLAttribute = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.DecodingMode = exports.EntityDecoder = exports.encodeHTML5 = exports.encodeHTML4 = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.escape = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = exports.EncodingMode = exports.EntityLevel = void 0;
7275
+ (function (exports$1) {
7276
+ Object.defineProperty(exports$1, "__esModule", { value: true });
7277
+ exports$1.decodeXMLStrict = exports$1.decodeHTML5Strict = exports$1.decodeHTML4Strict = exports$1.decodeHTML5 = exports$1.decodeHTML4 = exports$1.decodeHTMLAttribute = exports$1.decodeHTMLStrict = exports$1.decodeHTML = exports$1.decodeXML = exports$1.DecodingMode = exports$1.EntityDecoder = exports$1.encodeHTML5 = exports$1.encodeHTML4 = exports$1.encodeNonAsciiHTML = exports$1.encodeHTML = exports$1.escapeText = exports$1.escapeAttribute = exports$1.escapeUTF8 = exports$1.escape = exports$1.encodeXML = exports$1.encode = exports$1.decodeStrict = exports$1.decode = exports$1.EncodingMode = exports$1.EntityLevel = void 0;
7249
7278
  var decode_js_1 = /*@__PURE__*/ requireDecode();
7250
7279
  var encode_js_1 = /*@__PURE__*/ requireEncode();
7251
7280
  var escape_js_1 = /*@__PURE__*/ require_escape();
@@ -7256,7 +7285,7 @@ function requireLib$1 () {
7256
7285
  EntityLevel[EntityLevel["XML"] = 0] = "XML";
7257
7286
  /** Support HTML entities, which are a superset of XML entities. */
7258
7287
  EntityLevel[EntityLevel["HTML"] = 1] = "HTML";
7259
- })(EntityLevel = exports.EntityLevel || (exports.EntityLevel = {}));
7288
+ })(EntityLevel = exports$1.EntityLevel || (exports$1.EntityLevel = {}));
7260
7289
  var EncodingMode;
7261
7290
  (function (EncodingMode) {
7262
7291
  /**
@@ -7285,7 +7314,7 @@ function requireLib$1 () {
7285
7314
  * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
7286
7315
  */
7287
7316
  EncodingMode[EncodingMode["Text"] = 4] = "Text";
7288
- })(EncodingMode = exports.EncodingMode || (exports.EncodingMode = {}));
7317
+ })(EncodingMode = exports$1.EncodingMode || (exports$1.EncodingMode = {}));
7289
7318
  /**
7290
7319
  * Decodes a string with entities.
7291
7320
  *
@@ -7301,7 +7330,7 @@ function requireLib$1 () {
7301
7330
  }
7302
7331
  return (0, decode_js_1.decodeXML)(data);
7303
7332
  }
7304
- exports.decode = decode;
7333
+ exports$1.decode = decode;
7305
7334
  /**
7306
7335
  * Decodes a string with entities. Does not allow missing trailing semicolons for entities.
7307
7336
  *
@@ -7316,7 +7345,7 @@ function requireLib$1 () {
7316
7345
  (_a = opts.mode) !== null && _a !== void 0 ? _a : (opts.mode = decode_js_1.DecodingMode.Strict);
7317
7346
  return decode(data, opts);
7318
7347
  }
7319
- exports.decodeStrict = decodeStrict;
7348
+ exports$1.decodeStrict = decodeStrict;
7320
7349
  /**
7321
7350
  * Encodes a string with entities.
7322
7351
  *
@@ -7342,32 +7371,32 @@ function requireLib$1 () {
7342
7371
  // ASCII and Extensive are equivalent
7343
7372
  return (0, escape_js_1.encodeXML)(data);
7344
7373
  }
7345
- exports.encode = encode;
7374
+ exports$1.encode = encode;
7346
7375
  var escape_js_2 = /*@__PURE__*/ require_escape();
7347
- Object.defineProperty(exports, "encodeXML", { enumerable: true, get: function () { return escape_js_2.encodeXML; } });
7348
- Object.defineProperty(exports, "escape", { enumerable: true, get: function () { return escape_js_2.escape; } });
7349
- Object.defineProperty(exports, "escapeUTF8", { enumerable: true, get: function () { return escape_js_2.escapeUTF8; } });
7350
- Object.defineProperty(exports, "escapeAttribute", { enumerable: true, get: function () { return escape_js_2.escapeAttribute; } });
7351
- Object.defineProperty(exports, "escapeText", { enumerable: true, get: function () { return escape_js_2.escapeText; } });
7376
+ Object.defineProperty(exports$1, "encodeXML", { enumerable: true, get: function () { return escape_js_2.encodeXML; } });
7377
+ Object.defineProperty(exports$1, "escape", { enumerable: true, get: function () { return escape_js_2.escape; } });
7378
+ Object.defineProperty(exports$1, "escapeUTF8", { enumerable: true, get: function () { return escape_js_2.escapeUTF8; } });
7379
+ Object.defineProperty(exports$1, "escapeAttribute", { enumerable: true, get: function () { return escape_js_2.escapeAttribute; } });
7380
+ Object.defineProperty(exports$1, "escapeText", { enumerable: true, get: function () { return escape_js_2.escapeText; } });
7352
7381
  var encode_js_2 = /*@__PURE__*/ requireEncode();
7353
- Object.defineProperty(exports, "encodeHTML", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
7354
- Object.defineProperty(exports, "encodeNonAsciiHTML", { enumerable: true, get: function () { return encode_js_2.encodeNonAsciiHTML; } });
7382
+ Object.defineProperty(exports$1, "encodeHTML", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
7383
+ Object.defineProperty(exports$1, "encodeNonAsciiHTML", { enumerable: true, get: function () { return encode_js_2.encodeNonAsciiHTML; } });
7355
7384
  // Legacy aliases (deprecated)
7356
- Object.defineProperty(exports, "encodeHTML4", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
7357
- Object.defineProperty(exports, "encodeHTML5", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
7385
+ Object.defineProperty(exports$1, "encodeHTML4", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
7386
+ Object.defineProperty(exports$1, "encodeHTML5", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
7358
7387
  var decode_js_2 = /*@__PURE__*/ requireDecode();
7359
- Object.defineProperty(exports, "EntityDecoder", { enumerable: true, get: function () { return decode_js_2.EntityDecoder; } });
7360
- Object.defineProperty(exports, "DecodingMode", { enumerable: true, get: function () { return decode_js_2.DecodingMode; } });
7361
- Object.defineProperty(exports, "decodeXML", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });
7362
- Object.defineProperty(exports, "decodeHTML", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
7363
- Object.defineProperty(exports, "decodeHTMLStrict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
7364
- Object.defineProperty(exports, "decodeHTMLAttribute", { enumerable: true, get: function () { return decode_js_2.decodeHTMLAttribute; } });
7388
+ Object.defineProperty(exports$1, "EntityDecoder", { enumerable: true, get: function () { return decode_js_2.EntityDecoder; } });
7389
+ Object.defineProperty(exports$1, "DecodingMode", { enumerable: true, get: function () { return decode_js_2.DecodingMode; } });
7390
+ Object.defineProperty(exports$1, "decodeXML", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });
7391
+ Object.defineProperty(exports$1, "decodeHTML", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
7392
+ Object.defineProperty(exports$1, "decodeHTMLStrict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
7393
+ Object.defineProperty(exports$1, "decodeHTMLAttribute", { enumerable: true, get: function () { return decode_js_2.decodeHTMLAttribute; } });
7365
7394
  // Legacy aliases (deprecated)
7366
- Object.defineProperty(exports, "decodeHTML4", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
7367
- Object.defineProperty(exports, "decodeHTML5", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
7368
- Object.defineProperty(exports, "decodeHTML4Strict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
7369
- Object.defineProperty(exports, "decodeHTML5Strict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
7370
- Object.defineProperty(exports, "decodeXMLStrict", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });
7395
+ Object.defineProperty(exports$1, "decodeHTML4", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
7396
+ Object.defineProperty(exports$1, "decodeHTML5", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
7397
+ Object.defineProperty(exports$1, "decodeHTML4Strict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
7398
+ Object.defineProperty(exports$1, "decodeHTML5Strict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
7399
+ Object.defineProperty(exports$1, "decodeXMLStrict", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });
7371
7400
 
7372
7401
  } (lib$1));
7373
7402
  return lib$1;
@@ -12428,7 +12457,14 @@ function requireIndex_cjs$1 () {
12428
12457
  if (url.length <= proto.length) return false;
12429
12458
 
12430
12459
  // disallow '*' at the end of the link (conflicts with emphasis)
12431
- url = url.replace(/\*+$/, '');
12460
+ // do manual backsearch to avoid perf issues with regex /\*+$/ on "****...****a".
12461
+ let urlEnd = url.length;
12462
+ while (urlEnd > 0 && url.charCodeAt(urlEnd - 1) === 0x2A /* * */) {
12463
+ urlEnd--;
12464
+ }
12465
+ if (urlEnd !== url.length) {
12466
+ url = url.slice(0, urlEnd);
12467
+ }
12432
12468
  const fullUrl = state.md.normalizeLink(url);
12433
12469
  if (!state.md.validateLink(fullUrl)) return false;
12434
12470
  if (!silent) {
@@ -82506,6 +82542,19 @@ function requireIndex_cjs () {
82506
82542
  }
82507
82543
  };
82508
82544
 
82545
+ const inputOverrideValidConstraintsMixin$1 = (superclass) =>
82546
+ class InputOverrideValidConstraintsMixinClass extends superclass {
82547
+ init() {
82548
+ super.init?.();
82549
+
82550
+ // vaadin uses `validConstraints` (required, pattern, minlength, maxlength) to determine if it should validate
82551
+ // the input or not. We want to override this behavior, so we can enforce validation even if these attributes are not present.
82552
+ if (this.baseElement._hasValidConstraints) {
82553
+ this.baseElement._hasValidConstraints = () => true;
82554
+ }
82555
+ }
82556
+ };
82557
+
82509
82558
  const getFileExtension = (path) => {
82510
82559
  const match = path.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i);
82511
82560
  return match ? match[1] : null;
@@ -87757,7 +87806,7 @@ descope-enriched-text {
87757
87806
  const ComboBoxMixin = (superclass) =>
87758
87807
  class ComboBoxMixinClass extends superclass {
87759
87808
  static get observedAttributes() {
87760
- return ['label-type'];
87809
+ return ['label-type', 'require-match'];
87761
87810
  }
87762
87811
 
87763
87812
  // eslint-disable-next-line class-methods-use-this
@@ -87829,6 +87878,10 @@ descope-enriched-text {
87829
87878
  }
87830
87879
  }
87831
87880
 
87881
+ get requireMatch() {
87882
+ return this.getAttribute('require-match') === 'true' && !this.allowCustomValue;
87883
+ }
87884
+
87832
87885
  // eslint-disable-next-line class-methods-use-this
87833
87886
  isValidDataType(data) {
87834
87887
  const isValid = Array.isArray(data);
@@ -87981,16 +88034,27 @@ descope-enriched-text {
87981
88034
  }
87982
88035
  }
87983
88036
 
88037
+ isValueMatch() {
88038
+ return this.baseElement.items.some(val => val.getAttribute('data-id') === this.baseElement.querySelector('input').value);
88039
+ }
88040
+
87984
88041
  init() {
87985
88042
  super.init?.();
87986
88043
 
87987
88044
  // eslint-disable-next-line func-names
87988
88045
  this.getValidity = function () {
88046
+ if (this.requireMatch && !this.isValueMatch()) {
88047
+ return {
88048
+ patternMismatch: true,
88049
+ };
88050
+ }
88051
+
87989
88052
  if (!this.value && this.isRequired) {
87990
88053
  return {
87991
88054
  valueMissing: true,
87992
88055
  };
87993
88056
  }
88057
+
87994
88058
  return {};
87995
88059
  };
87996
88060
 
@@ -88042,6 +88106,10 @@ descope-enriched-text {
88042
88106
  }
88043
88107
  }
88044
88108
 
88109
+ handleRequireMatchChange(shouldValidate) {
88110
+ this.baseElement.allowCustomValue = shouldValidate || this.allowCustomValue;
88111
+ }
88112
+
88045
88113
  attributeChangedCallback(attrName, oldValue, newValue) {
88046
88114
  super.attributeChangedCallback?.(attrName, oldValue, newValue);
88047
88115
 
@@ -88052,6 +88120,8 @@ descope-enriched-text {
88052
88120
  } else {
88053
88121
  this.removeEventListener('click', this.onLabelClick);
88054
88122
  }
88123
+ } else if (attrName === 'require-match') {
88124
+ this.handleRequireMatchChange(newValue === 'true');
88055
88125
  }
88056
88126
  }
88057
88127
  }
@@ -88349,6 +88419,7 @@ descope-enriched-text {
88349
88419
  proxyProps: ['selectionStart'],
88350
88420
  inputEvent: 'value-changed',
88351
88421
  }),
88422
+ inputOverrideValidConstraintsMixin$1,
88352
88423
  componentNameValidationMixin$1,
88353
88424
  ComboBoxMixin,
88354
88425
  )(