@biggive/components 202604070701.0.0 → 202604100637.0.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 (171) hide show
  1. package/dist/biggive/biggive.esm.js +1 -1
  2. package/dist/biggive/{p-aa7934db.entry.js → p-069dec30.entry.js} +1 -1
  3. package/dist/biggive/{p-2d91208e.entry.js → p-11cb4b4a.entry.js} +1 -1
  4. package/dist/biggive/{p-63535bee.entry.js → p-15a0d788.entry.js} +1 -1
  5. package/dist/biggive/{p-8fe710bc.entry.js → p-1ad942db.entry.js} +1 -1
  6. package/dist/biggive/{p-d716371c.entry.js → p-1f2f0c2f.entry.js} +1 -1
  7. package/dist/biggive/{p-2764da54.entry.js → p-280a8b5a.entry.js} +1 -1
  8. package/dist/biggive/{p-0732866f.entry.js → p-2bee8a15.entry.js} +1 -1
  9. package/dist/biggive/{p-0e809246.entry.js → p-2e30df19.entry.js} +1 -1
  10. package/dist/biggive/{p-d00f7e85.entry.js → p-312fc3fe.entry.js} +1 -1
  11. package/dist/biggive/{p-d4278701.entry.js → p-38624b8a.entry.js} +1 -1
  12. package/dist/biggive/{p-66b4e7fb.entry.js → p-3f7cd009.entry.js} +1 -1
  13. package/dist/biggive/{p-735524b5.entry.js → p-4acb1d51.entry.js} +1 -1
  14. package/dist/biggive/{p-3c4c2712.entry.js → p-4e000b27.entry.js} +1 -1
  15. package/dist/biggive/{p-8c35329c.entry.js → p-5142d30d.entry.js} +1 -1
  16. package/dist/biggive/{p-91b97549.entry.js → p-5317aadb.entry.js} +1 -1
  17. package/dist/biggive/{p-dc049d15.entry.js → p-539ce5d8.entry.js} +1 -1
  18. package/dist/biggive/{p-5b74ac73.entry.js → p-54475a32.entry.js} +1 -1
  19. package/dist/biggive/p-5C0u_YJD.js +2 -0
  20. package/dist/biggive/{p-0e1ce2ae.entry.js → p-5e259f89.entry.js} +1 -1
  21. package/dist/biggive/{p-e0de3e38.entry.js → p-6201caed.entry.js} +1 -1
  22. package/dist/biggive/{p-e26f4e83.entry.js → p-640b1002.entry.js} +1 -1
  23. package/dist/biggive/{p-94e1906f.entry.js → p-716d881c.entry.js} +1 -1
  24. package/dist/biggive/{p-035ab9ba.entry.js → p-71951c27.entry.js} +1 -1
  25. package/dist/biggive/{p-6ec4baac.entry.js → p-727ccb87.entry.js} +1 -1
  26. package/dist/biggive/{p-ae012767.entry.js → p-72aeff19.entry.js} +1 -1
  27. package/dist/biggive/{p-c3358a9f.entry.js → p-739b9c54.entry.js} +1 -1
  28. package/dist/biggive/{p-fe51dc95.entry.js → p-7451ee27.entry.js} +1 -1
  29. package/dist/biggive/{p-9852ff0b.entry.js → p-7d095746.entry.js} +1 -1
  30. package/dist/biggive/{p-cbbd3d27.entry.js → p-849f7388.entry.js} +1 -1
  31. package/dist/biggive/{p-11764af6.entry.js → p-89a4a263.entry.js} +1 -1
  32. package/dist/biggive/{p-690b46f6.entry.js → p-90a9d5e8.entry.js} +1 -1
  33. package/dist/biggive/{p-2aefd822.entry.js → p-95b70d88.entry.js} +1 -1
  34. package/dist/biggive/{p-0b7708ae.entry.js → p-99edcc06.entry.js} +1 -1
  35. package/dist/biggive/{p-7631b461.entry.js → p-9b134168.entry.js} +1 -1
  36. package/dist/biggive/{p-65b741e1.entry.js → p-9d66b4b9.entry.js} +1 -1
  37. package/dist/biggive/{p-923b2c98.entry.js → p-9ec7b001.entry.js} +1 -1
  38. package/dist/biggive/{p-a3cdc8c9.entry.js → p-a2304de3.entry.js} +1 -1
  39. package/dist/biggive/{p-d0b9afaf.entry.js → p-a4f734e1.entry.js} +1 -1
  40. package/dist/biggive/{p-0eaeb864.entry.js → p-a8a2ac81.entry.js} +1 -1
  41. package/dist/biggive/{p-6951c905.entry.js → p-aa99fe4e.entry.js} +1 -1
  42. package/dist/biggive/{p-579a0a78.entry.js → p-b6271e5d.entry.js} +1 -1
  43. package/dist/biggive/{p-4e91f697.entry.js → p-bfbb91fb.entry.js} +1 -1
  44. package/dist/biggive/{p-0161bda4.entry.js → p-d115ce7d.entry.js} +1 -1
  45. package/dist/biggive/{p-d7ff46b3.entry.js → p-d38b7def.entry.js} +1 -1
  46. package/dist/biggive/{p-6c98331d.entry.js → p-d9e8096a.entry.js} +1 -1
  47. package/dist/biggive/{p-f9cfbe70.entry.js → p-dcf8803b.entry.js} +1 -1
  48. package/dist/biggive/{p-a18dfe2b.entry.js → p-e101f803.entry.js} +1 -1
  49. package/dist/biggive/{p-dd9ced38.entry.js → p-eaedfd4b.entry.js} +1 -1
  50. package/dist/biggive/{p-a67926e6.entry.js → p-f2498703.entry.js} +1 -1
  51. package/dist/biggive/{p-1fddd3f0.entry.js → p-f87cf361.entry.js} +1 -1
  52. package/dist/biggive/{p-f01e6a78.entry.js → p-fa1704c2.entry.js} +1 -1
  53. package/dist/biggive/{p-07f6193b.entry.js → p-fc166275.entry.js} +1 -1
  54. package/dist/biggive/{p-c47d4c9e.entry.js → p-ffe082da.entry.js} +1 -1
  55. package/dist/cjs/biggive-accordion-entry.cjs.entry.js +1 -1
  56. package/dist/cjs/biggive-accordion.cjs.entry.js +1 -1
  57. package/dist/cjs/biggive-article-card.cjs.entry.js +1 -1
  58. package/dist/cjs/biggive-back-to-top.cjs.entry.js +1 -1
  59. package/dist/cjs/biggive-basic-card.cjs.entry.js +1 -1
  60. package/dist/cjs/biggive-biography-card.cjs.entry.js +1 -1
  61. package/dist/cjs/biggive-boxed-content.cjs.entry.js +1 -1
  62. package/dist/cjs/biggive-branded-image.cjs.entry.js +1 -1
  63. package/dist/cjs/biggive-button.cjs.entry.js +1 -1
  64. package/dist/cjs/biggive-call-to-action.cjs.entry.js +1 -1
  65. package/dist/cjs/biggive-campaign-card-filter-grid.cjs.entry.js +1 -1
  66. package/dist/cjs/biggive-campaign-card.cjs.entry.js +1 -1
  67. package/dist/cjs/biggive-campaign-highlights.cjs.entry.js +1 -1
  68. package/dist/cjs/biggive-container-card.cjs.entry.js +1 -1
  69. package/dist/cjs/biggive-cookie-banner.cjs.entry.js +1 -1
  70. package/dist/cjs/biggive-footer.cjs.entry.js +1 -1
  71. package/dist/cjs/biggive-form-field-select.cjs.entry.js +1 -1
  72. package/dist/cjs/biggive-form.cjs.entry.js +1 -1
  73. package/dist/cjs/biggive-formatted-text.cjs.entry.js +1 -1
  74. package/dist/cjs/biggive-grid.cjs.entry.js +1 -1
  75. package/dist/cjs/biggive-heading-banner.cjs.entry.js +1 -1
  76. package/dist/cjs/biggive-heading.cjs.entry.js +1 -1
  77. package/dist/cjs/biggive-hero-image.cjs.entry.js +1 -1
  78. package/dist/cjs/biggive-icon-button.cjs.entry.js +1 -1
  79. package/dist/cjs/biggive-image-button.cjs.entry.js +1 -1
  80. package/dist/cjs/biggive-image-card.cjs.entry.js +1 -1
  81. package/dist/cjs/biggive-image-feature.cjs.entry.js +1 -1
  82. package/dist/cjs/biggive-image.cjs.entry.js +1 -1
  83. package/dist/cjs/biggive-main-menu.cjs.entry.js +1 -1
  84. package/dist/cjs/biggive-misc-icon.cjs.entry.js +1 -1
  85. package/dist/cjs/biggive-nav-group.cjs.entry.js +1 -1
  86. package/dist/cjs/biggive-nav-item.cjs.entry.js +1 -1
  87. package/dist/cjs/biggive-page-column.cjs.entry.js +1 -1
  88. package/dist/cjs/biggive-page-columns.cjs.entry.js +1 -1
  89. package/dist/cjs/biggive-page-section.cjs.entry.js +1 -1
  90. package/dist/cjs/biggive-popup.cjs.entry.js +1 -1
  91. package/dist/cjs/biggive-progress-bar.cjs.entry.js +1 -1
  92. package/dist/cjs/biggive-quote.cjs.entry.js +1 -1
  93. package/dist/cjs/biggive-sheet.cjs.entry.js +1 -1
  94. package/dist/cjs/biggive-social-icon.cjs.entry.js +1 -1
  95. package/dist/cjs/biggive-tab.cjs.entry.js +1 -1
  96. package/dist/cjs/biggive-tabbed-content.cjs.entry.js +1 -1
  97. package/dist/cjs/biggive-table.cjs.entry.js +1 -1
  98. package/dist/cjs/biggive-text-input.cjs.entry.js +1 -1
  99. package/dist/cjs/biggive-timeline-entry.cjs.entry.js +1 -1
  100. package/dist/cjs/biggive-timeline.cjs.entry.js +1 -1
  101. package/dist/cjs/biggive-totalizer-ticker-item.cjs.entry.js +1 -1
  102. package/dist/cjs/biggive-totalizer.cjs.entry.js +1 -1
  103. package/dist/cjs/biggive-video-feature.cjs.entry.js +1 -1
  104. package/dist/cjs/biggive-video.cjs.entry.js +1 -1
  105. package/dist/cjs/biggive.cjs.js +2 -2
  106. package/dist/cjs/{index-CmkdtLhD.js → index-Dks8m6mR.js} +139 -80
  107. package/dist/cjs/loader.cjs.js +1 -1
  108. package/dist/cjs/philco-footer.cjs.entry.js +1 -1
  109. package/dist/cjs/philco-main-menu.cjs.entry.js +1 -1
  110. package/dist/collection/collection-manifest.json +2 -1
  111. package/dist/esm/biggive-accordion-entry.entry.js +1 -1
  112. package/dist/esm/biggive-accordion.entry.js +1 -1
  113. package/dist/esm/biggive-article-card.entry.js +1 -1
  114. package/dist/esm/biggive-back-to-top.entry.js +1 -1
  115. package/dist/esm/biggive-basic-card.entry.js +1 -1
  116. package/dist/esm/biggive-biography-card.entry.js +1 -1
  117. package/dist/esm/biggive-boxed-content.entry.js +1 -1
  118. package/dist/esm/biggive-branded-image.entry.js +1 -1
  119. package/dist/esm/biggive-button.entry.js +1 -1
  120. package/dist/esm/biggive-call-to-action.entry.js +1 -1
  121. package/dist/esm/biggive-campaign-card-filter-grid.entry.js +1 -1
  122. package/dist/esm/biggive-campaign-card.entry.js +1 -1
  123. package/dist/esm/biggive-campaign-highlights.entry.js +1 -1
  124. package/dist/esm/biggive-container-card.entry.js +1 -1
  125. package/dist/esm/biggive-cookie-banner.entry.js +1 -1
  126. package/dist/esm/biggive-footer.entry.js +1 -1
  127. package/dist/esm/biggive-form-field-select.entry.js +1 -1
  128. package/dist/esm/biggive-form.entry.js +1 -1
  129. package/dist/esm/biggive-formatted-text.entry.js +1 -1
  130. package/dist/esm/biggive-grid.entry.js +1 -1
  131. package/dist/esm/biggive-heading-banner.entry.js +1 -1
  132. package/dist/esm/biggive-heading.entry.js +1 -1
  133. package/dist/esm/biggive-hero-image.entry.js +1 -1
  134. package/dist/esm/biggive-icon-button.entry.js +1 -1
  135. package/dist/esm/biggive-image-button.entry.js +1 -1
  136. package/dist/esm/biggive-image-card.entry.js +1 -1
  137. package/dist/esm/biggive-image-feature.entry.js +1 -1
  138. package/dist/esm/biggive-image.entry.js +1 -1
  139. package/dist/esm/biggive-main-menu.entry.js +1 -1
  140. package/dist/esm/biggive-misc-icon.entry.js +1 -1
  141. package/dist/esm/biggive-nav-group.entry.js +1 -1
  142. package/dist/esm/biggive-nav-item.entry.js +1 -1
  143. package/dist/esm/biggive-page-column.entry.js +1 -1
  144. package/dist/esm/biggive-page-columns.entry.js +1 -1
  145. package/dist/esm/biggive-page-section.entry.js +1 -1
  146. package/dist/esm/biggive-popup.entry.js +1 -1
  147. package/dist/esm/biggive-progress-bar.entry.js +1 -1
  148. package/dist/esm/biggive-quote.entry.js +1 -1
  149. package/dist/esm/biggive-sheet.entry.js +1 -1
  150. package/dist/esm/biggive-social-icon.entry.js +1 -1
  151. package/dist/esm/biggive-tab.entry.js +1 -1
  152. package/dist/esm/biggive-tabbed-content.entry.js +1 -1
  153. package/dist/esm/biggive-table.entry.js +1 -1
  154. package/dist/esm/biggive-text-input.entry.js +1 -1
  155. package/dist/esm/biggive-timeline-entry.entry.js +1 -1
  156. package/dist/esm/biggive-timeline.entry.js +1 -1
  157. package/dist/esm/biggive-totalizer-ticker-item.entry.js +1 -1
  158. package/dist/esm/biggive-totalizer.entry.js +1 -1
  159. package/dist/esm/biggive-video-feature.entry.js +1 -1
  160. package/dist/esm/biggive-video.entry.js +1 -1
  161. package/dist/esm/biggive.js +3 -3
  162. package/dist/esm/{index-eJW26lzZ.js → index-5C0u_YJD.js} +139 -80
  163. package/dist/esm/loader.js +2 -2
  164. package/dist/esm/philco-footer.entry.js +1 -1
  165. package/dist/esm/philco-main-menu.entry.js +1 -1
  166. package/dist/types/components.d.ts +595 -100
  167. package/dist/types/stencil-public-runtime.d.ts +23 -2
  168. package/hydrate/index.js +982 -478
  169. package/hydrate/index.mjs +982 -478
  170. package/package.json +1 -1
  171. package/dist/biggive/p-eJW26lzZ.js +0 -2
package/hydrate/index.mjs CHANGED
@@ -133,7 +133,7 @@ const NAMESPACE = 'biggive';
133
133
  const BUILD = /* biggive */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
134
134
 
135
135
  /*
136
- Stencil Hydrate Platform v4.41.3 | MIT Licensed | https://stenciljs.com
136
+ Stencil Hydrate Platform v4.43.3 | MIT Licensed | https://stenciljs.com
137
137
  */
138
138
  var __create = Object.create;
139
139
  var __defProp = Object.defineProperty;
@@ -168,7 +168,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
168
168
  __defProp(target, "default", { value: mod, enumerable: true }) ,
169
169
  mod
170
170
  ));
171
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
171
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
172
172
  var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
173
173
  var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
174
174
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
@@ -410,15 +410,26 @@ var TYPE_CONSTANT = "type";
410
410
  var VALUE_CONSTANT = "value";
411
411
  var SERIALIZED_PREFIX = "serialized:";
412
412
 
413
+ // src/utils/get-prop-descriptor.ts
414
+ function getPropertyDescriptor(obj, memberName, getOnly) {
415
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
416
+ while (obj && obj !== stopAt) {
417
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
418
+ if (desc && (!getOnly || desc.get)) return desc;
419
+ obj = Object.getPrototypeOf(obj);
420
+ }
421
+ return void 0;
422
+ }
423
+
413
424
  // src/utils/es2022-rewire-class-members.ts
414
425
  var reWireGetterSetter = (instance, hostRef) => {
415
- var _a;
426
+ var _a2;
416
427
  const cmpMeta = hostRef.$cmpMeta$;
417
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
428
+ const members = Object.entries((_a2 = cmpMeta.$members$) != null ? _a2 : {});
418
429
  members.map(([memberName, [memberFlags]]) => {
419
430
  if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
420
431
  const ogValue = instance[memberName];
421
- const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
432
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
422
433
  if (ogDescriptor) {
423
434
  Object.defineProperty(instance, memberName, {
424
435
  get() {
@@ -431,18 +442,14 @@ var reWireGetterSetter = (instance, hostRef) => {
431
442
  enumerable: true
432
443
  });
433
444
  }
434
- instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
445
+ if (hostRef.$instanceValues$.has(memberName)) {
446
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
447
+ } else if (ogValue !== void 0) {
448
+ instance[memberName] = ogValue;
449
+ }
435
450
  }
436
451
  });
437
452
  };
438
- function getPropertyDescriptor(obj, memberName) {
439
- while (obj) {
440
- const desc = Object.getOwnPropertyDescriptor(obj, memberName);
441
- if (desc == null ? void 0 : desc.get) return desc;
442
- obj = Object.getPrototypeOf(obj);
443
- }
444
- return void 0;
445
- }
446
453
 
447
454
  // src/runtime/asset-path.ts
448
455
  var getAssetPath = (path2) => {
@@ -475,10 +482,10 @@ function createStyleSheetIfNeededAndSupported(styles2) {
475
482
  // src/utils/shadow-root.ts
476
483
  var globalStyleSheet;
477
484
  function createShadowRoot(cmpMeta) {
478
- var _a;
485
+ var _a2;
479
486
  const opts = { mode: "open" };
480
487
  const shadowRoot = this.attachShadow(opts);
481
- if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
488
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a2 = createStyleSheetIfNeededAndSupported()) != null ? _a2 : null;
482
489
  if (globalStyleSheet) {
483
490
  {
484
491
  shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
@@ -614,8 +621,8 @@ function dispatchSlotChangeEvent(elm) {
614
621
  elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
615
622
  }
616
623
  function findSlotFromSlottedNode(slottedNode, parentHost) {
617
- var _a;
618
- parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
624
+ var _a2;
625
+ parentHost = parentHost || ((_a2 = slottedNode["s-ol"]) == null ? void 0 : _a2.parentElement);
619
626
  if (!parentHost) return { slotNode: null, slotName: "" };
620
627
  const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
621
628
  const childNodes = internalCall(parentHost, "childNodes");
@@ -649,8 +656,8 @@ var uniqueTime = (key, measureText) => {
649
656
 
650
657
  // src/utils/query-nonce-meta-tag-content.ts
651
658
  function queryNonceMetaTagContent(doc) {
652
- var _a, _b, _c;
653
- return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
659
+ var _a2, _b, _c;
660
+ return (_c = (_b = (_a2 = doc.head) == null ? void 0 : _a2.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
654
661
  }
655
662
 
656
663
  // src/runtime/styles.ts
@@ -663,7 +670,7 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
663
670
  styles.set(scopeId2, style);
664
671
  };
665
672
  var addStyle = (styleContainerNode, cmpMeta, mode) => {
666
- var _a;
673
+ var _a2;
667
674
  const scopeId2 = getScopeId(cmpMeta);
668
675
  const style = styles.get(scopeId2);
669
676
  if (!win.document) {
@@ -684,7 +691,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
684
691
  } else if (!appliedStyles.has(scopeId2)) {
685
692
  styleElm = win.document.createElement("style");
686
693
  styleElm.textContent = style;
687
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
694
+ const nonce = (_a2 = plt.$nonce$) != null ? _a2 : queryNonceMetaTagContent(win.document);
688
695
  if (nonce != null) {
689
696
  styleElm.setAttribute("nonce", nonce);
690
697
  }
@@ -702,7 +709,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
702
709
  } else if ("host" in styleContainerNode) {
703
710
  {
704
711
  const existingStyleContainer = styleContainerNode.querySelector("style");
705
- if (existingStyleContainer) {
712
+ if (existingStyleContainer && true) {
706
713
  existingStyleContainer.textContent = style + existingStyleContainer.textContent;
707
714
  } else {
708
715
  styleContainerNode.prepend(styleElm);
@@ -868,7 +875,7 @@ var convertToPrivate = (node) => {
868
875
 
869
876
  // src/runtime/client-hydrate.ts
870
877
  var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
871
- var _a, _b, _c, _d;
878
+ var _a2, _b, _c, _d;
872
879
  const endHydrate = createTime("hydrateClient", tagName);
873
880
  const shadowRoot = hostElm.shadowRoot;
874
881
  const childRenderNodes = [];
@@ -905,7 +912,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
905
912
  if (childRenderNode.$tag$ === "slot") {
906
913
  node["s-cr"] = hostElm["s-cr"];
907
914
  }
908
- } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
915
+ } else if (((_a2 = childRenderNode.$tag$) == null ? void 0 : _a2.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
909
916
  const cmpMeta = getHostRef(childRenderNode.$elm$);
910
917
  if (cmpMeta) {
911
918
  const scopeId3 = getScopeId(
@@ -1237,10 +1244,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
1237
1244
  parentVNode.$children$[childVNode.$index$] = childVNode;
1238
1245
  }
1239
1246
  var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1240
- var _a, _b;
1247
+ var _a2, _b;
1241
1248
  let slottedNode = slotNode.nextSibling;
1242
1249
  slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1243
- if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1250
+ if (!slottedNode || ((_a2 = slottedNode.nodeValue) == null ? void 0 : _a2.startsWith(SLOT_NODE_ID + "."))) return;
1244
1251
  do {
1245
1252
  if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
1246
1253
  slottedNode["s-sn"] = slotName;
@@ -1661,7 +1668,7 @@ var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
1661
1668
  });
1662
1669
  }
1663
1670
  scoped.slottedSelectors.forEach((slottedSelector) => {
1664
- const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector), "g");
1671
+ const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector) + "(?=\\s*[,{]|$)", "g");
1665
1672
  cssText = cssText.replace(regex, slottedSelector.updatedSelector);
1666
1673
  });
1667
1674
  cssText = expandPartSelectors(cssText);
@@ -1794,8 +1801,8 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1794
1801
  return propValue;
1795
1802
  };
1796
1803
  var getElement = (ref) => {
1797
- var _a;
1798
- return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
1804
+ var _a2;
1805
+ return (_a2 = getHostRef(ref)) == null ? void 0 : _a2.$hostElement$ ;
1799
1806
  };
1800
1807
 
1801
1808
  // src/runtime/event-emitter.ts
@@ -1878,6 +1885,36 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1878
1885
  plt.ael(elm, memberName, newValue, capture);
1879
1886
  }
1880
1887
  }
1888
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
1889
+ const propName = memberName.slice(5);
1890
+ let attrName;
1891
+ {
1892
+ const hostRef = getHostRef(elm);
1893
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
1894
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
1895
+ if (memberMeta && memberMeta[1]) {
1896
+ attrName = memberMeta[1];
1897
+ }
1898
+ }
1899
+ }
1900
+ if (!attrName) {
1901
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1902
+ }
1903
+ if (newValue == null || newValue === false) {
1904
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
1905
+ elm.removeAttribute(attrName);
1906
+ }
1907
+ } else {
1908
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
1909
+ }
1910
+ return;
1911
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
1912
+ const propName = memberName.slice(5);
1913
+ try {
1914
+ elm[propName] = newValue;
1915
+ } catch (e) {
1916
+ }
1917
+ return;
1881
1918
  } else {
1882
1919
  const isComplex = isComplexType(newValue);
1883
1920
  if ((isProp || isComplex && newValue !== null) && !isSvg) {
@@ -1886,7 +1923,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1886
1923
  const n = newValue == null ? "" : newValue;
1887
1924
  if (memberName === "list") {
1888
1925
  isProp = false;
1889
- } else if (oldValue == null || elm[memberName] != n) {
1926
+ } else if (oldValue == null || elm[memberName] !== n) {
1890
1927
  if (typeof elm.__lookupSetter__(memberName) === "function") {
1891
1928
  elm[memberName] = n;
1892
1929
  } else {
@@ -1979,7 +2016,7 @@ var isSvgMode = false;
1979
2016
  var refCallbacksToRemove = [];
1980
2017
  var refCallbacksToAttach = [];
1981
2018
  var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1982
- var _a;
2019
+ var _a2;
1983
2020
  const newVNode2 = newParentVNode.$children$[childIndex];
1984
2021
  let i2 = 0;
1985
2022
  let elm;
@@ -2050,7 +2087,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
2050
2087
  elm["s-sr"] = true;
2051
2088
  elm["s-cr"] = contentRef;
2052
2089
  elm["s-sn"] = newVNode2.$name$ || "";
2053
- elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
2090
+ elm["s-rf"] = (_a2 = newVNode2.$attrs$) == null ? void 0 : _a2.ref;
2054
2091
  patchSlotNode(elm);
2055
2092
  oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
2056
2093
  if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
@@ -2390,12 +2427,12 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
2390
2427
  }
2391
2428
  };
2392
2429
  function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
2393
- var _a, _b;
2430
+ var _a2, _b;
2394
2431
  let scopeId2;
2395
2432
  if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
2396
2433
  const scopeName = slotNode["s-sn"];
2397
2434
  const hostName = slotNode["s-hn"];
2398
- (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
2435
+ (_a2 = newParent.classList) == null ? void 0 : _a2.add(scopeId2 + "-s");
2399
2436
  if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
2400
2437
  let child = (oldParent.__childNodes || oldParent.childNodes)[0];
2401
2438
  let found = false;
@@ -2411,7 +2448,7 @@ function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
2411
2448
  }
2412
2449
  }
2413
2450
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2414
- var _a, _d, _e;
2451
+ var _a2, _d, _e;
2415
2452
  const hostElm = hostRef.$hostElement$;
2416
2453
  const cmpMeta = hostRef.$cmpMeta$;
2417
2454
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -2459,7 +2496,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2459
2496
  const nodeToRelocate = relocateData.$nodeToRelocate$;
2460
2497
  const slotRefNode = relocateData.$slotRefNode$;
2461
2498
  if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
2462
- nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
2499
+ nodeToRelocate["s-ih"] = (_a2 = nodeToRelocate.hidden) != null ? _a2 : false;
2463
2500
  }
2464
2501
  if (slotRefNode) {
2465
2502
  const parentNodeRef = slotRefNode.parentNode;
@@ -2519,14 +2556,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2519
2556
  flushQueuedRefCallbacks();
2520
2557
  };
2521
2558
  var slotReferenceDebugNode = (slotVNode) => {
2522
- var _a;
2523
- return (_a = win.document) == null ? void 0 : _a.createComment(
2559
+ var _a2;
2560
+ return (_a2 = win.document) == null ? void 0 : _a2.createComment(
2524
2561
  `<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
2525
2562
  );
2526
2563
  };
2527
2564
  var originalLocationDebugNode = (nodeToRelocate) => {
2528
- var _a;
2529
- return (_a = win.document) == null ? void 0 : _a.createComment(
2565
+ var _a2;
2566
+ return (_a2 = win.document) == null ? void 0 : _a2.createComment(
2530
2567
  `org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
2531
2568
  );
2532
2569
  };
@@ -2596,7 +2633,7 @@ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then
2596
2633
  }) : fn();
2597
2634
  var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
2598
2635
  var updateComponent = async (hostRef, instance, isInitialLoad) => {
2599
- var _a;
2636
+ var _a2;
2600
2637
  const elm = hostRef.$hostElement$;
2601
2638
  const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
2602
2639
  const rc = elm["s-rc"];
@@ -2628,12 +2665,12 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
2628
2665
  endRender();
2629
2666
  endUpdate();
2630
2667
  {
2631
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
2668
+ const childrenPromises = (_a2 = elm["s-p"]) != null ? _a2 : [];
2632
2669
  const postUpdate = () => postUpdateComponent(hostRef);
2633
2670
  if (childrenPromises.length === 0) {
2634
2671
  postUpdate();
2635
2672
  } else {
2636
- Promise.all(childrenPromises).then(postUpdate);
2673
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
2637
2674
  hostRef.$flags$ |= 4 /* isWaitingForChildren */;
2638
2675
  childrenPromises.length = 0;
2639
2676
  }
@@ -2699,13 +2736,13 @@ var postUpdateComponent = (hostRef) => {
2699
2736
  }
2700
2737
  };
2701
2738
  var appDidLoad = (who) => {
2702
- var _a;
2739
+ var _a2;
2703
2740
  if (BUILD.asyncQueue) {
2704
2741
  plt.$flags$ |= 2 /* appLoaded */;
2705
2742
  }
2706
2743
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
2707
2744
  {
2708
- if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
2745
+ if ((_a2 = plt.$orgLocNodes$) == null ? void 0 : _a2.size) {
2709
2746
  plt.$orgLocNodes$.clear();
2710
2747
  }
2711
2748
  }
@@ -2721,8 +2758,8 @@ var safeCall = (instance, method, arg, elm) => {
2721
2758
  return void 0;
2722
2759
  };
2723
2760
  var addHydratedFlag = (elm) => {
2724
- var _a;
2725
- return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
2761
+ var _a2;
2762
+ return elm.classList.add((_a2 = BUILD.hydratedSelectorName) != null ? _a2 : "hydrated") ;
2726
2763
  };
2727
2764
  var serverSideConnected = (elm) => {
2728
2765
  const children = elm.children;
@@ -2781,20 +2818,23 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
2781
2818
  });
2782
2819
  }
2783
2820
  }
2784
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
2821
+ if (flags & 2 /* hasRendered */) {
2785
2822
  if (instance.componentShouldUpdate) {
2786
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
2823
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
2824
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
2787
2825
  return;
2788
2826
  }
2789
2827
  }
2790
- scheduleUpdate(hostRef, false);
2828
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
2829
+ scheduleUpdate(hostRef, false);
2830
+ }
2791
2831
  }
2792
2832
  }
2793
2833
  };
2794
2834
 
2795
2835
  // src/runtime/proxy-component.ts
2796
2836
  var proxyComponent = (Cstr, cmpMeta, flags) => {
2797
- var _a;
2837
+ var _a2;
2798
2838
  const prototype = Cstr.prototype;
2799
2839
  {
2800
2840
  {
@@ -2808,10 +2848,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
2808
2848
  cmpMeta.$serializers$ = Cstr.serializers;
2809
2849
  }
2810
2850
  }
2811
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2851
+ const members = Object.entries((_a2 = cmpMeta.$members$) != null ? _a2 : {});
2812
2852
  members.map(([memberName, [memberFlags]]) => {
2813
2853
  if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
2814
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
2854
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
2815
2855
  if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
2816
2856
  if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
2817
2857
  if (!origGetter) {
@@ -2868,83 +2908,94 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
2868
2908
  // src/runtime/initialize-component.ts
2869
2909
  var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2870
2910
  let Cstr;
2871
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2872
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2873
- const bundleId = cmpMeta.$lazyBundleId$;
2874
- if (bundleId) {
2875
- const CstrImport = loadModule(cmpMeta);
2876
- if (CstrImport && "then" in CstrImport) {
2877
- const endLoad = uniqueTime();
2878
- Cstr = await CstrImport;
2879
- endLoad();
2880
- } else {
2881
- Cstr = CstrImport;
2882
- }
2883
- if (!Cstr) {
2884
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2885
- }
2886
- if (!Cstr.isProxied) {
2911
+ try {
2912
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2913
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2914
+ const bundleId = cmpMeta.$lazyBundleId$;
2915
+ if (bundleId) {
2916
+ const CstrImport = loadModule(cmpMeta);
2917
+ if (CstrImport && "then" in CstrImport) {
2918
+ const endLoad = uniqueTime();
2919
+ Cstr = await CstrImport;
2920
+ endLoad();
2921
+ } else {
2922
+ Cstr = CstrImport;
2923
+ }
2924
+ if (!Cstr) {
2925
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2926
+ }
2927
+ if (!Cstr.isProxied) {
2928
+ {
2929
+ cmpMeta.$watchers$ = Cstr.watchers;
2930
+ cmpMeta.$serializers$ = Cstr.serializers;
2931
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2932
+ }
2933
+ proxyComponent(Cstr, cmpMeta);
2934
+ Cstr.isProxied = true;
2935
+ }
2936
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
2887
2937
  {
2888
- cmpMeta.$watchers$ = Cstr.watchers;
2889
- cmpMeta.$serializers$ = Cstr.serializers;
2890
- cmpMeta.$deserializers$ = Cstr.deserializers;
2938
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
2939
+ }
2940
+ try {
2941
+ new Cstr(hostRef);
2942
+ } catch (e) {
2943
+ consoleError(e, elm);
2891
2944
  }
2892
- proxyComponent(Cstr, cmpMeta);
2893
- Cstr.isProxied = true;
2894
- }
2895
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
2896
- {
2897
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
2898
- }
2899
- try {
2900
- new Cstr(hostRef);
2901
- } catch (e) {
2902
- consoleError(e, elm);
2903
- }
2904
- {
2905
- hostRef.$flags$ &= -9 /* isConstructingInstance */;
2906
- }
2907
- {
2908
- hostRef.$flags$ |= 128 /* isWatchReady */;
2909
- }
2910
- endNewInstance();
2911
- const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
2912
- if (!needsDeferredCallback) {
2913
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
2914
- } else {
2915
- hostRef.$deferredConnectedCallback$ = true;
2916
- }
2917
- } else {
2918
- Cstr = elm.constructor;
2919
- const cmpTag = elm.localName;
2920
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2921
- }
2922
- if (Cstr && Cstr.style) {
2923
- let style;
2924
- if (typeof Cstr.style === "string") {
2925
- style = Cstr.style;
2926
- }
2927
- const scopeId2 = getScopeId(cmpMeta);
2928
- if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
2929
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2930
2945
  {
2931
- if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {
2932
- style = scopeCss(style, scopeId2);
2933
- } else if (needsScopedSSR()) {
2934
- style = expandPartSelectors(style);
2946
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
2947
+ }
2948
+ {
2949
+ hostRef.$flags$ |= 128 /* isWatchReady */;
2950
+ }
2951
+ endNewInstance();
2952
+ const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
2953
+ if (!needsDeferredCallback) {
2954
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2955
+ } else {
2956
+ hostRef.$deferredConnectedCallback$ = true;
2957
+ }
2958
+ } else {
2959
+ Cstr = elm.constructor;
2960
+ const cmpTag = elm.localName;
2961
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2962
+ }
2963
+ if (Cstr && Cstr.style) {
2964
+ let style;
2965
+ if (typeof Cstr.style === "string") {
2966
+ style = Cstr.style;
2967
+ }
2968
+ const scopeId2 = getScopeId(cmpMeta);
2969
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
2970
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2971
+ {
2972
+ if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {
2973
+ style = scopeCss(style, scopeId2);
2974
+ } else if (needsScopedSSR()) {
2975
+ style = expandPartSelectors(style);
2976
+ }
2935
2977
  }
2978
+ registerStyle(scopeId2, style);
2979
+ endRegisterStyles();
2936
2980
  }
2937
- registerStyle(scopeId2, style);
2938
- endRegisterStyles();
2939
2981
  }
2940
2982
  }
2941
- }
2942
- const ancestorComponent = hostRef.$ancestorComponent$;
2943
- const schedule = () => scheduleUpdate(hostRef, true);
2944
- if (ancestorComponent && ancestorComponent["s-rc"]) {
2945
- ancestorComponent["s-rc"].push(schedule);
2946
- } else {
2947
- schedule();
2983
+ const ancestorComponent = hostRef.$ancestorComponent$;
2984
+ const schedule = () => scheduleUpdate(hostRef, true);
2985
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
2986
+ ancestorComponent["s-rc"].push(schedule);
2987
+ } else {
2988
+ schedule();
2989
+ }
2990
+ } catch (e) {
2991
+ consoleError(e, elm);
2992
+ if (hostRef.$onRenderResolve$) {
2993
+ hostRef.$onRenderResolve$();
2994
+ hostRef.$onRenderResolve$ = void 0;
2995
+ }
2996
+ if (hostRef.$onReadyResolve$) {
2997
+ hostRef.$onReadyResolve$(elm);
2998
+ }
2948
2999
  }
2949
3000
  };
2950
3001
  var fireConnectedCallback = (instance, elm) => {
@@ -3026,7 +3077,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
3026
3077
  const orgLocationNodes = [];
3027
3078
  parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);
3028
3079
  orgLocationNodes.forEach((orgLocationNode) => {
3029
- var _a;
3080
+ var _a2;
3030
3081
  if (orgLocationNode != null && orgLocationNode["s-nr"]) {
3031
3082
  const nodeRef = orgLocationNode["s-nr"];
3032
3083
  let hostId = nodeRef["s-host-id"];
@@ -3044,7 +3095,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
3044
3095
  }
3045
3096
  } else if (nodeRef.nodeType === 3 /* TextNode */) {
3046
3097
  if (hostId === 0) {
3047
- const textContent = (_a = nodeRef.nodeValue) == null ? void 0 : _a.trim();
3098
+ const textContent = (_a2 = nodeRef.nodeValue) == null ? void 0 : _a2.trim();
3048
3099
  if (textContent === "") {
3049
3100
  orgLocationNode.remove();
3050
3101
  return;
@@ -3074,7 +3125,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
3074
3125
  }
3075
3126
  };
3076
3127
  var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
3077
- var _a;
3128
+ var _a2;
3078
3129
  if (node == null) {
3079
3130
  return;
3080
3131
  }
@@ -3082,7 +3133,7 @@ var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
3082
3133
  orgLocationNodes.push(node);
3083
3134
  }
3084
3135
  if (node.nodeType === 1 /* ElementNode */) {
3085
- const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a = node.shadowRoot) == null ? void 0 : _a.childNodes) || [])];
3136
+ const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a2 = node.shadowRoot) == null ? void 0 : _a2.childNodes) || [])];
3086
3137
  childNodes.forEach((childNode) => {
3087
3138
  const hostRef = getHostRef(childNode);
3088
3139
  if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
@@ -3308,8 +3359,35 @@ var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
3308
3359
  };
3309
3360
 
3310
3361
  // node_modules/minimatch/dist/esm/ast.js
3362
+ var _a;
3311
3363
  var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
3312
3364
  var isExtglobType = (c) => types.has(c);
3365
+ var isExtglobAST = (c) => isExtglobType(c.type);
3366
+ var adoptionMap = /* @__PURE__ */ new Map([
3367
+ ["!", ["@"]],
3368
+ ["?", ["?", "@"]],
3369
+ ["@", ["@"]],
3370
+ ["*", ["*", "+", "?", "@"]],
3371
+ ["+", ["+", "@"]]
3372
+ ]);
3373
+ var adoptionWithSpaceMap = /* @__PURE__ */ new Map([
3374
+ ["!", ["?"]],
3375
+ ["@", ["?"]],
3376
+ ["+", ["?", "*"]]
3377
+ ]);
3378
+ var adoptionAnyMap = /* @__PURE__ */ new Map([
3379
+ ["!", ["?", "@"]],
3380
+ ["?", ["?", "@"]],
3381
+ ["@", ["?", "@"]],
3382
+ ["*", ["*", "+", "?", "@"]],
3383
+ ["+", ["+", "@", "?", "*"]]
3384
+ ]);
3385
+ var usurpMap = /* @__PURE__ */ new Map([
3386
+ ["!", /* @__PURE__ */ new Map([["!", "@"]])],
3387
+ ["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
3388
+ ["@", /* @__PURE__ */ new Map([["!", "!"], ["?", "?"], ["@", "@"], ["*", "*"], ["+", "+"]])],
3389
+ ["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
3390
+ ]);
3313
3391
  var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
3314
3392
  var startNoDot = "(?!\\.)";
3315
3393
  var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
@@ -3319,8 +3397,8 @@ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
3319
3397
  var qmark = "[^/]";
3320
3398
  var star = qmark + "*?";
3321
3399
  var starNoEmpty = qmark + "+?";
3322
- var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
3323
- var _AST = class _AST {
3400
+ var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, canAdoptWithSpace_fn, canAdopt_fn, canAdoptType_fn, adoptWithSpace_fn, adopt_fn, canUsurpType_fn, canUsurp_fn, usurp_fn, flatten_fn, partsToRegExp_fn, parseGlob_fn;
3401
+ var AST = class {
3324
3402
  constructor(type, parent, options = {}) {
3325
3403
  __privateAdd(this, _AST_instances);
3326
3404
  __publicField(this, "type");
@@ -3373,44 +3451,44 @@ var _AST = class _AST {
3373
3451
  for (const p of parts) {
3374
3452
  if (p === "")
3375
3453
  continue;
3376
- if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
3454
+ if (typeof p !== "string" && !(p instanceof _a && __privateGet(p, _parent) === this)) {
3377
3455
  throw new Error("invalid part: " + p);
3378
3456
  }
3379
3457
  __privateGet(this, _parts).push(p);
3380
3458
  }
3381
3459
  }
3382
3460
  toJSON() {
3383
- var _a;
3461
+ var _a2;
3384
3462
  const ret = this.type === null ? __privateGet(this, _parts).slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...__privateGet(this, _parts).map((p) => p.toJSON())];
3385
3463
  if (this.isStart() && !this.type)
3386
3464
  ret.unshift([]);
3387
- if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")) {
3465
+ if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")) {
3388
3466
  ret.push({});
3389
3467
  }
3390
3468
  return ret;
3391
3469
  }
3392
3470
  isStart() {
3393
- var _a;
3471
+ var _a2;
3394
3472
  if (__privateGet(this, _root) === this)
3395
3473
  return true;
3396
- if (!((_a = __privateGet(this, _parent)) == null ? void 0 : _a.isStart()))
3474
+ if (!((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.isStart()))
3397
3475
  return false;
3398
3476
  if (__privateGet(this, _parentIndex) === 0)
3399
3477
  return true;
3400
3478
  const p = __privateGet(this, _parent);
3401
3479
  for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
3402
3480
  const pp = __privateGet(p, _parts)[i2];
3403
- if (!(pp instanceof _AST && pp.type === "!")) {
3481
+ if (!(pp instanceof _a && pp.type === "!")) {
3404
3482
  return false;
3405
3483
  }
3406
3484
  }
3407
3485
  return true;
3408
3486
  }
3409
3487
  isEnd() {
3410
- var _a, _b, _c;
3488
+ var _a2, _b, _c;
3411
3489
  if (__privateGet(this, _root) === this)
3412
3490
  return true;
3413
- if (((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")
3491
+ if (((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")
3414
3492
  return true;
3415
3493
  if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
3416
3494
  return false;
@@ -3426,16 +3504,16 @@ var _AST = class _AST {
3426
3504
  this.push(part.clone(this));
3427
3505
  }
3428
3506
  clone(parent) {
3429
- const c = new _AST(this.type, parent);
3507
+ const c = new _a(this.type, parent);
3430
3508
  for (const p of __privateGet(this, _parts)) {
3431
3509
  c.copyIn(p);
3432
3510
  }
3433
3511
  return c;
3434
3512
  }
3435
3513
  static fromGlob(pattern, options = {}) {
3436
- var _a;
3437
- const ast = new _AST(null, void 0, options);
3438
- __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, pattern, ast, 0, options);
3514
+ var _a2;
3515
+ const ast = new _a(null, void 0, options);
3516
+ __privateMethod(_a2 = _a, _AST_static, parseAST_fn).call(_a2, pattern, ast, 0, options, 0);
3439
3517
  return ast;
3440
3518
  }
3441
3519
  // returns the regular expression if there's magic, or the unescaped
@@ -3528,15 +3606,17 @@ var _AST = class _AST {
3528
3606
  // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
3529
3607
  // or start or whatever) and prepend ^ or / at the Regexp construction.
3530
3608
  toRegExpSource(allowDot) {
3531
- var _a;
3609
+ var _a2;
3532
3610
  const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
3533
- if (__privateGet(this, _root) === this)
3611
+ if (__privateGet(this, _root) === this) {
3612
+ __privateMethod(this, _AST_instances, flatten_fn).call(this);
3534
3613
  __privateMethod(this, _AST_instances, fillNegs_fn).call(this);
3535
- if (!this.type) {
3614
+ }
3615
+ if (!isExtglobAST(this)) {
3536
3616
  const noEmpty = this.isStart() && this.isEnd();
3537
3617
  const src = __privateGet(this, _parts).map((p) => {
3538
- var _a2;
3539
- const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a2 = _AST, _AST_static, parseGlob_fn).call(_a2, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
3618
+ var _a3;
3619
+ const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a3 = _a, _AST_static, parseGlob_fn).call(_a3, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
3540
3620
  __privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
3541
3621
  __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
3542
3622
  return re;
@@ -3559,7 +3639,7 @@ var _AST = class _AST {
3559
3639
  }
3560
3640
  }
3561
3641
  let end = "";
3562
- if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!") {
3642
+ if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!") {
3563
3643
  end = "(?:$|\\/)";
3564
3644
  }
3565
3645
  const final2 = start2 + src + end;
@@ -3575,12 +3655,13 @@ var _AST = class _AST {
3575
3655
  let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
3576
3656
  if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
3577
3657
  const s = this.toString();
3578
- __privateSet(this, _parts, [s]);
3579
- this.type = null;
3580
- __privateSet(this, _hasMagic, void 0);
3658
+ const me = this;
3659
+ __privateSet(me, _parts, [s]);
3660
+ me.type = null;
3661
+ __privateSet(me, _hasMagic, void 0);
3581
3662
  return [s, unescape(this.toString()), false, false];
3582
3663
  }
3583
- let bodyDotAllowed = !repeated || allowDot || dot || false ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
3664
+ let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
3584
3665
  if (bodyDotAllowed === body) {
3585
3666
  bodyDotAllowed = "";
3586
3667
  }
@@ -3646,8 +3727,9 @@ fillNegs_fn = function() {
3646
3727
  return this;
3647
3728
  };
3648
3729
  _AST_static = new WeakSet();
3649
- parseAST_fn = function(str, ast, pos, opt) {
3650
- var _a, _b;
3730
+ parseAST_fn = function(str, ast, pos, opt, extDepth) {
3731
+ var _a2, _b, _c, _d, _e;
3732
+ const maxDepth = (_a2 = opt.maxExtglobRecursion) != null ? _a2 : 2;
3651
3733
  let escaping = false;
3652
3734
  let inBrace = false;
3653
3735
  let braceStart = -1;
@@ -3679,11 +3761,12 @@ parseAST_fn = function(str, ast, pos, opt) {
3679
3761
  acc2 += c;
3680
3762
  continue;
3681
3763
  }
3682
- if (!opt.noext && isExtglobType(c) && str.charAt(i3) === "(") {
3764
+ const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i3) === "(" && extDepth <= maxDepth;
3765
+ if (doRecurse) {
3683
3766
  ast.push(acc2);
3684
3767
  acc2 = "";
3685
- const ext2 = new _AST(c, ast);
3686
- i3 = __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, str, ext2, i3, opt);
3768
+ const ext2 = new _a(c, ast);
3769
+ i3 = __privateMethod(_b = _a, _AST_static, parseAST_fn).call(_b, str, ext2, i3, opt, extDepth + 1);
3687
3770
  ast.push(ext2);
3688
3771
  continue;
3689
3772
  }
@@ -3693,7 +3776,7 @@ parseAST_fn = function(str, ast, pos, opt) {
3693
3776
  return i3;
3694
3777
  }
3695
3778
  let i2 = pos + 1;
3696
- let part = new _AST(null, ast);
3779
+ let part = new _a(null, ast);
3697
3780
  const parts = [];
3698
3781
  let acc = "";
3699
3782
  while (i2 < str.length) {
@@ -3720,19 +3803,22 @@ parseAST_fn = function(str, ast, pos, opt) {
3720
3803
  acc += c;
3721
3804
  continue;
3722
3805
  }
3723
- if (isExtglobType(c) && str.charAt(i2) === "(") {
3806
+ const doRecurse = isExtglobType(c) && str.charAt(i2) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
3807
+ (extDepth <= maxDepth || ast && __privateMethod(_c = ast, _AST_instances, canAdoptType_fn).call(_c, c));
3808
+ if (doRecurse) {
3809
+ const depthAdd = ast && __privateMethod(_d = ast, _AST_instances, canAdoptType_fn).call(_d, c) ? 0 : 1;
3724
3810
  part.push(acc);
3725
3811
  acc = "";
3726
- const ext2 = new _AST(c, part);
3812
+ const ext2 = new _a(c, part);
3727
3813
  part.push(ext2);
3728
- i2 = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt);
3814
+ i2 = __privateMethod(_e = _a, _AST_static, parseAST_fn).call(_e, str, ext2, i2, opt, extDepth + depthAdd);
3729
3815
  continue;
3730
3816
  }
3731
3817
  if (c === "|") {
3732
3818
  part.push(acc);
3733
3819
  acc = "";
3734
3820
  parts.push(part);
3735
- part = new _AST(null, ast);
3821
+ part = new _a(null, ast);
3736
3822
  continue;
3737
3823
  }
3738
3824
  if (c === ")") {
@@ -3751,6 +3837,100 @@ parseAST_fn = function(str, ast, pos, opt) {
3751
3837
  __privateSet(ast, _parts, [str.substring(pos - 1)]);
3752
3838
  return i2;
3753
3839
  };
3840
+ canAdoptWithSpace_fn = function(child) {
3841
+ return __privateMethod(this, _AST_instances, canAdopt_fn).call(this, child, adoptionWithSpaceMap);
3842
+ };
3843
+ canAdopt_fn = function(child, map2 = adoptionMap) {
3844
+ if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null) {
3845
+ return false;
3846
+ }
3847
+ const gc = __privateGet(child, _parts)[0];
3848
+ if (!gc || typeof gc !== "object" || gc.type === null) {
3849
+ return false;
3850
+ }
3851
+ return __privateMethod(this, _AST_instances, canAdoptType_fn).call(this, gc.type, map2);
3852
+ };
3853
+ canAdoptType_fn = function(c, map2 = adoptionAnyMap) {
3854
+ var _a2;
3855
+ return !!((_a2 = map2.get(this.type)) == null ? void 0 : _a2.includes(c));
3856
+ };
3857
+ adoptWithSpace_fn = function(child, index) {
3858
+ const gc = __privateGet(child, _parts)[0];
3859
+ const blank = new _a(null, gc, this.options);
3860
+ __privateGet(blank, _parts).push("");
3861
+ gc.push(blank);
3862
+ __privateMethod(this, _AST_instances, adopt_fn).call(this, child, index);
3863
+ };
3864
+ adopt_fn = function(child, index) {
3865
+ const gc = __privateGet(child, _parts)[0];
3866
+ __privateGet(this, _parts).splice(index, 1, ...__privateGet(gc, _parts));
3867
+ for (const p of __privateGet(gc, _parts)) {
3868
+ if (typeof p === "object")
3869
+ __privateSet(p, _parent, this);
3870
+ }
3871
+ __privateSet(this, _toString, void 0);
3872
+ };
3873
+ canUsurpType_fn = function(c) {
3874
+ const m = usurpMap.get(this.type);
3875
+ return !!(m == null ? void 0 : m.has(c));
3876
+ };
3877
+ canUsurp_fn = function(child) {
3878
+ if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null || __privateGet(this, _parts).length !== 1) {
3879
+ return false;
3880
+ }
3881
+ const gc = __privateGet(child, _parts)[0];
3882
+ if (!gc || typeof gc !== "object" || gc.type === null) {
3883
+ return false;
3884
+ }
3885
+ return __privateMethod(this, _AST_instances, canUsurpType_fn).call(this, gc.type);
3886
+ };
3887
+ usurp_fn = function(child) {
3888
+ const m = usurpMap.get(this.type);
3889
+ const gc = __privateGet(child, _parts)[0];
3890
+ const nt = m == null ? void 0 : m.get(gc.type);
3891
+ if (!nt)
3892
+ return false;
3893
+ __privateSet(this, _parts, __privateGet(gc, _parts));
3894
+ for (const p of __privateGet(this, _parts)) {
3895
+ if (typeof p === "object")
3896
+ __privateSet(p, _parent, this);
3897
+ }
3898
+ this.type = nt;
3899
+ __privateSet(this, _toString, void 0);
3900
+ __privateSet(this, _emptyExt, false);
3901
+ };
3902
+ flatten_fn = function() {
3903
+ var _a2, _b;
3904
+ if (!isExtglobAST(this)) {
3905
+ for (const p of __privateGet(this, _parts)) {
3906
+ if (typeof p === "object")
3907
+ __privateMethod(_a2 = p, _AST_instances, flatten_fn).call(_a2);
3908
+ }
3909
+ } else {
3910
+ let iterations = 0;
3911
+ let done = false;
3912
+ do {
3913
+ done = true;
3914
+ for (let i2 = 0; i2 < __privateGet(this, _parts).length; i2++) {
3915
+ const c = __privateGet(this, _parts)[i2];
3916
+ if (typeof c === "object") {
3917
+ __privateMethod(_b = c, _AST_instances, flatten_fn).call(_b);
3918
+ if (__privateMethod(this, _AST_instances, canAdopt_fn).call(this, c)) {
3919
+ done = false;
3920
+ __privateMethod(this, _AST_instances, adopt_fn).call(this, c, i2);
3921
+ } else if (__privateMethod(this, _AST_instances, canAdoptWithSpace_fn).call(this, c)) {
3922
+ done = false;
3923
+ __privateMethod(this, _AST_instances, adoptWithSpace_fn).call(this, c, i2);
3924
+ } else if (__privateMethod(this, _AST_instances, canUsurp_fn).call(this, c)) {
3925
+ done = false;
3926
+ __privateMethod(this, _AST_instances, usurp_fn).call(this, c);
3927
+ }
3928
+ }
3929
+ }
3930
+ } while (!done && ++iterations < 10);
3931
+ }
3932
+ __privateSet(this, _toString, void 0);
3933
+ };
3754
3934
  partsToRegExp_fn = function(dot) {
3755
3935
  return __privateGet(this, _parts).map((p) => {
3756
3936
  if (typeof p === "string") {
@@ -3765,11 +3945,13 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
3765
3945
  let escaping = false;
3766
3946
  let re = "";
3767
3947
  let uflag = false;
3948
+ let inStar = false;
3768
3949
  for (let i2 = 0; i2 < glob.length; i2++) {
3769
3950
  const c = glob.charAt(i2);
3770
3951
  if (escaping) {
3771
3952
  escaping = false;
3772
3953
  re += (reSpecials.has(c) ? "\\" : "") + c;
3954
+ inStar = false;
3773
3955
  continue;
3774
3956
  }
3775
3957
  if (c === "\\") {
@@ -3787,16 +3969,19 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
3787
3969
  uflag = uflag || needUflag;
3788
3970
  i2 += consumed - 1;
3789
3971
  hasMagic = hasMagic || magic;
3972
+ inStar = false;
3790
3973
  continue;
3791
3974
  }
3792
3975
  }
3793
3976
  if (c === "*") {
3794
- if (noEmpty && glob === "*")
3795
- re += starNoEmpty;
3796
- else
3797
- re += star;
3977
+ if (inStar)
3978
+ continue;
3979
+ inStar = true;
3980
+ re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
3798
3981
  hasMagic = true;
3799
3982
  continue;
3983
+ } else {
3984
+ inStar = false;
3800
3985
  }
3801
3986
  if (c === "?") {
3802
3987
  re += qmark;
@@ -3807,8 +3992,8 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
3807
3992
  }
3808
3993
  return [re, unescape(glob), !!hasMagic, uflag];
3809
3994
  };
3810
- __privateAdd(_AST, _AST_static);
3811
- var AST = _AST;
3995
+ __privateAdd(AST, _AST_static);
3996
+ _a = AST;
3812
3997
 
3813
3998
  // node_modules/minimatch/dist/esm/escape.js
3814
3999
  var escape = (s, { windowsPathsNoEscape = false } = {}) => {
@@ -3947,28 +4132,33 @@ var match = (list, pattern, options = {}) => {
3947
4132
  minimatch.match = match;
3948
4133
  var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
3949
4134
  var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
4135
+ var _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn;
3950
4136
  var Minimatch = class {
3951
- options;
3952
- set;
3953
- pattern;
3954
- windowsPathsNoEscape;
3955
- nonegate;
3956
- negate;
3957
- comment;
3958
- empty;
3959
- preserveMultipleSlashes;
3960
- partial;
3961
- globSet;
3962
- globParts;
3963
- nocase;
3964
- isWindows;
3965
- platform;
3966
- windowsNoMagicRoot;
3967
- regexp;
3968
4137
  constructor(pattern, options = {}) {
4138
+ __privateAdd(this, _Minimatch_instances);
4139
+ __publicField(this, "options");
4140
+ __publicField(this, "set");
4141
+ __publicField(this, "pattern");
4142
+ __publicField(this, "windowsPathsNoEscape");
4143
+ __publicField(this, "nonegate");
4144
+ __publicField(this, "negate");
4145
+ __publicField(this, "comment");
4146
+ __publicField(this, "empty");
4147
+ __publicField(this, "preserveMultipleSlashes");
4148
+ __publicField(this, "partial");
4149
+ __publicField(this, "globSet");
4150
+ __publicField(this, "globParts");
4151
+ __publicField(this, "nocase");
4152
+ __publicField(this, "isWindows");
4153
+ __publicField(this, "platform");
4154
+ __publicField(this, "windowsNoMagicRoot");
4155
+ __publicField(this, "maxGlobstarRecursion");
4156
+ __publicField(this, "regexp");
4157
+ var _a2;
3969
4158
  assertValidPattern(pattern);
3970
4159
  options = options || {};
3971
4160
  this.options = options;
4161
+ this.maxGlobstarRecursion = (_a2 = options.maxGlobstarRecursion) != null ? _a2 : 200;
3972
4162
  this.pattern = pattern;
3973
4163
  this.platform = options.platform || defaultPlatform;
3974
4164
  this.isWindows = this.platform === "win32";
@@ -4236,10 +4426,11 @@ var Minimatch = class {
4236
4426
  for (let i2 = 0; i2 < globParts.length - 1; i2++) {
4237
4427
  for (let j = i2 + 1; j < globParts.length; j++) {
4238
4428
  const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
4239
- if (!matched)
4240
- continue;
4241
- globParts[i2] = matched;
4242
- globParts[j] = [];
4429
+ if (matched) {
4430
+ globParts[i2] = [];
4431
+ globParts[j] = matched;
4432
+ break;
4433
+ }
4243
4434
  }
4244
4435
  }
4245
4436
  return globParts.filter((gs) => gs.length);
@@ -4300,7 +4491,8 @@ var Minimatch = class {
4300
4491
  // out of pattern, then that's fine, as long as all
4301
4492
  // the parts match.
4302
4493
  matchOne(file, pattern, partial = false) {
4303
- const options = this.options;
4494
+ let fileStartIndex = 0;
4495
+ let patternStartIndex = 0;
4304
4496
  if (this.isWindows) {
4305
4497
  const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
4306
4498
  const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
@@ -4309,14 +4501,14 @@ var Minimatch = class {
4309
4501
  const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
4310
4502
  const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
4311
4503
  if (typeof fdi === "number" && typeof pdi === "number") {
4312
- const [fd, pd] = [file[fdi], pattern[pdi]];
4504
+ const [fd, pd] = [
4505
+ file[fdi],
4506
+ pattern[pdi]
4507
+ ];
4313
4508
  if (fd.toLowerCase() === pd.toLowerCase()) {
4314
4509
  pattern[pdi] = fd;
4315
- if (pdi > fdi) {
4316
- pattern = pattern.slice(pdi);
4317
- } else if (fdi > pdi) {
4318
- file = file.slice(fdi);
4319
- }
4510
+ patternStartIndex = pdi;
4511
+ fileStartIndex = fdi;
4320
4512
  }
4321
4513
  }
4322
4514
  }
@@ -4324,71 +4516,10 @@ var Minimatch = class {
4324
4516
  if (optimizationLevel >= 2) {
4325
4517
  file = this.levelTwoFileOptimize(file);
4326
4518
  }
4327
- this.debug("matchOne", this, { file, pattern });
4328
- this.debug("matchOne", file.length, pattern.length);
4329
- for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
4330
- this.debug("matchOne loop");
4331
- var p = pattern[pi];
4332
- var f = file[fi];
4333
- this.debug(pattern, p, f);
4334
- if (p === false) {
4335
- return false;
4336
- }
4337
- if (p === GLOBSTAR) {
4338
- this.debug("GLOBSTAR", [pattern, p, f]);
4339
- var fr = fi;
4340
- var pr = pi + 1;
4341
- if (pr === pl) {
4342
- this.debug("** at the end");
4343
- for (; fi < fl; fi++) {
4344
- if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
4345
- return false;
4346
- }
4347
- return true;
4348
- }
4349
- while (fr < fl) {
4350
- var swallowee = file[fr];
4351
- this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
4352
- if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
4353
- this.debug("globstar found match!", fr, fl, swallowee);
4354
- return true;
4355
- } else {
4356
- if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
4357
- this.debug("dot detected!", file, fr, pattern, pr);
4358
- break;
4359
- }
4360
- this.debug("globstar swallow a segment, and continue");
4361
- fr++;
4362
- }
4363
- }
4364
- if (partial) {
4365
- this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
4366
- if (fr === fl) {
4367
- return true;
4368
- }
4369
- }
4370
- return false;
4371
- }
4372
- let hit;
4373
- if (typeof p === "string") {
4374
- hit = f === p;
4375
- this.debug("string match", p, f, hit);
4376
- } else {
4377
- hit = p.test(f);
4378
- this.debug("pattern match", p, f, hit);
4379
- }
4380
- if (!hit)
4381
- return false;
4382
- }
4383
- if (fi === fl && pi === pl) {
4384
- return true;
4385
- } else if (fi === fl) {
4386
- return partial;
4387
- } else if (pi === pl) {
4388
- return fi === fl - 1 && file[fi] === "";
4389
- } else {
4390
- throw new Error("wtf?");
4519
+ if (pattern.includes(GLOBSTAR)) {
4520
+ return __privateMethod(this, _Minimatch_instances, matchGlobstar_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
4391
4521
  }
4522
+ return __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
4392
4523
  }
4393
4524
  braceExpand() {
4394
4525
  return braceExpand(this.pattern, this.options);
@@ -4527,6 +4658,135 @@ var Minimatch = class {
4527
4658
  return minimatch.defaults(def).Minimatch;
4528
4659
  }
4529
4660
  };
4661
+ _Minimatch_instances = new WeakSet();
4662
+ matchGlobstar_fn = function(file, pattern, partial, fileIndex, patternIndex) {
4663
+ const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
4664
+ const lastgs = pattern.lastIndexOf(GLOBSTAR);
4665
+ const [head, body, tail] = partial ? [
4666
+ pattern.slice(patternIndex, firstgs),
4667
+ pattern.slice(firstgs + 1),
4668
+ []
4669
+ ] : [
4670
+ pattern.slice(patternIndex, firstgs),
4671
+ pattern.slice(firstgs + 1, lastgs),
4672
+ pattern.slice(lastgs + 1)
4673
+ ];
4674
+ if (head.length) {
4675
+ const fileHead = file.slice(fileIndex, fileIndex + head.length);
4676
+ if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, fileHead, head, partial, 0, 0))
4677
+ return false;
4678
+ fileIndex += head.length;
4679
+ }
4680
+ let fileTailMatch = 0;
4681
+ if (tail.length) {
4682
+ if (tail.length + fileIndex > file.length)
4683
+ return false;
4684
+ let tailStart = file.length - tail.length;
4685
+ if (__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0)) {
4686
+ fileTailMatch = tail.length;
4687
+ } else {
4688
+ if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
4689
+ return false;
4690
+ }
4691
+ tailStart--;
4692
+ if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0))
4693
+ return false;
4694
+ fileTailMatch = tail.length + 1;
4695
+ }
4696
+ }
4697
+ if (!body.length) {
4698
+ let sawSome = !!fileTailMatch;
4699
+ for (let i3 = fileIndex; i3 < file.length - fileTailMatch; i3++) {
4700
+ const f = String(file[i3]);
4701
+ sawSome = true;
4702
+ if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
4703
+ return false;
4704
+ }
4705
+ }
4706
+ return partial || sawSome;
4707
+ }
4708
+ const bodySegments = [[[], 0]];
4709
+ let currentBody = bodySegments[0];
4710
+ let nonGsParts = 0;
4711
+ const nonGsPartsSums = [0];
4712
+ for (const b of body) {
4713
+ if (b === GLOBSTAR) {
4714
+ nonGsPartsSums.push(nonGsParts);
4715
+ currentBody = [[], 0];
4716
+ bodySegments.push(currentBody);
4717
+ } else {
4718
+ currentBody[0].push(b);
4719
+ nonGsParts++;
4720
+ }
4721
+ }
4722
+ let i2 = bodySegments.length - 1;
4723
+ const fileLength = file.length - fileTailMatch;
4724
+ for (const b of bodySegments) {
4725
+ b[1] = fileLength - (nonGsPartsSums[i2--] + b[0].length);
4726
+ }
4727
+ return !!__privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
4728
+ };
4729
+ matchGlobStarBodySections_fn = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
4730
+ const bs = bodySegments[bodyIndex];
4731
+ if (!bs) {
4732
+ for (let i2 = fileIndex; i2 < file.length; i2++) {
4733
+ sawTail = true;
4734
+ const f = file[i2];
4735
+ if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
4736
+ return false;
4737
+ }
4738
+ }
4739
+ return sawTail;
4740
+ }
4741
+ const [body, after] = bs;
4742
+ while (fileIndex <= after) {
4743
+ const m = __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
4744
+ if (m && globStarDepth < this.maxGlobstarRecursion) {
4745
+ const sub = __privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
4746
+ if (sub !== false)
4747
+ return sub;
4748
+ }
4749
+ const f = file[fileIndex];
4750
+ if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
4751
+ return false;
4752
+ }
4753
+ fileIndex++;
4754
+ }
4755
+ return partial || null;
4756
+ };
4757
+ matchOne_fn = function(file, pattern, partial, fileIndex, patternIndex) {
4758
+ let fi;
4759
+ let pi;
4760
+ let pl;
4761
+ let fl;
4762
+ for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
4763
+ this.debug("matchOne loop");
4764
+ let p = pattern[pi];
4765
+ let f = file[fi];
4766
+ this.debug(pattern, p, f);
4767
+ if (p === false || p === GLOBSTAR)
4768
+ return false;
4769
+ let hit;
4770
+ if (typeof p === "string") {
4771
+ hit = f === p;
4772
+ this.debug("string match", p, f, hit);
4773
+ } else {
4774
+ hit = p.test(f);
4775
+ this.debug("pattern match", p, f, hit);
4776
+ }
4777
+ if (!hit)
4778
+ return false;
4779
+ }
4780
+ if (fi === fl && pi === pl) {
4781
+ return true;
4782
+ } else if (fi === fl) {
4783
+ return partial;
4784
+ } else if (pi === pl) {
4785
+ return fi === fl - 1 && file[fi] === "";
4786
+ } else {
4787
+ throw new Error("wtf?");
4788
+ }
4789
+ };
4530
4790
  minimatch.AST = AST;
4531
4791
  minimatch.Minimatch = Minimatch;
4532
4792
  minimatch.escape = escape;
@@ -4600,7 +4860,7 @@ function proxyHostElement(elm, cstr) {
4600
4860
  const hostRef = getHostRef(elm);
4601
4861
  const members = Object.entries(cmpMeta.$members$);
4602
4862
  members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
4603
- var _a, _b;
4863
+ var _a2, _b;
4604
4864
  if (memberFlags & 31 /* Prop */) {
4605
4865
  const attributeName = metaAttributeName || memberName;
4606
4866
  const attrValue = elm.getAttribute(attributeName);
@@ -4608,7 +4868,7 @@ function proxyHostElement(elm, cstr) {
4608
4868
  let attrPropVal;
4609
4869
  const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(cstr.prototype, memberName) || {};
4610
4870
  if (attrValue != null) {
4611
- if ((_a = cmpMeta.$deserializers$) == null ? void 0 : _a[memberName]) {
4871
+ if ((_a2 = cmpMeta.$deserializers$) == null ? void 0 : _a2[memberName]) {
4612
4872
  for (const deserializer of cmpMeta.$deserializers$[memberName]) {
4613
4873
  const [[methodName]] = Object.entries(deserializer);
4614
4874
  attrPropVal = cstr.prototype[methodName](attrValue, memberName);
@@ -4641,8 +4901,8 @@ function proxyHostElement(elm, cstr) {
4641
4901
  Object.defineProperty(elm, memberName, getterSetterDescriptor);
4642
4902
  Object.defineProperty(elm, metaAttributeName, getterSetterDescriptor);
4643
4903
  hostRef.$fetchedCbList$.push(() => {
4644
- var _a2;
4645
- if (!((_a2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a2.has(memberName))) {
4904
+ var _a3;
4905
+ if (!((_a3 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a3.has(memberName))) {
4646
4906
  setValue(
4647
4907
  elm,
4648
4908
  memberName,
@@ -4655,11 +4915,11 @@ function proxyHostElement(elm, cstr) {
4655
4915
  } else if (memberFlags & 64 /* Method */) {
4656
4916
  Object.defineProperty(elm, memberName, {
4657
4917
  value(...args) {
4658
- var _a2;
4918
+ var _a3;
4659
4919
  const ref = getHostRef(this);
4660
- return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
4661
- var _a3;
4662
- return (_a3 = ref == null ? void 0 : ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
4920
+ return (_a3 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a3.then(() => {
4921
+ var _a4;
4922
+ return (_a4 = ref == null ? void 0 : ref.$lazyInstance$) == null ? void 0 : _a4[memberName](...args);
4663
4923
  }).catch((e) => {
4664
4924
  consoleError(e, this);
4665
4925
  });
@@ -4670,8 +4930,8 @@ function proxyHostElement(elm, cstr) {
4670
4930
  }
4671
4931
  }
4672
4932
  function componentOnReady() {
4673
- var _a;
4674
- return (_a = getHostRef(this)) == null ? void 0 : _a.$onReadyPromise$;
4933
+ var _a2;
4934
+ return (_a2 = getHostRef(this)) == null ? void 0 : _a2.$onReadyPromise$;
4675
4935
  }
4676
4936
  function forceUpdate2() {
4677
4937
  }
@@ -8664,7 +8924,7 @@ var NAMESPACE = (
8664
8924
  );
8665
8925
 
8666
8926
  /*
8667
- Stencil Hydrate Runner v4.41.3 | MIT Licensed | https://stenciljs.com
8927
+ Stencil Hydrate Runner v4.43.3 | MIT Licensed | https://stenciljs.com
8668
8928
  */
8669
8929
  var __create = Object.create;
8670
8930
  var __defProp = Object.defineProperty;
@@ -9995,11 +10255,11 @@ var fromCodePoint = (
9995
10255
  }
9996
10256
  );
9997
10257
  function replaceCodePoint(codePoint) {
9998
- var _a2;
10258
+ var _a3;
9999
10259
  if (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) {
10000
10260
  return 65533;
10001
10261
  }
10002
- return (_a2 = decodeMap.get(codePoint)) !== null && _a2 !== void 0 ? _a2 : codePoint;
10262
+ return (_a3 = decodeMap.get(codePoint)) !== null && _a3 !== void 0 ? _a3 : codePoint;
10003
10263
  }
10004
10264
 
10005
10265
  // node_modules/entities/lib/esm/decode.js
@@ -10196,9 +10456,9 @@ var EntityDecoder = class {
10196
10456
  * @returns The number of characters that were consumed.
10197
10457
  */
10198
10458
  emitNumericEntity(lastCp, expectedLength) {
10199
- var _a2;
10459
+ var _a3;
10200
10460
  if (this.consumed <= expectedLength) {
10201
- (_a2 = this.errors) === null || _a2 === void 0 ? void 0 : _a2.absenceOfDigitsInNumericCharacterReference(this.consumed);
10461
+ (_a3 = this.errors) === null || _a3 === void 0 ? void 0 : _a3.absenceOfDigitsInNumericCharacterReference(this.consumed);
10202
10462
  return 0;
10203
10463
  }
10204
10464
  if (lastCp === CharCodes.SEMI) {
@@ -10258,11 +10518,11 @@ var EntityDecoder = class {
10258
10518
  * @returns The number of characters consumed.
10259
10519
  */
10260
10520
  emitNotTerminatedNamedEntity() {
10261
- var _a2;
10521
+ var _a3;
10262
10522
  const { result, decodeTree } = this;
10263
10523
  const valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
10264
10524
  this.emitNamedEntityData(result, valueLength, this.consumed);
10265
- (_a2 = this.errors) === null || _a2 === void 0 ? void 0 : _a2.missingSemicolonAfterCharacterReference();
10525
+ (_a3 = this.errors) === null || _a3 === void 0 ? void 0 : _a3.missingSemicolonAfterCharacterReference();
10266
10526
  return this.consumed;
10267
10527
  }
10268
10528
  /**
@@ -10290,7 +10550,7 @@ var EntityDecoder = class {
10290
10550
  * @returns The number of characters consumed.
10291
10551
  */
10292
10552
  end() {
10293
- var _a2;
10553
+ var _a3;
10294
10554
  switch (this.state) {
10295
10555
  case EntityDecoderState.NamedEntity: {
10296
10556
  return this.result !== 0 && (this.decodeMode !== DecodingMode.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
@@ -10303,7 +10563,7 @@ var EntityDecoder = class {
10303
10563
  return this.emitNumericEntity(0, 3);
10304
10564
  }
10305
10565
  case EntityDecoderState.NumericStart: {
10306
- (_a2 = this.errors) === null || _a2 === void 0 ? void 0 : _a2.absenceOfDigitsInNumericCharacterReference(this.consumed);
10566
+ (_a3 = this.errors) === null || _a3 === void 0 ? void 0 : _a3.absenceOfDigitsInNumericCharacterReference(this.consumed);
10307
10567
  return 0;
10308
10568
  }
10309
10569
  case EntityDecoderState.EntityStart: {
@@ -10784,8 +11044,8 @@ var TAG_NAME_TO_ID = /* @__PURE__ */ new Map([
10784
11044
  [TAG_NAMES.XMP, TAG_ID.XMP]
10785
11045
  ]);
10786
11046
  function getTagID(tagName) {
10787
- var _a2;
10788
- return (_a2 = TAG_NAME_TO_ID.get(tagName)) !== null && _a2 !== void 0 ? _a2 : TAG_ID.UNKNOWN;
11047
+ var _a3;
11048
+ return (_a3 = TAG_NAME_TO_ID.get(tagName)) !== null && _a3 !== void 0 ? _a3 : TAG_ID.UNKNOWN;
10789
11049
  }
10790
11050
  var $ = TAG_ID;
10791
11051
  var SPECIAL_ELEMENTS = {
@@ -11052,8 +11312,8 @@ var Tokenizer = class {
11052
11312
  }
11053
11313
  //Errors
11054
11314
  _err(code, cpOffset = 0) {
11055
- var _a2, _b;
11056
- (_b = (_a2 = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a2, this.preprocessor.getError(code, cpOffset));
11315
+ var _a3, _b;
11316
+ (_b = (_a3 = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a3, this.preprocessor.getError(code, cpOffset));
11057
11317
  }
11058
11318
  // NOTE: `offset` may never run across line boundaries.
11059
11319
  getCurrentLocation(offset) {
@@ -11195,13 +11455,13 @@ var Tokenizer = class {
11195
11455
  this.currentLocation = this.getCurrentLocation(0);
11196
11456
  }
11197
11457
  _leaveAttrName() {
11198
- var _a2;
11458
+ var _a3;
11199
11459
  var _b;
11200
11460
  const token = this.currentToken;
11201
11461
  if (getTokenAttr(token, this.currentAttr.name) === null) {
11202
11462
  token.attrs.push(this.currentAttr);
11203
11463
  if (token.location && this.currentLocation) {
11204
- const attrLocations = (_a2 = (_b = token.location).attrs) !== null && _a2 !== void 0 ? _a2 : _b.attrs = /* @__PURE__ */ Object.create(null);
11464
+ const attrLocations = (_a3 = (_b = token.location).attrs) !== null && _a3 !== void 0 ? _a3 : _b.attrs = /* @__PURE__ */ Object.create(null);
11205
11465
  attrLocations[this.currentAttr.name] = this.currentLocation;
11206
11466
  this._leaveAttrValue();
11207
11467
  }
@@ -14549,10 +14809,10 @@ var Parser = class {
14549
14809
  //Errors
14550
14810
  /** @internal */
14551
14811
  _err(token, code, beforeToken) {
14552
- var _a2;
14812
+ var _a3;
14553
14813
  if (!this.onParseError)
14554
14814
  return;
14555
- const loc = (_a2 = token.location) !== null && _a2 !== void 0 ? _a2 : BASE_LOC;
14815
+ const loc = (_a3 = token.location) !== null && _a3 !== void 0 ? _a3 : BASE_LOC;
14556
14816
  const err2 = {
14557
14817
  code,
14558
14818
  startLine: loc.startLine,
@@ -14567,18 +14827,18 @@ var Parser = class {
14567
14827
  //Stack events
14568
14828
  /** @internal */
14569
14829
  onItemPush(node, tid, isTop) {
14570
- var _a2, _b;
14571
- (_b = (_a2 = this.treeAdapter).onItemPush) === null || _b === void 0 ? void 0 : _b.call(_a2, node);
14830
+ var _a3, _b;
14831
+ (_b = (_a3 = this.treeAdapter).onItemPush) === null || _b === void 0 ? void 0 : _b.call(_a3, node);
14572
14832
  if (isTop && this.openElements.stackTop > 0)
14573
14833
  this._setContextModes(node, tid);
14574
14834
  }
14575
14835
  /** @internal */
14576
14836
  onItemPop(node, isTop) {
14577
- var _a2, _b;
14837
+ var _a3, _b;
14578
14838
  if (this.options.sourceCodeLocationInfo) {
14579
14839
  this._setEndLocation(node, this.currentToken);
14580
14840
  }
14581
- (_b = (_a2 = this.treeAdapter).onItemPop) === null || _b === void 0 ? void 0 : _b.call(_a2, node, this.openElements.current);
14841
+ (_b = (_a3 = this.treeAdapter).onItemPop) === null || _b === void 0 ? void 0 : _b.call(_a3, node, this.openElements.current);
14582
14842
  if (isTop) {
14583
14843
  let current;
14584
14844
  let currentTagId;
@@ -16652,9 +16912,9 @@ function eofInBody(p, token) {
16652
16912
  }
16653
16913
  }
16654
16914
  function endTagInText(p, token) {
16655
- var _a2;
16915
+ var _a3;
16656
16916
  if (token.tagID === TAG_ID.SCRIPT) {
16657
- (_a2 = p.scriptHandler) === null || _a2 === void 0 ? void 0 : _a2.call(p, p.openElements.current);
16917
+ (_a3 = p.scriptHandler) === null || _a3 === void 0 ? void 0 : _a3.call(p, p.openElements.current);
16658
16918
  }
16659
16919
  p.openElements.pop();
16660
16920
  p.insertionMode = p.originalInsertionMode;
@@ -17316,7 +17576,7 @@ function startTagAfterBody(p, token) {
17316
17576
  }
17317
17577
  }
17318
17578
  function endTagAfterBody(p, token) {
17319
- var _a2;
17579
+ var _a3;
17320
17580
  if (token.tagID === TAG_ID.HTML) {
17321
17581
  if (!p.fragmentContext) {
17322
17582
  p.insertionMode = InsertionMode.AFTER_AFTER_BODY;
@@ -17324,7 +17584,7 @@ function endTagAfterBody(p, token) {
17324
17584
  if (p.options.sourceCodeLocationInfo && p.openElements.tagIDs[0] === TAG_ID.HTML) {
17325
17585
  p._setEndLocation(p.openElements.items[0], token);
17326
17586
  const bodyElement = p.openElements.items[1];
17327
- if (bodyElement && !((_a2 = p.treeAdapter.getNodeSourceCodeLocation(bodyElement)) === null || _a2 === void 0 ? void 0 : _a2.endTag)) {
17587
+ if (bodyElement && !((_a3 = p.treeAdapter.getNodeSourceCodeLocation(bodyElement)) === null || _a3 === void 0 ? void 0 : _a3.endTag)) {
17328
17588
  p._setEndLocation(bodyElement, token);
17329
17589
  }
17330
17590
  }
@@ -19188,7 +19448,7 @@ function serializeNodeToHtml(elm, serializationOptions = {}) {
19188
19448
  }
19189
19449
  var shadowRootTag = "mock:shadow-root";
19190
19450
  function* streamToHtml(node, opts, output) {
19191
- var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
19451
+ var _a3, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
19192
19452
  const isShadowRoot = node.nodeType === 11 /* DOCUMENT_FRAGMENT_NODE */;
19193
19453
  if (node.nodeType === 1 /* ELEMENT_NODE */ || isShadowRoot) {
19194
19454
  const tagName = isShadowRoot ? shadowRootTag : getTagName(node);
@@ -19197,7 +19457,7 @@ function* streamToHtml(node, opts, output) {
19197
19457
  }
19198
19458
  const ignoreTag = opts.excludeTags != null && opts.excludeTags.includes(tagName);
19199
19459
  if (ignoreTag === false) {
19200
- const isWithinWhitespaceSensitiveNode = opts.newLines || ((_a2 = opts.indentSpaces) != null ? _a2 : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
19460
+ const isWithinWhitespaceSensitiveNode = opts.newLines || ((_a3 = opts.indentSpaces) != null ? _a3 : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
19201
19461
  if (opts.newLines && !isWithinWhitespaceSensitiveNode) {
19202
19462
  yield "\n";
19203
19463
  output.currentLineWidth = 0;
@@ -19716,9 +19976,7 @@ var MockNode2 = class {
19716
19976
  const firstChild = this.firstChild;
19717
19977
  items.forEach((item) => {
19718
19978
  const isNode = typeof item === "object" && item !== null && "nodeType" in item;
19719
- if (firstChild) {
19720
- this.insertBefore(isNode ? item : this.ownerDocument.createTextNode(String(item)), firstChild);
19721
- }
19979
+ this.insertBefore(isNode ? item : this.ownerDocument.createTextNode(String(item)), firstChild);
19722
19980
  });
19723
19981
  }
19724
19982
  cloneNode(deep) {
@@ -19767,8 +20025,8 @@ var MockNode2 = class {
19767
20025
  return null;
19768
20026
  }
19769
20027
  get nodeValue() {
19770
- var _a2;
19771
- return (_a2 = this._nodeValue) != null ? _a2 : "";
20028
+ var _a3;
20029
+ return (_a3 = this._nodeValue) != null ? _a3 : "";
19772
20030
  }
19773
20031
  set nodeValue(value) {
19774
20032
  this._nodeValue = value;
@@ -19828,8 +20086,8 @@ var MockNode2 = class {
19828
20086
  return null;
19829
20087
  }
19830
20088
  get textContent() {
19831
- var _a2;
19832
- return (_a2 = this._nodeValue) != null ? _a2 : "";
20089
+ var _a3;
20090
+ return (_a3 = this._nodeValue) != null ? _a3 : "";
19833
20091
  }
19834
20092
  set textContent(value) {
19835
20093
  this._nodeValue = String(value);
@@ -19888,9 +20146,9 @@ var MockElement = class extends MockNode2 {
19888
20146
  addEventListener(this, type, handler);
19889
20147
  }
19890
20148
  attachShadow(_opts) {
19891
- var _a2;
20149
+ var _a3;
19892
20150
  const shadowRoot = this.ownerDocument.createDocumentFragment();
19893
- shadowRoot.delegatesFocus = (_a2 = _opts.delegatesFocus) != null ? _a2 : false;
20151
+ shadowRoot.delegatesFocus = (_a3 = _opts.delegatesFocus) != null ? _a3 : false;
19894
20152
  this.shadowRoot = shadowRoot;
19895
20153
  return shadowRoot;
19896
20154
  }
@@ -19961,6 +20219,9 @@ var MockElement = class extends MockNode2 {
19961
20219
  get part() {
19962
20220
  return new MockTokenList(this, "part");
19963
20221
  }
20222
+ set part(value) {
20223
+ this.setAttributeNS(null, "part", String(value));
20224
+ }
19964
20225
  click() {
19965
20226
  dispatchEvent(this, new MockEvent("click", { bubbles: true, cancelable: true, composed: true }));
19966
20227
  }
@@ -20063,8 +20324,8 @@ var MockElement = class extends MockNode2 {
20063
20324
  });
20064
20325
  }
20065
20326
  set innerHTML(html) {
20066
- var _a2;
20067
- if (NON_ESCAPABLE_CONTENT.has((_a2 = this.nodeName) != null ? _a2 : "") === true) {
20327
+ var _a3;
20328
+ if (NON_ESCAPABLE_CONTENT.has((_a3 = this.nodeName) != null ? _a3 : "") === true) {
20068
20329
  setTextContent(this, html);
20069
20330
  } else {
20070
20331
  for (let i = this.childNodes.length - 1; i >= 0; i--) {
@@ -20307,8 +20568,8 @@ var MockElement = class extends MockNode2 {
20307
20568
  this.setAttributeNS(null, "tabindex", value);
20308
20569
  }
20309
20570
  get tagName() {
20310
- var _a2;
20311
- return (_a2 = this.nodeName) != null ? _a2 : "";
20571
+ var _a3;
20572
+ return (_a3 = this.nodeName) != null ? _a3 : "";
20312
20573
  }
20313
20574
  set tagName(value) {
20314
20575
  this.nodeName = value;
@@ -20530,11 +20791,11 @@ function getElementsByClassName(elm, classNames, foundElms) {
20530
20791
  }
20531
20792
  }
20532
20793
  function getElementsByTagName(elm, tagName, foundElms) {
20533
- var _a2;
20794
+ var _a3;
20534
20795
  const children = elm.children;
20535
20796
  for (let i = 0, ii = children.length; i < ii; i++) {
20536
20797
  const childElm = children[i];
20537
- if (tagName === "*" || ((_a2 = childElm.nodeName) != null ? _a2 : "").toLowerCase() === tagName) {
20798
+ if (tagName === "*" || ((_a3 = childElm.nodeName) != null ? _a3 : "").toLowerCase() === tagName) {
20538
20799
  foundElms.push(childElm);
20539
20800
  }
20540
20801
  getElementsByTagName(childElm, tagName, foundElms);
@@ -20571,8 +20832,8 @@ var MockHTMLElement = class extends MockElement {
20571
20832
  super(ownerDocument, typeof nodeName === "string" ? nodeName.toUpperCase() : null);
20572
20833
  }
20573
20834
  get tagName() {
20574
- var _a2;
20575
- return (_a2 = this.nodeName) != null ? _a2 : "";
20835
+ var _a3;
20836
+ return (_a3 = this.nodeName) != null ? _a3 : "";
20576
20837
  }
20577
20838
  set tagName(value) {
20578
20839
  this.nodeName = value;
@@ -20838,6 +21099,8 @@ function createElement(ownerDocument, tagName) {
20838
21099
  return new MockImageElement(ownerDocument);
20839
21100
  case "input":
20840
21101
  return new MockInputElement(ownerDocument);
21102
+ case "label":
21103
+ return new MockLabelElement(ownerDocument);
20841
21104
  case "link":
20842
21105
  return new MockLinkElement(ownerDocument);
20843
21106
  case "meta":
@@ -20916,6 +21179,9 @@ var MockButtonElement = class extends MockHTMLElement {
20916
21179
  constructor(ownerDocument) {
20917
21180
  super(ownerDocument, "button");
20918
21181
  }
21182
+ get labels() {
21183
+ return getLabelsForElement(this);
21184
+ }
20919
21185
  };
20920
21186
  patchPropAttributes(
20921
21187
  MockButtonElement.prototype,
@@ -20963,6 +21229,9 @@ var MockInputElement = class extends MockHTMLElement {
20963
21229
  }
20964
21230
  return null;
20965
21231
  }
21232
+ get labels() {
21233
+ return getLabelsForElement(this);
21234
+ }
20966
21235
  };
20967
21236
  patchPropAttributes(
20968
21237
  MockInputElement.prototype,
@@ -21011,6 +21280,26 @@ var MockFormElement = class extends MockHTMLElement {
21011
21280
  patchPropAttributes(MockFormElement.prototype, {
21012
21281
  name: String
21013
21282
  });
21283
+ var MockLabelElement = class extends MockHTMLElement {
21284
+ constructor(ownerDocument) {
21285
+ super(ownerDocument, "label");
21286
+ }
21287
+ get htmlFor() {
21288
+ return this.getAttributeNS(null, "for") || "";
21289
+ }
21290
+ set htmlFor(value) {
21291
+ this.setAttributeNS(null, "for", value);
21292
+ }
21293
+ get control() {
21294
+ var _a3, _b;
21295
+ const forAttr = this.htmlFor;
21296
+ if (forAttr) {
21297
+ return (_b = (_a3 = this.ownerDocument) == null ? void 0 : _a3.getElementById(forAttr)) != null ? _b : null;
21298
+ }
21299
+ const labelableSelector = 'button, input:not([type="hidden"]), meter, output, progress, select, textarea';
21300
+ return this.querySelector(labelableSelector);
21301
+ }
21302
+ };
21014
21303
  var MockLinkElement = class extends MockHTMLElement {
21015
21304
  constructor(ownerDocument) {
21016
21305
  super(ownerDocument, "link");
@@ -21421,6 +21710,30 @@ function fullUrl(elm, attrName) {
21421
21710
  }
21422
21711
  return val.replace(/\'|\"/g, "").trim();
21423
21712
  }
21713
+ function getLabelsForElement(elm) {
21714
+ const labels = [];
21715
+ const id = elm.id;
21716
+ const doc = elm.ownerDocument;
21717
+ if (doc) {
21718
+ if (id) {
21719
+ const allLabels = doc.getElementsByTagName("label");
21720
+ for (let i = 0; i < allLabels.length; i++) {
21721
+ const label = allLabels[i];
21722
+ if (label.htmlFor === id) {
21723
+ labels.push(label);
21724
+ }
21725
+ }
21726
+ }
21727
+ let parent = elm.parentNode;
21728
+ while (parent) {
21729
+ if (parent.nodeName === "LABEL" && !labels.includes(parent)) {
21730
+ labels.push(parent);
21731
+ }
21732
+ parent = parent.parentNode;
21733
+ }
21734
+ }
21735
+ return labels;
21736
+ }
21424
21737
  function patchPropAttributes(prototype, attrs, defaults2 = {}) {
21425
21738
  Object.keys(attrs).forEach((propName) => {
21426
21739
  const attr = attrs[propName];
@@ -22111,7 +22424,6 @@ var MockWindow = class {
22111
22424
  __timeouts;
22112
22425
  __history;
22113
22426
  __elementCstr;
22114
- __htmlElementCstr;
22115
22427
  __charDataCstr;
22116
22428
  __docTypeCstr;
22117
22429
  __docCstr;
@@ -22318,27 +22630,10 @@ var MockWindow = class {
22318
22630
  return JSON;
22319
22631
  }
22320
22632
  get HTMLElement() {
22321
- if (this.__htmlElementCstr == null) {
22322
- const ownerDocument = this.document;
22323
- this.__htmlElementCstr = class extends MockHTMLElement {
22324
- constructor() {
22325
- super(ownerDocument, "");
22326
- const observedAttributes = this.constructor.observedAttributes;
22327
- if (Array.isArray(observedAttributes) && typeof this.attributeChangedCallback === "function") {
22328
- observedAttributes.forEach((attrName) => {
22329
- const attrValue = this.getAttribute(attrName);
22330
- if (attrValue != null) {
22331
- this.attributeChangedCallback(attrName, null, attrValue);
22332
- }
22333
- });
22334
- }
22335
- }
22336
- };
22337
- }
22338
- return this.__htmlElementCstr;
22633
+ return MockHTMLElement;
22339
22634
  }
22340
- set HTMLElement(htmlElementCstr) {
22341
- this.__htmlElementCstr = htmlElementCstr;
22635
+ get SVGElement() {
22636
+ return MockSVGElement;
22342
22637
  }
22343
22638
  get IntersectionObserver() {
22344
22639
  return MockIntersectionObserver;
@@ -23712,8 +24007,35 @@ var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
23712
24007
  };
23713
24008
 
23714
24009
  // node_modules/minimatch/dist/esm/ast.js
24010
+ var _a2;
23715
24011
  var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
23716
24012
  var isExtglobType = (c) => types.has(c);
24013
+ var isExtglobAST = (c) => isExtglobType(c.type);
24014
+ var adoptionMap = /* @__PURE__ */ new Map([
24015
+ ["!", ["@"]],
24016
+ ["?", ["?", "@"]],
24017
+ ["@", ["@"]],
24018
+ ["*", ["*", "+", "?", "@"]],
24019
+ ["+", ["+", "@"]]
24020
+ ]);
24021
+ var adoptionWithSpaceMap = /* @__PURE__ */ new Map([
24022
+ ["!", ["?"]],
24023
+ ["@", ["?"]],
24024
+ ["+", ["?", "*"]]
24025
+ ]);
24026
+ var adoptionAnyMap = /* @__PURE__ */ new Map([
24027
+ ["!", ["?", "@"]],
24028
+ ["?", ["?", "@"]],
24029
+ ["@", ["?", "@"]],
24030
+ ["*", ["*", "+", "?", "@"]],
24031
+ ["+", ["+", "@", "?", "*"]]
24032
+ ]);
24033
+ var usurpMap = /* @__PURE__ */ new Map([
24034
+ ["!", /* @__PURE__ */ new Map([["!", "@"]])],
24035
+ ["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
24036
+ ["@", /* @__PURE__ */ new Map([["!", "!"], ["?", "?"], ["@", "@"], ["*", "*"], ["+", "+"]])],
24037
+ ["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
24038
+ ]);
23717
24039
  var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
23718
24040
  var startNoDot = "(?!\\.)";
23719
24041
  var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
@@ -23723,8 +24045,8 @@ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
23723
24045
  var qmark = "[^/]";
23724
24046
  var star = qmark + "*?";
23725
24047
  var starNoEmpty = qmark + "+?";
23726
- var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
23727
- var _AST = class _AST {
24048
+ var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, canAdoptWithSpace_fn, canAdopt_fn, canAdoptType_fn, adoptWithSpace_fn, adopt_fn, canUsurpType_fn, canUsurp_fn, usurp_fn, flatten_fn, partsToRegExp_fn, parseGlob_fn;
24049
+ var AST = class {
23728
24050
  constructor(type, parent, options = {}) {
23729
24051
  __privateAdd(this, _AST_instances);
23730
24052
  __publicField(this, "type");
@@ -23777,44 +24099,44 @@ var _AST = class _AST {
23777
24099
  for (const p of parts) {
23778
24100
  if (p === "")
23779
24101
  continue;
23780
- if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
24102
+ if (typeof p !== "string" && !(p instanceof _a2 && __privateGet(p, _parent) === this)) {
23781
24103
  throw new Error("invalid part: " + p);
23782
24104
  }
23783
24105
  __privateGet(this, _parts).push(p);
23784
24106
  }
23785
24107
  }
23786
24108
  toJSON() {
23787
- var _a2;
24109
+ var _a3;
23788
24110
  const ret = this.type === null ? __privateGet(this, _parts).slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...__privateGet(this, _parts).map((p) => p.toJSON())];
23789
24111
  if (this.isStart() && !this.type)
23790
24112
  ret.unshift([]);
23791
- if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")) {
24113
+ if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.type) === "!")) {
23792
24114
  ret.push({});
23793
24115
  }
23794
24116
  return ret;
23795
24117
  }
23796
24118
  isStart() {
23797
- var _a2;
24119
+ var _a3;
23798
24120
  if (__privateGet(this, _root) === this)
23799
24121
  return true;
23800
- if (!((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.isStart()))
24122
+ if (!((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.isStart()))
23801
24123
  return false;
23802
24124
  if (__privateGet(this, _parentIndex) === 0)
23803
24125
  return true;
23804
24126
  const p = __privateGet(this, _parent);
23805
24127
  for (let i = 0; i < __privateGet(this, _parentIndex); i++) {
23806
24128
  const pp = __privateGet(p, _parts)[i];
23807
- if (!(pp instanceof _AST && pp.type === "!")) {
24129
+ if (!(pp instanceof _a2 && pp.type === "!")) {
23808
24130
  return false;
23809
24131
  }
23810
24132
  }
23811
24133
  return true;
23812
24134
  }
23813
24135
  isEnd() {
23814
- var _a2, _b, _c;
24136
+ var _a3, _b, _c;
23815
24137
  if (__privateGet(this, _root) === this)
23816
24138
  return true;
23817
- if (((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")
24139
+ if (((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.type) === "!")
23818
24140
  return true;
23819
24141
  if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
23820
24142
  return false;
@@ -23830,16 +24152,16 @@ var _AST = class _AST {
23830
24152
  this.push(part.clone(this));
23831
24153
  }
23832
24154
  clone(parent) {
23833
- const c = new _AST(this.type, parent);
24155
+ const c = new _a2(this.type, parent);
23834
24156
  for (const p of __privateGet(this, _parts)) {
23835
24157
  c.copyIn(p);
23836
24158
  }
23837
24159
  return c;
23838
24160
  }
23839
24161
  static fromGlob(pattern, options = {}) {
23840
- var _a2;
23841
- const ast = new _AST(null, void 0, options);
23842
- __privateMethod(_a2 = _AST, _AST_static, parseAST_fn).call(_a2, pattern, ast, 0, options);
24162
+ var _a3;
24163
+ const ast = new _a2(null, void 0, options);
24164
+ __privateMethod(_a3 = _a2, _AST_static, parseAST_fn).call(_a3, pattern, ast, 0, options, 0);
23843
24165
  return ast;
23844
24166
  }
23845
24167
  // returns the regular expression if there's magic, or the unescaped
@@ -23932,15 +24254,17 @@ var _AST = class _AST {
23932
24254
  // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
23933
24255
  // or start or whatever) and prepend ^ or / at the Regexp construction.
23934
24256
  toRegExpSource(allowDot) {
23935
- var _a2;
24257
+ var _a3;
23936
24258
  const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
23937
- if (__privateGet(this, _root) === this)
24259
+ if (__privateGet(this, _root) === this) {
24260
+ __privateMethod(this, _AST_instances, flatten_fn).call(this);
23938
24261
  __privateMethod(this, _AST_instances, fillNegs_fn).call(this);
23939
- if (!this.type) {
24262
+ }
24263
+ if (!isExtglobAST(this)) {
23940
24264
  const noEmpty = this.isStart() && this.isEnd();
23941
24265
  const src = __privateGet(this, _parts).map((p) => {
23942
- var _a3;
23943
- const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a3 = _AST, _AST_static, parseGlob_fn).call(_a3, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
24266
+ var _a4;
24267
+ const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a4 = _a2, _AST_static, parseGlob_fn).call(_a4, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
23944
24268
  __privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
23945
24269
  __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
23946
24270
  return re;
@@ -23963,7 +24287,7 @@ var _AST = class _AST {
23963
24287
  }
23964
24288
  }
23965
24289
  let end = "";
23966
- if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!") {
24290
+ if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.type) === "!") {
23967
24291
  end = "(?:$|\\/)";
23968
24292
  }
23969
24293
  const final2 = start2 + src + end;
@@ -23979,9 +24303,10 @@ var _AST = class _AST {
23979
24303
  let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
23980
24304
  if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
23981
24305
  const s = this.toString();
23982
- __privateSet(this, _parts, [s]);
23983
- this.type = null;
23984
- __privateSet(this, _hasMagic, void 0);
24306
+ const me = this;
24307
+ __privateSet(me, _parts, [s]);
24308
+ me.type = null;
24309
+ __privateSet(me, _hasMagic, void 0);
23985
24310
  return [s, unescape(this.toString()), false, false];
23986
24311
  }
23987
24312
  let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
@@ -24050,8 +24375,9 @@ fillNegs_fn = function() {
24050
24375
  return this;
24051
24376
  };
24052
24377
  _AST_static = new WeakSet();
24053
- parseAST_fn = function(str, ast, pos, opt) {
24054
- var _a2, _b;
24378
+ parseAST_fn = function(str, ast, pos, opt, extDepth) {
24379
+ var _a3, _b, _c, _d, _e;
24380
+ const maxDepth = (_a3 = opt.maxExtglobRecursion) != null ? _a3 : 2;
24055
24381
  let escaping = false;
24056
24382
  let inBrace = false;
24057
24383
  let braceStart = -1;
@@ -24083,11 +24409,12 @@ parseAST_fn = function(str, ast, pos, opt) {
24083
24409
  acc2 += c;
24084
24410
  continue;
24085
24411
  }
24086
- if (!opt.noext && isExtglobType(c) && str.charAt(i2) === "(") {
24412
+ const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i2) === "(" && extDepth <= maxDepth;
24413
+ if (doRecurse) {
24087
24414
  ast.push(acc2);
24088
24415
  acc2 = "";
24089
- const ext2 = new _AST(c, ast);
24090
- i2 = __privateMethod(_a2 = _AST, _AST_static, parseAST_fn).call(_a2, str, ext2, i2, opt);
24416
+ const ext2 = new _a2(c, ast);
24417
+ i2 = __privateMethod(_b = _a2, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt, extDepth + 1);
24091
24418
  ast.push(ext2);
24092
24419
  continue;
24093
24420
  }
@@ -24097,7 +24424,7 @@ parseAST_fn = function(str, ast, pos, opt) {
24097
24424
  return i2;
24098
24425
  }
24099
24426
  let i = pos + 1;
24100
- let part = new _AST(null, ast);
24427
+ let part = new _a2(null, ast);
24101
24428
  const parts = [];
24102
24429
  let acc = "";
24103
24430
  while (i < str.length) {
@@ -24124,19 +24451,22 @@ parseAST_fn = function(str, ast, pos, opt) {
24124
24451
  acc += c;
24125
24452
  continue;
24126
24453
  }
24127
- if (isExtglobType(c) && str.charAt(i) === "(") {
24454
+ const doRecurse = isExtglobType(c) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
24455
+ (extDepth <= maxDepth || ast && __privateMethod(_c = ast, _AST_instances, canAdoptType_fn).call(_c, c));
24456
+ if (doRecurse) {
24457
+ const depthAdd = ast && __privateMethod(_d = ast, _AST_instances, canAdoptType_fn).call(_d, c) ? 0 : 1;
24128
24458
  part.push(acc);
24129
24459
  acc = "";
24130
- const ext2 = new _AST(c, part);
24460
+ const ext2 = new _a2(c, part);
24131
24461
  part.push(ext2);
24132
- i = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i, opt);
24462
+ i = __privateMethod(_e = _a2, _AST_static, parseAST_fn).call(_e, str, ext2, i, opt, extDepth + depthAdd);
24133
24463
  continue;
24134
24464
  }
24135
24465
  if (c === "|") {
24136
24466
  part.push(acc);
24137
24467
  acc = "";
24138
24468
  parts.push(part);
24139
- part = new _AST(null, ast);
24469
+ part = new _a2(null, ast);
24140
24470
  continue;
24141
24471
  }
24142
24472
  if (c === ")") {
@@ -24155,6 +24485,100 @@ parseAST_fn = function(str, ast, pos, opt) {
24155
24485
  __privateSet(ast, _parts, [str.substring(pos - 1)]);
24156
24486
  return i;
24157
24487
  };
24488
+ canAdoptWithSpace_fn = function(child) {
24489
+ return __privateMethod(this, _AST_instances, canAdopt_fn).call(this, child, adoptionWithSpaceMap);
24490
+ };
24491
+ canAdopt_fn = function(child, map2 = adoptionMap) {
24492
+ if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null) {
24493
+ return false;
24494
+ }
24495
+ const gc = __privateGet(child, _parts)[0];
24496
+ if (!gc || typeof gc !== "object" || gc.type === null) {
24497
+ return false;
24498
+ }
24499
+ return __privateMethod(this, _AST_instances, canAdoptType_fn).call(this, gc.type, map2);
24500
+ };
24501
+ canAdoptType_fn = function(c, map2 = adoptionAnyMap) {
24502
+ var _a3;
24503
+ return !!((_a3 = map2.get(this.type)) == null ? void 0 : _a3.includes(c));
24504
+ };
24505
+ adoptWithSpace_fn = function(child, index) {
24506
+ const gc = __privateGet(child, _parts)[0];
24507
+ const blank = new _a2(null, gc, this.options);
24508
+ __privateGet(blank, _parts).push("");
24509
+ gc.push(blank);
24510
+ __privateMethod(this, _AST_instances, adopt_fn).call(this, child, index);
24511
+ };
24512
+ adopt_fn = function(child, index) {
24513
+ const gc = __privateGet(child, _parts)[0];
24514
+ __privateGet(this, _parts).splice(index, 1, ...__privateGet(gc, _parts));
24515
+ for (const p of __privateGet(gc, _parts)) {
24516
+ if (typeof p === "object")
24517
+ __privateSet(p, _parent, this);
24518
+ }
24519
+ __privateSet(this, _toString, void 0);
24520
+ };
24521
+ canUsurpType_fn = function(c) {
24522
+ const m = usurpMap.get(this.type);
24523
+ return !!(m == null ? void 0 : m.has(c));
24524
+ };
24525
+ canUsurp_fn = function(child) {
24526
+ if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null || __privateGet(this, _parts).length !== 1) {
24527
+ return false;
24528
+ }
24529
+ const gc = __privateGet(child, _parts)[0];
24530
+ if (!gc || typeof gc !== "object" || gc.type === null) {
24531
+ return false;
24532
+ }
24533
+ return __privateMethod(this, _AST_instances, canUsurpType_fn).call(this, gc.type);
24534
+ };
24535
+ usurp_fn = function(child) {
24536
+ const m = usurpMap.get(this.type);
24537
+ const gc = __privateGet(child, _parts)[0];
24538
+ const nt = m == null ? void 0 : m.get(gc.type);
24539
+ if (!nt)
24540
+ return false;
24541
+ __privateSet(this, _parts, __privateGet(gc, _parts));
24542
+ for (const p of __privateGet(this, _parts)) {
24543
+ if (typeof p === "object")
24544
+ __privateSet(p, _parent, this);
24545
+ }
24546
+ this.type = nt;
24547
+ __privateSet(this, _toString, void 0);
24548
+ __privateSet(this, _emptyExt, false);
24549
+ };
24550
+ flatten_fn = function() {
24551
+ var _a3, _b;
24552
+ if (!isExtglobAST(this)) {
24553
+ for (const p of __privateGet(this, _parts)) {
24554
+ if (typeof p === "object")
24555
+ __privateMethod(_a3 = p, _AST_instances, flatten_fn).call(_a3);
24556
+ }
24557
+ } else {
24558
+ let iterations = 0;
24559
+ let done = false;
24560
+ do {
24561
+ done = true;
24562
+ for (let i = 0; i < __privateGet(this, _parts).length; i++) {
24563
+ const c = __privateGet(this, _parts)[i];
24564
+ if (typeof c === "object") {
24565
+ __privateMethod(_b = c, _AST_instances, flatten_fn).call(_b);
24566
+ if (__privateMethod(this, _AST_instances, canAdopt_fn).call(this, c)) {
24567
+ done = false;
24568
+ __privateMethod(this, _AST_instances, adopt_fn).call(this, c, i);
24569
+ } else if (__privateMethod(this, _AST_instances, canAdoptWithSpace_fn).call(this, c)) {
24570
+ done = false;
24571
+ __privateMethod(this, _AST_instances, adoptWithSpace_fn).call(this, c, i);
24572
+ } else if (__privateMethod(this, _AST_instances, canUsurp_fn).call(this, c)) {
24573
+ done = false;
24574
+ __privateMethod(this, _AST_instances, usurp_fn).call(this, c);
24575
+ }
24576
+ }
24577
+ }
24578
+ } while (!done && ++iterations < 10);
24579
+ }
24580
+ __privateSet(this, _toString, void 0);
24581
+ };
24158
24582
  partsToRegExp_fn = function(dot) {
24159
24583
  return __privateGet(this, _parts).map((p) => {
24160
24584
  if (typeof p === "string") {
@@ -24169,11 +24593,13 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
24169
24593
  let escaping = false;
24170
24594
  let re = "";
24171
24595
  let uflag = false;
24596
+ let inStar = false;
24172
24597
  for (let i = 0; i < glob.length; i++) {
24173
24598
  const c = glob.charAt(i);
24174
24599
  if (escaping) {
24175
24600
  escaping = false;
24176
24601
  re += (reSpecials.has(c) ? "\\" : "") + c;
24602
+ inStar = false;
24177
24603
  continue;
24178
24604
  }
24179
24605
  if (c === "\\") {
@@ -24191,16 +24617,19 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
24191
24617
  uflag = uflag || needUflag;
24192
24618
  i += consumed - 1;
24193
24619
  hasMagic = hasMagic || magic;
24620
+ inStar = false;
24194
24621
  continue;
24195
24622
  }
24196
24623
  }
24197
24624
  if (c === "*") {
24198
- if (noEmpty && glob === "*")
24199
- re += starNoEmpty;
24200
- else
24201
- re += star;
24625
+ if (inStar)
24626
+ continue;
24627
+ inStar = true;
24628
+ re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
24202
24629
  hasMagic = true;
24203
24630
  continue;
24631
+ } else {
24632
+ inStar = false;
24204
24633
  }
24205
24634
  if (c === "?") {
24206
24635
  re += qmark;
@@ -24211,8 +24640,8 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
24211
24640
  }
24212
24641
  return [re, unescape(glob), !!hasMagic, uflag];
24213
24642
  };
24214
- __privateAdd(_AST, _AST_static);
24215
- var AST = _AST;
24643
+ __privateAdd(AST, _AST_static);
24644
+ _a2 = AST;
24216
24645
 
24217
24646
  // node_modules/minimatch/dist/esm/escape.js
24218
24647
  var escape = (s, { windowsPathsNoEscape = false } = {}) => {
@@ -24351,28 +24780,33 @@ var match = (list, pattern, options = {}) => {
24351
24780
  minimatch.match = match;
24352
24781
  var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
24353
24782
  var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
24783
+ var _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn;
24354
24784
  var Minimatch = class {
24355
- options;
24356
- set;
24357
- pattern;
24358
- windowsPathsNoEscape;
24359
- nonegate;
24360
- negate;
24361
- comment;
24362
- empty;
24363
- preserveMultipleSlashes;
24364
- partial;
24365
- globSet;
24366
- globParts;
24367
- nocase;
24368
- isWindows;
24369
- platform;
24370
- windowsNoMagicRoot;
24371
- regexp;
24372
24785
  constructor(pattern, options = {}) {
24786
+ __privateAdd(this, _Minimatch_instances);
24787
+ __publicField(this, "options");
24788
+ __publicField(this, "set");
24789
+ __publicField(this, "pattern");
24790
+ __publicField(this, "windowsPathsNoEscape");
24791
+ __publicField(this, "nonegate");
24792
+ __publicField(this, "negate");
24793
+ __publicField(this, "comment");
24794
+ __publicField(this, "empty");
24795
+ __publicField(this, "preserveMultipleSlashes");
24796
+ __publicField(this, "partial");
24797
+ __publicField(this, "globSet");
24798
+ __publicField(this, "globParts");
24799
+ __publicField(this, "nocase");
24800
+ __publicField(this, "isWindows");
24801
+ __publicField(this, "platform");
24802
+ __publicField(this, "windowsNoMagicRoot");
24803
+ __publicField(this, "maxGlobstarRecursion");
24804
+ __publicField(this, "regexp");
24805
+ var _a3;
24373
24806
  assertValidPattern(pattern);
24374
24807
  options = options || {};
24375
24808
  this.options = options;
24809
+ this.maxGlobstarRecursion = (_a3 = options.maxGlobstarRecursion) != null ? _a3 : 200;
24376
24810
  this.pattern = pattern;
24377
24811
  this.platform = options.platform || defaultPlatform;
24378
24812
  this.isWindows = this.platform === "win32";
@@ -24640,10 +25074,11 @@ var Minimatch = class {
24640
25074
  for (let i = 0; i < globParts.length - 1; i++) {
24641
25075
  for (let j = i + 1; j < globParts.length; j++) {
24642
25076
  const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
24643
- if (!matched)
24644
- continue;
24645
- globParts[i] = matched;
24646
- globParts[j] = [];
25077
+ if (matched) {
25078
+ globParts[i] = [];
25079
+ globParts[j] = matched;
25080
+ break;
25081
+ }
24647
25082
  }
24648
25083
  }
24649
25084
  return globParts.filter((gs) => gs.length);
@@ -24704,7 +25139,8 @@ var Minimatch = class {
24704
25139
  // out of pattern, then that's fine, as long as all
24705
25140
  // the parts match.
24706
25141
  matchOne(file, pattern, partial = false) {
24707
- const options = this.options;
25142
+ let fileStartIndex = 0;
25143
+ let patternStartIndex = 0;
24708
25144
  if (this.isWindows) {
24709
25145
  const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
24710
25146
  const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
@@ -24713,14 +25149,14 @@ var Minimatch = class {
24713
25149
  const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
24714
25150
  const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
24715
25151
  if (typeof fdi === "number" && typeof pdi === "number") {
24716
- const [fd, pd] = [file[fdi], pattern[pdi]];
25152
+ const [fd, pd] = [
25153
+ file[fdi],
25154
+ pattern[pdi]
25155
+ ];
24717
25156
  if (fd.toLowerCase() === pd.toLowerCase()) {
24718
25157
  pattern[pdi] = fd;
24719
- if (pdi > fdi) {
24720
- pattern = pattern.slice(pdi);
24721
- } else if (fdi > pdi) {
24722
- file = file.slice(fdi);
24723
- }
25158
+ patternStartIndex = pdi;
25159
+ fileStartIndex = fdi;
24724
25160
  }
24725
25161
  }
24726
25162
  }
@@ -24728,71 +25164,10 @@ var Minimatch = class {
24728
25164
  if (optimizationLevel >= 2) {
24729
25165
  file = this.levelTwoFileOptimize(file);
24730
25166
  }
24731
- this.debug("matchOne", this, { file, pattern });
24732
- this.debug("matchOne", file.length, pattern.length);
24733
- for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
24734
- this.debug("matchOne loop");
24735
- var p = pattern[pi];
24736
- var f = file[fi];
24737
- this.debug(pattern, p, f);
24738
- if (p === false) {
24739
- return false;
24740
- }
24741
- if (p === GLOBSTAR) {
24742
- this.debug("GLOBSTAR", [pattern, p, f]);
24743
- var fr = fi;
24744
- var pr = pi + 1;
24745
- if (pr === pl) {
24746
- this.debug("** at the end");
24747
- for (; fi < fl; fi++) {
24748
- if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
24749
- return false;
24750
- }
24751
- return true;
24752
- }
24753
- while (fr < fl) {
24754
- var swallowee = file[fr];
24755
- this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
24756
- if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
24757
- this.debug("globstar found match!", fr, fl, swallowee);
24758
- return true;
24759
- } else {
24760
- if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
24761
- this.debug("dot detected!", file, fr, pattern, pr);
24762
- break;
24763
- }
24764
- this.debug("globstar swallow a segment, and continue");
24765
- fr++;
24766
- }
24767
- }
24768
- if (partial) {
24769
- this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
24770
- if (fr === fl) {
24771
- return true;
24772
- }
24773
- }
24774
- return false;
24775
- }
24776
- let hit;
24777
- if (typeof p === "string") {
24778
- hit = f === p;
24779
- this.debug("string match", p, f, hit);
24780
- } else {
24781
- hit = p.test(f);
24782
- this.debug("pattern match", p, f, hit);
24783
- }
24784
- if (!hit)
24785
- return false;
24786
- }
24787
- if (fi === fl && pi === pl) {
24788
- return true;
24789
- } else if (fi === fl) {
24790
- return partial;
24791
- } else if (pi === pl) {
24792
- return fi === fl - 1 && file[fi] === "";
24793
- } else {
24794
- throw new Error("wtf?");
25167
+ if (pattern.includes(GLOBSTAR)) {
25168
+ return __privateMethod(this, _Minimatch_instances, matchGlobstar_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
24795
25169
  }
25170
+ return __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
24796
25171
  }
24797
25172
  braceExpand() {
24798
25173
  return braceExpand(this.pattern, this.options);
@@ -24931,6 +25306,135 @@ var Minimatch = class {
24931
25306
  return minimatch.defaults(def).Minimatch;
24932
25307
  }
24933
25308
  };
25309
+ _Minimatch_instances = new WeakSet();
25310
+ matchGlobstar_fn = function(file, pattern, partial, fileIndex, patternIndex) {
25311
+ const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
25312
+ const lastgs = pattern.lastIndexOf(GLOBSTAR);
25313
+ const [head, body, tail] = partial ? [
25314
+ pattern.slice(patternIndex, firstgs),
25315
+ pattern.slice(firstgs + 1),
25316
+ []
25317
+ ] : [
25318
+ pattern.slice(patternIndex, firstgs),
25319
+ pattern.slice(firstgs + 1, lastgs),
25320
+ pattern.slice(lastgs + 1)
25321
+ ];
25322
+ if (head.length) {
25323
+ const fileHead = file.slice(fileIndex, fileIndex + head.length);
25324
+ if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, fileHead, head, partial, 0, 0))
25325
+ return false;
25326
+ fileIndex += head.length;
25327
+ }
25328
+ let fileTailMatch = 0;
25329
+ if (tail.length) {
25330
+ if (tail.length + fileIndex > file.length)
25331
+ return false;
25332
+ let tailStart = file.length - tail.length;
25333
+ if (__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0)) {
25334
+ fileTailMatch = tail.length;
25335
+ } else {
25336
+ if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
25337
+ return false;
25338
+ }
25339
+ tailStart--;
25340
+ if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0))
25341
+ return false;
25342
+ fileTailMatch = tail.length + 1;
25343
+ }
25344
+ }
25345
+ if (!body.length) {
25346
+ let sawSome = !!fileTailMatch;
25347
+ for (let i2 = fileIndex; i2 < file.length - fileTailMatch; i2++) {
25348
+ const f = String(file[i2]);
25349
+ sawSome = true;
25350
+ if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
25351
+ return false;
25352
+ }
25353
+ }
25354
+ return partial || sawSome;
25355
+ }
25356
+ const bodySegments = [[[], 0]];
25357
+ let currentBody = bodySegments[0];
25358
+ let nonGsParts = 0;
25359
+ const nonGsPartsSums = [0];
25360
+ for (const b of body) {
25361
+ if (b === GLOBSTAR) {
25362
+ nonGsPartsSums.push(nonGsParts);
25363
+ currentBody = [[], 0];
25364
+ bodySegments.push(currentBody);
25365
+ } else {
25366
+ currentBody[0].push(b);
25367
+ nonGsParts++;
25368
+ }
25369
+ }
25370
+ let i = bodySegments.length - 1;
25371
+ const fileLength = file.length - fileTailMatch;
25372
+ for (const b of bodySegments) {
25373
+ b[1] = fileLength - (nonGsPartsSums[i--] + b[0].length);
25374
+ }
25375
+ return !!__privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
25376
+ };
25377
+ matchGlobStarBodySections_fn = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
25378
+ const bs = bodySegments[bodyIndex];
25379
+ if (!bs) {
25380
+ for (let i = fileIndex; i < file.length; i++) {
25381
+ sawTail = true;
25382
+ const f = file[i];
25383
+ if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
25384
+ return false;
25385
+ }
25386
+ }
25387
+ return sawTail;
25388
+ }
25389
+ const [body, after] = bs;
25390
+ while (fileIndex <= after) {
25391
+ const m = __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
25392
+ if (m && globStarDepth < this.maxGlobstarRecursion) {
25393
+ const sub = __privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
25394
+ if (sub !== false)
25395
+ return sub;
25396
+ }
25397
+ const f = file[fileIndex];
25398
+ if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
25399
+ return false;
25400
+ }
25401
+ fileIndex++;
25402
+ }
25403
+ return partial || null;
25404
+ };
25405
+ matchOne_fn = function(file, pattern, partial, fileIndex, patternIndex) {
25406
+ let fi;
25407
+ let pi;
25408
+ let pl;
25409
+ let fl;
25410
+ for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
25411
+ this.debug("matchOne loop");
25412
+ let p = pattern[pi];
25413
+ let f = file[fi];
25414
+ this.debug(pattern, p, f);
25415
+ if (p === false || p === GLOBSTAR)
25416
+ return false;
25417
+ let hit;
25418
+ if (typeof p === "string") {
25419
+ hit = f === p;
25420
+ this.debug("string match", p, f, hit);
25421
+ } else {
25422
+ hit = p.test(f);
25423
+ this.debug("pattern match", p, f, hit);
25424
+ }
25425
+ if (!hit)
25426
+ return false;
25427
+ }
25428
+ if (fi === fl && pi === pl) {
25429
+ return true;
25430
+ } else if (fi === fl) {
25431
+ return partial;
25432
+ } else if (pi === pl) {
25433
+ return fi === fl - 1 && file[fi] === "";
25434
+ } else {
25435
+ throw new Error("wtf?");
25436
+ }
25437
+ };
24934
25438
  minimatch.AST = AST;
24935
25439
  minimatch.Minimatch = Minimatch;
24936
25440
  minimatch.escape = escape;
@@ -25001,7 +25505,7 @@ var isJsFile = lowerPathParam((p) => p.endsWith(".js") || p.endsWith(".mjs") ||
25001
25505
 
25002
25506
  // src/compiler/html/canonical-link.ts
25003
25507
  var updateCanonicalLink = (doc, href) => {
25004
- var _a2;
25508
+ var _a3;
25005
25509
  let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]');
25006
25510
  if (typeof href === "string") {
25007
25511
  if (canonicalLinkElm == null) {
@@ -25014,7 +25518,7 @@ var updateCanonicalLink = (doc, href) => {
25014
25518
  if (canonicalLinkElm != null) {
25015
25519
  const existingHref = canonicalLinkElm.getAttribute("href");
25016
25520
  if (!existingHref) {
25017
- (_a2 = canonicalLinkElm.parentNode) == null ? void 0 : _a2.removeChild(canonicalLinkElm);
25521
+ (_a3 = canonicalLinkElm.parentNode) == null ? void 0 : _a3.removeChild(canonicalLinkElm);
25018
25522
  }
25019
25523
  }
25020
25524
  }
@@ -25526,7 +26030,7 @@ var serializeCss = (stylesheet, serializeOpts) => {
25526
26030
  return out.join("");
25527
26031
  };
25528
26032
  var serializeCssVisitNode = (opts, node, index, len) => {
25529
- var _a2;
26033
+ var _a3;
25530
26034
  const nodeType = node.type;
25531
26035
  if (nodeType === 4 /* Declaration */) {
25532
26036
  return serializeCssDeclaration(node, index, len);
@@ -25535,7 +26039,7 @@ var serializeCssVisitNode = (opts, node, index, len) => {
25535
26039
  return serializeCssRule(opts, node);
25536
26040
  }
25537
26041
  if (nodeType === 1 /* Comment */) {
25538
- if (((_a2 = node.comment) == null ? void 0 : _a2[0]) === "!") {
26042
+ if (((_a3 = node.comment) == null ? void 0 : _a3[0]) === "!") {
25539
26043
  return `/*${node.comment}*/`;
25540
26044
  } else {
25541
26045
  return "";
@@ -25583,10 +26087,10 @@ var serializeCssVisitNode = (opts, node, index, len) => {
25583
26087
  return "";
25584
26088
  };
25585
26089
  var serializeCssRule = (opts, node) => {
25586
- var _a2, _b;
26090
+ var _a3, _b;
25587
26091
  const decls = node.declarations;
25588
26092
  const usedSelectors = opts.usedSelectors;
25589
- const selectors = (_b = (_a2 = node.selectors) == null ? void 0 : _a2.slice()) != null ? _b : [];
26093
+ const selectors = (_b = (_a3 = node.selectors) == null ? void 0 : _a3.slice()) != null ? _b : [];
25590
26094
  const hasDecls = decls != null && decls.length > 0;
25591
26095
  const hasNestedRules = node.rules != null && node.rules.length > 0;
25592
26096
  if (!hasDecls && !hasNestedRules) {
@@ -25690,8 +26194,8 @@ var serializeCssKeyframes = (opts, node) => {
25690
26194
  return "@" + (node.vendor || "") + "keyframes " + node.name + "{" + keyframesCss + "}";
25691
26195
  };
25692
26196
  var serializeCssKeyframe = (opts, node) => {
25693
- var _a2, _b;
25694
- return ((_b = (_a2 = node.values) == null ? void 0 : _a2.join(",")) != null ? _b : "") + "{" + serializeCssMapVisit(opts, node.declarations) + "}";
26197
+ var _a3, _b;
26198
+ return ((_b = (_a3 = node.values) == null ? void 0 : _a3.join(",")) != null ? _b : "") + "{" + serializeCssMapVisit(opts, node.declarations) + "}";
25695
26199
  };
25696
26200
  var serializeCssFontFace = (opts, node) => {
25697
26201
  const fontCss = serializeCssMapVisit(opts, node.declarations);
@@ -25715,8 +26219,8 @@ var serializeCssContainer = (opts, node) => {
25715
26219
  return "@container " + removeMediaWhitespace(node.media) + "{" + containerCss + "}";
25716
26220
  };
25717
26221
  var serializeCssPage = (opts, node) => {
25718
- var _a2, _b;
25719
- const sel = (_b = (_a2 = node.selectors) == null ? void 0 : _a2.join(", ")) != null ? _b : "";
26222
+ var _a3, _b;
26223
+ const sel = (_b = (_a3 = node.selectors) == null ? void 0 : _a3.join(", ")) != null ? _b : "";
25720
26224
  return "@page " + sel + "{" + serializeCssMapVisit(opts, node.declarations) + "}";
25721
26225
  };
25722
26226
  var serializeCssDocument = (opts, node) => {
@@ -25763,10 +26267,10 @@ var removeSelectorWhitespace = (selector) => {
25763
26267
  return rtn;
25764
26268
  };
25765
26269
  var removeMediaWhitespace = (media) => {
25766
- var _a2;
26270
+ var _a3;
25767
26271
  let rtn = "";
25768
26272
  let char = "";
25769
- media = (_a2 = media == null ? void 0 : media.trim()) != null ? _a2 : "";
26273
+ media = (_a3 = media == null ? void 0 : media.trim()) != null ? _a3 : "";
25770
26274
  for (let i = 0, l = media.length; i < l; i++) {
25771
26275
  char = media[i];
25772
26276
  if (CSS_WS_REG.test(char)) {