@biggive/components 202607300937.0.0 → 202607301048.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-fdf35f01.entry.js → p-0799b185.entry.js} +1 -1
  3. package/dist/biggive/{p-24f05db9.entry.js → p-0f1b0135.entry.js} +1 -1
  4. package/dist/biggive/{p-af242b56.entry.js → p-1327ae07.entry.js} +1 -1
  5. package/dist/biggive/{p-c9f73b36.entry.js → p-199dac64.entry.js} +1 -1
  6. package/dist/biggive/{p-5fa7fef1.entry.js → p-1f4c671f.entry.js} +1 -1
  7. package/dist/biggive/{p-524707f0.entry.js → p-2078197e.entry.js} +1 -1
  8. package/dist/biggive/{p-4e569752.entry.js → p-23253e31.entry.js} +1 -1
  9. package/dist/biggive/{p-bd690dc6.entry.js → p-2a6463d8.entry.js} +1 -1
  10. package/dist/biggive/{p-8498e3a6.entry.js → p-3197ba6a.entry.js} +1 -1
  11. package/dist/biggive/p-3e31c822.entry.js +1 -0
  12. package/dist/biggive/{p-9ce1ec6e.entry.js → p-412f12ea.entry.js} +1 -1
  13. package/dist/biggive/{p-0cc133a3.entry.js → p-41720b30.entry.js} +1 -1
  14. package/dist/biggive/{p-10535cb2.entry.js → p-43d962a9.entry.js} +1 -1
  15. package/dist/biggive/{p-4b04ad60.entry.js → p-457e7161.entry.js} +1 -1
  16. package/dist/biggive/{p-45338ab3.entry.js → p-474ed546.entry.js} +1 -1
  17. package/dist/biggive/{p-1ab4593e.entry.js → p-491891ab.entry.js} +1 -1
  18. package/dist/biggive/{p-c3af2ce9.entry.js → p-4f78f441.entry.js} +1 -1
  19. package/dist/biggive/{p-dcad1fb5.entry.js → p-575d8459.entry.js} +1 -1
  20. package/dist/biggive/{p-c4d2f329.entry.js → p-6f5830b4.entry.js} +1 -1
  21. package/dist/biggive/p-70db6b6a.entry.js +1 -0
  22. package/dist/biggive/{p-c4faaf18.entry.js → p-74cea715.entry.js} +1 -1
  23. package/dist/biggive/{p-82898f85.entry.js → p-7e736f90.entry.js} +1 -1
  24. package/dist/biggive/{p-28e35010.entry.js → p-7fc50b70.entry.js} +1 -1
  25. package/dist/biggive/{p-7cdd875c.entry.js → p-80382091.entry.js} +1 -1
  26. package/dist/biggive/{p-3a2686cc.entry.js → p-8507bb63.entry.js} +1 -1
  27. package/dist/biggive/{p-1d484f08.entry.js → p-861f2f4a.entry.js} +1 -1
  28. package/dist/biggive/{p-10bdae20.entry.js → p-88aa444d.entry.js} +1 -1
  29. package/dist/biggive/{p-5c82116c.entry.js → p-8d8b1488.entry.js} +1 -1
  30. package/dist/biggive/{p-dacfc8b3.entry.js → p-947b9f4e.entry.js} +1 -1
  31. package/dist/biggive/{p-5b5cf8fe.entry.js → p-96354618.entry.js} +1 -1
  32. package/dist/biggive/{p-00889414.entry.js → p-99b388f2.entry.js} +1 -1
  33. package/dist/biggive/{p-844e84b0.entry.js → p-9a1744ce.entry.js} +1 -1
  34. package/dist/biggive/p-Cml8trro.js +2 -0
  35. package/dist/biggive/p-a38575b4.entry.js +1 -0
  36. package/dist/biggive/{p-e5cd5963.entry.js → p-aff122fa.entry.js} +1 -1
  37. package/dist/biggive/{p-8607939e.entry.js → p-b0be3314.entry.js} +1 -1
  38. package/dist/biggive/{p-281e0b9a.entry.js → p-b22ad681.entry.js} +1 -1
  39. package/dist/biggive/{p-63ca2811.entry.js → p-b6f2e063.entry.js} +1 -1
  40. package/dist/biggive/{p-e18d17f3.entry.js → p-c1c9b6a0.entry.js} +1 -1
  41. package/dist/biggive/{p-c3774844.entry.js → p-c3efc536.entry.js} +1 -1
  42. package/dist/biggive/{p-f9c9eb7b.entry.js → p-cbcb6d1d.entry.js} +1 -1
  43. package/dist/biggive/{p-bc7543bb.entry.js → p-d3e5c82f.entry.js} +1 -1
  44. package/dist/biggive/{p-17c54770.entry.js → p-d96fd8bb.entry.js} +1 -1
  45. package/dist/biggive/{p-c182cd74.entry.js → p-db09fc60.entry.js} +1 -1
  46. package/dist/biggive/{p-5d826703.entry.js → p-dbf0630d.entry.js} +1 -1
  47. package/dist/biggive/{p-370ffd56.entry.js → p-e0174caf.entry.js} +1 -1
  48. package/dist/biggive/{p-af76df67.entry.js → p-e53193ca.entry.js} +1 -1
  49. package/dist/biggive/{p-46cb291d.entry.js → p-ea02284e.entry.js} +1 -1
  50. package/dist/biggive/{p-f23779b2.entry.js → p-f031945c.entry.js} +1 -1
  51. package/dist/biggive/{p-e9140639.entry.js → p-f1324c49.entry.js} +1 -1
  52. package/dist/biggive/p-fa80ee3d.entry.js +1 -0
  53. package/dist/biggive/{p-5044c7fe.entry.js → p-fc8dd9f4.entry.js} +1 -1
  54. package/dist/cjs/biggive-accordion-entry.cjs.entry.js +1 -1
  55. package/dist/cjs/biggive-accordion.cjs.entry.js +1 -1
  56. package/dist/cjs/biggive-article-card.cjs.entry.js +1 -1
  57. package/dist/cjs/biggive-back-to-top.cjs.entry.js +1 -1
  58. package/dist/cjs/biggive-basic-card.cjs.entry.js +1 -1
  59. package/dist/cjs/biggive-biography-card.cjs.entry.js +1 -1
  60. package/dist/cjs/biggive-boxed-content.cjs.entry.js +1 -1
  61. package/dist/cjs/biggive-branded-image.cjs.entry.js +1 -1
  62. package/dist/cjs/biggive-button.cjs.entry.js +1 -1
  63. package/dist/cjs/biggive-call-to-action.cjs.entry.js +1 -1
  64. package/dist/cjs/biggive-campaign-card.cjs.entry.js +1 -1
  65. package/dist/cjs/biggive-campaign-highlights.cjs.entry.js +1 -1
  66. package/dist/cjs/biggive-container-card.cjs.entry.js +1 -1
  67. package/dist/cjs/biggive-cookie-banner.cjs.entry.js +1 -1
  68. package/dist/cjs/biggive-footer.cjs.entry.js +1 -1
  69. package/dist/cjs/biggive-form-field-select.cjs.entry.js +1 -1
  70. package/dist/cjs/biggive-form.cjs.entry.js +1 -1
  71. package/dist/cjs/biggive-formatted-text.cjs.entry.js +1 -1
  72. package/dist/cjs/biggive-grid.cjs.entry.js +1 -1
  73. package/dist/cjs/biggive-heading-banner.cjs.entry.js +1 -1
  74. package/dist/cjs/biggive-heading.cjs.entry.js +1 -1
  75. package/dist/cjs/biggive-hero-image.cjs.entry.js +1 -1
  76. package/dist/cjs/biggive-icon-button.cjs.entry.js +1 -1
  77. package/dist/cjs/biggive-image-button.cjs.entry.js +1 -1
  78. package/dist/cjs/biggive-image-card.cjs.entry.js +1 -1
  79. package/dist/cjs/biggive-image-feature.cjs.entry.js +1 -1
  80. package/dist/cjs/biggive-image.cjs.entry.js +1 -1
  81. package/dist/cjs/biggive-main-menu.cjs.entry.js +1 -1
  82. package/dist/cjs/biggive-misc-icon.cjs.entry.js +1 -1
  83. package/dist/cjs/biggive-nav-group.cjs.entry.js +1 -1
  84. package/dist/cjs/biggive-nav-item.cjs.entry.js +1 -1
  85. package/dist/cjs/biggive-page-column.cjs.entry.js +1 -1
  86. package/dist/cjs/biggive-page-columns.cjs.entry.js +1 -1
  87. package/dist/cjs/biggive-page-section.cjs.entry.js +1 -1
  88. package/dist/cjs/biggive-popup.cjs.entry.js +1 -1
  89. package/dist/cjs/biggive-progress-bar.cjs.entry.js +1 -1
  90. package/dist/cjs/biggive-quote.cjs.entry.js +1 -1
  91. package/dist/cjs/biggive-sheet.cjs.entry.js +1 -1
  92. package/dist/cjs/biggive-social-icon.cjs.entry.js +1 -1
  93. package/dist/cjs/biggive-tab.cjs.entry.js +1 -1
  94. package/dist/cjs/biggive-tabbed-content.cjs.entry.js +1 -1
  95. package/dist/cjs/biggive-table.cjs.entry.js +1 -1
  96. package/dist/cjs/biggive-text-input.cjs.entry.js +1 -1
  97. package/dist/cjs/biggive-timeline-entry.cjs.entry.js +1 -1
  98. package/dist/cjs/biggive-timeline.cjs.entry.js +1 -1
  99. package/dist/cjs/biggive-totalizer-ticker-item.cjs.entry.js +1 -1
  100. package/dist/cjs/biggive-totalizer.cjs.entry.js +1 -1
  101. package/dist/cjs/biggive-video-feature.cjs.entry.js +1 -1
  102. package/dist/cjs/biggive-video.cjs.entry.js +1 -1
  103. package/dist/cjs/biggive.cjs.js +2 -2
  104. package/dist/cjs/{index-Dg0jUZBu.js → index-BsyTxzpK.js} +10 -45
  105. package/dist/cjs/loader.cjs.js +1 -1
  106. package/dist/cjs/philco-footer.cjs.entry.js +1 -1
  107. package/dist/cjs/philco-main-menu.cjs.entry.js +1 -1
  108. package/dist/collection/collection-manifest.json +1 -1
  109. package/dist/esm/biggive-accordion-entry.entry.js +1 -1
  110. package/dist/esm/biggive-accordion.entry.js +1 -1
  111. package/dist/esm/biggive-article-card.entry.js +1 -1
  112. package/dist/esm/biggive-back-to-top.entry.js +1 -1
  113. package/dist/esm/biggive-basic-card.entry.js +1 -1
  114. package/dist/esm/biggive-biography-card.entry.js +1 -1
  115. package/dist/esm/biggive-boxed-content.entry.js +1 -1
  116. package/dist/esm/biggive-branded-image.entry.js +1 -1
  117. package/dist/esm/biggive-button.entry.js +1 -1
  118. package/dist/esm/biggive-call-to-action.entry.js +1 -1
  119. package/dist/esm/biggive-campaign-card.entry.js +1 -1
  120. package/dist/esm/biggive-campaign-highlights.entry.js +1 -1
  121. package/dist/esm/biggive-container-card.entry.js +1 -1
  122. package/dist/esm/biggive-cookie-banner.entry.js +1 -1
  123. package/dist/esm/biggive-footer.entry.js +1 -1
  124. package/dist/esm/biggive-form-field-select.entry.js +1 -1
  125. package/dist/esm/biggive-form.entry.js +1 -1
  126. package/dist/esm/biggive-formatted-text.entry.js +1 -1
  127. package/dist/esm/biggive-grid.entry.js +1 -1
  128. package/dist/esm/biggive-heading-banner.entry.js +1 -1
  129. package/dist/esm/biggive-heading.entry.js +1 -1
  130. package/dist/esm/biggive-hero-image.entry.js +1 -1
  131. package/dist/esm/biggive-icon-button.entry.js +1 -1
  132. package/dist/esm/biggive-image-button.entry.js +1 -1
  133. package/dist/esm/biggive-image-card.entry.js +1 -1
  134. package/dist/esm/biggive-image-feature.entry.js +1 -1
  135. package/dist/esm/biggive-image.entry.js +1 -1
  136. package/dist/esm/biggive-main-menu.entry.js +1 -1
  137. package/dist/esm/biggive-misc-icon.entry.js +1 -1
  138. package/dist/esm/biggive-nav-group.entry.js +1 -1
  139. package/dist/esm/biggive-nav-item.entry.js +1 -1
  140. package/dist/esm/biggive-page-column.entry.js +1 -1
  141. package/dist/esm/biggive-page-columns.entry.js +1 -1
  142. package/dist/esm/biggive-page-section.entry.js +1 -1
  143. package/dist/esm/biggive-popup.entry.js +1 -1
  144. package/dist/esm/biggive-progress-bar.entry.js +1 -1
  145. package/dist/esm/biggive-quote.entry.js +1 -1
  146. package/dist/esm/biggive-sheet.entry.js +1 -1
  147. package/dist/esm/biggive-social-icon.entry.js +1 -1
  148. package/dist/esm/biggive-tab.entry.js +1 -1
  149. package/dist/esm/biggive-tabbed-content.entry.js +1 -1
  150. package/dist/esm/biggive-table.entry.js +1 -1
  151. package/dist/esm/biggive-text-input.entry.js +1 -1
  152. package/dist/esm/biggive-timeline-entry.entry.js +1 -1
  153. package/dist/esm/biggive-timeline.entry.js +1 -1
  154. package/dist/esm/biggive-totalizer-ticker-item.entry.js +1 -1
  155. package/dist/esm/biggive-totalizer.entry.js +1 -1
  156. package/dist/esm/biggive-video-feature.entry.js +1 -1
  157. package/dist/esm/biggive-video.entry.js +1 -1
  158. package/dist/esm/biggive.js +3 -3
  159. package/dist/esm/{index-BxwdmTCA.js → index-Cml8trro.js} +10 -45
  160. package/dist/esm/loader.js +2 -2
  161. package/dist/esm/philco-footer.entry.js +1 -1
  162. package/dist/esm/philco-main-menu.entry.js +1 -1
  163. package/dist/types/stencil-public-runtime.d.ts +0 -1
  164. package/hydrate/index.js +381 -840
  165. package/hydrate/index.mjs +381 -840
  166. package/package.json +2 -2
  167. package/dist/biggive/p-4537f8ba.entry.js +0 -1
  168. package/dist/biggive/p-4dadc88f.entry.js +0 -1
  169. package/dist/biggive/p-BxwdmTCA.js +0 -2
  170. package/dist/biggive/p-a329e956.entry.js +0 -1
  171. package/dist/biggive/p-a5f2d918.entry.js +0 -1
package/hydrate/index.mjs CHANGED
@@ -132,8 +132,10 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
132
132
  const NAMESPACE = 'biggive';
133
133
  const BUILD = /* biggive */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
134
134
 
135
+ const globalStyles = "a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}";
136
+
135
137
  /*
136
- Stencil Hydrate Platform v4.43.5 | MIT Licensed | https://stenciljs.com
138
+ Stencil Hydrate Platform v4.43.2 | MIT Licensed | https://stenciljs.com
137
139
  */
138
140
  var __create = Object.create;
139
141
  var __defProp = Object.defineProperty;
@@ -168,7 +170,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
168
170
  __defProp(target, "default", { value: mod, enumerable: true }) ,
169
171
  mod
170
172
  ));
171
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
173
+ var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
172
174
  var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
173
175
  var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
174
176
  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);
@@ -423,9 +425,9 @@ function getPropertyDescriptor(obj, memberName, getOnly) {
423
425
 
424
426
  // src/utils/es2022-rewire-class-members.ts
425
427
  var reWireGetterSetter = (instance, hostRef) => {
426
- var _a2;
428
+ var _a;
427
429
  const cmpMeta = hostRef.$cmpMeta$;
428
- const members = Object.entries((_a2 = cmpMeta.$members$) != null ? _a2 : {});
430
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
429
431
  members.map(([memberName, [memberFlags]]) => {
430
432
  if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
431
433
  const ogValue = instance[memberName];
@@ -482,14 +484,18 @@ function createStyleSheetIfNeededAndSupported(styles2) {
482
484
  // src/utils/shadow-root.ts
483
485
  var globalStyleSheet;
484
486
  function createShadowRoot(cmpMeta) {
485
- var _a2;
487
+ var _a;
486
488
  const opts = { mode: "open" };
487
489
  const shadowRoot = this.attachShadow(opts);
488
- if (globalStyleSheet === void 0) globalStyleSheet = (_a2 = createStyleSheetIfNeededAndSupported()) != null ? _a2 : null;
490
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
489
491
  if (globalStyleSheet) {
490
492
  {
491
493
  shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
492
494
  }
495
+ } else {
496
+ const styleElm = document.createElement("style");
497
+ styleElm.innerHTML = globalStyles;
498
+ shadowRoot.prepend(styleElm);
493
499
  }
494
500
  }
495
501
  var updateFallbackSlotVisibility = (elm) => {
@@ -621,8 +627,8 @@ function dispatchSlotChangeEvent(elm) {
621
627
  elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
622
628
  }
623
629
  function findSlotFromSlottedNode(slottedNode, parentHost) {
624
- var _a2;
625
- parentHost = parentHost || ((_a2 = slottedNode["s-ol"]) == null ? void 0 : _a2.parentElement);
630
+ var _a;
631
+ parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
626
632
  if (!parentHost) return { slotNode: null, slotName: "" };
627
633
  const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
628
634
  const childNodes = internalCall(parentHost, "childNodes");
@@ -656,8 +662,8 @@ var uniqueTime = (key, measureText) => {
656
662
 
657
663
  // src/utils/query-nonce-meta-tag-content.ts
658
664
  function queryNonceMetaTagContent(doc) {
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;
665
+ var _a, _b, _c;
666
+ 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;
661
667
  }
662
668
 
663
669
  // src/runtime/styles.ts
@@ -670,7 +676,7 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
670
676
  styles.set(scopeId2, style);
671
677
  };
672
678
  var addStyle = (styleContainerNode, cmpMeta, mode) => {
673
- var _a2;
679
+ var _a;
674
680
  const scopeId2 = getScopeId(cmpMeta);
675
681
  const style = styles.get(scopeId2);
676
682
  if (!win.document) {
@@ -691,7 +697,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
691
697
  } else if (!appliedStyles.has(scopeId2)) {
692
698
  styleElm = win.document.createElement("style");
693
699
  styleElm.textContent = style;
694
- const nonce = (_a2 = plt.$nonce$) != null ? _a2 : queryNonceMetaTagContent(win.document);
700
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
695
701
  if (nonce != null) {
696
702
  styleElm.setAttribute("nonce", nonce);
697
703
  }
@@ -875,7 +881,7 @@ var convertToPrivate = (node) => {
875
881
 
876
882
  // src/runtime/client-hydrate.ts
877
883
  var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
878
- var _a2, _b, _c, _d;
884
+ var _a, _b, _c, _d;
879
885
  const endHydrate = createTime("hydrateClient", tagName);
880
886
  const shadowRoot = hostElm.shadowRoot;
881
887
  const childRenderNodes = [];
@@ -912,7 +918,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
912
918
  if (childRenderNode.$tag$ === "slot") {
913
919
  node["s-cr"] = hostElm["s-cr"];
914
920
  }
915
- } else if (((_a2 = childRenderNode.$tag$) == null ? void 0 : _a2.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
921
+ } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
916
922
  const cmpMeta = getHostRef(childRenderNode.$elm$);
917
923
  if (cmpMeta) {
918
924
  const scopeId3 = getScopeId(
@@ -1244,10 +1250,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
1244
1250
  parentVNode.$children$[childVNode.$index$] = childVNode;
1245
1251
  }
1246
1252
  var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1247
- var _a2, _b;
1253
+ var _a, _b;
1248
1254
  let slottedNode = slotNode.nextSibling;
1249
1255
  slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1250
- if (!slottedNode || ((_a2 = slottedNode.nodeValue) == null ? void 0 : _a2.startsWith(SLOT_NODE_ID + "."))) return;
1256
+ if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1251
1257
  do {
1252
1258
  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 */))) {
1253
1259
  slottedNode["s-sn"] = slotName;
@@ -1675,31 +1681,6 @@ var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
1675
1681
  return cssText;
1676
1682
  };
1677
1683
 
1678
- // src/runtime/normalize-watchers.ts
1679
- var normalizeWatchers = (raw) => {
1680
- if (!raw) return void 0;
1681
- const keys = Object.keys(raw);
1682
- if (keys.length === 0) return void 0;
1683
- let hasLegacy = false;
1684
- for (const propName of keys) {
1685
- if (hasLegacy) break;
1686
- for (const h2 of raw[propName]) {
1687
- if (typeof h2 === "string") {
1688
- hasLegacy = true;
1689
- break;
1690
- }
1691
- }
1692
- }
1693
- if (!hasLegacy) return raw;
1694
- const out = {};
1695
- for (const propName of keys) {
1696
- out[propName] = raw[propName].map(
1697
- (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
1698
- );
1699
- }
1700
- return out;
1701
- };
1702
-
1703
1684
  // src/utils/remote-value.ts
1704
1685
  var RemoteValue = class _RemoteValue {
1705
1686
  /**
@@ -1796,19 +1777,11 @@ var RemoteValue = class _RemoteValue {
1796
1777
  };
1797
1778
 
1798
1779
  // src/utils/serialize.ts
1799
- function decodeBase64Unicode(base64) {
1800
- const binary = atob(base64);
1801
- const bytes = new Uint8Array(binary.length);
1802
- for (let i2 = 0; i2 < binary.length; i2++) {
1803
- bytes[i2] = binary.charCodeAt(i2);
1804
- }
1805
- return new TextDecoder().decode(bytes);
1806
- }
1807
1780
  function deserializeProperty(value) {
1808
1781
  if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
1809
1782
  return value;
1810
1783
  }
1811
- return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
1784
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
1812
1785
  }
1813
1786
 
1814
1787
  // src/runtime/parse-property-value.ts
@@ -1834,8 +1807,8 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1834
1807
  return propValue;
1835
1808
  };
1836
1809
  var getElement = (ref) => {
1837
- var _a2;
1838
- return (_a2 = getHostRef(ref)) == null ? void 0 : _a2.$hostElement$ ;
1810
+ var _a;
1811
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
1839
1812
  };
1840
1813
 
1841
1814
  // src/runtime/event-emitter.ts
@@ -2049,7 +2022,7 @@ var isSvgMode = false;
2049
2022
  var refCallbacksToRemove = [];
2050
2023
  var refCallbacksToAttach = [];
2051
2024
  var createElm = (oldParentVNode, newParentVNode, childIndex) => {
2052
- var _a2;
2025
+ var _a;
2053
2026
  const newVNode2 = newParentVNode.$children$[childIndex];
2054
2027
  let i2 = 0;
2055
2028
  let elm;
@@ -2120,7 +2093,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
2120
2093
  elm["s-sr"] = true;
2121
2094
  elm["s-cr"] = contentRef;
2122
2095
  elm["s-sn"] = newVNode2.$name$ || "";
2123
- elm["s-rf"] = (_a2 = newVNode2.$attrs$) == null ? void 0 : _a2.ref;
2096
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
2124
2097
  patchSlotNode(elm);
2125
2098
  oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
2126
2099
  if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
@@ -2460,12 +2433,12 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
2460
2433
  }
2461
2434
  };
2462
2435
  function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
2463
- var _a2, _b;
2436
+ var _a, _b;
2464
2437
  let scopeId2;
2465
2438
  if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
2466
2439
  const scopeName = slotNode["s-sn"];
2467
2440
  const hostName = slotNode["s-hn"];
2468
- (_a2 = newParent.classList) == null ? void 0 : _a2.add(scopeId2 + "-s");
2441
+ (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
2469
2442
  if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
2470
2443
  let child = (oldParent.__childNodes || oldParent.childNodes)[0];
2471
2444
  let found = false;
@@ -2481,7 +2454,7 @@ function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
2481
2454
  }
2482
2455
  }
2483
2456
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2484
- var _a2, _d, _e;
2457
+ var _a, _d, _e;
2485
2458
  const hostElm = hostRef.$hostElement$;
2486
2459
  const cmpMeta = hostRef.$cmpMeta$;
2487
2460
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -2529,7 +2502,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2529
2502
  const nodeToRelocate = relocateData.$nodeToRelocate$;
2530
2503
  const slotRefNode = relocateData.$slotRefNode$;
2531
2504
  if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
2532
- nodeToRelocate["s-ih"] = (_a2 = nodeToRelocate.hidden) != null ? _a2 : false;
2505
+ nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
2533
2506
  }
2534
2507
  if (slotRefNode) {
2535
2508
  const parentNodeRef = slotRefNode.parentNode;
@@ -2589,14 +2562,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2589
2562
  flushQueuedRefCallbacks();
2590
2563
  };
2591
2564
  var slotReferenceDebugNode = (slotVNode) => {
2592
- var _a2;
2593
- return (_a2 = win.document) == null ? void 0 : _a2.createComment(
2565
+ var _a;
2566
+ return (_a = win.document) == null ? void 0 : _a.createComment(
2594
2567
  `<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
2595
2568
  );
2596
2569
  };
2597
2570
  var originalLocationDebugNode = (nodeToRelocate) => {
2598
- var _a2;
2599
- return (_a2 = win.document) == null ? void 0 : _a2.createComment(
2571
+ var _a;
2572
+ return (_a = win.document) == null ? void 0 : _a.createComment(
2600
2573
  `org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
2601
2574
  );
2602
2575
  };
@@ -2666,7 +2639,7 @@ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then
2666
2639
  }) : fn();
2667
2640
  var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
2668
2641
  var updateComponent = async (hostRef, instance, isInitialLoad) => {
2669
- var _a2;
2642
+ var _a;
2670
2643
  const elm = hostRef.$hostElement$;
2671
2644
  const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
2672
2645
  const rc = elm["s-rc"];
@@ -2698,7 +2671,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
2698
2671
  endRender();
2699
2672
  endUpdate();
2700
2673
  {
2701
- const childrenPromises = (_a2 = elm["s-p"]) != null ? _a2 : [];
2674
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
2702
2675
  const postUpdate = () => postUpdateComponent(hostRef);
2703
2676
  if (childrenPromises.length === 0) {
2704
2677
  postUpdate();
@@ -2769,13 +2742,13 @@ var postUpdateComponent = (hostRef) => {
2769
2742
  }
2770
2743
  };
2771
2744
  var appDidLoad = (who) => {
2772
- var _a2;
2745
+ var _a;
2773
2746
  if (BUILD.asyncQueue) {
2774
2747
  plt.$flags$ |= 2 /* appLoaded */;
2775
2748
  }
2776
2749
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
2777
2750
  {
2778
- if ((_a2 = plt.$orgLocNodes$) == null ? void 0 : _a2.size) {
2751
+ if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
2779
2752
  plt.$orgLocNodes$.clear();
2780
2753
  }
2781
2754
  }
@@ -2791,8 +2764,8 @@ var safeCall = (instance, method, arg, elm) => {
2791
2764
  return void 0;
2792
2765
  };
2793
2766
  var addHydratedFlag = (elm) => {
2794
- var _a2;
2795
- return elm.classList.add((_a2 = BUILD.hydratedSelectorName) != null ? _a2 : "hydrated") ;
2767
+ var _a;
2768
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
2796
2769
  };
2797
2770
  var serverSideConnected = (elm) => {
2798
2771
  const children = elm.children;
@@ -2867,12 +2840,12 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
2867
2840
 
2868
2841
  // src/runtime/proxy-component.ts
2869
2842
  var proxyComponent = (Cstr, cmpMeta, flags) => {
2870
- var _a2;
2843
+ var _a;
2871
2844
  const prototype = Cstr.prototype;
2872
2845
  {
2873
2846
  {
2874
2847
  if (Cstr.watchers && !cmpMeta.$watchers$) {
2875
- cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
2848
+ cmpMeta.$watchers$ = Cstr.watchers;
2876
2849
  }
2877
2850
  if (Cstr.deserializers && !cmpMeta.$deserializers$) {
2878
2851
  cmpMeta.$deserializers$ = Cstr.deserializers;
@@ -2881,7 +2854,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
2881
2854
  cmpMeta.$serializers$ = Cstr.serializers;
2882
2855
  }
2883
2856
  }
2884
- const members = Object.entries((_a2 = cmpMeta.$members$) != null ? _a2 : {});
2857
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2885
2858
  members.map(([memberName, [memberFlags]]) => {
2886
2859
  if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
2887
2860
  const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
@@ -2959,7 +2932,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2959
2932
  }
2960
2933
  if (!Cstr.isProxied) {
2961
2934
  {
2962
- cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
2935
+ cmpMeta.$watchers$ = Cstr.watchers;
2963
2936
  cmpMeta.$serializers$ = Cstr.serializers;
2964
2937
  cmpMeta.$deserializers$ = Cstr.deserializers;
2965
2938
  }
@@ -3110,7 +3083,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
3110
3083
  const orgLocationNodes = [];
3111
3084
  parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);
3112
3085
  orgLocationNodes.forEach((orgLocationNode) => {
3113
- var _a2;
3086
+ var _a;
3114
3087
  if (orgLocationNode != null && orgLocationNode["s-nr"]) {
3115
3088
  const nodeRef = orgLocationNode["s-nr"];
3116
3089
  let hostId = nodeRef["s-host-id"];
@@ -3128,7 +3101,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
3128
3101
  }
3129
3102
  } else if (nodeRef.nodeType === 3 /* TextNode */) {
3130
3103
  if (hostId === 0) {
3131
- const textContent = (_a2 = nodeRef.nodeValue) == null ? void 0 : _a2.trim();
3104
+ const textContent = (_a = nodeRef.nodeValue) == null ? void 0 : _a.trim();
3132
3105
  if (textContent === "") {
3133
3106
  orgLocationNode.remove();
3134
3107
  return;
@@ -3158,7 +3131,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
3158
3131
  }
3159
3132
  };
3160
3133
  var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
3161
- var _a2;
3134
+ var _a;
3162
3135
  if (node == null) {
3163
3136
  return;
3164
3137
  }
@@ -3166,7 +3139,7 @@ var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
3166
3139
  orgLocationNodes.push(node);
3167
3140
  }
3168
3141
  if (node.nodeType === 1 /* ElementNode */) {
3169
- const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a2 = node.shadowRoot) == null ? void 0 : _a2.childNodes) || [])];
3142
+ const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a = node.shadowRoot) == null ? void 0 : _a.childNodes) || [])];
3170
3143
  childNodes.forEach((childNode) => {
3171
3144
  const hostRef = getHostRef(childNode);
3172
3145
  if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
@@ -3392,35 +3365,8 @@ var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
3392
3365
  };
3393
3366
 
3394
3367
  // node_modules/minimatch/dist/esm/ast.js
3395
- var _a;
3396
3368
  var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
3397
3369
  var isExtglobType = (c) => types.has(c);
3398
- var isExtglobAST = (c) => isExtglobType(c.type);
3399
- var adoptionMap = /* @__PURE__ */ new Map([
3400
- ["!", ["@"]],
3401
- ["?", ["?", "@"]],
3402
- ["@", ["@"]],
3403
- ["*", ["*", "+", "?", "@"]],
3404
- ["+", ["+", "@"]]
3405
- ]);
3406
- var adoptionWithSpaceMap = /* @__PURE__ */ new Map([
3407
- ["!", ["?"]],
3408
- ["@", ["?"]],
3409
- ["+", ["?", "*"]]
3410
- ]);
3411
- var adoptionAnyMap = /* @__PURE__ */ new Map([
3412
- ["!", ["?", "@"]],
3413
- ["?", ["?", "@"]],
3414
- ["@", ["?", "@"]],
3415
- ["*", ["*", "+", "?", "@"]],
3416
- ["+", ["+", "@", "?", "*"]]
3417
- ]);
3418
- var usurpMap = /* @__PURE__ */ new Map([
3419
- ["!", /* @__PURE__ */ new Map([["!", "@"]])],
3420
- ["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
3421
- ["@", /* @__PURE__ */ new Map([["!", "!"], ["?", "?"], ["@", "@"], ["*", "*"], ["+", "+"]])],
3422
- ["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
3423
- ]);
3424
3370
  var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
3425
3371
  var startNoDot = "(?!\\.)";
3426
3372
  var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
@@ -3430,8 +3376,8 @@ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
3430
3376
  var qmark = "[^/]";
3431
3377
  var star = qmark + "*?";
3432
3378
  var starNoEmpty = qmark + "+?";
3433
- 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;
3434
- var AST = class {
3379
+ var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
3380
+ var _AST = class _AST {
3435
3381
  constructor(type, parent, options = {}) {
3436
3382
  __privateAdd(this, _AST_instances);
3437
3383
  __publicField(this, "type");
@@ -3484,44 +3430,44 @@ var AST = class {
3484
3430
  for (const p of parts) {
3485
3431
  if (p === "")
3486
3432
  continue;
3487
- if (typeof p !== "string" && !(p instanceof _a && __privateGet(p, _parent) === this)) {
3433
+ if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
3488
3434
  throw new Error("invalid part: " + p);
3489
3435
  }
3490
3436
  __privateGet(this, _parts).push(p);
3491
3437
  }
3492
3438
  }
3493
3439
  toJSON() {
3494
- var _a2;
3440
+ var _a;
3495
3441
  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())];
3496
3442
  if (this.isStart() && !this.type)
3497
3443
  ret.unshift([]);
3498
- if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")) {
3444
+ if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")) {
3499
3445
  ret.push({});
3500
3446
  }
3501
3447
  return ret;
3502
3448
  }
3503
3449
  isStart() {
3504
- var _a2;
3450
+ var _a;
3505
3451
  if (__privateGet(this, _root) === this)
3506
3452
  return true;
3507
- if (!((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.isStart()))
3453
+ if (!((_a = __privateGet(this, _parent)) == null ? void 0 : _a.isStart()))
3508
3454
  return false;
3509
3455
  if (__privateGet(this, _parentIndex) === 0)
3510
3456
  return true;
3511
3457
  const p = __privateGet(this, _parent);
3512
3458
  for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
3513
3459
  const pp = __privateGet(p, _parts)[i2];
3514
- if (!(pp instanceof _a && pp.type === "!")) {
3460
+ if (!(pp instanceof _AST && pp.type === "!")) {
3515
3461
  return false;
3516
3462
  }
3517
3463
  }
3518
3464
  return true;
3519
3465
  }
3520
3466
  isEnd() {
3521
- var _a2, _b, _c;
3467
+ var _a, _b, _c;
3522
3468
  if (__privateGet(this, _root) === this)
3523
3469
  return true;
3524
- if (((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")
3470
+ if (((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")
3525
3471
  return true;
3526
3472
  if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
3527
3473
  return false;
@@ -3537,16 +3483,16 @@ var AST = class {
3537
3483
  this.push(part.clone(this));
3538
3484
  }
3539
3485
  clone(parent) {
3540
- const c = new _a(this.type, parent);
3486
+ const c = new _AST(this.type, parent);
3541
3487
  for (const p of __privateGet(this, _parts)) {
3542
3488
  c.copyIn(p);
3543
3489
  }
3544
3490
  return c;
3545
3491
  }
3546
3492
  static fromGlob(pattern, options = {}) {
3547
- var _a2;
3548
- const ast = new _a(null, void 0, options);
3549
- __privateMethod(_a2 = _a, _AST_static, parseAST_fn).call(_a2, pattern, ast, 0, options, 0);
3493
+ var _a;
3494
+ const ast = new _AST(null, void 0, options);
3495
+ __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, pattern, ast, 0, options);
3550
3496
  return ast;
3551
3497
  }
3552
3498
  // returns the regular expression if there's magic, or the unescaped
@@ -3639,17 +3585,15 @@ var AST = class {
3639
3585
  // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
3640
3586
  // or start or whatever) and prepend ^ or / at the Regexp construction.
3641
3587
  toRegExpSource(allowDot) {
3642
- var _a2;
3588
+ var _a;
3643
3589
  const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
3644
- if (__privateGet(this, _root) === this) {
3645
- __privateMethod(this, _AST_instances, flatten_fn).call(this);
3590
+ if (__privateGet(this, _root) === this)
3646
3591
  __privateMethod(this, _AST_instances, fillNegs_fn).call(this);
3647
- }
3648
- if (!isExtglobAST(this)) {
3592
+ if (!this.type) {
3649
3593
  const noEmpty = this.isStart() && this.isEnd();
3650
3594
  const src = __privateGet(this, _parts).map((p) => {
3651
- var _a3;
3652
- const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a3 = _a, _AST_static, parseGlob_fn).call(_a3, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
3595
+ var _a2;
3596
+ const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a2 = _AST, _AST_static, parseGlob_fn).call(_a2, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
3653
3597
  __privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
3654
3598
  __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
3655
3599
  return re;
@@ -3672,7 +3616,7 @@ var AST = class {
3672
3616
  }
3673
3617
  }
3674
3618
  let end = "";
3675
- if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!") {
3619
+ if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!") {
3676
3620
  end = "(?:$|\\/)";
3677
3621
  }
3678
3622
  const final2 = start2 + src + end;
@@ -3688,10 +3632,9 @@ var AST = class {
3688
3632
  let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
3689
3633
  if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
3690
3634
  const s = this.toString();
3691
- const me = this;
3692
- __privateSet(me, _parts, [s]);
3693
- me.type = null;
3694
- __privateSet(me, _hasMagic, void 0);
3635
+ __privateSet(this, _parts, [s]);
3636
+ this.type = null;
3637
+ __privateSet(this, _hasMagic, void 0);
3695
3638
  return [s, unescape(this.toString()), false, false];
3696
3639
  }
3697
3640
  let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
@@ -3760,9 +3703,8 @@ fillNegs_fn = function() {
3760
3703
  return this;
3761
3704
  };
3762
3705
  _AST_static = new WeakSet();
3763
- parseAST_fn = function(str, ast, pos, opt, extDepth) {
3764
- var _a2, _b, _c, _d, _e;
3765
- const maxDepth = (_a2 = opt.maxExtglobRecursion) != null ? _a2 : 2;
3706
+ parseAST_fn = function(str, ast, pos, opt) {
3707
+ var _a, _b;
3766
3708
  let escaping = false;
3767
3709
  let inBrace = false;
3768
3710
  let braceStart = -1;
@@ -3794,12 +3736,11 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
3794
3736
  acc2 += c;
3795
3737
  continue;
3796
3738
  }
3797
- const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i3) === "(" && extDepth <= maxDepth;
3798
- if (doRecurse) {
3739
+ if (!opt.noext && isExtglobType(c) && str.charAt(i3) === "(") {
3799
3740
  ast.push(acc2);
3800
3741
  acc2 = "";
3801
- const ext2 = new _a(c, ast);
3802
- i3 = __privateMethod(_b = _a, _AST_static, parseAST_fn).call(_b, str, ext2, i3, opt, extDepth + 1);
3742
+ const ext2 = new _AST(c, ast);
3743
+ i3 = __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, str, ext2, i3, opt);
3803
3744
  ast.push(ext2);
3804
3745
  continue;
3805
3746
  }
@@ -3809,7 +3750,7 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
3809
3750
  return i3;
3810
3751
  }
3811
3752
  let i2 = pos + 1;
3812
- let part = new _a(null, ast);
3753
+ let part = new _AST(null, ast);
3813
3754
  const parts = [];
3814
3755
  let acc = "";
3815
3756
  while (i2 < str.length) {
@@ -3836,22 +3777,19 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
3836
3777
  acc += c;
3837
3778
  continue;
3838
3779
  }
3839
- const doRecurse = isExtglobType(c) && str.charAt(i2) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
3840
- (extDepth <= maxDepth || ast && __privateMethod(_c = ast, _AST_instances, canAdoptType_fn).call(_c, c));
3841
- if (doRecurse) {
3842
- const depthAdd = ast && __privateMethod(_d = ast, _AST_instances, canAdoptType_fn).call(_d, c) ? 0 : 1;
3780
+ if (isExtglobType(c) && str.charAt(i2) === "(") {
3843
3781
  part.push(acc);
3844
3782
  acc = "";
3845
- const ext2 = new _a(c, part);
3783
+ const ext2 = new _AST(c, part);
3846
3784
  part.push(ext2);
3847
- i2 = __privateMethod(_e = _a, _AST_static, parseAST_fn).call(_e, str, ext2, i2, opt, extDepth + depthAdd);
3785
+ i2 = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt);
3848
3786
  continue;
3849
3787
  }
3850
3788
  if (c === "|") {
3851
3789
  part.push(acc);
3852
3790
  acc = "";
3853
3791
  parts.push(part);
3854
- part = new _a(null, ast);
3792
+ part = new _AST(null, ast);
3855
3793
  continue;
3856
3794
  }
3857
3795
  if (c === ")") {
@@ -3870,100 +3808,6 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
3870
3808
  __privateSet(ast, _parts, [str.substring(pos - 1)]);
3871
3809
  return i2;
3872
3810
  };
3873
- canAdoptWithSpace_fn = function(child) {
3874
- return __privateMethod(this, _AST_instances, canAdopt_fn).call(this, child, adoptionWithSpaceMap);
3875
- };
3876
- canAdopt_fn = function(child, map2 = adoptionMap) {
3877
- if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null) {
3878
- return false;
3879
- }
3880
- const gc = __privateGet(child, _parts)[0];
3881
- if (!gc || typeof gc !== "object" || gc.type === null) {
3882
- return false;
3883
- }
3884
- return __privateMethod(this, _AST_instances, canAdoptType_fn).call(this, gc.type, map2);
3885
- };
3886
- canAdoptType_fn = function(c, map2 = adoptionAnyMap) {
3887
- var _a2;
3888
- return !!((_a2 = map2.get(this.type)) == null ? void 0 : _a2.includes(c));
3889
- };
3890
- adoptWithSpace_fn = function(child, index) {
3891
- const gc = __privateGet(child, _parts)[0];
3892
- const blank = new _a(null, gc, this.options);
3893
- __privateGet(blank, _parts).push("");
3894
- gc.push(blank);
3895
- __privateMethod(this, _AST_instances, adopt_fn).call(this, child, index);
3896
- };
3897
- adopt_fn = function(child, index) {
3898
- const gc = __privateGet(child, _parts)[0];
3899
- __privateGet(this, _parts).splice(index, 1, ...__privateGet(gc, _parts));
3900
- for (const p of __privateGet(gc, _parts)) {
3901
- if (typeof p === "object")
3902
- __privateSet(p, _parent, this);
3903
- }
3904
- __privateSet(this, _toString, void 0);
3905
- };
3906
- canUsurpType_fn = function(c) {
3907
- const m = usurpMap.get(this.type);
3908
- return !!(m == null ? void 0 : m.has(c));
3909
- };
3910
- canUsurp_fn = function(child) {
3911
- if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null || __privateGet(this, _parts).length !== 1) {
3912
- return false;
3913
- }
3914
- const gc = __privateGet(child, _parts)[0];
3915
- if (!gc || typeof gc !== "object" || gc.type === null) {
3916
- return false;
3917
- }
3918
- return __privateMethod(this, _AST_instances, canUsurpType_fn).call(this, gc.type);
3919
- };
3920
- usurp_fn = function(child) {
3921
- const m = usurpMap.get(this.type);
3922
- const gc = __privateGet(child, _parts)[0];
3923
- const nt = m == null ? void 0 : m.get(gc.type);
3924
- if (!nt)
3925
- return false;
3926
- __privateSet(this, _parts, __privateGet(gc, _parts));
3927
- for (const p of __privateGet(this, _parts)) {
3928
- if (typeof p === "object")
3929
- __privateSet(p, _parent, this);
3930
- }
3931
- this.type = nt;
3932
- __privateSet(this, _toString, void 0);
3933
- __privateSet(this, _emptyExt, false);
3934
- };
3935
- flatten_fn = function() {
3936
- var _a2, _b;
3937
- if (!isExtglobAST(this)) {
3938
- for (const p of __privateGet(this, _parts)) {
3939
- if (typeof p === "object")
3940
- __privateMethod(_a2 = p, _AST_instances, flatten_fn).call(_a2);
3941
- }
3942
- } else {
3943
- let iterations = 0;
3944
- let done = false;
3945
- do {
3946
- done = true;
3947
- for (let i2 = 0; i2 < __privateGet(this, _parts).length; i2++) {
3948
- const c = __privateGet(this, _parts)[i2];
3949
- if (typeof c === "object") {
3950
- __privateMethod(_b = c, _AST_instances, flatten_fn).call(_b);
3951
- if (__privateMethod(this, _AST_instances, canAdopt_fn).call(this, c)) {
3952
- done = false;
3953
- __privateMethod(this, _AST_instances, adopt_fn).call(this, c, i2);
3954
- } else if (__privateMethod(this, _AST_instances, canAdoptWithSpace_fn).call(this, c)) {
3955
- done = false;
3956
- __privateMethod(this, _AST_instances, adoptWithSpace_fn).call(this, c, i2);
3957
- } else if (__privateMethod(this, _AST_instances, canUsurp_fn).call(this, c)) {
3958
- done = false;
3959
- __privateMethod(this, _AST_instances, usurp_fn).call(this, c);
3960
- }
3961
- }
3962
- }
3963
- } while (!done && ++iterations < 10);
3964
- }
3965
- __privateSet(this, _toString, void 0);
3966
- };
3967
3811
  partsToRegExp_fn = function(dot) {
3968
3812
  return __privateGet(this, _parts).map((p) => {
3969
3813
  if (typeof p === "string") {
@@ -3978,13 +3822,11 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
3978
3822
  let escaping = false;
3979
3823
  let re = "";
3980
3824
  let uflag = false;
3981
- let inStar = false;
3982
3825
  for (let i2 = 0; i2 < glob.length; i2++) {
3983
3826
  const c = glob.charAt(i2);
3984
3827
  if (escaping) {
3985
3828
  escaping = false;
3986
3829
  re += (reSpecials.has(c) ? "\\" : "") + c;
3987
- inStar = false;
3988
3830
  continue;
3989
3831
  }
3990
3832
  if (c === "\\") {
@@ -4002,19 +3844,16 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
4002
3844
  uflag = uflag || needUflag;
4003
3845
  i2 += consumed - 1;
4004
3846
  hasMagic = hasMagic || magic;
4005
- inStar = false;
4006
3847
  continue;
4007
3848
  }
4008
3849
  }
4009
3850
  if (c === "*") {
4010
- if (inStar)
4011
- continue;
4012
- inStar = true;
4013
- re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
3851
+ if (noEmpty && glob === "*")
3852
+ re += starNoEmpty;
3853
+ else
3854
+ re += star;
4014
3855
  hasMagic = true;
4015
3856
  continue;
4016
- } else {
4017
- inStar = false;
4018
3857
  }
4019
3858
  if (c === "?") {
4020
3859
  re += qmark;
@@ -4025,8 +3864,8 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
4025
3864
  }
4026
3865
  return [re, unescape(glob), !!hasMagic, uflag];
4027
3866
  };
4028
- __privateAdd(AST, _AST_static);
4029
- _a = AST;
3867
+ __privateAdd(_AST, _AST_static);
3868
+ var AST = _AST;
4030
3869
 
4031
3870
  // node_modules/minimatch/dist/esm/escape.js
4032
3871
  var escape = (s, { windowsPathsNoEscape = false } = {}) => {
@@ -4165,33 +4004,28 @@ var match = (list, pattern, options = {}) => {
4165
4004
  minimatch.match = match;
4166
4005
  var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
4167
4006
  var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
4168
- var _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn;
4169
4007
  var Minimatch = class {
4008
+ options;
4009
+ set;
4010
+ pattern;
4011
+ windowsPathsNoEscape;
4012
+ nonegate;
4013
+ negate;
4014
+ comment;
4015
+ empty;
4016
+ preserveMultipleSlashes;
4017
+ partial;
4018
+ globSet;
4019
+ globParts;
4020
+ nocase;
4021
+ isWindows;
4022
+ platform;
4023
+ windowsNoMagicRoot;
4024
+ regexp;
4170
4025
  constructor(pattern, options = {}) {
4171
- __privateAdd(this, _Minimatch_instances);
4172
- __publicField(this, "options");
4173
- __publicField(this, "set");
4174
- __publicField(this, "pattern");
4175
- __publicField(this, "windowsPathsNoEscape");
4176
- __publicField(this, "nonegate");
4177
- __publicField(this, "negate");
4178
- __publicField(this, "comment");
4179
- __publicField(this, "empty");
4180
- __publicField(this, "preserveMultipleSlashes");
4181
- __publicField(this, "partial");
4182
- __publicField(this, "globSet");
4183
- __publicField(this, "globParts");
4184
- __publicField(this, "nocase");
4185
- __publicField(this, "isWindows");
4186
- __publicField(this, "platform");
4187
- __publicField(this, "windowsNoMagicRoot");
4188
- __publicField(this, "maxGlobstarRecursion");
4189
- __publicField(this, "regexp");
4190
- var _a2;
4191
4026
  assertValidPattern(pattern);
4192
4027
  options = options || {};
4193
4028
  this.options = options;
4194
- this.maxGlobstarRecursion = (_a2 = options.maxGlobstarRecursion) != null ? _a2 : 200;
4195
4029
  this.pattern = pattern;
4196
4030
  this.platform = options.platform || defaultPlatform;
4197
4031
  this.isWindows = this.platform === "win32";
@@ -4459,11 +4293,10 @@ var Minimatch = class {
4459
4293
  for (let i2 = 0; i2 < globParts.length - 1; i2++) {
4460
4294
  for (let j = i2 + 1; j < globParts.length; j++) {
4461
4295
  const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
4462
- if (matched) {
4463
- globParts[i2] = [];
4464
- globParts[j] = matched;
4465
- break;
4466
- }
4296
+ if (!matched)
4297
+ continue;
4298
+ globParts[i2] = matched;
4299
+ globParts[j] = [];
4467
4300
  }
4468
4301
  }
4469
4302
  return globParts.filter((gs) => gs.length);
@@ -4524,8 +4357,7 @@ var Minimatch = class {
4524
4357
  // out of pattern, then that's fine, as long as all
4525
4358
  // the parts match.
4526
4359
  matchOne(file, pattern, partial = false) {
4527
- let fileStartIndex = 0;
4528
- let patternStartIndex = 0;
4360
+ const options = this.options;
4529
4361
  if (this.isWindows) {
4530
4362
  const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
4531
4363
  const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
@@ -4534,14 +4366,14 @@ var Minimatch = class {
4534
4366
  const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
4535
4367
  const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
4536
4368
  if (typeof fdi === "number" && typeof pdi === "number") {
4537
- const [fd, pd] = [
4538
- file[fdi],
4539
- pattern[pdi]
4540
- ];
4369
+ const [fd, pd] = [file[fdi], pattern[pdi]];
4541
4370
  if (fd.toLowerCase() === pd.toLowerCase()) {
4542
4371
  pattern[pdi] = fd;
4543
- patternStartIndex = pdi;
4544
- fileStartIndex = fdi;
4372
+ if (pdi > fdi) {
4373
+ pattern = pattern.slice(pdi);
4374
+ } else if (fdi > pdi) {
4375
+ file = file.slice(fdi);
4376
+ }
4545
4377
  }
4546
4378
  }
4547
4379
  }
@@ -4549,10 +4381,71 @@ var Minimatch = class {
4549
4381
  if (optimizationLevel >= 2) {
4550
4382
  file = this.levelTwoFileOptimize(file);
4551
4383
  }
4552
- if (pattern.includes(GLOBSTAR)) {
4553
- return __privateMethod(this, _Minimatch_instances, matchGlobstar_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
4384
+ this.debug("matchOne", this, { file, pattern });
4385
+ this.debug("matchOne", file.length, pattern.length);
4386
+ for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
4387
+ this.debug("matchOne loop");
4388
+ var p = pattern[pi];
4389
+ var f = file[fi];
4390
+ this.debug(pattern, p, f);
4391
+ if (p === false) {
4392
+ return false;
4393
+ }
4394
+ if (p === GLOBSTAR) {
4395
+ this.debug("GLOBSTAR", [pattern, p, f]);
4396
+ var fr = fi;
4397
+ var pr = pi + 1;
4398
+ if (pr === pl) {
4399
+ this.debug("** at the end");
4400
+ for (; fi < fl; fi++) {
4401
+ if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
4402
+ return false;
4403
+ }
4404
+ return true;
4405
+ }
4406
+ while (fr < fl) {
4407
+ var swallowee = file[fr];
4408
+ this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
4409
+ if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
4410
+ this.debug("globstar found match!", fr, fl, swallowee);
4411
+ return true;
4412
+ } else {
4413
+ if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
4414
+ this.debug("dot detected!", file, fr, pattern, pr);
4415
+ break;
4416
+ }
4417
+ this.debug("globstar swallow a segment, and continue");
4418
+ fr++;
4419
+ }
4420
+ }
4421
+ if (partial) {
4422
+ this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
4423
+ if (fr === fl) {
4424
+ return true;
4425
+ }
4426
+ }
4427
+ return false;
4428
+ }
4429
+ let hit;
4430
+ if (typeof p === "string") {
4431
+ hit = f === p;
4432
+ this.debug("string match", p, f, hit);
4433
+ } else {
4434
+ hit = p.test(f);
4435
+ this.debug("pattern match", p, f, hit);
4436
+ }
4437
+ if (!hit)
4438
+ return false;
4439
+ }
4440
+ if (fi === fl && pi === pl) {
4441
+ return true;
4442
+ } else if (fi === fl) {
4443
+ return partial;
4444
+ } else if (pi === pl) {
4445
+ return fi === fl - 1 && file[fi] === "";
4446
+ } else {
4447
+ throw new Error("wtf?");
4554
4448
  }
4555
- return __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
4556
4449
  }
4557
4450
  braceExpand() {
4558
4451
  return braceExpand(this.pattern, this.options);
@@ -4691,135 +4584,6 @@ var Minimatch = class {
4691
4584
  return minimatch.defaults(def).Minimatch;
4692
4585
  }
4693
4586
  };
4694
- _Minimatch_instances = new WeakSet();
4695
- matchGlobstar_fn = function(file, pattern, partial, fileIndex, patternIndex) {
4696
- const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
4697
- const lastgs = pattern.lastIndexOf(GLOBSTAR);
4698
- const [head, body, tail] = partial ? [
4699
- pattern.slice(patternIndex, firstgs),
4700
- pattern.slice(firstgs + 1),
4701
- []
4702
- ] : [
4703
- pattern.slice(patternIndex, firstgs),
4704
- pattern.slice(firstgs + 1, lastgs),
4705
- pattern.slice(lastgs + 1)
4706
- ];
4707
- if (head.length) {
4708
- const fileHead = file.slice(fileIndex, fileIndex + head.length);
4709
- if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, fileHead, head, partial, 0, 0))
4710
- return false;
4711
- fileIndex += head.length;
4712
- }
4713
- let fileTailMatch = 0;
4714
- if (tail.length) {
4715
- if (tail.length + fileIndex > file.length)
4716
- return false;
4717
- let tailStart = file.length - tail.length;
4718
- if (__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0)) {
4719
- fileTailMatch = tail.length;
4720
- } else {
4721
- if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
4722
- return false;
4723
- }
4724
- tailStart--;
4725
- if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0))
4726
- return false;
4727
- fileTailMatch = tail.length + 1;
4728
- }
4729
- }
4730
- if (!body.length) {
4731
- let sawSome = !!fileTailMatch;
4732
- for (let i3 = fileIndex; i3 < file.length - fileTailMatch; i3++) {
4733
- const f = String(file[i3]);
4734
- sawSome = true;
4735
- if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
4736
- return false;
4737
- }
4738
- }
4739
- return partial || sawSome;
4740
- }
4741
- const bodySegments = [[[], 0]];
4742
- let currentBody = bodySegments[0];
4743
- let nonGsParts = 0;
4744
- const nonGsPartsSums = [0];
4745
- for (const b of body) {
4746
- if (b === GLOBSTAR) {
4747
- nonGsPartsSums.push(nonGsParts);
4748
- currentBody = [[], 0];
4749
- bodySegments.push(currentBody);
4750
- } else {
4751
- currentBody[0].push(b);
4752
- nonGsParts++;
4753
- }
4754
- }
4755
- let i2 = bodySegments.length - 1;
4756
- const fileLength = file.length - fileTailMatch;
4757
- for (const b of bodySegments) {
4758
- b[1] = fileLength - (nonGsPartsSums[i2--] + b[0].length);
4759
- }
4760
- return !!__privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
4761
- };
4762
- matchGlobStarBodySections_fn = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
4763
- const bs = bodySegments[bodyIndex];
4764
- if (!bs) {
4765
- for (let i2 = fileIndex; i2 < file.length; i2++) {
4766
- sawTail = true;
4767
- const f = file[i2];
4768
- if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
4769
- return false;
4770
- }
4771
- }
4772
- return sawTail;
4773
- }
4774
- const [body, after] = bs;
4775
- while (fileIndex <= after) {
4776
- const m = __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
4777
- if (m && globStarDepth < this.maxGlobstarRecursion) {
4778
- const sub = __privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
4779
- if (sub !== false)
4780
- return sub;
4781
- }
4782
- const f = file[fileIndex];
4783
- if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
4784
- return false;
4785
- }
4786
- fileIndex++;
4787
- }
4788
- return partial || null;
4789
- };
4790
- matchOne_fn = function(file, pattern, partial, fileIndex, patternIndex) {
4791
- let fi;
4792
- let pi;
4793
- let pl;
4794
- let fl;
4795
- for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
4796
- this.debug("matchOne loop");
4797
- let p = pattern[pi];
4798
- let f = file[fi];
4799
- this.debug(pattern, p, f);
4800
- if (p === false || p === GLOBSTAR)
4801
- return false;
4802
- let hit;
4803
- if (typeof p === "string") {
4804
- hit = f === p;
4805
- this.debug("string match", p, f, hit);
4806
- } else {
4807
- hit = p.test(f);
4808
- this.debug("pattern match", p, f, hit);
4809
- }
4810
- if (!hit)
4811
- return false;
4812
- }
4813
- if (fi === fl && pi === pl) {
4814
- return true;
4815
- } else if (fi === fl) {
4816
- return partial;
4817
- } else if (pi === pl) {
4818
- return fi === fl - 1 && file[fi] === "";
4819
- } else {
4820
- throw new Error("wtf?");
4821
- }
4822
- };
4823
4587
  minimatch.AST = AST;
4824
4588
  minimatch.Minimatch = Minimatch;
4825
4589
  minimatch.escape = escape;
@@ -4893,7 +4657,7 @@ function proxyHostElement(elm, cstr) {
4893
4657
  const hostRef = getHostRef(elm);
4894
4658
  const members = Object.entries(cmpMeta.$members$);
4895
4659
  members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
4896
- var _a2, _b;
4660
+ var _a, _b;
4897
4661
  if (memberFlags & 31 /* Prop */) {
4898
4662
  const attributeName = metaAttributeName || memberName;
4899
4663
  const attrValue = elm.getAttribute(attributeName);
@@ -4901,7 +4665,7 @@ function proxyHostElement(elm, cstr) {
4901
4665
  let attrPropVal;
4902
4666
  const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(cstr.prototype, memberName) || {};
4903
4667
  if (attrValue != null) {
4904
- if ((_a2 = cmpMeta.$deserializers$) == null ? void 0 : _a2[memberName]) {
4668
+ if ((_a = cmpMeta.$deserializers$) == null ? void 0 : _a[memberName]) {
4905
4669
  for (const deserializer of cmpMeta.$deserializers$[memberName]) {
4906
4670
  const [[methodName]] = Object.entries(deserializer);
4907
4671
  attrPropVal = cstr.prototype[methodName](attrValue, memberName);
@@ -4934,8 +4698,8 @@ function proxyHostElement(elm, cstr) {
4934
4698
  Object.defineProperty(elm, memberName, getterSetterDescriptor);
4935
4699
  Object.defineProperty(elm, metaAttributeName, getterSetterDescriptor);
4936
4700
  hostRef.$fetchedCbList$.push(() => {
4937
- var _a3;
4938
- if (!((_a3 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a3.has(memberName))) {
4701
+ var _a2;
4702
+ if (!((_a2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a2.has(memberName))) {
4939
4703
  setValue(
4940
4704
  elm,
4941
4705
  memberName,
@@ -4948,11 +4712,11 @@ function proxyHostElement(elm, cstr) {
4948
4712
  } else if (memberFlags & 64 /* Method */) {
4949
4713
  Object.defineProperty(elm, memberName, {
4950
4714
  value(...args) {
4951
- var _a3;
4715
+ var _a2;
4952
4716
  const ref = getHostRef(this);
4953
- return (_a3 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a3.then(() => {
4954
- var _a4;
4955
- return (_a4 = ref == null ? void 0 : ref.$lazyInstance$) == null ? void 0 : _a4[memberName](...args);
4717
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
4718
+ var _a3;
4719
+ return (_a3 = ref == null ? void 0 : ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
4956
4720
  }).catch((e) => {
4957
4721
  consoleError(e, this);
4958
4722
  });
@@ -4963,8 +4727,8 @@ function proxyHostElement(elm, cstr) {
4963
4727
  }
4964
4728
  }
4965
4729
  function componentOnReady() {
4966
- var _a2;
4967
- return (_a2 = getHostRef(this)) == null ? void 0 : _a2.$onReadyPromise$;
4730
+ var _a;
4731
+ return (_a = getHostRef(this)) == null ? void 0 : _a.$onReadyPromise$;
4968
4732
  }
4969
4733
  function forceUpdate2() {
4970
4734
  }
@@ -8677,7 +8441,7 @@ var NAMESPACE = (
8677
8441
  );
8678
8442
 
8679
8443
  /*
8680
- Stencil Hydrate Runner v4.43.5 | MIT Licensed | https://stenciljs.com
8444
+ Stencil Hydrate Runner v4.43.2 | MIT Licensed | https://stenciljs.com
8681
8445
  */
8682
8446
  var __create = Object.create;
8683
8447
  var __defProp = Object.defineProperty;
@@ -10008,11 +9772,11 @@ var fromCodePoint = (
10008
9772
  }
10009
9773
  );
10010
9774
  function replaceCodePoint(codePoint) {
10011
- var _a3;
9775
+ var _a2;
10012
9776
  if (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) {
10013
9777
  return 65533;
10014
9778
  }
10015
- return (_a3 = decodeMap.get(codePoint)) !== null && _a3 !== void 0 ? _a3 : codePoint;
9779
+ return (_a2 = decodeMap.get(codePoint)) !== null && _a2 !== void 0 ? _a2 : codePoint;
10016
9780
  }
10017
9781
 
10018
9782
  // node_modules/entities/lib/esm/decode.js
@@ -10209,9 +9973,9 @@ var EntityDecoder = class {
10209
9973
  * @returns The number of characters that were consumed.
10210
9974
  */
10211
9975
  emitNumericEntity(lastCp, expectedLength) {
10212
- var _a3;
9976
+ var _a2;
10213
9977
  if (this.consumed <= expectedLength) {
10214
- (_a3 = this.errors) === null || _a3 === void 0 ? void 0 : _a3.absenceOfDigitsInNumericCharacterReference(this.consumed);
9978
+ (_a2 = this.errors) === null || _a2 === void 0 ? void 0 : _a2.absenceOfDigitsInNumericCharacterReference(this.consumed);
10215
9979
  return 0;
10216
9980
  }
10217
9981
  if (lastCp === CharCodes.SEMI) {
@@ -10271,11 +10035,11 @@ var EntityDecoder = class {
10271
10035
  * @returns The number of characters consumed.
10272
10036
  */
10273
10037
  emitNotTerminatedNamedEntity() {
10274
- var _a3;
10038
+ var _a2;
10275
10039
  const { result, decodeTree } = this;
10276
10040
  const valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
10277
10041
  this.emitNamedEntityData(result, valueLength, this.consumed);
10278
- (_a3 = this.errors) === null || _a3 === void 0 ? void 0 : _a3.missingSemicolonAfterCharacterReference();
10042
+ (_a2 = this.errors) === null || _a2 === void 0 ? void 0 : _a2.missingSemicolonAfterCharacterReference();
10279
10043
  return this.consumed;
10280
10044
  }
10281
10045
  /**
@@ -10303,7 +10067,7 @@ var EntityDecoder = class {
10303
10067
  * @returns The number of characters consumed.
10304
10068
  */
10305
10069
  end() {
10306
- var _a3;
10070
+ var _a2;
10307
10071
  switch (this.state) {
10308
10072
  case EntityDecoderState.NamedEntity: {
10309
10073
  return this.result !== 0 && (this.decodeMode !== DecodingMode.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
@@ -10316,7 +10080,7 @@ var EntityDecoder = class {
10316
10080
  return this.emitNumericEntity(0, 3);
10317
10081
  }
10318
10082
  case EntityDecoderState.NumericStart: {
10319
- (_a3 = this.errors) === null || _a3 === void 0 ? void 0 : _a3.absenceOfDigitsInNumericCharacterReference(this.consumed);
10083
+ (_a2 = this.errors) === null || _a2 === void 0 ? void 0 : _a2.absenceOfDigitsInNumericCharacterReference(this.consumed);
10320
10084
  return 0;
10321
10085
  }
10322
10086
  case EntityDecoderState.EntityStart: {
@@ -10797,8 +10561,8 @@ var TAG_NAME_TO_ID = /* @__PURE__ */ new Map([
10797
10561
  [TAG_NAMES.XMP, TAG_ID.XMP]
10798
10562
  ]);
10799
10563
  function getTagID(tagName) {
10800
- var _a3;
10801
- return (_a3 = TAG_NAME_TO_ID.get(tagName)) !== null && _a3 !== void 0 ? _a3 : TAG_ID.UNKNOWN;
10564
+ var _a2;
10565
+ return (_a2 = TAG_NAME_TO_ID.get(tagName)) !== null && _a2 !== void 0 ? _a2 : TAG_ID.UNKNOWN;
10802
10566
  }
10803
10567
  var $ = TAG_ID;
10804
10568
  var SPECIAL_ELEMENTS = {
@@ -11065,8 +10829,8 @@ var Tokenizer = class {
11065
10829
  }
11066
10830
  //Errors
11067
10831
  _err(code, cpOffset = 0) {
11068
- var _a3, _b;
11069
- (_b = (_a3 = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a3, this.preprocessor.getError(code, cpOffset));
10832
+ var _a2, _b;
10833
+ (_b = (_a2 = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a2, this.preprocessor.getError(code, cpOffset));
11070
10834
  }
11071
10835
  // NOTE: `offset` may never run across line boundaries.
11072
10836
  getCurrentLocation(offset) {
@@ -11208,13 +10972,13 @@ var Tokenizer = class {
11208
10972
  this.currentLocation = this.getCurrentLocation(0);
11209
10973
  }
11210
10974
  _leaveAttrName() {
11211
- var _a3;
10975
+ var _a2;
11212
10976
  var _b;
11213
10977
  const token = this.currentToken;
11214
10978
  if (getTokenAttr(token, this.currentAttr.name) === null) {
11215
10979
  token.attrs.push(this.currentAttr);
11216
10980
  if (token.location && this.currentLocation) {
11217
- const attrLocations = (_a3 = (_b = token.location).attrs) !== null && _a3 !== void 0 ? _a3 : _b.attrs = /* @__PURE__ */ Object.create(null);
10981
+ const attrLocations = (_a2 = (_b = token.location).attrs) !== null && _a2 !== void 0 ? _a2 : _b.attrs = /* @__PURE__ */ Object.create(null);
11218
10982
  attrLocations[this.currentAttr.name] = this.currentLocation;
11219
10983
  this._leaveAttrValue();
11220
10984
  }
@@ -14562,10 +14326,10 @@ var Parser = class {
14562
14326
  //Errors
14563
14327
  /** @internal */
14564
14328
  _err(token, code, beforeToken) {
14565
- var _a3;
14329
+ var _a2;
14566
14330
  if (!this.onParseError)
14567
14331
  return;
14568
- const loc = (_a3 = token.location) !== null && _a3 !== void 0 ? _a3 : BASE_LOC;
14332
+ const loc = (_a2 = token.location) !== null && _a2 !== void 0 ? _a2 : BASE_LOC;
14569
14333
  const err2 = {
14570
14334
  code,
14571
14335
  startLine: loc.startLine,
@@ -14580,18 +14344,18 @@ var Parser = class {
14580
14344
  //Stack events
14581
14345
  /** @internal */
14582
14346
  onItemPush(node, tid, isTop) {
14583
- var _a3, _b;
14584
- (_b = (_a3 = this.treeAdapter).onItemPush) === null || _b === void 0 ? void 0 : _b.call(_a3, node);
14347
+ var _a2, _b;
14348
+ (_b = (_a2 = this.treeAdapter).onItemPush) === null || _b === void 0 ? void 0 : _b.call(_a2, node);
14585
14349
  if (isTop && this.openElements.stackTop > 0)
14586
14350
  this._setContextModes(node, tid);
14587
14351
  }
14588
14352
  /** @internal */
14589
14353
  onItemPop(node, isTop) {
14590
- var _a3, _b;
14354
+ var _a2, _b;
14591
14355
  if (this.options.sourceCodeLocationInfo) {
14592
14356
  this._setEndLocation(node, this.currentToken);
14593
14357
  }
14594
- (_b = (_a3 = this.treeAdapter).onItemPop) === null || _b === void 0 ? void 0 : _b.call(_a3, node, this.openElements.current);
14358
+ (_b = (_a2 = this.treeAdapter).onItemPop) === null || _b === void 0 ? void 0 : _b.call(_a2, node, this.openElements.current);
14595
14359
  if (isTop) {
14596
14360
  let current;
14597
14361
  let currentTagId;
@@ -16665,9 +16429,9 @@ function eofInBody(p, token) {
16665
16429
  }
16666
16430
  }
16667
16431
  function endTagInText(p, token) {
16668
- var _a3;
16432
+ var _a2;
16669
16433
  if (token.tagID === TAG_ID.SCRIPT) {
16670
- (_a3 = p.scriptHandler) === null || _a3 === void 0 ? void 0 : _a3.call(p, p.openElements.current);
16434
+ (_a2 = p.scriptHandler) === null || _a2 === void 0 ? void 0 : _a2.call(p, p.openElements.current);
16671
16435
  }
16672
16436
  p.openElements.pop();
16673
16437
  p.insertionMode = p.originalInsertionMode;
@@ -17329,7 +17093,7 @@ function startTagAfterBody(p, token) {
17329
17093
  }
17330
17094
  }
17331
17095
  function endTagAfterBody(p, token) {
17332
- var _a3;
17096
+ var _a2;
17333
17097
  if (token.tagID === TAG_ID.HTML) {
17334
17098
  if (!p.fragmentContext) {
17335
17099
  p.insertionMode = InsertionMode.AFTER_AFTER_BODY;
@@ -17337,7 +17101,7 @@ function endTagAfterBody(p, token) {
17337
17101
  if (p.options.sourceCodeLocationInfo && p.openElements.tagIDs[0] === TAG_ID.HTML) {
17338
17102
  p._setEndLocation(p.openElements.items[0], token);
17339
17103
  const bodyElement = p.openElements.items[1];
17340
- if (bodyElement && !((_a3 = p.treeAdapter.getNodeSourceCodeLocation(bodyElement)) === null || _a3 === void 0 ? void 0 : _a3.endTag)) {
17104
+ if (bodyElement && !((_a2 = p.treeAdapter.getNodeSourceCodeLocation(bodyElement)) === null || _a2 === void 0 ? void 0 : _a2.endTag)) {
17341
17105
  p._setEndLocation(bodyElement, token);
17342
17106
  }
17343
17107
  }
@@ -19201,7 +18965,7 @@ function serializeNodeToHtml(elm, serializationOptions = {}) {
19201
18965
  }
19202
18966
  var shadowRootTag = "mock:shadow-root";
19203
18967
  function* streamToHtml(node, opts, output) {
19204
- var _a3, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
18968
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
19205
18969
  const isShadowRoot = node.nodeType === 11 /* DOCUMENT_FRAGMENT_NODE */;
19206
18970
  if (node.nodeType === 1 /* ELEMENT_NODE */ || isShadowRoot) {
19207
18971
  const tagName = isShadowRoot ? shadowRootTag : getTagName(node);
@@ -19210,7 +18974,7 @@ function* streamToHtml(node, opts, output) {
19210
18974
  }
19211
18975
  const ignoreTag = opts.excludeTags != null && opts.excludeTags.includes(tagName);
19212
18976
  if (ignoreTag === false) {
19213
- const isWithinWhitespaceSensitiveNode = opts.newLines || ((_a3 = opts.indentSpaces) != null ? _a3 : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
18977
+ const isWithinWhitespaceSensitiveNode = opts.newLines || ((_a2 = opts.indentSpaces) != null ? _a2 : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
19214
18978
  if (opts.newLines && !isWithinWhitespaceSensitiveNode) {
19215
18979
  yield "\n";
19216
18980
  output.currentLineWidth = 0;
@@ -19729,7 +19493,9 @@ var MockNode2 = class {
19729
19493
  const firstChild = this.firstChild;
19730
19494
  items.forEach((item) => {
19731
19495
  const isNode = typeof item === "object" && item !== null && "nodeType" in item;
19732
- this.insertBefore(isNode ? item : this.ownerDocument.createTextNode(String(item)), firstChild);
19496
+ if (firstChild) {
19497
+ this.insertBefore(isNode ? item : this.ownerDocument.createTextNode(String(item)), firstChild);
19498
+ }
19733
19499
  });
19734
19500
  }
19735
19501
  cloneNode(deep) {
@@ -19778,8 +19544,8 @@ var MockNode2 = class {
19778
19544
  return null;
19779
19545
  }
19780
19546
  get nodeValue() {
19781
- var _a3;
19782
- return (_a3 = this._nodeValue) != null ? _a3 : "";
19547
+ var _a2;
19548
+ return (_a2 = this._nodeValue) != null ? _a2 : "";
19783
19549
  }
19784
19550
  set nodeValue(value) {
19785
19551
  this._nodeValue = value;
@@ -19839,8 +19605,8 @@ var MockNode2 = class {
19839
19605
  return null;
19840
19606
  }
19841
19607
  get textContent() {
19842
- var _a3;
19843
- return (_a3 = this._nodeValue) != null ? _a3 : "";
19608
+ var _a2;
19609
+ return (_a2 = this._nodeValue) != null ? _a2 : "";
19844
19610
  }
19845
19611
  set textContent(value) {
19846
19612
  this._nodeValue = String(value);
@@ -19899,9 +19665,9 @@ var MockElement = class extends MockNode2 {
19899
19665
  addEventListener(this, type, handler);
19900
19666
  }
19901
19667
  attachShadow(_opts) {
19902
- var _a3;
19668
+ var _a2;
19903
19669
  const shadowRoot = this.ownerDocument.createDocumentFragment();
19904
- shadowRoot.delegatesFocus = (_a3 = _opts.delegatesFocus) != null ? _a3 : false;
19670
+ shadowRoot.delegatesFocus = (_a2 = _opts.delegatesFocus) != null ? _a2 : false;
19905
19671
  this.shadowRoot = shadowRoot;
19906
19672
  return shadowRoot;
19907
19673
  }
@@ -20077,8 +19843,8 @@ var MockElement = class extends MockNode2 {
20077
19843
  });
20078
19844
  }
20079
19845
  set innerHTML(html) {
20080
- var _a3;
20081
- if (NON_ESCAPABLE_CONTENT.has((_a3 = this.nodeName) != null ? _a3 : "") === true) {
19846
+ var _a2;
19847
+ if (NON_ESCAPABLE_CONTENT.has((_a2 = this.nodeName) != null ? _a2 : "") === true) {
20082
19848
  setTextContent(this, html);
20083
19849
  } else {
20084
19850
  for (let i = this.childNodes.length - 1; i >= 0; i--) {
@@ -20321,8 +20087,8 @@ var MockElement = class extends MockNode2 {
20321
20087
  this.setAttributeNS(null, "tabindex", value);
20322
20088
  }
20323
20089
  get tagName() {
20324
- var _a3;
20325
- return (_a3 = this.nodeName) != null ? _a3 : "";
20090
+ var _a2;
20091
+ return (_a2 = this.nodeName) != null ? _a2 : "";
20326
20092
  }
20327
20093
  set tagName(value) {
20328
20094
  this.nodeName = value;
@@ -20544,11 +20310,11 @@ function getElementsByClassName(elm, classNames, foundElms) {
20544
20310
  }
20545
20311
  }
20546
20312
  function getElementsByTagName(elm, tagName, foundElms) {
20547
- var _a3;
20313
+ var _a2;
20548
20314
  const children = elm.children;
20549
20315
  for (let i = 0, ii = children.length; i < ii; i++) {
20550
20316
  const childElm = children[i];
20551
- if (tagName === "*" || ((_a3 = childElm.nodeName) != null ? _a3 : "").toLowerCase() === tagName) {
20317
+ if (tagName === "*" || ((_a2 = childElm.nodeName) != null ? _a2 : "").toLowerCase() === tagName) {
20552
20318
  foundElms.push(childElm);
20553
20319
  }
20554
20320
  getElementsByTagName(childElm, tagName, foundElms);
@@ -20585,8 +20351,8 @@ var MockHTMLElement = class extends MockElement {
20585
20351
  super(ownerDocument, typeof nodeName === "string" ? nodeName.toUpperCase() : null);
20586
20352
  }
20587
20353
  get tagName() {
20588
- var _a3;
20589
- return (_a3 = this.nodeName) != null ? _a3 : "";
20354
+ var _a2;
20355
+ return (_a2 = this.nodeName) != null ? _a2 : "";
20590
20356
  }
20591
20357
  set tagName(value) {
20592
20358
  this.nodeName = value;
@@ -21044,10 +20810,10 @@ var MockLabelElement = class extends MockHTMLElement {
21044
20810
  this.setAttributeNS(null, "for", value);
21045
20811
  }
21046
20812
  get control() {
21047
- var _a3, _b;
20813
+ var _a2, _b;
21048
20814
  const forAttr = this.htmlFor;
21049
20815
  if (forAttr) {
21050
- return (_b = (_a3 = this.ownerDocument) == null ? void 0 : _a3.getElementById(forAttr)) != null ? _b : null;
20816
+ return (_b = (_a2 = this.ownerDocument) == null ? void 0 : _a2.getElementById(forAttr)) != null ? _b : null;
21051
20817
  }
21052
20818
  const labelableSelector = 'button, input:not([type="hidden"]), meter, output, progress, select, textarea';
21053
20819
  return this.querySelector(labelableSelector);
@@ -23555,34 +23321,18 @@ var RemoteValue = class _RemoteValue {
23555
23321
  };
23556
23322
 
23557
23323
  // src/utils/serialize.ts
23558
- function encodeBase64Unicode(str) {
23559
- const utf8Bytes = new TextEncoder().encode(str);
23560
- let binary = "";
23561
- for (let i = 0; i < utf8Bytes.length; i++) {
23562
- binary += String.fromCharCode(utf8Bytes[i]);
23563
- }
23564
- return btoa(binary);
23565
- }
23566
- function decodeBase64Unicode(base64) {
23567
- const binary = atob(base64);
23568
- const bytes = new Uint8Array(binary.length);
23569
- for (let i = 0; i < binary.length; i++) {
23570
- bytes[i] = binary.charCodeAt(i);
23571
- }
23572
- return new TextDecoder().decode(bytes);
23573
- }
23574
23324
  function serializeProperty(value) {
23575
23325
  if (["string", "boolean", "undefined"].includes(typeof value) || typeof value === "number" && value !== Infinity && value !== -Infinity && !isNaN(value)) {
23576
23326
  return value;
23577
23327
  }
23578
23328
  const arg = LocalValue.getArgument(value);
23579
- return SERIALIZED_PREFIX + encodeBase64Unicode(JSON.stringify(arg));
23329
+ return SERIALIZED_PREFIX + btoa(JSON.stringify(arg));
23580
23330
  }
23581
23331
  function deserializeProperty(value) {
23582
23332
  if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
23583
23333
  return value;
23584
23334
  }
23585
- return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
23335
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
23586
23336
  }
23587
23337
  var CAPTURE_EVENT_SUFFIX = "Capture";
23588
23338
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
@@ -23776,35 +23526,8 @@ var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
23776
23526
  };
23777
23527
 
23778
23528
  // node_modules/minimatch/dist/esm/ast.js
23779
- var _a2;
23780
23529
  var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
23781
23530
  var isExtglobType = (c) => types.has(c);
23782
- var isExtglobAST = (c) => isExtglobType(c.type);
23783
- var adoptionMap = /* @__PURE__ */ new Map([
23784
- ["!", ["@"]],
23785
- ["?", ["?", "@"]],
23786
- ["@", ["@"]],
23787
- ["*", ["*", "+", "?", "@"]],
23788
- ["+", ["+", "@"]]
23789
- ]);
23790
- var adoptionWithSpaceMap = /* @__PURE__ */ new Map([
23791
- ["!", ["?"]],
23792
- ["@", ["?"]],
23793
- ["+", ["?", "*"]]
23794
- ]);
23795
- var adoptionAnyMap = /* @__PURE__ */ new Map([
23796
- ["!", ["?", "@"]],
23797
- ["?", ["?", "@"]],
23798
- ["@", ["?", "@"]],
23799
- ["*", ["*", "+", "?", "@"]],
23800
- ["+", ["+", "@", "?", "*"]]
23801
- ]);
23802
- var usurpMap = /* @__PURE__ */ new Map([
23803
- ["!", /* @__PURE__ */ new Map([["!", "@"]])],
23804
- ["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
23805
- ["@", /* @__PURE__ */ new Map([["!", "!"], ["?", "?"], ["@", "@"], ["*", "*"], ["+", "+"]])],
23806
- ["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
23807
- ]);
23808
23531
  var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
23809
23532
  var startNoDot = "(?!\\.)";
23810
23533
  var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
@@ -23814,8 +23537,8 @@ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
23814
23537
  var qmark = "[^/]";
23815
23538
  var star = qmark + "*?";
23816
23539
  var starNoEmpty = qmark + "+?";
23817
- 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;
23818
- var AST = class {
23540
+ var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
23541
+ var _AST = class _AST {
23819
23542
  constructor(type, parent, options = {}) {
23820
23543
  __privateAdd(this, _AST_instances);
23821
23544
  __publicField(this, "type");
@@ -23868,44 +23591,44 @@ var AST = class {
23868
23591
  for (const p of parts) {
23869
23592
  if (p === "")
23870
23593
  continue;
23871
- if (typeof p !== "string" && !(p instanceof _a2 && __privateGet(p, _parent) === this)) {
23594
+ if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
23872
23595
  throw new Error("invalid part: " + p);
23873
23596
  }
23874
23597
  __privateGet(this, _parts).push(p);
23875
23598
  }
23876
23599
  }
23877
23600
  toJSON() {
23878
- var _a3;
23601
+ var _a2;
23879
23602
  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())];
23880
23603
  if (this.isStart() && !this.type)
23881
23604
  ret.unshift([]);
23882
- if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.type) === "!")) {
23605
+ if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")) {
23883
23606
  ret.push({});
23884
23607
  }
23885
23608
  return ret;
23886
23609
  }
23887
23610
  isStart() {
23888
- var _a3;
23611
+ var _a2;
23889
23612
  if (__privateGet(this, _root) === this)
23890
23613
  return true;
23891
- if (!((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.isStart()))
23614
+ if (!((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.isStart()))
23892
23615
  return false;
23893
23616
  if (__privateGet(this, _parentIndex) === 0)
23894
23617
  return true;
23895
23618
  const p = __privateGet(this, _parent);
23896
23619
  for (let i = 0; i < __privateGet(this, _parentIndex); i++) {
23897
23620
  const pp = __privateGet(p, _parts)[i];
23898
- if (!(pp instanceof _a2 && pp.type === "!")) {
23621
+ if (!(pp instanceof _AST && pp.type === "!")) {
23899
23622
  return false;
23900
23623
  }
23901
23624
  }
23902
23625
  return true;
23903
23626
  }
23904
23627
  isEnd() {
23905
- var _a3, _b, _c;
23628
+ var _a2, _b, _c;
23906
23629
  if (__privateGet(this, _root) === this)
23907
23630
  return true;
23908
- if (((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.type) === "!")
23631
+ if (((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")
23909
23632
  return true;
23910
23633
  if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
23911
23634
  return false;
@@ -23921,16 +23644,16 @@ var AST = class {
23921
23644
  this.push(part.clone(this));
23922
23645
  }
23923
23646
  clone(parent) {
23924
- const c = new _a2(this.type, parent);
23647
+ const c = new _AST(this.type, parent);
23925
23648
  for (const p of __privateGet(this, _parts)) {
23926
23649
  c.copyIn(p);
23927
23650
  }
23928
23651
  return c;
23929
23652
  }
23930
23653
  static fromGlob(pattern, options = {}) {
23931
- var _a3;
23932
- const ast = new _a2(null, void 0, options);
23933
- __privateMethod(_a3 = _a2, _AST_static, parseAST_fn).call(_a3, pattern, ast, 0, options, 0);
23654
+ var _a2;
23655
+ const ast = new _AST(null, void 0, options);
23656
+ __privateMethod(_a2 = _AST, _AST_static, parseAST_fn).call(_a2, pattern, ast, 0, options);
23934
23657
  return ast;
23935
23658
  }
23936
23659
  // returns the regular expression if there's magic, or the unescaped
@@ -24023,17 +23746,15 @@ var AST = class {
24023
23746
  // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
24024
23747
  // or start or whatever) and prepend ^ or / at the Regexp construction.
24025
23748
  toRegExpSource(allowDot) {
24026
- var _a3;
23749
+ var _a2;
24027
23750
  const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
24028
- if (__privateGet(this, _root) === this) {
24029
- __privateMethod(this, _AST_instances, flatten_fn).call(this);
23751
+ if (__privateGet(this, _root) === this)
24030
23752
  __privateMethod(this, _AST_instances, fillNegs_fn).call(this);
24031
- }
24032
- if (!isExtglobAST(this)) {
23753
+ if (!this.type) {
24033
23754
  const noEmpty = this.isStart() && this.isEnd();
24034
23755
  const src = __privateGet(this, _parts).map((p) => {
24035
- var _a4;
24036
- const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a4 = _a2, _AST_static, parseGlob_fn).call(_a4, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
23756
+ var _a3;
23757
+ const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a3 = _AST, _AST_static, parseGlob_fn).call(_a3, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
24037
23758
  __privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
24038
23759
  __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
24039
23760
  return re;
@@ -24056,7 +23777,7 @@ var AST = class {
24056
23777
  }
24057
23778
  }
24058
23779
  let end = "";
24059
- if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.type) === "!") {
23780
+ if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!") {
24060
23781
  end = "(?:$|\\/)";
24061
23782
  }
24062
23783
  const final2 = start2 + src + end;
@@ -24072,10 +23793,9 @@ var AST = class {
24072
23793
  let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
24073
23794
  if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
24074
23795
  const s = this.toString();
24075
- const me = this;
24076
- __privateSet(me, _parts, [s]);
24077
- me.type = null;
24078
- __privateSet(me, _hasMagic, void 0);
23796
+ __privateSet(this, _parts, [s]);
23797
+ this.type = null;
23798
+ __privateSet(this, _hasMagic, void 0);
24079
23799
  return [s, unescape(this.toString()), false, false];
24080
23800
  }
24081
23801
  let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
@@ -24144,9 +23864,8 @@ fillNegs_fn = function() {
24144
23864
  return this;
24145
23865
  };
24146
23866
  _AST_static = new WeakSet();
24147
- parseAST_fn = function(str, ast, pos, opt, extDepth) {
24148
- var _a3, _b, _c, _d, _e;
24149
- const maxDepth = (_a3 = opt.maxExtglobRecursion) != null ? _a3 : 2;
23867
+ parseAST_fn = function(str, ast, pos, opt) {
23868
+ var _a2, _b;
24150
23869
  let escaping = false;
24151
23870
  let inBrace = false;
24152
23871
  let braceStart = -1;
@@ -24178,12 +23897,11 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
24178
23897
  acc2 += c;
24179
23898
  continue;
24180
23899
  }
24181
- const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i2) === "(" && extDepth <= maxDepth;
24182
- if (doRecurse) {
23900
+ if (!opt.noext && isExtglobType(c) && str.charAt(i2) === "(") {
24183
23901
  ast.push(acc2);
24184
23902
  acc2 = "";
24185
- const ext2 = new _a2(c, ast);
24186
- i2 = __privateMethod(_b = _a2, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt, extDepth + 1);
23903
+ const ext2 = new _AST(c, ast);
23904
+ i2 = __privateMethod(_a2 = _AST, _AST_static, parseAST_fn).call(_a2, str, ext2, i2, opt);
24187
23905
  ast.push(ext2);
24188
23906
  continue;
24189
23907
  }
@@ -24193,7 +23911,7 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
24193
23911
  return i2;
24194
23912
  }
24195
23913
  let i = pos + 1;
24196
- let part = new _a2(null, ast);
23914
+ let part = new _AST(null, ast);
24197
23915
  const parts = [];
24198
23916
  let acc = "";
24199
23917
  while (i < str.length) {
@@ -24220,22 +23938,19 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
24220
23938
  acc += c;
24221
23939
  continue;
24222
23940
  }
24223
- const doRecurse = isExtglobType(c) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
24224
- (extDepth <= maxDepth || ast && __privateMethod(_c = ast, _AST_instances, canAdoptType_fn).call(_c, c));
24225
- if (doRecurse) {
24226
- const depthAdd = ast && __privateMethod(_d = ast, _AST_instances, canAdoptType_fn).call(_d, c) ? 0 : 1;
23941
+ if (isExtglobType(c) && str.charAt(i) === "(") {
24227
23942
  part.push(acc);
24228
23943
  acc = "";
24229
- const ext2 = new _a2(c, part);
23944
+ const ext2 = new _AST(c, part);
24230
23945
  part.push(ext2);
24231
- i = __privateMethod(_e = _a2, _AST_static, parseAST_fn).call(_e, str, ext2, i, opt, extDepth + depthAdd);
23946
+ i = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i, opt);
24232
23947
  continue;
24233
23948
  }
24234
23949
  if (c === "|") {
24235
23950
  part.push(acc);
24236
23951
  acc = "";
24237
23952
  parts.push(part);
24238
- part = new _a2(null, ast);
23953
+ part = new _AST(null, ast);
24239
23954
  continue;
24240
23955
  }
24241
23956
  if (c === ")") {
@@ -24254,100 +23969,6 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
24254
23969
  __privateSet(ast, _parts, [str.substring(pos - 1)]);
24255
23970
  return i;
24256
23971
  };
24257
- canAdoptWithSpace_fn = function(child) {
24258
- return __privateMethod(this, _AST_instances, canAdopt_fn).call(this, child, adoptionWithSpaceMap);
24259
- };
24260
- canAdopt_fn = function(child, map2 = adoptionMap) {
24261
- if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null) {
24262
- return false;
24263
- }
24264
- const gc = __privateGet(child, _parts)[0];
24265
- if (!gc || typeof gc !== "object" || gc.type === null) {
24266
- return false;
24267
- }
24268
- return __privateMethod(this, _AST_instances, canAdoptType_fn).call(this, gc.type, map2);
24269
- };
24270
- canAdoptType_fn = function(c, map2 = adoptionAnyMap) {
24271
- var _a3;
24272
- return !!((_a3 = map2.get(this.type)) == null ? void 0 : _a3.includes(c));
24273
- };
24274
- adoptWithSpace_fn = function(child, index) {
24275
- const gc = __privateGet(child, _parts)[0];
24276
- const blank = new _a2(null, gc, this.options);
24277
- __privateGet(blank, _parts).push("");
24278
- gc.push(blank);
24279
- __privateMethod(this, _AST_instances, adopt_fn).call(this, child, index);
24280
- };
24281
- adopt_fn = function(child, index) {
24282
- const gc = __privateGet(child, _parts)[0];
24283
- __privateGet(this, _parts).splice(index, 1, ...__privateGet(gc, _parts));
24284
- for (const p of __privateGet(gc, _parts)) {
24285
- if (typeof p === "object")
24286
- __privateSet(p, _parent, this);
24287
- }
24288
- __privateSet(this, _toString, void 0);
24289
- };
24290
- canUsurpType_fn = function(c) {
24291
- const m = usurpMap.get(this.type);
24292
- return !!(m == null ? void 0 : m.has(c));
24293
- };
24294
- canUsurp_fn = function(child) {
24295
- if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null || __privateGet(this, _parts).length !== 1) {
24296
- return false;
24297
- }
24298
- const gc = __privateGet(child, _parts)[0];
24299
- if (!gc || typeof gc !== "object" || gc.type === null) {
24300
- return false;
24301
- }
24302
- return __privateMethod(this, _AST_instances, canUsurpType_fn).call(this, gc.type);
24303
- };
24304
- usurp_fn = function(child) {
24305
- const m = usurpMap.get(this.type);
24306
- const gc = __privateGet(child, _parts)[0];
24307
- const nt = m == null ? void 0 : m.get(gc.type);
24308
- if (!nt)
24309
- return false;
24310
- __privateSet(this, _parts, __privateGet(gc, _parts));
24311
- for (const p of __privateGet(this, _parts)) {
24312
- if (typeof p === "object")
24313
- __privateSet(p, _parent, this);
24314
- }
24315
- this.type = nt;
24316
- __privateSet(this, _toString, void 0);
24317
- __privateSet(this, _emptyExt, false);
24318
- };
24319
- flatten_fn = function() {
24320
- var _a3, _b;
24321
- if (!isExtglobAST(this)) {
24322
- for (const p of __privateGet(this, _parts)) {
24323
- if (typeof p === "object")
24324
- __privateMethod(_a3 = p, _AST_instances, flatten_fn).call(_a3);
24325
- }
24326
- } else {
24327
- let iterations = 0;
24328
- let done = false;
24329
- do {
24330
- done = true;
24331
- for (let i = 0; i < __privateGet(this, _parts).length; i++) {
24332
- const c = __privateGet(this, _parts)[i];
24333
- if (typeof c === "object") {
24334
- __privateMethod(_b = c, _AST_instances, flatten_fn).call(_b);
24335
- if (__privateMethod(this, _AST_instances, canAdopt_fn).call(this, c)) {
24336
- done = false;
24337
- __privateMethod(this, _AST_instances, adopt_fn).call(this, c, i);
24338
- } else if (__privateMethod(this, _AST_instances, canAdoptWithSpace_fn).call(this, c)) {
24339
- done = false;
24340
- __privateMethod(this, _AST_instances, adoptWithSpace_fn).call(this, c, i);
24341
- } else if (__privateMethod(this, _AST_instances, canUsurp_fn).call(this, c)) {
24342
- done = false;
24343
- __privateMethod(this, _AST_instances, usurp_fn).call(this, c);
24344
- }
24345
- }
24346
- }
24347
- } while (!done && ++iterations < 10);
24348
- }
24349
- __privateSet(this, _toString, void 0);
24350
- };
24351
23972
  partsToRegExp_fn = function(dot) {
24352
23973
  return __privateGet(this, _parts).map((p) => {
24353
23974
  if (typeof p === "string") {
@@ -24362,13 +23983,11 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
24362
23983
  let escaping = false;
24363
23984
  let re = "";
24364
23985
  let uflag = false;
24365
- let inStar = false;
24366
23986
  for (let i = 0; i < glob.length; i++) {
24367
23987
  const c = glob.charAt(i);
24368
23988
  if (escaping) {
24369
23989
  escaping = false;
24370
23990
  re += (reSpecials.has(c) ? "\\" : "") + c;
24371
- inStar = false;
24372
23991
  continue;
24373
23992
  }
24374
23993
  if (c === "\\") {
@@ -24386,19 +24005,16 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
24386
24005
  uflag = uflag || needUflag;
24387
24006
  i += consumed - 1;
24388
24007
  hasMagic = hasMagic || magic;
24389
- inStar = false;
24390
24008
  continue;
24391
24009
  }
24392
24010
  }
24393
24011
  if (c === "*") {
24394
- if (inStar)
24395
- continue;
24396
- inStar = true;
24397
- re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
24012
+ if (noEmpty && glob === "*")
24013
+ re += starNoEmpty;
24014
+ else
24015
+ re += star;
24398
24016
  hasMagic = true;
24399
24017
  continue;
24400
- } else {
24401
- inStar = false;
24402
24018
  }
24403
24019
  if (c === "?") {
24404
24020
  re += qmark;
@@ -24409,8 +24025,8 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
24409
24025
  }
24410
24026
  return [re, unescape(glob), !!hasMagic, uflag];
24411
24027
  };
24412
- __privateAdd(AST, _AST_static);
24413
- _a2 = AST;
24028
+ __privateAdd(_AST, _AST_static);
24029
+ var AST = _AST;
24414
24030
 
24415
24031
  // node_modules/minimatch/dist/esm/escape.js
24416
24032
  var escape = (s, { windowsPathsNoEscape = false } = {}) => {
@@ -24549,33 +24165,28 @@ var match = (list, pattern, options = {}) => {
24549
24165
  minimatch.match = match;
24550
24166
  var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
24551
24167
  var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
24552
- var _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn;
24553
24168
  var Minimatch = class {
24169
+ options;
24170
+ set;
24171
+ pattern;
24172
+ windowsPathsNoEscape;
24173
+ nonegate;
24174
+ negate;
24175
+ comment;
24176
+ empty;
24177
+ preserveMultipleSlashes;
24178
+ partial;
24179
+ globSet;
24180
+ globParts;
24181
+ nocase;
24182
+ isWindows;
24183
+ platform;
24184
+ windowsNoMagicRoot;
24185
+ regexp;
24554
24186
  constructor(pattern, options = {}) {
24555
- __privateAdd(this, _Minimatch_instances);
24556
- __publicField(this, "options");
24557
- __publicField(this, "set");
24558
- __publicField(this, "pattern");
24559
- __publicField(this, "windowsPathsNoEscape");
24560
- __publicField(this, "nonegate");
24561
- __publicField(this, "negate");
24562
- __publicField(this, "comment");
24563
- __publicField(this, "empty");
24564
- __publicField(this, "preserveMultipleSlashes");
24565
- __publicField(this, "partial");
24566
- __publicField(this, "globSet");
24567
- __publicField(this, "globParts");
24568
- __publicField(this, "nocase");
24569
- __publicField(this, "isWindows");
24570
- __publicField(this, "platform");
24571
- __publicField(this, "windowsNoMagicRoot");
24572
- __publicField(this, "maxGlobstarRecursion");
24573
- __publicField(this, "regexp");
24574
- var _a3;
24575
24187
  assertValidPattern(pattern);
24576
24188
  options = options || {};
24577
24189
  this.options = options;
24578
- this.maxGlobstarRecursion = (_a3 = options.maxGlobstarRecursion) != null ? _a3 : 200;
24579
24190
  this.pattern = pattern;
24580
24191
  this.platform = options.platform || defaultPlatform;
24581
24192
  this.isWindows = this.platform === "win32";
@@ -24843,11 +24454,10 @@ var Minimatch = class {
24843
24454
  for (let i = 0; i < globParts.length - 1; i++) {
24844
24455
  for (let j = i + 1; j < globParts.length; j++) {
24845
24456
  const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
24846
- if (matched) {
24847
- globParts[i] = [];
24848
- globParts[j] = matched;
24849
- break;
24850
- }
24457
+ if (!matched)
24458
+ continue;
24459
+ globParts[i] = matched;
24460
+ globParts[j] = [];
24851
24461
  }
24852
24462
  }
24853
24463
  return globParts.filter((gs) => gs.length);
@@ -24908,8 +24518,7 @@ var Minimatch = class {
24908
24518
  // out of pattern, then that's fine, as long as all
24909
24519
  // the parts match.
24910
24520
  matchOne(file, pattern, partial = false) {
24911
- let fileStartIndex = 0;
24912
- let patternStartIndex = 0;
24521
+ const options = this.options;
24913
24522
  if (this.isWindows) {
24914
24523
  const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
24915
24524
  const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
@@ -24918,14 +24527,14 @@ var Minimatch = class {
24918
24527
  const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
24919
24528
  const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
24920
24529
  if (typeof fdi === "number" && typeof pdi === "number") {
24921
- const [fd, pd] = [
24922
- file[fdi],
24923
- pattern[pdi]
24924
- ];
24530
+ const [fd, pd] = [file[fdi], pattern[pdi]];
24925
24531
  if (fd.toLowerCase() === pd.toLowerCase()) {
24926
24532
  pattern[pdi] = fd;
24927
- patternStartIndex = pdi;
24928
- fileStartIndex = fdi;
24533
+ if (pdi > fdi) {
24534
+ pattern = pattern.slice(pdi);
24535
+ } else if (fdi > pdi) {
24536
+ file = file.slice(fdi);
24537
+ }
24929
24538
  }
24930
24539
  }
24931
24540
  }
@@ -24933,10 +24542,71 @@ var Minimatch = class {
24933
24542
  if (optimizationLevel >= 2) {
24934
24543
  file = this.levelTwoFileOptimize(file);
24935
24544
  }
24936
- if (pattern.includes(GLOBSTAR)) {
24937
- return __privateMethod(this, _Minimatch_instances, matchGlobstar_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
24545
+ this.debug("matchOne", this, { file, pattern });
24546
+ this.debug("matchOne", file.length, pattern.length);
24547
+ for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
24548
+ this.debug("matchOne loop");
24549
+ var p = pattern[pi];
24550
+ var f = file[fi];
24551
+ this.debug(pattern, p, f);
24552
+ if (p === false) {
24553
+ return false;
24554
+ }
24555
+ if (p === GLOBSTAR) {
24556
+ this.debug("GLOBSTAR", [pattern, p, f]);
24557
+ var fr = fi;
24558
+ var pr = pi + 1;
24559
+ if (pr === pl) {
24560
+ this.debug("** at the end");
24561
+ for (; fi < fl; fi++) {
24562
+ if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
24563
+ return false;
24564
+ }
24565
+ return true;
24566
+ }
24567
+ while (fr < fl) {
24568
+ var swallowee = file[fr];
24569
+ this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
24570
+ if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
24571
+ this.debug("globstar found match!", fr, fl, swallowee);
24572
+ return true;
24573
+ } else {
24574
+ if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
24575
+ this.debug("dot detected!", file, fr, pattern, pr);
24576
+ break;
24577
+ }
24578
+ this.debug("globstar swallow a segment, and continue");
24579
+ fr++;
24580
+ }
24581
+ }
24582
+ if (partial) {
24583
+ this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
24584
+ if (fr === fl) {
24585
+ return true;
24586
+ }
24587
+ }
24588
+ return false;
24589
+ }
24590
+ let hit;
24591
+ if (typeof p === "string") {
24592
+ hit = f === p;
24593
+ this.debug("string match", p, f, hit);
24594
+ } else {
24595
+ hit = p.test(f);
24596
+ this.debug("pattern match", p, f, hit);
24597
+ }
24598
+ if (!hit)
24599
+ return false;
24600
+ }
24601
+ if (fi === fl && pi === pl) {
24602
+ return true;
24603
+ } else if (fi === fl) {
24604
+ return partial;
24605
+ } else if (pi === pl) {
24606
+ return fi === fl - 1 && file[fi] === "";
24607
+ } else {
24608
+ throw new Error("wtf?");
24938
24609
  }
24939
- return __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
24940
24610
  }
24941
24611
  braceExpand() {
24942
24612
  return braceExpand(this.pattern, this.options);
@@ -25075,135 +24745,6 @@ var Minimatch = class {
25075
24745
  return minimatch.defaults(def).Minimatch;
25076
24746
  }
25077
24747
  };
25078
- _Minimatch_instances = new WeakSet();
25079
- matchGlobstar_fn = function(file, pattern, partial, fileIndex, patternIndex) {
25080
- const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
25081
- const lastgs = pattern.lastIndexOf(GLOBSTAR);
25082
- const [head, body, tail] = partial ? [
25083
- pattern.slice(patternIndex, firstgs),
25084
- pattern.slice(firstgs + 1),
25085
- []
25086
- ] : [
25087
- pattern.slice(patternIndex, firstgs),
25088
- pattern.slice(firstgs + 1, lastgs),
25089
- pattern.slice(lastgs + 1)
25090
- ];
25091
- if (head.length) {
25092
- const fileHead = file.slice(fileIndex, fileIndex + head.length);
25093
- if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, fileHead, head, partial, 0, 0))
25094
- return false;
25095
- fileIndex += head.length;
25096
- }
25097
- let fileTailMatch = 0;
25098
- if (tail.length) {
25099
- if (tail.length + fileIndex > file.length)
25100
- return false;
25101
- let tailStart = file.length - tail.length;
25102
- if (__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0)) {
25103
- fileTailMatch = tail.length;
25104
- } else {
25105
- if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
25106
- return false;
25107
- }
25108
- tailStart--;
25109
- if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0))
25110
- return false;
25111
- fileTailMatch = tail.length + 1;
25112
- }
25113
- }
25114
- if (!body.length) {
25115
- let sawSome = !!fileTailMatch;
25116
- for (let i2 = fileIndex; i2 < file.length - fileTailMatch; i2++) {
25117
- const f = String(file[i2]);
25118
- sawSome = true;
25119
- if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
25120
- return false;
25121
- }
25122
- }
25123
- return partial || sawSome;
25124
- }
25125
- const bodySegments = [[[], 0]];
25126
- let currentBody = bodySegments[0];
25127
- let nonGsParts = 0;
25128
- const nonGsPartsSums = [0];
25129
- for (const b of body) {
25130
- if (b === GLOBSTAR) {
25131
- nonGsPartsSums.push(nonGsParts);
25132
- currentBody = [[], 0];
25133
- bodySegments.push(currentBody);
25134
- } else {
25135
- currentBody[0].push(b);
25136
- nonGsParts++;
25137
- }
25138
- }
25139
- let i = bodySegments.length - 1;
25140
- const fileLength = file.length - fileTailMatch;
25141
- for (const b of bodySegments) {
25142
- b[1] = fileLength - (nonGsPartsSums[i--] + b[0].length);
25143
- }
25144
- return !!__privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
25145
- };
25146
- matchGlobStarBodySections_fn = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
25147
- const bs = bodySegments[bodyIndex];
25148
- if (!bs) {
25149
- for (let i = fileIndex; i < file.length; i++) {
25150
- sawTail = true;
25151
- const f = file[i];
25152
- if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
25153
- return false;
25154
- }
25155
- }
25156
- return sawTail;
25157
- }
25158
- const [body, after] = bs;
25159
- while (fileIndex <= after) {
25160
- const m = __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
25161
- if (m && globStarDepth < this.maxGlobstarRecursion) {
25162
- const sub = __privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
25163
- if (sub !== false)
25164
- return sub;
25165
- }
25166
- const f = file[fileIndex];
25167
- if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
25168
- return false;
25169
- }
25170
- fileIndex++;
25171
- }
25172
- return partial || null;
25173
- };
25174
- matchOne_fn = function(file, pattern, partial, fileIndex, patternIndex) {
25175
- let fi;
25176
- let pi;
25177
- let pl;
25178
- let fl;
25179
- for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
25180
- this.debug("matchOne loop");
25181
- let p = pattern[pi];
25182
- let f = file[fi];
25183
- this.debug(pattern, p, f);
25184
- if (p === false || p === GLOBSTAR)
25185
- return false;
25186
- let hit;
25187
- if (typeof p === "string") {
25188
- hit = f === p;
25189
- this.debug("string match", p, f, hit);
25190
- } else {
25191
- hit = p.test(f);
25192
- this.debug("pattern match", p, f, hit);
25193
- }
25194
- if (!hit)
25195
- return false;
25196
- }
25197
- if (fi === fl && pi === pl) {
25198
- return true;
25199
- } else if (fi === fl) {
25200
- return partial;
25201
- } else if (pi === pl) {
25202
- return fi === fl - 1 && file[fi] === "";
25203
- } else {
25204
- throw new Error("wtf?");
25205
- }
25206
- };
25207
24748
  minimatch.AST = AST;
25208
24749
  minimatch.Minimatch = Minimatch;
25209
24750
  minimatch.escape = escape;
@@ -25274,7 +24815,7 @@ var isJsFile = lowerPathParam((p) => p.endsWith(".js") || p.endsWith(".mjs") ||
25274
24815
 
25275
24816
  // src/compiler/html/canonical-link.ts
25276
24817
  var updateCanonicalLink = (doc, href) => {
25277
- var _a3;
24818
+ var _a2;
25278
24819
  let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]');
25279
24820
  if (typeof href === "string") {
25280
24821
  if (canonicalLinkElm == null) {
@@ -25287,7 +24828,7 @@ var updateCanonicalLink = (doc, href) => {
25287
24828
  if (canonicalLinkElm != null) {
25288
24829
  const existingHref = canonicalLinkElm.getAttribute("href");
25289
24830
  if (!existingHref) {
25290
- (_a3 = canonicalLinkElm.parentNode) == null ? void 0 : _a3.removeChild(canonicalLinkElm);
24831
+ (_a2 = canonicalLinkElm.parentNode) == null ? void 0 : _a2.removeChild(canonicalLinkElm);
25291
24832
  }
25292
24833
  }
25293
24834
  }
@@ -25799,7 +25340,7 @@ var serializeCss = (stylesheet, serializeOpts) => {
25799
25340
  return out.join("");
25800
25341
  };
25801
25342
  var serializeCssVisitNode = (opts, node, index, len) => {
25802
- var _a3;
25343
+ var _a2;
25803
25344
  const nodeType = node.type;
25804
25345
  if (nodeType === 4 /* Declaration */) {
25805
25346
  return serializeCssDeclaration(node, index, len);
@@ -25808,7 +25349,7 @@ var serializeCssVisitNode = (opts, node, index, len) => {
25808
25349
  return serializeCssRule(opts, node);
25809
25350
  }
25810
25351
  if (nodeType === 1 /* Comment */) {
25811
- if (((_a3 = node.comment) == null ? void 0 : _a3[0]) === "!") {
25352
+ if (((_a2 = node.comment) == null ? void 0 : _a2[0]) === "!") {
25812
25353
  return `/*${node.comment}*/`;
25813
25354
  } else {
25814
25355
  return "";
@@ -25856,10 +25397,10 @@ var serializeCssVisitNode = (opts, node, index, len) => {
25856
25397
  return "";
25857
25398
  };
25858
25399
  var serializeCssRule = (opts, node) => {
25859
- var _a3, _b;
25400
+ var _a2, _b;
25860
25401
  const decls = node.declarations;
25861
25402
  const usedSelectors = opts.usedSelectors;
25862
- const selectors = (_b = (_a3 = node.selectors) == null ? void 0 : _a3.slice()) != null ? _b : [];
25403
+ const selectors = (_b = (_a2 = node.selectors) == null ? void 0 : _a2.slice()) != null ? _b : [];
25863
25404
  const hasDecls = decls != null && decls.length > 0;
25864
25405
  const hasNestedRules = node.rules != null && node.rules.length > 0;
25865
25406
  if (!hasDecls && !hasNestedRules) {
@@ -25963,8 +25504,8 @@ var serializeCssKeyframes = (opts, node) => {
25963
25504
  return "@" + (node.vendor || "") + "keyframes " + node.name + "{" + keyframesCss + "}";
25964
25505
  };
25965
25506
  var serializeCssKeyframe = (opts, node) => {
25966
- var _a3, _b;
25967
- return ((_b = (_a3 = node.values) == null ? void 0 : _a3.join(",")) != null ? _b : "") + "{" + serializeCssMapVisit(opts, node.declarations) + "}";
25507
+ var _a2, _b;
25508
+ return ((_b = (_a2 = node.values) == null ? void 0 : _a2.join(",")) != null ? _b : "") + "{" + serializeCssMapVisit(opts, node.declarations) + "}";
25968
25509
  };
25969
25510
  var serializeCssFontFace = (opts, node) => {
25970
25511
  const fontCss = serializeCssMapVisit(opts, node.declarations);
@@ -25988,8 +25529,8 @@ var serializeCssContainer = (opts, node) => {
25988
25529
  return "@container " + removeMediaWhitespace(node.media) + "{" + containerCss + "}";
25989
25530
  };
25990
25531
  var serializeCssPage = (opts, node) => {
25991
- var _a3, _b;
25992
- const sel = (_b = (_a3 = node.selectors) == null ? void 0 : _a3.join(", ")) != null ? _b : "";
25532
+ var _a2, _b;
25533
+ const sel = (_b = (_a2 = node.selectors) == null ? void 0 : _a2.join(", ")) != null ? _b : "";
25993
25534
  return "@page " + sel + "{" + serializeCssMapVisit(opts, node.declarations) + "}";
25994
25535
  };
25995
25536
  var serializeCssDocument = (opts, node) => {
@@ -26036,10 +25577,10 @@ var removeSelectorWhitespace = (selector) => {
26036
25577
  return rtn;
26037
25578
  };
26038
25579
  var removeMediaWhitespace = (media) => {
26039
- var _a3;
25580
+ var _a2;
26040
25581
  let rtn = "";
26041
25582
  let char = "";
26042
- media = (_a3 = media == null ? void 0 : media.trim()) != null ? _a3 : "";
25583
+ media = (_a2 = media == null ? void 0 : media.trim()) != null ? _a2 : "";
26043
25584
  for (let i = 0, l = media.length; i < l; i++) {
26044
25585
  char = media[i];
26045
25586
  if (CSS_WS_REG.test(char)) {