@modern-js/ssg-generator 3.1.16 → 3.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +319 -491
- package/package.json +10 -11
package/dist/index.js
CHANGED
@@ -84341,6 +84341,79 @@ var require_inquirer2 = __commonJS({
|
|
84341
84341
|
}
|
84342
84342
|
});
|
84343
84343
|
|
84344
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs
|
84345
|
+
var require_export_star = __commonJS({
|
84346
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs"(exports) {
|
84347
|
+
"use strict";
|
84348
|
+
exports._ = exports._export_star = _export_star;
|
84349
|
+
function _export_star(from, to) {
|
84350
|
+
Object.keys(from).forEach(function(k) {
|
84351
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
84352
|
+
Object.defineProperty(to, k, {
|
84353
|
+
enumerable: true,
|
84354
|
+
get: function() {
|
84355
|
+
return from[k];
|
84356
|
+
}
|
84357
|
+
});
|
84358
|
+
}
|
84359
|
+
});
|
84360
|
+
return from;
|
84361
|
+
}
|
84362
|
+
}
|
84363
|
+
});
|
84364
|
+
|
84365
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_default.cjs
|
84366
|
+
var require_interop_require_default = __commonJS({
|
84367
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports) {
|
84368
|
+
"use strict";
|
84369
|
+
exports._ = exports._interop_require_default = _interop_require_default;
|
84370
|
+
function _interop_require_default(obj) {
|
84371
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
84372
|
+
}
|
84373
|
+
}
|
84374
|
+
});
|
84375
|
+
|
84376
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
|
84377
|
+
var require_interop_require_wildcard = __commonJS({
|
84378
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports) {
|
84379
|
+
"use strict";
|
84380
|
+
function _getRequireWildcardCache(nodeInterop) {
|
84381
|
+
if (typeof WeakMap !== "function")
|
84382
|
+
return null;
|
84383
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
84384
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
84385
|
+
return (_getRequireWildcardCache = function(nodeInterop2) {
|
84386
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
84387
|
+
})(nodeInterop);
|
84388
|
+
}
|
84389
|
+
exports._ = exports._interop_require_wildcard = _interop_require_wildcard;
|
84390
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
84391
|
+
if (!nodeInterop && obj && obj.__esModule)
|
84392
|
+
return obj;
|
84393
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function")
|
84394
|
+
return { default: obj };
|
84395
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
84396
|
+
if (cache && cache.has(obj))
|
84397
|
+
return cache.get(obj);
|
84398
|
+
var newObj = {};
|
84399
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
84400
|
+
for (var key in obj) {
|
84401
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
84402
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
84403
|
+
if (desc && (desc.get || desc.set))
|
84404
|
+
Object.defineProperty(newObj, key, desc);
|
84405
|
+
else
|
84406
|
+
newObj[key] = obj[key];
|
84407
|
+
}
|
84408
|
+
}
|
84409
|
+
newObj.default = obj;
|
84410
|
+
if (cache)
|
84411
|
+
cache.set(obj, newObj);
|
84412
|
+
return newObj;
|
84413
|
+
}
|
84414
|
+
}
|
84415
|
+
});
|
84416
|
+
|
84344
84417
|
// ../../../toolkit/utils/dist/compiled/import-lazy/index.js
|
84345
84418
|
var require_import_lazy2 = __commonJS({
|
84346
84419
|
"../../../toolkit/utils/dist/compiled/import-lazy/index.js"(exports, module2) {
|
@@ -113492,80 +113565,37 @@ var require_compiled = __commonJS({
|
|
113492
113565
|
chokidar: () => chokidar2,
|
113493
113566
|
inquirer: () => inquirer4
|
113494
113567
|
});
|
113568
|
+
var _interop_require_default = require_interop_require_default();
|
113569
|
+
var _interop_require_wildcard = require_interop_require_wildcard();
|
113495
113570
|
var _import = require_import();
|
113496
|
-
var _fsextra = /* @__PURE__ */ _interop_require_default(require_fs_extra2());
|
113497
|
-
var _ora = /* @__PURE__ */ _interop_require_default(require_ora3());
|
113498
|
-
var _glob = /* @__PURE__ */ _interop_require_default(require_glob2());
|
113499
|
-
var _jsyaml = /* @__PURE__ */ _interop_require_default(require_js_yaml2());
|
113500
|
-
var _chalk = /* @__PURE__ */ _interop_require_default(require_chalk2());
|
113501
|
-
var _debug = /* @__PURE__ */ _interop_require_default(require_debug2());
|
113502
|
-
var _slash = /* @__PURE__ */ _interop_require_default(require_slash2());
|
113503
|
-
var _execa = /* @__PURE__ */ _interop_require_default(require_execa2());
|
113504
|
-
var _json5 = /* @__PURE__ */ _interop_require_default(require_json52());
|
113505
|
-
var _upath = /* @__PURE__ */ _interop_require_default(require_upath2());
|
113506
|
-
var _pkgup = /* @__PURE__ */ _interop_require_default(require_pkg_up2());
|
113571
|
+
var _fsextra = /* @__PURE__ */ _interop_require_default._(require_fs_extra2());
|
113572
|
+
var _ora = /* @__PURE__ */ _interop_require_default._(require_ora3());
|
113573
|
+
var _glob = /* @__PURE__ */ _interop_require_default._(require_glob2());
|
113574
|
+
var _jsyaml = /* @__PURE__ */ _interop_require_default._(require_js_yaml2());
|
113575
|
+
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk2());
|
113576
|
+
var _debug = /* @__PURE__ */ _interop_require_default._(require_debug2());
|
113577
|
+
var _slash = /* @__PURE__ */ _interop_require_default._(require_slash2());
|
113578
|
+
var _execa = /* @__PURE__ */ _interop_require_default._(require_execa2());
|
113579
|
+
var _json5 = /* @__PURE__ */ _interop_require_default._(require_json52());
|
113580
|
+
var _upath = /* @__PURE__ */ _interop_require_default._(require_upath2());
|
113581
|
+
var _pkgup = /* @__PURE__ */ _interop_require_default._(require_pkg_up2());
|
113507
113582
|
var _nanoid = require_nanoid2();
|
113508
|
-
var _semver = /* @__PURE__ */ _interop_require_default(require_semver2());
|
113509
|
-
var _dotenv = /* @__PURE__ */ _interop_require_default(require_dotenv2());
|
113510
|
-
var _lodash = /* @__PURE__ */ _interop_require_default(require_lodash3());
|
113511
|
-
var _globby = /* @__PURE__ */ _interop_require_default(require_globby2());
|
113512
|
-
var _address = /* @__PURE__ */ _interop_require_default(require_address2());
|
113513
|
-
var _signale = /* @__PURE__ */ _interop_require_wildcard(require_signale2());
|
113514
|
-
var _urljoin = /* @__PURE__ */ _interop_require_default(require_url_join2());
|
113515
|
-
var _minimist = /* @__PURE__ */ _interop_require_default(require_minimist2());
|
113516
|
-
var _fastglob = /* @__PURE__ */ _interop_require_default(require_fast_glob2());
|
113517
|
-
var _filesize = /* @__PURE__ */ _interop_require_default(require_filesize2());
|
113518
|
-
var _gzipsize = /* @__PURE__ */ _interop_require_default(require_gzip_size2());
|
113519
|
-
var _stripansi = /* @__PURE__ */ _interop_require_default(require_strip_ansi3());
|
113520
|
-
var _dotenvexpand = /* @__PURE__ */ _interop_require_default(require_dotenv_expand2());
|
113521
|
-
var _browserslist = /* @__PURE__ */ _interop_require_default(require_browserslist2());
|
113522
|
-
var _recursivereaddir = /* @__PURE__ */ _interop_require_default(require_recursive_readdir2());
|
113583
|
+
var _semver = /* @__PURE__ */ _interop_require_default._(require_semver2());
|
113584
|
+
var _dotenv = /* @__PURE__ */ _interop_require_default._(require_dotenv2());
|
113585
|
+
var _lodash = /* @__PURE__ */ _interop_require_default._(require_lodash3());
|
113586
|
+
var _globby = /* @__PURE__ */ _interop_require_default._(require_globby2());
|
113587
|
+
var _address = /* @__PURE__ */ _interop_require_default._(require_address2());
|
113588
|
+
var _signale = /* @__PURE__ */ _interop_require_wildcard._(require_signale2());
|
113589
|
+
var _urljoin = /* @__PURE__ */ _interop_require_default._(require_url_join2());
|
113590
|
+
var _minimist = /* @__PURE__ */ _interop_require_default._(require_minimist2());
|
113591
|
+
var _fastglob = /* @__PURE__ */ _interop_require_default._(require_fast_glob2());
|
113592
|
+
var _filesize = /* @__PURE__ */ _interop_require_default._(require_filesize2());
|
113593
|
+
var _gzipsize = /* @__PURE__ */ _interop_require_default._(require_gzip_size2());
|
113594
|
+
var _stripansi = /* @__PURE__ */ _interop_require_default._(require_strip_ansi3());
|
113595
|
+
var _dotenvexpand = /* @__PURE__ */ _interop_require_default._(require_dotenv_expand2());
|
113596
|
+
var _browserslist = /* @__PURE__ */ _interop_require_default._(require_browserslist2());
|
113597
|
+
var _recursivereaddir = /* @__PURE__ */ _interop_require_default._(require_recursive_readdir2());
|
113523
113598
|
var _commander = require_commander2();
|
113524
|
-
function _interop_require_default(obj) {
|
113525
|
-
return obj && obj.__esModule ? obj : {
|
113526
|
-
default: obj
|
113527
|
-
};
|
113528
|
-
}
|
113529
|
-
function _getRequireWildcardCache(nodeInterop) {
|
113530
|
-
if (typeof WeakMap !== "function")
|
113531
|
-
return null;
|
113532
|
-
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
113533
|
-
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
113534
|
-
return (_getRequireWildcardCache = function(nodeInterop2) {
|
113535
|
-
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
113536
|
-
})(nodeInterop);
|
113537
|
-
}
|
113538
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
113539
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
113540
|
-
return obj;
|
113541
|
-
}
|
113542
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
113543
|
-
return {
|
113544
|
-
default: obj
|
113545
|
-
};
|
113546
|
-
}
|
113547
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
113548
|
-
if (cache && cache.has(obj)) {
|
113549
|
-
return cache.get(obj);
|
113550
|
-
}
|
113551
|
-
var newObj = {};
|
113552
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
113553
|
-
for (var key in obj) {
|
113554
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
113555
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
113556
|
-
if (desc && (desc.get || desc.set)) {
|
113557
|
-
Object.defineProperty(newObj, key, desc);
|
113558
|
-
} else {
|
113559
|
-
newObj[key] = obj[key];
|
113560
|
-
}
|
113561
|
-
}
|
113562
|
-
}
|
113563
|
-
newObj.default = obj;
|
113564
|
-
if (cache) {
|
113565
|
-
cache.set(obj, newObj);
|
113566
|
-
}
|
113567
|
-
return newObj;
|
113568
|
-
}
|
113569
113599
|
var mime2 = _import.Import.lazy("../compiled/mime-types", require);
|
113570
113600
|
var chokidar2 = _import.Import.lazy("../compiled/chokidar", require);
|
113571
113601
|
var inquirer4 = _import.Import.lazy("../compiled/inquirer", require);
|
@@ -113715,6 +113745,8 @@ var require_chainId = __commonJS({
|
|
113715
113745
|
BOTTOM_TEMPLATE: "bottom-template",
|
113716
113746
|
/** HtmlCrossOriginPlugin */
|
113717
113747
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
113748
|
+
/** HtmlNoncePlugin */
|
113749
|
+
HTML_NONCE: "html-nonce",
|
113718
113750
|
/** MiniCssExtractPlugin */
|
113719
113751
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
113720
113752
|
/** ReactFastRefreshPlugin */
|
@@ -113803,20 +113835,8 @@ var require_constants = __commonJS({
|
|
113803
113835
|
PLUGIN_SCHEMAS: () => PLUGIN_SCHEMAS,
|
113804
113836
|
DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS: () => DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS
|
113805
113837
|
});
|
113806
|
-
_export_star(
|
113807
|
-
|
113808
|
-
Object.keys(from).forEach(function(k) {
|
113809
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
113810
|
-
Object.defineProperty(to, k, {
|
113811
|
-
enumerable: true,
|
113812
|
-
get: function() {
|
113813
|
-
return from[k];
|
113814
|
-
}
|
113815
|
-
});
|
113816
|
-
}
|
113817
|
-
});
|
113818
|
-
return from;
|
113819
|
-
}
|
113838
|
+
var _export_star = require_export_star();
|
113839
|
+
_export_star._(require_chainId(), exports);
|
113820
113840
|
var ROUTE_SPEC_FILE = "route.json";
|
113821
113841
|
var MAIN_ENTRY_NAME = "main";
|
113822
113842
|
var SERVER_BUNDLE_DIRECTORY = "bundles";
|
@@ -114429,12 +114449,8 @@ var require_ensure = __commonJS({
|
|
114429
114449
|
ensureAbsolutePath: () => ensureAbsolutePath,
|
114430
114450
|
ensureArray: () => ensureArray
|
114431
114451
|
});
|
114432
|
-
var
|
114433
|
-
|
114434
|
-
return obj && obj.__esModule ? obj : {
|
114435
|
-
default: obj
|
114436
|
-
};
|
114437
|
-
}
|
114452
|
+
var _interop_require_default = require_interop_require_default();
|
114453
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
114438
114454
|
var ensureAbsolutePath = (base, filePath) => _path.default.isAbsolute(filePath) ? filePath : _path.default.resolve(base, filePath);
|
114439
114455
|
var ensureArray = (params) => {
|
114440
114456
|
if (Array.isArray(params)) {
|
@@ -114470,16 +114486,12 @@ var require_project = __commonJS({
|
|
114470
114486
|
isReact18: () => isReact182,
|
114471
114487
|
isTypescript: () => isTypescript
|
114472
114488
|
});
|
114473
|
-
var
|
114489
|
+
var _interop_require_default = require_interop_require_default();
|
114490
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
114474
114491
|
var _commands = require_commands();
|
114475
114492
|
var _compiled = require_compiled();
|
114476
114493
|
var _common = require_common2();
|
114477
114494
|
var _ensure = require_ensure();
|
114478
|
-
function _interop_require_default(obj) {
|
114479
|
-
return obj && obj.__esModule ? obj : {
|
114480
|
-
default: obj
|
114481
|
-
};
|
114482
|
-
}
|
114483
114495
|
var debug = (0, _common.createDebugger)("judge-depExists");
|
114484
114496
|
var isDepExists = (appDirectory, name) => {
|
114485
114497
|
const pkgPath = _path.default.resolve(appDirectory, "./package.json");
|
@@ -114546,24 +114558,12 @@ var require_is = __commonJS({
|
|
114546
114558
|
Object.defineProperty(exports, "__esModule", {
|
114547
114559
|
value: true
|
114548
114560
|
});
|
114549
|
-
_export_star(
|
114550
|
-
_export_star(
|
114551
|
-
_export_star(
|
114552
|
-
_export_star(
|
114553
|
-
_export_star(
|
114554
|
-
|
114555
|
-
Object.keys(from).forEach(function(k) {
|
114556
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
114557
|
-
Object.defineProperty(to, k, {
|
114558
|
-
enumerable: true,
|
114559
|
-
get: function() {
|
114560
|
-
return from[k];
|
114561
|
-
}
|
114562
|
-
});
|
114563
|
-
}
|
114564
|
-
});
|
114565
|
-
return from;
|
114566
|
-
}
|
114561
|
+
var _export_star = require_export_star();
|
114562
|
+
_export_star._(require_env(), exports);
|
114563
|
+
_export_star._(require_platform(), exports);
|
114564
|
+
_export_star._(require_type(), exports);
|
114565
|
+
_export_star._(require_config2(), exports);
|
114566
|
+
_export_star._(require_project(), exports);
|
114567
114567
|
}
|
114568
114568
|
});
|
114569
114569
|
|
@@ -114665,17 +114665,13 @@ var require_data = __commonJS({
|
|
114665
114665
|
readTsConfig: () => readTsConfig,
|
114666
114666
|
readTsConfigByFile: () => readTsConfigByFile2
|
114667
114667
|
});
|
114668
|
-
var
|
114669
|
-
var
|
114668
|
+
var _interop_require_default = require_interop_require_default();
|
114669
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
114670
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
114670
114671
|
var _compiled = require_compiled();
|
114671
114672
|
var _constants = require_constants();
|
114672
114673
|
var _is = require_is();
|
114673
114674
|
var _package = require_package4();
|
114674
|
-
function _interop_require_default(obj) {
|
114675
|
-
return obj && obj.__esModule ? obj : {
|
114676
|
-
default: obj
|
114677
|
-
};
|
114678
|
-
}
|
114679
114675
|
var MAX_TIMES = 5;
|
114680
114676
|
function getPackageManager2() {
|
114681
114677
|
return __async(this, arguments, function* (cwd = process.cwd()) {
|
@@ -114807,29 +114803,13 @@ var require_get2 = __commonJS({
|
|
114807
114803
|
getServerConfig: () => getServerConfig,
|
114808
114804
|
getTargetDir: () => getTargetDir
|
114809
114805
|
});
|
114810
|
-
var
|
114806
|
+
var _export_star = require_export_star();
|
114807
|
+
var _interop_require_default = require_interop_require_default();
|
114808
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
114811
114809
|
var _constants = require_constants();
|
114812
114810
|
var _fs = require_fs();
|
114813
|
-
_export_star(require_data(), exports);
|
114814
|
-
_export_star(require_config3(), exports);
|
114815
|
-
function _export_star(from, to) {
|
114816
|
-
Object.keys(from).forEach(function(k) {
|
114817
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
114818
|
-
Object.defineProperty(to, k, {
|
114819
|
-
enumerable: true,
|
114820
|
-
get: function() {
|
114821
|
-
return from[k];
|
114822
|
-
}
|
114823
|
-
});
|
114824
|
-
}
|
114825
|
-
});
|
114826
|
-
return from;
|
114827
|
-
}
|
114828
|
-
function _interop_require_default(obj) {
|
114829
|
-
return obj && obj.__esModule ? obj : {
|
114830
|
-
default: obj
|
114831
|
-
};
|
114832
|
-
}
|
114811
|
+
_export_star._(require_data(), exports);
|
114812
|
+
_export_star._(require_config3(), exports);
|
114833
114813
|
var getServerConfig = (appDirectory, configFile) => __async(exports, null, function* () {
|
114834
114814
|
const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
|
114835
114815
|
return configFilePath;
|
@@ -114841,6 +114821,21 @@ var require_get2 = __commonJS({
|
|
114841
114821
|
}
|
114842
114822
|
});
|
114843
114823
|
|
114824
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs
|
114825
|
+
var require_define_property = __commonJS({
|
114826
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs"(exports) {
|
114827
|
+
"use strict";
|
114828
|
+
exports._ = exports._define_property = _define_property14;
|
114829
|
+
function _define_property14(obj, key, value) {
|
114830
|
+
if (key in obj) {
|
114831
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
114832
|
+
} else
|
114833
|
+
obj[key] = value;
|
114834
|
+
return obj;
|
114835
|
+
}
|
114836
|
+
}
|
114837
|
+
});
|
114838
|
+
|
114844
114839
|
// ../../../toolkit/utils/dist/cjs/cli/logger.js
|
114845
114840
|
var require_logger2 = __commonJS({
|
114846
114841
|
"../../../toolkit/utils/dist/cjs/cli/logger.js"(exports) {
|
@@ -114859,25 +114854,9 @@ var require_logger2 = __commonJS({
|
|
114859
114854
|
Logger: () => Logger,
|
114860
114855
|
logger: () => logger
|
114861
114856
|
});
|
114862
|
-
var
|
114863
|
-
|
114864
|
-
|
114865
|
-
Object.defineProperty(obj, key, {
|
114866
|
-
value,
|
114867
|
-
enumerable: true,
|
114868
|
-
configurable: true,
|
114869
|
-
writable: true
|
114870
|
-
});
|
114871
|
-
} else {
|
114872
|
-
obj[key] = value;
|
114873
|
-
}
|
114874
|
-
return obj;
|
114875
|
-
}
|
114876
|
-
function _interop_require_default(obj) {
|
114877
|
-
return obj && obj.__esModule ? obj : {
|
114878
|
-
default: obj
|
114879
|
-
};
|
114880
|
-
}
|
114857
|
+
var _define_property14 = require_define_property();
|
114858
|
+
var _interop_require_default = require_interop_require_default();
|
114859
|
+
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk2());
|
114881
114860
|
var LOG_LEVEL = {
|
114882
114861
|
error: 0,
|
114883
114862
|
warn: 1,
|
@@ -114961,10 +114940,10 @@ ${_chalk.default.grey(rest.join("\n"))}`;
|
|
114961
114940
|
return longestLabel;
|
114962
114941
|
}
|
114963
114942
|
constructor(options = {}) {
|
114964
|
-
_define_property14(this, "level", void 0);
|
114965
|
-
_define_property14(this, "config", void 0);
|
114966
|
-
_define_property14(this, "types", void 0);
|
114967
|
-
_define_property14(this, "longestLabel", void 0);
|
114943
|
+
_define_property14._(this, "level", void 0);
|
114944
|
+
_define_property14._(this, "config", void 0);
|
114945
|
+
_define_property14._(this, "types", void 0);
|
114946
|
+
_define_property14._(this, "longestLabel", void 0);
|
114968
114947
|
this.level = options.level || LOG_TYPES.log.level;
|
114969
114948
|
this.config = __spreadValues(__spreadValues({}, DEFAULT_CONFIG), options.config || {});
|
114970
114949
|
this.types = __spreadValues(__spreadValues({}, LOG_TYPES), options.types || {});
|
@@ -115037,16 +115016,12 @@ var require_alias = __commonJS({
|
|
115037
115016
|
getAliasConfig: () => getAliasConfig,
|
115038
115017
|
getUserAlias: () => getUserAlias
|
115039
115018
|
});
|
115040
|
-
var
|
115041
|
-
var
|
115019
|
+
var _interop_require_default = require_interop_require_default();
|
115020
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
115021
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
115042
115022
|
var _compiled = require_compiled();
|
115043
115023
|
var _get = require_get2();
|
115044
115024
|
var _applyOptionsChain = require_applyOptionsChain();
|
115045
|
-
function _interop_require_default(obj) {
|
115046
|
-
return obj && obj.__esModule ? obj : {
|
115047
|
-
default: obj
|
115048
|
-
};
|
115049
|
-
}
|
115050
115025
|
var validAlias = (modernConfig, { tsconfigPath }) => {
|
115051
115026
|
const { source: { alias } } = modernConfig;
|
115052
115027
|
if (!alias) {
|
@@ -115122,15 +115097,11 @@ var require_path = __commonJS({
|
|
115122
115097
|
removeTailSlash: () => removeTailSlash,
|
115123
115098
|
removeSlash: () => removeSlash
|
115124
115099
|
});
|
115125
|
-
var
|
115126
|
-
var
|
115127
|
-
var
|
115100
|
+
var _interop_require_default = require_interop_require_default();
|
115101
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
115102
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
115103
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
115128
115104
|
var _compiled = require_compiled();
|
115129
|
-
function _interop_require_default(obj) {
|
115130
|
-
return obj && obj.__esModule ? obj : {
|
115131
|
-
default: obj
|
115132
|
-
};
|
115133
|
-
}
|
115134
115105
|
var isPathString = (test) => _path.default.posix.basename(test) !== test || _path.default.win32.basename(test) !== test;
|
115135
115106
|
var isRelativePath = (test) => /^\.\.?($|[\\/])/.test(test);
|
115136
115107
|
var normalizeOutputPath = (s) => s.replace(/\\/g, "\\\\");
|
@@ -115294,54 +115265,6 @@ var require_babel = __commonJS({
|
|
115294
115265
|
}
|
115295
115266
|
});
|
115296
115267
|
|
115297
|
-
// ../../../toolkit/utils/dist/cjs/cli/generateMetaTags.js
|
115298
|
-
var require_generateMetaTags = __commonJS({
|
115299
|
-
"../../../toolkit/utils/dist/cjs/cli/generateMetaTags.js"(exports) {
|
115300
|
-
"use strict";
|
115301
|
-
Object.defineProperty(exports, "__esModule", {
|
115302
|
-
value: true
|
115303
|
-
});
|
115304
|
-
Object.defineProperty(exports, "generateMetaTags", {
|
115305
|
-
enumerable: true,
|
115306
|
-
get: () => generateMetaTags
|
115307
|
-
});
|
115308
|
-
var tagObjectToString = (tagDefinition) => {
|
115309
|
-
const attributes = Object.keys(tagDefinition.attributes || {}).filter((attributeName) => tagDefinition.attributes[attributeName] !== false).map((attributeName) => {
|
115310
|
-
if (tagDefinition.attributes[attributeName] === true) {
|
115311
|
-
return attributeName;
|
115312
|
-
}
|
115313
|
-
return `${attributeName}="${tagDefinition.attributes[attributeName]}"`;
|
115314
|
-
});
|
115315
|
-
return `<${[
|
115316
|
-
tagDefinition.tagName
|
115317
|
-
].concat(attributes).join(" ")}>${tagDefinition.innerHTML || ""}${tagDefinition.voidTag ? "" : `</${tagDefinition.tagName}>`}`;
|
115318
|
-
};
|
115319
|
-
var generateMetaTags = (metaOptions) => {
|
115320
|
-
if (!metaOptions) {
|
115321
|
-
return "";
|
115322
|
-
}
|
115323
|
-
const metaTagAttributeObjects = Object.keys(metaOptions).map((metaName) => {
|
115324
|
-
const metaTagContent = metaOptions[metaName];
|
115325
|
-
return typeof metaTagContent === "string" ? {
|
115326
|
-
name: metaName,
|
115327
|
-
content: metaTagContent
|
115328
|
-
} : metaTagContent;
|
115329
|
-
}).filter((attribute) => attribute !== false);
|
115330
|
-
return metaTagAttributeObjects.map((metaTagAttributes) => {
|
115331
|
-
if (metaTagAttributes === false) {
|
115332
|
-
throw new Error("Invalid meta tag");
|
115333
|
-
}
|
115334
|
-
return {
|
115335
|
-
tagName: "meta",
|
115336
|
-
voidTag: true,
|
115337
|
-
attributes: metaTagAttributes
|
115338
|
-
};
|
115339
|
-
}).reduce((memo, tagObject) => `${memo}
|
115340
|
-
${tagObjectToString(tagObject)}`, "");
|
115341
|
-
};
|
115342
|
-
}
|
115343
|
-
});
|
115344
|
-
|
115345
115268
|
// ../../../toolkit/utils/dist/cjs/cli/monorepo.js
|
115346
115269
|
var require_monorepo = __commonJS({
|
115347
115270
|
"../../../toolkit/utils/dist/cjs/cli/monorepo.js"(exports) {
|
@@ -115365,14 +115288,10 @@ var require_monorepo = __commonJS({
|
|
115365
115288
|
findMonorepoRoot: () => findMonorepoRoot,
|
115366
115289
|
getMonorepoPackages: () => getMonorepoPackages2
|
115367
115290
|
});
|
115368
|
-
var
|
115369
|
-
var
|
115291
|
+
var _interop_require_default = require_interop_require_default();
|
115292
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
115293
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
115370
115294
|
var _compiled = require_compiled();
|
115371
|
-
function _interop_require_default(obj) {
|
115372
|
-
return obj && obj.__esModule ? obj : {
|
115373
|
-
default: obj
|
115374
|
-
};
|
115375
|
-
}
|
115376
115295
|
var PACKAGE_MAX_DEPTH = 5;
|
115377
115296
|
var WORKSPACE_FILES = {
|
115378
115297
|
YARN: "package.json",
|
@@ -115460,14 +115379,10 @@ var require_pathSerializer = __commonJS({
|
|
115460
115379
|
applyMatcherReplacement: () => applyMatcherReplacement,
|
115461
115380
|
createDefaultPathMatchers: () => createDefaultPathMatchers
|
115462
115381
|
});
|
115463
|
-
var
|
115464
|
-
var
|
115382
|
+
var _interop_require_default = require_interop_require_default();
|
115383
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
115384
|
+
var _lodash = /* @__PURE__ */ _interop_require_default._(require_lodash3());
|
115465
115385
|
var _path = require_path();
|
115466
|
-
function _interop_require_default(obj) {
|
115467
|
-
return obj && obj.__esModule ? obj : {
|
115468
|
-
default: obj
|
115469
|
-
};
|
115470
|
-
}
|
115471
115386
|
var matchUpwardPathsAsUnknown = (p) => (0, _lodash.default)((0, _path.upwardPaths)((0, _path.normalizeToPosixPath)(p))).map((match) => ({
|
115472
115387
|
match,
|
115473
115388
|
mark: "unknown"
|
@@ -115525,14 +115440,10 @@ var require_port = __commonJS({
|
|
115525
115440
|
enumerable: true,
|
115526
115441
|
get: () => getPort
|
115527
115442
|
});
|
115528
|
-
var
|
115443
|
+
var _interop_require_default = require_interop_require_default();
|
115444
|
+
var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
|
115529
115445
|
var _compiled = require_compiled();
|
115530
115446
|
var _logger = require_logger2();
|
115531
|
-
function _interop_require_default(obj) {
|
115532
|
-
return obj && obj.__esModule ? obj : {
|
115533
|
-
default: obj
|
115534
|
-
};
|
115535
|
-
}
|
115536
115447
|
var getPort = (_0, ..._1) => __async(exports, [_0, ..._1], function* (port, { tryLimits = 20, strictPort = false } = {}) {
|
115537
115448
|
if (typeof port === "string") {
|
115538
115449
|
port = parseInt(port, 10);
|
@@ -115595,15 +115506,11 @@ var require_prettyInstructions = __commonJS({
|
|
115595
115506
|
getAddressUrls: () => getAddressUrls,
|
115596
115507
|
prettyInstructions: () => prettyInstructions
|
115597
115508
|
});
|
115598
|
-
var
|
115509
|
+
var _interop_require_default = require_interop_require_default();
|
115510
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
115599
115511
|
var _compiled = require_compiled();
|
115600
115512
|
var _is = require_is();
|
115601
115513
|
var _constants = require_constants();
|
115602
|
-
function _interop_require_default(obj) {
|
115603
|
-
return obj && obj.__esModule ? obj : {
|
115604
|
-
default: obj
|
115605
|
-
};
|
115606
|
-
}
|
115607
115514
|
var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
|
115608
115515
|
var getIpv4Interfaces = () => {
|
115609
115516
|
const interfaces = _os.default.networkInterfaces();
|
@@ -115807,14 +115714,10 @@ var require_routes = __commonJS({
|
|
115807
115714
|
enumerable: true,
|
115808
115715
|
get: () => getRouteId
|
115809
115716
|
});
|
115810
|
-
var
|
115717
|
+
var _interop_require_default = require_interop_require_default();
|
115718
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
115811
115719
|
var _constants = require_constants();
|
115812
115720
|
var _path1 = require_path();
|
115813
|
-
function _interop_require_default(obj) {
|
115814
|
-
return obj && obj.__esModule ? obj : {
|
115815
|
-
default: obj
|
115816
|
-
};
|
115817
|
-
}
|
115818
115721
|
var getPathWithoutExt = (filename) => {
|
115819
115722
|
const extname = _path.default.extname(filename);
|
115820
115723
|
return filename.slice(0, -extname.length);
|
@@ -115844,14 +115747,10 @@ var require_runtimeExports = __commonJS({
|
|
115844
115747
|
enumerable: true,
|
115845
115748
|
get: () => createRuntimeExportsUtils
|
115846
115749
|
});
|
115847
|
-
var
|
115750
|
+
var _interop_require_default = require_interop_require_default();
|
115751
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
115848
115752
|
var _compiled = require_compiled();
|
115849
115753
|
var _path1 = require_path();
|
115850
|
-
function _interop_require_default(obj) {
|
115851
|
-
return obj && obj.__esModule ? obj : {
|
115852
|
-
default: obj
|
115853
|
-
};
|
115854
|
-
}
|
115855
115754
|
var memo = (fn) => {
|
115856
115755
|
const cache = /* @__PURE__ */ new Map();
|
115857
115756
|
return (...params) => {
|
@@ -115928,13 +115827,9 @@ var require_watch = __commonJS({
|
|
115928
115827
|
WatchChangeType: () => WatchChangeType,
|
115929
115828
|
watch: () => watch
|
115930
115829
|
});
|
115931
|
-
var
|
115830
|
+
var _interop_require_default = require_interop_require_default();
|
115831
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
115932
115832
|
var _compiled = require_compiled();
|
115933
|
-
function _interop_require_default(obj) {
|
115934
|
-
return obj && obj.__esModule ? obj : {
|
115935
|
-
default: obj
|
115936
|
-
};
|
115937
|
-
}
|
115938
115833
|
var WatchChangeType = {
|
115939
115834
|
ADD: "add",
|
115940
115835
|
UNLINK: "unlink",
|
@@ -115984,43 +115879,30 @@ var require_cli = __commonJS({
|
|
115984
115879
|
Object.defineProperty(exports, "__esModule", {
|
115985
115880
|
value: true
|
115986
115881
|
});
|
115987
|
-
_export_star(
|
115988
|
-
_export_star(
|
115989
|
-
_export_star(
|
115990
|
-
_export_star(
|
115991
|
-
_export_star(
|
115992
|
-
_export_star(
|
115993
|
-
_export_star(
|
115994
|
-
_export_star(
|
115995
|
-
_export_star(
|
115996
|
-
_export_star(
|
115997
|
-
_export_star(
|
115998
|
-
_export_star(require_logger2(), exports);
|
115999
|
-
_export_star(require_monorepo(), exports);
|
116000
|
-
_export_star(require_package4(), exports);
|
116001
|
-
_export_star(require_path(), exports);
|
116002
|
-
_export_star(require_pathSerializer(), exports);
|
116003
|
-
_export_star(require_port(), exports);
|
116004
|
-
_export_star(require_prettyInstructions(), exports);
|
116005
|
-
_export_star(require_print(), exports);
|
116006
|
-
_export_star(require_require(), exports);
|
116007
|
-
_export_star(require_routes(), exports);
|
116008
|
-
_export_star(require_runtimeExports(), exports);
|
116009
|
-
_export_star(require_test(), exports);
|
116010
|
-
_export_star(require_watch(), exports);
|
116011
|
-
function _export_star(from, to) {
|
116012
|
-
Object.keys(from).forEach(function(k) {
|
116013
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
116014
|
-
Object.defineProperty(to, k, {
|
116015
|
-
enumerable: true,
|
116016
|
-
get: function() {
|
116017
|
-
return from[k];
|
116018
|
-
}
|
116019
|
-
});
|
116020
|
-
}
|
116021
|
-
});
|
116022
|
-
return from;
|
116023
|
-
}
|
115882
|
+
var _export_star = require_export_star();
|
115883
|
+
_export_star._(require_constants(), exports);
|
115884
|
+
_export_star._(require_get2(), exports);
|
115885
|
+
_export_star._(require_is(), exports);
|
115886
|
+
_export_star._(require_alias(), exports);
|
115887
|
+
_export_star._(require_applyOptionsChain(), exports);
|
115888
|
+
_export_star._(require_babel(), exports);
|
115889
|
+
_export_star._(require_commands(), exports);
|
115890
|
+
_export_star._(require_common2(), exports);
|
115891
|
+
_export_star._(require_ensure(), exports);
|
115892
|
+
_export_star._(require_fs(), exports);
|
115893
|
+
_export_star._(require_logger2(), exports);
|
115894
|
+
_export_star._(require_monorepo(), exports);
|
115895
|
+
_export_star._(require_package4(), exports);
|
115896
|
+
_export_star._(require_path(), exports);
|
115897
|
+
_export_star._(require_pathSerializer(), exports);
|
115898
|
+
_export_star._(require_port(), exports);
|
115899
|
+
_export_star._(require_prettyInstructions(), exports);
|
115900
|
+
_export_star._(require_print(), exports);
|
115901
|
+
_export_star._(require_require(), exports);
|
115902
|
+
_export_star._(require_routes(), exports);
|
115903
|
+
_export_star._(require_runtimeExports(), exports);
|
115904
|
+
_export_star._(require_test(), exports);
|
115905
|
+
_export_star._(require_watch(), exports);
|
116024
115906
|
}
|
116025
115907
|
});
|
116026
115908
|
|
@@ -116031,22 +115913,10 @@ var require_cjs2 = __commonJS({
|
|
116031
115913
|
Object.defineProperty(exports, "__esModule", {
|
116032
115914
|
value: true
|
116033
115915
|
});
|
116034
|
-
_export_star(
|
116035
|
-
_export_star(
|
116036
|
-
_export_star(
|
116037
|
-
|
116038
|
-
Object.keys(from).forEach(function(k) {
|
116039
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
116040
|
-
Object.defineProperty(to, k, {
|
116041
|
-
enumerable: true,
|
116042
|
-
get: function() {
|
116043
|
-
return from[k];
|
116044
|
-
}
|
116045
|
-
});
|
116046
|
-
}
|
116047
|
-
});
|
116048
|
-
return from;
|
116049
|
-
}
|
115916
|
+
var _export_star = require_export_star();
|
115917
|
+
_export_star._(require_compiled(), exports);
|
115918
|
+
_export_star._(require_cli(), exports);
|
115919
|
+
_export_star._(require_import(), exports);
|
116050
115920
|
}
|
116051
115921
|
});
|
116052
115922
|
|
@@ -116108,11 +115978,11 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
116108
115978
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
116109
115979
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
116110
115980
|
|
116111
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
115981
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
116112
115982
|
var import_lodash6 = __toESM(require_lodash2());
|
116113
115983
|
var import_comment_json = __toESM(require_src2());
|
116114
115984
|
|
116115
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
115985
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
|
116116
115986
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
116117
115987
|
try {
|
116118
115988
|
var info = gen[key](arg);
|
@@ -116420,7 +116290,7 @@ function _canUsePnpm() {
|
|
116420
116290
|
return _canUsePnpm.apply(this, arguments);
|
116421
116291
|
}
|
116422
116292
|
|
116423
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
116293
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
|
116424
116294
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
116425
116295
|
try {
|
116426
116296
|
var info = gen[key](arg);
|
@@ -116787,7 +116657,7 @@ function _pnpmInstall() {
|
|
116787
116657
|
return _pnpmInstall.apply(this, arguments);
|
116788
116658
|
}
|
116789
116659
|
|
116790
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
116660
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
|
116791
116661
|
function _class_call_check(instance, Constructor) {
|
116792
116662
|
if (!(instance instanceof Constructor)) {
|
116793
116663
|
throw new TypeError("Cannot call a class as a function");
|
@@ -116868,7 +116738,7 @@ var NpmAPI = /* @__PURE__ */ function() {
|
|
116868
116738
|
return NpmAPI2;
|
116869
116739
|
}();
|
116870
116740
|
|
116871
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
116741
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-git/dist/esm/utils/index.js
|
116872
116742
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
116873
116743
|
try {
|
116874
116744
|
var info = gen[key](arg);
|
@@ -117210,7 +117080,7 @@ function _gitCommit() {
|
|
117210
117080
|
return _gitCommit.apply(this, arguments);
|
117211
117081
|
}
|
117212
117082
|
|
117213
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
117083
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-git/dist/esm/index.js
|
117214
117084
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
117215
117085
|
try {
|
117216
117086
|
var info = gen[key](arg);
|
@@ -117541,11 +117411,11 @@ var GitAPI = /* @__PURE__ */ function() {
|
|
117541
117411
|
return GitAPI2;
|
117542
117412
|
}();
|
117543
117413
|
|
117544
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
117414
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
117545
117415
|
var import_path = __toESM(require("path"));
|
117546
117416
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
117547
117417
|
|
117548
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
117418
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
117549
117419
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
117550
117420
|
try {
|
117551
117421
|
var info = gen[key](arg);
|
@@ -117718,7 +117588,7 @@ function _fsExists() {
|
|
117718
117588
|
return _fsExists.apply(this, arguments);
|
117719
117589
|
}
|
117720
117590
|
|
117721
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
117591
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/utils/renderString.js
|
117722
117592
|
var import_handlebars = __toESM(require_lib());
|
117723
117593
|
function _define_property4(obj, key, value) {
|
117724
117594
|
if (key in obj) {
|
@@ -117760,7 +117630,7 @@ function renderString(template, fullData, registers) {
|
|
117760
117630
|
return import_handlebars.default.compile(template)(fullData) || "";
|
117761
117631
|
}
|
117762
117632
|
|
117763
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
117633
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/index.js
|
117764
117634
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
117765
117635
|
try {
|
117766
117636
|
var info = gen[key](arg);
|
@@ -118078,13 +117948,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
|
|
118078
117948
|
return HandlebarsAPI2;
|
118079
117949
|
}();
|
118080
117950
|
|
118081
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
117951
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm/utils/renderString.js
|
118082
117952
|
var import_ejs = __toESM(require_ejs());
|
118083
117953
|
function renderString2(template, fullData) {
|
118084
117954
|
return import_ejs.default.render(template, fullData) || "";
|
118085
117955
|
}
|
118086
117956
|
|
118087
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
117957
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm/index.js
|
118088
117958
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
118089
117959
|
try {
|
118090
117960
|
var info = gen[key](arg);
|
@@ -118354,24 +118224,8 @@ var EjsAPI = /* @__PURE__ */ function() {
|
|
118354
118224
|
return EjsAPI2;
|
118355
118225
|
}();
|
118356
118226
|
|
118357
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.
|
118227
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
118358
118228
|
var import_path2 = __toESM(require("path"));
|
118359
|
-
|
118360
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-fs/dist/esm/constant.js
|
118361
|
-
var imageExtNameList = [
|
118362
|
-
".jpg",
|
118363
|
-
".jpeg",
|
118364
|
-
".png",
|
118365
|
-
".gif",
|
118366
|
-
".bmp",
|
118367
|
-
".ico",
|
118368
|
-
".icon",
|
118369
|
-
".mpt",
|
118370
|
-
".psd",
|
118371
|
-
".wmf"
|
118372
|
-
];
|
118373
|
-
|
118374
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
118375
118229
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
118376
118230
|
try {
|
118377
118231
|
var info = gen[key](arg);
|
@@ -118551,48 +118405,26 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
118551
118405
|
value: function renderFile(resource, target) {
|
118552
118406
|
var _this = this;
|
118553
118407
|
return _async_to_generator8(function() {
|
118554
|
-
var
|
118408
|
+
var filePath;
|
118555
118409
|
return __generator8(this, function(_state) {
|
118556
118410
|
switch (_state.label) {
|
118557
118411
|
case 0:
|
118558
118412
|
if (resource._type !== FS_RESOURCE) {
|
118559
118413
|
throw new Error("resource not match");
|
118560
118414
|
}
|
118415
|
+
filePath = import_path2.default.resolve(_this.generatorCore.outputPath, target.toString());
|
118561
118416
|
return [
|
118562
118417
|
4,
|
118563
|
-
|
118418
|
+
import_fs_extra.default.mkdirp(import_path2.default.dirname(filePath))
|
118564
118419
|
];
|
118565
118420
|
case 1:
|
118566
|
-
resourceValue = _state.sent();
|
118567
|
-
resourceFileExt = import_path2.default.extname(resource.filePath);
|
118568
|
-
if (!imageExtNameList.includes(resourceFileExt))
|
118569
|
-
return [
|
118570
|
-
3,
|
118571
|
-
3
|
118572
|
-
];
|
118573
|
-
return [
|
118574
|
-
4,
|
118575
|
-
_this.generatorCore.output.fs(target, resourceValue.content, {
|
118576
|
-
encoding: "binary"
|
118577
|
-
})
|
118578
|
-
];
|
118579
|
-
case 2:
|
118580
118421
|
_state.sent();
|
118581
|
-
return [
|
118582
|
-
3,
|
118583
|
-
5
|
118584
|
-
];
|
118585
|
-
case 3:
|
118586
118422
|
return [
|
118587
118423
|
4,
|
118588
|
-
|
118589
|
-
encoding: "utf-8"
|
118590
|
-
})
|
118424
|
+
import_fs_extra.default.copyFile(resource.filePath, filePath)
|
118591
118425
|
];
|
118592
|
-
case
|
118426
|
+
case 2:
|
118593
118427
|
_state.sent();
|
118594
|
-
_state.label = 5;
|
118595
|
-
case 5:
|
118596
118428
|
return [
|
118597
118429
|
2
|
118598
118430
|
];
|
@@ -118655,7 +118487,7 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
118655
118487
|
return FsAPI2;
|
118656
118488
|
}();
|
118657
118489
|
|
118658
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118490
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
118659
118491
|
var toString = Object.prototype.toString;
|
118660
118492
|
var isType = function(type) {
|
118661
118493
|
return function(obj) {
|
@@ -118681,7 +118513,7 @@ var isObj = function(val) {
|
|
118681
118513
|
};
|
118682
118514
|
var isRegExp = isType("RegExp");
|
118683
118515
|
|
118684
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118516
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/array.js
|
118685
118517
|
var toArr = function(val) {
|
118686
118518
|
return isArr(val) ? val : val ? [val] : [];
|
118687
118519
|
};
|
@@ -118732,7 +118564,7 @@ function reduce(val, iterator, accumulator, revert) {
|
|
118732
118564
|
return result;
|
118733
118565
|
}
|
118734
118566
|
|
118735
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118567
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/global.js
|
118736
118568
|
function globalSelf() {
|
118737
118569
|
try {
|
118738
118570
|
if (typeof self !== "undefined") {
|
@@ -118756,7 +118588,7 @@ function globalSelf() {
|
|
118756
118588
|
}
|
118757
118589
|
var globalThisPolyfill = globalSelf();
|
118758
118590
|
|
118759
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118591
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/instanceof.js
|
118760
118592
|
var instOf = function(value, cls) {
|
118761
118593
|
if (isFn(cls))
|
118762
118594
|
return value instanceof cls;
|
@@ -118765,7 +118597,7 @@ var instOf = function(value, cls) {
|
|
118765
118597
|
return false;
|
118766
118598
|
};
|
118767
118599
|
|
118768
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118600
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/compare.js
|
118769
118601
|
var isArray = isArr;
|
118770
118602
|
var keyList = Object.keys;
|
118771
118603
|
var hasProp = Object.prototype.hasOwnProperty;
|
@@ -118872,7 +118704,7 @@ var isEqual = function exportedEqual(a, b) {
|
|
118872
118704
|
}
|
118873
118705
|
};
|
118874
118706
|
|
118875
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118707
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/clone.js
|
118876
118708
|
var clone = function(values) {
|
118877
118709
|
if (Array.isArray(values)) {
|
118878
118710
|
var res_1 = [];
|
@@ -118908,7 +118740,7 @@ var clone = function(values) {
|
|
118908
118740
|
}
|
118909
118741
|
};
|
118910
118742
|
|
118911
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118743
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/isEmpty.js
|
118912
118744
|
var has = Object.prototype.hasOwnProperty;
|
118913
118745
|
var toString2 = Object.prototype.toString;
|
118914
118746
|
var isUndef = function(val) {
|
@@ -119036,7 +118868,7 @@ function pascalCase(input, options) {
|
|
119036
118868
|
return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options));
|
119037
118869
|
}
|
119038
118870
|
|
119039
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118871
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/string.js
|
119040
118872
|
var ansiRegex = function() {
|
119041
118873
|
var pattern = [
|
119042
118874
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
|
@@ -119055,7 +118887,7 @@ var stringLength = function(input) {
|
|
119055
118887
|
return stripAnsi(input).replace(astralRegex(), " ").length;
|
119056
118888
|
};
|
119057
118889
|
|
119058
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
118890
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/contexts.js
|
119059
118891
|
var __assign2 = function() {
|
119060
118892
|
__assign2 = Object.assign || function(t) {
|
119061
118893
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -119078,7 +118910,7 @@ var parenContext = ContextType("()");
|
|
119078
118910
|
var braceContext = ContextType("{}");
|
119079
118911
|
var destructorContext = ContextType("{x}");
|
119080
118912
|
|
119081
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
118913
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokens.js
|
119082
118914
|
var __assign3 = function() {
|
119083
118915
|
__assign3 = Object.assign || function(t) {
|
119084
118916
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -119246,7 +119078,7 @@ var expandTok = TokenType("expandTok", {
|
|
119246
119078
|
});
|
119247
119079
|
var eofTok = TokenType("eof");
|
119248
119080
|
|
119249
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
119081
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokenizer.js
|
119250
119082
|
var nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
119251
119083
|
var fullCharCodeAtPos = function(input, pos) {
|
119252
119084
|
if (String.fromCharCode)
|
@@ -119498,7 +119330,7 @@ var Tokenizer = (
|
|
119498
119330
|
}()
|
119499
119331
|
);
|
119500
119332
|
|
119501
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
119333
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/types.js
|
119502
119334
|
var isType2 = function(type) {
|
119503
119335
|
return function(obj) {
|
119504
119336
|
return obj && obj.type === type;
|
@@ -119516,7 +119348,7 @@ var isObjectPattern = isType2("ObjectPattern");
|
|
119516
119348
|
var isObjectPatternProperty = isType2("ObjectPatternProperty");
|
119517
119349
|
var isArrayPattern = isType2("ArrayPattern");
|
119518
119350
|
|
119519
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
119351
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/shared.js
|
119520
119352
|
var toString3 = Object.prototype.toString;
|
119521
119353
|
var isType3 = function(type) {
|
119522
119354
|
return function(obj) {
|
@@ -119593,7 +119425,7 @@ var isSegmentEqual = function(a, b) {
|
|
119593
119425
|
return a === b;
|
119594
119426
|
};
|
119595
119427
|
|
119596
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
119428
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/destructor.js
|
119597
119429
|
var DestructorCache = /* @__PURE__ */ new Map();
|
119598
119430
|
var isValid2 = function(val) {
|
119599
119431
|
return val !== void 0 && val !== null;
|
@@ -119711,7 +119543,7 @@ var existInByDestructor = function(source, rules, start, mutators) {
|
|
119711
119543
|
});
|
119712
119544
|
};
|
119713
119545
|
|
119714
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
119546
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/parser.js
|
119715
119547
|
var __extends = function() {
|
119716
119548
|
var extendStatics = function(d, b) {
|
119717
119549
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -120102,7 +119934,7 @@ var Parser = (
|
|
120102
119934
|
}(Tokenizer)
|
120103
119935
|
);
|
120104
119936
|
|
120105
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
119937
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/matcher.js
|
120106
119938
|
var Matcher = (
|
120107
119939
|
/** @class */
|
120108
119940
|
function() {
|
@@ -120284,7 +120116,7 @@ var Matcher = (
|
|
120284
120116
|
}()
|
120285
120117
|
);
|
120286
120118
|
|
120287
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
120119
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/index.js
|
120288
120120
|
var __read = function(o, n) {
|
120289
120121
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
120290
120122
|
if (!m)
|
@@ -120838,7 +120670,7 @@ var Path = (
|
|
120838
120670
|
}()
|
120839
120671
|
);
|
120840
120672
|
|
120841
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
120673
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/subscribable.js
|
120842
120674
|
var Subscribable = (
|
120843
120675
|
/** @class */
|
120844
120676
|
function() {
|
@@ -120890,7 +120722,7 @@ var Subscribable = (
|
|
120890
120722
|
}()
|
120891
120723
|
);
|
120892
120724
|
|
120893
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
120725
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/merge.js
|
120894
120726
|
function defaultIsMergeableObject(value) {
|
120895
120727
|
return isNonNullObject(value) && !isSpecial(value);
|
120896
120728
|
}
|
@@ -121083,7 +120915,7 @@ var lazyMerge = function(target) {
|
|
121083
120915
|
};
|
121084
120916
|
var merge = deepmerge;
|
121085
120917
|
|
121086
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
120918
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/uid.js
|
121087
120919
|
var IDX = 36;
|
121088
120920
|
var HEX = "";
|
121089
120921
|
while (IDX--)
|
@@ -121095,7 +120927,7 @@ function uid(len) {
|
|
121095
120927
|
return str;
|
121096
120928
|
}
|
121097
120929
|
|
121098
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
120930
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/checkers.js
|
121099
120931
|
var toString4 = Object.prototype.toString;
|
121100
120932
|
var isMap = function(val) {
|
121101
120933
|
return val && val instanceof Map;
|
@@ -121126,7 +120958,7 @@ var isNormalType = function(target) {
|
|
121126
120958
|
return isPlainObj3(target) || isArr3(target);
|
121127
120959
|
};
|
121128
120960
|
|
121129
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
120961
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/array.js
|
121130
120962
|
var toArray = function(value) {
|
121131
120963
|
return Array.isArray(value) ? value : value !== void 0 && value !== null ? [value] : [];
|
121132
120964
|
};
|
@@ -121190,7 +121022,7 @@ var ArraySet = (
|
|
121190
121022
|
}()
|
121191
121023
|
);
|
121192
121024
|
|
121193
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121025
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/environment.js
|
121194
121026
|
var ProxyRaw = /* @__PURE__ */ new WeakMap();
|
121195
121027
|
var RawProxy = /* @__PURE__ */ new WeakMap();
|
121196
121028
|
var RawShallowProxy = /* @__PURE__ */ new WeakMap();
|
@@ -121209,7 +121041,7 @@ var MakeObModelSymbol = Symbol("MakeObModelSymbol");
|
|
121209
121041
|
var ObModelSymbol = Symbol("ObModelSymbol");
|
121210
121042
|
var ObModelNodeSymbol = Symbol("ObModelNodeSymbol");
|
121211
121043
|
|
121212
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121044
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/reaction.js
|
121213
121045
|
var ITERATION_KEY = Symbol("iteration key");
|
121214
121046
|
var addRawReactionsMap = function(target, key, reaction2) {
|
121215
121047
|
var reactionsMap = RawReactionsMap.get(target);
|
@@ -121439,7 +121271,7 @@ var disposeEffects = function(reaction2) {
|
|
121439
121271
|
}
|
121440
121272
|
};
|
121441
121273
|
|
121442
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121274
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tree.js
|
121443
121275
|
var DataChange = (
|
121444
121276
|
/** @class */
|
121445
121277
|
function() {
|
@@ -121535,7 +121367,7 @@ var buildDataTree = function(target, key, value) {
|
|
121535
121367
|
setDataNode(raw2, new DataNode(target, key, value));
|
121536
121368
|
};
|
121537
121369
|
|
121538
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121370
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/externals.js
|
121539
121371
|
var RAW_TYPE = Symbol("RAW_TYPE");
|
121540
121372
|
var OBSERVABLE_TYPE = Symbol("OBSERVABLE_TYPE");
|
121541
121373
|
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
@@ -121637,7 +121469,7 @@ var hasCollected = function(callback) {
|
|
121637
121469
|
return DependencyCollected.value;
|
121638
121470
|
};
|
121639
121471
|
|
121640
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121472
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/handlers.js
|
121641
121473
|
var __read2 = function(o, n) {
|
121642
121474
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
121643
121475
|
if (!m)
|
@@ -121893,7 +121725,7 @@ var baseHandlers = {
|
|
121893
121725
|
}
|
121894
121726
|
};
|
121895
121727
|
|
121896
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121728
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/internals.js
|
121897
121729
|
var createNormalProxy = function(target, shallow2) {
|
121898
121730
|
var proxy = new Proxy(target, baseHandlers);
|
121899
121731
|
ProxyRaw.set(proxy, target);
|
@@ -122008,7 +121840,7 @@ var createBoundaryAnnotation = function(start, end) {
|
|
122008
121840
|
return boundary;
|
122009
121841
|
};
|
122010
121842
|
|
122011
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121843
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/batch.js
|
122012
121844
|
var batch = createBoundaryAnnotation(batchStart, batchEnd);
|
122013
121845
|
batch.scope = createBoundaryAnnotation(batchScopeStart, batchScopeEnd);
|
122014
121846
|
batch.endpoint = function(callback) {
|
@@ -122021,7 +121853,7 @@ batch.endpoint = function(callback) {
|
|
122021
121853
|
}
|
122022
121854
|
};
|
122023
121855
|
|
122024
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121856
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/action.js
|
122025
121857
|
var action = createBoundaryAnnotation(function() {
|
122026
121858
|
batchStart();
|
122027
121859
|
untrackStart();
|
@@ -122037,10 +121869,10 @@ action.scope = createBoundaryAnnotation(function() {
|
|
122037
121869
|
batchScopeEnd();
|
122038
121870
|
});
|
122039
121871
|
|
122040
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121872
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/untracked.js
|
122041
121873
|
var untracked = createBoundaryFunction(untrackStart, untrackEnd);
|
122042
121874
|
|
122043
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121875
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/observable.js
|
122044
121876
|
var observable = createAnnotation(function(_a2) {
|
122045
121877
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
122046
121878
|
var store = {
|
@@ -122080,7 +121912,7 @@ var observable = createAnnotation(function(_a2) {
|
|
122080
121912
|
return store.value;
|
122081
121913
|
});
|
122082
121914
|
|
122083
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121915
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/box.js
|
122084
121916
|
var box = createAnnotation(function(_a2) {
|
122085
121917
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
122086
121918
|
var store = {
|
@@ -122126,7 +121958,7 @@ var box = createAnnotation(function(_a2) {
|
|
122126
121958
|
return proxy;
|
122127
121959
|
});
|
122128
121960
|
|
122129
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121961
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/ref.js
|
122130
121962
|
var ref = createAnnotation(function(_a2) {
|
122131
121963
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
122132
121964
|
var store = {
|
@@ -122174,7 +122006,7 @@ var ref = createAnnotation(function(_a2) {
|
|
122174
122006
|
return proxy;
|
122175
122007
|
});
|
122176
122008
|
|
122177
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
122009
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/shallow.js
|
122178
122010
|
var shallow = createAnnotation(function(_a2) {
|
122179
122011
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
122180
122012
|
var store = {
|
@@ -122214,7 +122046,7 @@ var shallow = createAnnotation(function(_a2) {
|
|
122214
122046
|
return store.value;
|
122215
122047
|
});
|
122216
122048
|
|
122217
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
122049
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/computed.js
|
122218
122050
|
var getDescriptor = Object.getOwnPropertyDescriptor;
|
122219
122051
|
var getProto = Object.getPrototypeOf;
|
122220
122052
|
var ClassDescriptorSymbol = Symbol("ClassDescriptorSymbol");
|
@@ -122335,7 +122167,7 @@ var computed = createAnnotation(function(_a2) {
|
|
122335
122167
|
return proxy;
|
122336
122168
|
});
|
122337
122169
|
|
122338
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
122170
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observable.js
|
122339
122171
|
function observable2(target) {
|
122340
122172
|
return createObservable(null, null, target);
|
122341
122173
|
}
|
@@ -122346,7 +122178,7 @@ observable2.shallow = shallow;
|
|
122346
122178
|
observable2.computed = computed;
|
122347
122179
|
observable2[MakeObModelSymbol] = observable;
|
122348
122180
|
|
122349
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
122181
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/model.js
|
122350
122182
|
function define2(target, annotations) {
|
122351
122183
|
if (isObservable(target))
|
122352
122184
|
return target;
|
@@ -122366,7 +122198,7 @@ function define2(target, annotations) {
|
|
122366
122198
|
return target;
|
122367
122199
|
}
|
122368
122200
|
|
122369
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
122201
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/autorun.js
|
122370
122202
|
var __assign4 = function() {
|
122371
122203
|
__assign4 = Object.assign || function(t) {
|
122372
122204
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -122512,7 +122344,7 @@ var reaction = function(tracker, subscriber, options) {
|
|
122512
122344
|
};
|
122513
122345
|
};
|
122514
122346
|
|
122515
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
122347
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tracker.js
|
122516
122348
|
var Tracker = (
|
122517
122349
|
/** @class */
|
122518
122350
|
function() {
|
@@ -122557,7 +122389,7 @@ var Tracker = (
|
|
122557
122389
|
}()
|
122558
122390
|
);
|
122559
122391
|
|
122560
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
122392
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observe.js
|
122561
122393
|
var observe = function(target, observer, deep) {
|
122562
122394
|
if (deep === void 0) {
|
122563
122395
|
deep = true;
|
@@ -122590,7 +122422,7 @@ var observe = function(target, observer, deep) {
|
|
122590
122422
|
return addListener(target);
|
122591
122423
|
};
|
122592
122424
|
|
122593
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
122425
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/shared.js
|
122594
122426
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
122595
122427
|
var SchemaNestedMap = {
|
122596
122428
|
parent: true,
|
@@ -122777,7 +122609,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
122777
122609
|
});
|
122778
122610
|
};
|
122779
122611
|
|
122780
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
122612
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/compiler.js
|
122781
122613
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
122782
122614
|
var Registry = {
|
122783
122615
|
silent: false,
|
@@ -122881,7 +122713,7 @@ var patchSchemaCompile = function(targetState, sourceSchema, scope, demand) {
|
|
122881
122713
|
});
|
122882
122714
|
};
|
122883
122715
|
|
122884
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
122716
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/LifeCycle.js
|
122885
122717
|
var LifeCycle = (
|
122886
122718
|
/** @class */
|
122887
122719
|
function() {
|
@@ -122927,7 +122759,7 @@ var LifeCycle = (
|
|
122927
122759
|
}()
|
122928
122760
|
);
|
122929
122761
|
|
122930
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
122762
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Heart.js
|
122931
122763
|
var __extends2 = function() {
|
122932
122764
|
var extendStatics = function(d, b) {
|
122933
122765
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -123023,7 +122855,7 @@ var Heart = (
|
|
123023
122855
|
}(Subscribable)
|
123024
122856
|
);
|
123025
122857
|
|
123026
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
122858
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/checkers.js
|
123027
122859
|
var isForm = function(node) {
|
123028
122860
|
return node instanceof Form;
|
123029
122861
|
};
|
@@ -123069,7 +122901,7 @@ var isQuery = function(query) {
|
|
123069
122901
|
return query && query instanceof Query;
|
123070
122902
|
};
|
123071
122903
|
|
123072
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
122904
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Graph.js
|
123073
122905
|
var Graph = (
|
123074
122906
|
/** @class */
|
123075
122907
|
function() {
|
@@ -123121,12 +122953,12 @@ var Graph = (
|
|
123121
122953
|
}()
|
123122
122954
|
);
|
123123
122955
|
|
123124
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
122956
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/types.js
|
123125
122957
|
var isValidateResult = function(obj) {
|
123126
122958
|
return !!obj["type"] && !!obj["message"];
|
123127
122959
|
};
|
123128
122960
|
|
123129
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
122961
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/registry.js
|
123130
122962
|
var getIn2 = Path.getIn;
|
123131
122963
|
var self2 = globalThisPolyfill;
|
123132
122964
|
var defaultLanguage = "en";
|
@@ -123197,7 +123029,7 @@ var registerValidateFormats = function(formats) {
|
|
123197
123029
|
});
|
123198
123030
|
};
|
123199
123031
|
|
123200
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
123032
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/template.js
|
123201
123033
|
var render = function(result, rules) {
|
123202
123034
|
var message = result.message;
|
123203
123035
|
if (isStr(result.message)) {
|
@@ -123212,7 +123044,7 @@ var render = function(result, rules) {
|
|
123212
123044
|
return result;
|
123213
123045
|
};
|
123214
123046
|
|
123215
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
123047
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/parser.js
|
123216
123048
|
var __assign5 = function() {
|
123217
123049
|
__assign5 = Object.assign || function(t) {
|
123218
123050
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -123463,7 +123295,7 @@ var parseValidator = function(validator, options) {
|
|
123463
123295
|
}, []);
|
123464
123296
|
};
|
123465
123297
|
|
123466
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
123298
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/locale.js
|
123467
123299
|
var locale_default = {
|
123468
123300
|
en: {
|
123469
123301
|
pattern: "This field is invalid",
|
@@ -123683,7 +123515,7 @@ var locale_default = {
|
|
123683
123515
|
}
|
123684
123516
|
};
|
123685
123517
|
|
123686
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
123518
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/formats.js
|
123687
123519
|
var formats_default = {
|
123688
123520
|
url: new RegExp(
|
123689
123521
|
// protocol identifier
|
@@ -123703,7 +123535,7 @@ var formats_default = {
|
|
123703
123535
|
zip: /^[0-9]{6}$/
|
123704
123536
|
};
|
123705
123537
|
|
123706
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
123538
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/rules.js
|
123707
123539
|
var __assign6 = function() {
|
123708
123540
|
__assign6 = Object.assign || function(t) {
|
123709
123541
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -124018,7 +123850,7 @@ extendSameRules(RULES, {
|
|
124018
123850
|
});
|
124019
123851
|
var rules_default = RULES;
|
124020
123852
|
|
124021
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
123853
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/validator.js
|
124022
123854
|
var __awaiter3 = function(thisArg, _arguments, P, generator) {
|
124023
123855
|
function adopt(value) {
|
124024
123856
|
return value instanceof P ? value : new P(function(resolve) {
|
@@ -124163,7 +123995,7 @@ var validate = function(value, validator, options) {
|
|
124163
123995
|
});
|
124164
123996
|
};
|
124165
123997
|
|
124166
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
123998
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/types.js
|
124167
123999
|
var LifeCycleTypes;
|
124168
124000
|
(function(LifeCycleTypes2) {
|
124169
124001
|
LifeCycleTypes2["ON_FORM_INIT"] = "onFormInit";
|
@@ -124215,7 +124047,7 @@ var LifeCycleTypes;
|
|
124215
124047
|
LifeCycleTypes2["ON_FIELD_UNMOUNT"] = "onFieldUnmount";
|
124216
124048
|
})(LifeCycleTypes || (LifeCycleTypes = {}));
|
124217
124049
|
|
124218
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
124050
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/constants.js
|
124219
124051
|
var ReservedProperties = {
|
124220
124052
|
form: true,
|
124221
124053
|
parent: true,
|
@@ -124267,7 +124099,7 @@ var GlobalState = {
|
|
124267
124099
|
};
|
124268
124100
|
var NumberIndexReg = /^\.(\d+)/;
|
124269
124101
|
|
124270
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
124102
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/internals.js
|
124271
124103
|
var __assign7 = function() {
|
124272
124104
|
__assign7 = Object.assign || function(t) {
|
124273
124105
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -125374,7 +125206,7 @@ var getObjectParent = function(field) {
|
|
125374
125206
|
}
|
125375
125207
|
};
|
125376
125208
|
|
125377
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
125209
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Query.js
|
125378
125210
|
var output = function(field, taker) {
|
125379
125211
|
if (!field)
|
125380
125212
|
return;
|
@@ -125457,7 +125289,7 @@ var Query = (
|
|
125457
125289
|
}()
|
125458
125290
|
);
|
125459
125291
|
|
125460
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
125292
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/BaseField.js
|
125461
125293
|
var __read4 = function(o, n) {
|
125462
125294
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
125463
125295
|
if (!m)
|
@@ -125837,7 +125669,7 @@ var BaseField = (
|
|
125837
125669
|
}()
|
125838
125670
|
);
|
125839
125671
|
|
125840
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
125672
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Field.js
|
125841
125673
|
var __extends3 = function() {
|
125842
125674
|
var extendStatics = function(d, b) {
|
125843
125675
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -126478,7 +126310,7 @@ var Field = (
|
|
126478
126310
|
}(BaseField)
|
126479
126311
|
);
|
126480
126312
|
|
126481
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
126313
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/effective.js
|
126482
126314
|
var __read5 = function(o, n) {
|
126483
126315
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
126484
126316
|
if (!m)
|
@@ -126572,7 +126404,7 @@ var runEffects = function(context) {
|
|
126572
126404
|
return GlobalState.lifecycles;
|
126573
126405
|
};
|
126574
126406
|
|
126575
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
126407
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ArrayField.js
|
126576
126408
|
var __extends4 = function() {
|
126577
126409
|
var extendStatics = function(d, b) {
|
126578
126410
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -126762,7 +126594,7 @@ var ArrayField = (
|
|
126762
126594
|
}(Field)
|
126763
126595
|
);
|
126764
126596
|
|
126765
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
126597
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ObjectField.js
|
126766
126598
|
var __extends5 = function() {
|
126767
126599
|
var extendStatics = function(d, b) {
|
126768
126600
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -126823,7 +126655,7 @@ var ObjectField = (
|
|
126823
126655
|
}(Field)
|
126824
126656
|
);
|
126825
126657
|
|
126826
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
126658
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/VoidField.js
|
126827
126659
|
var __extends6 = function() {
|
126828
126660
|
var extendStatics = function(d, b) {
|
126829
126661
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -126938,7 +126770,7 @@ var VoidField = (
|
|
126938
126770
|
}(BaseField)
|
126939
126771
|
);
|
126940
126772
|
|
126941
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
126773
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Form.js
|
126942
126774
|
var __assign8 = function() {
|
126943
126775
|
__assign8 = Object.assign || function(t) {
|
126944
126776
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -127466,7 +127298,7 @@ var Form = (
|
|
127466
127298
|
}()
|
127467
127299
|
);
|
127468
127300
|
|
127469
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
127301
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFormEffects.js
|
127470
127302
|
function createFormEffect(type) {
|
127471
127303
|
return createEffectHook(type, function(form) {
|
127472
127304
|
return function(callback) {
|
@@ -127499,7 +127331,7 @@ var onFormValidateEnd = createFormEffect(LifeCycleTypes.ON_FORM_VALIDATE_END);
|
|
127499
127331
|
var onFormGraphChange = createFormEffect(LifeCycleTypes.ON_FORM_GRAPH_CHANGE);
|
127500
127332
|
var onFormLoading = createFormEffect(LifeCycleTypes.ON_FORM_LOADING);
|
127501
127333
|
|
127502
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
127334
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFieldEffects.js
|
127503
127335
|
function createFieldEffect(type) {
|
127504
127336
|
return createEffectHook(type, function(field, form) {
|
127505
127337
|
return function(pattern, callback) {
|
@@ -127544,7 +127376,7 @@ function onFieldInit(pattern, callback) {
|
|
127544
127376
|
}
|
127545
127377
|
}
|
127546
127378
|
|
127547
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
127379
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/transformer.js
|
127548
127380
|
var __read7 = function(o, n) {
|
127549
127381
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
127550
127382
|
if (!m)
|
@@ -127769,7 +127601,7 @@ var transformFieldProps = function(schema, options) {
|
|
127769
127601
|
};
|
127770
127602
|
};
|
127771
127603
|
|
127772
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
127604
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/patches.js
|
127773
127605
|
var __assign9 = function() {
|
127774
127606
|
__assign9 = Object.assign || function(t) {
|
127775
127607
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -127818,7 +127650,7 @@ var enablePolyfills = function(versions) {
|
|
127818
127650
|
}
|
127819
127651
|
};
|
127820
127652
|
|
127821
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
127653
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
127822
127654
|
var __assign10 = function() {
|
127823
127655
|
__assign10 = Object.assign || function(t) {
|
127824
127656
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -127975,7 +127807,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
127975
127807
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
127976
127808
|
};
|
127977
127809
|
|
127978
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
127810
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/schema.js
|
127979
127811
|
var Schema = (
|
127980
127812
|
/** @class */
|
127981
127813
|
function() {
|
@@ -128211,10 +128043,10 @@ var Schema = (
|
|
128211
128043
|
}()
|
128212
128044
|
);
|
128213
128045
|
|
128214
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
128046
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
128215
128047
|
var import_inquirer = __toESM(require_inquirer());
|
128216
128048
|
|
128217
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
128049
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
128218
128050
|
var import_lodash2 = __toESM(require_lodash2());
|
128219
128051
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
128220
128052
|
try {
|
@@ -128561,7 +128393,7 @@ function transformForm(schema) {
|
|
128561
128393
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
128562
128394
|
}
|
128563
128395
|
|
128564
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
128396
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
128565
128397
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
128566
128398
|
try {
|
128567
128399
|
var info = gen[key](arg);
|
@@ -129085,7 +128917,7 @@ function _prompt() {
|
|
129085
128917
|
return _prompt.apply(this, arguments);
|
129086
128918
|
}
|
129087
128919
|
|
129088
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
128920
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
129089
128921
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
129090
128922
|
try {
|
129091
128923
|
var info = gen[key](arg);
|
@@ -129325,7 +129157,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
129325
129157
|
return CLIReader2;
|
129326
129158
|
}();
|
129327
129159
|
|
129328
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129160
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
129329
129161
|
var import_inquirer2 = __toESM(require_inquirer2());
|
129330
129162
|
|
129331
129163
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
@@ -129404,7 +129236,7 @@ var I18n = class {
|
|
129404
129236
|
}
|
129405
129237
|
};
|
129406
129238
|
|
129407
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129239
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
129408
129240
|
var ZH_LOCALE = {
|
129409
129241
|
environment: {
|
129410
129242
|
node_version: "请升级 Node 版本至 LIS",
|
@@ -129431,7 +129263,7 @@ var ZH_LOCALE = {
|
|
129431
129263
|
}
|
129432
129264
|
};
|
129433
129265
|
|
129434
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129266
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
129435
129267
|
var EN_LOCALE = {
|
129436
129268
|
environment: {
|
129437
129269
|
node_version: "please upgrade node to lts version",
|
@@ -129458,14 +129290,14 @@ var EN_LOCALE = {
|
|
129458
129290
|
}
|
129459
129291
|
};
|
129460
129292
|
|
129461
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129293
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
129462
129294
|
var i18n = new I18n();
|
129463
129295
|
var localeKeys = i18n.init("zh", {
|
129464
129296
|
zh: ZH_LOCALE,
|
129465
129297
|
en: EN_LOCALE
|
129466
129298
|
});
|
129467
129299
|
|
129468
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129300
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
129469
129301
|
var import_lodash5 = __toESM(require_lodash2());
|
129470
129302
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
129471
129303
|
try {
|
@@ -129674,7 +129506,7 @@ function transformInquirerSchema(questions) {
|
|
129674
129506
|
return questions;
|
129675
129507
|
}
|
129676
129508
|
|
129677
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129509
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
129678
129510
|
var import_path4 = __toESM(require("path"));
|
129679
129511
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
129680
129512
|
try {
|
@@ -129938,7 +129770,7 @@ function _checkUseNvm() {
|
|
129938
129770
|
return _checkUseNvm.apply(this, arguments);
|
129939
129771
|
}
|
129940
129772
|
|
129941
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129773
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
129942
129774
|
function _array_like_to_array(arr, len) {
|
129943
129775
|
if (len == null || len > arr.length)
|
129944
129776
|
len = arr.length;
|
@@ -130519,7 +130351,7 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
130519
130351
|
switch (_state2.label) {
|
130520
130352
|
case 0:
|
130521
130353
|
_this.generatorCore.logger.debug("[renderDir] resourceKey=".concat(resourceKey));
|
130522
|
-
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "");
|
130354
|
+
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "").replace(".ejs", "");
|
130523
130355
|
return [
|
130524
130356
|
4,
|
130525
130357
|
api.renderTemplate(material.get(resourceKey), target, _object_spread7({}, _this.generatorContext.data || {}, parameters || {}))
|
@@ -130870,7 +130702,16 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
130870
130702
|
|
130871
130703
|
// ../../generator-utils/dist/esm/index.js
|
130872
130704
|
var import_path5 = __toESM(require("path"));
|
130873
|
-
var
|
130705
|
+
var import_utils15 = __toESM(require_cjs2());
|
130706
|
+
|
130707
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/esm/_define_property.js
|
130708
|
+
function _define_property13(obj, key, value) {
|
130709
|
+
if (key in obj) {
|
130710
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
130711
|
+
} else
|
130712
|
+
obj[key] = value;
|
130713
|
+
return obj;
|
130714
|
+
}
|
130874
130715
|
|
130875
130716
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
130876
130717
|
var import_lodash8 = __toESM(require_lodash4());
|
@@ -130890,19 +130731,6 @@ function getObjKeyMap2(obj, prefix = "") {
|
|
130890
130731
|
}
|
130891
130732
|
|
130892
130733
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
130893
|
-
function _define_property13(obj, key, value) {
|
130894
|
-
if (key in obj) {
|
130895
|
-
Object.defineProperty(obj, key, {
|
130896
|
-
value,
|
130897
|
-
enumerable: true,
|
130898
|
-
configurable: true,
|
130899
|
-
writable: true
|
130900
|
-
});
|
130901
|
-
} else {
|
130902
|
-
obj[key] = value;
|
130903
|
-
}
|
130904
|
-
return obj;
|
130905
|
-
}
|
130906
130734
|
var I18n2 = class {
|
130907
130735
|
format(msg, vars) {
|
130908
130736
|
return msg.replace(/\{(\w+)\}/g, (_match, capture) => Object.prototype.hasOwnProperty.call(vars, capture) ? vars[capture] : capture);
|
@@ -131198,11 +131026,11 @@ var SubSolutionGenerator = {
|
|
131198
131026
|
var DependenceGenerator = "@modern-js/dependence-generator";
|
131199
131027
|
|
131200
131028
|
// ../../generator-utils/dist/esm/utils/fsExist.js
|
131201
|
-
var
|
131029
|
+
var import_utils14 = __toESM(require_cjs2());
|
131202
131030
|
function fileExist(filePath) {
|
131203
131031
|
return __async(this, null, function* () {
|
131204
131032
|
try {
|
131205
|
-
const stat = yield
|
131033
|
+
const stat = yield import_utils14.fs.stat(filePath);
|
131206
131034
|
if (stat.isFile()) {
|
131207
131035
|
return true;
|
131208
131036
|
}
|
@@ -131214,9 +131042,9 @@ function fileExist(filePath) {
|
|
131214
131042
|
}
|
131215
131043
|
|
131216
131044
|
// ../../generator-utils/dist/esm/index.js
|
131217
|
-
var
|
131045
|
+
var import_utils16 = __toESM(require_cjs2());
|
131218
131046
|
function isTsProject(appDir) {
|
131219
|
-
return
|
131047
|
+
return import_utils15.fs.existsSync(import_path5.default.join(appDir, "tsconfig.json"));
|
131220
131048
|
}
|
131221
131049
|
function getModernConfigFile(appDir) {
|
131222
131050
|
return __async(this, null, function* () {
|
@@ -131286,15 +131114,15 @@ var src_default = (context, generator) => __async(void 0, null, function* () {
|
|
131286
131114
|
const isTS = configFile.endsWith("ts");
|
131287
131115
|
const { pluginName, pluginDependence } = context.config;
|
131288
131116
|
console.info(
|
131289
|
-
|
131117
|
+
import_utils16.chalk.green(`
|
131290
131118
|
[INFO]`),
|
131291
131119
|
`${i18n3.t(localeKeys3.success)}`,
|
131292
|
-
|
131120
|
+
import_utils16.chalk.yellow.bold(`${configFile}`),
|
131293
131121
|
":",
|
131294
131122
|
"\n"
|
131295
131123
|
);
|
131296
131124
|
console.info(
|
131297
|
-
|
131125
|
+
import_utils16.chalk.yellow.bold(`import ${pluginName} from '${pluginDependence}';`)
|
131298
131126
|
);
|
131299
131127
|
if (isTS) {
|
131300
131128
|
console.info(`
|
@@ -131302,9 +131130,9 @@ export default defineConfig({
|
|
131302
131130
|
...,
|
131303
131131
|
output: {
|
131304
131132
|
...,
|
131305
|
-
${
|
131133
|
+
${import_utils16.chalk.yellow.bold(`ssg: true`)},
|
131306
131134
|
},
|
131307
|
-
plugins: [..., ${
|
131135
|
+
plugins: [..., ${import_utils16.chalk.yellow.bold(`${pluginName}()`)}],
|
131308
131136
|
});
|
131309
131137
|
`);
|
131310
131138
|
} else {
|
@@ -131313,9 +131141,9 @@ module.exports = {
|
|
131313
131141
|
...,
|
131314
131142
|
output: {
|
131315
131143
|
...,
|
131316
|
-
${
|
131144
|
+
${import_utils16.chalk.yellow.bold(`ssg: true`)},
|
131317
131145
|
},
|
131318
|
-
plugins: [..., ${
|
131146
|
+
plugins: [..., ${import_utils16.chalk.yellow.bold(`${pluginName}()`)}],
|
131319
131147
|
};
|
131320
131148
|
`);
|
131321
131149
|
}
|