@rindo/core 2.17.4 → 2.22.2

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 (108) hide show
  1. package/cli/config-flags.d.ts +33 -21
  2. package/cli/index.cjs +693 -401
  3. package/cli/index.d.ts +3 -0
  4. package/cli/index.js +693 -401
  5. package/cli/package.json +1 -1
  6. package/compiler/lib.dom.d.ts +898 -184
  7. package/compiler/lib.dom.iterable.d.ts +22 -4
  8. package/compiler/lib.es2015.collection.d.ts +62 -1
  9. package/compiler/lib.es2015.core.d.ts +3 -3
  10. package/compiler/lib.es2015.iterable.d.ts +2 -1
  11. package/compiler/lib.es2015.promise.d.ts +9 -4
  12. package/compiler/lib.es2015.proxy.d.ts +91 -2
  13. package/compiler/lib.es2015.reflect.d.ts +26 -3
  14. package/compiler/lib.es2015.symbol.wellknown.d.ts +3 -3
  15. package/compiler/lib.es2017.intl.d.ts +16 -1
  16. package/compiler/lib.es2019.d.ts +1 -0
  17. package/compiler/lib.es2019.intl.d.ts +25 -0
  18. package/compiler/lib.es2020.bigint.d.ts +7 -5
  19. package/compiler/lib.es2020.d.ts +2 -0
  20. package/compiler/lib.es2020.date.d.ts +44 -0
  21. package/compiler/lib.es2020.intl.d.ts +81 -16
  22. package/compiler/lib.es2020.number.d.ts +30 -0
  23. package/compiler/lib.es2021.intl.d.ts +116 -6
  24. package/compiler/lib.es2022.array.d.ts +123 -0
  25. package/compiler/lib.es2022.d.ts +27 -0
  26. package/compiler/lib.es2022.error.d.ts +75 -0
  27. package/compiler/lib.es2022.full.d.ts +25 -0
  28. package/compiler/lib.es2022.intl.d.ts +111 -0
  29. package/compiler/lib.es2022.object.d.ts +28 -0
  30. package/compiler/lib.es2022.sharedmemory.d.ts +27 -0
  31. package/compiler/lib.es2022.string.d.ts +27 -0
  32. package/compiler/lib.es5.d.ts +62 -31
  33. package/compiler/lib.esnext.d.ts +1 -1
  34. package/compiler/lib.esnext.intl.d.ts +8 -1
  35. package/compiler/lib.webworker.d.ts +540 -81
  36. package/compiler/lib.webworker.iterable.d.ts +19 -4
  37. package/compiler/package.json +1 -1
  38. package/compiler/rindo.d.ts +3 -25
  39. package/compiler/rindo.js +54678 -52205
  40. package/compiler/rindo.min.js +2 -2
  41. package/compiler/sys/in-memory-fs.d.ts +218 -0
  42. package/compiler/transpile.d.ts +32 -0
  43. package/dependencies.json +12 -1
  44. package/dev-server/client/app-error.d.ts +1 -1
  45. package/dev-server/client/index.d.ts +2 -2
  46. package/dev-server/client/index.js +241 -241
  47. package/dev-server/client/package.json +1 -1
  48. package/dev-server/connector.html +3 -3
  49. package/dev-server/index.d.ts +1 -1
  50. package/dev-server/index.js +2 -2
  51. package/dev-server/open-in-editor-api.js +1 -1
  52. package/dev-server/package.json +1 -1
  53. package/dev-server/server-process.js +1192 -1158
  54. package/dev-server/ws.js +1 -1
  55. package/internal/app-data/package.json +1 -1
  56. package/internal/client/css-shim.js +2 -2
  57. package/internal/client/dom.js +1 -1
  58. package/internal/client/index.js +1130 -823
  59. package/internal/client/package.json +1 -1
  60. package/internal/client/patch-browser.js +19 -1
  61. package/internal/client/patch-esm.js +1 -1
  62. package/internal/client/polyfills/css-shim.js +1 -1
  63. package/internal/client/shadow-css.js +1 -1
  64. package/internal/hydrate/index.js +154 -143
  65. package/internal/hydrate/package.json +1 -1
  66. package/internal/hydrate/runner.d.ts +1 -1
  67. package/internal/hydrate/runner.js +106 -106
  68. package/internal/package.json +1 -1
  69. package/internal/rindo-core/index.d.ts +9 -10
  70. package/internal/rindo-private.d.ts +149 -184
  71. package/internal/rindo-public-compiler.d.ts +83 -38
  72. package/internal/rindo-public-docs.d.ts +24 -0
  73. package/internal/rindo-public-runtime.d.ts +79 -7
  74. package/internal/testing/index.js +187 -175
  75. package/internal/testing/package.json +1 -1
  76. package/mock-doc/index.cjs +526 -501
  77. package/mock-doc/index.d.ts +15 -14
  78. package/mock-doc/index.js +526 -501
  79. package/mock-doc/package.json +1 -1
  80. package/package.json +48 -59
  81. package/readme.md +44 -31
  82. package/screenshot/compare/build/p-f4745c2f.entry.js +1 -1
  83. package/screenshot/index.d.ts +1 -1
  84. package/screenshot/index.js +13 -13
  85. package/screenshot/package.json +1 -1
  86. package/screenshot/pixel-match.js +983 -849
  87. package/sys/node/autoprefixer.js +2 -2
  88. package/sys/node/glob.js +1 -1
  89. package/sys/node/index.d.ts +4 -0
  90. package/sys/node/index.js +399 -413
  91. package/sys/node/package.json +1 -1
  92. package/sys/node/prompts.js +1 -1
  93. package/sys/node/worker.js +1 -1
  94. package/testing/index.d.ts +6 -6
  95. package/testing/index.js +684 -839
  96. package/testing/jest/jest-config.d.ts +1 -1
  97. package/testing/jest/jest-preprocessor.d.ts +3 -3
  98. package/testing/jest/jest-serializer.d.ts +1 -2
  99. package/testing/matchers/index.d.ts +3 -3
  100. package/testing/mock-fetch.d.ts +1 -1
  101. package/testing/mocks.d.ts +2 -2
  102. package/testing/package.json +1 -1
  103. package/testing/puppeteer/puppeteer-declarations.d.ts +5 -5
  104. package/testing/puppeteer/puppeteer-element.d.ts +2 -2
  105. package/testing/puppeteer/puppeteer-events.d.ts +1 -1
  106. package/testing/testing-logger.d.ts +1 -1
  107. package/testing/testing-utils.d.ts +6 -5
  108. package/testing/testing.d.ts +1 -1
package/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Testing v2.17.4 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Testing v2.22.2 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  function _lazyRequire(e) {
5
5
  return new Proxy({}, {
@@ -69,22 +69,90 @@ async function startPuppeteerBrowser(e) {
69
69
  i;
70
70
  }
71
71
 
72
- function getAppStyleUrl(e, t) {
73
- return e.globalStyle ? getAppUrl(e, t, `${e.fsNamespace}.css`) : null;
72
+ function transpile(e, t = {}) {
73
+ t = {
74
+ ...t,
75
+ componentExport: null,
76
+ componentMetadata: "compilerstatic",
77
+ coreImportPath: isString(t.coreImportPath) ? t.coreImportPath : "@rindo/core/internal/testing",
78
+ currentDirectory: t.currentDirectory || process.cwd(),
79
+ module: "cjs",
80
+ proxy: null,
81
+ sourceMap: "inline",
82
+ style: null,
83
+ styleImportData: "queryparams",
84
+ target: "es2015"
85
+ };
86
+ try {
87
+ const e = process.versions.node.split(".");
88
+ parseInt(e[0], 10) >= 10 && (t.target = "es2017");
89
+ } catch (e) {}
90
+ return rindo_js.transpileSync(e, t);
74
91
  }
75
92
 
76
- function getAppUrl(e, t, r) {
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
- return new URL(o, t).href;
81
- }
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
- return new URL(i, t).href;
86
- }
87
- return t;
93
+ function formatDiagnostic(e) {
94
+ let t = "";
95
+ return e.relFilePath && (t += e.relFilePath, "number" == typeof e.lineNumber && (t += ":" + e.lineNumber + 1,
96
+ "number" == typeof e.columnNumber && (t += ":" + e.columnNumber)), t += "\n"), t += e.messageText,
97
+ t;
98
+ }
99
+
100
+ function getCompilerOptions(e) {
101
+ if (_tsCompilerOptions) return _tsCompilerOptions;
102
+ if ("string" != typeof e) return null;
103
+ e = normalizePath(e);
104
+ const t = rindo_js.ts.findConfigFile(e, rindo_js.ts.sys.fileExists);
105
+ if (!t) return null;
106
+ const r = rindo_js.ts.readConfigFile(t, rindo_js.ts.sys.readFile);
107
+ if (r.error) throw new Error(formatDiagnostic((e => {
108
+ const t = {
109
+ level: "warn",
110
+ type: "typescript",
111
+ language: "typescript",
112
+ header: "TypeScript",
113
+ code: e.code.toString(),
114
+ messageText: flattenDiagnosticMessageText(e, e.messageText),
115
+ relFilePath: null,
116
+ absFilePath: null,
117
+ lines: []
118
+ };
119
+ if (1 === e.category && (t.level = "error"), e.file) {
120
+ t.absFilePath = e.file.fileName;
121
+ const s = "string" != typeof (r = e.file.text) ? [] : (r = r.replace(/\\r/g, "\n")).split("\n"), n = e.file.getLineAndCharacterOfPosition(e.start), o = {
122
+ lineIndex: n.line,
123
+ lineNumber: n.line + 1,
124
+ text: s[n.line],
125
+ errorCharStart: n.character,
126
+ errorLength: Math.max(e.length, 1)
127
+ };
128
+ if (t.lineNumber = o.lineNumber, t.columnNumber = o.errorCharStart + 1, t.lines.push(o),
129
+ 0 === o.errorLength && o.errorCharStart > 0 && (o.errorLength = 1, o.errorCharStart--),
130
+ o.lineIndex > 0) {
131
+ const e = {
132
+ lineIndex: o.lineIndex - 1,
133
+ lineNumber: o.lineNumber - 1,
134
+ text: s[o.lineIndex - 1],
135
+ errorCharStart: -1,
136
+ errorLength: -1
137
+ };
138
+ t.lines.unshift(e);
139
+ }
140
+ if (o.lineIndex + 1 < s.length) {
141
+ const e = {
142
+ lineIndex: o.lineIndex + 1,
143
+ lineNumber: o.lineNumber + 1,
144
+ text: s[o.lineIndex + 1],
145
+ errorCharStart: -1,
146
+ errorLength: -1
147
+ };
148
+ t.lines.push(e);
149
+ }
150
+ }
151
+ var r;
152
+ return t;
153
+ })(r.error)));
154
+ const s = rindo_js.ts.parseJsonConfigFileContent(r.config, rindo_js.ts.sys, e, void 0, t);
155
+ return _tsCompilerOptions = s.options, _tsCompilerOptions;
88
156
  }
89
157
 
90
158
  function setScreenshotEmulateData(e, t) {
@@ -130,11 +198,13 @@ async function runJest(e, t) {
130
198
  e.flags.ci || e.flags.e2e ? t.__RINDO_DEFAULT_TIMEOUT__ = "30000" : t.__RINDO_DEFAULT_TIMEOUT__ = "15000",
131
199
  e.flags.devtools && (t.__RINDO_DEFAULT_TIMEOUT__ = "300000000"), e.logger.debug(`default timeout: ${t.__RINDO_DEFAULT_TIMEOUT__}`);
132
200
  const n = function n(e) {
133
- const t = require("yargs"), r = [ ...e.flags.unknownArgs.slice(), ...e.flags.knownArgs.slice() ];
201
+ const t = require("yargs"), r = e.flags.knownArgs.slice();
134
202
  r.some((e => e.startsWith("--max-workers") || e.startsWith("--maxWorkers"))) || r.push(`--max-workers=${e.maxConcurrentWorkers}`),
135
- e.flags.devtools && r.push("--runInBand"), e.logger.info(e.logger.magenta(`jest args: ${r.join(" ")}`));
136
- let s = t(r).argv;
137
- if (s = {
203
+ e.flags.devtools && r.push("--runInBand");
204
+ const s = [ ...r, ...e.flags.unknownArgs ];
205
+ e.logger.info(e.logger.magenta(`jest args: ${s.join(" ")}`));
206
+ let n = t(s).argv;
207
+ if (n = {
138
208
  detectLeaks: !1,
139
209
  "detect-leaks": !1,
140
210
  detectOpenHandles: !1,
@@ -153,8 +223,8 @@ async function runJest(e, t) {
153
223
  "run-tests-by-path": !1,
154
224
  testLocationInResults: !1,
155
225
  "test-location-in-results": !1,
156
- ...s
157
- }, s.config = function n(e) {
226
+ ...n
227
+ }, n.config = function o(e) {
158
228
  const t = e.testing, r = require("jest-config").defaults, s = Object.keys(r), n = {};
159
229
  return Object.keys(t).forEach((e => {
160
230
  s.includes(e) && (n[e] = t[e]);
@@ -166,10 +236,10 @@ async function runJest(e, t) {
166
236
  Array.isArray(t.reporters) && (n.reporters = t.reporters), isString(t.testResultsProcessor) && (n.testResultsProcessor = t.testResultsProcessor),
167
237
  t.transform && (n.transform = t.transform), t.verbose && (n.verbose = t.verbose),
168
238
  n.testRunner = "jest-jasmine2", JSON.stringify(n);
169
- }(e), "string" == typeof s.maxWorkers) try {
170
- s.maxWorkers = parseInt(s.maxWorkers, 10);
239
+ }(e), "string" == typeof n.maxWorkers) try {
240
+ n.maxWorkers = parseInt(n.maxWorkers, 10);
171
241
  } catch (e) {}
172
- return "string" == typeof s.ci && (s.ci = "true" === s.ci || "" === s.ci), s;
242
+ return "string" == typeof n.ci && (n.ci = "true" === n.ci || "" === n.ci), n;
173
243
  }(e), o = function o(e, t) {
174
244
  const r = t.projects ? t.projects : [];
175
245
  return r.push(e.rootDir), r;
@@ -181,106 +251,15 @@ async function runJest(e, t) {
181
251
  return r;
182
252
  }
183
253
 
184
- function createBuildId() {
185
- const e = new Date;
186
- let t = e.getFullYear() + "";
187
- return t += ("0" + (e.getMonth() + 1)).slice(-2), t += ("0" + e.getDate()).slice(-2),
188
- t += ("0" + e.getHours()).slice(-2), t += ("0" + e.getMinutes()).slice(-2), t += ("0" + e.getSeconds()).slice(-2),
189
- t;
190
- }
191
-
192
- function createBuildMessage() {
193
- const e = new Date;
194
- let t = e.getFullYear() + "-";
195
- return t += ("0" + (e.getMonth() + 1)).slice(-2) + "-", t += ("0" + e.getDate()).slice(-2) + " ",
196
- t += ("0" + e.getHours()).slice(-2) + ":", t += ("0" + e.getMinutes()).slice(-2) + ":",
197
- t += ("0" + e.getSeconds()).slice(-2), `Build: ${t}`;
198
- }
199
-
200
- function transpile(e, t = {}) {
201
- t = {
202
- ...t,
203
- componentExport: null,
204
- componentMetadata: "compilerstatic",
205
- coreImportPath: isString(t.coreImportPath) ? t.coreImportPath : "@rindo/core/internal/testing",
206
- currentDirectory: t.currentDirectory || process.cwd(),
207
- module: "cjs",
208
- proxy: null,
209
- sourceMap: "inline",
210
- style: null,
211
- styleImportData: "queryparams",
212
- target: "es2015"
254
+ function toHaveClasses(e, t) {
255
+ if (!e) throw new Error("expect toHaveClasses value is null");
256
+ if ("function" == typeof e.then) throw new Error("element must be a resolved value, not a promise, before it can be tested");
257
+ if (1 !== e.nodeType) throw new Error("expect toHaveClasses value is not an element");
258
+ const r = t.every((t => e.classList.contains(t)));
259
+ return {
260
+ message: () => `expected to ${r ? "not " : ""}have css classes "${t.join(" ")}", but className is "${e.className}"`,
261
+ pass: r
213
262
  };
214
- try {
215
- const e = process.versions.node.split(".");
216
- parseInt(e[0], 10) >= 10 && (t.target = "es2017");
217
- } catch (e) {}
218
- return rindo_js.transpileSync(e, t);
219
- }
220
-
221
- function formatDiagnostic(e) {
222
- let t = "";
223
- return e.relFilePath && (t += e.relFilePath, "number" == typeof e.lineNumber && (t += ":" + e.lineNumber + 1,
224
- "number" == typeof e.columnNumber && (t += ":" + e.columnNumber)), t += "\n"), t += e.messageText,
225
- t;
226
- }
227
-
228
- function getCompilerOptions(e) {
229
- if (_tsCompilerOptions) return _tsCompilerOptions;
230
- if ("string" != typeof e) return null;
231
- e = normalizePath(e);
232
- const t = rindo_js.ts.findConfigFile(e, rindo_js.ts.sys.fileExists);
233
- if (!t) return null;
234
- const r = rindo_js.ts.readConfigFile(t, rindo_js.ts.sys.readFile);
235
- if (r.error) throw new Error(formatDiagnostic((e => {
236
- const t = {
237
- level: "warn",
238
- type: "typescript",
239
- language: "typescript",
240
- header: "TypeScript",
241
- code: e.code.toString(),
242
- messageText: flattenDiagnosticMessageText(e, e.messageText),
243
- relFilePath: null,
244
- absFilePath: null,
245
- lines: []
246
- };
247
- if (1 === e.category && (t.level = "error"), e.file) {
248
- t.absFilePath = e.file.fileName;
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
- errorLength: Math.max(e.length, 1)
255
- };
256
- if (t.lineNumber = o.lineNumber, t.columnNumber = o.errorCharStart + 1, t.lines.push(o),
257
- 0 === o.errorLength && o.errorCharStart > 0 && (o.errorLength = 1, o.errorCharStart--),
258
- o.lineIndex > 0) {
259
- const e = {
260
- lineIndex: o.lineIndex - 1,
261
- lineNumber: o.lineNumber - 1,
262
- text: s[o.lineIndex - 1],
263
- errorCharStart: -1,
264
- errorLength: -1
265
- };
266
- t.lines.unshift(e);
267
- }
268
- if (o.lineIndex + 1 < s.length) {
269
- const e = {
270
- lineIndex: o.lineIndex + 1,
271
- lineNumber: o.lineNumber + 1,
272
- text: s[o.lineIndex + 1],
273
- errorCharStart: -1,
274
- errorLength: -1
275
- };
276
- t.lines.push(e);
277
- }
278
- }
279
- var r;
280
- return t;
281
- })(r.error)));
282
- const s = rindo_js.ts.parseJsonConfigFileContent(r.config, rindo_js.ts.sys, e, void 0, t);
283
- return _tsCompilerOptions = s.options, _tsCompilerOptions;
284
263
  }
285
264
 
286
265
  function compareHtml(e, t, r) {
@@ -326,17 +305,6 @@ function compareHtml(e, t, r) {
326
305
  };
327
306
  }
328
307
 
329
- function toHaveClasses(e, t) {
330
- if (!e) throw new Error("expect toHaveClasses value is null");
331
- if ("function" == typeof e.then) throw new Error("element must be a resolved value, not a promise, before it can be tested");
332
- if (1 !== e.nodeType) throw new Error("expect toHaveClasses value is not an element");
333
- const r = t.every((t => e.classList.contains(t)));
334
- return {
335
- message: () => `expected to ${r ? "not " : ""}have css classes "${t.join(" ")}", but className is "${e.className}"`,
336
- pass: r
337
- };
338
- }
339
-
340
308
  async function globalMockFetch(e) {
341
309
  let t;
342
310
  if (null == e) throw new Error("missing url input for mock fetch()");
@@ -524,58 +492,43 @@ function mockCompilerCtx(e) {
524
492
  return Object.defineProperty(t, "fs", {
525
493
  get() {
526
494
  return null == this._fs && (this._fs = (e => {
527
- const t = new Map, r = new Map, s = async e => {
528
- const t = b(e);
529
- if ("boolean" == typeof t.exists) return {
530
- exists: t.exists,
531
- isDirectory: t.isDirectory,
532
- isFile: t.isFile
533
- };
534
- const r = {
535
- exists: !1,
536
- isDirectory: !1,
537
- isFile: !1
538
- }, s = await c(e);
539
- return s ? (t.exists = s.exists, t.isDirectory = s.isDirectory, t.isFile = s.isFile,
540
- r.exists = t.exists, r.isDirectory = t.isDirectory, r.isFile = t.isFile) : t.exists = !1,
541
- r;
542
- }, n = async (e, r = {}) => {
495
+ const t = new Map, r = new Map, s = async (e, r = {}) => {
543
496
  e = normalizePath(e);
544
497
  const s = [];
545
498
  if (!0 === r.inMemoryOnly) {
546
499
  let n = e;
547
500
  n.endsWith("/") || (n += "/");
548
- const o = e.split("/");
501
+ const i = e.split("/");
549
502
  t.forEach(((t, n) => {
550
503
  if (!n.startsWith(e)) return;
551
504
  const a = n.split("/");
552
- if ((a.length === o.length + 1 || r.recursive && a.length > o.length) && t.exists) {
505
+ if ((a.length === i.length + 1 || r.recursive && a.length > i.length) && t.exists) {
553
506
  const e = {
554
507
  absPath: n,
555
- relPath: a[o.length],
508
+ relPath: a[i.length],
556
509
  isDirectory: t.isDirectory,
557
510
  isFile: t.isFile
558
511
  };
559
- i(r, e) || s.push(e);
512
+ o(r, e) || s.push(e);
560
513
  }
561
514
  }));
562
- } else await o(e, e, r, s);
515
+ } else await n(e, e, r, s);
563
516
  return s.sort(((e, t) => e.absPath < t.absPath ? -1 : e.absPath > t.absPath ? 1 : 0));
564
- }, o = async (t, r, s, n) => {
517
+ }, n = async (t, r, s, i) => {
565
518
  const a = await e.readDir(r);
566
519
  if (a.length > 0) {
567
- const e = b(r);
520
+ const e = v(r);
568
521
  e.exists = !0, e.isFile = !1, e.isDirectory = !0, await Promise.all(a.map((async e => {
569
- const r = normalizePath(e), a = normalizePath(path$2.relative(t, r)), l = await c(r), u = {
522
+ const r = normalizePath(e), a = normalizePath(path$2.relative(t, r)), c = await l(r), u = {
570
523
  absPath: r,
571
524
  relPath: a,
572
- isDirectory: l.isDirectory,
573
- isFile: l.isFile
525
+ isDirectory: c.isDirectory,
526
+ isFile: c.isFile
574
527
  };
575
- i(s, u) || (n.push(u), !0 === s.recursive && !0 === l.isDirectory && await o(t, r, s, n));
528
+ o(s, u) || (i.push(u), !0 === s.recursive && !0 === c.isDirectory && await n(t, r, s, i));
576
529
  })));
577
530
  }
578
- }, i = (e, t) => {
531
+ }, o = (e, t) => {
579
532
  if (t.isDirectory) {
580
533
  if (Array.isArray(e.excludeDirNames)) {
581
534
  const r = path$2.basename(t.absPath);
@@ -586,20 +539,20 @@ function mockCompilerCtx(e) {
586
539
  if (e.excludeExtensions.some((e => r.endsWith(e)))) return !0;
587
540
  }
588
541
  return !1;
589
- }, a = async e => {
590
- const t = b(e);
542
+ }, i = async e => {
543
+ const t = v(e);
591
544
  t.isFile = !1, t.isDirectory = !0, t.queueWriteToDisk || (t.queueDeleteFromDisk = !0);
592
545
  try {
593
- const t = await n(e, {
546
+ const t = await s(e, {
594
547
  recursive: !0
595
548
  });
596
- await Promise.all(t.map((e => e.relPath.endsWith(".gitkeep") ? null : l(e.absPath))));
549
+ await Promise.all(t.map((e => e.relPath.endsWith(".gitkeep") ? null : a(e.absPath))));
597
550
  } catch (e) {}
598
- }, l = async e => {
599
- const t = b(e);
551
+ }, a = async e => {
552
+ const t = v(e);
600
553
  t.queueWriteToDisk || (t.queueDeleteFromDisk = !0);
601
- }, c = async t => {
602
- const r = b(t);
554
+ }, l = async t => {
555
+ const r = v(t);
603
556
  if ("boolean" != typeof r.isDirectory || "boolean" != typeof r.isFile) {
604
557
  const s = await e.stat(t);
605
558
  s.error ? r.exists = !1 : (r.exists = !0, s.isFile ? (r.isFile = !0, r.isDirectory = !1,
@@ -612,8 +565,8 @@ function mockCompilerCtx(e) {
612
565
  isDirectory: !!r.isDirectory,
613
566
  size: "number" == typeof r.size ? r.size : 0
614
567
  };
615
- }, u = t => {
616
- const r = b(t);
568
+ }, c = t => {
569
+ const r = v(t);
617
570
  if ("boolean" != typeof r.isDirectory || "boolean" != typeof r.isFile) {
618
571
  const s = e.statSync(t);
619
572
  s.error ? r.exists = !1 : (r.exists = !0, s.isFile ? (r.isFile = !0, r.isDirectory = !1,
@@ -623,9 +576,10 @@ function mockCompilerCtx(e) {
623
576
  return {
624
577
  exists: !!r.exists,
625
578
  isFile: !!r.isFile,
626
- isDirectory: !!r.isDirectory
579
+ isDirectory: !!r.isDirectory,
580
+ size: r.size
627
581
  };
628
- }, d = async (t, s, n) => {
582
+ }, u = async (t, s, n) => {
629
583
  if ("string" != typeof t) throw new Error(`writeFile, invalid filePath: ${t}`);
630
584
  if ("string" != typeof s) throw new Error(`writeFile, invalid content: ${t}`);
631
585
  const o = {
@@ -634,60 +588,63 @@ function mockCompilerCtx(e) {
634
588
  queuedWrite: !1
635
589
  };
636
590
  if (!0 === shouldIgnore(t)) return o.ignored = !0, o;
637
- const i = b(t);
591
+ const i = v(t);
638
592
  if (i.exists = !0, i.isFile = !0, i.isDirectory = !1, i.queueDeleteFromDisk = !1,
639
593
  "string" == typeof i.fileText ? o.changedContent = i.fileText.replace(/\r/g, "") !== s.replace(/\r/g, "") : o.changedContent = !0,
640
594
  i.fileText = s, o.queuedWrite = !1, null != n && ("string" == typeof n.outputTargetType && r.set(t, n.outputTargetType),
641
595
  !1 === n.useCache && (i.useCache = !1)), null != n && !0 === n.inMemoryOnly) i.queueWriteToDisk ? o.queuedWrite = !0 : i.queueWriteToDisk = !1,
642
- await h(t, !0); else if (null != n && !0 === n.immediateWrite) {
596
+ await d(t, !0); else if (null != n && !0 === n.immediateWrite) {
643
597
  if (o.changedContent || !0 !== n.useCache) {
644
598
  const r = await e.readFile(t);
645
599
  "string" == typeof r && (o.changedContent = i.fileText.replace(/\r/g, "") !== r.replace(/\r/g, "")),
646
- o.changedContent && (await h(t, !1), await e.writeFile(t, i.fileText));
600
+ o.changedContent && (await d(t, !1), await e.writeFile(t, i.fileText));
647
601
  }
648
602
  } else i.queueWriteToDisk || !0 !== o.changedContent || (i.queueWriteToDisk = !0,
649
603
  o.queuedWrite = !0);
650
604
  return o;
651
- }, h = async (e, t) => {
605
+ }, d = async (e, t) => {
652
606
  const r = [];
653
607
  for (;"string" == typeof (e = path$2.dirname(e)) && e.length > 0 && "/" !== e && !1 === e.endsWith(":/") && !1 === e.endsWith(":\\"); ) r.push(e);
654
- r.reverse(), await p(r, t);
655
- }, p = async (t, r) => {
608
+ r.reverse(), await h(r, t);
609
+ }, h = async (t, r) => {
656
610
  const s = [];
657
611
  for (const n of t) {
658
- const t = b(n);
612
+ const t = v(n);
659
613
  if (!0 !== t.exists || !0 !== t.isDirectory) try {
660
614
  t.exists = !0, t.isDirectory = !0, t.isFile = !1, r || await e.createDir(n), s.push(n);
661
615
  } catch (e) {}
662
616
  }
663
617
  return s;
664
- }, f = t => Promise.all(t.map((async t => {
665
- const r = t[0], s = t[1];
666
- return await e.copyFile(r, s), [ r, s ];
667
- }))), m = e => Promise.all(e.map((async e => {
618
+ }, p = t => {
619
+ const r = Promise.all(t.map((async t => {
620
+ const [r, s] = t;
621
+ return await e.copyFile(r, s), [ r, s ];
622
+ })));
623
+ return r;
624
+ }, f = e => Promise.all(e.map((async e => {
668
625
  if ("string" != typeof e) throw new Error("unable to writeFile without filePath");
669
- return g(e);
670
- }))), g = async t => {
671
- const r = b(t);
626
+ return m(e);
627
+ }))), m = async t => {
628
+ const r = v(t);
672
629
  if (null == r.fileText) throw new Error(`unable to find item fileText to write: ${t}`);
673
- return await e.writeFile(t, r.fileText), !1 === r.useCache && v(t), t;
674
- }, y = async t => await Promise.all(t.map((async t => {
630
+ return await e.writeFile(t, r.fileText), !1 === r.useCache && _(t), t;
631
+ }, g = async t => await Promise.all(t.map((async t => {
675
632
  if ("string" != typeof t) throw new Error("unable to unlink without filePath");
676
633
  return await e.removeFile(t), t;
677
- }))), w = async t => {
634
+ }))), y = async t => {
678
635
  const r = [];
679
636
  for (const s of t) await e.removeDir(s), r.push(s);
680
637
  return r;
681
- }, _ = e => {
638
+ }, w = e => {
682
639
  e = normalizePath(e), t.forEach(((t, r) => {
683
640
  const s = path$2.relative(e, r).split("/")[0];
684
- s.startsWith(".") || s.startsWith("/") || v(r);
641
+ s.startsWith(".") || s.startsWith("/") || _(r);
685
642
  }));
686
- }, v = e => {
643
+ }, _ = e => {
687
644
  e = normalizePath(e);
688
645
  const r = t.get(e);
689
646
  null == r || r.queueWriteToDisk || t.delete(e);
690
- }, b = e => {
647
+ }, v = e => {
691
648
  e = normalizePath(e);
692
649
  let r = t.get(e);
693
650
  return null != r || t.set(e, r = {
@@ -702,36 +659,36 @@ function mockCompilerCtx(e) {
702
659
  queueWriteToDisk: null,
703
660
  useCache: null
704
661
  }), r;
705
- }, E = 5242880;
662
+ }, b = 5242880;
706
663
  return {
707
- access: async e => (await s(e)).exists,
664
+ access: async e => {
665
+ const t = v(e);
666
+ return "boolean" != typeof t.exists ? (await l(e)).exists : t.exists;
667
+ },
708
668
  accessSync: e => {
709
- const t = b(e);
710
- if ("boolean" != typeof t.exists) {
711
- const r = u(e);
712
- t.exists = r.exists, t.isDirectory = r.isDirectory, t.isFile = r.isFile;
713
- }
714
- return t.exists;
669
+ const t = v(e);
670
+ return "boolean" != typeof t.exists ? c(e).exists : t.exists;
715
671
  },
716
- accessData: s,
717
672
  cancelDeleteDirectoriesFromDisk: e => {
718
673
  for (const t of e) {
719
- const e = b(t);
674
+ const e = v(t);
720
675
  !0 === e.queueDeleteFromDisk && (e.queueDeleteFromDisk = !1);
721
676
  }
722
677
  },
723
678
  cancelDeleteFilesFromDisk: e => {
724
679
  for (const t of e) {
725
- const e = b(t);
680
+ const e = v(t);
726
681
  !0 === e.isFile && !0 === e.queueDeleteFromDisk && (e.queueDeleteFromDisk = !1);
727
682
  }
728
683
  },
729
- clearCache: () => t.clear(),
730
- clearDirCache: _,
731
- clearFileCache: v,
684
+ clearCache: () => {
685
+ t.clear();
686
+ },
687
+ clearDirCache: w,
688
+ clearFileCache: _,
732
689
  commit: async () => {
733
- const e = getCommitInstructions(t), r = await p(e.dirsToEnsure, !1), s = await m(e.filesToWrite), n = await f(e.filesToCopy), o = await y(e.filesToDelete), i = await w(e.dirsToDelete);
734
- return e.filesToDelete.forEach(v), e.dirsToDelete.forEach(_), {
690
+ 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);
691
+ return e.filesToDelete.forEach(_), e.dirsToDelete.forEach(w), {
735
692
  filesCopied: n,
736
693
  filesWritten: s,
737
694
  filesDeleted: o,
@@ -740,20 +697,20 @@ function mockCompilerCtx(e) {
740
697
  };
741
698
  },
742
699
  copyFile: async (e, t) => {
743
- b(e).queueCopyFileToDest = t;
700
+ v(e).queueCopyFileToDest = t;
744
701
  },
745
702
  emptyDirs: async e => {
746
703
  e = e.filter(isString).map(normalizePath).reduce(((e, t) => (e.includes(t) || e.push(t),
747
704
  e)), []);
748
- const t = await Promise.all(e.map((e => n(e, {
705
+ const t = await Promise.all(e.map((e => s(e, {
749
706
  recursive: !0
750
707
  })))), r = [];
751
708
  for (const e of t) for (const t of e) r.includes(t.absPath) || r.push(t.absPath);
752
709
  r.sort(((e, t) => {
753
710
  const r = e.split("/").length, s = t.split("/").length;
754
711
  return r < s ? 1 : r > s ? -1 : 0;
755
- })), await Promise.all(r.map(l)), e.forEach((e => {
756
- const t = b(e);
712
+ })), await Promise.all(r.map(a)), e.forEach((e => {
713
+ const t = v(e);
757
714
  t.isFile = !1, t.isDirectory = !0, t.queueWriteToDisk = !0, t.queueDeleteFromDisk = !1;
758
715
  }));
759
716
  },
@@ -767,42 +724,41 @@ function mockCompilerCtx(e) {
767
724
  });
768
725
  })), e.forEach((e => e.files.sort())), e.sort(((e, t) => e.type < t.type ? -1 : e.type > t.type ? 1 : 0));
769
726
  },
770
- getItem: b,
727
+ getItem: v,
771
728
  getMemoryStats: () => `data length: ${t.size}`,
772
- keys: () => Array.from(t.keys()).sort(),
773
729
  readFile: async (t, r) => {
774
730
  if (null == r || !0 === r.useCache || void 0 === r.useCache) {
775
- const e = b(t);
731
+ const e = v(t);
776
732
  if (e.exists && "string" == typeof e.fileText) return e.fileText;
777
733
  }
778
- const s = await e.readFile(t), n = b(t);
779
- return "string" == typeof s ? s.length < E && (n.exists = !0, n.isFile = !0, n.isDirectory = !1,
734
+ const s = await e.readFile(t), n = v(t);
735
+ return "string" == typeof s ? s.length < b && (n.exists = !0, n.isFile = !0, n.isDirectory = !1,
780
736
  n.fileText = s) : n.exists = !1, s;
781
737
  },
782
738
  readFileSync: (t, r) => {
783
739
  if (null == r || !0 === r.useCache || void 0 === r.useCache) {
784
- const e = b(t);
740
+ const e = v(t);
785
741
  if (e.exists && "string" == typeof e.fileText) return e.fileText;
786
742
  }
787
- const s = e.readFileSync(t), n = b(t);
788
- return "string" == typeof s ? s.length < E && (n.exists = !0, n.isFile = !0, n.isDirectory = !1,
743
+ const s = e.readFileSync(t), n = v(t);
744
+ return "string" == typeof s ? s.length < b && (n.exists = !0, n.isFile = !0, n.isDirectory = !1,
789
745
  n.fileText = s) : n.exists = !1, s;
790
746
  },
791
- readdir: n,
747
+ readdir: s,
792
748
  remove: async e => {
793
- const t = await c(e);
794
- !0 === t.isDirectory ? await a(e) : !0 === t.isFile && await l(e);
749
+ const t = await l(e);
750
+ !0 === t.isDirectory ? await i(e) : !0 === t.isFile && await a(e);
795
751
  },
796
- stat: c,
797
- statSync: u,
752
+ stat: l,
753
+ statSync: c,
798
754
  sys: e,
799
- writeFile: d,
755
+ writeFile: u,
800
756
  writeFiles: (e, t) => {
801
757
  const r = [];
802
758
  return isIterable(e) ? e.forEach(((e, s) => {
803
- r.push(d(s, e, t));
759
+ r.push(u(s, e, t));
804
760
  })) : Object.keys(e).map((s => {
805
- r.push(d(s, e[s], t));
761
+ r.push(u(s, e[s], t));
806
762
  })), Promise.all(r);
807
763
  }
808
764
  };
@@ -823,21 +779,6 @@ function mockLogger() {
823
779
  return new TestingLogger;
824
780
  }
825
781
 
826
- function findRootComponent(e, t) {
827
- if (null != t) {
828
- const r = t.children, s = r.length;
829
- for (let t = 0; t < s; t++) {
830
- const s = r[t];
831
- if (e.has(s.nodeName.toLowerCase())) return s;
832
- }
833
- for (let t = 0; t < s; t++) {
834
- const s = findRootComponent(e, r[t]);
835
- if (null != s) return s;
836
- }
837
- }
838
- return null;
839
- }
840
-
841
782
  async function initPageEvents(e) {
842
783
  e._e2eEvents = new Map, e._e2eEventIds = 0, e.spyOnEvent = pageSpyOnEvent.bind(e, e),
843
784
  await e.exposeFunction("rindoOnEvent", ((t, r) => {
@@ -1026,11 +967,12 @@ function writeFile(e, t) {
1026
967
  async function compareScreenshot(e, t, r, s, n, o, i, a) {
1027
968
  const l = `${crypto$3.createHash("md5").update(r).digest("hex")}.png`, c = path$2.join(t.imagesDir, l);
1028
969
  await async function u(e, t) {
1029
- await function r(e) {
970
+ const r = await function s(e) {
1030
971
  return new Promise((t => {
1031
972
  fs__default.default.access(e, (e => t(!e)));
1032
973
  }));
1033
- }(e) || await writeFile(e, t);
974
+ }(e);
975
+ r || await writeFile(e, t);
1034
976
  }(c, r), r = null, i && (i = normalizePath(path$2.relative(t.rootDir, i)));
1035
977
  const d = function h(e, t) {
1036
978
  if ("string" != typeof t || 0 === t.trim().length) throw new Error("invalid test description");
@@ -1197,9 +1139,58 @@ function serializeConsoleMessage(e) {
1197
1139
  }(e.location())}`;
1198
1140
  }
1199
1141
 
1200
- 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;
1142
+ function findRootComponent(e, t) {
1143
+ if (null != t) {
1144
+ const r = t.children, s = r.length;
1145
+ for (let t = 0; t < s; t++) {
1146
+ const s = r[t];
1147
+ if (e.has(s.nodeName.toLowerCase())) return s;
1148
+ }
1149
+ for (let t = 0; t < s; t++) {
1150
+ const s = findRootComponent(e, r[t]);
1151
+ if (null != s) return s;
1152
+ }
1153
+ }
1154
+ return null;
1155
+ }
1156
+
1157
+ function createBuildId() {
1158
+ const e = new Date;
1159
+ let t = e.getFullYear() + "";
1160
+ return t += ("0" + (e.getMonth() + 1)).slice(-2), t += ("0" + e.getDate()).slice(-2),
1161
+ t += ("0" + e.getHours()).slice(-2), t += ("0" + e.getMinutes()).slice(-2), t += ("0" + e.getSeconds()).slice(-2),
1162
+ t;
1163
+ }
1201
1164
 
1202
- 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) => ({
1165
+ function createBuildMessage() {
1166
+ const e = new Date;
1167
+ let t = e.getFullYear() + "-";
1168
+ return t += ("0" + (e.getMonth() + 1)).slice(-2) + "-", t += ("0" + e.getDate()).slice(-2) + " ",
1169
+ t += ("0" + e.getHours()).slice(-2) + ":", t += ("0" + e.getMinutes()).slice(-2) + ":",
1170
+ t += ("0" + e.getSeconds()).slice(-2), `Build: ${t}`;
1171
+ }
1172
+
1173
+ function getAppStyleUrl(e, t) {
1174
+ return e.globalStyle ? getAppUrl(e, t, `${e.fsNamespace}.css`) : null;
1175
+ }
1176
+
1177
+ function getAppUrl(e, t, r) {
1178
+ const s = e.outputTargets.find(isOutputTargetWww);
1179
+ if (s) {
1180
+ const e = s.buildDir, n = path$2.join(e, r), o = path$2.relative(s.dir, n);
1181
+ return new URL(o, t).href;
1182
+ }
1183
+ const n = e.outputTargets.find(isOutputTargetDistLazy);
1184
+ if (n) {
1185
+ const s = n.esmDir, o = path$2.join(s, r), i = path$2.relative(e.rootDir, o);
1186
+ return new URL(i, t).href;
1187
+ }
1188
+ return t;
1189
+ }
1190
+
1191
+ 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;
1192
+
1193
+ const rindo_js = require("../compiler/rindo.js"), appData = _lazyRequire("@rindo/core/internal/app-data"), testing = _lazyRequire("@rindo/core/internal/testing"), index_cjs = _lazyRequire("../mock-doc/index.cjs"), path$2 = require("path"), crypto$3 = require("crypto"), os$2 = require("os"), process$3 = require("process"), fs$2 = require("fs"), index_js = _lazyRequire("../dev-server/index.js"), child_process$2 = require("child_process"), path__default = _interopDefaultLegacy(path$2), os__namespace = _interopNamespace(os$2), process__namespace = _interopNamespace(process$3), fs__default = _interopDefaultLegacy(fs$2), formatComponentRuntimeMembers = (e, t = !0) => ({
1203
1194
  ...formatPropertiesRuntimeMember(e.properties),
1204
1195
  ...formatStatesRuntimeMember(e.states),
1205
1196
  ...t ? formatMethodsRuntimeMember(e.methods) : {}
@@ -1315,15 +1306,16 @@ const path$2 = require("path"), index_js = _lazyRequire("../dev-server/index.js"
1315
1306
  const r = e.substring(0, t), s = e.substring(t).split("/"), n = s.length;
1316
1307
  return n > 0 && !s[n - 1] && s.pop(), [ r, ...s ];
1317
1308
  }, normalizeFsPath = e => normalizePath(e.split("?")[0].replace(/\0/g, "")), flattenDiagnosticMessageText = (e, t) => {
1309
+ var r, s;
1318
1310
  if ("string" == typeof t) return t;
1319
1311
  if (void 0 === t) return "";
1320
- const r = [], s = e.file.fileName.includes("rindo.config");
1321
- s && r.push(2322);
1322
- let n = "";
1323
- if (!r.includes(t.code) && (n = t.messageText, isIterable(t.next))) for (const r of t.next) n += flattenDiagnosticMessageText(e, r);
1324
- return s && (n = n.replace("type 'RindoConfig'", "Rindo Config"), n = n.replace("Object literal may only specify known properties, but ", ""),
1325
- n = n.replace("Object literal may only specify known properties, and ", "")), n.trim();
1326
- }, 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
+ const n = [], o = (null !== (s = null === (r = e.file) || void 0 === r ? void 0 : r.fileName) && void 0 !== s ? s : "").includes("rindo.config");
1313
+ o && n.push(2322);
1314
+ let i = "";
1315
+ if (!n.includes(t.code) && (i = t.messageText, isIterable(t.next))) for (const r of t.next) i += flattenDiagnosticMessageText(e, r);
1316
+ return o && (i = i.replace("type 'RindoConfig'", "Rindo Config"), i = i.replace("Object literal may only specify known properties, but ", ""),
1317
+ i = i.replace("Object literal may only specify known properties, and ", "")), i.trim();
1318
+ }, isJest27TransformOptions = e => null != e && "object" == typeof e && e.hasOwnProperty("config");
1327
1319
 
1328
1320
  let _tsCompilerOptions = null, _tsCompilerOptionsKey = null;
1329
1321
 
@@ -1734,7 +1726,13 @@ const FETCH_DEFAULT_PATH = "/mock-fetch-data", HtmlSerializer = {
1734
1726
  outerHtml: !0
1735
1727
  }),
1736
1728
  test: e => null != e && (e instanceof HTMLElement || e instanceof index_cjs.MockNode)
1737
- };
1729
+ }, createConfigFlags = (e = {}) => ({
1730
+ task: null,
1731
+ args: [],
1732
+ knownArgs: [],
1733
+ unknownArgs: [],
1734
+ ...e
1735
+ });
1738
1736
 
1739
1737
  class BuildContext {
1740
1738
  constructor(e, t) {
@@ -1920,7 +1918,46 @@ class Cache {
1920
1918
  }
1921
1919
  }
1922
1920
 
1923
- const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY = "last_clear_expired_cache", CACHE_DIR_README = '# Rindo Cache Directory\n\nThis directory contains files which the compiler has\ncached for faster builds. To disable caching, please set\n"enableCache: false" within the rindo config.\n\nTo change the cache directory, please update the\n"cacheDir" property within the rindo config.\n', getCommitInstructions = e => {
1921
+ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY = "last_clear_expired_cache", CACHE_DIR_README = '# Rindo Cache Directory\n\nThis directory contains files which the compiler has\ncached for faster builds. To disable caching, please set\n"enableCache: false" within the rindo config.\n\nTo change the cache directory, please update the\n"cacheDir" property within the rindo config.\n', buildEvents = () => {
1922
+ const e = [], t = t => {
1923
+ const r = e.findIndex((e => e.callback === t));
1924
+ return r > -1 && (e.splice(r, 1), !0);
1925
+ };
1926
+ return {
1927
+ emit: (t, r) => {
1928
+ const s = t.toLowerCase().trim(), n = e.slice();
1929
+ for (const e of n) if (null == e.eventName) try {
1930
+ e.callback(t, r);
1931
+ } catch (e) {
1932
+ console.error(e);
1933
+ } else if (e.eventName === s) try {
1934
+ e.callback(r);
1935
+ } catch (e) {
1936
+ console.error(e);
1937
+ }
1938
+ },
1939
+ on: (r, s) => {
1940
+ if ("function" == typeof r) {
1941
+ const s = null, n = r;
1942
+ return e.push({
1943
+ eventName: s,
1944
+ callback: n
1945
+ }), () => t(n);
1946
+ }
1947
+ if ("string" == typeof r && "function" == typeof s) {
1948
+ const n = r.toLowerCase().trim(), o = s;
1949
+ return e.push({
1950
+ eventName: n,
1951
+ callback: o
1952
+ }), () => t(o);
1953
+ }
1954
+ return () => !1;
1955
+ },
1956
+ unsubscribeAll: () => {
1957
+ e.length = 0;
1958
+ }
1959
+ };
1960
+ }, getCommitInstructions = e => {
1924
1961
  const t = {
1925
1962
  filesToDelete: [],
1926
1963
  filesToWrite: [],
@@ -1980,6 +2017,70 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1980
2017
  })), t;
1981
2018
  }, shouldIgnore = e => (e = e.trim().toLowerCase(), IGNORE.some((t => e.endsWith(t)))), IGNORE = [ ".ds_store", ".gitignore", "desktop.ini", "thumbs.db" ];
1982
2019
 
2020
+ class TestingLogger {
2021
+ constructor() {
2022
+ this.isEnabled = !1;
2023
+ }
2024
+ setLevel(e) {}
2025
+ getLevel() {
2026
+ return "info";
2027
+ }
2028
+ enableColors(e) {}
2029
+ emoji(e) {
2030
+ return "";
2031
+ }
2032
+ info(...e) {
2033
+ this.isEnabled && console.log(...e);
2034
+ }
2035
+ warn(...e) {
2036
+ this.isEnabled && console.warn(...e);
2037
+ }
2038
+ error(...e) {
2039
+ this.isEnabled && console.error(...e);
2040
+ }
2041
+ debug(...e) {
2042
+ this.isEnabled && console.log(...e);
2043
+ }
2044
+ color(e, t) {}
2045
+ red(e) {
2046
+ return e;
2047
+ }
2048
+ green(e) {
2049
+ return e;
2050
+ }
2051
+ yellow(e) {
2052
+ return e;
2053
+ }
2054
+ blue(e) {
2055
+ return e;
2056
+ }
2057
+ magenta(e) {
2058
+ return e;
2059
+ }
2060
+ cyan(e) {
2061
+ return e;
2062
+ }
2063
+ gray(e) {
2064
+ return e;
2065
+ }
2066
+ bold(e) {
2067
+ return e;
2068
+ }
2069
+ dim(e) {
2070
+ return e;
2071
+ }
2072
+ bgRed(e) {
2073
+ return e;
2074
+ }
2075
+ createTimeSpan(e, t = !1) {
2076
+ return {
2077
+ duration: () => 0,
2078
+ finish: () => 0
2079
+ };
2080
+ }
2081
+ printDiagnostics(e) {}
2082
+ }
2083
+
1983
2084
  (posix = {
1984
2085
  resolve: function e() {
1985
2086
  var t, r, s, n = "", o = !1;
@@ -2067,79 +2168,40 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
2067
2168
  break;
2068
2169
  }
2069
2170
  return -1 === r || -1 === n || 0 === i || 1 === i && r === n - 1 && r === s + 1 ? "" : t.slice(r, n);
2070
- },
2071
- format: function e(t) {
2072
- if (null === t || "object" != typeof t) throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t);
2073
- return function r(e, t) {
2074
- var r = t.dir || t.root, s = t.base || (t.name || "") + (t.ext || "");
2075
- return r ? r === t.root ? r + s : r + e + s : s;
2076
- }("/", t);
2077
- },
2078
- parse: function e(t) {
2079
- var r, s, n, o, i, a, l, c, u, d;
2080
- if (assertPath(t), r = {
2081
- root: "",
2082
- dir: "",
2083
- base: "",
2084
- ext: "",
2085
- name: ""
2086
- }, 0 === t.length) return r;
2087
- for ((n = 47 === (s = t.charCodeAt(0))) ? (r.root = "/", o = 1) : o = 0, i = -1,
2088
- 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,
2089
- l = u + 1), 46 === s ? -1 === i ? i = u : 1 !== d && (d = 1) : -1 !== i && (d = -1); else if (!c) {
2090
- a = u + 1;
2091
- break;
2092
- }
2093
- 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),
2094
- r.base = t.slice(1, l)) : (r.name = t.slice(a, i), r.base = t.slice(a, l)), r.ext = t.slice(i, l)),
2095
- a > 0 ? r.dir = t.slice(0, a - 1) : n && (r.dir = "/"), r;
2096
- },
2097
- sep: "/",
2098
- delimiter: ":",
2099
- win32: null,
2100
- posix: null
2101
- }).posix = posix, pathBrowserify = posix;
2102
-
2103
- const buildEvents = () => {
2104
- const e = [], t = t => {
2105
- const r = e.findIndex((e => e.callback === t));
2106
- return r > -1 && (e.splice(r, 1), !0);
2107
- };
2108
- return {
2109
- emit: (t, r) => {
2110
- const s = t.toLowerCase().trim(), n = e.slice();
2111
- for (const e of n) if (null == e.eventName) try {
2112
- e.callback(t, r);
2113
- } catch (e) {
2114
- console.error(e);
2115
- } else if (e.eventName === s) try {
2116
- e.callback(r);
2117
- } catch (e) {
2118
- console.error(e);
2119
- }
2120
- },
2121
- on: (r, s) => {
2122
- if ("function" == typeof r) {
2123
- const s = null, n = r;
2124
- return e.push({
2125
- eventName: s,
2126
- callback: n
2127
- }), () => t(n);
2128
- }
2129
- if ("string" == typeof r && "function" == typeof s) {
2130
- const n = r.toLowerCase().trim(), o = s;
2131
- return e.push({
2132
- eventName: n,
2133
- callback: o
2134
- }), () => t(o);
2135
- }
2136
- return () => !1;
2137
- },
2138
- unsubscribeAll: () => {
2139
- e.length = 0;
2171
+ },
2172
+ format: function e(t) {
2173
+ if (null === t || "object" != typeof t) throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t);
2174
+ return function r(e, t) {
2175
+ var r = t.dir || t.root, s = t.base || (t.name || "") + (t.ext || "");
2176
+ return r ? r === t.root ? r + s : r + e + s : s;
2177
+ }("/", t);
2178
+ },
2179
+ parse: function e(t) {
2180
+ var r, s, n, o, i, a, l, c, u, d;
2181
+ if (assertPath(t), r = {
2182
+ root: "",
2183
+ dir: "",
2184
+ base: "",
2185
+ ext: "",
2186
+ name: ""
2187
+ }, 0 === t.length) return r;
2188
+ for ((n = 47 === (s = t.charCodeAt(0))) ? (r.root = "/", o = 1) : o = 0, i = -1,
2189
+ 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,
2190
+ l = u + 1), 46 === s ? -1 === i ? i = u : 1 !== d && (d = 1) : -1 !== i && (d = -1); else if (!c) {
2191
+ a = u + 1;
2192
+ break;
2140
2193
  }
2141
- };
2142
- }, IS_NODE_ENV = !("undefined" == typeof global || "function" != typeof require || !global.process || "string" != typeof __filename || global.origin && "string" == typeof global.origin);
2194
+ 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),
2195
+ r.base = t.slice(1, l)) : (r.name = t.slice(a, i), r.base = t.slice(a, l)), r.ext = t.slice(i, l)),
2196
+ a > 0 ? r.dir = t.slice(0, a - 1) : n && (r.dir = "/"), r;
2197
+ },
2198
+ sep: "/",
2199
+ delimiter: ":",
2200
+ win32: null,
2201
+ posix: null
2202
+ }).posix = posix, pathBrowserify = posix;
2203
+
2204
+ const IS_NODE_ENV = !("undefined" == typeof global || "function" != typeof require || !global.process || "string" != typeof __filename || global.origin && "string" == typeof global.origin);
2143
2205
 
2144
2206
  IS_NODE_ENV && process.platform;
2145
2207
 
@@ -2147,79 +2209,9 @@ const IS_BROWSER_ENV = "undefined" != typeof location && "undefined" != typeof n
2147
2209
 
2148
2210
  IS_NODE_ENV && require, IS_NODE_ENV && process.cwd;
2149
2211
 
2150
- 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) => {
2151
- const r = normalizePath(e).split("/"), s = (e => {
2152
- e.startsWith("~") && (e = e.substring(1));
2153
- const t = e.split("/"), r = {
2154
- moduleId: null,
2155
- filePath: null,
2156
- scope: null,
2157
- scopeSubModuleId: null
2158
- };
2159
- return e.startsWith("@") && t.length > 1 ? (r.moduleId = t.slice(0, 2).join("/"),
2160
- r.filePath = t.slice(2).join("/"), r.scope = t[0], r.scopeSubModuleId = t[1]) : (r.moduleId = t[0],
2161
- r.filePath = t.slice(1).join("/")), r;
2162
- })(t);
2163
- for (let e = r.length - 1; e >= 1; e--) if ("node_modules" === r[e - 1]) if (s.scope) {
2164
- if (r[e] === s.scope && r[e + 1] === s.scopeSubModuleId) return r.slice(0, e + 2).join("/");
2165
- } else if (r[e] === s.moduleId) return r.slice(0, e + 1).join("/");
2166
- return null;
2167
- }, packageVersions = new Map, known404Urls = new Set, getCommonDirUrl = (e, t, r, s) => getNodeModuleFetchUrl(e, t, r) + "/" + s, getNodeModuleFetchUrl = (e, t, r) => {
2168
- let s = (r = normalizePath(r)).split("/").filter((e => e.length));
2169
- const n = s.lastIndexOf("node_modules");
2170
- n > -1 && n < s.length - 1 && (s = s.slice(n + 1));
2171
- let o = s.shift();
2172
- o.startsWith("@") && (o += "/" + s.shift());
2173
- const i = s.join("/");
2174
- return "@rindo/core" === o ? ((e, t) => {
2175
- let r = (t = normalizePath(t)).split("/");
2176
- const s = r.lastIndexOf("node_modules");
2177
- s > -1 && s < r.length - 1 && (r = r.slice(s + 1), r = r[0].startsWith("@") ? r.slice(2) : r.slice(1),
2178
- t = r.join("/"));
2179
- const n = new URL("../", e).href;
2180
- return new URL("./" + t, n).href;
2181
- })(e.getCompilerExecutingPath(), i) : e.getRemoteModuleUrl({
2182
- moduleId: o,
2183
- version: t.get(o),
2184
- path: i
2185
- });
2186
- }, 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) => {
2187
- if (!((e => {
2188
- if (!(e => e.endsWith(".d.ts"))(t = e) && t.endsWith(".ts") || (e => e.endsWith(".tsx"))(e)) return !0;
2189
- var t;
2190
- const r = e.split("/"), s = r[r.length - 2], n = r[r.length - 1];
2191
- return !("node_modules" !== s || !isCommonDirModuleFile(n));
2192
- })(n) || known404Urls.has(s) || (e => knownUrlSkips.some((t => e.endsWith(t))))(s))) try {
2193
- const o = await ((e, t, r) => e && isFunction(e.fetch) ? e.fetch(t, r) : fetch(t, r))(e, s);
2194
- if (o) {
2195
- if (o.ok) {
2196
- const i = await o.clone().text();
2197
- return await (async (e, t, r, s, n, o) => {
2198
- r.endsWith("package.json") && ((e, t) => {
2199
- try {
2200
- const r = JSON.parse(t);
2201
- r.name && r.version && ((e, t, r) => {
2202
- e.set(t, r);
2203
- })(e, r.name, r.version);
2204
- } catch (e) {}
2205
- })(o, n);
2206
- let i = path$2.dirname(s);
2207
- for (;"/" !== i && "" !== i; ) t ? (t.clearFileCache(i), await t.sys.createDir(i)) : await e.createDir(i),
2208
- i = path$2.dirname(i);
2209
- t ? (t.clearFileCache(s), await t.sys.writeFile(s, n)) : await e.writeFile(s, n);
2210
- })(e, t, s, n, i, r), i;
2211
- }
2212
- 404 === o.status && known404Urls.add(s);
2213
- }
2214
- } catch (e) {
2215
- console.error(e);
2216
- }
2217
- };
2212
+ const YELLOW = "#f39c12", RED = "#c0392b", BLUE = "#3498db";
2218
2213
 
2219
- homedir$2 = os__default.default.homedir || function e() {
2220
- var t = process.env.HOME, r = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
2221
- 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;
2222
- }, caller = function() {
2214
+ caller = function() {
2223
2215
  var e, t = Error.prepareStackTrace;
2224
2216
  return Error.prepareStackTrace = function(e, t) {
2225
2217
  return t;
@@ -2299,173 +2291,101 @@ toStr = Object.prototype.toString, implementation = function e(t) {
2299
2291
 
2300
2292
  const data$1 = {
2301
2293
  assert: !0,
2302
- "node:assert": [ ">= 14.18 && < 15", ">= 16" ],
2303
2294
  "assert/strict": ">= 15",
2304
- "node:assert/strict": ">= 16",
2305
2295
  async_hooks: ">= 8",
2306
- "node:async_hooks": [ ">= 14.18 && < 15", ">= 16" ],
2307
- buffer_ieee754: ">= 0.5 && < 0.9.7",
2296
+ buffer_ieee754: "< 0.9.7",
2308
2297
  buffer: !0,
2309
- "node:buffer": [ ">= 14.18 && < 15", ">= 16" ],
2310
2298
  child_process: !0,
2311
- "node:child_process": [ ">= 14.18 && < 15", ">= 16" ],
2312
- cluster: ">= 0.5",
2313
- "node:cluster": [ ">= 14.18 && < 15", ">= 16" ],
2299
+ cluster: !0,
2314
2300
  console: !0,
2315
- "node:console": [ ">= 14.18 && < 15", ">= 16" ],
2316
2301
  constants: !0,
2317
- "node:constants": [ ">= 14.18 && < 15", ">= 16" ],
2318
2302
  crypto: !0,
2319
- "node:crypto": [ ">= 14.18 && < 15", ">= 16" ],
2320
2303
  _debug_agent: ">= 1 && < 8",
2321
2304
  _debugger: "< 8",
2322
2305
  dgram: !0,
2323
- "node:dgram": [ ">= 14.18 && < 15", ">= 16" ],
2324
- diagnostics_channel: [ ">= 14.17 && < 15", ">= 15.1" ],
2325
- "node:diagnostics_channel": [ ">= 14.18 && < 15", ">= 16" ],
2306
+ diagnostics_channel: ">= 15.1",
2326
2307
  dns: !0,
2327
- "node:dns": [ ">= 14.18 && < 15", ">= 16" ],
2328
2308
  "dns/promises": ">= 15",
2329
- "node:dns/promises": ">= 16",
2330
2309
  domain: ">= 0.7.12",
2331
- "node:domain": [ ">= 14.18 && < 15", ">= 16" ],
2332
2310
  events: !0,
2333
- "node:events": [ ">= 14.18 && < 15", ">= 16" ],
2334
2311
  freelist: "< 6",
2335
2312
  fs: !0,
2336
- "node:fs": [ ">= 14.18 && < 15", ">= 16" ],
2337
2313
  "fs/promises": [ ">= 10 && < 10.1", ">= 14" ],
2338
- "node:fs/promises": [ ">= 14.18 && < 15", ">= 16" ],
2339
2314
  _http_agent: ">= 0.11.1",
2340
- "node:_http_agent": [ ">= 14.18 && < 15", ">= 16" ],
2341
2315
  _http_client: ">= 0.11.1",
2342
- "node:_http_client": [ ">= 14.18 && < 15", ">= 16" ],
2343
2316
  _http_common: ">= 0.11.1",
2344
- "node:_http_common": [ ">= 14.18 && < 15", ">= 16" ],
2345
2317
  _http_incoming: ">= 0.11.1",
2346
- "node:_http_incoming": [ ">= 14.18 && < 15", ">= 16" ],
2347
2318
  _http_outgoing: ">= 0.11.1",
2348
- "node:_http_outgoing": [ ">= 14.18 && < 15", ">= 16" ],
2349
2319
  _http_server: ">= 0.11.1",
2350
- "node:_http_server": [ ">= 14.18 && < 15", ">= 16" ],
2351
2320
  http: !0,
2352
- "node:http": [ ">= 14.18 && < 15", ">= 16" ],
2353
2321
  http2: ">= 8.8",
2354
- "node:http2": [ ">= 14.18 && < 15", ">= 16" ],
2355
2322
  https: !0,
2356
- "node:https": [ ">= 14.18 && < 15", ">= 16" ],
2357
- inspector: ">= 8",
2358
- "node:inspector": [ ">= 14.18 && < 15", ">= 16" ],
2323
+ inspector: ">= 8.0.0",
2359
2324
  _linklist: "< 8",
2360
2325
  module: !0,
2361
- "node:module": [ ">= 14.18 && < 15", ">= 16" ],
2362
2326
  net: !0,
2363
- "node:net": [ ">= 14.18 && < 15", ">= 16" ],
2364
- "node-inspect/lib/_inspect": ">= 7.6 && < 12",
2365
- "node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
2366
- "node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
2327
+ "node-inspect/lib/_inspect": ">= 7.6.0 && < 12",
2328
+ "node-inspect/lib/internal/inspect_client": ">= 7.6.0 && < 12",
2329
+ "node-inspect/lib/internal/inspect_repl": ">= 7.6.0 && < 12",
2367
2330
  os: !0,
2368
- "node:os": [ ">= 14.18 && < 15", ">= 16" ],
2369
2331
  path: !0,
2370
- "node:path": [ ">= 14.18 && < 15", ">= 16" ],
2371
2332
  "path/posix": ">= 15.3",
2372
- "node:path/posix": ">= 16",
2373
2333
  "path/win32": ">= 15.3",
2374
- "node:path/win32": ">= 16",
2375
2334
  perf_hooks: ">= 8.5",
2376
- "node:perf_hooks": [ ">= 14.18 && < 15", ">= 16" ],
2377
2335
  process: ">= 1",
2378
- "node:process": [ ">= 14.18 && < 15", ">= 16" ],
2379
- punycode: ">= 0.5",
2380
- "node:punycode": [ ">= 14.18 && < 15", ">= 16" ],
2336
+ punycode: !0,
2381
2337
  querystring: !0,
2382
- "node:querystring": [ ">= 14.18 && < 15", ">= 16" ],
2383
2338
  readline: !0,
2384
- "node:readline": [ ">= 14.18 && < 15", ">= 16" ],
2385
- "readline/promises": ">= 17",
2386
- "node:readline/promises": ">= 17",
2387
2339
  repl: !0,
2388
- "node:repl": [ ">= 14.18 && < 15", ">= 16" ],
2389
2340
  smalloc: ">= 0.11.5 && < 3",
2390
2341
  _stream_duplex: ">= 0.9.4",
2391
- "node:_stream_duplex": [ ">= 14.18 && < 15", ">= 16" ],
2392
2342
  _stream_transform: ">= 0.9.4",
2393
- "node:_stream_transform": [ ">= 14.18 && < 15", ">= 16" ],
2394
2343
  _stream_wrap: ">= 1.4.1",
2395
- "node:_stream_wrap": [ ">= 14.18 && < 15", ">= 16" ],
2396
2344
  _stream_passthrough: ">= 0.9.4",
2397
- "node:_stream_passthrough": [ ">= 14.18 && < 15", ">= 16" ],
2398
2345
  _stream_readable: ">= 0.9.4",
2399
- "node:_stream_readable": [ ">= 14.18 && < 15", ">= 16" ],
2400
2346
  _stream_writable: ">= 0.9.4",
2401
- "node:_stream_writable": [ ">= 14.18 && < 15", ">= 16" ],
2402
2347
  stream: !0,
2403
- "node:stream": [ ">= 14.18 && < 15", ">= 16" ],
2404
- "stream/consumers": ">= 16.7",
2405
- "node:stream/consumers": ">= 16.7",
2406
2348
  "stream/promises": ">= 15",
2407
- "node:stream/promises": ">= 16",
2408
- "stream/web": ">= 16.5",
2409
- "node:stream/web": ">= 16.5",
2410
2349
  string_decoder: !0,
2411
- "node:string_decoder": [ ">= 14.18 && < 15", ">= 16" ],
2412
- sys: [ ">= 0.4 && < 0.7", ">= 0.8" ],
2413
- "node:sys": [ ">= 14.18 && < 15", ">= 16" ],
2414
- "node:test": [ ">= 16.17 && < 17", ">= 18" ],
2350
+ sys: [ ">= 0.6 && < 0.7", ">= 0.8" ],
2415
2351
  timers: !0,
2416
- "node:timers": [ ">= 14.18 && < 15", ">= 16" ],
2417
2352
  "timers/promises": ">= 15",
2418
- "node:timers/promises": ">= 16",
2419
2353
  _tls_common: ">= 0.11.13",
2420
- "node:_tls_common": [ ">= 14.18 && < 15", ">= 16" ],
2421
2354
  _tls_legacy: ">= 0.11.3 && < 10",
2422
2355
  _tls_wrap: ">= 0.11.3",
2423
- "node:_tls_wrap": [ ">= 14.18 && < 15", ">= 16" ],
2424
2356
  tls: !0,
2425
- "node:tls": [ ">= 14.18 && < 15", ">= 16" ],
2426
2357
  trace_events: ">= 10",
2427
- "node:trace_events": [ ">= 14.18 && < 15", ">= 16" ],
2428
2358
  tty: !0,
2429
- "node:tty": [ ">= 14.18 && < 15", ">= 16" ],
2430
2359
  url: !0,
2431
- "node:url": [ ">= 14.18 && < 15", ">= 16" ],
2432
2360
  util: !0,
2433
- "node:util": [ ">= 14.18 && < 15", ">= 16" ],
2434
2361
  "util/types": ">= 15.3",
2435
- "node:util/types": ">= 16",
2436
2362
  "v8/tools/arguments": ">= 10 && < 12",
2437
- "v8/tools/codemap": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2438
- "v8/tools/consarray": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2439
- "v8/tools/csvparser": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2440
- "v8/tools/logreader": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2441
- "v8/tools/profile_view": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2442
- "v8/tools/splaytree": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2363
+ "v8/tools/codemap": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2364
+ "v8/tools/consarray": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2365
+ "v8/tools/csvparser": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2366
+ "v8/tools/logreader": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2367
+ "v8/tools/profile_view": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2368
+ "v8/tools/splaytree": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2443
2369
  v8: ">= 1",
2444
- "node:v8": [ ">= 14.18 && < 15", ">= 16" ],
2445
2370
  vm: !0,
2446
- "node:vm": [ ">= 14.18 && < 15", ">= 16" ],
2447
2371
  wasi: ">= 13.4 && < 13.5",
2448
2372
  worker_threads: ">= 11.7",
2449
- "node:worker_threads": [ ">= 14.18 && < 15", ">= 16" ],
2450
- zlib: ">= 0.5",
2451
- "node:zlib": [ ">= 14.18 && < 15", ">= 16" ]
2373
+ zlib: !0
2452
2374
  };
2453
2375
 
2454
2376
  isCoreModule = function e(t, r) {
2455
2377
  return src(data$1, t) && function s(e, t) {
2456
2378
  var r, s;
2457
2379
  if ("boolean" == typeof t) return t;
2458
- 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");
2380
+ 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");
2459
2381
  if (t && "object" == typeof t) {
2460
2382
  for (s = 0; s < t.length; ++s) if (matchesRange$1(r, t[s])) return !0;
2461
2383
  return !1;
2462
2384
  }
2463
2385
  return matchesRange$1(r, t);
2464
2386
  }(r, data$1[t]);
2465
- }, 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,
2466
- homedir$1 = homedir$2(), defaultPaths$1 = function() {
2467
- return [ path__default.default.join(homedir$1, ".node_modules"), path__default.default.join(homedir$1, ".node_libraries") ];
2468
- }, defaultIsFile$1 = function e(t, r) {
2387
+ }, realpathFS$1 = fs__default.default.realpath && "function" == typeof fs__default.default.realpath.native ? fs__default.default.realpath.native : fs__default.default.realpath,
2388
+ defaultIsFile$1 = function e(t, r) {
2469
2389
  fs__default.default.stat(t, (function(e, t) {
2470
2390
  return e ? "ENOENT" === e.code || "ENOTDIR" === e.code ? r(null, !1) : r(e) : r(null, t.isFile() || t.isFIFO());
2471
2391
  }));
@@ -2594,7 +2514,7 @@ homedir$1 = homedir$2(), defaultPaths$1 = function() {
2594
2514
  process.nextTick((function() {
2595
2515
  D(g);
2596
2516
  }))) : (y = S.packageIterator, w = S.extensions || [ ".js" ], _ = !1 !== S.includeCoreModules,
2597
- v = S.basedir || path__default.default.dirname(caller()), b = S.filename || v, S.paths = S.paths || defaultPaths$1(),
2517
+ v = S.basedir || path__default.default.dirname(caller()), b = S.filename || v, S.paths = S.paths || [],
2598
2518
  E = path__default.default.resolve(v), void maybeRealpath(f, E, S, (function(e, t) {
2599
2519
  e ? D(e) : n(t);
2600
2520
  }))));
@@ -2602,156 +2522,86 @@ homedir$1 = homedir$2(), defaultPaths$1 = function() {
2602
2522
 
2603
2523
  const data = {
2604
2524
  assert: !0,
2605
- "node:assert": [ ">= 14.18 && < 15", ">= 16" ],
2606
2525
  "assert/strict": ">= 15",
2607
- "node:assert/strict": ">= 16",
2608
2526
  async_hooks: ">= 8",
2609
- "node:async_hooks": [ ">= 14.18 && < 15", ">= 16" ],
2610
- buffer_ieee754: ">= 0.5 && < 0.9.7",
2527
+ buffer_ieee754: "< 0.9.7",
2611
2528
  buffer: !0,
2612
- "node:buffer": [ ">= 14.18 && < 15", ">= 16" ],
2613
2529
  child_process: !0,
2614
- "node:child_process": [ ">= 14.18 && < 15", ">= 16" ],
2615
- cluster: ">= 0.5",
2616
- "node:cluster": [ ">= 14.18 && < 15", ">= 16" ],
2530
+ cluster: !0,
2617
2531
  console: !0,
2618
- "node:console": [ ">= 14.18 && < 15", ">= 16" ],
2619
2532
  constants: !0,
2620
- "node:constants": [ ">= 14.18 && < 15", ">= 16" ],
2621
2533
  crypto: !0,
2622
- "node:crypto": [ ">= 14.18 && < 15", ">= 16" ],
2623
2534
  _debug_agent: ">= 1 && < 8",
2624
2535
  _debugger: "< 8",
2625
2536
  dgram: !0,
2626
- "node:dgram": [ ">= 14.18 && < 15", ">= 16" ],
2627
- diagnostics_channel: [ ">= 14.17 && < 15", ">= 15.1" ],
2628
- "node:diagnostics_channel": [ ">= 14.18 && < 15", ">= 16" ],
2537
+ diagnostics_channel: ">= 15.1",
2629
2538
  dns: !0,
2630
- "node:dns": [ ">= 14.18 && < 15", ">= 16" ],
2631
2539
  "dns/promises": ">= 15",
2632
- "node:dns/promises": ">= 16",
2633
2540
  domain: ">= 0.7.12",
2634
- "node:domain": [ ">= 14.18 && < 15", ">= 16" ],
2635
2541
  events: !0,
2636
- "node:events": [ ">= 14.18 && < 15", ">= 16" ],
2637
2542
  freelist: "< 6",
2638
2543
  fs: !0,
2639
- "node:fs": [ ">= 14.18 && < 15", ">= 16" ],
2640
2544
  "fs/promises": [ ">= 10 && < 10.1", ">= 14" ],
2641
- "node:fs/promises": [ ">= 14.18 && < 15", ">= 16" ],
2642
2545
  _http_agent: ">= 0.11.1",
2643
- "node:_http_agent": [ ">= 14.18 && < 15", ">= 16" ],
2644
2546
  _http_client: ">= 0.11.1",
2645
- "node:_http_client": [ ">= 14.18 && < 15", ">= 16" ],
2646
2547
  _http_common: ">= 0.11.1",
2647
- "node:_http_common": [ ">= 14.18 && < 15", ">= 16" ],
2648
2548
  _http_incoming: ">= 0.11.1",
2649
- "node:_http_incoming": [ ">= 14.18 && < 15", ">= 16" ],
2650
2549
  _http_outgoing: ">= 0.11.1",
2651
- "node:_http_outgoing": [ ">= 14.18 && < 15", ">= 16" ],
2652
2550
  _http_server: ">= 0.11.1",
2653
- "node:_http_server": [ ">= 14.18 && < 15", ">= 16" ],
2654
2551
  http: !0,
2655
- "node:http": [ ">= 14.18 && < 15", ">= 16" ],
2656
2552
  http2: ">= 8.8",
2657
- "node:http2": [ ">= 14.18 && < 15", ">= 16" ],
2658
2553
  https: !0,
2659
- "node:https": [ ">= 14.18 && < 15", ">= 16" ],
2660
- inspector: ">= 8",
2661
- "node:inspector": [ ">= 14.18 && < 15", ">= 16" ],
2554
+ inspector: ">= 8.0.0",
2662
2555
  _linklist: "< 8",
2663
2556
  module: !0,
2664
- "node:module": [ ">= 14.18 && < 15", ">= 16" ],
2665
2557
  net: !0,
2666
- "node:net": [ ">= 14.18 && < 15", ">= 16" ],
2667
- "node-inspect/lib/_inspect": ">= 7.6 && < 12",
2668
- "node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
2669
- "node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
2558
+ "node-inspect/lib/_inspect": ">= 7.6.0 && < 12",
2559
+ "node-inspect/lib/internal/inspect_client": ">= 7.6.0 && < 12",
2560
+ "node-inspect/lib/internal/inspect_repl": ">= 7.6.0 && < 12",
2670
2561
  os: !0,
2671
- "node:os": [ ">= 14.18 && < 15", ">= 16" ],
2672
2562
  path: !0,
2673
- "node:path": [ ">= 14.18 && < 15", ">= 16" ],
2674
2563
  "path/posix": ">= 15.3",
2675
- "node:path/posix": ">= 16",
2676
2564
  "path/win32": ">= 15.3",
2677
- "node:path/win32": ">= 16",
2678
2565
  perf_hooks: ">= 8.5",
2679
- "node:perf_hooks": [ ">= 14.18 && < 15", ">= 16" ],
2680
2566
  process: ">= 1",
2681
- "node:process": [ ">= 14.18 && < 15", ">= 16" ],
2682
- punycode: ">= 0.5",
2683
- "node:punycode": [ ">= 14.18 && < 15", ">= 16" ],
2567
+ punycode: !0,
2684
2568
  querystring: !0,
2685
- "node:querystring": [ ">= 14.18 && < 15", ">= 16" ],
2686
2569
  readline: !0,
2687
- "node:readline": [ ">= 14.18 && < 15", ">= 16" ],
2688
- "readline/promises": ">= 17",
2689
- "node:readline/promises": ">= 17",
2690
2570
  repl: !0,
2691
- "node:repl": [ ">= 14.18 && < 15", ">= 16" ],
2692
2571
  smalloc: ">= 0.11.5 && < 3",
2693
2572
  _stream_duplex: ">= 0.9.4",
2694
- "node:_stream_duplex": [ ">= 14.18 && < 15", ">= 16" ],
2695
2573
  _stream_transform: ">= 0.9.4",
2696
- "node:_stream_transform": [ ">= 14.18 && < 15", ">= 16" ],
2697
2574
  _stream_wrap: ">= 1.4.1",
2698
- "node:_stream_wrap": [ ">= 14.18 && < 15", ">= 16" ],
2699
2575
  _stream_passthrough: ">= 0.9.4",
2700
- "node:_stream_passthrough": [ ">= 14.18 && < 15", ">= 16" ],
2701
2576
  _stream_readable: ">= 0.9.4",
2702
- "node:_stream_readable": [ ">= 14.18 && < 15", ">= 16" ],
2703
2577
  _stream_writable: ">= 0.9.4",
2704
- "node:_stream_writable": [ ">= 14.18 && < 15", ">= 16" ],
2705
2578
  stream: !0,
2706
- "node:stream": [ ">= 14.18 && < 15", ">= 16" ],
2707
- "stream/consumers": ">= 16.7",
2708
- "node:stream/consumers": ">= 16.7",
2709
2579
  "stream/promises": ">= 15",
2710
- "node:stream/promises": ">= 16",
2711
- "stream/web": ">= 16.5",
2712
- "node:stream/web": ">= 16.5",
2713
2580
  string_decoder: !0,
2714
- "node:string_decoder": [ ">= 14.18 && < 15", ">= 16" ],
2715
- sys: [ ">= 0.4 && < 0.7", ">= 0.8" ],
2716
- "node:sys": [ ">= 14.18 && < 15", ">= 16" ],
2717
- "node:test": ">= 18",
2581
+ sys: [ ">= 0.6 && < 0.7", ">= 0.8" ],
2718
2582
  timers: !0,
2719
- "node:timers": [ ">= 14.18 && < 15", ">= 16" ],
2720
2583
  "timers/promises": ">= 15",
2721
- "node:timers/promises": ">= 16",
2722
2584
  _tls_common: ">= 0.11.13",
2723
- "node:_tls_common": [ ">= 14.18 && < 15", ">= 16" ],
2724
2585
  _tls_legacy: ">= 0.11.3 && < 10",
2725
2586
  _tls_wrap: ">= 0.11.3",
2726
- "node:_tls_wrap": [ ">= 14.18 && < 15", ">= 16" ],
2727
2587
  tls: !0,
2728
- "node:tls": [ ">= 14.18 && < 15", ">= 16" ],
2729
2588
  trace_events: ">= 10",
2730
- "node:trace_events": [ ">= 14.18 && < 15", ">= 16" ],
2731
2589
  tty: !0,
2732
- "node:tty": [ ">= 14.18 && < 15", ">= 16" ],
2733
2590
  url: !0,
2734
- "node:url": [ ">= 14.18 && < 15", ">= 16" ],
2735
2591
  util: !0,
2736
- "node:util": [ ">= 14.18 && < 15", ">= 16" ],
2737
2592
  "util/types": ">= 15.3",
2738
- "node:util/types": ">= 16",
2739
2593
  "v8/tools/arguments": ">= 10 && < 12",
2740
- "v8/tools/codemap": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2741
- "v8/tools/consarray": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2742
- "v8/tools/csvparser": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2743
- "v8/tools/logreader": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2744
- "v8/tools/profile_view": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2745
- "v8/tools/splaytree": [ ">= 4.4 && < 5", ">= 5.2 && < 12" ],
2594
+ "v8/tools/codemap": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2595
+ "v8/tools/consarray": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2596
+ "v8/tools/csvparser": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2597
+ "v8/tools/logreader": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2598
+ "v8/tools/profile_view": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2599
+ "v8/tools/splaytree": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2746
2600
  v8: ">= 1",
2747
- "node:v8": [ ">= 14.18 && < 15", ">= 16" ],
2748
2601
  vm: !0,
2749
- "node:vm": [ ">= 14.18 && < 15", ">= 16" ],
2750
2602
  wasi: ">= 13.4 && < 13.5",
2751
2603
  worker_threads: ">= 11.7",
2752
- "node:worker_threads": [ ">= 14.18 && < 15", ">= 16" ],
2753
- zlib: ">= 0.5",
2754
- "node:zlib": [ ">= 14.18 && < 15", ">= 16" ]
2604
+ zlib: !0
2755
2605
  };
2756
2606
 
2757
2607
  for (mod in current = process.versions && process.versions.node && process.versions.node.split(".") || [],
@@ -2759,29 +2609,23 @@ core = {}, data) Object.prototype.hasOwnProperty.call(data, mod) && (core[mod] =
2759
2609
 
2760
2610
  core_1 = core, isCore = function e(t) {
2761
2611
  return isCoreModule(t);
2762
- }, realpathFS = "win32" !== process.platform && fs__default.default.realpathSync && "function" == typeof fs__default.default.realpathSync.native ? fs__default.default.realpathSync.native : fs__default.default.realpathSync,
2763
- homedir = homedir$2(), defaultPaths = function() {
2764
- return [ path__default.default.join(homedir, ".node_modules"), path__default.default.join(homedir, ".node_libraries") ];
2765
- }, defaultIsFile = function e(t) {
2612
+ }, realpathFS = fs__default.default.realpathSync && "function" == typeof fs__default.default.realpathSync.native ? fs__default.default.realpathSync.native : fs__default.default.realpathSync,
2613
+ defaultIsFile = function e(t) {
2766
2614
  try {
2767
- var r = fs__default.default.statSync(t, {
2768
- throwIfNoEntry: !1
2769
- });
2615
+ var r = fs__default.default.statSync(t);
2770
2616
  } catch (e) {
2771
2617
  if (e && ("ENOENT" === e.code || "ENOTDIR" === e.code)) return !1;
2772
2618
  throw e;
2773
2619
  }
2774
- return !!r && (r.isFile() || r.isFIFO());
2620
+ return r.isFile() || r.isFIFO();
2775
2621
  }, defaultIsDir = function e(t) {
2776
2622
  try {
2777
- var r = fs__default.default.statSync(t, {
2778
- throwIfNoEntry: !1
2779
- });
2623
+ var r = fs__default.default.statSync(t);
2780
2624
  } catch (e) {
2781
2625
  if (e && ("ENOENT" === e.code || "ENOTDIR" === e.code)) return !1;
2782
2626
  throw e;
2783
2627
  }
2784
- return !!r && r.isDirectory();
2628
+ return r.isDirectory();
2785
2629
  }, defaultRealpathSync = function e(t) {
2786
2630
  try {
2787
2631
  return realpathFS(t);
@@ -2840,7 +2684,7 @@ homedir = homedir$2(), defaultPaths = function() {
2840
2684
  c = i.isDirectory || defaultIsDir, u = i.realpathSync || defaultRealpathSync, d = i.readPackageSync || defaultReadPackageSync,
2841
2685
  i.readFileSync && i.readPackageSync) throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
2842
2686
  if (h = i.packageIterator, p = i.extensions || [ ".js" ], f = !1 !== i.includeCoreModules,
2843
- m = i.basedir || path__default.default.dirname(caller()), g = i.filename || m, i.paths = i.paths || defaultPaths(),
2687
+ m = i.basedir || path__default.default.dirname(caller()), g = i.filename || m, i.paths = i.paths || [],
2844
2688
  y = maybeRealpathSync(u, path__default.default.resolve(m), i), /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) {
2845
2689
  if (w = path__default.default.resolve(y, t), "." !== t && ".." !== t && "/" !== t.slice(-1) || (w += "/"),
2846
2690
  _ = s(w) || o(w)) return maybeRealpathSync(u, _, i);
@@ -2854,14 +2698,82 @@ homedir = homedir$2(), defaultPaths = function() {
2854
2698
  if (a = s(n)) return a;
2855
2699
  if (l = o(n)) return l;
2856
2700
  }
2857
- }(t, y)) return maybeRealpathSync(u, v, i);
2701
+ }(t, y), v) return maybeRealpathSync(u, v, i);
2858
2702
  }
2859
2703
  throw (b = new Error("Cannot find module '" + t + "' from '" + g + "'")).code = "MODULE_NOT_FOUND",
2860
2704
  b;
2861
2705
  }, async.core = core_1, async.isCore = isCore, async.sync = sync, resolve = async;
2862
2706
 
2863
- const createSystem = e => {
2864
- const t = e && e.logger ? e.logger : (() => {
2707
+ const 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) => {
2708
+ const r = normalizePath(e).split("/"), s = (e => {
2709
+ e.startsWith("~") && (e = e.substring(1));
2710
+ const t = e.split("/"), r = {
2711
+ moduleId: null,
2712
+ filePath: null,
2713
+ scope: null,
2714
+ scopeSubModuleId: null
2715
+ };
2716
+ return e.startsWith("@") && t.length > 1 ? (r.moduleId = t.slice(0, 2).join("/"),
2717
+ r.filePath = t.slice(2).join("/"), r.scope = t[0], r.scopeSubModuleId = t[1]) : (r.moduleId = t[0],
2718
+ r.filePath = t.slice(1).join("/")), r;
2719
+ })(t);
2720
+ for (let e = r.length - 1; e >= 1; e--) if ("node_modules" === r[e - 1]) if (s.scope) {
2721
+ if (r[e] === s.scope && r[e + 1] === s.scopeSubModuleId) return r.slice(0, e + 2).join("/");
2722
+ } else if (r[e] === s.moduleId) return r.slice(0, e + 1).join("/");
2723
+ return null;
2724
+ }, packageVersions = new Map, known404Urls = new Set, getCommonDirUrl = (e, t, r, s) => getNodeModuleFetchUrl(e, t, r) + "/" + s, getNodeModuleFetchUrl = (e, t, r) => {
2725
+ let s = (r = normalizePath(r)).split("/").filter((e => e.length));
2726
+ const n = s.lastIndexOf("node_modules");
2727
+ n > -1 && n < s.length - 1 && (s = s.slice(n + 1));
2728
+ let o = s.shift();
2729
+ o.startsWith("@") && (o += "/" + s.shift());
2730
+ const i = s.join("/");
2731
+ return "@rindo/core" === o ? ((e, t) => {
2732
+ let r = (t = normalizePath(t)).split("/");
2733
+ const s = r.lastIndexOf("node_modules");
2734
+ s > -1 && s < r.length - 1 && (r = r.slice(s + 1), r = r[0].startsWith("@") ? r.slice(2) : r.slice(1),
2735
+ t = r.join("/"));
2736
+ const n = new URL("../", e).href;
2737
+ return new URL("./" + t, n).href;
2738
+ })(e.getCompilerExecutingPath(), i) : e.getRemoteModuleUrl({
2739
+ moduleId: o,
2740
+ version: t.get(o),
2741
+ path: i
2742
+ });
2743
+ }, 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) => {
2744
+ if (!((e => {
2745
+ if (!(e => e.endsWith(".d.ts"))(t = e) && t.endsWith(".ts") || (e => e.endsWith(".tsx"))(e)) return !0;
2746
+ var t;
2747
+ const r = e.split("/"), s = r[r.length - 2], n = r[r.length - 1];
2748
+ return !("node_modules" !== s || !isCommonDirModuleFile(n));
2749
+ })(n) || known404Urls.has(s) || (e => knownUrlSkips.some((t => e.endsWith(t))))(s))) try {
2750
+ const o = await ((e, t, r) => e && isFunction(e.fetch) ? e.fetch(t, r) : fetch(t, r))(e, s);
2751
+ if (o) {
2752
+ if (o.ok) {
2753
+ const i = await o.clone().text();
2754
+ return await (async (e, t, r, s, n, o) => {
2755
+ r.endsWith("package.json") && ((e, t) => {
2756
+ try {
2757
+ const r = JSON.parse(t);
2758
+ r.name && r.version && ((e, t, r) => {
2759
+ e.set(t, r);
2760
+ })(e, r.name, r.version);
2761
+ } catch (e) {}
2762
+ })(o, n);
2763
+ let i = path$2.dirname(s);
2764
+ for (;"/" !== i && "" !== i; ) t ? (t.clearFileCache(i), await t.sys.createDir(i)) : await e.createDir(i),
2765
+ i = path$2.dirname(i);
2766
+ t ? (t.clearFileCache(s), await t.sys.writeFile(s, n)) : await e.writeFile(s, n);
2767
+ })(e, t, s, n, i, r), i;
2768
+ }
2769
+ 404 === o.status && known404Urls.add(s);
2770
+ }
2771
+ } catch (e) {
2772
+ console.error(e);
2773
+ }
2774
+ }, createSystem = e => {
2775
+ var t;
2776
+ const r = null !== (t = null == e ? void 0 : e.logger) && void 0 !== t ? t : (() => {
2865
2777
  let e = IS_BROWSER_ENV, t = "info";
2866
2778
  return {
2867
2779
  enableColors: t => e = t,
@@ -2903,15 +2815,15 @@ const createSystem = e => {
2903
2815
  })(t, e)));
2904
2816
  }
2905
2817
  };
2906
- })(), 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 => {
2818
+ })(), s = new Map, n = new Set, o = e => n.add(e), i = e => n.delete(e), a = buildEvents(), l = IS_BROWSER_ENV && navigator.hardwareConcurrency || 1, c = e => {
2907
2819
  if ("/" === e || "" === e) return "/";
2908
2820
  const t = path$2.dirname(e), r = path$2.basename(e);
2909
2821
  return t.endsWith("/") ? normalizePath(`${t}${r}`) : normalizePath(`${t}/${r}`);
2910
- }, c = e => {
2911
- const t = r.get(l(e));
2822
+ }, u = e => {
2823
+ const t = s.get(c(e));
2912
2824
  return !(!t || !(t.isDirectory || t.isFile && "string" == typeof t.data));
2913
- }, u = (e, t) => {
2914
- e = l(e);
2825
+ }, d = (e, t) => {
2826
+ e = c(e);
2915
2827
  const r = {
2916
2828
  basename: path$2.basename(e),
2917
2829
  dirname: path$2.dirname(e),
@@ -2919,60 +2831,60 @@ const createSystem = e => {
2919
2831
  newDirs: [],
2920
2832
  error: null
2921
2833
  };
2922
- return d(e, t, r), r;
2923
- }, d = (e, t, s) => {
2834
+ return h(e, t, r), r;
2835
+ }, h = (e, t, r) => {
2924
2836
  const n = path$2.dirname(e);
2925
- t && t.recursive && !(e => "/" === e || windowsPathRegex.test(e))(n) && d(n, t, s);
2926
- const o = r.get(e);
2927
- o ? (o.isDirectory = !0, o.isFile = !1) : (r.set(e, {
2837
+ t && t.recursive && !(e => "/" === e || windowsPathRegex.test(e))(n) && h(n, t, r);
2838
+ const o = s.get(e);
2839
+ o ? (o.isDirectory = !0, o.isFile = !1) : (s.set(e, {
2928
2840
  basename: path$2.basename(e),
2929
2841
  dirname: n,
2930
2842
  isDirectory: !0,
2931
2843
  isFile: !1,
2932
2844
  watcherCallbacks: null,
2933
2845
  data: void 0
2934
- }), s.newDirs.push(e), v(e, new Set));
2935
- }, h = e => {
2936
- e = l(e);
2937
- const t = [], s = r.get(e);
2938
- return s && s.isDirectory && r.forEach(((r, s) => {
2846
+ }), r.newDirs.push(e), b(e, new Set));
2847
+ }, p = e => {
2848
+ e = c(e);
2849
+ const t = [], r = s.get(e);
2850
+ return r && r.isDirectory && s.forEach(((r, s) => {
2939
2851
  "/" !== s && (r.isDirectory || r.isFile && "string" == typeof r.data) && (e.endsWith("/") && `${e}${r.basename}` === s || `${e}/${r.basename}` === s) && t.push(s);
2940
2852
  })), t.sort();
2941
- }, p = e => {
2942
- e = l(e);
2943
- const t = r.get(e);
2853
+ }, f = e => {
2854
+ e = c(e);
2855
+ const t = s.get(e);
2944
2856
  if (t && t.isFile) return t.data;
2945
- }, f = e => ({
2946
- path: l(e),
2857
+ }, m = e => ({
2858
+ path: c(e),
2947
2859
  error: null
2948
- }), m = (e, t, s) => {
2949
- const n = w(e);
2950
- if (!n.error && !s.error) if (n.isFile) {
2951
- const n = path$2.dirname(t), o = u(n, {
2860
+ }), g = (e, t, r) => {
2861
+ const n = _(e);
2862
+ if (!n.error && !r.error) if (n.isFile) {
2863
+ const n = path$2.dirname(t), o = d(n, {
2952
2864
  recursive: !0
2953
- }), i = r.get(e).data, a = b(t, i);
2954
- s.newDirs.push(...o.newDirs), s.renamed.push({
2865
+ }), i = s.get(e).data, a = E(t, i);
2866
+ r.newDirs.push(...o.newDirs), r.renamed.push({
2955
2867
  oldPath: e,
2956
2868
  newPath: t,
2957
2869
  isDirectory: !1,
2958
2870
  isFile: !0
2959
- }), a.error ? s.error = a.error : s.newFiles.push(t);
2871
+ }), a.error ? r.error = a.error : r.newFiles.push(t);
2960
2872
  } else if (n.isDirectory) {
2961
- const r = h(e), n = u(t, {
2873
+ const s = p(e), n = d(t, {
2962
2874
  recursive: !0
2963
2875
  });
2964
- s.newDirs.push(...n.newDirs), s.renamed.push({
2876
+ r.newDirs.push(...n.newDirs), r.renamed.push({
2965
2877
  oldPath: e,
2966
2878
  newPath: t,
2967
2879
  isDirectory: !0,
2968
2880
  isFile: !1
2969
2881
  });
2970
- for (const n of r) {
2971
- const r = n.replace(e, t);
2972
- m(n, r, s);
2882
+ for (const n of s) {
2883
+ const s = n.replace(e, t);
2884
+ g(n, s, r);
2973
2885
  }
2974
2886
  }
2975
- }, g = (e, t = {}) => {
2887
+ }, y = (e, t = {}) => {
2976
2888
  const r = {
2977
2889
  basename: path$2.basename(e),
2978
2890
  dirname: path$2.dirname(e),
@@ -2981,23 +2893,23 @@ const createSystem = e => {
2981
2893
  removedFiles: [],
2982
2894
  error: null
2983
2895
  };
2984
- return y(e, t, r), r;
2985
- }, y = (e, t, s) => {
2986
- if (!s.error) {
2987
- e = l(e);
2988
- const n = h(e);
2896
+ return w(e, t, r), r;
2897
+ }, w = (e, t, r) => {
2898
+ if (!r.error) {
2899
+ e = c(e);
2900
+ const n = p(e);
2989
2901
  if (t && t.recursive) for (const e of n) {
2990
- const n = r.get(e);
2991
- if (n) if (n.isDirectory) y(e, t, s); else if (n.isFile) {
2992
- const t = _(e);
2993
- t.error ? s.error = t.error : s.removedFiles.push(e);
2902
+ const n = s.get(e);
2903
+ if (n) if (n.isDirectory) w(e, t, r); else if (n.isFile) {
2904
+ const t = v(e);
2905
+ t.error ? r.error = t.error : r.removedFiles.push(e);
2994
2906
  }
2995
- } else if (n.length > 0) return void (s.error = "cannot delete directory that contains files/subdirectories");
2996
- r.delete(e), v(e, new Set), s.removedDirs.push(e);
2907
+ } else if (n.length > 0) return void (r.error = "cannot delete directory that contains files/subdirectories");
2908
+ s.delete(e), b(e, new Set), r.removedDirs.push(e);
2997
2909
  }
2998
- }, w = e => {
2999
- e = l(e);
3000
- const t = r.get(e);
2910
+ }, _ = e => {
2911
+ e = c(e);
2912
+ const t = s.get(e);
3001
2913
  return t && (t.isDirectory || t.isFile && "string" == typeof t.data) ? {
3002
2914
  isDirectory: t.isDirectory,
3003
2915
  isFile: t.isFile,
@@ -3011,52 +2923,52 @@ const createSystem = e => {
3011
2923
  size: 0,
3012
2924
  error: `ENOENT: no such file or directory, statSync '${e}'`
3013
2925
  };
3014
- }, _ = e => {
3015
- e = l(e);
2926
+ }, v = e => {
2927
+ e = c(e);
3016
2928
  const t = {
3017
2929
  basename: path$2.basename(e),
3018
2930
  dirname: path$2.dirname(e),
3019
2931
  path: e,
3020
2932
  error: null
3021
- }, s = r.get(e);
3022
- if (s) {
3023
- if (s.watcherCallbacks) for (const t of s.watcherCallbacks) t(e, "fileDelete");
3024
- r.delete(e), v(e, new Set);
2933
+ }, r = s.get(e);
2934
+ if (r) {
2935
+ if (r.watcherCallbacks) for (const t of r.watcherCallbacks) t(e, "fileDelete");
2936
+ s.delete(e), b(e, new Set);
3025
2937
  }
3026
2938
  return t;
3027
- }, v = (e, t) => {
3028
- const s = l(path$2.dirname(e)), n = r.get(s);
3029
- if (n && n.isDirectory && n.watcherCallbacks) for (const t of n.watcherCallbacks) t(e, null);
3030
- t.has(s) || (t.add(s), v(s, t));
3031
2939
  }, b = (e, t) => {
3032
- const s = {
3033
- path: e = l(e),
2940
+ const r = c(path$2.dirname(e)), n = s.get(r);
2941
+ if (n && n.isDirectory && n.watcherCallbacks) for (const t of n.watcherCallbacks) t(e, null);
2942
+ t.has(r) || (t.add(r), b(r, t));
2943
+ }, E = (e, t) => {
2944
+ const r = {
2945
+ path: e = c(e),
3034
2946
  error: null
3035
- }, n = r.get(e);
2947
+ }, n = s.get(e);
3036
2948
  if (n) {
3037
2949
  const r = n.data !== t;
3038
2950
  if (n.data = t, r && n.watcherCallbacks) for (const t of n.watcherCallbacks) t(e, "fileUpdate");
3039
- } else r.set(e, {
2951
+ } else s.set(e, {
3040
2952
  basename: path$2.basename(e),
3041
2953
  dirname: path$2.dirname(e),
3042
2954
  isDirectory: !1,
3043
2955
  isFile: !0,
3044
2956
  watcherCallbacks: null,
3045
2957
  data: t
3046
- }), v(e, new Set);
3047
- return s;
3048
- }, 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();
3049
- u("/");
3050
- const D = {
2958
+ }), b(e, new Set);
2959
+ return r;
2960
+ }, T = "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, D = Promise.resolve();
2961
+ d("/");
2962
+ const S = {
3051
2963
  name: "in-memory",
3052
- version: "2.17.4",
3053
- events: i,
3054
- access: async e => c(e),
3055
- accessSync: c,
3056
- addDestory: n,
3057
- copyFile: async (e, t) => (b(t, p(e)), !0),
3058
- createDir: async (e, t) => u(e, t),
3059
- createDirSync: u,
2964
+ version: "2.22.2",
2965
+ events: a,
2966
+ access: async e => u(e),
2967
+ accessSync: u,
2968
+ addDestory: o,
2969
+ copyFile: async (e, t) => (E(t, f(e)), !0),
2970
+ createDir: async (e, t) => d(e, t),
2971
+ createDirSync: d,
3060
2972
  homeDir: () => os__namespace.homedir(),
3061
2973
  isTTY: () => {
3062
2974
  var e;
@@ -3065,19 +2977,19 @@ const createSystem = e => {
3065
2977
  getEnvironmentVar: e => null == process__namespace ? void 0 : process__namespace.env[e],
3066
2978
  destroy: async () => {
3067
2979
  const e = [];
3068
- s.forEach((r => {
2980
+ n.forEach((t => {
3069
2981
  try {
3070
- const t = r();
3071
- t && t.then && e.push(t);
2982
+ const r = t();
2983
+ r && r.then && e.push(r);
3072
2984
  } catch (e) {
3073
- t.error(`rindo sys destroy: ${e}`);
2985
+ r.error(`rindo sys destroy: ${e}`);
3074
2986
  }
3075
- })), await Promise.all(e), s.clear();
2987
+ })), await Promise.all(e), n.clear();
3076
2988
  },
3077
2989
  encodeToBase64: e => btoa(unescape(encodeURIComponent(e))),
3078
- exit: async e => t.warn(`exit ${e}`),
2990
+ exit: async e => r.warn(`exit ${e}`),
3079
2991
  getCurrentDirectory: () => "/",
3080
- getCompilerExecutingPath: () => IS_WEB_WORKER_ENV ? location.href : D.getRemoteModuleUrl({
2992
+ getCompilerExecutingPath: () => IS_WEB_WORKER_ENV ? location.href : S.getRemoteModuleUrl({
3081
2993
  moduleId: "@rindo/core",
3082
2994
  path: "compiler/rindo.min.js"
3083
2995
  }),
@@ -3086,18 +2998,18 @@ const createSystem = e => {
3086
2998
  const t = `${e.moduleId}${e.version ? "@" + e.version : ""}/${e.path}`;
3087
2999
  return new URL(t, "https://cdn.jsdelivr.net/npm/").href;
3088
3000
  },
3089
- hardwareConcurrency: a,
3001
+ hardwareConcurrency: l,
3090
3002
  isSymbolicLink: async e => !1,
3091
- nextTick: e => T.then(e),
3092
- normalizePath: l,
3003
+ nextTick: e => D.then(e),
3004
+ normalizePath: c,
3093
3005
  platformPath: pathBrowserify,
3094
- readDir: async e => h(e),
3095
- readDirSync: h,
3096
- readFile: async e => p(e),
3097
- readFileSync: p,
3098
- realpath: async e => f(e),
3099
- realpathSync: f,
3100
- removeDestory: o,
3006
+ readDir: async e => p(e),
3007
+ readDirSync: p,
3008
+ readFile: async e => f(e),
3009
+ readFileSync: f,
3010
+ realpath: async e => m(e),
3011
+ realpathSync: m,
3012
+ removeDestory: i,
3101
3013
  rename: async (e, t) => {
3102
3014
  const r = {
3103
3015
  oldPath: e = normalizePath(e),
@@ -3110,39 +3022,39 @@ const createSystem = e => {
3110
3022
  isFile: !1,
3111
3023
  isDirectory: !1,
3112
3024
  error: null
3113
- }, s = w(e);
3025
+ }, s = _(e);
3114
3026
  if (s.error) r.error = `${e} does not exist`; else if (s.isFile ? r.isFile = !0 : s.isDirectory && (r.isDirectory = !0),
3115
- m(e, t, r), !r.error) if (r.isDirectory) {
3116
- const t = g(e, {
3027
+ g(e, t, r), !r.error) if (r.isDirectory) {
3028
+ const t = y(e, {
3117
3029
  recursive: !0
3118
3030
  });
3119
3031
  t.error ? r.error = t.error : (r.oldDirs.push(...t.removedDirs), r.oldFiles.push(...t.removedFiles));
3120
3032
  } else if (r.isFile) {
3121
- const t = _(e);
3033
+ const t = v(e);
3122
3034
  t.error ? r.error = t.error : r.oldFiles.push(e);
3123
3035
  }
3124
3036
  return r;
3125
3037
  },
3126
- fetch: E,
3127
- resolvePath: e => l(e),
3128
- removeDir: async (e, t = {}) => g(e, t),
3129
- removeDirSync: g,
3130
- stat: async e => w(e),
3131
- statSync: w,
3038
+ fetch: T,
3039
+ resolvePath: e => c(e),
3040
+ removeDir: async (e, t = {}) => y(e, t),
3041
+ removeDirSync: y,
3042
+ stat: async e => _(e),
3043
+ statSync: _,
3132
3044
  tmpDirSync: () => "/.tmp",
3133
- removeFile: async e => _(e),
3134
- removeFileSync: _,
3045
+ removeFile: async e => v(e),
3046
+ removeFileSync: v,
3135
3047
  watchDirectory: (e, t) => {
3136
- e = l(e);
3137
- const s = r.get(e), i = () => {
3138
- const s = r.get(e);
3139
- if (s && s.watcherCallbacks) {
3140
- const e = s.watcherCallbacks.indexOf(t);
3141
- e > -1 && s.watcherCallbacks.splice(e, 1);
3048
+ e = c(e);
3049
+ const r = s.get(e), n = () => {
3050
+ const r = s.get(e);
3051
+ if (r && r.watcherCallbacks) {
3052
+ const e = r.watcherCallbacks.indexOf(t);
3053
+ e > -1 && r.watcherCallbacks.splice(e, 1);
3142
3054
  }
3143
3055
  };
3144
- return n(i), s ? (s.isDirectory = !0, s.isFile = !1, s.watcherCallbacks = s.watcherCallbacks || [],
3145
- s.watcherCallbacks.push(t)) : r.set(e, {
3056
+ return o(n), r ? (r.isDirectory = !0, r.isFile = !1, r.watcherCallbacks = r.watcherCallbacks || [],
3057
+ r.watcherCallbacks.push(t)) : s.set(e, {
3146
3058
  basename: path$2.basename(e),
3147
3059
  dirname: path$2.dirname(e),
3148
3060
  isDirectory: !0,
@@ -3151,21 +3063,21 @@ const createSystem = e => {
3151
3063
  data: void 0
3152
3064
  }), {
3153
3065
  close() {
3154
- o(i), i();
3066
+ i(n), n();
3155
3067
  }
3156
3068
  };
3157
3069
  },
3158
3070
  watchFile: (e, t) => {
3159
- e = l(e);
3160
- const s = r.get(e), i = () => {
3161
- const s = r.get(e);
3162
- if (s && s.watcherCallbacks) {
3163
- const e = s.watcherCallbacks.indexOf(t);
3164
- e > -1 && s.watcherCallbacks.splice(e, 1);
3071
+ e = c(e);
3072
+ const r = s.get(e), n = () => {
3073
+ const r = s.get(e);
3074
+ if (r && r.watcherCallbacks) {
3075
+ const e = r.watcherCallbacks.indexOf(t);
3076
+ e > -1 && r.watcherCallbacks.splice(e, 1);
3165
3077
  }
3166
3078
  };
3167
- return n(i), s ? (s.isDirectory = !1, s.isFile = !0, s.watcherCallbacks = s.watcherCallbacks || [],
3168
- s.watcherCallbacks.push(t)) : r.set(e, {
3079
+ return o(n), r ? (r.isDirectory = !1, r.isFile = !0, r.watcherCallbacks = r.watcherCallbacks || [],
3080
+ r.watcherCallbacks.push(t)) : s.set(e, {
3169
3081
  basename: path$2.basename(e),
3170
3082
  dirname: path$2.dirname(e),
3171
3083
  isDirectory: !1,
@@ -3174,13 +3086,13 @@ const createSystem = e => {
3174
3086
  data: void 0
3175
3087
  }), {
3176
3088
  close() {
3177
- o(i), i();
3089
+ i(n), n();
3178
3090
  }
3179
3091
  };
3180
3092
  },
3181
3093
  watchTimeout: 32,
3182
- writeFile: async (e, t) => b(e, t),
3183
- writeFileSync: b,
3094
+ writeFile: async (e, t) => E(e, t),
3095
+ writeFileSync: E,
3184
3096
  generateContentHash: async (e, t) => {
3185
3097
  const r = await crypto.subtle.digest("SHA-256", (new TextEncoder).encode(e));
3186
3098
  let s = Array.from(new Uint8Array(r)).map((e => e.toString(16).padStart(2, "0"))).join("");
@@ -3251,7 +3163,7 @@ const createSystem = e => {
3251
3163
  },
3252
3164
  maxWorkers: u
3253
3165
  };
3254
- })(D, e) : null,
3166
+ })(S, e) : null,
3255
3167
  details: {
3256
3168
  cpuModel: "",
3257
3169
  freemem: () => 0,
@@ -3259,13 +3171,13 @@ const createSystem = e => {
3259
3171
  release: "",
3260
3172
  totalmem: 0
3261
3173
  },
3262
- copy: async (e, r) => (t.info("todo, copy task", e.length, r), {
3174
+ copy: async (e, t) => (r.info("todo, copy task", e.length, t), {
3263
3175
  diagnostics: [],
3264
3176
  dirPaths: [],
3265
3177
  filePaths: []
3266
3178
  })
3267
3179
  };
3268
- return D.resolveModuleId = e => ((e, t, r) => {
3180
+ return S.resolveModuleId = e => ((e, t, r) => {
3269
3181
  const s = ((e, t, r) => ({
3270
3182
  async isFile(s, n) {
3271
3183
  const o = normalizeFsPath(s);
@@ -3317,7 +3229,7 @@ const createSystem = e => {
3317
3229
  }
3318
3230
  }));
3319
3231
  }));
3320
- })(D, 0, e), D;
3232
+ })(S, 0, e), S;
3321
3233
  }, createTestingSystem = () => {
3322
3234
  let e = 0, t = 0;
3323
3235
  const r = createSystem();
@@ -3357,78 +3269,6 @@ const createSystem = e => {
3357
3269
  return r;
3358
3270
  };
3359
3271
 
3360
- class TestingLogger {
3361
- constructor() {
3362
- this.isEnabled = !1;
3363
- }
3364
- setLevel(e) {}
3365
- getLevel() {
3366
- return "info";
3367
- }
3368
- enableColors(e) {}
3369
- emoji(e) {
3370
- return "";
3371
- }
3372
- info(...e) {
3373
- this.isEnabled && console.log(...e);
3374
- }
3375
- warn(...e) {
3376
- this.isEnabled && console.warn(...e);
3377
- }
3378
- error(...e) {
3379
- this.isEnabled && console.error(...e);
3380
- }
3381
- debug(...e) {
3382
- this.isEnabled && console.log(...e);
3383
- }
3384
- color(e, t) {}
3385
- red(e) {
3386
- return e;
3387
- }
3388
- green(e) {
3389
- return e;
3390
- }
3391
- yellow(e) {
3392
- return e;
3393
- }
3394
- blue(e) {
3395
- return e;
3396
- }
3397
- magenta(e) {
3398
- return e;
3399
- }
3400
- cyan(e) {
3401
- return e;
3402
- }
3403
- gray(e) {
3404
- return e;
3405
- }
3406
- bold(e) {
3407
- return e;
3408
- }
3409
- dim(e) {
3410
- return e;
3411
- }
3412
- bgRed(e) {
3413
- return e;
3414
- }
3415
- createTimeSpan(e, t = !1) {
3416
- return {
3417
- duration: () => 0,
3418
- finish: () => 0
3419
- };
3420
- }
3421
- printDiagnostics(e) {}
3422
- }
3423
-
3424
- const createConfigFlags = (e = {}) => ({
3425
- task: null,
3426
- args: [],
3427
- knownArgs: [],
3428
- unknownArgs: [],
3429
- ...e
3430
- });
3431
-
3432
3272
  class EventSpy {
3433
3273
  constructor(e) {
3434
3274
  this.eventName = e, this.events = [], this.cursor = 0, this.queuedHandler = [];
@@ -3467,13 +3307,13 @@ class EventSpy {
3467
3307
  }
3468
3308
 
3469
3309
  class E2EElement extends index_cjs.MockHTMLElement {
3310
+ _queueAction(e) {
3311
+ this._queuedActions.push(e);
3312
+ }
3470
3313
  constructor(e, t) {
3471
3314
  super(null, null), this._page = e, this._elmHandle = t, this._queuedActions = [],
3472
3315
  e._e2eElements.push(this);
3473
3316
  }
3474
- _queueAction(e) {
3475
- this._queuedActions.push(e);
3476
- }
3477
3317
  find(e) {
3478
3318
  return find(this._page, this._elmHandle, e);
3479
3319
  }
@@ -3751,7 +3591,7 @@ class E2EElement extends index_cjs.MockHTMLElement {
3751
3591
  }
3752
3592
  }
3753
3593
 
3754
- const env = process.env;
3594
+ const env = process.env, isOutputTargetDistLazy = e => e.type === DIST_LAZY, isOutputTargetWww = e => e.type === WWW, DIST_LAZY = "dist-lazy", WWW = "www";
3755
3595
 
3756
3596
  exports.MockHeaders = MockHeaders, exports.MockRequest = MockRequest, exports.MockResponse = MockResponse,
3757
3597
  exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment() {
@@ -4002,6 +3842,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4002
3842
  flags: createConfigFlags(),
4003
3843
  logger: mockLogger(),
4004
3844
  outputTargets: null !== (t = r.outputTargets) && void 0 !== t ? t : [],
3845
+ rootDir: path__default.default.resolve("/"),
4005
3846
  sys: createTestingSystem(),
4006
3847
  testing: {},
4007
3848
  ...e
@@ -4141,41 +3982,43 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4141
3982
  }
4142
3983
  return t;
4143
3984
  }, exports.newSpecPage = async function newSpecPage(e) {
3985
+ var t;
4144
3986
  if (null == e) throw new Error("NewSpecPageOptions required");
4145
- testing.resetPlatform(), resetBuildConditionals(appData.BUILD), Array.isArray(e.components) && testing.registerComponents(e.components),
4146
- e.hydrateClientSide && (e.includeAnnotations = !0), e.hydrateServerSide ? (e.includeAnnotations = !0,
4147
- testing.setSupportsShadowDom(!1)) : (e.includeAnnotations = !!e.includeAnnotations,
3987
+ testing.resetPlatform(null !== (t = e.platform) && void 0 !== t ? t : {}), resetBuildConditionals(appData.BUILD),
3988
+ Array.isArray(e.components) && testing.registerComponents(e.components), e.hydrateClientSide && (e.includeAnnotations = !0),
3989
+ e.hydrateServerSide ? (e.includeAnnotations = !0, testing.setSupportsShadowDom(!1)) : (e.includeAnnotations = !!e.includeAnnotations,
4148
3990
  !1 === e.supportsShadowDom ? testing.setSupportsShadowDom(!1) : testing.setSupportsShadowDom(!0)),
4149
3991
  appData.BUILD.cssAnnotations = e.includeAnnotations;
4150
- const t = new Set;
3992
+ const r = new Set;
4151
3993
  testing.win.__rindo_spec_options = e;
4152
- const r = testing.win.document, s = {
3994
+ const s = testing.win.document, n = {
4153
3995
  win: testing.win,
4154
- doc: r,
4155
- body: r.body,
3996
+ doc: s,
3997
+ body: s.body,
4156
3998
  build: appData.BUILD,
4157
3999
  styles: testing.styles,
4158
- setContent: e => (r.body.innerHTML = e, testing.flushAll()),
4000
+ setContent: e => (s.body.innerHTML = e, testing.flushAll()),
4159
4001
  waitForChanges: testing.flushAll,
4160
4002
  flushLoadModule: testing.flushLoadModule,
4161
4003
  flushQueue: testing.flushQueue
4162
- }, n = e.components.map((e => {
4004
+ }, o = e.components.map((e => {
4163
4005
  if (null == e.COMPILER_META) throw new Error('Invalid component class: Missing static "COMPILER_META" property.');
4164
- t.add(e.COMPILER_META.tagName), e.isProxied = !1, function r(e) {
4165
- "function" == typeof e.prototype.__componentWillLoad && (e.prototype.componentWillLoad = e.prototype.__componentWillLoad,
4166
- e.prototype.__componentWillLoad = null), "function" == typeof e.prototype.__componentWillUpdate && (e.prototype.componentWillUpdate = e.prototype.__componentWillUpdate,
4167
- e.prototype.__componentWillUpdate = null), "function" == typeof e.prototype.__componentWillRender && (e.prototype.componentWillRender = e.prototype.__componentWillRender,
4168
- e.prototype.__componentWillRender = null), "function" == typeof e.prototype.componentWillLoad && (e.prototype.__componentWillLoad = e.prototype.componentWillLoad,
4006
+ r.add(e.COMPILER_META.tagName), e.isProxied = !1, function t(e) {
4007
+ var t, r, s, n, o, i;
4008
+ "function" == typeof (null === (t = e.prototype) || void 0 === t ? void 0 : t.__componentWillLoad) && (e.prototype.componentWillLoad = e.prototype.__componentWillLoad,
4009
+ e.prototype.__componentWillLoad = null), "function" == typeof (null === (r = e.prototype) || void 0 === r ? void 0 : r.__componentWillUpdate) && (e.prototype.componentWillUpdate = e.prototype.__componentWillUpdate,
4010
+ e.prototype.__componentWillUpdate = null), "function" == typeof (null === (s = e.prototype) || void 0 === s ? void 0 : s.__componentWillRender) && (e.prototype.componentWillRender = e.prototype.__componentWillRender,
4011
+ e.prototype.__componentWillRender = null), "function" == typeof (null === (n = e.prototype) || void 0 === n ? void 0 : n.componentWillLoad) && (e.prototype.__componentWillLoad = e.prototype.componentWillLoad,
4169
4012
  e.prototype.componentWillLoad = function() {
4170
4013
  const e = this.__componentWillLoad();
4171
4014
  return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
4172
4015
  e;
4173
- }), "function" == typeof e.prototype.componentWillUpdate && (e.prototype.__componentWillUpdate = e.prototype.componentWillUpdate,
4016
+ }), "function" == typeof (null === (o = e.prototype) || void 0 === o ? void 0 : o.componentWillUpdate) && (e.prototype.__componentWillUpdate = e.prototype.componentWillUpdate,
4174
4017
  e.prototype.componentWillUpdate = function() {
4175
4018
  const e = this.__componentWillUpdate();
4176
4019
  return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
4177
4020
  e;
4178
- }), "function" == typeof e.prototype.componentWillRender && (e.prototype.__componentWillRender = e.prototype.componentWillRender,
4021
+ }), "function" == typeof (null === (i = e.prototype) || void 0 === i ? void 0 : i.componentWillRender) && (e.prototype.__componentWillRender = e.prototype.componentWillRender,
4179
4022
  e.prototype.componentWillRender = function() {
4180
4023
  const e = this.__componentWillRender();
4181
4024
  return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
@@ -4189,14 +4032,16 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4189
4032
  t[e.modeName] = e.styleStr;
4190
4033
  })), e.style = t;
4191
4034
  } else 1 === n.length && (e.style = n[0].styleStr);
4192
- return testing.registerModule(s, e), ((e, t) => [ e, t.map((e => ((e, t) => {
4035
+ testing.registerModule(s, e);
4036
+ const o = ((e, t) => [ e, t.map((e => ((e, t) => {
4193
4037
  let r = 0;
4194
4038
  "shadow" === e.encapsulation ? (r |= 1, e.shadowDelegatesFocus && (r |= 16)) : "scoped" === e.encapsulation && (r |= 2),
4195
4039
  "shadow" !== e.encapsulation && e.htmlTagNames.includes("slot") && (r |= 4), e.hasMode && (r |= 32);
4196
4040
  const s = formatComponentRuntimeMembers(e, t), n = formatHostListeners(e);
4197
4041
  return trimFalsy([ r, e.tagName, Object.keys(s).length > 0 ? s : void 0, n.length > 0 ? n : void 0 ]);
4198
4042
  })(e, !0))) ])(s, [ e.COMPILER_META ]);
4199
- })), o = (e => {
4043
+ return o;
4044
+ })), i = (e => {
4200
4045
  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 = {
4201
4046
  allRenderFn: e.every((e => e.hasRenderFn)),
4202
4047
  cmpDidLoad: e.some((e => e.hasComponentDidLoadFn)),
@@ -4256,24 +4101,24 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4256
4101
  return n.asyncLoading = n.cmpWillUpdate || n.cmpWillLoad || n.cmpWillRender, n.vdomAttribute = n.vdomAttribute || n.reflect,
4257
4102
  n.vdomPropOrAttr = n.vdomPropOrAttr || n.reflect, n;
4258
4103
  })(e.components.map((e => e.COMPILER_META)));
4259
- if (e.strictBuild ? Object.assign(appData.BUILD, o) : Object.keys(o).forEach((e => {
4260
- !0 === o[e] && (appData.BUILD[e] = !0);
4104
+ if (e.strictBuild ? Object.assign(appData.BUILD, i) : Object.keys(i).forEach((e => {
4105
+ !0 === i[e] && (appData.BUILD[e] = !0);
4261
4106
  })), appData.BUILD.asyncLoading = !0, e.hydrateClientSide ? (appData.BUILD.hydrateClientSide = !0,
4262
4107
  appData.BUILD.hydrateServerSide = !1) : e.hydrateServerSide && (appData.BUILD.hydrateServerSide = !0,
4263
4108
  appData.BUILD.hydrateClientSide = !1), appData.BUILD.cloneNodeFix = !1, appData.BUILD.shadowDomShim = !1,
4264
- appData.BUILD.safari10 = !1, appData.BUILD.attachStyles = !!e.attachStyles, "string" == typeof e.url && (s.win.location.href = e.url),
4265
- "string" == typeof e.direction && s.doc.documentElement.setAttribute("dir", e.direction),
4266
- "string" == typeof e.language && s.doc.documentElement.setAttribute("lang", e.language),
4109
+ appData.BUILD.safari10 = !1, appData.BUILD.attachStyles = !!e.attachStyles, "string" == typeof e.url && (n.win.location.href = e.url),
4110
+ "string" == typeof e.direction && n.doc.documentElement.setAttribute("dir", e.direction),
4111
+ "string" == typeof e.language && n.doc.documentElement.setAttribute("lang", e.language),
4267
4112
  "string" == typeof e.cookie) try {
4268
- s.doc.cookie = e.cookie;
4113
+ n.doc.cookie = e.cookie;
4269
4114
  } catch (e) {}
4270
4115
  if ("string" == typeof e.referrer) try {
4271
- s.doc.referrer = e.referrer;
4116
+ n.doc.referrer = e.referrer;
4272
4117
  } catch (e) {}
4273
4118
  if ("string" == typeof e.userAgent) try {
4274
- s.win.navigator.userAgent = e.userAgent;
4119
+ n.win.navigator.userAgent = e.userAgent;
4275
4120
  } catch (e) {}
4276
- if (testing.bootstrapLazy(n), "function" == typeof e.template) {
4121
+ if (testing.bootstrapLazy(o), "function" == typeof e.template) {
4277
4122
  const t = {
4278
4123
  $ancestorComponent$: void 0,
4279
4124
  $flags$: 0,
@@ -4282,26 +4127,26 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4282
4127
  $flags$: 0,
4283
4128
  $tagName$: "body"
4284
4129
  },
4285
- $hostElement$: s.body
4130
+ $hostElement$: n.body
4286
4131
  };
4287
4132
  testing.renderVdom(t, e.template());
4288
- } else "string" == typeof e.html && (s.body.innerHTML = e.html);
4289
- !1 !== e.flushQueue && await s.waitForChanges();
4290
- let i = null;
4291
- return Object.defineProperty(s, "root", {
4133
+ } else "string" == typeof e.html && (n.body.innerHTML = e.html);
4134
+ !1 !== e.flushQueue && await n.waitForChanges();
4135
+ let a = null;
4136
+ return Object.defineProperty(n, "root", {
4292
4137
  get() {
4293
- if (null == i && (i = findRootComponent(t, s.body)), null != i) return i;
4294
- const e = s.body.firstElementChild;
4138
+ if (null == a && (a = findRootComponent(r, n.body)), null != a) return a;
4139
+ const e = n.body.firstElementChild;
4295
4140
  return null != e ? e : null;
4296
4141
  }
4297
- }), Object.defineProperty(s, "rootInstance", {
4142
+ }), Object.defineProperty(n, "rootInstance", {
4298
4143
  get() {
4299
- const e = testing.getHostRef(s.root);
4144
+ const e = testing.getHostRef(n.root);
4300
4145
  return null != e ? e.$lazyInstance$ : null;
4301
4146
  }
4302
- }), e.hydrateServerSide && testing.insertVdomAnnotations(r, []), e.autoApplyChanges && (testing.startAutoApplyChanges(),
4303
- s.waitForChanges = () => (console.error('waitForChanges() cannot be used manually if the "startAutoApplyChanges" option is enabled'),
4304
- Promise.resolve())), s;
4147
+ }), e.hydrateServerSide && testing.insertVdomAnnotations(s, []), e.autoApplyChanges && (testing.startAutoApplyChanges(),
4148
+ n.waitForChanges = () => (console.error('waitForChanges() cannot be used manually if the "startAutoApplyChanges" option is enabled'),
4149
+ Promise.resolve())), n;
4305
4150
  }, exports.shuffleArray = function shuffleArray(e) {
4306
4151
  let t, r, s = e.length;
4307
4152
  for (;0 !== s; ) r = Math.floor(Math.random() * s), s -= 1, t = e[s], e[s] = e[r],