@cmflow/atlas 3.4.0-beta.2 → 3.4.0-beta.21
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/README.md +231 -5
- package/dist/bin/atlas.d.mts +2 -0
- package/dist/bin/atlas.mjs +29100 -3106
- package/dist/bin/atlas.mjs.map +1 -0
- package/dist/defineExpressionRule-GhkeHHT8.mjs +10 -0
- package/dist/defineExpressionRule-GhkeHHT8.mjs.map +1 -0
- package/dist/index.d.mts +36 -0
- package/dist/index.mjs +1297 -0
- package/dist/index.mjs.map +1 -0
- package/dist/propertyExtractionService-8BjqpPFa.mjs +172 -0
- package/dist/propertyExtractionService-8BjqpPFa.mjs.map +1 -0
- package/dist/rolldown-runtime-CGR6nZuH.mjs +34 -0
- package/dist/routeBackendTopologyService-CkOLUfcj.mjs +8728 -0
- package/dist/routeBackendTopologyService-CkOLUfcj.mjs.map +1 -0
- package/dist/rules/lodashGetRule.d.mts +7 -0
- package/dist/rules/lodashGetRule.mjs +24 -0
- package/dist/rules/lodashGetRule.mjs.map +1 -0
- package/dist/rules/mappingUtilityRule.d.mts +7 -0
- package/dist/rules/mappingUtilityRule.mjs +38 -0
- package/dist/rules/mappingUtilityRule.mjs.map +1 -0
- package/dist/rules/memberGetFieldRule.d.mts +7 -0
- package/dist/rules/memberGetFieldRule.mjs +27 -0
- package/dist/rules/memberGetFieldRule.mjs.map +1 -0
- package/dist/taskProgressService-CAC_RIoa.mjs +1229 -0
- package/dist/taskProgressService-CAC_RIoa.mjs.map +1 -0
- package/dist/token-CiiblKFL.mjs +62 -0
- package/dist/token-CiiblKFL.mjs.map +1 -0
- package/dist/token-util-Br4-y5kE.mjs +7 -0
- package/dist/token-util-Dnzm6rU4.mjs +471 -0
- package/dist/token-util-Dnzm6rU4.mjs.map +1 -0
- package/dist/types-Af0_VOnh.d.mts +122 -0
- package/dist/workers/routeBackendTopologyWorker.d.mts +2 -0
- package/dist/workers/routeBackendTopologyWorker.mjs +34 -0
- package/dist/workers/routeBackendTopologyWorker.mjs.map +1 -0
- package/knowledges/cms-and-directus-indirect-routes.md +5 -3
- package/package.json +22 -13
- package/dist/defineRule-Dfvzj6n2.mjs +0 -2
- package/dist/defineRule-Dfvzj6n2.mjs.map +0 -1
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,1297 @@
|
|
|
1
|
+
import { fileURLToPath as __atlasFileURLToPath } from "node:url";
|
|
2
|
+
const __filename = __atlasFileURLToPath(import.meta.url);
|
|
3
|
+
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-CGR6nZuH.mjs";
|
|
4
|
+
import { u as getUserConfig } from "./taskProgressService-CAC_RIoa.mjs";
|
|
5
|
+
import { a as httpClient, i as loadOpenApiDocument, t as extractOpenApiBackendProperties } from "./propertyExtractionService-8BjqpPFa.mjs";
|
|
6
|
+
import { t as defineExpressionRule } from "./defineExpressionRule-GhkeHHT8.mjs";
|
|
7
|
+
|
|
8
|
+
//#region src/fn/defineConfig.ts
|
|
9
|
+
function defineConfig(config) {
|
|
10
|
+
return config;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/fn/defineBackendSource.ts
|
|
15
|
+
function defineBackendSource(source) {
|
|
16
|
+
return source;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region ../../node_modules/lodash/isArray.js
|
|
21
|
+
var require_isArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
22
|
+
/**
|
|
23
|
+
* Checks if `value` is classified as an `Array` object.
|
|
24
|
+
*
|
|
25
|
+
* @static
|
|
26
|
+
* @memberOf _
|
|
27
|
+
* @since 0.1.0
|
|
28
|
+
* @category Lang
|
|
29
|
+
* @param {*} value The value to check.
|
|
30
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
31
|
+
* @example
|
|
32
|
+
*
|
|
33
|
+
* _.isArray([1, 2, 3]);
|
|
34
|
+
* // => true
|
|
35
|
+
*
|
|
36
|
+
* _.isArray(document.body.children);
|
|
37
|
+
* // => false
|
|
38
|
+
*
|
|
39
|
+
* _.isArray('abc');
|
|
40
|
+
* // => false
|
|
41
|
+
*
|
|
42
|
+
* _.isArray(_.noop);
|
|
43
|
+
* // => false
|
|
44
|
+
*/
|
|
45
|
+
var isArray = Array.isArray;
|
|
46
|
+
module.exports = isArray;
|
|
47
|
+
}));
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region ../../node_modules/lodash/_freeGlobal.js
|
|
51
|
+
var require__freeGlobal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
52
|
+
/** Detect free variable `global` from Node.js. */
|
|
53
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
54
|
+
module.exports = freeGlobal;
|
|
55
|
+
}));
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region ../../node_modules/lodash/_root.js
|
|
59
|
+
var require__root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
60
|
+
var freeGlobal = require__freeGlobal();
|
|
61
|
+
/** Detect free variable `self`. */
|
|
62
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
63
|
+
/** Used as a reference to the global object. */
|
|
64
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
65
|
+
module.exports = root;
|
|
66
|
+
}));
|
|
67
|
+
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region ../../node_modules/lodash/_Symbol.js
|
|
70
|
+
var require__Symbol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71
|
+
/** Built-in value references. */
|
|
72
|
+
var Symbol = require__root().Symbol;
|
|
73
|
+
module.exports = Symbol;
|
|
74
|
+
}));
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region ../../node_modules/lodash/_getRawTag.js
|
|
78
|
+
var require__getRawTag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
79
|
+
var Symbol = require__Symbol();
|
|
80
|
+
/** Used for built-in method references. */
|
|
81
|
+
var objectProto = Object.prototype;
|
|
82
|
+
/** Used to check objects for own properties. */
|
|
83
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
84
|
+
/**
|
|
85
|
+
* Used to resolve the
|
|
86
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
87
|
+
* of values.
|
|
88
|
+
*/
|
|
89
|
+
var nativeObjectToString = objectProto.toString;
|
|
90
|
+
/** Built-in value references. */
|
|
91
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
|
92
|
+
/**
|
|
93
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
94
|
+
*
|
|
95
|
+
* @private
|
|
96
|
+
* @param {*} value The value to query.
|
|
97
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
98
|
+
*/
|
|
99
|
+
function getRawTag(value) {
|
|
100
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
101
|
+
try {
|
|
102
|
+
value[symToStringTag] = void 0;
|
|
103
|
+
var unmasked = true;
|
|
104
|
+
} catch (e) {}
|
|
105
|
+
var result = nativeObjectToString.call(value);
|
|
106
|
+
if (unmasked) {
|
|
107
|
+
if (isOwn) value[symToStringTag] = tag;
|
|
108
|
+
else delete value[symToStringTag];
|
|
109
|
+
}
|
|
110
|
+
return result;
|
|
111
|
+
}
|
|
112
|
+
module.exports = getRawTag;
|
|
113
|
+
}));
|
|
114
|
+
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region ../../node_modules/lodash/_objectToString.js
|
|
117
|
+
var require__objectToString = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
118
|
+
/**
|
|
119
|
+
* Used to resolve the
|
|
120
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
121
|
+
* of values.
|
|
122
|
+
*/
|
|
123
|
+
var nativeObjectToString = Object.prototype.toString;
|
|
124
|
+
/**
|
|
125
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
126
|
+
*
|
|
127
|
+
* @private
|
|
128
|
+
* @param {*} value The value to convert.
|
|
129
|
+
* @returns {string} Returns the converted string.
|
|
130
|
+
*/
|
|
131
|
+
function objectToString(value) {
|
|
132
|
+
return nativeObjectToString.call(value);
|
|
133
|
+
}
|
|
134
|
+
module.exports = objectToString;
|
|
135
|
+
}));
|
|
136
|
+
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region ../../node_modules/lodash/_baseGetTag.js
|
|
139
|
+
var require__baseGetTag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
140
|
+
var Symbol = require__Symbol();
|
|
141
|
+
var getRawTag = require__getRawTag();
|
|
142
|
+
var objectToString = require__objectToString();
|
|
143
|
+
/** `Object#toString` result references. */
|
|
144
|
+
var nullTag = "[object Null]";
|
|
145
|
+
var undefinedTag = "[object Undefined]";
|
|
146
|
+
/** Built-in value references. */
|
|
147
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
|
148
|
+
/**
|
|
149
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
150
|
+
*
|
|
151
|
+
* @private
|
|
152
|
+
* @param {*} value The value to query.
|
|
153
|
+
* @returns {string} Returns the `toStringTag`.
|
|
154
|
+
*/
|
|
155
|
+
function baseGetTag(value) {
|
|
156
|
+
if (value == null) return value === void 0 ? undefinedTag : nullTag;
|
|
157
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
158
|
+
}
|
|
159
|
+
module.exports = baseGetTag;
|
|
160
|
+
}));
|
|
161
|
+
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region ../../node_modules/lodash/isObjectLike.js
|
|
164
|
+
var require_isObjectLike = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
165
|
+
/**
|
|
166
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
167
|
+
* and has a `typeof` result of "object".
|
|
168
|
+
*
|
|
169
|
+
* @static
|
|
170
|
+
* @memberOf _
|
|
171
|
+
* @since 4.0.0
|
|
172
|
+
* @category Lang
|
|
173
|
+
* @param {*} value The value to check.
|
|
174
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
175
|
+
* @example
|
|
176
|
+
*
|
|
177
|
+
* _.isObjectLike({});
|
|
178
|
+
* // => true
|
|
179
|
+
*
|
|
180
|
+
* _.isObjectLike([1, 2, 3]);
|
|
181
|
+
* // => true
|
|
182
|
+
*
|
|
183
|
+
* _.isObjectLike(_.noop);
|
|
184
|
+
* // => false
|
|
185
|
+
*
|
|
186
|
+
* _.isObjectLike(null);
|
|
187
|
+
* // => false
|
|
188
|
+
*/
|
|
189
|
+
function isObjectLike(value) {
|
|
190
|
+
return value != null && typeof value == "object";
|
|
191
|
+
}
|
|
192
|
+
module.exports = isObjectLike;
|
|
193
|
+
}));
|
|
194
|
+
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region ../../node_modules/lodash/isSymbol.js
|
|
197
|
+
var require_isSymbol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
198
|
+
var baseGetTag = require__baseGetTag();
|
|
199
|
+
var isObjectLike = require_isObjectLike();
|
|
200
|
+
/** `Object#toString` result references. */
|
|
201
|
+
var symbolTag = "[object Symbol]";
|
|
202
|
+
/**
|
|
203
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
204
|
+
*
|
|
205
|
+
* @static
|
|
206
|
+
* @memberOf _
|
|
207
|
+
* @since 4.0.0
|
|
208
|
+
* @category Lang
|
|
209
|
+
* @param {*} value The value to check.
|
|
210
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
211
|
+
* @example
|
|
212
|
+
*
|
|
213
|
+
* _.isSymbol(Symbol.iterator);
|
|
214
|
+
* // => true
|
|
215
|
+
*
|
|
216
|
+
* _.isSymbol('abc');
|
|
217
|
+
* // => false
|
|
218
|
+
*/
|
|
219
|
+
function isSymbol(value) {
|
|
220
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
221
|
+
}
|
|
222
|
+
module.exports = isSymbol;
|
|
223
|
+
}));
|
|
224
|
+
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region ../../node_modules/lodash/_isKey.js
|
|
227
|
+
var require__isKey = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
228
|
+
var isArray = require_isArray();
|
|
229
|
+
var isSymbol = require_isSymbol();
|
|
230
|
+
/** Used to match property names within property paths. */
|
|
231
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
|
|
232
|
+
var reIsPlainProp = /^\w*$/;
|
|
233
|
+
/**
|
|
234
|
+
* Checks if `value` is a property name and not a property path.
|
|
235
|
+
*
|
|
236
|
+
* @private
|
|
237
|
+
* @param {*} value The value to check.
|
|
238
|
+
* @param {Object} [object] The object to query keys on.
|
|
239
|
+
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
240
|
+
*/
|
|
241
|
+
function isKey(value, object) {
|
|
242
|
+
if (isArray(value)) return false;
|
|
243
|
+
var type = typeof value;
|
|
244
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) return true;
|
|
245
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
246
|
+
}
|
|
247
|
+
module.exports = isKey;
|
|
248
|
+
}));
|
|
249
|
+
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region ../../node_modules/lodash/isObject.js
|
|
252
|
+
var require_isObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
253
|
+
/**
|
|
254
|
+
* Checks if `value` is the
|
|
255
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
256
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
257
|
+
*
|
|
258
|
+
* @static
|
|
259
|
+
* @memberOf _
|
|
260
|
+
* @since 0.1.0
|
|
261
|
+
* @category Lang
|
|
262
|
+
* @param {*} value The value to check.
|
|
263
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
264
|
+
* @example
|
|
265
|
+
*
|
|
266
|
+
* _.isObject({});
|
|
267
|
+
* // => true
|
|
268
|
+
*
|
|
269
|
+
* _.isObject([1, 2, 3]);
|
|
270
|
+
* // => true
|
|
271
|
+
*
|
|
272
|
+
* _.isObject(_.noop);
|
|
273
|
+
* // => true
|
|
274
|
+
*
|
|
275
|
+
* _.isObject(null);
|
|
276
|
+
* // => false
|
|
277
|
+
*/
|
|
278
|
+
function isObject(value) {
|
|
279
|
+
var type = typeof value;
|
|
280
|
+
return value != null && (type == "object" || type == "function");
|
|
281
|
+
}
|
|
282
|
+
module.exports = isObject;
|
|
283
|
+
}));
|
|
284
|
+
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region ../../node_modules/lodash/isFunction.js
|
|
287
|
+
var require_isFunction = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
288
|
+
var baseGetTag = require__baseGetTag();
|
|
289
|
+
var isObject = require_isObject();
|
|
290
|
+
/** `Object#toString` result references. */
|
|
291
|
+
var asyncTag = "[object AsyncFunction]";
|
|
292
|
+
var funcTag = "[object Function]";
|
|
293
|
+
var genTag = "[object GeneratorFunction]";
|
|
294
|
+
var proxyTag = "[object Proxy]";
|
|
295
|
+
/**
|
|
296
|
+
* Checks if `value` is classified as a `Function` object.
|
|
297
|
+
*
|
|
298
|
+
* @static
|
|
299
|
+
* @memberOf _
|
|
300
|
+
* @since 0.1.0
|
|
301
|
+
* @category Lang
|
|
302
|
+
* @param {*} value The value to check.
|
|
303
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
304
|
+
* @example
|
|
305
|
+
*
|
|
306
|
+
* _.isFunction(_);
|
|
307
|
+
* // => true
|
|
308
|
+
*
|
|
309
|
+
* _.isFunction(/abc/);
|
|
310
|
+
* // => false
|
|
311
|
+
*/
|
|
312
|
+
function isFunction(value) {
|
|
313
|
+
if (!isObject(value)) return false;
|
|
314
|
+
var tag = baseGetTag(value);
|
|
315
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
316
|
+
}
|
|
317
|
+
module.exports = isFunction;
|
|
318
|
+
}));
|
|
319
|
+
|
|
320
|
+
//#endregion
|
|
321
|
+
//#region ../../node_modules/lodash/_coreJsData.js
|
|
322
|
+
var require__coreJsData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
323
|
+
/** Used to detect overreaching core-js shims. */
|
|
324
|
+
var coreJsData = require__root()["__core-js_shared__"];
|
|
325
|
+
module.exports = coreJsData;
|
|
326
|
+
}));
|
|
327
|
+
|
|
328
|
+
//#endregion
|
|
329
|
+
//#region ../../node_modules/lodash/_isMasked.js
|
|
330
|
+
var require__isMasked = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
331
|
+
var coreJsData = require__coreJsData();
|
|
332
|
+
/** Used to detect methods masquerading as native. */
|
|
333
|
+
var maskSrcKey = function() {
|
|
334
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
335
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
336
|
+
}();
|
|
337
|
+
/**
|
|
338
|
+
* Checks if `func` has its source masked.
|
|
339
|
+
*
|
|
340
|
+
* @private
|
|
341
|
+
* @param {Function} func The function to check.
|
|
342
|
+
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
343
|
+
*/
|
|
344
|
+
function isMasked(func) {
|
|
345
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
346
|
+
}
|
|
347
|
+
module.exports = isMasked;
|
|
348
|
+
}));
|
|
349
|
+
|
|
350
|
+
//#endregion
|
|
351
|
+
//#region ../../node_modules/lodash/_toSource.js
|
|
352
|
+
var require__toSource = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
353
|
+
/** Used to resolve the decompiled source of functions. */
|
|
354
|
+
var funcToString = Function.prototype.toString;
|
|
355
|
+
/**
|
|
356
|
+
* Converts `func` to its source code.
|
|
357
|
+
*
|
|
358
|
+
* @private
|
|
359
|
+
* @param {Function} func The function to convert.
|
|
360
|
+
* @returns {string} Returns the source code.
|
|
361
|
+
*/
|
|
362
|
+
function toSource(func) {
|
|
363
|
+
if (func != null) {
|
|
364
|
+
try {
|
|
365
|
+
return funcToString.call(func);
|
|
366
|
+
} catch (e) {}
|
|
367
|
+
try {
|
|
368
|
+
return func + "";
|
|
369
|
+
} catch (e) {}
|
|
370
|
+
}
|
|
371
|
+
return "";
|
|
372
|
+
}
|
|
373
|
+
module.exports = toSource;
|
|
374
|
+
}));
|
|
375
|
+
|
|
376
|
+
//#endregion
|
|
377
|
+
//#region ../../node_modules/lodash/_baseIsNative.js
|
|
378
|
+
var require__baseIsNative = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
379
|
+
var isFunction = require_isFunction();
|
|
380
|
+
var isMasked = require__isMasked();
|
|
381
|
+
var isObject = require_isObject();
|
|
382
|
+
var toSource = require__toSource();
|
|
383
|
+
/**
|
|
384
|
+
* Used to match `RegExp`
|
|
385
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
386
|
+
*/
|
|
387
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
388
|
+
/** Used to detect host constructors (Safari). */
|
|
389
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
390
|
+
/** Used for built-in method references. */
|
|
391
|
+
var funcProto = Function.prototype;
|
|
392
|
+
var objectProto = Object.prototype;
|
|
393
|
+
/** Used to resolve the decompiled source of functions. */
|
|
394
|
+
var funcToString = funcProto.toString;
|
|
395
|
+
/** Used to check objects for own properties. */
|
|
396
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
397
|
+
/** Used to detect if a method is native. */
|
|
398
|
+
var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
399
|
+
/**
|
|
400
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
401
|
+
*
|
|
402
|
+
* @private
|
|
403
|
+
* @param {*} value The value to check.
|
|
404
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
405
|
+
* else `false`.
|
|
406
|
+
*/
|
|
407
|
+
function baseIsNative(value) {
|
|
408
|
+
if (!isObject(value) || isMasked(value)) return false;
|
|
409
|
+
return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
|
|
410
|
+
}
|
|
411
|
+
module.exports = baseIsNative;
|
|
412
|
+
}));
|
|
413
|
+
|
|
414
|
+
//#endregion
|
|
415
|
+
//#region ../../node_modules/lodash/_getValue.js
|
|
416
|
+
var require__getValue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
417
|
+
/**
|
|
418
|
+
* Gets the value at `key` of `object`.
|
|
419
|
+
*
|
|
420
|
+
* @private
|
|
421
|
+
* @param {Object} [object] The object to query.
|
|
422
|
+
* @param {string} key The key of the property to get.
|
|
423
|
+
* @returns {*} Returns the property value.
|
|
424
|
+
*/
|
|
425
|
+
function getValue(object, key) {
|
|
426
|
+
return object == null ? void 0 : object[key];
|
|
427
|
+
}
|
|
428
|
+
module.exports = getValue;
|
|
429
|
+
}));
|
|
430
|
+
|
|
431
|
+
//#endregion
|
|
432
|
+
//#region ../../node_modules/lodash/_getNative.js
|
|
433
|
+
var require__getNative = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
434
|
+
var baseIsNative = require__baseIsNative();
|
|
435
|
+
var getValue = require__getValue();
|
|
436
|
+
/**
|
|
437
|
+
* Gets the native function at `key` of `object`.
|
|
438
|
+
*
|
|
439
|
+
* @private
|
|
440
|
+
* @param {Object} object The object to query.
|
|
441
|
+
* @param {string} key The key of the method to get.
|
|
442
|
+
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
443
|
+
*/
|
|
444
|
+
function getNative(object, key) {
|
|
445
|
+
var value = getValue(object, key);
|
|
446
|
+
return baseIsNative(value) ? value : void 0;
|
|
447
|
+
}
|
|
448
|
+
module.exports = getNative;
|
|
449
|
+
}));
|
|
450
|
+
|
|
451
|
+
//#endregion
|
|
452
|
+
//#region ../../node_modules/lodash/_nativeCreate.js
|
|
453
|
+
var require__nativeCreate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
454
|
+
var nativeCreate = require__getNative()(Object, "create");
|
|
455
|
+
module.exports = nativeCreate;
|
|
456
|
+
}));
|
|
457
|
+
|
|
458
|
+
//#endregion
|
|
459
|
+
//#region ../../node_modules/lodash/_hashClear.js
|
|
460
|
+
var require__hashClear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
461
|
+
var nativeCreate = require__nativeCreate();
|
|
462
|
+
/**
|
|
463
|
+
* Removes all key-value entries from the hash.
|
|
464
|
+
*
|
|
465
|
+
* @private
|
|
466
|
+
* @name clear
|
|
467
|
+
* @memberOf Hash
|
|
468
|
+
*/
|
|
469
|
+
function hashClear() {
|
|
470
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
471
|
+
this.size = 0;
|
|
472
|
+
}
|
|
473
|
+
module.exports = hashClear;
|
|
474
|
+
}));
|
|
475
|
+
|
|
476
|
+
//#endregion
|
|
477
|
+
//#region ../../node_modules/lodash/_hashDelete.js
|
|
478
|
+
var require__hashDelete = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
479
|
+
/**
|
|
480
|
+
* Removes `key` and its value from the hash.
|
|
481
|
+
*
|
|
482
|
+
* @private
|
|
483
|
+
* @name delete
|
|
484
|
+
* @memberOf Hash
|
|
485
|
+
* @param {Object} hash The hash to modify.
|
|
486
|
+
* @param {string} key The key of the value to remove.
|
|
487
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
488
|
+
*/
|
|
489
|
+
function hashDelete(key) {
|
|
490
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
491
|
+
this.size -= result ? 1 : 0;
|
|
492
|
+
return result;
|
|
493
|
+
}
|
|
494
|
+
module.exports = hashDelete;
|
|
495
|
+
}));
|
|
496
|
+
|
|
497
|
+
//#endregion
|
|
498
|
+
//#region ../../node_modules/lodash/_hashGet.js
|
|
499
|
+
var require__hashGet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
500
|
+
var nativeCreate = require__nativeCreate();
|
|
501
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
502
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
503
|
+
/** Used to check objects for own properties. */
|
|
504
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
505
|
+
/**
|
|
506
|
+
* Gets the hash value for `key`.
|
|
507
|
+
*
|
|
508
|
+
* @private
|
|
509
|
+
* @name get
|
|
510
|
+
* @memberOf Hash
|
|
511
|
+
* @param {string} key The key of the value to get.
|
|
512
|
+
* @returns {*} Returns the entry value.
|
|
513
|
+
*/
|
|
514
|
+
function hashGet(key) {
|
|
515
|
+
var data = this.__data__;
|
|
516
|
+
if (nativeCreate) {
|
|
517
|
+
var result = data[key];
|
|
518
|
+
return result === HASH_UNDEFINED ? void 0 : result;
|
|
519
|
+
}
|
|
520
|
+
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
521
|
+
}
|
|
522
|
+
module.exports = hashGet;
|
|
523
|
+
}));
|
|
524
|
+
|
|
525
|
+
//#endregion
|
|
526
|
+
//#region ../../node_modules/lodash/_hashHas.js
|
|
527
|
+
var require__hashHas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
528
|
+
var nativeCreate = require__nativeCreate();
|
|
529
|
+
/** Used to check objects for own properties. */
|
|
530
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
531
|
+
/**
|
|
532
|
+
* Checks if a hash value for `key` exists.
|
|
533
|
+
*
|
|
534
|
+
* @private
|
|
535
|
+
* @name has
|
|
536
|
+
* @memberOf Hash
|
|
537
|
+
* @param {string} key The key of the entry to check.
|
|
538
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
539
|
+
*/
|
|
540
|
+
function hashHas(key) {
|
|
541
|
+
var data = this.__data__;
|
|
542
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
543
|
+
}
|
|
544
|
+
module.exports = hashHas;
|
|
545
|
+
}));
|
|
546
|
+
|
|
547
|
+
//#endregion
|
|
548
|
+
//#region ../../node_modules/lodash/_hashSet.js
|
|
549
|
+
var require__hashSet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
550
|
+
var nativeCreate = require__nativeCreate();
|
|
551
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
552
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
553
|
+
/**
|
|
554
|
+
* Sets the hash `key` to `value`.
|
|
555
|
+
*
|
|
556
|
+
* @private
|
|
557
|
+
* @name set
|
|
558
|
+
* @memberOf Hash
|
|
559
|
+
* @param {string} key The key of the value to set.
|
|
560
|
+
* @param {*} value The value to set.
|
|
561
|
+
* @returns {Object} Returns the hash instance.
|
|
562
|
+
*/
|
|
563
|
+
function hashSet(key, value) {
|
|
564
|
+
var data = this.__data__;
|
|
565
|
+
this.size += this.has(key) ? 0 : 1;
|
|
566
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
567
|
+
return this;
|
|
568
|
+
}
|
|
569
|
+
module.exports = hashSet;
|
|
570
|
+
}));
|
|
571
|
+
|
|
572
|
+
//#endregion
|
|
573
|
+
//#region ../../node_modules/lodash/_Hash.js
|
|
574
|
+
var require__Hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
575
|
+
var hashClear = require__hashClear();
|
|
576
|
+
var hashDelete = require__hashDelete();
|
|
577
|
+
var hashGet = require__hashGet();
|
|
578
|
+
var hashHas = require__hashHas();
|
|
579
|
+
var hashSet = require__hashSet();
|
|
580
|
+
/**
|
|
581
|
+
* Creates a hash object.
|
|
582
|
+
*
|
|
583
|
+
* @private
|
|
584
|
+
* @constructor
|
|
585
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
586
|
+
*/
|
|
587
|
+
function Hash(entries) {
|
|
588
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
589
|
+
this.clear();
|
|
590
|
+
while (++index < length) {
|
|
591
|
+
var entry = entries[index];
|
|
592
|
+
this.set(entry[0], entry[1]);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
Hash.prototype.clear = hashClear;
|
|
596
|
+
Hash.prototype["delete"] = hashDelete;
|
|
597
|
+
Hash.prototype.get = hashGet;
|
|
598
|
+
Hash.prototype.has = hashHas;
|
|
599
|
+
Hash.prototype.set = hashSet;
|
|
600
|
+
module.exports = Hash;
|
|
601
|
+
}));
|
|
602
|
+
|
|
603
|
+
//#endregion
|
|
604
|
+
//#region ../../node_modules/lodash/_listCacheClear.js
|
|
605
|
+
var require__listCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
606
|
+
/**
|
|
607
|
+
* Removes all key-value entries from the list cache.
|
|
608
|
+
*
|
|
609
|
+
* @private
|
|
610
|
+
* @name clear
|
|
611
|
+
* @memberOf ListCache
|
|
612
|
+
*/
|
|
613
|
+
function listCacheClear() {
|
|
614
|
+
this.__data__ = [];
|
|
615
|
+
this.size = 0;
|
|
616
|
+
}
|
|
617
|
+
module.exports = listCacheClear;
|
|
618
|
+
}));
|
|
619
|
+
|
|
620
|
+
//#endregion
|
|
621
|
+
//#region ../../node_modules/lodash/eq.js
|
|
622
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
623
|
+
/**
|
|
624
|
+
* Performs a
|
|
625
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
626
|
+
* comparison between two values to determine if they are equivalent.
|
|
627
|
+
*
|
|
628
|
+
* @static
|
|
629
|
+
* @memberOf _
|
|
630
|
+
* @since 4.0.0
|
|
631
|
+
* @category Lang
|
|
632
|
+
* @param {*} value The value to compare.
|
|
633
|
+
* @param {*} other The other value to compare.
|
|
634
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
635
|
+
* @example
|
|
636
|
+
*
|
|
637
|
+
* var object = { 'a': 1 };
|
|
638
|
+
* var other = { 'a': 1 };
|
|
639
|
+
*
|
|
640
|
+
* _.eq(object, object);
|
|
641
|
+
* // => true
|
|
642
|
+
*
|
|
643
|
+
* _.eq(object, other);
|
|
644
|
+
* // => false
|
|
645
|
+
*
|
|
646
|
+
* _.eq('a', 'a');
|
|
647
|
+
* // => true
|
|
648
|
+
*
|
|
649
|
+
* _.eq('a', Object('a'));
|
|
650
|
+
* // => false
|
|
651
|
+
*
|
|
652
|
+
* _.eq(NaN, NaN);
|
|
653
|
+
* // => true
|
|
654
|
+
*/
|
|
655
|
+
function eq(value, other) {
|
|
656
|
+
return value === other || value !== value && other !== other;
|
|
657
|
+
}
|
|
658
|
+
module.exports = eq;
|
|
659
|
+
}));
|
|
660
|
+
|
|
661
|
+
//#endregion
|
|
662
|
+
//#region ../../node_modules/lodash/_assocIndexOf.js
|
|
663
|
+
var require__assocIndexOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
664
|
+
var eq = require_eq();
|
|
665
|
+
/**
|
|
666
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
667
|
+
*
|
|
668
|
+
* @private
|
|
669
|
+
* @param {Array} array The array to inspect.
|
|
670
|
+
* @param {*} key The key to search for.
|
|
671
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
672
|
+
*/
|
|
673
|
+
function assocIndexOf(array, key) {
|
|
674
|
+
var length = array.length;
|
|
675
|
+
while (length--) if (eq(array[length][0], key)) return length;
|
|
676
|
+
return -1;
|
|
677
|
+
}
|
|
678
|
+
module.exports = assocIndexOf;
|
|
679
|
+
}));
|
|
680
|
+
|
|
681
|
+
//#endregion
|
|
682
|
+
//#region ../../node_modules/lodash/_listCacheDelete.js
|
|
683
|
+
var require__listCacheDelete = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
684
|
+
var assocIndexOf = require__assocIndexOf();
|
|
685
|
+
/** Built-in value references. */
|
|
686
|
+
var splice = Array.prototype.splice;
|
|
687
|
+
/**
|
|
688
|
+
* Removes `key` and its value from the list cache.
|
|
689
|
+
*
|
|
690
|
+
* @private
|
|
691
|
+
* @name delete
|
|
692
|
+
* @memberOf ListCache
|
|
693
|
+
* @param {string} key The key of the value to remove.
|
|
694
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
695
|
+
*/
|
|
696
|
+
function listCacheDelete(key) {
|
|
697
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
698
|
+
if (index < 0) return false;
|
|
699
|
+
if (index == data.length - 1) data.pop();
|
|
700
|
+
else splice.call(data, index, 1);
|
|
701
|
+
--this.size;
|
|
702
|
+
return true;
|
|
703
|
+
}
|
|
704
|
+
module.exports = listCacheDelete;
|
|
705
|
+
}));
|
|
706
|
+
|
|
707
|
+
//#endregion
|
|
708
|
+
//#region ../../node_modules/lodash/_listCacheGet.js
|
|
709
|
+
var require__listCacheGet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
710
|
+
var assocIndexOf = require__assocIndexOf();
|
|
711
|
+
/**
|
|
712
|
+
* Gets the list cache value for `key`.
|
|
713
|
+
*
|
|
714
|
+
* @private
|
|
715
|
+
* @name get
|
|
716
|
+
* @memberOf ListCache
|
|
717
|
+
* @param {string} key The key of the value to get.
|
|
718
|
+
* @returns {*} Returns the entry value.
|
|
719
|
+
*/
|
|
720
|
+
function listCacheGet(key) {
|
|
721
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
722
|
+
return index < 0 ? void 0 : data[index][1];
|
|
723
|
+
}
|
|
724
|
+
module.exports = listCacheGet;
|
|
725
|
+
}));
|
|
726
|
+
|
|
727
|
+
//#endregion
|
|
728
|
+
//#region ../../node_modules/lodash/_listCacheHas.js
|
|
729
|
+
var require__listCacheHas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
730
|
+
var assocIndexOf = require__assocIndexOf();
|
|
731
|
+
/**
|
|
732
|
+
* Checks if a list cache value for `key` exists.
|
|
733
|
+
*
|
|
734
|
+
* @private
|
|
735
|
+
* @name has
|
|
736
|
+
* @memberOf ListCache
|
|
737
|
+
* @param {string} key The key of the entry to check.
|
|
738
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
739
|
+
*/
|
|
740
|
+
function listCacheHas(key) {
|
|
741
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
742
|
+
}
|
|
743
|
+
module.exports = listCacheHas;
|
|
744
|
+
}));
|
|
745
|
+
|
|
746
|
+
//#endregion
|
|
747
|
+
//#region ../../node_modules/lodash/_listCacheSet.js
|
|
748
|
+
var require__listCacheSet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
749
|
+
var assocIndexOf = require__assocIndexOf();
|
|
750
|
+
/**
|
|
751
|
+
* Sets the list cache `key` to `value`.
|
|
752
|
+
*
|
|
753
|
+
* @private
|
|
754
|
+
* @name set
|
|
755
|
+
* @memberOf ListCache
|
|
756
|
+
* @param {string} key The key of the value to set.
|
|
757
|
+
* @param {*} value The value to set.
|
|
758
|
+
* @returns {Object} Returns the list cache instance.
|
|
759
|
+
*/
|
|
760
|
+
function listCacheSet(key, value) {
|
|
761
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
762
|
+
if (index < 0) {
|
|
763
|
+
++this.size;
|
|
764
|
+
data.push([key, value]);
|
|
765
|
+
} else data[index][1] = value;
|
|
766
|
+
return this;
|
|
767
|
+
}
|
|
768
|
+
module.exports = listCacheSet;
|
|
769
|
+
}));
|
|
770
|
+
|
|
771
|
+
//#endregion
|
|
772
|
+
//#region ../../node_modules/lodash/_ListCache.js
|
|
773
|
+
var require__ListCache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
774
|
+
var listCacheClear = require__listCacheClear();
|
|
775
|
+
var listCacheDelete = require__listCacheDelete();
|
|
776
|
+
var listCacheGet = require__listCacheGet();
|
|
777
|
+
var listCacheHas = require__listCacheHas();
|
|
778
|
+
var listCacheSet = require__listCacheSet();
|
|
779
|
+
/**
|
|
780
|
+
* Creates an list cache object.
|
|
781
|
+
*
|
|
782
|
+
* @private
|
|
783
|
+
* @constructor
|
|
784
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
785
|
+
*/
|
|
786
|
+
function ListCache(entries) {
|
|
787
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
788
|
+
this.clear();
|
|
789
|
+
while (++index < length) {
|
|
790
|
+
var entry = entries[index];
|
|
791
|
+
this.set(entry[0], entry[1]);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
ListCache.prototype.clear = listCacheClear;
|
|
795
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
796
|
+
ListCache.prototype.get = listCacheGet;
|
|
797
|
+
ListCache.prototype.has = listCacheHas;
|
|
798
|
+
ListCache.prototype.set = listCacheSet;
|
|
799
|
+
module.exports = ListCache;
|
|
800
|
+
}));
|
|
801
|
+
|
|
802
|
+
//#endregion
|
|
803
|
+
//#region ../../node_modules/lodash/_Map.js
|
|
804
|
+
var require__Map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
805
|
+
var Map = require__getNative()(require__root(), "Map");
|
|
806
|
+
module.exports = Map;
|
|
807
|
+
}));
|
|
808
|
+
|
|
809
|
+
//#endregion
|
|
810
|
+
//#region ../../node_modules/lodash/_mapCacheClear.js
|
|
811
|
+
var require__mapCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
812
|
+
var Hash = require__Hash();
|
|
813
|
+
var ListCache = require__ListCache();
|
|
814
|
+
var Map = require__Map();
|
|
815
|
+
/**
|
|
816
|
+
* Removes all key-value entries from the map.
|
|
817
|
+
*
|
|
818
|
+
* @private
|
|
819
|
+
* @name clear
|
|
820
|
+
* @memberOf MapCache
|
|
821
|
+
*/
|
|
822
|
+
function mapCacheClear() {
|
|
823
|
+
this.size = 0;
|
|
824
|
+
this.__data__ = {
|
|
825
|
+
"hash": new Hash(),
|
|
826
|
+
"map": new (Map || ListCache)(),
|
|
827
|
+
"string": new Hash()
|
|
828
|
+
};
|
|
829
|
+
}
|
|
830
|
+
module.exports = mapCacheClear;
|
|
831
|
+
}));
|
|
832
|
+
|
|
833
|
+
//#endregion
|
|
834
|
+
//#region ../../node_modules/lodash/_isKeyable.js
|
|
835
|
+
var require__isKeyable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
836
|
+
/**
|
|
837
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
838
|
+
*
|
|
839
|
+
* @private
|
|
840
|
+
* @param {*} value The value to check.
|
|
841
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
842
|
+
*/
|
|
843
|
+
function isKeyable(value) {
|
|
844
|
+
var type = typeof value;
|
|
845
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
846
|
+
}
|
|
847
|
+
module.exports = isKeyable;
|
|
848
|
+
}));
|
|
849
|
+
|
|
850
|
+
//#endregion
|
|
851
|
+
//#region ../../node_modules/lodash/_getMapData.js
|
|
852
|
+
var require__getMapData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
853
|
+
var isKeyable = require__isKeyable();
|
|
854
|
+
/**
|
|
855
|
+
* Gets the data for `map`.
|
|
856
|
+
*
|
|
857
|
+
* @private
|
|
858
|
+
* @param {Object} map The map to query.
|
|
859
|
+
* @param {string} key The reference key.
|
|
860
|
+
* @returns {*} Returns the map data.
|
|
861
|
+
*/
|
|
862
|
+
function getMapData(map, key) {
|
|
863
|
+
var data = map.__data__;
|
|
864
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
865
|
+
}
|
|
866
|
+
module.exports = getMapData;
|
|
867
|
+
}));
|
|
868
|
+
|
|
869
|
+
//#endregion
|
|
870
|
+
//#region ../../node_modules/lodash/_mapCacheDelete.js
|
|
871
|
+
var require__mapCacheDelete = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
872
|
+
var getMapData = require__getMapData();
|
|
873
|
+
/**
|
|
874
|
+
* Removes `key` and its value from the map.
|
|
875
|
+
*
|
|
876
|
+
* @private
|
|
877
|
+
* @name delete
|
|
878
|
+
* @memberOf MapCache
|
|
879
|
+
* @param {string} key The key of the value to remove.
|
|
880
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
881
|
+
*/
|
|
882
|
+
function mapCacheDelete(key) {
|
|
883
|
+
var result = getMapData(this, key)["delete"](key);
|
|
884
|
+
this.size -= result ? 1 : 0;
|
|
885
|
+
return result;
|
|
886
|
+
}
|
|
887
|
+
module.exports = mapCacheDelete;
|
|
888
|
+
}));
|
|
889
|
+
|
|
890
|
+
//#endregion
|
|
891
|
+
//#region ../../node_modules/lodash/_mapCacheGet.js
|
|
892
|
+
var require__mapCacheGet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
893
|
+
var getMapData = require__getMapData();
|
|
894
|
+
/**
|
|
895
|
+
* Gets the map value for `key`.
|
|
896
|
+
*
|
|
897
|
+
* @private
|
|
898
|
+
* @name get
|
|
899
|
+
* @memberOf MapCache
|
|
900
|
+
* @param {string} key The key of the value to get.
|
|
901
|
+
* @returns {*} Returns the entry value.
|
|
902
|
+
*/
|
|
903
|
+
function mapCacheGet(key) {
|
|
904
|
+
return getMapData(this, key).get(key);
|
|
905
|
+
}
|
|
906
|
+
module.exports = mapCacheGet;
|
|
907
|
+
}));
|
|
908
|
+
|
|
909
|
+
//#endregion
|
|
910
|
+
//#region ../../node_modules/lodash/_mapCacheHas.js
|
|
911
|
+
var require__mapCacheHas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
912
|
+
var getMapData = require__getMapData();
|
|
913
|
+
/**
|
|
914
|
+
* Checks if a map value for `key` exists.
|
|
915
|
+
*
|
|
916
|
+
* @private
|
|
917
|
+
* @name has
|
|
918
|
+
* @memberOf MapCache
|
|
919
|
+
* @param {string} key The key of the entry to check.
|
|
920
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
921
|
+
*/
|
|
922
|
+
function mapCacheHas(key) {
|
|
923
|
+
return getMapData(this, key).has(key);
|
|
924
|
+
}
|
|
925
|
+
module.exports = mapCacheHas;
|
|
926
|
+
}));
|
|
927
|
+
|
|
928
|
+
//#endregion
|
|
929
|
+
//#region ../../node_modules/lodash/_mapCacheSet.js
|
|
930
|
+
var require__mapCacheSet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
931
|
+
var getMapData = require__getMapData();
|
|
932
|
+
/**
|
|
933
|
+
* Sets the map `key` to `value`.
|
|
934
|
+
*
|
|
935
|
+
* @private
|
|
936
|
+
* @name set
|
|
937
|
+
* @memberOf MapCache
|
|
938
|
+
* @param {string} key The key of the value to set.
|
|
939
|
+
* @param {*} value The value to set.
|
|
940
|
+
* @returns {Object} Returns the map cache instance.
|
|
941
|
+
*/
|
|
942
|
+
function mapCacheSet(key, value) {
|
|
943
|
+
var data = getMapData(this, key), size = data.size;
|
|
944
|
+
data.set(key, value);
|
|
945
|
+
this.size += data.size == size ? 0 : 1;
|
|
946
|
+
return this;
|
|
947
|
+
}
|
|
948
|
+
module.exports = mapCacheSet;
|
|
949
|
+
}));
|
|
950
|
+
|
|
951
|
+
//#endregion
|
|
952
|
+
//#region ../../node_modules/lodash/_MapCache.js
|
|
953
|
+
var require__MapCache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
954
|
+
var mapCacheClear = require__mapCacheClear();
|
|
955
|
+
var mapCacheDelete = require__mapCacheDelete();
|
|
956
|
+
var mapCacheGet = require__mapCacheGet();
|
|
957
|
+
var mapCacheHas = require__mapCacheHas();
|
|
958
|
+
var mapCacheSet = require__mapCacheSet();
|
|
959
|
+
/**
|
|
960
|
+
* Creates a map cache object to store key-value pairs.
|
|
961
|
+
*
|
|
962
|
+
* @private
|
|
963
|
+
* @constructor
|
|
964
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
965
|
+
*/
|
|
966
|
+
function MapCache(entries) {
|
|
967
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
968
|
+
this.clear();
|
|
969
|
+
while (++index < length) {
|
|
970
|
+
var entry = entries[index];
|
|
971
|
+
this.set(entry[0], entry[1]);
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
975
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
976
|
+
MapCache.prototype.get = mapCacheGet;
|
|
977
|
+
MapCache.prototype.has = mapCacheHas;
|
|
978
|
+
MapCache.prototype.set = mapCacheSet;
|
|
979
|
+
module.exports = MapCache;
|
|
980
|
+
}));
|
|
981
|
+
|
|
982
|
+
//#endregion
|
|
983
|
+
//#region ../../node_modules/lodash/memoize.js
|
|
984
|
+
var require_memoize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
985
|
+
var MapCache = require__MapCache();
|
|
986
|
+
/** Error message constants. */
|
|
987
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
988
|
+
/**
|
|
989
|
+
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
990
|
+
* provided, it determines the cache key for storing the result based on the
|
|
991
|
+
* arguments provided to the memoized function. By default, the first argument
|
|
992
|
+
* provided to the memoized function is used as the map cache key. The `func`
|
|
993
|
+
* is invoked with the `this` binding of the memoized function.
|
|
994
|
+
*
|
|
995
|
+
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
996
|
+
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
997
|
+
* constructor with one whose instances implement the
|
|
998
|
+
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
999
|
+
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
1000
|
+
*
|
|
1001
|
+
* @static
|
|
1002
|
+
* @memberOf _
|
|
1003
|
+
* @since 0.1.0
|
|
1004
|
+
* @category Function
|
|
1005
|
+
* @param {Function} func The function to have its output memoized.
|
|
1006
|
+
* @param {Function} [resolver] The function to resolve the cache key.
|
|
1007
|
+
* @returns {Function} Returns the new memoized function.
|
|
1008
|
+
* @example
|
|
1009
|
+
*
|
|
1010
|
+
* var object = { 'a': 1, 'b': 2 };
|
|
1011
|
+
* var other = { 'c': 3, 'd': 4 };
|
|
1012
|
+
*
|
|
1013
|
+
* var values = _.memoize(_.values);
|
|
1014
|
+
* values(object);
|
|
1015
|
+
* // => [1, 2]
|
|
1016
|
+
*
|
|
1017
|
+
* values(other);
|
|
1018
|
+
* // => [3, 4]
|
|
1019
|
+
*
|
|
1020
|
+
* object.a = 2;
|
|
1021
|
+
* values(object);
|
|
1022
|
+
* // => [1, 2]
|
|
1023
|
+
*
|
|
1024
|
+
* // Modify the result cache.
|
|
1025
|
+
* values.cache.set(object, ['a', 'b']);
|
|
1026
|
+
* values(object);
|
|
1027
|
+
* // => ['a', 'b']
|
|
1028
|
+
*
|
|
1029
|
+
* // Replace `_.memoize.Cache`.
|
|
1030
|
+
* _.memoize.Cache = WeakMap;
|
|
1031
|
+
*/
|
|
1032
|
+
function memoize(func, resolver) {
|
|
1033
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT);
|
|
1034
|
+
var memoized = function() {
|
|
1035
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
1036
|
+
if (cache.has(key)) return cache.get(key);
|
|
1037
|
+
var result = func.apply(this, args);
|
|
1038
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
1039
|
+
return result;
|
|
1040
|
+
};
|
|
1041
|
+
memoized.cache = new (memoize.Cache || MapCache)();
|
|
1042
|
+
return memoized;
|
|
1043
|
+
}
|
|
1044
|
+
memoize.Cache = MapCache;
|
|
1045
|
+
module.exports = memoize;
|
|
1046
|
+
}));
|
|
1047
|
+
|
|
1048
|
+
//#endregion
|
|
1049
|
+
//#region ../../node_modules/lodash/_memoizeCapped.js
|
|
1050
|
+
var require__memoizeCapped = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1051
|
+
var memoize = require_memoize();
|
|
1052
|
+
/** Used as the maximum memoize cache size. */
|
|
1053
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
1054
|
+
/**
|
|
1055
|
+
* A specialized version of `_.memoize` which clears the memoized function's
|
|
1056
|
+
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
1057
|
+
*
|
|
1058
|
+
* @private
|
|
1059
|
+
* @param {Function} func The function to have its output memoized.
|
|
1060
|
+
* @returns {Function} Returns the new memoized function.
|
|
1061
|
+
*/
|
|
1062
|
+
function memoizeCapped(func) {
|
|
1063
|
+
var result = memoize(func, function(key) {
|
|
1064
|
+
if (cache.size === MAX_MEMOIZE_SIZE) cache.clear();
|
|
1065
|
+
return key;
|
|
1066
|
+
});
|
|
1067
|
+
var cache = result.cache;
|
|
1068
|
+
return result;
|
|
1069
|
+
}
|
|
1070
|
+
module.exports = memoizeCapped;
|
|
1071
|
+
}));
|
|
1072
|
+
|
|
1073
|
+
//#endregion
|
|
1074
|
+
//#region ../../node_modules/lodash/_stringToPath.js
|
|
1075
|
+
var require__stringToPath = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1076
|
+
var memoizeCapped = require__memoizeCapped();
|
|
1077
|
+
/** Used to match property names within property paths. */
|
|
1078
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
1079
|
+
/** Used to match backslashes in property paths. */
|
|
1080
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
1081
|
+
/**
|
|
1082
|
+
* Converts `string` to a property path array.
|
|
1083
|
+
*
|
|
1084
|
+
* @private
|
|
1085
|
+
* @param {string} string The string to convert.
|
|
1086
|
+
* @returns {Array} Returns the property path array.
|
|
1087
|
+
*/
|
|
1088
|
+
var stringToPath = memoizeCapped(function(string) {
|
|
1089
|
+
var result = [];
|
|
1090
|
+
if (string.charCodeAt(0) === 46) result.push("");
|
|
1091
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
1092
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
1093
|
+
});
|
|
1094
|
+
return result;
|
|
1095
|
+
});
|
|
1096
|
+
module.exports = stringToPath;
|
|
1097
|
+
}));
|
|
1098
|
+
|
|
1099
|
+
//#endregion
|
|
1100
|
+
//#region ../../node_modules/lodash/_arrayMap.js
|
|
1101
|
+
var require__arrayMap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1102
|
+
/**
|
|
1103
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
1104
|
+
* shorthands.
|
|
1105
|
+
*
|
|
1106
|
+
* @private
|
|
1107
|
+
* @param {Array} [array] The array to iterate over.
|
|
1108
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
1109
|
+
* @returns {Array} Returns the new mapped array.
|
|
1110
|
+
*/
|
|
1111
|
+
function arrayMap(array, iteratee) {
|
|
1112
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
1113
|
+
while (++index < length) result[index] = iteratee(array[index], index, array);
|
|
1114
|
+
return result;
|
|
1115
|
+
}
|
|
1116
|
+
module.exports = arrayMap;
|
|
1117
|
+
}));
|
|
1118
|
+
|
|
1119
|
+
//#endregion
|
|
1120
|
+
//#region ../../node_modules/lodash/_baseToString.js
|
|
1121
|
+
var require__baseToString = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1122
|
+
var Symbol = require__Symbol();
|
|
1123
|
+
var arrayMap = require__arrayMap();
|
|
1124
|
+
var isArray = require_isArray();
|
|
1125
|
+
var isSymbol = require_isSymbol();
|
|
1126
|
+
/** Used as references for various `Number` constants. */
|
|
1127
|
+
var INFINITY = 1 / 0;
|
|
1128
|
+
/** Used to convert symbols to primitives and strings. */
|
|
1129
|
+
var symbolProto = Symbol ? Symbol.prototype : void 0;
|
|
1130
|
+
var symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
1131
|
+
/**
|
|
1132
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
1133
|
+
* values to empty strings.
|
|
1134
|
+
*
|
|
1135
|
+
* @private
|
|
1136
|
+
* @param {*} value The value to process.
|
|
1137
|
+
* @returns {string} Returns the string.
|
|
1138
|
+
*/
|
|
1139
|
+
function baseToString(value) {
|
|
1140
|
+
if (typeof value == "string") return value;
|
|
1141
|
+
if (isArray(value)) return arrayMap(value, baseToString) + "";
|
|
1142
|
+
if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
|
|
1143
|
+
var result = value + "";
|
|
1144
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
1145
|
+
}
|
|
1146
|
+
module.exports = baseToString;
|
|
1147
|
+
}));
|
|
1148
|
+
|
|
1149
|
+
//#endregion
|
|
1150
|
+
//#region ../../node_modules/lodash/toString.js
|
|
1151
|
+
var require_toString = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1152
|
+
var baseToString = require__baseToString();
|
|
1153
|
+
/**
|
|
1154
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
1155
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
1156
|
+
*
|
|
1157
|
+
* @static
|
|
1158
|
+
* @memberOf _
|
|
1159
|
+
* @since 4.0.0
|
|
1160
|
+
* @category Lang
|
|
1161
|
+
* @param {*} value The value to convert.
|
|
1162
|
+
* @returns {string} Returns the converted string.
|
|
1163
|
+
* @example
|
|
1164
|
+
*
|
|
1165
|
+
* _.toString(null);
|
|
1166
|
+
* // => ''
|
|
1167
|
+
*
|
|
1168
|
+
* _.toString(-0);
|
|
1169
|
+
* // => '-0'
|
|
1170
|
+
*
|
|
1171
|
+
* _.toString([1, 2, 3]);
|
|
1172
|
+
* // => '1,2,3'
|
|
1173
|
+
*/
|
|
1174
|
+
function toString(value) {
|
|
1175
|
+
return value == null ? "" : baseToString(value);
|
|
1176
|
+
}
|
|
1177
|
+
module.exports = toString;
|
|
1178
|
+
}));
|
|
1179
|
+
|
|
1180
|
+
//#endregion
|
|
1181
|
+
//#region ../../node_modules/lodash/_castPath.js
|
|
1182
|
+
var require__castPath = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1183
|
+
var isArray = require_isArray();
|
|
1184
|
+
var isKey = require__isKey();
|
|
1185
|
+
var stringToPath = require__stringToPath();
|
|
1186
|
+
var toString = require_toString();
|
|
1187
|
+
/**
|
|
1188
|
+
* Casts `value` to a path array if it's not one.
|
|
1189
|
+
*
|
|
1190
|
+
* @private
|
|
1191
|
+
* @param {*} value The value to inspect.
|
|
1192
|
+
* @param {Object} [object] The object to query keys on.
|
|
1193
|
+
* @returns {Array} Returns the cast property path array.
|
|
1194
|
+
*/
|
|
1195
|
+
function castPath(value, object) {
|
|
1196
|
+
if (isArray(value)) return value;
|
|
1197
|
+
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
1198
|
+
}
|
|
1199
|
+
module.exports = castPath;
|
|
1200
|
+
}));
|
|
1201
|
+
|
|
1202
|
+
//#endregion
|
|
1203
|
+
//#region ../../node_modules/lodash/_toKey.js
|
|
1204
|
+
var require__toKey = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1205
|
+
var isSymbol = require_isSymbol();
|
|
1206
|
+
/** Used as references for various `Number` constants. */
|
|
1207
|
+
var INFINITY = 1 / 0;
|
|
1208
|
+
/**
|
|
1209
|
+
* Converts `value` to a string key if it's not a string or symbol.
|
|
1210
|
+
*
|
|
1211
|
+
* @private
|
|
1212
|
+
* @param {*} value The value to inspect.
|
|
1213
|
+
* @returns {string|symbol} Returns the key.
|
|
1214
|
+
*/
|
|
1215
|
+
function toKey(value) {
|
|
1216
|
+
if (typeof value == "string" || isSymbol(value)) return value;
|
|
1217
|
+
var result = value + "";
|
|
1218
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
1219
|
+
}
|
|
1220
|
+
module.exports = toKey;
|
|
1221
|
+
}));
|
|
1222
|
+
|
|
1223
|
+
//#endregion
|
|
1224
|
+
//#region ../../node_modules/lodash/_baseGet.js
|
|
1225
|
+
var require__baseGet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1226
|
+
var castPath = require__castPath();
|
|
1227
|
+
var toKey = require__toKey();
|
|
1228
|
+
/**
|
|
1229
|
+
* The base implementation of `_.get` without support for default values.
|
|
1230
|
+
*
|
|
1231
|
+
* @private
|
|
1232
|
+
* @param {Object} object The object to query.
|
|
1233
|
+
* @param {Array|string} path The path of the property to get.
|
|
1234
|
+
* @returns {*} Returns the resolved value.
|
|
1235
|
+
*/
|
|
1236
|
+
function baseGet(object, path) {
|
|
1237
|
+
path = castPath(path, object);
|
|
1238
|
+
var index = 0, length = path.length;
|
|
1239
|
+
while (object != null && index < length) object = object[toKey(path[index++])];
|
|
1240
|
+
return index && index == length ? object : void 0;
|
|
1241
|
+
}
|
|
1242
|
+
module.exports = baseGet;
|
|
1243
|
+
}));
|
|
1244
|
+
|
|
1245
|
+
//#endregion
|
|
1246
|
+
//#region ../../node_modules/lodash/get.js
|
|
1247
|
+
var require_get = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1248
|
+
var baseGet = require__baseGet();
|
|
1249
|
+
/**
|
|
1250
|
+
* Gets the value at `path` of `object`. If the resolved value is
|
|
1251
|
+
* `undefined`, the `defaultValue` is returned in its place.
|
|
1252
|
+
*
|
|
1253
|
+
* @static
|
|
1254
|
+
* @memberOf _
|
|
1255
|
+
* @since 3.7.0
|
|
1256
|
+
* @category Object
|
|
1257
|
+
* @param {Object} object The object to query.
|
|
1258
|
+
* @param {Array|string} path The path of the property to get.
|
|
1259
|
+
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
1260
|
+
* @returns {*} Returns the resolved value.
|
|
1261
|
+
* @example
|
|
1262
|
+
*
|
|
1263
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
1264
|
+
*
|
|
1265
|
+
* _.get(object, 'a[0].b.c');
|
|
1266
|
+
* // => 3
|
|
1267
|
+
*
|
|
1268
|
+
* _.get(object, ['a', '0', 'b', 'c']);
|
|
1269
|
+
* // => 3
|
|
1270
|
+
*
|
|
1271
|
+
* _.get(object, 'a.b.c', 'default');
|
|
1272
|
+
* // => 'default'
|
|
1273
|
+
*/
|
|
1274
|
+
function get(object, path, defaultValue) {
|
|
1275
|
+
var result = object == null ? void 0 : baseGet(object, path);
|
|
1276
|
+
return result === void 0 ? defaultValue : result;
|
|
1277
|
+
}
|
|
1278
|
+
module.exports = get;
|
|
1279
|
+
}));
|
|
1280
|
+
|
|
1281
|
+
//#endregion
|
|
1282
|
+
//#region src/fn/constant.ts
|
|
1283
|
+
var import_get = /* @__PURE__ */ __toESM(require_get(), 1);
|
|
1284
|
+
function constant(name, defaultValue) {
|
|
1285
|
+
return (0, import_get.default)(getUserConfig().envs, name, defaultValue);
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
//#endregion
|
|
1289
|
+
//#region src/services/openapi/openapiSource.ts
|
|
1290
|
+
async function openapiSource(params) {
|
|
1291
|
+
const document = await loadOpenApiDocument(params.url, params.timeoutMs);
|
|
1292
|
+
return extractOpenApiBackendProperties(document);
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
//#endregion
|
|
1296
|
+
export { constant, defineBackendSource, defineConfig, defineExpressionRule, httpClient, openapiSource };
|
|
1297
|
+
//# sourceMappingURL=index.mjs.map
|