@rindo/core 2.18.0 → 2.18.1

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 (41) hide show
  1. package/cli/index.cjs +74 -21
  2. package/cli/index.js +74 -21
  3. package/cli/package.json +1 -1
  4. package/compiler/package.json +1 -1
  5. package/compiler/rindo.js +203 -724
  6. package/compiler/rindo.min.js +2 -2
  7. package/dependencies.json +1 -1
  8. package/dev-server/client/index.js +1 -1
  9. package/dev-server/client/package.json +1 -1
  10. package/dev-server/connector.html +2 -2
  11. package/dev-server/index.js +1 -1
  12. package/dev-server/package.json +1 -1
  13. package/dev-server/server-process.js +2 -2
  14. package/internal/app-data/package.json +1 -1
  15. package/internal/client/css-shim.js +1 -1
  16. package/internal/client/dom.js +1 -1
  17. package/internal/client/index.js +2 -2
  18. package/internal/client/package.json +1 -1
  19. package/internal/client/patch-browser.js +1 -1
  20. package/internal/client/patch-esm.js +1 -1
  21. package/internal/client/shadow-css.js +1 -1
  22. package/internal/hydrate/package.json +1 -1
  23. package/internal/hydrate/runner.d.ts +1 -1
  24. package/internal/package.json +1 -1
  25. package/internal/rindo-public-compiler.d.ts +2 -2
  26. package/internal/testing/package.json +1 -1
  27. package/mock-doc/index.cjs +1 -2
  28. package/mock-doc/index.js +1 -2
  29. package/mock-doc/package.json +1 -1
  30. package/package.json +9 -9
  31. package/readme.md +44 -31
  32. package/screenshot/compare/build/p-f4745c2f.entry.js +1 -1
  33. package/screenshot/package.json +1 -1
  34. package/sys/node/autoprefixer.js +5 -5
  35. package/sys/node/glob.js +1 -1
  36. package/sys/node/graceful-fs.js +1 -1
  37. package/sys/node/index.js +2 -2
  38. package/sys/node/package.json +1 -1
  39. package/sys/node/worker.js +1 -1
  40. package/testing/index.js +767 -918
  41. package/testing/package.json +1 -1
package/testing/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  /*!
2
- Rindo Testing v2.18.0 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Testing v2.18.1 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  function _lazyRequire(e) {
5
5
  return new Proxy({}, {
6
6
  get(t, r) {
7
- const n = require(e);
8
- return Reflect.get(n, r);
9
- },
10
- set(t, r, n) {
11
7
  const s = require(e);
12
- return Reflect.set(s, r, n);
8
+ return Reflect.get(s, r);
9
+ },
10
+ set(t, r, s) {
11
+ const n = require(e);
12
+ return Reflect.set(n, r, s);
13
13
  }
14
14
  });
15
15
  }
@@ -25,8 +25,8 @@ function _interopNamespace(e) {
25
25
  var t = Object.create(null);
26
26
  return e && Object.keys(e).forEach((function(r) {
27
27
  if ("default" !== r) {
28
- var n = Object.getOwnPropertyDescriptor(e, r);
29
- Object.defineProperty(t, r, n.get ? n : {
28
+ var s = Object.getOwnPropertyDescriptor(e, r);
29
+ Object.defineProperty(t, r, s.get ? s : {
30
30
  enumerable: !0,
31
31
  get: function() {
32
32
  return e[r];
@@ -38,10 +38,10 @@ function _interopNamespace(e) {
38
38
 
39
39
  async function startPuppeteerBrowser(e) {
40
40
  if (!e.flags.e2e) return null;
41
- const t = process.env, r = e.testing.browserExecutablePath ? "puppeteer-core" : "puppeteer", n = e.sys.lazyRequire.getModulePath(e.rootDir, r), s = e.sys.lazyRequire.require(e.rootDir, n);
42
- t.__RINDO_PUPPETEER_MODULE__ = n, t.__RINDO_BROWSER_WAIT_UNTIL = e.testing.browserWaitUntil,
41
+ const t = process.env, r = e.testing.browserExecutablePath ? "puppeteer-core" : "puppeteer", s = e.sys.lazyRequire.getModulePath(e.rootDir, r), n = e.sys.lazyRequire.require(e.rootDir, s);
42
+ t.__RINDO_PUPPETEER_MODULE__ = s, t.__RINDO_BROWSER_WAIT_UNTIL = e.testing.browserWaitUntil,
43
43
  e.flags.devtools && (e.testing.browserDevtools = !0, e.testing.browserHeadless = !1,
44
- t.__RINDO_E2E_DEVTOOLS__ = "true"), e.logger.debug(`puppeteer: ${n}`), e.logger.debug(`puppeteer headless: ${e.testing.browserHeadless}`),
44
+ t.__RINDO_E2E_DEVTOOLS__ = "true"), e.logger.debug(`puppeteer: ${s}`), e.logger.debug(`puppeteer headless: ${e.testing.browserHeadless}`),
45
45
  Array.isArray(e.testing.browserArgs) && e.logger.debug(`puppeteer args: ${e.testing.browserArgs.join(" ")}`),
46
46
  "boolean" == typeof e.testing.browserDevtools && e.logger.debug(`puppeteer devtools: ${e.testing.browserDevtools}`),
47
47
  "number" == typeof e.testing.browserSlowMo && e.logger.debug(`puppeteer slowMo: ${e.testing.browserSlowMo}`);
@@ -50,7 +50,7 @@ async function startPuppeteerBrowser(e) {
50
50
  slowMo: e.testing.browserSlowMo
51
51
  };
52
52
  let i;
53
- if (e.testing.browserWSEndpoint) i = await s.connect({
53
+ if (e.testing.browserWSEndpoint) i = await n.connect({
54
54
  browserWSEndpoint: e.testing.browserWSEndpoint,
55
55
  ...o
56
56
  }); else {
@@ -61,7 +61,7 @@ async function startPuppeteerBrowser(e) {
61
61
  ...o
62
62
  };
63
63
  e.testing.browserExecutablePath && (t.executablePath = e.testing.browserExecutablePath),
64
- i = await s.launch({
64
+ i = await n.launch({
65
65
  ...t
66
66
  });
67
67
  }
@@ -74,14 +74,14 @@ function getAppStyleUrl(e, t) {
74
74
  }
75
75
 
76
76
  function getAppUrl(e, t, r) {
77
- const n = e.outputTargets.find(isOutputTargetWww);
78
- if (n) {
79
- const e = n.buildDir, s = path$2.join(e, r), o = path$2.relative(n.dir, s);
77
+ const s = e.outputTargets.find(isOutputTargetWww);
78
+ if (s) {
79
+ const e = s.buildDir, n = path$2.join(e, r), o = path$2.relative(s.dir, n);
80
80
  return new URL(o, t).href;
81
81
  }
82
- const s = e.outputTargets.find(isOutputTargetDistLazy);
83
- if (s) {
84
- const n = s.esmDir, o = path$2.join(n, r), i = path$2.relative(e.rootDir, o);
82
+ const n = e.outputTargets.find(isOutputTargetDistLazy);
83
+ if (n) {
84
+ const s = n.esmDir, o = path$2.join(s, r), i = path$2.relative(e.rootDir, o);
85
85
  return new URL(i, t).href;
86
86
  }
87
87
  return t;
@@ -100,9 +100,9 @@ function setScreenshotEmulateData(e, t) {
100
100
  }
101
101
  };
102
102
  if ("string" == typeof e.device) try {
103
- const n = require(t.__RINDO_PUPPETEER_MODULE__ + "/DeviceDescriptors")[e.device];
104
- if (!n) return void console.error(`invalid emulate device: ${e.device}`);
105
- r.device = e.device, r.userAgent = n.userAgent, r.viewport = n.viewport;
103
+ const s = require(t.__RINDO_PUPPETEER_MODULE__ + "/DeviceDescriptors")[e.device];
104
+ if (!s) return void console.error(`invalid emulate device: ${e.device}`);
105
+ r.device = e.device, r.userAgent = s.userAgent, r.viewport = s.viewport;
106
106
  } catch (e) {
107
107
  return void console.error("error loading puppeteer DeviceDescriptors", e);
108
108
  }
@@ -118,7 +118,7 @@ function setScreenshotEmulateData(e, t) {
118
118
  async function runJest(e, t) {
119
119
  let r = !1;
120
120
  try {
121
- const n = function n(e, t) {
121
+ const s = function s(e, t) {
122
122
  let r = e.emulate.slice();
123
123
  if ("string" == typeof t.emulate) {
124
124
  const e = t.emulate.toLowerCase();
@@ -126,15 +126,15 @@ async function runJest(e, t) {
126
126
  }
127
127
  return r;
128
128
  }(e.testing, e.flags);
129
- t.__RINDO_EMULATE_CONFIGS__ = JSON.stringify(n), t.__RINDO_ENV__ = JSON.stringify(e.env),
129
+ t.__RINDO_EMULATE_CONFIGS__ = JSON.stringify(s), t.__RINDO_ENV__ = JSON.stringify(e.env),
130
130
  e.flags.ci || e.flags.e2e ? t.__RINDO_DEFAULT_TIMEOUT__ = "30000" : t.__RINDO_DEFAULT_TIMEOUT__ = "15000",
131
131
  e.flags.devtools && (t.__RINDO_DEFAULT_TIMEOUT__ = "300000000"), e.logger.debug(`default timeout: ${t.__RINDO_DEFAULT_TIMEOUT__}`);
132
- const s = function s(e) {
132
+ const n = function n(e) {
133
133
  const t = require("yargs"), r = [ ...e.flags.unknownArgs.slice(), ...e.flags.knownArgs.slice() ];
134
134
  r.some((e => e.startsWith("--max-workers") || e.startsWith("--maxWorkers"))) || r.push(`--max-workers=${e.maxConcurrentWorkers}`),
135
135
  e.flags.devtools && r.push("--runInBand"), e.logger.info(e.logger.magenta(`jest args: ${r.join(" ")}`));
136
- let n = t(r).argv;
137
- if (n = {
136
+ let s = t(r).argv;
137
+ if (s = {
138
138
  detectLeaks: !1,
139
139
  "detect-leaks": !1,
140
140
  detectOpenHandles: !1,
@@ -153,28 +153,28 @@ async function runJest(e, t) {
153
153
  "run-tests-by-path": !1,
154
154
  testLocationInResults: !1,
155
155
  "test-location-in-results": !1,
156
- ...n
157
- }, n.config = function s(e) {
158
- const t = e.testing, r = require("jest-config").defaults, n = Object.keys(r), s = {};
156
+ ...s
157
+ }, s.config = function n(e) {
158
+ const t = e.testing, r = require("jest-config").defaults, s = Object.keys(r), n = {};
159
159
  return Object.keys(t).forEach((e => {
160
- n.includes(e) && (s[e] = t[e]);
161
- })), s.rootDir = e.rootDir, isString(t.collectCoverage) && (s.collectCoverage = t.collectCoverage),
162
- Array.isArray(t.collectCoverageFrom) && (s.collectCoverageFrom = t.collectCoverageFrom),
163
- isString(t.coverageDirectory) && (s.coverageDirectory = t.coverageDirectory), t.coverageThreshold && (s.coverageThreshold = t.coverageThreshold),
164
- isString(t.globalSetup) && (s.globalSetup = t.globalSetup), isString(t.globalTeardown) && (s.globalTeardown = t.globalTeardown),
165
- isString(t.preset) && (s.preset = t.preset), t.projects && (s.projects = t.projects),
166
- Array.isArray(t.reporters) && (s.reporters = t.reporters), isString(t.testResultsProcessor) && (s.testResultsProcessor = t.testResultsProcessor),
167
- t.transform && (s.transform = t.transform), t.verbose && (s.verbose = t.verbose),
168
- s.testRunner = "jest-jasmine2", JSON.stringify(s);
169
- }(e), "string" == typeof n.maxWorkers) try {
170
- n.maxWorkers = parseInt(n.maxWorkers, 10);
160
+ s.includes(e) && (n[e] = t[e]);
161
+ })), n.rootDir = e.rootDir, isString(t.collectCoverage) && (n.collectCoverage = t.collectCoverage),
162
+ Array.isArray(t.collectCoverageFrom) && (n.collectCoverageFrom = t.collectCoverageFrom),
163
+ isString(t.coverageDirectory) && (n.coverageDirectory = t.coverageDirectory), t.coverageThreshold && (n.coverageThreshold = t.coverageThreshold),
164
+ isString(t.globalSetup) && (n.globalSetup = t.globalSetup), isString(t.globalTeardown) && (n.globalTeardown = t.globalTeardown),
165
+ isString(t.preset) && (n.preset = t.preset), t.projects && (n.projects = t.projects),
166
+ Array.isArray(t.reporters) && (n.reporters = t.reporters), isString(t.testResultsProcessor) && (n.testResultsProcessor = t.testResultsProcessor),
167
+ t.transform && (n.transform = t.transform), t.verbose && (n.verbose = t.verbose),
168
+ n.testRunner = "jest-jasmine2", JSON.stringify(n);
169
+ }(e), "string" == typeof s.maxWorkers) try {
170
+ s.maxWorkers = parseInt(s.maxWorkers, 10);
171
171
  } catch (e) {}
172
- return "string" == typeof n.ci && (n.ci = "true" === n.ci || "" === n.ci), n;
172
+ return "string" == typeof s.ci && (s.ci = "true" === s.ci || "" === s.ci), s;
173
173
  }(e), o = function o(e, t) {
174
174
  const r = t.projects ? t.projects : [];
175
175
  return r.push(e.rootDir), r;
176
- }(e, s), {runCLI: i} = require("@jest/core");
177
- r = !!(await i(s, o)).results.success;
176
+ }(e, n), {runCLI: i} = require("@jest/core");
177
+ r = !!(await i(n, o)).results.success;
178
178
  } catch (t) {
179
179
  e.logger.error(`runJest: ${t}`);
180
180
  }
@@ -246,11 +246,11 @@ function getCompilerOptions(e) {
246
246
  };
247
247
  if (1 === e.category && (t.level = "error"), e.file) {
248
248
  t.absFilePath = e.file.fileName;
249
- const n = "string" != typeof (r = e.file.text) ? [] : (r = r.replace(/\\r/g, "\n")).split("\n"), s = e.file.getLineAndCharacterOfPosition(e.start), o = {
250
- lineIndex: s.line,
251
- lineNumber: s.line + 1,
252
- text: n[s.line],
253
- errorCharStart: s.character,
249
+ const s = "string" != typeof (r = e.file.text) ? [] : (r = r.replace(/\\r/g, "\n")).split("\n"), n = e.file.getLineAndCharacterOfPosition(e.start), o = {
250
+ lineIndex: n.line,
251
+ lineNumber: n.line + 1,
252
+ text: s[n.line],
253
+ errorCharStart: n.character,
254
254
  errorLength: Math.max(e.length, 1)
255
255
  };
256
256
  if (t.lineNumber = o.lineNumber, t.columnNumber = o.errorCharStart + 1, t.lines.push(o),
@@ -259,17 +259,17 @@ function getCompilerOptions(e) {
259
259
  const e = {
260
260
  lineIndex: o.lineIndex - 1,
261
261
  lineNumber: o.lineNumber - 1,
262
- text: n[o.lineIndex - 1],
262
+ text: s[o.lineIndex - 1],
263
263
  errorCharStart: -1,
264
264
  errorLength: -1
265
265
  };
266
266
  t.lines.unshift(e);
267
267
  }
268
- if (o.lineIndex + 1 < n.length) {
268
+ if (o.lineIndex + 1 < s.length) {
269
269
  const e = {
270
270
  lineIndex: o.lineIndex + 1,
271
271
  lineNumber: o.lineNumber + 1,
272
- text: n[o.lineIndex + 1],
272
+ text: s[o.lineIndex + 1],
273
273
  errorCharStart: -1,
274
274
  errorLength: -1
275
275
  };
@@ -279,26 +279,26 @@ function getCompilerOptions(e) {
279
279
  var r;
280
280
  return t;
281
281
  })(r.error)));
282
- const n = rindo_js.ts.parseJsonConfigFileContent(r.config, rindo_js.ts.sys, e, void 0, t);
283
- return _tsCompilerOptions = n.options, _tsCompilerOptions;
282
+ const s = rindo_js.ts.parseJsonConfigFileContent(r.config, rindo_js.ts.sys, e, void 0, t);
283
+ return _tsCompilerOptions = s.options, _tsCompilerOptions;
284
284
  }
285
285
 
286
286
  function compareHtml(e, t, r) {
287
287
  if (null == e) throw new Error(`expect toEqualHtml() value is "${e}"`);
288
288
  if ("function" == typeof e.then) throw new Error("element must be a resolved value, not a promise, before it can be tested");
289
- let n;
289
+ let s;
290
290
  if (1 === e.nodeType) {
291
- const t = function s(e) {
291
+ const t = function n(e) {
292
292
  return e && e.ownerDocument && e.ownerDocument.defaultView && e.ownerDocument.defaultView.__rindo_spec_options || {};
293
293
  }(e);
294
- n = index_cjs.serializeNodeToHtml(e, {
294
+ s = index_cjs.serializeNodeToHtml(e, {
295
295
  prettyHtml: !0,
296
296
  outerHtml: !0,
297
297
  removeHtmlComments: !1 === t.includeAnnotations,
298
298
  excludeTags: [ "body" ],
299
299
  serializeShadowRoot: r
300
300
  });
301
- } else if (11 === e.nodeType) n = index_cjs.serializeNodeToHtml(e, {
301
+ } else if (11 === e.nodeType) s = index_cjs.serializeNodeToHtml(e, {
302
302
  prettyHtml: !0,
303
303
  excludeTags: [ "style" ],
304
304
  excludeTagContent: [ "style" ],
@@ -307,7 +307,7 @@ function compareHtml(e, t, r) {
307
307
  if ("string" != typeof e) throw new Error("expect toEqualHtml() value should be an element, shadow root or string.");
308
308
  {
309
309
  const t = index_cjs.parseHtmlToFragment(e);
310
- n = index_cjs.serializeNodeToHtml(t, {
310
+ s = index_cjs.serializeNodeToHtml(t, {
311
311
  prettyHtml: !0,
312
312
  serializeShadowRoot: r
313
313
  });
@@ -317,7 +317,7 @@ function compareHtml(e, t, r) {
317
317
  prettyHtml: !0,
318
318
  excludeTags: [ "body" ]
319
319
  });
320
- return n !== i ? (expect(n).toBe(i), {
320
+ return s !== i ? (expect(s).toBe(i), {
321
321
  message: () => "HTML does not match",
322
322
  pass: !1
323
323
  }) : {
@@ -351,22 +351,22 @@ async function globalMockFetch(e) {
351
351
  r = mockedResponses.get(e.href);
352
352
  }
353
353
  if (null == r) return new MockResponse404;
354
- const n = r.response.clone();
355
- return "number" != typeof n.status && (n.status = 200), "string" != typeof n.statusText && (n.status >= 500 ? n.statusText = "Internal Server Error" : 404 === n.status ? n.statusText = "Not Found" : n.status >= 400 ? n.statusText = "Bad Request" : 302 === n.status ? n.statusText = "Found" : 301 === n.status ? n.statusText = "Moved Permanently" : n.status >= 300 ? n.statusText = "Redirection" : n.statusText = "OK"),
356
- n.ok = n.status >= 200 && n.status <= 299, "string" != typeof n.type && (n.type = "basic"),
357
- n;
354
+ const s = r.response.clone();
355
+ return "number" != typeof s.status && (s.status = 200), "string" != typeof s.statusText && (s.status >= 500 ? s.statusText = "Internal Server Error" : 404 === s.status ? s.statusText = "Not Found" : s.status >= 400 ? s.statusText = "Bad Request" : 302 === s.status ? s.statusText = "Found" : 301 === s.status ? s.statusText = "Moved Permanently" : s.status >= 300 ? s.statusText = "Redirection" : s.statusText = "OK"),
356
+ s.ok = s.status >= 200 && s.status <= 299, "string" != typeof s.type && (s.type = "basic"),
357
+ s;
358
358
  }
359
359
 
360
360
  function setMockedResponse(e, t, r) {
361
361
  if (!e) throw new Error("MockResponse required");
362
362
  "string" == typeof e.url && "" !== e.url || ("string" == typeof t ? e.url = t : t && "string" == typeof t.url ? e.url = t.url : e.url = FETCH_DEFAULT_PATH);
363
- const n = new URL(e.url, location.href);
364
- e.url = n.href;
365
- const s = {
363
+ const s = new URL(e.url, location.href);
364
+ e.url = s.href;
365
+ const n = {
366
366
  response: e,
367
367
  reject: r
368
368
  };
369
- mockedResponses.set(e.url, s);
369
+ mockedResponses.set(e.url, n);
370
370
  }
371
371
 
372
372
  function resetBuildConditionals(e) {
@@ -388,48 +388,48 @@ function assertPath(e) {
388
388
  }
389
389
 
390
390
  function normalizeStringPosix(e, t) {
391
- var r, n, s, o = "", i = 0, a = -1, l = 0;
392
- for (n = 0; n <= e.length; ++n) {
393
- if (n < e.length) r = e.charCodeAt(n); else {
391
+ var r, s, n, o = "", i = 0, a = -1, l = 0;
392
+ for (s = 0; s <= e.length; ++s) {
393
+ if (s < e.length) r = e.charCodeAt(s); else {
394
394
  if (47 === r) break;
395
395
  r = 47;
396
396
  }
397
397
  if (47 === r) {
398
- if (a === n - 1 || 1 === l) ; else if (a !== n - 1 && 2 === l) {
398
+ if (a === s - 1 || 1 === l) ; else if (a !== s - 1 && 2 === l) {
399
399
  if (o.length < 2 || 2 !== i || 46 !== o.charCodeAt(o.length - 1) || 46 !== o.charCodeAt(o.length - 2)) if (o.length > 2) {
400
- if ((s = o.lastIndexOf("/")) !== o.length - 1) {
401
- -1 === s ? (o = "", i = 0) : i = (o = o.slice(0, s)).length - 1 - o.lastIndexOf("/"),
402
- a = n, l = 0;
400
+ if ((n = o.lastIndexOf("/")) !== o.length - 1) {
401
+ -1 === n ? (o = "", i = 0) : i = (o = o.slice(0, n)).length - 1 - o.lastIndexOf("/"),
402
+ a = s, l = 0;
403
403
  continue;
404
404
  }
405
405
  } else if (2 === o.length || 1 === o.length) {
406
- o = "", i = 0, a = n, l = 0;
406
+ o = "", i = 0, a = s, l = 0;
407
407
  continue;
408
408
  }
409
409
  t && (o.length > 0 ? o += "/.." : o = "..", i = 2);
410
- } else o.length > 0 ? o += "/" + e.slice(a + 1, n) : o = e.slice(a + 1, n), i = n - a - 1;
411
- a = n, l = 0;
410
+ } else o.length > 0 ? o += "/" + e.slice(a + 1, s) : o = e.slice(a + 1, s), i = s - a - 1;
411
+ a = s, l = 0;
412
412
  } else 46 === r && -1 !== l ? ++l : l = -1;
413
413
  }
414
414
  return o;
415
415
  }
416
416
 
417
417
  function specifierIncluded$1(e, t) {
418
- var r, n, s, o = e.split("."), i = t.split(" "), a = i.length > 1 ? i[0] : "=", l = (i.length > 1 ? i[1] : i[0]).split(".");
419
- for (r = 0; r < 3; ++r) if ((n = parseInt(o[r] || 0, 10)) !== (s = parseInt(l[r] || 0, 10))) return "<" === a ? n < s : ">=" === a && n >= s;
418
+ 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(".");
419
+ 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;
420
420
  return ">=" === a;
421
421
  }
422
422
 
423
423
  function matchesRange$1(e, t) {
424
- var r, n = t.split(/ ?&& ?/);
425
- if (0 === n.length) return !1;
426
- for (r = 0; r < n.length; ++r) if (!specifierIncluded$1(e, n[r])) return !1;
424
+ var r, s = t.split(/ ?&& ?/);
425
+ if (0 === s.length) return !1;
426
+ for (r = 0; r < s.length; ++r) if (!specifierIncluded$1(e, s[r])) return !1;
427
427
  return !0;
428
428
  }
429
429
 
430
430
  function specifierIncluded(e) {
431
- var t, r, n, s = e.split(" "), o = s.length > 1 ? s[0] : "=", i = (s.length > 1 ? s[1] : s[0]).split(".");
432
- for (t = 0; t < 3; ++t) if ((r = parseInt(current[t] || 0, 10)) !== (n = parseInt(i[t] || 0, 10))) return "<" === o ? r < n : ">=" === o && r >= n;
431
+ var t, r, s, n = e.split(" "), o = n.length > 1 ? n[0] : "=", i = (n.length > 1 ? n[1] : n[0]).split(".");
432
+ 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;
433
433
  return ">=" === o;
434
434
  }
435
435
 
@@ -524,29 +524,29 @@ function mockCompilerCtx(e) {
524
524
  return Object.defineProperty(t, "fs", {
525
525
  get() {
526
526
  return null == this._fs && (this._fs = (e => {
527
- const t = new Map, r = new Map, n = async (e, r = {}) => {
527
+ const t = new Map, r = new Map, s = async (e, r = {}) => {
528
528
  e = normalizePath(e);
529
- const n = [];
529
+ const s = [];
530
530
  if (!0 === r.inMemoryOnly) {
531
- let s = e;
532
- s.endsWith("/") || (s += "/");
531
+ let n = e;
532
+ n.endsWith("/") || (n += "/");
533
533
  const i = e.split("/");
534
- t.forEach(((t, s) => {
535
- if (!s.startsWith(e)) return;
536
- const a = s.split("/");
534
+ t.forEach(((t, n) => {
535
+ if (!n.startsWith(e)) return;
536
+ const a = n.split("/");
537
537
  if ((a.length === i.length + 1 || r.recursive && a.length > i.length) && t.exists) {
538
538
  const e = {
539
- absPath: s,
539
+ absPath: n,
540
540
  relPath: a[i.length],
541
541
  isDirectory: t.isDirectory,
542
542
  isFile: t.isFile
543
543
  };
544
- o(r, e) || n.push(e);
544
+ o(r, e) || s.push(e);
545
545
  }
546
546
  }));
547
- } else await s(e, e, r, n);
548
- return n.sort(((e, t) => e.absPath < t.absPath ? -1 : e.absPath > t.absPath ? 1 : 0));
549
- }, s = async (t, r, n, i) => {
547
+ } else await n(e, e, r, s);
548
+ return s.sort(((e, t) => e.absPath < t.absPath ? -1 : e.absPath > t.absPath ? 1 : 0));
549
+ }, n = async (t, r, s, i) => {
550
550
  const a = await e.readDir(r);
551
551
  if (a.length > 0) {
552
552
  const e = v(r);
@@ -557,7 +557,7 @@ function mockCompilerCtx(e) {
557
557
  isDirectory: c.isDirectory,
558
558
  isFile: c.isFile
559
559
  };
560
- o(n, u) || (i.push(u), !0 === n.recursive && !0 === c.isDirectory && await s(t, r, n, i));
560
+ o(s, u) || (i.push(u), !0 === s.recursive && !0 === c.isDirectory && await n(t, r, s, i));
561
561
  })));
562
562
  }
563
563
  }, o = (e, t) => {
@@ -575,7 +575,7 @@ function mockCompilerCtx(e) {
575
575
  const t = v(e);
576
576
  t.isFile = !1, t.isDirectory = !0, t.queueWriteToDisk || (t.queueDeleteFromDisk = !0);
577
577
  try {
578
- const t = await n(e, {
578
+ const t = await s(e, {
579
579
  recursive: !0
580
580
  });
581
581
  await Promise.all(t.map((e => e.relPath.endsWith(".gitkeep") ? null : a(e.absPath))));
@@ -586,9 +586,9 @@ function mockCompilerCtx(e) {
586
586
  }, l = async t => {
587
587
  const r = v(t);
588
588
  if ("boolean" != typeof r.isDirectory || "boolean" != typeof r.isFile) {
589
- const n = await e.stat(t);
590
- n.error ? r.exists = !1 : (r.exists = !0, n.isFile ? (r.isFile = !0, r.isDirectory = !1,
591
- r.size = n.size) : n.isDirectory ? (r.isFile = !1, r.isDirectory = !0, r.size = n.size) : (r.isFile = !1,
589
+ const s = await e.stat(t);
590
+ s.error ? r.exists = !1 : (r.exists = !0, s.isFile ? (r.isFile = !0, r.isDirectory = !1,
591
+ r.size = s.size) : s.isDirectory ? (r.isFile = !1, r.isDirectory = !0, r.size = s.size) : (r.isFile = !1,
592
592
  r.isDirectory = !1, r.size = null));
593
593
  }
594
594
  return {
@@ -600,9 +600,9 @@ function mockCompilerCtx(e) {
600
600
  }, c = t => {
601
601
  const r = v(t);
602
602
  if ("boolean" != typeof r.isDirectory || "boolean" != typeof r.isFile) {
603
- const n = e.statSync(t);
604
- n.error ? r.exists = !1 : (r.exists = !0, n.isFile ? (r.isFile = !0, r.isDirectory = !1,
605
- r.size = n.size) : n.isDirectory ? (r.isFile = !1, r.isDirectory = !0, r.size = n.size) : (r.isFile = !1,
603
+ const s = e.statSync(t);
604
+ s.error ? r.exists = !1 : (r.exists = !0, s.isFile ? (r.isFile = !0, r.isDirectory = !1,
605
+ r.size = s.size) : s.isDirectory ? (r.isFile = !1, r.isDirectory = !0, r.size = s.size) : (r.isFile = !1,
606
606
  r.isDirectory = !1, r.size = null));
607
607
  }
608
608
  return {
@@ -611,9 +611,9 @@ function mockCompilerCtx(e) {
611
611
  isDirectory: !!r.isDirectory,
612
612
  size: r.size
613
613
  };
614
- }, u = async (t, n, s) => {
614
+ }, u = async (t, s, n) => {
615
615
  if ("string" != typeof t) throw new Error(`writeFile, invalid filePath: ${t}`);
616
- if ("string" != typeof n) throw new Error(`writeFile, invalid content: ${t}`);
616
+ if ("string" != typeof s) throw new Error(`writeFile, invalid content: ${t}`);
617
617
  const o = {
618
618
  ignored: !1,
619
619
  changedContent: !1,
@@ -622,11 +622,11 @@ function mockCompilerCtx(e) {
622
622
  if (!0 === shouldIgnore(t)) return o.ignored = !0, o;
623
623
  const i = v(t);
624
624
  if (i.exists = !0, i.isFile = !0, i.isDirectory = !1, i.queueDeleteFromDisk = !1,
625
- "string" == typeof i.fileText ? o.changedContent = i.fileText.replace(/\r/g, "") !== n.replace(/\r/g, "") : o.changedContent = !0,
626
- i.fileText = n, o.queuedWrite = !1, null != s && ("string" == typeof s.outputTargetType && r.set(t, s.outputTargetType),
627
- !1 === s.useCache && (i.useCache = !1)), null != s && !0 === s.inMemoryOnly) i.queueWriteToDisk ? o.queuedWrite = !0 : i.queueWriteToDisk = !1,
628
- await d(t, !0); else if (null != s && !0 === s.immediateWrite) {
629
- if (o.changedContent || !0 !== s.useCache) {
625
+ "string" == typeof i.fileText ? o.changedContent = i.fileText.replace(/\r/g, "") !== s.replace(/\r/g, "") : o.changedContent = !0,
626
+ i.fileText = s, o.queuedWrite = !1, null != n && ("string" == typeof n.outputTargetType && r.set(t, n.outputTargetType),
627
+ !1 === n.useCache && (i.useCache = !1)), null != n && !0 === n.inMemoryOnly) i.queueWriteToDisk ? o.queuedWrite = !0 : i.queueWriteToDisk = !1,
628
+ await d(t, !0); else if (null != n && !0 === n.immediateWrite) {
629
+ if (o.changedContent || !0 !== n.useCache) {
630
630
  const r = await e.readFile(t);
631
631
  "string" == typeof r && (o.changedContent = i.fileText.replace(/\r/g, "") !== r.replace(/\r/g, "")),
632
632
  o.changedContent && (await d(t, !1), await e.writeFile(t, i.fileText));
@@ -639,17 +639,17 @@ function mockCompilerCtx(e) {
639
639
  for (;"string" == typeof (e = path$2.dirname(e)) && e.length > 0 && "/" !== e && !1 === e.endsWith(":/") && !1 === e.endsWith(":\\"); ) r.push(e);
640
640
  r.reverse(), await h(r, t);
641
641
  }, h = async (t, r) => {
642
- const n = [];
643
- for (const s of t) {
644
- const t = v(s);
642
+ const s = [];
643
+ for (const n of t) {
644
+ const t = v(n);
645
645
  if (!0 !== t.exists || !0 !== t.isDirectory) try {
646
- t.exists = !0, t.isDirectory = !0, t.isFile = !1, r || await e.createDir(s), n.push(s);
646
+ t.exists = !0, t.isDirectory = !0, t.isFile = !1, r || await e.createDir(n), s.push(n);
647
647
  } catch (e) {}
648
648
  }
649
- return n;
649
+ return s;
650
650
  }, p = t => Promise.all(t.map((async t => {
651
- const [r, n] = t;
652
- return await e.copyFile(r, n), [ r, n ];
651
+ const [r, s] = t;
652
+ return await e.copyFile(r, s), [ r, s ];
653
653
  }))), f = e => Promise.all(e.map((async e => {
654
654
  if ("string" != typeof e) throw new Error("unable to writeFile without filePath");
655
655
  return m(e);
@@ -662,12 +662,12 @@ function mockCompilerCtx(e) {
662
662
  return await e.removeFile(t), t;
663
663
  }))), y = async t => {
664
664
  const r = [];
665
- for (const n of t) await e.removeDir(n), r.push(n);
665
+ for (const s of t) await e.removeDir(s), r.push(s);
666
666
  return r;
667
667
  }, w = e => {
668
668
  e = normalizePath(e), t.forEach(((t, r) => {
669
- const n = path$2.relative(e, r).split("/")[0];
670
- n.startsWith(".") || n.startsWith("/") || _(r);
669
+ const s = path$2.relative(e, r).split("/")[0];
670
+ s.startsWith(".") || s.startsWith("/") || _(r);
671
671
  }));
672
672
  }, _ = e => {
673
673
  e = normalizePath(e);
@@ -716,10 +716,10 @@ function mockCompilerCtx(e) {
716
716
  clearDirCache: w,
717
717
  clearFileCache: _,
718
718
  commit: async () => {
719
- const e = getCommitInstructions(t), r = await h(e.dirsToEnsure, !1), n = await f(e.filesToWrite), s = await p(e.filesToCopy), o = await g(e.filesToDelete), i = await y(e.dirsToDelete);
719
+ const e = getCommitInstructions(t), r = await h(e.dirsToEnsure, !1), s = await f(e.filesToWrite), n = await p(e.filesToCopy), o = await g(e.filesToDelete), i = await y(e.dirsToDelete);
720
720
  return e.filesToDelete.forEach(_), e.dirsToDelete.forEach(w), {
721
- filesCopied: s,
722
- filesWritten: n,
721
+ filesCopied: n,
722
+ filesWritten: s,
723
723
  filesDeleted: o,
724
724
  dirsDeleted: i,
725
725
  dirsAdded: r
@@ -731,13 +731,13 @@ function mockCompilerCtx(e) {
731
731
  emptyDirs: async e => {
732
732
  e = e.filter(isString).map(normalizePath).reduce(((e, t) => (e.includes(t) || e.push(t),
733
733
  e)), []);
734
- const t = await Promise.all(e.map((e => n(e, {
734
+ const t = await Promise.all(e.map((e => s(e, {
735
735
  recursive: !0
736
736
  })))), r = [];
737
737
  for (const e of t) for (const t of e) r.includes(t.absPath) || r.push(t.absPath);
738
738
  r.sort(((e, t) => {
739
- const r = e.split("/").length, n = t.split("/").length;
740
- return r < n ? 1 : r > n ? -1 : 0;
739
+ const r = e.split("/").length, s = t.split("/").length;
740
+ return r < s ? 1 : r > s ? -1 : 0;
741
741
  })), await Promise.all(r.map(a)), e.forEach((e => {
742
742
  const t = v(e);
743
743
  t.isFile = !1, t.isDirectory = !0, t.queueWriteToDisk = !0, t.queueDeleteFromDisk = !1;
@@ -746,8 +746,8 @@ function mockCompilerCtx(e) {
746
746
  getBuildOutputs: () => {
747
747
  const e = [];
748
748
  return r.forEach(((t, r) => {
749
- const n = e.find((e => e.type === t));
750
- n ? n.files.push(r) : e.push({
749
+ const s = e.find((e => e.type === t));
750
+ s ? s.files.push(r) : e.push({
751
751
  type: t,
752
752
  files: [ r ]
753
753
  });
@@ -760,20 +760,20 @@ function mockCompilerCtx(e) {
760
760
  const e = v(t);
761
761
  if (e.exists && "string" == typeof e.fileText) return e.fileText;
762
762
  }
763
- const n = await e.readFile(t), s = v(t);
764
- return "string" == typeof n ? n.length < b && (s.exists = !0, s.isFile = !0, s.isDirectory = !1,
765
- s.fileText = n) : s.exists = !1, n;
763
+ const s = await e.readFile(t), n = v(t);
764
+ return "string" == typeof s ? s.length < b && (n.exists = !0, n.isFile = !0, n.isDirectory = !1,
765
+ n.fileText = s) : n.exists = !1, s;
766
766
  },
767
767
  readFileSync: (t, r) => {
768
768
  if (null == r || !0 === r.useCache || void 0 === r.useCache) {
769
769
  const e = v(t);
770
770
  if (e.exists && "string" == typeof e.fileText) return e.fileText;
771
771
  }
772
- const n = e.readFileSync(t), s = v(t);
773
- return "string" == typeof n ? n.length < b && (s.exists = !0, s.isFile = !0, s.isDirectory = !1,
774
- s.fileText = n) : s.exists = !1, n;
772
+ const s = e.readFileSync(t), n = v(t);
773
+ return "string" == typeof s ? s.length < b && (n.exists = !0, n.isFile = !0, n.isDirectory = !1,
774
+ n.fileText = s) : n.exists = !1, s;
775
775
  },
776
- readdir: n,
776
+ readdir: s,
777
777
  remove: async e => {
778
778
  const t = await l(e);
779
779
  !0 === t.isDirectory ? await i(e) : !0 === t.isFile && await a(e);
@@ -784,10 +784,10 @@ function mockCompilerCtx(e) {
784
784
  writeFile: u,
785
785
  writeFiles: (e, t) => {
786
786
  const r = [];
787
- return isIterable(e) ? e.forEach(((e, n) => {
788
- r.push(u(n, e, t));
789
- })) : Object.keys(e).map((n => {
790
- r.push(u(n, e[n], t));
787
+ return isIterable(e) ? e.forEach(((e, s) => {
788
+ r.push(u(s, e, t));
789
+ })) : Object.keys(e).map((s => {
790
+ r.push(u(s, e[s], t));
791
791
  })), Promise.all(r);
792
792
  }
793
793
  };
@@ -810,14 +810,14 @@ function mockLogger() {
810
810
 
811
811
  function findRootComponent(e, t) {
812
812
  if (null != t) {
813
- const r = t.children, n = r.length;
814
- for (let t = 0; t < n; t++) {
815
- const n = r[t];
816
- if (e.has(n.nodeName.toLowerCase())) return n;
813
+ const r = t.children, s = r.length;
814
+ for (let t = 0; t < s; t++) {
815
+ const s = r[t];
816
+ if (e.has(s.nodeName.toLowerCase())) return s;
817
817
  }
818
- for (let t = 0; t < n; t++) {
819
- const n = findRootComponent(e, r[t]);
820
- if (null != n) return n;
818
+ for (let t = 0; t < s; t++) {
819
+ const s = findRootComponent(e, r[t]);
820
+ if (null != s) return s;
821
821
  }
822
822
  }
823
823
  return null;
@@ -826,55 +826,55 @@ function findRootComponent(e, t) {
826
826
  async function initPageEvents(e) {
827
827
  e._e2eEvents = new Map, e._e2eEventIds = 0, e.spyOnEvent = pageSpyOnEvent.bind(e, e),
828
828
  await e.exposeFunction("rindoOnEvent", ((t, r) => {
829
- !function n(e, t, r) {
830
- const n = e.get(t);
831
- n && n.callback(r);
829
+ !function s(e, t, r) {
830
+ const s = e.get(t);
831
+ s && s.callback(r);
832
832
  }(e._e2eEvents, t, r);
833
833
  })), await e.evaluateOnNewDocument(browserContextEvents);
834
834
  }
835
835
 
836
836
  async function pageSpyOnEvent(e, t, r) {
837
- const n = new EventSpy(t), s = "document" !== r ? () => window : () => document, o = await e.evaluateHandle(s);
837
+ const s = new EventSpy(t), n = "document" !== r ? () => window : () => document, o = await e.evaluateHandle(n);
838
838
  return await addE2EListener(e, o, t, (e => {
839
- n.push(e);
840
- })), n;
839
+ s.push(e);
840
+ })), s;
841
841
  }
842
842
 
843
843
  async function waitForEvent(e, t, r) {
844
- const n = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, s = await e.evaluate(((e, t, r) => new Promise(((n, s) => {
844
+ const s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = await e.evaluate(((e, t, r) => new Promise(((s, n) => {
845
845
  const o = setTimeout((() => {
846
- s(new Error(`waitForEvent() timeout, eventName: ${t}`));
846
+ n(new Error(`waitForEvent() timeout, eventName: ${t}`));
847
847
  }), r);
848
848
  e.addEventListener(t, (e => {
849
- clearTimeout(o), n(window.rindoSerializeEvent(e));
849
+ clearTimeout(o), s(window.rindoSerializeEvent(e));
850
850
  }), {
851
851
  once: !0
852
852
  });
853
- }))), r, t, n);
854
- return await e.waitForChanges(), s;
853
+ }))), r, t, s);
854
+ return await e.waitForChanges(), n;
855
855
  }
856
856
 
857
- async function addE2EListener(e, t, r, n) {
858
- const s = e._e2eEventIds++;
859
- e._e2eEvents.set(s, {
857
+ async function addE2EListener(e, t, r, s) {
858
+ const n = e._e2eEventIds++;
859
+ e._e2eEvents.set(n, {
860
860
  eventName: r,
861
- callback: n
861
+ callback: s
862
862
  });
863
863
  const o = t.executionContext();
864
864
  await o.evaluate(((e, t, r) => {
865
865
  e.addEventListener(r, (e => {
866
866
  window.rindoOnEvent(t, window.rindoSerializeEvent(e));
867
867
  }));
868
- }), t, s, r);
868
+ }), t, n, r);
869
869
  }
870
870
 
871
871
  function browserContextEvents() {
872
872
  const e = () => {
873
873
  const e = [], t = (e, r) => {
874
- if (null != r && 1 === r.nodeType) for (let n = 0; n < r.children.length; n++) {
875
- const s = r.children[n];
876
- s.tagName.includes("-") && "function" == typeof s.componentOnReady && e.push(s.componentOnReady()),
877
- t(e, s);
874
+ if (null != r && 1 === r.nodeType) for (let s = 0; s < r.children.length; s++) {
875
+ const n = r.children[s];
876
+ n.tagName.includes("-") && "function" == typeof n.componentOnReady && e.push(n.componentOnReady()),
877
+ t(e, n);
878
878
  }
879
879
  };
880
880
  return t(e, window.document.documentElement), Promise.all(e).catch((e => console.error(e)));
@@ -917,62 +917,62 @@ function browserContextEvents() {
917
917
  }
918
918
 
919
919
  async function find(e, t, r) {
920
- const {lightSelector: n, shadowSelector: s, text: o, contains: i} = getSelector(r);
920
+ const {lightSelector: s, shadowSelector: n, text: o, contains: i} = getSelector(r);
921
921
  let a;
922
- if (a = "string" == typeof n ? await async function l(e, t, r, n) {
923
- let s = await t.$(r);
924
- if (!s) return null;
925
- if (n) {
922
+ if (a = "string" == typeof s ? await async function l(e, t, r, s) {
923
+ let n = await t.$(r);
924
+ if (!n) return null;
925
+ if (s) {
926
926
  const t = await e.evaluateHandle(((e, t) => {
927
927
  if (!e.shadowRoot) throw new Error(`shadow root does not exist for element: ${e.tagName.toLowerCase()}`);
928
928
  return e.shadowRoot.querySelector(t);
929
- }), s, n);
930
- if (await s.dispose(), !t) return null;
931
- s = t.asElement();
929
+ }), n, s);
930
+ if (await n.dispose(), !t) return null;
931
+ n = t.asElement();
932
932
  }
933
- return s;
934
- }(e, t, n, s) : await async function c(e, t, r, n) {
935
- const s = await e.evaluateHandle(((e, t, r) => {
936
- let n = null;
937
- return function e(s) {
938
- if (s && !n) if (3 === s.nodeType) {
939
- if ("string" == typeof t && s.textContent.trim() === t) return void (n = s.parentElement);
940
- if ("string" == typeof r && s.textContent.includes(r)) return void (n = s.parentElement);
933
+ return n;
934
+ }(e, t, s, n) : await async function c(e, t, r, s) {
935
+ const n = await e.evaluateHandle(((e, t, r) => {
936
+ let s = null;
937
+ return function e(n) {
938
+ if (n && !s) if (3 === n.nodeType) {
939
+ if ("string" == typeof t && n.textContent.trim() === t) return void (s = n.parentElement);
940
+ if ("string" == typeof r && n.textContent.includes(r)) return void (s = n.parentElement);
941
941
  } else {
942
- if ("SCRIPT" === s.nodeName || "STYLE" === s.nodeName) return;
943
- if (e(s.shadowRoot), s.childNodes) for (let t = 0; t < s.childNodes.length; t++) e(s.childNodes[t]);
942
+ if ("SCRIPT" === n.nodeName || "STYLE" === n.nodeName) return;
943
+ if (e(n.shadowRoot), n.childNodes) for (let t = 0; t < n.childNodes.length; t++) e(n.childNodes[t]);
944
944
  }
945
- }(e), n;
946
- }), t, r, n);
947
- return s ? s.asElement() : null;
945
+ }(e), s;
946
+ }), t, r, s);
947
+ return n ? n.asElement() : null;
948
948
  }(e, t, o, i), !a) return null;
949
949
  const u = new E2EElement(e, a);
950
950
  return await u.e2eSync(), u;
951
951
  }
952
952
 
953
953
  async function findAll(e, t, r) {
954
- const n = [], {lightSelector: s, shadowSelector: o} = getSelector(r), i = await t.$$(s);
955
- if (0 === i.length) return n;
954
+ const s = [], {lightSelector: n, shadowSelector: o} = getSelector(r), i = await t.$$(n);
955
+ if (0 === i.length) return s;
956
956
  if (o) for (let t = 0; t < i.length; t++) {
957
- const r = i[t].executionContext(), s = await r.evaluateHandle(((e, t) => {
957
+ const r = i[t].executionContext(), n = await r.evaluateHandle(((e, t) => {
958
958
  if (!e.shadowRoot) throw new Error(`shadow root does not exist for element: ${e.tagName.toLowerCase()}`);
959
959
  return e.shadowRoot.querySelectorAll(t);
960
960
  }), i[t], o);
961
961
  await i[t].dispose();
962
- const a = await s.getProperties();
963
- await s.dispose();
962
+ const a = await n.getProperties();
963
+ await n.dispose();
964
964
  for (const t of a.values()) {
965
965
  const r = t.asElement();
966
966
  if (r) {
967
967
  const t = new E2EElement(e, r);
968
- await t.e2eSync(), n.push(t);
968
+ await t.e2eSync(), s.push(t);
969
969
  }
970
970
  }
971
971
  } else for (let t = 0; t < i.length; t++) {
972
972
  const r = new E2EElement(e, i[t]);
973
- await r.e2eSync(), n.push(r);
973
+ await r.e2eSync(), s.push(r);
974
974
  }
975
- return n;
975
+ return s;
976
976
  }
977
977
 
978
978
  function getSelector(e) {
@@ -993,22 +993,22 @@ function getSelector(e) {
993
993
  }
994
994
 
995
995
  async function writeScreenshotData(e, t) {
996
- const r = function n(e, t) {
996
+ const r = function s(e, t) {
997
997
  const r = `${t}.json`;
998
998
  return path__default.default.join(e, r);
999
- }(e, t.id), s = JSON.stringify(t, null, 2);
1000
- await writeFile(r, s);
999
+ }(e, t.id), n = JSON.stringify(t, null, 2);
1000
+ await writeFile(r, n);
1001
1001
  }
1002
1002
 
1003
1003
  function writeFile(e, t) {
1004
- return new Promise(((r, n) => {
1004
+ return new Promise(((r, s) => {
1005
1005
  fs__default.default.writeFile(e, t, (e => {
1006
- e ? n(e) : r();
1006
+ e ? s(e) : r();
1007
1007
  }));
1008
1008
  }));
1009
1009
  }
1010
1010
 
1011
- async function compareScreenshot(e, t, r, n, s, o, i, a) {
1011
+ async function compareScreenshot(e, t, r, s, n, o, i, a) {
1012
1012
  const l = `${crypto$3.createHash("md5").update(r).digest("hex")}.png`, c = path$2.join(t.imagesDir, l);
1013
1013
  await async function u(e, t) {
1014
1014
  await function r(e) {
@@ -1023,14 +1023,14 @@ async function compareScreenshot(e, t, r, n, s, o, i, a) {
1023
1023
  return r.update(t + ":"), r.update(e.userAgent + ":"), r.update(e.viewport.width + ":"),
1024
1024
  r.update(e.viewport.height + ":"), r.update(e.viewport.deviceScaleFactor + ":"),
1025
1025
  r.update(e.viewport.hasTouch + ":"), r.update(e.viewport.isMobile + ":"), r.digest("hex").slice(0, 8).toLowerCase();
1026
- }(e, n), p = {
1026
+ }(e, s), p = {
1027
1027
  id: d,
1028
1028
  image: l,
1029
1029
  device: e.device,
1030
1030
  userAgent: e.userAgent,
1031
- desc: n,
1031
+ desc: s,
1032
1032
  testPath: i,
1033
- width: s,
1033
+ width: n,
1034
1034
  height: o,
1035
1035
  deviceScaleFactor: e.viewport.deviceScaleFactor,
1036
1036
  hasTouch: e.viewport.hasTouch,
@@ -1038,13 +1038,13 @@ async function compareScreenshot(e, t, r, n, s, o, i, a) {
1038
1038
  isMobile: e.viewport.isMobile,
1039
1039
  diff: {
1040
1040
  id: d,
1041
- desc: n,
1041
+ desc: s,
1042
1042
  imageA: l,
1043
1043
  imageB: l,
1044
1044
  mismatchedPixels: 0,
1045
1045
  device: e.device,
1046
1046
  userAgent: e.userAgent,
1047
- width: s,
1047
+ width: n,
1048
1048
  height: o,
1049
1049
  deviceScaleFactor: e.viewport.deviceScaleFactor,
1050
1050
  hasTouch: e.viewport.hasTouch,
@@ -1060,40 +1060,40 @@ async function compareScreenshot(e, t, r, n, s, o, i, a) {
1060
1060
  if (!f) return await writeScreenshotData(t.currentBuildDir, p), p.diff;
1061
1061
  if (p.diff.imageA = f, p.diff.imageA !== p.diff.imageB) {
1062
1062
  p.diff.cacheKey = function m(e, t, r) {
1063
- const n = crypto$3.createHash("md5");
1064
- return n.update(`${e}:${t}:${r}`), n.digest("hex").slice(0, 10);
1063
+ const s = crypto$3.createHash("md5");
1064
+ return s.update(`${e}:${t}:${r}`), s.digest("hex").slice(0, 10);
1065
1065
  }(p.diff.imageA, p.diff.imageB, a);
1066
1066
  const r = t.cache[p.diff.cacheKey];
1067
1067
  if ("number" != typeof r || isNaN(r)) {
1068
- const r = Math.round(e.viewport.width * e.viewport.deviceScaleFactor), n = Math.round(e.viewport.height * e.viewport.deviceScaleFactor), s = {
1068
+ const r = Math.round(e.viewport.width * e.viewport.deviceScaleFactor), s = Math.round(e.viewport.height * e.viewport.deviceScaleFactor), n = {
1069
1069
  imageAPath: path$2.join(t.imagesDir, p.diff.imageA),
1070
1070
  imageBPath: path$2.join(t.imagesDir, p.diff.imageB),
1071
1071
  width: r,
1072
- height: n,
1072
+ height: s,
1073
1073
  pixelmatchThreshold: a
1074
1074
  };
1075
1075
  p.diff.mismatchedPixels = await async function g(e, t) {
1076
- return new Promise(((r, n) => {
1077
- const s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, o = setTimeout((() => {
1078
- n(`getMismatchedPixels timeout: ${s}ms`);
1079
- }), s);
1076
+ return new Promise(((r, s) => {
1077
+ const n = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, o = setTimeout((() => {
1078
+ s(`getMismatchedPixels timeout: ${n}ms`);
1079
+ }), n);
1080
1080
  try {
1081
- const s = {
1081
+ const n = {
1082
1082
  execArgv: process.execArgv.filter((e => !/^--(debug|inspect)/.test(e))),
1083
1083
  env: process.env,
1084
1084
  cwd: process.cwd(),
1085
1085
  stdio: [ "pipe", "pipe", "pipe", "ipc" ]
1086
- }, i = child_process$2.fork(e, [], s);
1086
+ }, i = child_process$2.fork(e, [], n);
1087
1087
  i.on("message", (e => {
1088
1088
  i.kill(), clearTimeout(o), r(e);
1089
1089
  })), i.on("error", (e => {
1090
- clearTimeout(o), n(e);
1090
+ clearTimeout(o), s(e);
1091
1091
  })), i.send(t);
1092
1092
  } catch (e) {
1093
- clearTimeout(o), n(`getMismatchedPixels error: ${e}`);
1093
+ clearTimeout(o), s(`getMismatchedPixels error: ${e}`);
1094
1094
  }
1095
1095
  }));
1096
- }(t.pixelmatchModulePath, s);
1096
+ }(t.pixelmatchModulePath, n);
1097
1097
  } else p.diff.mismatchedPixels = r;
1098
1098
  }
1099
1099
  return await writeScreenshotData(t.currentBuildDir, p), p.diff;
@@ -1103,11 +1103,11 @@ async function e2eGoTo(e, t, r = {}) {
1103
1103
  if (e.isClosed()) throw new Error("e2eGoTo unavailable: page already closed");
1104
1104
  if ("string" != typeof t) throw new Error("invalid gotoTest() url");
1105
1105
  if (!t.startsWith("/")) throw new Error("gotoTest() url must start with /");
1106
- const n = env.__RINDO_BROWSER_URL__;
1107
- if ("string" != typeof n) throw new Error("invalid gotoTest() browser url");
1108
- const s = n + t.substring(1);
1106
+ const s = env.__RINDO_BROWSER_URL__;
1107
+ if ("string" != typeof s) throw new Error("invalid gotoTest() browser url");
1108
+ const n = s + t.substring(1);
1109
1109
  r.waitUntil || (r.waitUntil = env.__RINDO_BROWSER_WAIT_UNTIL);
1110
- const o = await e._e2eGoto(s, r);
1110
+ const o = await e._e2eGoto(n, r);
1111
1111
  if (!o.ok()) throw new Error(`Testing unable to load ${t}, HTTP status: ${o.status()}`);
1112
1112
  return await waitForRindo(e, r), o;
1113
1113
  }
@@ -1115,18 +1115,18 @@ async function e2eGoTo(e, t, r = {}) {
1115
1115
  async function e2eSetContent(e, t, r = {}) {
1116
1116
  if (e.isClosed()) throw new Error("e2eSetContent unavailable: page already closed");
1117
1117
  if ("string" != typeof t) throw new Error("invalid e2eSetContent() html");
1118
- const n = [], s = env.__RINDO_APP_SCRIPT_URL__;
1119
- if ("string" != typeof s) throw new Error("invalid e2eSetContent() app script url");
1120
- n.push("<!doctype html>"), n.push("<html>"), n.push("<head>");
1118
+ const s = [], n = env.__RINDO_APP_SCRIPT_URL__;
1119
+ if ("string" != typeof n) throw new Error("invalid e2eSetContent() app script url");
1120
+ s.push("<!doctype html>"), s.push("<html>"), s.push("<head>");
1121
1121
  const o = env.__RINDO_APP_STYLE_URL__;
1122
- "string" == typeof o && n.push(`<link rel="stylesheet" href="${o}">`), n.push(`<script type="module" src="${s}"><\/script>`),
1123
- n.push("</head>"), n.push("<body>"), n.push(t), n.push("</body>"), n.push("</html>");
1122
+ "string" == typeof o && s.push(`<link rel="stylesheet" href="${o}">`), s.push(`<script type="module" src="${n}"><\/script>`),
1123
+ s.push("</head>"), s.push("<body>"), s.push(t), s.push("</body>"), s.push("</html>");
1124
1124
  const i = env.__RINDO_BROWSER_URL__;
1125
1125
  await e.setRequestInterception(!0), e.on("request", (e => {
1126
1126
  i === e.url() ? e.respond({
1127
1127
  status: 200,
1128
1128
  contentType: "text/html",
1129
- body: n.join("\n")
1129
+ body: s.join("\n")
1130
1130
  }) : e.continue();
1131
1131
  })), r.waitUntil || (r.waitUntil = env.__RINDO_BROWSER_WAIT_UNTIL);
1132
1132
  const a = await e._e2eGoto(i, r);
@@ -1154,11 +1154,11 @@ async function waitForChanges(e) {
1154
1154
  const t = [], r = (e, t) => {
1155
1155
  if (null != e) {
1156
1156
  "shadowRoot" in e && e.shadowRoot instanceof ShadowRoot && r(e.shadowRoot, t);
1157
- const n = e.children, s = n.length;
1158
- for (let e = 0; e < s; e++) {
1159
- const s = n[e];
1160
- null != s && (s.tagName.includes("-") && "function" == typeof s.componentOnReady && t.push(s.componentOnReady()),
1161
- r(s, t));
1157
+ const s = e.children, n = s.length;
1158
+ for (let e = 0; e < n; e++) {
1159
+ const n = s[e];
1160
+ null != n && (n.tagName.includes("-") && "function" == typeof n.componentOnReady && t.push(n.componentOnReady()),
1161
+ r(n, t));
1162
1162
  }
1163
1163
  }
1164
1164
  };
@@ -1182,9 +1182,9 @@ function serializeConsoleMessage(e) {
1182
1182
  }(e.location())}`;
1183
1183
  }
1184
1184
 
1185
- var posix, pathBrowserify, homedir$2, caller, pathParse, parse, getNodeModulesDirs, nodeModulesPaths, normalizeOptions, ERROR_MESSAGE, slice, toStr, implementation, functionBind, src, isCoreModule, realpathFS$1, homedir$1, defaultPaths$1, defaultIsFile$1, defaultIsDir$1, defaultRealpath, maybeRealpath, defaultReadPackage, getPackageCandidates$1, async, current, core, mod, core_1, isCore, realpathFS, homedir, defaultPaths, defaultIsFile, defaultIsDir, defaultRealpathSync, maybeRealpathSync, defaultReadPackageSync, getPackageCandidates, sync, resolve;
1185
+ var posix, pathBrowserify, caller, pathParse, parse, getNodeModulesDirs, nodeModulesPaths, normalizeOptions, ERROR_MESSAGE, slice, toStr, implementation, functionBind, src, isCoreModule, realpathFS$1, defaultIsFile$1, defaultIsDir$1, defaultRealpath, maybeRealpath, defaultReadPackage, getPackageCandidates$1, async, current, core, mod, core_1, isCore, realpathFS, defaultIsFile, defaultIsDir, defaultRealpathSync, maybeRealpathSync, defaultReadPackageSync, getPackageCandidates, sync, resolve;
1186
1186
 
1187
- const path$2 = require("path"), index_js = _lazyRequire("../dev-server/index.js"), rindo_js = require("../compiler/rindo.js"), appData = _lazyRequire("@rindo/core/internal/app-data"), index_cjs = _lazyRequire("../mock-doc/index.cjs"), testing = _lazyRequire("@rindo/core/internal/testing"), process$3 = require("process"), os$2 = require("os"), fs$2 = require("fs"), crypto$3 = require("crypto"), child_process$2 = require("child_process"), path__default = _interopDefaultLegacy(path$2), process__namespace = _interopNamespace(process$3), os__default = _interopDefaultLegacy(os$2), os__namespace = _interopNamespace(os$2), fs__default = _interopDefaultLegacy(fs$2), formatComponentRuntimeMembers = (e, t = !0) => ({
1187
+ const path$2 = require("path"), index_js = _lazyRequire("../dev-server/index.js"), rindo_js = require("../compiler/rindo.js"), appData = _lazyRequire("@rindo/core/internal/app-data"), index_cjs = _lazyRequire("../mock-doc/index.cjs"), testing = _lazyRequire("@rindo/core/internal/testing"), process$3 = require("process"), os$2 = require("os"), fs$2 = require("fs"), crypto$3 = require("crypto"), child_process$2 = require("child_process"), path__default = _interopDefaultLegacy(path$2), process__namespace = _interopNamespace(process$3), os__namespace = _interopNamespace(os$2), fs__default = _interopDefaultLegacy(fs$2), formatComponentRuntimeMembers = (e, t = !0) => ({
1188
1188
  ...formatPropertiesRuntimeMember(e.properties),
1189
1189
  ...formatStatesRuntimeMember(e.states),
1190
1190
  ...t ? formatMethodsRuntimeMember(e.methods) : {}
@@ -1237,21 +1237,21 @@ const path$2 = require("path"), index_js = _lazyRequire("../dev-server/index.js"
1237
1237
  }, 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 => {
1238
1238
  if ("string" != typeof e) throw new Error("invalid path to normalize");
1239
1239
  e = normalizeSlashes(e.trim());
1240
- const t = pathComponents(e, getRootLength(e)), r = reducePathComponents(t), n = r[0], s = r[1], o = n + r.slice(1).join("/");
1241
- return "" === o ? "." : "" === n && s && e.includes("/") && !s.startsWith(".") && !s.startsWith("@") ? "./" + o : o;
1240
+ const t = pathComponents(e, getRootLength(e)), r = reducePathComponents(t), s = r[0], n = r[1], o = s + r.slice(1).join("/");
1241
+ return "" === o ? "." : "" === s && n && e.includes("/") && !n.startsWith(".") && !n.startsWith("@") ? "./" + o : o;
1242
1242
  }, normalizeSlashes = e => e.replace(backslashRegExp, "/"), backslashRegExp = /\\/g, reducePathComponents = e => {
1243
1243
  if (!Array.isArray(e) || 0 === e.length) return [];
1244
1244
  const t = [ e[0] ];
1245
1245
  for (let r = 1; r < e.length; r++) {
1246
- const n = e[r];
1247
- if (n && "." !== n) {
1248
- if (".." === n) if (t.length > 1) {
1246
+ const s = e[r];
1247
+ if (s && "." !== s) {
1248
+ if (".." === s) if (t.length > 1) {
1249
1249
  if (".." !== t[t.length - 1]) {
1250
1250
  t.pop();
1251
1251
  continue;
1252
1252
  }
1253
1253
  } else if (t[0]) continue;
1254
- t.push(n);
1254
+ t.push(s);
1255
1255
  }
1256
1256
  }
1257
1257
  return t;
@@ -1273,17 +1273,17 @@ const path$2 = require("path"), index_js = _lazyRequire("../dev-server/index.js"
1273
1273
  }
1274
1274
  const r = e.indexOf("://");
1275
1275
  if (-1 !== r) {
1276
- const t = r + "://".length, n = e.indexOf("/", t);
1277
- if (-1 !== n) {
1278
- const s = e.slice(0, r), o = e.slice(t, n);
1279
- if ("file" === s && ("" === o || "localhost" === o) && isVolumeCharacter(e.charCodeAt(n + 1))) {
1280
- const t = getFileUrlVolumeSeparatorEnd(e, n + 2);
1276
+ const t = r + "://".length, s = e.indexOf("/", t);
1277
+ if (-1 !== s) {
1278
+ const n = e.slice(0, r), o = e.slice(t, s);
1279
+ if ("file" === n && ("" === o || "localhost" === o) && isVolumeCharacter(e.charCodeAt(s + 1))) {
1280
+ const t = getFileUrlVolumeSeparatorEnd(e, s + 2);
1281
1281
  if (-1 !== t) {
1282
1282
  if (47 === e.charCodeAt(t)) return ~(t + 1);
1283
1283
  if (t === e.length) return ~t;
1284
1284
  }
1285
1285
  }
1286
- return ~(n + 1);
1286
+ return ~(s + 1);
1287
1287
  }
1288
1288
  return ~e.length;
1289
1289
  }
@@ -1297,40 +1297,40 @@ const path$2 = require("path"), index_js = _lazyRequire("../dev-server/index.js"
1297
1297
  }
1298
1298
  return -1;
1299
1299
  }, pathComponents = (e, t) => {
1300
- const r = e.substring(0, t), n = e.substring(t).split("/"), s = n.length;
1301
- return s > 0 && !n[s - 1] && n.pop(), [ r, ...n ];
1300
+ const r = e.substring(0, t), s = e.substring(t).split("/"), n = s.length;
1301
+ return n > 0 && !s[n - 1] && s.pop(), [ r, ...s ];
1302
1302
  }, normalizeFsPath = e => normalizePath(e.split("?")[0].replace(/\0/g, "")), flattenDiagnosticMessageText = (e, t) => {
1303
1303
  if ("string" == typeof t) return t;
1304
1304
  if (void 0 === t) return "";
1305
- const r = [], n = e.file.fileName.includes("rindo.config");
1306
- n && r.push(2322);
1307
- let s = "";
1308
- if (!r.includes(t.code) && (s = t.messageText, isIterable(t.next))) for (const r of t.next) s += flattenDiagnosticMessageText(e, r);
1309
- return n && (s = s.replace("type 'RindoConfig'", "Rindo Config"), s = s.replace("Object literal may only specify known properties, but ", ""),
1310
- s = s.replace("Object literal may only specify known properties, and ", "")), s.trim();
1305
+ const r = [], s = e.file.fileName.includes("rindo.config");
1306
+ s && r.push(2322);
1307
+ let n = "";
1308
+ if (!r.includes(t.code) && (n = t.messageText, isIterable(t.next))) for (const r of t.next) n += flattenDiagnosticMessageText(e, r);
1309
+ return s && (n = n.replace("type 'RindoConfig'", "Rindo Config"), n = n.replace("Object literal may only specify known properties, but ", ""),
1310
+ n = n.replace("Object literal may only specify known properties, and ", "")), n.trim();
1311
1311
  }, isOutputTargetDistLazy = e => e.type === DIST_LAZY, isOutputTargetWww = e => e.type === WWW, DIST_LAZY = "dist-lazy", WWW = "www", isJest27TransformOptions = e => null != e && "object" == typeof e && e.hasOwnProperty("config");
1312
1312
 
1313
1313
  let _tsCompilerOptions = null, _tsCompilerOptionsKey = null;
1314
1314
 
1315
1315
  const jestPreprocessor = {
1316
- process(e, t, r, n) {
1317
- if (isJest27TransformOptions(r) && (n = r.config), !n) throw "Unable to find Jest transformation options.";
1318
- if (function s(e, t) {
1316
+ process(e, t, r, s) {
1317
+ if (isJest27TransformOptions(r) && (s = r.config), !s) throw "Unable to find Jest transformation options.";
1318
+ if (function n(e, t) {
1319
1319
  var r;
1320
- const n = (null !== (r = e.split(".").pop()) && void 0 !== r ? r : "").toLowerCase().split("?")[0];
1321
- if ("ts" === n || "tsx" === n || "jsx" === n) return !0;
1322
- if ("mjs" === n) return !0;
1323
- if ("js" === n) {
1320
+ const s = (null !== (r = e.split(".").pop()) && void 0 !== r ? r : "").toLowerCase().split("?")[0];
1321
+ if ("ts" === s || "tsx" === s || "jsx" === s) return !0;
1322
+ if ("mjs" === s) return !0;
1323
+ if ("js" === s) {
1324
1324
  if (t.includes("import ") || t.includes("import.") || t.includes("import(")) return !0;
1325
1325
  if (t.includes("export ")) return !0;
1326
1326
  }
1327
- return "css" === n;
1327
+ return "css" === s;
1328
1328
  }(t, e)) {
1329
1329
  const r = {
1330
1330
  file: t,
1331
- currentDirectory: n.rootDir
1332
- }, s = getCompilerOptions(n.rootDir);
1333
- s && (s.baseUrl && (r.baseUrl = s.baseUrl), s.paths && (r.paths = s.paths));
1331
+ currentDirectory: s.rootDir
1332
+ }, n = getCompilerOptions(s.rootDir);
1333
+ n && (n.baseUrl && (r.baseUrl = n.baseUrl), n.paths && (r.paths = n.paths));
1334
1334
  const o = transpile(e, r), i = o.diagnostics.some((e => "error" === e.level));
1335
1335
  if (o.diagnostics && i) {
1336
1336
  const e = o.diagnostics.map(formatDiagnostic).join("\n\n");
@@ -1340,25 +1340,25 @@ const jestPreprocessor = {
1340
1340
  }
1341
1341
  return e;
1342
1342
  },
1343
- getCacheKey(e, t, r, n) {
1344
- if (isJest27TransformOptions(r) && (n = r.config), !n) throw "Unable to find Jest transformation options.";
1343
+ getCacheKey(e, t, r, s) {
1344
+ if (isJest27TransformOptions(r) && (s = r.config), !s) throw "Unable to find Jest transformation options.";
1345
1345
  if (!_tsCompilerOptionsKey) {
1346
- const e = getCompilerOptions(n.rootDir);
1346
+ const e = getCompilerOptions(s.rootDir);
1347
1347
  _tsCompilerOptionsKey = JSON.stringify(e);
1348
1348
  }
1349
- return [ process.version, _tsCompilerOptionsKey, e, t, r, !!n.instrument, 7 ].join(":");
1349
+ return [ process.version, _tsCompilerOptionsKey, e, t, r, !!s.instrument, 7 ].join(":");
1350
1350
  }
1351
1351
  }, deepEqual = function e(t, r) {
1352
1352
  if (t === r) return !0;
1353
1353
  if (t && r && "object" == typeof t && "object" == typeof r) {
1354
- const n = Array.isArray(t), s = Array.isArray(r);
1354
+ const s = Array.isArray(t), n = Array.isArray(r);
1355
1355
  let o, i, a;
1356
- if (n && s) {
1356
+ if (s && n) {
1357
1357
  if (i = t.length, i != r.length) return !1;
1358
1358
  for (o = i; 0 != o--; ) if (!e(t[o], r[o])) return !1;
1359
1359
  return !0;
1360
1360
  }
1361
- if (n != s) return !1;
1361
+ if (s != n) return !1;
1362
1362
  const l = t instanceof Date, c = r instanceof Date;
1363
1363
  if (l != c) return !1;
1364
1364
  if (l && c) return t.getTime() == r.getTime();
@@ -1377,25 +1377,25 @@ const jestPreprocessor = {
1377
1377
  if (!e) throw new Error("expect toMatchAttribute value is null");
1378
1378
  if ("function" == typeof e.then) throw new Error("element must be a resolved value, not a promise, before it can be tested");
1379
1379
  if (1 !== e.nodeType) throw new Error("expect toMatchAttribute value is not an element");
1380
- let n = e.getAttribute(t);
1381
- null != r && (r = String(r)), null != n && (n = String(n));
1382
- const s = r === n;
1380
+ let s = e.getAttribute(t);
1381
+ null != r && (r = String(r)), null != s && (s = String(s));
1382
+ const n = r === s;
1383
1383
  return {
1384
- message: () => `expected attribute ${t} "${r}" to ${s ? "not " : ""}equal "${n}"`,
1385
- pass: s
1384
+ message: () => `expected attribute ${t} "${r}" to ${n ? "not " : ""}equal "${s}"`,
1385
+ pass: n
1386
1386
  };
1387
1387
  },
1388
1388
  toEqualAttributes: function toEqualAttributes(e, t) {
1389
1389
  if (!e) throw new Error("expect toEqualAttributes value is null");
1390
1390
  if ("function" == typeof e.then) throw new Error("element must be a resolved value, not a promise, before it can be tested");
1391
1391
  if (1 !== e.nodeType) throw new Error("expect toEqualAttributes value is not an element");
1392
- const r = Object.keys(t), n = r.every((r => {
1393
- let n = t[r];
1394
- return null != n && (n = String(n)), e.getAttribute(r) === n;
1392
+ const r = Object.keys(t), s = r.every((r => {
1393
+ let s = t[r];
1394
+ return null != s && (s = String(s)), e.getAttribute(r) === s;
1395
1395
  }));
1396
1396
  return {
1397
- message: () => `expected attributes to ${n ? "not " : ""}equal ${r.map((e => `[${e}="${t[e]}"]`)).join(", ")}`,
1398
- pass: n
1397
+ message: () => `expected attributes to ${s ? "not " : ""}equal ${r.map((e => `[${e}="${t[e]}"]`)).join(", ")}`,
1398
+ pass: s
1399
1399
  };
1400
1400
  },
1401
1401
  toEqualHtml: function toEqualHtml(e, t) {
@@ -1410,10 +1410,10 @@ const jestPreprocessor = {
1410
1410
  let r;
1411
1411
  1 === e.nodeType ? r = e.textContent.replace(/\s\s+/g, " ").trim() : null != e && (r = String(e).replace(/\s\s+/g, " ").trim()),
1412
1412
  "string" == typeof t && (t = t.replace(/\s\s+/g, " ").trim());
1413
- const n = r === t;
1413
+ const s = r === t;
1414
1414
  return {
1415
- message: () => `expected textContent "${t}" to ${n ? "not " : ""}equal "${r}"`,
1416
- pass: n
1415
+ message: () => `expected textContent "${t}" to ${s ? "not " : ""}equal "${r}"`,
1416
+ pass: s
1417
1417
  };
1418
1418
  },
1419
1419
  toHaveAttribute: function toHaveAttribute(e, t) {
@@ -1490,12 +1490,12 @@ const jestPreprocessor = {
1490
1490
  if ("function" == typeof e.then) throw new Error("event spy must be a resolved value, not a promise, before it can be tested");
1491
1491
  if (!e.eventName) throw new Error("toHaveNthReceivedEventDetail did not receive an event spy");
1492
1492
  if (!e.firstEvent) throw new Error(`event "${e.eventName}" was not received`);
1493
- const n = e.events[t];
1494
- if (!n) throw new Error(`event at index ${t} was not received`);
1495
- const s = deepEqual(n.detail, r);
1496
- return expect(n.detail).toEqual(r), {
1497
- message: () => `expected event "${e.eventName}" detail to ${s ? "not " : ""}equal`,
1498
- pass: s
1493
+ const s = e.events[t];
1494
+ if (!s) throw new Error(`event at index ${t} was not received`);
1495
+ const n = deepEqual(s.detail, r);
1496
+ return expect(s.detail).toEqual(r), {
1497
+ message: () => `expected event "${e.eventName}" detail to ${n ? "not " : ""}equal`,
1498
+ pass: n
1499
1499
  };
1500
1500
  },
1501
1501
  toMatchScreenshot: function toMatchScreenshot(e, t = {}) {
@@ -1505,10 +1505,10 @@ const jestPreprocessor = {
1505
1505
  const r = e.device || e.userAgent;
1506
1506
  if ("number" == typeof t.allowableMismatchedRatio) {
1507
1507
  if (t.allowableMismatchedRatio < 0 || t.allowableMismatchedRatio > 1) throw new Error("expect toMatchScreenshot() allowableMismatchedRatio must be a value ranging from 0 to 1");
1508
- const n = e.mismatchedPixels / (e.width * e.deviceScaleFactor * (e.height * e.deviceScaleFactor));
1508
+ const s = e.mismatchedPixels / (e.width * e.deviceScaleFactor * (e.height * e.deviceScaleFactor));
1509
1509
  return {
1510
- message: () => `${r}: screenshot has a mismatch ratio of "${n}" for "${e.desc}", but expected ratio to be less than "${t.allowableMismatchedRatio}"`,
1511
- pass: n <= t.allowableMismatchedRatio
1510
+ message: () => `${r}: screenshot has a mismatch ratio of "${s}" for "${e.desc}", but expected ratio to be less than "${t.allowableMismatchedRatio}"`,
1511
+ pass: s <= t.allowableMismatchedRatio
1512
1512
  };
1513
1513
  }
1514
1514
  if ("number" == typeof t.allowableMismatchedPixels) {
@@ -1766,9 +1766,9 @@ class BuildContext {
1766
1766
  }
1767
1767
  return {
1768
1768
  duration: () => r.duration(),
1769
- finish: (e, n, s, o) => {
1769
+ finish: (e, s, n, o) => {
1770
1770
  if ((!this.hasFinished || t) && (t && this.config.watch && (e = `${this.config.logger.cyan("[" + this.buildId + "]")} ${e}`),
1771
- r.finish(e, n, s, o), !t)) {
1771
+ r.finish(e, s, n, o), !t)) {
1772
1772
  const e = {
1773
1773
  buildId: this.buildId,
1774
1774
  messages: this.buildMessages.slice(),
@@ -1813,8 +1813,8 @@ const getBuildTimestamp = () => {
1813
1813
  }, getProgress = e => {
1814
1814
  let t = 0;
1815
1815
  const r = Object.keys(ProgressTask);
1816
- return r.forEach(((r, n) => {
1817
- e.includes(ProgressTask[r]) && (t = n);
1816
+ return r.forEach(((r, s) => {
1817
+ e.includes(ProgressTask[r]) && (t = s);
1818
1818
  })), (t + 1) / r.length;
1819
1819
  }, ProgressTask = {
1820
1820
  emptyOutputTargets: {},
@@ -1883,13 +1883,13 @@ class Cache {
1883
1883
  const e = Date.now(), t = await this.sys.cacheStorage.get(EXP_STORAGE_KEY);
1884
1884
  if (null != t) {
1885
1885
  if (e - t < ONE_DAY) return;
1886
- const r = this.cacheFs.sys, n = await r.readDir(this.config.cacheDir), s = n.map((e => path$2.join(this.config.cacheDir, e)));
1886
+ const r = this.cacheFs.sys, s = await r.readDir(this.config.cacheDir), n = s.map((e => path$2.join(this.config.cacheDir, e)));
1887
1887
  let o = 0;
1888
- const i = s.map((async t => {
1889
- const n = (await r.stat(t)).mtimeMs;
1890
- e - n > ONE_WEEK && (await r.removeFile(t), o++);
1888
+ const i = n.map((async t => {
1889
+ const s = (await r.stat(t)).mtimeMs;
1890
+ e - s > ONE_WEEK && (await r.removeFile(t), o++);
1891
1891
  }));
1892
- await Promise.all(i), this.logger.debug(`clearExpiredCache, cachedFileNames: ${n.length}, totalCleared: ${o}`);
1892
+ await Promise.all(i), this.logger.debug(`clearExpiredCache, cachedFileNames: ${s.length}, totalCleared: ${o}`);
1893
1893
  }
1894
1894
  this.logger.debug("clearExpiredCache, set last clear"), await this.sys.cacheStorage.set(EXP_STORAGE_KEY, e);
1895
1895
  }
@@ -1919,23 +1919,23 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1919
1919
  t.filesToWrite.push(r);
1920
1920
  const e = normalizePath(path$2.dirname(r));
1921
1921
  t.dirsToEnsure.includes(e) || t.dirsToEnsure.push(e);
1922
- const n = t.dirsToDelete.indexOf(e);
1923
- n > -1 && t.dirsToDelete.splice(n, 1);
1924
- const s = t.filesToDelete.indexOf(r);
1925
- s > -1 && t.filesToDelete.splice(s, 1);
1922
+ const s = t.dirsToDelete.indexOf(e);
1923
+ s > -1 && t.dirsToDelete.splice(s, 1);
1924
+ const n = t.filesToDelete.indexOf(r);
1925
+ n > -1 && t.filesToDelete.splice(n, 1);
1926
1926
  } else if (!0 === e.isDirectory) {
1927
1927
  t.dirsToEnsure.includes(r) || t.dirsToEnsure.push(r);
1928
1928
  const e = t.dirsToDelete.indexOf(r);
1929
1929
  e > -1 && t.dirsToDelete.splice(e, 1);
1930
1930
  }
1931
1931
  } 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) {
1932
- const n = r, s = e.queueCopyFileToDest;
1933
- t.filesToCopy.push([ n, s ]);
1934
- const o = normalizePath(path$2.dirname(s));
1932
+ const s = r, n = e.queueCopyFileToDest;
1933
+ t.filesToCopy.push([ s, n ]);
1934
+ const o = normalizePath(path$2.dirname(n));
1935
1935
  t.dirsToEnsure.includes(o) || t.dirsToEnsure.push(o);
1936
1936
  const i = t.dirsToDelete.indexOf(o);
1937
1937
  i > -1 && t.dirsToDelete.splice(i, 1);
1938
- const a = t.filesToDelete.indexOf(s);
1938
+ const a = t.filesToDelete.indexOf(n);
1939
1939
  a > -1 && t.filesToDelete.splice(a, 1);
1940
1940
  }
1941
1941
  e.queueDeleteFromDisk = !1, e.queueWriteToDisk = !1;
@@ -1943,16 +1943,16 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1943
1943
  for (let e = 0, r = t.dirsToEnsure.length; e < r; e++) {
1944
1944
  const r = t.dirsToEnsure[e].split("/");
1945
1945
  for (let e = 2; e < r.length; e++) {
1946
- const n = r.slice(0, e).join("/");
1947
- !1 === t.dirsToEnsure.includes(n) && t.dirsToEnsure.push(n);
1946
+ const s = r.slice(0, e).join("/");
1947
+ !1 === t.dirsToEnsure.includes(s) && t.dirsToEnsure.push(s);
1948
1948
  }
1949
1949
  }
1950
1950
  t.dirsToEnsure.sort(((e, t) => {
1951
- const r = e.split("/").length, n = t.split("/").length;
1952
- return r < n ? -1 : r > n ? 1 : e.length < t.length ? -1 : e.length > t.length ? 1 : 0;
1951
+ const r = e.split("/").length, s = t.split("/").length;
1952
+ return r < s ? -1 : r > s ? 1 : e.length < t.length ? -1 : e.length > t.length ? 1 : 0;
1953
1953
  })), t.dirsToDelete.sort(((e, t) => {
1954
- const r = e.split("/").length, n = t.split("/").length;
1955
- return r < n ? 1 : r > n ? -1 : e.length < t.length ? 1 : e.length > t.length ? -1 : 0;
1954
+ const r = e.split("/").length, s = t.split("/").length;
1955
+ return r < s ? 1 : r > s ? -1 : e.length < t.length ? 1 : e.length > t.length ? -1 : 0;
1956
1956
  }));
1957
1957
  for (const e of t.dirsToEnsure) {
1958
1958
  const r = t.dirsToDelete.indexOf(e);
@@ -1967,44 +1967,44 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1967
1967
 
1968
1968
  (posix = {
1969
1969
  resolve: function e() {
1970
- var t, r, n, s = "", o = !1;
1971
- for (r = arguments.length - 1; r >= -1 && !o; r--) r >= 0 ? n = arguments[r] : (void 0 === t && (t = process.cwd()),
1972
- n = t), assertPath(n), 0 !== n.length && (s = n + "/" + s, o = 47 === n.charCodeAt(0));
1973
- return s = normalizeStringPosix(s, !o), o ? s.length > 0 ? "/" + s : "/" : s.length > 0 ? s : ".";
1970
+ var t, r, s, n = "", o = !1;
1971
+ for (r = arguments.length - 1; r >= -1 && !o; r--) r >= 0 ? s = arguments[r] : (void 0 === t && (t = process.cwd()),
1972
+ s = t), assertPath(s), 0 !== s.length && (n = s + "/" + n, o = 47 === s.charCodeAt(0));
1973
+ return n = normalizeStringPosix(n, !o), o ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
1974
1974
  },
1975
1975
  normalize: function e(t) {
1976
- var r, n;
1977
- return assertPath(t), 0 === t.length ? "." : (r = 47 === t.charCodeAt(0), n = 47 === t.charCodeAt(t.length - 1),
1978
- 0 !== (t = normalizeStringPosix(t, !r)).length || r || (t = "."), t.length > 0 && n && (t += "/"),
1976
+ var r, s;
1977
+ return assertPath(t), 0 === t.length ? "." : (r = 47 === t.charCodeAt(0), s = 47 === t.charCodeAt(t.length - 1),
1978
+ 0 !== (t = normalizeStringPosix(t, !r)).length || r || (t = "."), t.length > 0 && s && (t += "/"),
1979
1979
  r ? "/" + t : t);
1980
1980
  },
1981
1981
  isAbsolute: function e(t) {
1982
1982
  return assertPath(t), t.length > 0 && 47 === t.charCodeAt(0);
1983
1983
  },
1984
1984
  join: function e() {
1985
- var t, r, n;
1985
+ var t, r, s;
1986
1986
  if (0 === arguments.length) return ".";
1987
- for (r = 0; r < arguments.length; ++r) assertPath(n = arguments[r]), n.length > 0 && (void 0 === t ? t = n : t += "/" + n);
1987
+ for (r = 0; r < arguments.length; ++r) assertPath(s = arguments[r]), s.length > 0 && (void 0 === t ? t = s : t += "/" + s);
1988
1988
  return void 0 === t ? "." : posix.normalize(t);
1989
1989
  },
1990
1990
  relative: function e(t, r) {
1991
- var n, s, o, i, a, l, c, u, d, h;
1991
+ var s, n, o, i, a, l, c, u, d, h;
1992
1992
  if (assertPath(t), assertPath(r), t === r) return "";
1993
1993
  if ((t = posix.resolve(t)) === (r = posix.resolve(r))) return "";
1994
- for (n = 1; n < t.length && 47 === t.charCodeAt(n); ++n) ;
1995
- for (o = (s = t.length) - n, i = 1; i < r.length && 47 === r.charCodeAt(i); ++i) ;
1994
+ for (s = 1; s < t.length && 47 === t.charCodeAt(s); ++s) ;
1995
+ for (o = (n = t.length) - s, i = 1; i < r.length && 47 === r.charCodeAt(i); ++i) ;
1996
1996
  for (l = o < (a = r.length - i) ? o : a, c = -1, u = 0; u <= l; ++u) {
1997
1997
  if (u === l) {
1998
1998
  if (a > l) {
1999
1999
  if (47 === r.charCodeAt(i + u)) return r.slice(i + u + 1);
2000
2000
  if (0 === u) return r.slice(i + u);
2001
- } else o > l && (47 === t.charCodeAt(n + u) ? c = u : 0 === u && (c = 0));
2001
+ } else o > l && (47 === t.charCodeAt(s + u) ? c = u : 0 === u && (c = 0));
2002
2002
  break;
2003
2003
  }
2004
- if ((d = t.charCodeAt(n + u)) !== r.charCodeAt(i + u)) break;
2004
+ if ((d = t.charCodeAt(s + u)) !== r.charCodeAt(i + u)) break;
2005
2005
  47 === d && (c = u);
2006
2006
  }
2007
- for (h = "", u = n + c + 1; u <= s; ++u) u !== s && 47 !== t.charCodeAt(u) || (0 === h.length ? h += ".." : h += "/..");
2007
+ for (h = "", u = s + c + 1; u <= n; ++u) u !== n && 47 !== t.charCodeAt(u) || (0 === h.length ? h += ".." : h += "/..");
2008
2008
  return h.length > 0 ? h + r.slice(i + c) : (i += c, 47 === r.charCodeAt(i) && ++i,
2009
2009
  r.slice(i));
2010
2010
  },
@@ -2012,56 +2012,56 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
2012
2012
  return t;
2013
2013
  },
2014
2014
  dirname: function e(t) {
2015
- var r, n, s, o;
2015
+ var r, s, n, o;
2016
2016
  if (assertPath(t), 0 === t.length) return ".";
2017
- for (r = 47 === t.charCodeAt(0), n = -1, s = !0, o = t.length - 1; o >= 1; --o) if (47 === t.charCodeAt(o)) {
2018
- if (!s) {
2019
- n = o;
2017
+ for (r = 47 === t.charCodeAt(0), s = -1, n = !0, o = t.length - 1; o >= 1; --o) if (47 === t.charCodeAt(o)) {
2018
+ if (!n) {
2019
+ s = o;
2020
2020
  break;
2021
2021
  }
2022
- } else s = !1;
2023
- return -1 === n ? r ? "/" : "." : r && 1 === n ? "//" : t.slice(0, n);
2022
+ } else n = !1;
2023
+ return -1 === s ? r ? "/" : "." : r && 1 === s ? "//" : t.slice(0, s);
2024
2024
  },
2025
2025
  basename: function e(t, r) {
2026
- var n, s, o, i, a, l, c;
2026
+ var s, n, o, i, a, l, c;
2027
2027
  if (void 0 !== r && "string" != typeof r) throw new TypeError('"ext" argument must be a string');
2028
- if (assertPath(t), n = 0, s = -1, o = !0, void 0 !== r && r.length > 0 && r.length <= t.length) {
2028
+ if (assertPath(t), s = 0, n = -1, o = !0, void 0 !== r && r.length > 0 && r.length <= t.length) {
2029
2029
  if (r.length === t.length && r === t) return "";
2030
2030
  for (a = r.length - 1, l = -1, i = t.length - 1; i >= 0; --i) if (47 === (c = t.charCodeAt(i))) {
2031
2031
  if (!o) {
2032
- n = i + 1;
2032
+ s = i + 1;
2033
2033
  break;
2034
2034
  }
2035
- } else -1 === l && (o = !1, l = i + 1), a >= 0 && (c === r.charCodeAt(a) ? -1 == --a && (s = i) : (a = -1,
2036
- s = l));
2037
- return n === s ? s = l : -1 === s && (s = t.length), t.slice(n, s);
2035
+ } else -1 === l && (o = !1, l = i + 1), a >= 0 && (c === r.charCodeAt(a) ? -1 == --a && (n = i) : (a = -1,
2036
+ n = l));
2037
+ return s === n ? n = l : -1 === n && (n = t.length), t.slice(s, n);
2038
2038
  }
2039
2039
  for (i = t.length - 1; i >= 0; --i) if (47 === t.charCodeAt(i)) {
2040
2040
  if (!o) {
2041
- n = i + 1;
2041
+ s = i + 1;
2042
2042
  break;
2043
2043
  }
2044
- } else -1 === s && (o = !1, s = i + 1);
2045
- return -1 === s ? "" : t.slice(n, s);
2044
+ } else -1 === n && (o = !1, n = i + 1);
2045
+ return -1 === n ? "" : t.slice(s, n);
2046
2046
  },
2047
2047
  extname: function e(t) {
2048
- var r, n, s, o, i, a, l;
2049
- for (assertPath(t), r = -1, n = 0, s = -1, o = !0, i = 0, a = t.length - 1; a >= 0; --a) if (47 !== (l = t.charCodeAt(a))) -1 === s && (o = !1,
2050
- s = a + 1), 46 === l ? -1 === r ? r = a : 1 !== i && (i = 1) : -1 !== r && (i = -1); else if (!o) {
2051
- n = a + 1;
2048
+ var r, s, n, o, i, a, l;
2049
+ 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,
2050
+ n = a + 1), 46 === l ? -1 === r ? r = a : 1 !== i && (i = 1) : -1 !== r && (i = -1); else if (!o) {
2051
+ s = a + 1;
2052
2052
  break;
2053
2053
  }
2054
- return -1 === r || -1 === s || 0 === i || 1 === i && r === s - 1 && r === n + 1 ? "" : t.slice(r, s);
2054
+ return -1 === r || -1 === n || 0 === i || 1 === i && r === n - 1 && r === s + 1 ? "" : t.slice(r, n);
2055
2055
  },
2056
2056
  format: function e(t) {
2057
2057
  if (null === t || "object" != typeof t) throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t);
2058
2058
  return function r(e, t) {
2059
- var r = t.dir || t.root, n = t.base || (t.name || "") + (t.ext || "");
2060
- return r ? r === t.root ? r + n : r + e + n : n;
2059
+ var r = t.dir || t.root, s = t.base || (t.name || "") + (t.ext || "");
2060
+ return r ? r === t.root ? r + s : r + e + s : s;
2061
2061
  }("/", t);
2062
2062
  },
2063
2063
  parse: function e(t) {
2064
- var r, n, s, o, i, a, l, c, u, d;
2064
+ var r, s, n, o, i, a, l, c, u, d;
2065
2065
  if (assertPath(t), r = {
2066
2066
  root: "",
2067
2067
  dir: "",
@@ -2069,15 +2069,15 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
2069
2069
  ext: "",
2070
2070
  name: ""
2071
2071
  }, 0 === t.length) return r;
2072
- for ((s = 47 === (n = t.charCodeAt(0))) ? (r.root = "/", o = 1) : o = 0, i = -1,
2073
- a = 0, l = -1, c = !0, u = t.length - 1, d = 0; u >= o; --u) if (47 !== (n = t.charCodeAt(u))) -1 === l && (c = !1,
2074
- l = u + 1), 46 === n ? -1 === i ? i = u : 1 !== d && (d = 1) : -1 !== i && (d = -1); else if (!c) {
2072
+ for ((n = 47 === (s = t.charCodeAt(0))) ? (r.root = "/", o = 1) : o = 0, i = -1,
2073
+ 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,
2074
+ l = u + 1), 46 === s ? -1 === i ? i = u : 1 !== d && (d = 1) : -1 !== i && (d = -1); else if (!c) {
2075
2075
  a = u + 1;
2076
2076
  break;
2077
2077
  }
2078
- return -1 === i || -1 === l || 0 === d || 1 === d && i === l - 1 && i === a + 1 ? -1 !== l && (r.base = r.name = 0 === a && s ? t.slice(1, l) : t.slice(a, l)) : (0 === a && s ? (r.name = t.slice(1, i),
2078
+ 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),
2079
2079
  r.base = t.slice(1, l)) : (r.name = t.slice(a, i), r.base = t.slice(a, l)), r.ext = t.slice(i, l)),
2080
- a > 0 ? r.dir = t.slice(0, a - 1) : s && (r.dir = "/"), r;
2080
+ a > 0 ? r.dir = t.slice(0, a - 1) : n && (r.dir = "/"), r;
2081
2081
  },
2082
2082
  sep: "/",
2083
2083
  delimiter: ":",
@@ -2092,29 +2092,29 @@ const buildEvents = () => {
2092
2092
  };
2093
2093
  return {
2094
2094
  emit: (t, r) => {
2095
- const n = t.toLowerCase().trim(), s = e.slice();
2096
- for (const e of s) if (null == e.eventName) try {
2095
+ const s = t.toLowerCase().trim(), n = e.slice();
2096
+ for (const e of n) if (null == e.eventName) try {
2097
2097
  e.callback(t, r);
2098
2098
  } catch (e) {
2099
2099
  console.error(e);
2100
- } else if (e.eventName === n) try {
2100
+ } else if (e.eventName === s) try {
2101
2101
  e.callback(r);
2102
2102
  } catch (e) {
2103
2103
  console.error(e);
2104
2104
  }
2105
2105
  },
2106
- on: (r, n) => {
2106
+ on: (r, s) => {
2107
2107
  if ("function" == typeof r) {
2108
- const n = null, s = r;
2108
+ const s = null, n = r;
2109
2109
  return e.push({
2110
- eventName: n,
2111
- callback: s
2112
- }), () => t(s);
2110
+ eventName: s,
2111
+ callback: n
2112
+ }), () => t(n);
2113
2113
  }
2114
- if ("string" == typeof r && "function" == typeof n) {
2115
- const s = r.toLowerCase().trim(), o = n;
2114
+ if ("string" == typeof r && "function" == typeof s) {
2115
+ const n = r.toLowerCase().trim(), o = s;
2116
2116
  return e.push({
2117
- eventName: s,
2117
+ eventName: n,
2118
2118
  callback: o
2119
2119
  }), () => t(o);
2120
2120
  }
@@ -2133,7 +2133,7 @@ const IS_BROWSER_ENV = "undefined" != typeof location && "undefined" != typeof n
2133
2133
  IS_NODE_ENV && require, IS_NODE_ENV && process.cwd;
2134
2134
 
2135
2135
  const YELLOW = "#f39c12", RED = "#c0392b", BLUE = "#3498db", COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json", ".md" ], COMMON_DIR_FILENAMES = [ "package.json", "index.js", "index.mjs" ], getCommonDirName = (e, t) => e + "/" + t, isCommonDirModuleFile = e => COMMON_DIR_MODULE_EXTS.some((t => e.endsWith(t))), shouldFetchModule = e => IS_FETCH_ENV && IS_BROWSER_ENV && isNodeModulePath(e), isNodeModulePath = e => normalizePath(e).split("/").includes("node_modules"), getPackageDirPath = (e, t) => {
2136
- const r = normalizePath(e).split("/"), n = (e => {
2136
+ const r = normalizePath(e).split("/"), s = (e => {
2137
2137
  e.startsWith("~") && (e = e.substring(1));
2138
2138
  const t = e.split("/"), r = {
2139
2139
  moduleId: null,
@@ -2145,41 +2145,41 @@ const YELLOW = "#f39c12", RED = "#c0392b", BLUE = "#3498db", COMMON_DIR_MODULE_E
2145
2145
  r.filePath = t.slice(2).join("/"), r.scope = t[0], r.scopeSubModuleId = t[1]) : (r.moduleId = t[0],
2146
2146
  r.filePath = t.slice(1).join("/")), r;
2147
2147
  })(t);
2148
- for (let e = r.length - 1; e >= 1; e--) if ("node_modules" === r[e - 1]) if (n.scope) {
2149
- if (r[e] === n.scope && r[e + 1] === n.scopeSubModuleId) return r.slice(0, e + 2).join("/");
2150
- } else if (r[e] === n.moduleId) return r.slice(0, e + 1).join("/");
2148
+ for (let e = r.length - 1; e >= 1; e--) if ("node_modules" === r[e - 1]) if (s.scope) {
2149
+ if (r[e] === s.scope && r[e + 1] === s.scopeSubModuleId) return r.slice(0, e + 2).join("/");
2150
+ } else if (r[e] === s.moduleId) return r.slice(0, e + 1).join("/");
2151
2151
  return null;
2152
- }, packageVersions = new Map, known404Urls = new Set, getCommonDirUrl = (e, t, r, n) => getNodeModuleFetchUrl(e, t, r) + "/" + n, getNodeModuleFetchUrl = (e, t, r) => {
2153
- let n = (r = normalizePath(r)).split("/").filter((e => e.length));
2154
- const s = n.lastIndexOf("node_modules");
2155
- s > -1 && s < n.length - 1 && (n = n.slice(s + 1));
2156
- let o = n.shift();
2157
- o.startsWith("@") && (o += "/" + n.shift());
2158
- const i = n.join("/");
2152
+ }, packageVersions = new Map, known404Urls = new Set, getCommonDirUrl = (e, t, r, s) => getNodeModuleFetchUrl(e, t, r) + "/" + s, getNodeModuleFetchUrl = (e, t, r) => {
2153
+ let s = (r = normalizePath(r)).split("/").filter((e => e.length));
2154
+ const n = s.lastIndexOf("node_modules");
2155
+ n > -1 && n < s.length - 1 && (s = s.slice(n + 1));
2156
+ let o = s.shift();
2157
+ o.startsWith("@") && (o += "/" + s.shift());
2158
+ const i = s.join("/");
2159
2159
  return "@rindo/core" === o ? ((e, t) => {
2160
2160
  let r = (t = normalizePath(t)).split("/");
2161
- const n = r.lastIndexOf("node_modules");
2162
- n > -1 && n < r.length - 1 && (r = r.slice(n + 1), r = r[0].startsWith("@") ? r.slice(2) : r.slice(1),
2161
+ const s = r.lastIndexOf("node_modules");
2162
+ s > -1 && s < r.length - 1 && (r = r.slice(s + 1), r = r[0].startsWith("@") ? r.slice(2) : r.slice(1),
2163
2163
  t = r.join("/"));
2164
- const s = new URL("../", e).href;
2165
- return new URL("./" + t, s).href;
2164
+ const n = new URL("../", e).href;
2165
+ return new URL("./" + t, n).href;
2166
2166
  })(e.getCompilerExecutingPath(), i) : e.getRemoteModuleUrl({
2167
2167
  moduleId: o,
2168
2168
  version: t.get(o),
2169
2169
  path: i
2170
2170
  });
2171
- }, knownUrlSkips = [ "/@rindo/core/internal.js", "/@rindo/core/internal.json", "/@rindo/core/internal.mjs", "/@rindo/core/internal/rindo-core.js/index.json", "/@rindo/core/internal/rindo-core.js.json", "/@rindo/core/internal/rindo-core.js/package.json", "/@rindo/core.js", "/@rindo/core.json", "/@rindo/core.mjs", "/@rindo/core.css", "/@rindo/core/index.js", "/@rindo/core/index.json", "/@rindo/core/index.mjs", "/@rindo/core/index.css", "/@rindo/package.json" ], fetchModuleAsync = async (e, t, r, n, s) => {
2171
+ }, knownUrlSkips = [ "/@rindo/core/internal.js", "/@rindo/core/internal.json", "/@rindo/core/internal.mjs", "/@rindo/core/internal/rindo-core.js/index.json", "/@rindo/core/internal/rindo-core.js.json", "/@rindo/core/internal/rindo-core.js/package.json", "/@rindo/core.js", "/@rindo/core.json", "/@rindo/core.mjs", "/@rindo/core.css", "/@rindo/core/index.js", "/@rindo/core/index.json", "/@rindo/core/index.mjs", "/@rindo/core/index.css", "/@rindo/package.json" ], fetchModuleAsync = async (e, t, r, s, n) => {
2172
2172
  if (!((e => {
2173
2173
  if (!(e => e.endsWith(".d.ts"))(t = e) && t.endsWith(".ts") || (e => e.endsWith(".tsx"))(e)) return !0;
2174
2174
  var t;
2175
- const r = e.split("/"), n = r[r.length - 2], s = r[r.length - 1];
2176
- return !("node_modules" !== n || !isCommonDirModuleFile(s));
2177
- })(s) || known404Urls.has(n) || (e => knownUrlSkips.some((t => e.endsWith(t))))(n))) try {
2178
- const o = await ((e, t, r) => e && isFunction(e.fetch) ? e.fetch(t, r) : fetch(t, r))(e, n);
2175
+ const r = e.split("/"), s = r[r.length - 2], n = r[r.length - 1];
2176
+ return !("node_modules" !== s || !isCommonDirModuleFile(n));
2177
+ })(n) || known404Urls.has(s) || (e => knownUrlSkips.some((t => e.endsWith(t))))(s))) try {
2178
+ const o = await ((e, t, r) => e && isFunction(e.fetch) ? e.fetch(t, r) : fetch(t, r))(e, s);
2179
2179
  if (o) {
2180
2180
  if (o.ok) {
2181
2181
  const i = await o.clone().text();
2182
- return await (async (e, t, r, n, s, o) => {
2182
+ return await (async (e, t, r, s, n, o) => {
2183
2183
  r.endsWith("package.json") && ((e, t) => {
2184
2184
  try {
2185
2185
  const r = JSON.parse(t);
@@ -2187,24 +2187,21 @@ const YELLOW = "#f39c12", RED = "#c0392b", BLUE = "#3498db", COMMON_DIR_MODULE_E
2187
2187
  e.set(t, r);
2188
2188
  })(e, r.name, r.version);
2189
2189
  } catch (e) {}
2190
- })(o, s);
2191
- let i = path$2.dirname(n);
2190
+ })(o, n);
2191
+ let i = path$2.dirname(s);
2192
2192
  for (;"/" !== i && "" !== i; ) t ? (t.clearFileCache(i), await t.sys.createDir(i)) : await e.createDir(i),
2193
2193
  i = path$2.dirname(i);
2194
- t ? (t.clearFileCache(n), await t.sys.writeFile(n, s)) : await e.writeFile(n, s);
2195
- })(e, t, n, s, i, r), i;
2194
+ t ? (t.clearFileCache(s), await t.sys.writeFile(s, n)) : await e.writeFile(s, n);
2195
+ })(e, t, s, n, i, r), i;
2196
2196
  }
2197
- 404 === o.status && known404Urls.add(n);
2197
+ 404 === o.status && known404Urls.add(s);
2198
2198
  }
2199
2199
  } catch (e) {
2200
2200
  console.error(e);
2201
2201
  }
2202
2202
  };
2203
2203
 
2204
- homedir$2 = os__default.default.homedir || function e() {
2205
- var t = process.env.HOME, r = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
2206
- return "win32" === process.platform ? process.env.USERPROFILE || process.env.HOMEDRIVE + process.env.HOMEPATH || t || null : "darwin" === process.platform ? t || (r ? "/Users/" + r : null) : "linux" === process.platform ? t || (0 === process.getuid() ? "/root" : r ? "/home/" + r : null) : t || null;
2207
- }, caller = function() {
2204
+ caller = function() {
2208
2205
  var e, t = Error.prepareStackTrace;
2209
2206
  return Error.prepareStackTrace = function(e, t) {
2210
2207
  return t;
@@ -2214,17 +2211,17 @@ homedir$2 = os__default.default.homedir || function e() {
2214
2211
  path: t,
2215
2212
  exports: {},
2216
2213
  require: function(e, t) {
2217
- return function n() {
2214
+ return function s() {
2218
2215
  throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
2219
2216
  }(null == t && r.path);
2220
2217
  }
2221
2218
  }, r.exports), r.exports;
2222
2219
  }((function(e) {
2223
- var t, r, n = "win32" === process.platform, s = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/, o = {
2220
+ var t, r, s = "win32" === process.platform, n = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/, o = {
2224
2221
  parse: function(e) {
2225
2222
  if ("string" != typeof e) throw new TypeError("Parameter 'pathString' must be a string, not " + typeof e);
2226
2223
  var t = function r(e) {
2227
- return s.exec(e).slice(1);
2224
+ return n.exec(e).slice(1);
2228
2225
  }(e);
2229
2226
  if (!t || 5 !== t.length) throw new TypeError("Invalid path '" + e + "'");
2230
2227
  return {
@@ -2238,7 +2235,7 @@ homedir$2 = os__default.default.homedir || function e() {
2238
2235
  };
2239
2236
  t = /^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/, (r = {}).parse = function(e) {
2240
2237
  if ("string" != typeof e) throw new TypeError("Parameter 'pathString' must be a string, not " + typeof e);
2241
- var r = function n(e) {
2238
+ var r = function s(e) {
2242
2239
  return t.exec(e).slice(1);
2243
2240
  }(e);
2244
2241
  if (!r || 5 !== r.length) throw new TypeError("Invalid path '" + e + "'");
@@ -2249,208 +2246,136 @@ homedir$2 = os__default.default.homedir || function e() {
2249
2246
  ext: r[4],
2250
2247
  name: r[3]
2251
2248
  };
2252
- }, e.exports = n ? o.parse : r.parse, e.exports.posix = r.parse, e.exports.win32 = o.parse;
2249
+ }, e.exports = s ? o.parse : r.parse, e.exports.posix = r.parse, e.exports.win32 = o.parse;
2253
2250
  })), parse = path__default.default.parse || pathParse, getNodeModulesDirs = function e(t, r) {
2254
- var n, s, o = "/";
2255
- for (/^([A-Za-z]:)/.test(t) ? o = "" : /^\\\\/.test(t) && (o = "\\\\"), n = [ t ],
2256
- s = parse(t); s.dir !== n[n.length - 1]; ) n.push(s.dir), s = parse(s.dir);
2257
- return n.reduce((function(e, t) {
2251
+ var s, n, o = "/";
2252
+ for (/^([A-Za-z]:)/.test(t) ? o = "" : /^\\\\/.test(t) && (o = "\\\\"), s = [ t ],
2253
+ n = parse(t); n.dir !== s[s.length - 1]; ) s.push(n.dir), n = parse(n.dir);
2254
+ return s.reduce((function(e, t) {
2258
2255
  return e.concat(r.map((function(e) {
2259
2256
  return path__default.default.resolve(o, t, e);
2260
2257
  })));
2261
2258
  }), []);
2262
- }, nodeModulesPaths = function e(t, r, n) {
2263
- var s, o = r && r.moduleDirectory ? [].concat(r.moduleDirectory) : [ "node_modules" ];
2264
- return r && "function" == typeof r.paths ? r.paths(n, t, (function() {
2259
+ }, nodeModulesPaths = function e(t, r, s) {
2260
+ var n, o = r && r.moduleDirectory ? [].concat(r.moduleDirectory) : [ "node_modules" ];
2261
+ return r && "function" == typeof r.paths ? r.paths(s, t, (function() {
2265
2262
  return getNodeModulesDirs(t, o);
2266
- }), r) : (s = getNodeModulesDirs(t, o), r && r.paths ? s.concat(r.paths) : s);
2263
+ }), r) : (n = getNodeModulesDirs(t, o), r && r.paths ? n.concat(r.paths) : n);
2267
2264
  }, normalizeOptions = function(e, t) {
2268
2265
  return t || {};
2269
2266
  }, ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", slice = Array.prototype.slice,
2270
2267
  toStr = Object.prototype.toString, implementation = function e(t) {
2271
- var r, n, s, o, i, a, l, c = this;
2268
+ var r, s, n, o, i, a, l, c = this;
2272
2269
  if ("function" != typeof c || "[object Function]" !== toStr.call(c)) throw new TypeError(ERROR_MESSAGE + c);
2273
- for (r = slice.call(arguments, 1), s = function() {
2274
- if (this instanceof n) {
2270
+ for (r = slice.call(arguments, 1), n = function() {
2271
+ if (this instanceof s) {
2275
2272
  var e = c.apply(this, r.concat(slice.call(arguments)));
2276
2273
  return Object(e) === e ? e : this;
2277
2274
  }
2278
2275
  return c.apply(t, r.concat(slice.call(arguments)));
2279
2276
  }, o = Math.max(0, c.length - r.length), i = [], a = 0; a < o; a++) i.push("$" + a);
2280
- return n = Function("binder", "return function (" + i.join(",") + "){ return binder.apply(this,arguments); }")(s),
2281
- c.prototype && ((l = function e() {}).prototype = c.prototype, n.prototype = new l,
2282
- l.prototype = null), n;
2277
+ return s = Function("binder", "return function (" + i.join(",") + "){ return binder.apply(this,arguments); }")(n),
2278
+ c.prototype && ((l = function e() {}).prototype = c.prototype, s.prototype = new l,
2279
+ l.prototype = null), s;
2283
2280
  }, functionBind = Function.prototype.bind || implementation, src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
2284
2281
 
2285
2282
  const data$1 = {
2286
2283
  assert: !0,
2287
- "node:assert": [ ">= 14.18 && < 15", ">= 16" ],
2288
2284
  "assert/strict": ">= 15",
2289
- "node:assert/strict": ">= 16",
2290
2285
  async_hooks: ">= 8",
2291
- "node:async_hooks": [ ">= 14.18 && < 15", ">= 16" ],
2292
- buffer_ieee754: ">= 0.5 && < 0.9.7",
2286
+ buffer_ieee754: "< 0.9.7",
2293
2287
  buffer: !0,
2294
- "node:buffer": [ ">= 14.18 && < 15", ">= 16" ],
2295
2288
  child_process: !0,
2296
- "node:child_process": [ ">= 14.18 && < 15", ">= 16" ],
2297
- cluster: ">= 0.5",
2298
- "node:cluster": [ ">= 14.18 && < 15", ">= 16" ],
2289
+ cluster: !0,
2299
2290
  console: !0,
2300
- "node:console": [ ">= 14.18 && < 15", ">= 16" ],
2301
2291
  constants: !0,
2302
- "node:constants": [ ">= 14.18 && < 15", ">= 16" ],
2303
2292
  crypto: !0,
2304
- "node:crypto": [ ">= 14.18 && < 15", ">= 16" ],
2305
2293
  _debug_agent: ">= 1 && < 8",
2306
2294
  _debugger: "< 8",
2307
2295
  dgram: !0,
2308
- "node:dgram": [ ">= 14.18 && < 15", ">= 16" ],
2309
- diagnostics_channel: [ ">= 14.17 && < 15", ">= 15.1" ],
2310
- "node:diagnostics_channel": [ ">= 14.18 && < 15", ">= 16" ],
2296
+ diagnostics_channel: ">= 15.1",
2311
2297
  dns: !0,
2312
- "node:dns": [ ">= 14.18 && < 15", ">= 16" ],
2313
2298
  "dns/promises": ">= 15",
2314
- "node:dns/promises": ">= 16",
2315
2299
  domain: ">= 0.7.12",
2316
- "node:domain": [ ">= 14.18 && < 15", ">= 16" ],
2317
2300
  events: !0,
2318
- "node:events": [ ">= 14.18 && < 15", ">= 16" ],
2319
2301
  freelist: "< 6",
2320
2302
  fs: !0,
2321
- "node:fs": [ ">= 14.18 && < 15", ">= 16" ],
2322
2303
  "fs/promises": [ ">= 10 && < 10.1", ">= 14" ],
2323
- "node:fs/promises": [ ">= 14.18 && < 15", ">= 16" ],
2324
2304
  _http_agent: ">= 0.11.1",
2325
- "node:_http_agent": [ ">= 14.18 && < 15", ">= 16" ],
2326
2305
  _http_client: ">= 0.11.1",
2327
- "node:_http_client": [ ">= 14.18 && < 15", ">= 16" ],
2328
2306
  _http_common: ">= 0.11.1",
2329
- "node:_http_common": [ ">= 14.18 && < 15", ">= 16" ],
2330
2307
  _http_incoming: ">= 0.11.1",
2331
- "node:_http_incoming": [ ">= 14.18 && < 15", ">= 16" ],
2332
2308
  _http_outgoing: ">= 0.11.1",
2333
- "node:_http_outgoing": [ ">= 14.18 && < 15", ">= 16" ],
2334
2309
  _http_server: ">= 0.11.1",
2335
- "node:_http_server": [ ">= 14.18 && < 15", ">= 16" ],
2336
2310
  http: !0,
2337
- "node:http": [ ">= 14.18 && < 15", ">= 16" ],
2338
2311
  http2: ">= 8.8",
2339
- "node:http2": [ ">= 14.18 && < 15", ">= 16" ],
2340
2312
  https: !0,
2341
- "node:https": [ ">= 14.18 && < 15", ">= 16" ],
2342
- inspector: ">= 8",
2343
- "node:inspector": [ ">= 14.18 && < 15", ">= 16" ],
2313
+ inspector: ">= 8.0.0",
2344
2314
  _linklist: "< 8",
2345
2315
  module: !0,
2346
- "node:module": [ ">= 14.18 && < 15", ">= 16" ],
2347
2316
  net: !0,
2348
- "node:net": [ ">= 14.18 && < 15", ">= 16" ],
2349
- "node-inspect/lib/_inspect": ">= 7.6 && < 12",
2350
- "node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
2351
- "node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
2317
+ "node-inspect/lib/_inspect": ">= 7.6.0 && < 12",
2318
+ "node-inspect/lib/internal/inspect_client": ">= 7.6.0 && < 12",
2319
+ "node-inspect/lib/internal/inspect_repl": ">= 7.6.0 && < 12",
2352
2320
  os: !0,
2353
- "node:os": [ ">= 14.18 && < 15", ">= 16" ],
2354
2321
  path: !0,
2355
- "node:path": [ ">= 14.18 && < 15", ">= 16" ],
2356
2322
  "path/posix": ">= 15.3",
2357
- "node:path/posix": ">= 16",
2358
2323
  "path/win32": ">= 15.3",
2359
- "node:path/win32": ">= 16",
2360
2324
  perf_hooks: ">= 8.5",
2361
- "node:perf_hooks": [ ">= 14.18 && < 15", ">= 16" ],
2362
2325
  process: ">= 1",
2363
- "node:process": [ ">= 14.18 && < 15", ">= 16" ],
2364
- punycode: ">= 0.5",
2365
- "node:punycode": [ ">= 14.18 && < 15", ">= 16" ],
2326
+ punycode: !0,
2366
2327
  querystring: !0,
2367
- "node:querystring": [ ">= 14.18 && < 15", ">= 16" ],
2368
2328
  readline: !0,
2369
- "node:readline": [ ">= 14.18 && < 15", ">= 16" ],
2370
- "readline/promises": ">= 17",
2371
- "node:readline/promises": ">= 17",
2372
2329
  repl: !0,
2373
- "node:repl": [ ">= 14.18 && < 15", ">= 16" ],
2374
2330
  smalloc: ">= 0.11.5 && < 3",
2375
2331
  _stream_duplex: ">= 0.9.4",
2376
- "node:_stream_duplex": [ ">= 14.18 && < 15", ">= 16" ],
2377
2332
  _stream_transform: ">= 0.9.4",
2378
- "node:_stream_transform": [ ">= 14.18 && < 15", ">= 16" ],
2379
2333
  _stream_wrap: ">= 1.4.1",
2380
- "node:_stream_wrap": [ ">= 14.18 && < 15", ">= 16" ],
2381
2334
  _stream_passthrough: ">= 0.9.4",
2382
- "node:_stream_passthrough": [ ">= 14.18 && < 15", ">= 16" ],
2383
2335
  _stream_readable: ">= 0.9.4",
2384
- "node:_stream_readable": [ ">= 14.18 && < 15", ">= 16" ],
2385
2336
  _stream_writable: ">= 0.9.4",
2386
- "node:_stream_writable": [ ">= 14.18 && < 15", ">= 16" ],
2387
2337
  stream: !0,
2388
- "node:stream": [ ">= 14.18 && < 15", ">= 16" ],
2389
- "stream/consumers": ">= 16.7",
2390
- "node:stream/consumers": ">= 16.7",
2391
2338
  "stream/promises": ">= 15",
2392
- "node:stream/promises": ">= 16",
2393
- "stream/web": ">= 16.5",
2394
- "node:stream/web": ">= 16.5",
2395
2339
  string_decoder: !0,
2396
- "node:string_decoder": [ ">= 14.18 && < 15", ">= 16" ],
2397
- sys: [ ">= 0.4 && < 0.7", ">= 0.8" ],
2398
- "node:sys": [ ">= 14.18 && < 15", ">= 16" ],
2399
- "node:test": [ ">= 16.17 && < 17", ">= 18" ],
2340
+ sys: [ ">= 0.6 && < 0.7", ">= 0.8" ],
2400
2341
  timers: !0,
2401
- "node:timers": [ ">= 14.18 && < 15", ">= 16" ],
2402
2342
  "timers/promises": ">= 15",
2403
- "node:timers/promises": ">= 16",
2404
2343
  _tls_common: ">= 0.11.13",
2405
- "node:_tls_common": [ ">= 14.18 && < 15", ">= 16" ],
2406
2344
  _tls_legacy: ">= 0.11.3 && < 10",
2407
2345
  _tls_wrap: ">= 0.11.3",
2408
- "node:_tls_wrap": [ ">= 14.18 && < 15", ">= 16" ],
2409
2346
  tls: !0,
2410
- "node:tls": [ ">= 14.18 && < 15", ">= 16" ],
2411
2347
  trace_events: ">= 10",
2412
- "node:trace_events": [ ">= 14.18 && < 15", ">= 16" ],
2413
2348
  tty: !0,
2414
- "node:tty": [ ">= 14.18 && < 15", ">= 16" ],
2415
2349
  url: !0,
2416
- "node:url": [ ">= 14.18 && < 15", ">= 16" ],
2417
2350
  util: !0,
2418
- "node:util": [ ">= 14.18 && < 15", ">= 16" ],
2419
2351
  "util/types": ">= 15.3",
2420
- "node:util/types": ">= 16",
2421
2352
  "v8/tools/arguments": ">= 10 && < 12",
2422
- "v8/tools/codemap": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2423
- "v8/tools/consarray": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2424
- "v8/tools/csvparser": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2425
- "v8/tools/logreader": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2426
- "v8/tools/profile_view": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2427
- "v8/tools/splaytree": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2353
+ "v8/tools/codemap": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2354
+ "v8/tools/consarray": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2355
+ "v8/tools/csvparser": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2356
+ "v8/tools/logreader": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2357
+ "v8/tools/profile_view": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2358
+ "v8/tools/splaytree": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2428
2359
  v8: ">= 1",
2429
- "node:v8": [ ">= 14.18 && < 15", ">= 16" ],
2430
2360
  vm: !0,
2431
- "node:vm": [ ">= 14.18 && < 15", ">= 16" ],
2432
2361
  wasi: ">= 13.4 && < 13.5",
2433
2362
  worker_threads: ">= 11.7",
2434
- "node:worker_threads": [ ">= 14.18 && < 15", ">= 16" ],
2435
- zlib: ">= 0.5",
2436
- "node:zlib": [ ">= 14.18 && < 15", ">= 16" ]
2363
+ zlib: !0
2437
2364
  };
2438
2365
 
2439
2366
  isCoreModule = function e(t, r) {
2440
- return src(data$1, t) && function n(e, t) {
2441
- var r, n;
2367
+ return src(data$1, t) && function s(e, t) {
2368
+ var r, s;
2442
2369
  if ("boolean" == typeof t) return t;
2443
- if ("string" != typeof (r = void 0 === e ? process.versions && process.versions.node : e)) throw new TypeError(void 0 === e ? "Unable to determine current node version" : "If provided, a valid node version is required");
2370
+ if ("string" != typeof (r = void 0 === e ? process.versions && process.versions.node && process.versions.node : e)) throw new TypeError(void 0 === e ? "Unable to determine current node version" : "If provided, a valid node version is required");
2444
2371
  if (t && "object" == typeof t) {
2445
- for (n = 0; n < t.length; ++n) if (matchesRange$1(r, t[n])) return !0;
2372
+ for (s = 0; s < t.length; ++s) if (matchesRange$1(r, t[s])) return !0;
2446
2373
  return !1;
2447
2374
  }
2448
2375
  return matchesRange$1(r, t);
2449
2376
  }(r, data$1[t]);
2450
- }, realpathFS$1 = "win32" !== process.platform && fs__default.default.realpath && "function" == typeof fs__default.default.realpath.native ? fs__default.default.realpath.native : fs__default.default.realpath,
2451
- homedir$1 = homedir$2(), defaultPaths$1 = function() {
2452
- return [ path__default.default.join(homedir$1, ".node_modules"), path__default.default.join(homedir$1, ".node_libraries") ];
2453
- }, defaultIsFile$1 = function e(t, r) {
2377
+ }, realpathFS$1 = fs__default.default.realpath && "function" == typeof fs__default.default.realpath.native ? fs__default.default.realpath.native : fs__default.default.realpath,
2378
+ defaultIsFile$1 = function e(t, r) {
2454
2379
  fs__default.default.stat(t, (function(e, t) {
2455
2380
  return e ? "ENOENT" === e.code || "ENOTDIR" === e.code ? r(null, !1) : r(e) : r(null, t.isFile() || t.isFIFO());
2456
2381
  }));
@@ -2459,117 +2384,117 @@ homedir$1 = homedir$2(), defaultPaths$1 = function() {
2459
2384
  return e ? "ENOENT" === e.code || "ENOTDIR" === e.code ? r(null, !1) : r(e) : r(null, t.isDirectory());
2460
2385
  }));
2461
2386
  }, defaultRealpath = function e(t, r) {
2462
- realpathFS$1(t, (function(e, n) {
2463
- e && "ENOENT" !== e.code ? r(e) : r(null, e ? t : n);
2387
+ realpathFS$1(t, (function(e, s) {
2388
+ e && "ENOENT" !== e.code ? r(e) : r(null, e ? t : s);
2464
2389
  }));
2465
- }, maybeRealpath = function e(t, r, n, s) {
2466
- n && !1 === n.preserveSymlinks ? t(r, s) : s(null, r);
2467
- }, defaultReadPackage = function e(t, r, n) {
2390
+ }, maybeRealpath = function e(t, r, s, n) {
2391
+ s && !1 === s.preserveSymlinks ? t(r, n) : n(null, r);
2392
+ }, defaultReadPackage = function e(t, r, s) {
2468
2393
  t(r, (function(e, t) {
2469
- if (e) n(e); else try {
2394
+ if (e) s(e); else try {
2470
2395
  var r = JSON.parse(t);
2471
- n(null, r);
2396
+ s(null, r);
2472
2397
  } catch (e) {
2473
- n(null);
2398
+ s(null);
2474
2399
  }
2475
2400
  }));
2476
- }, getPackageCandidates$1 = function e(t, r, n) {
2477
- var s, o = nodeModulesPaths(r, n, t);
2478
- for (s = 0; s < o.length; s++) o[s] = path__default.default.join(o[s], t);
2401
+ }, getPackageCandidates$1 = function e(t, r, s) {
2402
+ var n, o = nodeModulesPaths(r, s, t);
2403
+ for (n = 0; n < o.length; n++) o[n] = path__default.default.join(o[n], t);
2479
2404
  return o;
2480
- }, async = function e(t, r, n) {
2481
- function s(e) {
2405
+ }, async = function e(t, r, s) {
2406
+ function n(e) {
2482
2407
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) T = path__default.default.resolve(e, t),
2483
2408
  "." !== t && ".." !== t && "/" !== t.slice(-1) || (T += "/"), /\/$/.test(t) && T === e ? l(T, S.package, o) : i(T, S.package, o); else {
2484
2409
  if (_ && isCoreModule(t)) return D(null, t);
2485
- !function r(e, t, n) {
2486
- var s = function() {
2410
+ !function r(e, t, s) {
2411
+ var n = function() {
2487
2412
  return getPackageCandidates$1(e, t, S);
2488
2413
  };
2489
- c(n, y ? y(e, t, s, S) : s());
2490
- }(t, e, (function(e, r, n) {
2414
+ c(s, y ? y(e, t, n, S) : n());
2415
+ }(t, e, (function(e, r, s) {
2491
2416
  if (e) D(e); else {
2492
2417
  if (r) return maybeRealpath(f, r, S, (function(e, t) {
2493
- e ? D(e) : D(null, t, n);
2418
+ e ? D(e) : D(null, t, s);
2494
2419
  }));
2495
- var s = new Error("Cannot find module '" + t + "' from '" + b + "'");
2496
- s.code = "MODULE_NOT_FOUND", D(s);
2420
+ var n = new Error("Cannot find module '" + t + "' from '" + b + "'");
2421
+ n.code = "MODULE_NOT_FOUND", D(n);
2497
2422
  }
2498
2423
  }));
2499
2424
  }
2500
2425
  }
2501
- function o(e, r, n) {
2502
- e ? D(e) : r ? D(null, r, n) : l(T, (function(e, r, n) {
2426
+ function o(e, r, s) {
2427
+ e ? D(e) : r ? D(null, r, s) : l(T, (function(e, r, s) {
2503
2428
  if (e) D(e); else if (r) maybeRealpath(f, r, S, (function(e, t) {
2504
- e ? D(e) : D(null, t, n);
2429
+ e ? D(e) : D(null, t, s);
2505
2430
  })); else {
2506
- var s = new Error("Cannot find module '" + t + "' from '" + b + "'");
2507
- s.code = "MODULE_NOT_FOUND", D(s);
2431
+ var n = new Error("Cannot find module '" + t + "' from '" + b + "'");
2432
+ n.code = "MODULE_NOT_FOUND", D(n);
2508
2433
  }
2509
2434
  }));
2510
2435
  }
2511
2436
  function i(e, t, r) {
2512
- var n = t, s = r;
2513
- "function" == typeof n && (s = n, n = void 0), function e(t, r, n) {
2514
- function o(n, o, a) {
2437
+ var s = t, n = r;
2438
+ "function" == typeof s && (n = s, s = void 0), function e(t, r, s) {
2439
+ function o(s, o, a) {
2515
2440
  var u, h, p;
2516
- return c = o, n ? s(n) : a && c && S.pathFilter && (h = (u = path__default.default.relative(a, l)).slice(0, u.length - t[0].length),
2441
+ return c = o, s ? n(s) : a && c && S.pathFilter && (h = (u = path__default.default.relative(a, l)).slice(0, u.length - t[0].length),
2517
2442
  p = S.pathFilter(c, r, h)) ? e([ "" ].concat(w.slice()), path__default.default.resolve(a, p), c) : void d(l, i);
2518
2443
  }
2519
- function i(n, o) {
2520
- return n ? s(n) : o ? s(null, l, c) : void e(t.slice(1), r, c);
2444
+ function i(s, o) {
2445
+ return s ? n(s) : o ? n(null, l, c) : void e(t.slice(1), r, c);
2521
2446
  }
2522
2447
  var l, c;
2523
- if (0 === t.length) return s(null, void 0, n);
2524
- l = r + t[0], (c = n) ? o(null, c) : a(path__default.default.dirname(l), o);
2525
- }([ "" ].concat(w), e, n);
2448
+ if (0 === t.length) return n(null, void 0, s);
2449
+ l = r + t[0], (c = s) ? o(null, c) : a(path__default.default.dirname(l), o);
2450
+ }([ "" ].concat(w), e, s);
2526
2451
  }
2527
2452
  function a(e, t) {
2528
- return "" === e || "/" === e || "win32" === process.platform && /^\w:[/\\]*$/.test(e) || /[/\\]node_modules[/\\]*$/.test(e) ? t(null) : void maybeRealpath(f, e, S, (function(r, n) {
2453
+ return "" === e || "/" === e || "win32" === process.platform && /^\w:[/\\]*$/.test(e) || /[/\\]node_modules[/\\]*$/.test(e) ? t(null) : void maybeRealpath(f, e, S, (function(r, s) {
2529
2454
  if (r) return a(path__default.default.dirname(e), t);
2530
- var s = path__default.default.join(n, "package.json");
2531
- d(s, (function(r, n) {
2532
- if (!n) return a(path__default.default.dirname(e), t);
2533
- m(p, s, (function(r, n) {
2455
+ var n = path__default.default.join(s, "package.json");
2456
+ d(n, (function(r, s) {
2457
+ if (!s) return a(path__default.default.dirname(e), t);
2458
+ m(p, n, (function(r, s) {
2534
2459
  r && t(r);
2535
- var o = n;
2536
- o && S.packageFilter && (o = S.packageFilter(o, s)), t(null, o, e);
2460
+ var o = s;
2461
+ o && S.packageFilter && (o = S.packageFilter(o, n)), t(null, o, e);
2537
2462
  }));
2538
2463
  }));
2539
2464
  }));
2540
2465
  }
2541
2466
  function l(e, t, r) {
2542
- var n = r, s = t;
2543
- "function" == typeof s && (n = s, s = S.package), maybeRealpath(f, e, S, (function(t, r) {
2544
- if (t) return n(t);
2467
+ var s = r, n = t;
2468
+ "function" == typeof n && (s = n, n = S.package), maybeRealpath(f, e, S, (function(t, r) {
2469
+ if (t) return s(t);
2545
2470
  var o = path__default.default.join(r, "package.json");
2546
2471
  d(o, (function(t, r) {
2547
- return t ? n(t) : r ? void m(p, o, (function(t, r) {
2548
- var s, a;
2549
- return t ? n(t) : ((s = r) && S.packageFilter && (s = S.packageFilter(s, o)), s && s.main ? "string" != typeof s.main ? ((a = new TypeError("package “" + s.name + "” `main` must be a string")).code = "INVALID_PACKAGE_MAIN",
2550
- n(a)) : ("." !== s.main && "./" !== s.main || (s.main = "index"), void i(path__default.default.resolve(e, s.main), s, (function(t, r, s) {
2551
- return t ? n(t) : r ? n(null, r, s) : s ? void l(path__default.default.resolve(e, s.main), s, (function(t, r, s) {
2552
- return t ? n(t) : r ? n(null, r, s) : void i(path__default.default.join(e, "index"), s, n);
2553
- })) : i(path__default.default.join(e, "index"), s, n);
2554
- }))) : void i(path__default.default.join(e, "/index"), s, n));
2555
- })) : i(path__default.default.join(e, "index"), s, n);
2472
+ return t ? s(t) : r ? void m(p, o, (function(t, r) {
2473
+ var n, a;
2474
+ return t ? s(t) : ((n = r) && S.packageFilter && (n = S.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",
2475
+ s(a)) : ("." !== n.main && "./" !== n.main || (n.main = "index"), void i(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2476
+ return t ? s(t) : r ? s(null, r, n) : n ? void l(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2477
+ return t ? s(t) : r ? s(null, r, n) : void i(path__default.default.join(e, "index"), n, s);
2478
+ })) : i(path__default.default.join(e, "index"), n, s);
2479
+ }))) : void i(path__default.default.join(e, "/index"), n, s));
2480
+ })) : i(path__default.default.join(e, "index"), n, s);
2556
2481
  }));
2557
2482
  }));
2558
2483
  }
2559
2484
  function c(e, t) {
2560
2485
  function r(t, r, o) {
2561
- return t ? e(t) : r ? e(null, r, o) : void l(s, S.package, n);
2486
+ return t ? e(t) : r ? e(null, r, o) : void l(n, S.package, s);
2562
2487
  }
2563
- function n(r, n, s) {
2564
- return r ? e(r) : n ? e(null, n, s) : void c(e, t.slice(1));
2488
+ function s(r, s, n) {
2489
+ return r ? e(r) : s ? e(null, s, n) : void c(e, t.slice(1));
2565
2490
  }
2566
2491
  if (0 === t.length) return e(null, void 0);
2567
- var s = t[0];
2568
- h(path__default.default.dirname(s), (function o(n, a) {
2569
- return n ? e(n) : a ? void i(s, S.package, r) : c(e, t.slice(1));
2492
+ var n = t[0];
2493
+ h(path__default.default.dirname(n), (function o(s, a) {
2494
+ return s ? e(s) : a ? void i(n, S.package, r) : c(e, t.slice(1));
2570
2495
  }));
2571
2496
  }
2572
- var u, d, h, p, f, m, g, y, w, _, v, b, E, T, D = n, S = r;
2497
+ var u, d, h, p, f, m, g, y, w, _, v, b, E, T, D = s, S = r;
2573
2498
  return "function" == typeof r && (D = S, S = {}), "string" != typeof t ? (u = new TypeError("Path must be a string."),
2574
2499
  process.nextTick((function() {
2575
2500
  D(u);
@@ -2579,164 +2504,94 @@ homedir$1 = homedir$2(), defaultPaths$1 = function() {
2579
2504
  process.nextTick((function() {
2580
2505
  D(g);
2581
2506
  }))) : (y = S.packageIterator, w = S.extensions || [ ".js" ], _ = !1 !== S.includeCoreModules,
2582
- v = S.basedir || path__default.default.dirname(caller()), b = S.filename || v, S.paths = S.paths || defaultPaths$1(),
2507
+ v = S.basedir || path__default.default.dirname(caller()), b = S.filename || v, S.paths = S.paths || [],
2583
2508
  E = path__default.default.resolve(v), void maybeRealpath(f, E, S, (function(e, t) {
2584
- e ? D(e) : s(t);
2509
+ e ? D(e) : n(t);
2585
2510
  }))));
2586
2511
  };
2587
2512
 
2588
2513
  const data = {
2589
2514
  assert: !0,
2590
- "node:assert": [ ">= 14.18 && < 15", ">= 16" ],
2591
2515
  "assert/strict": ">= 15",
2592
- "node:assert/strict": ">= 16",
2593
2516
  async_hooks: ">= 8",
2594
- "node:async_hooks": [ ">= 14.18 && < 15", ">= 16" ],
2595
- buffer_ieee754: ">= 0.5 && < 0.9.7",
2517
+ buffer_ieee754: "< 0.9.7",
2596
2518
  buffer: !0,
2597
- "node:buffer": [ ">= 14.18 && < 15", ">= 16" ],
2598
2519
  child_process: !0,
2599
- "node:child_process": [ ">= 14.18 && < 15", ">= 16" ],
2600
- cluster: ">= 0.5",
2601
- "node:cluster": [ ">= 14.18 && < 15", ">= 16" ],
2520
+ cluster: !0,
2602
2521
  console: !0,
2603
- "node:console": [ ">= 14.18 && < 15", ">= 16" ],
2604
2522
  constants: !0,
2605
- "node:constants": [ ">= 14.18 && < 15", ">= 16" ],
2606
2523
  crypto: !0,
2607
- "node:crypto": [ ">= 14.18 && < 15", ">= 16" ],
2608
2524
  _debug_agent: ">= 1 && < 8",
2609
2525
  _debugger: "< 8",
2610
2526
  dgram: !0,
2611
- "node:dgram": [ ">= 14.18 && < 15", ">= 16" ],
2612
- diagnostics_channel: [ ">= 14.17 && < 15", ">= 15.1" ],
2613
- "node:diagnostics_channel": [ ">= 14.18 && < 15", ">= 16" ],
2527
+ diagnostics_channel: ">= 15.1",
2614
2528
  dns: !0,
2615
- "node:dns": [ ">= 14.18 && < 15", ">= 16" ],
2616
2529
  "dns/promises": ">= 15",
2617
- "node:dns/promises": ">= 16",
2618
2530
  domain: ">= 0.7.12",
2619
- "node:domain": [ ">= 14.18 && < 15", ">= 16" ],
2620
2531
  events: !0,
2621
- "node:events": [ ">= 14.18 && < 15", ">= 16" ],
2622
2532
  freelist: "< 6",
2623
2533
  fs: !0,
2624
- "node:fs": [ ">= 14.18 && < 15", ">= 16" ],
2625
2534
  "fs/promises": [ ">= 10 && < 10.1", ">= 14" ],
2626
- "node:fs/promises": [ ">= 14.18 && < 15", ">= 16" ],
2627
2535
  _http_agent: ">= 0.11.1",
2628
- "node:_http_agent": [ ">= 14.18 && < 15", ">= 16" ],
2629
2536
  _http_client: ">= 0.11.1",
2630
- "node:_http_client": [ ">= 14.18 && < 15", ">= 16" ],
2631
2537
  _http_common: ">= 0.11.1",
2632
- "node:_http_common": [ ">= 14.18 && < 15", ">= 16" ],
2633
2538
  _http_incoming: ">= 0.11.1",
2634
- "node:_http_incoming": [ ">= 14.18 && < 15", ">= 16" ],
2635
2539
  _http_outgoing: ">= 0.11.1",
2636
- "node:_http_outgoing": [ ">= 14.18 && < 15", ">= 16" ],
2637
2540
  _http_server: ">= 0.11.1",
2638
- "node:_http_server": [ ">= 14.18 && < 15", ">= 16" ],
2639
2541
  http: !0,
2640
- "node:http": [ ">= 14.18 && < 15", ">= 16" ],
2641
2542
  http2: ">= 8.8",
2642
- "node:http2": [ ">= 14.18 && < 15", ">= 16" ],
2643
2543
  https: !0,
2644
- "node:https": [ ">= 14.18 && < 15", ">= 16" ],
2645
- inspector: ">= 8",
2646
- "node:inspector": [ ">= 14.18 && < 15", ">= 16" ],
2544
+ inspector: ">= 8.0.0",
2647
2545
  _linklist: "< 8",
2648
2546
  module: !0,
2649
- "node:module": [ ">= 14.18 && < 15", ">= 16" ],
2650
2547
  net: !0,
2651
- "node:net": [ ">= 14.18 && < 15", ">= 16" ],
2652
- "node-inspect/lib/_inspect": ">= 7.6 && < 12",
2653
- "node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
2654
- "node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
2548
+ "node-inspect/lib/_inspect": ">= 7.6.0 && < 12",
2549
+ "node-inspect/lib/internal/inspect_client": ">= 7.6.0 && < 12",
2550
+ "node-inspect/lib/internal/inspect_repl": ">= 7.6.0 && < 12",
2655
2551
  os: !0,
2656
- "node:os": [ ">= 14.18 && < 15", ">= 16" ],
2657
2552
  path: !0,
2658
- "node:path": [ ">= 14.18 && < 15", ">= 16" ],
2659
2553
  "path/posix": ">= 15.3",
2660
- "node:path/posix": ">= 16",
2661
2554
  "path/win32": ">= 15.3",
2662
- "node:path/win32": ">= 16",
2663
2555
  perf_hooks: ">= 8.5",
2664
- "node:perf_hooks": [ ">= 14.18 && < 15", ">= 16" ],
2665
2556
  process: ">= 1",
2666
- "node:process": [ ">= 14.18 && < 15", ">= 16" ],
2667
- punycode: ">= 0.5",
2668
- "node:punycode": [ ">= 14.18 && < 15", ">= 16" ],
2557
+ punycode: !0,
2669
2558
  querystring: !0,
2670
- "node:querystring": [ ">= 14.18 && < 15", ">= 16" ],
2671
2559
  readline: !0,
2672
- "node:readline": [ ">= 14.18 && < 15", ">= 16" ],
2673
- "readline/promises": ">= 17",
2674
- "node:readline/promises": ">= 17",
2675
2560
  repl: !0,
2676
- "node:repl": [ ">= 14.18 && < 15", ">= 16" ],
2677
2561
  smalloc: ">= 0.11.5 && < 3",
2678
2562
  _stream_duplex: ">= 0.9.4",
2679
- "node:_stream_duplex": [ ">= 14.18 && < 15", ">= 16" ],
2680
2563
  _stream_transform: ">= 0.9.4",
2681
- "node:_stream_transform": [ ">= 14.18 && < 15", ">= 16" ],
2682
2564
  _stream_wrap: ">= 1.4.1",
2683
- "node:_stream_wrap": [ ">= 14.18 && < 15", ">= 16" ],
2684
2565
  _stream_passthrough: ">= 0.9.4",
2685
- "node:_stream_passthrough": [ ">= 14.18 && < 15", ">= 16" ],
2686
2566
  _stream_readable: ">= 0.9.4",
2687
- "node:_stream_readable": [ ">= 14.18 && < 15", ">= 16" ],
2688
2567
  _stream_writable: ">= 0.9.4",
2689
- "node:_stream_writable": [ ">= 14.18 && < 15", ">= 16" ],
2690
2568
  stream: !0,
2691
- "node:stream": [ ">= 14.18 && < 15", ">= 16" ],
2692
- "stream/consumers": ">= 16.7",
2693
- "node:stream/consumers": ">= 16.7",
2694
2569
  "stream/promises": ">= 15",
2695
- "node:stream/promises": ">= 16",
2696
- "stream/web": ">= 16.5",
2697
- "node:stream/web": ">= 16.5",
2698
2570
  string_decoder: !0,
2699
- "node:string_decoder": [ ">= 14.18 && < 15", ">= 16" ],
2700
- sys: [ ">= 0.4 && < 0.7", ">= 0.8" ],
2701
- "node:sys": [ ">= 14.18 && < 15", ">= 16" ],
2702
- "node:test": ">= 18",
2571
+ sys: [ ">= 0.6 && < 0.7", ">= 0.8" ],
2703
2572
  timers: !0,
2704
- "node:timers": [ ">= 14.18 && < 15", ">= 16" ],
2705
2573
  "timers/promises": ">= 15",
2706
- "node:timers/promises": ">= 16",
2707
2574
  _tls_common: ">= 0.11.13",
2708
- "node:_tls_common": [ ">= 14.18 && < 15", ">= 16" ],
2709
2575
  _tls_legacy: ">= 0.11.3 && < 10",
2710
2576
  _tls_wrap: ">= 0.11.3",
2711
- "node:_tls_wrap": [ ">= 14.18 && < 15", ">= 16" ],
2712
2577
  tls: !0,
2713
- "node:tls": [ ">= 14.18 && < 15", ">= 16" ],
2714
2578
  trace_events: ">= 10",
2715
- "node:trace_events": [ ">= 14.18 && < 15", ">= 16" ],
2716
2579
  tty: !0,
2717
- "node:tty": [ ">= 14.18 && < 15", ">= 16" ],
2718
2580
  url: !0,
2719
- "node:url": [ ">= 14.18 && < 15", ">= 16" ],
2720
2581
  util: !0,
2721
- "node:util": [ ">= 14.18 && < 15", ">= 16" ],
2722
2582
  "util/types": ">= 15.3",
2723
- "node:util/types": ">= 16",
2724
2583
  "v8/tools/arguments": ">= 10 && < 12",
2725
- "v8/tools/codemap": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2726
- "v8/tools/consarray": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2727
- "v8/tools/csvparser": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2728
- "v8/tools/logreader": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2729
- "v8/tools/profile_view": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2730
- "v8/tools/splaytree": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2584
+ "v8/tools/codemap": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2585
+ "v8/tools/consarray": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2586
+ "v8/tools/csvparser": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2587
+ "v8/tools/logreader": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2588
+ "v8/tools/profile_view": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2589
+ "v8/tools/splaytree": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2731
2590
  v8: ">= 1",
2732
- "node:v8": [ ">= 14.18 && < 15", ">= 16" ],
2733
2591
  vm: !0,
2734
- "node:vm": [ ">= 14.18 && < 15", ">= 16" ],
2735
2592
  wasi: ">= 13.4 && < 13.5",
2736
2593
  worker_threads: ">= 11.7",
2737
- "node:worker_threads": [ ">= 14.18 && < 15", ">= 16" ],
2738
- zlib: ">= 0.5",
2739
- "node:zlib": [ ">= 14.18 && < 15", ">= 16" ]
2594
+ zlib: !0
2740
2595
  };
2741
2596
 
2742
2597
  for (mod in current = process.versions && process.versions.node && process.versions.node.split(".") || [],
@@ -2744,29 +2599,23 @@ core = {}, data) Object.prototype.hasOwnProperty.call(data, mod) && (core[mod] =
2744
2599
 
2745
2600
  core_1 = core, isCore = function e(t) {
2746
2601
  return isCoreModule(t);
2747
- }, realpathFS = "win32" !== process.platform && fs__default.default.realpathSync && "function" == typeof fs__default.default.realpathSync.native ? fs__default.default.realpathSync.native : fs__default.default.realpathSync,
2748
- homedir = homedir$2(), defaultPaths = function() {
2749
- return [ path__default.default.join(homedir, ".node_modules"), path__default.default.join(homedir, ".node_libraries") ];
2750
- }, defaultIsFile = function e(t) {
2602
+ }, realpathFS = fs__default.default.realpathSync && "function" == typeof fs__default.default.realpathSync.native ? fs__default.default.realpathSync.native : fs__default.default.realpathSync,
2603
+ defaultIsFile = function e(t) {
2751
2604
  try {
2752
- var r = fs__default.default.statSync(t, {
2753
- throwIfNoEntry: !1
2754
- });
2605
+ var r = fs__default.default.statSync(t);
2755
2606
  } catch (e) {
2756
2607
  if (e && ("ENOENT" === e.code || "ENOTDIR" === e.code)) return !1;
2757
2608
  throw e;
2758
2609
  }
2759
- return !!r && (r.isFile() || r.isFIFO());
2610
+ return r.isFile() || r.isFIFO();
2760
2611
  }, defaultIsDir = function e(t) {
2761
2612
  try {
2762
- var r = fs__default.default.statSync(t, {
2763
- throwIfNoEntry: !1
2764
- });
2613
+ var r = fs__default.default.statSync(t);
2765
2614
  } catch (e) {
2766
2615
  if (e && ("ENOENT" === e.code || "ENOTDIR" === e.code)) return !1;
2767
2616
  throw e;
2768
2617
  }
2769
- return !!r && r.isDirectory();
2618
+ return r.isDirectory();
2770
2619
  }, defaultRealpathSync = function e(t) {
2771
2620
  try {
2772
2621
  return realpathFS(t);
@@ -2774,35 +2623,35 @@ homedir = homedir$2(), defaultPaths = function() {
2774
2623
  if ("ENOENT" !== e.code) throw e;
2775
2624
  }
2776
2625
  return t;
2777
- }, maybeRealpathSync = function e(t, r, n) {
2778
- return n && !1 === n.preserveSymlinks ? t(r) : r;
2626
+ }, maybeRealpathSync = function e(t, r, s) {
2627
+ return s && !1 === s.preserveSymlinks ? t(r) : r;
2779
2628
  }, defaultReadPackageSync = function e(t, r) {
2780
- var n = t(r);
2629
+ var s = t(r);
2781
2630
  try {
2782
- return JSON.parse(n);
2631
+ return JSON.parse(s);
2783
2632
  } catch (e) {}
2784
- }, getPackageCandidates = function e(t, r, n) {
2785
- var s, o = nodeModulesPaths(r, n, t);
2786
- for (s = 0; s < o.length; s++) o[s] = path__default.default.join(o[s], t);
2633
+ }, getPackageCandidates = function e(t, r, s) {
2634
+ var n, o = nodeModulesPaths(r, s, t);
2635
+ for (n = 0; n < o.length; n++) o[n] = path__default.default.join(o[n], t);
2787
2636
  return o;
2788
2637
  }, sync = function e(t, r) {
2789
- function n(e) {
2790
- var t, r, n, o, l = s(path__default.default.dirname(e));
2638
+ function s(e) {
2639
+ var t, r, s, o, l = n(path__default.default.dirname(e));
2791
2640
  if (l && l.dir && l.pkg && i.pathFilter && (t = path__default.default.relative(l.dir, e),
2792
2641
  (r = i.pathFilter(l.pkg, e, t)) && (e = path__default.default.resolve(l.dir, r))),
2793
2642
  a(e)) return e;
2794
- for (n = 0; n < p.length; n++) if (o = e + p[n], a(o)) return o;
2643
+ for (s = 0; s < p.length; s++) if (o = e + p[s], a(o)) return o;
2795
2644
  }
2796
- function s(e) {
2645
+ function n(e) {
2797
2646
  var t, r;
2798
2647
  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"),
2799
2648
  a(t) ? ((r = d(l, t)) && i.packageFilter && (r = i.packageFilter(r, e)), {
2800
2649
  pkg: r,
2801
2650
  dir: e
2802
- }) : s(path__default.default.dirname(e));
2651
+ }) : n(path__default.default.dirname(e));
2803
2652
  }
2804
2653
  function o(e) {
2805
- var t, r, s, c, h = path__default.default.join(maybeRealpathSync(u, e, i), "/package.json");
2654
+ var t, r, n, c, h = path__default.default.join(maybeRealpathSync(u, e, i), "/package.json");
2806
2655
  if (a(h)) {
2807
2656
  try {
2808
2657
  t = d(l, h);
@@ -2812,12 +2661,12 @@ homedir = homedir$2(), defaultPaths = function() {
2812
2661
  r;
2813
2662
  "." !== t.main && "./" !== t.main || (t.main = "index");
2814
2663
  try {
2815
- if (s = n(path__default.default.resolve(e, t.main))) return s;
2664
+ if (n = s(path__default.default.resolve(e, t.main))) return n;
2816
2665
  if (c = o(path__default.default.resolve(e, t.main))) return c;
2817
2666
  } catch (e) {}
2818
2667
  }
2819
2668
  }
2820
- return n(path__default.default.join(e, "/index"));
2669
+ return s(path__default.default.join(e, "/index"));
2821
2670
  }
2822
2671
  var i, a, l, c, u, d, h, p, f, m, g, y, w, _, v, b;
2823
2672
  if ("string" != typeof t) throw new TypeError("Path must be a string.");
@@ -2825,19 +2674,19 @@ homedir = homedir$2(), defaultPaths = function() {
2825
2674
  c = i.isDirectory || defaultIsDir, u = i.realpathSync || defaultRealpathSync, d = i.readPackageSync || defaultReadPackageSync,
2826
2675
  i.readFileSync && i.readPackageSync) throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
2827
2676
  if (h = i.packageIterator, p = i.extensions || [ ".js" ], f = !1 !== i.includeCoreModules,
2828
- m = i.basedir || path__default.default.dirname(caller()), g = i.filename || m, i.paths = i.paths || defaultPaths(),
2677
+ m = i.basedir || path__default.default.dirname(caller()), g = i.filename || m, i.paths = i.paths || [],
2829
2678
  y = maybeRealpathSync(u, path__default.default.resolve(m), i), /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) {
2830
2679
  if (w = path__default.default.resolve(y, t), "." !== t && ".." !== t && "/" !== t.slice(-1) || (w += "/"),
2831
- _ = n(w) || o(w)) return maybeRealpathSync(u, _, i);
2680
+ _ = s(w) || o(w)) return maybeRealpathSync(u, _, i);
2832
2681
  } else {
2833
2682
  if (f && isCoreModule(t)) return t;
2834
2683
  if (v = function E(e, t) {
2835
- var r, s, a, l, u = function() {
2684
+ var r, n, a, l, u = function() {
2836
2685
  return getPackageCandidates(e, t, i);
2837
2686
  }, d = h ? h(e, t, u, i) : u();
2838
- for (r = 0; r < d.length; r++) if (s = d[r], c(path__default.default.dirname(s))) {
2839
- if (a = n(s)) return a;
2840
- if (l = o(s)) return l;
2687
+ for (r = 0; r < d.length; r++) if (n = d[r], c(path__default.default.dirname(n))) {
2688
+ if (a = s(n)) return a;
2689
+ if (l = o(n)) return l;
2841
2690
  }
2842
2691
  }(t, y)) return maybeRealpathSync(u, v, i);
2843
2692
  }
@@ -2873,22 +2722,22 @@ const createSystem = e => {
2873
2722
  }),
2874
2723
  printDiagnostics(t) {
2875
2724
  t.forEach((t => ((e, t) => {
2876
- let r = BLUE, n = "Build", s = "";
2877
- "error" === e.level ? (r = RED, n = "Error") : "warn" === e.level && (r = YELLOW,
2878
- n = "Warning"), e.header && (n = e.header);
2725
+ let r = BLUE, s = "Build", n = "";
2726
+ "error" === e.level ? (r = RED, s = "Error") : "warn" === e.level && (r = YELLOW,
2727
+ s = "Warning"), e.header && (s = e.header);
2879
2728
  const o = e.relFilePath || e.absFilePath;
2880
- if (o && (s += o, "number" == typeof e.lineNumber && e.lineNumber > 0 && (s += ", line " + e.lineNumber,
2881
- "number" == typeof e.columnNumber && e.columnNumber > 0 && (s += ", column " + e.columnNumber)),
2882
- s += "\n"), s += e.messageText, e.lines && e.lines.length > 0 && (e.lines.forEach((e => {
2883
- s += "\n" + e.lineNumber + ": " + e.text;
2884
- })), s += "\n"), t) {
2885
- const e = [ "%c" + n, `background: ${r}; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;` ];
2886
- console.log(...e, s);
2887
- } else "error" === e.level ? console.error(s) : "warn" === e.level ? console.warn(s) : console.log(s);
2729
+ if (o && (n += o, "number" == typeof e.lineNumber && e.lineNumber > 0 && (n += ", line " + e.lineNumber,
2730
+ "number" == typeof e.columnNumber && e.columnNumber > 0 && (n += ", column " + e.columnNumber)),
2731
+ n += "\n"), n += e.messageText, e.lines && e.lines.length > 0 && (e.lines.forEach((e => {
2732
+ n += "\n" + e.lineNumber + ": " + e.text;
2733
+ })), n += "\n"), t) {
2734
+ const e = [ "%c" + s, `background: ${r}; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;` ];
2735
+ console.log(...e, n);
2736
+ } else "error" === e.level ? console.error(n) : "warn" === e.level ? console.warn(n) : console.log(n);
2888
2737
  })(t, e)));
2889
2738
  }
2890
2739
  };
2891
- })(), r = new Map, n = new Set, s = e => n.add(e), o = e => n.delete(e), i = buildEvents(), a = IS_BROWSER_ENV && navigator.hardwareConcurrency || 1, l = e => {
2740
+ })(), r = new Map, s = new Set, n = e => s.add(e), o = e => s.delete(e), i = buildEvents(), a = IS_BROWSER_ENV && navigator.hardwareConcurrency || 1, l = e => {
2892
2741
  if ("/" === e || "" === e) return "/";
2893
2742
  const t = path$2.dirname(e), r = path$2.basename(e);
2894
2743
  return t.endsWith("/") ? normalizePath(`${t}${r}`) : normalizePath(`${t}/${r}`);
@@ -2905,23 +2754,23 @@ const createSystem = e => {
2905
2754
  error: null
2906
2755
  };
2907
2756
  return d(e, t, r), r;
2908
- }, d = (e, t, n) => {
2909
- const s = path$2.dirname(e);
2910
- t && t.recursive && !(e => "/" === e || windowsPathRegex.test(e))(s) && d(s, t, n);
2757
+ }, d = (e, t, s) => {
2758
+ const n = path$2.dirname(e);
2759
+ t && t.recursive && !(e => "/" === e || windowsPathRegex.test(e))(n) && d(n, t, s);
2911
2760
  const o = r.get(e);
2912
2761
  o ? (o.isDirectory = !0, o.isFile = !1) : (r.set(e, {
2913
2762
  basename: path$2.basename(e),
2914
- dirname: s,
2763
+ dirname: n,
2915
2764
  isDirectory: !0,
2916
2765
  isFile: !1,
2917
2766
  watcherCallbacks: null,
2918
2767
  data: void 0
2919
- }), n.newDirs.push(e), v(e, new Set));
2768
+ }), s.newDirs.push(e), v(e, new Set));
2920
2769
  }, h = e => {
2921
2770
  e = l(e);
2922
- const t = [], n = r.get(e);
2923
- return n && n.isDirectory && r.forEach(((r, n) => {
2924
- "/" !== n && (r.isDirectory || r.isFile && "string" == typeof r.data) && (e.endsWith("/") && `${e}${r.basename}` === n || `${e}/${r.basename}` === n) && t.push(n);
2771
+ const t = [], s = r.get(e);
2772
+ return s && s.isDirectory && r.forEach(((r, s) => {
2773
+ "/" !== s && (r.isDirectory || r.isFile && "string" == typeof r.data) && (e.endsWith("/") && `${e}${r.basename}` === s || `${e}/${r.basename}` === s) && t.push(s);
2925
2774
  })), t.sort();
2926
2775
  }, p = e => {
2927
2776
  e = l(e);
@@ -2930,31 +2779,31 @@ const createSystem = e => {
2930
2779
  }, f = e => ({
2931
2780
  path: l(e),
2932
2781
  error: null
2933
- }), m = (e, t, n) => {
2934
- const s = w(e);
2935
- if (!s.error && !n.error) if (s.isFile) {
2936
- const s = path$2.dirname(t), o = u(s, {
2782
+ }), m = (e, t, s) => {
2783
+ const n = w(e);
2784
+ if (!n.error && !s.error) if (n.isFile) {
2785
+ const n = path$2.dirname(t), o = u(n, {
2937
2786
  recursive: !0
2938
2787
  }), i = r.get(e).data, a = b(t, i);
2939
- n.newDirs.push(...o.newDirs), n.renamed.push({
2788
+ s.newDirs.push(...o.newDirs), s.renamed.push({
2940
2789
  oldPath: e,
2941
2790
  newPath: t,
2942
2791
  isDirectory: !1,
2943
2792
  isFile: !0
2944
- }), a.error ? n.error = a.error : n.newFiles.push(t);
2945
- } else if (s.isDirectory) {
2946
- const r = h(e), s = u(t, {
2793
+ }), a.error ? s.error = a.error : s.newFiles.push(t);
2794
+ } else if (n.isDirectory) {
2795
+ const r = h(e), n = u(t, {
2947
2796
  recursive: !0
2948
2797
  });
2949
- n.newDirs.push(...s.newDirs), n.renamed.push({
2798
+ s.newDirs.push(...n.newDirs), s.renamed.push({
2950
2799
  oldPath: e,
2951
2800
  newPath: t,
2952
2801
  isDirectory: !0,
2953
2802
  isFile: !1
2954
2803
  });
2955
- for (const s of r) {
2956
- const r = s.replace(e, t);
2957
- m(s, r, n);
2804
+ for (const n of r) {
2805
+ const r = n.replace(e, t);
2806
+ m(n, r, s);
2958
2807
  }
2959
2808
  }
2960
2809
  }, g = (e, t = {}) => {
@@ -2967,18 +2816,18 @@ const createSystem = e => {
2967
2816
  error: null
2968
2817
  };
2969
2818
  return y(e, t, r), r;
2970
- }, y = (e, t, n) => {
2971
- if (!n.error) {
2819
+ }, y = (e, t, s) => {
2820
+ if (!s.error) {
2972
2821
  e = l(e);
2973
- const s = h(e);
2974
- if (t && t.recursive) for (const e of s) {
2975
- const s = r.get(e);
2976
- if (s) if (s.isDirectory) y(e, t, n); else if (s.isFile) {
2822
+ const n = h(e);
2823
+ if (t && t.recursive) for (const e of n) {
2824
+ const n = r.get(e);
2825
+ if (n) if (n.isDirectory) y(e, t, s); else if (n.isFile) {
2977
2826
  const t = _(e);
2978
- t.error ? n.error = t.error : n.removedFiles.push(e);
2827
+ t.error ? s.error = t.error : s.removedFiles.push(e);
2979
2828
  }
2980
- } else if (s.length > 0) return void (n.error = "cannot delete directory that contains files/subdirectories");
2981
- r.delete(e), v(e, new Set), n.removedDirs.push(e);
2829
+ } else if (n.length > 0) return void (s.error = "cannot delete directory that contains files/subdirectories");
2830
+ r.delete(e), v(e, new Set), s.removedDirs.push(e);
2982
2831
  }
2983
2832
  }, w = e => {
2984
2833
  e = l(e);
@@ -3003,24 +2852,24 @@ const createSystem = e => {
3003
2852
  dirname: path$2.dirname(e),
3004
2853
  path: e,
3005
2854
  error: null
3006
- }, n = r.get(e);
3007
- if (n) {
3008
- if (n.watcherCallbacks) for (const t of n.watcherCallbacks) t(e, "fileDelete");
2855
+ }, s = r.get(e);
2856
+ if (s) {
2857
+ if (s.watcherCallbacks) for (const t of s.watcherCallbacks) t(e, "fileDelete");
3009
2858
  r.delete(e), v(e, new Set);
3010
2859
  }
3011
2860
  return t;
3012
2861
  }, v = (e, t) => {
3013
- const n = l(path$2.dirname(e)), s = r.get(n);
3014
- if (s && s.isDirectory && s.watcherCallbacks) for (const t of s.watcherCallbacks) t(e, null);
3015
- t.has(n) || (t.add(n), v(n, t));
2862
+ const s = l(path$2.dirname(e)), n = r.get(s);
2863
+ if (n && n.isDirectory && n.watcherCallbacks) for (const t of n.watcherCallbacks) t(e, null);
2864
+ t.has(s) || (t.add(s), v(s, t));
3016
2865
  }, b = (e, t) => {
3017
- const n = {
2866
+ const s = {
3018
2867
  path: e = l(e),
3019
2868
  error: null
3020
- }, s = r.get(e);
3021
- if (s) {
3022
- const r = s.data !== t;
3023
- if (s.data = t, r && s.watcherCallbacks) for (const t of s.watcherCallbacks) t(e, "fileUpdate");
2869
+ }, n = r.get(e);
2870
+ if (n) {
2871
+ const r = n.data !== t;
2872
+ if (n.data = t, r && n.watcherCallbacks) for (const t of n.watcherCallbacks) t(e, "fileUpdate");
3024
2873
  } else r.set(e, {
3025
2874
  basename: path$2.basename(e),
3026
2875
  dirname: path$2.dirname(e),
@@ -3029,16 +2878,16 @@ const createSystem = e => {
3029
2878
  watcherCallbacks: null,
3030
2879
  data: t
3031
2880
  }), v(e, new Set);
3032
- return n;
2881
+ return s;
3033
2882
  }, E = "undefined" != typeof self ? null === self || void 0 === self ? void 0 : self.fetch : "undefined" != typeof window ? null === window || void 0 === window ? void 0 : window.fetch : "undefined" != typeof global ? null === global || void 0 === global ? void 0 : global.fetch : void 0, T = Promise.resolve();
3034
2883
  u("/");
3035
2884
  const D = {
3036
2885
  name: "in-memory",
3037
- version: "2.18.0",
2886
+ version: "2.18.1",
3038
2887
  events: i,
3039
2888
  access: async e => c(e),
3040
2889
  accessSync: c,
3041
- addDestory: s,
2890
+ addDestory: n,
3042
2891
  copyFile: async (e, t) => (b(t, p(e)), !0),
3043
2892
  createDir: async (e, t) => u(e, t),
3044
2893
  createDirSync: u,
@@ -3050,14 +2899,14 @@ const createSystem = e => {
3050
2899
  getEnvironmentVar: e => null == process__namespace ? void 0 : process__namespace.env[e],
3051
2900
  destroy: async () => {
3052
2901
  const e = [];
3053
- n.forEach((r => {
2902
+ s.forEach((r => {
3054
2903
  try {
3055
2904
  const t = r();
3056
2905
  t && t.then && e.push(t);
3057
2906
  } catch (e) {
3058
2907
  t.error(`rindo sys destroy: ${e}`);
3059
2908
  }
3060
- })), await Promise.all(e), n.clear();
2909
+ })), await Promise.all(e), s.clear();
3061
2910
  },
3062
2911
  encodeToBase64: e => btoa(unescape(encodeURIComponent(e))),
3063
2912
  exit: async e => t.warn(`exit ${e}`),
@@ -3095,8 +2944,8 @@ const createSystem = e => {
3095
2944
  isFile: !1,
3096
2945
  isDirectory: !1,
3097
2946
  error: null
3098
- }, n = w(e);
3099
- if (n.error) r.error = `${e} does not exist`; else if (n.isFile ? r.isFile = !0 : n.isDirectory && (r.isDirectory = !0),
2947
+ }, s = w(e);
2948
+ if (s.error) r.error = `${e} does not exist`; else if (s.isFile ? r.isFile = !0 : s.isDirectory && (r.isDirectory = !0),
3100
2949
  m(e, t, r), !r.error) if (r.isDirectory) {
3101
2950
  const t = g(e, {
3102
2951
  recursive: !0
@@ -3119,15 +2968,15 @@ const createSystem = e => {
3119
2968
  removeFileSync: _,
3120
2969
  watchDirectory: (e, t) => {
3121
2970
  e = l(e);
3122
- const n = r.get(e), i = () => {
3123
- const n = r.get(e);
3124
- if (n && n.watcherCallbacks) {
3125
- const e = n.watcherCallbacks.indexOf(t);
3126
- e > -1 && n.watcherCallbacks.splice(e, 1);
2971
+ const s = r.get(e), i = () => {
2972
+ const s = r.get(e);
2973
+ if (s && s.watcherCallbacks) {
2974
+ const e = s.watcherCallbacks.indexOf(t);
2975
+ e > -1 && s.watcherCallbacks.splice(e, 1);
3127
2976
  }
3128
2977
  };
3129
- return s(i), n ? (n.isDirectory = !0, n.isFile = !1, n.watcherCallbacks = n.watcherCallbacks || [],
3130
- n.watcherCallbacks.push(t)) : r.set(e, {
2978
+ return n(i), s ? (s.isDirectory = !0, s.isFile = !1, s.watcherCallbacks = s.watcherCallbacks || [],
2979
+ s.watcherCallbacks.push(t)) : r.set(e, {
3131
2980
  basename: path$2.basename(e),
3132
2981
  dirname: path$2.dirname(e),
3133
2982
  isDirectory: !0,
@@ -3142,15 +2991,15 @@ const createSystem = e => {
3142
2991
  },
3143
2992
  watchFile: (e, t) => {
3144
2993
  e = l(e);
3145
- const n = r.get(e), i = () => {
3146
- const n = r.get(e);
3147
- if (n && n.watcherCallbacks) {
3148
- const e = n.watcherCallbacks.indexOf(t);
3149
- e > -1 && n.watcherCallbacks.splice(e, 1);
2994
+ const s = r.get(e), i = () => {
2995
+ const s = r.get(e);
2996
+ if (s && s.watcherCallbacks) {
2997
+ const e = s.watcherCallbacks.indexOf(t);
2998
+ e > -1 && s.watcherCallbacks.splice(e, 1);
3150
2999
  }
3151
3000
  };
3152
- return s(i), n ? (n.isDirectory = !1, n.isFile = !0, n.watcherCallbacks = n.watcherCallbacks || [],
3153
- n.watcherCallbacks.push(t)) : r.set(e, {
3001
+ return n(i), s ? (s.isDirectory = !1, s.isFile = !0, s.watcherCallbacks = s.watcherCallbacks || [],
3002
+ s.watcherCallbacks.push(t)) : r.set(e, {
3154
3003
  basename: path$2.basename(e),
3155
3004
  dirname: path$2.dirname(e),
3156
3005
  isDirectory: !1,
@@ -3168,20 +3017,20 @@ const createSystem = e => {
3168
3017
  writeFileSync: b,
3169
3018
  generateContentHash: async (e, t) => {
3170
3019
  const r = await crypto.subtle.digest("SHA-256", (new TextEncoder).encode(e));
3171
- let n = Array.from(new Uint8Array(r)).map((e => e.toString(16).padStart(2, "0"))).join("");
3172
- return "number" == typeof t && (n = n.slice(0, t)), n;
3020
+ let s = Array.from(new Uint8Array(r)).map((e => e.toString(16).padStart(2, "0"))).join("");
3021
+ return "number" == typeof t && (s = s.slice(0, t)), s;
3173
3022
  },
3174
3023
  createWorkerController: HAS_WEB_WORKER ? e => ((e, t) => {
3175
- let r, n = 0, s = !1, o = !1, i = 0;
3024
+ let r, s = 0, n = !1, o = !1, i = 0;
3176
3025
  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 = () => {
3177
3026
  let t = null;
3178
- const n = e.getCompilerExecutingPath(), o = {
3027
+ const s = e.getCompilerExecutingPath(), o = {
3179
3028
  name: "rindo.worker." + i++
3180
3029
  };
3181
3030
  try {
3182
- t = new Worker(n, o);
3031
+ t = new Worker(s, o);
3183
3032
  } catch (e) {
3184
- null == r && (r = new Blob([ `importScripts('${n}');` ], {
3033
+ null == r && (r = new Blob([ `importScripts('${s}');` ], {
3185
3034
  type: "application/javascript"
3186
3035
  })), t = new Worker(URL.createObjectURL(r), o);
3187
3036
  }
@@ -3191,7 +3040,7 @@ const createSystem = e => {
3191
3040
  sendQueue: []
3192
3041
  };
3193
3042
  return t.onerror = h, t.onmessage = e => ((e, t) => {
3194
- if (!s) {
3043
+ if (!n) {
3195
3044
  const r = t.data;
3196
3045
  if (Array.isArray(r)) for (const t of r) if (t) {
3197
3046
  const r = a.get(t.rindoId);
@@ -3214,12 +3063,12 @@ const createSystem = e => {
3214
3063
  }, g = () => {
3215
3064
  o = !1, l.forEach(m), l.length = 0, c.forEach(f);
3216
3065
  }, y = (...e) => new Promise(((t, r) => {
3217
- if (s) r("task canceled"); else {
3218
- const s = {
3219
- rindoId: n++,
3066
+ if (n) r("task canceled"); else {
3067
+ const n = {
3068
+ rindoId: s++,
3220
3069
  args: e
3221
3070
  };
3222
- l.push(s), a.set(s.rindoId, {
3071
+ l.push(n), a.set(n.rindoId, {
3223
3072
  resolve: t,
3224
3073
  reject: r
3225
3074
  }), o || (o = !0, d.then(g));
@@ -3228,7 +3077,7 @@ const createSystem = e => {
3228
3077
  return {
3229
3078
  send: y,
3230
3079
  destroy: () => {
3231
- s = !0, a.forEach((e => e.reject("task canceled"))), a.clear(), c.forEach((e => e.worker.terminate())),
3080
+ n = !0, a.forEach((e => e.reject("task canceled"))), a.clear(), c.forEach((e => e.worker.terminate())),
3232
3081
  c.length = 0;
3233
3082
  },
3234
3083
  handler: e => function(...t) {
@@ -3251,52 +3100,52 @@ const createSystem = e => {
3251
3100
  })
3252
3101
  };
3253
3102
  return D.resolveModuleId = e => ((e, t, r) => {
3254
- const n = ((e, t, r) => ({
3255
- async isFile(n, s) {
3256
- const o = normalizeFsPath(n);
3257
- if ((await t.stat(o)).isFile) s(null, !0); else {
3103
+ const s = ((e, t, r) => ({
3104
+ async isFile(s, n) {
3105
+ const o = normalizeFsPath(s);
3106
+ if ((await t.stat(o)).isFile) n(null, !0); else {
3258
3107
  if (shouldFetchModule(o) && r.some((e => o.endsWith(e)))) {
3259
3108
  const r = getNodeModuleFetchUrl(e, packageVersions, o);
3260
- return void s(null, "string" == typeof await fetchModuleAsync(e, t, packageVersions, r, o));
3109
+ return void n(null, "string" == typeof await fetchModuleAsync(e, t, packageVersions, r, o));
3261
3110
  }
3262
- s(null, !1);
3111
+ n(null, !1);
3263
3112
  }
3264
3113
  },
3265
- async isDirectory(r, n) {
3266
- const s = normalizeFsPath(r);
3267
- if ((await t.stat(s)).isDirectory) n(null, !0); else {
3268
- if (shouldFetchModule(s)) {
3269
- if ("node_modules" === path$2.basename(s)) return t.sys.createDirSync(s), t.clearFileCache(s),
3270
- void n(null, !0);
3271
- if (isCommonDirModuleFile(s)) return void n(null, !1);
3114
+ async isDirectory(r, s) {
3115
+ const n = normalizeFsPath(r);
3116
+ if ((await t.stat(n)).isDirectory) s(null, !0); else {
3117
+ if (shouldFetchModule(n)) {
3118
+ if ("node_modules" === path$2.basename(n)) return t.sys.createDirSync(n), t.clearFileCache(n),
3119
+ void s(null, !0);
3120
+ if (isCommonDirModuleFile(n)) return void s(null, !1);
3272
3121
  for (const r of COMMON_DIR_FILENAMES) {
3273
- const o = getCommonDirUrl(e, packageVersions, s, r), i = getCommonDirName(s, r), a = await fetchModuleAsync(e, t, packageVersions, o, i);
3274
- if (isString(a)) return void n(null, !0);
3122
+ const o = getCommonDirUrl(e, packageVersions, n, r), i = getCommonDirName(n, r), a = await fetchModuleAsync(e, t, packageVersions, o, i);
3123
+ if (isString(a)) return void s(null, !0);
3275
3124
  }
3276
3125
  }
3277
- n(null, !1);
3126
+ s(null, !1);
3278
3127
  }
3279
3128
  },
3280
3129
  async readFile(e, r) {
3281
- const n = normalizeFsPath(e), s = await t.readFile(n);
3282
- return isString(s) ? r(null, s) : r(`readFile not found: ${e}`);
3130
+ const s = normalizeFsPath(e), n = await t.readFile(s);
3131
+ return isString(n) ? r(null, n) : r(`readFile not found: ${e}`);
3283
3132
  },
3284
3133
  async realpath(t, r) {
3285
- const n = normalizeFsPath(t), s = await e.realpath(n);
3286
- s.error && "ENOENT" !== s.error.code ? r(s.error) : r(null, s.error ? n : s.path);
3134
+ const s = normalizeFsPath(t), n = await e.realpath(s);
3135
+ n.error && "ENOENT" !== n.error.code ? r(n.error) : r(null, n.error ? s : n.path);
3287
3136
  },
3288
3137
  extensions: r
3289
3138
  }))(e, null, r.exts);
3290
- return n.basedir = path$2.dirname(normalizeFsPath(r.containingFile)), r.packageFilter ? n.packageFilter = r.packageFilter : null !== r.packageFilter && (n.packageFilter = e => (isString(e.main) && "" !== e.main || (e.main = "package.json"),
3139
+ 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"),
3291
3140
  e)), new Promise(((e, t) => {
3292
- resolve(r.moduleId, n, ((n, s, o) => {
3293
- if (n) t(n); else {
3294
- s = normalizePath(s);
3141
+ resolve(r.moduleId, s, ((s, n, o) => {
3142
+ if (s) t(s); else {
3143
+ n = normalizePath(n);
3295
3144
  const t = {
3296
3145
  moduleId: r.moduleId,
3297
- resolveId: s,
3146
+ resolveId: n,
3298
3147
  pkgData: o,
3299
- pkgDirPath: getPackageDirPath(s, r.moduleId)
3148
+ pkgDirPath: getPackageDirPath(n, r.moduleId)
3300
3149
  };
3301
3150
  e(t);
3302
3151
  }
@@ -3310,19 +3159,19 @@ const createSystem = e => {
3310
3159
  let r = crypto$3.createHash("sha1").update(e).digest("hex").toLowerCase();
3311
3160
  return "number" == typeof t && (r = r.slice(0, t)), Promise.resolve(r);
3312
3161
  };
3313
- const n = t => {
3162
+ const s = t => {
3314
3163
  const r = t;
3315
3164
  return (...t) => (e++, r.apply(r, t));
3316
- }, s = e => {
3165
+ }, n = e => {
3317
3166
  const r = e;
3318
3167
  return (...e) => (t++, r.apply(r, e));
3319
3168
  };
3320
- if (r.access = n(r.access), r.accessSync = n(r.accessSync), r.homeDir = n(r.homeDir),
3321
- r.readFile = n(r.readFile), r.readFileSync = n(r.readFileSync), r.readDir = n(r.readDir),
3322
- r.readDirSync = n(r.readDirSync), r.stat = n(r.stat), r.statSync = n(r.statSync),
3323
- r.copyFile = s(r.copyFile), r.createDir = s(r.createDir), r.createDirSync = s(r.createDirSync),
3324
- r.removeFile = s(r.removeFile), r.removeFileSync = s(r.removeFileSync), r.writeFile = s(r.writeFile),
3325
- r.writeFileSync = s(r.writeFileSync), r.getCompilerExecutingPath = () => "bin/rindo.js",
3169
+ if (r.access = s(r.access), r.accessSync = s(r.accessSync), r.homeDir = s(r.homeDir),
3170
+ r.readFile = s(r.readFile), r.readFileSync = s(r.readFileSync), r.readDir = s(r.readDir),
3171
+ r.readDirSync = s(r.readDirSync), r.stat = s(r.stat), r.statSync = s(r.statSync),
3172
+ r.copyFile = n(r.copyFile), r.createDir = n(r.createDir), r.createDirSync = n(r.createDirSync),
3173
+ r.removeFile = n(r.removeFile), r.removeFileSync = n(r.removeFileSync), r.writeFile = n(r.writeFile),
3174
+ r.writeFileSync = n(r.writeFileSync), r.getCompilerExecutingPath = () => "bin/rindo.js",
3326
3175
  Object.defineProperties(r, {
3327
3176
  diskReads: {
3328
3177
  get: () => e,
@@ -3517,18 +3366,18 @@ class E2EElement extends index_cjs.MockHTMLElement {
3517
3366
  return new Promise(((e, t) => {
3518
3367
  const r = setInterval((async () => {
3519
3368
  await this.isVisible() && (clearInterval(r), clearTimeout(o), e());
3520
- }), 10), n = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, s = new Error(`waitForVisible timed out: ${n}ms`), o = setTimeout((() => {
3521
- clearTimeout(r), t(s);
3522
- }), n);
3369
+ }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForVisible timed out: ${s}ms`), o = setTimeout((() => {
3370
+ clearTimeout(r), t(n);
3371
+ }), s);
3523
3372
  }));
3524
3373
  }
3525
3374
  waitForNotVisible() {
3526
3375
  return new Promise(((e, t) => {
3527
3376
  const r = setInterval((async () => {
3528
3377
  await this.isVisible() || (clearInterval(r), clearTimeout(o), e());
3529
- }), 10), n = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, s = new Error(`waitForNotVisible timed out: ${n}ms`), o = setTimeout((() => {
3530
- clearTimeout(r), t(s);
3531
- }), n);
3378
+ }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForNotVisible timed out: ${s}ms`), o = setTimeout((() => {
3379
+ clearTimeout(r), t(n);
3380
+ }), s);
3532
3381
  }));
3533
3382
  }
3534
3383
  isIntersectingViewport() {
@@ -3684,15 +3533,15 @@ class E2EElement extends index_cjs.MockHTMLElement {
3684
3533
  }
3685
3534
  async getComputedStyle(e) {
3686
3535
  const t = await this._page.evaluate(((e, t) => {
3687
- const r = {}, n = window.getComputedStyle(e, t);
3688
- return Object.keys(n).forEach((e => {
3536
+ const r = {}, s = window.getComputedStyle(e, t);
3537
+ return Object.keys(s).forEach((e => {
3689
3538
  if (isNaN(e)) {
3690
- const t = n[e];
3539
+ const t = s[e];
3691
3540
  null != t && (r[e] = t);
3692
3541
  } else {
3693
- const t = n[e];
3542
+ const t = s[e];
3694
3543
  if (t.includes("-")) {
3695
- const e = n.getPropertyValue(t);
3544
+ const e = s.getPropertyValue(t);
3696
3545
  null != e && (r[t] = e);
3697
3546
  }
3698
3547
  }
@@ -3709,8 +3558,8 @@ class E2EElement extends index_cjs.MockHTMLElement {
3709
3558
  const r = t.eventInitDict || {};
3710
3559
  "boolean" != typeof r.bubbles && (r.bubbles = !0), "boolean" != typeof r.cancelable && (r.cancelable = !0),
3711
3560
  "boolean" != typeof r.composed && (r.composed = !0);
3712
- const n = new CustomEvent(t.eventName, r);
3713
- e.dispatchEvent(n);
3561
+ const s = new CustomEvent(t.eventName, r);
3562
+ e.dispatchEvent(s);
3714
3563
  }
3715
3564
  })), r && "function" == typeof r.then ? r.then((e => e)) : r;
3716
3565
  }))), this._elmHandle, this._queuedActions);
@@ -3722,9 +3571,9 @@ class E2EElement extends index_cjs.MockHTMLElement {
3722
3571
  shadowRootHTML: e.shadowRoot ? e.shadowRoot.innerHTML : null
3723
3572
  })), this._elmHandle);
3724
3573
  "string" == typeof r ? (this.shadowRoot = index_cjs.parseHtmlToFragment(r), this.shadowRoot.host = this) : this.shadowRoot = null;
3725
- const n = index_cjs.parseHtmlToFragment(t).firstElementChild;
3726
- for (this.nodeName = n.nodeName, this.attributes = index_cjs.cloneAttributes(n.attributes); this.childNodes.length > 0; ) this.removeChild(this.childNodes[0]);
3727
- for (;n.childNodes.length > 0; ) this.appendChild(n.childNodes[0]);
3574
+ const s = index_cjs.parseHtmlToFragment(t).firstElementChild;
3575
+ for (this.nodeName = s.nodeName, this.attributes = index_cjs.cloneAttributes(s.attributes); this.childNodes.length > 0; ) this.removeChild(this.childNodes[0]);
3576
+ for (;s.childNodes.length > 0; ) this.appendChild(s.childNodes[0]);
3728
3577
  }
3729
3578
  _validate() {
3730
3579
  if (this._queuedActions.length > 0) throw new Error("await page.waitForChanges() must be called before reading element information");
@@ -3756,15 +3605,15 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3756
3605
  const r = {
3757
3606
  browserWSEndpoint: t,
3758
3607
  ignoreHTTPSErrors: !0
3759
- }, n = require(e.__RINDO_PUPPETEER_MODULE__);
3760
- return await n.connect(r);
3608
+ }, s = require(e.__RINDO_PUPPETEER_MODULE__);
3609
+ return await s.connect(r);
3761
3610
  }());
3762
3611
  const t = await function r(e) {
3763
3612
  return e.newPage();
3764
3613
  }(this.browser);
3765
3614
  this.pages.push(t);
3766
- const n = process.env;
3767
- return "string" == typeof n.__RINDO_DEFAULT_TIMEOUT__ && t.setDefaultTimeout(parseInt(n.__RINDO_DEFAULT_TIMEOUT__, 10)),
3615
+ const s = process.env;
3616
+ return "string" == typeof s.__RINDO_DEFAULT_TIMEOUT__ && t.setDefaultTimeout(parseInt(s.__RINDO_DEFAULT_TIMEOUT__, 10)),
3768
3617
  t;
3769
3618
  }
3770
3619
  async closeOpenPages() {
@@ -3785,15 +3634,15 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3785
3634
  var e;
3786
3635
  const t = null !== (e = require("jest-runner").default) && void 0 !== e ? e : require("jest-runner");
3787
3636
  return class r extends t {
3788
- async runTests(e, t, r, n, s, o) {
3637
+ async runTests(e, t, r, s, n, o) {
3789
3638
  const i = process.env;
3790
3639
  if (e = e.filter((e => function t(e, r) {
3791
- const n = (e = e.toLowerCase().replace(/\\/g, "/")).includes(".e2e.") || e.includes("/e2e.");
3792
- return !("true" !== r.__RINDO_E2E_TESTS__ || !n) || "true" === r.__RINDO_SPEC_TESTS__ && !n;
3640
+ const s = (e = e.toLowerCase().replace(/\\/g, "/")).includes(".e2e.") || e.includes("/e2e.");
3641
+ return !("true" !== r.__RINDO_E2E_TESTS__ || !s) || "true" === r.__RINDO_SPEC_TESTS__ && !s;
3793
3642
  }(e.path, i))), "true" === i.__RINDO_SCREENSHOT__) {
3794
3643
  const a = JSON.parse(i.__RINDO_EMULATE_CONFIGS__);
3795
- for (let l = 0; l < a.length; l++) setScreenshotEmulateData(a[l], i), await super.runTests(e, t, r, n, s, o);
3796
- } else await super.runTests(e, t, r, n, s, o);
3644
+ for (let l = 0; l < a.length; l++) setScreenshotEmulateData(a[l], i), await super.runTests(e, t, r, s, n, o);
3645
+ } else await super.runTests(e, t, r, s, n, o);
3797
3646
  }
3798
3647
  };
3799
3648
  }, exports.createTesting = async e => {
@@ -3804,12 +3653,12 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3804
3653
  "www" === e.type && (e.serviceWorker = null);
3805
3654
  })), e.flags.args.includes("--watchAll") && (e.watch = !0), e;
3806
3655
  }(e);
3807
- const {createCompiler: r} = require("../compiler/rindo.js"), n = await r(e);
3808
- let s, o;
3656
+ const {createCompiler: r} = require("../compiler/rindo.js"), s = await r(e);
3657
+ let n, o;
3809
3658
  const i = async () => {
3810
3659
  const t = [];
3811
- e && (e.sys && e.sys.destroy && t.push(e.sys.destroy()), e = null), s && (s.close && t.push(s.close()),
3812
- s = null), o && (o.close && t.push(o.close()), o = null), await Promise.all(t);
3660
+ e && (e.sys && e.sys.destroy && t.push(e.sys.destroy()), e = null), n && (n.close && t.push(n.close()),
3661
+ n = null), o && (o.close && t.push(o.close()), o = null), await Promise.all(t);
3813
3662
  };
3814
3663
  return {
3815
3664
  destroy: i,
@@ -3828,22 +3677,22 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3828
3677
  e.empty = !1;
3829
3678
  }));
3830
3679
  const a = !(e.flags && !1 === e.flags.build);
3831
- a && e.watch && (c = await n.createWatcher()), a && (c ? (t = new Promise((e => {
3680
+ a && e.watch && (c = await s.createWatcher()), a && (c ? (t = new Promise((e => {
3832
3681
  const t = c.on("buildFinish", (r => {
3833
3682
  t(), e(r);
3834
3683
  }));
3835
- })), c.start()) : t = n.build()), e.devServer.openBrowser = !1, e.devServer.gzip = !1,
3684
+ })), c.start()) : t = s.build()), e.devServer.openBrowser = !1, e.devServer.gzip = !1,
3836
3685
  e.devServer.reloadStrategy = null;
3837
3686
  const l = await Promise.all([ index_js.start(e.devServer, e.logger), startPuppeteerBrowser(e) ]);
3838
- if (s = l[0], o = l[1], t) {
3687
+ if (n = l[0], o = l[1], t) {
3839
3688
  const r = await t;
3840
3689
  if (!r || !e.watch && hasError(r && r.diagnostics)) return await i(), !1;
3841
3690
  }
3842
- s && (r.__RINDO_BROWSER_URL__ = s.browserUrl, e.logger.debug(`e2e dev server url: ${r.__RINDO_BROWSER_URL__}`),
3691
+ n && (r.__RINDO_BROWSER_URL__ = n.browserUrl, e.logger.debug(`e2e dev server url: ${r.__RINDO_BROWSER_URL__}`),
3843
3692
  r.__RINDO_APP_SCRIPT_URL__ = function d(e, t) {
3844
3693
  return getAppUrl(e, t, `${e.fsNamespace}.esm.js`);
3845
- }(e, s.browserUrl), e.logger.debug(`e2e app script url: ${r.__RINDO_APP_SCRIPT_URL__}`),
3846
- getAppStyleUrl(e, s.browserUrl) && (r.__RINDO_APP_STYLE_URL__ = getAppStyleUrl(e, s.browserUrl),
3694
+ }(e, n.browserUrl), e.logger.debug(`e2e app script url: ${r.__RINDO_APP_SCRIPT_URL__}`),
3695
+ getAppStyleUrl(e, n.browserUrl) && (r.__RINDO_APP_STYLE_URL__ = getAppStyleUrl(e, n.browserUrl),
3847
3696
  e.logger.debug(`e2e app style url: ${r.__RINDO_APP_STYLE_URL__}`)));
3848
3697
  }
3849
3698
  } catch (t) {
@@ -3852,9 +3701,9 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3852
3701
  try {
3853
3702
  l = a ? await async function h(e, t) {
3854
3703
  e.logger.debug(`screenshot connector: ${e.testing.screenshotConnector}`);
3855
- const r = new (require(e.testing.screenshotConnector)), n = path$2.join(e.sys.getCompilerExecutingPath(), "..", "..", "screenshot", "pixel-match.js");
3856
- e.logger.debug(`pixelmatch module: ${n}`);
3857
- const s = e.logger.createTimeSpan("screenshot, initBuild started", !0);
3704
+ const r = new (require(e.testing.screenshotConnector)), s = path$2.join(e.sys.getCompilerExecutingPath(), "..", "..", "screenshot", "pixel-match.js");
3705
+ e.logger.debug(`pixelmatch module: ${s}`);
3706
+ const n = e.logger.createTimeSpan("screenshot, initBuild started", !0);
3858
3707
  await r.initBuild({
3859
3708
  buildId: createBuildId(),
3860
3709
  buildMessage: createBuildMessage(),
@@ -3869,25 +3718,25 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3869
3718
  allowableMismatchedRatio: e.testing.allowableMismatchedRatio,
3870
3719
  pixelmatchThreshold: e.testing.pixelmatchThreshold,
3871
3720
  waitBeforeScreenshot: e.testing.waitBeforeScreenshot,
3872
- pixelmatchModulePath: n
3873
- }), e.flags.updateScreenshot || await r.pullMasterBuild(), s.finish("screenshot, initBuild finished");
3721
+ pixelmatchModulePath: s
3722
+ }), e.flags.updateScreenshot || await r.pullMasterBuild(), n.finish("screenshot, initBuild finished");
3874
3723
  const o = await Promise.all([ await r.getMasterBuild(), await r.getScreenshotCache() ]), i = o[0], a = o[1];
3875
3724
  t.__RINDO_SCREENSHOT_BUILD__ = r.toJson(i, a);
3876
3725
  const l = e.logger.createTimeSpan("screenshot, tests started", !0), c = await runJest(e, t);
3877
3726
  l.finish(`screenshot, tests finished, passed: ${c}`);
3878
3727
  try {
3879
3728
  const t = e.logger.createTimeSpan("screenshot, completeTimespan started", !0);
3880
- let n = await r.completeBuild(i);
3881
- if (t.finish("screenshot, completeTimespan finished"), n) {
3729
+ let s = await r.completeBuild(i);
3730
+ if (t.finish("screenshot, completeTimespan finished"), s) {
3882
3731
  const t = e.logger.createTimeSpan("screenshot, publishBuild started", !0);
3883
- if (n = await r.publishBuild(n), t.finish("screenshot, publishBuild finished"),
3884
- e.flags.updateScreenshot) n.currentBuild && "string" == typeof n.currentBuild.previewUrl && e.logger.info(e.logger.magenta(n.currentBuild.previewUrl)); else if (n.compare) {
3732
+ if (s = await r.publishBuild(s), t.finish("screenshot, publishBuild finished"),
3733
+ e.flags.updateScreenshot) s.currentBuild && "string" == typeof s.currentBuild.previewUrl && e.logger.info(e.logger.magenta(s.currentBuild.previewUrl)); else if (s.compare) {
3885
3734
  try {
3886
- await r.updateScreenshotCache(a, n);
3735
+ await r.updateScreenshotCache(a, s);
3887
3736
  } catch (t) {
3888
3737
  e.logger.error(t);
3889
3738
  }
3890
- e.logger.info(`screenshots compared: ${n.compare.diffs.length}`), "string" == typeof n.compare.url && e.logger.info(e.logger.magenta(n.compare.url));
3739
+ e.logger.info(`screenshots compared: ${s.compare.diffs.length}`), "string" == typeof s.compare.url && e.logger.info(e.logger.magenta(s.compare.url));
3891
3740
  }
3892
3741
  }
3893
3742
  } catch (t) {
@@ -3998,26 +3847,26 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3998
3847
  if (!global.__NEW_TEST_PAGE__) throw new Error("newE2EPage() is only available from E2E tests, and ran with the --e2e cmd line flag.");
3999
3848
  const t = await global.__NEW_TEST_PAGE__(), r = [];
4000
3849
  try {
4001
- t._e2eElements = [], t._e2eGoto = t.goto, t._e2eClose = t.close, await async function n(e) {
3850
+ t._e2eElements = [], t._e2eGoto = t.goto, t._e2eClose = t.close, await async function s(e) {
4002
3851
  if (e.isClosed()) return;
4003
3852
  const t = env.__RINDO_EMULATE__;
4004
3853
  if (!t) return;
4005
- const r = JSON.parse(t), n = {
3854
+ const r = JSON.parse(t), s = {
4006
3855
  viewport: r.viewport,
4007
3856
  userAgent: r.userAgent
4008
3857
  };
4009
- await e.emulate(n);
4010
- }(t), await t.setCacheEnabled(!1), await initPageEvents(t), function s(e) {
3858
+ await e.emulate(s);
3859
+ }(t), await t.setCacheEnabled(!1), await initPageEvents(t), function n(e) {
4011
3860
  const t = process.env;
4012
- "true" === t.__RINDO_SCREENSHOT__ ? e.compareScreenshot = (r, n) => {
4013
- const s = global;
3861
+ "true" === t.__RINDO_SCREENSHOT__ ? e.compareScreenshot = (r, s) => {
3862
+ const n = global;
4014
3863
  let o, i = "", a = "";
4015
- if (s.currentSpec && ("string" == typeof s.currentSpec.fullName && (i = s.currentSpec.fullName),
4016
- "string" == typeof s.currentSpec.testPath && (a = s.currentSpec.testPath)), "string" == typeof r ? (i.length > 0 ? i += ", " + r : i = r,
4017
- "object" == typeof n && (o = n)) : "object" == typeof r && (o = r), i = i.trim(),
3864
+ if (n.currentSpec && ("string" == typeof n.currentSpec.fullName && (i = n.currentSpec.fullName),
3865
+ "string" == typeof n.currentSpec.testPath && (a = n.currentSpec.testPath)), "string" == typeof r ? (i.length > 0 ? i += ", " + r : i = r,
3866
+ "object" == typeof s && (o = s)) : "object" == typeof r && (o = r), i = i.trim(),
4018
3867
  o = o || {}, !i) throw new Error(`Invalid screenshot description in "${a}"`);
4019
- if (s.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')".`);
4020
- return s.screenshotDescriptions.add(i), async function l(e, t, r, n, s) {
3868
+ 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')".`);
3869
+ return n.screenshotDescriptions.add(i), async function l(e, t, r, s, n) {
4021
3870
  if ("string" != typeof t.__RINDO_EMULATE__) throw new Error("compareScreenshot, missing screenshot emulate env var");
4022
3871
  if ("string" != typeof t.__RINDO_SCREENSHOT_BUILD__) throw new Error("compareScreenshot, missing screen build env var");
4023
3872
  const o = JSON.parse(t.__RINDO_EMULATE__), i = JSON.parse(t.__RINDO_SCREENSHOT_BUILD__);
@@ -4041,10 +3890,10 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4041
3890
  width: e.clip.width,
4042
3891
  height: e.clip.height
4043
3892
  }), t;
4044
- }(s), u = await e.screenshot(l), d = "number" == typeof s.pixelmatchThreshold ? s.pixelmatchThreshold : i.pixelmatchThreshold;
3893
+ }(n), u = await e.screenshot(l), d = "number" == typeof n.pixelmatchThreshold ? n.pixelmatchThreshold : i.pixelmatchThreshold;
4045
3894
  let h = o.viewport.width, p = o.viewport.height;
4046
- return s && s.clip && ("number" == typeof s.clip.width && (h = s.clip.width), "number" == typeof s.clip.height && (p = s.clip.height)),
4047
- await compareScreenshot(o, i, u, r, h, p, n, d);
3895
+ return n && n.clip && ("number" == typeof n.clip.width && (h = n.clip.width), "number" == typeof n.clip.height && (p = n.clip.height)),
3896
+ await compareScreenshot(o, i, u, r, h, p, s, d);
4048
3897
  }(e, t, i, a, o);
4049
3898
  } : e.compareScreenshot = async () => ({
4050
3899
  mismatchedPixels: 0,
@@ -4056,7 +3905,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4056
3905
  deviceScaleFactor: 1
4057
3906
  });
4058
3907
  }(t);
4059
- let n = null;
3908
+ let s = null;
4060
3909
  t.close = async e => {
4061
3910
  try {
4062
3911
  if (Array.isArray(t._e2eElements)) {
@@ -4076,15 +3925,15 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4076
3925
  t.isClosed() || await t._e2eClose(e);
4077
3926
  } catch (e) {}
4078
3927
  };
4079
- const s = async () => (n || (n = t.evaluateHandle((() => document))), (await n).asElement());
3928
+ const n = async () => (s || (s = t.evaluateHandle((() => document))), (await s).asElement());
4080
3929
  t.find = async e => {
4081
- const r = await s();
3930
+ const r = await n();
4082
3931
  return find(t, r, e);
4083
3932
  }, t.findAll = async e => {
4084
- const r = await s();
3933
+ const r = await n();
4085
3934
  return findAll(t, r, e);
4086
3935
  }, t.waitForEvent = async e => {
4087
- const r = await s();
3936
+ const r = await n();
4088
3937
  return waitForEvent(t, e, r);
4089
3938
  }, t.getDiagnostics = () => r, t.waitForChanges = waitForChanges.bind(null, t),
4090
3939
  t.debugger = () => {
@@ -4101,8 +3950,8 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4101
3950
  location: e.location().url
4102
3951
  }), o)) throw new Error(serializeConsoleMessage(e));
4103
3952
  !function t(e) {
4104
- const t = serializeConsoleMessage(e), r = e.type(), n = "warning" === r ? "warn" : r;
4105
- "debug" !== n && ("function" == typeof console[n] ? console[n](t) : console.log(r, t));
3953
+ const t = serializeConsoleMessage(e), r = e.type(), s = "warning" === r ? "warn" : r;
3954
+ "debug" !== s && ("function" == typeof console[s] ? console[s](t) : console.log(r, t));
4106
3955
  }(e);
4107
3956
  })), t.on("pageerror", (e => {
4108
3957
  throw r.push({
@@ -4135,7 +3984,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4135
3984
  appData.BUILD.cssAnnotations = e.includeAnnotations;
4136
3985
  const t = new Set;
4137
3986
  testing.win.__rindo_spec_options = e;
4138
- const r = testing.win.document, n = {
3987
+ const r = testing.win.document, s = {
4139
3988
  win: testing.win,
4140
3989
  doc: r,
4141
3990
  body: r.body,
@@ -4145,7 +3994,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4145
3994
  waitForChanges: testing.flushAll,
4146
3995
  flushLoadModule: testing.flushLoadModule,
4147
3996
  flushQueue: testing.flushQueue
4148
- }, s = e.components.map((e => {
3997
+ }, n = e.components.map((e => {
4149
3998
  if (null == e.COMPILER_META) throw new Error('Invalid component class: Missing static "COMPILER_META" property.');
4150
3999
  t.add(e.COMPILER_META.tagName), e.isProxied = !1, function r(e) {
4151
4000
  "function" == typeof e.prototype.__componentWillLoad && (e.prototype.componentWillLoad = e.prototype.__componentWillLoad,
@@ -4168,22 +4017,22 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4168
4017
  e;
4169
4018
  });
4170
4019
  }(e);
4171
- const n = `${e.COMPILER_META.tagName}.${Math.round(899999 * Math.random()) + 1e5}`, s = e.COMPILER_META.styles;
4172
- if (Array.isArray(s)) if (s.length > 1) {
4020
+ const s = `${e.COMPILER_META.tagName}.${Math.round(899999 * Math.random()) + 1e5}`, n = e.COMPILER_META.styles;
4021
+ if (Array.isArray(n)) if (n.length > 1) {
4173
4022
  const t = {};
4174
- s.forEach((e => {
4023
+ n.forEach((e => {
4175
4024
  t[e.modeName] = e.styleStr;
4176
4025
  })), e.style = t;
4177
- } else 1 === s.length && (e.style = s[0].styleStr);
4178
- return testing.registerModule(n, e), ((e, t) => [ e, t.map((e => ((e, t) => {
4026
+ } else 1 === n.length && (e.style = n[0].styleStr);
4027
+ return testing.registerModule(s, e), ((e, t) => [ e, t.map((e => ((e, t) => {
4179
4028
  let r = 0;
4180
4029
  "shadow" === e.encapsulation ? (r |= 1, e.shadowDelegatesFocus && (r |= 16)) : "scoped" === e.encapsulation && (r |= 2),
4181
4030
  "shadow" !== e.encapsulation && e.htmlTagNames.includes("slot") && (r |= 4), e.hasMode && (r |= 32);
4182
- const n = formatComponentRuntimeMembers(e, t), s = formatHostListeners(e);
4183
- return trimFalsy([ r, e.tagName, Object.keys(n).length > 0 ? n : void 0, s.length > 0 ? s : void 0 ]);
4184
- })(e, !0))) ])(n, [ e.COMPILER_META ]);
4031
+ const s = formatComponentRuntimeMembers(e, t), n = formatHostListeners(e);
4032
+ return trimFalsy([ r, e.tagName, Object.keys(s).length > 0 ? s : void 0, n.length > 0 ? n : void 0 ]);
4033
+ })(e, !0))) ])(s, [ e.COMPILER_META ]);
4185
4034
  })), o = (e => {
4186
- const t = e.some((e => e.htmlTagNames.includes("slot"))), r = e.some((e => "shadow" === e.encapsulation)), n = e.some((e => "shadow" !== e.encapsulation && e.htmlTagNames.includes("slot"))), s = {
4035
+ 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 = {
4187
4036
  allRenderFn: e.every((e => e.hasRenderFn)),
4188
4037
  cmpDidLoad: e.some((e => e.hasComponentDidLoadFn)),
4189
4038
  cmpShouldUpdate: e.some((e => e.hasComponentShouldUpdateFn)),
@@ -4220,7 +4069,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4220
4069
  shadowDom: r,
4221
4070
  shadowDelegatesFocus: r && e.some((e => e.shadowDelegatesFocus)),
4222
4071
  slot: t,
4223
- slotRelocation: n,
4072
+ slotRelocation: s,
4224
4073
  state: e.some((e => e.hasState)),
4225
4074
  style: e.some((e => e.hasStyle)),
4226
4075
  svg: e.some((e => e.htmlTagNames.includes("svg"))),
@@ -4239,27 +4088,27 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4239
4088
  watchCallback: e.some((e => e.hasWatchCallback)),
4240
4089
  taskQueue: !0
4241
4090
  };
4242
- return s.asyncLoading = s.cmpWillUpdate || s.cmpWillLoad || s.cmpWillRender, s.vdomAttribute = s.vdomAttribute || s.reflect,
4243
- s.vdomPropOrAttr = s.vdomPropOrAttr || s.reflect, s;
4091
+ return n.asyncLoading = n.cmpWillUpdate || n.cmpWillLoad || n.cmpWillRender, n.vdomAttribute = n.vdomAttribute || n.reflect,
4092
+ n.vdomPropOrAttr = n.vdomPropOrAttr || n.reflect, n;
4244
4093
  })(e.components.map((e => e.COMPILER_META)));
4245
4094
  if (e.strictBuild ? Object.assign(appData.BUILD, o) : Object.keys(o).forEach((e => {
4246
4095
  !0 === o[e] && (appData.BUILD[e] = !0);
4247
4096
  })), appData.BUILD.asyncLoading = !0, e.hydrateClientSide ? (appData.BUILD.hydrateClientSide = !0,
4248
4097
  appData.BUILD.hydrateServerSide = !1) : e.hydrateServerSide && (appData.BUILD.hydrateServerSide = !0,
4249
4098
  appData.BUILD.hydrateClientSide = !1), appData.BUILD.cloneNodeFix = !1, appData.BUILD.shadowDomShim = !1,
4250
- appData.BUILD.safari10 = !1, appData.BUILD.attachStyles = !!e.attachStyles, "string" == typeof e.url && (n.win.location.href = e.url),
4251
- "string" == typeof e.direction && n.doc.documentElement.setAttribute("dir", e.direction),
4252
- "string" == typeof e.language && n.doc.documentElement.setAttribute("lang", e.language),
4099
+ appData.BUILD.safari10 = !1, appData.BUILD.attachStyles = !!e.attachStyles, "string" == typeof e.url && (s.win.location.href = e.url),
4100
+ "string" == typeof e.direction && s.doc.documentElement.setAttribute("dir", e.direction),
4101
+ "string" == typeof e.language && s.doc.documentElement.setAttribute("lang", e.language),
4253
4102
  "string" == typeof e.cookie) try {
4254
- n.doc.cookie = e.cookie;
4103
+ s.doc.cookie = e.cookie;
4255
4104
  } catch (e) {}
4256
4105
  if ("string" == typeof e.referrer) try {
4257
- n.doc.referrer = e.referrer;
4106
+ s.doc.referrer = e.referrer;
4258
4107
  } catch (e) {}
4259
4108
  if ("string" == typeof e.userAgent) try {
4260
- n.win.navigator.userAgent = e.userAgent;
4109
+ s.win.navigator.userAgent = e.userAgent;
4261
4110
  } catch (e) {}
4262
- if (testing.bootstrapLazy(s), "function" == typeof e.template) {
4111
+ if (testing.bootstrapLazy(n), "function" == typeof e.template) {
4263
4112
  const t = {
4264
4113
  $ancestorComponent$: void 0,
4265
4114
  $flags$: 0,
@@ -4268,29 +4117,29 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4268
4117
  $flags$: 0,
4269
4118
  $tagName$: "body"
4270
4119
  },
4271
- $hostElement$: n.body
4120
+ $hostElement$: s.body
4272
4121
  };
4273
4122
  testing.renderVdom(t, e.template());
4274
- } else "string" == typeof e.html && (n.body.innerHTML = e.html);
4275
- !1 !== e.flushQueue && await n.waitForChanges();
4123
+ } else "string" == typeof e.html && (s.body.innerHTML = e.html);
4124
+ !1 !== e.flushQueue && await s.waitForChanges();
4276
4125
  let i = null;
4277
- return Object.defineProperty(n, "root", {
4126
+ return Object.defineProperty(s, "root", {
4278
4127
  get() {
4279
- if (null == i && (i = findRootComponent(t, n.body)), null != i) return i;
4280
- const e = n.body.firstElementChild;
4128
+ if (null == i && (i = findRootComponent(t, s.body)), null != i) return i;
4129
+ const e = s.body.firstElementChild;
4281
4130
  return null != e ? e : null;
4282
4131
  }
4283
- }), Object.defineProperty(n, "rootInstance", {
4132
+ }), Object.defineProperty(s, "rootInstance", {
4284
4133
  get() {
4285
- const e = testing.getHostRef(n.root);
4134
+ const e = testing.getHostRef(s.root);
4286
4135
  return null != e ? e.$lazyInstance$ : null;
4287
4136
  }
4288
4137
  }), e.hydrateServerSide && testing.insertVdomAnnotations(r, []), e.autoApplyChanges && (testing.startAutoApplyChanges(),
4289
- n.waitForChanges = () => (console.error('waitForChanges() cannot be used manually if the "startAutoApplyChanges" option is enabled'),
4290
- Promise.resolve())), n;
4138
+ s.waitForChanges = () => (console.error('waitForChanges() cannot be used manually if the "startAutoApplyChanges" option is enabled'),
4139
+ Promise.resolve())), s;
4291
4140
  }, exports.shuffleArray = function shuffleArray(e) {
4292
- let t, r, n = e.length;
4293
- for (;0 !== n; ) r = Math.floor(Math.random() * n), n -= 1, t = e[n], e[n] = e[r],
4141
+ let t, r, s = e.length;
4142
+ for (;0 !== s; ) r = Math.floor(Math.random() * s), s -= 1, t = e[s], e[s] = e[r],
4294
4143
  e[r] = t;
4295
4144
  return e;
4296
4145
  }, exports.transpile = transpile;