@h3ravel/config 1.3.5 → 1.3.7
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/{chunk-KEEZ4MID.js → chunk-Q3X4OHHO.js} +399 -525
- package/dist/chunk-Q3X4OHHO.js.map +1 -0
- package/dist/{dist-TL36CC37.js → dist-SOP64AJE.js} +6 -4
- package/dist/index.cjs +402 -527
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/dist/chunk-KEEZ4MID.js.map +0 -1
- /package/dist/{dist-TL36CC37.js.map → dist-SOP64AJE.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -57,8 +57,7 @@ var require_Reflect = __commonJS({
|
|
|
57
57
|
writable: true,
|
|
58
58
|
value
|
|
59
59
|
});
|
|
60
|
-
if (previous)
|
|
61
|
-
previous(key, value);
|
|
60
|
+
if (previous) previous(key, value);
|
|
62
61
|
};
|
|
63
62
|
}
|
|
64
63
|
__name(makeExporter, "makeExporter");
|
|
@@ -121,21 +120,15 @@ var require_Reflect = __commonJS({
|
|
|
121
120
|
var metadataProvider = CreateMetadataProvider(metadataRegistry);
|
|
122
121
|
function decorate(decorators, target, propertyKey, attributes) {
|
|
123
122
|
if (!IsUndefined(propertyKey)) {
|
|
124
|
-
if (!IsArray(decorators))
|
|
125
|
-
|
|
126
|
-
if (!IsObject(
|
|
127
|
-
|
|
128
|
-
if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))
|
|
129
|
-
throw new TypeError();
|
|
130
|
-
if (IsNull(attributes))
|
|
131
|
-
attributes = void 0;
|
|
123
|
+
if (!IsArray(decorators)) throw new TypeError();
|
|
124
|
+
if (!IsObject(target)) throw new TypeError();
|
|
125
|
+
if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes)) throw new TypeError();
|
|
126
|
+
if (IsNull(attributes)) attributes = void 0;
|
|
132
127
|
propertyKey = ToPropertyKey(propertyKey);
|
|
133
128
|
return DecorateProperty(decorators, target, propertyKey, attributes);
|
|
134
129
|
} else {
|
|
135
|
-
if (!IsArray(decorators))
|
|
136
|
-
|
|
137
|
-
if (!IsConstructor(target))
|
|
138
|
-
throw new TypeError();
|
|
130
|
+
if (!IsArray(decorators)) throw new TypeError();
|
|
131
|
+
if (!IsConstructor(target)) throw new TypeError();
|
|
139
132
|
return DecorateConstructor(decorators, target);
|
|
140
133
|
}
|
|
141
134
|
}
|
|
@@ -143,10 +136,8 @@ var require_Reflect = __commonJS({
|
|
|
143
136
|
exporter("decorate", decorate);
|
|
144
137
|
function metadata(metadataKey, metadataValue) {
|
|
145
138
|
function decorator(target, propertyKey) {
|
|
146
|
-
if (!IsObject(target))
|
|
147
|
-
|
|
148
|
-
if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))
|
|
149
|
-
throw new TypeError();
|
|
139
|
+
if (!IsObject(target)) throw new TypeError();
|
|
140
|
+
if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey)) throw new TypeError();
|
|
150
141
|
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
|
|
151
142
|
}
|
|
152
143
|
__name(decorator, "decorator");
|
|
@@ -155,85 +146,66 @@ var require_Reflect = __commonJS({
|
|
|
155
146
|
__name(metadata, "metadata");
|
|
156
147
|
exporter("metadata", metadata);
|
|
157
148
|
function defineMetadata(metadataKey, metadataValue, target, propertyKey) {
|
|
158
|
-
if (!IsObject(target))
|
|
159
|
-
|
|
160
|
-
if (!IsUndefined(propertyKey))
|
|
161
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
149
|
+
if (!IsObject(target)) throw new TypeError();
|
|
150
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
162
151
|
return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
|
|
163
152
|
}
|
|
164
153
|
__name(defineMetadata, "defineMetadata");
|
|
165
154
|
exporter("defineMetadata", defineMetadata);
|
|
166
155
|
function hasMetadata(metadataKey, target, propertyKey) {
|
|
167
|
-
if (!IsObject(target))
|
|
168
|
-
|
|
169
|
-
if (!IsUndefined(propertyKey))
|
|
170
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
156
|
+
if (!IsObject(target)) throw new TypeError();
|
|
157
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
171
158
|
return OrdinaryHasMetadata(metadataKey, target, propertyKey);
|
|
172
159
|
}
|
|
173
160
|
__name(hasMetadata, "hasMetadata");
|
|
174
161
|
exporter("hasMetadata", hasMetadata);
|
|
175
162
|
function hasOwnMetadata(metadataKey, target, propertyKey) {
|
|
176
|
-
if (!IsObject(target))
|
|
177
|
-
|
|
178
|
-
if (!IsUndefined(propertyKey))
|
|
179
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
163
|
+
if (!IsObject(target)) throw new TypeError();
|
|
164
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
180
165
|
return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);
|
|
181
166
|
}
|
|
182
167
|
__name(hasOwnMetadata, "hasOwnMetadata");
|
|
183
168
|
exporter("hasOwnMetadata", hasOwnMetadata);
|
|
184
169
|
function getMetadata(metadataKey, target, propertyKey) {
|
|
185
|
-
if (!IsObject(target))
|
|
186
|
-
|
|
187
|
-
if (!IsUndefined(propertyKey))
|
|
188
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
170
|
+
if (!IsObject(target)) throw new TypeError();
|
|
171
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
189
172
|
return OrdinaryGetMetadata(metadataKey, target, propertyKey);
|
|
190
173
|
}
|
|
191
174
|
__name(getMetadata, "getMetadata");
|
|
192
175
|
exporter("getMetadata", getMetadata);
|
|
193
176
|
function getOwnMetadata(metadataKey, target, propertyKey) {
|
|
194
|
-
if (!IsObject(target))
|
|
195
|
-
|
|
196
|
-
if (!IsUndefined(propertyKey))
|
|
197
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
177
|
+
if (!IsObject(target)) throw new TypeError();
|
|
178
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
198
179
|
return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);
|
|
199
180
|
}
|
|
200
181
|
__name(getOwnMetadata, "getOwnMetadata");
|
|
201
182
|
exporter("getOwnMetadata", getOwnMetadata);
|
|
202
183
|
function getMetadataKeys(target, propertyKey) {
|
|
203
|
-
if (!IsObject(target))
|
|
204
|
-
|
|
205
|
-
if (!IsUndefined(propertyKey))
|
|
206
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
184
|
+
if (!IsObject(target)) throw new TypeError();
|
|
185
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
207
186
|
return OrdinaryMetadataKeys(target, propertyKey);
|
|
208
187
|
}
|
|
209
188
|
__name(getMetadataKeys, "getMetadataKeys");
|
|
210
189
|
exporter("getMetadataKeys", getMetadataKeys);
|
|
211
190
|
function getOwnMetadataKeys(target, propertyKey) {
|
|
212
|
-
if (!IsObject(target))
|
|
213
|
-
|
|
214
|
-
if (!IsUndefined(propertyKey))
|
|
215
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
191
|
+
if (!IsObject(target)) throw new TypeError();
|
|
192
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
216
193
|
return OrdinaryOwnMetadataKeys(target, propertyKey);
|
|
217
194
|
}
|
|
218
195
|
__name(getOwnMetadataKeys, "getOwnMetadataKeys");
|
|
219
196
|
exporter("getOwnMetadataKeys", getOwnMetadataKeys);
|
|
220
197
|
function deleteMetadata(metadataKey, target, propertyKey) {
|
|
221
|
-
if (!IsObject(target))
|
|
222
|
-
|
|
223
|
-
if (!
|
|
224
|
-
|
|
225
|
-
if (!IsObject(target))
|
|
226
|
-
throw new TypeError();
|
|
227
|
-
if (!IsUndefined(propertyKey))
|
|
228
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
198
|
+
if (!IsObject(target)) throw new TypeError();
|
|
199
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
200
|
+
if (!IsObject(target)) throw new TypeError();
|
|
201
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
229
202
|
var provider = GetMetadataProvider(
|
|
230
203
|
target,
|
|
231
204
|
propertyKey,
|
|
232
205
|
/*Create*/
|
|
233
206
|
false
|
|
234
207
|
);
|
|
235
|
-
if (IsUndefined(provider))
|
|
236
|
-
return false;
|
|
208
|
+
if (IsUndefined(provider)) return false;
|
|
237
209
|
return provider.OrdinaryDeleteMetadata(metadataKey, target, propertyKey);
|
|
238
210
|
}
|
|
239
211
|
__name(deleteMetadata, "deleteMetadata");
|
|
@@ -243,8 +215,7 @@ var require_Reflect = __commonJS({
|
|
|
243
215
|
var decorator = decorators[i];
|
|
244
216
|
var decorated = decorator(target);
|
|
245
217
|
if (!IsUndefined(decorated) && !IsNull(decorated)) {
|
|
246
|
-
if (!IsConstructor(decorated))
|
|
247
|
-
throw new TypeError();
|
|
218
|
+
if (!IsConstructor(decorated)) throw new TypeError();
|
|
248
219
|
target = decorated;
|
|
249
220
|
}
|
|
250
221
|
}
|
|
@@ -256,8 +227,7 @@ var require_Reflect = __commonJS({
|
|
|
256
227
|
var decorator = decorators[i];
|
|
257
228
|
var decorated = decorator(target, propertyKey, descriptor);
|
|
258
229
|
if (!IsUndefined(decorated) && !IsNull(decorated)) {
|
|
259
|
-
if (!IsObject(decorated))
|
|
260
|
-
throw new TypeError();
|
|
230
|
+
if (!IsObject(decorated)) throw new TypeError();
|
|
261
231
|
descriptor = decorated;
|
|
262
232
|
}
|
|
263
233
|
}
|
|
@@ -266,11 +236,9 @@ var require_Reflect = __commonJS({
|
|
|
266
236
|
__name(DecorateProperty, "DecorateProperty");
|
|
267
237
|
function OrdinaryHasMetadata(MetadataKey, O, P) {
|
|
268
238
|
var hasOwn3 = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
|
269
|
-
if (hasOwn3)
|
|
270
|
-
return true;
|
|
239
|
+
if (hasOwn3) return true;
|
|
271
240
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
272
|
-
if (!IsNull(parent))
|
|
273
|
-
return OrdinaryHasMetadata(MetadataKey, parent, P);
|
|
241
|
+
if (!IsNull(parent)) return OrdinaryHasMetadata(MetadataKey, parent, P);
|
|
274
242
|
return false;
|
|
275
243
|
}
|
|
276
244
|
__name(OrdinaryHasMetadata, "OrdinaryHasMetadata");
|
|
@@ -281,18 +249,15 @@ var require_Reflect = __commonJS({
|
|
|
281
249
|
/*Create*/
|
|
282
250
|
false
|
|
283
251
|
);
|
|
284
|
-
if (IsUndefined(provider))
|
|
285
|
-
return false;
|
|
252
|
+
if (IsUndefined(provider)) return false;
|
|
286
253
|
return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P));
|
|
287
254
|
}
|
|
288
255
|
__name(OrdinaryHasOwnMetadata, "OrdinaryHasOwnMetadata");
|
|
289
256
|
function OrdinaryGetMetadata(MetadataKey, O, P) {
|
|
290
257
|
var hasOwn3 = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
|
291
|
-
if (hasOwn3)
|
|
292
|
-
return OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
|
258
|
+
if (hasOwn3) return OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
|
293
259
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
294
|
-
if (!IsNull(parent))
|
|
295
|
-
return OrdinaryGetMetadata(MetadataKey, parent, P);
|
|
260
|
+
if (!IsNull(parent)) return OrdinaryGetMetadata(MetadataKey, parent, P);
|
|
296
261
|
return void 0;
|
|
297
262
|
}
|
|
298
263
|
__name(OrdinaryGetMetadata, "OrdinaryGetMetadata");
|
|
@@ -303,8 +268,7 @@ var require_Reflect = __commonJS({
|
|
|
303
268
|
/*Create*/
|
|
304
269
|
false
|
|
305
270
|
);
|
|
306
|
-
if (IsUndefined(provider))
|
|
307
|
-
return;
|
|
271
|
+
if (IsUndefined(provider)) return;
|
|
308
272
|
return provider.OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
|
309
273
|
}
|
|
310
274
|
__name(OrdinaryGetOwnMetadata, "OrdinaryGetOwnMetadata");
|
|
@@ -321,13 +285,10 @@ var require_Reflect = __commonJS({
|
|
|
321
285
|
function OrdinaryMetadataKeys(O, P) {
|
|
322
286
|
var ownKeys = OrdinaryOwnMetadataKeys(O, P);
|
|
323
287
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
324
|
-
if (parent === null)
|
|
325
|
-
return ownKeys;
|
|
288
|
+
if (parent === null) return ownKeys;
|
|
326
289
|
var parentKeys = OrdinaryMetadataKeys(parent, P);
|
|
327
|
-
if (parentKeys.length <= 0)
|
|
328
|
-
|
|
329
|
-
if (ownKeys.length <= 0)
|
|
330
|
-
return parentKeys;
|
|
290
|
+
if (parentKeys.length <= 0) return ownKeys;
|
|
291
|
+
if (ownKeys.length <= 0) return parentKeys;
|
|
331
292
|
var set = new _Set();
|
|
332
293
|
var keys = [];
|
|
333
294
|
for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {
|
|
@@ -363,8 +324,7 @@ var require_Reflect = __commonJS({
|
|
|
363
324
|
}
|
|
364
325
|
__name(OrdinaryOwnMetadataKeys, "OrdinaryOwnMetadataKeys");
|
|
365
326
|
function Type(x) {
|
|
366
|
-
if (x === null)
|
|
367
|
-
return 1;
|
|
327
|
+
if (x === null) return 1;
|
|
368
328
|
switch (typeof x) {
|
|
369
329
|
case "undefined":
|
|
370
330
|
return 0;
|
|
@@ -418,8 +378,7 @@ var require_Reflect = __commonJS({
|
|
|
418
378
|
var exoticToPrim = GetMethod(input, toPrimitiveSymbol);
|
|
419
379
|
if (exoticToPrim !== void 0) {
|
|
420
380
|
var result = exoticToPrim.call(input, hint);
|
|
421
|
-
if (IsObject(result))
|
|
422
|
-
throw new TypeError();
|
|
381
|
+
if (IsObject(result)) throw new TypeError();
|
|
423
382
|
return result;
|
|
424
383
|
}
|
|
425
384
|
return OrdinaryToPrimitive(input, hint === "default" ? "number" : hint);
|
|
@@ -430,27 +389,23 @@ var require_Reflect = __commonJS({
|
|
|
430
389
|
var toString_1 = O.toString;
|
|
431
390
|
if (IsCallable(toString_1)) {
|
|
432
391
|
var result = toString_1.call(O);
|
|
433
|
-
if (!IsObject(result))
|
|
434
|
-
return result;
|
|
392
|
+
if (!IsObject(result)) return result;
|
|
435
393
|
}
|
|
436
394
|
var valueOf = O.valueOf;
|
|
437
395
|
if (IsCallable(valueOf)) {
|
|
438
396
|
var result = valueOf.call(O);
|
|
439
|
-
if (!IsObject(result))
|
|
440
|
-
return result;
|
|
397
|
+
if (!IsObject(result)) return result;
|
|
441
398
|
}
|
|
442
399
|
} else {
|
|
443
400
|
var valueOf = O.valueOf;
|
|
444
401
|
if (IsCallable(valueOf)) {
|
|
445
402
|
var result = valueOf.call(O);
|
|
446
|
-
if (!IsObject(result))
|
|
447
|
-
return result;
|
|
403
|
+
if (!IsObject(result)) return result;
|
|
448
404
|
}
|
|
449
405
|
var toString_2 = O.toString;
|
|
450
406
|
if (IsCallable(toString_2)) {
|
|
451
407
|
var result = toString_2.call(O);
|
|
452
|
-
if (!IsObject(result))
|
|
453
|
-
return result;
|
|
408
|
+
if (!IsObject(result)) return result;
|
|
454
409
|
}
|
|
455
410
|
}
|
|
456
411
|
throw new TypeError();
|
|
@@ -470,8 +425,7 @@ var require_Reflect = __commonJS({
|
|
|
470
425
|
3
|
|
471
426
|
/* String */
|
|
472
427
|
);
|
|
473
|
-
if (IsSymbol(key))
|
|
474
|
-
return key;
|
|
428
|
+
if (IsSymbol(key)) return key;
|
|
475
429
|
return ToString(key);
|
|
476
430
|
}
|
|
477
431
|
__name(ToPropertyKey, "ToPropertyKey");
|
|
@@ -504,20 +458,16 @@ var require_Reflect = __commonJS({
|
|
|
504
458
|
__name(SameValueZero, "SameValueZero");
|
|
505
459
|
function GetMethod(V, P) {
|
|
506
460
|
var func = V[P];
|
|
507
|
-
if (func === void 0 || func === null)
|
|
508
|
-
|
|
509
|
-
if (!IsCallable(func))
|
|
510
|
-
throw new TypeError();
|
|
461
|
+
if (func === void 0 || func === null) return void 0;
|
|
462
|
+
if (!IsCallable(func)) throw new TypeError();
|
|
511
463
|
return func;
|
|
512
464
|
}
|
|
513
465
|
__name(GetMethod, "GetMethod");
|
|
514
466
|
function GetIterator(obj) {
|
|
515
467
|
var method = GetMethod(obj, iteratorSymbol);
|
|
516
|
-
if (!IsCallable(method))
|
|
517
|
-
throw new TypeError();
|
|
468
|
+
if (!IsCallable(method)) throw new TypeError();
|
|
518
469
|
var iterator = method.call(obj);
|
|
519
|
-
if (!IsObject(iterator))
|
|
520
|
-
throw new TypeError();
|
|
470
|
+
if (!IsObject(iterator)) throw new TypeError();
|
|
521
471
|
return iterator;
|
|
522
472
|
}
|
|
523
473
|
__name(GetIterator, "GetIterator");
|
|
@@ -532,25 +482,19 @@ var require_Reflect = __commonJS({
|
|
|
532
482
|
__name(IteratorStep, "IteratorStep");
|
|
533
483
|
function IteratorClose(iterator) {
|
|
534
484
|
var f = iterator["return"];
|
|
535
|
-
if (f)
|
|
536
|
-
f.call(iterator);
|
|
485
|
+
if (f) f.call(iterator);
|
|
537
486
|
}
|
|
538
487
|
__name(IteratorClose, "IteratorClose");
|
|
539
488
|
function OrdinaryGetPrototypeOf(O) {
|
|
540
489
|
var proto = Object.getPrototypeOf(O);
|
|
541
|
-
if (typeof O !== "function" || O === functionPrototype)
|
|
542
|
-
|
|
543
|
-
if (proto !== functionPrototype)
|
|
544
|
-
return proto;
|
|
490
|
+
if (typeof O !== "function" || O === functionPrototype) return proto;
|
|
491
|
+
if (proto !== functionPrototype) return proto;
|
|
545
492
|
var prototype = O.prototype;
|
|
546
493
|
var prototypeProto = prototype && Object.getPrototypeOf(prototype);
|
|
547
|
-
if (prototypeProto == null || prototypeProto === Object.prototype)
|
|
548
|
-
return proto;
|
|
494
|
+
if (prototypeProto == null || prototypeProto === Object.prototype) return proto;
|
|
549
495
|
var constructor = prototypeProto.constructor;
|
|
550
|
-
if (typeof constructor !== "function")
|
|
551
|
-
|
|
552
|
-
if (constructor === O)
|
|
553
|
-
return proto;
|
|
496
|
+
if (typeof constructor !== "function") return proto;
|
|
497
|
+
if (constructor === O) return proto;
|
|
554
498
|
return constructor;
|
|
555
499
|
}
|
|
556
500
|
__name(OrdinaryGetPrototypeOf, "OrdinaryGetPrototypeOf");
|
|
@@ -587,8 +531,7 @@ var require_Reflect = __commonJS({
|
|
|
587
531
|
case second === provider:
|
|
588
532
|
break;
|
|
589
533
|
default:
|
|
590
|
-
if (rest === void 0)
|
|
591
|
-
rest = new _Set();
|
|
534
|
+
if (rest === void 0) rest = new _Set();
|
|
592
535
|
rest.add(provider);
|
|
593
536
|
break;
|
|
594
537
|
}
|
|
@@ -596,11 +539,9 @@ var require_Reflect = __commonJS({
|
|
|
596
539
|
__name(registerProvider, "registerProvider");
|
|
597
540
|
function getProviderNoCache(O, P) {
|
|
598
541
|
if (!IsUndefined(first)) {
|
|
599
|
-
if (first.isProviderFor(O, P))
|
|
600
|
-
return first;
|
|
542
|
+
if (first.isProviderFor(O, P)) return first;
|
|
601
543
|
if (!IsUndefined(second)) {
|
|
602
|
-
if (second.isProviderFor(O, P))
|
|
603
|
-
return first;
|
|
544
|
+
if (second.isProviderFor(O, P)) return first;
|
|
604
545
|
if (!IsUndefined(rest)) {
|
|
605
546
|
var iterator = GetIterator(rest);
|
|
606
547
|
while (true) {
|
|
@@ -644,8 +585,7 @@ var require_Reflect = __commonJS({
|
|
|
644
585
|
}
|
|
645
586
|
__name(getProvider, "getProvider");
|
|
646
587
|
function hasProvider(provider) {
|
|
647
|
-
if (IsUndefined(provider))
|
|
648
|
-
throw new TypeError();
|
|
588
|
+
if (IsUndefined(provider)) throw new TypeError();
|
|
649
589
|
return first === provider || second === provider || !IsUndefined(rest) && rest.has(provider);
|
|
650
590
|
}
|
|
651
591
|
__name(hasProvider, "hasProvider");
|
|
@@ -692,12 +632,11 @@ var require_Reflect = __commonJS({
|
|
|
692
632
|
function CreateMetadataProvider(registry) {
|
|
693
633
|
var metadata2 = new _WeakMap();
|
|
694
634
|
var provider = {
|
|
695
|
-
isProviderFor: function(O, P) {
|
|
635
|
+
isProviderFor: /* @__PURE__ */ __name(function(O, P) {
|
|
696
636
|
var targetMetadata = metadata2.get(O);
|
|
697
|
-
if (IsUndefined(targetMetadata))
|
|
698
|
-
return false;
|
|
637
|
+
if (IsUndefined(targetMetadata)) return false;
|
|
699
638
|
return targetMetadata.has(P);
|
|
700
|
-
},
|
|
639
|
+
}, "isProviderFor"),
|
|
701
640
|
OrdinaryDefineOwnMetadata: OrdinaryDefineOwnMetadata2,
|
|
702
641
|
OrdinaryHasOwnMetadata: OrdinaryHasOwnMetadata2,
|
|
703
642
|
OrdinaryGetOwnMetadata: OrdinaryGetOwnMetadata2,
|
|
@@ -710,16 +649,14 @@ var require_Reflect = __commonJS({
|
|
|
710
649
|
var targetMetadata = metadata2.get(O);
|
|
711
650
|
var createdTargetMetadata = false;
|
|
712
651
|
if (IsUndefined(targetMetadata)) {
|
|
713
|
-
if (!Create)
|
|
714
|
-
return void 0;
|
|
652
|
+
if (!Create) return void 0;
|
|
715
653
|
targetMetadata = new _Map();
|
|
716
654
|
metadata2.set(O, targetMetadata);
|
|
717
655
|
createdTargetMetadata = true;
|
|
718
656
|
}
|
|
719
657
|
var metadataMap = targetMetadata.get(P);
|
|
720
658
|
if (IsUndefined(metadataMap)) {
|
|
721
|
-
if (!Create)
|
|
722
|
-
return void 0;
|
|
659
|
+
if (!Create) return void 0;
|
|
723
660
|
metadataMap = new _Map();
|
|
724
661
|
targetMetadata.set(P, metadataMap);
|
|
725
662
|
if (!registry.setProvider(O, P, provider)) {
|
|
@@ -740,8 +677,7 @@ var require_Reflect = __commonJS({
|
|
|
740
677
|
/*Create*/
|
|
741
678
|
false
|
|
742
679
|
);
|
|
743
|
-
if (IsUndefined(metadataMap))
|
|
744
|
-
return false;
|
|
680
|
+
if (IsUndefined(metadataMap)) return false;
|
|
745
681
|
return ToBoolean(metadataMap.has(MetadataKey));
|
|
746
682
|
}
|
|
747
683
|
__name(OrdinaryHasOwnMetadata2, "OrdinaryHasOwnMetadata");
|
|
@@ -752,8 +688,7 @@ var require_Reflect = __commonJS({
|
|
|
752
688
|
/*Create*/
|
|
753
689
|
false
|
|
754
690
|
);
|
|
755
|
-
if (IsUndefined(metadataMap))
|
|
756
|
-
return void 0;
|
|
691
|
+
if (IsUndefined(metadataMap)) return void 0;
|
|
757
692
|
return metadataMap.get(MetadataKey);
|
|
758
693
|
}
|
|
759
694
|
__name(OrdinaryGetOwnMetadata2, "OrdinaryGetOwnMetadata");
|
|
@@ -775,8 +710,7 @@ var require_Reflect = __commonJS({
|
|
|
775
710
|
/*Create*/
|
|
776
711
|
false
|
|
777
712
|
);
|
|
778
|
-
if (IsUndefined(metadataMap))
|
|
779
|
-
return keys;
|
|
713
|
+
if (IsUndefined(metadataMap)) return keys;
|
|
780
714
|
var keysObj = metadataMap.keys();
|
|
781
715
|
var iterator = GetIterator(keysObj);
|
|
782
716
|
var k = 0;
|
|
@@ -807,10 +741,8 @@ var require_Reflect = __commonJS({
|
|
|
807
741
|
/*Create*/
|
|
808
742
|
false
|
|
809
743
|
);
|
|
810
|
-
if (IsUndefined(metadataMap))
|
|
811
|
-
|
|
812
|
-
if (!metadataMap.delete(MetadataKey))
|
|
813
|
-
return false;
|
|
744
|
+
if (IsUndefined(metadataMap)) return false;
|
|
745
|
+
if (!metadataMap.delete(MetadataKey)) return false;
|
|
814
746
|
if (metadataMap.size === 0) {
|
|
815
747
|
var targetMetadata = metadata2.get(O);
|
|
816
748
|
if (!IsUndefined(targetMetadata)) {
|
|
@@ -829,7 +761,7 @@ var require_Reflect = __commonJS({
|
|
|
829
761
|
var defineMetadata2 = reflect.defineMetadata, hasOwnMetadata2 = reflect.hasOwnMetadata, getOwnMetadata2 = reflect.getOwnMetadata, getOwnMetadataKeys2 = reflect.getOwnMetadataKeys, deleteMetadata2 = reflect.deleteMetadata;
|
|
830
762
|
var metadataOwner = new _WeakMap();
|
|
831
763
|
var provider = {
|
|
832
|
-
isProviderFor: function(O, P) {
|
|
764
|
+
isProviderFor: /* @__PURE__ */ __name(function(O, P) {
|
|
833
765
|
var metadataPropertySet = metadataOwner.get(O);
|
|
834
766
|
if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) {
|
|
835
767
|
return true;
|
|
@@ -843,7 +775,7 @@ var require_Reflect = __commonJS({
|
|
|
843
775
|
return true;
|
|
844
776
|
}
|
|
845
777
|
return false;
|
|
846
|
-
},
|
|
778
|
+
}, "isProviderFor"),
|
|
847
779
|
OrdinaryDefineOwnMetadata: defineMetadata2,
|
|
848
780
|
OrdinaryHasOwnMetadata: hasOwnMetadata2,
|
|
849
781
|
OrdinaryGetOwnMetadata: getOwnMetadata2,
|
|
@@ -940,9 +872,9 @@ var require_Reflect = __commonJS({
|
|
|
940
872
|
}
|
|
941
873
|
__name(Map12, "Map1");
|
|
942
874
|
Object.defineProperty(Map12.prototype, "size", {
|
|
943
|
-
get: function() {
|
|
875
|
+
get: /* @__PURE__ */ __name(function() {
|
|
944
876
|
return this._keys.length;
|
|
945
|
-
},
|
|
877
|
+
}, "get"),
|
|
946
878
|
enumerable: true,
|
|
947
879
|
configurable: true
|
|
948
880
|
});
|
|
@@ -1060,9 +992,9 @@ var require_Reflect = __commonJS({
|
|
|
1060
992
|
}
|
|
1061
993
|
__name(Set12, "Set1");
|
|
1062
994
|
Object.defineProperty(Set12.prototype, "size", {
|
|
1063
|
-
get: function() {
|
|
995
|
+
get: /* @__PURE__ */ __name(function() {
|
|
1064
996
|
return this._map.size;
|
|
1065
|
-
},
|
|
997
|
+
}, "get"),
|
|
1066
998
|
enumerable: true,
|
|
1067
999
|
configurable: true
|
|
1068
1000
|
});
|
|
@@ -1160,8 +1092,7 @@ var require_Reflect = __commonJS({
|
|
|
1160
1092
|
__name(CreateUniqueKey, "CreateUniqueKey");
|
|
1161
1093
|
function GetOrCreateWeakMapTable(target, create2) {
|
|
1162
1094
|
if (!hasOwn2.call(target, rootKey)) {
|
|
1163
|
-
if (!create2)
|
|
1164
|
-
return void 0;
|
|
1095
|
+
if (!create2) return void 0;
|
|
1165
1096
|
Object.defineProperty(target, rootKey, {
|
|
1166
1097
|
value: HashMap.create()
|
|
1167
1098
|
});
|
|
@@ -1170,8 +1101,7 @@ var require_Reflect = __commonJS({
|
|
|
1170
1101
|
}
|
|
1171
1102
|
__name(GetOrCreateWeakMapTable, "GetOrCreateWeakMapTable");
|
|
1172
1103
|
function FillRandomBytes(buffer, size) {
|
|
1173
|
-
for (var i = 0; i < size; ++i)
|
|
1174
|
-
buffer[i] = Math.random() * 255 | 0;
|
|
1104
|
+
for (var i = 0; i < size; ++i) buffer[i] = Math.random() * 255 | 0;
|
|
1175
1105
|
return buffer;
|
|
1176
1106
|
}
|
|
1177
1107
|
__name(FillRandomBytes, "FillRandomBytes");
|
|
@@ -1197,10 +1127,8 @@ var require_Reflect = __commonJS({
|
|
|
1197
1127
|
var result = "";
|
|
1198
1128
|
for (var offset2 = 0; offset2 < UUID_SIZE; ++offset2) {
|
|
1199
1129
|
var byte = data2[offset2];
|
|
1200
|
-
if (offset2 === 4 || offset2 === 6 || offset2 === 8)
|
|
1201
|
-
|
|
1202
|
-
if (byte < 16)
|
|
1203
|
-
result += "0";
|
|
1130
|
+
if (offset2 === 4 || offset2 === 6 || offset2 === 8) result += "-";
|
|
1131
|
+
if (byte < 16) result += "0";
|
|
1204
1132
|
result += byte.toString(16).toLowerCase();
|
|
1205
1133
|
}
|
|
1206
1134
|
return result;
|
|
@@ -5415,8 +5343,7 @@ var require_main = __commonJS({
|
|
|
5415
5343
|
}
|
|
5416
5344
|
__name(t, "t");
|
|
5417
5345
|
function e(t2, e2) {
|
|
5418
|
-
for (var n2 = -1, r2 = null == t2 ? 0 : t2.length; ++n2 < r2 && false !== e2(t2[n2], n2, t2); )
|
|
5419
|
-
;
|
|
5346
|
+
for (var n2 = -1, r2 = null == t2 ? 0 : t2.length; ++n2 < r2 && false !== e2(t2[n2], n2, t2); ) ;
|
|
5420
5347
|
}
|
|
5421
5348
|
__name(e, "e");
|
|
5422
5349
|
function n(t2, e2) {
|
|
@@ -5428,14 +5355,12 @@ var require_main = __commonJS({
|
|
|
5428
5355
|
}
|
|
5429
5356
|
__name(n, "n");
|
|
5430
5357
|
function r(t2, e2) {
|
|
5431
|
-
for (var n2 = -1, r2 = null == t2 ? 0 : t2.length, u2 = Array(r2); ++n2 < r2; )
|
|
5432
|
-
u2[n2] = e2(t2[n2], n2, t2);
|
|
5358
|
+
for (var n2 = -1, r2 = null == t2 ? 0 : t2.length, u2 = Array(r2); ++n2 < r2; ) u2[n2] = e2(t2[n2], n2, t2);
|
|
5433
5359
|
return u2;
|
|
5434
5360
|
}
|
|
5435
5361
|
__name(r, "r");
|
|
5436
5362
|
function u(t2, e2) {
|
|
5437
|
-
for (var n2 = -1, r2 = e2.length, u2 = t2.length; ++n2 < r2; )
|
|
5438
|
-
t2[u2 + n2] = e2[n2];
|
|
5363
|
+
for (var n2 = -1, r2 = e2.length, u2 = t2.length; ++n2 < r2; ) t2[u2 + n2] = e2[n2];
|
|
5439
5364
|
return t2;
|
|
5440
5365
|
}
|
|
5441
5366
|
__name(u, "u");
|
|
@@ -5486,14 +5411,11 @@ var require_main = __commonJS({
|
|
|
5486
5411
|
function b(t2, e2) {
|
|
5487
5412
|
var n2 = Ye(t2), r2 = !n2 && Xe(t2), u2 = !n2 && !r2 && Ze(t2), o2 = !n2 && !r2 && !u2 && nn(t2);
|
|
5488
5413
|
if (n2 = n2 || r2 || u2 || o2) {
|
|
5489
|
-
for (var r2 = t2.length, c2 = String, i2 = -1, f2 = Array(r2); ++i2 < r2; )
|
|
5490
|
-
f2[i2] = c2(i2);
|
|
5414
|
+
for (var r2 = t2.length, c2 = String, i2 = -1, f2 = Array(r2); ++i2 < r2; ) f2[i2] = c2(i2);
|
|
5491
5415
|
r2 = f2;
|
|
5492
|
-
} else
|
|
5493
|
-
r2 = [];
|
|
5416
|
+
} else r2 = [];
|
|
5494
5417
|
var a2, c2 = r2.length;
|
|
5495
|
-
for (a2 in t2)
|
|
5496
|
-
!e2 && !fe.call(t2, a2) || n2 && ("length" == a2 || u2 && ("offset" == a2 || "parent" == a2) || o2 && ("buffer" == a2 || "byteLength" == a2 || "byteOffset" == a2) || ut(a2, c2)) || r2.push(a2);
|
|
5418
|
+
for (a2 in t2) !e2 && !fe.call(t2, a2) || n2 && ("length" == a2 || u2 && ("offset" == a2 || "parent" == a2) || o2 && ("buffer" == a2 || "byteLength" == a2 || "byteOffset" == a2) || ut(a2, c2)) || r2.push(a2);
|
|
5497
5419
|
return r2;
|
|
5498
5420
|
}
|
|
5499
5421
|
__name(b, "b");
|
|
@@ -5507,9 +5429,7 @@ var require_main = __commonJS({
|
|
|
5507
5429
|
}
|
|
5508
5430
|
__name(h, "h");
|
|
5509
5431
|
function y(t2, e2) {
|
|
5510
|
-
for (var n2 = t2.length; n2--; )
|
|
5511
|
-
if (bt(t2[n2][0], e2))
|
|
5512
|
-
return n2;
|
|
5432
|
+
for (var n2 = t2.length; n2--; ) if (bt(t2[n2][0], e2)) return n2;
|
|
5513
5433
|
return -1;
|
|
5514
5434
|
}
|
|
5515
5435
|
__name(y, "y");
|
|
@@ -5527,36 +5447,27 @@ var require_main = __commonJS({
|
|
|
5527
5447
|
__name(d, "d");
|
|
5528
5448
|
function g(t2, n2, r2, u2, o2, c2) {
|
|
5529
5449
|
var i2, f2 = 1 & n2, a2 = 2 & n2, l2 = 4 & n2;
|
|
5530
|
-
if (r2 && (i2 = o2 ? r2(t2, u2, o2, c2) : r2(t2)), i2 !== Mt)
|
|
5531
|
-
|
|
5532
|
-
if (!_t(t2))
|
|
5533
|
-
return t2;
|
|
5450
|
+
if (r2 && (i2 = o2 ? r2(t2, u2, o2, c2) : r2(t2)), i2 !== Mt) return i2;
|
|
5451
|
+
if (!_t(t2)) return t2;
|
|
5534
5452
|
if (u2 = Ye(t2)) {
|
|
5535
|
-
if (i2 = tt(t2), !f2)
|
|
5536
|
-
return T(t2, i2);
|
|
5453
|
+
if (i2 = tt(t2), !f2) return T(t2, i2);
|
|
5537
5454
|
} else {
|
|
5538
5455
|
var b2 = Je(t2), p2 = "[object Function]" == b2 || "[object GeneratorFunction]" == b2;
|
|
5539
|
-
if (Ze(t2))
|
|
5540
|
-
return R(t2, f2);
|
|
5456
|
+
if (Ze(t2)) return R(t2, f2);
|
|
5541
5457
|
if ("[object Object]" == b2 || "[object Arguments]" == b2 || p2 && !o2) {
|
|
5542
|
-
if (i2 = a2 || p2 ? {} : et(t2), !f2)
|
|
5543
|
-
return a2 ? G(t2, _(i2, t2)) : N(t2, j(i2, t2));
|
|
5458
|
+
if (i2 = a2 || p2 ? {} : et(t2), !f2) return a2 ? G(t2, _(i2, t2)) : N(t2, j(i2, t2));
|
|
5544
5459
|
} else {
|
|
5545
|
-
if (!Gt[b2])
|
|
5546
|
-
return o2 ? t2 : {};
|
|
5460
|
+
if (!Gt[b2]) return o2 ? t2 : {};
|
|
5547
5461
|
i2 = nt(t2, b2, f2);
|
|
5548
5462
|
}
|
|
5549
5463
|
}
|
|
5550
|
-
if (c2 || (c2 = new s()), o2 = c2.get(t2))
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
return t2.forEach(function(e2, u3) {
|
|
5558
|
-
i2.set(u3, g(e2, n2, r2, u3, t2, c2));
|
|
5559
|
-
}), i2;
|
|
5464
|
+
if (c2 || (c2 = new s()), o2 = c2.get(t2)) return o2;
|
|
5465
|
+
if (c2.set(t2, i2), en(t2)) return t2.forEach(function(e2) {
|
|
5466
|
+
i2.add(g(e2, n2, r2, e2, t2, c2));
|
|
5467
|
+
}), i2;
|
|
5468
|
+
if (tn(t2)) return t2.forEach(function(e2, u3) {
|
|
5469
|
+
i2.set(u3, g(e2, n2, r2, u3, t2, c2));
|
|
5470
|
+
}), i2;
|
|
5560
5471
|
var a2 = l2 ? a2 ? Q : K : a2 ? zt : St, y2 = u2 ? Mt : a2(t2);
|
|
5561
5472
|
return e(y2 || t2, function(e2, u3) {
|
|
5562
5473
|
y2 && (u3 = e2, e2 = t2[u3]), h(i2, u3, g(e2, n2, r2, u3, t2, c2));
|
|
@@ -5574,8 +5485,7 @@ var require_main = __commonJS({
|
|
|
5574
5485
|
__name(v, "v");
|
|
5575
5486
|
function A(t2, e2) {
|
|
5576
5487
|
e2 = C(e2, t2);
|
|
5577
|
-
for (var n2 = 0, r2 = e2.length; null != t2 && n2 < r2; )
|
|
5578
|
-
t2 = t2[it(e2[n2++])];
|
|
5488
|
+
for (var n2 = 0, r2 = e2.length; null != t2 && n2 < r2; ) t2 = t2[it(e2[n2++])];
|
|
5579
5489
|
return n2 && n2 == r2 ? t2 : Mt;
|
|
5580
5490
|
}
|
|
5581
5491
|
__name(A, "A");
|
|
@@ -5584,8 +5494,7 @@ var require_main = __commonJS({
|
|
|
5584
5494
|
}
|
|
5585
5495
|
__name(m, "m");
|
|
5586
5496
|
function w(t2) {
|
|
5587
|
-
if (null == t2)
|
|
5588
|
-
t2 = t2 === Mt ? "[object Undefined]" : "[object Null]";
|
|
5497
|
+
if (null == t2) t2 = t2 === Mt ? "[object Undefined]" : "[object Null]";
|
|
5589
5498
|
else if (me && me in Object(t2)) {
|
|
5590
5499
|
var e2 = fe.call(t2, me), n2 = t2[me];
|
|
5591
5500
|
try {
|
|
@@ -5595,8 +5504,7 @@ var require_main = __commonJS({
|
|
|
5595
5504
|
}
|
|
5596
5505
|
var u2 = le.call(t2);
|
|
5597
5506
|
r2 && (e2 ? t2[me] = n2 : delete t2[me]), t2 = u2;
|
|
5598
|
-
} else
|
|
5599
|
-
t2 = le.call(t2);
|
|
5507
|
+
} else t2 = le.call(t2);
|
|
5600
5508
|
return t2;
|
|
5601
5509
|
}
|
|
5602
5510
|
__name(w, "w");
|
|
@@ -5625,11 +5533,9 @@ var require_main = __commonJS({
|
|
|
5625
5533
|
}
|
|
5626
5534
|
__name(F, "F");
|
|
5627
5535
|
function I(t2) {
|
|
5628
|
-
if (!ot(t2))
|
|
5629
|
-
return ze(t2);
|
|
5536
|
+
if (!ot(t2)) return ze(t2);
|
|
5630
5537
|
var e2, n2 = [];
|
|
5631
|
-
for (e2 in Object(t2))
|
|
5632
|
-
fe.call(t2, e2) && "constructor" != e2 && n2.push(e2);
|
|
5538
|
+
for (e2 in Object(t2)) fe.call(t2, e2) && "constructor" != e2 && n2.push(e2);
|
|
5633
5539
|
return n2;
|
|
5634
5540
|
}
|
|
5635
5541
|
__name(I, "I");
|
|
@@ -5638,8 +5544,7 @@ var require_main = __commonJS({
|
|
|
5638
5544
|
if (_t(o2)) {
|
|
5639
5545
|
u2 || (u2 = new s());
|
|
5640
5546
|
var i2 = u2, f2 = "__proto__" == c2 ? Mt : t2[c2], a2 = "__proto__" == c2 ? Mt : e2[c2], l2 = i2.get(a2);
|
|
5641
|
-
if (l2)
|
|
5642
|
-
p(t2, c2, l2);
|
|
5547
|
+
if (l2) p(t2, c2, l2);
|
|
5643
5548
|
else {
|
|
5644
5549
|
var l2 = r2 ? r2(f2, a2, c2 + "", t2, e2, i2) : Mt, b2 = l2 === Mt;
|
|
5645
5550
|
if (b2) {
|
|
@@ -5648,8 +5553,7 @@ var require_main = __commonJS({
|
|
|
5648
5553
|
}
|
|
5649
5554
|
b2 && (i2.set(a2, l2), M(l2, a2, n2, r2, i2), i2.delete(a2)), p(t2, c2, l2);
|
|
5650
5555
|
}
|
|
5651
|
-
} else
|
|
5652
|
-
i2 = r2 ? r2("__proto__" == c2 ? Mt : t2[c2], o2, c2 + "", t2, e2, u2) : Mt, i2 === Mt && (i2 = o2), p(t2, c2, i2);
|
|
5556
|
+
} else i2 = r2 ? r2("__proto__" == c2 ? Mt : t2[c2], o2, c2 + "", t2, e2, u2) : Mt, i2 === Mt && (i2 = o2), p(t2, c2, i2);
|
|
5653
5557
|
}, zt);
|
|
5654
5558
|
}
|
|
5655
5559
|
__name(M, "M");
|
|
@@ -5672,8 +5576,7 @@ var require_main = __commonJS({
|
|
|
5672
5576
|
}
|
|
5673
5577
|
__name(P, "P");
|
|
5674
5578
|
function D(t2, e2, n2) {
|
|
5675
|
-
if (!_t(t2))
|
|
5676
|
-
return t2;
|
|
5579
|
+
if (!_t(t2)) return t2;
|
|
5677
5580
|
e2 = C(e2, t2);
|
|
5678
5581
|
for (var r2 = -1, u2 = e2.length, o2 = u2 - 1, c2 = t2; null != c2 && ++r2 < u2; ) {
|
|
5679
5582
|
var i2 = it(e2[r2]), f2 = n2;
|
|
@@ -5687,12 +5590,9 @@ var require_main = __commonJS({
|
|
|
5687
5590
|
}
|
|
5688
5591
|
__name(D, "D");
|
|
5689
5592
|
function $(t2) {
|
|
5690
|
-
if (typeof t2 == "string")
|
|
5691
|
-
|
|
5692
|
-
if (
|
|
5693
|
-
return r(t2, $) + "";
|
|
5694
|
-
if (At(t2))
|
|
5695
|
-
return Te ? Te.call(t2) : "";
|
|
5593
|
+
if (typeof t2 == "string") return t2;
|
|
5594
|
+
if (Ye(t2)) return r(t2, $) + "";
|
|
5595
|
+
if (At(t2)) return Te ? Te.call(t2) : "";
|
|
5696
5596
|
var e2 = t2 + "";
|
|
5697
5597
|
return "0" == e2 && 1 / t2 == -Et ? "-0" : e2;
|
|
5698
5598
|
}
|
|
@@ -5700,13 +5600,11 @@ var require_main = __commonJS({
|
|
|
5700
5600
|
function B(t2, e2) {
|
|
5701
5601
|
e2 = C(e2, t2);
|
|
5702
5602
|
var n2;
|
|
5703
|
-
if (2 > e2.length)
|
|
5704
|
-
n2 = t2;
|
|
5603
|
+
if (2 > e2.length) n2 = t2;
|
|
5705
5604
|
else {
|
|
5706
5605
|
n2 = e2;
|
|
5707
5606
|
var r2 = 0, u2 = -1, o2 = -1, c2 = n2.length;
|
|
5708
|
-
for (0 > r2 && (r2 = -r2 > c2 ? 0 : c2 + r2), u2 = u2 > c2 ? c2 : u2, 0 > u2 && (u2 += c2), c2 = r2 > u2 ? 0 : u2 - r2 >>> 0, r2 >>>= 0, u2 = Array(c2); ++o2 < c2; )
|
|
5709
|
-
u2[o2] = n2[o2 + r2];
|
|
5607
|
+
for (0 > r2 && (r2 = -r2 > c2 ? 0 : c2 + r2), u2 = u2 > c2 ? c2 : u2, 0 > u2 && (u2 += c2), c2 = r2 > u2 ? 0 : u2 - r2 >>> 0, r2 >>>= 0, u2 = Array(c2); ++o2 < c2; ) u2[o2] = n2[o2 + r2];
|
|
5710
5608
|
n2 = A(t2, u2);
|
|
5711
5609
|
}
|
|
5712
5610
|
return t2 = n2, null == t2 || delete t2[it(lt(e2))];
|
|
@@ -5718,8 +5616,7 @@ var require_main = __commonJS({
|
|
|
5718
5616
|
}
|
|
5719
5617
|
__name(C, "C");
|
|
5720
5618
|
function R(t2, e2) {
|
|
5721
|
-
if (e2)
|
|
5722
|
-
return t2.slice();
|
|
5619
|
+
if (e2) return t2.slice();
|
|
5723
5620
|
var n2 = t2.length, n2 = je ? je(n2) : new t2.constructor(n2);
|
|
5724
5621
|
return t2.copy(n2), n2;
|
|
5725
5622
|
}
|
|
@@ -5735,8 +5632,7 @@ var require_main = __commonJS({
|
|
|
5735
5632
|
__name(L, "L");
|
|
5736
5633
|
function T(t2, e2) {
|
|
5737
5634
|
var n2 = -1, r2 = t2.length;
|
|
5738
|
-
for (e2 || (e2 = Array(r2)); ++n2 < r2; )
|
|
5739
|
-
e2[n2] = t2[n2];
|
|
5635
|
+
for (e2 || (e2 = Array(r2)); ++n2 < r2; ) e2[n2] = t2[n2];
|
|
5740
5636
|
return e2;
|
|
5741
5637
|
}
|
|
5742
5638
|
__name(T, "T");
|
|
@@ -5767,11 +5663,9 @@ var require_main = __commonJS({
|
|
|
5767
5663
|
if (_t(i2)) {
|
|
5768
5664
|
var a2 = typeof f2;
|
|
5769
5665
|
r2 = !!("number" == a2 ? pt(i2) && ut(f2, i2.length) : "string" == a2 && f2 in i2) && bt(i2[f2], r2);
|
|
5770
|
-
} else
|
|
5771
|
-
r2 = false;
|
|
5666
|
+
} else r2 = false;
|
|
5772
5667
|
}
|
|
5773
|
-
for (r2 && (c2 = 3 > o2 ? Mt : c2, o2 = 1), e2 = Object(e2); ++u2 < o2; )
|
|
5774
|
-
(i2 = n2[u2]) && t2(e2, i2, u2, c2);
|
|
5668
|
+
for (r2 && (c2 = 3 > o2 ? Mt : c2, o2 = 1), e2 = Object(e2); ++u2 < o2; ) (i2 = n2[u2]) && t2(e2, i2, u2, c2);
|
|
5775
5669
|
return e2;
|
|
5776
5670
|
});
|
|
5777
5671
|
}
|
|
@@ -5806,8 +5700,7 @@ var require_main = __commonJS({
|
|
|
5806
5700
|
e2 = C(e2, t2);
|
|
5807
5701
|
for (var r2 = -1, u2 = e2.length, o2 = false; ++r2 < u2; ) {
|
|
5808
5702
|
var c2 = it(e2[r2]);
|
|
5809
|
-
if (!(o2 = null != t2 && n2(t2, c2)))
|
|
5810
|
-
break;
|
|
5703
|
+
if (!(o2 = null != t2 && n2(t2, c2))) break;
|
|
5811
5704
|
t2 = t2[c2];
|
|
5812
5705
|
}
|
|
5813
5706
|
return o2 || ++r2 != u2 ? o2 : (u2 = null == t2 ? 0 : t2.length, !!u2 && jt(u2) && ut(c2, u2) && (Ye(t2) || Xe(t2)));
|
|
@@ -5872,17 +5765,14 @@ var require_main = __commonJS({
|
|
|
5872
5765
|
__name(ot, "ot");
|
|
5873
5766
|
function ct(e2, n2, r2) {
|
|
5874
5767
|
return n2 = xe(n2 === Mt ? e2.length - 1 : n2, 0), function() {
|
|
5875
|
-
for (var u2 = arguments, o2 = -1, c2 = xe(u2.length - n2, 0), i2 = Array(c2); ++o2 < c2; )
|
|
5876
|
-
|
|
5877
|
-
for (o2 = -1, c2 = Array(n2 + 1); ++o2 < n2; )
|
|
5878
|
-
c2[o2] = u2[o2];
|
|
5768
|
+
for (var u2 = arguments, o2 = -1, c2 = xe(u2.length - n2, 0), i2 = Array(c2); ++o2 < c2; ) i2[o2] = u2[n2 + o2];
|
|
5769
|
+
for (o2 = -1, c2 = Array(n2 + 1); ++o2 < n2; ) c2[o2] = u2[o2];
|
|
5879
5770
|
return c2[n2] = r2(i2), t(e2, this, c2);
|
|
5880
5771
|
};
|
|
5881
5772
|
}
|
|
5882
5773
|
__name(ct, "ct");
|
|
5883
5774
|
function it(t2) {
|
|
5884
|
-
if (typeof t2 == "string" || At(t2))
|
|
5885
|
-
return t2;
|
|
5775
|
+
if (typeof t2 == "string" || At(t2)) return t2;
|
|
5886
5776
|
var e2 = t2 + "";
|
|
5887
5777
|
return "0" == e2 && 1 / t2 == -Et ? "-0" : e2;
|
|
5888
5778
|
}
|
|
@@ -5913,8 +5803,7 @@ var require_main = __commonJS({
|
|
|
5913
5803
|
return o2.has(u2) ? o2.get(u2) : (r2 = t2.apply(this, r2), n2.cache = o2.set(u2, r2) || o2, r2);
|
|
5914
5804
|
}
|
|
5915
5805
|
__name(n2, "n");
|
|
5916
|
-
if (typeof t2 != "function" || null != e2 && typeof e2 != "function")
|
|
5917
|
-
throw new TypeError("Expected a function");
|
|
5806
|
+
if (typeof t2 != "function" || null != e2 && typeof e2 != "function") throw new TypeError("Expected a function");
|
|
5918
5807
|
return n2.cache = new (st.Cache || l)(), n2;
|
|
5919
5808
|
}
|
|
5920
5809
|
__name(st, "st");
|
|
@@ -5976,17 +5865,13 @@ var require_main = __commonJS({
|
|
|
5976
5865
|
}
|
|
5977
5866
|
__name(St, "St");
|
|
5978
5867
|
function zt(t2) {
|
|
5979
|
-
if (pt(t2))
|
|
5980
|
-
t2 = b(t2, true);
|
|
5868
|
+
if (pt(t2)) t2 = b(t2, true);
|
|
5981
5869
|
else if (_t(t2)) {
|
|
5982
5870
|
var e2, n2 = ot(t2), r2 = [];
|
|
5983
|
-
for (e2 in t2)
|
|
5984
|
-
("constructor" != e2 || !n2 && fe.call(t2, e2)) && r2.push(e2);
|
|
5871
|
+
for (e2 in t2) ("constructor" != e2 || !n2 && fe.call(t2, e2)) && r2.push(e2);
|
|
5985
5872
|
t2 = r2;
|
|
5986
5873
|
} else {
|
|
5987
|
-
if (e2 = [], null != t2)
|
|
5988
|
-
for (n2 in Object(t2))
|
|
5989
|
-
e2.push(n2);
|
|
5874
|
+
if (e2 = [], null != t2) for (n2 in Object(t2)) e2.push(n2);
|
|
5990
5875
|
t2 = e2;
|
|
5991
5876
|
}
|
|
5992
5877
|
return t2;
|
|
@@ -6098,8 +5983,7 @@ var require_main = __commonJS({
|
|
|
6098
5983
|
var n2 = this.__data__;
|
|
6099
5984
|
if (n2 instanceof a) {
|
|
6100
5985
|
var r2 = n2.__data__;
|
|
6101
|
-
if (!Ie || 199 > r2.length)
|
|
6102
|
-
return r2.push([t2, e2]), this.size = ++n2.size, this;
|
|
5986
|
+
if (!Ie || 199 > r2.length) return r2.push([t2, e2]), this.size = ++n2.size, this;
|
|
6103
5987
|
n2 = this.__data__ = new l(r2);
|
|
6104
5988
|
}
|
|
6105
5989
|
return n2.set(t2, e2), this.size = n2.size, this;
|
|
@@ -6110,8 +5994,7 @@ var require_main = __commonJS({
|
|
|
6110
5994
|
r2 = r2(e2);
|
|
6111
5995
|
for (var c2 = r2.length; c2--; ) {
|
|
6112
5996
|
var i2 = r2[t2 ? c2 : ++u2];
|
|
6113
|
-
if (false === n2(o2[i2], i2, o2))
|
|
6114
|
-
break;
|
|
5997
|
+
if (false === n2(o2[i2], i2, o2)) break;
|
|
6115
5998
|
}
|
|
6116
5999
|
return e2;
|
|
6117
6000
|
};
|
|
@@ -6127,25 +6010,23 @@ var require_main = __commonJS({
|
|
|
6127
6010
|
return ge.call(t2, e2);
|
|
6128
6011
|
}));
|
|
6129
6012
|
} : Ft, He = Oe ? function(t2) {
|
|
6130
|
-
for (var e2 = []; t2; )
|
|
6131
|
-
u(e2, qe(t2)), t2 = _e(t2);
|
|
6013
|
+
for (var e2 = []; t2; ) u(e2, qe(t2)), t2 = _e(t2);
|
|
6132
6014
|
return e2;
|
|
6133
6015
|
} : Ft, Je = w;
|
|
6134
6016
|
(Fe && "[object DataView]" != Je(new Fe(new ArrayBuffer(1))) || Ie && "[object Map]" != Je(new Ie()) || Me && "[object Promise]" != Je(Me.resolve()) || Ee && "[object Set]" != Je(new Ee()) || Ue && "[object WeakMap]" != Je(new Ue())) && (Je = /* @__PURE__ */ __name(function(t2) {
|
|
6135
6017
|
var e2 = w(t2);
|
|
6136
|
-
if (t2 = (t2 = "[object Object]" == e2 ? t2.constructor : Mt) ? ft(t2) : "")
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
}
|
|
6018
|
+
if (t2 = (t2 = "[object Object]" == e2 ? t2.constructor : Mt) ? ft(t2) : "") switch (t2) {
|
|
6019
|
+
case De:
|
|
6020
|
+
return "[object DataView]";
|
|
6021
|
+
case $e:
|
|
6022
|
+
return "[object Map]";
|
|
6023
|
+
case Be:
|
|
6024
|
+
return "[object Promise]";
|
|
6025
|
+
case Ce:
|
|
6026
|
+
return "[object Set]";
|
|
6027
|
+
case Re:
|
|
6028
|
+
return "[object WeakMap]";
|
|
6029
|
+
}
|
|
6149
6030
|
return e2;
|
|
6150
6031
|
}, "Je"));
|
|
6151
6032
|
var Ke = /* @__PURE__ */ function(t2) {
|
|
@@ -6153,10 +6034,8 @@ var require_main = __commonJS({
|
|
|
6153
6034
|
return function() {
|
|
6154
6035
|
var r2 = ke(), u2 = 16 - (r2 - n2);
|
|
6155
6036
|
if (n2 = r2, 0 < u2) {
|
|
6156
|
-
if (800 <= ++e2)
|
|
6157
|
-
|
|
6158
|
-
} else
|
|
6159
|
-
e2 = 0;
|
|
6037
|
+
if (800 <= ++e2) return arguments[0];
|
|
6038
|
+
} else e2 = 0;
|
|
6160
6039
|
return t2.apply(Mt, arguments);
|
|
6161
6040
|
};
|
|
6162
6041
|
}(Ge), Qe = function(t2) {
|
|
@@ -6182,14 +6061,12 @@ var require_main = __commonJS({
|
|
|
6182
6061
|
M(t2, e2, n2, r2);
|
|
6183
6062
|
}), on = J(function(t2, e2) {
|
|
6184
6063
|
var n2 = {};
|
|
6185
|
-
if (null == t2)
|
|
6186
|
-
return n2;
|
|
6064
|
+
if (null == t2) return n2;
|
|
6187
6065
|
var u2 = false;
|
|
6188
6066
|
e2 = r(e2, function(e3) {
|
|
6189
6067
|
return e3 = C(e3, t2), u2 || (u2 = 1 < e3.length), e3;
|
|
6190
6068
|
}), V(t2, Q(t2), n2), u2 && (n2 = g(n2, 7, H));
|
|
6191
|
-
for (var o2 = e2.length; o2--; )
|
|
6192
|
-
B(n2, e2[o2]);
|
|
6069
|
+
for (var o2 = e2.length; o2--; ) B(n2, e2[o2]);
|
|
6193
6070
|
return n2;
|
|
6194
6071
|
}), cn = J(function(t2, e2) {
|
|
6195
6072
|
return null == t2 ? {} : E(t2, e2);
|
|
@@ -6213,18 +6090,13 @@ var require_main = __commonJS({
|
|
|
6213
6090
|
}, i.has = function(t2, e2) {
|
|
6214
6091
|
return null != t2 && Z(t2, e2, O);
|
|
6215
6092
|
}, i.hasIn = Ot, i.identity = kt, i.isArguments = Xe, i.isArray = Ye, i.isArrayLike = pt, i.isArrayLikeObject = ht, i.isBuffer = Ze, i.isFunction = yt, i.isLength = jt, i.isMap = tn, i.isObject = _t, i.isObjectLike = dt, i.isPlainObject = gt, i.isSet = en, i.isString = vt, i.isSymbol = At, i.isTypedArray = nn, i.last = lt, i.stubArray = Ft, i.stubFalse = It, i.size = function(t2) {
|
|
6216
|
-
if (null == t2)
|
|
6217
|
-
return 0;
|
|
6093
|
+
if (null == t2) return 0;
|
|
6218
6094
|
if (pt(t2)) {
|
|
6219
|
-
if (vt(t2))
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
} else
|
|
6225
|
-
t2 = re(t2);
|
|
6226
|
-
else
|
|
6227
|
-
t2 = t2.length;
|
|
6095
|
+
if (vt(t2)) if (Vt.test(t2)) {
|
|
6096
|
+
for (var e2 = Tt.lastIndex = 0; Tt.test(t2); ) ++e2;
|
|
6097
|
+
t2 = e2;
|
|
6098
|
+
} else t2 = re(t2);
|
|
6099
|
+
else t2 = t2.length;
|
|
6228
6100
|
return t2;
|
|
6229
6101
|
}
|
|
6230
6102
|
return e2 = Je(t2), "[object Map]" == e2 || "[object Set]" == e2 ? t2.size : I(t2).length;
|
|
@@ -7862,11 +7734,10 @@ var init_chunk_EKKK4GME = __esm({
|
|
|
7862
7734
|
init_property_information();
|
|
7863
7735
|
__defProp2 = Object.defineProperty;
|
|
7864
7736
|
__export2 = /* @__PURE__ */ __name((target, all) => {
|
|
7865
|
-
for (var name in all)
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
});
|
|
7737
|
+
for (var name in all) __defProp2(target, name, {
|
|
7738
|
+
get: all[name],
|
|
7739
|
+
enumerable: true
|
|
7740
|
+
});
|
|
7870
7741
|
}, "__export");
|
|
7871
7742
|
Stacks = class {
|
|
7872
7743
|
static {
|
|
@@ -8698,8 +8569,7 @@ var require_safe_stable_stringify = __commonJS({
|
|
|
8698
8569
|
if (value) {
|
|
8699
8570
|
return (value2) => {
|
|
8700
8571
|
let message = `Object can not safely be stringified. Received type ${typeof value2}`;
|
|
8701
|
-
if (typeof value2 !== "function")
|
|
8702
|
-
message += ` (${value2.toString()})`;
|
|
8572
|
+
if (typeof value2 !== "function") message += ` (${value2.toString()})`;
|
|
8703
8573
|
throw new Error(message);
|
|
8704
8574
|
};
|
|
8705
8575
|
}
|
|
@@ -8831,6 +8701,7 @@ ${originalIndentation}`;
|
|
|
8831
8701
|
if (bigint) {
|
|
8832
8702
|
return String(value);
|
|
8833
8703
|
}
|
|
8704
|
+
// fallthrough
|
|
8834
8705
|
default:
|
|
8835
8706
|
return fail ? fail(value) : void 0;
|
|
8836
8707
|
}
|
|
@@ -8922,6 +8793,7 @@ ${originalIndentation}`;
|
|
|
8922
8793
|
if (bigint) {
|
|
8923
8794
|
return String(value);
|
|
8924
8795
|
}
|
|
8796
|
+
// fallthrough
|
|
8925
8797
|
default:
|
|
8926
8798
|
return fail ? fail(value) : void 0;
|
|
8927
8799
|
}
|
|
@@ -9034,6 +8906,7 @@ ${originalIndentation}`;
|
|
|
9034
8906
|
if (bigint) {
|
|
9035
8907
|
return String(value);
|
|
9036
8908
|
}
|
|
8909
|
+
// fallthrough
|
|
9037
8910
|
default:
|
|
9038
8911
|
return fail ? fail(value) : void 0;
|
|
9039
8912
|
}
|
|
@@ -9130,6 +9003,7 @@ ${originalIndentation}`;
|
|
|
9130
9003
|
if (bigint) {
|
|
9131
9004
|
return String(value);
|
|
9132
9005
|
}
|
|
9006
|
+
// fallthrough
|
|
9133
9007
|
default:
|
|
9134
9008
|
return fail ? fail(value) : void 0;
|
|
9135
9009
|
}
|
|
@@ -9202,12 +9076,10 @@ var init_chunk_2KG3PWR4 = __esm({
|
|
|
9202
9076
|
__hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
9203
9077
|
__copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
|
|
9204
9078
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
9205
|
-
for (let key of __getOwnPropNames2(from))
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
9210
|
-
});
|
|
9079
|
+
for (let key of __getOwnPropNames2(from)) if (!__hasOwnProp2.call(to, key) && key !== except) __defProp3(to, key, {
|
|
9080
|
+
get: /* @__PURE__ */ __name(() => from[key], "get"),
|
|
9081
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
9082
|
+
});
|
|
9211
9083
|
}
|
|
9212
9084
|
return to;
|
|
9213
9085
|
}, "__copyProps");
|
|
@@ -9318,18 +9190,12 @@ var require_bytes = __commonJS({
|
|
|
9318
9190
|
function parse2(val) {
|
|
9319
9191
|
var num, arr = val.toLowerCase().match(RGX);
|
|
9320
9192
|
if (arr != null && (num = parseFloat(arr[1]))) {
|
|
9321
|
-
if (arr[3] != null)
|
|
9322
|
-
|
|
9323
|
-
if (arr[
|
|
9324
|
-
|
|
9325
|
-
if (arr[
|
|
9326
|
-
|
|
9327
|
-
if (arr[6] != null)
|
|
9328
|
-
return num * DAY;
|
|
9329
|
-
if (arr[7] != null)
|
|
9330
|
-
return num * DAY * 7;
|
|
9331
|
-
if (arr[8] != null)
|
|
9332
|
-
return num * YEAR;
|
|
9193
|
+
if (arr[3] != null) return num * SEC;
|
|
9194
|
+
if (arr[4] != null) return num * MIN;
|
|
9195
|
+
if (arr[5] != null) return num * HOUR;
|
|
9196
|
+
if (arr[6] != null) return num * DAY;
|
|
9197
|
+
if (arr[7] != null) return num * DAY * 7;
|
|
9198
|
+
if (arr[8] != null) return num * YEAR;
|
|
9333
9199
|
return num;
|
|
9334
9200
|
}
|
|
9335
9201
|
}
|
|
@@ -9339,16 +9205,11 @@ function fmt(val, pfx, str, long) {
|
|
|
9339
9205
|
}
|
|
9340
9206
|
function format(num, long) {
|
|
9341
9207
|
var pfx = num < 0 ? "-" : "", abs = num < 0 ? -num : num;
|
|
9342
|
-
if (abs < SEC)
|
|
9343
|
-
|
|
9344
|
-
if (abs < MIN)
|
|
9345
|
-
|
|
9346
|
-
if (abs <
|
|
9347
|
-
return fmt(abs / MIN, pfx, "minute", long);
|
|
9348
|
-
if (abs < DAY)
|
|
9349
|
-
return fmt(abs / HOUR, pfx, "hour", long);
|
|
9350
|
-
if (abs < YEAR)
|
|
9351
|
-
return fmt(abs / DAY, pfx, "day", long);
|
|
9208
|
+
if (abs < SEC) return num + (long ? " ms" : "ms");
|
|
9209
|
+
if (abs < MIN) return fmt(abs / SEC, pfx, "second", long);
|
|
9210
|
+
if (abs < HOUR) return fmt(abs / MIN, pfx, "minute", long);
|
|
9211
|
+
if (abs < DAY) return fmt(abs / HOUR, pfx, "hour", long);
|
|
9212
|
+
if (abs < YEAR) return fmt(abs / DAY, pfx, "day", long);
|
|
9352
9213
|
return fmt(abs / YEAR, pfx, "year", long);
|
|
9353
9214
|
}
|
|
9354
9215
|
var RGX, SEC, MIN, HOUR, DAY, YEAR;
|
|
@@ -9395,12 +9256,9 @@ var require_slugify = __commonJS({
|
|
|
9395
9256
|
var trim = options.trim === void 0 ? true : options.trim;
|
|
9396
9257
|
var slug2 = string2.normalize().split("").reduce(function(result, ch) {
|
|
9397
9258
|
var appendChar = locale[ch];
|
|
9398
|
-
if (appendChar === void 0)
|
|
9399
|
-
|
|
9400
|
-
if (appendChar ===
|
|
9401
|
-
appendChar = ch;
|
|
9402
|
-
if (appendChar === replacement)
|
|
9403
|
-
appendChar = " ";
|
|
9259
|
+
if (appendChar === void 0) appendChar = charMap[ch];
|
|
9260
|
+
if (appendChar === void 0) appendChar = ch;
|
|
9261
|
+
if (appendChar === replacement) appendChar = " ";
|
|
9404
9262
|
return result + appendChar.replace(options.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
|
|
9405
9263
|
}, "");
|
|
9406
9264
|
if (options.strict) {
|
|
@@ -9594,12 +9452,9 @@ var require_pluralize = __commonJS({
|
|
|
9594
9452
|
}
|
|
9595
9453
|
__name(sanitizeRule, "sanitizeRule");
|
|
9596
9454
|
function restoreCase(word, token) {
|
|
9597
|
-
if (word === token)
|
|
9598
|
-
|
|
9599
|
-
if (word === word.
|
|
9600
|
-
return token.toLowerCase();
|
|
9601
|
-
if (word === word.toUpperCase())
|
|
9602
|
-
return token.toUpperCase();
|
|
9455
|
+
if (word === token) return token;
|
|
9456
|
+
if (word === word.toLowerCase()) return token.toLowerCase();
|
|
9457
|
+
if (word === word.toUpperCase()) return token.toUpperCase();
|
|
9603
9458
|
if (word[0] === word[0].toUpperCase()) {
|
|
9604
9459
|
return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
|
|
9605
9460
|
}
|
|
@@ -9629,8 +9484,7 @@ var require_pluralize = __commonJS({
|
|
|
9629
9484
|
var len = rules.length;
|
|
9630
9485
|
while (len--) {
|
|
9631
9486
|
var rule = rules[len];
|
|
9632
|
-
if (rule[0].test(word))
|
|
9633
|
-
return replace(word, rule);
|
|
9487
|
+
if (rule[0].test(word)) return replace(word, rule);
|
|
9634
9488
|
}
|
|
9635
9489
|
return word;
|
|
9636
9490
|
}
|
|
@@ -9651,10 +9505,8 @@ var require_pluralize = __commonJS({
|
|
|
9651
9505
|
function checkWord(replaceMap, keepMap, rules, bool) {
|
|
9652
9506
|
return function(word) {
|
|
9653
9507
|
var token = word.toLowerCase();
|
|
9654
|
-
if (keepMap.hasOwnProperty(token))
|
|
9655
|
-
|
|
9656
|
-
if (replaceMap.hasOwnProperty(token))
|
|
9657
|
-
return false;
|
|
9508
|
+
if (keepMap.hasOwnProperty(token)) return true;
|
|
9509
|
+
if (replaceMap.hasOwnProperty(token)) return false;
|
|
9658
9510
|
return sanitizeWord(token, token, rules) === token;
|
|
9659
9511
|
};
|
|
9660
9512
|
}
|
|
@@ -10211,8 +10063,7 @@ function getPartsAndIndexes(string2, splitRegex) {
|
|
|
10211
10063
|
const matches = string2.matchAll(splitRegex);
|
|
10212
10064
|
let lastWordEndIndex = 0;
|
|
10213
10065
|
for (const match of matches) {
|
|
10214
|
-
if (typeof match.index !== "number")
|
|
10215
|
-
continue;
|
|
10066
|
+
if (typeof match.index !== "number") continue;
|
|
10216
10067
|
const word = match[0];
|
|
10217
10068
|
result.parts.push(word);
|
|
10218
10069
|
const prefix = string2.slice(lastWordEndIndex, match.index).trim();
|
|
@@ -10250,8 +10101,7 @@ function splitAndPrefix(string2, options) {
|
|
|
10250
10101
|
if (i === 0) {
|
|
10251
10102
|
return foundPrefix + part;
|
|
10252
10103
|
}
|
|
10253
|
-
if (!foundPrefix && !part)
|
|
10254
|
-
return "";
|
|
10104
|
+
if (!foundPrefix && !part) return "";
|
|
10255
10105
|
if (!hasSpaces) {
|
|
10256
10106
|
return (foundPrefix || prefix) + part;
|
|
10257
10107
|
}
|
|
@@ -10819,7 +10669,7 @@ var init_build5 = __esm({
|
|
|
10819
10669
|
});
|
|
10820
10670
|
|
|
10821
10671
|
// ../../node_modules/.pnpm/@poppinss+utils@6.10.0/node_modules/@poppinss/utils/build/index.js
|
|
10822
|
-
var import_path, import_lodash4, import_lodash5, import_path2, import_path3, import_promises2, import_path4, REDACTED, Secret, Base64, base64, object_builder_exports, export_ObjectBuilder;
|
|
10672
|
+
var import_path, import_lodash4, import_lodash5, import_path2, import_path3, import_promises2, import_path4, import_crypto3, REDACTED, Secret, Base64, base64, object_builder_exports, export_ObjectBuilder;
|
|
10823
10673
|
var init_build6 = __esm({
|
|
10824
10674
|
"../../node_modules/.pnpm/@poppinss+utils@6.10.0/node_modules/@poppinss/utils/build/index.js"() {
|
|
10825
10675
|
"use strict";
|
|
@@ -10838,6 +10688,7 @@ var init_build6 = __esm({
|
|
|
10838
10688
|
import_path4 = require("path");
|
|
10839
10689
|
init_build4();
|
|
10840
10690
|
init_build5();
|
|
10691
|
+
import_crypto3 = require("crypto");
|
|
10841
10692
|
REDACTED = "[redacted]";
|
|
10842
10693
|
Secret = class _Secret {
|
|
10843
10694
|
static {
|
|
@@ -12050,8 +11901,7 @@ var init_astring = __esm({
|
|
|
12050
11901
|
state.write(" with { ");
|
|
12051
11902
|
for (let i2 = 0; i2 < attributes.length; i2++) {
|
|
12052
11903
|
this.ImportAttribute(attributes[i2], state);
|
|
12053
|
-
if (i2 < attributes.length - 1)
|
|
12054
|
-
state.write(", ");
|
|
11904
|
+
if (i2 < attributes.length - 1) state.write(", ");
|
|
12055
11905
|
}
|
|
12056
11906
|
state.write(" }");
|
|
12057
11907
|
}
|
|
@@ -12105,8 +11955,7 @@ var init_astring = __esm({
|
|
|
12105
11955
|
state.write(" with { ");
|
|
12106
11956
|
for (let i = 0; i < node.attributes.length; i++) {
|
|
12107
11957
|
this.ImportAttribute(node.attributes[i], state);
|
|
12108
|
-
if (i < node.attributes.length - 1)
|
|
12109
|
-
state.write(", ");
|
|
11958
|
+
if (i < node.attributes.length - 1) state.write(", ");
|
|
12110
11959
|
}
|
|
12111
11960
|
state.write(" }");
|
|
12112
11961
|
}
|
|
@@ -12124,8 +11973,7 @@ var init_astring = __esm({
|
|
|
12124
11973
|
state.write(" with { ");
|
|
12125
11974
|
for (let i = 0; i < node.attributes.length; i++) {
|
|
12126
11975
|
this.ImportAttribute(node.attributes[i], state);
|
|
12127
|
-
if (i < node.attributes.length - 1)
|
|
12128
|
-
state.write(", ");
|
|
11976
|
+
if (i < node.attributes.length - 1) state.write(", ");
|
|
12129
11977
|
}
|
|
12130
11978
|
state.write(" }");
|
|
12131
11979
|
}
|
|
@@ -12666,8 +12514,7 @@ function binop(name, prec) {
|
|
|
12666
12514
|
return new TokenType(name, { beforeExpr: true, binop: prec });
|
|
12667
12515
|
}
|
|
12668
12516
|
function kw(name, options) {
|
|
12669
|
-
if (options === void 0)
|
|
12670
|
-
options = {};
|
|
12517
|
+
if (options === void 0) options = {};
|
|
12671
12518
|
options.keyword = name;
|
|
12672
12519
|
return keywords[name] = new TokenType(name, options);
|
|
12673
12520
|
}
|
|
@@ -12675,8 +12522,7 @@ function isNewLine(code) {
|
|
|
12675
12522
|
return code === 10 || code === 13 || code === 8232 || code === 8233;
|
|
12676
12523
|
}
|
|
12677
12524
|
function nextLineBreak(code, from, end) {
|
|
12678
|
-
if (end === void 0)
|
|
12679
|
-
end = code.length;
|
|
12525
|
+
if (end === void 0) end = code.length;
|
|
12680
12526
|
for (var i = from; i < end; i++) {
|
|
12681
12527
|
var next = code.charCodeAt(i);
|
|
12682
12528
|
if (isNewLine(next)) {
|
|
@@ -12914,8 +12760,7 @@ var init_acorn = __esm({
|
|
|
12914
12760
|
__name(isIdentifierStart, "isIdentifierStart");
|
|
12915
12761
|
__name(isIdentifierChar, "isIdentifierChar");
|
|
12916
12762
|
TokenType = /* @__PURE__ */ __name(function TokenType2(label, conf) {
|
|
12917
|
-
if (conf === void 0)
|
|
12918
|
-
conf = {};
|
|
12763
|
+
if (conf === void 0) conf = {};
|
|
12919
12764
|
this.label = label;
|
|
12920
12765
|
this.keyword = conf.keyword;
|
|
12921
12766
|
this.beforeExpr = !!conf.beforeExpr;
|
|
@@ -13280,8 +13125,7 @@ var init_acorn = __esm({
|
|
|
13280
13125
|
};
|
|
13281
13126
|
Parser.extend = /* @__PURE__ */ __name(function extend() {
|
|
13282
13127
|
var plugins = [], len = arguments.length;
|
|
13283
|
-
while (len--)
|
|
13284
|
-
plugins[len] = arguments[len];
|
|
13128
|
+
while (len--) plugins[len] = arguments[len];
|
|
13285
13129
|
var cls = this;
|
|
13286
13130
|
for (var i = 0; i < plugins.length; i++) {
|
|
13287
13131
|
cls = plugins[i](cls);
|
|
@@ -13599,6 +13443,11 @@ var init_acorn = __esm({
|
|
|
13599
13443
|
}
|
|
13600
13444
|
}
|
|
13601
13445
|
return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports2);
|
|
13446
|
+
// If the statement does not start with a statement keyword or a
|
|
13447
|
+
// brace, it's an ExpressionStatement or LabeledStatement. We
|
|
13448
|
+
// simply start parsing an expression, and afterwards, if the
|
|
13449
|
+
// next token is a colon and the expression was a simple
|
|
13450
|
+
// Identifier node, we switch to interpreting it as a label.
|
|
13602
13451
|
default:
|
|
13603
13452
|
if (this.isAsyncFunction()) {
|
|
13604
13453
|
if (context) {
|
|
@@ -13925,10 +13774,8 @@ var init_acorn = __esm({
|
|
|
13925
13774
|
return this.finishNode(node, "ExpressionStatement");
|
|
13926
13775
|
};
|
|
13927
13776
|
pp$8.parseBlock = function(createNewLexicalScope, node, exitStrict) {
|
|
13928
|
-
if (createNewLexicalScope === void 0)
|
|
13929
|
-
|
|
13930
|
-
if (node === void 0)
|
|
13931
|
-
node = this.startNode();
|
|
13777
|
+
if (createNewLexicalScope === void 0) createNewLexicalScope = true;
|
|
13778
|
+
if (node === void 0) node = this.startNode();
|
|
13932
13779
|
node.body = [];
|
|
13933
13780
|
this.expect(types$1.braceL);
|
|
13934
13781
|
if (createNewLexicalScope) {
|
|
@@ -14705,8 +14552,7 @@ var init_acorn = __esm({
|
|
|
14705
14552
|
return this.finishNode(node, "AssignmentPattern");
|
|
14706
14553
|
};
|
|
14707
14554
|
pp$7.checkLValSimple = function(expr, bindingType, checkClashes) {
|
|
14708
|
-
if (bindingType === void 0)
|
|
14709
|
-
bindingType = BIND_NONE;
|
|
14555
|
+
if (bindingType === void 0) bindingType = BIND_NONE;
|
|
14710
14556
|
var isBind = bindingType !== BIND_NONE;
|
|
14711
14557
|
switch (expr.type) {
|
|
14712
14558
|
case "Identifier":
|
|
@@ -14746,8 +14592,7 @@ var init_acorn = __esm({
|
|
|
14746
14592
|
}
|
|
14747
14593
|
};
|
|
14748
14594
|
pp$7.checkLValPattern = function(expr, bindingType, checkClashes) {
|
|
14749
|
-
if (bindingType === void 0)
|
|
14750
|
-
bindingType = BIND_NONE;
|
|
14595
|
+
if (bindingType === void 0) bindingType = BIND_NONE;
|
|
14751
14596
|
switch (expr.type) {
|
|
14752
14597
|
case "ObjectPattern":
|
|
14753
14598
|
for (var i = 0, list = expr.properties; i < list.length; i += 1) {
|
|
@@ -14768,8 +14613,7 @@ var init_acorn = __esm({
|
|
|
14768
14613
|
}
|
|
14769
14614
|
};
|
|
14770
14615
|
pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {
|
|
14771
|
-
if (bindingType === void 0)
|
|
14772
|
-
bindingType = BIND_NONE;
|
|
14616
|
+
if (bindingType === void 0) bindingType = BIND_NONE;
|
|
14773
14617
|
switch (expr.type) {
|
|
14774
14618
|
case "Property":
|
|
14775
14619
|
this.checkLValInnerPattern(expr.value, bindingType, checkClashes);
|
|
@@ -15590,11 +15434,9 @@ var init_acorn = __esm({
|
|
|
15590
15434
|
return this.finishNode(elem, "TemplateElement");
|
|
15591
15435
|
};
|
|
15592
15436
|
pp$5.parseTemplate = function(ref2) {
|
|
15593
|
-
if (ref2 === void 0)
|
|
15594
|
-
ref2 = {};
|
|
15437
|
+
if (ref2 === void 0) ref2 = {};
|
|
15595
15438
|
var isTagged = ref2.isTagged;
|
|
15596
|
-
if (isTagged === void 0)
|
|
15597
|
-
isTagged = false;
|
|
15439
|
+
if (isTagged === void 0) isTagged = false;
|
|
15598
15440
|
var node = this.startNode();
|
|
15599
15441
|
this.next();
|
|
15600
15442
|
node.expressions = [];
|
|
@@ -16207,8 +16049,7 @@ var init_acorn = __esm({
|
|
|
16207
16049
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
16208
16050
|
}, "raise");
|
|
16209
16051
|
RegExpValidationState.prototype.at = /* @__PURE__ */ __name(function at(i, forceU) {
|
|
16210
|
-
if (forceU === void 0)
|
|
16211
|
-
forceU = false;
|
|
16052
|
+
if (forceU === void 0) forceU = false;
|
|
16212
16053
|
var s = this.source;
|
|
16213
16054
|
var l = s.length;
|
|
16214
16055
|
if (i >= l) {
|
|
@@ -16222,8 +16063,7 @@ var init_acorn = __esm({
|
|
|
16222
16063
|
return next >= 56320 && next <= 57343 ? (c << 10) + next - 56613888 : c;
|
|
16223
16064
|
}, "at");
|
|
16224
16065
|
RegExpValidationState.prototype.nextIndex = /* @__PURE__ */ __name(function nextIndex(i, forceU) {
|
|
16225
|
-
if (forceU === void 0)
|
|
16226
|
-
forceU = false;
|
|
16066
|
+
if (forceU === void 0) forceU = false;
|
|
16227
16067
|
var s = this.source;
|
|
16228
16068
|
var l = s.length;
|
|
16229
16069
|
if (i >= l) {
|
|
@@ -16236,23 +16076,19 @@ var init_acorn = __esm({
|
|
|
16236
16076
|
return i + 2;
|
|
16237
16077
|
}, "nextIndex");
|
|
16238
16078
|
RegExpValidationState.prototype.current = /* @__PURE__ */ __name(function current(forceU) {
|
|
16239
|
-
if (forceU === void 0)
|
|
16240
|
-
forceU = false;
|
|
16079
|
+
if (forceU === void 0) forceU = false;
|
|
16241
16080
|
return this.at(this.pos, forceU);
|
|
16242
16081
|
}, "current");
|
|
16243
16082
|
RegExpValidationState.prototype.lookahead = /* @__PURE__ */ __name(function lookahead(forceU) {
|
|
16244
|
-
if (forceU === void 0)
|
|
16245
|
-
forceU = false;
|
|
16083
|
+
if (forceU === void 0) forceU = false;
|
|
16246
16084
|
return this.at(this.nextIndex(this.pos, forceU), forceU);
|
|
16247
16085
|
}, "lookahead");
|
|
16248
16086
|
RegExpValidationState.prototype.advance = /* @__PURE__ */ __name(function advance(forceU) {
|
|
16249
|
-
if (forceU === void 0)
|
|
16250
|
-
forceU = false;
|
|
16087
|
+
if (forceU === void 0) forceU = false;
|
|
16251
16088
|
this.pos = this.nextIndex(this.pos, forceU);
|
|
16252
16089
|
}, "advance");
|
|
16253
16090
|
RegExpValidationState.prototype.eat = /* @__PURE__ */ __name(function eat(ch, forceU) {
|
|
16254
|
-
if (forceU === void 0)
|
|
16255
|
-
forceU = false;
|
|
16091
|
+
if (forceU === void 0) forceU = false;
|
|
16256
16092
|
if (this.current(forceU) === ch) {
|
|
16257
16093
|
this.advance(forceU);
|
|
16258
16094
|
return true;
|
|
@@ -16260,8 +16096,7 @@ var init_acorn = __esm({
|
|
|
16260
16096
|
return false;
|
|
16261
16097
|
}, "eat");
|
|
16262
16098
|
RegExpValidationState.prototype.eatChars = /* @__PURE__ */ __name(function eatChars(chs, forceU) {
|
|
16263
|
-
if (forceU === void 0)
|
|
16264
|
-
forceU = false;
|
|
16099
|
+
if (forceU === void 0) forceU = false;
|
|
16265
16100
|
var pos = this.pos;
|
|
16266
16101
|
for (var i = 0, list = chs; i < list.length; i += 1) {
|
|
16267
16102
|
var ch = list[i];
|
|
@@ -16454,8 +16289,7 @@ var init_acorn = __esm({
|
|
|
16454
16289
|
return false;
|
|
16455
16290
|
};
|
|
16456
16291
|
pp$1.regexp_eatQuantifier = function(state, noError) {
|
|
16457
|
-
if (noError === void 0)
|
|
16458
|
-
noError = false;
|
|
16292
|
+
if (noError === void 0) noError = false;
|
|
16459
16293
|
if (this.regexp_eatQuantifierPrefix(state, noError)) {
|
|
16460
16294
|
state.eat(
|
|
16461
16295
|
63
|
|
@@ -16847,8 +16681,7 @@ var init_acorn = __esm({
|
|
|
16847
16681
|
};
|
|
16848
16682
|
__name(isControlLetter, "isControlLetter");
|
|
16849
16683
|
pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {
|
|
16850
|
-
if (forceU === void 0)
|
|
16851
|
-
forceU = false;
|
|
16684
|
+
if (forceU === void 0) forceU = false;
|
|
16852
16685
|
var start = state.pos;
|
|
16853
16686
|
var switchU = forceU || state.switchU;
|
|
16854
16687
|
if (state.eat(
|
|
@@ -17125,8 +16958,7 @@ var init_acorn = __esm({
|
|
|
17125
16958
|
};
|
|
17126
16959
|
pp$1.regexp_classSetExpression = function(state) {
|
|
17127
16960
|
var result = CharSetOk, subResult;
|
|
17128
|
-
if (this.regexp_eatClassSetRange(state))
|
|
17129
|
-
;
|
|
16961
|
+
if (this.regexp_eatClassSetRange(state)) ;
|
|
17130
16962
|
else if (subResult = this.regexp_eatClassSetOperand(state)) {
|
|
17131
16963
|
if (subResult === CharSetString) {
|
|
17132
16964
|
result = CharSetString;
|
|
@@ -17442,13 +17274,13 @@ var init_acorn = __esm({
|
|
|
17442
17274
|
pp[Symbol.iterator] = function() {
|
|
17443
17275
|
var this$1$1 = this;
|
|
17444
17276
|
return {
|
|
17445
|
-
next: function() {
|
|
17277
|
+
next: /* @__PURE__ */ __name(function() {
|
|
17446
17278
|
var token = this$1$1.getToken();
|
|
17447
17279
|
return {
|
|
17448
17280
|
done: token.type === types$1.eof,
|
|
17449
17281
|
value: token
|
|
17450
17282
|
};
|
|
17451
|
-
}
|
|
17283
|
+
}, "next")
|
|
17452
17284
|
};
|
|
17453
17285
|
};
|
|
17454
17286
|
}
|
|
@@ -17527,47 +17359,46 @@ var init_acorn = __esm({
|
|
|
17527
17359
|
}
|
|
17528
17360
|
};
|
|
17529
17361
|
pp.skipSpace = function() {
|
|
17530
|
-
loop:
|
|
17531
|
-
|
|
17532
|
-
|
|
17533
|
-
|
|
17534
|
-
|
|
17535
|
-
|
|
17536
|
-
|
|
17537
|
-
|
|
17538
|
-
|
|
17539
|
-
if (this.input.charCodeAt(this.pos + 1) === 10) {
|
|
17540
|
-
++this.pos;
|
|
17541
|
-
}
|
|
17542
|
-
case 10:
|
|
17543
|
-
case 8232:
|
|
17544
|
-
case 8233:
|
|
17362
|
+
loop: while (this.pos < this.input.length) {
|
|
17363
|
+
var ch = this.input.charCodeAt(this.pos);
|
|
17364
|
+
switch (ch) {
|
|
17365
|
+
case 32:
|
|
17366
|
+
case 160:
|
|
17367
|
+
++this.pos;
|
|
17368
|
+
break;
|
|
17369
|
+
case 13:
|
|
17370
|
+
if (this.input.charCodeAt(this.pos + 1) === 10) {
|
|
17545
17371
|
++this.pos;
|
|
17546
|
-
|
|
17547
|
-
|
|
17548
|
-
|
|
17549
|
-
|
|
17550
|
-
|
|
17551
|
-
|
|
17552
|
-
|
|
17553
|
-
|
|
17554
|
-
|
|
17555
|
-
|
|
17556
|
-
|
|
17557
|
-
|
|
17558
|
-
|
|
17559
|
-
|
|
17560
|
-
|
|
17561
|
-
|
|
17562
|
-
|
|
17563
|
-
|
|
17564
|
-
|
|
17565
|
-
++this.pos;
|
|
17566
|
-
} else {
|
|
17372
|
+
}
|
|
17373
|
+
case 10:
|
|
17374
|
+
case 8232:
|
|
17375
|
+
case 8233:
|
|
17376
|
+
++this.pos;
|
|
17377
|
+
if (this.options.locations) {
|
|
17378
|
+
++this.curLine;
|
|
17379
|
+
this.lineStart = this.pos;
|
|
17380
|
+
}
|
|
17381
|
+
break;
|
|
17382
|
+
case 47:
|
|
17383
|
+
switch (this.input.charCodeAt(this.pos + 1)) {
|
|
17384
|
+
case 42:
|
|
17385
|
+
this.skipBlockComment();
|
|
17386
|
+
break;
|
|
17387
|
+
case 47:
|
|
17388
|
+
this.skipLineComment(2);
|
|
17389
|
+
break;
|
|
17390
|
+
default:
|
|
17567
17391
|
break loop;
|
|
17568
|
-
|
|
17569
|
-
|
|
17392
|
+
}
|
|
17393
|
+
break;
|
|
17394
|
+
default:
|
|
17395
|
+
if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) {
|
|
17396
|
+
++this.pos;
|
|
17397
|
+
} else {
|
|
17398
|
+
break loop;
|
|
17399
|
+
}
|
|
17570
17400
|
}
|
|
17401
|
+
}
|
|
17571
17402
|
};
|
|
17572
17403
|
pp.finishToken = function(type, val) {
|
|
17573
17404
|
this.end = this.pos;
|
|
@@ -17723,8 +17554,11 @@ var init_acorn = __esm({
|
|
|
17723
17554
|
};
|
|
17724
17555
|
pp.getTokenFromCode = function(code) {
|
|
17725
17556
|
switch (code) {
|
|
17557
|
+
// The interpretation of a dot depends on whether it is followed
|
|
17558
|
+
// by a digit or another two dots.
|
|
17726
17559
|
case 46:
|
|
17727
17560
|
return this.readToken_dot();
|
|
17561
|
+
// Punctuation tokens.
|
|
17728
17562
|
case 40:
|
|
17729
17563
|
++this.pos;
|
|
17730
17564
|
return this.finishToken(types$1.parenL);
|
|
@@ -17771,6 +17605,8 @@ var init_acorn = __esm({
|
|
|
17771
17605
|
return this.readRadixNumber(2);
|
|
17772
17606
|
}
|
|
17773
17607
|
}
|
|
17608
|
+
// Anything else beginning with a digit is an integer, octal
|
|
17609
|
+
// number, or float.
|
|
17774
17610
|
case 49:
|
|
17775
17611
|
case 50:
|
|
17776
17612
|
case 51:
|
|
@@ -17781,9 +17617,14 @@ var init_acorn = __esm({
|
|
|
17781
17617
|
case 56:
|
|
17782
17618
|
case 57:
|
|
17783
17619
|
return this.readNumber(false);
|
|
17620
|
+
// Quotes produce strings.
|
|
17784
17621
|
case 34:
|
|
17785
17622
|
case 39:
|
|
17786
17623
|
return this.readString(code);
|
|
17624
|
+
// Operators are parsed inline in tiny state machines. '=' (61) is
|
|
17625
|
+
// often referred to. `finishOp` simply skips the amount of
|
|
17626
|
+
// characters it is given as second argument, and returns a token
|
|
17627
|
+
// of the type given by its first argument.
|
|
17787
17628
|
case 47:
|
|
17788
17629
|
return this.readToken_slash();
|
|
17789
17630
|
case 37:
|
|
@@ -18089,12 +17930,14 @@ var init_acorn = __esm({
|
|
|
18089
17930
|
if (this.input[this.pos + 1] !== "{") {
|
|
18090
17931
|
break;
|
|
18091
17932
|
}
|
|
17933
|
+
// fall through
|
|
18092
17934
|
case "`":
|
|
18093
17935
|
return this.finishToken(types$1.invalidTemplate, this.input.slice(this.start, this.pos));
|
|
18094
17936
|
case "\r":
|
|
18095
17937
|
if (this.input[this.pos + 1] === "\n") {
|
|
18096
17938
|
++this.pos;
|
|
18097
17939
|
}
|
|
17940
|
+
// fall through
|
|
18098
17941
|
case "\n":
|
|
18099
17942
|
case "\u2028":
|
|
18100
17943
|
case "\u2029":
|
|
@@ -18111,24 +17954,33 @@ var init_acorn = __esm({
|
|
|
18111
17954
|
switch (ch) {
|
|
18112
17955
|
case 110:
|
|
18113
17956
|
return "\n";
|
|
17957
|
+
// 'n' -> '\n'
|
|
18114
17958
|
case 114:
|
|
18115
17959
|
return "\r";
|
|
17960
|
+
// 'r' -> '\r'
|
|
18116
17961
|
case 120:
|
|
18117
17962
|
return String.fromCharCode(this.readHexChar(2));
|
|
17963
|
+
// 'x'
|
|
18118
17964
|
case 117:
|
|
18119
17965
|
return codePointToString(this.readCodePoint());
|
|
17966
|
+
// 'u'
|
|
18120
17967
|
case 116:
|
|
18121
17968
|
return " ";
|
|
17969
|
+
// 't' -> '\t'
|
|
18122
17970
|
case 98:
|
|
18123
17971
|
return "\b";
|
|
17972
|
+
// 'b' -> '\b'
|
|
18124
17973
|
case 118:
|
|
18125
17974
|
return "\v";
|
|
17975
|
+
// 'v' -> '\u000b'
|
|
18126
17976
|
case 102:
|
|
18127
17977
|
return "\f";
|
|
17978
|
+
// 'f' -> '\f'
|
|
18128
17979
|
case 13:
|
|
18129
17980
|
if (this.input.charCodeAt(this.pos) === 10) {
|
|
18130
17981
|
++this.pos;
|
|
18131
17982
|
}
|
|
17983
|
+
// '\r\n'
|
|
18132
17984
|
case 10:
|
|
18133
17985
|
if (this.options.locations) {
|
|
18134
17986
|
this.lineStart = this.pos;
|
|
@@ -18283,7 +18135,7 @@ function generateAST(jsArg, lexerLoc, filename) {
|
|
|
18283
18135
|
locations: true,
|
|
18284
18136
|
ecmaVersion: 2020,
|
|
18285
18137
|
allowAwaitOutsideFunction: true,
|
|
18286
|
-
onToken: (token) => patchLoc(token.loc, lexerLoc)
|
|
18138
|
+
onToken: /* @__PURE__ */ __name((token) => patchLoc(token.loc, lexerLoc), "onToken")
|
|
18287
18139
|
};
|
|
18288
18140
|
try {
|
|
18289
18141
|
const ast = parse5(jsArg, acornOptions);
|
|
@@ -18381,11 +18233,10 @@ var init_build8 = __esm({
|
|
|
18381
18233
|
import_js_stringify = __toESM(require_js_stringify(), 1);
|
|
18382
18234
|
__defProp4 = Object.defineProperty;
|
|
18383
18235
|
__export3 = /* @__PURE__ */ __name((target, all) => {
|
|
18384
|
-
for (var name in all)
|
|
18385
|
-
|
|
18386
|
-
|
|
18387
|
-
|
|
18388
|
-
});
|
|
18236
|
+
for (var name in all) __defProp4(target, name, {
|
|
18237
|
+
get: all[name],
|
|
18238
|
+
enumerable: true
|
|
18239
|
+
});
|
|
18389
18240
|
}, "__export");
|
|
18390
18241
|
Stack = class {
|
|
18391
18242
|
static {
|
|
@@ -18455,29 +18306,29 @@ var init_build8 = __esm({
|
|
|
18455
18306
|
__name(generateAST, "generateAST");
|
|
18456
18307
|
expressions_exports = {};
|
|
18457
18308
|
__export3(expressions_exports, {
|
|
18458
|
-
ArrayExpression: () => array_expression_default,
|
|
18459
|
-
ArrowFunctionExpression: () => arrow_function_expression_default,
|
|
18460
|
-
AssignmentExpression: () => assignment_expression_default,
|
|
18461
|
-
AwaitExpression: () => await_expression_default,
|
|
18462
|
-
BinaryExpression: () => binary_expression_default,
|
|
18463
|
-
BlockStatement: () => block_statement_default,
|
|
18464
|
-
CallExpression: () => call_expression_default,
|
|
18465
|
-
ChainExpression: () => chain_expression_default,
|
|
18466
|
-
ConditionalExpression: () => conditional_expression_default,
|
|
18467
|
-
ExpressionStatement: () => expression_statement_default,
|
|
18468
|
-
FunctionDeclaration: () => function_declaration_default,
|
|
18469
|
-
Identifier: () => identifier_default,
|
|
18470
|
-
Literal: () => literal_default,
|
|
18471
|
-
LogicalExpression: () => logical_expression_default,
|
|
18472
|
-
MemberExpression: () => member_expression_default,
|
|
18473
|
-
NewExpression: () => new_expression_default,
|
|
18474
|
-
ObjectExpression: () => object_expression_default,
|
|
18475
|
-
ReturnStatement: () => return_statement_default,
|
|
18476
|
-
SequenceExpression: () => sequence_expression_default,
|
|
18477
|
-
SpreadElement: () => spread_element_default,
|
|
18478
|
-
TemplateLiteral: () => template_literal_default,
|
|
18479
|
-
ThisExpression: () => this_expression_default,
|
|
18480
|
-
UnaryExpression: () => unary_expression_default
|
|
18309
|
+
ArrayExpression: /* @__PURE__ */ __name(() => array_expression_default, "ArrayExpression"),
|
|
18310
|
+
ArrowFunctionExpression: /* @__PURE__ */ __name(() => arrow_function_expression_default, "ArrowFunctionExpression"),
|
|
18311
|
+
AssignmentExpression: /* @__PURE__ */ __name(() => assignment_expression_default, "AssignmentExpression"),
|
|
18312
|
+
AwaitExpression: /* @__PURE__ */ __name(() => await_expression_default, "AwaitExpression"),
|
|
18313
|
+
BinaryExpression: /* @__PURE__ */ __name(() => binary_expression_default, "BinaryExpression"),
|
|
18314
|
+
BlockStatement: /* @__PURE__ */ __name(() => block_statement_default, "BlockStatement"),
|
|
18315
|
+
CallExpression: /* @__PURE__ */ __name(() => call_expression_default, "CallExpression"),
|
|
18316
|
+
ChainExpression: /* @__PURE__ */ __name(() => chain_expression_default, "ChainExpression"),
|
|
18317
|
+
ConditionalExpression: /* @__PURE__ */ __name(() => conditional_expression_default, "ConditionalExpression"),
|
|
18318
|
+
ExpressionStatement: /* @__PURE__ */ __name(() => expression_statement_default, "ExpressionStatement"),
|
|
18319
|
+
FunctionDeclaration: /* @__PURE__ */ __name(() => function_declaration_default, "FunctionDeclaration"),
|
|
18320
|
+
Identifier: /* @__PURE__ */ __name(() => identifier_default, "Identifier"),
|
|
18321
|
+
Literal: /* @__PURE__ */ __name(() => literal_default, "Literal"),
|
|
18322
|
+
LogicalExpression: /* @__PURE__ */ __name(() => logical_expression_default, "LogicalExpression"),
|
|
18323
|
+
MemberExpression: /* @__PURE__ */ __name(() => member_expression_default, "MemberExpression"),
|
|
18324
|
+
NewExpression: /* @__PURE__ */ __name(() => new_expression_default, "NewExpression"),
|
|
18325
|
+
ObjectExpression: /* @__PURE__ */ __name(() => object_expression_default, "ObjectExpression"),
|
|
18326
|
+
ReturnStatement: /* @__PURE__ */ __name(() => return_statement_default, "ReturnStatement"),
|
|
18327
|
+
SequenceExpression: /* @__PURE__ */ __name(() => sequence_expression_default, "SequenceExpression"),
|
|
18328
|
+
SpreadElement: /* @__PURE__ */ __name(() => spread_element_default, "SpreadElement"),
|
|
18329
|
+
TemplateLiteral: /* @__PURE__ */ __name(() => template_literal_default, "TemplateLiteral"),
|
|
18330
|
+
ThisExpression: /* @__PURE__ */ __name(() => this_expression_default, "ThisExpression"),
|
|
18331
|
+
UnaryExpression: /* @__PURE__ */ __name(() => unary_expression_default, "UnaryExpression")
|
|
18481
18332
|
});
|
|
18482
18333
|
__name(makeMemberAccessor, "makeMemberAccessor");
|
|
18483
18334
|
identifier_default = {
|
|
@@ -19602,7 +19453,7 @@ var require_inspect2 = __commonJS({
|
|
|
19602
19453
|
module2.exports = {
|
|
19603
19454
|
inspect: require_inspect(),
|
|
19604
19455
|
string: {
|
|
19605
|
-
html: (value) => new PrettyPrintHtml().print(value)
|
|
19456
|
+
html: /* @__PURE__ */ __name((value) => new PrettyPrintHtml().print(value), "html")
|
|
19606
19457
|
}
|
|
19607
19458
|
};
|
|
19608
19459
|
}
|
|
@@ -20048,24 +19899,24 @@ var init_build9 = __esm({
|
|
|
20048
19899
|
};
|
|
20049
19900
|
main_exports = {};
|
|
20050
19901
|
__export2(main_exports, {
|
|
20051
|
-
assign: () => assignTag,
|
|
20052
|
-
component: () => componentTag,
|
|
20053
|
-
debugger: () => debuggerTag,
|
|
20054
|
-
each: () => eachTag,
|
|
20055
|
-
else: () => elseTag,
|
|
20056
|
-
elseif: () => elseIfTag,
|
|
20057
|
-
eval: () => evalTag,
|
|
20058
|
-
if: () => ifTag,
|
|
20059
|
-
include: () => includeTag,
|
|
20060
|
-
includeIf: () => includeIfTag,
|
|
20061
|
-
inject: () => injectTag,
|
|
20062
|
-
let: () => letTag,
|
|
20063
|
-
newError: () => newErrorTag,
|
|
20064
|
-
pushOnceTo: () => pushOnceToTag,
|
|
20065
|
-
pushTo: () => pushToTag,
|
|
20066
|
-
slot: () => slotTag,
|
|
20067
|
-
stack: () => stackTag,
|
|
20068
|
-
unless: () => unlessTag
|
|
19902
|
+
assign: /* @__PURE__ */ __name(() => assignTag, "assign"),
|
|
19903
|
+
component: /* @__PURE__ */ __name(() => componentTag, "component"),
|
|
19904
|
+
debugger: /* @__PURE__ */ __name(() => debuggerTag, "debugger"),
|
|
19905
|
+
each: /* @__PURE__ */ __name(() => eachTag, "each"),
|
|
19906
|
+
else: /* @__PURE__ */ __name(() => elseTag, "else"),
|
|
19907
|
+
elseif: /* @__PURE__ */ __name(() => elseIfTag, "elseif"),
|
|
19908
|
+
eval: /* @__PURE__ */ __name(() => evalTag, "eval"),
|
|
19909
|
+
if: /* @__PURE__ */ __name(() => ifTag, "if"),
|
|
19910
|
+
include: /* @__PURE__ */ __name(() => includeTag, "include"),
|
|
19911
|
+
includeIf: /* @__PURE__ */ __name(() => includeIfTag, "includeIf"),
|
|
19912
|
+
inject: /* @__PURE__ */ __name(() => injectTag, "inject"),
|
|
19913
|
+
let: /* @__PURE__ */ __name(() => letTag, "let"),
|
|
19914
|
+
newError: /* @__PURE__ */ __name(() => newErrorTag, "newError"),
|
|
19915
|
+
pushOnceTo: /* @__PURE__ */ __name(() => pushOnceToTag, "pushOnceTo"),
|
|
19916
|
+
pushTo: /* @__PURE__ */ __name(() => pushToTag, "pushTo"),
|
|
19917
|
+
slot: /* @__PURE__ */ __name(() => slotTag, "slot"),
|
|
19918
|
+
stack: /* @__PURE__ */ __name(() => stackTag, "stack"),
|
|
19919
|
+
unless: /* @__PURE__ */ __name(() => unlessTag, "unless")
|
|
20069
19920
|
});
|
|
20070
19921
|
ifTag = {
|
|
20071
19922
|
block: true,
|
|
@@ -20733,10 +20584,10 @@ var init_build9 = __esm({
|
|
|
20733
20584
|
"escape"
|
|
20734
20585
|
],
|
|
20735
20586
|
localVariables: this.#inlineVariables,
|
|
20736
|
-
onTag: (tag) => this.#processor.executeTag({
|
|
20587
|
+
onTag: /* @__PURE__ */ __name((tag) => this.#processor.executeTag({
|
|
20737
20588
|
tag,
|
|
20738
20589
|
path: templatePath
|
|
20739
|
-
})
|
|
20590
|
+
}), "onTag")
|
|
20740
20591
|
});
|
|
20741
20592
|
if (localVariables) {
|
|
20742
20593
|
localVariables.forEach((localVariable) => parser.stack.defineVariable(localVariable));
|
|
@@ -20849,38 +20700,38 @@ var init_build9 = __esm({
|
|
|
20849
20700
|
/**
|
|
20850
20701
|
* Converts new lines to break
|
|
20851
20702
|
*/
|
|
20852
|
-
nl2br: (value) => {
|
|
20703
|
+
nl2br: /* @__PURE__ */ __name((value) => {
|
|
20853
20704
|
if (!value) {
|
|
20854
20705
|
return;
|
|
20855
20706
|
}
|
|
20856
20707
|
return String(value).replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, "$1<br>");
|
|
20857
|
-
},
|
|
20708
|
+
}, "nl2br"),
|
|
20858
20709
|
/**
|
|
20859
20710
|
* Inspect state
|
|
20860
20711
|
*/
|
|
20861
|
-
inspect: (value) => {
|
|
20712
|
+
inspect: /* @__PURE__ */ __name((value) => {
|
|
20862
20713
|
return htmlSafe(import_inspect.default.string.html(value));
|
|
20863
|
-
},
|
|
20714
|
+
}, "inspect"),
|
|
20864
20715
|
/**
|
|
20865
20716
|
* Truncate a sentence
|
|
20866
20717
|
*/
|
|
20867
|
-
truncate: (value, length = 20, options) => {
|
|
20718
|
+
truncate: /* @__PURE__ */ __name((value, length = 20, options) => {
|
|
20868
20719
|
options = options || {};
|
|
20869
20720
|
return main_default2.truncate(value, length, {
|
|
20870
20721
|
completeWords: options.completeWords !== void 0 ? options.completeWords : !options.strict,
|
|
20871
20722
|
suffix: options.suffix
|
|
20872
20723
|
});
|
|
20873
|
-
},
|
|
20724
|
+
}, "truncate"),
|
|
20874
20725
|
/**
|
|
20875
20726
|
* Generate an excerpt
|
|
20876
20727
|
*/
|
|
20877
|
-
excerpt: (value, length = 20, options) => {
|
|
20728
|
+
excerpt: /* @__PURE__ */ __name((value, length = 20, options) => {
|
|
20878
20729
|
options = options || {};
|
|
20879
20730
|
return main_default2.excerpt(value, length, {
|
|
20880
20731
|
completeWords: options.completeWords !== void 0 ? options.completeWords : !options.strict,
|
|
20881
20732
|
suffix: options.suffix
|
|
20882
20733
|
});
|
|
20883
|
-
},
|
|
20734
|
+
}, "excerpt"),
|
|
20884
20735
|
/**
|
|
20885
20736
|
* Helpers related to HTML
|
|
20886
20737
|
*/
|
|
@@ -20888,9 +20739,9 @@ var init_build9 = __esm({
|
|
|
20888
20739
|
escape,
|
|
20889
20740
|
safe: htmlSafe,
|
|
20890
20741
|
classNames: import_classnames2.default,
|
|
20891
|
-
attrs: (values) => {
|
|
20742
|
+
attrs: /* @__PURE__ */ __name((values) => {
|
|
20892
20743
|
return htmlSafe(stringifyAttributes2(values));
|
|
20893
|
-
}
|
|
20744
|
+
}, "attrs")
|
|
20894
20745
|
},
|
|
20895
20746
|
/**
|
|
20896
20747
|
* Helpers related to JavaScript
|
|
@@ -21403,13 +21254,14 @@ var init_build9 = __esm({
|
|
|
21403
21254
|
// ../core/dist/index.js
|
|
21404
21255
|
var dist_exports2 = {};
|
|
21405
21256
|
__export(dist_exports2, {
|
|
21406
|
-
AppServiceProvider: () => AppServiceProvider,
|
|
21407
21257
|
Application: () => Application,
|
|
21408
21258
|
Container: () => Container,
|
|
21409
21259
|
Controller: () => Controller,
|
|
21260
|
+
CoreServiceProvider: () => CoreServiceProvider,
|
|
21410
21261
|
Inject: () => Inject,
|
|
21411
21262
|
Injectable: () => Injectable,
|
|
21412
21263
|
Kernel: () => Kernel,
|
|
21264
|
+
Registerer: () => Registerer,
|
|
21413
21265
|
ServiceProvider: () => ServiceProvider,
|
|
21414
21266
|
ViewServiceProvider: () => ViewServiceProvider
|
|
21415
21267
|
});
|
|
@@ -21419,17 +21271,26 @@ function Inject(...dependencies) {
|
|
|
21419
21271
|
};
|
|
21420
21272
|
}
|
|
21421
21273
|
function Injectable() {
|
|
21422
|
-
return (
|
|
21274
|
+
return (...args) => {
|
|
21275
|
+
if (args.length === 1) {
|
|
21276
|
+
void args[0];
|
|
21277
|
+
}
|
|
21278
|
+
if (args.length === 3) {
|
|
21279
|
+
void args[0];
|
|
21280
|
+
void args[1];
|
|
21281
|
+
void args[2];
|
|
21282
|
+
}
|
|
21423
21283
|
};
|
|
21424
21284
|
}
|
|
21425
|
-
var import_shared, import_dotenv,
|
|
21285
|
+
var import_shared, import_dotenv, import_path6, import_reflect_metadata, import_support3, __defProp5, __name2, Container, Application, Controller, Kernel, Registerer, ServiceProvider, CoreServiceProvider, ViewServiceProvider;
|
|
21426
21286
|
var init_dist4 = __esm({
|
|
21427
21287
|
"../core/dist/index.js"() {
|
|
21428
21288
|
"use strict";
|
|
21429
21289
|
import_shared = require("@h3ravel/shared");
|
|
21430
21290
|
import_dotenv = __toESM(require("dotenv"), 1);
|
|
21431
|
-
|
|
21291
|
+
import_path6 = __toESM(require("path"), 1);
|
|
21432
21292
|
import_reflect_metadata = __toESM(require_Reflect(), 1);
|
|
21293
|
+
import_support3 = require("@h3ravel/support");
|
|
21433
21294
|
init_build9();
|
|
21434
21295
|
__defProp5 = Object.defineProperty;
|
|
21435
21296
|
__name2 = /* @__PURE__ */ __name((target, value) => __defProp5(target, "name", {
|
|
@@ -21452,8 +21313,7 @@ var init_dist4 = __esm({
|
|
|
21452
21313
|
* @returns
|
|
21453
21314
|
*/
|
|
21454
21315
|
static hasAnyDecorator(target) {
|
|
21455
|
-
if (Reflect.getMetadataKeys(target).length > 0)
|
|
21456
|
-
return true;
|
|
21316
|
+
if (Reflect.getMetadataKeys(target).length > 0) return true;
|
|
21457
21317
|
const paramLength = target.length;
|
|
21458
21318
|
for (let i = 0; i < paramLength; i++) {
|
|
21459
21319
|
if (Reflect.getMetadataKeys(target, `__param_${i}`).length > 0) {
|
|
@@ -21550,8 +21410,7 @@ var init_dist4 = __esm({
|
|
|
21550
21410
|
async registerConfiguredProviders() {
|
|
21551
21411
|
const providers = await this.getAllProviders();
|
|
21552
21412
|
for (const ProviderClass of providers) {
|
|
21553
|
-
if (!ProviderClass)
|
|
21554
|
-
continue;
|
|
21413
|
+
if (!ProviderClass) continue;
|
|
21555
21414
|
const provider = new ProviderClass(this);
|
|
21556
21415
|
await this.register(provider);
|
|
21557
21416
|
}
|
|
@@ -21576,7 +21435,7 @@ var init_dist4 = __esm({
|
|
|
21576
21435
|
*/
|
|
21577
21436
|
async getConfiguredProviders() {
|
|
21578
21437
|
return [
|
|
21579
|
-
(await Promise.resolve().then(() => (init_dist4(), dist_exports2))).
|
|
21438
|
+
(await Promise.resolve().then(() => (init_dist4(), dist_exports2))).CoreServiceProvider,
|
|
21580
21439
|
(await Promise.resolve().then(() => (init_dist4(), dist_exports2))).ViewServiceProvider
|
|
21581
21440
|
];
|
|
21582
21441
|
}
|
|
@@ -21596,8 +21455,7 @@ var init_dist4 = __esm({
|
|
|
21596
21455
|
});
|
|
21597
21456
|
providers.forEach((Provider) => {
|
|
21598
21457
|
const order = Provider.order;
|
|
21599
|
-
if (!order)
|
|
21600
|
-
return;
|
|
21458
|
+
if (!order) return;
|
|
21601
21459
|
const [direction, target] = order.split(":");
|
|
21602
21460
|
const targetPriority = priorityMap.get(target) ?? 0;
|
|
21603
21461
|
if (direction === "before") {
|
|
@@ -21630,8 +21488,7 @@ var init_dist4 = __esm({
|
|
|
21630
21488
|
* Boot all providers after registration
|
|
21631
21489
|
*/
|
|
21632
21490
|
async boot() {
|
|
21633
|
-
if (this.booted)
|
|
21634
|
-
return;
|
|
21491
|
+
if (this.booted) return;
|
|
21635
21492
|
for (const provider of this.providers) {
|
|
21636
21493
|
if (provider.boot) {
|
|
21637
21494
|
await provider.boot();
|
|
@@ -21666,7 +21523,7 @@ var init_dist4 = __esm({
|
|
|
21666
21523
|
* @returns
|
|
21667
21524
|
*/
|
|
21668
21525
|
getPath(name, pth) {
|
|
21669
|
-
return
|
|
21526
|
+
return import_path6.default.join(this.paths.getPath(name, this.basePath), pth ?? "");
|
|
21670
21527
|
}
|
|
21671
21528
|
/**
|
|
21672
21529
|
* Programatically set the paths.
|
|
@@ -21698,36 +21555,22 @@ var init_dist4 = __esm({
|
|
|
21698
21555
|
constructor(app) {
|
|
21699
21556
|
this.app = app;
|
|
21700
21557
|
}
|
|
21701
|
-
show(_ctx) {
|
|
21558
|
+
show(..._ctx) {
|
|
21702
21559
|
return;
|
|
21703
21560
|
}
|
|
21704
|
-
index(_ctx) {
|
|
21561
|
+
index(..._ctx) {
|
|
21705
21562
|
return;
|
|
21706
21563
|
}
|
|
21707
|
-
store(_ctx) {
|
|
21564
|
+
store(..._ctx) {
|
|
21708
21565
|
return;
|
|
21709
21566
|
}
|
|
21710
|
-
update(_ctx) {
|
|
21567
|
+
update(..._ctx) {
|
|
21711
21568
|
return;
|
|
21712
21569
|
}
|
|
21713
|
-
destroy(_ctx) {
|
|
21570
|
+
destroy(..._ctx) {
|
|
21714
21571
|
return;
|
|
21715
21572
|
}
|
|
21716
21573
|
};
|
|
21717
|
-
ServiceProvider = class {
|
|
21718
|
-
static {
|
|
21719
|
-
__name(this, "ServiceProvider");
|
|
21720
|
-
}
|
|
21721
|
-
static {
|
|
21722
|
-
__name2(this, "ServiceProvider");
|
|
21723
|
-
}
|
|
21724
|
-
static order;
|
|
21725
|
-
static priority = 0;
|
|
21726
|
-
app;
|
|
21727
|
-
constructor(app) {
|
|
21728
|
-
this.app = app;
|
|
21729
|
-
}
|
|
21730
|
-
};
|
|
21731
21574
|
__name(Inject, "Inject");
|
|
21732
21575
|
__name2(Inject, "Inject");
|
|
21733
21576
|
__name(Injectable, "Injectable");
|
|
@@ -21779,8 +21622,7 @@ var init_dist4 = __esm({
|
|
|
21779
21622
|
async runMiddleware(context, next) {
|
|
21780
21623
|
let index = -1;
|
|
21781
21624
|
const runner = /* @__PURE__ */ __name2(async (i) => {
|
|
21782
|
-
if (i <= index)
|
|
21783
|
-
throw new Error("next() called multiple times");
|
|
21625
|
+
if (i <= index) throw new Error("next() called multiple times");
|
|
21784
21626
|
index = i;
|
|
21785
21627
|
const middleware = this.middleware[i];
|
|
21786
21628
|
if (middleware) {
|
|
@@ -21801,12 +21643,45 @@ var init_dist4 = __esm({
|
|
|
21801
21643
|
return typeof value === "object" && value !== null && (value.constructor === Object || value.constructor === Array);
|
|
21802
21644
|
}
|
|
21803
21645
|
};
|
|
21804
|
-
|
|
21646
|
+
Registerer = class {
|
|
21647
|
+
static {
|
|
21648
|
+
__name(this, "Registerer");
|
|
21649
|
+
}
|
|
21650
|
+
static {
|
|
21651
|
+
__name2(this, "Registerer");
|
|
21652
|
+
}
|
|
21653
|
+
static register() {
|
|
21654
|
+
globalThis.dd = import_support3.dd;
|
|
21655
|
+
globalThis.dump = import_support3.dump;
|
|
21656
|
+
}
|
|
21657
|
+
};
|
|
21658
|
+
ServiceProvider = class {
|
|
21659
|
+
static {
|
|
21660
|
+
__name(this, "ServiceProvider");
|
|
21661
|
+
}
|
|
21662
|
+
static {
|
|
21663
|
+
__name2(this, "ServiceProvider");
|
|
21664
|
+
}
|
|
21665
|
+
static order;
|
|
21666
|
+
static priority = 0;
|
|
21667
|
+
app;
|
|
21668
|
+
constructor(app) {
|
|
21669
|
+
this.app = app;
|
|
21670
|
+
}
|
|
21671
|
+
/**
|
|
21672
|
+
* Register bindings to the container.
|
|
21673
|
+
* Runs before boot().
|
|
21674
|
+
*/
|
|
21675
|
+
register() {
|
|
21676
|
+
Registerer.register();
|
|
21677
|
+
}
|
|
21678
|
+
};
|
|
21679
|
+
CoreServiceProvider = class extends ServiceProvider {
|
|
21805
21680
|
static {
|
|
21806
|
-
__name(this, "
|
|
21681
|
+
__name(this, "CoreServiceProvider");
|
|
21807
21682
|
}
|
|
21808
21683
|
static {
|
|
21809
|
-
__name2(this, "
|
|
21684
|
+
__name2(this, "CoreServiceProvider");
|
|
21810
21685
|
}
|
|
21811
21686
|
static priority = 999;
|
|
21812
21687
|
register() {
|
|
@@ -21836,13 +21711,13 @@ var init_dist4 = __esm({
|
|
|
21836
21711
|
});
|
|
21837
21712
|
|
|
21838
21713
|
// src/index.ts
|
|
21839
|
-
var
|
|
21840
|
-
__export(
|
|
21714
|
+
var index_exports = {};
|
|
21715
|
+
__export(index_exports, {
|
|
21841
21716
|
ConfigRepository: () => ConfigRepository,
|
|
21842
21717
|
ConfigServiceProvider: () => ConfigServiceProvider,
|
|
21843
21718
|
EnvLoader: () => EnvLoader
|
|
21844
21719
|
});
|
|
21845
|
-
module.exports = __toCommonJS(
|
|
21720
|
+
module.exports = __toCommonJS(index_exports);
|
|
21846
21721
|
|
|
21847
21722
|
// src/ConfigRepository.ts
|
|
21848
21723
|
var import_support = require("@h3ravel/support");
|
|
@@ -21908,7 +21783,7 @@ var ConfigServiceProvider = class extends ServiceProvider {
|
|
|
21908
21783
|
__name(this, "ConfigServiceProvider");
|
|
21909
21784
|
}
|
|
21910
21785
|
static priority = 998;
|
|
21911
|
-
// public static order = 'before:
|
|
21786
|
+
// public static order = 'before:CoreServiceProvider';
|
|
21912
21787
|
async register() {
|
|
21913
21788
|
this.app.singleton("env", () => {
|
|
21914
21789
|
return new EnvLoader(this.app).get;
|
|
@@ -21917,7 +21792,7 @@ var ConfigServiceProvider = class extends ServiceProvider {
|
|
|
21917
21792
|
await repo.load();
|
|
21918
21793
|
this.app.singleton("config", () => {
|
|
21919
21794
|
return {
|
|
21920
|
-
get: (key, def) => repo.get(key, def),
|
|
21795
|
+
get: /* @__PURE__ */ __name((key, def) => repo.get(key, def), "get"),
|
|
21921
21796
|
set: repo.set
|
|
21922
21797
|
};
|
|
21923
21798
|
});
|