@stencil/core 3.0.1-dev.1677273625.4fe628d → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/cli/index.cjs +3 -2
  2. package/cli/index.cjs.map +1 -0
  3. package/cli/index.js +3 -2
  4. package/cli/index.js.map +1 -0
  5. package/cli/package.json +1 -1
  6. package/compiler/package.json +1 -1
  7. package/compiler/stencil.js +3931 -591
  8. package/compiler/stencil.js.map +1 -0
  9. package/compiler/stencil.min.js +2 -2
  10. package/dev-server/client/index.js +1 -1
  11. package/dev-server/client/package.json +1 -1
  12. package/dev-server/connector.html +2 -2
  13. package/dev-server/index.js +1 -1
  14. package/dev-server/open-in-editor-api.js +1 -1
  15. package/dev-server/package.json +1 -1
  16. package/dev-server/server-process.js +2 -2
  17. package/dev-server/ws.js +1 -1
  18. package/internal/app-data/package.json +1 -1
  19. package/internal/client/css-shim.js +1 -1
  20. package/internal/client/dom.js +1 -1
  21. package/internal/client/index.js +1 -1
  22. package/internal/client/package.json +1 -1
  23. package/internal/client/patch-browser.js +2 -2
  24. package/internal/client/patch-esm.js +1 -1
  25. package/internal/client/shadow-css.js +1 -1
  26. package/internal/hydrate/package.json +1 -1
  27. package/internal/package.json +1 -1
  28. package/internal/stencil-private.d.ts +4 -0
  29. package/internal/stencil-public-compiler.d.ts +16 -1
  30. package/internal/testing/package.json +1 -1
  31. package/mock-doc/index.cjs +1 -1
  32. package/mock-doc/index.js +1 -1
  33. package/mock-doc/package.json +1 -1
  34. package/package.json +7 -6
  35. package/screenshot/package.json +1 -1
  36. package/sys/node/autoprefixer.js +2 -2
  37. package/sys/node/glob.js +1 -1
  38. package/sys/node/graceful-fs.js +1 -1
  39. package/sys/node/index.js +1 -1
  40. package/sys/node/node-fetch.js +1 -1
  41. package/sys/node/package.json +1 -1
  42. package/sys/node/prompts.js +1 -1
  43. package/sys/node/worker.js +1 -1
  44. package/testing/index.js +365 -361
  45. package/testing/package.json +1 -1
package/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Testing v3.0.1-dev.1677273625.4fe628d | MIT Licensed | https://stenciljs.com
2
+ Stencil Testing v3.1.0 | 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"), i = 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"), o = 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
  e.logger.debug(`puppeteer headless: ${e.testing.browserHeadless}`), 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 o = {
67
+ const i = {
68
68
  ignoreHTTPSErrors: !0,
69
69
  slowMo: e.testing.browserSlowMo
70
70
  };
71
71
  let a;
72
- if (e.testing.browserWSEndpoint) a = await i.connect({
72
+ if (e.testing.browserWSEndpoint) a = await o.connect({
73
73
  browserWSEndpoint: e.testing.browserWSEndpoint,
74
- ...o
74
+ ...i
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
- ...o
80
+ ...i
81
81
  };
82
82
  e.testing.browserExecutablePath && (t.executablePath = e.testing.browserExecutablePath),
83
- a = await i.launch({
83
+ a = await o.launch({
84
84
  ...t
85
85
  });
86
86
  }
@@ -89,6 +89,7 @@ async function startPuppeteerBrowser(e) {
89
89
  }
90
90
 
91
91
  function transpile(e, t = {}) {
92
+ var r;
92
93
  t = {
93
94
  ...t,
94
95
  componentExport: null,
@@ -100,7 +101,8 @@ function transpile(e, t = {}) {
100
101
  sourceMap: "inline",
101
102
  style: null,
102
103
  styleImportData: "queryparams",
103
- target: "es2015"
104
+ target: "es2015",
105
+ transformAliasedImportPaths: (r = process.env.__STENCIL_TRANSPILE_PATHS__, "true" === r)
104
106
  };
105
107
  try {
106
108
  const e = process.versions.node.split(".");
@@ -168,6 +170,7 @@ async function runJest(e, t) {
168
170
  return r;
169
171
  }(e.testing, e.flags);
170
172
  t.__STENCIL_EMULATE_CONFIGS__ = JSON.stringify(s), t.__STENCIL_ENV__ = JSON.stringify(e.env),
173
+ t.__STENCIL_TRANSPILE_PATHS__ = e.transformAliasedImportPaths ? "true" : "false",
171
174
  e.flags.ci || e.flags.e2e ? t.__STENCIL_DEFAULT_TIMEOUT__ = "30000" : t.__STENCIL_DEFAULT_TIMEOUT__ = "15000",
172
175
  e.flags.devtools && (t.__STENCIL_DEFAULT_TIMEOUT__ = "300000000"), e.logger.debug(`default timeout: ${t.__STENCIL_DEFAULT_TIMEOUT__}`);
173
176
  const n = function n(e) {
@@ -197,7 +200,7 @@ async function runJest(e, t) {
197
200
  testLocationInResults: !1,
198
201
  "test-location-in-results": !1,
199
202
  ...n
200
- }, n.config = function i(e) {
203
+ }, n.config = function o(e) {
201
204
  const t = e.testing, r = require("jest-config").defaults, s = Object.keys(r), n = {};
202
205
  return Object.keys(t).forEach((e => {
203
206
  s.includes(e) && (n[e] = t[e]);
@@ -213,11 +216,11 @@ async function runJest(e, t) {
213
216
  n.maxWorkers = parseInt(n.maxWorkers, 10);
214
217
  } catch (e) {}
215
218
  return "string" == typeof n.ci && (n.ci = "true" === n.ci || "" === n.ci), n;
216
- }(e), i = function i(e, t) {
219
+ }(e), o = function o(e, t) {
217
220
  const r = t.projects ? t.projects : [];
218
221
  return r.push(e.rootDir), r;
219
- }(e, n), {runCLI: o} = require("@jest/core");
220
- r = !!(await o(n, i)).results.success;
222
+ }(e, n), {runCLI: i} = require("@jest/core");
223
+ r = !!(await i(n, o)).results.success;
221
224
  } catch (t) {
222
225
  e.logger.error(`runJest: ${t}`);
223
226
  }
@@ -265,11 +268,11 @@ function compareHtml(e, t, r) {
265
268
  });
266
269
  }
267
270
  }
268
- const i = index_cjs.parseHtmlToFragment(t), o = index_cjs.serializeNodeToHtml(i, {
271
+ const o = index_cjs.parseHtmlToFragment(t), i = index_cjs.serializeNodeToHtml(o, {
269
272
  prettyHtml: !0,
270
273
  excludeTags: [ "body" ]
271
274
  });
272
- return s !== o ? (expect(s).toBe(o), {
275
+ return s !== i ? (expect(s).toBe(i), {
273
276
  message: () => "HTML does not match",
274
277
  pass: !1
275
278
  }) : {
@@ -329,7 +332,7 @@ function assertPath(e) {
329
332
  }
330
333
 
331
334
  function normalizeStringPosix(e, t) {
332
- var r, s, n, i = "", o = 0, a = -1, l = 0;
335
+ var r, s, n, o = "", i = 0, a = -1, l = 0;
333
336
  for (s = 0; s <= e.length; ++s) {
334
337
  if (s < e.length) r = e.charCodeAt(s); else {
335
338
  if (47 === r) break;
@@ -337,27 +340,27 @@ function normalizeStringPosix(e, t) {
337
340
  }
338
341
  if (47 === r) {
339
342
  if (a === s - 1 || 1 === l) ; else if (a !== s - 1 && 2 === l) {
340
- if (i.length < 2 || 2 !== o || 46 !== i.charCodeAt(i.length - 1) || 46 !== i.charCodeAt(i.length - 2)) if (i.length > 2) {
341
- if ((n = i.lastIndexOf("/")) !== i.length - 1) {
342
- -1 === n ? (i = "", o = 0) : o = (i = i.slice(0, n)).length - 1 - i.lastIndexOf("/"),
343
+ if (o.length < 2 || 2 !== i || 46 !== o.charCodeAt(o.length - 1) || 46 !== o.charCodeAt(o.length - 2)) if (o.length > 2) {
344
+ if ((n = o.lastIndexOf("/")) !== o.length - 1) {
345
+ -1 === n ? (o = "", i = 0) : i = (o = o.slice(0, n)).length - 1 - o.lastIndexOf("/"),
343
346
  a = s, l = 0;
344
347
  continue;
345
348
  }
346
- } else if (2 === i.length || 1 === i.length) {
347
- i = "", o = 0, a = s, l = 0;
349
+ } else if (2 === o.length || 1 === o.length) {
350
+ o = "", i = 0, a = s, l = 0;
348
351
  continue;
349
352
  }
350
- t && (i.length > 0 ? i += "/.." : i = "..", o = 2);
351
- } else i.length > 0 ? i += "/" + e.slice(a + 1, s) : i = e.slice(a + 1, s), o = s - a - 1;
353
+ t && (o.length > 0 ? o += "/.." : o = "..", i = 2);
354
+ } else o.length > 0 ? o += "/" + e.slice(a + 1, s) : o = e.slice(a + 1, s), i = s - a - 1;
352
355
  a = s, l = 0;
353
356
  } else 46 === r && -1 !== l ? ++l : l = -1;
354
357
  }
355
- return i;
358
+ return o;
356
359
  }
357
360
 
358
361
  function specifierIncluded$1(e, t) {
359
- 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(".");
360
- 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;
362
+ 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(".");
363
+ 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;
361
364
  return ">=" === a;
362
365
  }
363
366
 
@@ -369,9 +372,9 @@ function matchesRange$1(e, t) {
369
372
  }
370
373
 
371
374
  function specifierIncluded(e) {
372
- var t, r, s, n = e.split(" "), i = n.length > 1 ? n[0] : "=", o = (n.length > 1 ? n[1] : n[0]).split(".");
373
- 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;
374
- return ">=" === i;
375
+ var t, r, s, n = e.split(" "), o = n.length > 1 ? n[0] : "=", i = (n.length > 1 ? n[1] : n[0]).split(".");
376
+ 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;
377
+ return ">=" === o;
375
378
  }
376
379
 
377
380
  function matchesRange(e) {
@@ -492,19 +495,19 @@ async function initPageEvents(e) {
492
495
  }
493
496
 
494
497
  async function pageSpyOnEvent(e, t, r) {
495
- const s = new EventSpy(t), n = "document" !== r ? () => window : () => document, i = await e.evaluateHandle(n);
496
- return await addE2EListener(e, i, t, (e => {
498
+ const s = new EventSpy(t), n = "document" !== r ? () => window : () => document, o = await e.evaluateHandle(n);
499
+ return await addE2EListener(e, o, t, (e => {
497
500
  s.push(e);
498
501
  })), s;
499
502
  }
500
503
 
501
504
  async function waitForEvent(e, t, r) {
502
505
  const s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = await e.evaluate(((e, t, r) => new Promise(((s, n) => {
503
- const i = setTimeout((() => {
506
+ const o = setTimeout((() => {
504
507
  n(new Error(`waitForEvent() timeout, eventName: ${t}`));
505
508
  }), r);
506
509
  e.addEventListener(t, (e => {
507
- clearTimeout(i), s(window.stencilSerializeEvent(e));
510
+ clearTimeout(o), s(window.stencilSerializeEvent(e));
508
511
  }), {
509
512
  once: !0
510
513
  });
@@ -573,7 +576,7 @@ function browserContextEvents() {
573
576
  }
574
577
 
575
578
  async function find(e, t, r) {
576
- const {lightSelector: s, shadowSelector: n, text: i, contains: o} = getSelector(r);
579
+ const {lightSelector: s, shadowSelector: n, text: o, contains: i} = getSelector(r);
577
580
  let a;
578
581
  if (a = "string" == typeof s ? await async function l(e, t, r, s) {
579
582
  let n = await t.$(r);
@@ -601,20 +604,20 @@ async function find(e, t, r) {
601
604
  }(e), s;
602
605
  }), t, r, s);
603
606
  return n ? n.asElement() : null;
604
- }(e, t, i, o), !a) return null;
607
+ }(e, t, o, i), !a) return null;
605
608
  const u = new E2EElement(e, a);
606
609
  return await u.e2eSync(), u;
607
610
  }
608
611
 
609
612
  async function findAll(e, t, r) {
610
- const s = [], {lightSelector: n, shadowSelector: i} = getSelector(r), o = await t.$$(n);
611
- if (0 === o.length) return s;
612
- if (i) for (let t = 0; t < o.length; t++) {
613
- const r = getPuppeteerExecution(o[t]), n = await r.evaluateHandle(((e, t) => {
613
+ const s = [], {lightSelector: n, shadowSelector: o} = getSelector(r), i = await t.$$(n);
614
+ if (0 === i.length) return s;
615
+ if (o) for (let t = 0; t < i.length; t++) {
616
+ const r = getPuppeteerExecution(i[t]), n = await r.evaluateHandle(((e, t) => {
614
617
  if (!e.shadowRoot) throw new Error(`shadow root does not exist for element: ${e.tagName.toLowerCase()}`);
615
618
  return e.shadowRoot.querySelectorAll(t);
616
- }), o[t], i);
617
- await o[t].dispose();
619
+ }), i[t], o);
620
+ await i[t].dispose();
618
621
  const a = await n.getProperties();
619
622
  await n.dispose();
620
623
  for (const t of a.values()) {
@@ -624,8 +627,8 @@ async function findAll(e, t, r) {
624
627
  await t.e2eSync(), s.push(t);
625
628
  }
626
629
  }
627
- } else for (let t = 0; t < o.length; t++) {
628
- const r = new E2EElement(e, o[t]);
630
+ } else for (let t = 0; t < i.length; t++) {
631
+ const r = new E2EElement(e, i[t]);
629
632
  await r.e2eSync(), s.push(r);
630
633
  }
631
634
  return s;
@@ -668,7 +671,7 @@ function writeFile(e, t) {
668
671
  }));
669
672
  }
670
673
 
671
- async function compareScreenshot(e, t, r, s, n, i, o, a) {
674
+ async function compareScreenshot(e, t, r, s, n, o, i, a) {
672
675
  const l = `${crypto$3.createHash("md5").update(r).digest("hex")}.png`, c = path$2.join(t.imagesDir, l);
673
676
  await async function u(e, t) {
674
677
  const r = await function s(e) {
@@ -677,7 +680,7 @@ async function compareScreenshot(e, t, r, s, n, i, o, a) {
677
680
  }));
678
681
  }(e);
679
682
  r || await writeFile(e, t);
680
- }(c, r), r = null, o && (o = normalizePath(path$2.relative(t.rootDir, o)));
683
+ }(c, r), r = null, i && (i = normalizePath(path$2.relative(t.rootDir, i)));
681
684
  const d = function h(e, t) {
682
685
  if ("string" != typeof t || 0 === t.trim().length) throw new Error("invalid test description");
683
686
  const r = crypto$3.createHash("md5");
@@ -690,9 +693,9 @@ async function compareScreenshot(e, t, r, s, n, i, o, a) {
690
693
  device: e.device,
691
694
  userAgent: e.userAgent,
692
695
  desc: s,
693
- testPath: o,
696
+ testPath: i,
694
697
  width: n,
695
- height: i,
698
+ height: o,
696
699
  deviceScaleFactor: e.viewport.deviceScaleFactor,
697
700
  hasTouch: e.viewport.hasTouch,
698
701
  isLandscape: e.viewport.isLandscape,
@@ -706,14 +709,14 @@ async function compareScreenshot(e, t, r, s, n, i, o, a) {
706
709
  device: e.device,
707
710
  userAgent: e.userAgent,
708
711
  width: n,
709
- height: i,
712
+ height: o,
710
713
  deviceScaleFactor: e.viewport.deviceScaleFactor,
711
714
  hasTouch: e.viewport.hasTouch,
712
715
  isLandscape: e.viewport.isLandscape,
713
716
  isMobile: e.viewport.isMobile,
714
717
  allowableMismatchedPixels: t.allowableMismatchedPixels,
715
718
  allowableMismatchedRatio: t.allowableMismatchedRatio,
716
- testPath: o
719
+ testPath: i
717
720
  }
718
721
  };
719
722
  if (t.updateMaster) return await writeScreenshotData(t.currentBuildDir, p), p.diff;
@@ -735,7 +738,7 @@ async function compareScreenshot(e, t, r, s, n, i, o, a) {
735
738
  };
736
739
  p.diff.mismatchedPixels = await async function g(e, t) {
737
740
  return new Promise(((r, s) => {
738
- const n = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, i = setTimeout((() => {
741
+ const n = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, o = setTimeout((() => {
739
742
  s(`getMismatchedPixels timeout: ${n}ms`);
740
743
  }), n);
741
744
  try {
@@ -744,14 +747,14 @@ async function compareScreenshot(e, t, r, s, n, i, o, a) {
744
747
  env: process.env,
745
748
  cwd: process.cwd(),
746
749
  stdio: [ "pipe", "pipe", "pipe", "ipc" ]
747
- }, o = child_process$2.fork(e, [], n);
748
- o.on("message", (e => {
749
- o.kill(), clearTimeout(i), r(e);
750
- })), o.on("error", (e => {
751
- clearTimeout(i), s(e);
752
- })), o.send(t);
750
+ }, i = child_process$2.fork(e, [], n);
751
+ i.on("message", (e => {
752
+ i.kill(), clearTimeout(o), r(e);
753
+ })), i.on("error", (e => {
754
+ clearTimeout(o), s(e);
755
+ })), i.send(t);
753
756
  } catch (e) {
754
- clearTimeout(i), s(`getMismatchedPixels error: ${e}`);
757
+ clearTimeout(o), s(`getMismatchedPixels error: ${e}`);
755
758
  }
756
759
  }));
757
760
  }(t.pixelmatchModulePath, n);
@@ -768,9 +771,9 @@ async function e2eGoTo(e, t, r = {}) {
768
771
  if ("string" != typeof s) throw new Error("invalid gotoTest() browser url");
769
772
  const n = s + t.substring(1);
770
773
  r.waitUntil || (r.waitUntil = env.__STENCIL_BROWSER_WAIT_UNTIL);
771
- const i = await e._e2eGoto(n, r);
772
- if (!i.ok()) throw new Error(`Testing unable to load ${t}, HTTP status: ${i.status()}`);
773
- return await waitForStencil(e, r), i;
774
+ const o = await e._e2eGoto(n, r);
775
+ if (!o.ok()) throw new Error(`Testing unable to load ${t}, HTTP status: ${o.status()}`);
776
+ return await waitForStencil(e, r), o;
774
777
  }
775
778
 
776
779
  async function e2eSetContent(e, t, r = {}) {
@@ -779,18 +782,18 @@ async function e2eSetContent(e, t, r = {}) {
779
782
  const s = [], n = env.__STENCIL_APP_SCRIPT_URL__;
780
783
  if ("string" != typeof n) throw new Error("invalid e2eSetContent() app script url");
781
784
  s.push("<!doctype html>"), s.push("<html>"), s.push("<head>");
782
- const i = env.__STENCIL_APP_STYLE_URL__;
783
- "string" == typeof i && s.push(`<link rel="stylesheet" href="${i}">`), s.push(`<script type="module" src="${n}"><\/script>`),
785
+ const o = env.__STENCIL_APP_STYLE_URL__;
786
+ "string" == typeof o && s.push(`<link rel="stylesheet" href="${o}">`), s.push(`<script type="module" src="${n}"><\/script>`),
784
787
  s.push("</head>"), s.push("<body>"), s.push(t), s.push("</body>"), s.push("</html>");
785
- const o = env.__STENCIL_BROWSER_URL__;
788
+ const i = env.__STENCIL_BROWSER_URL__;
786
789
  await e.setRequestInterception(!0), e.on("request", (e => {
787
- o === e.url() ? e.respond({
790
+ i === e.url() ? e.respond({
788
791
  status: 200,
789
792
  contentType: "text/html",
790
793
  body: s.join("\n")
791
794
  }) : e.continue();
792
795
  })), r.waitUntil || (r.waitUntil = env.__STENCIL_BROWSER_WAIT_UNTIL);
793
- const a = await e._e2eGoto(o, r);
796
+ const a = await e._e2eGoto(i, r);
794
797
  if (!a.ok()) throw new Error("Testing unable to load content");
795
798
  return await waitForStencil(e, r), a;
796
799
  }
@@ -881,13 +884,13 @@ function getAppStyleUrl(e, t) {
881
884
  function getAppUrl(e, t, r) {
882
885
  const s = e.outputTargets.find(isOutputTargetWww);
883
886
  if (s) {
884
- const e = s.buildDir, n = path$2.join(e, r), i = path$2.relative(s.dir, n);
885
- return new URL(i, t).href;
887
+ const e = s.buildDir, n = path$2.join(e, r), o = path$2.relative(s.dir, n);
888
+ return new URL(o, t).href;
886
889
  }
887
890
  const n = e.outputTargets.find(isOutputTargetDistLazy);
888
891
  if (n) {
889
- const s = n.esmDir, i = path$2.join(s, r), o = path$2.relative(e.rootDir, i);
890
- return new URL(o, t).href;
892
+ const s = n.esmDir, o = path$2.join(s, r), i = path$2.relative(e.rootDir, o);
893
+ return new URL(i, t).href;
891
894
  }
892
895
  return t;
893
896
  }
@@ -907,35 +910,35 @@ constants$2 = {
907
910
  MAX_SAFE_INTEGER: MAX_SAFE_INTEGER$1,
908
911
  MAX_SAFE_COMPONENT_LENGTH: 16
909
912
  }, re_1 = createCommonjsModule((function(e, t) {
910
- const {MAX_SAFE_COMPONENT_LENGTH: r} = constants$2, s = (t = e.exports = {}).re = [], n = t.src = [], i = t.t = {};
911
- let o = 0;
913
+ const {MAX_SAFE_COMPONENT_LENGTH: r} = constants$2, s = (t = e.exports = {}).re = [], n = t.src = [], o = t.t = {};
914
+ let i = 0;
912
915
  const a = (e, t, r) => {
913
- const a = o++;
914
- debug_1(e, a, t), i[e] = a, n[a] = t, s[a] = new RegExp(t, r ? "g" : void 0);
916
+ const a = i++;
917
+ debug_1(e, a, t), o[e] = a, n[a] = t, s[a] = new RegExp(t, r ? "g" : void 0);
915
918
  };
916
919
  a("NUMERICIDENTIFIER", "0|[1-9]\\d*"), a("NUMERICIDENTIFIERLOOSE", "[0-9]+"), a("NONNUMERICIDENTIFIER", "\\d*[a-zA-Z-][a-zA-Z0-9-]*"),
917
- a("MAINVERSION", `(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})`),
918
- a("MAINVERSIONLOOSE", `(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})`),
919
- a("PRERELEASEIDENTIFIER", `(?:${n[i.NUMERICIDENTIFIER]}|${n[i.NONNUMERICIDENTIFIER]})`),
920
- a("PRERELEASEIDENTIFIERLOOSE", `(?:${n[i.NUMERICIDENTIFIERLOOSE]}|${n[i.NONNUMERICIDENTIFIER]})`),
921
- a("PRERELEASE", `(?:-(${n[i.PRERELEASEIDENTIFIER]}(?:\\.${n[i.PRERELEASEIDENTIFIER]})*))`),
922
- a("PRERELEASELOOSE", `(?:-?(${n[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[i.PRERELEASEIDENTIFIERLOOSE]})*))`),
923
- a("BUILDIDENTIFIER", "[0-9A-Za-z-]+"), a("BUILD", `(?:\\+(${n[i.BUILDIDENTIFIER]}(?:\\.${n[i.BUILDIDENTIFIER]})*))`),
924
- a("FULLPLAIN", `v?${n[i.MAINVERSION]}${n[i.PRERELEASE]}?${n[i.BUILD]}?`), a("FULL", `^${n[i.FULLPLAIN]}$`),
925
- a("LOOSEPLAIN", `[v=\\s]*${n[i.MAINVERSIONLOOSE]}${n[i.PRERELEASELOOSE]}?${n[i.BUILD]}?`),
926
- a("LOOSE", `^${n[i.LOOSEPLAIN]}$`), a("GTLT", "((?:<|>)?=?)"), a("XRANGEIDENTIFIERLOOSE", `${n[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),
927
- a("XRANGEIDENTIFIER", `${n[i.NUMERICIDENTIFIER]}|x|X|\\*`), a("XRANGEPLAIN", `[v=\\s]*(${n[i.XRANGEIDENTIFIER]})(?:\\.(${n[i.XRANGEIDENTIFIER]})(?:\\.(${n[i.XRANGEIDENTIFIER]})(?:${n[i.PRERELEASE]})?${n[i.BUILD]}?)?)?`),
928
- a("XRANGEPLAINLOOSE", `[v=\\s]*(${n[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[i.XRANGEIDENTIFIERLOOSE]})(?:${n[i.PRERELEASELOOSE]})?${n[i.BUILD]}?)?)?`),
929
- a("XRANGE", `^${n[i.GTLT]}\\s*${n[i.XRANGEPLAIN]}$`), a("XRANGELOOSE", `^${n[i.GTLT]}\\s*${n[i.XRANGEPLAINLOOSE]}$`),
920
+ a("MAINVERSION", `(${n[o.NUMERICIDENTIFIER]})\\.(${n[o.NUMERICIDENTIFIER]})\\.(${n[o.NUMERICIDENTIFIER]})`),
921
+ a("MAINVERSIONLOOSE", `(${n[o.NUMERICIDENTIFIERLOOSE]})\\.(${n[o.NUMERICIDENTIFIERLOOSE]})\\.(${n[o.NUMERICIDENTIFIERLOOSE]})`),
922
+ a("PRERELEASEIDENTIFIER", `(?:${n[o.NUMERICIDENTIFIER]}|${n[o.NONNUMERICIDENTIFIER]})`),
923
+ a("PRERELEASEIDENTIFIERLOOSE", `(?:${n[o.NUMERICIDENTIFIERLOOSE]}|${n[o.NONNUMERICIDENTIFIER]})`),
924
+ a("PRERELEASE", `(?:-(${n[o.PRERELEASEIDENTIFIER]}(?:\\.${n[o.PRERELEASEIDENTIFIER]})*))`),
925
+ a("PRERELEASELOOSE", `(?:-?(${n[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[o.PRERELEASEIDENTIFIERLOOSE]})*))`),
926
+ a("BUILDIDENTIFIER", "[0-9A-Za-z-]+"), a("BUILD", `(?:\\+(${n[o.BUILDIDENTIFIER]}(?:\\.${n[o.BUILDIDENTIFIER]})*))`),
927
+ a("FULLPLAIN", `v?${n[o.MAINVERSION]}${n[o.PRERELEASE]}?${n[o.BUILD]}?`), a("FULL", `^${n[o.FULLPLAIN]}$`),
928
+ a("LOOSEPLAIN", `[v=\\s]*${n[o.MAINVERSIONLOOSE]}${n[o.PRERELEASELOOSE]}?${n[o.BUILD]}?`),
929
+ a("LOOSE", `^${n[o.LOOSEPLAIN]}$`), a("GTLT", "((?:<|>)?=?)"), a("XRANGEIDENTIFIERLOOSE", `${n[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),
930
+ 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]}?)?)?`),
931
+ a("XRANGEPLAINLOOSE", `[v=\\s]*(${n[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[o.XRANGEIDENTIFIERLOOSE]})(?:${n[o.PRERELEASELOOSE]})?${n[o.BUILD]}?)?)?`),
932
+ a("XRANGE", `^${n[o.GTLT]}\\s*${n[o.XRANGEPLAIN]}$`), a("XRANGELOOSE", `^${n[o.GTLT]}\\s*${n[o.XRANGEPLAINLOOSE]}$`),
930
933
  a("COERCE", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),
931
- a("COERCERTL", n[i.COERCE], !0), a("LONETILDE", "(?:~>?)"), a("TILDETRIM", `(\\s*)${n[i.LONETILDE]}\\s+`, !0),
932
- t.tildeTrimReplace = "$1~", a("TILDE", `^${n[i.LONETILDE]}${n[i.XRANGEPLAIN]}$`),
933
- a("TILDELOOSE", `^${n[i.LONETILDE]}${n[i.XRANGEPLAINLOOSE]}$`), a("LONECARET", "(?:\\^)"),
934
- a("CARETTRIM", `(\\s*)${n[i.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", a("CARET", `^${n[i.LONECARET]}${n[i.XRANGEPLAIN]}$`),
935
- a("CARETLOOSE", `^${n[i.LONECARET]}${n[i.XRANGEPLAINLOOSE]}$`), a("COMPARATORLOOSE", `^${n[i.GTLT]}\\s*(${n[i.LOOSEPLAIN]})$|^$`),
936
- a("COMPARATOR", `^${n[i.GTLT]}\\s*(${n[i.FULLPLAIN]})$|^$`), a("COMPARATORTRIM", `(\\s*)${n[i.GTLT]}\\s*(${n[i.LOOSEPLAIN]}|${n[i.XRANGEPLAIN]})`, !0),
937
- t.comparatorTrimReplace = "$1$2$3", a("HYPHENRANGE", `^\\s*(${n[i.XRANGEPLAIN]})\\s+-\\s+(${n[i.XRANGEPLAIN]})\\s*$`),
938
- a("HYPHENRANGELOOSE", `^\\s*(${n[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[i.XRANGEPLAINLOOSE]})\\s*$`),
934
+ a("COERCERTL", n[o.COERCE], !0), a("LONETILDE", "(?:~>?)"), a("TILDETRIM", `(\\s*)${n[o.LONETILDE]}\\s+`, !0),
935
+ t.tildeTrimReplace = "$1~", a("TILDE", `^${n[o.LONETILDE]}${n[o.XRANGEPLAIN]}$`),
936
+ a("TILDELOOSE", `^${n[o.LONETILDE]}${n[o.XRANGEPLAINLOOSE]}$`), a("LONECARET", "(?:\\^)"),
937
+ a("CARETTRIM", `(\\s*)${n[o.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", a("CARET", `^${n[o.LONECARET]}${n[o.XRANGEPLAIN]}$`),
938
+ a("CARETLOOSE", `^${n[o.LONECARET]}${n[o.XRANGEPLAINLOOSE]}$`), a("COMPARATORLOOSE", `^${n[o.GTLT]}\\s*(${n[o.LOOSEPLAIN]})$|^$`),
939
+ a("COMPARATOR", `^${n[o.GTLT]}\\s*(${n[o.FULLPLAIN]})$|^$`), a("COMPARATORTRIM", `(\\s*)${n[o.GTLT]}\\s*(${n[o.LOOSEPLAIN]}|${n[o.XRANGEPLAIN]})`, !0),
940
+ t.comparatorTrimReplace = "$1$2$3", a("HYPHENRANGE", `^\\s*(${n[o.XRANGEPLAIN]})\\s+-\\s+(${n[o.XRANGEPLAIN]})\\s*$`),
941
+ a("HYPHENRANGELOOSE", `^\\s*(${n[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[o.XRANGEPLAINLOOSE]})\\s*$`),
939
942
  a("STAR", "(<|>)?=?\\s*\\*"), a("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), a("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
940
943
  }));
941
944
 
@@ -1129,8 +1132,8 @@ const formatComponentRuntimeMeta = (e, t) => {
1129
1132
  }, 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 => {
1130
1133
  if ("string" != typeof e) throw new Error("invalid path to normalize");
1131
1134
  e = normalizeSlashes(e.trim());
1132
- const t = pathComponents(e, getRootLength(e)), r = reducePathComponents(t), s = r[0], n = r[1], i = s + r.slice(1).join("/");
1133
- return "" === i ? "." : "" === s && n && e.includes("/") && !n.startsWith(".") && !n.startsWith("@") ? "./" + i : i;
1135
+ const t = pathComponents(e, getRootLength(e)), r = reducePathComponents(t), s = r[0], n = r[1], o = s + r.slice(1).join("/");
1136
+ return "" === o ? "." : "" === s && n && e.includes("/") && !n.startsWith(".") && !n.startsWith("@") ? "./" + o : o;
1134
1137
  }, normalizeSlashes = e => e.replace(backslashRegExp, "/"), backslashRegExp = /\\/g, reducePathComponents = e => {
1135
1138
  if (!Array.isArray(e) || 0 === e.length) return [];
1136
1139
  const t = [ e[0] ];
@@ -1167,8 +1170,8 @@ const formatComponentRuntimeMeta = (e, t) => {
1167
1170
  if (-1 !== r) {
1168
1171
  const t = r + "://".length, s = e.indexOf("/", t);
1169
1172
  if (-1 !== s) {
1170
- const n = e.slice(0, r), i = e.slice(t, s);
1171
- if ("file" === n && ("" === i || "localhost" === i) && isVolumeCharacter(e.charCodeAt(s + 1))) {
1173
+ const n = e.slice(0, r), o = e.slice(t, s);
1174
+ if ("file" === n && ("" === o || "localhost" === o) && isVolumeCharacter(e.charCodeAt(s + 1))) {
1172
1175
  const t = getFileUrlVolumeSeparatorEnd(e, s + 2);
1173
1176
  if (-1 !== t) {
1174
1177
  if (47 === e.charCodeAt(t)) return ~(t + 1);
@@ -1208,30 +1211,30 @@ const formatComponentRuntimeMeta = (e, t) => {
1208
1211
  };
1209
1212
  if (1 === e.category && (r.level = "error"), e.file && "number" == typeof e.start) {
1210
1213
  r.absFilePath = e.file.fileName;
1211
- const n = "string" != typeof (s = e.file.text) ? [] : (s = s.replace(/\\r/g, "\n")).split("\n"), i = e.file.getLineAndCharacterOfPosition(e.start), o = {
1212
- lineIndex: i.line,
1213
- lineNumber: i.line + 1,
1214
- text: n[i.line],
1215
- errorCharStart: i.character,
1214
+ const n = "string" != typeof (s = e.file.text) ? [] : (s = s.replace(/\\r/g, "\n")).split("\n"), o = e.file.getLineAndCharacterOfPosition(e.start), i = {
1215
+ lineIndex: o.line,
1216
+ lineNumber: o.line + 1,
1217
+ text: n[o.line],
1218
+ errorCharStart: o.character,
1216
1219
  errorLength: Math.max(null !== (t = e.length) && void 0 !== t ? t : 0, 1)
1217
1220
  };
1218
- if (r.lineNumber = o.lineNumber, r.columnNumber = o.errorCharStart + 1, r.lines.push(o),
1219
- 0 === o.errorLength && o.errorCharStart > 0 && (o.errorLength = 1, o.errorCharStart--),
1220
- o.lineIndex > 0) {
1221
+ if (r.lineNumber = i.lineNumber, r.columnNumber = i.errorCharStart + 1, r.lines.push(i),
1222
+ 0 === i.errorLength && i.errorCharStart > 0 && (i.errorLength = 1, i.errorCharStart--),
1223
+ i.lineIndex > 0) {
1221
1224
  const e = {
1222
- lineIndex: o.lineIndex - 1,
1223
- lineNumber: o.lineNumber - 1,
1224
- text: n[o.lineIndex - 1],
1225
+ lineIndex: i.lineIndex - 1,
1226
+ lineNumber: i.lineNumber - 1,
1227
+ text: n[i.lineIndex - 1],
1225
1228
  errorCharStart: -1,
1226
1229
  errorLength: -1
1227
1230
  };
1228
1231
  r.lines.unshift(e);
1229
1232
  }
1230
- if (o.lineIndex + 1 < n.length) {
1233
+ if (i.lineIndex + 1 < n.length) {
1231
1234
  const e = {
1232
- lineIndex: o.lineIndex + 1,
1233
- lineNumber: o.lineNumber + 1,
1234
- text: n[o.lineIndex + 1],
1235
+ lineIndex: i.lineIndex + 1,
1236
+ lineNumber: i.lineNumber + 1,
1237
+ text: n[i.lineIndex + 1],
1235
1238
  errorCharStart: -1,
1236
1239
  errorLength: -1
1237
1240
  };
@@ -1244,12 +1247,12 @@ const formatComponentRuntimeMeta = (e, t) => {
1244
1247
  var r, s;
1245
1248
  if ("string" == typeof t) return t;
1246
1249
  if (void 0 === t) return "";
1247
- const n = [], i = (null !== (s = null === (r = e.file) || void 0 === r ? void 0 : r.fileName) && void 0 !== s ? s : "").includes("stencil.config");
1248
- i && n.push(2322);
1249
- let o = "";
1250
- if (!n.includes(t.code) && (o = t.messageText, isIterable(t.next))) for (const r of t.next) o += flattenDiagnosticMessageText(e, r);
1251
- return i && (o = o.replace("type 'StencilConfig'", "Stencil Config"), o = o.replace("Object literal may only specify known properties, but ", ""),
1252
- o = o.replace("Object literal may only specify known properties, and ", "")), o.trim();
1250
+ const n = [], o = (null !== (s = null === (r = e.file) || void 0 === r ? void 0 : r.fileName) && void 0 !== s ? s : "").includes("stencil.config");
1251
+ o && n.push(2322);
1252
+ let i = "";
1253
+ if (!n.includes(t.code) && (i = t.messageText, isIterable(t.next))) for (const r of t.next) i += flattenDiagnosticMessageText(e, r);
1254
+ return o && (i = i.replace("type 'StencilConfig'", "Stencil Config"), i = i.replace("Object literal may only specify known properties, but ", ""),
1255
+ i = i.replace("Object literal may only specify known properties, and ", "")), i.trim();
1253
1256
  }, isJest27TransformOptions = e => null != e && "object" == typeof e && e.hasOwnProperty("config");
1254
1257
 
1255
1258
  let _tsCompilerOptions = null, _tsCompilerOptionsKey = null;
@@ -1273,12 +1276,12 @@ const jestPreprocessor = {
1273
1276
  currentDirectory: s.rootDir
1274
1277
  }, n = getCompilerOptions(s.rootDir);
1275
1278
  n && (n.baseUrl && (r.baseUrl = n.baseUrl), n.paths && (r.paths = n.paths));
1276
- const i = transpile(e, r), o = i.diagnostics.some((e => "error" === e.level));
1277
- if (i.diagnostics && o) {
1278
- const e = i.diagnostics.map(formatDiagnostic).join("\n\n");
1279
+ const o = transpile(e, r), i = o.diagnostics.some((e => "error" === e.level));
1280
+ if (o.diagnostics && i) {
1281
+ const e = o.diagnostics.map(formatDiagnostic).join("\n\n");
1279
1282
  throw new Error(e);
1280
1283
  }
1281
- return i.code;
1284
+ return o.code;
1282
1285
  }
1283
1286
  return e;
1284
1287
  },
@@ -1294,10 +1297,10 @@ const jestPreprocessor = {
1294
1297
  if (t === r) return !0;
1295
1298
  if (t && r && "object" == typeof t && "object" == typeof r) {
1296
1299
  const s = Array.isArray(t), n = Array.isArray(r);
1297
- let i, o, a;
1300
+ let o, i, a;
1298
1301
  if (s && n) {
1299
- if (o = t.length, o != r.length) return !1;
1300
- for (i = o; 0 != i--; ) if (!e(t[i], r[i])) return !1;
1302
+ if (i = t.length, i != r.length) return !1;
1303
+ for (o = i; 0 != o--; ) if (!e(t[o], r[o])) return !1;
1301
1304
  return !0;
1302
1305
  }
1303
1306
  if (s != n) return !1;
@@ -1308,9 +1311,9 @@ const jestPreprocessor = {
1308
1311
  if (u != d) return !1;
1309
1312
  if (u && d) return t.toString() == r.toString();
1310
1313
  const h = Object.keys(t);
1311
- if (o = h.length, o !== Object.keys(r).length) return !1;
1312
- for (i = o; 0 != i--; ) if (!Object.prototype.hasOwnProperty.call(r, h[i])) return !1;
1313
- for (i = o; 0 != i--; ) if (a = h[i], !e(t[a], r[a])) return !1;
1314
+ if (i = h.length, i !== Object.keys(r).length) return !1;
1315
+ for (o = i; 0 != o--; ) if (!Object.prototype.hasOwnProperty.call(r, h[o])) return !1;
1316
+ for (o = i; 0 != o--; ) if (a = h[o], !e(t[a], r[a])) return !1;
1314
1317
  return !0;
1315
1318
  }
1316
1319
  return t != t && r != r;
@@ -1714,9 +1717,9 @@ class BuildContext {
1714
1717
  }
1715
1718
  return {
1716
1719
  duration: () => r.duration(),
1717
- finish: (e, s, n, i) => {
1720
+ finish: (e, s, n, o) => {
1718
1721
  if ((!this.hasFinished || t) && (t && this.config.watch && (e = `${this.config.logger.cyan("[" + this.buildId + "]")} ${e}`),
1719
- r.finish(e, s, n, i), !t)) {
1722
+ r.finish(e, s, n, o), !t)) {
1720
1723
  const e = {
1721
1724
  buildId: this.buildId,
1722
1725
  messages: this.buildMessages.slice(),
@@ -1832,12 +1835,12 @@ class Cache {
1832
1835
  if (null != t) {
1833
1836
  if (e - t < ONE_DAY) return;
1834
1837
  const r = this.cacheFs.sys, s = await r.readDir(this.config.cacheDir), n = s.map((e => path$2.join(this.config.cacheDir, e)));
1835
- let i = 0;
1836
- const o = n.map((async t => {
1838
+ let o = 0;
1839
+ const i = n.map((async t => {
1837
1840
  const s = (await r.stat(t)).mtimeMs;
1838
- e - s > ONE_WEEK && (await r.removeFile(t), i++);
1841
+ e - s > ONE_WEEK && (await r.removeFile(t), o++);
1839
1842
  }));
1840
- await Promise.all(o), this.logger.debug(`clearExpiredCache, cachedFileNames: ${s.length}, totalCleared: ${i}`);
1843
+ await Promise.all(i), this.logger.debug(`clearExpiredCache, cachedFileNames: ${s.length}, totalCleared: ${o}`);
1841
1844
  }
1842
1845
  this.logger.debug("clearExpiredCache, set last clear"), await this.sys.cacheStorage.set(EXP_STORAGE_KEY, e);
1843
1846
  }
@@ -1880,11 +1883,11 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1880
1883
  }), () => t(n);
1881
1884
  }
1882
1885
  if ("string" == typeof r && "function" == typeof s) {
1883
- const n = r.toLowerCase().trim(), i = s;
1886
+ const n = r.toLowerCase().trim(), o = s;
1884
1887
  return e.push({
1885
1888
  eventName: n,
1886
- callback: i
1887
- }), () => t(i);
1889
+ callback: o
1890
+ }), () => t(o);
1888
1891
  }
1889
1892
  return () => !1;
1890
1893
  },
@@ -1899,23 +1902,23 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1899
1902
  if (!0 === r.inMemoryOnly) {
1900
1903
  let n = e;
1901
1904
  n.endsWith("/") || (n += "/");
1902
- const o = e.split("/");
1905
+ const i = e.split("/");
1903
1906
  t.forEach(((t, n) => {
1904
1907
  if (!n.startsWith(e)) return;
1905
1908
  const a = n.split("/");
1906
- if ((a.length === o.length + 1 || r.recursive && a.length > o.length) && t.exists) {
1909
+ if ((a.length === i.length + 1 || r.recursive && a.length > i.length) && t.exists) {
1907
1910
  const e = {
1908
1911
  absPath: n,
1909
- relPath: a[o.length],
1912
+ relPath: a[i.length],
1910
1913
  isDirectory: t.isDirectory,
1911
1914
  isFile: t.isFile
1912
1915
  };
1913
- i(r, e) || s.push(e);
1916
+ o(r, e) || s.push(e);
1914
1917
  }
1915
1918
  }));
1916
1919
  } else await n(e, e, r, s);
1917
1920
  return s.sort(((e, t) => e.absPath < t.absPath ? -1 : e.absPath > t.absPath ? 1 : 0));
1918
- }, n = async (t, r, s, o) => {
1921
+ }, n = async (t, r, s, i) => {
1919
1922
  const l = await e.readDir(r);
1920
1923
  if (l.length > 0) {
1921
1924
  const e = m(r);
@@ -1926,10 +1929,10 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1926
1929
  isDirectory: c.isDirectory,
1927
1930
  isFile: c.isFile
1928
1931
  };
1929
- i(s, u) || (o.push(u), !0 === s.recursive && !0 === c.isDirectory && await n(t, r, s, o));
1932
+ o(s, u) || (i.push(u), !0 === s.recursive && !0 === c.isDirectory && await n(t, r, s, i));
1930
1933
  })));
1931
1934
  }
1932
- }, i = (e, t) => {
1935
+ }, o = (e, t) => {
1933
1936
  if (t.isDirectory) {
1934
1937
  if (Array.isArray(e.excludeDirNames)) {
1935
1938
  const r = path$2.basename(t.absPath);
@@ -1940,7 +1943,7 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1940
1943
  if (e.excludeExtensions.some((e => r.endsWith(e)))) return !0;
1941
1944
  }
1942
1945
  return !1;
1943
- }, o = async e => {
1946
+ }, i = async e => {
1944
1947
  const t = m(e);
1945
1948
  t.queueWriteToDisk || (t.queueDeleteFromDisk = !0);
1946
1949
  }, a = async t => {
@@ -1974,26 +1977,26 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1974
1977
  }, c = async (t, s, n) => {
1975
1978
  if ("string" != typeof t) throw new Error(`writeFile, invalid filePath: ${t}`);
1976
1979
  if ("string" != typeof s) throw new Error(`writeFile, invalid content: ${t}`);
1977
- const i = {
1980
+ const o = {
1978
1981
  ignored: !1,
1979
1982
  changedContent: !1,
1980
1983
  queuedWrite: !1
1981
1984
  };
1982
- if (!0 === shouldIgnore(t)) return i.ignored = !0, i;
1983
- const o = m(t);
1984
- if (o.exists = !0, o.isFile = !0, o.isDirectory = !1, o.queueDeleteFromDisk = !1,
1985
- "string" == typeof o.fileText ? i.changedContent = o.fileText.replace(/\r/g, "") !== s.replace(/\r/g, "") : i.changedContent = !0,
1986
- o.fileText = s, i.queuedWrite = !1, null != n && ("string" == typeof n.outputTargetType && r.set(t, n.outputTargetType),
1987
- !1 === n.useCache && (o.useCache = !1)), null != n && !0 === n.inMemoryOnly) o.queueWriteToDisk ? i.queuedWrite = !0 : o.queueWriteToDisk = !1,
1985
+ if (!0 === shouldIgnore(t)) return o.ignored = !0, o;
1986
+ const i = m(t);
1987
+ if (i.exists = !0, i.isFile = !0, i.isDirectory = !1, i.queueDeleteFromDisk = !1,
1988
+ "string" == typeof i.fileText ? o.changedContent = i.fileText.replace(/\r/g, "") !== s.replace(/\r/g, "") : o.changedContent = !0,
1989
+ i.fileText = s, o.queuedWrite = !1, null != n && ("string" == typeof n.outputTargetType && r.set(t, n.outputTargetType),
1990
+ !1 === n.useCache && (i.useCache = !1)), null != n && !0 === n.inMemoryOnly) i.queueWriteToDisk ? o.queuedWrite = !0 : i.queueWriteToDisk = !1,
1988
1991
  await u(t, !0); else if (null != n && !0 === n.immediateWrite) {
1989
- if (i.changedContent || !0 !== n.useCache) {
1992
+ if (o.changedContent || !0 !== n.useCache) {
1990
1993
  const r = await e.readFile(t);
1991
- "string" == typeof r && (i.changedContent = o.fileText.replace(/\r/g, "") !== r.replace(/\r/g, "")),
1992
- i.changedContent && (await u(t, !1), await e.writeFile(t, o.fileText));
1994
+ "string" == typeof r && (o.changedContent = i.fileText.replace(/\r/g, "") !== r.replace(/\r/g, "")),
1995
+ o.changedContent && (await u(t, !1), await e.writeFile(t, i.fileText));
1993
1996
  }
1994
- } else o.queueWriteToDisk || !0 !== i.changedContent || (o.queueWriteToDisk = !0,
1995
- i.queuedWrite = !0);
1996
- return i;
1997
+ } else i.queueWriteToDisk || !0 !== o.changedContent || (i.queueWriteToDisk = !0,
1998
+ o.queuedWrite = !0);
1999
+ return o;
1997
2000
  }, u = async (e, t) => {
1998
2001
  const r = [];
1999
2002
  for (;"string" == typeof (e = path$2.dirname(e)) && e.length > 0 && "/" !== e && !1 === e.endsWith(":/") && !1 === e.endsWith(":\\"); ) r.push(e);
@@ -2067,13 +2070,13 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
2067
2070
  Promise.all(l.map((async e => {
2068
2071
  if ("string" != typeof e) throw new Error("unable to writeFile without filePath");
2069
2072
  return h(e);
2070
- })))), i = await (t => {
2073
+ })))), o = await (t => {
2071
2074
  const r = Promise.all(t.map((async t => {
2072
2075
  const [r, s] = t;
2073
2076
  return await e.copyFile(r, s), [ r, s ];
2074
2077
  })));
2075
2078
  return r;
2076
- })(r.filesToCopy), o = await (async t => await Promise.all(t.map((async t => {
2079
+ })(r.filesToCopy), i = await (async t => await Promise.all(t.map((async t => {
2077
2080
  if ("string" != typeof t) throw new Error("unable to unlink without filePath");
2078
2081
  return await e.removeFile(t), t;
2079
2082
  }))))(r.filesToDelete), a = await (async t => {
@@ -2083,9 +2086,9 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
2083
2086
  })(r.dirsToDelete);
2084
2087
  var l;
2085
2088
  return r.filesToDelete.forEach(f), r.dirsToDelete.forEach(p), {
2086
- filesCopied: i,
2089
+ filesCopied: o,
2087
2090
  filesWritten: n,
2088
- filesDeleted: o,
2091
+ filesDeleted: i,
2089
2092
  dirsDeleted: a,
2090
2093
  dirsAdded: s
2091
2094
  };
@@ -2103,7 +2106,7 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
2103
2106
  r.sort(((e, t) => {
2104
2107
  const r = e.split("/").length, s = t.split("/").length;
2105
2108
  return r < s ? 1 : r > s ? -1 : 0;
2106
- })), await Promise.all(r.map(o)), e.forEach((e => {
2109
+ })), await Promise.all(r.map(i)), e.forEach((e => {
2107
2110
  const t = m(e);
2108
2111
  t.isFile = !1, t.isDirectory = !0, t.queueWriteToDisk = !0, t.queueDeleteFromDisk = !1;
2109
2112
  }));
@@ -2148,9 +2151,9 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
2148
2151
  const t = await s(e, {
2149
2152
  recursive: !0
2150
2153
  });
2151
- await Promise.all(t.map((e => e.relPath.endsWith(".gitkeep") ? null : o(e.absPath))));
2154
+ await Promise.all(t.map((e => e.relPath.endsWith(".gitkeep") ? null : i(e.absPath))));
2152
2155
  } catch (e) {}
2153
- })(e) : !0 === t.isFile && await o(e);
2156
+ })(e) : !0 === t.isFile && await i(e);
2154
2157
  },
2155
2158
  stat: a,
2156
2159
  statSync: l,
@@ -2191,10 +2194,10 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
2191
2194
  } 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) {
2192
2195
  const s = r, n = e.queueCopyFileToDest;
2193
2196
  t.filesToCopy.push([ s, n ]);
2194
- const i = normalizePath(path$2.dirname(n));
2195
- t.dirsToEnsure.includes(i) || t.dirsToEnsure.push(i);
2196
- const o = t.dirsToDelete.indexOf(i);
2197
- o > -1 && t.dirsToDelete.splice(o, 1);
2197
+ const o = normalizePath(path$2.dirname(n));
2198
+ t.dirsToEnsure.includes(o) || t.dirsToEnsure.push(o);
2199
+ const i = t.dirsToDelete.indexOf(o);
2200
+ i > -1 && t.dirsToDelete.splice(i, 1);
2198
2201
  const a = t.filesToDelete.indexOf(n);
2199
2202
  a > -1 && t.filesToDelete.splice(a, 1);
2200
2203
  }
@@ -2291,10 +2294,10 @@ class TestingLogger {
2291
2294
 
2292
2295
  (posix = {
2293
2296
  resolve: function e() {
2294
- var t, r, s, n = "", i = !1;
2295
- for (r = arguments.length - 1; r >= -1 && !i; r--) r >= 0 ? s = arguments[r] : (void 0 === t && (t = process.cwd()),
2296
- s = t), assertPath(s), 0 !== s.length && (n = s + "/" + n, i = 47 === s.charCodeAt(0));
2297
- return n = normalizeStringPosix(n, !i), i ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
2297
+ var t, r, s, n = "", o = !1;
2298
+ for (r = arguments.length - 1; r >= -1 && !o; r--) r >= 0 ? s = arguments[r] : (void 0 === t && (t = process.cwd()),
2299
+ s = t), assertPath(s), 0 !== s.length && (n = s + "/" + n, o = 47 === s.charCodeAt(0));
2300
+ return n = normalizeStringPosix(n, !o), o ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
2298
2301
  },
2299
2302
  normalize: function e(t) {
2300
2303
  var r, s;
@@ -2312,70 +2315,70 @@ class TestingLogger {
2312
2315
  return void 0 === t ? "." : posix.normalize(t);
2313
2316
  },
2314
2317
  relative: function e(t, r) {
2315
- var s, n, i, o, a, l, c, u, d, h;
2318
+ var s, n, o, i, a, l, c, u, d, h;
2316
2319
  if (assertPath(t), assertPath(r), t === r) return "";
2317
2320
  if ((t = posix.resolve(t)) === (r = posix.resolve(r))) return "";
2318
2321
  for (s = 1; s < t.length && 47 === t.charCodeAt(s); ++s) ;
2319
- for (i = (n = t.length) - s, o = 1; o < r.length && 47 === r.charCodeAt(o); ++o) ;
2320
- for (l = i < (a = r.length - o) ? i : a, c = -1, u = 0; u <= l; ++u) {
2322
+ for (o = (n = t.length) - s, i = 1; i < r.length && 47 === r.charCodeAt(i); ++i) ;
2323
+ for (l = o < (a = r.length - i) ? o : a, c = -1, u = 0; u <= l; ++u) {
2321
2324
  if (u === l) {
2322
2325
  if (a > l) {
2323
- if (47 === r.charCodeAt(o + u)) return r.slice(o + u + 1);
2324
- if (0 === u) return r.slice(o + u);
2325
- } else i > l && (47 === t.charCodeAt(s + u) ? c = u : 0 === u && (c = 0));
2326
+ if (47 === r.charCodeAt(i + u)) return r.slice(i + u + 1);
2327
+ if (0 === u) return r.slice(i + u);
2328
+ } else o > l && (47 === t.charCodeAt(s + u) ? c = u : 0 === u && (c = 0));
2326
2329
  break;
2327
2330
  }
2328
- if ((d = t.charCodeAt(s + u)) !== r.charCodeAt(o + u)) break;
2331
+ if ((d = t.charCodeAt(s + u)) !== r.charCodeAt(i + u)) break;
2329
2332
  47 === d && (c = u);
2330
2333
  }
2331
2334
  for (h = "", u = s + c + 1; u <= n; ++u) u !== n && 47 !== t.charCodeAt(u) || (0 === h.length ? h += ".." : h += "/..");
2332
- return h.length > 0 ? h + r.slice(o + c) : (o += c, 47 === r.charCodeAt(o) && ++o,
2333
- r.slice(o));
2335
+ return h.length > 0 ? h + r.slice(i + c) : (i += c, 47 === r.charCodeAt(i) && ++i,
2336
+ r.slice(i));
2334
2337
  },
2335
2338
  _makeLong: function e(t) {
2336
2339
  return t;
2337
2340
  },
2338
2341
  dirname: function e(t) {
2339
- var r, s, n, i;
2342
+ var r, s, n, o;
2340
2343
  if (assertPath(t), 0 === t.length) return ".";
2341
- for (r = 47 === t.charCodeAt(0), s = -1, n = !0, i = t.length - 1; i >= 1; --i) if (47 === t.charCodeAt(i)) {
2344
+ for (r = 47 === t.charCodeAt(0), s = -1, n = !0, o = t.length - 1; o >= 1; --o) if (47 === t.charCodeAt(o)) {
2342
2345
  if (!n) {
2343
- s = i;
2346
+ s = o;
2344
2347
  break;
2345
2348
  }
2346
2349
  } else n = !1;
2347
2350
  return -1 === s ? r ? "/" : "." : r && 1 === s ? "//" : t.slice(0, s);
2348
2351
  },
2349
2352
  basename: function e(t, r) {
2350
- var s, n, i, o, a, l, c;
2353
+ var s, n, o, i, a, l, c;
2351
2354
  if (void 0 !== r && "string" != typeof r) throw new TypeError('"ext" argument must be a string');
2352
- if (assertPath(t), s = 0, n = -1, i = !0, void 0 !== r && r.length > 0 && r.length <= t.length) {
2355
+ if (assertPath(t), s = 0, n = -1, o = !0, void 0 !== r && r.length > 0 && r.length <= t.length) {
2353
2356
  if (r.length === t.length && r === t) return "";
2354
- for (a = r.length - 1, l = -1, o = t.length - 1; o >= 0; --o) if (47 === (c = t.charCodeAt(o))) {
2355
- if (!i) {
2356
- s = o + 1;
2357
+ for (a = r.length - 1, l = -1, i = t.length - 1; i >= 0; --i) if (47 === (c = t.charCodeAt(i))) {
2358
+ if (!o) {
2359
+ s = i + 1;
2357
2360
  break;
2358
2361
  }
2359
- } else -1 === l && (i = !1, l = o + 1), a >= 0 && (c === r.charCodeAt(a) ? -1 == --a && (n = o) : (a = -1,
2362
+ } else -1 === l && (o = !1, l = i + 1), a >= 0 && (c === r.charCodeAt(a) ? -1 == --a && (n = i) : (a = -1,
2360
2363
  n = l));
2361
2364
  return s === n ? n = l : -1 === n && (n = t.length), t.slice(s, n);
2362
2365
  }
2363
- for (o = t.length - 1; o >= 0; --o) if (47 === t.charCodeAt(o)) {
2364
- if (!i) {
2365
- s = o + 1;
2366
+ for (i = t.length - 1; i >= 0; --i) if (47 === t.charCodeAt(i)) {
2367
+ if (!o) {
2368
+ s = i + 1;
2366
2369
  break;
2367
2370
  }
2368
- } else -1 === n && (i = !1, n = o + 1);
2371
+ } else -1 === n && (o = !1, n = i + 1);
2369
2372
  return -1 === n ? "" : t.slice(s, n);
2370
2373
  },
2371
2374
  extname: function e(t) {
2372
- var r, s, n, i, o, a, l;
2373
- 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,
2374
- n = a + 1), 46 === l ? -1 === r ? r = a : 1 !== o && (o = 1) : -1 !== r && (o = -1); else if (!i) {
2375
+ var r, s, n, o, i, a, l;
2376
+ 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,
2377
+ n = a + 1), 46 === l ? -1 === r ? r = a : 1 !== i && (i = 1) : -1 !== r && (i = -1); else if (!o) {
2375
2378
  s = a + 1;
2376
2379
  break;
2377
2380
  }
2378
- return -1 === r || -1 === n || 0 === o || 1 === o && r === n - 1 && r === s + 1 ? "" : t.slice(r, n);
2381
+ return -1 === r || -1 === n || 0 === i || 1 === i && r === n - 1 && r === s + 1 ? "" : t.slice(r, n);
2379
2382
  },
2380
2383
  format: function e(t) {
2381
2384
  if (null === t || "object" != typeof t) throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t);
@@ -2385,7 +2388,7 @@ class TestingLogger {
2385
2388
  }("/", t);
2386
2389
  },
2387
2390
  parse: function e(t) {
2388
- var r, s, n, i, o, a, l, c, u, d;
2391
+ var r, s, n, o, i, a, l, c, u, d;
2389
2392
  if (assertPath(t), r = {
2390
2393
  root: "",
2391
2394
  dir: "",
@@ -2393,14 +2396,14 @@ class TestingLogger {
2393
2396
  ext: "",
2394
2397
  name: ""
2395
2398
  }, 0 === t.length) return r;
2396
- for ((n = 47 === (s = t.charCodeAt(0))) ? (r.root = "/", i = 1) : i = 0, o = -1,
2397
- 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,
2398
- l = u + 1), 46 === s ? -1 === o ? o = u : 1 !== d && (d = 1) : -1 !== o && (d = -1); else if (!c) {
2399
+ for ((n = 47 === (s = t.charCodeAt(0))) ? (r.root = "/", o = 1) : o = 0, i = -1,
2400
+ 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,
2401
+ l = u + 1), 46 === s ? -1 === i ? i = u : 1 !== d && (d = 1) : -1 !== i && (d = -1); else if (!c) {
2399
2402
  a = u + 1;
2400
2403
  break;
2401
2404
  }
2402
- 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),
2403
- r.base = t.slice(1, l)) : (r.name = t.slice(a, o), r.base = t.slice(a, l)), r.ext = t.slice(o, l)),
2405
+ 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),
2406
+ r.base = t.slice(1, l)) : (r.name = t.slice(a, i), r.base = t.slice(a, l)), r.ext = t.slice(i, l)),
2404
2407
  a > 0 ? r.dir = t.slice(0, a - 1) : n && (r.dir = "/"), r;
2405
2408
  },
2406
2409
  sep: "/",
@@ -2425,7 +2428,7 @@ caller = function() {
2425
2428
  return t;
2426
2429
  }, e = (new Error).stack, Error.prepareStackTrace = t, e[2].getFileName();
2427
2430
  }, pathParse = createCommonjsModule((function(e) {
2428
- var t, r, s = "win32" === process.platform, n = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/, i = {
2431
+ var t, r, s = "win32" === process.platform, n = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/, o = {
2429
2432
  parse: function(e) {
2430
2433
  if ("string" != typeof e) throw new TypeError("Parameter 'pathString' must be a string, not " + typeof e);
2431
2434
  var t = function r(e) {
@@ -2454,26 +2457,26 @@ caller = function() {
2454
2457
  ext: r[4],
2455
2458
  name: r[3]
2456
2459
  };
2457
- }, e.exports = s ? i.parse : r.parse, e.exports.posix = r.parse, e.exports.win32 = i.parse;
2460
+ }, e.exports = s ? o.parse : r.parse, e.exports.posix = r.parse, e.exports.win32 = o.parse;
2458
2461
  })), parse = path__default.default.parse || pathParse, getNodeModulesDirs = function e(t, r) {
2459
- var s, n, i = "/";
2460
- for (/^([A-Za-z]:)/.test(t) ? i = "" : /^\\\\/.test(t) && (i = "\\\\"), s = [ t ],
2462
+ var s, n, o = "/";
2463
+ for (/^([A-Za-z]:)/.test(t) ? o = "" : /^\\\\/.test(t) && (o = "\\\\"), s = [ t ],
2461
2464
  n = parse(t); n.dir !== s[s.length - 1]; ) s.push(n.dir), n = parse(n.dir);
2462
2465
  return s.reduce((function(e, t) {
2463
2466
  return e.concat(r.map((function(e) {
2464
- return path__default.default.resolve(i, t, e);
2467
+ return path__default.default.resolve(o, t, e);
2465
2468
  })));
2466
2469
  }), []);
2467
2470
  }, nodeModulesPaths = function e(t, r, s) {
2468
- var n, i = r && r.moduleDirectory ? [].concat(r.moduleDirectory) : [ "node_modules" ];
2471
+ var n, o = r && r.moduleDirectory ? [].concat(r.moduleDirectory) : [ "node_modules" ];
2469
2472
  return r && "function" == typeof r.paths ? r.paths(s, t, (function() {
2470
- return getNodeModulesDirs(t, i);
2471
- }), r) : (n = getNodeModulesDirs(t, i), r && r.paths ? n.concat(r.paths) : n);
2473
+ return getNodeModulesDirs(t, o);
2474
+ }), r) : (n = getNodeModulesDirs(t, o), r && r.paths ? n.concat(r.paths) : n);
2472
2475
  }, normalizeOptions = function(e, t) {
2473
2476
  return t || {};
2474
2477
  }, ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", slice = Array.prototype.slice,
2475
2478
  toStr = Object.prototype.toString, funcType = "[object Function]", implementation = function e(t) {
2476
- var r, s, n, i, o, a, l, c = this;
2479
+ var r, s, n, o, i, a, l, c = this;
2477
2480
  if ("function" != typeof c || toStr.call(c) !== funcType) throw new TypeError(ERROR_MESSAGE + c);
2478
2481
  for (r = slice.call(arguments, 1), n = function() {
2479
2482
  if (this instanceof s) {
@@ -2481,8 +2484,8 @@ toStr = Object.prototype.toString, funcType = "[object Function]", implementatio
2481
2484
  return Object(e) === e ? e : this;
2482
2485
  }
2483
2486
  return c.apply(t, r.concat(slice.call(arguments)));
2484
- }, i = Math.max(0, c.length - r.length), o = [], a = 0; a < i; a++) o.push("$" + a);
2485
- return s = Function("binder", "return function (" + o.join(",") + "){ return binder.apply(this,arguments); }")(n),
2487
+ }, o = Math.max(0, c.length - r.length), i = [], a = 0; a < o; a++) i.push("$" + a);
2488
+ return s = Function("binder", "return function (" + i.join(",") + "){ return binder.apply(this,arguments); }")(n),
2486
2489
  c.prototype && ((l = function e() {}).prototype = c.prototype, s.prototype = new l,
2487
2490
  l.prototype = null), s;
2488
2491
  }, functionBind = Function.prototype.bind || implementation, src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
@@ -2607,13 +2610,13 @@ defaultIsFile$1 = function e(t, r) {
2607
2610
  }
2608
2611
  }));
2609
2612
  }, getPackageCandidates$1 = function e(t, r, s) {
2610
- var n, i = nodeModulesPaths(r, s, t);
2611
- for (n = 0; n < i.length; n++) i[n] = path__default.default.join(i[n], t);
2612
- return i;
2613
+ var n, o = nodeModulesPaths(r, s, t);
2614
+ for (n = 0; n < o.length; n++) o[n] = path__default.default.join(o[n], t);
2615
+ return o;
2613
2616
  }, async = function e(t, r, s) {
2614
2617
  function n(e) {
2615
2618
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) T = path__default.default.resolve(e, t),
2616
- "." !== t && ".." !== t && "/" !== t.slice(-1) || (T += "/"), /\/$/.test(t) && T === e ? l(T, C.package, i) : o(T, C.package, i); else {
2619
+ "." !== t && ".." !== t && "/" !== t.slice(-1) || (T += "/"), /\/$/.test(t) && T === e ? l(T, C.package, o) : i(T, C.package, o); else {
2617
2620
  if (E && isCoreModule(t)) return S(null, t);
2618
2621
  !function r(e, t, s) {
2619
2622
  var n = function() {
@@ -2631,7 +2634,7 @@ defaultIsFile$1 = function e(t, r) {
2631
2634
  }));
2632
2635
  }
2633
2636
  }
2634
- function i(e, r, s) {
2637
+ function o(e, r, s) {
2635
2638
  e ? S(e) : r ? S(null, r, s) : l(T, (function(e, r, s) {
2636
2639
  if (e) S(e); else if (r) maybeRealpath(f, r, C, (function(e, t) {
2637
2640
  e ? S(e) : S(null, t, s);
@@ -2641,20 +2644,20 @@ defaultIsFile$1 = function e(t, r) {
2641
2644
  }
2642
2645
  }));
2643
2646
  }
2644
- function o(e, t, r) {
2647
+ function i(e, t, r) {
2645
2648
  var s = t, n = r;
2646
2649
  "function" == typeof s && (n = s, s = void 0), function e(t, r, s) {
2647
- function i(s, i, a) {
2650
+ function o(s, o, a) {
2648
2651
  var u, h, p;
2649
- 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),
2650
- p = C.pathFilter(c, r, h)) ? e([ "" ].concat(w.slice()), path__default.default.resolve(a, p), c) : void d(l, o);
2652
+ 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),
2653
+ p = C.pathFilter(c, r, h)) ? e([ "" ].concat(w.slice()), path__default.default.resolve(a, p), c) : void d(l, i);
2651
2654
  }
2652
- function o(s, i) {
2653
- return s ? n(s) : i ? n(null, l, c) : void e(t.slice(1), r, c);
2655
+ function i(s, o) {
2656
+ return s ? n(s) : o ? n(null, l, c) : void e(t.slice(1), r, c);
2654
2657
  }
2655
2658
  var l, c;
2656
2659
  if (0 === t.length) return n(null, void 0, s);
2657
- l = r + t[0], (c = s) ? i(null, c) : a(path__default.default.dirname(l), i);
2660
+ l = r + t[0], (c = s) ? o(null, c) : a(path__default.default.dirname(l), o);
2658
2661
  }([ "" ].concat(w), e, s);
2659
2662
  }
2660
2663
  function a(e, t) {
@@ -2665,8 +2668,8 @@ defaultIsFile$1 = function e(t, r) {
2665
2668
  if (!s) return a(path__default.default.dirname(e), t);
2666
2669
  m(p, n, (function(r, s) {
2667
2670
  r && t(r);
2668
- var i = s;
2669
- i && C.packageFilter && (i = C.packageFilter(i, n)), t(null, i, e);
2671
+ var o = s;
2672
+ o && C.packageFilter && (o = C.packageFilter(o, n)), t(null, o, e);
2670
2673
  }));
2671
2674
  }));
2672
2675
  }));
@@ -2675,31 +2678,31 @@ defaultIsFile$1 = function e(t, r) {
2675
2678
  var s = r, n = t;
2676
2679
  "function" == typeof n && (s = n, n = C.package), maybeRealpath(f, e, C, (function(t, r) {
2677
2680
  if (t) return s(t);
2678
- var i = path__default.default.join(r, "package.json");
2679
- d(i, (function(t, r) {
2680
- return t ? s(t) : r ? void m(p, i, (function(t, r) {
2681
+ var o = path__default.default.join(r, "package.json");
2682
+ d(o, (function(t, r) {
2683
+ return t ? s(t) : r ? void m(p, o, (function(t, r) {
2681
2684
  var n, a;
2682
- 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",
2683
- s(a)) : ("." !== n.main && "./" !== n.main || (n.main = "index"), void o(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2685
+ 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",
2686
+ s(a)) : ("." !== n.main && "./" !== n.main || (n.main = "index"), void i(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2684
2687
  return t ? s(t) : r ? s(null, r, n) : n ? void l(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2685
- return t ? s(t) : r ? s(null, r, n) : void o(path__default.default.join(e, "index"), n, s);
2686
- })) : o(path__default.default.join(e, "index"), n, s);
2687
- }))) : void o(path__default.default.join(e, "/index"), n, s));
2688
- })) : o(path__default.default.join(e, "index"), n, s);
2688
+ return t ? s(t) : r ? s(null, r, n) : void i(path__default.default.join(e, "index"), n, s);
2689
+ })) : i(path__default.default.join(e, "index"), n, s);
2690
+ }))) : void i(path__default.default.join(e, "/index"), n, s));
2691
+ })) : i(path__default.default.join(e, "index"), n, s);
2689
2692
  }));
2690
2693
  }));
2691
2694
  }
2692
2695
  function c(e, t) {
2693
- function r(t, r, i) {
2694
- return t ? e(t) : r ? e(null, r, i) : void l(n, C.package, s);
2696
+ function r(t, r, o) {
2697
+ return t ? e(t) : r ? e(null, r, o) : void l(n, C.package, s);
2695
2698
  }
2696
2699
  function s(r, s, n) {
2697
2700
  return r ? e(r) : s ? e(null, s, n) : void c(e, t.slice(1));
2698
2701
  }
2699
2702
  if (0 === t.length) return e(null, void 0);
2700
2703
  var n = t[0];
2701
- h(path__default.default.dirname(n), (function i(s, a) {
2702
- return s ? e(s) : a ? void o(n, C.package, r) : c(e, t.slice(1));
2704
+ h(path__default.default.dirname(n), (function o(s, a) {
2705
+ return s ? e(s) : a ? void i(n, C.package, r) : c(e, t.slice(1));
2703
2706
  }));
2704
2707
  }
2705
2708
  var u, d, h, p, f, m, g, y, w, E, _, v, b, T, S = s, C = r;
@@ -2839,64 +2842,64 @@ defaultIsFile = function e(t) {
2839
2842
  return JSON.parse(s);
2840
2843
  } catch (e) {}
2841
2844
  }, getPackageCandidates = function e(t, r, s) {
2842
- var n, i = nodeModulesPaths(r, s, t);
2843
- for (n = 0; n < i.length; n++) i[n] = path__default.default.join(i[n], t);
2844
- return i;
2845
+ var n, o = nodeModulesPaths(r, s, t);
2846
+ for (n = 0; n < o.length; n++) o[n] = path__default.default.join(o[n], t);
2847
+ return o;
2845
2848
  }, sync = function e(t, r) {
2846
2849
  function s(e) {
2847
- var t, r, s, i, l = n(path__default.default.dirname(e));
2848
- if (l && l.dir && l.pkg && o.pathFilter && (t = path__default.default.relative(l.dir, e),
2849
- (r = o.pathFilter(l.pkg, e, t)) && (e = path__default.default.resolve(l.dir, r))),
2850
+ var t, r, s, o, l = n(path__default.default.dirname(e));
2851
+ if (l && l.dir && l.pkg && i.pathFilter && (t = path__default.default.relative(l.dir, e),
2852
+ (r = i.pathFilter(l.pkg, e, t)) && (e = path__default.default.resolve(l.dir, r))),
2850
2853
  a(e)) return e;
2851
- for (s = 0; s < p.length; s++) if (i = e + p[s], a(i)) return i;
2854
+ for (s = 0; s < p.length; s++) if (o = e + p[s], a(o)) return o;
2852
2855
  }
2853
2856
  function n(e) {
2854
2857
  var t, r;
2855
- 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"),
2856
- a(t) ? ((r = d(l, t)) && o.packageFilter && (r = o.packageFilter(r, e)), {
2858
+ 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"),
2859
+ a(t) ? ((r = d(l, t)) && i.packageFilter && (r = i.packageFilter(r, e)), {
2857
2860
  pkg: r,
2858
2861
  dir: e
2859
2862
  }) : n(path__default.default.dirname(e));
2860
2863
  }
2861
- function i(e) {
2862
- var t, r, n, c, h = path__default.default.join(maybeRealpathSync(u, e, o), "/package.json");
2864
+ function o(e) {
2865
+ var t, r, n, c, h = path__default.default.join(maybeRealpathSync(u, e, i), "/package.json");
2863
2866
  if (a(h)) {
2864
2867
  try {
2865
2868
  t = d(l, h);
2866
2869
  } catch (e) {}
2867
- if (t && o.packageFilter && (t = o.packageFilter(t, e)), t && t.main) {
2870
+ if (t && i.packageFilter && (t = i.packageFilter(t, e)), t && t.main) {
2868
2871
  if ("string" != typeof t.main) throw (r = new TypeError("package “" + t.name + "” `main` must be a string")).code = "INVALID_PACKAGE_MAIN",
2869
2872
  r;
2870
2873
  "." !== t.main && "./" !== t.main || (t.main = "index");
2871
2874
  try {
2872
2875
  if (n = s(path__default.default.resolve(e, t.main))) return n;
2873
- if (c = i(path__default.default.resolve(e, t.main))) return c;
2876
+ if (c = o(path__default.default.resolve(e, t.main))) return c;
2874
2877
  } catch (e) {}
2875
2878
  }
2876
2879
  }
2877
2880
  return s(path__default.default.join(e, "/index"));
2878
2881
  }
2879
- var o, a, l, c, u, d, h, p, f, m, g, y, w, E, _, v;
2882
+ var i, a, l, c, u, d, h, p, f, m, g, y, w, E, _, v;
2880
2883
  if ("string" != typeof t) throw new TypeError("Path must be a string.");
2881
- if (o = normalizeOptions(0, r), a = o.isFile || defaultIsFile, l = o.readFileSync || fs__default.default.readFileSync,
2882
- c = o.isDirectory || defaultIsDir, u = o.realpathSync || defaultRealpathSync, d = o.readPackageSync || defaultReadPackageSync,
2883
- o.readFileSync && o.readPackageSync) throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
2884
- if (h = o.packageIterator, p = o.extensions || [ ".js" ], f = !1 !== o.includeCoreModules,
2885
- m = o.basedir || path__default.default.dirname(caller()), g = o.filename || m, o.paths = o.paths || [],
2886
- y = maybeRealpathSync(u, path__default.default.resolve(m), o), /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) {
2884
+ if (i = normalizeOptions(0, r), a = i.isFile || defaultIsFile, l = i.readFileSync || fs__default.default.readFileSync,
2885
+ c = i.isDirectory || defaultIsDir, u = i.realpathSync || defaultRealpathSync, d = i.readPackageSync || defaultReadPackageSync,
2886
+ i.readFileSync && i.readPackageSync) throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
2887
+ if (h = i.packageIterator, p = i.extensions || [ ".js" ], f = !1 !== i.includeCoreModules,
2888
+ m = i.basedir || path__default.default.dirname(caller()), g = i.filename || m, i.paths = i.paths || [],
2889
+ y = maybeRealpathSync(u, path__default.default.resolve(m), i), /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) {
2887
2890
  if (w = path__default.default.resolve(y, t), "." !== t && ".." !== t && "/" !== t.slice(-1) || (w += "/"),
2888
- E = s(w) || i(w)) return maybeRealpathSync(u, E, o);
2891
+ E = s(w) || o(w)) return maybeRealpathSync(u, E, i);
2889
2892
  } else {
2890
2893
  if (f && isCoreModule(t)) return t;
2891
2894
  if (_ = function b(e, t) {
2892
2895
  var r, n, a, l, u = function() {
2893
- return getPackageCandidates(e, t, o);
2894
- }, d = h ? h(e, t, u, o) : u();
2896
+ return getPackageCandidates(e, t, i);
2897
+ }, d = h ? h(e, t, u, i) : u();
2895
2898
  for (r = 0; r < d.length; r++) if (n = d[r], c(path__default.default.dirname(n))) {
2896
2899
  if (a = s(n)) return a;
2897
- if (l = i(n)) return l;
2900
+ if (l = o(n)) return l;
2898
2901
  }
2899
- }(t, y), _) return maybeRealpathSync(u, _, o);
2902
+ }(t, y), _) return maybeRealpathSync(u, _, i);
2900
2903
  }
2901
2904
  throw (v = new Error("Cannot find module '" + t + "' from '" + g + "'")).code = "MODULE_NOT_FOUND",
2902
2905
  v;
@@ -2923,20 +2926,20 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2923
2926
  let s = (r = normalizePath(r)).split("/").filter((e => e.length));
2924
2927
  const n = s.lastIndexOf("node_modules");
2925
2928
  n > -1 && n < s.length - 1 && (s = s.slice(n + 1));
2926
- let i = s.shift();
2927
- i.startsWith("@") && (i += "/" + s.shift());
2928
- const o = s.join("/");
2929
- return "@stencil/core" === i ? ((e, t) => {
2929
+ let o = s.shift();
2930
+ o.startsWith("@") && (o += "/" + s.shift());
2931
+ const i = s.join("/");
2932
+ return "@stencil/core" === o ? ((e, t) => {
2930
2933
  let r = (t = normalizePath(t)).split("/");
2931
2934
  const s = r.lastIndexOf("node_modules");
2932
2935
  s > -1 && s < r.length - 1 && (r = r.slice(s + 1), r = r[0].startsWith("@") ? r.slice(2) : r.slice(1),
2933
2936
  t = r.join("/"));
2934
2937
  const n = new URL("../", e).href;
2935
2938
  return new URL("./" + t, n).href;
2936
- })(e.getCompilerExecutingPath(), o) : e.getRemoteModuleUrl({
2937
- moduleId: i,
2938
- version: t.get(i),
2939
- path: o
2939
+ })(e.getCompilerExecutingPath(), i) : e.getRemoteModuleUrl({
2940
+ moduleId: o,
2941
+ version: t.get(o),
2942
+ path: i
2940
2943
  });
2941
2944
  }, 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) => {
2942
2945
  if (!((e => {
@@ -2945,11 +2948,11 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2945
2948
  const r = e.split("/"), s = r[r.length - 2], n = r[r.length - 1];
2946
2949
  return !("node_modules" !== s || !isCommonDirModuleFile(n));
2947
2950
  })(n) || known404Urls.has(s) || (e => knownUrlSkips.some((t => e.endsWith(t))))(s))) try {
2948
- const i = await ((e, t, r) => e && isFunction(e.fetch) ? e.fetch(t, r) : fetch(t, r))(e, s);
2949
- if (i) {
2950
- if (i.ok) {
2951
- const o = await i.clone().text();
2952
- return await (async (e, t, r, s, n, i) => {
2951
+ const o = await ((e, t, r) => e && isFunction(e.fetch) ? e.fetch(t, r) : fetch(t, r))(e, s);
2952
+ if (o) {
2953
+ if (o.ok) {
2954
+ const i = await o.clone().text();
2955
+ return await (async (e, t, r, s, n, o) => {
2953
2956
  r.endsWith("package.json") && ((e, t) => {
2954
2957
  try {
2955
2958
  const r = JSON.parse(t);
@@ -2957,14 +2960,14 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2957
2960
  e.set(t, r);
2958
2961
  })(e, r.name, r.version);
2959
2962
  } catch (e) {}
2960
- })(i, n);
2961
- let o = path$2.dirname(s);
2962
- for (;"/" !== o && "" !== o; ) t ? (t.clearFileCache(o), await t.sys.createDir(o)) : await e.createDir(o),
2963
- o = path$2.dirname(o);
2963
+ })(o, n);
2964
+ let i = path$2.dirname(s);
2965
+ for (;"/" !== i && "" !== i; ) t ? (t.clearFileCache(i), await t.sys.createDir(i)) : await e.createDir(i),
2966
+ i = path$2.dirname(i);
2964
2967
  t ? (t.clearFileCache(s), await t.sys.writeFile(s, n)) : await e.writeFile(s, n);
2965
- })(e, t, s, n, o, r), o;
2968
+ })(e, t, s, n, i, r), i;
2966
2969
  }
2967
- 404 === i.status && known404Urls.add(s);
2970
+ 404 === o.status && known404Urls.add(s);
2968
2971
  }
2969
2972
  } catch (e) {
2970
2973
  console.error(e);
@@ -3001,8 +3004,8 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3001
3004
  let r = BLUE, s = "Build", n = "";
3002
3005
  "error" === e.level ? (r = RED, s = "Error") : "warn" === e.level && (r = YELLOW,
3003
3006
  s = "Warning"), e.header && (s = e.header);
3004
- const i = e.relFilePath || e.absFilePath;
3005
- if (i && (n += i, "number" == typeof e.lineNumber && e.lineNumber > 0 && (n += ", line " + e.lineNumber,
3007
+ const o = e.relFilePath || e.absFilePath;
3008
+ if (o && (n += o, "number" == typeof e.lineNumber && e.lineNumber > 0 && (n += ", line " + e.lineNumber,
3006
3009
  "number" == typeof e.columnNumber && e.columnNumber > 0 && (n += ", column " + e.columnNumber)),
3007
3010
  n += "\n"), n += e.messageText, e.lines && e.lines.length > 0 && (e.lines.forEach((e => {
3008
3011
  n += "\n" + e.lineNumber + ": " + e.text;
@@ -3013,7 +3016,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3013
3016
  })(t, e)));
3014
3017
  }
3015
3018
  };
3016
- })(), 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 => {
3019
+ })(), 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 => {
3017
3020
  if ("/" === e || "" === e) return "/";
3018
3021
  const t = path$2.dirname(e), r = path$2.basename(e);
3019
3022
  return t.endsWith("/") ? normalizePath(`${t}${r}`) : normalizePath(`${t}/${r}`);
@@ -3033,8 +3036,8 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3033
3036
  }, h = (e, t, r) => {
3034
3037
  const n = path$2.dirname(e);
3035
3038
  t && t.recursive && !(e => "/" === e || windowsPathRegex.test(e))(n) && h(n, t, r);
3036
- const i = s.get(e);
3037
- i ? (i.isDirectory = !0, i.isFile = !1) : (s.set(e, {
3039
+ const o = s.get(e);
3040
+ o ? (o.isDirectory = !0, o.isFile = !1) : (s.set(e, {
3038
3041
  basename: path$2.basename(e),
3039
3042
  dirname: n,
3040
3043
  isDirectory: !0,
@@ -3058,10 +3061,10 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3058
3061
  }), g = (e, t, r) => {
3059
3062
  const n = E(e);
3060
3063
  if (!n.error && !r.error) if (n.isFile) {
3061
- const n = path$2.dirname(t), i = d(n, {
3064
+ const n = path$2.dirname(t), o = d(n, {
3062
3065
  recursive: !0
3063
- }), o = s.get(e).data, a = b(t, o);
3064
- r.newDirs.push(...i.newDirs), r.renamed.push({
3066
+ }), i = s.get(e).data, a = b(t, i);
3067
+ r.newDirs.push(...o.newDirs), r.renamed.push({
3065
3068
  oldPath: e,
3066
3069
  newPath: t,
3067
3070
  isDirectory: !1,
@@ -3159,11 +3162,11 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3159
3162
  d("/");
3160
3163
  const C = {
3161
3164
  name: "in-memory",
3162
- version: "3.0.1-dev.1677273625.4fe628d",
3165
+ version: "3.1.0",
3163
3166
  events: a,
3164
3167
  access: async e => u(e),
3165
3168
  accessSync: u,
3166
- addDestroy: i,
3169
+ addDestroy: o,
3167
3170
  copyFile: async (e, t) => (b(t, f(e)), !0),
3168
3171
  createDir: async (e, t) => d(e, t),
3169
3172
  createDirSync: d,
@@ -3207,7 +3210,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3207
3210
  readFileSync: f,
3208
3211
  realpath: async e => m(e),
3209
3212
  realpathSync: m,
3210
- removeDestroy: o,
3213
+ removeDestroy: i,
3211
3214
  rename: async (e, t) => {
3212
3215
  const r = {
3213
3216
  oldPath: e = normalizePath(e),
@@ -3251,7 +3254,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3251
3254
  e > -1 && r.watcherCallbacks.splice(e, 1);
3252
3255
  }
3253
3256
  };
3254
- return i(n), r ? (r.isDirectory = !0, r.isFile = !1, r.watcherCallbacks = r.watcherCallbacks || [],
3257
+ return o(n), r ? (r.isDirectory = !0, r.isFile = !1, r.watcherCallbacks = r.watcherCallbacks || [],
3255
3258
  r.watcherCallbacks.push(t)) : s.set(e, {
3256
3259
  basename: path$2.basename(e),
3257
3260
  dirname: path$2.dirname(e),
@@ -3261,7 +3264,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3261
3264
  data: void 0
3262
3265
  }), {
3263
3266
  close() {
3264
- o(n), n();
3267
+ i(n), n();
3265
3268
  }
3266
3269
  };
3267
3270
  },
@@ -3274,7 +3277,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3274
3277
  e > -1 && r.watcherCallbacks.splice(e, 1);
3275
3278
  }
3276
3279
  };
3277
- return i(n), r ? (r.isDirectory = !1, r.isFile = !0, r.watcherCallbacks = r.watcherCallbacks || [],
3280
+ return o(n), r ? (r.isDirectory = !1, r.isFile = !0, r.watcherCallbacks = r.watcherCallbacks || [],
3278
3281
  r.watcherCallbacks.push(t)) : s.set(e, {
3279
3282
  basename: path$2.basename(e),
3280
3283
  dirname: path$2.dirname(e),
@@ -3284,7 +3287,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3284
3287
  data: void 0
3285
3288
  }), {
3286
3289
  close() {
3287
- o(n), n();
3290
+ i(n), n();
3288
3291
  }
3289
3292
  };
3290
3293
  },
@@ -3297,18 +3300,18 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3297
3300
  return "number" == typeof t && (s = s.slice(0, t)), s;
3298
3301
  },
3299
3302
  createWorkerController: HAS_WEB_WORKER ? e => ((e, t) => {
3300
- let r, s = 0, n = !1, i = !1, o = 0;
3303
+ let r, s = 0, n = !1, o = !1, i = 0;
3301
3304
  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 = () => {
3302
3305
  let t = null;
3303
- const s = e.getCompilerExecutingPath(), i = {
3304
- name: "stencil.worker." + o++
3306
+ const s = e.getCompilerExecutingPath(), o = {
3307
+ name: "stencil.worker." + i++
3305
3308
  };
3306
3309
  try {
3307
- t = new Worker(s, i);
3310
+ t = new Worker(s, o);
3308
3311
  } catch (e) {
3309
3312
  null == r && (r = new Blob([ `importScripts('${s}');` ], {
3310
3313
  type: "application/javascript"
3311
- })), t = new Worker(URL.createObjectURL(r), i);
3314
+ })), t = new Worker(URL.createObjectURL(r), o);
3312
3315
  }
3313
3316
  const l = {
3314
3317
  worker: t,
@@ -3337,7 +3340,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3337
3340
  } else t = p(), c.push(t);
3338
3341
  t.activeTasks++, t.sendQueue.push(e);
3339
3342
  }, g = () => {
3340
- i = !1, l.forEach(m), l.length = 0, c.forEach(f);
3343
+ o = !1, l.forEach(m), l.length = 0, c.forEach(f);
3341
3344
  }, y = (...e) => new Promise(((t, r) => {
3342
3345
  if (n) r("task canceled"); else {
3343
3346
  const n = {
@@ -3347,7 +3350,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3347
3350
  l.push(n), a.set(n.stencilId, {
3348
3351
  resolve: t,
3349
3352
  reject: r
3350
- }), i || (i = !0, d.then(g));
3353
+ }), o || (o = !0, d.then(g));
3351
3354
  }
3352
3355
  }));
3353
3356
  return {
@@ -3378,11 +3381,11 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3378
3381
  return C.resolveModuleId = e => ((e, t, r) => {
3379
3382
  const s = ((e, t, r) => ({
3380
3383
  async isFile(s, n) {
3381
- const i = normalizeFsPath(s);
3382
- if ((await t.stat(i)).isFile) n(null, !0); else {
3383
- if (shouldFetchModule(i) && r.some((e => i.endsWith(e)))) {
3384
- const r = getNodeModuleFetchUrl(e, packageVersions, i);
3385
- return void n(null, "string" == typeof await fetchModuleAsync(e, t, packageVersions, r, i));
3384
+ const o = normalizeFsPath(s);
3385
+ if ((await t.stat(o)).isFile) n(null, !0); else {
3386
+ if (shouldFetchModule(o) && r.some((e => o.endsWith(e)))) {
3387
+ const r = getNodeModuleFetchUrl(e, packageVersions, o);
3388
+ return void n(null, "string" == typeof await fetchModuleAsync(e, t, packageVersions, r, o));
3386
3389
  }
3387
3390
  n(null, !1);
3388
3391
  }
@@ -3395,7 +3398,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3395
3398
  void s(null, !0);
3396
3399
  if (isCommonDirModuleFile(n)) return void s(null, !1);
3397
3400
  for (const r of COMMON_DIR_FILENAMES) {
3398
- const i = getCommonDirUrl(e, packageVersions, n, r), o = getCommonDirName(n, r), a = await fetchModuleAsync(e, t, packageVersions, i, o);
3401
+ const o = getCommonDirUrl(e, packageVersions, n, r), i = getCommonDirName(n, r), a = await fetchModuleAsync(e, t, packageVersions, o, i);
3399
3402
  if (isString(a)) return void s(null, !0);
3400
3403
  }
3401
3404
  }
@@ -3414,13 +3417,13 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3414
3417
  }))(e, null, r.exts);
3415
3418
  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"),
3416
3419
  e)), new Promise(((e, t) => {
3417
- resolve(r.moduleId, s, ((s, n, i) => {
3420
+ resolve(r.moduleId, s, ((s, n, o) => {
3418
3421
  if (s) t(s); else {
3419
3422
  n = normalizePath(n);
3420
3423
  const t = {
3421
3424
  moduleId: r.moduleId,
3422
3425
  resolveId: n,
3423
- pkgData: i,
3426
+ pkgData: o,
3424
3427
  pkgDirPath: getPackageDirPath(n, r.moduleId)
3425
3428
  };
3426
3429
  e(t);
@@ -3461,7 +3464,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3461
3464
  t = e;
3462
3465
  }
3463
3466
  }
3464
- }), !function i(e) {
3467
+ }), !function o(e) {
3465
3468
  return "diskReads" in e && "diskWrites" in e;
3466
3469
  }(r)) throw new Error("could not generate TestingSystem");
3467
3470
  return r;
@@ -3569,8 +3572,8 @@ class E2EElement extends index_cjs.MockHTMLElement {
3569
3572
  waitForVisible() {
3570
3573
  return new Promise(((e, t) => {
3571
3574
  const r = setInterval((async () => {
3572
- await this.isVisible() && (clearInterval(r), clearTimeout(i), e());
3573
- }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForVisible timed out: ${s}ms`), i = setTimeout((() => {
3575
+ await this.isVisible() && (clearInterval(r), clearTimeout(o), e());
3576
+ }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForVisible timed out: ${s}ms`), o = setTimeout((() => {
3574
3577
  clearTimeout(r), t(n);
3575
3578
  }), s);
3576
3579
  }));
@@ -3578,8 +3581,8 @@ class E2EElement extends index_cjs.MockHTMLElement {
3578
3581
  waitForNotVisible() {
3579
3582
  return new Promise(((e, t) => {
3580
3583
  const r = setInterval((async () => {
3581
- await this.isVisible() || (clearInterval(r), clearTimeout(i), e());
3582
- }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForNotVisible timed out: ${s}ms`), i = setTimeout((() => {
3584
+ await this.isVisible() || (clearInterval(r), clearTimeout(o), e());
3585
+ }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForNotVisible timed out: ${s}ms`), o = setTimeout((() => {
3583
3586
  clearTimeout(r), t(n);
3584
3587
  }), s);
3585
3588
  }));
@@ -3838,15 +3841,15 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3838
3841
  var e;
3839
3842
  const t = null !== (e = require("jest-runner").default) && void 0 !== e ? e : require("jest-runner");
3840
3843
  return class r extends t {
3841
- async runTests(e, t, r, s, n, i) {
3842
- const o = process.env;
3844
+ async runTests(e, t, r, s, n, o) {
3845
+ const i = process.env;
3843
3846
  if (e = e.filter((e => function t(e, r) {
3844
3847
  const s = (e = e.toLowerCase().replace(/\\/g, "/")).includes(".e2e.") || e.includes("/e2e.");
3845
3848
  return !("true" !== r.__STENCIL_E2E_TESTS__ || !s) || "true" === r.__STENCIL_SPEC_TESTS__ && !s;
3846
- }(e.path, o))), "true" === o.__STENCIL_SCREENSHOT__) {
3847
- const a = JSON.parse(o.__STENCIL_EMULATE_CONFIGS__);
3848
- for (let l = 0; l < a.length; l++) setScreenshotEmulateData(a[l], o), await super.runTests(e, t, r, s, n, i);
3849
- } else await super.runTests(e, t, r, s, n, i);
3849
+ }(e.path, i))), "true" === i.__STENCIL_SCREENSHOT__) {
3850
+ const a = JSON.parse(i.__STENCIL_EMULATE_CONFIGS__);
3851
+ for (let l = 0; l < a.length; l++) setScreenshotEmulateData(a[l], i), await super.runTests(e, t, r, s, n, o);
3852
+ } else await super.runTests(e, t, r, s, n, o);
3850
3853
  }
3851
3854
  };
3852
3855
  }, exports.createTesting = async e => {
@@ -3858,14 +3861,14 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3858
3861
  })), e.flags.args.includes("--watchAll") && (e.watch = !0), e;
3859
3862
  }(e);
3860
3863
  const {createCompiler: r} = require("../compiler/stencil.js"), s = await r(e);
3861
- let n, i;
3862
- const o = async () => {
3864
+ let n, o;
3865
+ const i = async () => {
3863
3866
  const t = [];
3864
3867
  e && (e.sys && e.sys.destroy && t.push(e.sys.destroy()), e = null), n && (n.close && t.push(n.close()),
3865
- n = null), i && (i.close && t.push(i.close()), i = null), await Promise.all(t);
3868
+ n = null), o && (o.close && t.push(o.close()), o = null), await Promise.all(t);
3866
3869
  };
3867
3870
  return {
3868
- destroy: o,
3871
+ destroy: i,
3869
3872
  run: async (t = {}) => {
3870
3873
  let r, a = !1, l = !1, c = null;
3871
3874
  const u = [];
@@ -3888,9 +3891,9 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3888
3891
  })), c.start()) : t = s.build()), e.devServer.openBrowser = !1, e.devServer.gzip = !1,
3889
3892
  e.devServer.reloadStrategy = null;
3890
3893
  const l = await Promise.all([ index_js.start(e.devServer, e.logger), startPuppeteerBrowser(e) ]);
3891
- if (n = l[0], i = l[1], t) {
3894
+ if (n = l[0], o = l[1], t) {
3892
3895
  const r = await t;
3893
- if (!r || !e.watch && hasError(r && r.diagnostics)) return await o(), !1;
3896
+ if (!r || !e.watch && hasError(r && r.diagnostics)) return await i(), !1;
3894
3897
  }
3895
3898
  n && (r.__STENCIL_BROWSER_URL__ = n.browserUrl, e.logger.debug(`e2e dev server url: ${r.__STENCIL_BROWSER_URL__}`),
3896
3899
  r.__STENCIL_APP_SCRIPT_URL__ = function d(e, t) {
@@ -3924,13 +3927,13 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3924
3927
  waitBeforeScreenshot: e.testing.waitBeforeScreenshot,
3925
3928
  pixelmatchModulePath: s
3926
3929
  }), e.flags.updateScreenshot || await r.pullMasterBuild(), n.finish("screenshot, initBuild finished");
3927
- const i = await Promise.all([ await r.getMasterBuild(), await r.getScreenshotCache() ]), o = i[0], a = i[1];
3928
- t.__STENCIL_SCREENSHOT_BUILD__ = r.toJson(o, a);
3930
+ const o = await Promise.all([ await r.getMasterBuild(), await r.getScreenshotCache() ]), i = o[0], a = o[1];
3931
+ t.__STENCIL_SCREENSHOT_BUILD__ = r.toJson(i, a);
3929
3932
  const l = e.logger.createTimeSpan("screenshot, tests started", !0), c = await runJest(e, t);
3930
3933
  l.finish(`screenshot, tests finished, passed: ${c}`);
3931
3934
  try {
3932
3935
  const t = e.logger.createTimeSpan("screenshot, completeTimespan started", !0);
3933
- let s = await r.completeBuild(o);
3936
+ let s = await r.completeBuild(i);
3934
3937
  if (t.finish("screenshot, completeTimespan finished"), s) {
3935
3938
  const t = e.logger.createTimeSpan("screenshot, publishBuild started", !0);
3936
3939
  if (s = await r.publishBuild(s), t.finish("screenshot, publishBuild finished"),
@@ -4045,6 +4048,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4045
4048
  rootDir: s,
4046
4049
  sys: createTestingSystem(),
4047
4050
  testing: {},
4051
+ transformAliasedImportPaths: !1,
4048
4052
  ...e
4049
4053
  };
4050
4054
  }, exports.mockWindow = function mockWindow(e = null) {
@@ -4066,19 +4070,19 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4066
4070
  const t = process.env;
4067
4071
  "true" === t.__STENCIL_SCREENSHOT__ ? e.compareScreenshot = (r, s) => {
4068
4072
  const n = global;
4069
- let i, o = "", a = "";
4070
- if (n.currentSpec && ("string" == typeof n.currentSpec.fullName && (o = n.currentSpec.fullName),
4071
- "string" == typeof n.currentSpec.testPath && (a = n.currentSpec.testPath)), "string" == typeof r ? (o.length > 0 ? o += ", " + r : o = r,
4072
- "object" == typeof s && (i = s)) : "object" == typeof r && (i = r), o = o.trim(),
4073
- i = i || {}, !o) throw new Error(`Invalid screenshot description in "${a}"`);
4074
- 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')".`);
4075
- return n.screenshotDescriptions.add(o), async function l(e, t, r, s, n) {
4073
+ let o, i = "", a = "";
4074
+ if (n.currentSpec && ("string" == typeof n.currentSpec.fullName && (i = n.currentSpec.fullName),
4075
+ "string" == typeof n.currentSpec.testPath && (a = n.currentSpec.testPath)), "string" == typeof r ? (i.length > 0 ? i += ", " + r : i = r,
4076
+ "object" == typeof s && (o = s)) : "object" == typeof r && (o = r), i = i.trim(),
4077
+ o = o || {}, !i) throw new Error(`Invalid screenshot description in "${a}"`);
4078
+ 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')".`);
4079
+ return n.screenshotDescriptions.add(i), async function l(e, t, r, s, n) {
4076
4080
  if ("string" != typeof t.__STENCIL_EMULATE__) throw new Error("compareScreenshot, missing screenshot emulate env var");
4077
4081
  if ("string" != typeof t.__STENCIL_SCREENSHOT_BUILD__) throw new Error("compareScreenshot, missing screen build env var");
4078
- const i = JSON.parse(t.__STENCIL_EMULATE__), o = JSON.parse(t.__STENCIL_SCREENSHOT_BUILD__);
4082
+ const o = JSON.parse(t.__STENCIL_EMULATE__), i = JSON.parse(t.__STENCIL_SCREENSHOT_BUILD__);
4079
4083
  await function a(e) {
4080
4084
  return new Promise((t => setTimeout(t, e)));
4081
- }(o.timeoutBeforeScreenshot), await e.evaluate((() => new Promise((e => {
4085
+ }(i.timeoutBeforeScreenshot), await e.evaluate((() => new Promise((e => {
4082
4086
  window.requestAnimationFrame((() => {
4083
4087
  e();
4084
4088
  }));
@@ -4096,11 +4100,11 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4096
4100
  width: e.clip.width,
4097
4101
  height: e.clip.height
4098
4102
  }), t;
4099
- }(n), u = await e.screenshot(l), d = "number" == typeof n.pixelmatchThreshold ? n.pixelmatchThreshold : o.pixelmatchThreshold;
4100
- let h = i.viewport.width, p = i.viewport.height;
4103
+ }(n), u = await e.screenshot(l), d = "number" == typeof n.pixelmatchThreshold ? n.pixelmatchThreshold : i.pixelmatchThreshold;
4104
+ let h = o.viewport.width, p = o.viewport.height;
4101
4105
  return n && n.clip && ("number" == typeof n.clip.width && (h = n.clip.width), "number" == typeof n.clip.height && (p = n.clip.height)),
4102
- await compareScreenshot(i, o, u, r, h, p, s, d);
4103
- }(e, t, o, a, i);
4106
+ await compareScreenshot(o, i, u, r, h, p, s, d);
4107
+ }(e, t, i, a, o);
4104
4108
  } : e.compareScreenshot = async () => ({
4105
4109
  mismatchedPixels: 0,
4106
4110
  allowableMismatchedPixels: 1,
@@ -4148,13 +4152,13 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4148
4152
  e();
4149
4153
  }))));
4150
4154
  };
4151
- const i = !0 === e.failOnConsoleError, o = !0 === e.failOnNetworkError;
4155
+ const o = !0 === e.failOnConsoleError, i = !0 === e.failOnNetworkError;
4152
4156
  t.on("console", (e => {
4153
4157
  if ("error" === e.type() && (r.push({
4154
4158
  type: "error",
4155
4159
  message: e.text(),
4156
4160
  location: e.location().url
4157
- }), i)) throw new Error(serializeConsoleMessage(e));
4161
+ }), o)) throw new Error(serializeConsoleMessage(e));
4158
4162
  !function t(e) {
4159
4163
  const t = serializeConsoleMessage(e), r = e.type(), s = "warning" === r ? "warn" : r;
4160
4164
  "debug" !== s && ("function" == typeof console[s] ? console[s](t) : console.log(r, t));
@@ -4170,7 +4174,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4170
4174
  type: "requestfailed",
4171
4175
  message: e.failure().errorText,
4172
4176
  location: e.url()
4173
- }), o) throw new Error(e.failure().errorText);
4177
+ }), i) throw new Error(e.failure().errorText);
4174
4178
  console.error("requestfailed", e.url());
4175
4179
  })), "string" == typeof e.html ? await e2eSetContent(t, e.html, {
4176
4180
  waitUntil: e.waitUntil
@@ -4201,10 +4205,10 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4201
4205
  waitForChanges: testing.flushAll,
4202
4206
  flushLoadModule: testing.flushLoadModule,
4203
4207
  flushQueue: testing.flushQueue
4204
- }, i = e.components.map((e => {
4208
+ }, o = e.components.map((e => {
4205
4209
  if (null == e.COMPILER_META) throw new Error('Invalid component class: Missing static "COMPILER_META" property.');
4206
4210
  r.add(e.COMPILER_META.tagName), e.isProxied = !1, function t(e) {
4207
- var t, r, s, n, i, o;
4211
+ var t, r, s, n, o, i;
4208
4212
  "function" == typeof (null === (t = e.prototype) || void 0 === t ? void 0 : t.__componentWillLoad) && (e.prototype.componentWillLoad = e.prototype.__componentWillLoad,
4209
4213
  e.prototype.__componentWillLoad = null), "function" == typeof (null === (r = e.prototype) || void 0 === r ? void 0 : r.__componentWillUpdate) && (e.prototype.componentWillUpdate = e.prototype.__componentWillUpdate,
4210
4214
  e.prototype.__componentWillUpdate = null), "function" == typeof (null === (s = e.prototype) || void 0 === s ? void 0 : s.__componentWillRender) && (e.prototype.componentWillRender = e.prototype.__componentWillRender,
@@ -4213,12 +4217,12 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4213
4217
  const e = this.__componentWillLoad();
4214
4218
  return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
4215
4219
  e;
4216
- }), "function" == typeof (null === (i = e.prototype) || void 0 === i ? void 0 : i.componentWillUpdate) && (e.prototype.__componentWillUpdate = e.prototype.componentWillUpdate,
4220
+ }), "function" == typeof (null === (o = e.prototype) || void 0 === o ? void 0 : o.componentWillUpdate) && (e.prototype.__componentWillUpdate = e.prototype.componentWillUpdate,
4217
4221
  e.prototype.componentWillUpdate = function() {
4218
4222
  const e = this.__componentWillUpdate();
4219
4223
  return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
4220
4224
  e;
4221
- }), "function" == typeof (null === (o = e.prototype) || void 0 === o ? void 0 : o.componentWillRender) && (e.prototype.__componentWillRender = e.prototype.componentWillRender,
4225
+ }), "function" == typeof (null === (i = e.prototype) || void 0 === i ? void 0 : i.componentWillRender) && (e.prototype.__componentWillRender = e.prototype.componentWillRender,
4222
4226
  e.prototype.componentWillRender = function() {
4223
4227
  const e = this.__componentWillRender();
4224
4228
  return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
@@ -4233,7 +4237,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4233
4237
  })), e.style = t;
4234
4238
  } else 1 === n.length && (e.style = n[0].styleStr);
4235
4239
  return testing.registerModule(s, e), ((e, t) => [ e, t.map((e => formatComponentRuntimeMeta(e, !0))) ])(s, [ e.COMPILER_META ]);
4236
- })), o = (e => {
4240
+ })), i = (e => {
4237
4241
  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 = {
4238
4242
  allRenderFn: e.every((e => e.hasRenderFn)),
4239
4243
  cmpDidLoad: e.some((e => e.hasComponentDidLoadFn)),
@@ -4293,8 +4297,8 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4293
4297
  return n.asyncLoading = n.cmpWillUpdate || n.cmpWillLoad || n.cmpWillRender, n.vdomAttribute = n.vdomAttribute || n.reflect,
4294
4298
  n.vdomPropOrAttr = n.vdomPropOrAttr || n.reflect, n;
4295
4299
  })(e.components.map((e => e.COMPILER_META)));
4296
- if (e.strictBuild ? Object.assign(appData.BUILD, o) : Object.keys(o).forEach((e => {
4297
- !0 === o[e] && (appData.BUILD[e] = !0);
4300
+ if (e.strictBuild ? Object.assign(appData.BUILD, i) : Object.keys(i).forEach((e => {
4301
+ !0 === i[e] && (appData.BUILD[e] = !0);
4298
4302
  })), appData.BUILD.asyncLoading = !0, e.hydrateClientSide ? (appData.BUILD.hydrateClientSide = !0,
4299
4303
  appData.BUILD.hydrateServerSide = !1) : e.hydrateServerSide && (appData.BUILD.hydrateServerSide = !0,
4300
4304
  appData.BUILD.hydrateClientSide = !1), appData.BUILD.cloneNodeFix = !1, appData.BUILD.shadowDomShim = !1,
@@ -4310,7 +4314,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4310
4314
  if ("string" == typeof e.userAgent) try {
4311
4315
  n.win.navigator.userAgent = e.userAgent;
4312
4316
  } catch (e) {}
4313
- if (testing.bootstrapLazy(i), "function" == typeof e.template) {
4317
+ if (testing.bootstrapLazy(o), "function" == typeof e.template) {
4314
4318
  const t = {
4315
4319
  $ancestorComponent$: void 0,
4316
4320
  $flags$: 0,