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