@modern-js/server-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 -484
- package/package.json +10 -11
package/dist/index.js
CHANGED
|
@@ -67,6 +67,79 @@ var __async = (__this, __arguments, generator) => {
|
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs
|
|
71
|
+
var require_export_star = __commonJS({
|
|
72
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs"(exports) {
|
|
73
|
+
"use strict";
|
|
74
|
+
exports._ = exports._export_star = _export_star;
|
|
75
|
+
function _export_star(from, to) {
|
|
76
|
+
Object.keys(from).forEach(function(k) {
|
|
77
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
78
|
+
Object.defineProperty(to, k, {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function() {
|
|
81
|
+
return from[k];
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
return from;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_default.cjs
|
|
92
|
+
var require_interop_require_default = __commonJS({
|
|
93
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports) {
|
|
94
|
+
"use strict";
|
|
95
|
+
exports._ = exports._interop_require_default = _interop_require_default;
|
|
96
|
+
function _interop_require_default(obj) {
|
|
97
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
|
|
103
|
+
var require_interop_require_wildcard = __commonJS({
|
|
104
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports) {
|
|
105
|
+
"use strict";
|
|
106
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
107
|
+
if (typeof WeakMap !== "function")
|
|
108
|
+
return null;
|
|
109
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
110
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
111
|
+
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
112
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
113
|
+
})(nodeInterop);
|
|
114
|
+
}
|
|
115
|
+
exports._ = exports._interop_require_wildcard = _interop_require_wildcard;
|
|
116
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
117
|
+
if (!nodeInterop && obj && obj.__esModule)
|
|
118
|
+
return obj;
|
|
119
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function")
|
|
120
|
+
return { default: obj };
|
|
121
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
122
|
+
if (cache && cache.has(obj))
|
|
123
|
+
return cache.get(obj);
|
|
124
|
+
var newObj = {};
|
|
125
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
126
|
+
for (var key in obj) {
|
|
127
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
128
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
129
|
+
if (desc && (desc.get || desc.set))
|
|
130
|
+
Object.defineProperty(newObj, key, desc);
|
|
131
|
+
else
|
|
132
|
+
newObj[key] = obj[key];
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
newObj.default = obj;
|
|
136
|
+
if (cache)
|
|
137
|
+
cache.set(obj, newObj);
|
|
138
|
+
return newObj;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
|
|
70
143
|
// ../../../toolkit/utils/dist/compiled/import-lazy/index.js
|
|
71
144
|
var require_import_lazy = __commonJS({
|
|
72
145
|
"../../../toolkit/utils/dist/compiled/import-lazy/index.js"(exports, module2) {
|
|
@@ -34890,80 +34963,37 @@ var require_compiled = __commonJS({
|
|
|
34890
34963
|
chokidar: () => chokidar2,
|
|
34891
34964
|
inquirer: () => inquirer4
|
|
34892
34965
|
});
|
|
34966
|
+
var _interop_require_default = require_interop_require_default();
|
|
34967
|
+
var _interop_require_wildcard = require_interop_require_wildcard();
|
|
34893
34968
|
var _import = require_import();
|
|
34894
|
-
var _fsextra = /* @__PURE__ */ _interop_require_default(require_fs_extra());
|
|
34895
|
-
var _ora = /* @__PURE__ */ _interop_require_default(require_ora());
|
|
34896
|
-
var _glob = /* @__PURE__ */ _interop_require_default(require_glob());
|
|
34897
|
-
var _jsyaml = /* @__PURE__ */ _interop_require_default(require_js_yaml());
|
|
34898
|
-
var _chalk = /* @__PURE__ */ _interop_require_default(require_chalk());
|
|
34899
|
-
var _debug = /* @__PURE__ */ _interop_require_default(require_debug());
|
|
34900
|
-
var _slash = /* @__PURE__ */ _interop_require_default(require_slash());
|
|
34901
|
-
var _execa = /* @__PURE__ */ _interop_require_default(require_execa());
|
|
34902
|
-
var _json5 = /* @__PURE__ */ _interop_require_default(require_json5());
|
|
34903
|
-
var _upath = /* @__PURE__ */ _interop_require_default(require_upath());
|
|
34904
|
-
var _pkgup = /* @__PURE__ */ _interop_require_default(require_pkg_up());
|
|
34969
|
+
var _fsextra = /* @__PURE__ */ _interop_require_default._(require_fs_extra());
|
|
34970
|
+
var _ora = /* @__PURE__ */ _interop_require_default._(require_ora());
|
|
34971
|
+
var _glob = /* @__PURE__ */ _interop_require_default._(require_glob());
|
|
34972
|
+
var _jsyaml = /* @__PURE__ */ _interop_require_default._(require_js_yaml());
|
|
34973
|
+
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk());
|
|
34974
|
+
var _debug = /* @__PURE__ */ _interop_require_default._(require_debug());
|
|
34975
|
+
var _slash = /* @__PURE__ */ _interop_require_default._(require_slash());
|
|
34976
|
+
var _execa = /* @__PURE__ */ _interop_require_default._(require_execa());
|
|
34977
|
+
var _json5 = /* @__PURE__ */ _interop_require_default._(require_json5());
|
|
34978
|
+
var _upath = /* @__PURE__ */ _interop_require_default._(require_upath());
|
|
34979
|
+
var _pkgup = /* @__PURE__ */ _interop_require_default._(require_pkg_up());
|
|
34905
34980
|
var _nanoid = require_nanoid();
|
|
34906
|
-
var _semver = /* @__PURE__ */ _interop_require_default(require_semver());
|
|
34907
|
-
var _dotenv = /* @__PURE__ */ _interop_require_default(require_dotenv());
|
|
34908
|
-
var _lodash = /* @__PURE__ */ _interop_require_default(require_lodash2());
|
|
34909
|
-
var _globby = /* @__PURE__ */ _interop_require_default(require_globby());
|
|
34910
|
-
var _address = /* @__PURE__ */ _interop_require_default(require_address());
|
|
34911
|
-
var _signale = /* @__PURE__ */ _interop_require_wildcard(require_signale());
|
|
34912
|
-
var _urljoin = /* @__PURE__ */ _interop_require_default(require_url_join());
|
|
34913
|
-
var _minimist = /* @__PURE__ */ _interop_require_default(require_minimist());
|
|
34914
|
-
var _fastglob = /* @__PURE__ */ _interop_require_default(require_fast_glob());
|
|
34915
|
-
var _filesize = /* @__PURE__ */ _interop_require_default(require_filesize());
|
|
34916
|
-
var _gzipsize = /* @__PURE__ */ _interop_require_default(require_gzip_size());
|
|
34917
|
-
var _stripansi = /* @__PURE__ */ _interop_require_default(require_strip_ansi());
|
|
34918
|
-
var _dotenvexpand = /* @__PURE__ */ _interop_require_default(require_dotenv_expand());
|
|
34919
|
-
var _browserslist = /* @__PURE__ */ _interop_require_default(require_browserslist());
|
|
34920
|
-
var _recursivereaddir = /* @__PURE__ */ _interop_require_default(require_recursive_readdir());
|
|
34981
|
+
var _semver = /* @__PURE__ */ _interop_require_default._(require_semver());
|
|
34982
|
+
var _dotenv = /* @__PURE__ */ _interop_require_default._(require_dotenv());
|
|
34983
|
+
var _lodash = /* @__PURE__ */ _interop_require_default._(require_lodash2());
|
|
34984
|
+
var _globby = /* @__PURE__ */ _interop_require_default._(require_globby());
|
|
34985
|
+
var _address = /* @__PURE__ */ _interop_require_default._(require_address());
|
|
34986
|
+
var _signale = /* @__PURE__ */ _interop_require_wildcard._(require_signale());
|
|
34987
|
+
var _urljoin = /* @__PURE__ */ _interop_require_default._(require_url_join());
|
|
34988
|
+
var _minimist = /* @__PURE__ */ _interop_require_default._(require_minimist());
|
|
34989
|
+
var _fastglob = /* @__PURE__ */ _interop_require_default._(require_fast_glob());
|
|
34990
|
+
var _filesize = /* @__PURE__ */ _interop_require_default._(require_filesize());
|
|
34991
|
+
var _gzipsize = /* @__PURE__ */ _interop_require_default._(require_gzip_size());
|
|
34992
|
+
var _stripansi = /* @__PURE__ */ _interop_require_default._(require_strip_ansi());
|
|
34993
|
+
var _dotenvexpand = /* @__PURE__ */ _interop_require_default._(require_dotenv_expand());
|
|
34994
|
+
var _browserslist = /* @__PURE__ */ _interop_require_default._(require_browserslist());
|
|
34995
|
+
var _recursivereaddir = /* @__PURE__ */ _interop_require_default._(require_recursive_readdir());
|
|
34921
34996
|
var _commander = require_commander();
|
|
34922
|
-
function _interop_require_default(obj) {
|
|
34923
|
-
return obj && obj.__esModule ? obj : {
|
|
34924
|
-
default: obj
|
|
34925
|
-
};
|
|
34926
|
-
}
|
|
34927
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
34928
|
-
if (typeof WeakMap !== "function")
|
|
34929
|
-
return null;
|
|
34930
|
-
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
34931
|
-
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
34932
|
-
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
34933
|
-
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
34934
|
-
})(nodeInterop);
|
|
34935
|
-
}
|
|
34936
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
34937
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
34938
|
-
return obj;
|
|
34939
|
-
}
|
|
34940
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
34941
|
-
return {
|
|
34942
|
-
default: obj
|
|
34943
|
-
};
|
|
34944
|
-
}
|
|
34945
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
34946
|
-
if (cache && cache.has(obj)) {
|
|
34947
|
-
return cache.get(obj);
|
|
34948
|
-
}
|
|
34949
|
-
var newObj = {};
|
|
34950
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
34951
|
-
for (var key in obj) {
|
|
34952
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
34953
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
34954
|
-
if (desc && (desc.get || desc.set)) {
|
|
34955
|
-
Object.defineProperty(newObj, key, desc);
|
|
34956
|
-
} else {
|
|
34957
|
-
newObj[key] = obj[key];
|
|
34958
|
-
}
|
|
34959
|
-
}
|
|
34960
|
-
}
|
|
34961
|
-
newObj.default = obj;
|
|
34962
|
-
if (cache) {
|
|
34963
|
-
cache.set(obj, newObj);
|
|
34964
|
-
}
|
|
34965
|
-
return newObj;
|
|
34966
|
-
}
|
|
34967
34997
|
var mime2 = _import.Import.lazy("../compiled/mime-types", require);
|
|
34968
34998
|
var chokidar2 = _import.Import.lazy("../compiled/chokidar", require);
|
|
34969
34999
|
var inquirer4 = _import.Import.lazy("../compiled/inquirer", require);
|
|
@@ -35113,6 +35143,8 @@ var require_chainId = __commonJS({
|
|
|
35113
35143
|
BOTTOM_TEMPLATE: "bottom-template",
|
|
35114
35144
|
/** HtmlCrossOriginPlugin */
|
|
35115
35145
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
|
35146
|
+
/** HtmlNoncePlugin */
|
|
35147
|
+
HTML_NONCE: "html-nonce",
|
|
35116
35148
|
/** MiniCssExtractPlugin */
|
|
35117
35149
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
35118
35150
|
/** ReactFastRefreshPlugin */
|
|
@@ -35201,20 +35233,8 @@ var require_constants = __commonJS({
|
|
|
35201
35233
|
PLUGIN_SCHEMAS: () => PLUGIN_SCHEMAS,
|
|
35202
35234
|
DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS: () => DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS
|
|
35203
35235
|
});
|
|
35204
|
-
_export_star(
|
|
35205
|
-
|
|
35206
|
-
Object.keys(from).forEach(function(k) {
|
|
35207
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
35208
|
-
Object.defineProperty(to, k, {
|
|
35209
|
-
enumerable: true,
|
|
35210
|
-
get: function() {
|
|
35211
|
-
return from[k];
|
|
35212
|
-
}
|
|
35213
|
-
});
|
|
35214
|
-
}
|
|
35215
|
-
});
|
|
35216
|
-
return from;
|
|
35217
|
-
}
|
|
35236
|
+
var _export_star = require_export_star();
|
|
35237
|
+
_export_star._(require_chainId(), exports);
|
|
35218
35238
|
var ROUTE_SPEC_FILE = "route.json";
|
|
35219
35239
|
var MAIN_ENTRY_NAME = "main";
|
|
35220
35240
|
var SERVER_BUNDLE_DIRECTORY = "bundles";
|
|
@@ -35827,12 +35847,8 @@ var require_ensure = __commonJS({
|
|
|
35827
35847
|
ensureAbsolutePath: () => ensureAbsolutePath,
|
|
35828
35848
|
ensureArray: () => ensureArray
|
|
35829
35849
|
});
|
|
35830
|
-
var
|
|
35831
|
-
|
|
35832
|
-
return obj && obj.__esModule ? obj : {
|
|
35833
|
-
default: obj
|
|
35834
|
-
};
|
|
35835
|
-
}
|
|
35850
|
+
var _interop_require_default = require_interop_require_default();
|
|
35851
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
35836
35852
|
var ensureAbsolutePath = (base, filePath) => _path.default.isAbsolute(filePath) ? filePath : _path.default.resolve(base, filePath);
|
|
35837
35853
|
var ensureArray = (params) => {
|
|
35838
35854
|
if (Array.isArray(params)) {
|
|
@@ -35868,16 +35884,12 @@ var require_project = __commonJS({
|
|
|
35868
35884
|
isReact18: () => isReact182,
|
|
35869
35885
|
isTypescript: () => isTypescript
|
|
35870
35886
|
});
|
|
35871
|
-
var
|
|
35887
|
+
var _interop_require_default = require_interop_require_default();
|
|
35888
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
35872
35889
|
var _commands = require_commands();
|
|
35873
35890
|
var _compiled = require_compiled();
|
|
35874
35891
|
var _common = require_common();
|
|
35875
35892
|
var _ensure = require_ensure();
|
|
35876
|
-
function _interop_require_default(obj) {
|
|
35877
|
-
return obj && obj.__esModule ? obj : {
|
|
35878
|
-
default: obj
|
|
35879
|
-
};
|
|
35880
|
-
}
|
|
35881
35893
|
var debug = (0, _common.createDebugger)("judge-depExists");
|
|
35882
35894
|
var isDepExists = (appDirectory, name) => {
|
|
35883
35895
|
const pkgPath = _path.default.resolve(appDirectory, "./package.json");
|
|
@@ -35944,24 +35956,12 @@ var require_is = __commonJS({
|
|
|
35944
35956
|
Object.defineProperty(exports, "__esModule", {
|
|
35945
35957
|
value: true
|
|
35946
35958
|
});
|
|
35947
|
-
_export_star(
|
|
35948
|
-
_export_star(
|
|
35949
|
-
_export_star(
|
|
35950
|
-
_export_star(
|
|
35951
|
-
_export_star(
|
|
35952
|
-
|
|
35953
|
-
Object.keys(from).forEach(function(k) {
|
|
35954
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
35955
|
-
Object.defineProperty(to, k, {
|
|
35956
|
-
enumerable: true,
|
|
35957
|
-
get: function() {
|
|
35958
|
-
return from[k];
|
|
35959
|
-
}
|
|
35960
|
-
});
|
|
35961
|
-
}
|
|
35962
|
-
});
|
|
35963
|
-
return from;
|
|
35964
|
-
}
|
|
35959
|
+
var _export_star = require_export_star();
|
|
35960
|
+
_export_star._(require_env(), exports);
|
|
35961
|
+
_export_star._(require_platform(), exports);
|
|
35962
|
+
_export_star._(require_type(), exports);
|
|
35963
|
+
_export_star._(require_config(), exports);
|
|
35964
|
+
_export_star._(require_project(), exports);
|
|
35965
35965
|
}
|
|
35966
35966
|
});
|
|
35967
35967
|
|
|
@@ -36063,17 +36063,13 @@ var require_data = __commonJS({
|
|
|
36063
36063
|
readTsConfig: () => readTsConfig,
|
|
36064
36064
|
readTsConfigByFile: () => readTsConfigByFile2
|
|
36065
36065
|
});
|
|
36066
|
-
var
|
|
36067
|
-
var
|
|
36066
|
+
var _interop_require_default = require_interop_require_default();
|
|
36067
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
36068
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
36068
36069
|
var _compiled = require_compiled();
|
|
36069
36070
|
var _constants = require_constants();
|
|
36070
36071
|
var _is = require_is();
|
|
36071
36072
|
var _package = require_package2();
|
|
36072
|
-
function _interop_require_default(obj) {
|
|
36073
|
-
return obj && obj.__esModule ? obj : {
|
|
36074
|
-
default: obj
|
|
36075
|
-
};
|
|
36076
|
-
}
|
|
36077
36073
|
var MAX_TIMES = 5;
|
|
36078
36074
|
function getPackageManager2() {
|
|
36079
36075
|
return __async(this, arguments, function* (cwd = process.cwd()) {
|
|
@@ -36205,29 +36201,13 @@ var require_get = __commonJS({
|
|
|
36205
36201
|
getServerConfig: () => getServerConfig,
|
|
36206
36202
|
getTargetDir: () => getTargetDir
|
|
36207
36203
|
});
|
|
36208
|
-
var
|
|
36204
|
+
var _export_star = require_export_star();
|
|
36205
|
+
var _interop_require_default = require_interop_require_default();
|
|
36206
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
36209
36207
|
var _constants = require_constants();
|
|
36210
36208
|
var _fs = require_fs();
|
|
36211
|
-
_export_star(require_data(), exports);
|
|
36212
|
-
_export_star(require_config2(), exports);
|
|
36213
|
-
function _export_star(from, to) {
|
|
36214
|
-
Object.keys(from).forEach(function(k) {
|
|
36215
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
36216
|
-
Object.defineProperty(to, k, {
|
|
36217
|
-
enumerable: true,
|
|
36218
|
-
get: function() {
|
|
36219
|
-
return from[k];
|
|
36220
|
-
}
|
|
36221
|
-
});
|
|
36222
|
-
}
|
|
36223
|
-
});
|
|
36224
|
-
return from;
|
|
36225
|
-
}
|
|
36226
|
-
function _interop_require_default(obj) {
|
|
36227
|
-
return obj && obj.__esModule ? obj : {
|
|
36228
|
-
default: obj
|
|
36229
|
-
};
|
|
36230
|
-
}
|
|
36209
|
+
_export_star._(require_data(), exports);
|
|
36210
|
+
_export_star._(require_config2(), exports);
|
|
36231
36211
|
var getServerConfig = (appDirectory, configFile) => __async(exports, null, function* () {
|
|
36232
36212
|
const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
|
|
36233
36213
|
return configFilePath;
|
|
@@ -36239,6 +36219,21 @@ var require_get = __commonJS({
|
|
|
36239
36219
|
}
|
|
36240
36220
|
});
|
|
36241
36221
|
|
|
36222
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs
|
|
36223
|
+
var require_define_property = __commonJS({
|
|
36224
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs"(exports) {
|
|
36225
|
+
"use strict";
|
|
36226
|
+
exports._ = exports._define_property = _define_property15;
|
|
36227
|
+
function _define_property15(obj, key, value) {
|
|
36228
|
+
if (key in obj) {
|
|
36229
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
36230
|
+
} else
|
|
36231
|
+
obj[key] = value;
|
|
36232
|
+
return obj;
|
|
36233
|
+
}
|
|
36234
|
+
}
|
|
36235
|
+
});
|
|
36236
|
+
|
|
36242
36237
|
// ../../../toolkit/utils/dist/cjs/cli/logger.js
|
|
36243
36238
|
var require_logger = __commonJS({
|
|
36244
36239
|
"../../../toolkit/utils/dist/cjs/cli/logger.js"(exports) {
|
|
@@ -36257,25 +36252,9 @@ var require_logger = __commonJS({
|
|
|
36257
36252
|
Logger: () => Logger,
|
|
36258
36253
|
logger: () => logger2
|
|
36259
36254
|
});
|
|
36260
|
-
var
|
|
36261
|
-
|
|
36262
|
-
|
|
36263
|
-
Object.defineProperty(obj, key, {
|
|
36264
|
-
value,
|
|
36265
|
-
enumerable: true,
|
|
36266
|
-
configurable: true,
|
|
36267
|
-
writable: true
|
|
36268
|
-
});
|
|
36269
|
-
} else {
|
|
36270
|
-
obj[key] = value;
|
|
36271
|
-
}
|
|
36272
|
-
return obj;
|
|
36273
|
-
}
|
|
36274
|
-
function _interop_require_default(obj) {
|
|
36275
|
-
return obj && obj.__esModule ? obj : {
|
|
36276
|
-
default: obj
|
|
36277
|
-
};
|
|
36278
|
-
}
|
|
36255
|
+
var _define_property15 = require_define_property();
|
|
36256
|
+
var _interop_require_default = require_interop_require_default();
|
|
36257
|
+
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk());
|
|
36279
36258
|
var LOG_LEVEL = {
|
|
36280
36259
|
error: 0,
|
|
36281
36260
|
warn: 1,
|
|
@@ -36359,10 +36338,10 @@ ${_chalk.default.grey(rest.join("\n"))}`;
|
|
|
36359
36338
|
return longestLabel;
|
|
36360
36339
|
}
|
|
36361
36340
|
constructor(options = {}) {
|
|
36362
|
-
_define_property15(this, "level", void 0);
|
|
36363
|
-
_define_property15(this, "config", void 0);
|
|
36364
|
-
_define_property15(this, "types", void 0);
|
|
36365
|
-
_define_property15(this, "longestLabel", void 0);
|
|
36341
|
+
_define_property15._(this, "level", void 0);
|
|
36342
|
+
_define_property15._(this, "config", void 0);
|
|
36343
|
+
_define_property15._(this, "types", void 0);
|
|
36344
|
+
_define_property15._(this, "longestLabel", void 0);
|
|
36366
36345
|
this.level = options.level || LOG_TYPES.log.level;
|
|
36367
36346
|
this.config = __spreadValues(__spreadValues({}, DEFAULT_CONFIG), options.config || {});
|
|
36368
36347
|
this.types = __spreadValues(__spreadValues({}, LOG_TYPES), options.types || {});
|
|
@@ -36435,16 +36414,12 @@ var require_alias = __commonJS({
|
|
|
36435
36414
|
getAliasConfig: () => getAliasConfig,
|
|
36436
36415
|
getUserAlias: () => getUserAlias
|
|
36437
36416
|
});
|
|
36438
|
-
var
|
|
36439
|
-
var
|
|
36417
|
+
var _interop_require_default = require_interop_require_default();
|
|
36418
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
36419
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
36440
36420
|
var _compiled = require_compiled();
|
|
36441
36421
|
var _get = require_get();
|
|
36442
36422
|
var _applyOptionsChain = require_applyOptionsChain();
|
|
36443
|
-
function _interop_require_default(obj) {
|
|
36444
|
-
return obj && obj.__esModule ? obj : {
|
|
36445
|
-
default: obj
|
|
36446
|
-
};
|
|
36447
|
-
}
|
|
36448
36423
|
var validAlias = (modernConfig, { tsconfigPath }) => {
|
|
36449
36424
|
const { source: { alias } } = modernConfig;
|
|
36450
36425
|
if (!alias) {
|
|
@@ -36520,15 +36495,11 @@ var require_path = __commonJS({
|
|
|
36520
36495
|
removeTailSlash: () => removeTailSlash,
|
|
36521
36496
|
removeSlash: () => removeSlash
|
|
36522
36497
|
});
|
|
36523
|
-
var
|
|
36524
|
-
var
|
|
36525
|
-
var
|
|
36498
|
+
var _interop_require_default = require_interop_require_default();
|
|
36499
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
36500
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
36501
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
36526
36502
|
var _compiled = require_compiled();
|
|
36527
|
-
function _interop_require_default(obj) {
|
|
36528
|
-
return obj && obj.__esModule ? obj : {
|
|
36529
|
-
default: obj
|
|
36530
|
-
};
|
|
36531
|
-
}
|
|
36532
36503
|
var isPathString = (test) => _path.default.posix.basename(test) !== test || _path.default.win32.basename(test) !== test;
|
|
36533
36504
|
var isRelativePath = (test) => /^\.\.?($|[\\/])/.test(test);
|
|
36534
36505
|
var normalizeOutputPath = (s) => s.replace(/\\/g, "\\\\");
|
|
@@ -36692,54 +36663,6 @@ var require_babel = __commonJS({
|
|
|
36692
36663
|
}
|
|
36693
36664
|
});
|
|
36694
36665
|
|
|
36695
|
-
// ../../../toolkit/utils/dist/cjs/cli/generateMetaTags.js
|
|
36696
|
-
var require_generateMetaTags = __commonJS({
|
|
36697
|
-
"../../../toolkit/utils/dist/cjs/cli/generateMetaTags.js"(exports) {
|
|
36698
|
-
"use strict";
|
|
36699
|
-
Object.defineProperty(exports, "__esModule", {
|
|
36700
|
-
value: true
|
|
36701
|
-
});
|
|
36702
|
-
Object.defineProperty(exports, "generateMetaTags", {
|
|
36703
|
-
enumerable: true,
|
|
36704
|
-
get: () => generateMetaTags
|
|
36705
|
-
});
|
|
36706
|
-
var tagObjectToString = (tagDefinition) => {
|
|
36707
|
-
const attributes = Object.keys(tagDefinition.attributes || {}).filter((attributeName) => tagDefinition.attributes[attributeName] !== false).map((attributeName) => {
|
|
36708
|
-
if (tagDefinition.attributes[attributeName] === true) {
|
|
36709
|
-
return attributeName;
|
|
36710
|
-
}
|
|
36711
|
-
return `${attributeName}="${tagDefinition.attributes[attributeName]}"`;
|
|
36712
|
-
});
|
|
36713
|
-
return `<${[
|
|
36714
|
-
tagDefinition.tagName
|
|
36715
|
-
].concat(attributes).join(" ")}>${tagDefinition.innerHTML || ""}${tagDefinition.voidTag ? "" : `</${tagDefinition.tagName}>`}`;
|
|
36716
|
-
};
|
|
36717
|
-
var generateMetaTags = (metaOptions) => {
|
|
36718
|
-
if (!metaOptions) {
|
|
36719
|
-
return "";
|
|
36720
|
-
}
|
|
36721
|
-
const metaTagAttributeObjects = Object.keys(metaOptions).map((metaName) => {
|
|
36722
|
-
const metaTagContent = metaOptions[metaName];
|
|
36723
|
-
return typeof metaTagContent === "string" ? {
|
|
36724
|
-
name: metaName,
|
|
36725
|
-
content: metaTagContent
|
|
36726
|
-
} : metaTagContent;
|
|
36727
|
-
}).filter((attribute) => attribute !== false);
|
|
36728
|
-
return metaTagAttributeObjects.map((metaTagAttributes) => {
|
|
36729
|
-
if (metaTagAttributes === false) {
|
|
36730
|
-
throw new Error("Invalid meta tag");
|
|
36731
|
-
}
|
|
36732
|
-
return {
|
|
36733
|
-
tagName: "meta",
|
|
36734
|
-
voidTag: true,
|
|
36735
|
-
attributes: metaTagAttributes
|
|
36736
|
-
};
|
|
36737
|
-
}).reduce((memo, tagObject) => `${memo}
|
|
36738
|
-
${tagObjectToString(tagObject)}`, "");
|
|
36739
|
-
};
|
|
36740
|
-
}
|
|
36741
|
-
});
|
|
36742
|
-
|
|
36743
36666
|
// ../../../toolkit/utils/dist/cjs/cli/monorepo.js
|
|
36744
36667
|
var require_monorepo = __commonJS({
|
|
36745
36668
|
"../../../toolkit/utils/dist/cjs/cli/monorepo.js"(exports) {
|
|
@@ -36763,14 +36686,10 @@ var require_monorepo = __commonJS({
|
|
|
36763
36686
|
findMonorepoRoot: () => findMonorepoRoot,
|
|
36764
36687
|
getMonorepoPackages: () => getMonorepoPackages2
|
|
36765
36688
|
});
|
|
36766
|
-
var
|
|
36767
|
-
var
|
|
36689
|
+
var _interop_require_default = require_interop_require_default();
|
|
36690
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
36691
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
36768
36692
|
var _compiled = require_compiled();
|
|
36769
|
-
function _interop_require_default(obj) {
|
|
36770
|
-
return obj && obj.__esModule ? obj : {
|
|
36771
|
-
default: obj
|
|
36772
|
-
};
|
|
36773
|
-
}
|
|
36774
36693
|
var PACKAGE_MAX_DEPTH = 5;
|
|
36775
36694
|
var WORKSPACE_FILES = {
|
|
36776
36695
|
YARN: "package.json",
|
|
@@ -36858,14 +36777,10 @@ var require_pathSerializer = __commonJS({
|
|
|
36858
36777
|
applyMatcherReplacement: () => applyMatcherReplacement,
|
|
36859
36778
|
createDefaultPathMatchers: () => createDefaultPathMatchers
|
|
36860
36779
|
});
|
|
36861
|
-
var
|
|
36862
|
-
var
|
|
36780
|
+
var _interop_require_default = require_interop_require_default();
|
|
36781
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
36782
|
+
var _lodash = /* @__PURE__ */ _interop_require_default._(require_lodash2());
|
|
36863
36783
|
var _path = require_path();
|
|
36864
|
-
function _interop_require_default(obj) {
|
|
36865
|
-
return obj && obj.__esModule ? obj : {
|
|
36866
|
-
default: obj
|
|
36867
|
-
};
|
|
36868
|
-
}
|
|
36869
36784
|
var matchUpwardPathsAsUnknown = (p) => (0, _lodash.default)((0, _path.upwardPaths)((0, _path.normalizeToPosixPath)(p))).map((match) => ({
|
|
36870
36785
|
match,
|
|
36871
36786
|
mark: "unknown"
|
|
@@ -36923,14 +36838,10 @@ var require_port = __commonJS({
|
|
|
36923
36838
|
enumerable: true,
|
|
36924
36839
|
get: () => getPort
|
|
36925
36840
|
});
|
|
36926
|
-
var
|
|
36841
|
+
var _interop_require_default = require_interop_require_default();
|
|
36842
|
+
var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
|
|
36927
36843
|
var _compiled = require_compiled();
|
|
36928
36844
|
var _logger = require_logger();
|
|
36929
|
-
function _interop_require_default(obj) {
|
|
36930
|
-
return obj && obj.__esModule ? obj : {
|
|
36931
|
-
default: obj
|
|
36932
|
-
};
|
|
36933
|
-
}
|
|
36934
36845
|
var getPort = (_0, ..._1) => __async(exports, [_0, ..._1], function* (port, { tryLimits = 20, strictPort = false } = {}) {
|
|
36935
36846
|
if (typeof port === "string") {
|
|
36936
36847
|
port = parseInt(port, 10);
|
|
@@ -36993,15 +36904,11 @@ var require_prettyInstructions = __commonJS({
|
|
|
36993
36904
|
getAddressUrls: () => getAddressUrls,
|
|
36994
36905
|
prettyInstructions: () => prettyInstructions
|
|
36995
36906
|
});
|
|
36996
|
-
var
|
|
36907
|
+
var _interop_require_default = require_interop_require_default();
|
|
36908
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
36997
36909
|
var _compiled = require_compiled();
|
|
36998
36910
|
var _is = require_is();
|
|
36999
36911
|
var _constants = require_constants();
|
|
37000
|
-
function _interop_require_default(obj) {
|
|
37001
|
-
return obj && obj.__esModule ? obj : {
|
|
37002
|
-
default: obj
|
|
37003
|
-
};
|
|
37004
|
-
}
|
|
37005
36912
|
var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
|
|
37006
36913
|
var getIpv4Interfaces = () => {
|
|
37007
36914
|
const interfaces = _os.default.networkInterfaces();
|
|
@@ -37205,14 +37112,10 @@ var require_routes = __commonJS({
|
|
|
37205
37112
|
enumerable: true,
|
|
37206
37113
|
get: () => getRouteId
|
|
37207
37114
|
});
|
|
37208
|
-
var
|
|
37115
|
+
var _interop_require_default = require_interop_require_default();
|
|
37116
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
37209
37117
|
var _constants = require_constants();
|
|
37210
37118
|
var _path1 = require_path();
|
|
37211
|
-
function _interop_require_default(obj) {
|
|
37212
|
-
return obj && obj.__esModule ? obj : {
|
|
37213
|
-
default: obj
|
|
37214
|
-
};
|
|
37215
|
-
}
|
|
37216
37119
|
var getPathWithoutExt = (filename) => {
|
|
37217
37120
|
const extname = _path.default.extname(filename);
|
|
37218
37121
|
return filename.slice(0, -extname.length);
|
|
@@ -37242,14 +37145,10 @@ var require_runtimeExports = __commonJS({
|
|
|
37242
37145
|
enumerable: true,
|
|
37243
37146
|
get: () => createRuntimeExportsUtils
|
|
37244
37147
|
});
|
|
37245
|
-
var
|
|
37148
|
+
var _interop_require_default = require_interop_require_default();
|
|
37149
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
37246
37150
|
var _compiled = require_compiled();
|
|
37247
37151
|
var _path1 = require_path();
|
|
37248
|
-
function _interop_require_default(obj) {
|
|
37249
|
-
return obj && obj.__esModule ? obj : {
|
|
37250
|
-
default: obj
|
|
37251
|
-
};
|
|
37252
|
-
}
|
|
37253
37152
|
var memo = (fn) => {
|
|
37254
37153
|
const cache = /* @__PURE__ */ new Map();
|
|
37255
37154
|
return (...params) => {
|
|
@@ -37326,13 +37225,9 @@ var require_watch = __commonJS({
|
|
|
37326
37225
|
WatchChangeType: () => WatchChangeType,
|
|
37327
37226
|
watch: () => watch
|
|
37328
37227
|
});
|
|
37329
|
-
var
|
|
37228
|
+
var _interop_require_default = require_interop_require_default();
|
|
37229
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
37330
37230
|
var _compiled = require_compiled();
|
|
37331
|
-
function _interop_require_default(obj) {
|
|
37332
|
-
return obj && obj.__esModule ? obj : {
|
|
37333
|
-
default: obj
|
|
37334
|
-
};
|
|
37335
|
-
}
|
|
37336
37231
|
var WatchChangeType = {
|
|
37337
37232
|
ADD: "add",
|
|
37338
37233
|
UNLINK: "unlink",
|
|
@@ -37382,43 +37277,30 @@ var require_cli = __commonJS({
|
|
|
37382
37277
|
Object.defineProperty(exports, "__esModule", {
|
|
37383
37278
|
value: true
|
|
37384
37279
|
});
|
|
37385
|
-
_export_star(
|
|
37386
|
-
_export_star(
|
|
37387
|
-
_export_star(
|
|
37388
|
-
_export_star(
|
|
37389
|
-
_export_star(
|
|
37390
|
-
_export_star(
|
|
37391
|
-
_export_star(
|
|
37392
|
-
_export_star(
|
|
37393
|
-
_export_star(
|
|
37394
|
-
_export_star(
|
|
37395
|
-
_export_star(
|
|
37396
|
-
_export_star(require_logger(), exports);
|
|
37397
|
-
_export_star(require_monorepo(), exports);
|
|
37398
|
-
_export_star(require_package2(), exports);
|
|
37399
|
-
_export_star(require_path(), exports);
|
|
37400
|
-
_export_star(require_pathSerializer(), exports);
|
|
37401
|
-
_export_star(require_port(), exports);
|
|
37402
|
-
_export_star(require_prettyInstructions(), exports);
|
|
37403
|
-
_export_star(require_print(), exports);
|
|
37404
|
-
_export_star(require_require(), exports);
|
|
37405
|
-
_export_star(require_routes(), exports);
|
|
37406
|
-
_export_star(require_runtimeExports(), exports);
|
|
37407
|
-
_export_star(require_test(), exports);
|
|
37408
|
-
_export_star(require_watch(), exports);
|
|
37409
|
-
function _export_star(from, to) {
|
|
37410
|
-
Object.keys(from).forEach(function(k) {
|
|
37411
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
37412
|
-
Object.defineProperty(to, k, {
|
|
37413
|
-
enumerable: true,
|
|
37414
|
-
get: function() {
|
|
37415
|
-
return from[k];
|
|
37416
|
-
}
|
|
37417
|
-
});
|
|
37418
|
-
}
|
|
37419
|
-
});
|
|
37420
|
-
return from;
|
|
37421
|
-
}
|
|
37280
|
+
var _export_star = require_export_star();
|
|
37281
|
+
_export_star._(require_constants(), exports);
|
|
37282
|
+
_export_star._(require_get(), exports);
|
|
37283
|
+
_export_star._(require_is(), exports);
|
|
37284
|
+
_export_star._(require_alias(), exports);
|
|
37285
|
+
_export_star._(require_applyOptionsChain(), exports);
|
|
37286
|
+
_export_star._(require_babel(), exports);
|
|
37287
|
+
_export_star._(require_commands(), exports);
|
|
37288
|
+
_export_star._(require_common(), exports);
|
|
37289
|
+
_export_star._(require_ensure(), exports);
|
|
37290
|
+
_export_star._(require_fs(), exports);
|
|
37291
|
+
_export_star._(require_logger(), exports);
|
|
37292
|
+
_export_star._(require_monorepo(), exports);
|
|
37293
|
+
_export_star._(require_package2(), exports);
|
|
37294
|
+
_export_star._(require_path(), exports);
|
|
37295
|
+
_export_star._(require_pathSerializer(), exports);
|
|
37296
|
+
_export_star._(require_port(), exports);
|
|
37297
|
+
_export_star._(require_prettyInstructions(), exports);
|
|
37298
|
+
_export_star._(require_print(), exports);
|
|
37299
|
+
_export_star._(require_require(), exports);
|
|
37300
|
+
_export_star._(require_routes(), exports);
|
|
37301
|
+
_export_star._(require_runtimeExports(), exports);
|
|
37302
|
+
_export_star._(require_test(), exports);
|
|
37303
|
+
_export_star._(require_watch(), exports);
|
|
37422
37304
|
}
|
|
37423
37305
|
});
|
|
37424
37306
|
|
|
@@ -37429,22 +37311,10 @@ var require_cjs = __commonJS({
|
|
|
37429
37311
|
Object.defineProperty(exports, "__esModule", {
|
|
37430
37312
|
value: true
|
|
37431
37313
|
});
|
|
37432
|
-
_export_star(
|
|
37433
|
-
_export_star(
|
|
37434
|
-
_export_star(
|
|
37435
|
-
|
|
37436
|
-
Object.keys(from).forEach(function(k) {
|
|
37437
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
37438
|
-
Object.defineProperty(to, k, {
|
|
37439
|
-
enumerable: true,
|
|
37440
|
-
get: function() {
|
|
37441
|
-
return from[k];
|
|
37442
|
-
}
|
|
37443
|
-
});
|
|
37444
|
-
}
|
|
37445
|
-
});
|
|
37446
|
-
return from;
|
|
37447
|
-
}
|
|
37314
|
+
var _export_star = require_export_star();
|
|
37315
|
+
_export_star._(require_compiled(), exports);
|
|
37316
|
+
_export_star._(require_cli(), exports);
|
|
37317
|
+
_export_star._(require_import(), exports);
|
|
37448
37318
|
}
|
|
37449
37319
|
});
|
|
37450
37320
|
|
|
@@ -117672,6 +117542,15 @@ var import_path6 = __toESM(require("path"));
|
|
|
117672
117542
|
var import_path = __toESM(require("path"));
|
|
117673
117543
|
var import_utils3 = __toESM(require_cjs());
|
|
117674
117544
|
|
|
117545
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/esm/_define_property.js
|
|
117546
|
+
function _define_property(obj, key, value) {
|
|
117547
|
+
if (key in obj) {
|
|
117548
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
117549
|
+
} else
|
|
117550
|
+
obj[key] = value;
|
|
117551
|
+
return obj;
|
|
117552
|
+
}
|
|
117553
|
+
|
|
117675
117554
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
117676
117555
|
var import_lodash2 = __toESM(require_lodash3());
|
|
117677
117556
|
|
|
@@ -117690,19 +117569,6 @@ function getObjKeyMap(obj, prefix = "") {
|
|
|
117690
117569
|
}
|
|
117691
117570
|
|
|
117692
117571
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
117693
|
-
function _define_property(obj, key, value) {
|
|
117694
|
-
if (key in obj) {
|
|
117695
|
-
Object.defineProperty(obj, key, {
|
|
117696
|
-
value,
|
|
117697
|
-
enumerable: true,
|
|
117698
|
-
configurable: true,
|
|
117699
|
-
writable: true
|
|
117700
|
-
});
|
|
117701
|
-
} else {
|
|
117702
|
-
obj[key] = value;
|
|
117703
|
-
}
|
|
117704
|
-
return obj;
|
|
117705
|
-
}
|
|
117706
117572
|
var I18n = class {
|
|
117707
117573
|
format(msg, vars) {
|
|
117708
117574
|
return msg.replace(/\{(\w+)\}/g, (_match, capture) => Object.prototype.hasOwnProperty.call(vars, capture) ? vars[capture] : capture);
|
|
@@ -118151,11 +118017,18 @@ function getModernPluginVersion(_0, _1) {
|
|
|
118151
118017
|
if (!packageName.startsWith("@modern-js") || packageName.includes("electron") || packageName.includes("codesmith") || packageName.includes("easy-form") || packageName.startsWith("@modern-js-reduck")) {
|
|
118152
118018
|
return getLatetPluginVersion("latest");
|
|
118153
118019
|
}
|
|
118154
|
-
|
|
118020
|
+
let pkgPath = import_path.default.join(require.resolve(SolutionToolsMap[solution], {
|
|
118155
118021
|
paths: [
|
|
118156
118022
|
cwd
|
|
118157
118023
|
]
|
|
118158
|
-
}), "
|
|
118024
|
+
}), "../../..", "package.json");
|
|
118025
|
+
if (solution === Solution.Module) {
|
|
118026
|
+
pkgPath = import_path.default.join(require.resolve(SolutionToolsMap[solution], {
|
|
118027
|
+
paths: [
|
|
118028
|
+
cwd
|
|
118029
|
+
]
|
|
118030
|
+
}), "../..", "package.json");
|
|
118031
|
+
}
|
|
118159
118032
|
if (import_utils3.fs.existsSync(pkgPath)) {
|
|
118160
118033
|
const pkgInfo = import_utils3.fs.readJSONSync(pkgPath);
|
|
118161
118034
|
const modernVersion = pkgInfo.version;
|
|
@@ -118214,11 +118087,11 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
|
118214
118087
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
|
118215
118088
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
|
118216
118089
|
|
|
118217
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
118090
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
118218
118091
|
var import_lodash8 = __toESM(require_lodash4());
|
|
118219
118092
|
var import_comment_json = __toESM(require_src2());
|
|
118220
118093
|
|
|
118221
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
118094
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
|
|
118222
118095
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118223
118096
|
try {
|
|
118224
118097
|
var info = gen[key](arg);
|
|
@@ -118526,7 +118399,7 @@ function _canUsePnpm() {
|
|
|
118526
118399
|
return _canUsePnpm.apply(this, arguments);
|
|
118527
118400
|
}
|
|
118528
118401
|
|
|
118529
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
118402
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
|
|
118530
118403
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118531
118404
|
try {
|
|
118532
118405
|
var info = gen[key](arg);
|
|
@@ -118893,7 +118766,7 @@ function _pnpmInstall() {
|
|
|
118893
118766
|
return _pnpmInstall.apply(this, arguments);
|
|
118894
118767
|
}
|
|
118895
118768
|
|
|
118896
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
118769
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
|
|
118897
118770
|
function _class_call_check(instance, Constructor) {
|
|
118898
118771
|
if (!(instance instanceof Constructor)) {
|
|
118899
118772
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -118974,7 +118847,7 @@ var NpmAPI = /* @__PURE__ */ function() {
|
|
|
118974
118847
|
return NpmAPI2;
|
|
118975
118848
|
}();
|
|
118976
118849
|
|
|
118977
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
118850
|
+
// ../../../../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
|
|
118978
118851
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118979
118852
|
try {
|
|
118980
118853
|
var info = gen[key](arg);
|
|
@@ -119316,7 +119189,7 @@ function _gitCommit() {
|
|
|
119316
119189
|
return _gitCommit.apply(this, arguments);
|
|
119317
119190
|
}
|
|
119318
119191
|
|
|
119319
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
119192
|
+
// ../../../../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
|
|
119320
119193
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119321
119194
|
try {
|
|
119322
119195
|
var info = gen[key](arg);
|
|
@@ -119647,11 +119520,11 @@ var GitAPI = /* @__PURE__ */ function() {
|
|
|
119647
119520
|
return GitAPI2;
|
|
119648
119521
|
}();
|
|
119649
119522
|
|
|
119650
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
119523
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
119651
119524
|
var import_path2 = __toESM(require("path"));
|
|
119652
119525
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
119653
119526
|
|
|
119654
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
119527
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
|
119655
119528
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119656
119529
|
try {
|
|
119657
119530
|
var info = gen[key](arg);
|
|
@@ -119824,7 +119697,7 @@ function _fsExists() {
|
|
|
119824
119697
|
return _fsExists.apply(this, arguments);
|
|
119825
119698
|
}
|
|
119826
119699
|
|
|
119827
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
119700
|
+
// ../../../../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
|
|
119828
119701
|
var import_handlebars = __toESM(require_lib());
|
|
119829
119702
|
function _define_property5(obj, key, value) {
|
|
119830
119703
|
if (key in obj) {
|
|
@@ -119866,7 +119739,7 @@ function renderString(template, fullData, registers) {
|
|
|
119866
119739
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
119867
119740
|
}
|
|
119868
119741
|
|
|
119869
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
119742
|
+
// ../../../../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
|
|
119870
119743
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119871
119744
|
try {
|
|
119872
119745
|
var info = gen[key](arg);
|
|
@@ -120184,13 +120057,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
|
|
|
120184
120057
|
return HandlebarsAPI2;
|
|
120185
120058
|
}();
|
|
120186
120059
|
|
|
120187
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
120060
|
+
// ../../../../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
|
|
120188
120061
|
var import_ejs = __toESM(require_ejs());
|
|
120189
120062
|
function renderString2(template, fullData) {
|
|
120190
120063
|
return import_ejs.default.render(template, fullData) || "";
|
|
120191
120064
|
}
|
|
120192
120065
|
|
|
120193
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
120066
|
+
// ../../../../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
|
|
120194
120067
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
120195
120068
|
try {
|
|
120196
120069
|
var info = gen[key](arg);
|
|
@@ -120460,24 +120333,8 @@ var EjsAPI = /* @__PURE__ */ function() {
|
|
|
120460
120333
|
return EjsAPI2;
|
|
120461
120334
|
}();
|
|
120462
120335
|
|
|
120463
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.
|
|
120336
|
+
// ../../../../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
|
|
120464
120337
|
var import_path3 = __toESM(require("path"));
|
|
120465
|
-
|
|
120466
|
-
// ../../../../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
|
|
120467
|
-
var imageExtNameList = [
|
|
120468
|
-
".jpg",
|
|
120469
|
-
".jpeg",
|
|
120470
|
-
".png",
|
|
120471
|
-
".gif",
|
|
120472
|
-
".bmp",
|
|
120473
|
-
".ico",
|
|
120474
|
-
".icon",
|
|
120475
|
-
".mpt",
|
|
120476
|
-
".psd",
|
|
120477
|
-
".wmf"
|
|
120478
|
-
];
|
|
120479
|
-
|
|
120480
|
-
// ../../../../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
|
|
120481
120338
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
120482
120339
|
try {
|
|
120483
120340
|
var info = gen[key](arg);
|
|
@@ -120657,48 +120514,26 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
120657
120514
|
value: function renderFile(resource, target) {
|
|
120658
120515
|
var _this = this;
|
|
120659
120516
|
return _async_to_generator8(function() {
|
|
120660
|
-
var
|
|
120517
|
+
var filePath;
|
|
120661
120518
|
return __generator8(this, function(_state) {
|
|
120662
120519
|
switch (_state.label) {
|
|
120663
120520
|
case 0:
|
|
120664
120521
|
if (resource._type !== FS_RESOURCE) {
|
|
120665
120522
|
throw new Error("resource not match");
|
|
120666
120523
|
}
|
|
120524
|
+
filePath = import_path3.default.resolve(_this.generatorCore.outputPath, target.toString());
|
|
120667
120525
|
return [
|
|
120668
120526
|
4,
|
|
120669
|
-
|
|
120527
|
+
import_fs_extra.default.mkdirp(import_path3.default.dirname(filePath))
|
|
120670
120528
|
];
|
|
120671
120529
|
case 1:
|
|
120672
|
-
resourceValue = _state.sent();
|
|
120673
|
-
resourceFileExt = import_path3.default.extname(resource.filePath);
|
|
120674
|
-
if (!imageExtNameList.includes(resourceFileExt))
|
|
120675
|
-
return [
|
|
120676
|
-
3,
|
|
120677
|
-
3
|
|
120678
|
-
];
|
|
120679
|
-
return [
|
|
120680
|
-
4,
|
|
120681
|
-
_this.generatorCore.output.fs(target, resourceValue.content, {
|
|
120682
|
-
encoding: "binary"
|
|
120683
|
-
})
|
|
120684
|
-
];
|
|
120685
|
-
case 2:
|
|
120686
120530
|
_state.sent();
|
|
120687
|
-
return [
|
|
120688
|
-
3,
|
|
120689
|
-
5
|
|
120690
|
-
];
|
|
120691
|
-
case 3:
|
|
120692
120531
|
return [
|
|
120693
120532
|
4,
|
|
120694
|
-
|
|
120695
|
-
encoding: "utf-8"
|
|
120696
|
-
})
|
|
120533
|
+
import_fs_extra.default.copyFile(resource.filePath, filePath)
|
|
120697
120534
|
];
|
|
120698
|
-
case
|
|
120535
|
+
case 2:
|
|
120699
120536
|
_state.sent();
|
|
120700
|
-
_state.label = 5;
|
|
120701
|
-
case 5:
|
|
120702
120537
|
return [
|
|
120703
120538
|
2
|
|
120704
120539
|
];
|
|
@@ -120761,7 +120596,7 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
120761
120596
|
return FsAPI2;
|
|
120762
120597
|
}();
|
|
120763
120598
|
|
|
120764
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120599
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
|
120765
120600
|
var toString = Object.prototype.toString;
|
|
120766
120601
|
var isType = function(type) {
|
|
120767
120602
|
return function(obj) {
|
|
@@ -120787,7 +120622,7 @@ var isObj = function(val) {
|
|
|
120787
120622
|
};
|
|
120788
120623
|
var isRegExp = isType("RegExp");
|
|
120789
120624
|
|
|
120790
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120625
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/array.js
|
|
120791
120626
|
var toArr = function(val) {
|
|
120792
120627
|
return isArr(val) ? val : val ? [val] : [];
|
|
120793
120628
|
};
|
|
@@ -120838,7 +120673,7 @@ function reduce(val, iterator, accumulator, revert) {
|
|
|
120838
120673
|
return result;
|
|
120839
120674
|
}
|
|
120840
120675
|
|
|
120841
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120676
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/global.js
|
|
120842
120677
|
function globalSelf() {
|
|
120843
120678
|
try {
|
|
120844
120679
|
if (typeof self !== "undefined") {
|
|
@@ -120862,7 +120697,7 @@ function globalSelf() {
|
|
|
120862
120697
|
}
|
|
120863
120698
|
var globalThisPolyfill = globalSelf();
|
|
120864
120699
|
|
|
120865
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120700
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/instanceof.js
|
|
120866
120701
|
var instOf = function(value, cls) {
|
|
120867
120702
|
if (isFn(cls))
|
|
120868
120703
|
return value instanceof cls;
|
|
@@ -120871,7 +120706,7 @@ var instOf = function(value, cls) {
|
|
|
120871
120706
|
return false;
|
|
120872
120707
|
};
|
|
120873
120708
|
|
|
120874
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120709
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/compare.js
|
|
120875
120710
|
var isArray = isArr;
|
|
120876
120711
|
var keyList = Object.keys;
|
|
120877
120712
|
var hasProp = Object.prototype.hasOwnProperty;
|
|
@@ -120978,7 +120813,7 @@ var isEqual = function exportedEqual(a, b) {
|
|
|
120978
120813
|
}
|
|
120979
120814
|
};
|
|
120980
120815
|
|
|
120981
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120816
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/clone.js
|
|
120982
120817
|
var clone = function(values) {
|
|
120983
120818
|
if (Array.isArray(values)) {
|
|
120984
120819
|
var res_1 = [];
|
|
@@ -121014,7 +120849,7 @@ var clone = function(values) {
|
|
|
121014
120849
|
}
|
|
121015
120850
|
};
|
|
121016
120851
|
|
|
121017
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120852
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/isEmpty.js
|
|
121018
120853
|
var has = Object.prototype.hasOwnProperty;
|
|
121019
120854
|
var toString2 = Object.prototype.toString;
|
|
121020
120855
|
var isUndef = function(val) {
|
|
@@ -121142,7 +120977,7 @@ function pascalCase(input, options) {
|
|
|
121142
120977
|
return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options));
|
|
121143
120978
|
}
|
|
121144
120979
|
|
|
121145
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120980
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/string.js
|
|
121146
120981
|
var ansiRegex2 = function() {
|
|
121147
120982
|
var pattern = [
|
|
121148
120983
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
|
|
@@ -121161,7 +120996,7 @@ var stringLength = function(input) {
|
|
|
121161
120996
|
return stripAnsi3(input).replace(astralRegex(), " ").length;
|
|
121162
120997
|
};
|
|
121163
120998
|
|
|
121164
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120999
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/contexts.js
|
|
121165
121000
|
var __assign2 = function() {
|
|
121166
121001
|
__assign2 = Object.assign || function(t) {
|
|
121167
121002
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -121184,7 +121019,7 @@ var parenContext = ContextType("()");
|
|
|
121184
121019
|
var braceContext = ContextType("{}");
|
|
121185
121020
|
var destructorContext = ContextType("{x}");
|
|
121186
121021
|
|
|
121187
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121022
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokens.js
|
|
121188
121023
|
var __assign3 = function() {
|
|
121189
121024
|
__assign3 = Object.assign || function(t) {
|
|
121190
121025
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -121352,7 +121187,7 @@ var expandTok = TokenType("expandTok", {
|
|
|
121352
121187
|
});
|
|
121353
121188
|
var eofTok = TokenType("eof");
|
|
121354
121189
|
|
|
121355
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121190
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokenizer.js
|
|
121356
121191
|
var nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
121357
121192
|
var fullCharCodeAtPos = function(input, pos) {
|
|
121358
121193
|
if (String.fromCharCode)
|
|
@@ -121604,7 +121439,7 @@ var Tokenizer = (
|
|
|
121604
121439
|
}()
|
|
121605
121440
|
);
|
|
121606
121441
|
|
|
121607
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121442
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/types.js
|
|
121608
121443
|
var isType2 = function(type) {
|
|
121609
121444
|
return function(obj) {
|
|
121610
121445
|
return obj && obj.type === type;
|
|
@@ -121622,7 +121457,7 @@ var isObjectPattern = isType2("ObjectPattern");
|
|
|
121622
121457
|
var isObjectPatternProperty = isType2("ObjectPatternProperty");
|
|
121623
121458
|
var isArrayPattern = isType2("ArrayPattern");
|
|
121624
121459
|
|
|
121625
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121460
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/shared.js
|
|
121626
121461
|
var toString3 = Object.prototype.toString;
|
|
121627
121462
|
var isType3 = function(type) {
|
|
121628
121463
|
return function(obj) {
|
|
@@ -121699,7 +121534,7 @@ var isSegmentEqual = function(a, b) {
|
|
|
121699
121534
|
return a === b;
|
|
121700
121535
|
};
|
|
121701
121536
|
|
|
121702
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121537
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/destructor.js
|
|
121703
121538
|
var DestructorCache = /* @__PURE__ */ new Map();
|
|
121704
121539
|
var isValid2 = function(val) {
|
|
121705
121540
|
return val !== void 0 && val !== null;
|
|
@@ -121817,7 +121652,7 @@ var existInByDestructor = function(source, rules, start, mutators) {
|
|
|
121817
121652
|
});
|
|
121818
121653
|
};
|
|
121819
121654
|
|
|
121820
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121655
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/parser.js
|
|
121821
121656
|
var __extends = function() {
|
|
121822
121657
|
var extendStatics = function(d, b) {
|
|
121823
121658
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -122208,7 +122043,7 @@ var Parser = (
|
|
|
122208
122043
|
}(Tokenizer)
|
|
122209
122044
|
);
|
|
122210
122045
|
|
|
122211
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
122046
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/matcher.js
|
|
122212
122047
|
var Matcher = (
|
|
122213
122048
|
/** @class */
|
|
122214
122049
|
function() {
|
|
@@ -122390,7 +122225,7 @@ var Matcher = (
|
|
|
122390
122225
|
}()
|
|
122391
122226
|
);
|
|
122392
122227
|
|
|
122393
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
122228
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/index.js
|
|
122394
122229
|
var __read = function(o, n) {
|
|
122395
122230
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
122396
122231
|
if (!m)
|
|
@@ -122944,7 +122779,7 @@ var Path = (
|
|
|
122944
122779
|
}()
|
|
122945
122780
|
);
|
|
122946
122781
|
|
|
122947
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
122782
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/subscribable.js
|
|
122948
122783
|
var Subscribable = (
|
|
122949
122784
|
/** @class */
|
|
122950
122785
|
function() {
|
|
@@ -122996,7 +122831,7 @@ var Subscribable = (
|
|
|
122996
122831
|
}()
|
|
122997
122832
|
);
|
|
122998
122833
|
|
|
122999
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
122834
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/merge.js
|
|
123000
122835
|
function defaultIsMergeableObject(value) {
|
|
123001
122836
|
return isNonNullObject(value) && !isSpecial(value);
|
|
123002
122837
|
}
|
|
@@ -123189,7 +123024,7 @@ var lazyMerge = function(target) {
|
|
|
123189
123024
|
};
|
|
123190
123025
|
var merge = deepmerge;
|
|
123191
123026
|
|
|
123192
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
123027
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/uid.js
|
|
123193
123028
|
var IDX = 36;
|
|
123194
123029
|
var HEX = "";
|
|
123195
123030
|
while (IDX--)
|
|
@@ -123201,7 +123036,7 @@ function uid(len) {
|
|
|
123201
123036
|
return str;
|
|
123202
123037
|
}
|
|
123203
123038
|
|
|
123204
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123039
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/checkers.js
|
|
123205
123040
|
var toString4 = Object.prototype.toString;
|
|
123206
123041
|
var isMap = function(val) {
|
|
123207
123042
|
return val && val instanceof Map;
|
|
@@ -123232,7 +123067,7 @@ var isNormalType = function(target) {
|
|
|
123232
123067
|
return isPlainObj3(target) || isArr3(target);
|
|
123233
123068
|
};
|
|
123234
123069
|
|
|
123235
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123070
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/array.js
|
|
123236
123071
|
var toArray = function(value) {
|
|
123237
123072
|
return Array.isArray(value) ? value : value !== void 0 && value !== null ? [value] : [];
|
|
123238
123073
|
};
|
|
@@ -123296,7 +123131,7 @@ var ArraySet = (
|
|
|
123296
123131
|
}()
|
|
123297
123132
|
);
|
|
123298
123133
|
|
|
123299
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123134
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/environment.js
|
|
123300
123135
|
var ProxyRaw = /* @__PURE__ */ new WeakMap();
|
|
123301
123136
|
var RawProxy = /* @__PURE__ */ new WeakMap();
|
|
123302
123137
|
var RawShallowProxy = /* @__PURE__ */ new WeakMap();
|
|
@@ -123315,7 +123150,7 @@ var MakeObModelSymbol = Symbol("MakeObModelSymbol");
|
|
|
123315
123150
|
var ObModelSymbol = Symbol("ObModelSymbol");
|
|
123316
123151
|
var ObModelNodeSymbol = Symbol("ObModelNodeSymbol");
|
|
123317
123152
|
|
|
123318
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123153
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/reaction.js
|
|
123319
123154
|
var ITERATION_KEY = Symbol("iteration key");
|
|
123320
123155
|
var addRawReactionsMap = function(target, key, reaction2) {
|
|
123321
123156
|
var reactionsMap = RawReactionsMap.get(target);
|
|
@@ -123545,7 +123380,7 @@ var disposeEffects = function(reaction2) {
|
|
|
123545
123380
|
}
|
|
123546
123381
|
};
|
|
123547
123382
|
|
|
123548
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123383
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tree.js
|
|
123549
123384
|
var DataChange = (
|
|
123550
123385
|
/** @class */
|
|
123551
123386
|
function() {
|
|
@@ -123641,7 +123476,7 @@ var buildDataTree = function(target, key, value) {
|
|
|
123641
123476
|
setDataNode(raw2, new DataNode(target, key, value));
|
|
123642
123477
|
};
|
|
123643
123478
|
|
|
123644
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123479
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/externals.js
|
|
123645
123480
|
var RAW_TYPE = Symbol("RAW_TYPE");
|
|
123646
123481
|
var OBSERVABLE_TYPE = Symbol("OBSERVABLE_TYPE");
|
|
123647
123482
|
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
@@ -123743,7 +123578,7 @@ var hasCollected = function(callback) {
|
|
|
123743
123578
|
return DependencyCollected.value;
|
|
123744
123579
|
};
|
|
123745
123580
|
|
|
123746
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123581
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/handlers.js
|
|
123747
123582
|
var __read2 = function(o, n) {
|
|
123748
123583
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
123749
123584
|
if (!m)
|
|
@@ -123999,7 +123834,7 @@ var baseHandlers = {
|
|
|
123999
123834
|
}
|
|
124000
123835
|
};
|
|
124001
123836
|
|
|
124002
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123837
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/internals.js
|
|
124003
123838
|
var createNormalProxy = function(target, shallow2) {
|
|
124004
123839
|
var proxy = new Proxy(target, baseHandlers);
|
|
124005
123840
|
ProxyRaw.set(proxy, target);
|
|
@@ -124114,7 +123949,7 @@ var createBoundaryAnnotation = function(start, end) {
|
|
|
124114
123949
|
return boundary;
|
|
124115
123950
|
};
|
|
124116
123951
|
|
|
124117
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123952
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/batch.js
|
|
124118
123953
|
var batch = createBoundaryAnnotation(batchStart, batchEnd);
|
|
124119
123954
|
batch.scope = createBoundaryAnnotation(batchScopeStart, batchScopeEnd);
|
|
124120
123955
|
batch.endpoint = function(callback) {
|
|
@@ -124127,7 +123962,7 @@ batch.endpoint = function(callback) {
|
|
|
124127
123962
|
}
|
|
124128
123963
|
};
|
|
124129
123964
|
|
|
124130
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123965
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/action.js
|
|
124131
123966
|
var action = createBoundaryAnnotation(function() {
|
|
124132
123967
|
batchStart();
|
|
124133
123968
|
untrackStart();
|
|
@@ -124143,10 +123978,10 @@ action.scope = createBoundaryAnnotation(function() {
|
|
|
124143
123978
|
batchScopeEnd();
|
|
124144
123979
|
});
|
|
124145
123980
|
|
|
124146
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123981
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/untracked.js
|
|
124147
123982
|
var untracked = createBoundaryFunction(untrackStart, untrackEnd);
|
|
124148
123983
|
|
|
124149
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123984
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/observable.js
|
|
124150
123985
|
var observable = createAnnotation(function(_a2) {
|
|
124151
123986
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
124152
123987
|
var store = {
|
|
@@ -124186,7 +124021,7 @@ var observable = createAnnotation(function(_a2) {
|
|
|
124186
124021
|
return store.value;
|
|
124187
124022
|
});
|
|
124188
124023
|
|
|
124189
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124024
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/box.js
|
|
124190
124025
|
var box = createAnnotation(function(_a2) {
|
|
124191
124026
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
124192
124027
|
var store = {
|
|
@@ -124232,7 +124067,7 @@ var box = createAnnotation(function(_a2) {
|
|
|
124232
124067
|
return proxy;
|
|
124233
124068
|
});
|
|
124234
124069
|
|
|
124235
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124070
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/ref.js
|
|
124236
124071
|
var ref = createAnnotation(function(_a2) {
|
|
124237
124072
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
124238
124073
|
var store = {
|
|
@@ -124280,7 +124115,7 @@ var ref = createAnnotation(function(_a2) {
|
|
|
124280
124115
|
return proxy;
|
|
124281
124116
|
});
|
|
124282
124117
|
|
|
124283
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124118
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/shallow.js
|
|
124284
124119
|
var shallow = createAnnotation(function(_a2) {
|
|
124285
124120
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
124286
124121
|
var store = {
|
|
@@ -124320,7 +124155,7 @@ var shallow = createAnnotation(function(_a2) {
|
|
|
124320
124155
|
return store.value;
|
|
124321
124156
|
});
|
|
124322
124157
|
|
|
124323
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124158
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/computed.js
|
|
124324
124159
|
var getDescriptor = Object.getOwnPropertyDescriptor;
|
|
124325
124160
|
var getProto = Object.getPrototypeOf;
|
|
124326
124161
|
var ClassDescriptorSymbol = Symbol("ClassDescriptorSymbol");
|
|
@@ -124441,7 +124276,7 @@ var computed = createAnnotation(function(_a2) {
|
|
|
124441
124276
|
return proxy;
|
|
124442
124277
|
});
|
|
124443
124278
|
|
|
124444
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124279
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observable.js
|
|
124445
124280
|
function observable2(target) {
|
|
124446
124281
|
return createObservable(null, null, target);
|
|
124447
124282
|
}
|
|
@@ -124452,7 +124287,7 @@ observable2.shallow = shallow;
|
|
|
124452
124287
|
observable2.computed = computed;
|
|
124453
124288
|
observable2[MakeObModelSymbol] = observable;
|
|
124454
124289
|
|
|
124455
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124290
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/model.js
|
|
124456
124291
|
function define2(target, annotations) {
|
|
124457
124292
|
if (isObservable(target))
|
|
124458
124293
|
return target;
|
|
@@ -124472,7 +124307,7 @@ function define2(target, annotations) {
|
|
|
124472
124307
|
return target;
|
|
124473
124308
|
}
|
|
124474
124309
|
|
|
124475
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124310
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/autorun.js
|
|
124476
124311
|
var __assign4 = function() {
|
|
124477
124312
|
__assign4 = Object.assign || function(t) {
|
|
124478
124313
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -124618,7 +124453,7 @@ var reaction = function(tracker, subscriber, options) {
|
|
|
124618
124453
|
};
|
|
124619
124454
|
};
|
|
124620
124455
|
|
|
124621
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124456
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tracker.js
|
|
124622
124457
|
var Tracker = (
|
|
124623
124458
|
/** @class */
|
|
124624
124459
|
function() {
|
|
@@ -124663,7 +124498,7 @@ var Tracker = (
|
|
|
124663
124498
|
}()
|
|
124664
124499
|
);
|
|
124665
124500
|
|
|
124666
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124501
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observe.js
|
|
124667
124502
|
var observe = function(target, observer, deep) {
|
|
124668
124503
|
if (deep === void 0) {
|
|
124669
124504
|
deep = true;
|
|
@@ -124696,7 +124531,7 @@ var observe = function(target, observer, deep) {
|
|
|
124696
124531
|
return addListener(target);
|
|
124697
124532
|
};
|
|
124698
124533
|
|
|
124699
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
124534
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/shared.js
|
|
124700
124535
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
|
124701
124536
|
var SchemaNestedMap = {
|
|
124702
124537
|
parent: true,
|
|
@@ -124883,7 +124718,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
|
124883
124718
|
});
|
|
124884
124719
|
};
|
|
124885
124720
|
|
|
124886
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
124721
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/compiler.js
|
|
124887
124722
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
|
124888
124723
|
var Registry = {
|
|
124889
124724
|
silent: false,
|
|
@@ -124987,7 +124822,7 @@ var patchSchemaCompile = function(targetState, sourceSchema, scope, demand) {
|
|
|
124987
124822
|
});
|
|
124988
124823
|
};
|
|
124989
124824
|
|
|
124990
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124825
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/LifeCycle.js
|
|
124991
124826
|
var LifeCycle = (
|
|
124992
124827
|
/** @class */
|
|
124993
124828
|
function() {
|
|
@@ -125033,7 +124868,7 @@ var LifeCycle = (
|
|
|
125033
124868
|
}()
|
|
125034
124869
|
);
|
|
125035
124870
|
|
|
125036
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124871
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Heart.js
|
|
125037
124872
|
var __extends2 = function() {
|
|
125038
124873
|
var extendStatics = function(d, b) {
|
|
125039
124874
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -125129,7 +124964,7 @@ var Heart = (
|
|
|
125129
124964
|
}(Subscribable)
|
|
125130
124965
|
);
|
|
125131
124966
|
|
|
125132
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124967
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/checkers.js
|
|
125133
124968
|
var isForm = function(node) {
|
|
125134
124969
|
return node instanceof Form;
|
|
125135
124970
|
};
|
|
@@ -125175,7 +125010,7 @@ var isQuery = function(query2) {
|
|
|
125175
125010
|
return query2 && query2 instanceof Query;
|
|
125176
125011
|
};
|
|
125177
125012
|
|
|
125178
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125013
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Graph.js
|
|
125179
125014
|
var Graph = (
|
|
125180
125015
|
/** @class */
|
|
125181
125016
|
function() {
|
|
@@ -125227,12 +125062,12 @@ var Graph = (
|
|
|
125227
125062
|
}()
|
|
125228
125063
|
);
|
|
125229
125064
|
|
|
125230
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125065
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/types.js
|
|
125231
125066
|
var isValidateResult = function(obj) {
|
|
125232
125067
|
return !!obj["type"] && !!obj["message"];
|
|
125233
125068
|
};
|
|
125234
125069
|
|
|
125235
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125070
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/registry.js
|
|
125236
125071
|
var getIn2 = Path.getIn;
|
|
125237
125072
|
var self2 = globalThisPolyfill;
|
|
125238
125073
|
var defaultLanguage = "en";
|
|
@@ -125303,7 +125138,7 @@ var registerValidateFormats = function(formats) {
|
|
|
125303
125138
|
});
|
|
125304
125139
|
};
|
|
125305
125140
|
|
|
125306
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125141
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/template.js
|
|
125307
125142
|
var render = function(result, rules) {
|
|
125308
125143
|
var message = result.message;
|
|
125309
125144
|
if (isStr(result.message)) {
|
|
@@ -125318,7 +125153,7 @@ var render = function(result, rules) {
|
|
|
125318
125153
|
return result;
|
|
125319
125154
|
};
|
|
125320
125155
|
|
|
125321
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125156
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/parser.js
|
|
125322
125157
|
var __assign5 = function() {
|
|
125323
125158
|
__assign5 = Object.assign || function(t) {
|
|
125324
125159
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -125569,7 +125404,7 @@ var parseValidator = function(validator, options) {
|
|
|
125569
125404
|
}, []);
|
|
125570
125405
|
};
|
|
125571
125406
|
|
|
125572
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125407
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/locale.js
|
|
125573
125408
|
var locale_default = {
|
|
125574
125409
|
en: {
|
|
125575
125410
|
pattern: "This field is invalid",
|
|
@@ -125789,7 +125624,7 @@ var locale_default = {
|
|
|
125789
125624
|
}
|
|
125790
125625
|
};
|
|
125791
125626
|
|
|
125792
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125627
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/formats.js
|
|
125793
125628
|
var formats_default = {
|
|
125794
125629
|
url: new RegExp(
|
|
125795
125630
|
// protocol identifier
|
|
@@ -125809,7 +125644,7 @@ var formats_default = {
|
|
|
125809
125644
|
zip: /^[0-9]{6}$/
|
|
125810
125645
|
};
|
|
125811
125646
|
|
|
125812
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125647
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/rules.js
|
|
125813
125648
|
var __assign6 = function() {
|
|
125814
125649
|
__assign6 = Object.assign || function(t) {
|
|
125815
125650
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -126124,7 +125959,7 @@ extendSameRules(RULES, {
|
|
|
126124
125959
|
});
|
|
126125
125960
|
var rules_default = RULES;
|
|
126126
125961
|
|
|
126127
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125962
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/validator.js
|
|
126128
125963
|
var __awaiter3 = function(thisArg, _arguments, P, generator) {
|
|
126129
125964
|
function adopt(value) {
|
|
126130
125965
|
return value instanceof P ? value : new P(function(resolve) {
|
|
@@ -126269,7 +126104,7 @@ var validate = function(value, validator, options) {
|
|
|
126269
126104
|
});
|
|
126270
126105
|
};
|
|
126271
126106
|
|
|
126272
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126107
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/types.js
|
|
126273
126108
|
var LifeCycleTypes;
|
|
126274
126109
|
(function(LifeCycleTypes2) {
|
|
126275
126110
|
LifeCycleTypes2["ON_FORM_INIT"] = "onFormInit";
|
|
@@ -126321,7 +126156,7 @@ var LifeCycleTypes;
|
|
|
126321
126156
|
LifeCycleTypes2["ON_FIELD_UNMOUNT"] = "onFieldUnmount";
|
|
126322
126157
|
})(LifeCycleTypes || (LifeCycleTypes = {}));
|
|
126323
126158
|
|
|
126324
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126159
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/constants.js
|
|
126325
126160
|
var ReservedProperties = {
|
|
126326
126161
|
form: true,
|
|
126327
126162
|
parent: true,
|
|
@@ -126373,7 +126208,7 @@ var GlobalState = {
|
|
|
126373
126208
|
};
|
|
126374
126209
|
var NumberIndexReg = /^\.(\d+)/;
|
|
126375
126210
|
|
|
126376
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126211
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/internals.js
|
|
126377
126212
|
var __assign7 = function() {
|
|
126378
126213
|
__assign7 = Object.assign || function(t) {
|
|
126379
126214
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -127480,7 +127315,7 @@ var getObjectParent = function(field) {
|
|
|
127480
127315
|
}
|
|
127481
127316
|
};
|
|
127482
127317
|
|
|
127483
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127318
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Query.js
|
|
127484
127319
|
var output = function(field, taker) {
|
|
127485
127320
|
if (!field)
|
|
127486
127321
|
return;
|
|
@@ -127563,7 +127398,7 @@ var Query = (
|
|
|
127563
127398
|
}()
|
|
127564
127399
|
);
|
|
127565
127400
|
|
|
127566
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127401
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/BaseField.js
|
|
127567
127402
|
var __read4 = function(o, n) {
|
|
127568
127403
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
127569
127404
|
if (!m)
|
|
@@ -127943,7 +127778,7 @@ var BaseField = (
|
|
|
127943
127778
|
}()
|
|
127944
127779
|
);
|
|
127945
127780
|
|
|
127946
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127781
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Field.js
|
|
127947
127782
|
var __extends3 = function() {
|
|
127948
127783
|
var extendStatics = function(d, b) {
|
|
127949
127784
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128584,7 +128419,7 @@ var Field = (
|
|
|
128584
128419
|
}(BaseField)
|
|
128585
128420
|
);
|
|
128586
128421
|
|
|
128587
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128422
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/effective.js
|
|
128588
128423
|
var __read5 = function(o, n) {
|
|
128589
128424
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
128590
128425
|
if (!m)
|
|
@@ -128678,7 +128513,7 @@ var runEffects = function(context) {
|
|
|
128678
128513
|
return GlobalState.lifecycles;
|
|
128679
128514
|
};
|
|
128680
128515
|
|
|
128681
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128516
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ArrayField.js
|
|
128682
128517
|
var __extends4 = function() {
|
|
128683
128518
|
var extendStatics = function(d, b) {
|
|
128684
128519
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128868,7 +128703,7 @@ var ArrayField = (
|
|
|
128868
128703
|
}(Field)
|
|
128869
128704
|
);
|
|
128870
128705
|
|
|
128871
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128706
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ObjectField.js
|
|
128872
128707
|
var __extends5 = function() {
|
|
128873
128708
|
var extendStatics = function(d, b) {
|
|
128874
128709
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128929,7 +128764,7 @@ var ObjectField = (
|
|
|
128929
128764
|
}(Field)
|
|
128930
128765
|
);
|
|
128931
128766
|
|
|
128932
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128767
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/VoidField.js
|
|
128933
128768
|
var __extends6 = function() {
|
|
128934
128769
|
var extendStatics = function(d, b) {
|
|
128935
128770
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -129044,7 +128879,7 @@ var VoidField = (
|
|
|
129044
128879
|
}(BaseField)
|
|
129045
128880
|
);
|
|
129046
128881
|
|
|
129047
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128882
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Form.js
|
|
129048
128883
|
var __assign8 = function() {
|
|
129049
128884
|
__assign8 = Object.assign || function(t) {
|
|
129050
128885
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -129572,7 +129407,7 @@ var Form = (
|
|
|
129572
129407
|
}()
|
|
129573
129408
|
);
|
|
129574
129409
|
|
|
129575
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
129410
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFormEffects.js
|
|
129576
129411
|
function createFormEffect(type) {
|
|
129577
129412
|
return createEffectHook(type, function(form) {
|
|
129578
129413
|
return function(callback) {
|
|
@@ -129605,7 +129440,7 @@ var onFormValidateEnd = createFormEffect(LifeCycleTypes.ON_FORM_VALIDATE_END);
|
|
|
129605
129440
|
var onFormGraphChange = createFormEffect(LifeCycleTypes.ON_FORM_GRAPH_CHANGE);
|
|
129606
129441
|
var onFormLoading = createFormEffect(LifeCycleTypes.ON_FORM_LOADING);
|
|
129607
129442
|
|
|
129608
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
129443
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFieldEffects.js
|
|
129609
129444
|
function createFieldEffect(type) {
|
|
129610
129445
|
return createEffectHook(type, function(field, form) {
|
|
129611
129446
|
return function(pattern, callback) {
|
|
@@ -129650,7 +129485,7 @@ function onFieldInit(pattern, callback) {
|
|
|
129650
129485
|
}
|
|
129651
129486
|
}
|
|
129652
129487
|
|
|
129653
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129488
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/transformer.js
|
|
129654
129489
|
var __read7 = function(o, n) {
|
|
129655
129490
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
129656
129491
|
if (!m)
|
|
@@ -129875,7 +129710,7 @@ var transformFieldProps = function(schema, options) {
|
|
|
129875
129710
|
};
|
|
129876
129711
|
};
|
|
129877
129712
|
|
|
129878
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129713
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/patches.js
|
|
129879
129714
|
var __assign9 = function() {
|
|
129880
129715
|
__assign9 = Object.assign || function(t) {
|
|
129881
129716
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -129924,7 +129759,7 @@ var enablePolyfills = function(versions) {
|
|
|
129924
129759
|
}
|
|
129925
129760
|
};
|
|
129926
129761
|
|
|
129927
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129762
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
|
129928
129763
|
var __assign10 = function() {
|
|
129929
129764
|
__assign10 = Object.assign || function(t) {
|
|
129930
129765
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -130081,7 +129916,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
|
130081
129916
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
|
130082
129917
|
};
|
|
130083
129918
|
|
|
130084
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129919
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/schema.js
|
|
130085
129920
|
var Schema = (
|
|
130086
129921
|
/** @class */
|
|
130087
129922
|
function() {
|
|
@@ -130317,10 +130152,10 @@ var Schema = (
|
|
|
130317
130152
|
}()
|
|
130318
130153
|
);
|
|
130319
130154
|
|
|
130320
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
130155
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
130321
130156
|
var import_inquirer = __toESM(require_inquirer());
|
|
130322
130157
|
|
|
130323
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
130158
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
|
130324
130159
|
var import_lodash4 = __toESM(require_lodash4());
|
|
130325
130160
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130326
130161
|
try {
|
|
@@ -130667,7 +130502,7 @@ function transformForm(schema) {
|
|
|
130667
130502
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
130668
130503
|
}
|
|
130669
130504
|
|
|
130670
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
130505
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
130671
130506
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130672
130507
|
try {
|
|
130673
130508
|
var info = gen[key](arg);
|
|
@@ -131191,7 +131026,7 @@ function _prompt() {
|
|
|
131191
131026
|
return _prompt.apply(this, arguments);
|
|
131192
131027
|
}
|
|
131193
131028
|
|
|
131194
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
131029
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
|
131195
131030
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131196
131031
|
try {
|
|
131197
131032
|
var info = gen[key](arg);
|
|
@@ -131431,7 +131266,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
|
131431
131266
|
return CLIReader2;
|
|
131432
131267
|
}();
|
|
131433
131268
|
|
|
131434
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131269
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
131435
131270
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
131436
131271
|
|
|
131437
131272
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -131510,7 +131345,7 @@ var I18n2 = class {
|
|
|
131510
131345
|
}
|
|
131511
131346
|
};
|
|
131512
131347
|
|
|
131513
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131348
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
|
131514
131349
|
var ZH_LOCALE2 = {
|
|
131515
131350
|
environment: {
|
|
131516
131351
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -131537,7 +131372,7 @@ var ZH_LOCALE2 = {
|
|
|
131537
131372
|
}
|
|
131538
131373
|
};
|
|
131539
131374
|
|
|
131540
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131375
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
|
131541
131376
|
var EN_LOCALE2 = {
|
|
131542
131377
|
environment: {
|
|
131543
131378
|
node_version: "please upgrade node to lts version",
|
|
@@ -131564,14 +131399,14 @@ var EN_LOCALE2 = {
|
|
|
131564
131399
|
}
|
|
131565
131400
|
};
|
|
131566
131401
|
|
|
131567
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131402
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
|
131568
131403
|
var i18n2 = new I18n2();
|
|
131569
131404
|
var localeKeys2 = i18n2.init("zh", {
|
|
131570
131405
|
zh: ZH_LOCALE2,
|
|
131571
131406
|
en: EN_LOCALE2
|
|
131572
131407
|
});
|
|
131573
131408
|
|
|
131574
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131409
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
|
131575
131410
|
var import_lodash7 = __toESM(require_lodash4());
|
|
131576
131411
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131577
131412
|
try {
|
|
@@ -131780,7 +131615,7 @@ function transformInquirerSchema(questions) {
|
|
|
131780
131615
|
return questions;
|
|
131781
131616
|
}
|
|
131782
131617
|
|
|
131783
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131618
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
|
131784
131619
|
var import_path5 = __toESM(require("path"));
|
|
131785
131620
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131786
131621
|
try {
|
|
@@ -132044,7 +131879,7 @@ function _checkUseNvm() {
|
|
|
132044
131879
|
return _checkUseNvm.apply(this, arguments);
|
|
132045
131880
|
}
|
|
132046
131881
|
|
|
132047
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131882
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
132048
131883
|
function _array_like_to_array(arr, len) {
|
|
132049
131884
|
if (len == null || len > arr.length)
|
|
132050
131885
|
len = arr.length;
|
|
@@ -132625,7 +132460,7 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
132625
132460
|
switch (_state2.label) {
|
|
132626
132461
|
case 0:
|
|
132627
132462
|
_this.generatorCore.logger.debug("[renderDir] resourceKey=".concat(resourceKey));
|
|
132628
|
-
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "");
|
|
132463
|
+
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "").replace(".ejs", "");
|
|
132629
132464
|
return [
|
|
132630
132465
|
4,
|
|
132631
132466
|
api.renderTemplate(material.get(resourceKey), target, _object_spread7({}, _this.generatorContext.data || {}, parameters || {}))
|
|
@@ -132974,11 +132809,11 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
132974
132809
|
return AppAPI2;
|
|
132975
132810
|
}();
|
|
132976
132811
|
|
|
132977
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132812
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
132978
132813
|
var import_comment_json2 = __toESM(require_src2());
|
|
132979
132814
|
var declarationUpdate = __toESM(require_dist());
|
|
132980
132815
|
|
|
132981
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132816
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/utils/index.js
|
|
132982
132817
|
function asyncGeneratorStep15(gen, resolve, reject, _next, _throw, key, arg) {
|
|
132983
132818
|
try {
|
|
132984
132819
|
var info = gen[key](arg);
|
|
@@ -133152,7 +132987,7 @@ function _editJson() {
|
|
|
133152
132987
|
return _editJson.apply(this, arguments);
|
|
133153
132988
|
}
|
|
133154
132989
|
|
|
133155
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132990
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
133156
132991
|
function asyncGeneratorStep16(gen, resolve, reject, _next, _throw, key, arg) {
|
|
133157
132992
|
try {
|
|
133158
132993
|
var info = gen[key](arg);
|