@stencil/core 3.4.0-dev.1687323716.1a8ff39 → 3.4.0-dev.1687410133.f722b24

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/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Testing v3.4.0-dev.1687323716.1a8ff39 | MIT Licensed | https://stenciljs.com
2
+ Stencil Testing v3.4.0-dev.1687410133.f722b24 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  function _lazyRequire(e) {
5
5
  return new Proxy({}, {
@@ -50,7 +50,7 @@ function createCommonjsModule(e, t, r) {
50
50
 
51
51
  async function startPuppeteerBrowser(e) {
52
52
  if (!e.flags.e2e) return null;
53
- const t = process.env, r = e.testing.browserExecutablePath ? "puppeteer-core" : "puppeteer", s = e.sys.lazyRequire.getModulePath(e.rootDir, r), n = e.sys.platformPath.join(s, "package.json"), o = e.sys.lazyRequire.require(e.rootDir, s);
53
+ const t = process.env, r = e.testing.browserExecutablePath ? "puppeteer-core" : "puppeteer", s = e.sys.lazyRequire.getModulePath(e.rootDir, r), n = e.sys.platformPath.join(s, "package.json"), i = e.sys.lazyRequire.require(e.rootDir, s);
54
54
  t.__STENCIL_PUPPETEER_MODULE__ = s;
55
55
  try {
56
56
  const r = e.sys.readFileSync(n, "utf8"), s = JSON.parse(r);
@@ -64,23 +64,23 @@ async function startPuppeteerBrowser(e) {
64
64
  Array.isArray(e.testing.browserArgs) && e.logger.debug(`puppeteer args: ${e.testing.browserArgs.join(" ")}`),
65
65
  "boolean" == typeof e.testing.browserDevtools && e.logger.debug(`puppeteer devtools: ${e.testing.browserDevtools}`),
66
66
  "number" == typeof e.testing.browserSlowMo && e.logger.debug(`puppeteer slowMo: ${e.testing.browserSlowMo}`);
67
- const i = {
67
+ const o = {
68
68
  ignoreHTTPSErrors: !0,
69
69
  slowMo: e.testing.browserSlowMo
70
70
  };
71
71
  let a;
72
- if (e.testing.browserWSEndpoint) a = await o.connect({
72
+ if (e.testing.browserWSEndpoint) a = await i.connect({
73
73
  browserWSEndpoint: e.testing.browserWSEndpoint,
74
- ...i
74
+ ...o
75
75
  }); else {
76
76
  const t = {
77
77
  args: e.testing.browserArgs,
78
78
  headless: e.testing.browserHeadless,
79
79
  devtools: e.testing.browserDevtools,
80
- ...i
80
+ ...o
81
81
  };
82
82
  e.testing.browserExecutablePath && (t.executablePath = e.testing.browserExecutablePath),
83
- a = await o.launch({
83
+ a = await i.launch({
84
84
  ...t
85
85
  });
86
86
  }
@@ -142,30 +142,30 @@ function getCompilerOptions(e) {
142
142
  };
143
143
  if (1 === e.category && (r.level = "error"), e.file && "number" == typeof e.start) {
144
144
  r.absFilePath = e.file.fileName;
145
- const n = "string" != typeof (s = e.file.text) ? [] : (s = s.replace(/\\r/g, "\n")).split("\n"), o = e.file.getLineAndCharacterOfPosition(e.start), i = {
146
- lineIndex: o.line,
147
- lineNumber: o.line + 1,
148
- text: n[o.line],
149
- errorCharStart: o.character,
145
+ const n = "string" != typeof (s = e.file.text) ? [] : (s = s.replace(/\\r/g, "\n")).split("\n"), i = e.file.getLineAndCharacterOfPosition(e.start), o = {
146
+ lineIndex: i.line,
147
+ lineNumber: i.line + 1,
148
+ text: n[i.line],
149
+ errorCharStart: i.character,
150
150
  errorLength: Math.max(null !== (t = e.length) && void 0 !== t ? t : 0, 1)
151
151
  };
152
- if (r.lineNumber = i.lineNumber, r.columnNumber = i.errorCharStart + 1, r.lines.push(i),
153
- 0 === i.errorLength && i.errorCharStart > 0 && (i.errorLength = 1, i.errorCharStart--),
154
- i.lineIndex > 0) {
152
+ if (r.lineNumber = o.lineNumber, r.columnNumber = o.errorCharStart + 1, r.lines.push(o),
153
+ 0 === o.errorLength && o.errorCharStart > 0 && (o.errorLength = 1, o.errorCharStart--),
154
+ o.lineIndex > 0) {
155
155
  const e = {
156
- lineIndex: i.lineIndex - 1,
157
- lineNumber: i.lineNumber - 1,
158
- text: n[i.lineIndex - 1],
156
+ lineIndex: o.lineIndex - 1,
157
+ lineNumber: o.lineNumber - 1,
158
+ text: n[o.lineIndex - 1],
159
159
  errorCharStart: -1,
160
160
  errorLength: -1
161
161
  };
162
162
  r.lines.unshift(e);
163
163
  }
164
- if (i.lineIndex + 1 < n.length) {
164
+ if (o.lineIndex + 1 < n.length) {
165
165
  const e = {
166
- lineIndex: i.lineIndex + 1,
167
- lineNumber: i.lineNumber + 1,
168
- text: n[i.lineIndex + 1],
166
+ lineIndex: o.lineIndex + 1,
167
+ lineNumber: o.lineNumber + 1,
168
+ text: n[o.lineIndex + 1],
169
169
  errorCharStart: -1,
170
170
  errorLength: -1
171
171
  };
@@ -249,7 +249,7 @@ async function runJest(e, t) {
249
249
  testLocationInResults: !1,
250
250
  "test-location-in-results": !1,
251
251
  ...n
252
- }, n.config = function o(e) {
252
+ }, n.config = function i(e) {
253
253
  const t = e.testing, r = require("jest-config").defaults, s = Object.keys(r), n = {};
254
254
  return Object.keys(t).forEach((e => {
255
255
  s.includes(e) && (n[e] = t[e]);
@@ -265,11 +265,11 @@ async function runJest(e, t) {
265
265
  n.maxWorkers = parseInt(n.maxWorkers, 10);
266
266
  } catch (e) {}
267
267
  return "string" == typeof n.ci && (n.ci = "true" === n.ci || "" === n.ci), n;
268
- }(e), o = function o(e, t) {
268
+ }(e), i = function i(e, t) {
269
269
  const r = t.projects ? t.projects : [];
270
270
  return r.push(e.rootDir), r;
271
- }(e, n), {runCLI: i} = require("@jest/core");
272
- r = !!(await i(n, o)).results.success;
271
+ }(e, n), {runCLI: o} = require("@jest/core");
272
+ r = !!(await o(n, i)).results.success;
273
273
  } catch (t) {
274
274
  e.logger.error(`runJest: ${t}`);
275
275
  }
@@ -317,11 +317,11 @@ function compareHtml(e, t, r) {
317
317
  });
318
318
  }
319
319
  }
320
- const o = index_cjs.parseHtmlToFragment(t), i = index_cjs.serializeNodeToHtml(o, {
320
+ const i = index_cjs.parseHtmlToFragment(t), o = index_cjs.serializeNodeToHtml(i, {
321
321
  prettyHtml: !0,
322
322
  excludeTags: [ "body" ]
323
323
  });
324
- return s !== i ? (expect(s).toBe(i), {
324
+ return s !== o ? (expect(s).toBe(o), {
325
325
  message: () => "HTML does not match",
326
326
  pass: !1
327
327
  }) : {
@@ -387,7 +387,7 @@ function assertPath(e) {
387
387
  }
388
388
 
389
389
  function normalizeStringPosix(e, t) {
390
- var r, s, n, o = "", i = 0, a = -1, l = 0;
390
+ var r, s, n, i = "", o = 0, a = -1, l = 0;
391
391
  for (s = 0; s <= e.length; ++s) {
392
392
  if (s < e.length) r = e.charCodeAt(s); else {
393
393
  if (47 === r) break;
@@ -395,27 +395,27 @@ function normalizeStringPosix(e, t) {
395
395
  }
396
396
  if (47 === r) {
397
397
  if (a === s - 1 || 1 === l) ; else if (a !== s - 1 && 2 === l) {
398
- if (o.length < 2 || 2 !== i || 46 !== o.charCodeAt(o.length - 1) || 46 !== o.charCodeAt(o.length - 2)) if (o.length > 2) {
399
- if ((n = o.lastIndexOf("/")) !== o.length - 1) {
400
- -1 === n ? (o = "", i = 0) : i = (o = o.slice(0, n)).length - 1 - o.lastIndexOf("/"),
398
+ if (i.length < 2 || 2 !== o || 46 !== i.charCodeAt(i.length - 1) || 46 !== i.charCodeAt(i.length - 2)) if (i.length > 2) {
399
+ if ((n = i.lastIndexOf("/")) !== i.length - 1) {
400
+ -1 === n ? (i = "", o = 0) : o = (i = i.slice(0, n)).length - 1 - i.lastIndexOf("/"),
401
401
  a = s, l = 0;
402
402
  continue;
403
403
  }
404
- } else if (2 === o.length || 1 === o.length) {
405
- o = "", i = 0, a = s, l = 0;
404
+ } else if (2 === i.length || 1 === i.length) {
405
+ i = "", o = 0, a = s, l = 0;
406
406
  continue;
407
407
  }
408
- t && (o.length > 0 ? o += "/.." : o = "..", i = 2);
409
- } else o.length > 0 ? o += "/" + e.slice(a + 1, s) : o = e.slice(a + 1, s), i = s - a - 1;
408
+ t && (i.length > 0 ? i += "/.." : i = "..", o = 2);
409
+ } else i.length > 0 ? i += "/" + e.slice(a + 1, s) : i = e.slice(a + 1, s), o = s - a - 1;
410
410
  a = s, l = 0;
411
411
  } else 46 === r && -1 !== l ? ++l : l = -1;
412
412
  }
413
- return o;
413
+ return i;
414
414
  }
415
415
 
416
416
  function specifierIncluded$1(e, t) {
417
- var r, s, n, o = e.split("."), i = t.split(" "), a = i.length > 1 ? i[0] : "=", l = (i.length > 1 ? i[1] : i[0]).split(".");
418
- for (r = 0; r < 3; ++r) if ((s = parseInt(o[r] || 0, 10)) !== (n = parseInt(l[r] || 0, 10))) return "<" === a ? s < n : ">=" === a && s >= n;
417
+ var r, s, n, i = e.split("."), o = t.split(" "), a = o.length > 1 ? o[0] : "=", l = (o.length > 1 ? o[1] : o[0]).split(".");
418
+ for (r = 0; r < 3; ++r) if ((s = parseInt(i[r] || 0, 10)) !== (n = parseInt(l[r] || 0, 10))) return "<" === a ? s < n : ">=" === a && s >= n;
419
419
  return ">=" === a;
420
420
  }
421
421
 
@@ -427,9 +427,9 @@ function matchesRange$1(e, t) {
427
427
  }
428
428
 
429
429
  function specifierIncluded(e) {
430
- var t, r, s, n = e.split(" "), o = n.length > 1 ? n[0] : "=", i = (n.length > 1 ? n[1] : n[0]).split(".");
431
- for (t = 0; t < 3; ++t) if ((r = parseInt(current[t] || 0, 10)) !== (s = parseInt(i[t] || 0, 10))) return "<" === o ? r < s : ">=" === o && r >= s;
432
- return ">=" === o;
430
+ var t, r, s, n = e.split(" "), i = n.length > 1 ? n[0] : "=", o = (n.length > 1 ? n[1] : n[0]).split(".");
431
+ for (t = 0; t < 3; ++t) if ((r = parseInt(current[t] || 0, 10)) !== (s = parseInt(o[t] || 0, 10))) return "<" === i ? r < s : ">=" === i && r >= s;
432
+ return ">=" === i;
433
433
  }
434
434
 
435
435
  function matchesRange(e) {
@@ -550,19 +550,19 @@ async function initPageEvents(e) {
550
550
  }
551
551
 
552
552
  async function pageSpyOnEvent(e, t, r) {
553
- const s = new EventSpy(t), n = "document" !== r ? () => window : () => document, o = await e.evaluateHandle(n);
554
- return await addE2EListener(e, o, t, (e => {
553
+ const s = new EventSpy(t), n = "document" !== r ? () => window : () => document, i = await e.evaluateHandle(n);
554
+ return await addE2EListener(e, i, t, (e => {
555
555
  s.push(e);
556
556
  })), s;
557
557
  }
558
558
 
559
559
  async function waitForEvent(e, t, r) {
560
560
  const s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = await e.evaluate(((e, t, r) => new Promise(((s, n) => {
561
- const o = setTimeout((() => {
561
+ const i = setTimeout((() => {
562
562
  n(new Error(`waitForEvent() timeout, eventName: ${t}`));
563
563
  }), r);
564
564
  e.addEventListener(t, (e => {
565
- clearTimeout(o), s(window.stencilSerializeEvent(e));
565
+ clearTimeout(i), s(window.stencilSerializeEvent(e));
566
566
  }), {
567
567
  once: !0
568
568
  });
@@ -631,7 +631,7 @@ function browserContextEvents() {
631
631
  }
632
632
 
633
633
  async function find(e, t, r) {
634
- const {lightSelector: s, shadowSelector: n, text: o, contains: i} = getSelector(r);
634
+ const {lightSelector: s, shadowSelector: n, text: i, contains: o} = getSelector(r);
635
635
  let a;
636
636
  if (a = "string" == typeof s ? await async function l(e, t, r, s) {
637
637
  let n = await t.$(r);
@@ -659,20 +659,20 @@ async function find(e, t, r) {
659
659
  }(e), s;
660
660
  }), t, r, s);
661
661
  return n ? n.asElement() : null;
662
- }(e, t, o, i), !a) return null;
662
+ }(e, t, i, o), !a) return null;
663
663
  const u = new E2EElement(e, a);
664
664
  return await u.e2eSync(), u;
665
665
  }
666
666
 
667
667
  async function findAll(e, t, r) {
668
- const s = [], {lightSelector: n, shadowSelector: o} = getSelector(r), i = await t.$$(n);
669
- if (0 === i.length) return s;
670
- if (o) for (let t = 0; t < i.length; t++) {
671
- const r = getPuppeteerExecution(i[t]), n = await r.evaluateHandle(((e, t) => {
668
+ const s = [], {lightSelector: n, shadowSelector: i} = getSelector(r), o = await t.$$(n);
669
+ if (0 === o.length) return s;
670
+ if (i) for (let t = 0; t < o.length; t++) {
671
+ const r = getPuppeteerExecution(o[t]), n = await r.evaluateHandle(((e, t) => {
672
672
  if (!e.shadowRoot) throw new Error(`shadow root does not exist for element: ${e.tagName.toLowerCase()}`);
673
673
  return e.shadowRoot.querySelectorAll(t);
674
- }), i[t], o);
675
- await i[t].dispose();
674
+ }), o[t], i);
675
+ await o[t].dispose();
676
676
  const a = await n.getProperties();
677
677
  await n.dispose();
678
678
  for (const t of a.values()) {
@@ -682,8 +682,8 @@ async function findAll(e, t, r) {
682
682
  await t.e2eSync(), s.push(t);
683
683
  }
684
684
  }
685
- } else for (let t = 0; t < i.length; t++) {
686
- const r = new E2EElement(e, i[t]);
685
+ } else for (let t = 0; t < o.length; t++) {
686
+ const r = new E2EElement(e, o[t]);
687
687
  await r.e2eSync(), s.push(r);
688
688
  }
689
689
  return s;
@@ -726,7 +726,7 @@ function writeFile(e, t) {
726
726
  }));
727
727
  }
728
728
 
729
- async function compareScreenshot(e, t, r, s, n, o, i, a) {
729
+ async function compareScreenshot(e, t, r, s, n, i, o, a) {
730
730
  var l, c, u, d, h, p, f, m;
731
731
  const g = `${crypto$3.createHash("md5").update(r).digest("hex")}.png`, y = path$2.join(t.imagesDir, g);
732
732
  await async function w(e, t) {
@@ -736,7 +736,7 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
736
736
  }));
737
737
  }(e);
738
738
  r || await writeFile(e, t);
739
- }(y, r), r = null, i && (i = normalizePath(path$2.relative(t.rootDir, i)));
739
+ }(y, r), r = null, o && (o = normalizePath(path$2.relative(t.rootDir, o)));
740
740
  const E = function _(e, t) {
741
741
  if ("string" != typeof t || 0 === t.trim().length) throw new Error("invalid test description");
742
742
  const r = crypto$3.createHash("md5");
@@ -749,9 +749,9 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
749
749
  device: e.device,
750
750
  userAgent: e.userAgent,
751
751
  desc: s,
752
- testPath: i,
752
+ testPath: o,
753
753
  width: n,
754
- height: o,
754
+ height: i,
755
755
  deviceScaleFactor: null === (l = e.viewport) || void 0 === l ? void 0 : l.deviceScaleFactor,
756
756
  hasTouch: null === (c = e.viewport) || void 0 === c ? void 0 : c.hasTouch,
757
757
  isLandscape: null === (u = e.viewport) || void 0 === u ? void 0 : u.isLandscape,
@@ -765,14 +765,14 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
765
765
  device: e.device,
766
766
  userAgent: e.userAgent,
767
767
  width: n,
768
- height: o,
768
+ height: i,
769
769
  deviceScaleFactor: null === (h = e.viewport) || void 0 === h ? void 0 : h.deviceScaleFactor,
770
770
  hasTouch: null === (p = e.viewport) || void 0 === p ? void 0 : p.hasTouch,
771
771
  isLandscape: null === (f = e.viewport) || void 0 === f ? void 0 : f.isLandscape,
772
772
  isMobile: null === (m = e.viewport) || void 0 === m ? void 0 : m.isMobile,
773
773
  allowableMismatchedPixels: t.allowableMismatchedPixels,
774
774
  allowableMismatchedRatio: t.allowableMismatchedRatio,
775
- testPath: i,
775
+ testPath: o,
776
776
  cacheKey: void 0
777
777
  }
778
778
  };
@@ -795,7 +795,7 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
795
795
  };
796
796
  v.diff.mismatchedPixels = await async function S(e, t) {
797
797
  return new Promise(((r, s) => {
798
- const n = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, o = setTimeout((() => {
798
+ const n = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, i = setTimeout((() => {
799
799
  s(`getMismatchedPixels timeout: ${n}ms`);
800
800
  }), n);
801
801
  try {
@@ -804,14 +804,14 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
804
804
  env: process.env,
805
805
  cwd: process.cwd(),
806
806
  stdio: [ "pipe", "pipe", "pipe", "ipc" ]
807
- }, i = child_process$2.fork(e, [], n);
808
- i.on("message", (e => {
809
- i.kill(), clearTimeout(o), r(e);
810
- })), i.on("error", (e => {
811
- clearTimeout(o), s(e);
812
- })), i.send(t);
807
+ }, o = child_process$2.fork(e, [], n);
808
+ o.on("message", (e => {
809
+ o.kill(), clearTimeout(i), r(e);
810
+ })), o.on("error", (e => {
811
+ clearTimeout(i), s(e);
812
+ })), o.send(t);
813
813
  } catch (e) {
814
- clearTimeout(o), s(`getMismatchedPixels error: ${e}`);
814
+ clearTimeout(i), s(`getMismatchedPixels error: ${e}`);
815
815
  }
816
816
  }));
817
817
  }(t.pixelmatchModulePath, n);
@@ -828,9 +828,9 @@ async function e2eGoTo(e, t, r = {}) {
828
828
  if ("string" != typeof s) throw new Error("invalid gotoTest() browser url");
829
829
  const n = s + t.substring(1);
830
830
  r.waitUntil || (r.waitUntil = env.__STENCIL_BROWSER_WAIT_UNTIL);
831
- const o = await e._e2eGoto(n, r);
832
- if (!o.ok()) throw new Error(`Testing unable to load ${t}, HTTP status: ${o.status()}`);
833
- return await waitForStencil(e, r), o;
831
+ const i = await e._e2eGoto(n, r);
832
+ if (!i.ok()) throw new Error(`Testing unable to load ${t}, HTTP status: ${i.status()}`);
833
+ return await waitForStencil(e, r), i;
834
834
  }
835
835
 
836
836
  async function e2eSetContent(e, t, r = {}) {
@@ -839,18 +839,18 @@ async function e2eSetContent(e, t, r = {}) {
839
839
  const s = [], n = env.__STENCIL_APP_SCRIPT_URL__;
840
840
  if ("string" != typeof n) throw new Error("invalid e2eSetContent() app script url");
841
841
  s.push("<!doctype html>"), s.push("<html>"), s.push("<head>");
842
- const o = env.__STENCIL_APP_STYLE_URL__;
843
- "string" == typeof o && s.push(`<link rel="stylesheet" href="${o}">`), s.push(`<script type="module" src="${n}"><\/script>`),
842
+ const i = env.__STENCIL_APP_STYLE_URL__;
843
+ "string" == typeof i && s.push(`<link rel="stylesheet" href="${i}">`), s.push(`<script type="module" src="${n}"><\/script>`),
844
844
  s.push("</head>"), s.push("<body>"), s.push(t), s.push("</body>"), s.push("</html>");
845
- const i = env.__STENCIL_BROWSER_URL__;
845
+ const o = env.__STENCIL_BROWSER_URL__;
846
846
  await e.setRequestInterception(!0), e.on("request", (e => {
847
- i === e.url() ? e.respond({
847
+ o === e.url() ? e.respond({
848
848
  status: 200,
849
849
  contentType: "text/html",
850
850
  body: s.join("\n")
851
851
  }) : e.continue();
852
852
  })), r.waitUntil || (r.waitUntil = env.__STENCIL_BROWSER_WAIT_UNTIL);
853
- const a = await e._e2eGoto(i, r);
853
+ const a = await e._e2eGoto(o, r);
854
854
  if (!a.ok()) throw new Error("Testing unable to load content");
855
855
  return await waitForStencil(e, r), a;
856
856
  }
@@ -941,13 +941,13 @@ function getAppStyleUrl(e, t) {
941
941
  function getAppUrl(e, t, r) {
942
942
  const s = e.outputTargets.find(isOutputTargetWww);
943
943
  if (s) {
944
- const e = s.buildDir, n = path$2.join(e, r), o = path$2.relative(s.dir, n);
945
- return new URL(o, t).href;
944
+ const e = s.buildDir, n = path$2.join(e, r), i = path$2.relative(s.dir, n);
945
+ return new URL(i, t).href;
946
946
  }
947
947
  const n = e.outputTargets.find(isOutputTargetDistLazy);
948
948
  if (n) {
949
- const s = n.esmDir, o = path$2.join(s, r), i = path$2.relative(e.rootDir, o);
950
- return new URL(i, t).href;
949
+ const s = n.esmDir, i = path$2.join(s, r), o = path$2.relative(e.rootDir, i);
950
+ return new URL(o, t).href;
951
951
  }
952
952
  return t;
953
953
  }
@@ -970,36 +970,36 @@ constants$2 = {
970
970
  FLAG_INCLUDE_PRERELEASE: 1,
971
971
  FLAG_LOOSE: 2
972
972
  }, re_1 = createCommonjsModule((function(e, t) {
973
- const {MAX_SAFE_COMPONENT_LENGTH: r} = constants$2, s = (t = e.exports = {}).re = [], n = t.src = [], o = t.t = {};
974
- let i = 0;
975
- const a = (e, t, r) => {
976
- const a = i++;
977
- debug_1(e, a, t), o[e] = a, n[a] = t, s[a] = new RegExp(t, r ? "g" : void 0);
973
+ const {MAX_SAFE_COMPONENT_LENGTH: r} = constants$2, s = (t = e.exports = {}).re = [], n = t.safeRe = [], i = t.src = [], o = t.t = {};
974
+ let a = 0;
975
+ const l = (e, t, r) => {
976
+ const l = t.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"), c = a++;
977
+ debug_1(e, c, t), o[e] = c, i[c] = t, s[c] = new RegExp(t, r ? "g" : void 0), n[c] = new RegExp(l, r ? "g" : void 0);
978
978
  };
979
- a("NUMERICIDENTIFIER", "0|[1-9]\\d*"), a("NUMERICIDENTIFIERLOOSE", "[0-9]+"), a("NONNUMERICIDENTIFIER", "\\d*[a-zA-Z-][a-zA-Z0-9-]*"),
980
- a("MAINVERSION", `(${n[o.NUMERICIDENTIFIER]})\\.(${n[o.NUMERICIDENTIFIER]})\\.(${n[o.NUMERICIDENTIFIER]})`),
981
- a("MAINVERSIONLOOSE", `(${n[o.NUMERICIDENTIFIERLOOSE]})\\.(${n[o.NUMERICIDENTIFIERLOOSE]})\\.(${n[o.NUMERICIDENTIFIERLOOSE]})`),
982
- a("PRERELEASEIDENTIFIER", `(?:${n[o.NUMERICIDENTIFIER]}|${n[o.NONNUMERICIDENTIFIER]})`),
983
- a("PRERELEASEIDENTIFIERLOOSE", `(?:${n[o.NUMERICIDENTIFIERLOOSE]}|${n[o.NONNUMERICIDENTIFIER]})`),
984
- a("PRERELEASE", `(?:-(${n[o.PRERELEASEIDENTIFIER]}(?:\\.${n[o.PRERELEASEIDENTIFIER]})*))`),
985
- a("PRERELEASELOOSE", `(?:-?(${n[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[o.PRERELEASEIDENTIFIERLOOSE]})*))`),
986
- a("BUILDIDENTIFIER", "[0-9A-Za-z-]+"), a("BUILD", `(?:\\+(${n[o.BUILDIDENTIFIER]}(?:\\.${n[o.BUILDIDENTIFIER]})*))`),
987
- a("FULLPLAIN", `v?${n[o.MAINVERSION]}${n[o.PRERELEASE]}?${n[o.BUILD]}?`), a("FULL", `^${n[o.FULLPLAIN]}$`),
988
- a("LOOSEPLAIN", `[v=\\s]*${n[o.MAINVERSIONLOOSE]}${n[o.PRERELEASELOOSE]}?${n[o.BUILD]}?`),
989
- a("LOOSE", `^${n[o.LOOSEPLAIN]}$`), a("GTLT", "((?:<|>)?=?)"), a("XRANGEIDENTIFIERLOOSE", `${n[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),
990
- a("XRANGEIDENTIFIER", `${n[o.NUMERICIDENTIFIER]}|x|X|\\*`), a("XRANGEPLAIN", `[v=\\s]*(${n[o.XRANGEIDENTIFIER]})(?:\\.(${n[o.XRANGEIDENTIFIER]})(?:\\.(${n[o.XRANGEIDENTIFIER]})(?:${n[o.PRERELEASE]})?${n[o.BUILD]}?)?)?`),
991
- a("XRANGEPLAINLOOSE", `[v=\\s]*(${n[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[o.XRANGEIDENTIFIERLOOSE]})(?:${n[o.PRERELEASELOOSE]})?${n[o.BUILD]}?)?)?`),
992
- a("XRANGE", `^${n[o.GTLT]}\\s*${n[o.XRANGEPLAIN]}$`), a("XRANGELOOSE", `^${n[o.GTLT]}\\s*${n[o.XRANGEPLAINLOOSE]}$`),
993
- a("COERCE", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),
994
- a("COERCERTL", n[o.COERCE], !0), a("LONETILDE", "(?:~>?)"), a("TILDETRIM", `(\\s*)${n[o.LONETILDE]}\\s+`, !0),
995
- t.tildeTrimReplace = "$1~", a("TILDE", `^${n[o.LONETILDE]}${n[o.XRANGEPLAIN]}$`),
996
- a("TILDELOOSE", `^${n[o.LONETILDE]}${n[o.XRANGEPLAINLOOSE]}$`), a("LONECARET", "(?:\\^)"),
997
- a("CARETTRIM", `(\\s*)${n[o.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", a("CARET", `^${n[o.LONECARET]}${n[o.XRANGEPLAIN]}$`),
998
- a("CARETLOOSE", `^${n[o.LONECARET]}${n[o.XRANGEPLAINLOOSE]}$`), a("COMPARATORLOOSE", `^${n[o.GTLT]}\\s*(${n[o.LOOSEPLAIN]})$|^$`),
999
- a("COMPARATOR", `^${n[o.GTLT]}\\s*(${n[o.FULLPLAIN]})$|^$`), a("COMPARATORTRIM", `(\\s*)${n[o.GTLT]}\\s*(${n[o.LOOSEPLAIN]}|${n[o.XRANGEPLAIN]})`, !0),
1000
- t.comparatorTrimReplace = "$1$2$3", a("HYPHENRANGE", `^\\s*(${n[o.XRANGEPLAIN]})\\s+-\\s+(${n[o.XRANGEPLAIN]})\\s*$`),
1001
- a("HYPHENRANGELOOSE", `^\\s*(${n[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[o.XRANGEPLAINLOOSE]})\\s*$`),
1002
- a("STAR", "(<|>)?=?\\s*\\*"), a("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), a("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
979
+ l("NUMERICIDENTIFIER", "0|[1-9]\\d*"), l("NUMERICIDENTIFIERLOOSE", "[0-9]+"), l("NONNUMERICIDENTIFIER", "\\d*[a-zA-Z-][a-zA-Z0-9-]*"),
980
+ l("MAINVERSION", `(${i[o.NUMERICIDENTIFIER]})\\.(${i[o.NUMERICIDENTIFIER]})\\.(${i[o.NUMERICIDENTIFIER]})`),
981
+ l("MAINVERSIONLOOSE", `(${i[o.NUMERICIDENTIFIERLOOSE]})\\.(${i[o.NUMERICIDENTIFIERLOOSE]})\\.(${i[o.NUMERICIDENTIFIERLOOSE]})`),
982
+ l("PRERELEASEIDENTIFIER", `(?:${i[o.NUMERICIDENTIFIER]}|${i[o.NONNUMERICIDENTIFIER]})`),
983
+ l("PRERELEASEIDENTIFIERLOOSE", `(?:${i[o.NUMERICIDENTIFIERLOOSE]}|${i[o.NONNUMERICIDENTIFIER]})`),
984
+ l("PRERELEASE", `(?:-(${i[o.PRERELEASEIDENTIFIER]}(?:\\.${i[o.PRERELEASEIDENTIFIER]})*))`),
985
+ l("PRERELEASELOOSE", `(?:-?(${i[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[o.PRERELEASEIDENTIFIERLOOSE]})*))`),
986
+ l("BUILDIDENTIFIER", "[0-9A-Za-z-]+"), l("BUILD", `(?:\\+(${i[o.BUILDIDENTIFIER]}(?:\\.${i[o.BUILDIDENTIFIER]})*))`),
987
+ l("FULLPLAIN", `v?${i[o.MAINVERSION]}${i[o.PRERELEASE]}?${i[o.BUILD]}?`), l("FULL", `^${i[o.FULLPLAIN]}$`),
988
+ l("LOOSEPLAIN", `[v=\\s]*${i[o.MAINVERSIONLOOSE]}${i[o.PRERELEASELOOSE]}?${i[o.BUILD]}?`),
989
+ l("LOOSE", `^${i[o.LOOSEPLAIN]}$`), l("GTLT", "((?:<|>)?=?)"), l("XRANGEIDENTIFIERLOOSE", `${i[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),
990
+ l("XRANGEIDENTIFIER", `${i[o.NUMERICIDENTIFIER]}|x|X|\\*`), l("XRANGEPLAIN", `[v=\\s]*(${i[o.XRANGEIDENTIFIER]})(?:\\.(${i[o.XRANGEIDENTIFIER]})(?:\\.(${i[o.XRANGEIDENTIFIER]})(?:${i[o.PRERELEASE]})?${i[o.BUILD]}?)?)?`),
991
+ l("XRANGEPLAINLOOSE", `[v=\\s]*(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:${i[o.PRERELEASELOOSE]})?${i[o.BUILD]}?)?)?`),
992
+ l("XRANGE", `^${i[o.GTLT]}\\s*${i[o.XRANGEPLAIN]}$`), l("XRANGELOOSE", `^${i[o.GTLT]}\\s*${i[o.XRANGEPLAINLOOSE]}$`),
993
+ l("COERCE", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),
994
+ l("COERCERTL", i[o.COERCE], !0), l("LONETILDE", "(?:~>?)"), l("TILDETRIM", `(\\s*)${i[o.LONETILDE]}\\s+`, !0),
995
+ t.tildeTrimReplace = "$1~", l("TILDE", `^${i[o.LONETILDE]}${i[o.XRANGEPLAIN]}$`),
996
+ l("TILDELOOSE", `^${i[o.LONETILDE]}${i[o.XRANGEPLAINLOOSE]}$`), l("LONECARET", "(?:\\^)"),
997
+ l("CARETTRIM", `(\\s*)${i[o.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", l("CARET", `^${i[o.LONECARET]}${i[o.XRANGEPLAIN]}$`),
998
+ l("CARETLOOSE", `^${i[o.LONECARET]}${i[o.XRANGEPLAINLOOSE]}$`), l("COMPARATORLOOSE", `^${i[o.GTLT]}\\s*(${i[o.LOOSEPLAIN]})$|^$`),
999
+ l("COMPARATOR", `^${i[o.GTLT]}\\s*(${i[o.FULLPLAIN]})$|^$`), l("COMPARATORTRIM", `(\\s*)${i[o.GTLT]}\\s*(${i[o.LOOSEPLAIN]}|${i[o.XRANGEPLAIN]})`, !0),
1000
+ t.comparatorTrimReplace = "$1$2$3", l("HYPHENRANGE", `^\\s*(${i[o.XRANGEPLAIN]})\\s+-\\s+(${i[o.XRANGEPLAIN]})\\s*$`),
1001
+ l("HYPHENRANGELOOSE", `^\\s*(${i[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[o.XRANGEPLAINLOOSE]})\\s*$`),
1002
+ l("STAR", "(<|>)?=?\\s*\\*"), l("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), l("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
1003
1003
  }));
1004
1004
 
1005
1005
  const looseOption = Object.freeze({
@@ -1018,7 +1018,7 @@ identifiers = {
1018
1018
  rcompareIdentifiers: (e, t) => compareIdentifiers$1(t, e)
1019
1019
  };
1020
1020
 
1021
- const {MAX_LENGTH, MAX_SAFE_INTEGER} = constants$2, {re, t} = re_1, {compareIdentifiers} = identifiers;
1021
+ const {MAX_LENGTH, MAX_SAFE_INTEGER} = constants$2, {safeRe: re, t} = re_1, {compareIdentifiers} = identifiers;
1022
1022
 
1023
1023
  class SemVer {
1024
1024
  constructor(e, r) {
@@ -1137,7 +1137,8 @@ class SemVer {
1137
1137
  default:
1138
1138
  throw new Error(`invalid increment argument: ${e}`);
1139
1139
  }
1140
- return this.format(), this.raw = this.version, this;
1140
+ return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`),
1141
+ this;
1141
1142
  }
1142
1143
  }
1143
1144
 
@@ -1196,8 +1197,8 @@ const formatComponentRuntimeMembers = (e, t = !0) => ({
1196
1197
  }, noop = () => {}, isFunction = e => "function" == typeof e, isString = e => "string" == typeof e, isIterable = e => (e => null != e)(e) && isFunction(e[Symbol.iterator]), windowsPathRegex = /^(?:[a-zA-Z]:|[\\/]{2}[^\\/]+[\\/]+[^\\/]+)?[\\/]$/, hasError = e => null != e && 0 !== e.length && e.some((e => "error" === e.level && "runtime" !== e.type)), normalizePath = e => {
1197
1198
  if ("string" != typeof e) throw new Error("invalid path to normalize");
1198
1199
  e = normalizeSlashes(e.trim());
1199
- const t = pathComponents(e, getRootLength(e)), r = reducePathComponents(t), s = r[0], n = r[1], o = s + r.slice(1).join("/");
1200
- return "" === o ? "." : "" === s && n && e.includes("/") && !n.startsWith(".") && !n.startsWith("@") ? "./" + o : o;
1200
+ const t = pathComponents(e, getRootLength(e)), r = reducePathComponents(t), s = r[0], n = r[1], i = s + r.slice(1).join("/");
1201
+ return "" === i ? "." : "" === s && n && e.includes("/") && !n.startsWith(".") && !n.startsWith("@") ? "./" + i : i;
1201
1202
  }, normalizeSlashes = e => e.replace(backslashRegExp, "/"), backslashRegExp = /\\/g, reducePathComponents = e => {
1202
1203
  if (!Array.isArray(e) || 0 === e.length) return [];
1203
1204
  const t = [ e[0] ];
@@ -1234,8 +1235,8 @@ const formatComponentRuntimeMembers = (e, t = !0) => ({
1234
1235
  if (-1 !== r) {
1235
1236
  const t = r + 3, s = e.indexOf("/", t);
1236
1237
  if (-1 !== s) {
1237
- const n = e.slice(0, r), o = e.slice(t, s);
1238
- if ("file" === n && ("" === o || "localhost" === o) && isVolumeCharacter(e.charCodeAt(s + 1))) {
1238
+ const n = e.slice(0, r), i = e.slice(t, s);
1239
+ if ("file" === n && ("" === i || "localhost" === i) && isVolumeCharacter(e.charCodeAt(s + 1))) {
1239
1240
  const t = getFileUrlVolumeSeparatorEnd(e, s + 2);
1240
1241
  if (-1 !== t) {
1241
1242
  if (47 === e.charCodeAt(t)) return ~(t + 1);
@@ -1262,12 +1263,12 @@ const formatComponentRuntimeMembers = (e, t = !0) => ({
1262
1263
  var r, s;
1263
1264
  if ("string" == typeof t) return t;
1264
1265
  if (void 0 === t) return "";
1265
- const n = [], o = (null !== (s = null === (r = e.file) || void 0 === r ? void 0 : r.fileName) && void 0 !== s ? s : "").includes("stencil.config");
1266
- o && n.push(2322);
1267
- let i = "";
1268
- if (!n.includes(t.code) && (i = t.messageText, isIterable(t.next))) for (const r of t.next) i += flattenDiagnosticMessageText(e, r);
1269
- return o && (i = i.replace("type 'StencilConfig'", "Stencil Config"), i = i.replace("Object literal may only specify known properties, but ", ""),
1270
- i = i.replace("Object literal may only specify known properties, and ", "")), i.trim();
1266
+ const n = [], i = (null !== (s = null === (r = e.file) || void 0 === r ? void 0 : r.fileName) && void 0 !== s ? s : "").includes("stencil.config");
1267
+ i && n.push(2322);
1268
+ let o = "";
1269
+ if (!n.includes(t.code) && (o = t.messageText, isIterable(t.next))) for (const r of t.next) o += flattenDiagnosticMessageText(e, r);
1270
+ return i && (o = o.replace("type 'StencilConfig'", "Stencil Config"), o = o.replace("Object literal may only specify known properties, but ", ""),
1271
+ o = o.replace("Object literal may only specify known properties, and ", "")), o.trim();
1271
1272
  }, isOutputTargetDistLazy = e => "dist-lazy" === e.type, isOutputTargetWww = e => "www" === e.type, isJest27TransformOptions = e => null != e && "object" == typeof e && e.hasOwnProperty("config");
1272
1273
 
1273
1274
  let _tsCompilerOptions = null, _tsCompilerOptionsKey = null;
@@ -1291,12 +1292,12 @@ const jestPreprocessor = {
1291
1292
  currentDirectory: s.rootDir
1292
1293
  }, n = getCompilerOptions(s.rootDir);
1293
1294
  n && (n.baseUrl && (r.baseUrl = n.baseUrl), n.paths && (r.paths = n.paths));
1294
- const o = transpile(e, r), i = o.diagnostics.some((e => "error" === e.level));
1295
- if (o.diagnostics && i) {
1296
- const e = o.diagnostics.map(formatDiagnostic).join("\n\n");
1295
+ const i = transpile(e, r), o = i.diagnostics.some((e => "error" === e.level));
1296
+ if (i.diagnostics && o) {
1297
+ const e = i.diagnostics.map(formatDiagnostic).join("\n\n");
1297
1298
  throw new Error(e);
1298
1299
  }
1299
- return o.code;
1300
+ return i.code;
1300
1301
  }
1301
1302
  return e;
1302
1303
  },
@@ -1312,10 +1313,10 @@ const jestPreprocessor = {
1312
1313
  if (t === r) return !0;
1313
1314
  if (t && r && "object" == typeof t && "object" == typeof r) {
1314
1315
  const s = Array.isArray(t), n = Array.isArray(r);
1315
- let o, i, a;
1316
+ let i, o, a;
1316
1317
  if (s && n) {
1317
- if (i = t.length, i != r.length) return !1;
1318
- for (o = i; 0 != o--; ) if (!e(t[o], r[o])) return !1;
1318
+ if (o = t.length, o != r.length) return !1;
1319
+ for (i = o; 0 != i--; ) if (!e(t[i], r[i])) return !1;
1319
1320
  return !0;
1320
1321
  }
1321
1322
  if (s != n) return !1;
@@ -1326,9 +1327,9 @@ const jestPreprocessor = {
1326
1327
  if (u != d) return !1;
1327
1328
  if (u && d) return t.toString() == r.toString();
1328
1329
  const h = Object.keys(t);
1329
- if (i = h.length, i !== Object.keys(r).length) return !1;
1330
- for (o = i; 0 != o--; ) if (!Object.prototype.hasOwnProperty.call(r, h[o])) return !1;
1331
- for (o = i; 0 != o--; ) if (a = h[o], !e(t[a], r[a])) return !1;
1330
+ if (o = h.length, o !== Object.keys(r).length) return !1;
1331
+ for (i = o; 0 != i--; ) if (!Object.prototype.hasOwnProperty.call(r, h[i])) return !1;
1332
+ for (i = o; 0 != i--; ) if (a = h[i], !e(t[a], r[a])) return !1;
1332
1333
  return !0;
1333
1334
  }
1334
1335
  return t != t && r != r;
@@ -1732,9 +1733,9 @@ class BuildContext {
1732
1733
  }
1733
1734
  return {
1734
1735
  duration: () => r.duration(),
1735
- finish: (e, s, n, o) => {
1736
+ finish: (e, s, n, i) => {
1736
1737
  if ((!this.hasFinished || t) && (t && this.config.watch && (e = `${this.config.logger.cyan("[" + this.buildId + "]")} ${e}`),
1737
- r.finish(e, s, n, o), !t)) {
1738
+ r.finish(e, s, n, i), !t)) {
1738
1739
  const e = {
1739
1740
  buildId: this.buildId,
1740
1741
  messages: this.buildMessages.slice(),
@@ -1850,12 +1851,12 @@ class Cache {
1850
1851
  if (null != t) {
1851
1852
  if (e - t < ONE_DAY) return;
1852
1853
  const r = this.cacheFs.sys, s = await r.readDir(this.config.cacheDir), n = s.map((e => path$2.join(this.config.cacheDir, e)));
1853
- let o = 0;
1854
- const i = n.map((async t => {
1854
+ let i = 0;
1855
+ const o = n.map((async t => {
1855
1856
  const s = (await r.stat(t)).mtimeMs;
1856
- e - s > ONE_WEEK && (await r.removeFile(t), o++);
1857
+ e - s > ONE_WEEK && (await r.removeFile(t), i++);
1857
1858
  }));
1858
- await Promise.all(i), this.logger.debug(`clearExpiredCache, cachedFileNames: ${s.length}, totalCleared: ${o}`);
1859
+ await Promise.all(o), this.logger.debug(`clearExpiredCache, cachedFileNames: ${s.length}, totalCleared: ${i}`);
1859
1860
  }
1860
1861
  this.logger.debug("clearExpiredCache, set last clear"), await this.sys.cacheStorage.set(EXP_STORAGE_KEY, e);
1861
1862
  }
@@ -1898,11 +1899,11 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1898
1899
  }), () => t(n);
1899
1900
  }
1900
1901
  if ("string" == typeof r && "function" == typeof s) {
1901
- const n = r.toLowerCase().trim(), o = s;
1902
+ const n = r.toLowerCase().trim(), i = s;
1902
1903
  return e.push({
1903
1904
  eventName: n,
1904
- callback: o
1905
- }), () => t(o);
1905
+ callback: i
1906
+ }), () => t(i);
1906
1907
  }
1907
1908
  return () => !1;
1908
1909
  },
@@ -1917,23 +1918,23 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1917
1918
  if (!0 === r.inMemoryOnly) {
1918
1919
  let n = e;
1919
1920
  n.endsWith("/") || (n += "/");
1920
- const i = e.split("/");
1921
+ const o = e.split("/");
1921
1922
  t.forEach(((t, n) => {
1922
1923
  if (!n.startsWith(e)) return;
1923
1924
  const a = n.split("/");
1924
- if ((a.length === i.length + 1 || r.recursive && a.length > i.length) && t.exists) {
1925
+ if ((a.length === o.length + 1 || r.recursive && a.length > o.length) && t.exists) {
1925
1926
  const e = {
1926
1927
  absPath: n,
1927
- relPath: a[i.length],
1928
+ relPath: a[o.length],
1928
1929
  isDirectory: t.isDirectory,
1929
1930
  isFile: t.isFile
1930
1931
  };
1931
- o(r, e) || s.push(e);
1932
+ i(r, e) || s.push(e);
1932
1933
  }
1933
1934
  }));
1934
1935
  } else await n(e, e, r, s);
1935
1936
  return s.sort(((e, t) => e.absPath < t.absPath ? -1 : e.absPath > t.absPath ? 1 : 0));
1936
- }, n = async (t, r, s, i) => {
1937
+ }, n = async (t, r, s, o) => {
1937
1938
  const l = await e.readDir(r);
1938
1939
  if (l.length > 0) {
1939
1940
  const e = m(r);
@@ -1944,10 +1945,10 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1944
1945
  isDirectory: c.isDirectory,
1945
1946
  isFile: c.isFile
1946
1947
  };
1947
- o(s, u) || (i.push(u), !0 === s.recursive && !0 === c.isDirectory && await n(t, r, s, i));
1948
+ i(s, u) || (o.push(u), !0 === s.recursive && !0 === c.isDirectory && await n(t, r, s, o));
1948
1949
  })));
1949
1950
  }
1950
- }, o = (e, t) => {
1951
+ }, i = (e, t) => {
1951
1952
  if (t.isDirectory) {
1952
1953
  if (Array.isArray(e.excludeDirNames)) {
1953
1954
  const r = path$2.basename(t.absPath);
@@ -1958,7 +1959,7 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1958
1959
  if (e.excludeExtensions.some((e => r.endsWith(e)))) return !0;
1959
1960
  }
1960
1961
  return !1;
1961
- }, i = async e => {
1962
+ }, o = async e => {
1962
1963
  const t = m(e);
1963
1964
  t.queueWriteToDisk || (t.queueDeleteFromDisk = !0);
1964
1965
  }, a = async t => {
@@ -1992,26 +1993,26 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1992
1993
  }, c = async (t, s, n) => {
1993
1994
  if ("string" != typeof t) throw new Error(`writeFile, invalid filePath: ${t}`);
1994
1995
  if ("string" != typeof s) throw new Error(`writeFile, invalid content: ${t}`);
1995
- const o = {
1996
+ const i = {
1996
1997
  ignored: !1,
1997
1998
  changedContent: !1,
1998
1999
  queuedWrite: !1
1999
2000
  };
2000
- if (!0 === shouldIgnore(t)) return o.ignored = !0, o;
2001
- const i = m(t);
2002
- if (i.exists = !0, i.isFile = !0, i.isDirectory = !1, i.queueDeleteFromDisk = !1,
2003
- "string" == typeof i.fileText ? o.changedContent = i.fileText.replace(/\r/g, "") !== s.replace(/\r/g, "") : o.changedContent = !0,
2004
- i.fileText = s, o.queuedWrite = !1, null != n && ("string" == typeof n.outputTargetType && r.set(t, n.outputTargetType),
2005
- !1 === n.useCache && (i.useCache = !1)), null != n && !0 === n.inMemoryOnly) i.queueWriteToDisk ? o.queuedWrite = !0 : i.queueWriteToDisk = !1,
2001
+ if (!0 === shouldIgnore(t)) return i.ignored = !0, i;
2002
+ const o = m(t);
2003
+ if (o.exists = !0, o.isFile = !0, o.isDirectory = !1, o.queueDeleteFromDisk = !1,
2004
+ "string" == typeof o.fileText ? i.changedContent = o.fileText.replace(/\r/g, "") !== s.replace(/\r/g, "") : i.changedContent = !0,
2005
+ o.fileText = s, i.queuedWrite = !1, null != n && ("string" == typeof n.outputTargetType && r.set(t, n.outputTargetType),
2006
+ !1 === n.useCache && (o.useCache = !1)), null != n && !0 === n.inMemoryOnly) o.queueWriteToDisk ? i.queuedWrite = !0 : o.queueWriteToDisk = !1,
2006
2007
  await u(t, !0); else if (null != n && !0 === n.immediateWrite) {
2007
- if (o.changedContent || !0 !== n.useCache) {
2008
+ if (i.changedContent || !0 !== n.useCache) {
2008
2009
  const r = await e.readFile(t);
2009
- "string" == typeof r && (o.changedContent = i.fileText.replace(/\r/g, "") !== r.replace(/\r/g, "")),
2010
- o.changedContent && (await u(t, !1), await e.writeFile(t, i.fileText));
2010
+ "string" == typeof r && (i.changedContent = o.fileText.replace(/\r/g, "") !== r.replace(/\r/g, "")),
2011
+ i.changedContent && (await u(t, !1), await e.writeFile(t, o.fileText));
2011
2012
  }
2012
- } else i.queueWriteToDisk || !0 !== o.changedContent || (i.queueWriteToDisk = !0,
2013
- o.queuedWrite = !0);
2014
- return o;
2013
+ } else o.queueWriteToDisk || !0 !== i.changedContent || (o.queueWriteToDisk = !0,
2014
+ i.queuedWrite = !0);
2015
+ return i;
2015
2016
  }, u = async (e, t) => {
2016
2017
  const r = [];
2017
2018
  for (;"string" == typeof (e = path$2.dirname(e)) && e.length > 0 && "/" !== e && !1 === e.endsWith(":/") && !1 === e.endsWith(":\\"); ) r.push(e);
@@ -2085,13 +2086,13 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
2085
2086
  Promise.all(l.map((async e => {
2086
2087
  if ("string" != typeof e) throw new Error("unable to writeFile without filePath");
2087
2088
  return h(e);
2088
- })))), o = await (t => {
2089
+ })))), i = await (t => {
2089
2090
  const r = Promise.all(t.map((async t => {
2090
2091
  const [r, s] = t;
2091
2092
  return await e.copyFile(r, s), [ r, s ];
2092
2093
  })));
2093
2094
  return r;
2094
- })(r.filesToCopy), i = await (async t => await Promise.all(t.map((async t => {
2095
+ })(r.filesToCopy), o = await (async t => await Promise.all(t.map((async t => {
2095
2096
  if ("string" != typeof t) throw new Error("unable to unlink without filePath");
2096
2097
  return await e.removeFile(t), t;
2097
2098
  }))))(r.filesToDelete), a = await (async t => {
@@ -2101,9 +2102,9 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
2101
2102
  })(r.dirsToDelete);
2102
2103
  var l;
2103
2104
  return r.filesToDelete.forEach(f), r.dirsToDelete.forEach(p), {
2104
- filesCopied: o,
2105
+ filesCopied: i,
2105
2106
  filesWritten: n,
2106
- filesDeleted: i,
2107
+ filesDeleted: o,
2107
2108
  dirsDeleted: a,
2108
2109
  dirsAdded: s
2109
2110
  };
@@ -2121,7 +2122,7 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
2121
2122
  r.sort(((e, t) => {
2122
2123
  const r = e.split("/").length, s = t.split("/").length;
2123
2124
  return r < s ? 1 : r > s ? -1 : 0;
2124
- })), await Promise.all(r.map(i)), e.forEach((e => {
2125
+ })), await Promise.all(r.map(o)), e.forEach((e => {
2125
2126
  const t = m(e);
2126
2127
  t.isFile = !1, t.isDirectory = !0, t.queueWriteToDisk = !0, t.queueDeleteFromDisk = !1;
2127
2128
  }));
@@ -2166,9 +2167,9 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
2166
2167
  const t = await s(e, {
2167
2168
  recursive: !0
2168
2169
  });
2169
- await Promise.all(t.map((e => e.relPath.endsWith(".gitkeep") ? null : i(e.absPath))));
2170
+ await Promise.all(t.map((e => e.relPath.endsWith(".gitkeep") ? null : o(e.absPath))));
2170
2171
  } catch (e) {}
2171
- })(e) : !0 === t.isFile && await i(e);
2172
+ })(e) : !0 === t.isFile && await o(e);
2172
2173
  },
2173
2174
  stat: a,
2174
2175
  statSync: l,
@@ -2209,10 +2210,10 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
2209
2210
  } else if (!0 === e.queueDeleteFromDisk) e.isDirectory && !t.dirsToEnsure.includes(r) ? t.dirsToDelete.push(r) : e.isFile && !t.filesToWrite.includes(r) && t.filesToDelete.push(r); else if ("string" == typeof e.queueCopyFileToDest) {
2210
2211
  const s = r, n = e.queueCopyFileToDest;
2211
2212
  t.filesToCopy.push([ s, n ]);
2212
- const o = normalizePath(path$2.dirname(n));
2213
- t.dirsToEnsure.includes(o) || t.dirsToEnsure.push(o);
2214
- const i = t.dirsToDelete.indexOf(o);
2215
- i > -1 && t.dirsToDelete.splice(i, 1);
2213
+ const i = normalizePath(path$2.dirname(n));
2214
+ t.dirsToEnsure.includes(i) || t.dirsToEnsure.push(i);
2215
+ const o = t.dirsToDelete.indexOf(i);
2216
+ o > -1 && t.dirsToDelete.splice(o, 1);
2216
2217
  const a = t.filesToDelete.indexOf(n);
2217
2218
  a > -1 && t.filesToDelete.splice(a, 1);
2218
2219
  }
@@ -2309,10 +2310,10 @@ class TestingLogger {
2309
2310
 
2310
2311
  (posix = {
2311
2312
  resolve: function e() {
2312
- var t, r, s, n = "", o = !1;
2313
- for (r = arguments.length - 1; r >= -1 && !o; r--) r >= 0 ? s = arguments[r] : (void 0 === t && (t = process.cwd()),
2314
- s = t), assertPath(s), 0 !== s.length && (n = s + "/" + n, o = 47 === s.charCodeAt(0));
2315
- return n = normalizeStringPosix(n, !o), o ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
2313
+ var t, r, s, n = "", i = !1;
2314
+ for (r = arguments.length - 1; r >= -1 && !i; r--) r >= 0 ? s = arguments[r] : (void 0 === t && (t = process.cwd()),
2315
+ s = t), assertPath(s), 0 !== s.length && (n = s + "/" + n, i = 47 === s.charCodeAt(0));
2316
+ return n = normalizeStringPosix(n, !i), i ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
2316
2317
  },
2317
2318
  normalize: function e(t) {
2318
2319
  var r, s;
@@ -2330,70 +2331,70 @@ class TestingLogger {
2330
2331
  return void 0 === t ? "." : posix.normalize(t);
2331
2332
  },
2332
2333
  relative: function e(t, r) {
2333
- var s, n, o, i, a, l, c, u, d, h;
2334
+ var s, n, i, o, a, l, c, u, d, h;
2334
2335
  if (assertPath(t), assertPath(r), t === r) return "";
2335
2336
  if ((t = posix.resolve(t)) === (r = posix.resolve(r))) return "";
2336
2337
  for (s = 1; s < t.length && 47 === t.charCodeAt(s); ++s) ;
2337
- for (o = (n = t.length) - s, i = 1; i < r.length && 47 === r.charCodeAt(i); ++i) ;
2338
- for (l = o < (a = r.length - i) ? o : a, c = -1, u = 0; u <= l; ++u) {
2338
+ for (i = (n = t.length) - s, o = 1; o < r.length && 47 === r.charCodeAt(o); ++o) ;
2339
+ for (l = i < (a = r.length - o) ? i : a, c = -1, u = 0; u <= l; ++u) {
2339
2340
  if (u === l) {
2340
2341
  if (a > l) {
2341
- if (47 === r.charCodeAt(i + u)) return r.slice(i + u + 1);
2342
- if (0 === u) return r.slice(i + u);
2343
- } else o > l && (47 === t.charCodeAt(s + u) ? c = u : 0 === u && (c = 0));
2342
+ if (47 === r.charCodeAt(o + u)) return r.slice(o + u + 1);
2343
+ if (0 === u) return r.slice(o + u);
2344
+ } else i > l && (47 === t.charCodeAt(s + u) ? c = u : 0 === u && (c = 0));
2344
2345
  break;
2345
2346
  }
2346
- if ((d = t.charCodeAt(s + u)) !== r.charCodeAt(i + u)) break;
2347
+ if ((d = t.charCodeAt(s + u)) !== r.charCodeAt(o + u)) break;
2347
2348
  47 === d && (c = u);
2348
2349
  }
2349
2350
  for (h = "", u = s + c + 1; u <= n; ++u) u !== n && 47 !== t.charCodeAt(u) || (0 === h.length ? h += ".." : h += "/..");
2350
- return h.length > 0 ? h + r.slice(i + c) : (i += c, 47 === r.charCodeAt(i) && ++i,
2351
- r.slice(i));
2351
+ return h.length > 0 ? h + r.slice(o + c) : (o += c, 47 === r.charCodeAt(o) && ++o,
2352
+ r.slice(o));
2352
2353
  },
2353
2354
  _makeLong: function e(t) {
2354
2355
  return t;
2355
2356
  },
2356
2357
  dirname: function e(t) {
2357
- var r, s, n, o;
2358
+ var r, s, n, i;
2358
2359
  if (assertPath(t), 0 === t.length) return ".";
2359
- for (r = 47 === t.charCodeAt(0), s = -1, n = !0, o = t.length - 1; o >= 1; --o) if (47 === t.charCodeAt(o)) {
2360
+ for (r = 47 === t.charCodeAt(0), s = -1, n = !0, i = t.length - 1; i >= 1; --i) if (47 === t.charCodeAt(i)) {
2360
2361
  if (!n) {
2361
- s = o;
2362
+ s = i;
2362
2363
  break;
2363
2364
  }
2364
2365
  } else n = !1;
2365
2366
  return -1 === s ? r ? "/" : "." : r && 1 === s ? "//" : t.slice(0, s);
2366
2367
  },
2367
2368
  basename: function e(t, r) {
2368
- var s, n, o, i, a, l, c;
2369
+ var s, n, i, o, a, l, c;
2369
2370
  if (void 0 !== r && "string" != typeof r) throw new TypeError('"ext" argument must be a string');
2370
- if (assertPath(t), s = 0, n = -1, o = !0, void 0 !== r && r.length > 0 && r.length <= t.length) {
2371
+ if (assertPath(t), s = 0, n = -1, i = !0, void 0 !== r && r.length > 0 && r.length <= t.length) {
2371
2372
  if (r.length === t.length && r === t) return "";
2372
- for (a = r.length - 1, l = -1, i = t.length - 1; i >= 0; --i) if (47 === (c = t.charCodeAt(i))) {
2373
- if (!o) {
2374
- s = i + 1;
2373
+ for (a = r.length - 1, l = -1, o = t.length - 1; o >= 0; --o) if (47 === (c = t.charCodeAt(o))) {
2374
+ if (!i) {
2375
+ s = o + 1;
2375
2376
  break;
2376
2377
  }
2377
- } else -1 === l && (o = !1, l = i + 1), a >= 0 && (c === r.charCodeAt(a) ? -1 == --a && (n = i) : (a = -1,
2378
+ } else -1 === l && (i = !1, l = o + 1), a >= 0 && (c === r.charCodeAt(a) ? -1 == --a && (n = o) : (a = -1,
2378
2379
  n = l));
2379
2380
  return s === n ? n = l : -1 === n && (n = t.length), t.slice(s, n);
2380
2381
  }
2381
- for (i = t.length - 1; i >= 0; --i) if (47 === t.charCodeAt(i)) {
2382
- if (!o) {
2383
- s = i + 1;
2382
+ for (o = t.length - 1; o >= 0; --o) if (47 === t.charCodeAt(o)) {
2383
+ if (!i) {
2384
+ s = o + 1;
2384
2385
  break;
2385
2386
  }
2386
- } else -1 === n && (o = !1, n = i + 1);
2387
+ } else -1 === n && (i = !1, n = o + 1);
2387
2388
  return -1 === n ? "" : t.slice(s, n);
2388
2389
  },
2389
2390
  extname: function e(t) {
2390
- var r, s, n, o, i, a, l;
2391
- for (assertPath(t), r = -1, s = 0, n = -1, o = !0, i = 0, a = t.length - 1; a >= 0; --a) if (47 !== (l = t.charCodeAt(a))) -1 === n && (o = !1,
2392
- n = a + 1), 46 === l ? -1 === r ? r = a : 1 !== i && (i = 1) : -1 !== r && (i = -1); else if (!o) {
2391
+ var r, s, n, i, o, a, l;
2392
+ for (assertPath(t), r = -1, s = 0, n = -1, i = !0, o = 0, a = t.length - 1; a >= 0; --a) if (47 !== (l = t.charCodeAt(a))) -1 === n && (i = !1,
2393
+ n = a + 1), 46 === l ? -1 === r ? r = a : 1 !== o && (o = 1) : -1 !== r && (o = -1); else if (!i) {
2393
2394
  s = a + 1;
2394
2395
  break;
2395
2396
  }
2396
- return -1 === r || -1 === n || 0 === i || 1 === i && r === n - 1 && r === s + 1 ? "" : t.slice(r, n);
2397
+ return -1 === r || -1 === n || 0 === o || 1 === o && r === n - 1 && r === s + 1 ? "" : t.slice(r, n);
2397
2398
  },
2398
2399
  format: function e(t) {
2399
2400
  if (null === t || "object" != typeof t) throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t);
@@ -2403,7 +2404,7 @@ class TestingLogger {
2403
2404
  }("/", t);
2404
2405
  },
2405
2406
  parse: function e(t) {
2406
- var r, s, n, o, i, a, l, c, u, d;
2407
+ var r, s, n, i, o, a, l, c, u, d;
2407
2408
  if (assertPath(t), r = {
2408
2409
  root: "",
2409
2410
  dir: "",
@@ -2411,14 +2412,14 @@ class TestingLogger {
2411
2412
  ext: "",
2412
2413
  name: ""
2413
2414
  }, 0 === t.length) return r;
2414
- for ((n = 47 === (s = t.charCodeAt(0))) ? (r.root = "/", o = 1) : o = 0, i = -1,
2415
- a = 0, l = -1, c = !0, u = t.length - 1, d = 0; u >= o; --u) if (47 !== (s = t.charCodeAt(u))) -1 === l && (c = !1,
2416
- l = u + 1), 46 === s ? -1 === i ? i = u : 1 !== d && (d = 1) : -1 !== i && (d = -1); else if (!c) {
2415
+ for ((n = 47 === (s = t.charCodeAt(0))) ? (r.root = "/", i = 1) : i = 0, o = -1,
2416
+ a = 0, l = -1, c = !0, u = t.length - 1, d = 0; u >= i; --u) if (47 !== (s = t.charCodeAt(u))) -1 === l && (c = !1,
2417
+ l = u + 1), 46 === s ? -1 === o ? o = u : 1 !== d && (d = 1) : -1 !== o && (d = -1); else if (!c) {
2417
2418
  a = u + 1;
2418
2419
  break;
2419
2420
  }
2420
- return -1 === i || -1 === l || 0 === d || 1 === d && i === l - 1 && i === a + 1 ? -1 !== l && (r.base = r.name = 0 === a && n ? t.slice(1, l) : t.slice(a, l)) : (0 === a && n ? (r.name = t.slice(1, i),
2421
- r.base = t.slice(1, l)) : (r.name = t.slice(a, i), r.base = t.slice(a, l)), r.ext = t.slice(i, l)),
2421
+ return -1 === o || -1 === l || 0 === d || 1 === d && o === l - 1 && o === a + 1 ? -1 !== l && (r.base = r.name = 0 === a && n ? t.slice(1, l) : t.slice(a, l)) : (0 === a && n ? (r.name = t.slice(1, o),
2422
+ r.base = t.slice(1, l)) : (r.name = t.slice(a, o), r.base = t.slice(a, l)), r.ext = t.slice(o, l)),
2422
2423
  a > 0 ? r.dir = t.slice(0, a - 1) : n && (r.dir = "/"), r;
2423
2424
  },
2424
2425
  sep: "/",
@@ -2443,7 +2444,7 @@ caller = function() {
2443
2444
  return t;
2444
2445
  }, e = (new Error).stack, Error.prepareStackTrace = t, e[2].getFileName();
2445
2446
  }, pathParse = createCommonjsModule((function(e) {
2446
- var t, r, s = "win32" === process.platform, n = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/, o = {
2447
+ var t, r, s = "win32" === process.platform, n = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/, i = {
2447
2448
  parse: function(e) {
2448
2449
  if ("string" != typeof e) throw new TypeError("Parameter 'pathString' must be a string, not " + typeof e);
2449
2450
  var t = function r(e) {
@@ -2472,25 +2473,25 @@ caller = function() {
2472
2473
  ext: r[4],
2473
2474
  name: r[3]
2474
2475
  };
2475
- }, e.exports = s ? o.parse : r.parse, e.exports.posix = r.parse, e.exports.win32 = o.parse;
2476
+ }, e.exports = s ? i.parse : r.parse, e.exports.posix = r.parse, e.exports.win32 = i.parse;
2476
2477
  })), parse = path__default.default.parse || pathParse, getNodeModulesDirs = function e(t, r) {
2477
- var s, n, o = "/";
2478
- for (/^([A-Za-z]:)/.test(t) ? o = "" : /^\\\\/.test(t) && (o = "\\\\"), s = [ t ],
2478
+ var s, n, i = "/";
2479
+ for (/^([A-Za-z]:)/.test(t) ? i = "" : /^\\\\/.test(t) && (i = "\\\\"), s = [ t ],
2479
2480
  n = parse(t); n.dir !== s[s.length - 1]; ) s.push(n.dir), n = parse(n.dir);
2480
2481
  return s.reduce((function(e, t) {
2481
2482
  return e.concat(r.map((function(e) {
2482
- return path__default.default.resolve(o, t, e);
2483
+ return path__default.default.resolve(i, t, e);
2483
2484
  })));
2484
2485
  }), []);
2485
2486
  }, nodeModulesPaths = function e(t, r, s) {
2486
- var n, o = r && r.moduleDirectory ? [].concat(r.moduleDirectory) : [ "node_modules" ];
2487
+ var n, i = r && r.moduleDirectory ? [].concat(r.moduleDirectory) : [ "node_modules" ];
2487
2488
  return r && "function" == typeof r.paths ? r.paths(s, t, (function() {
2488
- return getNodeModulesDirs(t, o);
2489
- }), r) : (n = getNodeModulesDirs(t, o), r && r.paths ? n.concat(r.paths) : n);
2489
+ return getNodeModulesDirs(t, i);
2490
+ }), r) : (n = getNodeModulesDirs(t, i), r && r.paths ? n.concat(r.paths) : n);
2490
2491
  }, normalizeOptions = function(e, t) {
2491
2492
  return t || {};
2492
2493
  }, slice = Array.prototype.slice, toStr = Object.prototype.toString, implementation = function e(t) {
2493
- var r, s, n, o, i, a, l, c = this;
2494
+ var r, s, n, i, o, a, l, c = this;
2494
2495
  if ("function" != typeof c || "[object Function]" !== toStr.call(c)) throw new TypeError("Function.prototype.bind called on incompatible " + c);
2495
2496
  for (r = slice.call(arguments, 1), n = function() {
2496
2497
  if (this instanceof s) {
@@ -2498,8 +2499,8 @@ caller = function() {
2498
2499
  return Object(e) === e ? e : this;
2499
2500
  }
2500
2501
  return c.apply(t, r.concat(slice.call(arguments)));
2501
- }, o = Math.max(0, c.length - r.length), i = [], a = 0; a < o; a++) i.push("$" + a);
2502
- return s = Function("binder", "return function (" + i.join(",") + "){ return binder.apply(this,arguments); }")(n),
2502
+ }, i = Math.max(0, c.length - r.length), o = [], a = 0; a < i; a++) o.push("$" + a);
2503
+ return s = Function("binder", "return function (" + o.join(",") + "){ return binder.apply(this,arguments); }")(n),
2503
2504
  c.prototype && ((l = function e() {}).prototype = c.prototype, s.prototype = new l,
2504
2505
  l.prototype = null), s;
2505
2506
  }, functionBind = Function.prototype.bind || implementation, src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
@@ -2624,13 +2625,13 @@ defaultIsFile$1 = function e(t, r) {
2624
2625
  }
2625
2626
  }));
2626
2627
  }, getPackageCandidates$1 = function e(t, r, s) {
2627
- var n, o = nodeModulesPaths(r, s, t);
2628
- for (n = 0; n < o.length; n++) o[n] = path__default.default.join(o[n], t);
2629
- return o;
2628
+ var n, i = nodeModulesPaths(r, s, t);
2629
+ for (n = 0; n < i.length; n++) i[n] = path__default.default.join(i[n], t);
2630
+ return i;
2630
2631
  }, async = function e(t, r, s) {
2631
2632
  function n(e) {
2632
2633
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) T = path__default.default.resolve(e, t),
2633
- "." !== t && ".." !== t && "/" !== t.slice(-1) || (T += "/"), /\/$/.test(t) && T === e ? l(T, C.package, o) : i(T, C.package, o); else {
2634
+ "." !== t && ".." !== t && "/" !== t.slice(-1) || (T += "/"), /\/$/.test(t) && T === e ? l(T, C.package, i) : o(T, C.package, i); else {
2634
2635
  if (E && isCoreModule(t)) return S(null, t);
2635
2636
  !function r(e, t, s) {
2636
2637
  var n = function() {
@@ -2648,7 +2649,7 @@ defaultIsFile$1 = function e(t, r) {
2648
2649
  }));
2649
2650
  }
2650
2651
  }
2651
- function o(e, r, s) {
2652
+ function i(e, r, s) {
2652
2653
  e ? S(e) : r ? S(null, r, s) : l(T, (function(e, r, s) {
2653
2654
  if (e) S(e); else if (r) maybeRealpath(f, r, C, (function(e, t) {
2654
2655
  e ? S(e) : S(null, t, s);
@@ -2658,20 +2659,20 @@ defaultIsFile$1 = function e(t, r) {
2658
2659
  }
2659
2660
  }));
2660
2661
  }
2661
- function i(e, t, r) {
2662
+ function o(e, t, r) {
2662
2663
  var s = t, n = r;
2663
2664
  "function" == typeof s && (n = s, s = void 0), function e(t, r, s) {
2664
- function o(s, o, a) {
2665
+ function i(s, i, a) {
2665
2666
  var u, h, p;
2666
- return c = o, s ? n(s) : a && c && C.pathFilter && (h = (u = path__default.default.relative(a, l)).slice(0, u.length - t[0].length),
2667
- p = C.pathFilter(c, r, h)) ? e([ "" ].concat(w.slice()), path__default.default.resolve(a, p), c) : void d(l, i);
2667
+ return c = i, s ? n(s) : a && c && C.pathFilter && (h = (u = path__default.default.relative(a, l)).slice(0, u.length - t[0].length),
2668
+ p = C.pathFilter(c, r, h)) ? e([ "" ].concat(w.slice()), path__default.default.resolve(a, p), c) : void d(l, o);
2668
2669
  }
2669
- function i(s, o) {
2670
- return s ? n(s) : o ? n(null, l, c) : void e(t.slice(1), r, c);
2670
+ function o(s, i) {
2671
+ return s ? n(s) : i ? n(null, l, c) : void e(t.slice(1), r, c);
2671
2672
  }
2672
2673
  var l, c;
2673
2674
  if (0 === t.length) return n(null, void 0, s);
2674
- l = r + t[0], (c = s) ? o(null, c) : a(path__default.default.dirname(l), o);
2675
+ l = r + t[0], (c = s) ? i(null, c) : a(path__default.default.dirname(l), i);
2675
2676
  }([ "" ].concat(w), e, s);
2676
2677
  }
2677
2678
  function a(e, t) {
@@ -2682,8 +2683,8 @@ defaultIsFile$1 = function e(t, r) {
2682
2683
  if (!s) return a(path__default.default.dirname(e), t);
2683
2684
  m(p, n, (function(r, s) {
2684
2685
  r && t(r);
2685
- var o = s;
2686
- o && C.packageFilter && (o = C.packageFilter(o, n)), t(null, o, e);
2686
+ var i = s;
2687
+ i && C.packageFilter && (i = C.packageFilter(i, n)), t(null, i, e);
2687
2688
  }));
2688
2689
  }));
2689
2690
  }));
@@ -2692,31 +2693,31 @@ defaultIsFile$1 = function e(t, r) {
2692
2693
  var s = r, n = t;
2693
2694
  "function" == typeof n && (s = n, n = C.package), maybeRealpath(f, e, C, (function(t, r) {
2694
2695
  if (t) return s(t);
2695
- var o = path__default.default.join(r, "package.json");
2696
- d(o, (function(t, r) {
2697
- return t ? s(t) : r ? void m(p, o, (function(t, r) {
2696
+ var i = path__default.default.join(r, "package.json");
2697
+ d(i, (function(t, r) {
2698
+ return t ? s(t) : r ? void m(p, i, (function(t, r) {
2698
2699
  var n, a;
2699
- return t ? s(t) : ((n = r) && C.packageFilter && (n = C.packageFilter(n, o)), n && n.main ? "string" != typeof n.main ? ((a = new TypeError("package “" + n.name + "” `main` must be a string")).code = "INVALID_PACKAGE_MAIN",
2700
- s(a)) : ("." !== n.main && "./" !== n.main || (n.main = "index"), void i(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2700
+ return t ? s(t) : ((n = r) && C.packageFilter && (n = C.packageFilter(n, i)), n && n.main ? "string" != typeof n.main ? ((a = new TypeError("package “" + n.name + "” `main` must be a string")).code = "INVALID_PACKAGE_MAIN",
2701
+ s(a)) : ("." !== n.main && "./" !== n.main || (n.main = "index"), void o(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2701
2702
  return t ? s(t) : r ? s(null, r, n) : n ? void l(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2702
- return t ? s(t) : r ? s(null, r, n) : void i(path__default.default.join(e, "index"), n, s);
2703
- })) : i(path__default.default.join(e, "index"), n, s);
2704
- }))) : void i(path__default.default.join(e, "/index"), n, s));
2705
- })) : i(path__default.default.join(e, "index"), n, s);
2703
+ return t ? s(t) : r ? s(null, r, n) : void o(path__default.default.join(e, "index"), n, s);
2704
+ })) : o(path__default.default.join(e, "index"), n, s);
2705
+ }))) : void o(path__default.default.join(e, "/index"), n, s));
2706
+ })) : o(path__default.default.join(e, "index"), n, s);
2706
2707
  }));
2707
2708
  }));
2708
2709
  }
2709
2710
  function c(e, t) {
2710
- function r(t, r, o) {
2711
- return t ? e(t) : r ? e(null, r, o) : void l(n, C.package, s);
2711
+ function r(t, r, i) {
2712
+ return t ? e(t) : r ? e(null, r, i) : void l(n, C.package, s);
2712
2713
  }
2713
2714
  function s(r, s, n) {
2714
2715
  return r ? e(r) : s ? e(null, s, n) : void c(e, t.slice(1));
2715
2716
  }
2716
2717
  if (0 === t.length) return e(null, void 0);
2717
2718
  var n = t[0];
2718
- h(path__default.default.dirname(n), (function o(s, a) {
2719
- return s ? e(s) : a ? void i(n, C.package, r) : c(e, t.slice(1));
2719
+ h(path__default.default.dirname(n), (function i(s, a) {
2720
+ return s ? e(s) : a ? void o(n, C.package, r) : c(e, t.slice(1));
2720
2721
  }));
2721
2722
  }
2722
2723
  var u, d, h, p, f, m, g, y, w, E, _, v, b, T, S = s, C = r;
@@ -2856,64 +2857,64 @@ defaultIsFile = function e(t) {
2856
2857
  return JSON.parse(s);
2857
2858
  } catch (e) {}
2858
2859
  }, getPackageCandidates = function e(t, r, s) {
2859
- var n, o = nodeModulesPaths(r, s, t);
2860
- for (n = 0; n < o.length; n++) o[n] = path__default.default.join(o[n], t);
2861
- return o;
2860
+ var n, i = nodeModulesPaths(r, s, t);
2861
+ for (n = 0; n < i.length; n++) i[n] = path__default.default.join(i[n], t);
2862
+ return i;
2862
2863
  }, sync = function e(t, r) {
2863
2864
  function s(e) {
2864
- var t, r, s, o, l = n(path__default.default.dirname(e));
2865
- if (l && l.dir && l.pkg && i.pathFilter && (t = path__default.default.relative(l.dir, e),
2866
- (r = i.pathFilter(l.pkg, e, t)) && (e = path__default.default.resolve(l.dir, r))),
2865
+ var t, r, s, i, l = n(path__default.default.dirname(e));
2866
+ if (l && l.dir && l.pkg && o.pathFilter && (t = path__default.default.relative(l.dir, e),
2867
+ (r = o.pathFilter(l.pkg, e, t)) && (e = path__default.default.resolve(l.dir, r))),
2867
2868
  a(e)) return e;
2868
- for (s = 0; s < p.length; s++) if (o = e + p[s], a(o)) return o;
2869
+ for (s = 0; s < p.length; s++) if (i = e + p[s], a(i)) return i;
2869
2870
  }
2870
2871
  function n(e) {
2871
2872
  var t, r;
2872
- if ("" !== e && "/" !== e && !("win32" === process.platform && /^\w:[/\\]*$/.test(e) || /[/\\]node_modules[/\\]*$/.test(e))) return t = path__default.default.join(maybeRealpathSync(u, e, i), "package.json"),
2873
- a(t) ? ((r = d(l, t)) && i.packageFilter && (r = i.packageFilter(r, e)), {
2873
+ if ("" !== e && "/" !== e && !("win32" === process.platform && /^\w:[/\\]*$/.test(e) || /[/\\]node_modules[/\\]*$/.test(e))) return t = path__default.default.join(maybeRealpathSync(u, e, o), "package.json"),
2874
+ a(t) ? ((r = d(l, t)) && o.packageFilter && (r = o.packageFilter(r, e)), {
2874
2875
  pkg: r,
2875
2876
  dir: e
2876
2877
  }) : n(path__default.default.dirname(e));
2877
2878
  }
2878
- function o(e) {
2879
- var t, r, n, c, h = path__default.default.join(maybeRealpathSync(u, e, i), "/package.json");
2879
+ function i(e) {
2880
+ var t, r, n, c, h = path__default.default.join(maybeRealpathSync(u, e, o), "/package.json");
2880
2881
  if (a(h)) {
2881
2882
  try {
2882
2883
  t = d(l, h);
2883
2884
  } catch (e) {}
2884
- if (t && i.packageFilter && (t = i.packageFilter(t, e)), t && t.main) {
2885
+ if (t && o.packageFilter && (t = o.packageFilter(t, e)), t && t.main) {
2885
2886
  if ("string" != typeof t.main) throw (r = new TypeError("package “" + t.name + "” `main` must be a string")).code = "INVALID_PACKAGE_MAIN",
2886
2887
  r;
2887
2888
  "." !== t.main && "./" !== t.main || (t.main = "index");
2888
2889
  try {
2889
2890
  if (n = s(path__default.default.resolve(e, t.main))) return n;
2890
- if (c = o(path__default.default.resolve(e, t.main))) return c;
2891
+ if (c = i(path__default.default.resolve(e, t.main))) return c;
2891
2892
  } catch (e) {}
2892
2893
  }
2893
2894
  }
2894
2895
  return s(path__default.default.join(e, "/index"));
2895
2896
  }
2896
- var i, a, l, c, u, d, h, p, f, m, g, y, w, E, _, v;
2897
+ var o, a, l, c, u, d, h, p, f, m, g, y, w, E, _, v;
2897
2898
  if ("string" != typeof t) throw new TypeError("Path must be a string.");
2898
- if (i = normalizeOptions(0, r), a = i.isFile || defaultIsFile, l = i.readFileSync || fs__default.default.readFileSync,
2899
- c = i.isDirectory || defaultIsDir, u = i.realpathSync || defaultRealpathSync, d = i.readPackageSync || defaultReadPackageSync,
2900
- i.readFileSync && i.readPackageSync) throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
2901
- if (h = i.packageIterator, p = i.extensions || [ ".js" ], f = !1 !== i.includeCoreModules,
2902
- m = i.basedir || path__default.default.dirname(caller()), g = i.filename || m, i.paths = i.paths || [],
2903
- y = maybeRealpathSync(u, path__default.default.resolve(m), i), /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) {
2899
+ if (o = normalizeOptions(0, r), a = o.isFile || defaultIsFile, l = o.readFileSync || fs__default.default.readFileSync,
2900
+ c = o.isDirectory || defaultIsDir, u = o.realpathSync || defaultRealpathSync, d = o.readPackageSync || defaultReadPackageSync,
2901
+ o.readFileSync && o.readPackageSync) throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
2902
+ if (h = o.packageIterator, p = o.extensions || [ ".js" ], f = !1 !== o.includeCoreModules,
2903
+ m = o.basedir || path__default.default.dirname(caller()), g = o.filename || m, o.paths = o.paths || [],
2904
+ y = maybeRealpathSync(u, path__default.default.resolve(m), o), /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) {
2904
2905
  if (w = path__default.default.resolve(y, t), "." !== t && ".." !== t && "/" !== t.slice(-1) || (w += "/"),
2905
- E = s(w) || o(w)) return maybeRealpathSync(u, E, i);
2906
+ E = s(w) || i(w)) return maybeRealpathSync(u, E, o);
2906
2907
  } else {
2907
2908
  if (f && isCoreModule(t)) return t;
2908
2909
  if (_ = function b(e, t) {
2909
2910
  var r, n, a, l, u = function() {
2910
- return getPackageCandidates(e, t, i);
2911
- }, d = h ? h(e, t, u, i) : u();
2911
+ return getPackageCandidates(e, t, o);
2912
+ }, d = h ? h(e, t, u, o) : u();
2912
2913
  for (r = 0; r < d.length; r++) if (n = d[r], c(path__default.default.dirname(n))) {
2913
2914
  if (a = s(n)) return a;
2914
- if (l = o(n)) return l;
2915
+ if (l = i(n)) return l;
2915
2916
  }
2916
- }(t, y), _) return maybeRealpathSync(u, _, i);
2917
+ }(t, y), _) return maybeRealpathSync(u, _, o);
2917
2918
  }
2918
2919
  throw (v = new Error("Cannot find module '" + t + "' from '" + g + "'")).code = "MODULE_NOT_FOUND",
2919
2920
  v;
@@ -2940,20 +2941,20 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2940
2941
  let s = (r = normalizePath(r)).split("/").filter((e => e.length));
2941
2942
  const n = s.lastIndexOf("node_modules");
2942
2943
  n > -1 && n < s.length - 1 && (s = s.slice(n + 1));
2943
- let o = s.shift();
2944
- o.startsWith("@") && (o += "/" + s.shift());
2945
- const i = s.join("/");
2946
- return "@stencil/core" === o ? ((e, t) => {
2944
+ let i = s.shift();
2945
+ i.startsWith("@") && (i += "/" + s.shift());
2946
+ const o = s.join("/");
2947
+ return "@stencil/core" === i ? ((e, t) => {
2947
2948
  let r = (t = normalizePath(t)).split("/");
2948
2949
  const s = r.lastIndexOf("node_modules");
2949
2950
  s > -1 && s < r.length - 1 && (r = r.slice(s + 1), r = r[0].startsWith("@") ? r.slice(2) : r.slice(1),
2950
2951
  t = r.join("/"));
2951
2952
  const n = new URL("../", e).href;
2952
2953
  return new URL("./" + t, n).href;
2953
- })(e.getCompilerExecutingPath(), i) : e.getRemoteModuleUrl({
2954
- moduleId: o,
2955
- version: t.get(o),
2956
- path: i
2954
+ })(e.getCompilerExecutingPath(), o) : e.getRemoteModuleUrl({
2955
+ moduleId: i,
2956
+ version: t.get(i),
2957
+ path: o
2957
2958
  });
2958
2959
  }, knownUrlSkips = [ "/@stencil/core/internal.js", "/@stencil/core/internal.json", "/@stencil/core/internal.mjs", "/@stencil/core/internal/stencil-core.js/index.json", "/@stencil/core/internal/stencil-core.js.json", "/@stencil/core/internal/stencil-core.js/package.json", "/@stencil/core.js", "/@stencil/core.json", "/@stencil/core.mjs", "/@stencil/core.css", "/@stencil/core/index.js", "/@stencil/core/index.json", "/@stencil/core/index.mjs", "/@stencil/core/index.css", "/@stencil/package.json" ], fetchModuleAsync = async (e, t, r, s, n) => {
2959
2960
  if (!((e => {
@@ -2962,11 +2963,11 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2962
2963
  const r = e.split("/"), s = r[r.length - 2], n = r[r.length - 1];
2963
2964
  return !("node_modules" !== s || !isCommonDirModuleFile(n));
2964
2965
  })(n) || known404Urls.has(s) || (e => knownUrlSkips.some((t => e.endsWith(t))))(s))) try {
2965
- const o = await ((e, t, r) => e && isFunction(e.fetch) ? e.fetch(t, r) : fetch(t, r))(e, s);
2966
- if (o) {
2967
- if (o.ok) {
2968
- const i = await o.clone().text();
2969
- return await (async (e, t, r, s, n, o) => {
2966
+ const i = await ((e, t, r) => e && isFunction(e.fetch) ? e.fetch(t, r) : fetch(t, r))(e, s);
2967
+ if (i) {
2968
+ if (i.ok) {
2969
+ const o = await i.clone().text();
2970
+ return await (async (e, t, r, s, n, i) => {
2970
2971
  r.endsWith("package.json") && ((e, t) => {
2971
2972
  try {
2972
2973
  const r = JSON.parse(t);
@@ -2974,14 +2975,14 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2974
2975
  e.set(t, r);
2975
2976
  })(e, r.name, r.version);
2976
2977
  } catch (e) {}
2977
- })(o, n);
2978
- let i = path$2.dirname(s);
2979
- for (;"/" !== i && "" !== i; ) t ? (t.clearFileCache(i), await t.sys.createDir(i)) : await e.createDir(i),
2980
- i = path$2.dirname(i);
2978
+ })(i, n);
2979
+ let o = path$2.dirname(s);
2980
+ for (;"/" !== o && "" !== o; ) t ? (t.clearFileCache(o), await t.sys.createDir(o)) : await e.createDir(o),
2981
+ o = path$2.dirname(o);
2981
2982
  t ? (t.clearFileCache(s), await t.sys.writeFile(s, n)) : await e.writeFile(s, n);
2982
- })(e, t, s, n, i, r), i;
2983
+ })(e, t, s, n, o, r), o;
2983
2984
  }
2984
- 404 === o.status && known404Urls.add(s);
2985
+ 404 === i.status && known404Urls.add(s);
2985
2986
  }
2986
2987
  } catch (e) {
2987
2988
  console.error(e);
@@ -3018,8 +3019,8 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3018
3019
  let r = BLUE, s = "Build", n = "";
3019
3020
  "error" === e.level ? (r = RED, s = "Error") : "warn" === e.level && (r = YELLOW,
3020
3021
  s = "Warning"), e.header && (s = e.header);
3021
- const o = e.relFilePath || e.absFilePath;
3022
- if (o && (n += o, "number" == typeof e.lineNumber && e.lineNumber > 0 && (n += ", line " + e.lineNumber,
3022
+ const i = e.relFilePath || e.absFilePath;
3023
+ if (i && (n += i, "number" == typeof e.lineNumber && e.lineNumber > 0 && (n += ", line " + e.lineNumber,
3023
3024
  "number" == typeof e.columnNumber && e.columnNumber > 0 && (n += ", column " + e.columnNumber)),
3024
3025
  n += "\n"), n += e.messageText, e.lines && e.lines.length > 0 && (e.lines.forEach((e => {
3025
3026
  n += "\n" + e.lineNumber + ": " + e.text;
@@ -3030,7 +3031,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3030
3031
  })(t, e)));
3031
3032
  }
3032
3033
  };
3033
- })(), s = new Map, n = new Set, o = e => n.add(e), i = e => n.delete(e), a = buildEvents(), l = IS_BROWSER_ENV && navigator.hardwareConcurrency || 1, c = e => {
3034
+ })(), s = new Map, n = new Set, i = e => n.add(e), o = e => n.delete(e), a = buildEvents(), l = IS_BROWSER_ENV && navigator.hardwareConcurrency || 1, c = e => {
3034
3035
  if ("/" === e || "" === e) return "/";
3035
3036
  const t = path$2.dirname(e), r = path$2.basename(e);
3036
3037
  return t.endsWith("/") ? normalizePath(`${t}${r}`) : normalizePath(`${t}/${r}`);
@@ -3050,8 +3051,8 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3050
3051
  }, h = (e, t, r) => {
3051
3052
  const n = path$2.dirname(e);
3052
3053
  t && t.recursive && !(e => "/" === e || windowsPathRegex.test(e))(n) && h(n, t, r);
3053
- const o = s.get(e);
3054
- o ? (o.isDirectory = !0, o.isFile = !1) : (s.set(e, {
3054
+ const i = s.get(e);
3055
+ i ? (i.isDirectory = !0, i.isFile = !1) : (s.set(e, {
3055
3056
  basename: path$2.basename(e),
3056
3057
  dirname: n,
3057
3058
  isDirectory: !0,
@@ -3075,10 +3076,10 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3075
3076
  }), g = (e, t, r) => {
3076
3077
  const n = E(e);
3077
3078
  if (!n.error && !r.error) if (n.isFile) {
3078
- const n = path$2.dirname(t), o = d(n, {
3079
+ const n = path$2.dirname(t), i = d(n, {
3079
3080
  recursive: !0
3080
- }), i = s.get(e).data, a = b(t, i);
3081
- r.newDirs.push(...o.newDirs), r.renamed.push({
3081
+ }), o = s.get(e).data, a = b(t, o);
3082
+ r.newDirs.push(...i.newDirs), r.renamed.push({
3082
3083
  oldPath: e,
3083
3084
  newPath: t,
3084
3085
  isDirectory: !1,
@@ -3176,11 +3177,11 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3176
3177
  d("/");
3177
3178
  const C = {
3178
3179
  name: "in-memory",
3179
- version: "3.4.0-dev.1687323716.1a8ff39",
3180
+ version: "3.4.0-dev.1687410133.f722b24",
3180
3181
  events: a,
3181
3182
  access: async e => u(e),
3182
3183
  accessSync: u,
3183
- addDestroy: o,
3184
+ addDestroy: i,
3184
3185
  copyFile: async (e, t) => (b(t, f(e)), !0),
3185
3186
  createDir: async (e, t) => d(e, t),
3186
3187
  createDirSync: d,
@@ -3224,7 +3225,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3224
3225
  readFileSync: f,
3225
3226
  realpath: async e => m(e),
3226
3227
  realpathSync: m,
3227
- removeDestroy: i,
3228
+ removeDestroy: o,
3228
3229
  rename: async (e, t) => {
3229
3230
  const r = {
3230
3231
  oldPath: e = normalizePath(e),
@@ -3268,7 +3269,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3268
3269
  e > -1 && r.watcherCallbacks.splice(e, 1);
3269
3270
  }
3270
3271
  };
3271
- return o(n), r ? (r.isDirectory = !0, r.isFile = !1, r.watcherCallbacks = r.watcherCallbacks || [],
3272
+ return i(n), r ? (r.isDirectory = !0, r.isFile = !1, r.watcherCallbacks = r.watcherCallbacks || [],
3272
3273
  r.watcherCallbacks.push(t)) : s.set(e, {
3273
3274
  basename: path$2.basename(e),
3274
3275
  dirname: path$2.dirname(e),
@@ -3278,7 +3279,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3278
3279
  data: void 0
3279
3280
  }), {
3280
3281
  close() {
3281
- i(n), n();
3282
+ o(n), n();
3282
3283
  }
3283
3284
  };
3284
3285
  },
@@ -3291,7 +3292,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3291
3292
  e > -1 && r.watcherCallbacks.splice(e, 1);
3292
3293
  }
3293
3294
  };
3294
- return o(n), r ? (r.isDirectory = !1, r.isFile = !0, r.watcherCallbacks = r.watcherCallbacks || [],
3295
+ return i(n), r ? (r.isDirectory = !1, r.isFile = !0, r.watcherCallbacks = r.watcherCallbacks || [],
3295
3296
  r.watcherCallbacks.push(t)) : s.set(e, {
3296
3297
  basename: path$2.basename(e),
3297
3298
  dirname: path$2.dirname(e),
@@ -3301,7 +3302,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3301
3302
  data: void 0
3302
3303
  }), {
3303
3304
  close() {
3304
- i(n), n();
3305
+ o(n), n();
3305
3306
  }
3306
3307
  };
3307
3308
  },
@@ -3314,18 +3315,18 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3314
3315
  return "number" == typeof t && (s = s.slice(0, t)), s;
3315
3316
  },
3316
3317
  createWorkerController: HAS_WEB_WORKER ? e => ((e, t) => {
3317
- let r, s = 0, n = !1, o = !1, i = 0;
3318
+ let r, s = 0, n = !1, i = !1, o = 0;
3318
3319
  const a = new Map, l = [], c = [], u = Math.max(Math.min(t, e.hardwareConcurrency), 2) - 1, d = Promise.resolve(), h = e => console.error(e), p = () => {
3319
3320
  let t = null;
3320
- const s = e.getCompilerExecutingPath(), o = {
3321
- name: "stencil.worker." + i++
3321
+ const s = e.getCompilerExecutingPath(), i = {
3322
+ name: "stencil.worker." + o++
3322
3323
  };
3323
3324
  try {
3324
- t = new Worker(s, o);
3325
+ t = new Worker(s, i);
3325
3326
  } catch (e) {
3326
3327
  null == r && (r = new Blob([ `importScripts('${s}');` ], {
3327
3328
  type: "application/javascript"
3328
- })), t = new Worker(URL.createObjectURL(r), o);
3329
+ })), t = new Worker(URL.createObjectURL(r), i);
3329
3330
  }
3330
3331
  const l = {
3331
3332
  worker: t,
@@ -3354,7 +3355,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3354
3355
  } else t = p(), c.push(t);
3355
3356
  t.activeTasks++, t.sendQueue.push(e);
3356
3357
  }, g = () => {
3357
- o = !1, l.forEach(m), l.length = 0, c.forEach(f);
3358
+ i = !1, l.forEach(m), l.length = 0, c.forEach(f);
3358
3359
  }, y = (...e) => new Promise(((t, r) => {
3359
3360
  if (n) r("task canceled"); else {
3360
3361
  const n = {
@@ -3364,7 +3365,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3364
3365
  l.push(n), a.set(n.stencilId, {
3365
3366
  resolve: t,
3366
3367
  reject: r
3367
- }), o || (o = !0, d.then(g));
3368
+ }), i || (i = !0, d.then(g));
3368
3369
  }
3369
3370
  }));
3370
3371
  return {
@@ -3395,11 +3396,11 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3395
3396
  return C.resolveModuleId = e => ((e, t, r) => {
3396
3397
  const s = ((e, t, r) => ({
3397
3398
  async isFile(s, n) {
3398
- const o = normalizeFsPath(s);
3399
- if ((await t.stat(o)).isFile) n(null, !0); else {
3400
- if (shouldFetchModule(o) && r.some((e => o.endsWith(e)))) {
3401
- const r = getNodeModuleFetchUrl(e, packageVersions, o);
3402
- return void n(null, "string" == typeof await fetchModuleAsync(e, t, packageVersions, r, o));
3399
+ const i = normalizeFsPath(s);
3400
+ if ((await t.stat(i)).isFile) n(null, !0); else {
3401
+ if (shouldFetchModule(i) && r.some((e => i.endsWith(e)))) {
3402
+ const r = getNodeModuleFetchUrl(e, packageVersions, i);
3403
+ return void n(null, "string" == typeof await fetchModuleAsync(e, t, packageVersions, r, i));
3403
3404
  }
3404
3405
  n(null, !1);
3405
3406
  }
@@ -3412,7 +3413,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3412
3413
  void s(null, !0);
3413
3414
  if (isCommonDirModuleFile(n)) return void s(null, !1);
3414
3415
  for (const r of COMMON_DIR_FILENAMES) {
3415
- const o = getCommonDirUrl(e, packageVersions, n, r), i = getCommonDirName(n, r), a = await fetchModuleAsync(e, t, packageVersions, o, i);
3416
+ const i = getCommonDirUrl(e, packageVersions, n, r), o = getCommonDirName(n, r), a = await fetchModuleAsync(e, t, packageVersions, i, o);
3416
3417
  if (isString(a)) return void s(null, !0);
3417
3418
  }
3418
3419
  }
@@ -3431,13 +3432,13 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3431
3432
  }))(e, null, r.exts);
3432
3433
  return s.basedir = path$2.dirname(normalizeFsPath(r.containingFile)), r.packageFilter ? s.packageFilter = r.packageFilter : null !== r.packageFilter && (s.packageFilter = e => (isString(e.main) && "" !== e.main || (e.main = "package.json"),
3433
3434
  e)), new Promise(((e, t) => {
3434
- resolve(r.moduleId, s, ((s, n, o) => {
3435
+ resolve(r.moduleId, s, ((s, n, i) => {
3435
3436
  if (s) t(s); else {
3436
3437
  n = normalizePath(n);
3437
3438
  const t = {
3438
3439
  moduleId: r.moduleId,
3439
3440
  resolveId: n,
3440
- pkgData: o,
3441
+ pkgData: i,
3441
3442
  pkgDirPath: getPackageDirPath(n, r.moduleId)
3442
3443
  };
3443
3444
  e(t);
@@ -3478,7 +3479,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3478
3479
  t = e;
3479
3480
  }
3480
3481
  }
3481
- }), !function o(e) {
3482
+ }), !function i(e) {
3482
3483
  return "diskReads" in e && "diskWrites" in e;
3483
3484
  }(r)) throw new Error("could not generate TestingSystem");
3484
3485
  return r;
@@ -3586,8 +3587,8 @@ class E2EElement extends index_cjs.MockHTMLElement {
3586
3587
  waitForVisible() {
3587
3588
  return new Promise(((e, t) => {
3588
3589
  const r = setInterval((async () => {
3589
- await this.isVisible() && (clearInterval(r), clearTimeout(o), e());
3590
- }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForVisible timed out: ${s}ms`), o = setTimeout((() => {
3590
+ await this.isVisible() && (clearInterval(r), clearTimeout(i), e());
3591
+ }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForVisible timed out: ${s}ms`), i = setTimeout((() => {
3591
3592
  clearTimeout(r), t(n);
3592
3593
  }), s);
3593
3594
  }));
@@ -3595,8 +3596,8 @@ class E2EElement extends index_cjs.MockHTMLElement {
3595
3596
  waitForNotVisible() {
3596
3597
  return new Promise(((e, t) => {
3597
3598
  const r = setInterval((async () => {
3598
- await this.isVisible() || (clearInterval(r), clearTimeout(o), e());
3599
- }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForNotVisible timed out: ${s}ms`), o = setTimeout((() => {
3599
+ await this.isVisible() || (clearInterval(r), clearTimeout(i), e());
3600
+ }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForNotVisible timed out: ${s}ms`), i = setTimeout((() => {
3600
3601
  clearTimeout(r), t(n);
3601
3602
  }), s);
3602
3603
  }));
@@ -3855,15 +3856,15 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3855
3856
  var e;
3856
3857
  const t = null !== (e = require("jest-runner").default) && void 0 !== e ? e : require("jest-runner");
3857
3858
  return class r extends t {
3858
- async runTests(e, t, r, s, n, o) {
3859
- const i = process.env;
3859
+ async runTests(e, t, r, s, n, i) {
3860
+ const o = process.env;
3860
3861
  if (e = e.filter((e => function t(e, r) {
3861
3862
  const s = (e = e.toLowerCase().replace(/\\/g, "/")).includes(".e2e.") || e.includes("/e2e.");
3862
3863
  return !("true" !== r.__STENCIL_E2E_TESTS__ || !s) || "true" === r.__STENCIL_SPEC_TESTS__ && !s;
3863
- }(e.path, i))), "true" === i.__STENCIL_SCREENSHOT__) {
3864
- const a = JSON.parse(i.__STENCIL_EMULATE_CONFIGS__);
3865
- for (let l = 0; l < a.length; l++) setScreenshotEmulateData(a[l], i), await super.runTests(e, t, r, s, n, o);
3866
- } else await super.runTests(e, t, r, s, n, o);
3864
+ }(e.path, o))), "true" === o.__STENCIL_SCREENSHOT__) {
3865
+ const a = JSON.parse(o.__STENCIL_EMULATE_CONFIGS__);
3866
+ for (let l = 0; l < a.length; l++) setScreenshotEmulateData(a[l], o), await super.runTests(e, t, r, s, n, i);
3867
+ } else await super.runTests(e, t, r, s, n, i);
3867
3868
  }
3868
3869
  };
3869
3870
  }, exports.createTesting = async e => {
@@ -3875,14 +3876,14 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3875
3876
  })), e.flags.args.includes("--watchAll") && (e.watch = !0), e;
3876
3877
  }(e);
3877
3878
  const {createCompiler: r} = require("../compiler/stencil.js"), s = await r(e);
3878
- let n, o;
3879
- const i = async () => {
3879
+ let n, i;
3880
+ const o = async () => {
3880
3881
  const t = [];
3881
3882
  e && (e.sys && e.sys.destroy && t.push(e.sys.destroy()), e = null), n && (n.close && t.push(n.close()),
3882
- n = null), o && (o.close && t.push(o.close()), o = null), await Promise.all(t);
3883
+ n = null), i && (i.close && t.push(i.close()), i = null), await Promise.all(t);
3883
3884
  };
3884
3885
  return {
3885
- destroy: i,
3886
+ destroy: o,
3886
3887
  run: async (t = {}) => {
3887
3888
  let r, a = !1, l = !1, c = null;
3888
3889
  const u = [];
@@ -3905,9 +3906,9 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3905
3906
  })), c.start()) : t = s.build()), e.devServer.openBrowser = !1, e.devServer.gzip = !1,
3906
3907
  e.devServer.reloadStrategy = null;
3907
3908
  const l = await Promise.all([ index_js.start(e.devServer, e.logger), startPuppeteerBrowser(e) ]);
3908
- if (n = l[0], o = l[1], t) {
3909
+ if (n = l[0], i = l[1], t) {
3909
3910
  const r = await t;
3910
- if (!r || !e.watch && hasError(r && r.diagnostics)) return await i(), !1;
3911
+ if (!r || !e.watch && hasError(r && r.diagnostics)) return await o(), !1;
3911
3912
  }
3912
3913
  n && (r.__STENCIL_BROWSER_URL__ = n.browserUrl, e.logger.debug(`e2e dev server url: ${r.__STENCIL_BROWSER_URL__}`),
3913
3914
  r.__STENCIL_APP_SCRIPT_URL__ = function d(e, t) {
@@ -3941,13 +3942,13 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3941
3942
  waitBeforeScreenshot: e.testing.waitBeforeScreenshot,
3942
3943
  pixelmatchModulePath: s
3943
3944
  }), e.flags.updateScreenshot || await r.pullMasterBuild(), n.finish("screenshot, initBuild finished");
3944
- const o = await Promise.all([ await r.getMasterBuild(), await r.getScreenshotCache() ]), i = o[0], a = o[1];
3945
- t.__STENCIL_SCREENSHOT_BUILD__ = r.toJson(i, a);
3945
+ const i = await Promise.all([ await r.getMasterBuild(), await r.getScreenshotCache() ]), o = i[0], a = i[1];
3946
+ t.__STENCIL_SCREENSHOT_BUILD__ = r.toJson(o, a);
3946
3947
  const l = e.logger.createTimeSpan("screenshot, tests started", !0), c = await runJest(e, t);
3947
3948
  l.finish(`screenshot, tests finished, passed: ${c}`);
3948
3949
  try {
3949
3950
  const t = e.logger.createTimeSpan("screenshot, completeTimespan started", !0);
3950
- let s = await r.completeBuild(i);
3951
+ let s = await r.completeBuild(o);
3951
3952
  if (t.finish("screenshot, completeTimespan finished"), s) {
3952
3953
  const t = e.logger.createTimeSpan("screenshot, publishBuild started", !0);
3953
3954
  if (s = await r.publishBuild(s), t.finish("screenshot, publishBuild finished"),
@@ -3984,10 +3985,10 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3984
3985
  testing.resetPlatform(), testing.setErrorHandler(void 0), resetBuildConditionals(appData.BUILD),
3985
3986
  testing.modeResolutionChain.length = 0;
3986
3987
  })), afterEach((async () => {
3987
- var e, t, r, s, n, o;
3988
+ var e, t, r, s, n, i;
3988
3989
  global.__CLOSE_OPEN_PAGES__ && await global.__CLOSE_OPEN_PAGES__(), testing.stopAutoApplyChanges();
3989
- const i = null === (n = null === (s = null === (r = null === (t = null === (e = global.window) || void 0 === e ? void 0 : e.document) || void 0 === t ? void 0 : t.childNodes) || void 0 === r ? void 0 : r[1]) || void 0 === s ? void 0 : s.childNodes) || void 0 === n ? void 0 : n.find((e => "BODY" === e.nodeName));
3990
- null === (o = null == i ? void 0 : i.childNodes) || void 0 === o || o.forEach(removeDomNodes),
3990
+ const o = null === (n = null === (s = null === (r = null === (t = null === (e = global.window) || void 0 === e ? void 0 : e.document) || void 0 === t ? void 0 : t.childNodes) || void 0 === r ? void 0 : r[1]) || void 0 === s ? void 0 : s.childNodes) || void 0 === n ? void 0 : n.find((e => "BODY" === e.nodeName));
3991
+ null === (i = null == o ? void 0 : o.childNodes) || void 0 === i || i.forEach(removeDomNodes),
3991
3992
  index_cjs.teardownGlobal(global), global.Context = {}, global.resourcesUrl = "/build";
3992
3993
  }));
3993
3994
  const t = jasmine.getEnv();
@@ -4097,19 +4098,19 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4097
4098
  const t = process.env;
4098
4099
  "true" === t.__STENCIL_SCREENSHOT__ ? e.compareScreenshot = (r, s) => {
4099
4100
  const n = global;
4100
- let o, i = "", a = "";
4101
- if (n.currentSpec && ("string" == typeof n.currentSpec.fullName && (i = n.currentSpec.fullName),
4102
- "string" == typeof n.currentSpec.testPath && (a = n.currentSpec.testPath)), "string" == typeof r ? (i.length > 0 ? i += ", " + r : i = r,
4103
- "object" == typeof s && (o = s)) : "object" == typeof r && (o = r), i = i.trim(),
4104
- o = o || {}, !i) throw new Error(`Invalid screenshot description in "${a}"`);
4105
- if (n.screenshotDescriptions.has(i)) throw new Error(`Screenshot description "${i}" found in "${a}" cannot be used for multiple screenshots and must be unique. To make screenshot descriptions unique within the same test, use the first argument to "compareScreenshot", such as "compareScreenshot('more to the description')".`);
4106
- return n.screenshotDescriptions.add(i), async function l(e, t, r, s, n) {
4101
+ let i, o = "", a = "";
4102
+ if (n.currentSpec && ("string" == typeof n.currentSpec.fullName && (o = n.currentSpec.fullName),
4103
+ "string" == typeof n.currentSpec.testPath && (a = n.currentSpec.testPath)), "string" == typeof r ? (o.length > 0 ? o += ", " + r : o = r,
4104
+ "object" == typeof s && (i = s)) : "object" == typeof r && (i = r), o = o.trim(),
4105
+ i = i || {}, !o) throw new Error(`Invalid screenshot description in "${a}"`);
4106
+ if (n.screenshotDescriptions.has(o)) throw new Error(`Screenshot description "${o}" found in "${a}" cannot be used for multiple screenshots and must be unique. To make screenshot descriptions unique within the same test, use the first argument to "compareScreenshot", such as "compareScreenshot('more to the description')".`);
4107
+ return n.screenshotDescriptions.add(o), async function l(e, t, r, s, n) {
4107
4108
  if ("string" != typeof t.__STENCIL_EMULATE__) throw new Error("compareScreenshot, missing screenshot emulate env var");
4108
4109
  if ("string" != typeof t.__STENCIL_SCREENSHOT_BUILD__) throw new Error("compareScreenshot, missing screen build env var");
4109
- const o = JSON.parse(t.__STENCIL_EMULATE__), i = JSON.parse(t.__STENCIL_SCREENSHOT_BUILD__);
4110
+ const i = JSON.parse(t.__STENCIL_EMULATE__), o = JSON.parse(t.__STENCIL_SCREENSHOT_BUILD__);
4110
4111
  await function a(e) {
4111
4112
  return new Promise((t => setTimeout(t, e)));
4112
- }(i.timeoutBeforeScreenshot), await e.evaluate((() => new Promise((e => {
4113
+ }(o.timeoutBeforeScreenshot), await e.evaluate((() => new Promise((e => {
4113
4114
  window.requestAnimationFrame((() => {
4114
4115
  e();
4115
4116
  }));
@@ -4127,11 +4128,11 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4127
4128
  width: e.clip.width,
4128
4129
  height: e.clip.height
4129
4130
  }), t;
4130
- }(n), u = await e.screenshot(l), d = "number" == typeof n.pixelmatchThreshold ? n.pixelmatchThreshold : i.pixelmatchThreshold;
4131
- let h = o.viewport.width, p = o.viewport.height;
4131
+ }(n), u = await e.screenshot(l), d = "number" == typeof n.pixelmatchThreshold ? n.pixelmatchThreshold : o.pixelmatchThreshold;
4132
+ let h = i.viewport.width, p = i.viewport.height;
4132
4133
  return n && n.clip && ("number" == typeof n.clip.width && (h = n.clip.width), "number" == typeof n.clip.height && (p = n.clip.height)),
4133
- await compareScreenshot(o, i, u, r, h, p, s, d);
4134
- }(e, t, i, a, o);
4134
+ await compareScreenshot(i, o, u, r, h, p, s, d);
4135
+ }(e, t, o, a, i);
4135
4136
  } : e.compareScreenshot = async () => ({
4136
4137
  id: "placeholder",
4137
4138
  mismatchedPixels: 0,
@@ -4180,13 +4181,13 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4180
4181
  e();
4181
4182
  }))));
4182
4183
  };
4183
- const o = !0 === e.failOnConsoleError, i = !0 === e.failOnNetworkError;
4184
+ const i = !0 === e.failOnConsoleError, o = !0 === e.failOnNetworkError;
4184
4185
  t.on("console", (e => {
4185
4186
  if ("error" === e.type() && (r.push({
4186
4187
  type: "error",
4187
4188
  message: e.text(),
4188
4189
  location: e.location().url
4189
- }), o)) throw new Error(serializeConsoleMessage(e));
4190
+ }), i)) throw new Error(serializeConsoleMessage(e));
4190
4191
  !function t(e) {
4191
4192
  const t = serializeConsoleMessage(e), r = e.type(), s = "warning" === r ? "warn" : r;
4192
4193
  "debug" !== s && ("function" == typeof console[s] ? console[s](t) : console.log(r, t));
@@ -4202,7 +4203,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4202
4203
  type: "requestfailed",
4203
4204
  message: e.failure().errorText,
4204
4205
  location: e.url()
4205
- }), i) throw new Error(e.failure().errorText);
4206
+ }), o) throw new Error(e.failure().errorText);
4206
4207
  console.error("requestfailed", e.url());
4207
4208
  })), "string" == typeof e.html ? await e2eSetContent(t, e.html, {
4208
4209
  waitUntil: e.waitUntil
@@ -4233,10 +4234,10 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4233
4234
  waitForChanges: testing.flushAll,
4234
4235
  flushLoadModule: testing.flushLoadModule,
4235
4236
  flushQueue: testing.flushQueue
4236
- }, o = e.components.map((e => {
4237
+ }, i = e.components.map((e => {
4237
4238
  if (null == e.COMPILER_META) throw new Error('Invalid component class: Missing static "COMPILER_META" property.');
4238
4239
  r.add(e.COMPILER_META.tagName), e.isProxied = !1, function t(e) {
4239
- var t, r, s, n, o, i;
4240
+ var t, r, s, n, i, o;
4240
4241
  "function" == typeof (null === (t = e.prototype) || void 0 === t ? void 0 : t.__componentWillLoad) && (e.prototype.componentWillLoad = e.prototype.__componentWillLoad,
4241
4242
  e.prototype.__componentWillLoad = null), "function" == typeof (null === (r = e.prototype) || void 0 === r ? void 0 : r.__componentWillUpdate) && (e.prototype.componentWillUpdate = e.prototype.__componentWillUpdate,
4242
4243
  e.prototype.__componentWillUpdate = null), "function" == typeof (null === (s = e.prototype) || void 0 === s ? void 0 : s.__componentWillRender) && (e.prototype.componentWillRender = e.prototype.__componentWillRender,
@@ -4245,12 +4246,12 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4245
4246
  const e = this.__componentWillLoad();
4246
4247
  return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
4247
4248
  e;
4248
- }), "function" == typeof (null === (o = e.prototype) || void 0 === o ? void 0 : o.componentWillUpdate) && (e.prototype.__componentWillUpdate = e.prototype.componentWillUpdate,
4249
+ }), "function" == typeof (null === (i = e.prototype) || void 0 === i ? void 0 : i.componentWillUpdate) && (e.prototype.__componentWillUpdate = e.prototype.componentWillUpdate,
4249
4250
  e.prototype.componentWillUpdate = function() {
4250
4251
  const e = this.__componentWillUpdate();
4251
4252
  return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
4252
4253
  e;
4253
- }), "function" == typeof (null === (i = e.prototype) || void 0 === i ? void 0 : i.componentWillRender) && (e.prototype.__componentWillRender = e.prototype.componentWillRender,
4254
+ }), "function" == typeof (null === (o = e.prototype) || void 0 === o ? void 0 : o.componentWillRender) && (e.prototype.__componentWillRender = e.prototype.componentWillRender,
4254
4255
  e.prototype.componentWillRender = function() {
4255
4256
  const e = this.__componentWillRender();
4256
4257
  return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
@@ -4265,15 +4266,15 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4265
4266
  })), e.style = t;
4266
4267
  } else 1 === n.length && (e.style = n[0].styleStr);
4267
4268
  testing.registerModule(s, e);
4268
- const o = ((e, t) => [ e, t.map((e => ((e, t) => {
4269
+ const i = ((e, t) => [ e, t.map((e => ((e, t) => {
4269
4270
  let r = 0;
4270
4271
  "shadow" === e.encapsulation ? (r |= 1, e.shadowDelegatesFocus && (r |= 16)) : "scoped" === e.encapsulation && (r |= 2),
4271
4272
  "shadow" !== e.encapsulation && e.htmlTagNames.includes("slot") && (r |= 4), e.hasMode && (r |= 32);
4272
4273
  const s = formatComponentRuntimeMembers(e, t), n = formatHostListeners(e);
4273
4274
  return trimFalsy([ r, e.tagName, Object.keys(s).length > 0 ? s : void 0, n.length > 0 ? n : void 0 ]);
4274
4275
  })(e, !0))) ])(s, [ e.COMPILER_META ]);
4275
- return o;
4276
- })), i = (e => {
4276
+ return i;
4277
+ })), o = (e => {
4277
4278
  const t = e.some((e => e.htmlTagNames.includes("slot"))), r = e.some((e => "shadow" === e.encapsulation)), s = e.some((e => "shadow" !== e.encapsulation && e.htmlTagNames.includes("slot"))), n = {
4278
4279
  allRenderFn: e.every((e => e.hasRenderFn)),
4279
4280
  cmpDidLoad: e.some((e => e.hasComponentDidLoadFn)),
@@ -4333,8 +4334,8 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4333
4334
  return n.asyncLoading = n.cmpWillUpdate || n.cmpWillLoad || n.cmpWillRender, n.vdomAttribute = n.vdomAttribute || n.reflect,
4334
4335
  n.vdomPropOrAttr = n.vdomPropOrAttr || n.reflect, n;
4335
4336
  })(e.components.map((e => e.COMPILER_META)));
4336
- if (e.strictBuild ? Object.assign(appData.BUILD, i) : Object.keys(i).forEach((e => {
4337
- !0 === i[e] && (appData.BUILD[e] = !0);
4337
+ if (e.strictBuild ? Object.assign(appData.BUILD, o) : Object.keys(o).forEach((e => {
4338
+ !0 === o[e] && (appData.BUILD[e] = !0);
4338
4339
  })), appData.BUILD.asyncLoading = !0, e.hydrateClientSide ? (appData.BUILD.hydrateClientSide = !0,
4339
4340
  appData.BUILD.hydrateServerSide = !1) : e.hydrateServerSide && (appData.BUILD.hydrateServerSide = !0,
4340
4341
  appData.BUILD.hydrateClientSide = !1), appData.BUILD.cloneNodeFix = !1, appData.BUILD.shadowDomShim = !1,
@@ -4350,7 +4351,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4350
4351
  if ("string" == typeof e.userAgent) try {
4351
4352
  n.win.navigator.userAgent = e.userAgent;
4352
4353
  } catch (e) {}
4353
- if (testing.bootstrapLazy(o), "function" == typeof e.template) {
4354
+ if (testing.bootstrapLazy(i), "function" == typeof e.template) {
4354
4355
  const t = {
4355
4356
  $ancestorComponent$: void 0,
4356
4357
  $flags$: 0,